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 | |
Will Harris | ca6ed06 | 2024-02-10 03:40:25 | [diff] [blame^] | 39 | if (!is_component_build) { |
| 40 | data_deps = [ ":app_binary" ] |
| 41 | } |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | source_set("test_support") { |
| 45 | testonly = true |
| 46 | sources = [ |
| 47 | "test_support.cc", |
| 48 | "test_support.h", |
| 49 | ] |
| 50 | deps = [ |
| 51 | "//base", |
| 52 | "//chrome/elevation_service:public_headers", |
| 53 | "//chrome/install_static:install_static_util", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 54 | "//chrome/install_static/test:test_support", |
| 55 | "//chrome/installer/util:constants", |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame] | 56 | "//chrome/installer/util:work_item", |
| 57 | ] |
| 58 | } |
| 59 | |
| 60 | # This binary is launched by the browser tests and makes calls to the app-bound |
Will Harris | ca6ed06 | 2024-02-10 03:40:25 | [diff] [blame^] | 61 | # service to test the functionality for various executable callers. It cannot |
| 62 | # be used in a component build because it needs to function from any directory |
| 63 | # on the system as part of the test. |
| 64 | if (!is_component_build) { |
| 65 | executable("app_binary") { |
| 66 | testonly = true |
| 67 | sources = [ "app_bound_encryption_test_main.cc" ] |
| 68 | deps = [ |
| 69 | ":os_crypt", |
| 70 | ":test_support", |
| 71 | "//base", |
| 72 | "//chrome/install_static/test:test_support", |
| 73 | ] |
| 74 | } |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 75 | } |