| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/tab_strip_controller.h" | 10 #import "chrome/browser/cocoa/tab_strip_controller.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual bool CanRestoreTab() { | 56 virtual bool CanRestoreTab() { |
| 57 return true; | 57 return true; |
| 58 } | 58 } |
| 59 virtual void RestoreTab() {} | 59 virtual void RestoreTab() {} |
| 60 | 60 |
| 61 virtual bool CanCloseContentsAt(int index) { return true; } | 61 virtual bool CanCloseContentsAt(int index) { return true; } |
| 62 | 62 |
| 63 virtual bool CanBookmarkAllTabs() const { return false; } | 63 virtual bool CanBookmarkAllTabs() const { return false; } |
| 64 | 64 |
| 65 virtual void BookmarkAllTabs() {} | 65 virtual void BookmarkAllTabs() {} |
| 66 virtual bool UseVerticalTabs() const { return false; } | |
| 67 virtual void ToggleUseVerticalTabs() {} | |
| 68 }; | 66 }; |
| 69 | 67 |
| 70 class TabStripControllerTest : public CocoaTest { | 68 class TabStripControllerTest : public CocoaTest { |
| 71 public: | 69 public: |
| 72 TabStripControllerTest() { | 70 TabStripControllerTest() { |
| 73 Browser* browser = browser_helper_.browser(); | 71 Browser* browser = browser_helper_.browser(); |
| 74 BrowserWindow* browser_window = browser_helper_.CreateBrowserWindow(); | 72 BrowserWindow* browser_window = browser_helper_.CreateBrowserWindow(); |
| 75 NSWindow* window = browser_window->GetNativeHandle(); | 73 NSWindow* window = browser_window->GetNativeHandle(); |
| 76 NSView* parent = [window contentView]; | 74 NSView* parent = [window contentView]; |
| 77 NSRect content_frame = [parent frame]; | 75 NSRect content_frame = [parent frame]; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // TODO(pinkerton): Implement http://crbug.com/10899 | 138 // TODO(pinkerton): Implement http://crbug.com/10899 |
| 141 } | 139 } |
| 142 | 140 |
| 143 // Test that changing the number of tabs broadcasts a | 141 // Test that changing the number of tabs broadcasts a |
| 144 // kTabStripNumberOfTabsChanged notifiction. | 142 // kTabStripNumberOfTabsChanged notifiction. |
| 145 TEST_F(TabStripControllerTest, Notifications) { | 143 TEST_F(TabStripControllerTest, Notifications) { |
| 146 // TODO(pinkerton): Implement http://crbug.com/10899 | 144 // TODO(pinkerton): Implement http://crbug.com/10899 |
| 147 } | 145 } |
| 148 | 146 |
| 149 } // namespace | 147 } // namespace |
| OLD | NEW |