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

Unified Diff: components/sync_driver/glue/ui_model_worker_unittest.cc

Issue 2028193002: Migrate WaitableEvent to enum-based constructor in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: rm comment explaining true/false 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: components/sync_driver/glue/ui_model_worker_unittest.cc
diff --git a/components/sync_driver/glue/ui_model_worker_unittest.cc b/components/sync_driver/glue/ui_model_worker_unittest.cc
index dd66831b9757b6ed1049fcf926017227ccefe560..b33594bf7142d58345960e4a57335506e8717644 100644
--- a/components/sync_driver/glue/ui_model_worker_unittest.cc
+++ b/components/sync_driver/glue/ui_model_worker_unittest.cc
@@ -83,7 +83,9 @@ class SyncUIModelWorkerTest : public testing::Test {
};
TEST_F(SyncUIModelWorkerTest, ScheduledWorkRunsOnUILoop) {
- base::WaitableEvent v_was_run(false, false);
+ base::WaitableEvent v_was_run(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
std::unique_ptr<UIModelWorkerVisitor> v(
new UIModelWorkerVisitor(&v_was_run, true));

Powered by Google App Engine
This is Rietveld 408576698