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

Unified Diff: net/spdy/chromium/spdy_session_unittest.cc

Issue 2932503005: Change AlternativeServiceInfo to a class (Closed)
Patch Set: Created 3 years, 6 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/chromium/quic_network_transaction_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/chromium/spdy_session_unittest.cc
diff --git a/net/spdy/chromium/spdy_session_unittest.cc b/net/spdy/chromium/spdy_session_unittest.cc
index ee9749bc983c0c70286836b9b208434390fb91a3..b843b1d18dd06dd833bcd1610604c80cfc3e0f7f 100644
--- a/net/spdy/chromium/spdy_session_unittest.cc
+++ b/net/spdy/chromium/spdy_session_unittest.cc
@@ -5648,7 +5648,7 @@ TEST_F(AltSvcFrameTest, ProcessAltSvcFrame) {
ASSERT_EQ(1u, altsvc_info_vector.size());
AlternativeService alternative_service(kProtoQUIC, "alternative.example.org",
443u);
- EXPECT_EQ(alternative_service, altsvc_info_vector[0].alternative_service);
+ EXPECT_EQ(alternative_service, altsvc_info_vector[0].alternative_service());
}
TEST_F(AltSvcFrameTest, DoNotProcessAltSvcFrameOnInsecureSession) {
@@ -5791,10 +5791,10 @@ TEST_F(AltSvcFrameTest, ProcessAltSvcFrameOnActiveStream) {
spdy_session_pool_->http_server_properties()->GetAlternativeServiceInfos(
url::SchemeHostPort(GURL(request_origin)));
ASSERT_EQ(1u, altsvc_info_vector.size());
- EXPECT_EQ(kProtoQUIC, altsvc_info_vector[0].alternative_service.protocol);
+ EXPECT_EQ(kProtoQUIC, altsvc_info_vector[0].alternative_service().protocol);
EXPECT_EQ("alternative.example.org",
- altsvc_info_vector[0].alternative_service.host);
- EXPECT_EQ(443u, altsvc_info_vector[0].alternative_service.port);
+ altsvc_info_vector[0].alternative_service().host);
+ EXPECT_EQ(443u, altsvc_info_vector[0].alternative_service().port);
}
TEST_F(AltSvcFrameTest, DoNotProcessAltSvcFrameOnStreamWithInsecureOrigin) {
« no previous file with comments | « net/quic/chromium/quic_network_transaction_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698