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

Unified Diff: net/tools/quic/quic_epoll_clock.cc

Issue 2132623002: Landing Recent QUIC changes until 2016-07-02 02:45 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing comment about RPCs Created 4 years, 5 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/tools/quic/quic_epoll_alarm_factory_test.cc ('k') | net/tools/quic/quic_epoll_clock_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_epoll_clock.cc
diff --git a/net/tools/quic/quic_epoll_clock.cc b/net/tools/quic/quic_epoll_clock.cc
index cb7717647b79de918db6321f1f0879b0b3338e37..357bc500c63967eb839978218f59d368141dd367 100644
--- a/net/tools/quic/quic_epoll_clock.cc
+++ b/net/tools/quic/quic_epoll_clock.cc
@@ -14,13 +14,13 @@ QuicEpollClock::QuicEpollClock(EpollServer* epoll_server)
QuicEpollClock::~QuicEpollClock() {}
QuicTime QuicEpollClock::ApproximateNow() const {
- return QuicTime::Zero().Add(
- QuicTime::Delta::FromMicroseconds(epoll_server_->ApproximateNowInUsec()));
+ return QuicTime::Zero() + QuicTime::Delta::FromMicroseconds(
+ epoll_server_->ApproximateNowInUsec());
}
QuicTime QuicEpollClock::Now() const {
- return QuicTime::Zero().Add(
- QuicTime::Delta::FromMicroseconds(epoll_server_->NowInUsec()));
+ return QuicTime::Zero() +
+ QuicTime::Delta::FromMicroseconds(epoll_server_->NowInUsec());
}
QuicWallTime QuicEpollClock::WallNow() const {
@@ -30,8 +30,8 @@ QuicWallTime QuicEpollClock::WallNow() const {
QuicTime QuicEpollClock::ConvertWallTimeToQuicTime(
const QuicWallTime& walltime) const {
- return QuicTime::Zero().Add(
- QuicTime::Delta::FromMicroseconds(walltime.ToUNIXMicroseconds()));
-};
+ return QuicTime::Zero() +
+ QuicTime::Delta::FromMicroseconds(walltime.ToUNIXMicroseconds());
+}
} // namespace net
« no previous file with comments | « net/tools/quic/quic_epoll_alarm_factory_test.cc ('k') | net/tools/quic/quic_epoll_clock_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698