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-02 18:20:34 +0000
committermmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-02 18:20:34 +0000
commitb2e972938cc2a0478c33ff094c6f574f39c41997 (patch)
treecd985001cc7fd95db94ccda4bb5bede60d56f5ae /base/timer_unittest.cc
parent844cbe038fca95d8a5406f895704076c402e4e29 (diff)
downloadchromium_src-b2e972938cc2a0478c33ff094c6f574f39c41997.zip
chromium_src-b2e972938cc2a0478c33ff094c6f574f39c41997.tar.gz
chromium_src-b2e972938cc2a0478c33ff094c6f574f39c41997.tar.bz2
Set svn:eol-style = LF on files in base from which it is missing
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1648 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/timer_unittest.cc')
-rw-r--r--base/timer_unittest.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/base/timer_unittest.cc b/base/timer_unittest.cc
index 9b251b2..e4b45ec 100644
--- a/base/timer_unittest.cc
+++ b/base/timer_unittest.cc
@@ -440,39 +440,63 @@ 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) {