BUILD.gn 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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
  3. # found in the LICENSE file.
  4. import("//build/config/ui.gni")
  5. import("//testing/test.gni")
  6. group("mojo") {
  7. # Meta-target, don't link into production code.
  8. testonly = true
  9. deps = [ ":tests" ]
  10. if (!((is_linux || is_chromeos) && current_cpu == "x86")) {
  11. deps += [ "//mojo/public" ]
  12. }
  13. if (is_android) {
  14. deps += [ "//mojo/public/java/system" ]
  15. }
  16. deps += [ "//services/service_manager:all" ]
  17. }
  18. group("tests") {
  19. testonly = true
  20. deps = [
  21. ":mojo_perftests",
  22. ":mojo_unittests",
  23. "//ipc:ipc_tests",
  24. "//mojo/public/tools:mojo_python_unittests",
  25. "//services/service_manager/tests",
  26. "//third_party/ipcz/src:ipcz_tests",
  27. ]
  28. }
  29. test("mojo_unittests") {
  30. deps = [
  31. "//mojo/core:test_sources",
  32. "//mojo/core/test:run_all_unittests",
  33. "//mojo/public/cpp/base:tests",
  34. "//mojo/public/cpp/bindings/tests",
  35. "//mojo/public/cpp/platform/tests",
  36. "//mojo/public/cpp/system/tests",
  37. "//mojo/public/js/ts/bindings/tests",
  38. ]
  39. }
  40. test("mojo_perftests") {
  41. sources = [ "//mojo/core/handle_table_perftest.cc" ]
  42. deps = [
  43. "//mojo/core/test:run_all_perftests",
  44. "//mojo/core/test:test_support",
  45. "//mojo/public/c/system/tests:perftests",
  46. "//mojo/public/cpp/bindings/tests:perftests",
  47. "//testing/perf",
  48. ]
  49. if (!is_ios) {
  50. sources += [ "//mojo/core/message_pipe_perftest.cc" ]
  51. deps += [
  52. "//base",
  53. "//base/test:test_support",
  54. "//mojo/core:embedder_internal",
  55. "//mojo/core/embedder",
  56. "//testing/gtest",
  57. ]
  58. }
  59. }