OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
12 #include "ipc/ipc_test_sink.h" | 12 #include "ipc/ipc_test_sink.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/proxy/host_dispatcher.h" | 14 #include "ppapi/proxy/host_dispatcher.h" |
15 #include "ppapi/proxy/plugin_dispatcher.h" | 15 #include "ppapi/proxy/plugin_dispatcher.h" |
16 #include "ppapi/proxy/plugin_resource_tracker.h" | 16 #include "ppapi/proxy/plugin_resource_tracker.h" |
17 #include "ppapi/proxy/plugin_var_tracker.h" | 17 #include "ppapi/proxy/plugin_var_tracker.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace pp { | 20 namespace ppapi { |
21 namespace proxy { | 21 namespace proxy { |
22 | 22 |
23 // Base class for plugin and host test harnesses. Tests will not use this | 23 // Base class for plugin and host test harnesses. Tests will not use this |
24 // directly. Instead, use the PluginProxyTest, HostProxyTest, or TwoWayTest. | 24 // directly. Instead, use the PluginProxyTest, HostProxyTest, or TwoWayTest. |
25 class ProxyTestHarnessBase { | 25 class ProxyTestHarnessBase { |
26 public: | 26 public: |
27 ProxyTestHarnessBase(); | 27 ProxyTestHarnessBase(); |
28 virtual ~ProxyTestHarnessBase(); | 28 virtual ~ProxyTestHarnessBase(); |
29 | 29 |
30 PP_Module pp_module() const { return pp_module_; } | 30 PP_Module pp_module() const { return pp_module_; } |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // will point to host_. This makes it convenient when we're starting and | 233 // will point to host_. This makes it convenient when we're starting and |
234 // stopping the harnesses. | 234 // stopping the harnesses. |
235 ProxyTestHarnessBase* remote_harness_; | 235 ProxyTestHarnessBase* remote_harness_; |
236 ProxyTestHarnessBase* local_harness_; | 236 ProxyTestHarnessBase* local_harness_; |
237 | 237 |
238 base::WaitableEvent channel_created_; | 238 base::WaitableEvent channel_created_; |
239 base::WaitableEvent shutdown_event_; | 239 base::WaitableEvent shutdown_event_; |
240 }; | 240 }; |
241 | 241 |
242 } // namespace proxy | 242 } // namespace proxy |
243 } // namespace pp | 243 } // namespace ppapi |
OLD | NEW |