Michael Giuffrida | 2dbce0d1 | 2017-09-02 03:30:59 | [diff] [blame] | 1 | # 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 | |
| 5 | assert(!is_android) |
| 6 | |
| 7 | source_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 Weber | 46250b2 | 2020-01-15 11:51:08 | [diff] [blame] | 18 | deps = [ "//base" ] |
Michael Giuffrida | 2dbce0d1 | 2017-09-02 03:30:59 | [diff] [blame] | 19 | |
| 20 | if (is_win) { |
| 21 | deps += [ "//components/browser_watcher:stability_client" ] |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | source_set("unit_tests") { |
| 26 | testonly = true |
Nico Weber | 46250b2 | 2020-01-15 11:51:08 | [diff] [blame] | 27 | sources = [ "keep_alive_registry_unittest.cc" ] |
Michael Giuffrida | 2dbce0d1 | 2017-09-02 03:30:59 | [diff] [blame] | 28 | deps = [ |
| 29 | ":keep_alive_registry", |
| 30 | "//testing/gtest", |
| 31 | ] |
| 32 | } |