| 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 "display.cc", | 10 "display.cc", |
| 11 "display.h", | 11 "display.h", |
| 12 "display_change_notifier.cc", | |
| 13 "display_change_notifier.h", | |
| 14 "display_export.h", | |
| 15 "display_finder.cc", | 12 "display_finder.cc", |
| 16 "display_finder.h", | 13 "display_finder.h", |
| 17 "display_layout.cc", | |
| 18 "display_layout.h", | |
| 19 "display_layout_builder.cc", | |
| 20 "display_layout_builder.h", | |
| 21 "display_list.cc", | 14 "display_list.cc", |
| 22 "display_list.h", | 15 "display_list.h", |
| 23 "display_observer.cc", | |
| 24 "display_observer.h", | |
| 25 "display_switches.cc", | 16 "display_switches.cc", |
| 26 "display_switches.h", | 17 "display_switches.h", |
| 27 "fake_display_delegate.cc", | |
| 28 "fake_display_delegate.h", | |
| 29 "fake_display_snapshot.cc", | |
| 30 "fake_display_snapshot.h", | |
| 31 "ios/screen_ios.mm", | 18 "ios/screen_ios.mm", |
| 32 "mac/screen_mac.mm", | |
| 33 "screen.cc", | 19 "screen.cc", |
| 34 "screen.h", | 20 "screen.h", |
| 35 "screen_aura.cc", | 21 "screen_aura.cc", |
| 36 "screen_base.cc", | 22 "screen_base.cc", |
| 37 "screen_base.h", | 23 "screen_base.h", |
| 38 "win/display_info.cc", | |
| 39 "win/display_info.h", | |
| 40 "win/dpi.cc", | |
| 41 "win/dpi.h", | |
| 42 "win/scaling_util.cc", | |
| 43 "win/scaling_util.h", | |
| 44 "win/screen_win.cc", | |
| 45 "win/screen_win.h", | |
| 46 "win/screen_win_display.cc", | |
| 47 "win/screen_win_display.h", | |
| 48 ] | 24 ] |
| 49 | 25 |
| 26 if (!is_ios) { |
| 27 sources += [ |
| 28 "display_change_notifier.cc", |
| 29 "display_change_notifier.h", |
| 30 "display_export.h", |
| 31 "display_layout.cc", |
| 32 "display_layout.h", |
| 33 "display_layout_builder.cc", |
| 34 "display_layout_builder.h", |
| 35 "display_observer.cc", |
| 36 "display_observer.h", |
| 37 "fake_display_delegate.cc", |
| 38 "fake_display_delegate.h", |
| 39 "fake_display_snapshot.cc", |
| 40 "fake_display_snapshot.h", |
| 41 "mac/screen_mac.mm", |
| 42 "win/display_info.cc", |
| 43 "win/display_info.h", |
| 44 "win/dpi.cc", |
| 45 "win/dpi.h", |
| 46 "win/scaling_util.cc", |
| 47 "win/scaling_util.h", |
| 48 "win/screen_win.cc", |
| 49 "win/screen_win.h", |
| 50 "win/screen_win_display.cc", |
| 51 "win/screen_win_display.h", |
| 52 ] |
| 53 } |
| 54 |
| 50 defines = [ "DISPLAY_IMPLEMENTATION" ] | 55 defines = [ "DISPLAY_IMPLEMENTATION" ] |
| 51 | 56 |
| 52 public_deps = [ | 57 public_deps = [ |
| 53 "//ui/display/types", | 58 "//ui/display/types", |
| 54 "//ui/gfx:gfx", | 59 "//ui/gfx:gfx", |
| 55 ] | 60 ] |
| 56 | 61 |
| 57 deps = [ | 62 deps = [ |
| 58 "//base", | 63 "//base", |
| 59 "//third_party/re2", | 64 "//third_party/re2", |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 "//ui/gfx", | 130 "//ui/gfx", |
| 126 "//ui/gfx:test_support", | 131 "//ui/gfx:test_support", |
| 127 "//ui/gfx/geometry", | 132 "//ui/gfx/geometry", |
| 128 ] | 133 ] |
| 129 } | 134 } |
| 130 | 135 |
| 131 # This test covers all testable components in display. | 136 # This test covers all testable components in display. |
| 132 test("display_unittests") { | 137 test("display_unittests") { |
| 133 sources = [ | 138 sources = [ |
| 134 "display_change_notifier_unittest.cc", | 139 "display_change_notifier_unittest.cc", |
| 135 "display_list_unittest.cc", | |
| 136 "display_unittest.cc", | 140 "display_unittest.cc", |
| 137 "fake_display_snapshot_unittests.cc", | |
| 138 "manager/chromeos/apply_content_protection_task_unittest.cc", | 141 "manager/chromeos/apply_content_protection_task_unittest.cc", |
| 139 "manager/chromeos/configure_displays_task_unittest.cc", | 142 "manager/chromeos/configure_displays_task_unittest.cc", |
| 140 "manager/chromeos/display_change_observer_unittest.cc", | 143 "manager/chromeos/display_change_observer_unittest.cc", |
| 141 "manager/chromeos/display_configurator_unittest.cc", | 144 "manager/chromeos/display_configurator_unittest.cc", |
| 142 "manager/chromeos/query_content_protection_task_unittest.cc", | 145 "manager/chromeos/query_content_protection_task_unittest.cc", |
| 143 "manager/chromeos/touchscreen_util_unittest.cc", | 146 "manager/chromeos/touchscreen_util_unittest.cc", |
| 144 "manager/chromeos/update_display_configuration_task_unittest.cc", | 147 "manager/chromeos/update_display_configuration_task_unittest.cc", |
| 145 "manager/display_layout_builder_unittest.cc", | |
| 146 "manager/display_layout_unittest.cc", | |
| 147 "manager/display_manager_utilities_unittest.cc", | |
| 148 "manager/managed_display_info_unittest.cc", | |
| 149 "screen_unittest.cc", | 148 "screen_unittest.cc", |
| 150 "util/display_util_unittest.cc", | 149 "util/display_util_unittest.cc", |
| 151 "util/edid_parser_unittest.cc", | 150 "util/edid_parser_unittest.cc", |
| 152 "win/scaling_util_unittest.cc", | 151 "win/scaling_util_unittest.cc", |
| 153 "win/screen_win_unittest.cc", | 152 "win/screen_win_unittest.cc", |
| 154 ] | 153 ] |
| 155 | 154 |
| 156 deps = [ | 155 deps = [ |
| 157 ":display", | 156 ":display", |
| 158 ":display_manager_test_api", | 157 ":display_manager_test_api", |
| 159 ":test_support", | 158 ":test_support", |
| 160 "//base", | 159 "//base", |
| 161 "//base/test:run_all_unittests", | 160 "//base/test:run_all_unittests", |
| 162 "//base/test:test_support", | 161 "//base/test:test_support", |
| 163 "//testing/gmock", | 162 "//testing/gmock", |
| 164 "//testing/gtest", | 163 "//testing/gtest", |
| 165 "//ui/display/manager", | 164 "//ui/display/manager", |
| 166 "//ui/display/types", | 165 "//ui/display/types", |
| 167 "//ui/display/util", | 166 "//ui/display/util", |
| 168 "//ui/events/devices", | 167 "//ui/events/devices", |
| 169 "//ui/gfx:test_support", | 168 "//ui/gfx:test_support", |
| 170 "//ui/gfx/geometry", | 169 "//ui/gfx/geometry", |
| 171 ] | 170 ] |
| 172 | 171 |
| 173 if (is_android) { | 172 if (!is_ios) { |
| 174 # Do not run display_change_notifier_unittest.cc on Android because it | 173 sources += [ |
| 175 # does not compile display_observer.cc | 174 "display_list_unittest.cc", |
| 175 "fake_display_snapshot_unittests.cc", |
| 176 "manager/display_layout_builder_unittest.cc", |
| 177 "manager/display_layout_unittest.cc", |
| 178 "manager/display_manager_utilities_unittest.cc", |
| 179 "manager/managed_display_info_unittest.cc", |
| 180 ] |
| 181 } |
| 182 |
| 183 if (is_android || is_ios) { |
| 184 # Do not run display_change_notifier_unittest.cc on Android/iOS because |
| 185 # they do not compile display_observer.cc |
| 176 sources -= [ "display_change_notifier_unittest.cc" ] | 186 sources -= [ "display_change_notifier_unittest.cc" ] |
| 177 } | 187 } |
| 178 | 188 |
| 179 if (is_chromeos && use_x11) { | 189 if (is_chromeos && use_x11) { |
| 180 sources += [ | 190 sources += [ |
| 181 "manager/chromeos/x11/display_util_x11_unittest.cc", | 191 "manager/chromeos/x11/display_util_x11_unittest.cc", |
| 182 "manager/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 192 "manager/chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 183 ] | 193 ] |
| 184 } | 194 } |
| 185 } | 195 } |
| OLD | NEW |