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

Unified Diff: net/spdy/hpack_round_trip_test.cc

Issue 1263803002: Replace SpdyNameValueBlock typedef with SpdyHeaderBlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/spdy/hpack_encoder_test.cc ('k') | net/spdy/spdy_framer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_round_trip_test.cc
diff --git a/net/spdy/hpack_round_trip_test.cc b/net/spdy/hpack_round_trip_test.cc
index fe978785bd49ebe1d94408b149363413d11d7550..be79925717900e7e076450983eb4548161b8c2c3 100644
--- a/net/spdy/hpack_round_trip_test.cc
+++ b/net/spdy/hpack_round_trip_test.cc
@@ -34,7 +34,7 @@ class HpackRoundTripTest : public ::testing::Test {
decoder_.ApplyHeaderTableSizeSetting(256);
}
- bool RoundTrip(const map<string, string>& header_set) {
+ bool RoundTrip(const SpdyHeaderBlock& header_set) {
string encoded;
encoder_.EncodeHeaderSet(header_set, &encoded);
@@ -57,7 +57,7 @@ class HpackRoundTripTest : public ::testing::Test {
TEST_F(HpackRoundTripTest, ResponseFixtures) {
{
- map<string, string> headers;
+ SpdyHeaderBlock headers;
headers[":status"] = "302";
headers["cache-control"] = "private";
headers["date"] = "Mon, 21 Oct 2013 20:13:21 GMT";
@@ -65,7 +65,7 @@ TEST_F(HpackRoundTripTest, ResponseFixtures) {
EXPECT_TRUE(RoundTrip(headers));
}
{
- map<string, string> headers;
+ SpdyHeaderBlock headers;
headers[":status"] = "200";
headers["cache-control"] = "private";
headers["date"] = "Mon, 21 Oct 2013 20:13:21 GMT";
@@ -73,7 +73,7 @@ TEST_F(HpackRoundTripTest, ResponseFixtures) {
EXPECT_TRUE(RoundTrip(headers));
}
{
- map<string, string> headers;
+ SpdyHeaderBlock headers;
headers[":status"] = "200";
headers["cache-control"] = "private";
headers["content-encoding"] = "gzip";
@@ -88,7 +88,7 @@ TEST_F(HpackRoundTripTest, ResponseFixtures) {
TEST_F(HpackRoundTripTest, RequestFixtures) {
{
- map<string, string> headers;
+ SpdyHeaderBlock headers;
headers[":authority"] = "www.example.com";
headers[":method"] = "GET";
headers[":path"] = "/";
@@ -97,7 +97,7 @@ TEST_F(HpackRoundTripTest, RequestFixtures) {
EXPECT_TRUE(RoundTrip(headers));
}
{
- map<string, string> headers;
+ SpdyHeaderBlock headers;
headers[":authority"] = "www.example.com";
headers[":method"] = "GET";
headers[":path"] = "/";
@@ -107,7 +107,7 @@ TEST_F(HpackRoundTripTest, RequestFixtures) {
EXPECT_TRUE(RoundTrip(headers));
}
{
- map<string, string> headers;
+ SpdyHeaderBlock headers;
headers[":authority"] = "www.example.com";
headers[":method"] = "GET";
headers[":path"] = "/index.html";
@@ -144,7 +144,7 @@ TEST_F(HpackRoundTripTest, RandomizedExamples) {
srand(seed);
for (size_t i = 0; i != 2000; ++i) {
- map<string, string> headers;
+ SpdyHeaderBlock headers;
size_t header_count = 1 + SampleExponential(7, 50);
for (size_t j = 0; j != header_count; ++j) {
« no previous file with comments | « net/spdy/hpack_encoder_test.cc ('k') | net/spdy/spdy_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698