| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//mojo/public/tools/bindings/mojom.gni") | |
| 6 | |
| 7 if (is_chromeos) { | |
| 8 # GYP version: components/metrics.gypi:metrics_leak_detector | |
| 9 source_set("leak_detector") { | |
| 10 sources = [ | |
| 11 "call_stack_manager.cc", | |
| 12 "call_stack_manager.h", | |
| 13 "call_stack_table.cc", | |
| 14 "call_stack_table.h", | |
| 15 "custom_allocator.cc", | |
| 16 "custom_allocator.h", | |
| 17 "leak_analyzer.cc", | |
| 18 "leak_analyzer.h", | |
| 19 "leak_detector.cc", | |
| 20 "leak_detector.h", | |
| 21 "leak_detector_impl.cc", | |
| 22 "leak_detector_impl.h", | |
| 23 "leak_detector_value_type.cc", | |
| 24 "leak_detector_value_type.h", | |
| 25 "protobuf_to_mojo_converter.cc", | |
| 26 "protobuf_to_mojo_converter.h", | |
| 27 "ranked_set.cc", | |
| 28 "ranked_set.h", | |
| 29 ] | |
| 30 | |
| 31 deps = [ | |
| 32 ":interfaces", | |
| 33 "//base", | |
| 34 "//components/metrics/proto:proto", | |
| 35 ] | |
| 36 } | |
| 37 | |
| 38 mojom("interfaces") { | |
| 39 sources = [ | |
| 40 "leak_detector.mojom", | |
| 41 ] | |
| 42 } | |
| 43 | |
| 44 source_set("unit_tests") { | |
| 45 testonly = true | |
| 46 sources = [ | |
| 47 "call_stack_manager_unittest.cc", | |
| 48 "call_stack_table_unittest.cc", | |
| 49 "leak_analyzer_unittest.cc", | |
| 50 "leak_detector_impl_unittest.cc", | |
| 51 "leak_detector_unittest.cc", | |
| 52 "protobuf_to_mojo_converter_unittest.cc", | |
| 53 "ranked_set_unittest.cc", | |
| 54 ] | |
| 55 | |
| 56 deps = [ | |
| 57 ":interfaces", | |
| 58 ":leak_detector", | |
| 59 "//base", | |
| 60 "//components/metrics/proto:proto", | |
| 61 "//content/test:test_support", | |
| 62 "//testing/gtest", | |
| 63 ] | |
| 64 } | |
| 65 } | |
| OLD | NEW |