#include "src/trace_processor/util/debug_annotation_parser.h"
#include "perfetto/ext/base/string_view.h"
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "perfetto/trace_processor/ref_counted.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/interned_data/interned_data.pbzero.h"
#include "protos/perfetto/trace/profiling/profile_common.pbzero.h"
#include "protos/perfetto/trace/test_event.pbzero.h"
#include "protos/perfetto/trace/track_event/debug_annotation.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/importers/proto/packet_sequence_state_builder.h"
#include "src/trace_processor/importers/proto/packet_sequence_state_generation.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "src/trace_processor/test_messages.descriptor.h"
#include "src/trace_processor/types/trace_processor_context.h"
#include "src/trace_processor/util/interned_message_view.h"
#include "src/trace_processor/util/proto_to_args_parser.h"
#include "test/gtest_and_gmock.h"
#include <sstream>
namespace perfetto {
namespace trace_processor {
namespace util {
namespace {
base::Status ParseDebugAnnotation(
DebugAnnotationParser& parser,
protozero::HeapBuffered<protos::pbzero::DebugAnnotation>& msg,
ProtoToArgsParser::Delegate& delegate) { … }
class DebugAnnotationParserTest : public ::testing::Test,
public ProtoToArgsParser::Delegate { … };
TEST_F(DebugAnnotationParserTest, DeeplyNestedDictsAndArrays) { … }
TEST_F(DebugAnnotationParserTest, MergeArrays) { … }
TEST_F(DebugAnnotationParserTest, EmptyArrayIndexIsSkipped) { … }
TEST_F(DebugAnnotationParserTest, NestedArrays) { … }
TEST_F(DebugAnnotationParserTest, TypedMessageInsideUntyped) { … }
TEST_F(DebugAnnotationParserTest, InternedString) { … }
}
}
}
}