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

Unified Diff: net/quic/core/congestion_control/general_loss_algorithm_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
Index: net/quic/core/congestion_control/general_loss_algorithm_test.cc
diff --git a/net/quic/core/congestion_control/general_loss_algorithm_test.cc b/net/quic/core/congestion_control/general_loss_algorithm_test.cc
index e6704293260a9645f5fe18213b985d2ccdfd3e0a..87168602b9c0a8ff094fcfd00143f93786df7dfe 100644
--- a/net/quic/core/congestion_control/general_loss_algorithm_test.cc
+++ b/net/quic/core/congestion_control/general_loss_algorithm_test.cc
@@ -11,9 +11,9 @@
#include "net/quic/core/congestion_control/rtt_stats.h"
#include "net/quic/core/quic_unacked_packet_map.h"
#include "net/quic/platform/api/quic_flags.h"
+#include "net/quic/platform/api/quic_test.h"
#include "net/quic/test_tools/mock_clock.h"
#include "net/quic/test_tools/quic_test_utils.h"
-#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace test {
@@ -22,7 +22,7 @@ namespace {
// Default packet length.
const uint32_t kDefaultLength = 1000;
-class GeneralLossAlgorithmTest : public ::testing::Test {
+class GeneralLossAlgorithmTest : public QuicTest {
protected:
GeneralLossAlgorithmTest() {
rtt_stats_.UpdateRtt(QuicTime::Delta::FromMilliseconds(100),
@@ -63,7 +63,6 @@ class GeneralLossAlgorithmTest : public ::testing::Test {
}
}
- QuicFlagSaver flags_; // Save/restore all QUIC flag values.
QuicUnackedPacketMap unacked_packets_;
GeneralLossAlgorithm loss_algorithm_;
RttStats rtt_stats_;
« no previous file with comments | « net/quic/core/congestion_control/cubic_test.cc ('k') | net/quic/core/congestion_control/hybrid_slow_start_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698