blob: c648b15a7cb4a60db51ddeea2e2a27cb2d2edb75 [file] [log] [blame]
Michael Giuffrida2dbce0d12017-09-02 03:30:591# Copyright 2017 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
5assert(!is_android)
6
7source_set("keep_alive_registry") {
8 sources = [
9 "keep_alive_registry.cc",
10 "keep_alive_registry.h",
11 "keep_alive_state_observer.h",
12 "keep_alive_types.cc",
13 "keep_alive_types.h",
14 "scoped_keep_alive.cc",
15 "scoped_keep_alive.h",
16 ]
17
Nico Weber46250b22020-01-15 11:51:0818 deps = [ "//base" ]
Michael Giuffrida2dbce0d12017-09-02 03:30:5919
20 if (is_win) {
21 deps += [ "//components/browser_watcher:stability_client" ]
22 }
23}
24
25source_set("unit_tests") {
26 testonly = true
Nico Weber46250b22020-01-15 11:51:0827 sources = [ "keep_alive_registry_unittest.cc" ]
Michael Giuffrida2dbce0d12017-09-02 03:30:5928 deps = [
29 ":keep_alive_registry",
30 "//testing/gtest",
31 ]
32}