OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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_SHARED_IMPL_TEST_GLOBALS_H_ |
| 6 #define PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "ppapi/shared_impl/ppapi_globals.h" |
| 10 #include "ppapi/shared_impl/resource_tracker.h" |
| 11 #include "ppapi/shared_impl/var_tracker.h" |
| 12 |
| 13 namespace ppapi { |
| 14 |
| 15 // Implementation of PpapiGlobals for tests that don't need either the host- or |
| 16 // plugin-specific implementations. |
| 17 class TestGlobals : public PpapiGlobals { |
| 18 public: |
| 19 TestGlobals(); |
| 20 virtual ~TestGlobals(); |
| 21 |
| 22 // PpapiGlobals implementation. |
| 23 virtual ResourceTracker* GetResourceTracker() OVERRIDE; |
| 24 virtual VarTracker* GetVarTracker() OVERRIDE; |
| 25 |
| 26 private: |
| 27 ResourceTracker resource_tracker_; |
| 28 VarTracker var_tracker_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(TestGlobals); |
| 31 }; |
| 32 |
| 33 } // namespace ppapi |
| 34 |
| 35 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ |
OLD | NEW |