| 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 NET_CURVECP_TEST_CLIENT_H_ | 5 #ifndef NET_CURVECP_TEST_CLIENT_H_ |
| 6 #define NET_CURVECP_TEST_CLIENT_H_ | 6 #define NET_CURVECP_TEST_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| 11 #include "net/base/host_port_pair.h" | 11 #include "net/base/host_port_pair.h" |
| 12 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
| 13 #include "net/curvecp/test_data_stream.h" | 13 #include "net/base/test_data_stream.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 class CurveCPClientSocket; | 17 class CurveCPClientSocket; |
| 18 | 18 |
| 19 // The TestClient connects to a test server, sending a stream of verifiable | 19 // The TestClient connects to a test server, sending a stream of verifiable |
| 20 // bytes. The TestClient expects to get the same bytes echoed back from the | 20 // bytes. The TestClient expects to get the same bytes echoed back from the |
| 21 // TestServer. After sending all bytes and receiving the echoes, the | 21 // TestServer. After sending all bytes and receiving the echoes, the |
| 22 // TestClient closes itself. | 22 // TestClient closes itself. |
| 23 // | 23 // |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 TestDataStream received_stream_; | 61 TestDataStream received_stream_; |
| 62 CompletionCallbackImpl<TestClient> connect_callback_; | 62 CompletionCallbackImpl<TestClient> connect_callback_; |
| 63 CompletionCallbackImpl<TestClient> read_callback_; | 63 CompletionCallbackImpl<TestClient> read_callback_; |
| 64 CompletionCallbackImpl<TestClient> write_callback_; | 64 CompletionCallbackImpl<TestClient> write_callback_; |
| 65 CompletionCallback* finished_callback_; | 65 CompletionCallback* finished_callback_; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace net | 68 } // namespace net |
| 69 | 69 |
| 70 #endif // NET_CURVECP_TEST_CLIENT_H_ | 70 #endif // NET_CURVECP_TEST_CLIENT_H_ |
| OLD | NEW |