OLD | NEW |
| (Empty) |
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("../mojo_edk.gni") | |
6 | |
7 mojo_edk_source_set("test_support") { | |
8 testonly = true | |
9 sources = [ | |
10 "multiprocess_test_helper.cc", | |
11 "multiprocess_test_helper.h", | |
12 "test_utils.h", | |
13 "test_utils_posix.cc", | |
14 "test_utils_win.cc", | |
15 ] | |
16 | |
17 deps = [ | |
18 "//base", | |
19 "//base/test:test_support", | |
20 "//testing/gtest", | |
21 ] | |
22 | |
23 mojo_edk_deps = [ "mojo/edk/system" ] | |
24 } | |
25 | |
26 mojo_edk_source_set("run_all_unittests") { | |
27 testonly = true | |
28 sources = [ | |
29 "run_all_unittests.cc", | |
30 ] | |
31 | |
32 deps = [ | |
33 ":test_support_impl", | |
34 "//base", | |
35 "//base/test:test_support", | |
36 "//testing/gtest", | |
37 ] | |
38 | |
39 mojo_edk_deps = [ "mojo/edk/system" ] | |
40 | |
41 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
42 } | |
43 | |
44 mojo_edk_source_set("run_all_perftests") { | |
45 testonly = true | |
46 deps = [ | |
47 ":test_support_impl", | |
48 "//base", | |
49 "//base/test:test_support", | |
50 ] | |
51 | |
52 mojo_edk_deps = [ "mojo/edk/system" ] | |
53 | |
54 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
55 | |
56 sources = [ | |
57 "run_all_perftests.cc", | |
58 ] | |
59 } | |
60 | |
61 mojo_edk_source_set("test_support_impl") { | |
62 testonly = true | |
63 deps = [ | |
64 "//base", | |
65 "//base/test:test_support", | |
66 ] | |
67 | |
68 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
69 | |
70 sources = [ | |
71 "test_support_impl.cc", | |
72 "test_support_impl.h", | |
73 ] | |
74 } | |
75 | |
76 # Public SDK test targets follow. These targets are not defined within the | |
77 # public SDK itself as running the unittests requires the EDK. | |
78 | |
79 test("mojo_public_application_unittests") { | |
80 deps = [ | |
81 ":run_all_unittests", | |
82 "../../public/cpp/application/tests", | |
83 ] | |
84 } | |
85 | |
86 test("mojo_public_bindings_unittests") { | |
87 deps = [ | |
88 ":run_all_unittests", | |
89 "../../public/cpp/bindings/tests", | |
90 ] | |
91 } | |
92 | |
93 test("mojo_public_environment_unittests") { | |
94 deps = [ | |
95 ":run_all_unittests", | |
96 "../../public/cpp/environment/tests", | |
97 ] | |
98 } | |
99 | |
100 test("mojo_public_system_perftests") { | |
101 deps = [ | |
102 ":run_all_perftests", | |
103 "../../public/c/system/tests:perftests", | |
104 ] | |
105 } | |
106 | |
107 test("mojo_public_system_unittests") { | |
108 deps = [ | |
109 ":run_all_unittests", | |
110 "../../public/cpp/system/tests", | |
111 ] | |
112 } | |
113 | |
114 test("mojo_public_utility_unittests") { | |
115 deps = [ | |
116 ":run_all_unittests", | |
117 "../../public/cpp/utility/tests", | |
118 ] | |
119 } | |
OLD | NEW |