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

Unified Diff: net/http/http_server_properties_manager_unittest.cc

Issue 2949513005: Update param types of HttpServerPropertiesImpl setters and getters. Fix MRU order when loading (Closed)
Patch Set: Updated HttpServerPropertiesManagerTest.SingleUpdateForTwoSpdyServerPrefChanges to reflect new load… 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/http/http_server_properties_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_manager_unittest.cc
diff --git a/net/http/http_server_properties_manager_unittest.cc b/net/http/http_server_properties_manager_unittest.cc
index 8c5438c6f6db6fcd04fab35bd60b2ab6f158a928..d8dada1038df6434fada2a6cf83effdc7900e07c 100644
--- a/net/http/http_server_properties_manager_unittest.cc
+++ b/net/http/http_server_properties_manager_unittest.cc
@@ -407,46 +407,25 @@ TEST_P(HttpServerPropertiesManagerTest,
EXPECT_FALSE(http_server_props_manager_->SupportsRequestPriority(foo_server));
// Verify alternative service.
- if (GetParam() >= 4) {
- const AlternativeServiceMap& map =
- http_server_props_manager_->alternative_service_map();
- ASSERT_EQ(2u, map.size());
-
- AlternativeServiceMap::const_iterator map_it = map.begin();
- EXPECT_EQ("mail.google.com", map_it->first.host());
- ASSERT_EQ(1u, map_it->second.size());
- EXPECT_EQ(kProtoHTTP2, map_it->second[0].alternative_service().protocol);
- EXPECT_TRUE(map_it->second[0].alternative_service().host.empty());
- EXPECT_EQ(444, map_it->second[0].alternative_service().port);
- ++map_it;
- EXPECT_EQ("www.google.com", map_it->first.host());
- ASSERT_EQ(2u, map_it->second.size());
- EXPECT_EQ(kProtoHTTP2, map_it->second[0].alternative_service().protocol);
- EXPECT_TRUE(map_it->second[0].alternative_service().host.empty());
- EXPECT_EQ(443, map_it->second[0].alternative_service().port);
- EXPECT_EQ(kProtoQUIC, map_it->second[1].alternative_service().protocol);
- EXPECT_TRUE(map_it->second[1].alternative_service().host.empty());
- EXPECT_EQ(1234, map_it->second[1].alternative_service().port);
Zhongyi Shi 2017/06/26 19:05:55 Urm, old test indicated that the order has been ch
- } else {
- const AlternativeServiceMap& map =
- http_server_props_manager_->alternative_service_map();
- ASSERT_EQ(2u, map.size());
- AlternativeServiceMap::const_iterator map_it = map.begin();
- EXPECT_EQ("www.google.com", map_it->first.host());
- ASSERT_EQ(2u, map_it->second.size());
- EXPECT_EQ(kProtoHTTP2, map_it->second[0].alternative_service().protocol);
- EXPECT_TRUE(map_it->second[0].alternative_service().host.empty());
- EXPECT_EQ(443, map_it->second[0].alternative_service().port);
- EXPECT_EQ(kProtoQUIC, map_it->second[1].alternative_service().protocol);
- EXPECT_TRUE(map_it->second[1].alternative_service().host.empty());
- EXPECT_EQ(1234, map_it->second[1].alternative_service().port);
- ++map_it;
- EXPECT_EQ("mail.google.com", map_it->first.host());
- ASSERT_EQ(1u, map_it->second.size());
- EXPECT_EQ(kProtoHTTP2, map_it->second[0].alternative_service().protocol);
- EXPECT_TRUE(map_it->second[0].alternative_service().host.empty());
- EXPECT_EQ(444, map_it->second[0].alternative_service().port);
- }
+ const AlternativeServiceMap& map =
+ http_server_props_manager_->alternative_service_map();
+ ASSERT_EQ(2u, map.size());
+
+ AlternativeServiceMap::const_iterator map_it = map.begin();
+ EXPECT_EQ("www.google.com", map_it->first.host());
+ ASSERT_EQ(2u, map_it->second.size());
+ EXPECT_EQ(kProtoHTTP2, map_it->second[0].alternative_service().protocol);
+ EXPECT_TRUE(map_it->second[0].alternative_service().host.empty());
+ EXPECT_EQ(443, map_it->second[0].alternative_service().port);
+ EXPECT_EQ(kProtoQUIC, map_it->second[1].alternative_service().protocol);
+ EXPECT_TRUE(map_it->second[1].alternative_service().host.empty());
+ EXPECT_EQ(1234, map_it->second[1].alternative_service().port);
+ ++map_it;
+ EXPECT_EQ("mail.google.com", map_it->first.host());
+ ASSERT_EQ(1u, map_it->second.size());
+ EXPECT_EQ(kProtoHTTP2, map_it->second[0].alternative_service().protocol);
+ EXPECT_TRUE(map_it->second[0].alternative_service().host.empty());
+ EXPECT_EQ(444, map_it->second[0].alternative_service().port);
// Verify SupportsQuic.
IPAddress last_address;
« no previous file with comments | « net/http/http_server_properties_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698