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

Unified Diff: net/quic/core/quic_sustained_bandwidth_recorder_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/quic/core/quic_stream_test.cc ('k') | net/quic/core/quic_tag_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_sustained_bandwidth_recorder_test.cc
diff --git a/net/quic/core/quic_sustained_bandwidth_recorder_test.cc b/net/quic/core/quic_sustained_bandwidth_recorder_test.cc
index a93b9db079b0f6089ee5b60349a3bd4b11ac4eba..3221ec49c39da2207813a207b1aa4c0ec8064507 100644
--- a/net/quic/core/quic_sustained_bandwidth_recorder_test.cc
+++ b/net/quic/core/quic_sustained_bandwidth_recorder_test.cc
@@ -6,13 +6,15 @@
#include "net/quic/core/quic_bandwidth.h"
#include "net/quic/core/quic_time.h"
-#include "testing/gtest/include/gtest/gtest.h"
+#include "net/quic/platform/api/quic_test.h"
namespace net {
namespace test {
namespace {
-TEST(QuicSustainedBandwidthRecorderTest, BandwidthEstimates) {
+class QuicSustainedBandwidthRecorderTest : public QuicTest {};
+
+TEST_F(QuicSustainedBandwidthRecorderTest, BandwidthEstimates) {
QuicSustainedBandwidthRecorder recorder;
EXPECT_FALSE(recorder.HasEstimate());
@@ -91,7 +93,7 @@ TEST(QuicSustainedBandwidthRecorderTest, BandwidthEstimates) {
EXPECT_EQ(recorder.MaxBandwidthTimestamp(), kSeconds);
}
-TEST(QuicSustainedBandwidthRecorderTest, SlowStart) {
+TEST_F(QuicSustainedBandwidthRecorderTest, SlowStart) {
// Verify that slow start status is correctly recorded.
QuicSustainedBandwidthRecorder recorder;
EXPECT_FALSE(recorder.HasEstimate());
« no previous file with comments | « net/quic/core/quic_stream_test.cc ('k') | net/quic/core/quic_tag_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698