OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/browser_ppapi_host.h" |
| 11 #include "ppapi/proxy/resource_message_test_sink.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class BrowserPpapiHostImpl; |
| 16 |
| 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. |
| 19 class BrowserPpapiHostTest { |
| 20 public: |
| 21 BrowserPpapiHostTest(); |
| 22 virtual ~BrowserPpapiHostTest(); |
| 23 |
| 24 ppapi::proxy::ResourceMessageTestSink& sink() { return sink_; } |
| 25 BrowserPpapiHost* GetPpapiHost(); |
| 26 |
| 27 private: |
| 28 ppapi::proxy::ResourceMessageTestSink sink_; |
| 29 |
| 30 scoped_refptr<BrowserPpapiHostImpl> ppapi_host_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostTest); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_ |
OLD | NEW |