blob: 7ff35adf9fb1f83311ca7d5ff09ce5775cde02ae [file] [log] [blame]
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//base/allocator/allocator.gni")
source_set("in_process") {
# HeapProfilerController's dependencies are not compiled on iOS unless
# use_allocator_shim is true.
if (!is_ios || use_allocator_shim) {
sources = [
"heap_profiler_controller.cc",
"heap_profiler_controller.h",
]
deps = [
"//base",
"//components/metrics",
"//components/metrics:child_call_stack_profile_builder",
]
}
}
source_set("unit_tests") {
testonly = true
# HeapProfilerController's dependencies are not compiled on iOS unless
# use_allocator_shim is true.
if (!is_ios || use_allocator_shim) {
sources = [ "heap_profiler_controller_unittest.cc" ]
deps = [
":in_process",
"//base/test:test_support",
"//components/metrics",
"//components/metrics:child_call_stack_profile_builder",
]
}
}