| # Copyright 2020 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/chromeos/ui_mode.gni") |
| |
| assert(is_chromeos, |
| "Non-Chrome-OS or Lacros builds must not depend on //chromeos") |
| |
| component("process_proxy") { |
| defines = [ "IS_CHROMEOS_PROCESS_PROXY_IMPL" ] |
| sources = [ |
| "process_output_watcher.cc", |
| "process_output_watcher.h", |
| "process_proxy.cc", |
| "process_proxy.h", |
| "process_proxy_registry.cc", |
| "process_proxy_registry.h", |
| ] |
| deps = [ "//base" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| deps = [ |
| ":process_proxy", |
| "//base", |
| "//base/test:test_support", |
| "//testing/gtest", |
| ] |
| sources = [ |
| "process_output_watcher_unittest.cc", |
| "process_proxy_unittest.cc", |
| ] |
| } |