blob: e6ad6b425be6ae662e0dce0fb72018d7b593a35d [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
39 data_deps = [ ":app_binary" ]
40}
41
42source_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 Harris29c5ff152024-01-25 01:54:0552 "//chrome/install_static/test:test_support",
53 "//chrome/installer/util:constants",
Will Harris3c20d1c2024-01-26 23:14:4854 "//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.
60executable("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 Harris29c5ff152024-01-25 01:54:0568 ]
69}