OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//ios/build/config.gni") | 5 import("//ios/build/config.gni") |
6 import("//ios/web/js_compile.gni") | 6 import("//ios/web/js_compile.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
9 | 9 |
10 group("all_tests") { | 10 group("all_tests") { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 | 350 |
351 configs += [ "//build/config/compiler:enable_arc" ] | 351 configs += [ "//build/config/compiler:enable_arc" ] |
352 } | 352 } |
353 | 353 |
354 source_set("reload_type") { | 354 source_set("reload_type") { |
355 sources = [ | 355 sources = [ |
356 "public/reload_type.h", | 356 "public/reload_type.h", |
357 ] | 357 ] |
358 } | 358 } |
359 | 359 |
| 360 # TODO(crbug.com/727860): Remove this when nothing depends on it. |
| 361 source_set("test_support") { |
| 362 testonly = true |
| 363 |
| 364 public_deps = [ |
| 365 "//ios/web/public/test", |
| 366 "//ios/web/public/test/fakes", |
| 367 "//ios/web/public/test/http_server", |
| 368 ] |
| 369 |
| 370 sources = [ |
| 371 "public/test/http_server.h", |
| 372 ] |
| 373 } |
| 374 |
360 source_set("earl_grey_test_support") { | 375 source_set("earl_grey_test_support") { |
361 testonly = true | 376 testonly = true |
362 | 377 |
363 deps = [ | 378 deps = [ |
364 ":test_support", | |
365 ":web", | 379 ":web", |
366 "//base", | 380 "//base", |
367 "//base/test:test_support", | 381 "//base/test:test_support", |
368 "//ios/testing:ios_test_support", | 382 "//ios/testing:ios_test_support", |
369 "//ios/testing/earl_grey:earl_grey_support", | 383 "//ios/testing/earl_grey:earl_grey_support", |
370 "//ios/third_party/earl_grey", | 384 "//ios/third_party/earl_grey", |
| 385 "//ios/web/public/test", |
371 "//net", | 386 "//net", |
372 ] | 387 ] |
373 | 388 |
374 sources = [ | 389 sources = [ |
375 "public/test/earl_grey/js_test_util.h", | 390 "public/test/earl_grey/js_test_util.h", |
376 "public/test/earl_grey/js_test_util.mm", | 391 "public/test/earl_grey/js_test_util.mm", |
377 "public/test/earl_grey/web_view_actions.h", | 392 "public/test/earl_grey/web_view_actions.h", |
378 "public/test/earl_grey/web_view_actions.mm", | 393 "public/test/earl_grey/web_view_actions.mm", |
379 "public/test/earl_grey/web_view_matchers.h", | 394 "public/test/earl_grey/web_view_matchers.h", |
380 "public/test/earl_grey/web_view_matchers.mm", | 395 "public/test/earl_grey/web_view_matchers.mm", |
381 ] | 396 ] |
382 } | 397 } |
383 | 398 |
384 source_set("test_support") { | |
385 testonly = true | |
386 | |
387 deps = [ | |
388 ":web", | |
389 "//base", | |
390 "//base/test:test_support", | |
391 "//ios/testing:ios_test_support", | |
392 "//ios/testing:ocmock_support", | |
393 "//ios/third_party/gcdwebserver", | |
394 "//ios/web/test:mojo_bindings", | |
395 "//net:test_support", | |
396 "//testing/gmock", | |
397 "//testing/gtest", | |
398 "//third_party/ocmock", | |
399 "//ui/base", | |
400 ] | |
401 | |
402 sources = [ | |
403 "public/test/fakes/crw_test_js_injection_receiver.h", | |
404 "public/test/fakes/crw_test_js_injection_receiver.mm", | |
405 "public/test/fakes/crw_test_web_state_observer.h", | |
406 "public/test/fakes/crw_test_web_state_observer.mm", | |
407 "public/test/fakes/test_browser_state.cc", | |
408 "public/test/fakes/test_browser_state.h", | |
409 "public/test/fakes/test_java_script_dialog_presenter.h", | |
410 "public/test/fakes/test_java_script_dialog_presenter.mm", | |
411 "public/test/fakes/test_native_content.h", | |
412 "public/test/fakes/test_native_content.mm", | |
413 "public/test/fakes/test_native_content_provider.h", | |
414 "public/test/fakes/test_native_content_provider.mm", | |
415 "public/test/fakes/test_navigation_manager.h", | |
416 "public/test/fakes/test_navigation_manager.mm", | |
417 "public/test/fakes/test_web_client.h", | |
418 "public/test/fakes/test_web_client.mm", | |
419 "public/test/fakes/test_web_state.h", | |
420 "public/test/fakes/test_web_state.mm", | |
421 "public/test/fakes/test_web_state_delegate.h", | |
422 "public/test/fakes/test_web_state_delegate.mm", | |
423 "public/test/fakes/test_web_state_observer.h", | |
424 "public/test/fakes/test_web_state_observer.mm", | |
425 "public/test/fakes/test_web_state_observer_util.h", | |
426 "public/test/fakes/test_web_state_observer_util.mm", | |
427 "public/test/fakes/test_web_view_content_view.h", | |
428 "public/test/fakes/test_web_view_content_view.mm", | |
429 "public/test/http_server.h", | |
430 "public/test/http_server.mm", | |
431 "public/test/http_server_util.h", | |
432 "public/test/http_server_util.mm", | |
433 "public/test/js_test_util.h", | |
434 "public/test/js_test_util.mm", | |
435 "public/test/native_controller_test_util.h", | |
436 "public/test/native_controller_test_util.mm", | |
437 "public/test/navigation_test_util.h", | |
438 "public/test/navigation_test_util.mm", | |
439 "public/test/response_providers/data_response_provider.h", | |
440 "public/test/response_providers/data_response_provider.mm", | |
441 "public/test/response_providers/delayed_response_provider.h", | |
442 "public/test/response_providers/delayed_response_provider.mm", | |
443 "public/test/response_providers/error_page_response_provider.h", | |
444 "public/test/response_providers/error_page_response_provider.mm", | |
445 "public/test/response_providers/file_based_response_provider.h", | |
446 "public/test/response_providers/file_based_response_provider.mm", | |
447 "public/test/response_providers/file_based_response_provider_impl.h", | |
448 "public/test/response_providers/file_based_response_provider_impl.mm", | |
449 "public/test/response_providers/html_response_provider.h", | |
450 "public/test/response_providers/html_response_provider.mm", | |
451 "public/test/response_providers/html_response_provider_impl.h", | |
452 "public/test/response_providers/html_response_provider_impl.mm", | |
453 "public/test/response_providers/http_auth_response_provider.h", | |
454 "public/test/response_providers/http_auth_response_provider.mm", | |
455 "public/test/response_providers/response_provider.h", | |
456 "public/test/response_providers/response_provider.mm", | |
457 "public/test/response_providers/string_response_provider.h", | |
458 "public/test/response_providers/string_response_provider.mm", | |
459 "public/test/scoped_testing_web_client.h", | |
460 "public/test/scoped_testing_web_client.mm", | |
461 "public/test/test_redirect_observer.h", | |
462 "public/test/test_redirect_observer.mm", | |
463 "public/test/test_web_thread.h", | |
464 "public/test/test_web_thread_bundle.h", | |
465 "public/test/url_test_util.h", | |
466 "public/test/web_js_test.h", | |
467 "public/test/web_test.h", | |
468 "public/test/web_test.mm", | |
469 "public/test/web_test_suite.h", | |
470 "public/test/web_test_with_web_state.h", | |
471 "public/test/web_test_with_web_state.mm", | |
472 "public/test/web_view_interaction_test_util.h", | |
473 "public/test/web_view_interaction_test_util.mm", | |
474 "test/crw_fake_web_controller_observer.h", | |
475 "test/crw_fake_web_controller_observer.mm", | |
476 "test/test_url_constants.cc", | |
477 "test/test_url_constants.h", | |
478 "test/test_web_thread.cc", | |
479 "test/test_web_thread_bundle.cc", | |
480 "test/url_test_util.mm", | |
481 "test/web_int_test.h", | |
482 "test/web_int_test.mm", | |
483 "test/web_test_suite.mm", | |
484 "test/web_test_with_web_controller.h", | |
485 "test/web_test_with_web_controller.mm", | |
486 "test/wk_web_view_crash_utils.h", | |
487 "test/wk_web_view_crash_utils.mm", | |
488 ] | |
489 } | |
490 | |
491 source_set("run_all_unittests") { | 399 source_set("run_all_unittests") { |
492 testonly = true | 400 testonly = true |
493 sources = [ | 401 sources = [ |
494 "test/run_all_unittests.cc", | 402 "test/run_all_unittests.cc", |
495 ] | 403 ] |
496 deps = [ | 404 deps = [ |
497 ":test_support", | |
498 "//base", | 405 "//base", |
499 "//base/test:test_support", | 406 "//base/test:test_support", |
| 407 "//ios/web/public/test", |
| 408 "//ios/web/public/test/http_server", |
500 "//mojo/edk/system", | 409 "//mojo/edk/system", |
501 ] | 410 ] |
502 } | 411 } |
503 | 412 |
504 bundle_data("ios_web_unittests_bundle_data") { | 413 bundle_data("ios_web_unittests_bundle_data") { |
505 testonly = true | 414 testonly = true |
506 sources = [ | 415 sources = [ |
507 "test/data/chrome.html", | 416 "test/data/chrome.html", |
508 "test/data/testbadpass.pkpass", | 417 "test/data/testbadpass.pkpass", |
509 "test/data/testfavicon.png", | 418 "test/data/testfavicon.png", |
510 "test/data/testpass.pkpass", | 419 "test/data/testpass.pkpass", |
511 ] | 420 ] |
512 outputs = [ | 421 outputs = [ |
513 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + | 422 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + |
514 "{{source_file_part}}", | 423 "{{source_file_part}}", |
515 ] | 424 ] |
516 } | 425 } |
517 | 426 |
518 test("ios_web_unittests_arc") { | 427 test("ios_web_unittests_arc") { |
519 deps = [ | 428 deps = [ |
520 ":core", | 429 ":core", |
521 ":ios_web_unittests_bundle_data", | 430 ":ios_web_unittests_bundle_data", |
522 ":run_all_unittests", | 431 ":run_all_unittests", |
523 ":test_support", | |
524 ":user_agent", | 432 ":user_agent", |
525 ":web", | 433 ":web", |
526 "//base", | 434 "//base", |
527 "//base/test:test_support", | 435 "//base/test:test_support", |
528 "//components/payments/core", | 436 "//components/payments/core", |
529 "//components/url_formatter", | 437 "//components/url_formatter", |
530 "//ios/net", | 438 "//ios/net", |
531 "//ios/testing:ios_test_support", | 439 "//ios/testing:ios_test_support", |
532 "//ios/testing:ocmock_support", | 440 "//ios/testing:ocmock_support", |
| 441 "//ios/web/public/test", |
| 442 "//ios/web/public/test/fakes", |
533 "//ios/web/test:mojo_bindings", | 443 "//ios/web/test:mojo_bindings", |
534 "//net:test_support", | 444 "//net:test_support", |
535 "//services/service_manager/public/cpp", | 445 "//services/service_manager/public/cpp", |
536 "//testing/gmock", | 446 "//testing/gmock", |
537 "//testing/gtest", | 447 "//testing/gtest", |
538 "//third_party/ocmock", | 448 "//third_party/ocmock", |
539 "//ui/base:test_support", | 449 "//ui/base:test_support", |
540 ] | 450 ] |
541 | 451 |
542 sources = [ | 452 sources = [ |
543 "navigation/navigation_manager_util_unittest.mm", | 453 "navigation/navigation_manager_util_unittest.mm", |
544 "public/crw_session_certificate_policy_cache_storage_unittest.mm", | 454 "public/crw_session_certificate_policy_cache_storage_unittest.mm", |
545 "web_state/session_certificate_policy_cache_impl_unittest.mm", | 455 "web_state/session_certificate_policy_cache_impl_unittest.mm", |
546 "web_state/session_certificate_policy_cache_storage_builder_unittest.mm", | 456 "web_state/session_certificate_policy_cache_storage_builder_unittest.mm", |
547 ] | 457 ] |
548 | 458 |
549 configs += [ "//build/config/compiler:enable_arc" ] | 459 configs += [ "//build/config/compiler:enable_arc" ] |
550 } | 460 } |
551 | 461 |
552 test("ios_web_unittests") { | 462 test("ios_web_unittests") { |
553 deps = [ | 463 deps = [ |
554 ":core", | 464 ":core", |
555 ":ios_web_unittests_bundle_data", | 465 ":ios_web_unittests_bundle_data", |
556 ":run_all_unittests", | 466 ":run_all_unittests", |
557 ":test_support", | |
558 ":user_agent", | 467 ":user_agent", |
559 ":web", | 468 ":web", |
560 "//base", | 469 "//base", |
561 "//base/test:test_support", | 470 "//base/test:test_support", |
562 "//components/payments/core", | 471 "//components/payments/core", |
563 "//components/url_formatter", | 472 "//components/url_formatter", |
564 "//ios/net", | 473 "//ios/net", |
565 "//ios/testing:ios_test_support", | 474 "//ios/testing:ios_test_support", |
566 "//ios/testing:ocmock_support", | 475 "//ios/testing:ocmock_support", |
| 476 "//ios/web/public/test", |
| 477 "//ios/web/public/test/fakes", |
567 "//ios/web/test:mojo_bindings", | 478 "//ios/web/test:mojo_bindings", |
| 479 "//ios/web/test:test_constants", |
| 480 "//ios/web/test:test_support", |
568 "//net:test_support", | 481 "//net:test_support", |
569 "//services/service_manager/public/cpp", | 482 "//services/service_manager/public/cpp", |
570 "//testing/gmock", | 483 "//testing/gmock", |
571 "//testing/gtest", | 484 "//testing/gtest", |
572 "//third_party/ocmock", | 485 "//third_party/ocmock", |
573 "//ui/base:test_support", | 486 "//ui/base:test_support", |
574 ] | 487 ] |
575 | 488 |
576 public_deps = [ | 489 public_deps = [ |
577 ":ios_web_unittests_arc", | 490 ":ios_web_unittests_arc", |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 "webui/url_fetcher_block_adapter_unittest.mm", | 552 "webui/url_fetcher_block_adapter_unittest.mm", |
640 ] | 553 ] |
641 | 554 |
642 assert_no_deps = ios_assert_no_deps | 555 assert_no_deps = ios_assert_no_deps |
643 | 556 |
644 allow_circular_includes_from = [ ":ios_web_unittests_arc" ] | 557 allow_circular_includes_from = [ ":ios_web_unittests_arc" ] |
645 } | 558 } |
646 | 559 |
647 test("ios_web_inttests") { | 560 test("ios_web_inttests") { |
648 deps = [ | 561 deps = [ |
649 ":test_support", | |
650 ":web", | 562 ":web", |
651 "//base/test:test_support", | 563 "//base/test:test_support", |
652 "//ios/testing:http_server_bundle_data", | 564 "//ios/testing:http_server_bundle_data", |
653 "//ios/testing:ios_test_support", | 565 "//ios/testing:ios_test_support", |
| 566 "//ios/web/public/test", |
| 567 "//ios/web/public/test/fakes", |
| 568 "//ios/web/public/test/http_server", |
654 "//ios/web/test:mojo_bindings", | 569 "//ios/web/test:mojo_bindings", |
655 "//ios/web/test:packed_resources", | 570 "//ios/web/test:packed_resources", |
656 "//ios/web/test:resources", | 571 "//ios/web/test:resources", |
| 572 "//ios/web/test:test_constants", |
| 573 "//ios/web/test:test_support", |
657 "//mojo/edk/system", | 574 "//mojo/edk/system", |
658 "//net:test_support", | 575 "//net:test_support", |
659 "//services/service_manager/public/cpp", | 576 "//services/service_manager/public/cpp", |
660 "//testing/gtest", | 577 "//testing/gtest", |
661 "//ui/base:test_support", | 578 "//ui/base:test_support", |
662 ] | 579 ] |
663 sources = [ | 580 sources = [ |
664 "browser_state_web_view_partition_inttest.mm", | 581 "browser_state_web_view_partition_inttest.mm", |
665 "navigation/history_state_operations_inttest.mm", | 582 "navigation/history_state_operations_inttest.mm", |
666 "navigation/window_location_inttest.mm", | 583 "navigation/window_location_inttest.mm", |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 "ios_web_resources.pak", | 645 "ios_web_resources.pak", |
729 ] | 646 ] |
730 grit_flags = [ | 647 grit_flags = [ |
731 "-E", | 648 "-E", |
732 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), | 649 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), |
733 ] | 650 ] |
734 deps = [ | 651 deps = [ |
735 "//mojo/public/js:bindings", | 652 "//mojo/public/js:bindings", |
736 ] | 653 ] |
737 } | 654 } |
OLD | NEW |