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

Unified Diff: net/quic/chromium/quic_network_transaction_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
Index: net/quic/chromium/quic_network_transaction_unittest.cc
diff --git a/net/quic/chromium/quic_network_transaction_unittest.cc b/net/quic/chromium/quic_network_transaction_unittest.cc
index 0d56c1d49b71e99e0098ff87acb016a814ec02fe..19412bc8c1f7ac0c3a92ce78787d28e80f9d5ddf 100644
--- a/net/quic/chromium/quic_network_transaction_unittest.cc
+++ b/net/quic/chromium/quic_network_transaction_unittest.cc
@@ -633,7 +633,7 @@ class QuicNetworkTransactionTest
http_server_properties_.GetAlternativeServiceInfos(server);
EXPECT_EQ(1u, alternative_service_info_vector.size());
EXPECT_TRUE(http_server_properties_.IsAlternativeServiceBroken(
- alternative_service_info_vector[0].alternative_service));
+ alternative_service_info_vector[0].alternative_service()));
}
void ExpectQuicAlternateProtocolMapping() {
@@ -641,10 +641,11 @@ class QuicNetworkTransactionTest
const AlternativeServiceInfoVector alternative_service_info_vector =
http_server_properties_.GetAlternativeServiceInfos(server);
EXPECT_EQ(1u, alternative_service_info_vector.size());
- EXPECT_EQ(kProtoQUIC,
- alternative_service_info_vector[0].alternative_service.protocol);
+ EXPECT_EQ(
+ kProtoQUIC,
+ alternative_service_info_vector[0].alternative_service().protocol);
EXPECT_FALSE(http_server_properties_.IsAlternativeServiceBroken(
- alternative_service_info_vector[0].alternative_service));
+ alternative_service_info_vector[0].alternative_service()));
}
void AddHangingNonAlternateProtocolSocketData() {
@@ -2997,7 +2998,7 @@ TEST_P(QuicNetworkTransactionTest, AlternativeServiceDifferentPort) {
http_server_properties_.GetAlternativeServiceInfos(http_server);
ASSERT_EQ(1u, alternative_service_info_vector.size());
const AlternativeService alternative_service =
- alternative_service_info_vector[0].alternative_service;
+ alternative_service_info_vector[0].alternative_service();
EXPECT_EQ(kProtoQUIC, alternative_service.protocol);
EXPECT_EQ(kDefaultServerHostName, alternative_service.host);
EXPECT_EQ(137, alternative_service.port);
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller_unittest.cc ('k') | net/spdy/chromium/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698