Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2876)

Unified Diff: components/tracing/BUILD.gn

Issue 2196663002: tracing v2: Introduce TraceBufferWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proto_refactor
Patch Set: Fix linking errors moving kChunkSize outside of exported class Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/tracing.gyp ('k') | components/tracing/core/proto_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
+ ]
+}
« no previous file with comments | « components/tracing.gyp ('k') | components/tracing/core/proto_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698