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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 sources -= [ "android/screen_android.cc" ] | 119 sources -= [ "android/screen_android.cc" ] |
120 } | 120 } |
121 if (is_mac) { | 121 if (is_mac) { |
122 libs = [ | 122 libs = [ |
123 "AppKit.framework", | 123 "AppKit.framework", |
124 "CoreGraphics.framework", | 124 "CoreGraphics.framework", |
125 ] | 125 ] |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 if (is_chromeos) { | |
130 component("test_util") { | |
131 output_name = "display_test_util" | |
132 sources = [ | |
133 "chromeos/test/test_display_snapshot.cc", | |
134 "chromeos/test/test_display_snapshot.h", | |
135 ] | |
136 | |
137 defines = [ "DISPLAY_IMPLEMENTATION" ] | |
138 | |
139 public_deps = [ | |
140 ":display", | |
141 ] | |
142 deps = [ | |
143 "//base", | |
144 "//ui/display/types", | |
145 "//ui/gfx", | |
146 "//ui/gfx/geometry", | |
147 ] | |
148 } | |
149 } | |
150 | |
151 static_library("test_support") { | 129 static_library("test_support") { |
152 testonly = true | 130 testonly = true |
153 sources = [ | 131 sources = [ |
154 "chromeos/test/action_logger.cc", | 132 "chromeos/test/action_logger.cc", |
155 "chromeos/test/action_logger.h", | 133 "chromeos/test/action_logger.h", |
156 "chromeos/test/action_logger_util.cc", | 134 "chromeos/test/action_logger_util.cc", |
157 "chromeos/test/action_logger_util.h", | 135 "chromeos/test/action_logger_util.h", |
158 "chromeos/test/test_display_layout_manager.cc", | 136 "chromeos/test/test_display_layout_manager.cc", |
159 "chromeos/test/test_display_layout_manager.h", | 137 "chromeos/test/test_display_layout_manager.h", |
160 "chromeos/test/test_native_display_delegate.cc", | 138 "chromeos/test/test_native_display_delegate.cc", |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 "//base/test:run_all_unittests", | 191 "//base/test:run_all_unittests", |
214 "//base/test:test_support", | 192 "//base/test:test_support", |
215 "//testing/gmock", | 193 "//testing/gmock", |
216 "//testing/gtest", | 194 "//testing/gtest", |
217 "//ui/display/types", | 195 "//ui/display/types", |
218 "//ui/display/util", | 196 "//ui/display/util", |
219 "//ui/gfx:test_support", | 197 "//ui/gfx:test_support", |
220 "//ui/gfx/geometry", | 198 "//ui/gfx/geometry", |
221 ] | 199 ] |
222 | 200 |
223 if (is_chromeos) { | |
224 deps += [ ":test_util" ] | |
225 } | |
226 | |
227 if (use_aura) { | 201 if (use_aura) { |
228 sources -= [ "screen_unittest.cc" ] | 202 sources -= [ "screen_unittest.cc" ] |
229 } | 203 } |
230 | 204 |
231 if (is_android) { | 205 if (is_android) { |
232 # Do not run display_change_notifier_unittest.cc on Android because it | 206 # Do not run display_change_notifier_unittest.cc on Android because it |
233 # does not compile display_observer.cc | 207 # does not compile display_observer.cc |
234 sources -= [ "display_change_notifier_unittest.cc" ] | 208 sources -= [ "display_change_notifier_unittest.cc" ] |
235 } | 209 } |
236 | 210 |
237 if (is_chromeos && use_ozone) { | 211 if (is_chromeos && use_ozone) { |
238 sources -= [ | 212 sources -= [ |
239 "chromeos/x11/display_util_x11_unittest.cc", | 213 "chromeos/x11/display_util_x11_unittest.cc", |
240 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | 214 "chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", |
241 ] | 215 ] |
242 } | 216 } |
243 } | 217 } |
OLD | NEW |