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), | 31 : extension_load_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC, |
| 32 base::WaitableEvent::InitialState::NOT_SIGNALED), |
32 extension_host_created_(false), | 33 extension_host_created_(false), |
33 feature_override_(extensions::FeatureSwitch::media_router(), true) { | 34 feature_override_(extensions::FeatureSwitch::media_router(), true) { |
34 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( | 35 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
35 switches::kEnableExperimentalWebPlatformFeatures, "Presentation"); | 36 switches::kEnableExperimentalWebPlatformFeatures, "Presentation"); |
36 } | 37 } |
37 | 38 |
38 MediaRouterBaseBrowserTest::~MediaRouterBaseBrowserTest() { | 39 MediaRouterBaseBrowserTest::~MediaRouterBaseBrowserTest() { |
39 } | 40 } |
40 | 41 |
41 void MediaRouterBaseBrowserTest::SetUp() { | 42 void MediaRouterBaseBrowserTest::SetUp() { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 if (PathExists(extension_path)) { | 130 if (PathExists(extension_path)) { |
130 extension_unpacked_ = extension_path; | 131 extension_unpacked_ = extension_path; |
131 } | 132 } |
132 } | 133 } |
133 | 134 |
134 // Exactly one of these two arguments should be provided. | 135 // Exactly one of these two arguments should be provided. |
135 ASSERT_NE(extension_crx_.empty(), extension_unpacked_.empty()); | 136 ASSERT_NE(extension_crx_.empty(), extension_unpacked_.empty()); |
136 } | 137 } |
137 | 138 |
138 } // namespace media_router | 139 } // namespace media_router |
OLD | NEW |