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

Side by Side Diff: chrome/test/media_router/media_router_base_browsertest.cc

Issue 2451573003: [Media Router] Update Media Router flags post-launch. (Closed)
Patch Set: Rebase & respond to apacible@ comments. Created 4 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
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/test/media_router/media_router_base_browsertest.h" 5 #include "chrome/test/media_router/media_router_base_browsertest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 15 matching lines...) Expand all
26 // Command line argument to specify unpacked extension location. 26 // Command line argument to specify unpacked extension location.
27 const char kExtensionUnpacked[] = "extension-unpacked"; 27 const char kExtensionUnpacked[] = "extension-unpacked";
28 } // namespace 28 } // namespace
29 29
30 30
31 namespace media_router { 31 namespace media_router {
32 32
33 MediaRouterBaseBrowserTest::MediaRouterBaseBrowserTest() 33 MediaRouterBaseBrowserTest::MediaRouterBaseBrowserTest()
34 : extension_load_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC, 34 : extension_load_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
35 base::WaitableEvent::InitialState::NOT_SIGNALED), 35 base::WaitableEvent::InitialState::NOT_SIGNALED),
36 extension_host_created_(false), 36 extension_host_created_(false) {
37 feature_override_(extensions::FeatureSwitch::media_router(), true) {
38 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
39 switches::kEnableExperimentalWebPlatformFeatures, "Presentation");
40 } 37 }
41 38
42 MediaRouterBaseBrowserTest::~MediaRouterBaseBrowserTest() { 39 MediaRouterBaseBrowserTest::~MediaRouterBaseBrowserTest() {
43 } 40 }
44 41
45 void MediaRouterBaseBrowserTest::SetUp() { 42 void MediaRouterBaseBrowserTest::SetUp() {
46 ParseCommandLine(); 43 ParseCommandLine();
47 ExtensionBrowserTest::SetUp(); 44 ExtensionBrowserTest::SetUp();
48 } 45 }
49 46
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 if (PathExists(extension_path)) { 130 if (PathExists(extension_path)) {
134 extension_unpacked_ = extension_path; 131 extension_unpacked_ = extension_path;
135 } 132 }
136 } 133 }
137 134
138 // Exactly one of these two arguments should be provided. 135 // Exactly one of these two arguments should be provided.
139 ASSERT_NE(extension_crx_.empty(), extension_unpacked_.empty()); 136 ASSERT_NE(extension_crx_.empty(), extension_unpacked_.empty());
140 } 137 }
141 138
142 } // namespace media_router 139 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/test/media_router/media_router_base_browsertest.h ('k') | extensions/common/feature_switch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698