| 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( | |
| 9 "//build/gypi_to_gn.py", | |
| 10 [ rebase_path("../chrome_tests.gypi") ], | |
| 11 "scope", | |
| 12 [ "../chrome_tests.gypi" ]) | |
| 13 | |
| 14 # 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 |
| 15 # into the build. | 9 # into the build. |
| 16 group("test") { | 10 group("test") { |
| 17 testonly = true | 11 testonly = true |
| 18 deps = [ | 12 deps = [ |
| 19 "//chrome/test/perf", | 13 "//chrome/test/perf", |
| 20 ] | 14 ] |
| 21 } | 15 } |
| 22 | 16 |
| 23 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common | 17 # GYP version: chrome/chrome_tests_unit.gypi:test_support_common |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 ":test_support", | 204 ":test_support", |
| 211 "//base", | 205 "//base", |
| 212 "//chrome:resources", | 206 "//chrome:resources", |
| 213 "//chrome:strings", | 207 "//chrome:strings", |
| 214 "//chrome/browser", | 208 "//chrome/browser", |
| 215 "//chrome/common", | 209 "//chrome/common", |
| 216 "//mojo/edk/system", | 210 "//mojo/edk/system", |
| 217 "//mojo/environment:chromium", | 211 "//mojo/environment:chromium", |
| 218 ] | 212 ] |
| 219 } | 213 } |
| 220 | |
| 221 source_set("sync_integration_test_support") { | |
| 222 testonly = true | |
| 223 | |
| 224 sources = rebase_path(gypi_values.test_support_sync_integration_sources, | |
| 225 ".", "//chrome") | |
| 226 deps = [ | |
| 227 ":test_support", | |
| 228 "//base", | |
| 229 "//chrome", | |
| 230 "//chrome/browser", | |
| 231 "//components/invalidation", | |
| 232 "//components/invalidation:test_support", | |
| 233 "//net", | |
| 234 "//skia", | |
| 235 "//sync", | |
| 236 "//sync:test_support_sync_testserver", | |
| 237 "//sync:test_support_sync_fake_server", | |
| 238 "//ui/app_list:test_support", | |
| 239 ] | |
| 240 | |
| 241 if (is_mac) { | |
| 242 sources -= [ | |
| 243 "../browser/sync/test/integration/dictionary_helper.cc", | |
| 244 "../browser/sync/test/integration/dictionary_helper.h", | |
| 245 "../browser/sync/test/integration/dictionary_load_observer.cc", | |
| 246 "../browser/sync/test/integration/dictionary_load_observer.h", | |
| 247 ] | |
| 248 } | |
| 249 if (!enable_app_list) { | |
| 250 sources -= [ | |
| 251 "../browser/sync/test/integration/sync_app_list_helper.cc", | |
| 252 "../browser/sync/test/integration/sync_app_list_helper.h", | |
| 253 ] | |
| 254 } | |
| 255 } | |
| 256 | |
| 257 test("sync_integration_tests") { | |
| 258 sources = rebase_path(gypi_values.sync_integration_tests_sources, | |
| 259 ".", "//chrome") | |
| 260 | |
| 261 # TODO(phajdan.jr): Only temporary, to make transition easier. | |
| 262 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
| 263 | |
| 264 deps = [ | |
| 265 ":sync_integration_test_support", | |
| 266 ":test_support", | |
| 267 "//base/allocator", | |
| 268 "//chrome:packed_extra_resources", | |
| 269 "//chrome:packed_resources", | |
| 270 "//chrome:resources", | |
| 271 "//chrome:strings", | |
| 272 "//chrome/common", | |
| 273 "//chrome/renderer", | |
| 274 "//crypto:platform", | |
| 275 "//sync", | |
| 276 "//testing/gmock", | |
| 277 "//testing/gtest", | |
| 278 "//third_party/icu", | |
| 279 "//third_party/leveldatabase", | |
| 280 "//third_party/npapi", | |
| 281 "//third_party/WebKit/public:blink", | |
| 282 ] | |
| 283 | |
| 284 if (cld_version == 0 || cld_version == 2) { | |
| 285 # Language detection is irrelevant to sync, so it can depend on any | |
| 286 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | |
| 287 deps += [ "//third_party/cld_2:cld2_dynamic" ] | |
| 288 } | |
| 289 if (is_mac) { | |
| 290 # Dictionary sync is disabled on Mac. | |
| 291 sources -= [ | |
| 292 "../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/two_client_dictionary_sync_test.cc", | |
| 295 ] | |
| 296 | |
| 297 # The sync_integration_tests do not run on mac without this flag. | |
| 298 # Search for comments about "xcode_settings" elsewhere in this file. | |
| 299 ldflags = [ "-Wl,-ObjC" ] | |
| 300 } | |
| 301 if (is_win) { | |
| 302 # TODO(GYP) figure out what these should map to. | |
| 303 #sources += [ | |
| 304 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | |
| 305 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | |
| 306 #] | |
| 307 deps += [ | |
| 308 "//third_party/wtl", | |
| 309 #'chrome_version_resources', TODO(GYP) | |
| 310 ] | |
| 311 } else { | |
| 312 sources -= [ | |
| 313 "../app/chrome_version.rc.version", | |
| 314 ] | |
| 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_managed_users) { | |
| 330 sources -= [ | |
| 331 "../browser/sync/test/integration/single_client_supervised_user_settings_s
ync_test.cc", | |
| 332 ] | |
| 333 } | |
| 334 } | |
| 335 | |
| 336 test("sync_performance_tests") { | |
| 337 sources = rebase_path(gypi_values.sync_performance_tests_sources, | |
| 338 ".", "//chrome") | |
| 339 | |
| 340 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | |
| 341 | |
| 342 deps = [ | |
| 343 ":sync_integration_test_support", | |
| 344 "//base/allocator", | |
| 345 "//crypto:platform", | |
| 346 "//sync", | |
| 347 "//testing/gmock", | |
| 348 "//testing/gtest", | |
| 349 ] | |
| 350 | |
| 351 if (cld_version == 0 || cld_version == 2) { | |
| 352 # Language detection is irrelevant to sync, so it can depend on any | |
| 353 # implementation for CLD2. Dynamic is smaller, so go with dynamic. | |
| 354 deps += [ "//third_party/cld_2:cld2_dynamic" ] | |
| 355 } | |
| 356 | |
| 357 if (is_mac) { | |
| 358 # Dictionary sync is disabled on Mac. | |
| 359 sources -= [ | |
| 360 "../browser/sync/test/integration/performance/dictionary_sync_perf_test.cc
", | |
| 361 ] | |
| 362 | |
| 363 # The sync_performance_tests do not run on mac without this flag. | |
| 364 # Search for comments about "xcode_settings" elsewhere in this file. | |
| 365 ldflags = [ "-Wl,-ObjC" ] | |
| 366 } | |
| 367 if (is_win) { | |
| 368 # TODO(GYP) figure out what these should map to. | |
| 369 #sources += [ | |
| 370 # '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc', | |
| 371 # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', | |
| 372 #] | |
| 373 deps += [ | |
| 374 "//third_party/wtl", | |
| 375 #'chrome_version_resources', TODO(GYP) | |
| 376 ] | |
| 377 } else { | |
| 378 sources -= [ | |
| 379 "../app/chrome_version.rc.version", | |
| 380 ] | |
| 381 } | |
| 382 | |
| 383 if (toolkit_views) { | |
| 384 deps += [ "//ui/views" ] | |
| 385 } | |
| 386 } | |
| OLD | NEW |