BUILD.gn 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 2017 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//ios/build/config.gni")
  5. import("//testing/test.gni")
  6. # All tests needs to be listed in that target to be built as part of
  7. # "gn_all" target (i.e. by the bots).
  8. group("all_tests") {
  9. testonly = true
  10. deps = [ ":ios_components_unittests" ]
  11. }
  12. source_set("run_all_unittests") {
  13. testonly = true
  14. sources = [ "run_all_unittests.cc" ]
  15. deps = [
  16. "//base",
  17. "//base/test:test_support",
  18. "//ios/web/public/test:test_fixture",
  19. "//mojo/core/embedder",
  20. ]
  21. }
  22. # To add a unit test to this target, make a "unit_tests" source_set in your
  23. # component (it's important to use a source_set instead of a static library or
  24. # no tests will run) and add a reference here. You can add more than one unit
  25. # test target if convenient.
  26. test("ios_components_unittests") {
  27. # Add only ":unit_tests" dependencies here. If your tests have dependencies
  28. # (this would at least include the component itself), they should be on the
  29. # test source set and not here.
  30. deps = [
  31. ":run_all_unittests",
  32. "//base",
  33. "//ios/components/cookie_util:unit_tests",
  34. "//ios/components/io_thread:unit_tests",
  35. "//ios/components/security_interstitials:unit_tests",
  36. "//ios/components/security_interstitials/https_only_mode:unit_tests",
  37. "//ios/components/security_interstitials/lookalikes:unit_tests",
  38. "//ios/components/security_interstitials/safe_browsing:unit_tests",
  39. "//ios/components/ui_util:unit_tests",
  40. ]
  41. assert_no_deps = ios_assert_no_deps
  42. }