OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/browser_ppapi_host.h" | 10 #include "content/public/browser/browser_ppapi_host.h" |
11 #include "ppapi/proxy/resource_message_test_sink.h" | 11 #include "ppapi/proxy/resource_message_test_sink.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 class BrowserPpapiHostImpl; | 15 class BrowserPpapiHostImpl; |
16 | 16 |
17 // Test harness for testing Pepper resource hosts in the browser. This will | 17 // Test harness for testing Pepper resource hosts in the browser. This will |
18 // construct a BrowserPpapiHost connected to a test sink for testing messages. | 18 // construct a BrowserPpapiHost connected to a test sink for testing messages. |
19 class BrowserPpapiHostTest { | 19 class BrowserPpapiHostTest { |
20 public: | 20 public: |
21 BrowserPpapiHostTest(); | 21 BrowserPpapiHostTest(); |
22 virtual ~BrowserPpapiHostTest(); | 22 virtual ~BrowserPpapiHostTest(); |
23 | 23 |
24 ppapi::proxy::ResourceMessageTestSink& sink() { return sink_; } | 24 ppapi::proxy::ResourceMessageTestSink& sink() { return sink_; } |
25 BrowserPpapiHost* GetPpapiHost(); | 25 BrowserPpapiHost* GetBrowserPpapiHost(); |
26 | 26 |
27 private: | 27 private: |
28 ppapi::proxy::ResourceMessageTestSink sink_; | 28 ppapi::proxy::ResourceMessageTestSink sink_; |
29 | 29 |
30 scoped_refptr<BrowserPpapiHostImpl> ppapi_host_; | 30 scoped_refptr<BrowserPpapiHostImpl> ppapi_host_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostTest); | 32 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostTest); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace content | 35 } // namespace content |
36 | 36 |
37 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ | 37 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ |
OLD | NEW |