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