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/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/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/timer/elapsed_timer.h" | 10 #include "base/timer/elapsed_timer.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Command line argument to specify CRX extension location. | 21 // Command line argument to specify CRX extension location. |
22 const char kExtensionCrx[] = "extension-crx"; | 22 const char kExtensionCrx[] = "extension-crx"; |
23 // Command line argument to specify unpacked extension location. | 23 // Command line argument to specify unpacked extension location. |
24 const char kExtensionUnpacked[] = "extension-unpacked"; | 24 const char kExtensionUnpacked[] = "extension-unpacked"; |
25 } // namespace | 25 } // namespace |
26 | 26 |
27 | 27 |
28 namespace media_router { | 28 namespace media_router { |
29 | 29 |
30 MediaRouterBaseBrowserTest::MediaRouterBaseBrowserTest() | 30 MediaRouterBaseBrowserTest::MediaRouterBaseBrowserTest() |
31 : extension_load_event_(false, false), extension_host_created_(false) { | 31 : extension_load_event_(false, false), |
32 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 32 extension_host_created_(false), |
33 switches::kEnableMediaRouter); | 33 feature_override_(extensions::FeatureSwitch::media_router(), true) { |
34 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( | 34 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
35 switches::kEnableExperimentalWebPlatformFeatures, "Presentation"); | 35 switches::kEnableExperimentalWebPlatformFeatures, "Presentation"); |
36 } | 36 } |
37 | 37 |
38 MediaRouterBaseBrowserTest::~MediaRouterBaseBrowserTest() { | 38 MediaRouterBaseBrowserTest::~MediaRouterBaseBrowserTest() { |
39 } | 39 } |
40 | 40 |
41 void MediaRouterBaseBrowserTest::SetUp() { | 41 void MediaRouterBaseBrowserTest::SetUp() { |
42 ParseCommandLine(); | 42 ParseCommandLine(); |
43 ExtensionBrowserTest::SetUp(); | 43 ExtensionBrowserTest::SetUp(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 if (PathExists(extension_path)) { | 129 if (PathExists(extension_path)) { |
130 extension_unpacked_ = extension_path; | 130 extension_unpacked_ = extension_path; |
131 } | 131 } |
132 } | 132 } |
133 | 133 |
134 // Exactly one of these two arguments should be provided. | 134 // Exactly one of these two arguments should be provided. |
135 ASSERT_NE(extension_crx_.empty(), extension_unpacked_.empty()); | 135 ASSERT_NE(extension_crx_.empty(), extension_unpacked_.empty()); |
136 } | 136 } |
137 | 137 |
138 } // namespace media_router | 138 } // namespace media_router |
OLD | NEW |