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

Unified Diff: net/spdy/spdy_network_transaction_unittest.cc

Issue 2140253002: Add metrics to track HTTP/0.9 usage for main frames and subresources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 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/quic/quic_network_transaction_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_network_transaction_unittest.cc
diff --git a/net/spdy/spdy_network_transaction_unittest.cc b/net/spdy/spdy_network_transaction_unittest.cc
index 0744fa2ec412a3969c249cadbca9430ab1aab35a..c8096a7325c9152dc6f88f2e6074bf14c7371dc3 100644
--- a/net/spdy/spdy_network_transaction_unittest.cc
+++ b/net/spdy/spdy_network_transaction_unittest.cc
@@ -217,7 +217,7 @@ class SpdyNetworkTransactionTest
test_params_.protocol),
response->connection_info);
} else {
- EXPECT_EQ(HttpResponseInfo::CONNECTION_INFO_HTTP1,
+ EXPECT_EQ(HttpResponseInfo::CONNECTION_INFO_HTTP1_1,
response->connection_info);
}
if (spdy_enabled_) {
@@ -4519,7 +4519,8 @@ TEST_P(SpdyNetworkTransactionTest, HTTP11RequiredRetry) {
ASSERT_TRUE(response->headers);
EXPECT_EQ("HTTP/1.1 200 OK", response->headers->GetStatusLine());
EXPECT_FALSE(response->was_fetched_via_spdy);
- EXPECT_EQ(HttpResponseInfo::CONNECTION_INFO_HTTP1, response->connection_info);
+ EXPECT_EQ(HttpResponseInfo::CONNECTION_INFO_HTTP1_1,
+ response->connection_info);
EXPECT_TRUE(response->was_npn_negotiated);
EXPECT_TRUE(request.url.SchemeIs("https"));
EXPECT_EQ("127.0.0.1", response->socket_address.host());
@@ -4620,7 +4621,8 @@ TEST_P(SpdyNetworkTransactionTest, HTTP11RequiredProxyRetry) {
ASSERT_TRUE(response->headers);
EXPECT_EQ("HTTP/1.1 200 OK", response->headers->GetStatusLine());
EXPECT_FALSE(response->was_fetched_via_spdy);
- EXPECT_EQ(HttpResponseInfo::CONNECTION_INFO_HTTP1, response->connection_info);
+ EXPECT_EQ(HttpResponseInfo::CONNECTION_INFO_HTTP1_1,
+ response->connection_info);
EXPECT_FALSE(response->was_npn_negotiated);
EXPECT_TRUE(request.url.SchemeIs("https"));
EXPECT_EQ("127.0.0.1", response->socket_address.host());
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698