summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/test_globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/shared_impl/test_globals.h')
-rw-r--r--ppapi/shared_impl/test_globals.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/ppapi/shared_impl/test_globals.h b/ppapi/shared_impl/test_globals.h
index d5d1439..49f189f 100644
--- a/ppapi/shared_impl/test_globals.h
+++ b/ppapi/shared_impl/test_globals.h
@@ -12,6 +12,15 @@
namespace ppapi {
+class TestVarTracker : public VarTracker {
+ public:
+ TestVarTracker() {}
+ virtual ~TestVarTracker() {}
+ virtual ArrayBufferVar* CreateArrayBuffer(uint32 size_in_bytes) OVERRIDE {
+ return NULL;
+ }
+};
+
// Implementation of PpapiGlobals for tests that don't need either the host- or
// plugin-specific implementations.
class TestGlobals : public PpapiGlobals {
@@ -28,7 +37,7 @@ class TestGlobals : public PpapiGlobals {
private:
ResourceTracker resource_tracker_;
- VarTracker var_tracker_;
+ TestVarTracker var_tracker_;
DISALLOW_COPY_AND_ASSIGN(TestGlobals);
};