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

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

Issue 10912062: Implement the gamepad API in the IPC proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698