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

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

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Index: chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm (revision 145001)
+++ chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm (working copy)
@@ -6,7 +6,8 @@
#include <vector>
-#import "chrome/browser/ui/browser_window.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
+#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
#import "chrome/browser/ui/cocoa/new_tab_button.h"
#import "chrome/browser/ui/cocoa/tabs/tab_controller.h"
@@ -118,9 +119,8 @@
TEST_F(TabStripControllerTest, AddRemoveTabs) {
EXPECT_TRUE(model_->empty());
SiteInstance* instance = SiteInstance::Create(profile());
- TabContents* tab_contents =
- Browser::TabContentsFactory(profile(), instance,
- MSG_ROUTING_NONE, NULL, NULL);
+ TabContents* tab_contents = chrome::TabContentsFactory(
+ profile(), instance, MSG_ROUTING_NONE, NULL, NULL);
model_->AppendTabContents(tab_contents, true);
EXPECT_EQ(model_->count(), 1);
}
@@ -136,16 +136,14 @@
TEST_F(TabStripControllerTest, CorrectToolTipText) {
// Create tab 1.
SiteInstance* instance = SiteInstance::Create(profile());
- TabContents* tab_contents =
- Browser::TabContentsFactory(profile(), instance,
- MSG_ROUTING_NONE, NULL, NULL);
+ TabContents* tab_contents = chrome::TabContentsFactory(
+ profile(), instance, MSG_ROUTING_NONE, NULL, NULL);
model_->AppendTabContents(tab_contents, true);
// Create tab 2.
SiteInstance* instance2 = SiteInstance::Create(profile());
- TabContents* tab_contents2 =
- Browser::TabContentsFactory(profile(), instance2,
- MSG_ROUTING_NONE, NULL, NULL);
+ TabContents* tab_contents2 = chrome::TabContentsFactory(
+ profile(), instance2, MSG_ROUTING_NONE, NULL, NULL);
model_->AppendTabContents(tab_contents2, true);
// Set tab 1 tooltip.
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698