Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: content/browser/renderer_host/pepper/browser_ppapi_host_test.h

Issue 10826072: Implement browser side of PPB_Printing resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | content/browser/renderer_host/pepper/browser_ppapi_host_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698