chromium/third_party/openscreen/src/cast/common/channel/message_framer_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

// Cast specifies a max message body size of 64 KiB.
static constexpr size_t kMaxBodySize =;

}  // namespace

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) {}

}  // namespace message_serialization
}  // namespace openscreen::cast