Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1175)

Unified Diff: third_party/WebKit/Source/wtf/TimeTest.cpp

Issue 2771783003: Move wtf_unittests to platform/wtf/. (Closed)
Patch Set: Rebase. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/StringHasherTest.cpp ('k') | third_party/WebKit/Source/wtf/TreeNodeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/TimeTest.cpp
diff --git a/third_party/WebKit/Source/wtf/TimeTest.cpp b/third_party/WebKit/Source/wtf/TimeTest.cpp
deleted file mode 100644
index f39176c40a2fcb1c8f98c021e7a794844ad2d734..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/wtf/TimeTest.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "wtf/Time.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace WTF {
-namespace {
-
-TEST(TimeTicks, NumericOperations) {
- TimeTicks zero;
- ASSERT_EQ(0, zero.ToInternalValueForTesting());
-
- TimeTicks t1 = zero + TimeDelta::FromMilliseconds(1001);
- ASSERT_EQ(1001000, t1.ToInternalValueForTesting());
-
- TimeTicks t2 = zero + TimeDelta::FromSeconds(1);
- ASSERT_EQ(TimeDelta::FromMilliseconds(1), t1 - t2);
-}
-
-TEST(Time, NumericOperations) {
- Time zero;
- ASSERT_EQ(0, zero.ToInternalValueForTesting());
-
- Time t1 = zero + TimeDelta::FromMilliseconds(1001);
- ASSERT_EQ(1001000, t1.ToInternalValueForTesting());
-
- Time t2 = zero + TimeDelta::FromSeconds(1);
- ASSERT_EQ(TimeDelta::FromMilliseconds(1), t1 - t2);
-}
-
-} // namespace
-} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/StringHasherTest.cpp ('k') | third_party/WebKit/Source/wtf/TreeNodeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698