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

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

Issue 2769014: Mac/clang: Possibly contentious changes. (Closed)
Patch Set: comments2 Created 10 years, 6 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
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 "app/theme_provider.h" 7 #include "app/theme_provider.h"
8 #include "base/scoped_nsobject.h" 8 #include "base/scoped_nsobject.h"
9 #include "chrome/browser/browser_theme_provider.h" 9 #include "chrome/browser/browser_theme_provider.h"
10 #import "chrome/browser/cocoa/bookmark_bar_controller.h" 10 #import "chrome/browser/cocoa/bookmark_bar_controller.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 @end 54 @end
55 55
56 // Allows us to control which way the view is rendered. 56 // Allows us to control which way the view is rendered.
57 @interface DrawDetachedBarFakeController : 57 @interface DrawDetachedBarFakeController :
58 NSObject<BookmarkBarState, BookmarkBarToolbarViewController> { 58 NSObject<BookmarkBarState, BookmarkBarToolbarViewController> {
59 @private 59 @private
60 int currentTabContentsHeight_; 60 int currentTabContentsHeight_;
61 ThemeProvider* themeProvider_; 61 ThemeProvider* themeProvider_;
62 bookmarks::VisualState visualState_; 62 bookmarks::VisualState visualState_;
63 } 63 }
64 @property(assign) int currentTabContentsHeight; 64 @property (nonatomic, assign) int currentTabContentsHeight;
65 @property(assign) ThemeProvider* themeProvider; 65 @property (nonatomic, assign) ThemeProvider* themeProvider;
66 @property(assign) bookmarks::VisualState visualState; 66 @property (nonatomic, assign) bookmarks::VisualState visualState;
67 67
68 // |BookmarkBarState| protocol: 68 // |BookmarkBarState| protocol:
69 - (BOOL)isVisible; 69 - (BOOL)isVisible;
70 - (BOOL)isAnimationRunning; 70 - (BOOL)isAnimationRunning;
71 - (BOOL)isInState:(bookmarks::VisualState)state; 71 - (BOOL)isInState:(bookmarks::VisualState)state;
72 - (BOOL)isAnimatingToState:(bookmarks::VisualState)state; 72 - (BOOL)isAnimatingToState:(bookmarks::VisualState)state;
73 - (BOOL)isAnimatingFromState:(bookmarks::VisualState)state; 73 - (BOOL)isAnimatingFromState:(bookmarks::VisualState)state;
74 - (BOOL)isAnimatingFromState:(bookmarks::VisualState)fromState 74 - (BOOL)isAnimatingFromState:(bookmarks::VisualState)fromState
75 toState:(bookmarks::VisualState)toState; 75 toState:(bookmarks::VisualState)toState;
76 - (BOOL)isAnimatingBetweenState:(bookmarks::VisualState)fromState 76 - (BOOL)isAnimatingBetweenState:(bookmarks::VisualState)fromState
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 EXPECT_CALL(provider, GetBitmapNamed(IDR_THEME_NTP_BACKGROUND)) 182 EXPECT_CALL(provider, GetBitmapNamed(IDR_THEME_NTP_BACKGROUND))
183 .WillRepeatedly(Return(&fake_bg)); 183 .WillRepeatedly(Return(&fake_bg));
184 184
185 [controller_.get() setThemeProvider:&provider]; 185 [controller_.get() setThemeProvider:&provider];
186 [controller_.get() setCurrentTabContentsHeight:200]; 186 [controller_.get() setCurrentTabContentsHeight:200];
187 187
188 [view_ display]; 188 [view_ display];
189 } 189 }
190 190
191 // TODO(viettrungluu): write more unit tests, especially after my refactoring. 191 // TODO(viettrungluu): write more unit tests, especially after my refactoring.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698