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

Side by Side Diff: services/ui/ws/BUILD.gn

Issue 2740123002: Disable unit tests for Window Manager Client in external window mode (Closed)
Patch Set: Add a comment about external mode. Created 3 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
« no previous file with comments | « no previous file | no next file » | 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/ui.gni") 5 import("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//services/catalog/public/tools/catalog.gni") 7 import("//services/catalog/public/tools/catalog.gni")
8 import("//services/service_manager/public/cpp/service.gni") 8 import("//services/service_manager/public/cpp/service.gni")
9 import("//services/service_manager/public/service_manifest.gni") 9 import("//services/service_manager/public/service_manifest.gni")
10 import("//services/service_manager/public/tools/test/service_test.gni") 10 import("//services/service_manager/public/tools/test/service_test.gni")
11 11
12 # In external window mode, top-level windows are native platform windows i.e.
13 # not children of a Chrome OS window manager's root window.
14 is_external_mode = use_ozone && !is_chromeos
15
12 static_library("lib") { 16 static_library("lib") {
13 sources = [ 17 sources = [
14 "accelerator.cc", 18 "accelerator.cc",
15 "accelerator.h", 19 "accelerator.h",
16 "access_policy.h", 20 "access_policy.h",
17 "access_policy_delegate.h", 21 "access_policy_delegate.h",
18 "accessibility_manager.cc", 22 "accessibility_manager.cc",
19 "accessibility_manager.h", 23 "accessibility_manager.h",
20 "cursor_location_manager.cc", 24 "cursor_location_manager.cc",
21 "cursor_location_manager.h", 25 "cursor_location_manager.h",
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 168 }
165 169
166 static_library("test_support") { 170 static_library("test_support") {
167 testonly = true 171 testonly = true
168 172
169 sources = [ 173 sources = [
170 "test_change_tracker.cc", 174 "test_change_tracker.cc",
171 "test_change_tracker.h", 175 "test_change_tracker.h",
172 "window_server_service_test_base.cc", 176 "window_server_service_test_base.cc",
173 "window_server_service_test_base.h", 177 "window_server_service_test_base.h",
174 "window_server_test_base.cc",
175 "window_server_test_base.h",
176 ] 178 ]
177 179
180 if (!is_external_mode) {
181 # WindowServerTestBase assumes an initial display (and root) is provided
182 # at startup, which is not the case on platforms running external window
183 # mode.
184 sources += [
185 "window_server_test_base.cc",
186 "window_server_test_base.h",
187 ]
188 }
189
178 deps = [ 190 deps = [
179 "//base", 191 "//base",
180 "//base/test:test_config", 192 "//base/test:test_config",
181 "//mojo/common", 193 "//mojo/common",
182 "//mojo/public/cpp/bindings:bindings", 194 "//mojo/public/cpp/bindings:bindings",
183 "//services/service_manager/public/cpp:service_test_support", 195 "//services/service_manager/public/cpp:service_test_support",
184 "//services/service_manager/public/cpp:sources", 196 "//services/service_manager/public/cpp:sources",
185 "//services/ui/common:mus_common", 197 "//services/ui/common:mus_common",
186 "//services/ui/public/cpp", 198 "//services/ui/public/cpp",
187 "//services/ui/public/interfaces", 199 "//services/ui/public/interfaces",
(...skipping 28 matching lines...) Expand all
216 "server_window_drawn_tracker_unittest.cc", 228 "server_window_drawn_tracker_unittest.cc",
217 "test_server_window_delegate.cc", 229 "test_server_window_delegate.cc",
218 "test_server_window_delegate.h", 230 "test_server_window_delegate.h",
219 "test_utils.cc", 231 "test_utils.cc",
220 "test_utils.h", 232 "test_utils.h",
221 "transient_windows_unittest.cc", 233 "transient_windows_unittest.cc",
222 "user_activity_monitor_unittest.cc", 234 "user_activity_monitor_unittest.cc",
223 "user_display_manager_unittest.cc", 235 "user_display_manager_unittest.cc",
224 "window_coordinate_conversions_unittest.cc", 236 "window_coordinate_conversions_unittest.cc",
225 "window_finder_unittest.cc", 237 "window_finder_unittest.cc",
226 "window_manager_client_unittest.cc",
227 "window_manager_state_unittest.cc", 238 "window_manager_state_unittest.cc",
228 "window_tree_client_unittest.cc", 239 "window_tree_client_unittest.cc",
229 "window_tree_unittest.cc", 240 "window_tree_unittest.cc",
230 ] 241 ]
231 242
243 if (!is_external_mode) {
244 # A window manager client is not needed on platforms running external
245 # window mode, since the host system is always the window manager.
246 sources += [ "window_manager_client_unittest.cc" ]
247 }
248
232 catalog = ":mus_ws_unittests_catalog" 249 catalog = ":mus_ws_unittests_catalog"
233 250
234 deps = [ 251 deps = [
235 ":lib", 252 ":lib",
236 ":test_support", 253 ":test_support",
237 "//base", 254 "//base",
238 "//base/test:test_config", 255 "//base/test:test_config",
239 "//base/test:test_support", 256 "//base/test:test_support",
240 "//cc:cc", 257 "//cc:cc",
241 "//gpu/ipc/client", 258 "//gpu/ipc/client",
(...skipping 21 matching lines...) Expand all
263 service_manifest("mus_ws_unittests_app_manifest") { 280 service_manifest("mus_ws_unittests_app_manifest") {
264 name = "mus_ws_unittests_app" 281 name = "mus_ws_unittests_app"
265 source = "mus_ws_unittests_app_manifest.json" 282 source = "mus_ws_unittests_app_manifest.json"
266 } 283 }
267 284
268 catalog("mus_ws_unittests_catalog") { 285 catalog("mus_ws_unittests_catalog") {
269 embedded_services = [ ":mus_ws_unittests_app_manifest" ] 286 embedded_services = [ ":mus_ws_unittests_app_manifest" ]
270 287
271 standalone_services = [ "//services/ui:manifest" ] 288 standalone_services = [ "//services/ui:manifest" ]
272 } 289 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698