OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 | 6 |
7 # GYP version: components/gcm_driver.gypi:gcm_driver_crypto | 7 # GYP version: components/gcm_driver.gypi:gcm_driver_crypto |
8 source_set("crypto") { | 8 source_set("crypto") { |
9 sources = [ | 9 sources = [ |
| 10 "encryption_header_parsers.cc", |
| 11 "encryption_header_parsers.h", |
10 "gcm_encryption_provider.cc", | 12 "gcm_encryption_provider.cc", |
11 "gcm_encryption_provider.h", | 13 "gcm_encryption_provider.h", |
12 "gcm_key_store.cc", | 14 "gcm_key_store.cc", |
13 "gcm_key_store.h", | 15 "gcm_key_store.h", |
14 "gcm_message_cryptographer.cc", | 16 "gcm_message_cryptographer.cc", |
15 "gcm_message_cryptographer.h", | 17 "gcm_message_cryptographer.h", |
16 "gcm_message_cryptographer_nss.cc", | 18 "gcm_message_cryptographer_nss.cc", |
17 "gcm_message_cryptographer_openssl.cc", | 19 "gcm_message_cryptographer_openssl.cc", |
18 ] | 20 ] |
19 | 21 |
20 deps = [ | 22 deps = [ |
21 "proto", | 23 "proto", |
22 "//base", | 24 "//base", |
23 "//crypto", | 25 "//crypto", |
24 "//crypto:platform", | 26 "//crypto:platform", |
25 "//components/leveldb_proto", | 27 "//components/leveldb_proto", |
26 "//third_party/protobuf:protobuf_lite", | 28 "//third_party/protobuf:protobuf_lite", |
27 ] | 29 ] |
28 | 30 |
29 if (use_openssl) { | 31 if (use_openssl) { |
30 sources -= [ "gcm_message_cryptographer_nss.cc" ] | 32 sources -= [ "gcm_message_cryptographer_nss.cc" ] |
31 } else { | 33 } else { |
32 sources -= [ "gcm_message_cryptographer_openssl.cc" ] | 34 sources -= [ "gcm_message_cryptographer_openssl.cc" ] |
33 } | 35 } |
34 } | 36 } |
35 | 37 |
36 source_set("unit_tests") { | 38 source_set("unit_tests") { |
37 testonly = true | 39 testonly = true |
38 sources = [ | 40 sources = [ |
| 41 "encryption_header_parsers_unittest.cc", |
39 "gcm_key_store_unittest.cc", | 42 "gcm_key_store_unittest.cc", |
40 "gcm_message_cryptographer_unittest.cc", | 43 "gcm_message_cryptographer_unittest.cc", |
41 ] | 44 ] |
42 | 45 |
43 deps = [ | 46 deps = [ |
44 ":crypto", | 47 ":crypto", |
45 "//base", | 48 "//base", |
46 "//crypto:platform", | 49 "//crypto:platform", |
47 "//testing/gtest", | 50 "//testing/gtest", |
48 "//third_party/protobuf:protobuf_lite", | 51 "//third_party/protobuf:protobuf_lite", |
49 ] | 52 ] |
50 } | 53 } |
OLD | NEW |