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

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm

Issue 2174973002: [Mac][MD User Menu] Revamped signin/sync error surfacing UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: After refactoring Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
index 1e3e7455d6ac286ec53afa43a249fe64d835d6a8..26572c6e2fb2308e3c3c8600457e1a52e9aa9fb6 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
@@ -26,7 +26,7 @@
// Defined in the AvatarButtonController implementation.
@interface AvatarButtonController (ExposedForTesting)
-- (void)updateErrorStatus:(BOOL)hasError;
+- (void)setErrorStatus:(BOOL)hasError;
@end
// Subclassing AvatarButtonController to be able to control the state of
@@ -102,7 +102,7 @@ TEST_F(AvatarButtonControllerTest, ProfileButtonWithErrorShown) {
testing_profile_manager()->CreateTestingProfile("batman");
EXPECT_EQ(0, [button() image].size.width);
- [controller() updateErrorStatus:true];
+ [controller() setErrorStatus:true];
ASSERT_FALSE([view() isHidden]);
EXPECT_NSEQ(@"Person 1", [button() title]);

Powered by Google App Engine
This is Rietveld 408576698