| 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 "android/screen_android.cc", |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ] | 70 ] |
| 71 | 71 |
| 72 defines = [ "DISPLAY_IMPLEMENTATION" ] | 72 defines = [ "DISPLAY_IMPLEMENTATION" ] |
| 73 | 73 |
| 74 public_deps = [ | 74 public_deps = [ |
| 75 "//ui/gfx:gfx", | 75 "//ui/gfx:gfx", |
| 76 ] | 76 ] |
| 77 | 77 |
| 78 deps = [ | 78 deps = [ |
| 79 "//base", | 79 "//base", |
| 80 "//third_party/re2", |
| 80 "//ui/display/types", | 81 "//ui/display/types", |
| 81 "//ui/display/util", | 82 "//ui/display/util", |
| 82 "//ui/gfx", | 83 "//ui/gfx", |
| 83 "//ui/gfx/geometry", | 84 "//ui/gfx/geometry", |
| 84 ] | 85 ] |
| 85 | 86 |
| 86 if (is_chromeos && use_x11) { | 87 if (is_chromeos && use_x11) { |
| 87 sources += [ | 88 sources += [ |
| 88 "chromeos/x11/display_mode_x11.cc", | 89 "chromeos/x11/display_mode_x11.cc", |
| 89 "chromeos/x11/display_mode_x11.h", | 90 "chromeos/x11/display_mode_x11.h", |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 testonly = true | 152 testonly = true |
| 152 sources = [ | 153 sources = [ |
| 153 "chromeos/test/action_logger.cc", | 154 "chromeos/test/action_logger.cc", |
| 154 "chromeos/test/action_logger.h", | 155 "chromeos/test/action_logger.h", |
| 155 "chromeos/test/action_logger_util.cc", | 156 "chromeos/test/action_logger_util.cc", |
| 156 "chromeos/test/action_logger_util.h", | 157 "chromeos/test/action_logger_util.h", |
| 157 "chromeos/test/test_display_layout_manager.cc", | 158 "chromeos/test/test_display_layout_manager.cc", |
| 158 "chromeos/test/test_display_layout_manager.h", | 159 "chromeos/test/test_display_layout_manager.h", |
| 159 "chromeos/test/test_native_display_delegate.cc", | 160 "chromeos/test/test_native_display_delegate.cc", |
| 160 "chromeos/test/test_native_display_delegate.h", | 161 "chromeos/test/test_native_display_delegate.h", |
| 162 "test/display_matchers.cc", |
| 163 "test/display_matchers.h", |
| 161 "test/display_test_util.h", | 164 "test/display_test_util.h", |
| 162 "test/test_screen.cc", | 165 "test/test_screen.cc", |
| 163 "test/test_screen.h", | 166 "test/test_screen.h", |
| 164 "win/test/screen_util_win.cc", | 167 "win/test/screen_util_win.cc", |
| 165 "win/test/screen_util_win.h", | 168 "win/test/screen_util_win.h", |
| 166 ] | 169 ] |
| 167 | 170 |
| 168 public_deps = [ | 171 public_deps = [ |
| 169 ":display", | 172 ":display", |
| 170 ] | 173 ] |
| 171 deps = [ | 174 deps = [ |
| 172 "//base", | 175 "//base", |
| 176 "//testing/gmock", |
| 173 "//ui/display/types", | 177 "//ui/display/types", |
| 174 "//ui/gfx", | 178 "//ui/gfx", |
| 175 "//ui/gfx:test_support", | 179 "//ui/gfx:test_support", |
| 176 "//ui/gfx/geometry", | 180 "//ui/gfx/geometry", |
| 177 ] | 181 ] |
| 178 } | 182 } |
| 179 | 183 |
| 180 # This test covers all testable components in display. | 184 # This test covers all testable components in display. |
| 181 test("display_unittests") { | 185 test("display_unittests") { |
| 182 sources = [ | 186 sources = [ |
| 183 "chromeos/apply_content_protection_task_unittest.cc", | 187 "chromeos/apply_content_protection_task_unittest.cc", |
| 184 "chromeos/configure_displays_task_unittest.cc", | 188 "chromeos/configure_displays_task_unittest.cc", |
| 185 "chromeos/display_configurator_unittest.cc", | 189 "chromeos/display_configurator_unittest.cc", |
| 186 "chromeos/query_content_protection_task_unittest.cc", | 190 "chromeos/query_content_protection_task_unittest.cc", |
| 187 "chromeos/update_display_configuration_task_unittest.cc", | 191 "chromeos/update_display_configuration_task_unittest.cc", |
| 188 "chromeos/x11/display_util_x11_unittest.cc", | 192 "chromeos/x11/display_util_x11_unittest.cc", |
| 189 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 193 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 190 "display_change_notifier_unittest.cc", | 194 "display_change_notifier_unittest.cc", |
| 191 "display_list_unittest.cc", | 195 "display_list_unittest.cc", |
| 192 "display_unittest.cc", | 196 "display_unittest.cc", |
| 197 "fake_display_snapshot_unittests.cc", |
| 193 "manager/display_layout_builder_unittest.cc", | 198 "manager/display_layout_builder_unittest.cc", |
| 194 "manager/display_layout_unittest.cc", | 199 "manager/display_layout_unittest.cc", |
| 195 "manager/display_manager_utilities_unittest.cc", | 200 "manager/display_manager_utilities_unittest.cc", |
| 196 "manager/managed_display_info_unittest.cc", | 201 "manager/managed_display_info_unittest.cc", |
| 197 "screen_unittest.cc", | 202 "screen_unittest.cc", |
| 198 "util/display_util_unittest.cc", | 203 "util/display_util_unittest.cc", |
| 199 "util/edid_parser_unittest.cc", | 204 "util/edid_parser_unittest.cc", |
| 200 "win/scaling_util_unittest.cc", | 205 "win/scaling_util_unittest.cc", |
| 201 "win/screen_win_unittest.cc", | 206 "win/screen_win_unittest.cc", |
| 202 ] | 207 ] |
| 203 | 208 |
| 204 deps = [ | 209 deps = [ |
| 205 ":display", | 210 ":display", |
| 206 ":test_support", | 211 ":test_support", |
| 207 "//base", | 212 "//base", |
| 208 "//base/test:run_all_unittests", | 213 "//base/test:run_all_unittests", |
| 209 "//base/test:test_support", | 214 "//base/test:test_support", |
| 215 "//testing/gmock", |
| 210 "//testing/gtest", | 216 "//testing/gtest", |
| 211 "//ui/display/types", | 217 "//ui/display/types", |
| 212 "//ui/display/util", | 218 "//ui/display/util", |
| 213 "//ui/gfx:test_support", | 219 "//ui/gfx:test_support", |
| 214 "//ui/gfx/geometry", | 220 "//ui/gfx/geometry", |
| 215 ] | 221 ] |
| 216 | 222 |
| 217 if (is_chromeos) { | 223 if (is_chromeos) { |
| 218 deps += [ ":test_util" ] | 224 deps += [ ":test_util" ] |
| 219 } | 225 } |
| 220 | 226 |
| 221 if (use_aura) { | 227 if (use_aura) { |
| 222 sources -= [ "screen_unittest.cc" ] | 228 sources -= [ "screen_unittest.cc" ] |
| 223 } | 229 } |
| 224 | 230 |
| 225 if (is_android) { | 231 if (is_android) { |
| 226 # Do not run display_change_notifier_unittest.cc on Android because it | 232 # Do not run display_change_notifier_unittest.cc on Android because it |
| 227 # does not compile display_observer.cc | 233 # does not compile display_observer.cc |
| 228 sources -= [ "display_change_notifier_unittest.cc" ] | 234 sources -= [ "display_change_notifier_unittest.cc" ] |
| 229 } | 235 } |
| 230 | 236 |
| 231 if (is_chromeos && use_ozone) { | 237 if (is_chromeos && use_ozone) { |
| 232 sources -= [ | 238 sources -= [ |
| 233 "chromeos/x11/display_util_x11_unittest.cc", | 239 "chromeos/x11/display_util_x11_unittest.cc", |
| 234 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 240 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
| 235 ] | 241 ] |
| 236 } | 242 } |
| 237 } | 243 } |
| OLD | NEW |