OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/spdy/spdy_session.h" | 5 #include "net/spdy/spdy_session.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 const base::Callback<void(SpdyStream*)>& stall_function, | 164 const base::Callback<void(SpdyStream*)>& stall_function, |
165 const base::Callback<void(SpdyStream*, int32)>& unstall_function); | 165 const base::Callback<void(SpdyStream*, int32)>& unstall_function); |
166 | 166 |
167 // Original socket limits. Some tests set these. Safest to always restore | 167 // Original socket limits. Some tests set these. Safest to always restore |
168 // them once each test has been run. | 168 // them once each test has been run. |
169 int old_max_group_sockets_; | 169 int old_max_group_sockets_; |
170 int old_max_pool_sockets_; | 170 int old_max_pool_sockets_; |
171 | 171 |
172 SpdyTestUtil spdy_util_; | 172 SpdyTestUtil spdy_util_; |
173 SpdySessionDependencies session_deps_; | 173 SpdySessionDependencies session_deps_; |
174 scoped_refptr<HttpNetworkSession> http_session_; | 174 scoped_ptr<HttpNetworkSession> http_session_; |
175 base::WeakPtr<SpdySession> session_; | 175 base::WeakPtr<SpdySession> session_; |
176 SpdySessionPool* spdy_session_pool_; | 176 SpdySessionPool* spdy_session_pool_; |
177 GURL test_url_; | 177 GURL test_url_; |
178 HostPortPair test_host_port_pair_; | 178 HostPortPair test_host_port_pair_; |
179 SpdySessionKey key_; | 179 SpdySessionKey key_; |
180 BoundTestNetLog log_; | 180 BoundTestNetLog log_; |
181 }; | 181 }; |
182 | 182 |
183 INSTANTIATE_TEST_CASE_P(NextProto, | 183 INSTANTIATE_TEST_CASE_P(NextProto, |
184 SpdySessionTest, | 184 SpdySessionTest, |
(...skipping 4923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5108 ssl_info.cert = ImportCertFromFile(GetTestCertsDirectory(), | 5108 ssl_info.cert = ImportCertFromFile(GetTestCertsDirectory(), |
5109 "spdy_pooling.pem"); | 5109 "spdy_pooling.pem"); |
5110 ssl_info.is_issued_by_known_root = true; | 5110 ssl_info.is_issued_by_known_root = true; |
5111 ssl_info.public_key_hashes.push_back(test::GetTestHashValue(primary_pin)); | 5111 ssl_info.public_key_hashes.push_back(test::GetTestHashValue(primary_pin)); |
5112 | 5112 |
5113 EXPECT_TRUE(SpdySession::CanPool( | 5113 EXPECT_TRUE(SpdySession::CanPool( |
5114 &tss, ssl_info, "www.example.org", "mail.example.org")); | 5114 &tss, ssl_info, "www.example.org", "mail.example.org")); |
5115 } | 5115 } |
5116 | 5116 |
5117 } // namespace net | 5117 } // namespace net |
OLD | NEW |