Index: components/tracing/BUILD.gn |
diff --git a/components/tracing/BUILD.gn b/components/tracing/BUILD.gn |
index c00cdd2b300b6db607be57b5ff15d90ca50beae1..e152a4793dccecfdef92b968cfcd7377653391a2 100644 |
--- a/components/tracing/BUILD.gn |
+++ b/components/tracing/BUILD.gn |
@@ -23,6 +23,8 @@ component("tracing") { |
"core/proto_zero_message_handle.h", |
"core/scattered_stream_writer.cc", |
"core/scattered_stream_writer.h", |
+ "core/trace_buffer_writer.cc", |
+ "core/trace_buffer_writer.h", |
"core/trace_ring_buffer.cc", |
"core/trace_ring_buffer.h", |
"tracing_export.h", |
@@ -84,12 +86,14 @@ source_set("unit_tests") { |
"core/proto_utils_unittest.cc", |
"core/proto_zero_message_unittest.cc", |
"core/scattered_stream_writer_unittest.cc", |
+ "core/trace_buffer_writer_unittest.cc", |
"core/trace_ring_buffer_unittest.cc", |
"test/fake_scattered_buffer.cc", |
"test/proto_zero_generation_unittest.cc", |
] |
deps = [ |
+ ":golden_protos_for_tests", |
":proto_zero_testing_messages", |
":tracing", |
"//base/test:test_support", |
@@ -103,3 +107,13 @@ source_set("unit_tests") { |
deps += [ ":startup_tracing" ] |
} |
} |
+ |
+# Official protobuf used by tests to verify that the Tracing V2 output is |
+# effectively proto-compatible. |
+proto_library("golden_protos_for_tests") { |
+ visibility = [ ":unit_tests" ] |
+ proto_out_dir = "components/tracing/test/golden_protos" |
+ sources = [ |
+ "proto/events_chunk.proto", |
+ ] |
+} |