#ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_TEST_UTIL_H_
#define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_TEST_UTIL_H_
#include <stdint.h>
#include <string>
#include "net/base/test_completion_callback.h"
#include "net/socket/stream_socket.h"
namespace net {
class IOBuffer;
void SendRequestAndResponse(StreamSocket* socket,
StreamSocket* connected_socket);
std::string ReadDataOfExpectedLength(StreamSocket* socket,
int expected_bytes_read);
void SendServerResponse(StreamSocket* socket);
int DrainStreamSocket(StreamSocket* socket,
IOBuffer* buf,
uint32_t buf_len,
uint32_t bytes_to_read,
TestCompletionCallback* callback);
}
#endif