OLD | NEW |
---|---|
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 | 7 |
8 component("display") { | 8 component("display") { |
9 sources = [ | 9 sources = [ |
10 "android/screen_android.cc", | |
10 "chromeos/apply_content_protection_task.cc", | 11 "chromeos/apply_content_protection_task.cc", |
11 "chromeos/apply_content_protection_task.h", | 12 "chromeos/apply_content_protection_task.h", |
12 "chromeos/configure_displays_task.cc", | 13 "chromeos/configure_displays_task.cc", |
13 "chromeos/configure_displays_task.h", | 14 "chromeos/configure_displays_task.h", |
14 "chromeos/display_configurator.cc", | 15 "chromeos/display_configurator.cc", |
15 "chromeos/display_configurator.h", | 16 "chromeos/display_configurator.h", |
16 "chromeos/display_layout_manager.h", | 17 "chromeos/display_layout_manager.h", |
17 "chromeos/display_snapshot_virtual.cc", | 18 "chromeos/display_snapshot_virtual.cc", |
18 "chromeos/display_snapshot_virtual.h", | 19 "chromeos/display_snapshot_virtual.h", |
19 "chromeos/display_util.cc", | 20 "chromeos/display_util.cc", |
20 "chromeos/display_util.h", | 21 "chromeos/display_util.h", |
21 "chromeos/query_content_protection_task.cc", | 22 "chromeos/query_content_protection_task.cc", |
22 "chromeos/query_content_protection_task.h", | 23 "chromeos/query_content_protection_task.h", |
23 "chromeos/update_display_configuration_task.cc", | 24 "chromeos/update_display_configuration_task.cc", |
24 "chromeos/update_display_configuration_task.h", | 25 "chromeos/update_display_configuration_task.h", |
25 "chromeos/x11/display_mode_x11.cc", | 26 "chromeos/x11/display_mode_x11.cc", |
26 "chromeos/x11/display_mode_x11.h", | 27 "chromeos/x11/display_mode_x11.h", |
27 "chromeos/x11/display_snapshot_x11.cc", | 28 "chromeos/x11/display_snapshot_x11.cc", |
28 "chromeos/x11/display_snapshot_x11.h", | 29 "chromeos/x11/display_snapshot_x11.h", |
29 "chromeos/x11/display_util_x11.cc", | 30 "chromeos/x11/display_util_x11.cc", |
30 "chromeos/x11/display_util_x11.h", | 31 "chromeos/x11/display_util_x11.h", |
31 "chromeos/x11/native_display_delegate_x11.cc", | 32 "chromeos/x11/native_display_delegate_x11.cc", |
32 "chromeos/x11/native_display_delegate_x11.h", | 33 "chromeos/x11/native_display_delegate_x11.h", |
33 "chromeos/x11/native_display_event_dispatcher_x11.cc", | 34 "chromeos/x11/native_display_event_dispatcher_x11.cc", |
34 "chromeos/x11/native_display_event_dispatcher_x11.h", | 35 "chromeos/x11/native_display_event_dispatcher_x11.h", |
35 "display.h", | 36 "display.h", |
37 "display_change_notifier.cc", | |
38 "display_change_notifier.h", | |
36 "display_export.h", | 39 "display_export.h", |
37 "display_finder.cc", | 40 "display_finder.cc", |
38 "display_finder.h", | 41 "display_finder.h", |
42 "display_observer.cc", | |
39 "display_observer.h", | 43 "display_observer.h", |
40 "display_switches.cc", | 44 "display_switches.cc", |
41 "display_switches.h", | 45 "display_switches.h", |
46 "ios/screen_ios.mm", | |
47 "mac/screen_mac.mm", | |
42 "manager/display_layout.cc", | 48 "manager/display_layout.cc", |
43 "manager/display_layout.h", | 49 "manager/display_layout.h", |
44 "manager/display_layout_builder.cc", | 50 "manager/display_layout_builder.cc", |
45 "manager/display_layout_builder.h", | 51 "manager/display_layout_builder.h", |
52 "screen.cc", | |
46 "screen.h", | 53 "screen.h", |
54 "screen_aura.cc", | |
47 "win/display_info.cc", | 55 "win/display_info.cc", |
48 "win/display_info.h", | 56 "win/display_info.h", |
49 "win/dpi.cc", | 57 "win/dpi.cc", |
50 "win/dpi.h", | 58 "win/dpi.h", |
51 "win/screen_win.cc", | 59 "win/screen_win.cc", |
52 "win/screen_win.h", | 60 "win/screen_win.h", |
53 "win/screen_win_display.cc", | 61 "win/screen_win_display.cc", |
54 "win/screen_win_display.h", | 62 "win/screen_win_display.h", |
55 ] | 63 ] |
56 | 64 |
(...skipping 29 matching lines...) Expand all Loading... | |
86 "chromeos/x11/display_snapshot_x11.cc", | 94 "chromeos/x11/display_snapshot_x11.cc", |
87 "chromeos/x11/display_snapshot_x11.h", | 95 "chromeos/x11/display_snapshot_x11.h", |
88 "chromeos/x11/display_util_x11.cc", | 96 "chromeos/x11/display_util_x11.cc", |
89 "chromeos/x11/display_util_x11.h", | 97 "chromeos/x11/display_util_x11.h", |
90 "chromeos/x11/native_display_delegate_x11.cc", | 98 "chromeos/x11/native_display_delegate_x11.cc", |
91 "chromeos/x11/native_display_delegate_x11.h", | 99 "chromeos/x11/native_display_delegate_x11.h", |
92 "chromeos/x11/native_display_event_dispatcher_x11.cc", | 100 "chromeos/x11/native_display_event_dispatcher_x11.cc", |
93 "chromeos/x11/native_display_event_dispatcher_x11.h", | 101 "chromeos/x11/native_display_event_dispatcher_x11.h", |
94 ] | 102 ] |
95 } | 103 } |
104 if (!use_aura) { | |
105 sources -= [ "screen_aura.cc" ] | |
106 } | |
107 if (is_android && use_aura) { | |
108 sources -= [ "android/screen_android.cc" ] | |
109 } | |
96 } | 110 } |
97 | 111 |
98 if (is_chromeos) { | 112 if (is_chromeos) { |
99 component("test_util") { | 113 component("test_util") { |
100 output_name = "display_test_util" | 114 output_name = "display_test_util" |
101 sources = [ | 115 sources = [ |
102 "chromeos/test/test_display_snapshot.cc", | 116 "chromeos/test/test_display_snapshot.cc", |
103 "chromeos/test/test_display_snapshot.h", | 117 "chromeos/test/test_display_snapshot.h", |
104 ] | 118 ] |
105 | 119 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
147 # This test covers all testable components in display. | 161 # This test covers all testable components in display. |
148 test("display_unittests") { | 162 test("display_unittests") { |
149 sources = [ | 163 sources = [ |
150 "chromeos/apply_content_protection_task_unittest.cc", | 164 "chromeos/apply_content_protection_task_unittest.cc", |
151 "chromeos/configure_displays_task_unittest.cc", | 165 "chromeos/configure_displays_task_unittest.cc", |
152 "chromeos/display_configurator_unittest.cc", | 166 "chromeos/display_configurator_unittest.cc", |
153 "chromeos/query_content_protection_task_unittest.cc", | 167 "chromeos/query_content_protection_task_unittest.cc", |
154 "chromeos/update_display_configuration_task_unittest.cc", | 168 "chromeos/update_display_configuration_task_unittest.cc", |
155 "chromeos/x11/display_util_x11_unittest.cc", | 169 "chromeos/x11/display_util_x11_unittest.cc", |
156 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 170 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
171 "display_change_notifier_unittest.cc", | |
172 "display_unittest.cc", | |
157 "manager/display_layout_builder_unittest.cc", | 173 "manager/display_layout_builder_unittest.cc", |
158 "manager/display_layout_unittest.cc", | 174 "manager/display_layout_unittest.cc", |
175 "screen_unittest.cc", | |
159 "util/display_util_unittest.cc", | 176 "util/display_util_unittest.cc", |
160 "util/edid_parser_unittest.cc", | 177 "util/edid_parser_unittest.cc", |
161 "win/screen_win_unittest.cc", | 178 "win/screen_win_unittest.cc", |
162 ] | 179 ] |
163 | 180 |
164 deps = [ | 181 deps = [ |
165 ":display", | 182 ":display", |
166 ":test_support", | 183 ":test_support", |
167 "//base", | 184 "//base", |
168 "//base/test:run_all_unittests", | 185 "//base/test:run_all_unittests", |
169 "//base/test:test_support", | 186 "//base/test:test_support", |
170 "//testing/gtest", | 187 "//testing/gtest", |
171 "//ui/display/types", | 188 "//ui/display/types", |
172 "//ui/display/util", | 189 "//ui/display/util", |
173 "//ui/gfx:test_support", | 190 "//ui/gfx:test_support", |
174 "//ui/gfx/geometry", | 191 "//ui/gfx/geometry", |
175 ] | 192 ] |
176 | 193 |
177 if (is_chromeos) { | 194 if (is_chromeos) { |
178 deps += [ ":test_util" ] | 195 deps += [ ":test_util" ] |
179 } | 196 } |
180 | 197 |
198 if (use_aura) { | |
199 sources -= [ "screen_unittest.cc" ] | |
scottmg
2016/05/10 21:34:37
Why is this excluded here?
oshima
2016/05/10 22:00:51
This is minimum tests for non aura platforms. Here
| |
200 } | |
201 | |
202 if (is_android) { | |
203 # Do not run display_change_notifier_unittest.cc on Android because it | |
204 # does not compile display_observer.cc | |
205 sources -= [ "display_change_notifier_unittest.cc" ] | |
206 } | |
207 | |
181 if (is_chromeos && use_ozone) { | 208 if (is_chromeos && use_ozone) { |
182 sources -= [ | 209 sources -= [ |
183 "chromeos/x11/display_util_x11_unittest.cc", | 210 "chromeos/x11/display_util_x11_unittest.cc", |
184 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 211 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
185 ] | 212 ] |
186 } | 213 } |
187 } | 214 } |
OLD | NEW |