| 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/tools/quic/test_tools/quic_test_client.h" | 5 #include "net/tools/quic/test_tools/quic_test_client.h" |
| 6 | 6 |
| 7 #include "net/base/completion_callback.h" | 7 #include "net/base/completion_callback.h" |
| 8 #include "net/base/net_errors.h" | 8 #include "net/base/net_errors.h" |
| 9 #include "net/cert/cert_verify_result.h" | 9 #include "net/cert/cert_verify_result.h" |
| 10 #include "net/cert/x509_certificate.h" | 10 #include "net/cert/x509_certificate.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 // A quic client which allows mocking out writes. | 93 // A quic client which allows mocking out writes. |
| 94 class QuicEpollClient : public QuicClient { | 94 class QuicEpollClient : public QuicClient { |
| 95 public: | 95 public: |
| 96 typedef QuicClient Super; | 96 typedef QuicClient Super; |
| 97 | 97 |
| 98 QuicEpollClient(IPEndPoint server_address, | 98 QuicEpollClient(IPEndPoint server_address, |
| 99 const string& server_hostname, | 99 const string& server_hostname, |
| 100 const QuicVersion version) | 100 const QuicVersion version) |
| 101 : Super(server_address, server_hostname, version) { | 101 : Super(server_address, server_hostname, version, false) { |
| 102 } | 102 } |
| 103 | 103 |
| 104 QuicEpollClient(IPEndPoint server_address, | 104 QuicEpollClient(IPEndPoint server_address, |
| 105 const string& server_hostname, | 105 const string& server_hostname, |
| 106 const QuicConfig& config, | 106 const QuicConfig& config, |
| 107 const QuicVersion version) | 107 const QuicVersion version) |
| 108 : Super(server_address, server_hostname, config, version) { | 108 : Super(server_address, server_hostname, config, version) { |
| 109 } | 109 } |
| 110 | 110 |
| 111 virtual ~QuicEpollClient() { | 111 virtual ~QuicEpollClient() { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 } | 337 } |
| 338 | 338 |
| 339 void QuicTestClient::UseWriter(QuicTestWriter* writer) { | 339 void QuicTestClient::UseWriter(QuicTestWriter* writer) { |
| 340 DCHECK(!connected()); | 340 DCHECK(!connected()); |
| 341 reinterpret_cast<QuicEpollClient*>(client_.get())->UseWriter(writer); | 341 reinterpret_cast<QuicEpollClient*>(client_.get())->UseWriter(writer); |
| 342 } | 342 } |
| 343 | 343 |
| 344 } // namespace test | 344 } // namespace test |
| 345 } // namespace tools | 345 } // namespace tools |
| 346 } // namespace net | 346 } // namespace net |
| OLD | NEW |