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

Unified Diff: net/quic/quic_clock_test.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc 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/quic/quic_clock.cc ('k') | net/quic/quic_config.h » ('j') | 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
deleted file mode 100644
index b6800611ebe49e35d4c7b1a72b8302c49a549ab5..0000000000000000000000000000000000000000
--- a/net/quic/quic_clock_test.cc
+++ /dev/null
@@ -1,38 +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/quic/quic_clock.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace net {
-namespace test {
-
-TEST(QuicClockTest, Now) {
- QuicClock clock;
-
- QuicTime start(base::TimeTicks::Now());
- QuicTime now = clock.ApproximateNow();
- QuicTime end(base::TimeTicks::Now());
-
- EXPECT_LE(start, now);
- EXPECT_LE(now, end);
-}
-
-TEST(QuicClockTest, WallNow) {
- QuicClock clock;
-
- base::Time start = base::Time::Now();
- QuicWallTime now = clock.WallNow();
- base::Time end = base::Time::Now();
-
- // If end > start, then we can check now is between start and end.
- if (end > start) {
- EXPECT_LE(static_cast<uint64_t>(start.ToTimeT()), now.ToUNIXSeconds());
- EXPECT_LE(now.ToUNIXSeconds(), static_cast<uint64_t>(end.ToTimeT()));
- }
-}
-
-} // namespace test
-} // namespace net
« no previous file with comments | « net/quic/quic_clock.cc ('k') | net/quic/quic_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698