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

Unified Diff: net/http/http_pipelined_host_pool_unittest.cc

Issue 8770035: Save pipelining capabilities for the most used hosts between sessions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/http/http_pipelined_host_pool_unittest.cc
diff --git a/net/http/http_pipelined_host_pool_unittest.cc b/net/http/http_pipelined_host_pool_unittest.cc
index 928e4e9e6074e9d16140a04181a6bfddaf11bad2..655c787234f649c39db7ad6100fa79fdf321c7d2 100644
--- a/net/http/http_pipelined_host_pool_unittest.cc
+++ b/net/http/http_pipelined_host_pool_unittest.cc
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "net/base/ssl_config_service.h"
#include "net/http/http_pipelined_host.h"
+#include "net/http/http_server_properties_impl.h"
#include "net/proxy/proxy_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -66,7 +67,9 @@ class HttpPipelinedHostPoolTest : public testing::Test {
: origin_("host", 123),
factory_(new MockHostFactory), // Owned by pool_.
host_(new MockHost(origin_)), // Owned by pool_.
- pool_(new HttpPipelinedHostPool(&delegate_, factory_)),
+ http_server_properties_(new HttpServerPropertiesImpl),
+ pool_(new HttpPipelinedHostPool(&delegate_, factory_,
+ http_server_properties_.get())),
was_npn_negotiated_(false) {
}
@@ -88,6 +91,7 @@ class HttpPipelinedHostPoolTest : public testing::Test {
MockPoolDelegate delegate_;
MockHostFactory* factory_;
MockHost* host_;
+ scoped_ptr<HttpServerPropertiesImpl> http_server_properties_;
mmenke 2011/12/02 21:52:10 You might want to explicitly query this in a test
James Simonsen 2011/12/03 03:16:00 Done.
scoped_ptr<HttpPipelinedHostPool> pool_;
const SSLConfig ssl_config_;

Powered by Google App Engine
This is Rietveld 408576698