| 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 f644af1dbbef893c3a4c4bfd62c0ed1d4f978cf2..77be72ad12a1013c56174a9790de5aca973b395a 100644
|
| --- a/net/spdy/spdy_network_transaction_unittest.cc
|
| +++ b/net/spdy/spdy_network_transaction_unittest.cc
|
| @@ -4121,9 +4121,11 @@ TEST_P(SpdyNetworkTransactionTest, SettingsSaved) {
|
|
|
| // Verify that no settings exist initially.
|
| HostPortPair host_port_pair("www.example.org", helper.port());
|
| + url::SchemeHostPort scheme_origin("http", "www.example.org", helper.port());
|
| SpdySessionPool* spdy_session_pool = helper.session()->spdy_session_pool();
|
| - EXPECT_TRUE(spdy_session_pool->http_server_properties()->GetSpdySettings(
|
| - host_port_pair).empty());
|
| + EXPECT_TRUE(spdy_session_pool->http_server_properties()
|
| + ->GetSpdySettings(scheme_origin)
|
| + .empty());
|
|
|
| // Construct the request.
|
| scoped_ptr<SpdyFrame> req(
|
| @@ -4180,7 +4182,7 @@ TEST_P(SpdyNetworkTransactionTest, SettingsSaved) {
|
| // Verify we had two persisted settings.
|
| const SettingsMap& settings_map =
|
| spdy_session_pool->http_server_properties()->GetSpdySettings(
|
| - host_port_pair);
|
| + scheme_origin);
|
| ASSERT_EQ(2u, settings_map.size());
|
|
|
| // Verify the first persisted setting.
|
| @@ -4231,8 +4233,11 @@ TEST_P(SpdyNetworkTransactionTest, SettingsPlayback) {
|
|
|
| // Verify that no settings exist initially.
|
| HostPortPair host_port_pair("www.example.org", helper.port());
|
| - EXPECT_TRUE(spdy_session_pool->http_server_properties()->GetSpdySettings(
|
| - host_port_pair).empty());
|
| + url::SchemeHostPort scheme_origin("http", "www.example.org", helper.port());
|
| +
|
| + EXPECT_TRUE(spdy_session_pool->http_server_properties()
|
| + ->GetSpdySettings(scheme_origin)
|
| + .empty());
|
|
|
| const SpdySettingsIds kSampleId1 = SETTINGS_MAX_CONCURRENT_STREAMS;
|
| unsigned int kSampleValue1 = 0x0a0a0a0a;
|
| @@ -4241,20 +4246,15 @@ TEST_P(SpdyNetworkTransactionTest, SettingsPlayback) {
|
|
|
| // First add a persisted setting.
|
| spdy_session_pool->http_server_properties()->SetSpdySetting(
|
| - host_port_pair,
|
| - kSampleId1,
|
| - SETTINGS_FLAG_PLEASE_PERSIST,
|
| - kSampleValue1);
|
| + scheme_origin, kSampleId1, SETTINGS_FLAG_PLEASE_PERSIST, kSampleValue1);
|
|
|
| // Next add another persisted setting.
|
| spdy_session_pool->http_server_properties()->SetSpdySetting(
|
| - host_port_pair,
|
| - kSampleId2,
|
| - SETTINGS_FLAG_PLEASE_PERSIST,
|
| - kSampleValue2);
|
| + scheme_origin, kSampleId2, SETTINGS_FLAG_PLEASE_PERSIST, kSampleValue2);
|
|
|
| - EXPECT_EQ(2u, spdy_session_pool->http_server_properties()->GetSpdySettings(
|
| - host_port_pair).size());
|
| + EXPECT_EQ(2u, spdy_session_pool->http_server_properties()
|
| + ->GetSpdySettings(scheme_origin)
|
| + .size());
|
|
|
| // Construct the initial SETTINGS frame.
|
| SettingsMap initial_settings;
|
| @@ -4266,7 +4266,7 @@ TEST_P(SpdyNetworkTransactionTest, SettingsPlayback) {
|
| // Construct the persisted SETTINGS frame.
|
| const SettingsMap& settings =
|
| spdy_session_pool->http_server_properties()->GetSpdySettings(
|
| - host_port_pair);
|
| + scheme_origin);
|
| scoped_ptr<SpdyFrame> settings_frame(
|
| spdy_util_.ConstructSpdySettings(settings));
|
|
|
| @@ -4307,7 +4307,7 @@ TEST_P(SpdyNetworkTransactionTest, SettingsPlayback) {
|
| // Verify we had two persisted settings.
|
| const SettingsMap& settings_map =
|
| spdy_session_pool->http_server_properties()->GetSpdySettings(
|
| - host_port_pair);
|
| + scheme_origin);
|
| ASSERT_EQ(2u, settings_map.size());
|
|
|
| // Verify the first persisted setting.
|
|
|