Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 | 7 |
| 8 gypi_values = exec_script("//build/gypi_to_gn.py", | |
| 9 [ rebase_path("../chrome_tests.gypi") ], | |
| 10 "scope", | |
| 11 [ "../chrome_tests.gypi" ]) | |
| 12 | |
| 13 # This target exists to reference other test executables to bring these files | 8 # This target exists to reference other test executables to bring these files |
| 14 # into the build. | 9 # into the build. |
| 15 group("test") { | 10 group("test") { |
| 16 testonly = true | 11 testonly = true |
| 17 deps = [ | 12 deps = [ |
| 18 "//chrome/test/perf", | 13 "//chrome/test/perf", |
| 19 ] | 14 ] |
| 20 } | 15 } |
| 21 | 16 |
| 22 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common | 17 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 211 "//base", | 206 "//base", |
| 212 "//chrome:resources", | 207 "//chrome:resources", |
| 213 "//chrome:strings", | 208 "//chrome:strings", |
| 214 "//chrome/browser", | 209 "//chrome/browser", |
| 215 "//chrome/common", | 210 "//chrome/common", |
| 216 "//mojo/edk/system", | 211 "//mojo/edk/system", |
| 217 "//mojo/environment:chromium", | 212 "//mojo/environment:chromium", |
| 218 ] | 213 ] |
| 219 } | 214 } |
| 220 | 215 |
| 221 source_set("sync_integration_test_support") { | 216 if (!is_android) { |
| 222 testonly = true | 217 gypi_values = exec_script( |
| 218 "//build/gypi_to_gn.py", | |
| 219 [ rebase_path("../chrome_tests.gypi") ], | |
| 220 "scope", | |
| 221 [ "../chrome_tests.gypi" ]) | |
| 223 | 222 |
| 224 sources = rebase_path(gypi_values.test_support_sync_integration_sources, | 223 source_set("sync_integration_test_support") { |
|
cjhopman
2014/12/08 03:12:10
Ugh, Rietveld diff for everything below this is ug
| |
| 225 ".", | 224 testonly = true |
| 226 "//chrome") | 225 sources = rebase_path(gypi_values.test_support_sync_integration_sources, |
| 227 deps = [ | 226 ".", |
| 228 ":test_support", | 227 "//chrome") |
| 229 "//base", | 228 deps = [ |
| 230 "//chrome", | 229 ":test_support", |
| 231 "//chrome/browser", | 230 "//base", |
| 232 "//components/invalidation", | 231 "//chrome", |
| 233 "//components/invalidation:test_support", | 232 "//chrome/browser", |
| 234 "//net", | 233 "//components/invalidation", |
| 235 "//skia", | 234 "//components/invalidation:test_support", |
| 236 "//sync", | 235 "//net", |
| 237 "//sync:test_support_sync_testserver", | 236 "//skia", |
| 238 "//sync:test_support_sync_fake_server", | 237 "//sync", |
| 239 "//ui/app_list:test_support", | 238 "//sync:test_support_sync_testserver", |
| 240 ] | 239 "//sync:test_support_sync_fake_server", |
| 240 "//ui/app_list:test_support", | |
| 241 ] | |
| 241 | 242 |
| 242 if (is_mac) { | 243 if (is_mac) { |
| 243 sources -= [ | 244 sources -= [ |
| 244 "../browser/sync/test/integration/dictionary_helper.cc", | 245 "../browser/sync/test/integration/dictionary_helper.cc", |
| 245 "../browser/sync/test/integration/dictionary_helper.h", | 246 "../browser/sync/test/integration/dictionary_helper.h", |
| 246 "../browser/sync/test/integration/dictionary_load_observer.cc", | 247 "../browser/sync/test/integration/dictionary_load_observer.cc", |
| 247 "../browser/sync/test/integration/dictionary_load_observer.h", | 248 "../browser/sync/test/integration/dictionary_load_observer.h", |
| 249 ] | |
| 250 } | |
| 251 if (!enable_app_list) { | |
| 252 sources -= [ | |
| 253 "../browser/sync/test/integration/sync_app_list_helper.cc", | |
| 254 "../browser/sync/test/integration/sync_app_list_helper.h", | |
| 255 ] | |
| 256 } | |
| 257 } | |
| 258 | |
| 259 test("sync_integration_tests") { | |
| 260 sources = | |
| 261 rebase_path(gypi_values.sync_integration_tests_sources, ".", "//chrome") | |
| 262 | |
| 263 # TODO(phajdan.jr): Only temporary, to make transition easier. | |
| 264 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
| 265 | |
| 266 deps = [ | |
| 267 ":sync_integration_test_support", | |
| 268 ":test_support", | |
| 269 "//base/allocator", | |
| 270 "//chrome:packed_extra_resources", | |
| 271 "//chrome:packed_resources", | |
| 272 "//chrome:resources", | |
| 273 "//chrome:strings", | |
| 274 "//chrome/common", | |
| 275 "//chrome/renderer", | |
| 276 "//crypto:platform", | |
| 277 "//sync", | |
| 278 "//testing/gmock", | |
| 279 "//testing/gtest", | |
| 280 "//third_party/icu", | |
| 281 "//third_party/leveldatabase", | |
| 282 "//third_party/npapi", | |
| 283 "//third_party/WebKit/public:blink", | |
| 248 ] | 284 ] |
| 285 | |
| 286 if (cld_version == 0 || cld_version == 2) { | |
| 287 # Language detection is irrelevant to sync, so it can depend on any | |
| 288 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | |
| 289 deps += [ "//third_party/cld_2:cld2_dynamic" ] | |
| 290 } | |
| 291 if (is_mac) { | |
| 292 # Dictionary sync is disabled on Mac. | |
| 293 sources -= [ | |
| 294 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.c c", | |
| 295 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc" , | |
| 296 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc", | |
| 297 ] | |
| 298 | |
| 299 # The sync_integration_tests do not run on mac without this flag. | |
| 300 # Search for comments about "xcode_settings" elsewhere in this file. | |
| 301 ldflags = [ "-Wl,-ObjC" ] | |
| 302 } | |
| 303 if (is_win) { | |
| 304 # TODO(GYP) figure out what these should map to. | |
| 305 #sources += [ | |
| 306 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | |
| 307 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | |
| 308 #] | |
| 309 deps += [ | |
| 310 "//third_party/wtl", | |
| 311 #'chrome_version_resources', TODO(GYP) | |
| 312 ] | |
| 313 } else { | |
| 314 sources -= [ "../app/chrome_version.rc.version" ] | |
| 315 } | |
| 316 | |
| 317 if (toolkit_views) { | |
| 318 deps += [ "//ui/views" ] | |
| 319 } | |
| 320 if (enable_basic_printing || enable_print_preview) { | |
| 321 deps += [ "//printing" ] | |
| 322 } | |
| 323 if (!enable_app_list) { | |
| 324 sources -= [ | |
| 325 "../browser/sync/test/integration/single_client_app_list_sync_test.cc", | |
| 326 "../browser/sync/test/integration/two_client_app_list_sync_test.cc", | |
| 327 ] | |
| 328 } | |
| 329 if (!enable_supervised_users) { | |
| 330 sources -= [ "../browser/sync/test/integration/single_client_supervised_us er_settings_sync_test.cc" ] | |
| 331 } | |
| 249 } | 332 } |
| 250 if (!enable_app_list) { | 333 |
| 251 sources -= [ | 334 test("sync_performance_tests") { |
| 252 "../browser/sync/test/integration/sync_app_list_helper.cc", | 335 sources = |
| 253 "../browser/sync/test/integration/sync_app_list_helper.h", | 336 rebase_path(gypi_values.sync_performance_tests_sources, ".", "//chrome") |
| 337 | |
| 338 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
| 339 | |
| 340 deps = [ | |
| 341 ":sync_integration_test_support", | |
| 342 "//base/allocator", | |
| 343 "//crypto:platform", | |
| 344 "//sync", | |
| 345 "//testing/gmock", | |
| 346 "//testing/gtest", | |
| 254 ] | 347 ] |
| 348 | |
| 349 if (cld_version == 0 || cld_version == 2) { | |
| 350 # Language detection is irrelevant to sync, so it can depend on any | |
| 351 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | |
| 352 deps += [ "//third_party/cld_2:cld2_dynamic" ] | |
| 353 } | |
| 354 | |
| 355 if (is_mac) { | |
| 356 # Dictionary sync is disabled on Mac. | |
| 357 sources -= [ "../browser/sync/test/integration/performance/dictionary_sync _perf_test.cc" ] | |
| 358 | |
| 359 # The sync_performance_tests do not run on mac without this flag. | |
| 360 # Search for comments about "xcode_settings" elsewhere in this file. | |
| 361 ldflags = [ "-Wl,-ObjC" ] | |
| 362 } | |
| 363 if (is_win) { | |
| 364 # TODO(GYP) figure out what these should map to. | |
| 365 #sources += [ | |
| 366 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | |
| 367 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | |
| 368 #] | |
| 369 deps += [ | |
| 370 "//third_party/wtl", | |
| 371 #'chrome_version_resources', TODO(GYP) | |
| 372 ] | |
| 373 } else { | |
| 374 sources -= [ "../app/chrome_version.rc.version" ] | |
| 375 } | |
| 376 | |
| 377 if (toolkit_views) { | |
| 378 deps += [ "//ui/views" ] | |
| 379 } | |
| 380 } | |
| 381 | |
| 382 # Executable to measure time to load libraries. | |
| 383 test("load_library_perf_tests") { | |
| 384 sources = [ | |
| 385 "../browser/load_library_perf_test.cc", | |
| 386 ] | |
| 387 | |
| 388 deps = [ | |
| 389 "//base/test:test_support_perf", | |
| 390 "//testing/gtest", | |
| 391 "//testing/perf", | |
| 392 "//third_party/widevine/cdm:version_h", | |
| 393 ] | |
| 394 | |
| 395 # TODO(GYP) CDM adapter stuff. | |
| 396 #if (enable_pepper_cdms) { | |
| 397 # deps += [ | |
| 398 # "//media/cdm/ppapi:clearkeycdmadapter", | |
| 399 # "//ppapi:ppapi_cpp", | |
| 400 # "//third_party/widevine/cdm:adapter", | |
| 401 # ] | |
| 402 #} | |
| 255 } | 403 } |
| 256 } | 404 } |
| 257 | |
| 258 test("sync_integration_tests") { | |
| 259 sources = | |
| 260 rebase_path(gypi_values.sync_integration_tests_sources, ".", "//chrome") | |
| 261 | |
| 262 # TODO(phajdan.jr): Only temporary, to make transition easier. | |
| 263 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
| 264 | |
| 265 deps = [ | |
| 266 ":sync_integration_test_support", | |
| 267 ":test_support", | |
| 268 "//base/allocator", | |
| 269 "//chrome:packed_extra_resources", | |
| 270 "//chrome:packed_resources", | |
| 271 "//chrome:resources", | |
| 272 "//chrome:strings", | |
| 273 "//chrome/common", | |
| 274 "//chrome/renderer", | |
| 275 "//crypto:platform", | |
| 276 "//sync", | |
| 277 "//testing/gmock", | |
| 278 "//testing/gtest", | |
| 279 "//third_party/icu", | |
| 280 "//third_party/leveldatabase", | |
| 281 "//third_party/npapi", | |
| 282 "//third_party/WebKit/public:blink", | |
| 283 ] | |
| 284 | |
| 285 if (cld_version == 0 || cld_version == 2) { | |
| 286 # Language detection is irrelevant to sync, so it can depend on any | |
| 287 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | |
| 288 deps += [ "//third_party/cld_2:cld2_dynamic" ] | |
| 289 } | |
| 290 if (is_mac) { | |
| 291 # Dictionary sync is disabled on Mac. | |
| 292 sources -= [ | |
| 293 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.cc" , | |
| 294 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc", | |
| 295 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc", | |
| 296 ] | |
| 297 | |
| 298 # The sync_integration_tests do not run on mac without this flag. | |
| 299 # Search for comments about "xcode_settings" elsewhere in this file. | |
| 300 ldflags = [ "-Wl,-ObjC" ] | |
| 301 } | |
| 302 if (is_win) { | |
| 303 # TODO(GYP) figure out what these should map to. | |
| 304 #sources += [ | |
| 305 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | |
| 306 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | |
| 307 #] | |
| 308 deps += [ | |
| 309 "//third_party/wtl", | |
| 310 #'chrome_version_resources', TODO(GYP) | |
| 311 ] | |
| 312 } else { | |
| 313 sources -= [ "../app/chrome_version.rc.version" ] | |
| 314 } | |
| 315 | |
| 316 if (toolkit_views) { | |
| 317 deps += [ "//ui/views" ] | |
| 318 } | |
| 319 if (enable_basic_printing || enable_print_preview) { | |
| 320 deps += [ "//printing" ] | |
| 321 } | |
| 322 if (!enable_app_list) { | |
| 323 sources -= [ | |
| 324 "../browser/sync/test/integration/single_client_app_list_sync_test.cc", | |
| 325 "../browser/sync/test/integration/two_client_app_list_sync_test.cc", | |
| 326 ] | |
| 327 } | |
| 328 if (!enable_supervised_users) { | |
| 329 sources -= [ "../browser/sync/test/integration/single_client_supervised_user _settings_sync_test.cc" ] | |
| 330 } | |
| 331 } | |
| 332 | |
| 333 test("sync_performance_tests") { | |
| 334 sources = | |
| 335 rebase_path(gypi_values.sync_performance_tests_sources, ".", "//chrome") | |
| 336 | |
| 337 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
| 338 | |
| 339 deps = [ | |
| 340 ":sync_integration_test_support", | |
| 341 "//base/allocator", | |
| 342 "//crypto:platform", | |
| 343 "//sync", | |
| 344 "//testing/gmock", | |
| 345 "//testing/gtest", | |
| 346 ] | |
| 347 | |
| 348 if (cld_version == 0 || cld_version == 2) { | |
| 349 # Language detection is irrelevant to sync, so it can depend on any | |
| 350 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | |
| 351 deps += [ "//third_party/cld_2:cld2_dynamic" ] | |
| 352 } | |
| 353 | |
| 354 if (is_mac) { | |
| 355 # Dictionary sync is disabled on Mac. | |
| 356 sources -= [ "../browser/sync/test/integration/performance/dictionary_sync_p erf_test.cc" ] | |
| 357 | |
| 358 # The sync_performance_tests do not run on mac without this flag. | |
| 359 # Search for comments about "xcode_settings" elsewhere in this file. | |
| 360 ldflags = [ "-Wl,-ObjC" ] | |
| 361 } | |
| 362 if (is_win) { | |
| 363 # TODO(GYP) figure out what these should map to. | |
| 364 #sources += [ | |
| 365 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | |
| 366 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | |
| 367 #] | |
| 368 deps += [ | |
| 369 "//third_party/wtl", | |
| 370 #'chrome_version_resources', TODO(GYP) | |
| 371 ] | |
| 372 } else { | |
| 373 sources -= [ "../app/chrome_version.rc.version" ] | |
| 374 } | |
| 375 | |
| 376 if (toolkit_views) { | |
| 377 deps += [ "//ui/views" ] | |
| 378 } | |
| 379 } | |
| 380 | |
| 381 # Executable to measure time to load libraries. | |
| 382 test("load_library_perf_tests") { | |
| 383 sources = [ | |
| 384 "../browser/load_library_perf_test.cc", | |
| 385 ] | |
| 386 | |
| 387 deps = [ | |
| 388 "//base/test:test_support_perf", | |
| 389 "//testing/gtest", | |
| 390 "//testing/perf", | |
| 391 "//third_party/widevine/cdm:version_h", | |
| 392 ] | |
| 393 | |
| 394 # TODO(GYP) CDM adapter stuff. | |
| 395 #if (enable_pepper_cdms) { | |
| 396 # deps += [ | |
| 397 # "//media/cdm/ppapi:clearkeycdmadapter", | |
| 398 # "//ppapi:ppapi_cpp", | |
| 399 # "//third_party/widevine/cdm:adapter", | |
| 400 # ] | |
| 401 #} | |
| 402 } | |
| OLD | NEW |