blob: 1aad66037de2fd902750dc39702b7ed6260d3e5b [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
5static_library("unexportable_keys") {
6 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
Alex Ilina06c3fa2023-01-09 11:39:5034 public_deps = [
35 "//base",
Alex Ilin55afd1d62023-03-06 15:12:0236 "//components/keyed_service/core",
Alex Ilina06c3fa2023-01-09 11:39:5037 "//crypto",
38 "//third_party/abseil-cpp:absl",
39 ]
40}
41
Alex Ilin4592cba2023-03-30 13:42:2742source_set("test_support") {
43 testonly = true
44
45 sources = [
46 "fake_unexportable_key_service.cc",
47 "fake_unexportable_key_service.h",
48 ]
49
50 deps = [ ":unexportable_keys" ]
51}
52
Alex Ilina06c3fa2023-01-09 11:39:5053source_set("unit_tests") {
54 testonly = true
55
Alex Ilin1dbf5a8f2023-01-12 12:45:2856 sources = [
57 "background_long_task_scheduler_unittest.cc",
Alex Ilin933326f02023-05-15 10:26:4358 "unexportable_key_loader_unittest.cc",
Alex Ilin4592cba2023-03-30 13:42:2759 "unexportable_key_service_impl_unittest.cc",
Alex Ilin1dbf5a8f2023-01-12 12:45:2860 "unexportable_key_task_manager_unittest.cc",
61 ]
Alex Ilina06c3fa2023-01-09 11:39:5062
63 deps = [
Alex Ilin4592cba2023-03-30 13:42:2764 ":test_support",
Alex Ilina06c3fa2023-01-09 11:39:5065 ":unexportable_keys",
66 "//base/test:test_support",
67 "//crypto:test_support",
68 "//testing/gtest",
69 ]
70}