| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 source_set("unit_tests") { | 82 source_set("unit_tests") { |
| 81 testonly = true | 83 testonly = true |
| 82 | 84 |
| 83 sources = [ | 85 sources = [ |
| 84 "child/child_trace_message_filter_unittest.cc", | 86 "child/child_trace_message_filter_unittest.cc", |
| 85 "common/graphics_memory_dump_provider_android_unittest.cc", | 87 "common/graphics_memory_dump_provider_android_unittest.cc", |
| 86 "common/process_metrics_memory_dump_provider_unittest.cc", | 88 "common/process_metrics_memory_dump_provider_unittest.cc", |
| 87 "core/proto_utils_unittest.cc", | 89 "core/proto_utils_unittest.cc", |
| 88 "core/proto_zero_message_unittest.cc", | 90 "core/proto_zero_message_unittest.cc", |
| 89 "core/scattered_stream_writer_unittest.cc", | 91 "core/scattered_stream_writer_unittest.cc", |
| 92 "core/trace_buffer_writer_unittest.cc", |
| 90 "core/trace_ring_buffer_unittest.cc", | 93 "core/trace_ring_buffer_unittest.cc", |
| 91 "test/fake_scattered_buffer.cc", | 94 "test/fake_scattered_buffer.cc", |
| 92 "test/proto_zero_generation_unittest.cc", | 95 "test/proto_zero_generation_unittest.cc", |
| 93 ] | 96 ] |
| 94 | 97 |
| 95 deps = [ | 98 deps = [ |
| 99 ":golden_protos_for_tests", |
| 96 ":proto_zero_testing_messages", | 100 ":proto_zero_testing_messages", |
| 97 ":tracing", | 101 ":tracing", |
| 98 "//base/test:test_support", | 102 "//base/test:test_support", |
| 99 "//ipc", | 103 "//ipc", |
| 100 "//testing/gmock:gmock", | 104 "//testing/gmock:gmock", |
| 101 "//testing/gtest", | 105 "//testing/gtest", |
| 102 ] | 106 ] |
| 103 | 107 |
| 104 if (!is_android) { | 108 if (!is_android) { |
| 105 sources += [ "browser/trace_config_file_unittest.cc" ] | 109 sources += [ "browser/trace_config_file_unittest.cc" ] |
| 106 deps += [ ":startup_tracing" ] | 110 deps += [ ":startup_tracing" ] |
| 107 } | 111 } |
| 108 } | 112 } |
| 113 |
| 114 # Official protobuf used by tests to verify that the Tracing V2 output is |
| 115 # effectively proto-compatible. |
| 116 proto_library("golden_protos_for_tests") { |
| 117 visibility = [ ":unit_tests" ] |
| 118 proto_out_dir = "components/tracing/test/golden_protos" |
| 119 sources = [ |
| 120 "proto/events_chunk.proto", |
| 121 ] |
| 122 } |
| OLD | NEW |