OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("../mojo_edk.gni") | 5 import("../mojo_edk.gni") |
6 import("../../public/mojo.gni") | 6 import("../../public/mojo.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 mojo_edk_source_set("test_support") { | 9 mojo_edk_source_set("test_support") { |
10 testonly = true | 10 testonly = true |
11 sources = [ | 11 sources = [ |
12 "multiprocess_test_helper.cc", | 12 "multiprocess_test_helper.cc", |
13 "multiprocess_test_helper.h", | 13 "multiprocess_test_helper.h", |
14 "scoped_ipc_support.cc", | 14 "scoped_ipc_support.cc", |
15 "scoped_ipc_support.h", | 15 "scoped_ipc_support.h", |
16 "test_utils.h", | 16 "test_utils.h", |
17 "test_utils_posix.cc", | 17 "test_utils_posix.cc", |
18 "test_utils_win.cc", | 18 "test_utils_win.cc", |
19 ] | 19 ] |
20 | 20 |
21 deps = [ | 21 deps = [ |
22 "//base", | 22 "//base", |
23 "//base/test:test_support", | 23 "//base/test:test_support", |
| 24 "//mojo/edk/system", |
24 "//testing/gtest", | 25 "//testing/gtest", |
| 26 "//third_party/mojo/src/mojo/public/cpp/system", |
25 ] | 27 ] |
26 | |
27 mojo_edk_deps = [ "mojo/edk/system" ] | |
28 | |
29 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] | |
30 } | 28 } |
31 | 29 |
32 mojo_edk_source_set("run_all_unittests") { | 30 mojo_edk_source_set("run_all_unittests") { |
33 testonly = true | 31 testonly = true |
34 sources = [ | 32 sources = [ |
35 "run_all_unittests.cc", | 33 "run_all_unittests.cc", |
36 ] | 34 ] |
37 | 35 |
38 deps = [ | 36 deps = [ |
| 37 ":test_support", |
39 ":test_support_impl", | 38 ":test_support_impl", |
40 "//base", | 39 "//base", |
41 "//base/test:test_support", | 40 "//base/test:test_support", |
| 41 "//mojo/edk/system", |
42 "//testing/gtest", | 42 "//testing/gtest", |
| 43 "//third_party/mojo/src/mojo/public/c/test_support", |
43 ] | 44 ] |
44 | |
45 mojo_edk_deps = [ "mojo/edk/system" ] | |
46 | |
47 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
48 } | 45 } |
49 | 46 |
50 mojo_edk_source_set("run_all_perftests") { | 47 mojo_edk_source_set("run_all_perftests") { |
51 testonly = true | 48 testonly = true |
52 deps = [ | 49 deps = [ |
53 ":test_support_impl", | 50 ":test_support_impl", |
54 "//base", | 51 "//base", |
55 "//base/test:test_support", | 52 "//base/test:test_support", |
| 53 "//mojo/edk/system", |
| 54 |
| 55 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
| 56 # declared in third party only for now. |
| 57 "//third_party/mojo/src/mojo/edk/system", |
| 58 "//third_party/mojo/src/mojo/public/c/test_support", |
56 ] | 59 ] |
57 | 60 |
58 mojo_edk_deps = [ "mojo/edk/system" ] | |
59 | |
60 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
61 | |
62 sources = [ | 61 sources = [ |
63 "run_all_perftests.cc", | 62 "run_all_perftests.cc", |
64 ] | 63 ] |
65 } | 64 } |
66 | 65 |
67 mojo_edk_source_set("test_support_impl") { | 66 mojo_edk_source_set("test_support_impl") { |
68 testonly = true | 67 testonly = true |
69 deps = [ | 68 deps = [ |
70 "//base", | 69 "//base", |
71 "//base/test:test_support", | 70 "//base/test:test_support", |
| 71 "//third_party/mojo/src/mojo/public/c/test_support", |
| 72 "//third_party/mojo/src/mojo/public/cpp/system", |
72 ] | 73 ] |
73 | 74 |
74 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
75 | |
76 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] | |
77 | |
78 sources = [ | 75 sources = [ |
79 "test_support_impl.cc", | 76 "test_support_impl.cc", |
80 "test_support_impl.h", | 77 "test_support_impl.h", |
81 ] | 78 ] |
82 } | 79 } |
83 | 80 |
84 # Public SDK test targets follow. These targets are not defined within the | 81 # Public SDK test targets follow. These targets are not defined within the |
85 # public SDK itself as running the unittests requires the EDK. | 82 # public SDK itself as running the unittests requires the EDK. |
86 # TODO(vtl): These don't really belong here. (They should be converted to | 83 # TODO(vtl): These don't really belong here. (They should be converted to |
87 # apptests, but even apart from that these targets belong somewhere else.) | 84 # apptests, but even apart from that these targets belong somewhere else.) |
88 | 85 |
89 group("public_tests") { | 86 group("public_tests") { |
90 testonly = true | 87 testonly = true |
91 deps = [ | 88 deps = [ |
92 ":mojo_public_bindings_perftests", | 89 # TODO(use_chrome_edk): remove "2" |
93 ":mojo_public_bindings_unittests", | 90 ":mojo_public_bindings_unittests2", |
94 ":mojo_public_environment_unittests", | 91 ":mojo_public_environment_unittests2", |
95 ":mojo_public_system_perftests", | 92 ":mojo_public_system_perftests2", |
96 ":mojo_public_system_unittests", | 93 ":mojo_public_system_unittests2", |
97 ":mojo_public_utility_unittests", | 94 ":mojo_public_utility_unittests2", |
98 ":mojo_system_impl_private_unittests", | 95 ":mojo_system_impl_private_unittests2", |
99 ] | 96 ] |
100 | 97 |
101 if (mojo_use_application_in_sdk) { | 98 if (mojo_use_application_in_sdk) { |
102 deps += [ ":mojo_public_application_unittests" ] | 99 deps += [ ":mojo_public_application_unittests" ] |
103 } | 100 } |
104 } | 101 } |
105 | 102 |
106 if (mojo_use_application_in_sdk) { | 103 if (mojo_use_application_in_sdk) { |
107 test("mojo_public_application_unittests") { | 104 # TODO(use_chrome_edk): remove "2" |
| 105 test("mojo_public_application_unittests2") { |
108 deps = [ | 106 deps = [ |
109 ":run_all_unittests", | 107 ":run_all_unittests", |
110 "../../public/cpp/application/tests", | 108 "../../../third_party/mojo/src/mojo/public/cpp/application/tests", |
111 ] | 109 ] |
112 } | 110 } |
113 } | 111 } |
114 | 112 |
115 test("mojo_public_bindings_unittests") { | 113 # TODO(use_chrome_edk): remove "2" |
| 114 test("mojo_public_bindings_unittests2") { |
116 deps = [ | 115 deps = [ |
117 ":run_all_unittests", | 116 ":run_all_unittests", |
118 "../../public/cpp/bindings/tests", | 117 "../../../third_party/mojo/src/mojo/public/cpp/bindings/tests", |
119 ] | 118 ] |
120 } | 119 } |
121 | 120 |
122 test("mojo_public_bindings_perftests") { | 121 # TODO(use_chrome_edk): remove "2" |
| 122 test("mojo_public_environment_unittests2") { |
123 deps = [ | 123 deps = [ |
124 ":run_all_perftests", | 124 ":run_all_unittests", |
125 "../../public/cpp/bindings/tests:perftests", | 125 "../../../third_party/mojo/src/mojo/public/cpp/environment/tests", |
126 ] | 126 ] |
127 } | 127 } |
128 | 128 |
129 test("mojo_public_environment_unittests") { | 129 # TODO(use_chrome_edk): remove "2" |
| 130 test("mojo_public_system_perftests2") { |
130 deps = [ | 131 deps = [ |
131 ":run_all_unittests", | 132 ":run_all_perftests", |
132 "../../public/cpp/environment/tests", | 133 "../../../third_party/mojo/src/mojo/public/c/system/tests:perftests", |
133 ] | 134 ] |
134 } | 135 } |
135 | 136 |
136 test("mojo_public_system_perftests") { | 137 # TODO(use_chrome_edk): remove "2" |
| 138 test("mojo_public_system_unittests2") { |
137 deps = [ | 139 deps = [ |
138 ":run_all_perftests", | 140 ":run_all_unittests", |
139 "../../public/c/system/tests:perftests", | 141 "../../../third_party/mojo/src/mojo/public/cpp/system/tests", |
140 ] | 142 ] |
141 } | 143 } |
142 | 144 |
143 test("mojo_public_system_unittests") { | 145 # TODO(use_chrome_edk): remove "2" |
| 146 test("mojo_public_utility_unittests2") { |
144 deps = [ | 147 deps = [ |
145 ":run_all_unittests", | 148 ":run_all_unittests", |
146 "../../public/cpp/system/tests", | 149 "../../../third_party/mojo/src/mojo/public/cpp/utility/tests", |
147 ] | 150 ] |
148 } | 151 } |
149 | 152 |
150 test("mojo_public_utility_unittests") { | 153 # TODO(use_chrome_edk): remove "2" |
| 154 test("mojo_system_impl_private_unittests2") { |
151 deps = [ | 155 deps = [ |
152 ":run_all_unittests", | 156 ":run_all_unittests", |
153 "../../public/cpp/utility/tests", | 157 "../../../third_party/mojo/src/mojo/public/platform/native:system_impl_priva
te_tests", |
154 ] | 158 ] |
155 } | 159 } |
156 | |
157 test("mojo_system_impl_private_unittests") { | |
158 deps = [ | |
159 ":run_all_unittests", | |
160 "../../public/platform/native:system_impl_private_tests", | |
161 ] | |
162 } | |
OLD | NEW |