OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 REMOTING_PROTOCOL_CONNECTION_TESTER_H_ | 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TESTER_H_ |
6 #define REMOTING_PROTOCOL_CONNECTION_TESTER_H_ | 6 #define REMOTING_PROTOCOL_CONNECTION_TESTER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void HandleWriteResult(int result); | 44 void HandleWriteResult(int result); |
45 void DoRead(); | 45 void DoRead(); |
46 void OnRead(int result); | 46 void OnRead(int result); |
47 void HandleReadResult(int result); | 47 void HandleReadResult(int result); |
48 | 48 |
49 private: | 49 private: |
50 MessageLoop* message_loop_; | 50 MessageLoop* message_loop_; |
51 net::StreamSocket* host_socket_; | 51 net::StreamSocket* host_socket_; |
52 net::StreamSocket* client_socket_; | 52 net::StreamSocket* client_socket_; |
53 int message_size_; | 53 int message_size_; |
54 int message_count_; | |
55 int test_data_size_; | 54 int test_data_size_; |
56 bool done_; | 55 bool done_; |
57 | 56 |
58 scoped_refptr<net::DrainableIOBuffer> output_buffer_; | 57 scoped_refptr<net::DrainableIOBuffer> output_buffer_; |
59 scoped_refptr<net::GrowableIOBuffer> input_buffer_; | 58 scoped_refptr<net::GrowableIOBuffer> input_buffer_; |
60 | 59 |
61 int write_errors_; | 60 int write_errors_; |
62 int read_errors_; | 61 int read_errors_; |
63 }; | 62 }; |
64 | 63 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 int read_errors_; | 97 int read_errors_; |
99 int packets_sent_; | 98 int packets_sent_; |
100 int packets_received_; | 99 int packets_received_; |
101 int bad_packets_received_; | 100 int bad_packets_received_; |
102 }; | 101 }; |
103 | 102 |
104 } // namespace protocol | 103 } // namespace protocol |
105 } // namespace remoting | 104 } // namespace remoting |
106 | 105 |
107 #endif // REMOTING_PROTOCOL_CONNECTION_TESTER_H_ | 106 #endif // REMOTING_PROTOCOL_CONNECTION_TESTER_H_ |
OLD | NEW |