Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: ui/views/mus/BUILD.gn

Issue 1972363002: mus: Add views_mus_interactive_ui_tests target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: similarity Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/buildbot/gn_isolate_map.pyl ('k') | ui/views/mus/interactive_ui_tests_manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//mojo/public/mojo_application.gni") 7 import("//mojo/public/mojo_application.gni")
8 import("//mojo/public/mojo_application_manifest.gni") 8 import("//mojo/public/mojo_application_manifest.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//tools/grit/repack.gni") 10 import("//tools/grit/repack.gni")
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 public_deps = [ 120 public_deps = [
121 ":mus", 121 ":mus",
122 ] 122 ]
123 if (!is_component_build) { 123 if (!is_component_build) {
124 deps = [ 124 deps = [
125 "//mojo/gles2", 125 "//mojo/gles2",
126 ] 126 ]
127 } 127 }
128 } 128 }
129 129
130 source_set("test_support") {
131 testonly = true
132
133 sources = [
134 "../run_all_unittests.cc",
135 "../run_all_unittests.h",
136 "../test/native_widget_factory_mus.cc",
137 "platform_test_helper_mus.cc",
138 ]
139
140 deps = [
141 ":mus",
142 "//base",
143 "//base/test:test_support",
144 "//services/shell/background:lib",
145 "//services/shell/background/tests:test_support",
146 "//services/shell/public/cpp:sources",
147 "//testing/gtest",
148 "//ui/aura",
149 "//ui/gl:test_support",
150 "//ui/resources",
151 "//ui/resources:ui_test_pak",
152 "//ui/views",
153 "//ui/views:test_support_internal",
154 ]
155
156 # TODO(thakis): This should be a data_deps on //ui/resources:ui_test_pak, but
157 # that has no effect. (See similar TODOs elsewhere ui_test.pak is listed)
158 data = [
Dirk Pranke 2016/05/16 17:35:06 This should be `data_deps = [ "//ui/resources:ui_t
James Cook 2016/05/16 20:09:46 Done here and in ui/views/BUILD.gn, which seems to
159 "$root_out_dir/ui_test.pak",
160 ]
161 }
162
130 test("views_mus_unittests") { 163 test("views_mus_unittests") {
131 testonly = true 164 testonly = true
132 165
133 configs += [ "//build/config:precompiled_headers" ] 166 configs += [ "//build/config:precompiled_headers" ]
134 167
135 # TODO(sky): add more files. 168 # TODO(sky): add more files.
136 sources = [ 169 sources = [
137 "../run_all_unittests.cc",
138 "../run_all_unittests.h",
139 "../test/native_widget_factory_mus.cc",
140 "../view_targeter_unittest.cc", 170 "../view_targeter_unittest.cc",
141 "../widget/native_widget_unittest.cc", 171 "../widget/native_widget_unittest.cc",
142 "../widget/widget_unittest.cc", 172 "../widget/widget_unittest.cc",
143 "native_widget_mus_unittest.cc", 173 "native_widget_mus_unittest.cc",
144 "platform_test_helper_mus.cc",
145 "platform_window_mus_unittest.cc", 174 "platform_window_mus_unittest.cc",
146 "run_all_unittests_mus.cc", 175 "run_all_unittests_mus.cc",
147 "screen_mus_unittest.cc", 176 "screen_mus_unittest.cc",
148 "window_manager_connection_unittest.cc", 177 "window_manager_connection_unittest.cc",
149 ] 178 ]
150 179
151 deps = [ 180 deps = [
152 ":mus", 181 ":mus",
182 ":test_support",
153 "//base", 183 "//base",
154 "//base:i18n", 184 "//base:i18n",
155 "//base/test:test_support",
156 "//cc", 185 "//cc",
157 "//components/mus/public/cpp", 186 "//components/mus/public/cpp",
158 "//components/mus/public/interfaces", 187 "//components/mus/public/interfaces",
159 "//services/shell/background:lib", 188 "//services/shell/background:main", # Provides main().
160 "//services/shell/background:main",
161 "//services/shell/background/tests:test_support",
162 "//services/shell/public/cpp:sources",
163 "//services/shell/runner/host:lib",
164 "//skia", 189 "//skia",
165 "//testing/gtest", 190 "//testing/gtest",
166 "//third_party/icu", 191 "//third_party/icu",
167 "//ui/accessibility", 192 "//ui/accessibility",
168 "//ui/aura", 193 "//ui/aura",
169 "//ui/aura:test_support", 194 "//ui/aura:test_support",
170 "//ui/base", 195 "//ui/base",
171 "//ui/base:test_support", 196 "//ui/base:test_support",
172 "//ui/base/ime", 197 "//ui/base/ime",
173 "//ui/compositor:test_support", 198 "//ui/compositor:test_support",
174 "//ui/events:dom_keycode_converter", 199 "//ui/events:dom_keycode_converter",
175 "//ui/events:events_base", 200 "//ui/events:events_base",
176 "//ui/events:test_support", 201 "//ui/events:test_support",
177 "//ui/events/platform", 202 "//ui/events/platform",
178 "//ui/gfx:test_support", 203 "//ui/gfx:test_support",
179 "//ui/gfx/geometry", 204 "//ui/gfx/geometry",
180 "//ui/gl:test_support",
181 "//ui/resources",
182 "//ui/resources:ui_test_pak",
183 "//ui/strings", 205 "//ui/strings",
184 "//ui/touch_selection",
185 "//ui/views", 206 "//ui/views",
186 "//ui/views:test_support_internal", 207 "//ui/views:test_support_internal",
187 "//ui/wm", 208 "//ui/wm",
188 "//url", 209 "//url",
189 ] 210 ]
190 211
191 data_deps = [ 212 data_deps = [
192 ":unittests_manifest", 213 ":unittests_manifest",
193 "//mash/wm", 214 "//mash/wm",
194 ] 215 ]
195 216
196 # TODO(thakis): This should be a data_deps on //ui/resources:ui_test_pak, but
197 # that has no effect. (See similar TODOs elsewhere ui_test.pak is listed)
198 data = [
199 "$root_out_dir/ui_test.pak",
200 ]
201
202 if (is_win) { 217 if (is_win) {
203 deps += [ 218 deps += [
204 "//build/win:default_exe_manifest", 219 "//build/win:default_exe_manifest",
205 "//third_party/iaccessible2", 220 "//third_party/iaccessible2",
206 "//third_party/wtl", 221 "//third_party/wtl",
207 ] 222 ]
208 libs = [ 223 libs = [
209 "imm32.lib", 224 "imm32.lib",
210 "oleacc.lib", 225 "oleacc.lib",
211 "comctl32.lib", 226 "comctl32.lib",
212 ] 227 ]
213 } 228 }
214 229
215 if (use_x11) { 230 if (use_x11) {
216 configs += [ 231 configs += [
217 "//build/config/linux:x11", 232 "//build/config/linux:x11",
218 "//build/config/linux:xext", 233 "//build/config/linux:xext",
219 ] 234 ]
220 deps += [ 235 deps += [
221 "//ui/events/devices", 236 "//ui/events/devices",
222 "//ui/events/platform/x11", 237 "//ui/events/platform/x11",
223 "//ui/gfx/x", 238 "//ui/gfx/x",
224 ] 239 ]
225 } 240 }
226 } 241 }
227 242
243 # Tests that must run sequentially because they access system-wide features
244 # like capture.
245 test("views_mus_interactive_ui_tests") {
246 testonly = true
247
248 configs += [ "//build/config:precompiled_headers" ]
249
250 sources = [
251 "../widget/widget_interactive_uitest.cc",
252 "interactive_ui_tests_mus.cc",
253 ]
254
255 deps = [
256 ":mus",
257 ":test_support",
258 "//base",
259 "//services/shell/background:main", # Provides main().
260 "//ui/aura",
261 "//ui/base",
262 "//ui/base/ime",
263 "//ui/events:events_base",
264 "//ui/events:test_support",
265 "//ui/gl:test_support",
266 "//ui/touch_selection",
267 "//ui/views",
268 "//ui/views:test_support_internal",
269 "//ui/wm",
270 ]
271
272 data_deps = [
273 ":interactive_ui_tests_manifest",
274 "//mash/wm",
275 ]
276
277 if (is_win) {
278 deps += [
279 "//build/win:default_exe_manifest",
280 "//third_party/iaccessible2",
281 "//third_party/wtl",
282 ]
283 libs = [
284 "imm32.lib",
285 "oleacc.lib",
286 "comctl32.lib",
287 ]
288 }
289 }
290
228 mojo_application_manifest("unittests_manifest") { 291 mojo_application_manifest("unittests_manifest") {
229 type = "exe" 292 type = "exe"
230 application_name = "views_mus_unittests" 293 application_name = "views_mus_unittests"
231 source = "unittests_manifest.json" 294 source = "unittests_manifest.json"
232 } 295 }
233 296
297 mojo_application_manifest("interactive_ui_tests_manifest") {
298 type = "exe"
299 application_name = "views_mus_interactive_ui_tests"
300 source = "interactive_ui_tests_manifest.json"
301 }
302
234 group("for_component") { 303 group("for_component") {
235 public_deps = [ 304 public_deps = [
236 ":mus", 305 ":mus",
237 ] 306 ]
238 deps = [ 307 deps = [
239 "//mojo/gles2", 308 "//mojo/gles2",
240 ] 309 ]
241 } 310 }
OLDNEW
« no previous file with comments | « testing/buildbot/gn_isolate_map.pyl ('k') | ui/views/mus/interactive_ui_tests_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698