Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: ios/web/BUILD.gn

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: remove public_deps Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 source_set("reload_type") { 352 source_set("reload_type") {
353 sources = [ 353 sources = [
354 "public/reload_type.h", 354 "public/reload_type.h",
355 ] 355 ]
356 } 356 }
357 357
358 source_set("earl_grey_test_support") { 358 source_set("earl_grey_test_support") {
359 testonly = true 359 testonly = true
360 360
361 deps = [ 361 deps = [
362 ":test_support",
363 ":web", 362 ":web",
364 "//base", 363 "//base",
365 "//base/test:test_support", 364 "//base/test:test_support",
366 "//ios/testing:ios_test_support", 365 "//ios/testing:ios_test_support",
367 "//ios/testing/earl_grey:earl_grey_support", 366 "//ios/testing/earl_grey:earl_grey_support",
368 "//ios/third_party/earl_grey", 367 "//ios/third_party/earl_grey",
368 "//ios/web/public/test:test_support",
369 "//net", 369 "//net",
370 ] 370 ]
371 371
372 sources = [ 372 sources = [
373 "public/test/earl_grey/js_test_util.h", 373 "public/test/earl_grey/js_test_util.h",
374 "public/test/earl_grey/js_test_util.mm", 374 "public/test/earl_grey/js_test_util.mm",
375 "public/test/earl_grey/web_view_actions.h", 375 "public/test/earl_grey/web_view_actions.h",
376 "public/test/earl_grey/web_view_actions.mm", 376 "public/test/earl_grey/web_view_actions.mm",
377 "public/test/earl_grey/web_view_matchers.h", 377 "public/test/earl_grey/web_view_matchers.h",
378 "public/test/earl_grey/web_view_matchers.mm", 378 "public/test/earl_grey/web_view_matchers.mm",
379 ] 379 ]
380 } 380 }
381 381
382 source_set("test_support") {
383 testonly = true
384
385 deps = [
386 ":web",
387 "//base",
388 "//base/test:test_support",
389 "//ios/testing:ios_test_support",
390 "//ios/testing:ocmock_support",
391 "//ios/third_party/gcdwebserver",
392 "//ios/web/test:mojo_bindings",
393 "//net:test_support",
394 "//testing/gmock",
395 "//testing/gtest",
396 "//third_party/ocmock",
397 "//ui/base",
398 ]
399
400 sources = [
401 "public/test/fakes/crw_test_js_injection_receiver.h",
402 "public/test/fakes/crw_test_js_injection_receiver.mm",
403 "public/test/fakes/crw_test_web_state_observer.h",
404 "public/test/fakes/crw_test_web_state_observer.mm",
405 "public/test/fakes/test_browser_state.cc",
406 "public/test/fakes/test_browser_state.h",
407 "public/test/fakes/test_java_script_dialog_presenter.h",
408 "public/test/fakes/test_java_script_dialog_presenter.mm",
409 "public/test/fakes/test_native_content.h",
410 "public/test/fakes/test_native_content.mm",
411 "public/test/fakes/test_native_content_provider.h",
412 "public/test/fakes/test_native_content_provider.mm",
413 "public/test/fakes/test_navigation_manager.h",
414 "public/test/fakes/test_navigation_manager.mm",
415 "public/test/fakes/test_web_client.h",
416 "public/test/fakes/test_web_client.mm",
417 "public/test/fakes/test_web_state.h",
418 "public/test/fakes/test_web_state.mm",
419 "public/test/fakes/test_web_state_delegate.h",
420 "public/test/fakes/test_web_state_delegate.mm",
421 "public/test/fakes/test_web_state_observer.h",
422 "public/test/fakes/test_web_state_observer.mm",
423 "public/test/fakes/test_web_state_observer_util.h",
424 "public/test/fakes/test_web_state_observer_util.mm",
425 "public/test/fakes/test_web_view_content_view.h",
426 "public/test/fakes/test_web_view_content_view.mm",
427 "public/test/http_server.h",
428 "public/test/http_server.mm",
429 "public/test/http_server_util.h",
430 "public/test/http_server_util.mm",
431 "public/test/js_test_util.h",
432 "public/test/js_test_util.mm",
433 "public/test/native_controller_test_util.h",
434 "public/test/native_controller_test_util.mm",
435 "public/test/navigation_test_util.h",
436 "public/test/navigation_test_util.mm",
437 "public/test/response_providers/data_response_provider.h",
438 "public/test/response_providers/data_response_provider.mm",
439 "public/test/response_providers/delayed_response_provider.h",
440 "public/test/response_providers/delayed_response_provider.mm",
441 "public/test/response_providers/error_page_response_provider.h",
442 "public/test/response_providers/error_page_response_provider.mm",
443 "public/test/response_providers/file_based_response_provider.h",
444 "public/test/response_providers/file_based_response_provider.mm",
445 "public/test/response_providers/file_based_response_provider_impl.h",
446 "public/test/response_providers/file_based_response_provider_impl.mm",
447 "public/test/response_providers/html_response_provider.h",
448 "public/test/response_providers/html_response_provider.mm",
449 "public/test/response_providers/html_response_provider_impl.h",
450 "public/test/response_providers/html_response_provider_impl.mm",
451 "public/test/response_providers/http_auth_response_provider.h",
452 "public/test/response_providers/http_auth_response_provider.mm",
453 "public/test/response_providers/response_provider.h",
454 "public/test/response_providers/response_provider.mm",
455 "public/test/response_providers/string_response_provider.h",
456 "public/test/response_providers/string_response_provider.mm",
457 "public/test/scoped_testing_web_client.h",
458 "public/test/scoped_testing_web_client.mm",
459 "public/test/test_redirect_observer.h",
460 "public/test/test_redirect_observer.mm",
461 "public/test/test_web_thread.h",
462 "public/test/test_web_thread_bundle.h",
463 "public/test/url_test_util.h",
464 "public/test/web_js_test.h",
465 "public/test/web_test.h",
466 "public/test/web_test.mm",
467 "public/test/web_test_suite.h",
468 "public/test/web_test_with_web_state.h",
469 "public/test/web_test_with_web_state.mm",
470 "public/test/web_view_interaction_test_util.h",
471 "public/test/web_view_interaction_test_util.mm",
472 "test/crw_fake_web_controller_observer.h",
473 "test/crw_fake_web_controller_observer.mm",
474 "test/test_url_constants.cc",
475 "test/test_url_constants.h",
476 "test/test_web_thread.cc",
477 "test/test_web_thread_bundle.cc",
478 "test/url_test_util.mm",
479 "test/web_int_test.h",
480 "test/web_int_test.mm",
481 "test/web_test_suite.mm",
482 "test/web_test_with_web_controller.h",
483 "test/web_test_with_web_controller.mm",
484 "test/wk_web_view_crash_utils.h",
485 "test/wk_web_view_crash_utils.mm",
486 ]
487 }
488
489 source_set("run_all_unittests") { 382 source_set("run_all_unittests") {
490 testonly = true 383 testonly = true
491 sources = [ 384 sources = [
492 "test/run_all_unittests.cc", 385 "test/run_all_unittests.cc",
493 ] 386 ]
494 deps = [ 387 deps = [
495 ":test_support",
496 "//base", 388 "//base",
497 "//base/test:test_support", 389 "//base/test:test_support",
390 "//ios/web/public/test:test_support",
391 "//ios/web/public/test/response_providers:test_support",
498 "//mojo/edk/system", 392 "//mojo/edk/system",
499 ] 393 ]
500 } 394 }
501 395
502 bundle_data("ios_web_unittests_bundle_data") { 396 bundle_data("ios_web_unittests_bundle_data") {
503 testonly = true 397 testonly = true
504 sources = [ 398 sources = [
505 "test/data/chrome.html", 399 "test/data/chrome.html",
506 "test/data/testbadpass.pkpass", 400 "test/data/testbadpass.pkpass",
507 "test/data/testfavicon.png", 401 "test/data/testfavicon.png",
508 "test/data/testpass.pkpass", 402 "test/data/testpass.pkpass",
509 ] 403 ]
510 outputs = [ 404 outputs = [
511 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" + 405 "{{bundle_resources_dir}}/{{source_root_relative_dir}}/" +
512 "{{source_file_part}}", 406 "{{source_file_part}}",
513 ] 407 ]
514 } 408 }
515 409
516 test("ios_web_unittests_arc") { 410 test("ios_web_unittests_arc") {
517 deps = [ 411 deps = [
518 ":core", 412 ":core",
519 ":ios_web_unittests_bundle_data", 413 ":ios_web_unittests_bundle_data",
520 ":run_all_unittests", 414 ":run_all_unittests",
521 ":test_support",
522 ":user_agent", 415 ":user_agent",
523 ":web", 416 ":web",
524 "//base", 417 "//base",
525 "//base/test:test_support", 418 "//base/test:test_support",
526 "//components/payments/core", 419 "//components/payments/core",
527 "//components/url_formatter", 420 "//components/url_formatter",
528 "//ios/net", 421 "//ios/net",
529 "//ios/testing:ios_test_support", 422 "//ios/testing:ios_test_support",
530 "//ios/testing:ocmock_support", 423 "//ios/testing:ocmock_support",
424 "//ios/web/public/test:test_support",
425 "//ios/web/public/test/fakes:test_support",
531 "//ios/web/test:mojo_bindings", 426 "//ios/web/test:mojo_bindings",
532 "//net:test_support", 427 "//net:test_support",
533 "//services/service_manager/public/cpp", 428 "//services/service_manager/public/cpp",
534 "//testing/gmock", 429 "//testing/gmock",
535 "//testing/gtest", 430 "//testing/gtest",
536 "//third_party/ocmock", 431 "//third_party/ocmock",
537 "//ui/base:test_support", 432 "//ui/base:test_support",
538 ] 433 ]
539 434
540 sources = [ 435 sources = [
541 "public/crw_session_certificate_policy_cache_storage_unittest.mm", 436 "public/crw_session_certificate_policy_cache_storage_unittest.mm",
542 "web_state/session_certificate_policy_cache_impl_unittest.mm", 437 "web_state/session_certificate_policy_cache_impl_unittest.mm",
543 "web_state/session_certificate_policy_cache_storage_builder_unittest.mm", 438 "web_state/session_certificate_policy_cache_storage_builder_unittest.mm",
544 ] 439 ]
545 440
546 configs += [ "//build/config/compiler:enable_arc" ] 441 configs += [ "//build/config/compiler:enable_arc" ]
547 } 442 }
548 443
549 test("ios_web_unittests") { 444 test("ios_web_unittests") {
550 deps = [ 445 deps = [
551 ":core", 446 ":core",
552 ":ios_web_unittests_bundle_data", 447 ":ios_web_unittests_bundle_data",
553 ":run_all_unittests", 448 ":run_all_unittests",
554 ":test_support",
555 ":user_agent", 449 ":user_agent",
556 ":web", 450 ":web",
557 "//base", 451 "//base",
558 "//base/test:test_support", 452 "//base/test:test_support",
559 "//components/payments/core", 453 "//components/payments/core",
560 "//components/url_formatter", 454 "//components/url_formatter",
561 "//ios/net", 455 "//ios/net",
562 "//ios/testing:ios_test_support", 456 "//ios/testing:ios_test_support",
563 "//ios/testing:ocmock_support", 457 "//ios/testing:ocmock_support",
458 "//ios/web/public/test:test_support",
459 "//ios/web/public/test/fakes:test_support",
564 "//ios/web/test:mojo_bindings", 460 "//ios/web/test:mojo_bindings",
461 "//ios/web/test:test_support",
565 "//net:test_support", 462 "//net:test_support",
566 "//services/service_manager/public/cpp", 463 "//services/service_manager/public/cpp",
567 "//testing/gmock", 464 "//testing/gmock",
568 "//testing/gtest", 465 "//testing/gtest",
569 "//third_party/ocmock", 466 "//third_party/ocmock",
570 "//ui/base:test_support", 467 "//ui/base:test_support",
571 ] 468 ]
572 469
573 public_deps = [ 470 public_deps = [
574 ":ios_web_unittests_arc", 471 ":ios_web_unittests_arc",
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 "webui/url_fetcher_block_adapter_unittest.mm", 533 "webui/url_fetcher_block_adapter_unittest.mm",
637 ] 534 ]
638 535
639 assert_no_deps = ios_assert_no_deps 536 assert_no_deps = ios_assert_no_deps
640 537
641 allow_circular_includes_from = [ ":ios_web_unittests_arc" ] 538 allow_circular_includes_from = [ ":ios_web_unittests_arc" ]
642 } 539 }
643 540
644 test("ios_web_inttests") { 541 test("ios_web_inttests") {
645 deps = [ 542 deps = [
646 ":test_support",
647 ":web", 543 ":web",
648 "//base/test:test_support", 544 "//base/test:test_support",
649 "//ios/testing:http_server_bundle_data", 545 "//ios/testing:http_server_bundle_data",
650 "//ios/testing:ios_test_support", 546 "//ios/testing:ios_test_support",
547 "//ios/web/public/test:test_support",
548 "//ios/web/public/test/fakes:test_support",
549 "//ios/web/public/test/response_providers:test_support",
651 "//ios/web/test:mojo_bindings", 550 "//ios/web/test:mojo_bindings",
652 "//ios/web/test:packed_resources", 551 "//ios/web/test:packed_resources",
653 "//ios/web/test:resources", 552 "//ios/web/test:resources",
553 "//ios/web/test:test_support",
654 "//mojo/edk/system", 554 "//mojo/edk/system",
655 "//net:test_support", 555 "//net:test_support",
656 "//services/service_manager/public/cpp", 556 "//services/service_manager/public/cpp",
657 "//testing/gtest", 557 "//testing/gtest",
658 "//ui/base:test_support", 558 "//ui/base:test_support",
659 ] 559 ]
660 sources = [ 560 sources = [
661 "browser_state_web_view_partition_inttest.mm", 561 "browser_state_web_view_partition_inttest.mm",
662 "navigation/history_state_operations_inttest.mm", 562 "navigation/history_state_operations_inttest.mm",
663 "navigation/window_location_inttest.mm", 563 "navigation/window_location_inttest.mm",
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 "ios_web_resources.pak", 625 "ios_web_resources.pak",
726 ] 626 ]
727 grit_flags = [ 627 grit_flags = [
728 "-E", 628 "-E",
729 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), 629 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
730 ] 630 ]
731 deps = [ 631 deps = [
732 "//mojo/public/js:bindings", 632 "//mojo/public/js:bindings",
733 ] 633 ]
734 } 634 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698