Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / content / browser / renderer_host / pepper / browser_ppapi_host_test.h
blob3f375eea10769e9a7a2fadab705fdfa1142ac6d3
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.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_
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"
13 namespace content {
15 class BrowserPpapiHostImpl;
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();
24 ppapi::proxy::ResourceMessageTestSink& sink() { return sink_; }
25 BrowserPpapiHost* GetBrowserPpapiHost();
27 private:
28 ppapi::proxy::ResourceMessageTestSink sink_;
30 scoped_ptr<BrowserPpapiHostImpl> ppapi_host_;
32 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostTest);
35 } // namespace content
37 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_TEST_H_