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.cc", | 19 "core/proto_utils.cc", |
20 "core/proto_utils.h", | 20 "core/proto_utils.h", |
21 "core/proto_zero_message.cc", | 21 "core/proto_zero_message.cc", |
22 "core/proto_zero_message.h", | 22 "core/proto_zero_message.h", |
23 "core/proto_zero_message_handle.cc", | 23 "core/proto_zero_message_handle.cc", |
24 "core/proto_zero_message_handle.h", | 24 "core/proto_zero_message_handle.h", |
25 "core/scattered_stream_writer.cc", | 25 "core/scattered_stream_writer.cc", |
26 "core/scattered_stream_writer.h", | 26 "core/scattered_stream_writer.h", |
| 27 "core/string_interning.cc", |
| 28 "core/string_interning.h", |
| 29 "core/trace_buffer_reader.cc", |
| 30 "core/trace_buffer_reader.h", |
27 "core/trace_buffer_writer.cc", | 31 "core/trace_buffer_writer.cc", |
28 "core/trace_buffer_writer.h", | 32 "core/trace_buffer_writer.h", |
29 "core/trace_ring_buffer.cc", | 33 "core/trace_ring_buffer.cc", |
30 "core/trace_ring_buffer.h", | 34 "core/trace_ring_buffer.h", |
31 "tracing_export.h", | 35 "tracing_export.h", |
32 ] | 36 ] |
33 | 37 |
34 defines = [ "TRACING_IMPLEMENTATION" ] | 38 defines = [ "TRACING_IMPLEMENTATION" ] |
35 | 39 |
36 deps = [ | 40 deps = [ |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 source_set("unit_tests") { | 92 source_set("unit_tests") { |
89 testonly = true | 93 testonly = true |
90 | 94 |
91 sources = [ | 95 sources = [ |
92 "child/child_trace_message_filter_unittest.cc", | 96 "child/child_trace_message_filter_unittest.cc", |
93 "common/graphics_memory_dump_provider_android_unittest.cc", | 97 "common/graphics_memory_dump_provider_android_unittest.cc", |
94 "common/process_metrics_memory_dump_provider_unittest.cc", | 98 "common/process_metrics_memory_dump_provider_unittest.cc", |
95 "core/proto_utils_unittest.cc", | 99 "core/proto_utils_unittest.cc", |
96 "core/proto_zero_message_unittest.cc", | 100 "core/proto_zero_message_unittest.cc", |
97 "core/scattered_stream_writer_unittest.cc", | 101 "core/scattered_stream_writer_unittest.cc", |
| 102 "core/trace_buffer_reader_unittest.cc", |
98 "core/trace_buffer_writer_unittest.cc", | 103 "core/trace_buffer_writer_unittest.cc", |
99 "core/trace_ring_buffer_unittest.cc", | 104 "core/trace_ring_buffer_unittest.cc", |
100 "test/fake_scattered_buffer.cc", | 105 "test/fake_scattered_buffer.cc", |
101 "test/proto_zero_generation_unittest.cc", | 106 "test/proto_zero_generation_unittest.cc", |
102 ] | 107 ] |
103 | 108 |
104 deps = [ | 109 deps = [ |
105 ":proto_zero_testing_messages", | 110 ":proto_zero_testing_messages", |
106 ":tracing", | 111 ":tracing", |
107 "//base/test:test_support", | 112 "//base/test:test_support", |
108 "//components/tracing/proto:golden_protos_for_tests", | 113 "//components/tracing/proto:golden_protos_for_tests", |
109 "//ipc", | 114 "//ipc", |
110 "//testing/gmock:gmock", | 115 "//testing/gmock:gmock", |
111 "//testing/gtest", | 116 "//testing/gtest", |
112 ] | 117 ] |
113 | 118 |
114 if (!is_android) { | 119 if (!is_android) { |
115 sources += [ "browser/trace_config_file_unittest.cc" ] | 120 sources += [ "browser/trace_config_file_unittest.cc" ] |
116 deps += [ ":startup_tracing" ] | 121 deps += [ ":startup_tracing" ] |
117 } | 122 } |
118 } | 123 } |
OLD | NEW |