summaryrefslogtreecommitdiffstats
path: root/base/timer_unittest.cc
diff options
context:
space:
mode:
authormmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-04 04:52:44 +0000
committermmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-04 04:52:44 +0000
commit8a8d94e224f3c35190588991e503e267265e8e36 (patch)
treef72fc0ea14af1f5044160781afff3779a0f05c77 /base/timer_unittest.cc
parentee9653f9a6db545c361da48b856aa601a04005b3 (diff)
downloadchromium_src-8a8d94e224f3c35190588991e503e267265e8e36.zip
chromium_src-8a8d94e224f3c35190588991e503e267265e8e36.tar.gz
chromium_src-8a8d94e224f3c35190588991e503e267265e8e36.tar.bz2
Revert r1648 in timer_unittest.cc, this was for testing and should have never
escaped my working copy. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/timer_unittest.cc')
-rw-r--r--base/timer_unittest.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/base/timer_unittest.cc b/base/timer_unittest.cc
index 6645885..b48cfd6 100644
--- a/base/timer_unittest.cc
+++ b/base/timer_unittest.cc
@@ -441,63 +441,39 @@ void RunTest_RepeatingTimer_Cancel(MessageLoop::Type message_loop_type) {
// that timers work properly in all configurations.
TEST(TimerTest, TimerComparison) {
- Time s = Time::Now();
RunTest_TimerComparison(MessageLoop::TYPE_DEFAULT);
RunTest_TimerComparison(MessageLoop::TYPE_UI);
RunTest_TimerComparison(MessageLoop::TYPE_IO);
- Time e = Time::Now();
- TimeDelta el = e - s;
- printf("comparison elapsed time %lld\n", el.ToInternalValue());
}
TEST(TimerTest, BasicTimer) {
- Time s = Time::Now();
RunTest_BasicTimer(MessageLoop::TYPE_DEFAULT);
RunTest_BasicTimer(MessageLoop::TYPE_UI);
RunTest_BasicTimer(MessageLoop::TYPE_IO);
- Time e = Time::Now();
- TimeDelta el = e - s;
- printf("basic elapsed time %lld\n", el.ToInternalValue());
}
TEST(TimerTest, BrokenTimer) {
- Time s = Time::Now();
RunTest_BrokenTimer(MessageLoop::TYPE_DEFAULT);
RunTest_BrokenTimer(MessageLoop::TYPE_UI);
RunTest_BrokenTimer(MessageLoop::TYPE_IO);
- Time e = Time::Now();
- TimeDelta el = e - s;
- printf("broken elapsed time %lld\n", el.ToInternalValue());
}
TEST(TimerTest, DeleteFromRun) {
- Time s = Time::Now();
RunTest_DeleteFromRun(MessageLoop::TYPE_DEFAULT);
RunTest_DeleteFromRun(MessageLoop::TYPE_UI);
RunTest_DeleteFromRun(MessageLoop::TYPE_IO);
- Time e = Time::Now();
- TimeDelta el = e - s;
- printf("delete elapsed time %lld\n", el.ToInternalValue());
}
TEST(TimerTest, Reset) {
- Time s = Time::Now();
RunTest_Reset(MessageLoop::TYPE_DEFAULT);
RunTest_Reset(MessageLoop::TYPE_UI);
RunTest_Reset(MessageLoop::TYPE_IO);
- Time e = Time::Now();
- TimeDelta el = e - s;
- printf("reset elapsed time %lld\n", el.ToInternalValue());
}
TEST(TimerTest, FifoOrder) {
- Time s = Time::Now();
RunTest_FifoOrder(MessageLoop::TYPE_DEFAULT);
RunTest_FifoOrder(MessageLoop::TYPE_UI);
RunTest_FifoOrder(MessageLoop::TYPE_IO);
- Time e = Time::Now();
- TimeDelta el = e - s;
- printf("fifo elapsed time %lld\n", el.ToInternalValue());
}
TEST(TimerTest, OneShotTimer) {