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_SERVER_H_ | 5 #ifndef NET_CURVECP_TEST_SERVER_H_ |
6 #define NET_CURVECP_TEST_SERVER_H_ | 6 #define NET_CURVECP_TEST_SERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 void ReadData(); | 60 void ReadData(); |
61 | 61 |
62 private: | 62 private: |
63 static const int kMaxMessage = 1024; | 63 static const int kMaxMessage = 1024; |
64 CurveCPServerSocket* socket_; | 64 CurveCPServerSocket* socket_; |
65 scoped_refptr<IOBuffer> read_buffer_; | 65 scoped_refptr<IOBuffer> read_buffer_; |
66 scoped_refptr<DrainableIOBuffer> write_buffer_; | 66 scoped_refptr<DrainableIOBuffer> write_buffer_; |
67 TestDataStream received_stream_; | 67 TestDataStream received_stream_; |
68 int bytes_received_; | 68 int bytes_received_; |
69 OldCompletionCallbackImpl<EchoServer> read_callback_; | |
70 OldCompletionCallbackImpl<EchoServer> write_callback_; | |
71 }; | 69 }; |
72 | 70 |
73 } // namespace net | 71 } // namespace net |
74 | 72 |
75 #endif // NET_CURVECP_TEST_SERVER_H_ | 73 #endif // NET_CURVECP_TEST_SERVER_H_ |
OLD | NEW |