cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / gcm_driver / crypto / BUILD.gn
blobad2ec7aeb2166335af6fa9b7e72f6e5fb21af25a
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")
7 # GYP version: components/gcm_driver.gypi:gcm_driver_crypto
8 source_set("crypto") {
9   sources = [
10     "gcm_encryption_provider.cc",
11     "gcm_encryption_provider.h",
12     "gcm_key_store.cc",
13     "gcm_key_store.h",
14     "gcm_message_cryptographer.cc",
15     "gcm_message_cryptographer.h",
16     "gcm_message_cryptographer_nss.cc",
17     "gcm_message_cryptographer_openssl.cc",
18   ]
20   deps = [
21     "proto",
22     "//base",
23     "//crypto",
24     "//crypto:platform",
25     "//components/leveldb_proto",
26     "//third_party/protobuf:protobuf_lite",
27   ]
29   if (use_openssl) {
30     sources -= [ "gcm_message_cryptographer_nss.cc" ]
31   } else {
32     sources -= [ "gcm_message_cryptographer_openssl.cc" ]
33   }
36 source_set("unit_tests") {
37   testonly = true
38   sources = [
39     "gcm_key_store_unittest.cc",
40     "gcm_message_cryptographer_unittest.cc",
41   ]
43   deps = [
44     ":crypto",
45     "//base",
46     "//crypto:platform",
47     "//testing/gtest",
48     "//third_party/protobuf:protobuf_lite",
49   ]