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