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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm

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 | « chrome/browser/ui/cocoa/tabpose_window_unittest.mm ('k') | chrome/browser/ui/views/dom_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm (revision 118952)
+++ chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm (working copy)
@@ -14,11 +14,12 @@
#import "chrome/browser/ui/cocoa/tabs/tab_view.h"
#import "chrome/browser/ui/cocoa/tabs/tab_controller.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
-#include "content/browser/site_instance.h"
+#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
+using content::SiteInstance;
using content::WebContents;
@interface TestTabStripControllerDelegate
@@ -168,7 +169,7 @@
// the tab strip.
TEST_F(TabStripControllerTest, AddRemoveTabs) {
EXPECT_TRUE(model_->empty());
- SiteInstance* instance = SiteInstance::CreateSiteInstance(profile());
+ SiteInstance* instance = SiteInstance::Create(profile());
TabContentsWrapper* tab_contents =
Browser::TabContentsFactory(profile(), instance,
MSG_ROUTING_NONE, NULL, NULL);
@@ -192,14 +193,14 @@
TEST_F(TabStripControllerTest, CorrectToolTipText) {
// Create tab 1.
- SiteInstance* instance = SiteInstance::CreateSiteInstance(profile());
+ SiteInstance* instance = SiteInstance::Create(profile());
TabContentsWrapper* tab_contents =
Browser::TabContentsFactory(profile(), instance,
MSG_ROUTING_NONE, NULL, NULL);
model_->AppendTabContents(tab_contents, true);
// Create tab 2.
- SiteInstance* instance2 = SiteInstance::CreateSiteInstance(profile());
+ SiteInstance* instance2 = SiteInstance::Create(profile());
TabContentsWrapper* tab_contents2 =
Browser::TabContentsFactory(profile(), instance2,
MSG_ROUTING_NONE, NULL, NULL);
« no previous file with comments | « chrome/browser/ui/cocoa/tabpose_window_unittest.mm ('k') | chrome/browser/ui/views/dom_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698