Index: chrome/browser/ui/browser_command_controller_unittest.cc |
diff --git a/chrome/browser/ui/browser_command_controller_unittest.cc b/chrome/browser/ui/browser_command_controller_unittest.cc |
index a80c7580269c2bda4d415bcf53fdbd1e101d70e7..f293cf8772e43f54aab4045e95f01eeefe515d3d 100644 |
--- a/chrome/browser/ui/browser_command_controller_unittest.cc |
+++ b/chrome/browser/ui/browser_command_controller_unittest.cc |
@@ -173,15 +173,10 @@ TEST_F(BrowserCommandControllerTest, AppFullScreen) { |
EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_FULLSCREEN)); |
} |
-TEST_F(BrowserCommandControllerTest, OldAvatarMenuEnabledForOneOrMoreProfiles) { |
+TEST_F(BrowserCommandControllerTest, AvatarMenuEnabledForOneOrMoreProfiles) { |
if (!profiles::IsMultipleProfilesEnabled()) |
return; |
- // The command line is reset at the end of every test by the test suite. |
- switches::DisableNewAvatarMenuForTesting( |
- base::CommandLine::ForCurrentProcess()); |
- ASSERT_FALSE(switches::IsNewAvatarMenu()); |
Peter Kasting
2015/09/25 23:42:51
It's not a problem that we used to force-disable t
Mike Lerman
2015/09/28 15:23:01
I think we can delete this test now. it tested beh
anthonyvd
2015/09/29 20:23:15
It doesn't seem like it's a problem because the te
|
- |
TestingProfileManager testing_profile_manager( |
TestingBrowserProcess::GetGlobal()); |
ASSERT_TRUE(testing_profile_manager.SetUp()); |
@@ -215,10 +210,6 @@ TEST_F(BrowserCommandControllerTest, NewAvatarMenuEnabledWhenOnlyOneProfile) { |
if (!profiles::IsMultipleProfilesEnabled()) |
return; |
- // The command line is reset at the end of every test by the test suite. |
- switches::EnableNewAvatarMenuForTesting( |
- base::CommandLine::ForCurrentProcess()); |
- |
TestingProfileManager testing_profile_manager( |
TestingBrowserProcess::GetGlobal()); |
ASSERT_TRUE(testing_profile_manager.SetUp()); |
@@ -257,14 +248,6 @@ TEST_F(BrowserCommandControllerTest, AvatarMenuAlwaysDisabledInIncognitoMode) { |
// Both the old style and the new style avatar menu should be disabled. |
Peter Kasting
2015/09/25 23:42:52
Nit: "The avatar menu should be disabled."?
anthonyvd
2015/09/29 20:23:15
Done.
|
EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); |
- if (switches::IsNewAvatarMenu()) { |
- switches::DisableNewAvatarMenuForTesting( |
- base::CommandLine::ForCurrentProcess()); |
- } else { |
- switches::EnableNewAvatarMenuForTesting( |
- base::CommandLine::ForCurrentProcess()); |
- } |
- EXPECT_FALSE(command_updater->IsCommandEnabled(IDC_SHOW_AVATAR_MENU)); |
// The command line is reset at the end of every test by the test suite. |
} |