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 #include "base/scoped_ptr.h" |
| 6 #include "ipc/ipc_test_sink.h" |
| 7 #include "ppapi/c/pp_instance.h" |
| 8 #include "ppapi/proxy/plugin_dispatcher.h" |
| 9 #include "ppapi/proxy/plugin_resource_tracker.h" |
| 10 #include "ppapi/proxy/plugin_var_tracker.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 |
| 13 namespace pp { |
| 14 namespace proxy { |
| 15 |
| 16 // Test harness for the plugin side of the proxy. |
| 17 class PluginProxyTest : public testing::Test { |
| 18 public: |
| 19 PluginProxyTest(); |
| 20 ~PluginProxyTest(); |
| 21 |
| 22 virtual void SetUp(); |
| 23 virtual void TearDown(); |
| 24 |
| 25 // The instance ID associated with the plugin dispatcher. |
| 26 PP_Instance pp_instance() const { return pp_instance_; } |
| 27 |
| 28 PluginDispatcher* plugin_dispatcher() { return plugin_dispatcher_.get(); } |
| 29 |
| 30 PluginResourceTracker& resource_tracker() { return resource_tracker_; } |
| 31 PluginVarTracker& var_tracker() { return var_tracker_; } |
| 32 |
| 33 IPC::TestSink& sink() { return sink_; } |
| 34 |
| 35 private: |
| 36 PluginResourceTracker resource_tracker_; |
| 37 PluginVarTracker var_tracker_; |
| 38 |
| 39 PP_Instance pp_instance_; |
| 40 scoped_ptr<PluginDispatcher> plugin_dispatcher_; |
| 41 |
| 42 IPC::TestSink sink_; |
| 43 }; |
| 44 |
| 45 } // namespace proxy |
| 46 } // namespace pp |
OLD | NEW |