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

Unified Diff: net/quic/core/quic_header_list_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_framer_test.cc ('k') | net/quic/core/quic_headers_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_header_list_test.cc
diff --git a/net/quic/core/quic_header_list_test.cc b/net/quic/core/quic_header_list_test.cc
index 579c0287e22a16c59d5f00c9ffc203e365e46691..733d1ebc1fecd3e46e9ee9e3f2d75ea58b924cf7 100644
--- a/net/quic/core/quic_header_list_test.cc
+++ b/net/quic/core/quic_header_list_test.cc
@@ -5,15 +5,17 @@
#include "net/quic/core/quic_header_list.h"
#include "net/quic/platform/api/quic_flags.h"
+#include "net/quic/platform/api/quic_test.h"
#include "net/quic/test_tools/quic_test_utils.h"
-#include "testing/gtest/include/gtest/gtest.h"
using std::string;
namespace net {
+class QuicHeaderListTest : public QuicTest {};
+
// This test verifies that QuicHeaderList accumulates header pairs in order.
-TEST(QuicHeaderListTest, OnHeader) {
+TEST_F(QuicHeaderListTest, OnHeader) {
QuicHeaderList headers;
headers.OnHeader("foo", "bar");
headers.OnHeader("april", "fools");
@@ -22,7 +24,7 @@ TEST(QuicHeaderListTest, OnHeader) {
EXPECT_EQ("{ foo=bar, april=fools, beep=, }", headers.DebugString());
}
-TEST(QuicHeaderListTest, TooLarge) {
+TEST_F(QuicHeaderListTest, TooLarge) {
QuicHeaderList headers;
string key = "key";
string value(1 << 18, '1');
@@ -33,7 +35,7 @@ TEST(QuicHeaderListTest, TooLarge) {
EXPECT_EQ("{ }", headers.DebugString());
}
-TEST(QuicHeaderListTest, NotTooLarge) {
+TEST_F(QuicHeaderListTest, NotTooLarge) {
QuicHeaderList headers;
headers.set_max_uncompressed_header_bytes(1 << 20);
string key = "key";
@@ -44,7 +46,7 @@ TEST(QuicHeaderListTest, NotTooLarge) {
}
// This test verifies that QuicHeaderList is copyable and assignable.
-TEST(QuicHeaderListTest, IsCopyableAndAssignable) {
+TEST_F(QuicHeaderListTest, IsCopyableAndAssignable) {
QuicHeaderList headers;
headers.OnHeader("foo", "bar");
headers.OnHeader("april", "fools");
« no previous file with comments | « net/quic/core/quic_framer_test.cc ('k') | net/quic/core/quic_headers_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698