blob: 7a659becd8e6a7bd9278e9c65d76d0f7e46098da [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2022 The Chromium Authors
Christian Flach05178952022-07-08 08:59:372# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5static_library("test_support") {
6 testonly = true
7
8 sources = [
Christian Flach311241a2022-07-15 18:21:279 "mock_web_bundle_parser.cc",
10 "mock_web_bundle_parser.h",
11 "mock_web_bundle_parser_factory.cc",
12 "mock_web_bundle_parser_factory.h",
Christian Flach05178952022-07-08 08:59:3713 "signed_web_bundles/web_bundle_signer.cc",
14 "signed_web_bundles/web_bundle_signer.h",
15 ]
16
17 deps = [
18 "//base",
Christian Flach311241a2022-07-15 18:21:2719 "//base/test:test_support",
Christian Flach05178952022-07-08 08:59:3720 "//components/cbor",
21 "//components/web_package",
22 "//crypto",
Christian Flach311241a2022-07-15 18:21:2723 "//testing/gtest",
Christian Flach05178952022-07-08 08:59:3724 "//third_party/boringssl",
25 ]
26}
27
28source_set("unit_tests") {
29 testonly = true
30 sources = [ "signed_web_bundles/web_bundle_signer_unittest.cc" ]
31
32 deps = [
33 ":test_support",
34 "//base",
35 "//components/web_package",
36 "//testing/gtest",
37 ]
38}