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