• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5static_library("test_support") {
6  testonly = true
7  sources = [
8    "mojo_test_base.cc",
9    "mojo_test_base.h",
10    "test_utils.h",
11    "test_utils_win.cc",
12  ]
13
14  if (!is_ios) {
15    sources += [
16      "multiprocess_test_helper.cc",
17      "multiprocess_test_helper.h",
18    ]
19  }
20
21  if (is_fuchsia || is_posix) {
22    sources += [ "test_utils.cc" ]
23  }
24
25  public_deps = [
26    "//base",
27    "//base/test:test_support",
28    "//mojo/core/embedder",
29    "//mojo/public/cpp/system",
30    "//testing/gtest",
31  ]
32}
33
34source_set("run_all_unittests") {
35  testonly = true
36  sources = [
37    "run_all_unittests.cc",
38  ]
39
40  deps = [
41    ":test_support",
42    ":test_support_impl",
43    "//base",
44    "//base/test:test_support",
45    "//mojo/core/embedder",
46    "//mojo/public/c/test_support",
47    "//testing/gtest",
48  ]
49
50  if (is_linux && !is_component_build) {
51    public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
52  }
53}
54
55source_set("run_all_perftests") {
56  testonly = true
57  deps = [
58    ":test_support_impl",
59    "//base",
60    "//base/test:test_support",
61    "//mojo/core/embedder",
62    "//mojo/core/test:test_support",
63    "//mojo/public/c/test_support",
64  ]
65
66  sources = [
67    "run_all_perftests.cc",
68  ]
69
70  if (is_linux && !is_component_build) {
71    public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
72  }
73}
74
75static_library("test_support_impl") {
76  testonly = true
77  deps = [
78    "//base",
79    "//base/test:test_support",
80    "//mojo/public/c/test_support",
81    "//mojo/public/cpp/system",
82  ]
83
84  sources = [
85    "test_support_impl.cc",
86    "test_support_impl.h",
87  ]
88}
89