• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
5 #ifndef PPAPI_TEST_TEST_VAR_RESOURCE_H_
6 #define PPAPI_TEST_TEST_VAR_RESOURCE_H_
7 
8 #include <string>
9 
10 #include "ppapi/c/ppb_file_system.h"
11 #include "ppapi/c/ppb_var.h"
12 #include "ppapi/tests/test_case.h"
13 
14 class TestVarResource : public TestCase {
15  public:
TestVarResource(TestingInstance * instance)16   explicit TestVarResource(TestingInstance* instance) : TestCase(instance) {}
17 
18  private:
19   // TestCase implementation.
20   virtual bool Init();
21   virtual void RunTests(const std::string& filter);
22 
23   std::string TestBasicResource();
24   std::string TestInvalidAndEmpty();
25   std::string TestWrongType();
26 
27   // Used by the tests that access the C APIs directly.
28   const PPB_Core* core_interface_;
29   const PPB_FileSystem* file_system_interface_;
30   const PPB_Var* var_interface_;
31 };
32 
33 #endif  // PPAPI_TEST_TEST_VAR_RESOURCE_H_
34