BUILD.gn 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.
  4. import("//crypto/features.gni")
  5. static_library("crypto") {
  6. sources = [
  7. "encryption_header_parsers.cc",
  8. "encryption_header_parsers.h",
  9. "gcm_decryption_result.cc",
  10. "gcm_decryption_result.h",
  11. "gcm_encryption_provider.cc",
  12. "gcm_encryption_provider.h",
  13. "gcm_encryption_result.h",
  14. "gcm_key_store.cc",
  15. "gcm_key_store.h",
  16. "gcm_message_cryptographer.cc",
  17. "gcm_message_cryptographer.h",
  18. "message_payload_parser.cc",
  19. "message_payload_parser.h",
  20. "p256_key_util.cc",
  21. "p256_key_util.h",
  22. ]
  23. deps = [
  24. "//base",
  25. "//components/gcm_driver/common",
  26. "//components/gcm_driver/crypto/proto",
  27. "//components/leveldb_proto",
  28. "//crypto",
  29. "//net",
  30. "//third_party/boringssl",
  31. "//third_party/leveldatabase",
  32. "//third_party/protobuf:protobuf_lite",
  33. ]
  34. }
  35. static_library("test_support") {
  36. testonly = true
  37. sources = [
  38. "gcm_crypto_test_helpers.cc",
  39. "gcm_crypto_test_helpers.h",
  40. ]
  41. deps = [
  42. ":crypto",
  43. "//base",
  44. "//components/gcm_driver/common",
  45. "//crypto",
  46. ]
  47. }
  48. source_set("unit_tests") {
  49. testonly = true
  50. sources = [
  51. "encryption_header_parsers_unittest.cc",
  52. "gcm_encryption_provider_unittest.cc",
  53. "gcm_key_store_unittest.cc",
  54. "gcm_message_cryptographer_unittest.cc",
  55. "message_payload_parser_unittest.cc",
  56. "p256_key_util_unittest.cc",
  57. ]
  58. deps = [
  59. ":crypto",
  60. "//base",
  61. "//base/test:test_support",
  62. "//components/gcm_driver/common",
  63. "//components/gcm_driver/crypto/proto",
  64. "//components/leveldb_proto",
  65. "//crypto",
  66. "//net:test_support",
  67. "//testing/gtest",
  68. "//third_party/protobuf:protobuf_lite",
  69. ]
  70. }