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

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

Issue 2551603002: Move QuicClock to quic/platform/ (Closed)
Patch Set: missing Created 4 years 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_clock.h ('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
deleted file mode 100644
index 357bc500c63967eb839978218f59d368141dd367..0000000000000000000000000000000000000000
--- a/net/tools/quic/quic_epoll_clock.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/tools/quic/quic_epoll_clock.h"
-
-#include "net/tools/epoll_server/epoll_server.h"
-
-namespace net {
-
-QuicEpollClock::QuicEpollClock(EpollServer* epoll_server)
- : epoll_server_(epoll_server) {}
-
-QuicEpollClock::~QuicEpollClock() {}
-
-QuicTime QuicEpollClock::ApproximateNow() const {
- return QuicTime::Zero() + QuicTime::Delta::FromMicroseconds(
- epoll_server_->ApproximateNowInUsec());
-}
-
-QuicTime QuicEpollClock::Now() const {
- return QuicTime::Zero() +
- QuicTime::Delta::FromMicroseconds(epoll_server_->NowInUsec());
-}
-
-QuicWallTime QuicEpollClock::WallNow() const {
- return QuicWallTime::FromUNIXMicroseconds(
- epoll_server_->ApproximateNowInUsec());
-}
-
-QuicTime QuicEpollClock::ConvertWallTimeToQuicTime(
- const QuicWallTime& walltime) const {
- return QuicTime::Zero() +
- QuicTime::Delta::FromMicroseconds(walltime.ToUNIXMicroseconds());
-}
-
-} // namespace net
« no previous file with comments | « net/tools/quic/quic_epoll_clock.h ('k') | net/tools/quic/quic_epoll_clock_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698