OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 component("tracing") { | 7 component("tracing") { |
8 sources = [ | 8 sources = [ |
9 "child/child_memory_dump_manager_delegate_impl.cc", | 9 "child/child_memory_dump_manager_delegate_impl.cc", |
10 "child/child_memory_dump_manager_delegate_impl.h", | 10 "child/child_memory_dump_manager_delegate_impl.h", |
11 "child/child_trace_message_filter.cc", | 11 "child/child_trace_message_filter.cc", |
12 "child/child_trace_message_filter.h", | 12 "child/child_trace_message_filter.h", |
13 "common/graphics_memory_dump_provider_android.cc", | 13 "common/graphics_memory_dump_provider_android.cc", |
14 "common/graphics_memory_dump_provider_android.h", | 14 "common/graphics_memory_dump_provider_android.h", |
15 "common/process_metrics_memory_dump_provider.cc", | 15 "common/process_metrics_memory_dump_provider.cc", |
16 "common/process_metrics_memory_dump_provider.h", | 16 "common/process_metrics_memory_dump_provider.h", |
17 "common/tracing_messages.cc", | 17 "common/tracing_messages.cc", |
18 "common/tracing_messages.h", | 18 "common/tracing_messages.h", |
19 "core/proto_utils.h", | 19 "core/proto_utils.h", |
20 "core/proto_zero_message.cc", | 20 "core/proto_zero_message.cc", |
21 "core/proto_zero_message.h", | 21 "core/proto_zero_message.h", |
22 "core/proto_zero_message_handle.cc", | 22 "core/proto_zero_message_handle.cc", |
23 "core/proto_zero_message_handle.h", | 23 "core/proto_zero_message_handle.h", |
24 "core/scattered_stream_writer.cc", | 24 "core/scattered_stream_writer.cc", |
25 "core/scattered_stream_writer.h", | 25 "core/scattered_stream_writer.h", |
| 26 "core/trace_buffer_writer.cc", |
| 27 "core/trace_buffer_writer.h", |
26 "core/trace_ring_buffer.cc", | 28 "core/trace_ring_buffer.cc", |
27 "core/trace_ring_buffer.h", | 29 "core/trace_ring_buffer.h", |
28 "tracing_export.h", | 30 "tracing_export.h", |
29 ] | 31 ] |
30 | 32 |
31 defines = [ "TRACING_IMPLEMENTATION" ] | 33 defines = [ "TRACING_IMPLEMENTATION" ] |
32 | 34 |
33 deps = [ | 35 deps = [ |
34 "//base", | 36 "//base", |
35 "//ipc", | 37 "//ipc", |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 source_set("unit_tests") { | 95 source_set("unit_tests") { |
94 testonly = true | 96 testonly = true |
95 | 97 |
96 sources = [ | 98 sources = [ |
97 "child/child_trace_message_filter_unittest.cc", | 99 "child/child_trace_message_filter_unittest.cc", |
98 "common/graphics_memory_dump_provider_android_unittest.cc", | 100 "common/graphics_memory_dump_provider_android_unittest.cc", |
99 "common/process_metrics_memory_dump_provider_unittest.cc", | 101 "common/process_metrics_memory_dump_provider_unittest.cc", |
100 "core/proto_utils_unittest.cc", | 102 "core/proto_utils_unittest.cc", |
101 "core/proto_zero_message_unittest.cc", | 103 "core/proto_zero_message_unittest.cc", |
102 "core/scattered_stream_writer_unittest.cc", | 104 "core/scattered_stream_writer_unittest.cc", |
| 105 "core/trace_buffer_writer_unittest.cc", |
103 "core/trace_ring_buffer_unittest.cc", | 106 "core/trace_ring_buffer_unittest.cc", |
104 "test/fake_scattered_buffer.cc", | 107 "test/fake_scattered_buffer.cc", |
105 "test/proto_zero_generation_unittest.cc", | 108 "test/proto_zero_generation_unittest.cc", |
106 ] | 109 ] |
107 | 110 |
108 deps = [ | 111 deps = [ |
| 112 ":golden_protos_for_tests", |
109 ":proto_zero_testing_messages", | 113 ":proto_zero_testing_messages", |
110 ":tracing", | 114 ":tracing", |
111 "//base/test:test_support", | 115 "//base/test:test_support", |
112 "//ipc", | 116 "//ipc", |
113 "//testing/gmock:gmock", | 117 "//testing/gmock:gmock", |
114 "//testing/gtest", | 118 "//testing/gtest", |
115 ] | 119 ] |
116 | 120 |
117 if (!is_android) { | 121 if (!is_android) { |
118 sources += [ "browser/trace_config_file_unittest.cc" ] | 122 sources += [ "browser/trace_config_file_unittest.cc" ] |
119 deps += [ ":startup_tracing" ] | 123 deps += [ ":startup_tracing" ] |
120 } | 124 } |
121 } | 125 } |
| 126 |
| 127 # Official protobuf used by tests to verify that the Tracing V2 output is |
| 128 # effectively proto-compatible. |
| 129 proto_library("golden_protos_for_tests") { |
| 130 visibility = [ ":unit_tests" ] |
| 131 proto_out_dir = "components/tracing/test/golden_protos" |
| 132 sources = [ |
| 133 "proto/events_chunk.proto", |
| 134 ] |
| 135 } |
OLD | NEW |