Reformat GN file
This is was done automatically using gn format.
Change-Id: I79f2abce8dc3bc877a86e7b5cf8b766c3a7f4d2b
diff --git a/BUILD.gn b/BUILD.gn
index 34a0d63..5b054a5 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -33,9 +33,7 @@
if (defined(is_fuchsia) && is_fuchsia) {
libs = [ "magenta" ]
}
- defines = [
- "OPENSSL_NO_THREADS",
- ]
+ defines = [ "OPENSSL_NO_THREADS" ]
}
config("internal_config") {
@@ -46,7 +44,7 @@
"BORINGSSL_NO_STATIC_INITIALIZER",
"OPENSSL_SMALL",
"OPENSSL_NO_ASM",
- "_XOPEN_SOURCE=700" ,
+ "_XOPEN_SOURCE=700",
]
cflags_c = [ "-std=c11" ]
configs = [ ":boringssl_config" ]
@@ -54,10 +52,10 @@
config("test_config") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
- include_dirs = [
- "crypto/test",
- "ssl/test",
- "//third_party/gtest/include",
+ include_dirs = [
+ "crypto/test",
+ "ssl/test",
+ "//third_party/gtest/include",
]
configs = [ ":internal_config" ]
}
@@ -408,7 +406,9 @@
"tool/transport_common.cc",
]
configs += [ ":internal_config" ]
- deps = [ ":boringssl" ]
+ deps = [
+ ":boringssl",
+ ]
}
source_set("test_support") {
@@ -420,7 +420,9 @@
"crypto/test/test_util.cc",
]
configs += [ ":test_config" ]
- deps = [ ":boringssl" ]
+ deps = [
+ ":boringssl",
+ ]
}
template("unit_test") {
@@ -430,152 +432,226 @@
executable(target_name) {
sources = invoker.sources
configs += [ ":test_config" ]
- deps = [ ":test_support" ]
+ deps = [
+ ":test_support",
+ ]
}
}
unit_test("aead_test") {
- sources = [ "crypto/cipher/aead_test.cc" ]
+ sources = [
+ "crypto/cipher/aead_test.cc",
+ ]
}
unit_test("aes_test") {
- sources = [ "crypto/aes/aes_test.cc" ]
+ sources = [
+ "crypto/aes/aes_test.cc",
+ ]
}
unit_test("asn1_test") {
- sources = [ "crypto/asn1/asn1_test.cc" ]
+ sources = [
+ "crypto/asn1/asn1_test.cc",
+ ]
}
unit_test("base64_test") {
- sources = [ "crypto/base64/base64_test.cc" ]
+ sources = [
+ "crypto/base64/base64_test.cc",
+ ]
}
unit_test("bio_test") {
- sources = [ "crypto/bio/bio_test.cc" ]
+ sources = [
+ "crypto/bio/bio_test.cc",
+ ]
}
unit_test("bn_test") {
- sources = [ "crypto/bn/bn_test.cc" ]
+ sources = [
+ "crypto/bn/bn_test.cc",
+ ]
}
unit_test("bytestring_test") {
- sources = [ "crypto/bytestring/bytestring_test.cc" ]
+ sources = [
+ "crypto/bytestring/bytestring_test.cc",
+ ]
}
unit_test("cipher_test") {
- sources = [ "crypto/cipher/cipher_test.cc" ]
+ sources = [
+ "crypto/cipher/cipher_test.cc",
+ ]
}
unit_test("cmac_test") {
- sources = [ "crypto/cmac/cmac_test.cc" ]
+ sources = [
+ "crypto/cmac/cmac_test.cc",
+ ]
}
unit_test("constant_time_test") {
- sources = [ "crypto/constant_time_test.cc" ]
+ sources = [
+ "crypto/constant_time_test.cc",
+ ]
}
unit_test("digest_test") {
- sources = [ "crypto/digest/digest_test.cc" ]
+ sources = [
+ "crypto/digest/digest_test.cc",
+ ]
}
unit_test("ecdh_test") {
- sources = [ "crypto/ecdh/ecdh_test.cc" ]
+ sources = [
+ "crypto/ecdh/ecdh_test.cc",
+ ]
}
unit_test("ecdsa_sign_test") {
- sources = [ "crypto/ecdsa/ecdsa_sign_test.cc" ]
+ sources = [
+ "crypto/ecdsa/ecdsa_sign_test.cc",
+ ]
}
unit_test("ecdsa_test") {
- sources = [ "crypto/ecdsa/ecdsa_test.cc" ]
+ sources = [
+ "crypto/ecdsa/ecdsa_test.cc",
+ ]
}
unit_test("ecdsa_verify_test") {
- sources = [ "crypto/ecdsa/ecdsa_verify_test.cc" ]
+ sources = [
+ "crypto/ecdsa/ecdsa_verify_test.cc",
+ ]
}
unit_test("ed25519_test") {
- sources = [ "crypto/curve25519/ed25519_test.cc" ]
+ sources = [
+ "crypto/curve25519/ed25519_test.cc",
+ ]
}
unit_test("evp_test") {
- sources = [ "crypto/evp/evp_test.cc" ]
+ sources = [
+ "crypto/evp/evp_test.cc",
+ ]
}
unit_test("example_mul") {
- sources = [ "crypto/ec/example_mul.c" ]
+ sources = [
+ "crypto/ec/example_mul.c",
+ ]
}
unit_test("gcm_test") {
- sources = [ "crypto/modes/gcm_test.cc" ]
+ sources = [
+ "crypto/modes/gcm_test.cc",
+ ]
}
unit_test("hkdf_test") {
- sources = [ "crypto/hkdf/hkdf_test.cc" ]
+ sources = [
+ "crypto/hkdf/hkdf_test.cc",
+ ]
}
unit_test("hmac_test") {
- sources = [ "crypto/hmac/hmac_test.cc" ]
+ sources = [
+ "crypto/hmac/hmac_test.cc",
+ ]
}
unit_test("lhash_test") {
- sources = [ "crypto/lhash/lhash_test.cc" ]
+ sources = [
+ "crypto/lhash/lhash_test.cc",
+ ]
}
unit_test("obj_test") {
- sources = [ "crypto/obj/obj_test.cc" ]
+ sources = [
+ "crypto/obj/obj_test.cc",
+ ]
}
unit_test("p256-x86_64_test") {
- sources = [ "crypto/ec/p256-x86_64_test.cc" ]
+ sources = [
+ "crypto/ec/p256-x86_64_test.cc",
+ ]
}
unit_test("pbkdf_test") {
- sources = [ "crypto/evp/pbkdf_test.cc" ]
+ sources = [
+ "crypto/evp/pbkdf_test.cc",
+ ]
}
unit_test("pkcs12_test") {
- sources = [ "crypto/pkcs8/pkcs12_test.cc" ]
+ sources = [
+ "crypto/pkcs8/pkcs12_test.cc",
+ ]
}
unit_test("pkcs7_test") {
- sources = [ "crypto/x509/pkcs7_test.c" ]
+ sources = [
+ "crypto/x509/pkcs7_test.c",
+ ]
}
unit_test("pkcs8_test") {
- sources = [ "crypto/pkcs8/pkcs8_test.cc" ]
+ sources = [
+ "crypto/pkcs8/pkcs8_test.cc",
+ ]
}
unit_test("poly1305_test") {
- sources = [ "crypto/poly1305/poly1305_test.cc" ]
+ sources = [
+ "crypto/poly1305/poly1305_test.cc",
+ ]
}
unit_test("pool_test") {
- sources = [ "crypto/pool/pool_test.cc" ]
+ sources = [
+ "crypto/pool/pool_test.cc",
+ ]
}
unit_test("refcount_test") {
- sources = [ "crypto/refcount_test.cc" ]
+ sources = [
+ "crypto/refcount_test.cc",
+ ]
}
unit_test("spake25519_test") {
- sources = [ "crypto/curve25519/spake25519_test.cc" ]
+ sources = [
+ "crypto/curve25519/spake25519_test.cc",
+ ]
}
unit_test("tab_test") {
- sources = [ "crypto/x509v3/tab_test.c" ]
+ sources = [
+ "crypto/x509v3/tab_test.c",
+ ]
}
unit_test("thread_test") {
- sources = [ "crypto/thread_test.c" ]
+ sources = [
+ "crypto/thread_test.c",
+ ]
}
unit_test("v3name_test") {
- sources = [ "crypto/x509v3/v3name_test.c" ]
+ sources = [
+ "crypto/x509v3/v3name_test.c",
+ ]
}
unit_test("x509_test") {
- sources = [ "crypto/x509/x509_test.cc" ]
+ sources = [
+ "crypto/x509/x509_test.cc",
+ ]
}
group("unit_tests") {
@@ -591,6 +667,7 @@
":cipher_test",
":cmac_test",
":constant_time_test",
+ ":crypto_test",
":digest_test",
":ecdh_test",
":ecdsa_sign_test",
@@ -613,36 +690,42 @@
":pool_test",
":refcount_test",
":spake25519_test",
+ ":ssl_test",
":tab_test",
":thread_test",
":v3name_test",
":x509_test",
- ":crypto_test",
- ":ssl_test",
]
}
source_set("gtest_main") {
testonly = true
- sources = [ "crypto/test/gtest_main.cc" ]
+ sources = [
+ "crypto/test/gtest_main.cc",
+ ]
configs += [ ":test_config" ]
- deps = [ ":test_support", "//third_party/gtest" ]
+ deps = [
+ ":test_support",
+ "//third_party/gtest",
+ ]
}
executable("crypto_test") {
testonly = true
sources = [
- "crypto/dsa/dsa_test.cc",
- "crypto/evp/evp_extra_test.cc",
- "crypto/err/err_test.cc",
- "crypto/dh/dh_test.cc",
"crypto/chacha/chacha_test.cc",
- "crypto/ec/ec_test.cc",
- "crypto/rsa/rsa_test.cc",
"crypto/curve25519/x25519_test.cc",
+ "crypto/dh/dh_test.cc",
+ "crypto/dsa/dsa_test.cc",
+ "crypto/ec/ec_test.cc",
+ "crypto/err/err_test.cc",
+ "crypto/evp/evp_extra_test.cc",
+ "crypto/rsa/rsa_test.cc",
]
configs += [ ":test_config" ]
- deps = [ ":gtest_main" ]
+ deps = [
+ ":gtest_main",
+ ]
}
executable("ssl_test") {
@@ -651,5 +734,7 @@
"ssl/ssl_test.cc",
]
configs += [ ":test_config" ]
- deps = [ ":gtest_main" ]
+ deps = [
+ ":gtest_main",
+ ]
}