chromium/third_party/blink/renderer/bindings/core/v8/serialization/trailer_reader_test.cc

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

#include "third_party/blink/renderer/bindings/core/v8/serialization/trailer_reader.h"

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/serialization/serialization_tag.h"

UnorderedElementsAre;

namespace blink {
namespace {

MATCHER(FoundTrailer, "") {}
MATCHER(FoundNoTrailer, "") {}
MATCHER(SawInvalidHeader, "") {}

MATCHER(Succeeded, "") {}
MATCHER(SawInvalidTrailer, "") {}

TEST(TrailerReaderTest, SkipToTrailer_Empty) {}

TEST(TrailerReaderTest, SkipToTrailer_NoVersion) {}

TEST(TrailerReaderTest, SkipToTrailer_VersionTooLow) {}

TEST(TrailerReaderTest, SkipToTrailer_VersionTooHigh) {}

TEST(TrailerReaderTest, SkipToTrailer_VersionOverflow) {}

TEST(TrailerReaderTest, SkipToTrailer_NoTrailerTag) {}

TEST(TrailerReaderTest, SkipToTrailer_TruncatedOffset) {}

TEST(TrailerReaderTest, SkipToTrailer_TruncatedSize) {}

TEST(TrailerReaderTest, SkipToTrailer_NoTrailer) {}

TEST(TrailerReaderTest, SkipToTrailer_OffsetTooSmall) {}

TEST(TrailerReaderTest, SkipToTrailer_OffsetTooLarge) {}

TEST(TrailerReaderTest, SkipToTrailer_SizeTooLarge) {}

TEST(TrailerReaderTest, SkipToTrailer_ValidRange) {}

TEST(TrailerReaderTest, Read_Empty) {}

TEST(TrailerReaderTest, Read_UnrecognizedTrailerTag) {}

TEST(TrailerReaderTest, Read_TruncatedInterfaceCount) {}

TEST(TrailerReaderTest, Read_TruncatedExposedInterfaces) {}

TEST(TrailerReaderTest, Read_ZeroInterfaceCount) {}

TEST(TrailerReaderTest, Read_ValidExposedInterfaces) {}

TEST(TrailerReaderTest, Read_AfterSkipToTrailer) {}

TEST(TrailerReaderTest, Read_AfterSkipToTrailer_SizeTooSmall) {}

}  // namespace
}  // namespace blink