| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #import "chrome/browser/browser_window.h" | 7 #import "chrome/browser/browser_window.h" |
| 8 #include "chrome/browser/cocoa/browser_test_helper.h" | 8 #include "chrome/browser/cocoa/browser_test_helper.h" |
| 9 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 9 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
| 10 #import "chrome/browser/cocoa/new_tab_button.h" | 10 #import "chrome/browser/cocoa/new_tab_button.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 // Test adding and removing tabs and making sure that views get added to | 145 // Test adding and removing tabs and making sure that views get added to |
| 146 // the tab strip. | 146 // the tab strip. |
| 147 TEST_F(TabStripControllerTest, AddRemoveTabs) { | 147 TEST_F(TabStripControllerTest, AddRemoveTabs) { |
| 148 EXPECT_TRUE(model_->empty()); | 148 EXPECT_TRUE(model_->empty()); |
| 149 SiteInstance* instance = | 149 SiteInstance* instance = |
| 150 SiteInstance::CreateSiteInstance(browser_helper_.profile()); | 150 SiteInstance::CreateSiteInstance(browser_helper_.profile()); |
| 151 TabContents* tab_contents = | 151 TabContents* tab_contents = |
| 152 new TabContents(browser_helper_.profile(), instance, MSG_ROUTING_NONE, | 152 new TabContents(browser_helper_.profile(), instance, MSG_ROUTING_NONE, |
| 153 NULL); | 153 NULL, NULL); |
| 154 model_->AppendTabContents(tab_contents, true); | 154 model_->AppendTabContents(tab_contents, true); |
| 155 EXPECT_EQ(model_->count(), 1); | 155 EXPECT_EQ(model_->count(), 1); |
| 156 } | 156 } |
| 157 | 157 |
| 158 TEST_F(TabStripControllerTest, SelectTab) { | 158 TEST_F(TabStripControllerTest, SelectTab) { |
| 159 // TODO(pinkerton): Implement http://crbug.com/10899 | 159 // TODO(pinkerton): Implement http://crbug.com/10899 |
| 160 } | 160 } |
| 161 | 161 |
| 162 TEST_F(TabStripControllerTest, RearrangeTabs) { | 162 TEST_F(TabStripControllerTest, RearrangeTabs) { |
| 163 // TODO(pinkerton): Implement http://crbug.com/10899 | 163 // TODO(pinkerton): Implement http://crbug.com/10899 |
| 164 } | 164 } |
| 165 | 165 |
| 166 // Test that changing the number of tabs broadcasts a | 166 // Test that changing the number of tabs broadcasts a |
| 167 // kTabStripNumberOfTabsChanged notifiction. | 167 // kTabStripNumberOfTabsChanged notifiction. |
| 168 TEST_F(TabStripControllerTest, Notifications) { | 168 TEST_F(TabStripControllerTest, Notifications) { |
| 169 // TODO(pinkerton): Implement http://crbug.com/10899 | 169 // TODO(pinkerton): Implement http://crbug.com/10899 |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace | 172 } // namespace |
| OLD | NEW |