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

Unified Diff: chrome/browser/ui/toolbar/media_router_contextual_menu.h

Issue 2201423003: [Reland] [Media Router Contextual Menu] Test 'checked' state of cloud services item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add friend test. Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/media_router_contextual_menu.h
diff --git a/chrome/browser/ui/toolbar/media_router_contextual_menu.h b/chrome/browser/ui/toolbar/media_router_contextual_menu.h
index 234f7852597e4be46c1ef75b09ec94a17e130c61..1fdb949c495505b575e648dd3f8501d494bc1348 100644
--- a/chrome/browser/ui/toolbar/media_router_contextual_menu.h
+++ b/chrome/browser/ui/toolbar/media_router_contextual_menu.h
@@ -20,6 +20,11 @@ class MediaRouterContextualMenu : public ui::SimpleMenuModel::Delegate {
ui::MenuModel* menu_model() { return &menu_model_; }
private:
+#if defined(GOOGLE_CHROME_BUILD)
+ FRIEND_TEST_ALL_PREFIXES(MediaRouterContextualMenuUnitTest,
msw 2016/08/08 18:07:11 nit: I'd rather see a static cast to a ui::SimpleM
apacible 2016/08/09 06:21:39 Thanks. We've been using friend tests for other Me
+ ToggleCloudServicesItem);
+#endif // GOOGLE_CHROME_BUILD
+
// ui::SimpleMenuModel::Delegate:
bool IsCommandIdChecked(int command_id) const override;
bool IsCommandIdEnabled(int command_id) const override;
« no previous file with comments | « no previous file | chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698