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

Side by Side Diff: chrome/browser/ui/webui/media_router/media_router_test.h

Issue 2410553002: Show Media Router toolbar icon ephemerally for MR dialogs (Closed)
Patch Set: Deleted the first patch set on accident, responded to Mark's comments inline below Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_TEST_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_TEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_TEST_H_ 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_TEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/test/base/browser_with_test_window_test.h" 9 #include "chrome/test/base/browser_with_test_window_test.h"
10 #include "extensions/common/feature_switch.h" 10 #include "extensions/common/feature_switch.h"
11 11
12 class BrowserWindow; 12 class BrowserWindow;
13 class TestingProfile;
13 14
14 class MediaRouterTest : public BrowserWithTestWindowTest { 15 class MediaRouterTest : public BrowserWithTestWindowTest {
15 public: 16 public:
17 // |require_mock_ui_service_| defaults to false in the default ctor.
16 MediaRouterTest(); 18 MediaRouterTest();
19 explicit MediaRouterTest(bool require_mock_ui_service);
17 ~MediaRouterTest() override; 20 ~MediaRouterTest() override;
18 21
22 // BrowserWithTestWindowTest:
23 TestingProfile* CreateProfile() override;
24
19 protected: 25 protected:
20 // BrowserWithTestWindowTest override. 26 // BrowserWithTestWindowTest override.
21 BrowserWindow* CreateBrowserWindow() override; 27 BrowserWindow* CreateBrowserWindow() override;
22 28
23 private: 29 private:
24 extensions::FeatureSwitch::ScopedOverride feature_override_; 30 extensions::FeatureSwitch::ScopedOverride feature_override_;
31
32 // When this is set to true, MockMediaRouterUIService is instantiated.
33 // Otherwise, no MediaRouterUIService is instantiated.
34 bool require_mock_ui_service_;
35
25 DISALLOW_COPY_AND_ASSIGN(MediaRouterTest); 36 DISALLOW_COPY_AND_ASSIGN(MediaRouterTest);
26 }; 37 };
27 38
28 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_TEST_H_ 39 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698