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

Side by Side Diff: sync/sync_tests.gypi

Issue 439533004: Port most sync targets to sync/BUILD.gn (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 6 years, 4 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
« no previous file with comments | « sync/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # GN version: //sync:test_support_sync_core
8 { 9 {
9 'target_name': 'test_support_sync_core', 10 'target_name': 'test_support_sync_core',
10 'type': 'static_library', 11 'type': 'static_library',
11 'variables': { 'enable_wexit_time_destructors': 1, }, 12 'variables': { 'enable_wexit_time_destructors': 1, },
12 'include_dirs': [ 13 'include_dirs': [
13 '..', 14 '..',
14 ], 15 ],
15 'defines': [ 16 'defines': [
16 'SYNC_TEST' 17 'SYNC_TEST'
17 ], 18 ],
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 'test/test_directory_backing_store.cc', 80 'test/test_directory_backing_store.cc',
80 'test/test_directory_backing_store.h', 81 'test/test_directory_backing_store.h',
81 'test/test_transaction_observer.cc', 82 'test/test_transaction_observer.cc',
82 'test/test_transaction_observer.h', 83 'test/test_transaction_observer.h',
83 'util/test_unrecoverable_error_handler.cc', 84 'util/test_unrecoverable_error_handler.cc',
84 'util/test_unrecoverable_error_handler.h', 85 'util/test_unrecoverable_error_handler.h',
85 ], 86 ],
86 }, 87 },
87 88
88 # Test support files for the python sync test server. 89 # Test support files for the python sync test server.
90 # GN version: //sync:test_support_sync_testserver
89 { 91 {
90 'target_name': 'test_support_sync_testserver', 92 'target_name': 'test_support_sync_testserver',
91 'type': 'static_library', 93 'type': 'static_library',
92 'variables': { 'enable_wexit_time_destructors': 1, }, 94 'variables': { 'enable_wexit_time_destructors': 1, },
93 'include_dirs': [ 95 'include_dirs': [
94 '..', 96 '..',
95 ], 97 ],
96 'dependencies': [ 98 'dependencies': [
97 '../base/base.gyp:base', 99 '../base/base.gyp:base',
98 '../net/net.gyp:net_test_support', 100 '../net/net.gyp:net_test_support',
99 # The sync test server uses Python modules generated by the sync protos. 101 # The sync test server uses Python modules generated by the sync protos.
100 '../third_party/protobuf/protobuf.gyp:py_proto', 102 '../third_party/protobuf/protobuf.gyp:py_proto',
101 'sync', 103 'sync',
102 ], 104 ],
103 'export_dependent_settings': [ 105 'export_dependent_settings': [
104 '../base/base.gyp:base', 106 '../base/base.gyp:base',
105 '../net/net.gyp:net_test_support', 107 '../net/net.gyp:net_test_support',
106 ], 108 ],
107 'sources': [ 109 'sources': [
108 'test/local_sync_test_server.cc', 110 'test/local_sync_test_server.cc',
109 'test/local_sync_test_server.h', 111 'test/local_sync_test_server.h',
110 ], 112 ],
111 }, 113 },
112 114
113 # Test support files for the fake sync server. 115 # Test support files for the fake sync server.
116 # GN version: //sync:test_support_sync_fake_server
114 { 117 {
115 'target_name': 'test_support_sync_fake_server', 118 'target_name': 'test_support_sync_fake_server',
116 'type': 'static_library', 119 'type': 'static_library',
117 'variables': { 'enable_wexit_time_destructors': 1, }, 120 'variables': { 'enable_wexit_time_destructors': 1, },
118 'include_dirs': [ 121 'include_dirs': [
119 '..', 122 '..',
120 ], 123 ],
121 'dependencies': [ 124 'dependencies': [
122 '../base/base.gyp:base', 125 '../base/base.gyp:base',
123 '../net/net.gyp:net', 126 '../net/net.gyp:net',
(...skipping 26 matching lines...) Expand all
150 'test/fake_server/permanent_entity.cc', 153 'test/fake_server/permanent_entity.cc',
151 'test/fake_server/permanent_entity.h', 154 'test/fake_server/permanent_entity.h',
152 'test/fake_server/tombstone_entity.cc', 155 'test/fake_server/tombstone_entity.cc',
153 'test/fake_server/tombstone_entity.h', 156 'test/fake_server/tombstone_entity.h',
154 'test/fake_server/unique_client_entity.cc', 157 'test/fake_server/unique_client_entity.cc',
155 'test/fake_server/unique_client_entity.h', 158 'test/fake_server/unique_client_entity.h',
156 ], 159 ],
157 }, 160 },
158 161
159 # Test support files for the 'sync_internal_api' target. 162 # Test support files for the 'sync_internal_api' target.
163 # GN version: //sync:test_support_sync_internal_api
160 { 164 {
161 'target_name': 'test_support_sync_internal_api', 165 'target_name': 'test_support_sync_internal_api',
162 'type': 'static_library', 166 'type': 'static_library',
163 'variables': { 'enable_wexit_time_destructors': 1, }, 167 'variables': { 'enable_wexit_time_destructors': 1, },
164 'include_dirs': [ 168 'include_dirs': [
165 '..', 169 '..',
166 ], 170 ],
167 'defines': [ 171 'defines': [
168 'SYNC_TEST' 172 'SYNC_TEST'
169 ], 173 ],
(...skipping 20 matching lines...) Expand all
190 'internal_api/test/sync_manager_factory_for_profile_sync_test.cc', 194 'internal_api/test/sync_manager_factory_for_profile_sync_test.cc',
191 'internal_api/test/sync_manager_for_profile_sync_test.cc', 195 'internal_api/test/sync_manager_for_profile_sync_test.cc',
192 'internal_api/test/sync_manager_for_profile_sync_test.h', 196 'internal_api/test/sync_manager_for_profile_sync_test.h',
193 'internal_api/test/test_entry_factory.cc', 197 'internal_api/test/test_entry_factory.cc',
194 'internal_api/test/test_internal_components_factory.cc', 198 'internal_api/test/test_internal_components_factory.cc',
195 'internal_api/test/test_user_share.cc', 199 'internal_api/test/test_user_share.cc',
196 ], 200 ],
197 }, 201 },
198 202
199 # Test support files for the 'sync_api' target. 203 # Test support files for the 'sync_api' target.
204 # GN version: //sync:test_support_sync_api
200 { 205 {
201 'target_name': 'test_support_sync_api', 206 'target_name': 'test_support_sync_api',
202 'type': 'static_library', 207 'type': 'static_library',
203 'include_dirs': [ 208 'include_dirs': [
204 '..', 209 '..',
205 ], 210 ],
206 'defines': [ 211 'defines': [
207 'SYNC_TEST' 212 'SYNC_TEST'
208 ], 213 ],
209 'dependencies': [ 214 'dependencies': [
(...skipping 10 matching lines...) Expand all
220 'api/fake_sync_change_processor.cc', 225 'api/fake_sync_change_processor.cc',
221 'api/fake_sync_change_processor.h', 226 'api/fake_sync_change_processor.h',
222 'api/sync_change_processor_wrapper_for_test.cc', 227 'api/sync_change_processor_wrapper_for_test.cc',
223 'api/sync_change_processor_wrapper_for_test.h', 228 'api/sync_change_processor_wrapper_for_test.h',
224 'api/sync_error_factory_mock.cc', 229 'api/sync_error_factory_mock.cc',
225 'api/sync_error_factory_mock.h', 230 'api/sync_error_factory_mock.h',
226 ], 231 ],
227 }, 232 },
228 233
229 # The unit test executable for sync tests. 234 # The unit test executable for sync tests.
235 # GN version: //sync:sync_unit_tests
230 { 236 {
231 'target_name': 'sync_unit_tests', 237 'target_name': 'sync_unit_tests',
232 'type': '<(gtest_target_type)', 238 'type': '<(gtest_target_type)',
233 # Typed-parametrized tests generate exit-time destructors. 239 # Typed-parametrized tests generate exit-time destructors.
234 'variables': { 'enable_wexit_time_destructors': 0, }, 240 'variables': { 'enable_wexit_time_destructors': 0, },
235 'defines': [ 241 'defines': [
236 'SYNC_TEST', 242 'SYNC_TEST',
237 ], 243 ],
238 'dependencies': [ 244 'dependencies': [
239 '../base/base.gyp:base', 245 '../base/base.gyp:base',
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 }], 356 }],
351 ['OS == "ios"', { 357 ['OS == "ios"', {
352 'sources!': [ 358 'sources!': [
353 'internal_api/http_bridge_unittest.cc', 359 'internal_api/http_bridge_unittest.cc',
354 ], 360 ],
355 }], 361 }],
356 ], 362 ],
357 }, 363 },
358 364
359 # Test support files for using the Test Accounts service. 365 # Test support files for using the Test Accounts service.
366 # GN version: //sync:test_support_accounts_client
360 { 367 {
361 'target_name': 'test_support_accounts_client', 368 'target_name': 'test_support_accounts_client',
362 'type': 'static_library', 369 'type': 'static_library',
363 'direct_dependent_settings': { 370 'direct_dependent_settings': {
364 'include_dirs': [ 371 'include_dirs': [
365 '..', 372 '..',
366 ], 373 ],
367 }, 374 },
368 'dependencies': [ 375 'dependencies': [
369 '../base/base.gyp:base', 376 '../base/base.gyp:base',
370 '../net/net.gyp:net', 377 '../net/net.gyp:net',
371 ], 378 ],
372 'sources': [ 379 'sources': [
373 'test/accounts_client/test_accounts_client.cc', 380 'test/accounts_client/test_accounts_client.cc',
374 'test/accounts_client/test_accounts_client.h', 381 'test/accounts_client/test_accounts_client.h',
375 'test/accounts_client/url_request_context_getter.cc', 382 'test/accounts_client/url_request_context_getter.cc',
376 'test/accounts_client/url_request_context_getter.h', 383 'test/accounts_client/url_request_context_getter.h',
377 ], 384 ],
378 }, 385 },
379 386
380 # The Sync end-to-end (and associated infrastructure) tests. 387 # The Sync end-to-end (and associated infrastructure) tests.
388 # GN version: //sync:sync_endtoend_tests
381 { 389 {
382 'target_name': 'sync_endtoend_tests', 390 'target_name': 'sync_endtoend_tests',
383 'type': '<(gtest_target_type)', 391 'type': '<(gtest_target_type)',
384 'dependencies': [ 392 'dependencies': [
385 '../base/base.gyp:run_all_unittests', 393 '../base/base.gyp:run_all_unittests',
386 '../testing/gmock.gyp:gmock', 394 '../testing/gmock.gyp:gmock',
387 '../testing/gtest.gyp:gtest', 395 '../testing/gtest.gyp:gtest',
388 '../url/url.gyp:url_lib', 396 '../url/url.gyp:url_lib',
389 'test_support_accounts_client', 397 'test_support_accounts_client',
390 ], 398 ],
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 ], 461 ],
454 'variables': { 462 'variables': {
455 'test_suite_name': 'sync_unit_tests', 463 'test_suite_name': 'sync_unit_tests',
456 }, 464 },
457 'includes': [ '../build/apk_test.gypi' ], 465 'includes': [ '../build/apk_test.gypi' ],
458 }, 466 },
459 ], 467 ],
460 }], 468 }],
461 ], 469 ],
462 } 470 }
OLDNEW
« no previous file with comments | « sync/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698