test_var_resource.h 940 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2013 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_VAR_RESOURCE_H_
  5. #define PPAPI_TESTS_TEST_VAR_RESOURCE_H_
  6. #include <string>
  7. #include "ppapi/c/ppb_file_system.h"
  8. #include "ppapi/c/ppb_var.h"
  9. #include "ppapi/tests/test_case.h"
  10. class TestVarResource : public TestCase {
  11. public:
  12. explicit TestVarResource(TestingInstance* instance) : TestCase(instance) {}
  13. private:
  14. // TestCase implementation.
  15. virtual bool Init();
  16. virtual void RunTests(const std::string& filter);
  17. std::string TestBasicResource();
  18. std::string TestInvalidAndEmpty();
  19. std::string TestWrongType();
  20. // Used by the tests that access the C APIs directly.
  21. const PPB_Core* core_interface_;
  22. const PPB_FileSystem* file_system_interface_;
  23. const PPB_Var* var_interface_;
  24. };
  25. #endif // PPAPI_TESTS_TEST_VAR_RESOURCE_H_