| 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 "chromeos/apply_content_protection_task.cc", | 10 "chromeos/apply_content_protection_task.cc", |
| 11 "chromeos/apply_content_protection_task.h", | 11 "chromeos/apply_content_protection_task.h", |
| 12 "chromeos/configure_displays_task.cc", | 12 "chromeos/configure_displays_task.cc", |
| 13 "chromeos/configure_displays_task.h", | 13 "chromeos/configure_displays_task.h", |
| 14 "chromeos/display_configurator.cc", | 14 "chromeos/display_configurator.cc", |
| 15 "chromeos/display_configurator.h", | 15 "chromeos/display_configurator.h", |
| 16 "chromeos/display_layout_manager.h", | 16 "chromeos/display_layout_manager.h", |
| 17 "chromeos/display_snapshot_virtual.cc", | 17 "chromeos/display_snapshot_virtual.cc", |
| 18 "chromeos/display_snapshot_virtual.h", | 18 "chromeos/display_snapshot_virtual.h", |
| 19 "chromeos/display_util.cc", | 19 "chromeos/display_util.cc", |
| 20 "chromeos/display_util.h", | 20 "chromeos/display_util.h", |
| 21 "chromeos/query_content_protection_task.cc", | 21 "chromeos/query_content_protection_task.cc", |
| 22 "chromeos/query_content_protection_task.h", | 22 "chromeos/query_content_protection_task.h", |
| 23 "chromeos/touchscreen_util.cc", |
| 24 "chromeos/touchscreen_util.h", |
| 23 "chromeos/update_display_configuration_task.cc", | 25 "chromeos/update_display_configuration_task.cc", |
| 24 "chromeos/update_display_configuration_task.h", | 26 "chromeos/update_display_configuration_task.h", |
| 25 "display.cc", | 27 "display.cc", |
| 26 "display.h", | 28 "display.h", |
| 27 "display_change_notifier.cc", | 29 "display_change_notifier.cc", |
| 28 "display_change_notifier.h", | 30 "display_change_notifier.h", |
| 29 "display_export.h", | 31 "display_export.h", |
| 30 "display_finder.cc", | 32 "display_finder.cc", |
| 31 "display_finder.h", | 33 "display_finder.h", |
| 32 "display_list.cc", | 34 "display_list.cc", |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 76 |
| 75 public_deps = [ | 77 public_deps = [ |
| 76 "//ui/display/types", | 78 "//ui/display/types", |
| 77 "//ui/gfx:gfx", | 79 "//ui/gfx:gfx", |
| 78 ] | 80 ] |
| 79 | 81 |
| 80 deps = [ | 82 deps = [ |
| 81 "//base", | 83 "//base", |
| 82 "//third_party/re2", | 84 "//third_party/re2", |
| 83 "//ui/display/util", | 85 "//ui/display/util", |
| 86 "//ui/events/devices", |
| 84 "//ui/gfx", | 87 "//ui/gfx", |
| 85 "//ui/gfx/geometry", | 88 "//ui/gfx/geometry", |
| 86 ] | 89 ] |
| 87 | 90 |
| 88 if (is_chromeos && use_x11) { | 91 if (is_chromeos && use_x11) { |
| 89 sources += [ | 92 sources += [ |
| 90 "chromeos/x11/display_mode_x11.cc", | 93 "chromeos/x11/display_mode_x11.cc", |
| 91 "chromeos/x11/display_mode_x11.h", | 94 "chromeos/x11/display_mode_x11.h", |
| 92 "chromeos/x11/display_snapshot_x11.cc", | 95 "chromeos/x11/display_snapshot_x11.cc", |
| 93 "chromeos/x11/display_snapshot_x11.h", | 96 "chromeos/x11/display_snapshot_x11.h", |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 ] | 181 ] |
| 179 } | 182 } |
| 180 | 183 |
| 181 # This test covers all testable components in display. | 184 # This test covers all testable components in display. |
| 182 test("display_unittests") { | 185 test("display_unittests") { |
| 183 sources = [ | 186 sources = [ |
| 184 "chromeos/apply_content_protection_task_unittest.cc", | 187 "chromeos/apply_content_protection_task_unittest.cc", |
| 185 "chromeos/configure_displays_task_unittest.cc", | 188 "chromeos/configure_displays_task_unittest.cc", |
| 186 "chromeos/display_configurator_unittest.cc", | 189 "chromeos/display_configurator_unittest.cc", |
| 187 "chromeos/query_content_protection_task_unittest.cc", | 190 "chromeos/query_content_protection_task_unittest.cc", |
| 191 "chromeos/touchscreen_util_unittest.cc", |
| 188 "chromeos/update_display_configuration_task_unittest.cc", | 192 "chromeos/update_display_configuration_task_unittest.cc", |
| 189 "chromeos/x11/display_util_x11_unittest.cc", | |
| 190 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | |
| 191 "display_change_notifier_unittest.cc", | 193 "display_change_notifier_unittest.cc", |
| 192 "display_list_unittest.cc", | 194 "display_list_unittest.cc", |
| 193 "display_unittest.cc", | 195 "display_unittest.cc", |
| 194 "fake_display_snapshot_unittests.cc", | 196 "fake_display_snapshot_unittests.cc", |
| 195 "manager/display_layout_builder_unittest.cc", | 197 "manager/display_layout_builder_unittest.cc", |
| 196 "manager/display_layout_unittest.cc", | 198 "manager/display_layout_unittest.cc", |
| 197 "manager/display_manager_utilities_unittest.cc", | 199 "manager/display_manager_utilities_unittest.cc", |
| 198 "manager/managed_display_info_unittest.cc", | 200 "manager/managed_display_info_unittest.cc", |
| 199 "screen_unittest.cc", | 201 "screen_unittest.cc", |
| 200 "util/display_util_unittest.cc", | 202 "util/display_util_unittest.cc", |
| 201 "util/edid_parser_unittest.cc", | 203 "util/edid_parser_unittest.cc", |
| 202 "win/scaling_util_unittest.cc", | 204 "win/scaling_util_unittest.cc", |
| 203 "win/screen_win_unittest.cc", | 205 "win/screen_win_unittest.cc", |
| 204 ] | 206 ] |
| 205 | 207 |
| 206 deps = [ | 208 deps = [ |
| 207 ":display", | 209 ":display", |
| 210 ":display_manager_test_api", |
| 208 ":test_support", | 211 ":test_support", |
| 209 "//base", | 212 "//base", |
| 210 "//base/test:run_all_unittests", | 213 "//base/test:run_all_unittests", |
| 211 "//base/test:test_support", | 214 "//base/test:test_support", |
| 212 "//testing/gmock", | 215 "//testing/gmock", |
| 213 "//testing/gtest", | 216 "//testing/gtest", |
| 214 "//ui/display/types", | 217 "//ui/display/types", |
| 215 "//ui/display/util", | 218 "//ui/display/util", |
| 219 "//ui/events/devices", |
| 216 "//ui/gfx:test_support", | 220 "//ui/gfx:test_support", |
| 217 "//ui/gfx/geometry", | 221 "//ui/gfx/geometry", |
| 218 ] | 222 ] |
| 219 | 223 |
| 220 if (is_android) { | 224 if (is_android) { |
| 221 # Do not run display_change_notifier_unittest.cc on Android because it | 225 # Do not run display_change_notifier_unittest.cc on Android because it |
| 222 # does not compile display_observer.cc | 226 # does not compile display_observer.cc |
| 223 sources -= [ "display_change_notifier_unittest.cc" ] | 227 sources -= [ "display_change_notifier_unittest.cc" ] |
| 224 } | 228 } |
| 225 | 229 |
| 226 if (is_chromeos && use_ozone) { | 230 if (is_chromeos && use_x11) { |
| 227 sources -= [ | 231 sources += [ |
| 228 "chromeos/x11/display_util_x11_unittest.cc", | 232 "chromeos/x11/display_util_x11_unittest.cc", |
| 229 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 233 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 230 ] | 234 ] |
| 231 } | 235 } |
| 232 } | 236 } |
| OLD | NEW |