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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return new MockQuicServerInfo(server_id); | 190 return new MockQuicServerInfo(server_id); |
191 } | 191 } |
192 }; | 192 }; |
193 | 193 |
194 class QuicStreamFactoryTest : public ::testing::TestWithParam<TestParams> { | 194 class QuicStreamFactoryTest : public ::testing::TestWithParam<TestParams> { |
195 protected: | 195 protected: |
196 QuicStreamFactoryTest() | 196 QuicStreamFactoryTest() |
197 : random_generator_(0), | 197 : random_generator_(0), |
198 clock_(new MockClock()), | 198 clock_(new MockClock()), |
199 runner_(new TestTaskRunner(clock_)), | 199 runner_(new TestTaskRunner(clock_)), |
200 maker_(GetParam().version, 0, clock_), | 200 maker_(GetParam().version, 0, clock_, kDefaultServerHostName), |
201 cert_verifier_(CertVerifier::CreateDefault()), | 201 cert_verifier_(CertVerifier::CreateDefault()), |
202 channel_id_service_( | 202 channel_id_service_( |
203 new ChannelIDService(new DefaultChannelIDStore(nullptr), | 203 new ChannelIDService(new DefaultChannelIDStore(nullptr), |
204 base::MessageLoopProxy::current())), | 204 base::MessageLoopProxy::current())), |
205 factory_(&host_resolver_, | 205 factory_(&host_resolver_, |
206 &socket_factory_, | 206 &socket_factory_, |
207 base::WeakPtr<HttpServerProperties>(), | 207 base::WeakPtr<HttpServerProperties>(), |
208 cert_verifier_.get(), | 208 cert_verifier_.get(), |
209 channel_id_service_.get(), | 209 channel_id_service_.get(), |
210 &transport_security_state_, | 210 &transport_security_state_, |
(...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1831 EXPECT_TRUE(socket_data.at_read_eof()); | 1831 EXPECT_TRUE(socket_data.at_read_eof()); |
1832 EXPECT_TRUE(socket_data.at_write_eof()); | 1832 EXPECT_TRUE(socket_data.at_write_eof()); |
1833 EXPECT_TRUE(socket_data2.at_read_eof()); | 1833 EXPECT_TRUE(socket_data2.at_read_eof()); |
1834 EXPECT_TRUE(socket_data2.at_write_eof()); | 1834 EXPECT_TRUE(socket_data2.at_write_eof()); |
1835 EXPECT_TRUE(socket_data3.at_read_eof()); | 1835 EXPECT_TRUE(socket_data3.at_read_eof()); |
1836 EXPECT_TRUE(socket_data3.at_write_eof()); | 1836 EXPECT_TRUE(socket_data3.at_write_eof()); |
1837 } | 1837 } |
1838 | 1838 |
1839 } // namespace test | 1839 } // namespace test |
1840 } // namespace net | 1840 } // namespace net |
OLD | NEW |