#include "components/media_router/common/providers/cast/channel/cast_transport.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/containers/queue.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/simple_test_clock.h"
#include "base/test/task_environment.h"
#include "components/media_router/common/providers/cast/channel/cast_framer.h"
#include "components/media_router/common/providers/cast/channel/cast_socket.h"
#include "components/media_router/common/providers/cast/channel/cast_test_util.h"
#include "components/media_router/common/providers/cast/channel/logger.h"
#include "net/base/completion_once_callback.h"
#include "net/base/completion_repeating_callback.h"
#include "net/base/net_errors.h"
#include "net/log/test_net_log.h"
#include "net/socket/socket.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/network_context.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/openscreen/src/cast/common/channel/proto/cast_channel.pb.h"
_;
DoAll;
InSequence;
Invoke;
NotNull;
Return;
WithArg;
namespace cast_channel {
namespace …
class MockSocket : public cast_channel::CastTransportImpl::Channel { … };
class CastTransportTest : public testing::Test { … };
TEST_F(CastTransportTest, TestFullWriteAsync) { … }
TEST_F(CastTransportTest, TestPartialWritesAsync) { … }
TEST_F(CastTransportTest, TestWriteFailureAsync) { … }
TEST_F(CastTransportTest, TestFullReadAsync) { … }
TEST_F(CastTransportTest, TestPartialReadAsync) { … }
TEST_F(CastTransportTest, TestReadErrorInHeaderAsync) { … }
TEST_F(CastTransportTest, TestReadErrorInBodyAsync) { … }
TEST_F(CastTransportTest, TestReadCorruptedMessageAsync) { … }
}