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

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

Issue 265073003: [Win, Mac] UI fixes for the delete account button in the new avatar bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix image width on win Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
index bafb0d2aa04bda2d53d5ef11a99749761667aa08..e116a50dc6c5c3a65adb057a731ebecf485701f7 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
@@ -400,16 +400,20 @@ TEST_F(ProfileChooserControllerTest, AccountManagementLayout) {
NSButton* genericAccount =
static_cast<NSButton*>([accountsListSubviews objectAtIndex:0]);
- EXPECT_EQ(@selector(showAccountRemovalView:), [genericAccount action]);
- EXPECT_EQ(controller(), [genericAccount target]);
- EXPECT_NE(-1, [genericAccount tag]);
+ NSButton* genericAccountDelete =
+ static_cast<NSButton*>([[genericAccount subviews] objectAtIndex:0]);
+ EXPECT_EQ(@selector(showAccountRemovalView:), [genericAccountDelete action]);
+ EXPECT_EQ(controller(), [genericAccountDelete target]);
+ EXPECT_NE(-1, [genericAccountDelete tag]);
// Primary accounts are always last.
NSButton* primaryAccount =
static_cast<NSButton*>([accountsListSubviews objectAtIndex:1]);
- EXPECT_EQ(@selector(showAccountRemovalView:), [primaryAccount action]);
- EXPECT_EQ(controller(), [primaryAccount target]);
- EXPECT_EQ(-1, [primaryAccount tag]);
+ NSButton* primaryAccountDelete =
+ static_cast<NSButton*>([[primaryAccount subviews] objectAtIndex:0]);
+ EXPECT_EQ(@selector(showAccountRemovalView:), [primaryAccountDelete action]);
+ EXPECT_EQ(controller(), [primaryAccountDelete target]);
+ EXPECT_EQ(-1, [primaryAccountDelete tag]);
// There should be another separator.
EXPECT_TRUE([[subviews objectAtIndex:3] isKindOfClass:[NSBox class]]);

Powered by Google App Engine
This is Rietveld 408576698