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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 size_t bytes_written() const override; | 125 size_t bytes_written() const override; |
126 bool buffer_body() const override; | 126 bool buffer_body() const override; |
127 void set_buffer_body(bool buffer_body) override; | 127 void set_buffer_body(bool buffer_body) override; |
128 bool ServerInLameDuckMode() const override; | 128 bool ServerInLameDuckMode() const override; |
129 const std::string& response_body() override; | 129 const std::string& response_body() override; |
130 bool connected() const override; | 130 bool connected() const override; |
131 // These functions are all unimplemented functions from SimpleClient, and log | 131 // These functions are all unimplemented functions from SimpleClient, and log |
132 // DFATAL if called by users of SimpleClient. | 132 // DFATAL if called by users of SimpleClient. |
133 ssize_t SendAndWaitForResponse(const void* buffer, size_t size) override; | 133 ssize_t SendAndWaitForResponse(const void* buffer, size_t size) override; |
134 void Bind(IPEndPoint* local_address) override; | 134 void Bind(IPEndPoint* local_address) override; |
| 135 void MigrateSocket(const IPAddressNumber& new_host) override; |
135 std::string SerializeMessage(const HTTPMessage& message) override; | 136 std::string SerializeMessage(const HTTPMessage& message) override; |
136 IPAddressNumber bind_to_address() const override; | 137 IPAddressNumber bind_to_address() const override; |
137 void set_bind_to_address(IPAddressNumber address) override; | 138 void set_bind_to_address(IPAddressNumber address) override; |
138 const IPEndPoint& address() const override; | 139 const IPEndPoint& address() const override; |
139 size_t requests_sent() const override; | 140 size_t requests_sent() const override; |
140 | 141 |
141 // From QuicDataStream::Visitor | 142 // From QuicDataStream::Visitor |
142 void OnClose(QuicDataStream* stream) override; | 143 void OnClose(QuicDataStream* stream) override; |
143 | 144 |
144 // Configures client_ to take ownership of and use the writer. | 145 // Configures client_ to take ownership of and use the writer. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 250 |
250 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); | 251 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); |
251 }; | 252 }; |
252 | 253 |
253 } // namespace test | 254 } // namespace test |
254 | 255 |
255 } // namespace tools | 256 } // namespace tools |
256 } // namespace net | 257 } // namespace net |
257 | 258 |
258 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 259 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
OLD | NEW |