Index: chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc |
diff --git a/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc b/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc |
index add326148d8fdc0946b0cd0b042734b593e8c412..062151ba44d87125a5e9cf95052c671665edf1a7 100644 |
--- a/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc |
+++ b/chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc |
@@ -89,29 +89,3 @@ |
EXPECT_TRUE(model()->IsVisibleAt(i)); |
} |
} |
- |
-#if defined(GOOGLE_CHROME_BUILD) |
-// Tests whether the cloud services item is correctly toggled. This menu item |
-// is only availble on official Chrome builds. |
-TEST_F(MediaRouterContextualMenuUnitTest, ToggleCloudServicesItem) { |
- // The Media Router Action has a getter for the model, but not the delegate. |
- // Create the MediaRouterContextualMenu ui::SimpleMenuModel::Delegate here. |
- MediaRouterContextualMenu menu(browser()); |
- |
- // Set up an authenticated account such that the cloud services menu item is |
- // surfaced. Whether or not it is surfaced is tested in the "Basic" test. |
- signin_manager()->SetAuthenticatedAccountInfo("foo@bar.com", "password"); |
- |
- // By default, the command is not checked. |
- EXPECT_FALSE(menu.IsCommandIdChecked( |
- IDC_MEDIA_ROUTER_CLOUD_SERVICES_TOGGLE)); |
- |
- menu.ExecuteCommand(IDC_MEDIA_ROUTER_CLOUD_SERVICES_TOGGLE, 0); |
- EXPECT_TRUE(menu.IsCommandIdChecked( |
- IDC_MEDIA_ROUTER_CLOUD_SERVICES_TOGGLE)); |
- |
- menu.ExecuteCommand(IDC_MEDIA_ROUTER_CLOUD_SERVICES_TOGGLE, 0); |
- EXPECT_FALSE(menu.IsCommandIdChecked( |
- IDC_MEDIA_ROUTER_CLOUD_SERVICES_TOGGLE)); |
-} |
-#endif // GOOGLE_CHROME_BUILD |