summaryrefslogtreecommitdiffstats
path: root/chrome/browser/site_instance_unittest.cc
diff options
context:
space:
mode:
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());