OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 if (is_nacl) { | 8 if (is_nacl) { |
9 component("crypto") { | 9 component("crypto") { |
10 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. | 10 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 # The _run targets exist only for compatibility w/ GYP. | 241 # The _run targets exist only for compatibility w/ GYP. |
242 group("crypto_unittests_run") { | 242 group("crypto_unittests_run") { |
243 testonly = true | 243 testonly = true |
244 deps = [ | 244 deps = [ |
245 ":crypto_unittests", | 245 ":crypto_unittests", |
246 ] | 246 ] |
247 } | 247 } |
248 | 248 |
249 test("crypto_unittests") { | 249 test("crypto_unittests") { |
250 sources = [ | 250 sources = [ |
251 # Tests. | 251 "aead_openssl_unittest.cc", |
252 "aes_128_gcm_helpers_nss_unittest.cc", | 252 "aes_128_gcm_helpers_nss_unittest.cc", |
253 "curve25519_unittest.cc", | 253 "curve25519_unittest.cc", |
254 "ec_private_key_unittest.cc", | 254 "ec_private_key_unittest.cc", |
255 "ec_signature_creator_unittest.cc", | 255 "ec_signature_creator_unittest.cc", |
256 "encryptor_unittest.cc", | 256 "encryptor_unittest.cc", |
257 "ghash_unittest.cc", | 257 "ghash_unittest.cc", |
258 "hkdf_unittest.cc", | 258 "hkdf_unittest.cc", |
259 "hmac_unittest.cc", | 259 "hmac_unittest.cc", |
260 "nss_key_util_unittest.cc", | 260 "nss_key_util_unittest.cc", |
261 "nss_util_unittest.cc", | 261 "nss_util_unittest.cc", |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] | 374 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] |
375 } else { | 375 } else { |
376 # Non-Linux platforms use the hermetic NSS from the tree. | 376 # Non-Linux platforms use the hermetic NSS from the tree. |
377 public_deps = [ | 377 public_deps = [ |
378 "//third_party/nss:nspr", | 378 "//third_party/nss:nspr", |
379 "//third_party/nss:nss", | 379 "//third_party/nss:nss", |
380 ] | 380 ] |
381 } | 381 } |
382 } | 382 } |
383 } | 383 } |
OLD | NEW |