summaryrefslogtreecommitdiffstats
path: root/base/synchronization
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-05 08:14:15 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-05 08:14:15 +0000
commitf7b98b3753a8fdbaedeb9d4a03e645336d3ac410 (patch)
tree3a9e7ce8370043c9b82348c3a958f79aba9cef52 /base/synchronization
parentc7c51841d86c6ccc2c87517ea2ca924ff7b56280 (diff)
downloadchromium_src-f7b98b3753a8fdbaedeb9d4a03e645336d3ac410.zip
chromium_src-f7b98b3753a8fdbaedeb9d4a03e645336d3ac410.tar.gz
chromium_src-f7b98b3753a8fdbaedeb9d4a03e645336d3ac410.tar.bz2
base: Convert MessageLoop::RunUntilIdle() cases to base::RunLoop variant.
The former method is deprecated and actually it is just using RunLoop internally. The later is the cannonical method and should be used instead. BUG=131220 TEST=base_unittests R=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/12184007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/synchronization')
-rw-r--r--base/synchronization/waitable_event_watcher_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/synchronization/waitable_event_watcher_unittest.cc b/base/synchronization/waitable_event_watcher_unittest.cc
index a35c7c9..fbdc424 100644
--- a/base/synchronization/waitable_event_watcher_unittest.cc
+++ b/base/synchronization/waitable_event_watcher_unittest.cc
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/synchronization/waitable_event_watcher.h"
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/message_loop.h"
+#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
-#include "base/synchronization/waitable_event_watcher.h"
#include "base/threading/platform_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -94,7 +96,7 @@ void RunTest_CancelAfterSet(MessageLoop::Type message_loop_type) {
watcher.StopWatching();
- MessageLoop::current()->RunUntilIdle();
+ RunLoop().RunUntilIdle();
// Our delegate should not have fired.
EXPECT_EQ(1, counter);