| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEB_UI_TEST_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEB_UI_TEST_H_ |
| 7 |
| 8 #include "chrome/test/base/browser_with_test_window_test.h" |
| 9 |
| 10 class MediaRouterWebUITest : public BrowserWithTestWindowTest { |
| 11 public: |
| 12 // |require_mock_ui_service_| defaults to false in the default ctor. |
| 13 MediaRouterWebUITest(); |
| 14 explicit MediaRouterWebUITest(bool require_mock_ui_service); |
| 15 ~MediaRouterWebUITest() override; |
| 16 |
| 17 protected: |
| 18 // BrowserWithTestWindowTest: |
| 19 TestingProfile* CreateProfile() override; |
| 20 BrowserWindow* CreateBrowserWindow() override; |
| 21 |
| 22 private: |
| 23 // When this is set to true, MockMediaRouterUIService is instantiated. |
| 24 // Otherwise, no MediaRouterUIService is instantiated. |
| 25 bool require_mock_ui_service_; |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(MediaRouterWebUITest); |
| 28 }; |
| 29 |
| 30 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_WEB_UI_TEST_H_ |
| OLD | NEW |