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

Unified Diff: net/quic/quic_clock_test.cc

Issue 16360017: Fix QuicClock::WallNow to return a correct value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 7 years, 6 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 | « net/quic/quic_clock.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_clock_test.cc
diff --git a/net/quic/quic_clock_test.cc b/net/quic/quic_clock_test.cc
index 7b106c1efdbd1176fc054c4b3758ebb63e9a5d7b..6ee4540889f7a1115f1962f5a216efb19c1d05f4 100644
--- a/net/quic/quic_clock_test.cc
+++ b/net/quic/quic_clock_test.cc
@@ -29,10 +29,8 @@ TEST(QuicClockTest, WallNow) {
// If end > start, then we can check now is between start and end.
if (end > start) {
- EXPECT_LE(static_cast<uint64>(start.ToInternalValue() / 1000000),
- now.ToUNIXSeconds());
- EXPECT_LE(now.ToUNIXSeconds(),
- static_cast<uint64>(end.ToInternalValue() / 1000000));
+ EXPECT_LE(static_cast<uint64>(start.ToTimeT()), now.ToUNIXSeconds());
+ EXPECT_LE(now.ToUNIXSeconds(), static_cast<uint64>(end.ToTimeT()));
}
}
« no previous file with comments | « net/quic/quic_clock.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698