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

Unified Diff: net/tools/quic/platform/impl/quic_epoll_clock_test.cc

Issue 2848203002: Add a platform implementation of QuicTest and QuicTestWithParam (Closed)
Patch Set: net/quic/platform/impl/quic_test_impl.cc Created 3 years, 8 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/end_to_end_test.cc ('k') | net/tools/quic/platform/impl/quic_socket_utils_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/platform/impl/quic_epoll_clock_test.cc
diff --git a/net/tools/quic/platform/impl/quic_epoll_clock_test.cc b/net/tools/quic/platform/impl/quic_epoll_clock_test.cc
index 0805429d5c3c946e67b7c152203617acba675564..52115a72c128bda6ed16df13bc2730ce7257fea0 100644
--- a/net/tools/quic/platform/impl/quic_epoll_clock_test.cc
+++ b/net/tools/quic/platform/impl/quic_epoll_clock_test.cc
@@ -4,13 +4,15 @@
#include "net/tools/quic/platform/impl/quic_epoll_clock.h"
+#include "net/quic/platform/api/quic_test.h"
#include "net/tools/quic/test_tools/mock_epoll_server.h"
-#include "testing/gmock/include/gmock/gmock.h"
namespace net {
namespace test {
-TEST(QuicEpollClockTest, ApproximateNowInUsec) {
+class QuicEpollClockTest : public QuicTest {};
+
+TEST_F(QuicEpollClockTest, ApproximateNowInUsec) {
MockEpollServer epoll_server;
QuicEpollClock clock(&epoll_server);
@@ -31,7 +33,7 @@ TEST(QuicEpollClockTest, ApproximateNowInUsec) {
EXPECT_EQ(11000005u, clock.WallNow().ToUNIXMicroseconds());
}
-TEST(QuicEpollClockTest, NowInUsec) {
+TEST_F(QuicEpollClockTest, NowInUsec) {
MockEpollServer epoll_server;
QuicEpollClock clock(&epoll_server);
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/platform/impl/quic_socket_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698