0
Files
src/content/renderer/browser_plugin/browser_plugin_browsertest.h
fsamuel@chromium.org 305be7b102 Browser Plugin: Implement getProcessId
When we commit a navigation, we forward the RenderProcessHost ID to the Browser Plugin in the embedder so that
we can query it via getProcessId()

BUG=151212

Review URL: https://codereview.chromium.org/10965017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157994 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-21 15:46:55 +00:00

44 lines
1.5 KiB
C++

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_
#define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_
#include <string>
#include "base/memory/scoped_ptr.h"
#include "content/public/renderer/content_renderer_client.h"
#include "content/public/test/render_view_test.h"
#include "content/renderer/browser_plugin/mock_browser_plugin_manager.h"
#include "content/renderer/render_view_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
class RenderThreadImpl;
namespace content {
class BrowserPluginTest : public RenderViewTest {
public:
BrowserPluginTest();
virtual ~BrowserPluginTest();
virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
MockBrowserPluginManager* browser_plugin_manager() const {
return browser_plugin_manager_.get();
}
std::string ExecuteScriptAndReturnString(const std::string& script);
int ExecuteScriptAndReturnInt(const std::string& script);
private:
scoped_ptr<MockBrowserPluginManager> browser_plugin_manager_;
ContentRendererClient content_renderer_client_;
};
} // namespace content
#endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_