#include "src/trace_processor/util/proto_to_args_parser.h"
#include "perfetto/ext/base/string_view.h"
#include "perfetto/protozero/packed_repeated_fields.h"
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "perfetto/trace_processor/trace_blob.h"
#include "perfetto/trace_processor/trace_blob_view.h"
#include "protos/perfetto/common/descriptor.pbzero.h"
#include "protos/perfetto/trace/track_event/source_location.pbzero.h"
#include "src/protozero/test/example_proto/test_messages.pbzero.h"
#include "src/trace_processor/test_messages.descriptor.h"
#include "src/trace_processor/util/interned_message_view.h"
#include "test/gtest_and_gmock.h"
#include <cstdint>
#include <limits>
#include <sstream>
namespace perfetto {
namespace trace_processor {
namespace util {
namespace {
constexpr size_t kChunkSize = …;
protozero::ConstChars ToChars(const char* str) { … }
class ProtoToArgsParserTest : public ::testing::Test,
public ProtoToArgsParser::Delegate { … };
TEST_F(ProtoToArgsParserTest, EnsureTestMessageProtoParses) { … }
TEST_F(ProtoToArgsParserTest, BasicSingleLayerProto) { … }
TEST_F(ProtoToArgsParserTest, NestedProto) { … }
TEST_F(ProtoToArgsParserTest, CamelCaseFieldsProto) { … }
TEST_F(ProtoToArgsParserTest, NestedProtoParsingOverrideHandled) { … }
TEST_F(ProtoToArgsParserTest, NestedProtoParsingOverrideSkipped) { … }
TEST_F(ProtoToArgsParserTest, LookingUpInternedStateParsingOverride) { … }
TEST_F(ProtoToArgsParserTest, OverrideForType) { … }
TEST_F(ProtoToArgsParserTest, FieldOverrideTakesPrecedence) { … }
TEST_F(ProtoToArgsParserTest, EmptyMessage) { … }
TEST_F(ProtoToArgsParserTest, WidthAndSignednessOfScalars) { … }
TEST_F(ProtoToArgsParserTest, PackedFields) { … }
}
}
}
}