| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 source_set("earl_grey_test_support") { | 360 source_set("earl_grey_test_support") { |
| 361 testonly = true | 361 testonly = true |
| 362 | 362 |
| 363 deps = [ | 363 deps = [ |
| 364 ":test_support", | |
| 365 ":web", | 364 ":web", |
| 366 "//base", | 365 "//base", |
| 367 "//base/test:test_support", | 366 "//base/test:test_support", |
| 368 "//ios/testing:ios_test_support", | 367 "//ios/testing:ios_test_support", |
| 369 "//ios/testing/earl_grey:earl_grey_support", | 368 "//ios/testing/earl_grey:earl_grey_support", |
| 370 "//ios/third_party/earl_grey", | 369 "//ios/third_party/earl_grey", |
| 370 "//ios/web/public/test", |
| 371 "//net", | 371 "//net", |
| 372 ] | 372 ] |
| 373 | 373 |
| 374 sources = [ | 374 sources = [ |
| 375 "public/test/earl_grey/js_test_util.h", | 375 "public/test/earl_grey/js_test_util.h", |
| 376 "public/test/earl_grey/js_test_util.mm", | 376 "public/test/earl_grey/js_test_util.mm", |
| 377 "public/test/earl_grey/web_view_actions.h", | 377 "public/test/earl_grey/web_view_actions.h", |
| 378 "public/test/earl_grey/web_view_actions.mm", | 378 "public/test/earl_grey/web_view_actions.mm", |
| 379 "public/test/earl_grey/web_view_matchers.h", | 379 "public/test/earl_grey/web_view_matchers.h", |
| 380 "public/test/earl_grey/web_view_matchers.mm", | 380 "public/test/earl_grey/web_view_matchers.mm", |
| 381 ] | 381 ] |
| 382 } | 382 } |
| 383 | 383 |
| 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") { | 384 source_set("run_all_unittests") { |
| 492 testonly = true | 385 testonly = true |
| 493 sources = [ | 386 sources = [ |
| 494 "test/run_all_unittests.cc", | 387 "test/run_all_unittests.cc", |
| 495 ] | 388 ] |
| 496 deps = [ | 389 deps = [ |
| 497 ":test_support", | |
| 498 "//base", | 390 "//base", |
| 499 "//base/test:test_support", | 391 "//base/test:test_support", |
| 392 "//ios/web/public/test", |
| 393 "//ios/web/public/test/http_server", |
| 500 "//mojo/edk/system", | 394 "//mojo/edk/system", |
| 501 ] | 395 ] |
| 502 } | 396 } |
| 503 | 397 |
| 504 bundle_data("ios_web_unittests_bundle_data") { | 398 bundle_data("ios_web_unittests_bundle_data") { |
| 505 testonly = true | 399 testonly = true |
| 506 sources = [ | 400 sources = [ |
| 507 "test/data/chrome.html", | 401 "test/data/chrome.html", |
| 508 "test/data/testbadpass.pkpass", | 402 "test/data/testbadpass.pkpass", |
| 509 "test/data/testfavicon.png", | 403 "test/data/testfavicon.png", |
| 510 "test/data/testpass.pkpass", | 404 "test/data/testpass.pkpass", |
| 511 ] | 405 ] |
| 512 outputs = [ | 406 outputs = [ |
| 513 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + | 407 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + |
| 514 "{{source_file_part}}", | 408 "{{source_file_part}}", |
| 515 ] | 409 ] |
| 516 } | 410 } |
| 517 | 411 |
| 518 test("ios_web_unittests_arc") { | 412 test("ios_web_unittests_arc") { |
| 519 deps = [ | 413 deps = [ |
| 520 ":core", | 414 ":core", |
| 521 ":ios_web_unittests_bundle_data", | 415 ":ios_web_unittests_bundle_data", |
| 522 ":run_all_unittests", | 416 ":run_all_unittests", |
| 523 ":test_support", | |
| 524 ":user_agent", | 417 ":user_agent", |
| 525 ":web", | 418 ":web", |
| 526 "//base", | 419 "//base", |
| 527 "//base/test:test_support", | 420 "//base/test:test_support", |
| 528 "//components/payments/core", | 421 "//components/payments/core", |
| 529 "//components/url_formatter", | 422 "//components/url_formatter", |
| 530 "//ios/net", | 423 "//ios/net", |
| 531 "//ios/testing:ios_test_support", | 424 "//ios/testing:ios_test_support", |
| 532 "//ios/testing:ocmock_support", | 425 "//ios/testing:ocmock_support", |
| 426 "//ios/web/public/test", |
| 427 "//ios/web/public/test/fakes", |
| 533 "//ios/web/test:mojo_bindings", | 428 "//ios/web/test:mojo_bindings", |
| 534 "//net:test_support", | 429 "//net:test_support", |
| 535 "//services/service_manager/public/cpp", | 430 "//services/service_manager/public/cpp", |
| 536 "//testing/gmock", | 431 "//testing/gmock", |
| 537 "//testing/gtest", | 432 "//testing/gtest", |
| 538 "//third_party/ocmock", | 433 "//third_party/ocmock", |
| 539 "//ui/base:test_support", | 434 "//ui/base:test_support", |
| 540 ] | 435 ] |
| 541 | 436 |
| 542 sources = [ | 437 sources = [ |
| 543 "navigation/navigation_manager_util_unittest.mm", | 438 "navigation/navigation_manager_util_unittest.mm", |
| 544 "public/crw_session_certificate_policy_cache_storage_unittest.mm", | 439 "public/crw_session_certificate_policy_cache_storage_unittest.mm", |
| 545 "web_state/session_certificate_policy_cache_impl_unittest.mm", | 440 "web_state/session_certificate_policy_cache_impl_unittest.mm", |
| 546 "web_state/session_certificate_policy_cache_storage_builder_unittest.mm", | 441 "web_state/session_certificate_policy_cache_storage_builder_unittest.mm", |
| 547 ] | 442 ] |
| 548 | 443 |
| 549 configs += [ "//build/config/compiler:enable_arc" ] | 444 configs += [ "//build/config/compiler:enable_arc" ] |
| 550 } | 445 } |
| 551 | 446 |
| 552 test("ios_web_unittests") { | 447 test("ios_web_unittests") { |
| 553 deps = [ | 448 deps = [ |
| 554 ":core", | 449 ":core", |
| 555 ":ios_web_unittests_bundle_data", | 450 ":ios_web_unittests_bundle_data", |
| 556 ":run_all_unittests", | 451 ":run_all_unittests", |
| 557 ":test_support", | |
| 558 ":user_agent", | 452 ":user_agent", |
| 559 ":web", | 453 ":web", |
| 560 "//base", | 454 "//base", |
| 561 "//base/test:test_support", | 455 "//base/test:test_support", |
| 562 "//components/payments/core", | 456 "//components/payments/core", |
| 563 "//components/url_formatter", | 457 "//components/url_formatter", |
| 564 "//ios/net", | 458 "//ios/net", |
| 565 "//ios/testing:ios_test_support", | 459 "//ios/testing:ios_test_support", |
| 566 "//ios/testing:ocmock_support", | 460 "//ios/testing:ocmock_support", |
| 461 "//ios/web/public/test", |
| 462 "//ios/web/public/test/fakes", |
| 567 "//ios/web/test:mojo_bindings", | 463 "//ios/web/test:mojo_bindings", |
| 464 "//ios/web/test:test_constants", |
| 465 "//ios/web/test:test_support", |
| 568 "//net:test_support", | 466 "//net:test_support", |
| 569 "//services/service_manager/public/cpp", | 467 "//services/service_manager/public/cpp", |
| 570 "//testing/gmock", | 468 "//testing/gmock", |
| 571 "//testing/gtest", | 469 "//testing/gtest", |
| 572 "//third_party/ocmock", | 470 "//third_party/ocmock", |
| 573 "//ui/base:test_support", | 471 "//ui/base:test_support", |
| 574 ] | 472 ] |
| 575 | 473 |
| 576 public_deps = [ | 474 public_deps = [ |
| 577 ":ios_web_unittests_arc", | 475 ":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", | 537 "webui/url_fetcher_block_adapter_unittest.mm", |
| 640 ] | 538 ] |
| 641 | 539 |
| 642 assert_no_deps = ios_assert_no_deps | 540 assert_no_deps = ios_assert_no_deps |
| 643 | 541 |
| 644 allow_circular_includes_from = [ ":ios_web_unittests_arc" ] | 542 allow_circular_includes_from = [ ":ios_web_unittests_arc" ] |
| 645 } | 543 } |
| 646 | 544 |
| 647 test("ios_web_inttests") { | 545 test("ios_web_inttests") { |
| 648 deps = [ | 546 deps = [ |
| 649 ":test_support", | |
| 650 ":web", | 547 ":web", |
| 651 "//base/test:test_support", | 548 "//base/test:test_support", |
| 652 "//ios/testing:http_server_bundle_data", | 549 "//ios/testing:http_server_bundle_data", |
| 653 "//ios/testing:ios_test_support", | 550 "//ios/testing:ios_test_support", |
| 551 "//ios/web/public/test", |
| 552 "//ios/web/public/test/fakes", |
| 553 "//ios/web/public/test/http_server", |
| 654 "//ios/web/test:mojo_bindings", | 554 "//ios/web/test:mojo_bindings", |
| 655 "//ios/web/test:packed_resources", | 555 "//ios/web/test:packed_resources", |
| 656 "//ios/web/test:resources", | 556 "//ios/web/test:resources", |
| 557 "//ios/web/test:test_constants", |
| 558 "//ios/web/test:test_support", |
| 657 "//mojo/edk/system", | 559 "//mojo/edk/system", |
| 658 "//net:test_support", | 560 "//net:test_support", |
| 659 "//services/service_manager/public/cpp", | 561 "//services/service_manager/public/cpp", |
| 660 "//testing/gtest", | 562 "//testing/gtest", |
| 661 "//ui/base:test_support", | 563 "//ui/base:test_support", |
| 662 ] | 564 ] |
| 663 sources = [ | 565 sources = [ |
| 664 "browser_state_web_view_partition_inttest.mm", | 566 "browser_state_web_view_partition_inttest.mm", |
| 665 "navigation/history_state_operations_inttest.mm", | 567 "navigation/history_state_operations_inttest.mm", |
| 666 "navigation/window_location_inttest.mm", | 568 "navigation/window_location_inttest.mm", |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 "ios_web_resources.pak", | 630 "ios_web_resources.pak", |
| 729 ] | 631 ] |
| 730 grit_flags = [ | 632 grit_flags = [ |
| 731 "-E", | 633 "-E", |
| 732 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), | 634 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), |
| 733 ] | 635 ] |
| 734 deps = [ | 636 deps = [ |
| 735 "//mojo/public/js:bindings", | 637 "//mojo/public/js:bindings", |
| 736 ] | 638 ] |
| 737 } | 639 } |
| OLD | NEW |