#include "remoting/protocol/channel_socket_adapter.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "base/test/task_environment.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/socket/socket.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/api/array_view.h"
#include "third_party/webrtc/p2p/base/mock_ice_transport.h"
#include "third_party/webrtc/rtc_base/network/received_packet.h"
IOBufferWithSize;
_;
Return;
namespace remoting::protocol {
namespace {
const int kBufferSize = …;
const uint8_t kTestData[] = …;
const int kTestDataSize = …;
const int kTestError = …;
}
class IceTransportForTest : public cricket::MockIceTransport { … };
class TransportChannelSocketAdapterTest : public testing::Test { … };
TEST_F(TransportChannelSocketAdapterTest, Read) { … }
TEST_F(TransportChannelSocketAdapterTest, ReadClose) { … }
TEST_F(TransportChannelSocketAdapterTest, Send) { … }
TEST_F(TransportChannelSocketAdapterTest, SendPending) { … }
}