| 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", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 "core/trace_buffer_writer.h", | 27 "core/trace_buffer_writer.h", |
| 28 "core/trace_ring_buffer.cc", | 28 "core/trace_ring_buffer.cc", |
| 29 "core/trace_ring_buffer.h", | 29 "core/trace_ring_buffer.h", |
| 30 "tracing_export.h", | 30 "tracing_export.h", |
| 31 ] | 31 ] |
| 32 | 32 |
| 33 defines = [ "TRACING_IMPLEMENTATION" ] | 33 defines = [ "TRACING_IMPLEMENTATION" ] |
| 34 | 34 |
| 35 deps = [ | 35 deps = [ |
| 36 "//base", | 36 "//base", |
| 37 "//components/tracing/proto:tracing_protos", |
| 37 "//ipc", | 38 "//ipc", |
| 38 ] | 39 ] |
| 39 | 40 |
| 40 if (is_nacl) { | 41 if (is_nacl) { |
| 41 sources -= [ "common/process_metrics_memory_dump_provider.cc" ] | 42 sources -= [ "common/process_metrics_memory_dump_provider.cc" ] |
| 42 } | 43 } |
| 43 } | 44 } |
| 44 | 45 |
| 45 component("startup_tracing") { | 46 component("startup_tracing") { |
| 46 sources = [ | 47 sources = [ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 "core/proto_utils_unittest.cc", | 91 "core/proto_utils_unittest.cc", |
| 91 "core/proto_zero_message_unittest.cc", | 92 "core/proto_zero_message_unittest.cc", |
| 92 "core/scattered_stream_writer_unittest.cc", | 93 "core/scattered_stream_writer_unittest.cc", |
| 93 "core/trace_buffer_writer_unittest.cc", | 94 "core/trace_buffer_writer_unittest.cc", |
| 94 "core/trace_ring_buffer_unittest.cc", | 95 "core/trace_ring_buffer_unittest.cc", |
| 95 "test/fake_scattered_buffer.cc", | 96 "test/fake_scattered_buffer.cc", |
| 96 "test/proto_zero_generation_unittest.cc", | 97 "test/proto_zero_generation_unittest.cc", |
| 97 ] | 98 ] |
| 98 | 99 |
| 99 deps = [ | 100 deps = [ |
| 100 ":golden_protos_for_tests", | |
| 101 ":proto_zero_testing_messages", | 101 ":proto_zero_testing_messages", |
| 102 ":tracing", | 102 ":tracing", |
| 103 "//base/test:test_support", | 103 "//base/test:test_support", |
| 104 "//components/tracing/proto:tracing_protos_golden", |
| 104 "//ipc", | 105 "//ipc", |
| 105 "//testing/gmock:gmock", | 106 "//testing/gmock:gmock", |
| 106 "//testing/gtest", | 107 "//testing/gtest", |
| 107 ] | 108 ] |
| 108 | 109 |
| 109 if (!is_android) { | 110 if (!is_android) { |
| 110 sources += [ "browser/trace_config_file_unittest.cc" ] | 111 sources += [ "browser/trace_config_file_unittest.cc" ] |
| 111 deps += [ ":startup_tracing" ] | 112 deps += [ ":startup_tracing" ] |
| 112 } | 113 } |
| 113 } | 114 } |
| 114 | |
| 115 # Official protobuf used by tests to verify that the Tracing V2 output is | |
| 116 # effectively proto-compatible. | |
| 117 proto_library("golden_protos_for_tests") { | |
| 118 visibility = [ ":unit_tests" ] | |
| 119 proto_out_dir = "components/tracing/test/golden_protos" | |
| 120 sources = [ | |
| 121 "proto/events_chunk.proto", | |
| 122 ] | |
| 123 } | |
| OLD | NEW |