OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/simple_client.h" | 5 #include "net/tools/quic/test_tools/simple_client.h" |
6 | 6 |
7 namespace net { | 7 namespace net { |
8 namespace tools { | 8 namespace tools { |
9 namespace test { | 9 namespace test { |
10 | 10 |
11 void SimpleClient::WaitForResponse() { | 11 void SimpleClient::WaitForResponse() { |
12 WaitForResponseForMs(-1); | 12 WaitForResponseForMs(-1); |
13 } | 13 } |
14 | 14 |
15 // Waits for some data or response from the server. | 15 // Waits for some data or response from the server. |
16 void SimpleClient::WaitForInitialResponse() { | 16 void SimpleClient::WaitForInitialResponse() { |
17 WaitForInitialResponseForMs(-1); | 17 WaitForInitialResponseForMs(-1); |
18 } | 18 } |
19 | 19 |
20 int SimpleClient::ResetSocket() { | 20 int SimpleClient::ResetSocket() { |
21 LOG(FATAL) << "SimpleClient::ResetSocket is not implemented"; | 21 LOG(FATAL) << "SimpleClient::ResetSocket is not implemented"; |
22 return 0; | 22 return 0; |
23 } | 23 } |
24 | 24 |
25 int SimpleClient::HalfClose() { | 25 int SimpleClient::HalfClose() { |
26 LOG(FATAL) << "SimpleClient::HalfClose is not implemented"; | 26 LOG(FATAL) << "SimpleClient::HalfClose is not implemented"; |
27 return 0; | 27 return 0; |
28 } | 28 } |
29 | 29 |
30 int SimpleClient::response_header_size() const { return 0; } | 30 int SimpleClient::response_header_size() const { |
| 31 return 0; |
| 32 } |
31 | 33 |
32 int64 SimpleClient::response_body_size() const { return 0; } | 34 int64 SimpleClient::response_body_size() const { |
| 35 return 0; |
| 36 } |
33 | 37 |
34 } // namespace net | 38 } // namespace net |
35 } // namespace tools | 39 } // namespace tools |
36 } // namespace test | 40 } // namespace test |
OLD | NEW |