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

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

Issue 1415333002: [Media Router] Add experiment control logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/media_router/media_router_test.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/media_router/media_router_test.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698