Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 1 | # 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 Monsen | 775564d | 2024-04-18 17:54:50 | [diff] [blame] | 5 | component("unexportable_keys") { |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 6 | sources = [ |
Alex Ilin | 1dbf5a8f | 2023-01-12 12:45:28 | [diff] [blame] | 7 | "background_long_task_scheduler.cc", |
| 8 | "background_long_task_scheduler.h", |
| 9 | "background_task.h", |
| 10 | "background_task_impl.h", |
Alex Ilin | 94cbe751 | 2023-09-01 09:56:39 | [diff] [blame] | 11 | "background_task_priority.cc", |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 12 | "background_task_priority.h", |
Alex Ilin | 94cbe751 | 2023-09-01 09:56:39 | [diff] [blame] | 13 | "background_task_type.cc", |
| 14 | "background_task_type.h", |
Monica Basta | 2ecfe218 | 2023-12-18 16:05:58 | [diff] [blame] | 15 | "features.cc", |
| 16 | "features.h", |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 17 | "ref_counted_unexportable_signing_key.cc", |
| 18 | "ref_counted_unexportable_signing_key.h", |
Alex Ilin | daff115 | 2023-03-08 11:36:00 | [diff] [blame] | 19 | "service_error.h", |
Alex Ilin | 54ce0a85 | 2023-02-17 17:18:45 | [diff] [blame] | 20 | "unexportable_key_id.h", |
Alex Ilin | 933326f0 | 2023-05-15 10:26:43 | [diff] [blame] | 21 | "unexportable_key_loader.cc", |
| 22 | "unexportable_key_loader.h", |
Alex Ilin | 55afd1d6 | 2023-03-06 15:12:02 | [diff] [blame] | 23 | "unexportable_key_service.h", |
Alex Ilin | 4592cba | 2023-03-30 13:42:27 | [diff] [blame] | 24 | "unexportable_key_service_impl.cc", |
| 25 | "unexportable_key_service_impl.h", |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 26 | "unexportable_key_task_manager.cc", |
| 27 | "unexportable_key_task_manager.h", |
Alex Ilin | 3979f991 | 2023-01-20 22:57:33 | [diff] [blame] | 28 | "unexportable_key_tasks.cc", |
| 29 | "unexportable_key_tasks.h", |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 30 | ] |
| 31 | |
Lei Zhang | 810f744 | 2023-09-29 14:55:02 | [diff] [blame] | 32 | configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 33 | |
Kristian Monsen | 775564d | 2024-04-18 17:54:50 | [diff] [blame] | 34 | defines = [ "IS_UNEXPORTABLE_KEYS_IMPL" ] |
| 35 | |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 36 | public_deps = [ |
| 37 | "//base", |
| 38 | "//crypto", |
| 39 | "//third_party/abseil-cpp:absl", |
| 40 | ] |
| 41 | } |
| 42 | |
Alex Ilin | 4592cba | 2023-03-30 13:42:27 | [diff] [blame] | 43 | source_set("test_support") { |
| 44 | testonly = true |
| 45 | |
| 46 | sources = [ |
| 47 | "fake_unexportable_key_service.cc", |
| 48 | "fake_unexportable_key_service.h", |
Alex Ilin | ff7a0452 | 2025-03-21 18:49:32 | [diff] [blame] | 49 | "mock_unexportable_key.cc", |
| 50 | "mock_unexportable_key.h", |
Alex Ilin | be356c2 | 2024-10-04 16:33:34 | [diff] [blame] | 51 | "mock_unexportable_key_service.cc", |
| 52 | "mock_unexportable_key_service.h", |
Alex Ilin | f65dde0 | 2025-03-24 17:10:11 | [diff] [blame] | 53 | "scoped_mock_unexportable_key_provider.cc", |
| 54 | "scoped_mock_unexportable_key_provider.h", |
Alex Ilin | 4592cba | 2023-03-30 13:42:27 | [diff] [blame] | 55 | ] |
| 56 | |
Alex Ilin | be356c2 | 2024-10-04 16:33:34 | [diff] [blame] | 57 | public_deps = [ |
| 58 | ":unexportable_keys", |
Alex Ilin | ff7a0452 | 2025-03-21 18:49:32 | [diff] [blame] | 59 | "//crypto", |
Alex Ilin | be356c2 | 2024-10-04 16:33:34 | [diff] [blame] | 60 | "//testing/gmock", |
| 61 | ] |
Alex Ilin | 4592cba | 2023-03-30 13:42:27 | [diff] [blame] | 62 | } |
| 63 | |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 64 | source_set("unit_tests") { |
| 65 | testonly = true |
| 66 | |
Alex Ilin | 1dbf5a8f | 2023-01-12 12:45:28 | [diff] [blame] | 67 | sources = [ |
| 68 | "background_long_task_scheduler_unittest.cc", |
Alex Ilin | 933326f0 | 2023-05-15 10:26:43 | [diff] [blame] | 69 | "unexportable_key_loader_unittest.cc", |
Alex Ilin | 4592cba | 2023-03-30 13:42:27 | [diff] [blame] | 70 | "unexportable_key_service_impl_unittest.cc", |
Alex Ilin | 1dbf5a8f | 2023-01-12 12:45:28 | [diff] [blame] | 71 | "unexportable_key_task_manager_unittest.cc", |
| 72 | ] |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 73 | |
| 74 | deps = [ |
Alex Ilin | 4592cba | 2023-03-30 13:42:27 | [diff] [blame] | 75 | ":test_support", |
Alex Ilin | a06c3fa | 2023-01-09 11:39:50 | [diff] [blame] | 76 | ":unexportable_keys", |
| 77 | "//base/test:test_support", |
| 78 | "//crypto:test_support", |
| 79 | "//testing/gtest", |
| 80 | ] |
| 81 | } |