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

Unified Diff: jingle/glue/thread_wrapper_unittest.cc

Issue 2028993003: Migrate WaitableEvent to enum-based constructor in jingle/ (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 | « jingle/glue/thread_wrapper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/thread_wrapper_unittest.cc
diff --git a/jingle/glue/thread_wrapper_unittest.cc b/jingle/glue/thread_wrapper_unittest.cc
index db590ef3a58ddf5d446f84cbe214d7fbab4e2ef2..49592ceb773520eb2cc38fc0f4b7031533b4d18c 100644
--- a/jingle/glue/thread_wrapper_unittest.cc
+++ b/jingle/glue/thread_wrapper_unittest.cc
@@ -246,7 +246,9 @@ TEST_F(ThreadWrapperTest, SendToOtherThread) {
base::Thread second_thread("JingleThreadWrapperTest");
second_thread.Start();
- base::WaitableEvent initialized_event(true, false);
+ base::WaitableEvent initialized_event(
+ base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
rtc::Thread* target;
second_thread.message_loop()->PostTask(
FROM_HERE, base::Bind(&InitializeWrapperForNewThread,
@@ -275,7 +277,9 @@ TEST_F(ThreadWrapperTest, SendDuringSend) {
base::Thread second_thread("JingleThreadWrapperTest");
second_thread.Start();
- base::WaitableEvent initialized_event(true, false);
+ base::WaitableEvent initialized_event(
+ base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
rtc::Thread* target;
second_thread.message_loop()->PostTask(
FROM_HERE, base::Bind(&InitializeWrapperForNewThread,
« no previous file with comments | « jingle/glue/thread_wrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698