OLD | NEW |
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 #include "chrome/browser/ui/webui/media_router/media_router_test.h" | 5 #include "chrome/browser/ui/webui/media_router/media_router_test.h" |
6 | 6 |
7 #include "base/command_line.h" | |
8 #include "chrome/common/chrome_switches.h" | |
9 #include "chrome/test/base/dialog_test_browser_window.h" | 7 #include "chrome/test/base/dialog_test_browser_window.h" |
10 | 8 |
11 MediaRouterTest::MediaRouterTest() { | 9 MediaRouterTest::MediaRouterTest() |
12 } | 10 : feature_override_(extensions::FeatureSwitch::media_router(), true) {} |
13 | 11 |
14 MediaRouterTest::~MediaRouterTest() { | 12 MediaRouterTest::~MediaRouterTest() { |
15 } | 13 } |
16 | 14 |
17 void MediaRouterTest::SetUp() { | |
18 BrowserWithTestWindowTest::SetUp(); | |
19 base::CommandLine::ForCurrentProcess()->AppendSwitch( | |
20 switches::kEnableMediaRouter); | |
21 } | |
22 | |
23 BrowserWindow* MediaRouterTest::CreateBrowserWindow() { | 15 BrowserWindow* MediaRouterTest::CreateBrowserWindow() { |
24 return new DialogTestBrowserWindow; | 16 return new DialogTestBrowserWindow; |
25 } | 17 } |
OLD | NEW |