summaryrefslogtreecommitdiffstats
path: root/net/http/http_server_properties_manager_unittest.cc
diff options
context:
space:
mode:
authorrtenneti <rtenneti@chromium.org>2015-06-05 14:55:23 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-05 21:55:57 +0000
commite267d6a5e8f7fd198c4ac5d11d7098a1d17228c5 (patch)
tree0e9beea0a44a30248289dfa63c81fb83b6d0ab68 /net/http/http_server_properties_manager_unittest.cc
parentd65e9c8f0dbf07d539f895c1f0155f4be9983963 (diff)
downloadchromium_src-e267d6a5e8f7fd198c4ac5d11d7098a1d17228c5.zip
chromium_src-e267d6a5e8f7fd198c4ac5d11d7098a1d17228c5.tar.gz
chromium_src-e267d6a5e8f7fd198c4ac5d11d7098a1d17228c5.tar.bz2
HttpServerProperties - Don't persist if SetSupportsSpdy is called with
the same origin (HostPortPair) and value (supports_spdy). This change reduces the number of times SetSupportsSpdy tries to persist HttpServerProperties to disk (currently ~5% of persist calls are due to SetSupportsSpdy). BUG=451256 R=rch@chromium.org Review URL: https://codereview.chromium.org/1159853005 Cr-Commit-Position: refs/heads/master@{#333146}
Diffstat (limited to 'net/http/http_server_properties_manager_unittest.cc')
-rw-r--r--net/http/http_server_properties_manager_unittest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_server_properties_manager_unittest.cc b/net/http/http_server_properties_manager_unittest.cc
index be17d9a..79c1723 100644
--- a/net/http/http_server_properties_manager_unittest.cc
+++ b/net/http/http_server_properties_manager_unittest.cc
@@ -390,6 +390,8 @@ TEST_F(HttpServerPropertiesManagerTest, SupportsSpdy) {
EXPECT_FALSE(
http_server_props_manager_->SupportsRequestPriority(spdy_server_mail));
http_server_props_manager_->SetSupportsSpdy(spdy_server_mail, true);
+ // ExpectScheduleUpdatePrefsOnNetworkThread() should be called only once.
+ http_server_props_manager_->SetSupportsSpdy(spdy_server_mail, true);
// Run the task.
base::RunLoop().RunUntilIdle();