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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <cstring> | 9 #include <cstring> |
10 #include <deque> | 10 #include <deque> |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 | 778 |
779 private: | 779 private: |
780 static void ConnectCallback(MockSSLClientSocket *ssl_client_socket, | 780 static void ConnectCallback(MockSSLClientSocket *ssl_client_socket, |
781 const CompletionCallback& callback, | 781 const CompletionCallback& callback, |
782 int rv); | 782 int rv); |
783 | 783 |
784 scoped_ptr<ClientSocketHandle> transport_; | 784 scoped_ptr<ClientSocketHandle> transport_; |
785 SSLSocketDataProvider* data_; | 785 SSLSocketDataProvider* data_; |
786 bool is_npn_state_set_; | 786 bool is_npn_state_set_; |
787 bool new_npn_value_; | 787 bool new_npn_value_; |
788 bool was_used_to_convey_data_; | |
789 bool is_protocol_negotiated_set_; | 788 bool is_protocol_negotiated_set_; |
790 NextProto protocol_negotiated_; | 789 NextProto protocol_negotiated_; |
791 }; | 790 }; |
792 | 791 |
793 class MockUDPClientSocket : public DatagramClientSocket, | 792 class MockUDPClientSocket : public DatagramClientSocket, |
794 public AsyncSocket { | 793 public AsyncSocket { |
795 public: | 794 public: |
796 MockUDPClientSocket(SocketDataProvider* data, net::NetLog* net_log); | 795 MockUDPClientSocket(SocketDataProvider* data, net::NetLog* net_log); |
797 virtual ~MockUDPClientSocket(); | 796 virtual ~MockUDPClientSocket(); |
798 | 797 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 | 1055 |
1057 extern const char kSOCKS5OkRequest[]; | 1056 extern const char kSOCKS5OkRequest[]; |
1058 extern const int kSOCKS5OkRequestLength; | 1057 extern const int kSOCKS5OkRequestLength; |
1059 | 1058 |
1060 extern const char kSOCKS5OkResponse[]; | 1059 extern const char kSOCKS5OkResponse[]; |
1061 extern const int kSOCKS5OkResponseLength; | 1060 extern const int kSOCKS5OkResponseLength; |
1062 | 1061 |
1063 } // namespace net | 1062 } // namespace net |
1064 | 1063 |
1065 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1064 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |