Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1058)

Unified Diff: content/browser/tab_contents/tab_contents_unittest.cc

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/test_tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents_unittest.cc
===================================================================
--- content/browser/tab_contents/tab_contents_unittest.cc (revision 118952)
+++ content/browser/tab_contents/tab_contents_unittest.cc (working copy)
@@ -8,7 +8,7 @@
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/render_widget_host_view.h"
#include "content/browser/renderer_host/test_render_view_host.h"
-#include "content/browser/site_instance.h"
+#include "content/browser/site_instance_impl.h"
#include "content/browser/tab_contents/interstitial_page.h"
#include "content/browser/tab_contents/navigation_entry_impl.h"
#include "content/browser/tab_contents/test_tab_contents.h"
@@ -29,6 +29,7 @@
using content::BrowserThread;
using content::NavigationEntry;
using content::NavigationEntryImpl;
+using content::SiteInstance;
using content::WebContents;
using content::WebUIController;
using webkit::forms::PasswordForm;
@@ -168,7 +169,7 @@
protected:
virtual RenderViewHost* CreateRenderViewHost() {
return new TestRenderViewHost(
- SiteInstance::CreateSiteInstance(tab()->GetBrowserContext()),
+ SiteInstance::Create(tab()->GetBrowserContext()),
this, MSG_ROUTING_NONE);
}
@@ -278,7 +279,7 @@
// Test to ensure UpdateMaxPageID is working properly.
TEST_F(TabContentsTest, UpdateMaxPageID) {
SiteInstance* instance1 = contents()->GetSiteInstance();
- scoped_refptr<SiteInstance> instance2(SiteInstance::CreateSiteInstance(NULL));
+ scoped_refptr<SiteInstance> instance2(SiteInstance::Create(NULL));
// Starts at -1.
EXPECT_EQ(-1, contents()->GetMaxPageID());
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/test_tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698