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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("../../../mojo/public/tools/bindings/mojom.gni") | 6 import("../../../mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 "mach_port_relay.h", | 114 "mach_port_relay.h", |
115 ] | 115 ] |
116 } | 116 } |
117 | 117 |
118 allow_circular_includes_from = [ "//mojo/edk/embedder" ] | 118 allow_circular_includes_from = [ "//mojo/edk/embedder" ] |
119 } | 119 } |
120 | 120 |
121 group("tests") { | 121 group("tests") { |
122 testonly = true | 122 testonly = true |
123 deps = [ | 123 deps = [ |
124 ":mojo_message_pipe_perftests", | |
125 ":mojo_system_unittests", | 124 ":mojo_system_unittests", |
126 ] | 125 ] |
| 126 |
| 127 if (!is_ios) { |
| 128 deps += [ ":mojo_message_pipe_perftests" ] |
| 129 } |
127 } | 130 } |
128 | 131 |
129 source_set("test_utils") { | 132 source_set("test_utils") { |
130 testonly = true | 133 testonly = true |
131 | 134 |
132 sources = [ | 135 sources = [ |
133 "test_utils.cc", | 136 "test_utils.cc", |
134 "test_utils.h", | 137 "test_utils.h", |
135 ] | 138 ] |
136 | 139 |
137 public_deps = [ | 140 public_deps = [ |
138 "//mojo/public/c/system", | 141 "//mojo/public/c/system", |
139 "//mojo/public/cpp/system", | 142 "//mojo/public/cpp/system", |
140 ] | 143 ] |
141 | 144 |
142 deps = [ | 145 deps = [ |
143 "//base", | 146 "//base", |
144 "//base/test:test_support", | 147 "//base/test:test_support", |
145 "//mojo/edk/test:test_support", | 148 "//mojo/edk/test:test_support", |
146 "//testing/gtest:gtest", | 149 "//testing/gtest:gtest", |
147 ] | 150 ] |
148 } | 151 } |
149 | 152 |
150 test("mojo_system_unittests") { | 153 test("mojo_system_unittests") { |
151 sources = [ | 154 sources = [ |
152 "awakable_list_unittest.cc", | 155 "awakable_list_unittest.cc", |
153 "core_test_base.cc", | 156 "core_test_base.cc", |
154 "core_test_base.h", | 157 "core_test_base.h", |
155 "core_unittest.cc", | 158 "core_unittest.cc", |
156 "data_pipe_unittest.cc", | |
157 "message_pipe_unittest.cc", | 159 "message_pipe_unittest.cc", |
158 "options_validation_unittest.cc", | 160 "options_validation_unittest.cc", |
159 "platform_handle_dispatcher_unittest.cc", | 161 "platform_handle_dispatcher_unittest.cc", |
160 "shared_buffer_dispatcher_unittest.cc", | 162 "shared_buffer_dispatcher_unittest.cc", |
161 "shared_buffer_unittest.cc", | 163 "shared_buffer_unittest.cc", |
162 "wait_set_dispatcher_unittest.cc", | 164 "wait_set_dispatcher_unittest.cc", |
163 "waiter_test_utils.cc", | 165 "waiter_test_utils.cc", |
164 "waiter_test_utils.h", | 166 "waiter_test_utils.h", |
165 "waiter_unittest.cc", | 167 "waiter_unittest.cc", |
166 "watch_unittest.cc", | 168 "watch_unittest.cc", |
167 ] | 169 ] |
168 | 170 |
169 if (!is_ios) { | 171 if (!is_ios) { |
170 sources += [ "multiprocess_message_pipe_unittest.cc" ] | 172 sources += [ |
| 173 "data_pipe_unittest.cc", |
| 174 "multiprocess_message_pipe_unittest.cc", |
| 175 ] |
171 } | 176 } |
172 | 177 |
173 deps = [ | 178 deps = [ |
174 ":test_utils", | 179 ":test_utils", |
175 "//base", | 180 "//base", |
176 "//base/test:test_support", | 181 "//base/test:test_support", |
177 "//mojo/edk/embedder:embedder_unittests", | 182 "//mojo/edk/embedder:embedder_unittests", |
178 "//mojo/edk/system", | 183 "//mojo/edk/system", |
179 "//mojo/edk/system/ports:tests", | 184 "//mojo/edk/system/ports:tests", |
180 "//mojo/edk/test:run_all_unittests", | 185 "//mojo/edk/test:run_all_unittests", |
181 "//mojo/edk/test:test_support", | 186 "//mojo/edk/test:test_support", |
182 "//testing/gtest", | 187 "//testing/gtest", |
183 ] | 188 ] |
184 | 189 |
185 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] | 190 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] |
186 } | 191 } |
187 | 192 |
188 test("mojo_message_pipe_perftests") { | 193 if (!is_ios) { |
189 sources = [ | 194 test("mojo_message_pipe_perftests") { |
190 "message_pipe_perftest.cc", | 195 sources = [ |
191 ] | 196 "message_pipe_perftest.cc", |
| 197 ] |
192 | 198 |
193 deps = [ | 199 deps = [ |
194 ":test_utils", | 200 ":test_utils", |
195 "//base", | 201 "//base", |
196 "//base/test:test_support", | 202 "//base/test:test_support", |
197 "//mojo/edk/system", | 203 "//mojo/edk/system", |
198 "//mojo/edk/test:run_all_perftests", | 204 "//mojo/edk/test:run_all_perftests", |
199 "//mojo/edk/test:test_support", | 205 "//mojo/edk/test:test_support", |
200 "//testing/gtest", | 206 "//testing/gtest", |
201 ] | 207 ] |
| 208 } |
202 } | 209 } |
OLD | NEW |