| 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 e253775477040c76e2ead163752693b06422b016..d4fdeb067da5ab67a81a699874eace041c8dcefe 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm
|
| @@ -99,7 +99,7 @@ TEST_F(ProfileChooserControllerTest, InitialLayoutWithNewMenu) {
|
| StartProfileChooserController();
|
|
|
| NSArray* subviews = [[[controller() window] contentView] subviews];
|
| - ASSERT_EQ(1U, [subviews count]);
|
| + ASSERT_EQ(2U, [subviews count]);
|
| subviews = [[subviews objectAtIndex:0] subviews];
|
|
|
| // Three profiles means we should have one active card, one separator and
|
| @@ -138,7 +138,7 @@ TEST_F(ProfileChooserControllerTest, InitialLayoutWithNewMenu) {
|
|
|
| // Profile icon.
|
| NSView* activeProfileImage = [activeCardSubviews objectAtIndex:2];
|
| - EXPECT_TRUE([activeProfileImage isKindOfClass:[NSImageView class]]);
|
| + EXPECT_TRUE([activeProfileImage isKindOfClass:[NSButton class]]);
|
|
|
| // Profile name.
|
| NSView* activeProfileName = [activeCardSubviews objectAtIndex:1];
|
| @@ -166,7 +166,7 @@ TEST_F(ProfileChooserControllerTest, InitialLayoutWithFastUserSwitcher) {
|
| StartProfileChooserController();
|
|
|
| NSArray* subviews = [[[controller() window] contentView] subviews];
|
| - ASSERT_EQ(1U, [subviews count]);
|
| + ASSERT_EQ(2U, [subviews count]);
|
| subviews = [[subviews objectAtIndex:0] subviews];
|
|
|
| // Three profiles means we should have one active card and a
|
| @@ -209,7 +209,7 @@ TEST_F(ProfileChooserControllerTest, InitialLayoutWithFastUserSwitcher) {
|
|
|
| // Profile icon.
|
| NSView* activeProfileImage = [activeCardSubviews objectAtIndex:2];
|
| - EXPECT_TRUE([activeProfileImage isKindOfClass:[NSImageView class]]);
|
| + EXPECT_TRUE([activeProfileImage isKindOfClass:[NSButton class]]);
|
|
|
| // Profile name.
|
| NSView* activeProfileName = [activeCardSubviews objectAtIndex:1];
|
| @@ -240,7 +240,7 @@ TEST_F(ProfileChooserControllerTest, OtherProfilesSortedAlphabetically) {
|
| StartProfileChooserController();
|
|
|
| NSArray* subviews = [[[controller() window] contentView] subviews];
|
| - ASSERT_EQ(1U, [subviews count]);
|
| + ASSERT_EQ(2U, [subviews count]);
|
| subviews = [[subviews objectAtIndex:0] subviews];
|
| NSString* sortedNames[] = { @"Another Test",
|
| @"New Profile",
|
| @@ -272,7 +272,7 @@ TEST_F(ProfileChooserControllerTest,
|
| switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess());
|
| StartProfileChooserController();
|
| NSArray* subviews = [[[controller() window] contentView] subviews];
|
| - ASSERT_EQ(1U, [subviews count]);
|
| + ASSERT_EQ(2U, [subviews count]);
|
| subviews = [[subviews objectAtIndex:0] subviews];
|
| NSArray* activeCardSubviews = [[subviews objectAtIndex:2] subviews];
|
| NSArray* activeCardLinks = [[activeCardSubviews objectAtIndex:0] subviews];
|
| @@ -301,7 +301,7 @@ TEST_F(ProfileChooserControllerTest,
|
|
|
| StartProfileChooserController();
|
| NSArray* subviews = [[[controller() window] contentView] subviews];
|
| - ASSERT_EQ(1U, [subviews count]);
|
| + ASSERT_EQ(2U, [subviews count]);
|
| subviews = [[subviews objectAtIndex:0] subviews];
|
| NSArray* activeCardSubviews = [[subviews objectAtIndex:2] subviews];
|
| NSArray* activeCardLinks = [[activeCardSubviews objectAtIndex:0] subviews];
|
| @@ -323,7 +323,7 @@ TEST_F(ProfileChooserControllerTest,
|
|
|
| StartProfileChooserController();
|
| NSArray* subviews = [[[controller() window] contentView] subviews];
|
| - ASSERT_EQ(1U, [subviews count]);
|
| + ASSERT_EQ(2U, [subviews count]);
|
| subviews = [[subviews objectAtIndex:0] subviews];
|
| NSArray* activeCardSubviews = [[subviews objectAtIndex:2] subviews];
|
| NSArray* activeCardLinks = [[activeCardSubviews objectAtIndex:0] subviews];
|
| @@ -358,7 +358,7 @@ TEST_F(ProfileChooserControllerTest, AccountManagementLayout) {
|
| profiles::BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT];
|
|
|
| NSArray* subviews = [[[controller() window] contentView] subviews];
|
| - ASSERT_EQ(1U, [subviews count]);
|
| + ASSERT_EQ(2U, [subviews count]);
|
| subviews = [[subviews objectAtIndex:0] subviews];
|
|
|
| // There should be one active card, one accounts container, two separators
|
| @@ -435,7 +435,7 @@ TEST_F(ProfileChooserControllerTest, AccountManagementLayout) {
|
|
|
| // Profile icon.
|
| NSView* activeProfileImage = [activeCardSubviews objectAtIndex:2];
|
| - EXPECT_TRUE([activeProfileImage isKindOfClass:[NSImageView class]]);
|
| + EXPECT_TRUE([activeProfileImage isKindOfClass:[NSButton class]]);
|
|
|
| // Profile name.
|
| NSView* activeProfileName = [activeCardSubviews objectAtIndex:1];
|
|
|