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

Unified Diff: components/tracing/BUILD.gn

Issue 2271653004: Reland of tracing v2: Introduce TraceBufferWriter (https://codereview.chromium.org/2196663002) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix undefined behavior of move ctor that caused revert on Win 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 612e88a6e23fd27b38d3cdabfe26643de29ec79f..a347f052a43e6b00be3dee2cf7defbc19155f799 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",
@@ -87,12 +89,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",
@@ -106,3 +110,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