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

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

Issue 11026050: Fix crash when using Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/ui/cocoa/tabs/tab_strip_controller.mm ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <vector> 7 #include <vector>
8 8
9 #include "chrome/browser/ui/browser_tabstrip.h" 9 #include "chrome/browser/ui/browser_tabstrip.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 22 matching lines...) Expand all
33 @implementation TestTabStripControllerDelegate 33 @implementation TestTabStripControllerDelegate
34 - (void)onActivateTabWithContents:(WebContents*)contents { 34 - (void)onActivateTabWithContents:(WebContents*)contents {
35 } 35 }
36 - (void)onReplaceTabWithContents:(WebContents*)contents { 36 - (void)onReplaceTabWithContents:(WebContents*)contents {
37 } 37 }
38 - (void)onTabChanged:(TabStripModelObserver::TabChangeType)change 38 - (void)onTabChanged:(TabStripModelObserver::TabChangeType)change
39 withContents:(WebContents*)contents { 39 withContents:(WebContents*)contents {
40 } 40 }
41 - (void)onTabDetachedWithContents:(WebContents*)contents { 41 - (void)onTabDetachedWithContents:(WebContents*)contents {
42 } 42 }
43 - (void)onInsertTabWithContents:(WebContents*)contents {
44 }
43 @end 45 @end
44 46
45 @interface TabStripController (Test) 47 @interface TabStripController (Test)
46 48
47 - (void)mouseMoved:(NSEvent*)event; 49 - (void)mouseMoved:(NSEvent*)event;
48 50
49 @end 51 @end
50 52
51 @implementation TabView (Test) 53 @implementation TabView (Test)
52 54
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 223
222 [controller_.get() mouseMoved:event]; 224 [controller_.get() mouseMoved:event];
223 EXPECT_STREQ("Tab2", 225 EXPECT_STREQ("Tab2",
224 [[controller_ view:nil 226 [[controller_ view:nil
225 stringForToolTip:nil 227 stringForToolTip:nil
226 point:NSMakePoint(0,0) 228 point:NSMakePoint(0,0)
227 userData:nil] cStringUsingEncoding:NSASCIIStringEncoding]); 229 userData:nil] cStringUsingEncoding:NSASCIIStringEncoding]);
228 } 230 }
229 231
230 } // namespace 232 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698