# Copyright 2018 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. static_library("cpp") { sources = [ "allocator_shim.cc", "allocator_shim.h", "client.cc", "client.h", "controller.cc", "controller.h", "sampling_profiler_wrapper.cc", "sampling_profiler_wrapper.h", "sender_pipe.h", "sender_pipe_win.cc", "settings.cc", "settings.h", "stream.h", "switches.cc", "switches.h", ] public_deps = [ "//components/services/heap_profiling/public/mojom", ] deps = [ "//base", "//base:debugging_buildflags", "//base/allocator:buildflags", "//services/resource_coordinator/public/mojom:", "//services/service_manager/public/cpp", "//services/service_manager/sandbox", ] if (is_posix) { sources += [ "sender_pipe_posix.cc" ] } } source_set("unit_tests") { testonly = true sources = [ "sender_pipe_unittest.cc", "switches_unittest.cc", ] deps = [ ":cpp", "//base", "//base/allocator:buildflags", "//base/test:test_support", "//testing/gtest", ] }