1 # Copyright 2014 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/buildflag_header.gni")
6 import("//build/config/ui.gni")
7 import("//mojo/features.gni")
8 import("//testing/test.gni")
11 # Meta-target, don't link into production code.
15 if (!((is_linux || is_chromeos) && current_cpu == "x86")) {
16 deps += [ "//mojo/public" ]
20 deps += [ "//mojo/public/java/system" ]
23 deps += [ "//services/service_manager:all" ]
26 buildflag_header("buildflags") {
27 header = "buildflags.h"
28 flags = [ "MOJO_USE_APPLE_CHANNEL=$mojo_use_apple_channel" ]
36 "//mojo/public/tools:mojo_python_unittests",
37 "//third_party/ipcz/src:ipcz_tests",
43 "//services/service_manager/tests",
48 test("mojo_unittests") {
50 "//mojo/core:test_sources",
51 "//mojo/core/test:run_all_unittests",
52 "//mojo/public/cpp/base:tests",
53 "//mojo/public/cpp/bindings/tests",
54 "//mojo/public/cpp/platform/tests",
55 "//mojo/public/cpp/system/tests",
56 "//mojo/public/js/ts/bindings/tests",
60 test("mojo_perftests") {
61 sources = [ "//mojo/core/handle_table_perftest.cc" ]
63 "//mojo/core/test:run_all_perftests",
64 "//mojo/core/test:test_support",
65 "//mojo/public/c/system/tests:perftests",
66 "//mojo/public/cpp/bindings/tests:perftests",
71 sources += [ "//mojo/core/message_pipe_perftest.cc" ]
75 "//base/test:test_support",
76 "//mojo/core:embedder_internal",
77 "//mojo/core/embedder",