#include <memory>
#include <string>
#include "net/socket/transport_client_socket_test_util.h"
#include "base/memory/ref_counted.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/test/gtest_util.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
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) { … }
}