Chromium Code Reviews| 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_; |