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
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//testing/test.gni")
11 "chromeos/apply_content_protection_task.cc",
12 "chromeos/apply_content_protection_task.h",
13 "chromeos/configure_displays_task.cc",
14 "chromeos/configure_displays_task.h",
15 "chromeos/display_configurator.cc",
16 "chromeos/display_configurator.h",
17 "chromeos/display_layout_manager.h",
18 "chromeos/display_util.cc",
19 "chromeos/display_util.h",
20 "chromeos/ozone/display_configurator_ozone.cc",
21 "chromeos/query_content_protection_task.cc",
22 "chromeos/query_content_protection_task.h",
23 "chromeos/update_display_configuration_task.cc",
24 "chromeos/update_display_configuration_task.h",
25 "chromeos/x11/display_configurator_x11.cc",
26 "chromeos/x11/display_mode_x11.cc",
27 "chromeos/x11/display_mode_x11.h",
28 "chromeos/x11/display_snapshot_x11.cc",
29 "chromeos/x11/display_snapshot_x11.h",
30 "chromeos/x11/display_util_x11.cc",
31 "chromeos/x11/display_util_x11.h",
32 "chromeos/x11/native_display_delegate_x11.cc",
33 "chromeos/x11/native_display_delegate_x11.h",
34 "chromeos/x11/native_display_event_dispatcher_x11.cc",
35 "chromeos/x11/native_display_event_dispatcher_x11.h",
37 "display_switches.cc",
41 defines = [ "DISPLAY_IMPLEMENTATION" ]
52 sources -= [ "chromeos/ozone/display_configurator_ozone.cc" ]
54 "//build/config/linux:x11",
55 "//build/config/linux:xext",
56 "//build/config/linux:xi",
57 "//build/config/linux:xrandr",
59 deps += [ "//ui/events/platform" ]
64 deps += [ "//ui/gfx/x" ]
68 deps += [ "//ui/ozone" ]
70 "chromeos/x11/display_configurator_x11.cc",
71 "chromeos/x11/display_mode_x11.cc",
72 "chromeos/x11/display_mode_x11.h",
73 "chromeos/x11/display_snapshot_x11.cc",
74 "chromeos/x11/display_snapshot_x11.h",
75 "chromeos/x11/display_util_x11.cc",
76 "chromeos/x11/display_util_x11.h",
77 "chromeos/x11/native_display_delegate_x11.cc",
78 "chromeos/x11/native_display_delegate_x11.h",
79 "chromeos/x11/native_display_event_dispatcher_x11.cc",
80 "chromeos/x11/native_display_event_dispatcher_x11.h",
85 component("test_util") {
86 output_name = "display_test_util"
88 "chromeos/test/test_display_snapshot.cc",
89 "chromeos/test/test_display_snapshot.h",
92 defines = [ "DISPLAY_IMPLEMENTATION" ]
105 source_set("test_support") {
108 "chromeos/test/action_logger.cc",
109 "chromeos/test/action_logger.h",
110 "chromeos/test/action_logger_util.cc",
111 "chromeos/test/action_logger_util.h",
112 "chromeos/test/test_display_layout_manager.cc",
113 "chromeos/test/test_display_layout_manager.h",
114 "chromeos/test/test_native_display_delegate.cc",
115 "chromeos/test/test_native_display_delegate.h",
123 "//ui/display/types",
130 # This test covers the ChromeOS "display" target as well as the cross-platform
131 # //display/util target.
132 test("display_unittests") {
134 "chromeos/apply_content_protection_task_unittest.cc",
135 "chromeos/configure_displays_task_unittest.cc",
136 "chromeos/display_configurator_unittest.cc",
137 "chromeos/query_content_protection_task_unittest.cc",
138 "chromeos/update_display_configuration_task_unittest.cc",
139 "chromeos/x11/display_util_x11_unittest.cc",
140 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc",
141 "util/display_util_unittest.cc",
142 "util/edid_parser_unittest.cc",
147 "//base/test:run_all_unittests",
158 "//base/test:test_support",
159 "//ui/display/types",
163 if (use_ozone && is_chromeos) {
165 "chromeos/x11/display_util_x11_unittest.cc",
166 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc",