Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 1 | # Copyright 2024 The Chromium Authors |
| 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_win) |
| 6 | |
| 7 | source_set("os_crypt") { |
| 8 | sources = [ |
| 9 | "app_bound_encryption_metrics_win.cc", |
| 10 | "app_bound_encryption_metrics_win.h", |
| 11 | "app_bound_encryption_win.cc", |
| 12 | "app_bound_encryption_win.h", |
| 13 | ] |
| 14 | |
| 15 | deps = [ |
| 16 | "//base", |
| 17 | "//chrome/install_static:install_static_util", |
| 18 | "//components/prefs:prefs", |
| 19 | "//content/public/browser", |
| 20 | ] |
| 21 | |
| 22 | public_deps = [ "//chrome/elevation_service:public_headers" ] |
| 23 | } |
| 24 | |
| 25 | source_set("browser_tests") { |
| 26 | testonly = true |
| 27 | sources = [ "app_bound_encryption_win_browsertest.cc" ] |
| 28 | |
| 29 | defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 30 | |
| 31 | deps = [ |
| 32 | ":os_crypt", |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame^] | 33 | ":test_support", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 34 | "//base", |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame^] | 35 | "//chrome/test:test_support", |
| 36 | "//content/test:test_support", |
| 37 | ] |
| 38 | |
| 39 | data_deps = [ ":app_binary" ] |
| 40 | } |
| 41 | |
| 42 | source_set("test_support") { |
| 43 | testonly = true |
| 44 | sources = [ |
| 45 | "test_support.cc", |
| 46 | "test_support.h", |
| 47 | ] |
| 48 | deps = [ |
| 49 | "//base", |
| 50 | "//chrome/elevation_service:public_headers", |
| 51 | "//chrome/install_static:install_static_util", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 52 | "//chrome/install_static/test:test_support", |
| 53 | "//chrome/installer/util:constants", |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame^] | 54 | "//chrome/installer/util:work_item", |
| 55 | ] |
| 56 | } |
| 57 | |
| 58 | # This binary is launched by the browser tests and makes calls to the app-bound |
| 59 | # service to test the functionality for various executable callers. |
| 60 | executable("app_binary") { |
| 61 | testonly = true |
| 62 | sources = [ "app_bound_encryption_test_main.cc" ] |
| 63 | deps = [ |
| 64 | ":os_crypt", |
| 65 | ":test_support", |
| 66 | "//base", |
| 67 | "//chrome/install_static/test:test_support", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 68 | ] |
| 69 | } |