OLD | NEW |
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: //components/sync:test_support_sync_core | 8 # GN version: //components/sync:test_support_sync_core |
9 { | 9 { |
10 'target_name': 'test_support_sync_core', | 10 'target_name': 'test_support_sync_core', |
11 'type': 'static_library', | 11 'type': 'static_library', |
12 'variables': { 'enable_wexit_time_destructors': 1, }, | 12 'variables': { 'enable_wexit_time_destructors': 1, }, |
13 'include_dirs': [ | 13 'include_dirs': [ |
14 '..', | 14 '..', |
15 ], | 15 ], |
16 'defines': [ | 16 'defines': [ |
17 'SYNC_TEST' | 17 'SYNC_TEST' |
18 ], | 18 ], |
19 'dependencies': [ | 19 'dependencies': [ |
20 '../../base/base.gyp:base', | 20 '../base/base.gyp:base', |
21 '../../testing/gmock.gyp:gmock', | 21 '../testing/gmock.gyp:gmock', |
22 '../../testing/gtest.gyp:gtest', | 22 '../testing/gtest.gyp:gtest', |
23 'sync', | 23 'sync', |
24 ], | 24 ], |
25 'export_dependent_settings': [ | 25 'export_dependent_settings': [ |
26 '../../testing/gmock.gyp:gmock', | 26 '../testing/gmock.gyp:gmock', |
27 '../../testing/gtest.gyp:gtest', | 27 '../testing/gtest.gyp:gtest', |
28 'sync', | 28 'sync', |
29 ], | 29 ], |
30 'sources': [ | 30 'sources': [ |
31 'base/model_type_test_util.cc', | 31 'base/model_type_test_util.cc', |
32 'base/model_type_test_util.h', | 32 'base/model_type_test_util.h', |
33 'js/js_test_util.cc', | 33 'js/js_test_util.cc', |
34 'js/js_test_util.h', | 34 'js/js_test_util.h', |
35 'sessions_impl/test_util.cc', | 35 'sessions_impl/test_util.cc', |
36 'sessions_impl/test_util.h', | 36 'sessions_impl/test_util.h', |
37 'test/callback_counter.h', | 37 'test/callback_counter.h', |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 # Test support files for the python sync test server. | 89 # Test support files for the python sync test server. |
90 # GN version: //components/sync:test_support_sync_testserver | 90 # GN version: //components/sync:test_support_sync_testserver |
91 { | 91 { |
92 'target_name': 'test_support_sync_testserver', | 92 'target_name': 'test_support_sync_testserver', |
93 'type': 'static_library', | 93 'type': 'static_library', |
94 'variables': { 'enable_wexit_time_destructors': 1, }, | 94 'variables': { 'enable_wexit_time_destructors': 1, }, |
95 'include_dirs': [ | 95 'include_dirs': [ |
96 '..', | 96 '..', |
97 ], | 97 ], |
98 'dependencies': [ | 98 'dependencies': [ |
99 '../../base/base.gyp:base', | 99 '../base/base.gyp:base', |
100 '../../net/net.gyp:net_test_support', | 100 '../net/net.gyp:net_test_support', |
101 # 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. |
102 '../../third_party/protobuf/protobuf.gyp:py_proto', | 102 '../third_party/protobuf/protobuf.gyp:py_proto', |
103 'sync', | 103 'sync', |
104 ], | 104 ], |
105 'export_dependent_settings': [ | 105 'export_dependent_settings': [ |
106 '../../base/base.gyp:base', | 106 '../base/base.gyp:base', |
107 '../../net/net.gyp:net_test_support', | 107 '../net/net.gyp:net_test_support', |
108 ], | 108 ], |
109 'sources': [ | 109 'sources': [ |
110 'test/local_sync_test_server.cc', | 110 'test/local_sync_test_server.cc', |
111 'test/local_sync_test_server.h', | 111 'test/local_sync_test_server.h', |
112 ], | 112 ], |
113 }, | 113 }, |
114 | 114 |
115 # Test support files for the fake sync server. | 115 # Test support files for the fake sync server. |
116 # GN version: //components/sync:test_support_sync_fake_server | 116 # GN version: //components/sync:test_support_sync_fake_server |
117 { | 117 { |
118 'target_name': 'test_support_sync_fake_server', | 118 'target_name': 'test_support_sync_fake_server', |
119 'type': 'static_library', | 119 'type': 'static_library', |
120 'variables': { 'enable_wexit_time_destructors': 1, }, | 120 'variables': { 'enable_wexit_time_destructors': 1, }, |
121 'include_dirs': [ | 121 'include_dirs': [ |
122 '..', | 122 '..', |
123 ], | 123 ], |
124 'dependencies': [ | 124 'dependencies': [ |
125 '../../base/base.gyp:base', | 125 '../base/base.gyp:base', |
126 '../../net/net.gyp:net', | 126 '../net/net.gyp:net', |
127 '../../testing/gtest.gyp:gtest', | 127 '../testing/gtest.gyp:gtest', |
128 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 128 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
129 'sync', | 129 'sync', |
130 ], | 130 ], |
131 'export_dependent_settings': [ | 131 'export_dependent_settings': [ |
132 'sync', | 132 'sync', |
133 ], | 133 ], |
134 'sources': [ | 134 'sources': [ |
135 'test/fake_server/bookmark_entity.cc', | 135 'test/fake_server/bookmark_entity.cc', |
136 'test/fake_server/bookmark_entity.h', | 136 'test/fake_server/bookmark_entity.h', |
137 'test/fake_server/bookmark_entity_builder.cc', | 137 'test/fake_server/bookmark_entity_builder.cc', |
138 'test/fake_server/bookmark_entity_builder.h', | 138 'test/fake_server/bookmark_entity_builder.h', |
(...skipping 26 matching lines...) Expand all Loading... |
165 'target_name': 'test_support_sync_core_impl', | 165 'target_name': 'test_support_sync_core_impl', |
166 'type': 'static_library', | 166 'type': 'static_library', |
167 'variables': { 'enable_wexit_time_destructors': 1, }, | 167 'variables': { 'enable_wexit_time_destructors': 1, }, |
168 'include_dirs': [ | 168 'include_dirs': [ |
169 '..', | 169 '..', |
170 ], | 170 ], |
171 'defines': [ | 171 'defines': [ |
172 'SYNC_TEST' | 172 'SYNC_TEST' |
173 ], | 173 ], |
174 'dependencies': [ | 174 'dependencies': [ |
175 '../../base/base.gyp:base', | 175 '../base/base.gyp:base', |
176 '../../testing/gtest.gyp:gtest', | 176 '../testing/gtest.gyp:gtest', |
177 'sync', | 177 'sync', |
178 'test_support_sync_core', | 178 'test_support_sync_core', |
179 ], | 179 ], |
180 'export_dependent_settings': [ | 180 'export_dependent_settings': [ |
181 '../../testing/gtest.gyp:gtest', | 181 '../testing/gtest.gyp:gtest', |
182 'sync', | 182 'sync', |
183 'test_support_sync_core', | 183 'test_support_sync_core', |
184 ], | 184 ], |
185 'sources': [ | 185 'sources': [ |
186 'core/test/data_type_error_handler_mock.h', | 186 'core/test/data_type_error_handler_mock.h', |
187 'core/test/fake_model_type_connector.h', | 187 'core/test/fake_model_type_connector.h', |
188 'core/test/fake_model_type_processor.h', | 188 'core/test/fake_model_type_processor.h', |
189 'core/test/fake_sync_manager.h', | 189 'core/test/fake_sync_manager.h', |
190 'core/test/model_type_store_test_util.h', | 190 'core/test/model_type_store_test_util.h', |
191 'core/test/sync_manager_factory_for_profile_sync_test.h', | 191 'core/test/sync_manager_factory_for_profile_sync_test.h', |
(...skipping 19 matching lines...) Expand all Loading... |
211 { | 211 { |
212 'target_name': 'test_support_sync_api', | 212 'target_name': 'test_support_sync_api', |
213 'type': 'static_library', | 213 'type': 'static_library', |
214 'include_dirs': [ | 214 'include_dirs': [ |
215 '..', | 215 '..', |
216 ], | 216 ], |
217 'defines': [ | 217 'defines': [ |
218 'SYNC_TEST' | 218 'SYNC_TEST' |
219 ], | 219 ], |
220 'dependencies': [ | 220 'dependencies': [ |
221 '../../testing/gmock.gyp:gmock', | 221 '../testing/gmock.gyp:gmock', |
222 'sync', | 222 'sync', |
223 ], | 223 ], |
224 'export_dependent_settings': [ | 224 'export_dependent_settings': [ |
225 '../../testing/gmock.gyp:gmock', | 225 '../testing/gmock.gyp:gmock', |
226 'sync', | 226 'sync', |
227 ], | 227 ], |
228 'sources': [ | 228 'sources': [ |
229 'api/fake_model_type_change_processor.cc', | 229 'api/fake_model_type_change_processor.cc', |
230 'api/fake_model_type_change_processor.h', | 230 'api/fake_model_type_change_processor.h', |
231 'api/fake_model_type_service.cc', | 231 'api/fake_model_type_service.cc', |
232 'api/fake_model_type_service.h', | 232 'api/fake_model_type_service.h', |
233 'api/fake_sync_change_processor.cc', | 233 'api/fake_sync_change_processor.cc', |
234 'api/fake_sync_change_processor.h', | 234 'api/fake_sync_change_processor.h', |
235 'api/fake_syncable_service.cc', | 235 'api/fake_syncable_service.cc', |
(...skipping 11 matching lines...) Expand all Loading... |
247 # GN version: //components/sync:sync_unit_tests | 247 # GN version: //components/sync:sync_unit_tests |
248 { | 248 { |
249 'target_name': 'sync_unit_tests', | 249 'target_name': 'sync_unit_tests', |
250 'type': '<(gtest_target_type)', | 250 'type': '<(gtest_target_type)', |
251 # Typed-parametrized tests generate exit-time destructors. | 251 # Typed-parametrized tests generate exit-time destructors. |
252 'variables': { 'enable_wexit_time_destructors': 0, }, | 252 'variables': { 'enable_wexit_time_destructors': 0, }, |
253 'defines': [ | 253 'defines': [ |
254 'SYNC_TEST', | 254 'SYNC_TEST', |
255 ], | 255 ], |
256 'dependencies': [ | 256 'dependencies': [ |
257 '../../base/base.gyp:base', | 257 '../base/base.gyp:base', |
258 '../../base/base.gyp:run_all_unittests', | 258 '../base/base.gyp:run_all_unittests', |
259 '../../google_apis/google_apis.gyp:google_apis', | 259 '../google_apis/google_apis.gyp:google_apis', |
260 '../../google_apis/google_apis.gyp:google_apis_test_support', | 260 '../google_apis/google_apis.gyp:google_apis_test_support', |
261 '../../net/net.gyp:net', | 261 '../net/net.gyp:net', |
262 '../../net/net.gyp:net_test_support', | 262 '../net/net.gyp:net_test_support', |
263 '../../sql/sql.gyp:sql', | 263 '../sql/sql.gyp:sql', |
264 '../../sql/sql.gyp:test_support_sql', | 264 '../sql/sql.gyp:test_support_sql', |
265 '../../testing/gmock.gyp:gmock', | 265 '../testing/gmock.gyp:gmock', |
266 '../../testing/gtest.gyp:gtest', | 266 '../testing/gtest.gyp:gtest', |
267 '../../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | 267 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
268 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 268 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
269 'sync', | 269 'sync', |
270 'test_support_sync_api', | 270 'test_support_sync_api', |
271 'test_support_sync_core', | 271 'test_support_sync_core', |
272 'test_support_sync_core_impl', | 272 'test_support_sync_core_impl', |
273 ], | 273 ], |
274 'include_dirs': [ | 274 'include_dirs': [ |
275 '..', | 275 '..', |
276 ], | 276 ], |
277 'sources': [ | 277 'sources': [ |
278 'api/attachments/attachment_id_unittest.cc', | 278 'api/attachments/attachment_id_unittest.cc', |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 'syncable/syncable_util_unittest.cc', | 354 'syncable/syncable_util_unittest.cc', |
355 'base/cryptographer_unittest.cc', | 355 'base/cryptographer_unittest.cc', |
356 'base/data_type_histogram_unittest.cc', | 356 'base/data_type_histogram_unittest.cc', |
357 'base/get_session_name_unittest.cc', | 357 'base/get_session_name_unittest.cc', |
358 'base/nigori_unittest.cc', | 358 'base/nigori_unittest.cc', |
359 'base/protobuf_unittest.cc', | 359 'base/protobuf_unittest.cc', |
360 ], | 360 ], |
361 'conditions': [ | 361 'conditions': [ |
362 ['OS == "android"', { | 362 ['OS == "android"', { |
363 'dependencies': [ | 363 'dependencies': [ |
364 '../../testing/android/native_test.gyp:native_test_native_code', | 364 '../testing/android/native_test.gyp:native_test_native_code', |
365 ], | 365 ], |
366 }], | 366 }], |
367 ['OS=="linux" and chromeos==1', { | 367 ['OS=="linux" and chromeos==1', { |
368 # Required by get_session_name_unittest.cc on Chrome OS. | 368 # Required by get_session_name_unittest.cc on Chrome OS. |
369 'dependencies': [ | 369 'dependencies': [ |
370 '../../chromeos/chromeos.gyp:chromeos', | 370 '../chromeos/chromeos.gyp:chromeos', |
371 ], | 371 ], |
372 }], | 372 }], |
373 ['OS == "ios"', { | 373 ['OS == "ios"', { |
374 'sources!': [ | 374 'sources!': [ |
375 'core/http_bridge_unittest.cc', | 375 'core/http_bridge_unittest.cc', |
376 ], | 376 ], |
377 }], | 377 }], |
378 ], | 378 ], |
379 }, | 379 }, |
380 ], | 380 ], |
381 'conditions': [ | 381 'conditions': [ |
382 ['OS != "ios"', { | 382 ['OS != "ios"', { |
383 'targets': [ | 383 'targets': [ |
384 # A tool that can be used to launch a python sync server instance. | 384 # A tool that can be used to launch a python sync server instance. |
385 { | 385 { |
386 'target_name': 'run_sync_testserver', | 386 'target_name': 'run_sync_testserver', |
387 'type': 'executable', | 387 'type': 'executable', |
388 'dependencies': [ | 388 'dependencies': [ |
389 '../../base/base.gyp:base', | 389 '../base/base.gyp:base', |
390 '../../base/base.gyp:test_support_base', | 390 '../base/base.gyp:test_support_base', |
391 '../../net/net.gyp:net_test_support', | 391 '../net/net.gyp:net_test_support', |
392 '../../testing/gtest.gyp:gtest', | 392 '../testing/gtest.gyp:gtest', |
393 'test_support_sync_testserver', | 393 'test_support_sync_testserver', |
394 ], | 394 ], |
395 'sources': [ | 395 'sources': [ |
396 'tools/testserver/run_sync_testserver.cc', | 396 'tools/testserver/run_sync_testserver.cc', |
397 ], | 397 ], |
398 }, | 398 }, |
399 ], | 399 ], |
400 }], | 400 }], |
401 ['OS == "android"', { | 401 ['OS == "android"', { |
402 'targets': [ | 402 'targets': [ |
403 { | 403 { |
404 # GN: //components/sync/android:sync_javatests | 404 # GN: //components/sync/android:sync_javatests |
405 'target_name': 'sync_javatests', | 405 'target_name': 'sync_javatests', |
406 'type': 'none', | 406 'type': 'none', |
407 'variables': { | 407 'variables': { |
408 'java_in_dir': '../../components/sync/android/javatests', | 408 'java_in_dir': '../components/sync/android/javatests', |
409 }, | 409 }, |
410 'dependencies': [ | 410 'dependencies': [ |
411 'sync_java', | 411 'sync_java', |
412 'sync_java_test_support', | 412 'sync_java_test_support', |
413 '../../base/base.gyp:base_java_test_support', | 413 '../base/base.gyp:base_java_test_support', |
414 ], | 414 ], |
415 'includes': [ '../../build/java.gypi' ], | 415 'includes': [ '../../build/java.gypi' ], |
416 }, | 416 }, |
417 { | 417 { |
418 # GN: //components/sync:sync_java_test_support | 418 # GN: //components/sync:sync_java_test_support |
419 'target_name': 'sync_java_test_support', | 419 'target_name': 'sync_java_test_support', |
420 'type': 'none', | 420 'type': 'none', |
421 'variables': { | 421 'variables': { |
422 'java_in_dir': '../../components/sync/test/android/javatests', | 422 'java_in_dir': '../components/sync/test/android/javatests', |
423 }, | 423 }, |
424 'dependencies': [ | 424 'dependencies': [ |
425 'sync_java', | 425 'sync_java', |
426 '../../base/base.gyp:base_java_test_support', | 426 '../base/base.gyp:base_java_test_support', |
427 ], | 427 ], |
428 'includes': [ '../../build/java.gypi' ], | 428 'includes': [ '../../build/java.gypi' ], |
429 }, | 429 }, |
430 { | 430 { |
431 # GN: //components/sync:sync_fake_server_jni_headers | 431 # GN: //components/sync:sync_fake_server_jni_headers |
432 'target_name': 'sync_fake_server_jni_headers', | 432 'target_name': 'sync_fake_server_jni_headers', |
433 'type': 'none', | 433 'type': 'none', |
434 'sources': [ | 434 'sources': [ |
435 '../../chrome/android/sync_shell/javatests/src/org/chromium/chrome/b
rowser/sync/FakeServerHelper.java', | 435 '../chrome/android/sync_shell/javatests/src/org/chromium/chrome/brow
ser/sync/FakeServerHelper.java', |
436 ], | 436 ], |
437 'variables': { | 437 'variables': { |
438 'jni_gen_package': 'sync/test/fake_server', | 438 'jni_gen_package': 'sync/test/fake_server', |
439 'jni_generator_ptr_type': 'long', | 439 'jni_generator_ptr_type': 'long', |
440 }, | 440 }, |
441 'includes': [ '../../build/jni_generator.gypi' ], | 441 'includes': [ '../../build/jni_generator.gypi' ], |
442 }, | 442 }, |
443 { | 443 { |
444 # GN: //components/sync:test_support_sync_proto_java | 444 # GN: //components/sync:test_support_sync_proto_java |
445 'target_name': 'test_support_sync_proto_java', | 445 'target_name': 'test_support_sync_proto_java', |
(...skipping 30 matching lines...) Expand all Loading... |
476 ], | 476 ], |
477 'includes': ['protocol/protocol.gypi', '../../build/protoc_java.gypi']
, | 477 'includes': ['protocol/protocol.gypi', '../../build/protoc_java.gypi']
, |
478 }, | 478 }, |
479 { | 479 { |
480 # GN: //components/sync:test_support_sync_fake_server_android | 480 # GN: //components/sync:test_support_sync_fake_server_android |
481 'target_name': 'test_support_sync_fake_server_android', | 481 'target_name': 'test_support_sync_fake_server_android', |
482 'type': 'static_library', | 482 'type': 'static_library', |
483 'dependencies': [ | 483 'dependencies': [ |
484 'sync_fake_server_jni_headers', | 484 'sync_fake_server_jni_headers', |
485 'test_support_sync_fake_server', | 485 'test_support_sync_fake_server', |
486 '../../testing/gtest.gyp:gtest', | 486 '../testing/gtest.gyp:gtest', |
487 '../../base/base.gyp:base', | 487 '../base/base.gyp:base', |
488 ], | 488 ], |
489 'export_dependent_settings': [ | 489 'export_dependent_settings': [ |
490 '../../testing/gtest.gyp:gtest', | 490 '../testing/gtest.gyp:gtest', |
491 ], | 491 ], |
492 'sources': [ | 492 'sources': [ |
493 'test/fake_server/android/fake_server_helper_android.cc', | 493 'test/fake_server/android/fake_server_helper_android.cc', |
494 'test/fake_server/android/fake_server_helper_android.h', | 494 'test/fake_server/android/fake_server_helper_android.h', |
495 ], | 495 ], |
496 }, | 496 }, |
497 { | 497 { |
498 # GN: //components/sync:sync_unit_tests_apk | 498 # GN: //components/sync:sync_unit_tests_apk |
499 'target_name': 'sync_unit_tests_apk', | 499 'target_name': 'sync_unit_tests_apk', |
500 'type': 'none', | 500 'type': 'none', |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 '../../build/isolate.gypi', | 540 '../../build/isolate.gypi', |
541 ], | 541 ], |
542 'sources': [ | 542 'sources': [ |
543 'sync_unit_tests.isolate', | 543 'sync_unit_tests.isolate', |
544 ], | 544 ], |
545 }, | 545 }, |
546 ], | 546 ], |
547 }], | 547 }], |
548 ], | 548 ], |
549 } | 549 } |
OLD | NEW |