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

Side by Side Diff: components/mus/ws/BUILD.gn

Issue 1771393002: Convert mus apptests to shelltests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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/ui.gni") 5 import("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.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 9
10 source_set("lib") { 10 source_set("lib") {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 "//components/mus/public/interfaces", 125 "//components/mus/public/interfaces",
126 "//mojo/common", 126 "//mojo/common",
127 "//mojo/public/cpp/bindings:bindings", 127 "//mojo/public/cpp/bindings:bindings",
128 "//ui/mojo/geometry:interfaces", 128 "//ui/mojo/geometry:interfaces",
129 ] 129 ]
130 } 130 }
131 131
132 group("tests") { 132 group("tests") {
133 testonly = true 133 testonly = true
134 deps = [ 134 deps = [
135 ":apptests",
136 ":window_manager_unittests", 135 ":window_manager_unittests",
137 ] 136 ]
138 if (!is_android) { 137 if (!is_android) {
139 deps += 138 deps += [
140 [ "//components/mus/public/cpp/tests:mojo_view_manager_lib_unittests" ] 139 ":window_manager_shelltests",
140 "//components/mus/public/cpp/tests:mojo_view_manager_lib_unittests",
141 ]
141 } 142 }
142 } 143 }
143 144
144 test("window_manager_unittests") { 145 test("window_manager_unittests") {
145 sources = [ 146 sources = [
146 "display_unittest.cc", 147 "display_unittest.cc",
147 "event_dispatcher_unittest.cc", 148 "event_dispatcher_unittest.cc",
148 "focus_controller_unittest.cc", 149 "focus_controller_unittest.cc",
149 "server_window_drawn_tracker_unittest.cc", 150 "server_window_drawn_tracker_unittest.cc",
150 "server_window_surface_manager_test_api.cc", 151 "server_window_surface_manager_test_api.cc",
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 "//ui/gfx:test_support", 186 "//ui/gfx:test_support",
186 "//ui/gfx/geometry", 187 "//ui/gfx/geometry",
187 "//ui/mojo/geometry:interfaces", 188 "//ui/mojo/geometry:interfaces",
188 ] 189 ]
189 190
190 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. 191 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
191 deps += [ "//third_party/mesa:osmesa" ] 192 deps += [ "//third_party/mesa:osmesa" ]
192 } 193 }
193 } 194 }
194 195
195 mojo_native_application("apptests") { 196 test("window_manager_shelltests") {
Ben Goodger (Google) 2016/03/08 18:07:23 rather than calling these out as a separate test s
196 output_name = "mus_apptests"
197 testonly = true
198
199 sources = [ 197 sources = [
200 "window_manager_client_apptest.cc", 198 "window_manager_client_shelltest.cc",
201 "window_tree_apptest.cc", 199 "window_tree_shelltest.cc",
202 ] 200 ]
203 201
204 deps = [ 202 deps = [
205 ":manifest",
206 ":test_support", 203 ":test_support",
204 ":window_manager_shelltests_manifest",
207 "//base", 205 "//base",
208 "//base/test:test_config", 206 "//base/test:test_config",
209 "//components/mus/common:mus_common", 207 "//components/mus/common:mus_common",
210 "//components/mus/public/cpp", 208 "//components/mus/public/cpp",
211 "//components/mus/public/cpp/tests:test_support", 209 "//components/mus/public/cpp/tests:test_support",
212 "//components/mus/public/interfaces", 210 "//components/mus/public/interfaces",
213 "//mojo/converters/geometry", 211 "//mojo/converters/geometry",
212 "//mojo/shell/public/cpp:shell_test_support",
214 "//mojo/shell/public/cpp:sources", 213 "//mojo/shell/public/cpp:sources",
215 "//mojo/shell/public/cpp:test_support", 214 "//mojo/shell/public/cpp:test_support",
215 "//mojo/shell/public/cpp/test:run_all_shelltests",
216 "//ui/gfx:test_support", 216 "//ui/gfx:test_support",
217 "//ui/gfx/geometry", 217 "//ui/gfx/geometry",
218 "//ui/gl",
218 "//ui/mojo/geometry:interfaces", 219 "//ui/mojo/geometry:interfaces",
219 "//ui/mojo/geometry:util", 220 "//ui/mojo/geometry:util",
220 ] 221 ]
221 222
222 data_deps = [
223 ":lib",
224 ]
225
226 if (use_x11) { 223 if (use_x11) {
227 deps += [ "//tools/xdisplaycheck" ] 224 deps += [ "//tools/xdisplaycheck" ]
228 } 225 }
229 } 226 }
230 227
231 mojo_application_manifest("manifest") { 228 mojo_application_manifest("window_manager_shelltests_manifest") {
232 application_name = "mus_apptests" 229 application_name = "window_manager_shelltests_app"
233 source = "apptest_manifest.json" 230 source = "window_manager_shelltests_app_manifest.json"
234 } 231 }
OLDNEW
« no previous file with comments | « components/mus/public/cpp/tests/window_server_test_base.cc ('k') | components/mus/ws/apptest_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698