blob: e80cdb9dd202e2768d6c3f9f084437934517c28c [file] [log] [blame]
Alex Ilina06c3fa2023-01-09 11:39:501# Copyright 2023 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
Kristian Monsen775564d2024-04-18 17:54:505component("unexportable_keys") {
Alex Ilina06c3fa2023-01-09 11:39:506 sources = [
Alex Ilin1dbf5a8f2023-01-12 12:45:287 "background_long_task_scheduler.cc",
8 "background_long_task_scheduler.h",
9 "background_task.h",
10 "background_task_impl.h",
Alex Ilin94cbe7512023-09-01 09:56:3911 "background_task_priority.cc",
Alex Ilina06c3fa2023-01-09 11:39:5012 "background_task_priority.h",
Alex Ilin94cbe7512023-09-01 09:56:3913 "background_task_type.cc",
14 "background_task_type.h",
Monica Basta2ecfe2182023-12-18 16:05:5815 "features.cc",
16 "features.h",
Alex Ilina06c3fa2023-01-09 11:39:5017 "ref_counted_unexportable_signing_key.cc",
18 "ref_counted_unexportable_signing_key.h",
Alex Ilindaff1152023-03-08 11:36:0019 "service_error.h",
Alex Ilin54ce0a852023-02-17 17:18:4520 "unexportable_key_id.h",
Alex Ilin933326f02023-05-15 10:26:4321 "unexportable_key_loader.cc",
22 "unexportable_key_loader.h",
Alex Ilin55afd1d62023-03-06 15:12:0223 "unexportable_key_service.h",
Alex Ilin4592cba2023-03-30 13:42:2724 "unexportable_key_service_impl.cc",
25 "unexportable_key_service_impl.h",
Alex Ilina06c3fa2023-01-09 11:39:5026 "unexportable_key_task_manager.cc",
27 "unexportable_key_task_manager.h",
Alex Ilin3979f9912023-01-20 22:57:3328 "unexportable_key_tasks.cc",
29 "unexportable_key_tasks.h",
Alex Ilina06c3fa2023-01-09 11:39:5030 ]
31
Lei Zhang810f7442023-09-29 14:55:0232 configs += [ "//build/config/compiler:wexit_time_destructors" ]
33
Kristian Monsen775564d2024-04-18 17:54:5034 defines = [ "IS_UNEXPORTABLE_KEYS_IMPL" ]
35
Alex Ilina06c3fa2023-01-09 11:39:5036 public_deps = [
37 "//base",
38 "//crypto",
39 "//third_party/abseil-cpp:absl",
40 ]
41}
42
Alex Ilin4592cba2023-03-30 13:42:2743source_set("test_support") {
44 testonly = true
45
46 sources = [
47 "fake_unexportable_key_service.cc",
48 "fake_unexportable_key_service.h",
Alex Ilinff7a04522025-03-21 18:49:3249 "mock_unexportable_key.cc",
50 "mock_unexportable_key.h",
Alex Ilinbe356c22024-10-04 16:33:3451 "mock_unexportable_key_service.cc",
52 "mock_unexportable_key_service.h",
Alex Ilinf65dde02025-03-24 17:10:1153 "scoped_mock_unexportable_key_provider.cc",
54 "scoped_mock_unexportable_key_provider.h",
Alex Ilin4592cba2023-03-30 13:42:2755 ]
56
Alex Ilinbe356c22024-10-04 16:33:3457 public_deps = [
58 ":unexportable_keys",
Alex Ilinff7a04522025-03-21 18:49:3259 "//crypto",
Alex Ilinbe356c22024-10-04 16:33:3460 "//testing/gmock",
61 ]
Alex Ilin4592cba2023-03-30 13:42:2762}
63
Alex Ilina06c3fa2023-01-09 11:39:5064source_set("unit_tests") {
65 testonly = true
66
Alex Ilin1dbf5a8f2023-01-12 12:45:2867 sources = [
68 "background_long_task_scheduler_unittest.cc",
Alex Ilin933326f02023-05-15 10:26:4369 "unexportable_key_loader_unittest.cc",
Alex Ilin4592cba2023-03-30 13:42:2770 "unexportable_key_service_impl_unittest.cc",
Alex Ilin1dbf5a8f2023-01-12 12:45:2871 "unexportable_key_task_manager_unittest.cc",
72 ]
Alex Ilina06c3fa2023-01-09 11:39:5073
74 deps = [
Alex Ilin4592cba2023-03-30 13:42:2775 ":test_support",
Alex Ilina06c3fa2023-01-09 11:39:5076 ":unexportable_keys",
77 "//base/test:test_support",
78 "//crypto:test_support",
79 "//testing/gtest",
80 ]
81}