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/tab_contents/tab_contents.h" | 8 #include "chrome/browser/tab_contents/tab_contents.h" |
9 #include "chrome/browser/tab_contents_wrapper.h" | |
10 #include "chrome/browser/renderer_host/site_instance.h" | 9 #include "chrome/browser/renderer_host/site_instance.h" |
11 #include "chrome/browser/ui/cocoa/browser_test_helper.h" | 10 #include "chrome/browser/ui/cocoa/browser_test_helper.h" |
12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
13 #import "chrome/browser/ui/cocoa/new_tab_button.h" | 12 #import "chrome/browser/ui/cocoa/new_tab_button.h" |
14 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" | 13 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" |
15 #import "chrome/browser/ui/cocoa/tab_strip_view.h" | 14 #import "chrome/browser/ui/cocoa/tab_strip_view.h" |
| 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
18 | 18 |
19 @interface TestTabStripControllerDelegate : | 19 @interface TestTabStripControllerDelegate : |
20 NSObject<TabStripControllerDelegate> { | 20 NSObject<TabStripControllerDelegate> { |
21 } | 21 } |
22 @end | 22 @end |
23 | 23 |
24 @implementation TestTabStripControllerDelegate | 24 @implementation TestTabStripControllerDelegate |
25 - (void)onSelectTabWithContents:(TabContents*)contents { | 25 - (void)onSelectTabWithContents:(TabContents*)contents { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // TODO(pinkerton): Implement http://crbug.com/10899 | 168 // TODO(pinkerton): Implement http://crbug.com/10899 |
169 } | 169 } |
170 | 170 |
171 // Test that changing the number of tabs broadcasts a | 171 // Test that changing the number of tabs broadcasts a |
172 // kTabStripNumberOfTabsChanged notifiction. | 172 // kTabStripNumberOfTabsChanged notifiction. |
173 TEST_F(TabStripControllerTest, Notifications) { | 173 TEST_F(TabStripControllerTest, Notifications) { |
174 // TODO(pinkerton): Implement http://crbug.com/10899 | 174 // TODO(pinkerton): Implement http://crbug.com/10899 |
175 } | 175 } |
176 | 176 |
177 } // namespace | 177 } // namespace |
OLD | NEW |