summaryrefslogtreecommitdiff
path: root/chromium/chromeos/process_proxy/BUILD.gn
blob: a777825fb48c5adfd53b1eab9567b8615201cb75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash || is_chromeos_lacros,
       "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",
  ]
}