#include "net/socket/transport_client_socket_test_util.h"
#include <string>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "net/base/address_list.h"
#include "net/base/io_buffer.h"
#include "net/base/ip_address.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/log/net_log_event_type.h"
#include "net/log/net_log_source.h"
#include "net/log/net_log_with_source.h"
#include "net/log/test_net_log.h"
#include "net/log/test_net_log_util.h"
#include "net/socket/client_socket_factory.h"
#include "net/socket/tcp_client_socket.h"
#include "net/socket/tcp_server_socket.h"
#include "net/test/gtest_util.h"
#include "net/test/test_with_task_environment.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
IsError;
IsOk;
namespace net {
namespace {
const char kServerReply[] = …;
}
class TransportClientSocketTest : public ::testing::Test,
public WithTaskEnvironment { … };
void TransportClientSocketTest::SetUp() { … }
void TransportClientSocketTest::EstablishConnection(
TestCompletionCallback* callback) { … }
TEST_F(TransportClientSocketTest, Connect) { … }
TEST_F(TransportClientSocketTest, IsConnected) { … }
TEST_F(TransportClientSocketTest, Read) { … }
TEST_F(TransportClientSocketTest, Read_SmallChunks) { … }
TEST_F(TransportClientSocketTest, Read_Interrupted) { … }
TEST_F(TransportClientSocketTest, FullDuplex_ReadFirst) { … }
TEST_F(TransportClientSocketTest, FullDuplex_WriteFirst) { … }
}