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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm

Issue 6250141: Sidebar mini tabs UI (views version).... Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/renderer_host/site_instance.h" 9 #include "chrome/browser/renderer_host/site_instance.h"
10 #include "chrome/browser/ui/cocoa/browser_test_helper.h" 10 #include "chrome/browser/ui/cocoa/browser_test_helper.h"
11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
12 #import "chrome/browser/ui/cocoa/new_tab_button.h" 12 #import "chrome/browser/ui/cocoa/new_tab_button.h"
13 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" 13 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
14 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" 14 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.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)onSelectTab:(TabContentsWrapper*)tab {
26 } 26 }
27 - (void)onReplaceTabWithContents:(TabContents*)contents { 27 - (void)onReplaceTabWithContents:(TabContents*)contents {
28 } 28 }
29 - (void)onSelectedTabChange:(TabStripModelObserver::TabChangeType)change { 29 - (void)onSelectedTabChange:(TabStripModelObserver::TabChangeType)change {
30 } 30 }
31 - (void)onTabDetachedWithContents:(TabContents*)contents { 31 - (void)onTabDetachedWithContents:(TabContents*)contents {
32 } 32 }
33 @end 33 @end
34 34
35 namespace { 35 namespace {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/cocoa/view_id_util_browsertest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698