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

Unified Diff: net/base/address_tracker_linux_unittest.cc

Issue 2030663002: Migrate WaitableEvent to enum-based constructor in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/keygen_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_tracker_linux_unittest.cc
diff --git a/net/base/address_tracker_linux_unittest.cc b/net/base/address_tracker_linux_unittest.cc
index 6a030061d3d0a02897331d5452ad01f95cce94f6..88031c7dce054b670488af57a71977500b363eec 100644
--- a/net/base/address_tracker_linux_unittest.cc
+++ b/net/base/address_tracker_linux_unittest.cc
@@ -691,9 +691,11 @@ class GetCurrentConnectionTypeRunner
: public base::DelegateSimpleThread::Delegate {
public:
explicit GetCurrentConnectionTypeRunner(AddressTrackerLinux* tracker,
- const std::string& thread_name)
- : tracker_(tracker), done_(true, false), thread_(this, thread_name) {
- }
+ const std::string& thread_name)
+ : tracker_(tracker),
+ done_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED),
+ thread_(this, thread_name) {}
~GetCurrentConnectionTypeRunner() override {}
void Run() override {
« no previous file with comments | « no previous file | net/base/keygen_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698