| Index: content/browser/appcache/appcache_storage_impl_unittest.cc
|
| diff --git a/content/browser/appcache/appcache_storage_impl_unittest.cc b/content/browser/appcache/appcache_storage_impl_unittest.cc
|
| index 8baccee429ca27f6bbb73ceded0b137831d138f7..85725b46b010641da7311283ac9fa3be77bb834a 100644
|
| --- a/content/browser/appcache/appcache_storage_impl_unittest.cc
|
| +++ b/content/browser/appcache/appcache_storage_impl_unittest.cc
|
| @@ -400,7 +400,9 @@ class AppCacheStorageImplTest : public testing::Test {
|
|
|
| template <class Method>
|
| void RunTestOnIOThread(Method method) {
|
| - test_finished_event_ .reset(new base::WaitableEvent(false, false));
|
| + test_finished_event_.reset(new base::WaitableEvent(
|
| + base::WaitableEvent::ResetPolicy::AUTOMATIC,
|
| + base::WaitableEvent::InitialState::NOT_SIGNALED));
|
| io_thread->task_runner()->PostTask(
|
| FROM_HERE, base::Bind(&AppCacheStorageImplTest::MethodWrapper<Method>,
|
| base::Unretained(this), method));
|
| @@ -462,7 +464,8 @@ class AppCacheStorageImplTest : public testing::Test {
|
| void FlushDbThreadTasks() {
|
| // We pump a task thru the db thread to ensure any tasks previously
|
| // scheduled on that thread have been performed prior to return.
|
| - base::WaitableEvent event(false, false);
|
| + base::WaitableEvent event(base::WaitableEvent::ResetPolicy::AUTOMATIC,
|
| + base::WaitableEvent::InitialState::NOT_SIGNALED);
|
| db_thread->task_runner()->PostTask(
|
| FROM_HERE, base::Bind(&AppCacheStorageImplTest::SignalEvent, &event));
|
| event.Wait();
|
|
|