Roll src/third_party/WebKit c63b89c:29324ab (svn 202546:202547)
[chromium-blink-merge.git] / components / webcrypto / BUILD.gn
blobd302316f33c591737fcede3f685627cca530e077
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/sha.cc",
38     "algorithms/util_openssl.cc",
39     "algorithms/util_openssl.h",
40     "crypto_data.cc",
41     "crypto_data.h",
42     "generate_key_result.cc",
43     "generate_key_result.h",
44     "jwk.cc",
45     "jwk.h",
46     "key.cc",
47     "key.h",
48     "status.cc",
49     "status.h",
50     "webcrypto_impl.cc",
51     "webcrypto_impl.h",
52     "webcrypto_util.cc",
53     "webcrypto_util.h",
54   ]
56   deps = [
57     "//base",
58     "//crypto",
59     "//crypto:platform",
60     "//third_party/WebKit/public:blink",
61   ]
64 source_set("unit_tests") {
65   testonly = true
66   sources = [
67     "algorithms/aes_cbc_unittest.cc",
68     "algorithms/aes_ctr_unittest.cc",
69     "algorithms/aes_gcm_unittest.cc",
70     "algorithms/aes_kw_unittest.cc",
71     "algorithms/ecdh_unittest.cc",
72     "algorithms/ecdsa_unittest.cc",
73     "algorithms/hmac_unittest.cc",
74     "algorithms/rsa_oaep_unittest.cc",
75     "algorithms/rsa_pss_unittest.cc",
76     "algorithms/rsa_ssa_unittest.cc",
77     "algorithms/sha_unittest.cc",
78     "algorithms/test_helpers.cc",
79     "algorithms/test_helpers.h",
80     "status_unittest.cc",
81   ]
83   deps = [
84     ":webcrypto",
85     "//base/test:test_support",
86     "//components/test_runner:test_runner",
87     "//crypto",
88     "//crypto:platform",
89     "//testing/perf",
90     "//testing/gtest",
91     "//third_party/WebKit/public:blink",
92     "//third_party/re2",
93   ]