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

Unified Diff: chrome/browser/sync/test/integration/autofill_helper.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, 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
Index: chrome/browser/sync/test/integration/autofill_helper.cc
diff --git a/chrome/browser/sync/test/integration/autofill_helper.cc b/chrome/browser/sync/test/integration/autofill_helper.cc
index 0fe79fd5997002d2c2591a687b94e3587b2e41cb..3963ca425a6871ded8c393d743c1cecd90a3affc 100644
--- a/chrome/browser/sync/test/integration/autofill_helper.cc
+++ b/chrome/browser/sync/test/integration/autofill_helper.cc
@@ -71,7 +71,8 @@ void RunOnDBThreadAndSignal(base::Closure task,
}
void RunOnDBThreadAndBlock(base::Closure task) {
- WaitableEvent done_event(false, false);
+ WaitableEvent done_event(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
BrowserThread::PostTask(BrowserThread::DB,
FROM_HERE,
Bind(&RunOnDBThreadAndSignal, task, &done_event));
@@ -79,7 +80,8 @@ void RunOnDBThreadAndBlock(base::Closure task) {
}
void RemoveKeyDontBlockForSync(int profile, const AutofillKey& key) {
- WaitableEvent done_event(false, false);
+ WaitableEvent done_event(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
MockWebDataServiceObserver mock_observer;
EXPECT_CALL(mock_observer, AutofillEntriesChanged(_))
@@ -200,7 +202,8 @@ void AddKeys(int profile, const std::set<AutofillKey>& keys) {
form_fields.push_back(field);
}
- WaitableEvent done_event(false, false);
+ WaitableEvent done_event(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
MockWebDataServiceObserver mock_observer;
EXPECT_CALL(mock_observer, AutofillEntriesChanged(_))
.WillOnce(SignalEvent(&done_event));

Powered by Google App Engine
This is Rietveld 408576698