| 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 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(MockableQuicClient); | 58 DISALLOW_COPY_AND_ASSIGN(MockableQuicClient); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 // A toy QUIC client used for testing, mostly following the SimpleClient APIs. | 61 // A toy QUIC client used for testing, mostly following the SimpleClient APIs. |
| 62 class QuicTestClient : public SimpleClient, | 62 class QuicTestClient : public SimpleClient, |
| 63 public QuicDataStream::Visitor { | 63 public QuicDataStream::Visitor { |
| 64 public: | 64 public: |
| 65 QuicTestClient(IPEndPoint server_address, | 65 QuicTestClient(IPEndPoint server_address, |
| 66 const string& server_hostname, | 66 const string& server_hostname, |
| 67 const QuicVersionVector& supported_versions); | |
| 68 QuicTestClient(IPEndPoint server_address, | |
| 69 const string& server_hostname, | |
| 70 bool secure, | 67 bool secure, |
| 71 const QuicVersionVector& supported_versions); | 68 const QuicVersionVector& supported_versions); |
| 72 QuicTestClient(IPEndPoint server_address, | 69 QuicTestClient(IPEndPoint server_address, |
| 73 const string& server_hostname, | 70 const string& server_hostname, |
| 74 bool secure, | 71 bool secure, |
| 75 const QuicConfig& config, | 72 const QuicConfig& config, |
| 76 const QuicVersionVector& supported_versions); | 73 const QuicVersionVector& supported_versions); |
| 77 | 74 |
| 78 ~QuicTestClient() override; | 75 ~QuicTestClient() override; |
| 79 | 76 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 202 |
| 206 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); | 203 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); |
| 207 }; | 204 }; |
| 208 | 205 |
| 209 } // namespace test | 206 } // namespace test |
| 210 | 207 |
| 211 } // namespace tools | 208 } // namespace tools |
| 212 } // namespace net | 209 } // namespace net |
| 213 | 210 |
| 214 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 211 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
| OLD | NEW |