summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_clock_test.cc
diff options
context:
space:
mode:
authorrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-11 14:48:10 +0000
committerrch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-11 14:48:10 +0000
commit2a960e03abbb0c4225a0d2796a7d93db8a8e9343 (patch)
treee64760f33aba6bb7a679a224560d7b3186609b71 /net/quic/quic_clock_test.cc
parentffaa2a63665d31ba16ab63c2dc447e7543dc5002 (diff)
downloadchromium_src-2a960e03abbb0c4225a0d2796a7d93db8a8e9343.zip
chromium_src-2a960e03abbb0c4225a0d2796a7d93db8a8e9343.tar.gz
chromium_src-2a960e03abbb0c4225a0d2796a7d93db8a8e9343.tar.bz2
QuicTime integration
Merge internal change: 37669847 Review URL: https://chromiumcodereview.appspot.com/11293161 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/quic_clock_test.cc')
-rw-r--r--net/quic/quic_clock_test.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/quic/quic_clock_test.cc b/net/quic/quic_clock_test.cc
new file mode 100644
index 0000000..f47567e
--- /dev/null
+++ b/net/quic/quic_clock_test.cc
@@ -0,0 +1,26 @@
+// 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.Now();
+ QuicTime end(base::TimeTicks::Now());
+
+ EXPECT_LE(start, now);
+ EXPECT_GE(now, end);
+}
+
+} // namespace test
+
+} // namespace net