Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: ppapi/tests/test_case.h

Issue 7312008: Porting ppapi_tests framework to postMessage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable Scrollbar test on Mac for now, merge Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/tests/test_case.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_case.h
diff --git a/ppapi/tests/test_case.h b/ppapi/tests/test_case.h
index 5ec44359aa4b1977ef1856ad9db326089b5baa20..0a3cdc65a6e72c2c220cbc2340a37899f5d091ec 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();
@@ -73,8 +82,10 @@ class TestCase {
bool force_async_;
private:
+#if !(defined __native_client__)
// Holds the test object, if any was retrieved from CreateTestObject.
- pp::Var test_object_;
+ pp::VarPrivate test_object_;
+#endif
};
// This class is an implementation detail.
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/tests/test_case.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698