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_SOCKET_SOCKET_TEST_UTIL_H_ | 5 #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_ |
6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_ | 6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 SSLClientSocket::NextProtoStatus next_proto_status; | 327 SSLClientSocket::NextProtoStatus next_proto_status; |
328 std::string next_proto; | 328 std::string next_proto; |
329 std::string server_protos; | 329 std::string server_protos; |
330 bool was_npn_negotiated; | 330 bool was_npn_negotiated; |
331 NextProto protocol_negotiated; | 331 NextProto protocol_negotiated; |
332 bool client_cert_sent; | 332 bool client_cert_sent; |
333 SSLCertRequestInfo* cert_request_info; | 333 SSLCertRequestInfo* cert_request_info; |
334 scoped_refptr<X509Certificate> cert; | 334 scoped_refptr<X509Certificate> cert; |
335 bool channel_id_sent; | 335 bool channel_id_sent; |
336 ServerBoundCertService* server_bound_cert_service; | 336 ServerBoundCertService* server_bound_cert_service; |
| 337 int connection_status; |
337 }; | 338 }; |
338 | 339 |
339 // A DataProvider where the client must write a request before the reads (e.g. | 340 // A DataProvider where the client must write a request before the reads (e.g. |
340 // the response) will complete. | 341 // the response) will complete. |
341 class DelayedSocketData : public StaticSocketDataProvider { | 342 class DelayedSocketData : public StaticSocketDataProvider { |
342 public: | 343 public: |
343 // |write_delay| the number of MockWrites to complete before allowing | 344 // |write_delay| the number of MockWrites to complete before allowing |
344 // a MockRead to complete. | 345 // a MockRead to complete. |
345 // |reads| the list of MockRead completions. | 346 // |reads| the list of MockRead completions. |
346 // |writes| the list of MockWrite completions. | 347 // |writes| the list of MockWrite completions. |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 | 1285 |
1285 extern const char kSOCKS5OkRequest[]; | 1286 extern const char kSOCKS5OkRequest[]; |
1286 extern const int kSOCKS5OkRequestLength; | 1287 extern const int kSOCKS5OkRequestLength; |
1287 | 1288 |
1288 extern const char kSOCKS5OkResponse[]; | 1289 extern const char kSOCKS5OkResponse[]; |
1289 extern const int kSOCKS5OkResponseLength; | 1290 extern const int kSOCKS5OkResponseLength; |
1290 | 1291 |
1291 } // namespace net | 1292 } // namespace net |
1292 | 1293 |
1293 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1294 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |