Chromium Code Reviews| Index: ppapi/tests/test_case.h |
| diff --git a/ppapi/tests/test_case.h b/ppapi/tests/test_case.h |
| index 5ec44359aa4b1977ef1856ad9db326089b5baa20..aa236036655e8af177d29d67225435e918ba1a8c 100644 |
| --- a/ppapi/tests/test_case.h |
| +++ b/ppapi/tests/test_case.h |
| @@ -11,7 +11,12 @@ |
| #include "ppapi/c/pp_resource.h" |
| #include "ppapi/cpp/dev/scrollbar_dev.h" |
| + |
| +#if (defined __native_client__) |
| #include "ppapi/cpp/var.h" |
| +#else |
| +#include "ppapi/cpp/private/var_private.h" |
| +#endif |
| struct PPB_Testing_Dev; |
| class TestingInstance; |
| @@ -38,9 +43,11 @@ class TestCase { |
| static std::string MakeFailureMessage(const char* file, int line, |
| const char* cmd); |
| +#if !(defined __native_client__) |
| // Returns the scriptable test object for the current test, if any. |
| // Internally, this uses CreateTestObject which each test overrides. |
| - pp::Var GetTestObject(); |
| + pp::VarPrivate GetTestObject(); |
| +#endif |
| // A function that is invoked whenever HandleMessage is called on the |
| // associated TestingInstance. Default implementation does nothing. TestCases |
| @@ -49,6 +56,7 @@ class TestCase { |
| virtual void HandleMessage(const pp::Var& message_data); |
| protected: |
| +#if !(defined __native_client__) |
| // Overridden by each test to supply a ScriptableObject corresponding to the |
| // test. There can only be one object created for all test in a given class |
| // so be sure your object is designed to be re-used. |
| @@ -56,6 +64,7 @@ class TestCase { |
| // This object should be created on the heap. Ownership will be passed to the |
| // caller. Return NULL if there is no supported test object (the default). |
| virtual pp::deprecated::ScriptableObject* CreateTestObject(); |
| +#endif |
| // Initializes the testing interface. |
| bool InitTestingInterface(); |
| @@ -74,7 +83,7 @@ class TestCase { |
| private: |
| // Holds the test object, if any was retrieved from CreateTestObject. |
| - pp::Var test_object_; |
| + pp::VarPrivate test_object_; |
|
cstefansen
2011/07/07 18:03:09
#if !(defined __native_client__) ?
dmichael (off chromium)
2011/07/07 21:17:59
Good catch, done.
|
| }; |
| // This class is an implementation detail. |