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

Unified Diff: net/quic/test_tools/mock_clock.cc

Issue 11961022: Remove default constructors for QuicTime and QuicTime::Delta and used static Zero() methods instead… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« net/quic/quic_time.cc ('K') | « net/quic/quic_time_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/mock_clock.cc
diff --git a/net/quic/test_tools/mock_clock.cc b/net/quic/test_tools/mock_clock.cc
index 557d8dbaef2e46330cb003e45a1a4d5025ef5b6b..ada94a14e0fd11898fa23f76dd0fca2d806ad49d 100644
--- a/net/quic/test_tools/mock_clock.cc
+++ b/net/quic/test_tools/mock_clock.cc
@@ -6,7 +6,7 @@
namespace net {
-MockClock::MockClock() {
+MockClock::MockClock() : now_(QuicTime::Zero()) {
}
MockClock::~MockClock() {
@@ -24,7 +24,7 @@ QuicTime MockClock::Now() const {
base::TimeTicks MockClock::NowInTicks() const {
base::TimeTicks ticks;
return ticks + base::TimeDelta::FromMicroseconds(
- now_.Subtract(QuicTime()).ToMicroseconds());
+ now_.Subtract(QuicTime::Zero()).ToMicroseconds());
}
} // namespace net
« net/quic/quic_time.cc ('K') | « net/quic/quic_time_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698