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/quic/quic_stream_factory.h" | 5 #include "net/quic/quic_stream_factory.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "net/base/test_data_directory.h" | 9 #include "net/base/test_data_directory.h" |
10 #include "net/cert/cert_verifier.h" | 10 #include "net/cert/cert_verifier.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 &crypto_client_stream_factory_, | 156 &crypto_client_stream_factory_, |
157 &random_generator_, | 157 &random_generator_, |
158 clock_, | 158 clock_, |
159 kDefaultMaxPacketSize, | 159 kDefaultMaxPacketSize, |
160 std::string(), | 160 std::string(), |
161 SupportedVersions(GetParam()), | 161 SupportedVersions(GetParam()), |
162 /*enable_port_selection=*/true, | 162 /*enable_port_selection=*/true, |
163 /*always_require_handshake_confirmation=*/false, | 163 /*always_require_handshake_confirmation=*/false, |
164 /*disable_connection_pooling=*/false, | 164 /*disable_connection_pooling=*/false, |
165 /*load_server_info_timeout=*/0u, | 165 /*load_server_info_timeout=*/0u, |
| 166 /*disable_loading_server_info_for_new_servers=*/false, |
166 QuicTagVector()), | 167 QuicTagVector()), |
167 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), | 168 host_port_pair_(kDefaultServerHostName, kDefaultServerPort), |
168 is_https_(false), | 169 is_https_(false), |
169 privacy_mode_(PRIVACY_MODE_DISABLED) { | 170 privacy_mode_(PRIVACY_MODE_DISABLED) { |
170 factory_.set_require_confirmation(false); | 171 factory_.set_require_confirmation(false); |
171 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); | 172 clock_->AdvanceTime(QuicTime::Delta::FromSeconds(1)); |
172 } | 173 } |
173 | 174 |
174 scoped_ptr<QuicHttpStream> CreateIfSessionExists( | 175 scoped_ptr<QuicHttpStream> CreateIfSessionExists( |
175 const HostPortPair& host_port_pair, | 176 const HostPortPair& host_port_pair, |
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); | 1598 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); |
1598 | 1599 |
1599 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); | 1600 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); |
1600 EXPECT_TRUE(stream.get()); | 1601 EXPECT_TRUE(stream.get()); |
1601 EXPECT_TRUE(socket_data.at_read_eof()); | 1602 EXPECT_TRUE(socket_data.at_read_eof()); |
1602 EXPECT_TRUE(socket_data.at_write_eof()); | 1603 EXPECT_TRUE(socket_data.at_write_eof()); |
1603 } | 1604 } |
1604 | 1605 |
1605 } // namespace test | 1606 } // namespace test |
1606 } // namespace net | 1607 } // namespace net |
OLD | NEW |