#include "components/cast_streaming/browser/cast_message_port_impl.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "components/cast/message_port/platform_message_port.h"
#include "components/cast/message_port/test_message_port_receiver.h"
#include "components/cast_streaming/common/message_serialization.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cast_streaming {
namespace {
const char kSenderId[] = …;
}
class CastMessagePortImplTest : public testing::Test,
public openscreen::cast::MessagePort::Client { … };
TEST_F(CastMessagePortImplTest, BasicConnection) { … }
TEST_F(CastMessagePortImplTest, InjectMessage) { … }
TEST_F(CastMessagePortImplTest, BadMessage) { … }
TEST_F(CastMessagePortImplTest, CastChannelClosed) { … }
TEST_F(CastMessagePortImplTest, MediaStatus) { … }
TEST_F(CastMessagePortImplTest, InvalidMediaMessages) { … }
}