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

Side by Side Diff: sync/sync_tests.gypi

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add dep on dynamic_annotations (see crbug.com/392532) 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 'targets': [ 6 'targets': [
7 # Test support files for the 'sync_core' target. 7 # Test support files for the 'sync_core' target.
8 { 8 {
9 'target_name': 'test_support_sync_core', 9 'target_name': 'test_support_sync_core',
10 'type': 'static_library', 10 'type': 'static_library',
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 'test/fake_server/fake_server_verifier.h', 147 'test/fake_server/fake_server_verifier.h',
148 'test/fake_server/permanent_entity.cc', 148 'test/fake_server/permanent_entity.cc',
149 'test/fake_server/permanent_entity.h', 149 'test/fake_server/permanent_entity.h',
150 'test/fake_server/tombstone_entity.cc', 150 'test/fake_server/tombstone_entity.cc',
151 'test/fake_server/tombstone_entity.h', 151 'test/fake_server/tombstone_entity.h',
152 'test/fake_server/unique_client_entity.cc', 152 'test/fake_server/unique_client_entity.cc',
153 'test/fake_server/unique_client_entity.h', 153 'test/fake_server/unique_client_entity.h',
154 ], 154 ],
155 }, 155 },
156 156
157 # Test support files for the 'sync_notifier' target.
158 {
159 'target_name': 'test_support_sync_notifier',
160 'type': 'static_library',
161 'include_dirs': [
162 '..',
163 ],
164 'defines': [
165 'SYNC_TEST'
166 ],
167 'dependencies': [
168 '../testing/gmock.gyp:gmock',
169 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_proto_cpp',
170 'sync',
171 ],
172 'export_dependent_settings': [
173 '../testing/gmock.gyp:gmock',
174 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_proto_cpp',
175 'sync',
176 ],
177 'sources': [
178 'notifier/unacked_invalidation_set_test_util.cc',
179 'notifier/unacked_invalidation_set_test_util.h',
180 'internal_api/public/base/object_id_invalidation_map_test_util.h',
181 'internal_api/public/base/object_id_invalidation_map_test_util.cc',
182 ],
183 },
184
185 # Test support files for the 'sync_internal_api' target. 157 # Test support files for the 'sync_internal_api' target.
186 { 158 {
187 'target_name': 'test_support_sync_internal_api', 159 'target_name': 'test_support_sync_internal_api',
188 'type': 'static_library', 160 'type': 'static_library',
189 'variables': { 'enable_wexit_time_destructors': 1, }, 161 'variables': { 'enable_wexit_time_destructors': 1, },
190 'include_dirs': [ 162 'include_dirs': [
191 '..', 163 '..',
192 ], 164 ],
193 'defines': [ 165 'defines': [
194 'SYNC_TEST' 166 'SYNC_TEST'
195 ], 167 ],
196 'dependencies': [ 168 'dependencies': [
197 '../base/base.gyp:base', 169 '../base/base.gyp:base',
198 '../testing/gtest.gyp:gtest', 170 '../testing/gtest.gyp:gtest',
199 'sync', 171 'sync',
200 'test_support_sync_core', 172 'test_support_sync_core',
173 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
maniscalco 2014/07/16 17:44:46 nit: is this the right sort order?
201 ], 174 ],
202 'export_dependent_settings': [ 175 'export_dependent_settings': [
203 '../testing/gtest.gyp:gtest', 176 '../testing/gtest.gyp:gtest',
204 'sync', 177 'sync',
205 'test_support_sync_core', 178 'test_support_sync_core',
179 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
maniscalco 2014/07/16 17:44:46 nit: is this the right sort order?
206 ], 180 ],
207 'sources': [ 181 'sources': [
208 'internal_api/public/base/invalidation_test_util.cc', 182 'internal_api/public/base/invalidation_test_util.cc',
209 'internal_api/public/base/invalidation_test_util.h', 183 'internal_api/public/base/invalidation_test_util.h',
210 'internal_api/public/test/fake_sync_manager.h', 184 'internal_api/public/test/fake_sync_manager.h',
211 'internal_api/public/test/null_sync_context_proxy.h', 185 'internal_api/public/test/null_sync_context_proxy.h',
212 'internal_api/public/test/sync_manager_factory_for_profile_sync_test.h', 186 'internal_api/public/test/sync_manager_factory_for_profile_sync_test.h',
213 'internal_api/public/test/test_entry_factory.h', 187 'internal_api/public/test/test_entry_factory.h',
214 'internal_api/public/test/test_internal_components_factory.h', 188 'internal_api/public/test/test_internal_components_factory.h',
215 'internal_api/public/test/test_user_share.h', 189 'internal_api/public/test/test_user_share.h',
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 'syncable/syncable_util_unittest.cc', 310 'syncable/syncable_util_unittest.cc',
337 'util/cryptographer_unittest.cc', 311 'util/cryptographer_unittest.cc',
338 'util/data_type_histogram_unittest.cc', 312 'util/data_type_histogram_unittest.cc',
339 'util/get_session_name_unittest.cc', 313 'util/get_session_name_unittest.cc',
340 'util/nigori_unittest.cc', 314 'util/nigori_unittest.cc',
341 'util/protobuf_unittest.cc', 315 'util/protobuf_unittest.cc',
342 ], 316 ],
343 }, 317 },
344 }, 318 },
345 319
346 # Unit tests for the 'sync_notifier' target. This cannot be a static
347 # library because the unit test files have to be compiled directly
348 # into the executable, so we push the target files to the
349 # depending executable target via direct_dependent_settings.
350 {
351 'target_name': 'sync_notifier_tests',
352 'type': 'none',
353 # We only want unit test executables to include this target.
354 'suppress_wildcard': 1,
355 'dependencies': [
356 '../base/base.gyp:base',
357 '../google_apis/google_apis.gyp:google_apis',
358 '../jingle/jingle.gyp:notifier_test_util',
359 '../net/net.gyp:net_test_support',
360 '../testing/gmock.gyp:gmock',
361 '../testing/gtest.gyp:gtest',
362 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
363 '../third_party/libjingle/libjingle.gyp:libjingle',
364 'sync',
365 'test_support_sync_notifier',
366 ],
367 # Propagate all dependencies since the actual compilation
368 # happens in the dependents.
369 'export_dependent_settings': [
370 '../base/base.gyp:base',
371 '../google_apis/google_apis.gyp:google_apis',
372 '../jingle/jingle.gyp:notifier_test_util',
373 '../net/net.gyp:net_test_support',
374 '../testing/gmock.gyp:gmock',
375 '../testing/gtest.gyp:gtest',
376 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
377 '../third_party/libjingle/libjingle.gyp:libjingle',
378 'sync',
379 'test_support_sync_notifier',
380 ],
381 'direct_dependent_settings': {
382 'include_dirs': [
383 '..',
384 ],
385 'conditions': [
386 ['OS != "android"', {
387 'sources': [
388 'notifier/object_id_invalidation_map_unittest.cc',
389 'notifier/registration_manager_unittest.cc',
390 'notifier/single_object_invalidation_set_unittest.cc',
391 'notifier/unacked_invalidation_set_unittest.cc',
392 ],
393 }],
394 ],
395 },
396 },
397
398 # Unit tests for the 'sync_internal_api' target. This cannot be a static 320 # Unit tests for the 'sync_internal_api' target. This cannot be a static
399 # library because the unit test files have to be compiled directly 321 # library because the unit test files have to be compiled directly
400 # into the executable, so we push the target files to the 322 # into the executable, so we push the target files to the
401 # depending executable target via direct_dependent_settings. 323 # depending executable target via direct_dependent_settings.
402 { 324 {
403 'target_name': 'sync_internal_api_tests', 325 'target_name': 'sync_internal_api_tests',
404 'type': 'none', 326 'type': 'none',
405 # We only want unit test executables to include this target. 327 # We only want unit test executables to include this target.
406 'suppress_wildcard': 1, 328 'suppress_wildcard': 1,
407 'dependencies': [ 329 'dependencies': [
408 '../base/base.gyp:base', 330 '../base/base.gyp:base',
331 '../google_apis/google_apis.gyp:google_apis',
409 '../google_apis/google_apis.gyp:google_apis_test_support', 332 '../google_apis/google_apis.gyp:google_apis_test_support',
410 '../net/net.gyp:net', 333 '../net/net.gyp:net',
411 '../net/net.gyp:net_test_support', 334 '../net/net.gyp:net_test_support',
412 '../testing/gmock.gyp:gmock', 335 '../testing/gmock.gyp:gmock',
413 '../testing/gtest.gyp:gtest', 336 '../testing/gtest.gyp:gtest',
414 'sync', 337 'sync',
415 'test_support_sync_internal_api', 338 'test_support_sync_internal_api',
416 ], 339 ],
417 # Propagate all dependencies since the actual compilation 340 # Propagate all dependencies since the actual compilation
418 # happens in the dependents. 341 # happens in the dependents.
419 'export_dependent_settings': [ 342 'export_dependent_settings': [
420 '../base/base.gyp:base', 343 '../base/base.gyp:base',
344 '../google_apis/google_apis.gyp:google_apis',
345 '../google_apis/google_apis.gyp:google_apis_test_support',
421 '../net/net.gyp:net', 346 '../net/net.gyp:net',
422 '../net/net.gyp:net_test_support', 347 '../net/net.gyp:net_test_support',
423 '../testing/gmock.gyp:gmock', 348 '../testing/gmock.gyp:gmock',
424 '../testing/gtest.gyp:gtest', 349 '../testing/gtest.gyp:gtest',
425 'sync', 350 'sync',
426 'test_support_sync_internal_api', 351 'test_support_sync_internal_api',
427 ], 352 ],
428 'direct_dependent_settings': { 353 'direct_dependent_settings': {
429 'include_dirs': [ 354 'include_dirs': [
430 '..', 355 '..',
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 # Typed-parametrized tests generate exit-time destructors. 433 # Typed-parametrized tests generate exit-time destructors.
509 'variables': { 'enable_wexit_time_destructors': 0, }, 434 'variables': { 'enable_wexit_time_destructors': 0, },
510 'defines': [ 435 'defines': [
511 'SYNC_TEST', 436 'SYNC_TEST',
512 ], 437 ],
513 'dependencies': [ 438 'dependencies': [
514 '../base/base.gyp:run_all_unittests', 439 '../base/base.gyp:run_all_unittests',
515 'sync_api_tests', 440 'sync_api_tests',
516 'sync_core_tests', 441 'sync_core_tests',
517 'sync_internal_api_tests', 442 'sync_internal_api_tests',
518 'sync_notifier_tests', 443 'sync',
444 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
519 ], 445 ],
520 'conditions': [ 446 'conditions': [
521 # TODO(akalin): This is needed because histogram.cc uses 447 # TODO(akalin): This is needed because histogram.cc uses
522 # leak_annotations.h, which pulls this in. Make 'base' 448 # leak_annotations.h, which pulls this in. Make 'base'
523 # propagate this dependency. 449 # propagate this dependency.
524 ['OS=="linux" and use_allocator!="none"', { 450 ['OS=="linux" and use_allocator!="none"', {
525 'dependencies': [ 451 'dependencies': [
526 '../base/allocator/allocator.gyp:allocator', 452 '../base/allocator/allocator.gyp:allocator',
527 ], 453 ],
528 }], 454 }],
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 ], 557 ],
632 'variables': { 558 'variables': {
633 'test_suite_name': 'sync_unit_tests', 559 'test_suite_name': 'sync_unit_tests',
634 }, 560 },
635 'includes': [ '../build/apk_test.gypi' ], 561 'includes': [ '../build/apk_test.gypi' ],
636 }, 562 },
637 ], 563 ],
638 }], 564 }],
639 ], 565 ],
640 } 566 }
OLDNEW
« sync/sync_internal_api.gypi ('K') | « sync/sync_notifier.gypi ('k') | sync/tools/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698