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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 private: | 179 private: |
180 EpollServer epoll_server_; | 180 EpollServer epoll_server_; |
181 scoped_ptr<MockableQuicClient> client_; // The actual client | 181 scoped_ptr<MockableQuicClient> client_; // The actual client |
182 QuicSpdyClientStream* stream_; | 182 QuicSpdyClientStream* stream_; |
183 | 183 |
184 QuicRstStreamErrorCode stream_error_; | 184 QuicRstStreamErrorCode stream_error_; |
185 | 185 |
186 bool response_complete_; | 186 bool response_complete_; |
187 bool response_headers_complete_; | 187 bool response_headers_complete_; |
188 BalsaHeaders headers_; | 188 mutable BalsaHeaders headers_; |
189 QuicPriority priority_; | 189 QuicPriority priority_; |
190 std::string response_; | 190 std::string response_; |
191 uint64 bytes_read_; | 191 uint64 bytes_read_; |
192 uint64 bytes_written_; | 192 uint64 bytes_written_; |
193 // The number of uncompressed HTTP header bytes received. | 193 // The number of uncompressed HTTP header bytes received. |
194 int response_header_size_; | 194 int response_header_size_; |
195 // The number of HTTP body bytes received. | 195 // The number of HTTP body bytes received. |
196 int64 response_body_size_; | 196 int64 response_body_size_; |
197 // True if we tried to connect already since the last call to Disconnect(). | 197 // True if we tried to connect already since the last call to Disconnect(). |
198 bool connect_attempted_; | 198 bool connect_attempted_; |
(...skipping 12 matching lines...) Expand all Loading... |
211 | 211 |
212 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); | 212 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); |
213 }; | 213 }; |
214 | 214 |
215 } // namespace test | 215 } // namespace test |
216 | 216 |
217 } // namespace tools | 217 } // namespace tools |
218 } // namespace net | 218 } // namespace net |
219 | 219 |
220 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ | 220 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ |
OLD | NEW |