summaryrefslogtreecommitdiffstats
path: root/chrome/browser/site_instance_unittest.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 18:31:26 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 18:31:26 +0000
commit8c8657d61fb8792985888c88730b2eb2f4fc4019 (patch)
tree73f4290e22afe39a19d64a0792a5a2ff2740a32c /chrome/browser/site_instance_unittest.cc
parent52ef74f432e2fb08be4f7ea323244884894fc656 (diff)
downloadchromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.zip
chromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.tar.gz
chromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.tar.bz2
Move functions required by the rest of the browser from RenderProcessHost to an interface and move the implementation to BrowserRenderProcessHost. This will allow me to write render view unit tests without using the actual renderer, but there are no tests yet.
Review URL: http://codereview.chromium.org/18132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/site_instance_unittest.cc')
-rw-r--r--chrome/browser/site_instance_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/site_instance_unittest.cc b/chrome/browser/site_instance_unittest.cc
index 16e6883..647a221 100644
--- a/chrome/browser/site_instance_unittest.cc
+++ b/chrome/browser/site_instance_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "chrome/browser/render_view_host.h"
+#include "chrome/browser/renderer_host/browser_render_process_host.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/web_contents.h"
#include "chrome/common/render_messages.h"
@@ -175,8 +176,10 @@ TEST_F(SiteInstanceTest, UpdateMaxPageID) {
TEST_F(SiteInstanceTest, GetProcess) {
// Ensure that GetProcess returns the process based on its host id.
scoped_ptr<TestingProfile> profile(new TestingProfile());
- scoped_ptr<RenderProcessHost> host1(new RenderProcessHost(profile.get()));
- scoped_refptr<SiteInstance> instance(SiteInstance::CreateSiteInstance(profile.get()));
+ scoped_ptr<BrowserRenderProcessHost> host1(
+ new BrowserRenderProcessHost(profile.get()));
+ scoped_refptr<SiteInstance> instance(
+ SiteInstance::CreateSiteInstance(profile.get()));
instance.get()->set_process_host_id(host1.get()->host_id());
EXPECT_EQ(host1.get(), instance.get()->GetProcess());