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

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

Issue 100210: Relanding in-progress download bug fix (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/tabs/tab_strip_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "chrome/browser/cocoa/browser_test_helper.h" 7 #include "chrome/browser/cocoa/browser_test_helper.h"
8 #import "chrome/browser/cocoa/cocoa_test_helper.h" 8 #import "chrome/browser/cocoa/cocoa_test_helper.h"
9 #import "chrome/browser/cocoa/tab_strip_controller.h" 9 #import "chrome/browser/cocoa/tab_strip_controller.h"
10 #include "chrome/browser/tab_contents/web_contents.h" 10 #include "chrome/browser/tab_contents/web_contents.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void DuplicateContentsAt(int index) { } 42 virtual void DuplicateContentsAt(int index) { }
43 virtual void CloseFrameAfterDragSession() { } 43 virtual void CloseFrameAfterDragSession() { }
44 virtual void CreateHistoricalTab(TabContents* contents) { } 44 virtual void CreateHistoricalTab(TabContents* contents) { }
45 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents) { 45 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents) {
46 return true; 46 return true;
47 } 47 }
48 virtual bool CanRestoreTab() { 48 virtual bool CanRestoreTab() {
49 return true; 49 return true;
50 } 50 }
51 virtual void RestoreTab() { } 51 virtual void RestoreTab() { }
52
53 virtual bool CanCloseContentsAt(int index) { return true; }
52 }; 54 };
53 55
54 class TabStripControllerTest : public testing::Test { 56 class TabStripControllerTest : public testing::Test {
55 public: 57 public:
56 TabStripControllerTest() { 58 TabStripControllerTest() {
57 NSView* parent = cocoa_helper_.contentView(); 59 NSView* parent = cocoa_helper_.contentView();
58 NSRect content_frame = [parent frame]; 60 NSRect content_frame = [parent frame];
59 61
60 // Create the "switch view" (view that gets changed out when a tab 62 // Create the "switch view" (view that gets changed out when a tab
61 // switches). 63 // switches).
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // TODO(pinkerton): Creating a WebContents crashes an unrelated test, even 121 // TODO(pinkerton): Creating a WebContents crashes an unrelated test, even
120 // if you don't do anything with it. http://crbug.com/10899 122 // if you don't do anything with it. http://crbug.com/10899
121 } 123 }
122 124
123 TEST_F(TabStripControllerTest, RearrangeTabs) { 125 TEST_F(TabStripControllerTest, RearrangeTabs) {
124 // TODO(pinkerton): Creating a WebContents crashes an unrelated test, even 126 // TODO(pinkerton): Creating a WebContents crashes an unrelated test, even
125 // if you don't do anything with it. http://crbug.com/10899 127 // if you don't do anything with it. http://crbug.com/10899
126 } 128 }
127 129
128 } // namespace 130 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/tabs/tab_strip_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698