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

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

Issue 2021393004: Migrate WaitableEvent to enum-based constructor in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Split out custom changes to thread_watcher_unittest.cc Created 4 years, 6 months 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/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
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
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
OLDNEW
« chrome/browser/net/predictor.cc ('K') | « chrome/test/chromedriver/net/test_http_server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698