diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 16:37:33 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-02 16:37:33 +0000 |
commit | 96e473586171cbd36ede44ca45c65dd6f8ad8c09 (patch) | |
tree | fe0000ce6144f2d8199d8d01ed960a218d140a6b /base/timer_unittest.cc | |
parent | bfbc29e64accc868441d1a3302064ae8438ff85e (diff) | |
download | chromium_src-96e473586171cbd36ede44ca45c65dd6f8ad8c09.zip chromium_src-96e473586171cbd36ede44ca45c65dd6f8ad8c09.tar.gz chromium_src-96e473586171cbd36ede44ca45c65dd6f8ad8c09.tar.bz2 |
Revert the timer code again because even after relanding
it on a clean and clobbered tree, it caused all the
failures
Review URL: http://codereview.chromium.org/12870
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/timer_unittest.cc')
-rw-r--r-- | base/timer_unittest.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/base/timer_unittest.cc b/base/timer_unittest.cc index 1fb44a3..face9c8 100644 --- a/base/timer_unittest.cc +++ b/base/timer_unittest.cc @@ -145,24 +145,3 @@ TEST(TimerTest, RepeatingTimer_Cancel) { RunTest_RepeatingTimer_Cancel(MessageLoop::TYPE_UI); RunTest_RepeatingTimer_Cancel(MessageLoop::TYPE_IO); } - -TEST(TimerTest, MessageLoopShutdown) { - // This test is designed to verify that shutdown of the - // message loop does not cause crashes if there were pending - // timers not yet fired. It may only trigger exceptions - // if debug heap checking (or purify) is enabled. - bool did_run = false; - { - OneShotTimerTester a(&did_run); - OneShotTimerTester b(&did_run); - OneShotTimerTester c(&did_run); - OneShotTimerTester d(&did_run); - { - MessageLoop loop(MessageLoop::TYPE_DEFAULT); - a.Start(); - b.Start(); - } // MessageLoop destructs by falling out of scope. - } // OneShotTimers destruct. SHOULD NOT CRASH, of course. - - EXPECT_EQ(false, did_run); -} |