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", |
Will Harris | dda71e21 | 2024-03-25 23:56:39 | [diff] [blame] | 11 | "app_bound_encryption_provider_win.cc", |
| 12 | "app_bound_encryption_provider_win.h", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 13 | ] |
| 14 | |
| 15 | deps = [ |
| 16 | "//base", |
Will Harris | e8e7ff3 | 2024-03-19 22:41:42 | [diff] [blame] | 17 | "//chrome/common:channel_info", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 18 | "//chrome/install_static:install_static_util", |
Will Harris | dda71e21 | 2024-03-25 23:56:39 | [diff] [blame] | 19 | "//components/os_crypt/async/browser:key_provider_interface", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 20 | "//components/prefs:prefs", |
| 21 | "//content/public/browser", |
| 22 | ] |
| 23 | |
Will Harris | dda71e21 | 2024-03-25 23:56:39 | [diff] [blame] | 24 | public_deps = [ ":app_bound_api" ] |
| 25 | } |
| 26 | |
| 27 | # The API sources are separated out for the purposes of linking cleanly with the |
| 28 | # test executable, but the public 'os_crypt' target should be depended upon. |
| 29 | source_set("app_bound_api") { |
| 30 | visibility = [ ":*" ] |
| 31 | sources = [ |
| 32 | "app_bound_encryption_win.cc", |
| 33 | "app_bound_encryption_win.h", |
| 34 | ] |
| 35 | |
| 36 | deps = [ |
| 37 | "//base", |
Will Harris | ccb80ba | 2024-04-02 23:07:40 | [diff] [blame] | 38 | "//chrome/common:constants", |
Will Harris | dda71e21 | 2024-03-25 23:56:39 | [diff] [blame] | 39 | "//chrome/elevation_service:public_headers", |
| 40 | "//chrome/install_static:install_static_util", |
Will Harris | ceadf69 | 2024-04-03 20:44:04 | [diff] [blame^] | 41 | "//components/prefs:prefs", |
Will Harris | dda71e21 | 2024-03-25 23:56:39 | [diff] [blame] | 42 | ] |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | source_set("browser_tests") { |
| 46 | testonly = true |
| 47 | sources = [ "app_bound_encryption_win_browsertest.cc" ] |
| 48 | |
| 49 | defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 50 | |
| 51 | deps = [ |
| 52 | ":os_crypt", |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame] | 53 | ":test_support", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 54 | "//base", |
Will Harris | dda71e21 | 2024-03-25 23:56:39 | [diff] [blame] | 55 | "//chrome/elevation_service:public_headers", |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame] | 56 | "//chrome/test:test_support", |
| 57 | "//content/test:test_support", |
| 58 | ] |
| 59 | |
Will Harris | ca6ed06 | 2024-02-10 03:40:25 | [diff] [blame] | 60 | if (!is_component_build) { |
| 61 | data_deps = [ ":app_binary" ] |
| 62 | } |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | source_set("test_support") { |
| 66 | testonly = true |
| 67 | sources = [ |
| 68 | "test_support.cc", |
| 69 | "test_support.h", |
| 70 | ] |
| 71 | deps = [ |
| 72 | "//base", |
| 73 | "//chrome/elevation_service:public_headers", |
| 74 | "//chrome/install_static:install_static_util", |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 75 | "//chrome/install_static/test:test_support", |
| 76 | "//chrome/installer/util:constants", |
Will Harris | 3c20d1c | 2024-01-26 23:14:48 | [diff] [blame] | 77 | "//chrome/installer/util:work_item", |
| 78 | ] |
| 79 | } |
| 80 | |
| 81 | # 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] | 82 | # service to test the functionality for various executable callers. It cannot |
| 83 | # be used in a component build because it needs to function from any directory |
| 84 | # on the system as part of the test. |
| 85 | if (!is_component_build) { |
| 86 | executable("app_binary") { |
| 87 | testonly = true |
| 88 | sources = [ "app_bound_encryption_test_main.cc" ] |
| 89 | deps = [ |
Will Harris | dda71e21 | 2024-03-25 23:56:39 | [diff] [blame] | 90 | ":app_bound_api", |
Will Harris | ca6ed06 | 2024-02-10 03:40:25 | [diff] [blame] | 91 | ":test_support", |
| 92 | "//base", |
| 93 | "//chrome/install_static/test:test_support", |
| 94 | ] |
| 95 | } |
Will Harris | 29c5ff15 | 2024-01-25 01:54:05 | [diff] [blame] | 96 | } |