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

Unified Diff: base/synchronization/read_write_lock_unittest.cc

Issue 2034743002: Migrate WaitableEvent to enum-based constructor in read_write_lock_unittest.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2_chrome_thread_watcher
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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/read_write_lock_unittest.cc
diff --git a/base/synchronization/read_write_lock_unittest.cc b/base/synchronization/read_write_lock_unittest.cc
index bae3ce98ab5b73c6013e0e2e442a3ce0fd1f2aad..d1acaf25449d48441917641894a379e4ddc2a79d 100644
--- a/base/synchronization/read_write_lock_unittest.cc
+++ b/base/synchronization/read_write_lock_unittest.cc
@@ -109,8 +109,10 @@ TEST(ReadWriteLockTest, ReaderTwoThreads) {
class ReadAndWriteReadWriteLockTestThread : public PlatformThread::Delegate {
public:
ReadAndWriteReadWriteLockTestThread(ReadWriteLock* lock, int* value)
- : lock_(lock), value_(value),
- event_(true /* manual_reset */, false /* initially_signaled */) {}
+ : lock_(lock),
+ value_(value),
+ event_(WaitableEvent::ResetPolicy::MANUAL,
+ WaitableEvent::InitialState::NOT_SIGNALED) {}
void ThreadMain() override {
AutoWriteLock locker(*lock_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698