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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 component("message_center") { | 9 component("message_center") { |
10 deps = [ | 10 deps = [ |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 deps = [ | 170 deps = [ |
171 "//base", | 171 "//base", |
172 "//base/test:test_support", | 172 "//base/test:test_support", |
173 "//skia", | 173 "//skia", |
174 "//ui/gfx", | 174 "//ui/gfx", |
175 "//ui/gfx/geometry", | 175 "//ui/gfx/geometry", |
176 ] | 176 ] |
177 } | 177 } |
178 | 178 |
179 if (!is_win || link_chrome_on_windows) { | 179 test("message_center_unittests") { |
180 test("message_center_unittests") { | 180 sources = [ |
181 sources = [ | 181 "test/run_all_unittests.cc", |
182 "test/run_all_unittests.cc", | 182 ] |
| 183 |
| 184 deps = [ |
| 185 ":message_center", |
| 186 ":test_support", |
| 187 "//base", |
| 188 "//base/allocator", |
| 189 "//base/test:test_support", |
| 190 "//skia", |
| 191 "//testing/gtest", |
| 192 "//ui/base", |
| 193 "//ui/events", |
| 194 "//ui/gfx", |
| 195 "//ui/gfx/geometry", |
| 196 "//ui/gl", |
| 197 "//ui/resources", |
| 198 "//ui/resources:ui_test_pak", |
| 199 "//url", |
| 200 ] |
| 201 |
| 202 if (enable_notifications && !is_android) { |
| 203 sources += [ |
| 204 "cocoa/notification_controller_unittest.mm", |
| 205 "cocoa/popup_collection_unittest.mm", |
| 206 "cocoa/popup_controller_unittest.mm", |
| 207 "cocoa/settings_controller_unittest.mm", |
| 208 "cocoa/status_item_view_unittest.mm", |
| 209 "cocoa/tray_controller_unittest.mm", |
| 210 "cocoa/tray_view_controller_unittest.mm", |
| 211 "message_center_impl_unittest.cc", |
| 212 "message_center_tray_unittest.cc", |
| 213 "notification_delegate_unittest.cc", |
| 214 "notification_list_unittest.cc", |
183 ] | 215 ] |
184 | 216 |
185 deps = [ | 217 if (is_mac) { |
186 ":message_center", | 218 deps += [ "//ui/gfx:test_support" ] |
187 ":test_support", | 219 } |
188 "//base", | |
189 "//base/allocator", | |
190 "//base/test:test_support", | |
191 "//skia", | |
192 "//testing/gtest", | |
193 "//ui/base", | |
194 "//ui/events", | |
195 "//ui/gfx", | |
196 "//ui/gfx/geometry", | |
197 "//ui/gl", | |
198 "//ui/resources", | |
199 "//ui/resources:ui_test_pak", | |
200 "//url", | |
201 ] | |
202 | 220 |
203 if (enable_notifications && !is_android) { | 221 if (toolkit_views && !is_mac) { |
204 sources += [ | 222 sources += [ |
205 "cocoa/notification_controller_unittest.mm", | 223 "views/bounded_label_unittest.cc", |
206 "cocoa/popup_collection_unittest.mm", | 224 "views/message_center_view_unittest.cc", |
207 "cocoa/popup_controller_unittest.mm", | 225 "views/message_popup_collection_unittest.cc", |
208 "cocoa/settings_controller_unittest.mm", | 226 "views/notification_view_unittest.cc", |
209 "cocoa/status_item_view_unittest.mm", | 227 "views/notifier_settings_view_unittest.cc", |
210 "cocoa/tray_controller_unittest.mm", | |
211 "cocoa/tray_view_controller_unittest.mm", | |
212 "message_center_impl_unittest.cc", | |
213 "message_center_tray_unittest.cc", | |
214 "notification_delegate_unittest.cc", | |
215 "notification_list_unittest.cc", | |
216 ] | 228 ] |
217 | 229 deps += [ |
218 if (is_mac) { | 230 # Compositor is needed by message_center_view_unittest.cc and for the |
219 deps += [ "//ui/gfx:test_support" ] | 231 # fonts used by bounded_label_unittest.cc. |
220 } | 232 "//ui/compositor", |
221 | 233 "//ui/views", |
222 if (toolkit_views && !is_mac) { | 234 "//ui/views:test_support", |
223 sources += [ | 235 ] |
224 "views/bounded_label_unittest.cc", | 236 } |
225 "views/message_center_view_unittest.cc", | 237 } # enable_notifications && !is_android |
226 "views/message_popup_collection_unittest.cc", | |
227 "views/notification_view_unittest.cc", | |
228 "views/notifier_settings_view_unittest.cc", | |
229 ] | |
230 deps += [ | |
231 # Compositor is needed by message_center_view_unittest.cc and for the | |
232 # fonts used by bounded_label_unittest.cc. | |
233 "//ui/compositor", | |
234 "//ui/views", | |
235 "//ui/views:test_support", | |
236 ] | |
237 } | |
238 } # enable_notifications && !is_android | |
239 } | |
240 } | 238 } |
OLD | NEW |