| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 private: | 98 private: |
| 99 std::vector<QuicEncryptedPacket*> packets_; | 99 std::vector<QuicEncryptedPacket*> packets_; |
| 100 std::vector<MockWrite> writes_; | 100 std::vector<MockWrite> writes_; |
| 101 std::vector<MockRead> reads_; | 101 std::vector<MockRead> reads_; |
| 102 size_t sequence_number_; | 102 size_t sequence_number_; |
| 103 scoped_ptr<SocketDataProvider> socket_data_; | 103 scoped_ptr<SocketDataProvider> socket_data_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 class QuicNetworkTransactionTest | 106 class QuicNetworkTransactionTest |
| 107 : public PlatformTest, | 107 : public PlatformTest, |
| 108 public testing::WithParamInterface<QuicVersion> { | 108 public ::testing::WithParamInterface<QuicVersion> { |
| 109 protected: | 109 protected: |
| 110 QuicNetworkTransactionTest() | 110 QuicNetworkTransactionTest() |
| 111 : maker_(GetParam(), 0), | 111 : maker_(GetParam(), 0), |
| 112 clock_(new MockClock), | 112 clock_(new MockClock), |
| 113 ssl_config_service_(new SSLConfigServiceDefaults), | 113 ssl_config_service_(new SSLConfigServiceDefaults), |
| 114 proxy_service_(ProxyService::CreateDirect()), | 114 proxy_service_(ProxyService::CreateDirect()), |
| 115 auth_handler_factory_( | 115 auth_handler_factory_( |
| 116 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), | 116 HttpAuthHandlerFactory::CreateDefault(&host_resolver_)), |
| 117 random_generator_(0), | 117 random_generator_(0), |
| 118 hanging_data_(NULL, 0, NULL, 0) { | 118 hanging_data_(NULL, 0, NULL, 0) { |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 NULL, | 828 NULL, |
| 829 net_log_.bound()); | 829 net_log_.bound()); |
| 830 | 830 |
| 831 CreateSession(); | 831 CreateSession(); |
| 832 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); | 832 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); |
| 833 SendRequestAndExpectHttpResponse("hello world"); | 833 SendRequestAndExpectHttpResponse("hello world"); |
| 834 } | 834 } |
| 835 | 835 |
| 836 } // namespace test | 836 } // namespace test |
| 837 } // namespace net | 837 } // namespace net |
| OLD | NEW |