diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-10 14:56:17 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-10 14:56:17 +0000 |
commit | 91cae259b5ab51d378e36607150ab181452e1008 (patch) | |
tree | 1d0e47c83709fa2db576b1ccdeb47ab50ee772a7 /base/timer_unittest.cc | |
parent | 3c1ed419955a381f04f3881c81b48e59594af3da (diff) | |
download | chromium_src-91cae259b5ab51d378e36607150ab181452e1008.zip chromium_src-91cae259b5ab51d378e36607150ab181452e1008.tar.gz chromium_src-91cae259b5ab51d378e36607150ab181452e1008.tar.bz2 |
base: Update the calls from MessageLoop::Quit() to QuitWhenIdle().
Quit() is deprecated and we should switch to QuitWhenIdle().
BUG=131220
R=darin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11794032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/timer_unittest.cc')
-rw-r--r-- | base/timer_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/timer_unittest.cc b/base/timer_unittest.cc index 67bd948..6fb89ad 100644 --- a/base/timer_unittest.cc +++ b/base/timer_unittest.cc @@ -35,7 +35,7 @@ class OneShotTimerTester { private: void Run() { *did_run_ = true; - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } bool* did_run_; base::OneShotTimer<OneShotTimerTester> timer_; @@ -56,7 +56,7 @@ class OneShotSelfDeletingTimerTester { void Run() { *did_run_ = true; timer_.reset(); - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } bool* did_run_; scoped_ptr<base::OneShotTimer<OneShotSelfDeletingTimerTester> > timer_; @@ -76,7 +76,7 @@ class RepeatingTimerTester { void Run() { if (--counter_ == 0) { *did_run_ = true; - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } } bool* did_run_; @@ -446,12 +446,12 @@ void ClearAllCallbackHappened() { void SetCallbackHappened1() { g_callback_happened1 = true; - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } void SetCallbackHappened2() { g_callback_happened2 = true; - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } TEST(TimerTest, ContinuationStopStart) { |