#include "cast/common/channel/message_framer.h"
#include <stddef.h>
#include <algorithm>
#include <string>
#include <utility>
#include "cast/common/channel/proto/cast_channel.pb.h"
#include "gtest/gtest.h"
#include "util/big_endian.h"
#include "util/std_util.h"
namespace openscreen::cast {
namespace message_serialization {
CastMessage;
namespace {
static constexpr size_t kHeaderSize = …;
static constexpr size_t kMaxBodySize = …;
}
class CastFramerTest : public testing::Test { … };
TEST_F(CastFramerTest, TestMessageFramerCompleteMessage) { … }
TEST_F(CastFramerTest, TestSerializeErrorMessageTooLarge) { … }
TEST_F(CastFramerTest, TestCompleteMessageAtOnce) { … }
TEST_F(CastFramerTest, TestTryDeserializeIllegalLargeMessage) { … }
TEST_F(CastFramerTest, TestTryDeserializeIllegalLargeMessage2) { … }
TEST_F(CastFramerTest, TestUnparsableBodyProto) { … }
}
}