browser_ppapi_host_test.cc revision 5821806d5e7f356e8fa4b058a389a808ea183019
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#include "content/browser/renderer_host/pepper/browser_ppapi_host_test.h"
6
7#include "base/process_util.h"
8#include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
9
10namespace content {
11
12BrowserPpapiHostTest::BrowserPpapiHostTest()
13    : sink_() {
14  ppapi_host_.reset(new BrowserPpapiHostImpl(
15                        &sink_,
16                        ppapi::PpapiPermissions::AllPermissions()));
17  ppapi_host_->set_plugin_process_handle(base::GetCurrentProcessHandle());
18}
19
20BrowserPpapiHostTest::~BrowserPpapiHostTest() {
21}
22
23BrowserPpapiHost* BrowserPpapiHostTest::GetBrowserPpapiHost() {
24  return ppapi_host_.get();
25}
26
27}  // namespace content
28