#include "perfetto/protozero/proto_decoder.h"
#include "perfetto/ext/base/utils.h"
#include "perfetto/protozero/message.h"
#include "perfetto/protozero/proto_utils.h"
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "perfetto/protozero/static_buffer.h"
#include "test/gtest_and_gmock.h"
#include "src/protozero/test/example_proto/test_messages.pb.h"
#include "src/protozero/test/example_proto/test_messages.pbzero.h"
namespace pbtest = protozero::test::protos::pbzero;
namespace pbgold = protozero::test::protos;
namespace protozero {
namespace {
_;
ElementsAre;
InSequence;
Invoke;
usingnamespaceproto_utils;
TEST(ProtoDecoderTest, ReadString) { … }
TEST(ProtoDecoderTest, SkipVeryLargeFields) { … }
TEST(ProtoDecoderTest, SingleRepeatedField) { … }
TEST(ProtoDecoderTest, RepeatedVariableLengthField) { … }
TEST(ProtoDecoderTest, SingleRepeatedFieldWithExpansion) { … }
TEST(ProtoDecoderTest, NoRepeatedField) { … }
TEST(ProtoDecoderTest, RepeatedFields) { … }
TEST(ProtoDecoderTest, FixedData) { … }
TEST(ProtoDecoderTest, FindField) { … }
TEST(ProtoDecoderTest, MoveTypedDecoder) { … }
TEST(ProtoDecoderTest, PackedRepeatedVarint) { … }
TEST(ProtoDecoderTest, PackedRepeatedFixed32) { … }
TEST(ProtoDecoderTest, PackedRepeatedFixed64) { … }
TEST(ProtoDecoderTest, ZeroLengthPackedRepeatedField) { … }
TEST(ProtoDecoderTest, MalformedPackedFixedBuffer) { … }
TEST(ProtoDecoderTest, MalformedPackedVarIntBuffer) { … }
TEST(ProtoDecoderTest, BigFieldIds) { … }
TEST(ProtoDecoderTest, OneBigFieldIdOnly) { … }
TEST(ProtoDecoderTest, PacketRepeatedWireTypeMismatch) { … }
TEST(ProtoDecoderTest, RepeatedMaxFieldIdStack) { … }
}
}