| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'targets': [ | |
| 7 # Test support files for the 'sync_core' target. | |
| 8 # GN version: //components/sync:test_support_sync_core | |
| 9 { | |
| 10 'target_name': 'test_support_sync_core', | |
| 11 'type': 'static_library', | |
| 12 'variables': { 'enable_wexit_time_destructors': 1, }, | |
| 13 'include_dirs': [ | |
| 14 '..', | |
| 15 ], | |
| 16 'defines': [ | |
| 17 'SYNC_TEST' | |
| 18 ], | |
| 19 'dependencies': [ | |
| 20 '../base/base.gyp:base', | |
| 21 '../testing/gmock.gyp:gmock', | |
| 22 '../testing/gtest.gyp:gtest', | |
| 23 'sync', | |
| 24 ], | |
| 25 'export_dependent_settings': [ | |
| 26 '../testing/gmock.gyp:gmock', | |
| 27 '../testing/gtest.gyp:gtest', | |
| 28 'sync', | |
| 29 ], | |
| 30 'sources': [ | |
| 31 'base/model_type_test_util.cc', | |
| 32 'base/model_type_test_util.h', | |
| 33 'js/js_test_util.cc', | |
| 34 'js/js_test_util.h', | |
| 35 'sessions_impl/test_util.cc', | |
| 36 'sessions_impl/test_util.h', | |
| 37 'test/callback_counter.h', | |
| 38 "test/directory_backing_store_corruption_testing.cc", | |
| 39 "test/directory_backing_store_corruption_testing.h", | |
| 40 'test/engine/fake_model_worker.cc', | |
| 41 'test/engine/fake_model_worker.h', | |
| 42 'test/engine/fake_sync_scheduler.cc', | |
| 43 'test/engine/fake_sync_scheduler.h', | |
| 44 'test/engine/mock_connection_manager.cc', | |
| 45 'test/engine/mock_connection_manager.h', | |
| 46 'test/engine/mock_model_type_processor.cc', | |
| 47 'test/engine/mock_model_type_processor.h', | |
| 48 'test/engine/mock_model_type_worker.cc', | |
| 49 'test/engine/mock_model_type_worker.h', | |
| 50 'test/engine/mock_nudge_handler.cc', | |
| 51 'test/engine/mock_nudge_handler.h', | |
| 52 'test/engine/mock_update_handler.cc', | |
| 53 'test/engine/mock_update_handler.h', | |
| 54 'test/engine/single_type_mock_server.cc', | |
| 55 'test/engine/single_type_mock_server.h', | |
| 56 'test/engine/test_directory_setter_upper.cc', | |
| 57 'test/engine/test_directory_setter_upper.h', | |
| 58 'test/engine/test_id_factory.h', | |
| 59 'test/engine/test_syncable_utils.cc', | |
| 60 'test/engine/test_syncable_utils.h', | |
| 61 'base/fake_encryptor.cc', | |
| 62 'base/fake_encryptor.h', | |
| 63 'test/fake_sync_encryption_handler.cc', | |
| 64 'test/fake_sync_encryption_handler.h', | |
| 65 'test/mock_invalidation.cc', | |
| 66 'test/mock_invalidation.h', | |
| 67 'test/mock_invalidation_tracker.cc', | |
| 68 'test/mock_invalidation_tracker.h', | |
| 69 'test/null_directory_change_delegate.cc', | |
| 70 'test/null_directory_change_delegate.h', | |
| 71 'test/null_transaction_observer.cc', | |
| 72 'test/null_transaction_observer.h', | |
| 73 'test/sessions/mock_debug_info_getter.cc', | |
| 74 'test/sessions/mock_debug_info_getter.h', | |
| 75 'test/sessions/test_scoped_session_event_listener.h', | |
| 76 'test/test_directory_backing_store.cc', | |
| 77 'test/test_directory_backing_store.h', | |
| 78 'test/test_transaction_observer.cc', | |
| 79 'test/test_transaction_observer.h', | |
| 80 'test/trackable_mock_invalidation.cc', | |
| 81 'test/trackable_mock_invalidation.h', | |
| 82 'base/mock_unrecoverable_error_handler.cc', | |
| 83 'base/mock_unrecoverable_error_handler.h', | |
| 84 'base/test_unrecoverable_error_handler.cc', | |
| 85 'base/test_unrecoverable_error_handler.h', | |
| 86 ], | |
| 87 }, | |
| 88 | |
| 89 # Test support files for the python sync test server. | |
| 90 # GN version: //components/sync:test_support_sync_testserver | |
| 91 { | |
| 92 'target_name': 'test_support_sync_testserver', | |
| 93 'type': 'static_library', | |
| 94 'variables': { 'enable_wexit_time_destructors': 1, }, | |
| 95 'include_dirs': [ | |
| 96 '..', | |
| 97 ], | |
| 98 'dependencies': [ | |
| 99 '../base/base.gyp:base', | |
| 100 '../net/net.gyp:net_test_support', | |
| 101 # The sync test server uses Python modules generated by the sync protos. | |
| 102 '../third_party/protobuf/protobuf.gyp:py_proto', | |
| 103 'sync', | |
| 104 ], | |
| 105 'export_dependent_settings': [ | |
| 106 '../base/base.gyp:base', | |
| 107 '../net/net.gyp:net_test_support', | |
| 108 ], | |
| 109 'sources': [ | |
| 110 'test/local_sync_test_server.cc', | |
| 111 'test/local_sync_test_server.h', | |
| 112 ], | |
| 113 }, | |
| 114 | |
| 115 # Test support files for the fake sync server. | |
| 116 # GN version: //components/sync:test_support_sync_fake_server | |
| 117 { | |
| 118 'target_name': 'test_support_sync_fake_server', | |
| 119 'type': 'static_library', | |
| 120 'variables': { 'enable_wexit_time_destructors': 1, }, | |
| 121 'include_dirs': [ | |
| 122 '..', | |
| 123 ], | |
| 124 'dependencies': [ | |
| 125 '../base/base.gyp:base', | |
| 126 '../net/net.gyp:net', | |
| 127 '../testing/gtest.gyp:gtest', | |
| 128 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
| 129 'sync', | |
| 130 ], | |
| 131 'export_dependent_settings': [ | |
| 132 'sync', | |
| 133 ], | |
| 134 'sources': [ | |
| 135 'test/fake_server/bookmark_entity.cc', | |
| 136 'test/fake_server/bookmark_entity.h', | |
| 137 'test/fake_server/bookmark_entity_builder.cc', | |
| 138 'test/fake_server/bookmark_entity_builder.h', | |
| 139 'test/fake_server/entity_builder_factory.cc', | |
| 140 'test/fake_server/entity_builder_factory.h', | |
| 141 'test/fake_server/fake_server.cc', | |
| 142 'test/fake_server/fake_server.h', | |
| 143 'test/fake_server/fake_server_entity.cc', | |
| 144 'test/fake_server/fake_server_entity.h', | |
| 145 'test/fake_server/fake_server_http_post_provider.cc', | |
| 146 'test/fake_server/fake_server_http_post_provider.h', | |
| 147 'test/fake_server/fake_server_network_resources.cc', | |
| 148 'test/fake_server/fake_server_network_resources.h', | |
| 149 'test/fake_server/fake_server_verifier.cc', | |
| 150 'test/fake_server/fake_server_verifier.h', | |
| 151 'test/fake_server/permanent_entity.cc', | |
| 152 'test/fake_server/permanent_entity.h', | |
| 153 'test/fake_server/sessions_hierarchy.cc', | |
| 154 'test/fake_server/sessions_hierarchy.h', | |
| 155 'test/fake_server/tombstone_entity.cc', | |
| 156 'test/fake_server/tombstone_entity.h', | |
| 157 'test/fake_server/unique_client_entity.cc', | |
| 158 'test/fake_server/unique_client_entity.h', | |
| 159 ], | |
| 160 }, | |
| 161 | |
| 162 # Test support files for the 'sync_core_impl' target. | |
| 163 # GN version: //components/sync:test_support_sync_core_impl | |
| 164 { | |
| 165 'target_name': 'test_support_sync_core_impl', | |
| 166 'type': 'static_library', | |
| 167 'variables': { 'enable_wexit_time_destructors': 1, }, | |
| 168 'include_dirs': [ | |
| 169 '..', | |
| 170 ], | |
| 171 'defines': [ | |
| 172 'SYNC_TEST' | |
| 173 ], | |
| 174 'dependencies': [ | |
| 175 '../base/base.gyp:base', | |
| 176 '../testing/gtest.gyp:gtest', | |
| 177 'sync', | |
| 178 'test_support_sync_core', | |
| 179 ], | |
| 180 'export_dependent_settings': [ | |
| 181 '../testing/gtest.gyp:gtest', | |
| 182 'sync', | |
| 183 'test_support_sync_core', | |
| 184 ], | |
| 185 'sources': [ | |
| 186 'core/test/data_type_error_handler_mock.h', | |
| 187 'core/test/fake_model_type_connector.h', | |
| 188 'core/test/fake_model_type_processor.h', | |
| 189 'core/test/fake_sync_manager.h', | |
| 190 'core/test/model_type_store_test_util.h', | |
| 191 'core/test/sync_manager_factory_for_profile_sync_test.h', | |
| 192 'core/test/test_entry_factory.h', | |
| 193 'core/test/test_internal_components_factory.h', | |
| 194 'core/test/test_user_share.h', | |
| 195 'core_impl/test/data_type_error_handler_mock.cc', | |
| 196 'core_impl/test/fake_model_type_connector.cc', | |
| 197 'core_impl/test/fake_model_type_processor.cc', | |
| 198 'core_impl/test/fake_sync_manager.cc', | |
| 199 'core_impl/test/model_type_store_test_util.cc', | |
| 200 'core_impl/test/sync_manager_factory_for_profile_sync_test.cc', | |
| 201 'core_impl/test/sync_manager_for_profile_sync_test.cc', | |
| 202 'core_impl/test/sync_manager_for_profile_sync_test.h', | |
| 203 'core_impl/test/test_entry_factory.cc', | |
| 204 'core_impl/test/test_internal_components_factory.cc', | |
| 205 'core_impl/test/test_user_share.cc', | |
| 206 ], | |
| 207 }, | |
| 208 | |
| 209 # Test support files for the 'sync_api' target. | |
| 210 # GN version: //components/sync:test_support_sync_api | |
| 211 { | |
| 212 'target_name': 'test_support_sync_api', | |
| 213 'type': 'static_library', | |
| 214 'include_dirs': [ | |
| 215 '..', | |
| 216 ], | |
| 217 'defines': [ | |
| 218 'SYNC_TEST' | |
| 219 ], | |
| 220 'dependencies': [ | |
| 221 '../testing/gmock.gyp:gmock', | |
| 222 'sync', | |
| 223 ], | |
| 224 'export_dependent_settings': [ | |
| 225 '../testing/gmock.gyp:gmock', | |
| 226 'sync', | |
| 227 ], | |
| 228 'sources': [ | |
| 229 'api/fake_model_type_change_processor.cc', | |
| 230 'api/fake_model_type_change_processor.h', | |
| 231 'api/fake_model_type_service.cc', | |
| 232 'api/fake_model_type_service.h', | |
| 233 'api/fake_sync_change_processor.cc', | |
| 234 'api/fake_sync_change_processor.h', | |
| 235 'api/fake_syncable_service.cc', | |
| 236 'api/fake_syncable_service.h', | |
| 237 'api/mock_model_type_store.cc', | |
| 238 'api/mock_model_type_store.h', | |
| 239 'api/sync_change_processor_wrapper_for_test.cc', | |
| 240 'api/sync_change_processor_wrapper_for_test.h', | |
| 241 'api/sync_error_factory_mock.cc', | |
| 242 'api/sync_error_factory_mock.h', | |
| 243 ], | |
| 244 }, | |
| 245 { | |
| 246 'target_name': 'test_support_sync_driver', | |
| 247 'type': 'static_library', | |
| 248 'dependencies': [ | |
| 249 'sync', | |
| 250 'test_support_sync_core_impl', | |
| 251 'components.gyp:version_info', | |
| 252 '../base/base.gyp:base', | |
| 253 '../testing/gmock.gyp:gmock', | |
| 254 '../testing/gtest.gyp:gtest', | |
| 255 ], | |
| 256 'include_dirs': [ | |
| 257 '..', | |
| 258 ], | |
| 259 'sources': [ | |
| 260 'driver/change_processor_mock.cc', | |
| 261 'driver/change_processor_mock.h', | |
| 262 'driver/data_type_controller_mock.cc', | |
| 263 'driver/data_type_controller_mock.h', | |
| 264 'driver/data_type_manager_mock.cc', | |
| 265 'driver/data_type_manager_mock.h', | |
| 266 'driver/fake_data_type_controller.cc', | |
| 267 'driver/fake_data_type_controller.h', | |
| 268 'driver/fake_generic_change_processor.cc', | |
| 269 'driver/fake_generic_change_processor.h', | |
| 270 'driver/fake_sync_client.cc', | |
| 271 'driver/fake_sync_client.h', | |
| 272 'driver/fake_sync_service.cc', | |
| 273 'driver/fake_sync_service.h', | |
| 274 'driver/frontend_data_type_controller_mock.cc', | |
| 275 'driver/frontend_data_type_controller_mock.h', | |
| 276 'driver/glue/sync_backend_host_mock.cc', | |
| 277 'driver/glue/sync_backend_host_mock.h', | |
| 278 'driver/local_device_info_provider_mock.cc', | |
| 279 'driver/local_device_info_provider_mock.h', | |
| 280 'driver/model_associator_mock.cc', | |
| 281 'driver/model_associator_mock.h', | |
| 282 'driver/non_ui_data_type_controller_mock.cc', | |
| 283 'driver/non_ui_data_type_controller_mock.h', | |
| 284 'driver/sync_api_component_factory_mock.cc', | |
| 285 'driver/sync_api_component_factory_mock.h', | |
| 286 ], | |
| 287 }, | |
| 288 ], | |
| 289 'conditions': [ | |
| 290 ['OS != "ios"', { | |
| 291 'targets': [ | |
| 292 # A tool that can be used to launch a python sync server instance. | |
| 293 { | |
| 294 'target_name': 'run_sync_testserver', | |
| 295 'type': 'executable', | |
| 296 'dependencies': [ | |
| 297 '../base/base.gyp:base', | |
| 298 '../base/base.gyp:test_support_base', | |
| 299 '../net/net.gyp:net_test_support', | |
| 300 '../testing/gtest.gyp:gtest', | |
| 301 'test_support_sync_testserver', | |
| 302 ], | |
| 303 'sources': [ | |
| 304 'tools/testserver/run_sync_testserver.cc', | |
| 305 ], | |
| 306 }, | |
| 307 ], | |
| 308 }], | |
| 309 ['OS == "android"', { | |
| 310 'targets': [ | |
| 311 { | |
| 312 # GN: //components/sync/android:sync_javatests | |
| 313 'target_name': 'sync_javatests', | |
| 314 'type': 'none', | |
| 315 'variables': { | |
| 316 'java_in_dir': '../components/sync/android/javatests', | |
| 317 }, | |
| 318 'dependencies': [ | |
| 319 'sync_java', | |
| 320 'sync_java_test_support', | |
| 321 '../base/base.gyp:base_java_test_support', | |
| 322 ], | |
| 323 'includes': [ '../../build/java.gypi' ], | |
| 324 }, | |
| 325 { | |
| 326 # GN: //components/sync:sync_java_test_support | |
| 327 'target_name': 'sync_java_test_support', | |
| 328 'type': 'none', | |
| 329 'variables': { | |
| 330 'java_in_dir': '../components/sync/test/android/javatests', | |
| 331 }, | |
| 332 'dependencies': [ | |
| 333 'sync_java', | |
| 334 '../base/base.gyp:base_java_test_support', | |
| 335 ], | |
| 336 'includes': [ '../../build/java.gypi' ], | |
| 337 }, | |
| 338 { | |
| 339 # GN: //components/sync:sync_fake_server_jni_headers | |
| 340 'target_name': 'sync_fake_server_jni_headers', | |
| 341 'type': 'none', | |
| 342 'sources': [ | |
| 343 '../chrome/android/sync_shell/javatests/src/org/chromium/chrome/brow
ser/sync/FakeServerHelper.java', | |
| 344 ], | |
| 345 'variables': { | |
| 346 'jni_gen_package': 'sync/test/fake_server', | |
| 347 'jni_generator_ptr_type': 'long', | |
| 348 }, | |
| 349 'includes': [ '../../build/jni_generator.gypi' ], | |
| 350 }, | |
| 351 { | |
| 352 # GN: //components/sync:test_support_sync_proto_java | |
| 353 'target_name': 'test_support_sync_proto_java', | |
| 354 'type': 'none', | |
| 355 'variables': { | |
| 356 'proto_in_dir': '<(INTERMEDIATE_DIR)/sync_protos', | |
| 357 # Set this variable so that sync_proto_source_paths refers to the | |
| 358 # temporary proto definitions created here. | |
| 359 'sync_proto_sources_dir': '<(INTERMEDIATE_DIR)/sync_protos', | |
| 360 }, | |
| 361 'actions': [ | |
| 362 { | |
| 363 'action_name': 'run_script', | |
| 364 'inputs': [ | |
| 365 'protocol/prepare_protos_for_java_tests.py', | |
| 366 # Use the original list of proto files (defined in sync.gyp). | |
| 367 '<@(sync_proto_sources)', | |
| 368 ], | |
| 369 'outputs': [ | |
| 370 '<@(sync_proto_source_paths)', | |
| 371 ], | |
| 372 'action': [ | |
| 373 'python', | |
| 374 'protocol/prepare_protos_for_java_tests.py', | |
| 375 '--output_dir', | |
| 376 '<(INTERMEDIATE_DIR)/sync_protos', | |
| 377 # Use the original list of proto files (defined in sync.gyp). | |
| 378 '<@(sync_proto_sources)' | |
| 379 ], | |
| 380 }, | |
| 381 ], | |
| 382 'sources': [ | |
| 383 '<@(sync_proto_source_paths)', | |
| 384 ], | |
| 385 'includes': ['protocol/protocol.gypi', '../../build/protoc_java.gypi']
, | |
| 386 }, | |
| 387 { | |
| 388 # GN: //components/sync:test_support_sync_fake_server_android | |
| 389 'target_name': 'test_support_sync_fake_server_android', | |
| 390 'type': 'static_library', | |
| 391 'dependencies': [ | |
| 392 'sync_fake_server_jni_headers', | |
| 393 'test_support_sync_fake_server', | |
| 394 '../testing/gtest.gyp:gtest', | |
| 395 '../base/base.gyp:base', | |
| 396 ], | |
| 397 'export_dependent_settings': [ | |
| 398 '../testing/gtest.gyp:gtest', | |
| 399 ], | |
| 400 'sources': [ | |
| 401 'test/fake_server/android/fake_server_helper_android.cc', | |
| 402 'test/fake_server/android/fake_server_helper_android.h', | |
| 403 ], | |
| 404 }, | |
| 405 ], | |
| 406 }], | |
| 407 ], | |
| 408 } | |
| OLD | NEW |