| 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( | 8 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 9 "//build/gypi_to_gn.py", | 9 [ rebase_path("../chrome_tests.gypi") ], |
| 10 [ rebase_path("../chrome_tests.gypi") ], | 10 "scope", |
| 11 "scope", | 11 [ "../chrome_tests.gypi" ]) |
| 12 [ "../chrome_tests.gypi" ]) | |
| 13 | 12 |
| 14 # This target exists to reference other test executables to bring these files | 13 # This target exists to reference other test executables to bring these files |
| 15 # into the build. | 14 # into the build. |
| 16 group("test") { | 15 group("test") { |
| 17 testonly = true | 16 testonly = true |
| 18 deps = [ | 17 deps = [ |
| 19 "//chrome/test/perf", | 18 "//chrome/test/perf", |
| 20 ] | 19 ] |
| 21 } | 20 } |
| 22 | 21 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 # New deps should go in the non-iOS section below. | 85 # New deps should go in the non-iOS section below. |
| 87 public_deps = [ | 86 public_deps = [ |
| 88 "//content/test:test_support", | 87 "//content/test:test_support", |
| 89 ] | 88 ] |
| 90 deps = [ | 89 deps = [ |
| 91 "//base:prefs_test_support", | 90 "//base:prefs_test_support", |
| 92 "//base/test:test_support", | 91 "//base/test:test_support", |
| 93 "//chrome:resources", | 92 "//chrome:resources", |
| 94 "//chrome:strings", | 93 "//chrome:strings", |
| 95 "//chrome/app:test_support", | 94 "//chrome/app:test_support", |
| 95 |
| 96 #"//chrome/app/theme:theme_resources", | 96 #"//chrome/app/theme:theme_resources", |
| 97 "//chrome/browser:test_support", | 97 "//chrome/browser:test_support", |
| 98 "//chrome/common:test_support", | 98 "//chrome/common:test_support", |
| 99 "//chrome/renderer:test_support", | 99 "//chrome/renderer:test_support", |
| 100 "//components/bookmarks/test", | 100 "//components/bookmarks/test", |
| 101 "//components/component_updater:test_support", | 101 "//components/component_updater:test_support", |
| 102 "//components/gcm_driver:test_support", | 102 "//components/gcm_driver:test_support", |
| 103 "//components/history/core/test:test", | 103 "//components/history/core/test:test", |
| 104 "//components/metrics:test_support", | 104 "//components/metrics:test_support", |
| 105 "//components/omnibox:test_support", | 105 "//components/omnibox:test_support", |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 "//chrome/common", | 215 "//chrome/common", |
| 216 "//mojo/edk/system", | 216 "//mojo/edk/system", |
| 217 "//mojo/environment:chromium", | 217 "//mojo/environment:chromium", |
| 218 ] | 218 ] |
| 219 } | 219 } |
| 220 | 220 |
| 221 source_set("sync_integration_test_support") { | 221 source_set("sync_integration_test_support") { |
| 222 testonly = true | 222 testonly = true |
| 223 | 223 |
| 224 sources = rebase_path(gypi_values.test_support_sync_integration_sources, | 224 sources = rebase_path(gypi_values.test_support_sync_integration_sources, |
| 225 ".", "//chrome") | 225 ".", |
| 226 "//chrome") |
| 226 deps = [ | 227 deps = [ |
| 227 ":test_support", | 228 ":test_support", |
| 228 "//base", | 229 "//base", |
| 229 "//chrome", | 230 "//chrome", |
| 230 "//chrome/browser", | 231 "//chrome/browser", |
| 231 "//components/invalidation", | 232 "//components/invalidation", |
| 232 "//components/invalidation:test_support", | 233 "//components/invalidation:test_support", |
| 233 "//net", | 234 "//net", |
| 234 "//skia", | 235 "//skia", |
| 235 "//sync", | 236 "//sync", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 248 } | 249 } |
| 249 if (!enable_app_list) { | 250 if (!enable_app_list) { |
| 250 sources -= [ | 251 sources -= [ |
| 251 "../browser/sync/test/integration/sync_app_list_helper.cc", | 252 "../browser/sync/test/integration/sync_app_list_helper.cc", |
| 252 "../browser/sync/test/integration/sync_app_list_helper.h", | 253 "../browser/sync/test/integration/sync_app_list_helper.h", |
| 253 ] | 254 ] |
| 254 } | 255 } |
| 255 } | 256 } |
| 256 | 257 |
| 257 test("sync_integration_tests") { | 258 test("sync_integration_tests") { |
| 258 sources = rebase_path(gypi_values.sync_integration_tests_sources, | 259 sources = |
| 259 ".", "//chrome") | 260 rebase_path(gypi_values.sync_integration_tests_sources, ".", "//chrome") |
| 260 | 261 |
| 261 # TODO(phajdan.jr): Only temporary, to make transition easier. | 262 # TODO(phajdan.jr): Only temporary, to make transition easier. |
| 262 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 263 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 263 | 264 |
| 264 deps = [ | 265 deps = [ |
| 265 ":sync_integration_test_support", | 266 ":sync_integration_test_support", |
| 266 ":test_support", | 267 ":test_support", |
| 267 "//base/allocator", | 268 "//base/allocator", |
| 268 "//chrome:packed_extra_resources", | 269 "//chrome:packed_extra_resources", |
| 269 "//chrome:packed_resources", | 270 "//chrome:packed_resources", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 286 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | 287 # implementation for CLD2. Dynamic is smaller, so go with dynamic. |
| 287 deps += [ "//third_party/cld_2:cld2_dynamic" ] | 288 deps += [ "//third_party/cld_2:cld2_dynamic" ] |
| 288 } | 289 } |
| 289 if (is_mac) { | 290 if (is_mac) { |
| 290 # Dictionary sync is disabled on Mac. | 291 # Dictionary sync is disabled on Mac. |
| 291 sources -= [ | 292 sources -= [ |
| 292 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.cc"
, | 293 "../browser/sync/test/integration/multiple_client_dictionary_sync_test.cc"
, |
| 293 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc", | 294 "../browser/sync/test/integration/single_client_dictionary_sync_test.cc", |
| 294 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc", | 295 "../browser/sync/test/integration/two_client_dictionary_sync_test.cc", |
| 295 ] | 296 ] |
| 296 | 297 |
| 297 # The sync_integration_tests do not run on mac without this flag. | 298 # The sync_integration_tests do not run on mac without this flag. |
| 298 # Search for comments about "xcode_settings" elsewhere in this file. | 299 # Search for comments about "xcode_settings" elsewhere in this file. |
| 299 ldflags = [ "-Wl,-ObjC" ] | 300 ldflags = [ "-Wl,-ObjC" ] |
| 300 } | 301 } |
| 301 if (is_win) { | 302 if (is_win) { |
| 302 # TODO(GYP) figure out what these should map to. | 303 # TODO(GYP) figure out what these should map to. |
| 303 #sources += [ | 304 #sources += [ |
| 304 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | 305 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', |
| 305 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | 306 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', |
| 306 #] | 307 #] |
| 307 deps += [ | 308 deps += [ |
| 308 "//third_party/wtl", | 309 "//third_party/wtl", |
| 309 #'chrome_version_resources', TODO(GYP) | 310 #'chrome_version_resources', TODO(GYP) |
| 310 ] | 311 ] |
| 311 } else { | 312 } else { |
| 312 sources -= [ | 313 sources -= [ "../app/chrome_version.rc.version" ] |
| 313 "../app/chrome_version.rc.version", | |
| 314 ] | |
| 315 } | 314 } |
| 316 | 315 |
| 317 if (toolkit_views) { | 316 if (toolkit_views) { |
| 318 deps += [ "//ui/views" ] | 317 deps += [ "//ui/views" ] |
| 319 } | 318 } |
| 320 if (enable_basic_printing || enable_print_preview) { | 319 if (enable_basic_printing || enable_print_preview) { |
| 321 deps += [ "//printing" ] | 320 deps += [ "//printing" ] |
| 322 } | 321 } |
| 323 if (!enable_app_list) { | 322 if (!enable_app_list) { |
| 324 sources -= [ | 323 sources -= [ |
| 325 "../browser/sync/test/integration/single_client_app_list_sync_test.cc", | 324 "../browser/sync/test/integration/single_client_app_list_sync_test.cc", |
| 326 "../browser/sync/test/integration/two_client_app_list_sync_test.cc", | 325 "../browser/sync/test/integration/two_client_app_list_sync_test.cc", |
| 327 ] | 326 ] |
| 328 } | 327 } |
| 329 if (!enable_supervised_users) { | 328 if (!enable_supervised_users) { |
| 330 sources -= [ | 329 sources -= [ "../browser/sync/test/integration/single_client_supervised_user
_settings_sync_test.cc" ] |
| 331 "../browser/sync/test/integration/single_client_supervised_user_settings_s
ync_test.cc", | |
| 332 ] | |
| 333 } | 330 } |
| 334 } | 331 } |
| 335 | 332 |
| 336 test("sync_performance_tests") { | 333 test("sync_performance_tests") { |
| 337 sources = rebase_path(gypi_values.sync_performance_tests_sources, | 334 sources = |
| 338 ".", "//chrome") | 335 rebase_path(gypi_values.sync_performance_tests_sources, ".", "//chrome") |
| 339 | 336 |
| 340 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 337 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 341 | 338 |
| 342 deps = [ | 339 deps = [ |
| 343 ":sync_integration_test_support", | 340 ":sync_integration_test_support", |
| 344 "//base/allocator", | 341 "//base/allocator", |
| 345 "//crypto:platform", | 342 "//crypto:platform", |
| 346 "//sync", | 343 "//sync", |
| 347 "//testing/gmock", | 344 "//testing/gmock", |
| 348 "//testing/gtest", | 345 "//testing/gtest", |
| 349 ] | 346 ] |
| 350 | 347 |
| 351 if (cld_version == 0 || cld_version == 2) { | 348 if (cld_version == 0 || cld_version == 2) { |
| 352 # Language detection is irrelevant to sync, so it can depend on any | 349 # Language detection is irrelevant to sync, so it can depend on any |
| 353 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | 350 # implementation for CLD2. Dynamic is smaller, so go with dynamic. |
| 354 deps += [ "//third_party/cld_2:cld2_dynamic" ] | 351 deps += [ "//third_party/cld_2:cld2_dynamic" ] |
| 355 } | 352 } |
| 356 | 353 |
| 357 if (is_mac) { | 354 if (is_mac) { |
| 358 # Dictionary sync is disabled on Mac. | 355 # Dictionary sync is disabled on Mac. |
| 359 sources -= [ | 356 sources -= [ "../browser/sync/test/integration/performance/dictionary_sync_p
erf_test.cc" ] |
| 360 "../browser/sync/test/integration/performance/dictionary_sync_perf_test.cc
", | |
| 361 ] | |
| 362 | 357 |
| 363 # The sync_performance_tests do not run on mac without this flag. | 358 # The sync_performance_tests do not run on mac without this flag. |
| 364 # Search for comments about "xcode_settings" elsewhere in this file. | 359 # Search for comments about "xcode_settings" elsewhere in this file. |
| 365 ldflags = [ "-Wl,-ObjC" ] | 360 ldflags = [ "-Wl,-ObjC" ] |
| 366 } | 361 } |
| 367 if (is_win) { | 362 if (is_win) { |
| 368 # TODO(GYP) figure out what these should map to. | 363 # TODO(GYP) figure out what these should map to. |
| 369 #sources += [ | 364 #sources += [ |
| 370 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | 365 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', |
| 371 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | 366 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', |
| 372 #] | 367 #] |
| 373 deps += [ | 368 deps += [ |
| 374 "//third_party/wtl", | 369 "//third_party/wtl", |
| 375 #'chrome_version_resources', TODO(GYP) | 370 #'chrome_version_resources', TODO(GYP) |
| 376 ] | 371 ] |
| 377 } else { | 372 } else { |
| 378 sources -= [ | 373 sources -= [ "../app/chrome_version.rc.version" ] |
| 379 "../app/chrome_version.rc.version", | |
| 380 ] | |
| 381 } | 374 } |
| 382 | 375 |
| 383 if (toolkit_views) { | 376 if (toolkit_views) { |
| 384 deps += [ "//ui/views" ] | 377 deps += [ "//ui/views" ] |
| 385 } | 378 } |
| 386 } | 379 } |
| 387 | 380 |
| 388 | |
| 389 # Executable to measure time to load libraries. | 381 # Executable to measure time to load libraries. |
| 390 test("load_library_perf_tests") { | 382 test("load_library_perf_tests") { |
| 391 sources = [ | 383 sources = [ |
| 392 "../browser/load_library_perf_test.cc", | 384 "../browser/load_library_perf_test.cc", |
| 393 ] | 385 ] |
| 394 | 386 |
| 395 deps = [ | 387 deps = [ |
| 396 "//base/test:test_support_perf", | 388 "//base/test:test_support_perf", |
| 397 "//testing/gtest", | 389 "//testing/gtest", |
| 398 "//testing/perf", | 390 "//testing/perf", |
| 399 "//third_party/widevine/cdm:version_h", | 391 "//third_party/widevine/cdm:version_h", |
| 400 ] | 392 ] |
| 401 | 393 |
| 402 # TODO(GYP) CDM adapter stuff. | 394 # TODO(GYP) CDM adapter stuff. |
| 403 #if (enable_pepper_cdms) { | 395 #if (enable_pepper_cdms) { |
| 404 # deps += [ | 396 # deps += [ |
| 405 # "//media/cdm/ppapi:clearkeycdmadapter", | 397 # "//media/cdm/ppapi:clearkeycdmadapter", |
| 406 # "//ppapi:ppapi_cpp", | 398 # "//ppapi:ppapi_cpp", |
| 407 # "//third_party/widevine/cdm:adapter", | 399 # "//third_party/widevine/cdm:adapter", |
| 408 # ] | 400 # ] |
| 409 #} | 401 #} |
| 410 } | 402 } |
| OLD | NEW |