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

Unified Diff: chrome/browser/ui/webui/media_router/media_router_web_ui_test.h

Issue 2410553002: Show Media Router toolbar icon ephemerally for MR dialogs (Closed)
Patch Set: DISALLOW_COPY_AND_ASSIGN MockMediaRouterActionController Created 4 years, 1 month 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
Index: chrome/browser/ui/webui/media_router/media_router_web_ui_test.h
diff --git a/chrome/browser/ui/webui/media_router/media_router_web_ui_test.h b/chrome/browser/ui/webui/media_router/media_router_web_ui_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e406183224413560175fac30c0b5a18a33f827c
--- /dev/null
+++ b/chrome/browser/ui/webui/media_router/media_router_web_ui_test.h
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEB_UI_TEST_H_
+#define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEB_UI_TEST_H_
+
+#include "chrome/test/base/browser_with_test_window_test.h"
+
+class MediaRouterWebUITest : public BrowserWithTestWindowTest {
+ public:
+ // |require_mock_ui_service_| defaults to false in the default ctor.
+ MediaRouterWebUITest();
+ explicit MediaRouterWebUITest(bool require_mock_ui_service);
+ ~MediaRouterWebUITest() override;
+
+ protected:
+ // BrowserWithTestWindowTest:
+ TestingProfile* CreateProfile() override;
+ BrowserWindow* CreateBrowserWindow() override;
+
+ private:
+ // When this is set to true, MockMediaRouterUIService is instantiated.
+ // Otherwise, no MediaRouterUIService is instantiated.
+ bool require_mock_ui_service_;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUITest);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEB_UI_TEST_H_

Powered by Google App Engine
This is Rietveld 408576698