diff options
author | rtenneti <rtenneti@chromium.org> | 2015-06-09 19:08:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-10 02:09:18 +0000 |
commit | fc60cda130136ffffcc6be4fb4bd7d9552ff42fb (patch) | |
tree | 0de49ce3ca0c802e00d0d2f9c9c0876c8da16a94 /net/http/http_server_properties_manager_unittest.cc | |
parent | a17aa68bcce00dd0c27fafc0b5f869525fd06316 (diff) | |
download | chromium_src-fc60cda130136ffffcc6be4fb4bd7d9552ff42fb.zip chromium_src-fc60cda130136ffffcc6be4fb4bd7d9552ff42fb.tar.gz chromium_src-fc60cda130136ffffcc6be4fb4bd7d9552ff42fb.tar.bz2 |
HttpServerProperties - Don't persist if SetSupportsQuic is called with
the same data more than once.
BUG=451256
R=rch@chromium.org
Review URL: https://codereview.chromium.org/1160823007
Cr-Commit-Position: refs/heads/master@{#333651}
Diffstat (limited to 'net/http/http_server_properties_manager_unittest.cc')
-rw-r--r-- | net/http/http_server_properties_manager_unittest.cc | 2 |
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 77c4768..492a8cc 100644 --- a/net/http/http_server_properties_manager_unittest.cc +++ b/net/http/http_server_properties_manager_unittest.cc @@ -605,6 +605,8 @@ TEST_F(HttpServerPropertiesManagerTest, SupportsQuic) { IPAddressNumber actual_address; CHECK(ParseIPLiteralToNumber("127.0.0.1", &actual_address)); http_server_props_manager_->SetSupportsQuic(true, actual_address); + // ExpectScheduleUpdatePrefsOnNetworkThread() should be called only once. + http_server_props_manager_->SetSupportsQuic(true, actual_address); // Run the task. base::RunLoop().RunUntilIdle(); |