Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: crypto/crypto.gyp

Issue 401623006: Extract ScopedTestNSSDB from nss_util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a DCHECK to SetTestSystemKeySlot. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 'crypto.gypi', 10 'crypto.gypi',
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 ], 104 ],
105 # TODO(joth): Use a glob to match exclude patterns once the 105 # TODO(joth): Use a glob to match exclude patterns once the
106 # OpenSSL file set is complete. 106 # OpenSSL file set is complete.
107 'sources!': [ 107 'sources!': [
108 'ec_private_key_nss.cc', 108 'ec_private_key_nss.cc',
109 'ec_signature_creator_nss.cc', 109 'ec_signature_creator_nss.cc',
110 'encryptor_nss.cc', 110 'encryptor_nss.cc',
111 'hmac_nss.cc', 111 'hmac_nss.cc',
112 'nss_util.cc', 112 'nss_util.cc',
113 'nss_util.h', 113 'nss_util.h',
114 'nss_util_internal.h',
114 'rsa_private_key_nss.cc', 115 'rsa_private_key_nss.cc',
115 'secure_hash_default.cc', 116 'secure_hash_default.cc',
116 'signature_creator_nss.cc', 117 'signature_creator_nss.cc',
117 'signature_verifier_nss.cc', 118 'signature_verifier_nss.cc',
118 'symmetric_key_nss.cc', 119 'symmetric_key_nss.cc',
119 'third_party/nss/chromium-blapi.h', 120 'third_party/nss/chromium-blapi.h',
120 'third_party/nss/chromium-blapit.h', 121 'third_party/nss/chromium-blapit.h',
121 'third_party/nss/chromium-nss.h', 122 'third_party/nss/chromium-nss.h',
122 'third_party/nss/chromium-prtypes.h', 123 'third_party/nss/chromium-prtypes.h',
123 'third_party/nss/chromium-sha256.h', 124 'third_party/nss/chromium-sha256.h',
(...skipping 18 matching lines...) Expand all
142 'signature_verifier_openssl.cc', 143 'signature_verifier_openssl.cc',
143 'symmetric_key_openssl.cc', 144 'symmetric_key_openssl.cc',
144 ], 145 ],
145 },], 146 },],
146 ], 147 ],
147 'sources': [ 148 'sources': [
148 '<@(crypto_sources)', 149 '<@(crypto_sources)',
149 ], 150 ],
150 }, 151 },
151 { 152 {
153 'target_name': 'crypto_test_support',
154 'type': 'static_library',
155 'dependencies': [
156 '../base/base.gyp:base',
157 'crypto',
158 ],
159 'sources': [
160 'scoped_test_nss_db.cc',
161 'scoped_test_nss_db.h',
162 'scoped_test_nss_chromeos_user.cc',
163 'scoped_test_nss_chromeos_user.h',
164 'scoped_test_system_nss_key_slot.cc',
165 'scoped_test_system_nss_key_slot.h',
166 ],
167 'conditions': [
Ryan Sleevi 2014/07/23 02:15:28 I don't think this will compile on Windows/Mac/Ope
pneubeck (no reviews) 2014/07/23 14:34:16 Done.
168 ['use_nss==0', {
169 'sources!': [
170 'scoped_test_nss_db.cc',
171 'scoped_test_nss_db.h',
172 ],
173 }],
174 [ 'chromeos==0', {
175 'sources!': [
176 'scoped_test_nss_chromeos_user.cc',
177 'scoped_test_nss_chromeos_user.h',
178 'scoped_test_system_nss_key_slot.cc',
179 'scoped_test_system_nss_key_slot.h',
180 ],
181 }],
182 ],
183 },
184 {
152 'target_name': 'crypto_unittests', 185 'target_name': 'crypto_unittests',
153 'type': 'executable', 186 'type': 'executable',
154 'sources': [ 187 'sources': [
155 'curve25519_unittest.cc', 188 'curve25519_unittest.cc',
156 'ec_private_key_unittest.cc', 189 'ec_private_key_unittest.cc',
157 'ec_signature_creator_unittest.cc', 190 'ec_signature_creator_unittest.cc',
158 'encryptor_unittest.cc', 191 'encryptor_unittest.cc',
159 'ghash_unittest.cc', 192 'ghash_unittest.cc',
160 'hkdf_unittest.cc', 193 'hkdf_unittest.cc',
161 'hmac_unittest.cc', 194 'hmac_unittest.cc',
162 'nss_util_unittest.cc', 195 'nss_util_unittest.cc',
163 'openssl_bio_string_unittest.cc', 196 'openssl_bio_string_unittest.cc',
164 'p224_unittest.cc', 197 'p224_unittest.cc',
165 'p224_spake_unittest.cc', 198 'p224_spake_unittest.cc',
166 'random_unittest.cc', 199 'random_unittest.cc',
167 'rsa_private_key_unittest.cc', 200 'rsa_private_key_unittest.cc',
168 'rsa_private_key_nss_unittest.cc', 201 'rsa_private_key_nss_unittest.cc',
169 'secure_hash_unittest.cc', 202 'secure_hash_unittest.cc',
170 'sha2_unittest.cc', 203 'sha2_unittest.cc',
171 'signature_creator_unittest.cc', 204 'signature_creator_unittest.cc',
172 'signature_verifier_unittest.cc', 205 'signature_verifier_unittest.cc',
173 'symmetric_key_unittest.cc', 206 'symmetric_key_unittest.cc',
174 ], 207 ],
175 'dependencies': [ 208 'dependencies': [
176 'crypto', 209 'crypto',
210 'crypto_test_support',
177 '../base/base.gyp:base', 211 '../base/base.gyp:base',
178 '../base/base.gyp:run_all_unittests', 212 '../base/base.gyp:run_all_unittests',
179 '../base/base.gyp:test_support_base', 213 '../base/base.gyp:test_support_base',
180 '../testing/gmock.gyp:gmock', 214 '../testing/gmock.gyp:gmock',
181 '../testing/gtest.gyp:gtest', 215 '../testing/gtest.gyp:gtest',
182 ], 216 ],
183 'conditions': [ 217 'conditions': [
184 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { 218 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
185 'conditions': [ 219 'conditions': [
186 [ 'use_allocator!="none"', { 220 [ 'use_allocator!="none"', {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 'configurations': { 283 'configurations': {
250 'Common_Base': { 284 'Common_Base': {
251 'msvs_target_platform': 'x64', 285 'msvs_target_platform': 'x64',
252 }, 286 },
253 }, 287 },
254 }, 288 },
255 ], 289 ],
256 }], 290 }],
257 ], 291 ],
258 } 292 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698