test_crypto.h 680 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef PPAPI_TESTS_TEST_CRYPTO_H_
  5. #define PPAPI_TESTS_TEST_CRYPTO_H_
  6. #include <string>
  7. #include <vector>
  8. #include "ppapi/c/dev/ppb_crypto_dev.h"
  9. #include "ppapi/tests/test_case.h"
  10. class TestCrypto : public TestCase {
  11. public:
  12. TestCrypto(TestingInstance* instance);
  13. // TestCase implementation.
  14. virtual bool Init();
  15. virtual void RunTests(const std::string& filter);
  16. private:
  17. std::string TestGetRandomBytes();
  18. const PPB_Crypto_Dev* crypto_interface_;
  19. };
  20. #endif // PPAPI_TESTS_TEST_CRYPTO_H_