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