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")
10 "chromeos/apply_content_protection_task.cc",
11 "chromeos/apply_content_protection_task.h",
12 "chromeos/configure_displays_task.cc",
13 "chromeos/configure_displays_task.h",
14 "chromeos/display_configurator.cc",
15 "chromeos/display_configurator.h",
16 "chromeos/display_layout_manager.h",
17 "chromeos/display_util.cc",
18 "chromeos/display_util.h",
19 "chromeos/ozone/display_configurator_ozone.cc",
20 "chromeos/query_content_protection_task.cc",
21 "chromeos/query_content_protection_task.h",
22 "chromeos/update_display_configuration_task.cc",
23 "chromeos/update_display_configuration_task.h",
24 "chromeos/x11/display_configurator_x11.cc",
25 "chromeos/x11/display_mode_x11.cc",
26 "chromeos/x11/display_mode_x11.h",
27 "chromeos/x11/display_snapshot_x11.cc",
28 "chromeos/x11/display_snapshot_x11.h",
29 "chromeos/x11/display_util_x11.cc",
30 "chromeos/x11/display_util_x11.h",
31 "chromeos/x11/native_display_delegate_x11.cc",
32 "chromeos/x11/native_display_delegate_x11.h",
33 "chromeos/x11/native_display_event_dispatcher_x11.cc",
34 "chromeos/x11/native_display_event_dispatcher_x11.h",
36 "display_switches.cc",
40 defines = [ "DISPLAY_IMPLEMENTATION" ]
51 "//build/config/linux:x11",
52 "//build/config/linux:xext",
53 "//build/config/linux:xi",
54 "//build/config/linux:xrandr",
56 deps += [ "//ui/events/platform" ]
58 sources -= [ "chromeos/ozone/display_configurator_ozone.cc" ]
63 deps += [ "//ui/display/types" ]
65 deps += [ "//ui/gfx/x" ]
70 deps += [ "//ui/ozone" ]
73 "chromeos/x11/display_configurator_x11.cc",
74 "chromeos/x11/display_mode_x11.cc",
75 "chromeos/x11/display_mode_x11.h",
76 "chromeos/x11/display_snapshot_x11.cc",
77 "chromeos/x11/display_snapshot_x11.h",
78 "chromeos/x11/display_util_x11.cc",
79 "chromeos/x11/display_util_x11.h",
80 "chromeos/x11/native_display_delegate_x11.cc",
81 "chromeos/x11/native_display_delegate_x11.h",
82 "chromeos/x11/native_display_event_dispatcher_x11.cc",
83 "chromeos/x11/native_display_event_dispatcher_x11.h",
89 component("test_util") {
90 output_name = "display_test_util"
92 "chromeos/test/test_display_snapshot.cc",
93 "chromeos/test/test_display_snapshot.h",
96 defines = [ "DISPLAY_IMPLEMENTATION" ]
108 deps += [ "//ui/display/types" ]
112 source_set("test_support") {
115 "chromeos/test/action_logger.cc",
116 "chromeos/test/action_logger.h",
117 "chromeos/test/action_logger_util.cc",
118 "chromeos/test/action_logger_util.h",
119 "chromeos/test/test_display_layout_manager.cc",
120 "chromeos/test/test_display_layout_manager.h",
121 "chromeos/test/test_native_display_delegate.cc",
122 "chromeos/test/test_native_display_delegate.h",
130 "//ui/display/types",
136 test("display_unittests") {
138 "chromeos/apply_content_protection_task_unittest.cc",
139 "chromeos/configure_displays_task_unittest.cc",
140 "chromeos/display_configurator_unittest.cc",
141 "chromeos/query_content_protection_task_unittest.cc",
142 "chromeos/update_display_configuration_task_unittest.cc",
143 "chromeos/x11/display_util_x11_unittest.cc",
144 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc",
145 "util/display_util_unittest.cc",
146 "util/edid_parser_unittest.cc",
152 "//base/test:run_all_unittests",
162 "//base/test:test_support",
163 "//ui/display/types",
167 if (use_ozone && is_chromeos) {
169 "chromeos/x11/display_util_x11_unittest.cc",
170 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc",