diff options
Diffstat (limited to 'chrome/browser/ui/browser_command_controller_unittest.cc')
-rw-r--r-- | chrome/browser/ui/browser_command_controller_unittest.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/chrome/browser/ui/browser_command_controller_unittest.cc b/chrome/browser/ui/browser_command_controller_unittest.cc index 8f4b72b..e906fcf 100644 --- a/chrome/browser/ui/browser_command_controller_unittest.cc +++ b/chrome/browser/ui/browser_command_controller_unittest.cc @@ -175,7 +175,7 @@ TEST_F(BrowserCommandControllerTest, OldAvatarMenuEnabledForOneOrMoreProfiles) { if (!profiles::IsMultipleProfilesEnabled()) return; - EXPECT_FALSE(switches::IsNewProfileManagement()); + EXPECT_FALSE(switches::IsNewAvatarMenu()); TestingProfileManager testing_profile_manager( TestingBrowserProcess::GetGlobal()); @@ -211,8 +211,7 @@ TEST_F(BrowserCommandControllerTest, NewAvatarMenuEnabledWhenOnlyOneProfile) { return; // The command line is reset at the end of every test by the test suite. - switches::EnableNewProfileManagementForTesting( - CommandLine::ForCurrentProcess()); + switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess()); TestingProfileManager testing_profile_manager( TestingBrowserProcess::GetGlobal()); @@ -238,8 +237,7 @@ TEST_F(BrowserCommandControllerTest, NewAvatarMenuEnabledInGuestMode) { return; // The command line is reset at the end of every test by the test suite. - switches::EnableNewProfileManagementForTesting( - CommandLine::ForCurrentProcess()); + switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess()); TestingProfileManager testing_profile_manager( TestingBrowserProcess::GetGlobal()); @@ -287,13 +285,12 @@ TEST_F(BrowserCommandControllerTest, AvatarMenuAlwaysDisabledInIncognitoMode) { const CommandUpdater* command_updater = command_controller.command_updater(); // The old style avatar menu should be disabled. - EXPECT_FALSE(switches::IsNewProfileManagement()); + EXPECT_FALSE(switches::IsNewAvatarMenu()); EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); // The new style avatar menu should also be disabled. // The command line is reset at the end of every test by the test suite. - switches::EnableNewProfileManagementForTesting( - CommandLine::ForCurrentProcess()); + switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess()); EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); } |