Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / components / webcrypto / BUILD.gn
blob3472831b8457f61109e0306dbf4a435f656fe6ef
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/crypto.gni")
6 import("//testing/test.gni")
8 source_set("webcrypto") {
9   sources = [
10     "algorithm_dispatch.cc",
11     "algorithm_dispatch.h",
12     "algorithm_implementation.cc",
13     "algorithm_implementation.h",
14     "algorithm_implementations.h",
15     "algorithm_registry.cc",
16     "algorithm_registry.h",
17     "algorithms/aes.cc",
18     "algorithms/aes.h",
19     "algorithms/aes_cbc.cc",
20     "algorithms/aes_ctr.cc",
21     "algorithms/aes_gcm.cc",
22     "algorithms/aes_kw.cc",
23     "algorithms/ec.cc",
24     "algorithms/ec.h",
25     "algorithms/ecdh.cc",
26     "algorithms/ecdsa.cc",
27     "algorithms/hkdf.cc",
28     "algorithms/hmac.cc",
29     "algorithms/pbkdf2.cc",
30     "algorithms/rsa.cc",
31     "algorithms/rsa.h",
32     "algorithms/rsa_oaep.cc",
33     "algorithms/rsa_pss.cc",
34     "algorithms/rsa_sign.cc",
35     "algorithms/rsa_sign.h",
36     "algorithms/rsa_ssa.cc",
37     "algorithms/secret_key_util.cc",
38     "algorithms/secret_key_util.h",
39     "algorithms/sha.cc",
40     "algorithms/util_openssl.cc",
41     "algorithms/util_openssl.h",
42     "crypto_data.cc",
43     "crypto_data.h",
44     "generate_key_result.cc",
45     "generate_key_result.h",
46     "jwk.cc",
47     "jwk.h",
48     "key.cc",
49     "key.h",
50     "status.cc",
51     "status.h",
52     "webcrypto_impl.cc",
53     "webcrypto_impl.h",
54     "webcrypto_util.cc",
55     "webcrypto_util.h",
56   ]
58   deps = [
59     "//base",
60     "//crypto",
61     "//crypto:platform",
62     "//third_party/WebKit/public:blink",
63   ]
66 source_set("unit_tests") {
67   testonly = true
68   sources = [
69     "algorithms/aes_cbc_unittest.cc",
70     "algorithms/aes_ctr_unittest.cc",
71     "algorithms/aes_gcm_unittest.cc",
72     "algorithms/aes_kw_unittest.cc",
73     "algorithms/ecdh_unittest.cc",
74     "algorithms/ecdsa_unittest.cc",
75     "algorithms/hmac_unittest.cc",
76     "algorithms/rsa_oaep_unittest.cc",
77     "algorithms/rsa_pss_unittest.cc",
78     "algorithms/rsa_ssa_unittest.cc",
79     "algorithms/sha_unittest.cc",
80     "algorithms/test_helpers.cc",
81     "algorithms/test_helpers.h",
82     "status_unittest.cc",
83   ]
85   deps = [
86     ":webcrypto",
87     "//base/test:test_support",
88     "//components/test_runner:test_runner",
89     "//crypto",
90     "//crypto:platform",
91     "//testing/perf",
92     "//testing/gtest",
93     "//third_party/WebKit/public:blink",
94     "//third_party/re2",
95   ]