blob: 32e0aa522a3b86578e37ca783c4fb1539f829dc6 [file] [log] [blame]
Will Harris29c5ff152024-01-25 01:54:051# 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
5assert(is_win)
6
7source_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
25source_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 Harris3c20d1c2024-01-26 23:14:4833 ":test_support",
Will Harris29c5ff152024-01-25 01:54:0534 "//base",
Will Harris3c20d1c2024-01-26 23:14:4835 "//chrome/test:test_support",
36 "//content/test:test_support",
37 ]
38
Will Harrisca6ed062024-02-10 03:40:2539 if (!is_component_build) {
40 data_deps = [ ":app_binary" ]
41 }
Will Harris3c20d1c2024-01-26 23:14:4842}
43
44source_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 Harris29c5ff152024-01-25 01:54:0554 "//chrome/install_static/test:test_support",
55 "//chrome/installer/util:constants",
Will Harris3c20d1c2024-01-26 23:14:4856 "//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 Harrisca6ed062024-02-10 03:40:2561# 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.
64if (!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 Harris29c5ff152024-01-25 01:54:0575}