OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 ['exclude', '\\.(cc|mm)$'], | 118 ['exclude', '\\.(cc|mm)$'], |
119 ['include', '^dummy_message_center\\.cc$'], | 119 ['include', '^dummy_message_center\\.cc$'], |
120 ['include', '^message_center_switches\\.cc$'], | 120 ['include', '^message_center_switches\\.cc$'], |
121 ], | 121 ], |
122 }, { # notifications==1 | 122 }, { # notifications==1 |
123 'sources!': [ 'dummy_message_center.cc' ], | 123 'sources!': [ 'dummy_message_center.cc' ], |
124 }], | 124 }], |
125 ], | 125 ], |
126 }, # target_name: message_center | 126 }, # target_name: message_center |
127 { | 127 { |
| 128 'target_name': 'message_center_test_support', |
| 129 'type': 'static_library', |
| 130 'dependencies': [ |
| 131 '../../base/base.gyp:base', |
| 132 '../../base/base.gyp:test_support_base', |
| 133 '../../skia/skia.gyp:skia', |
| 134 '../ui.gyp:ui', |
| 135 'message_center', |
| 136 ], |
| 137 'sources': [ |
| 138 'fake_message_center.h', |
| 139 'fake_message_center.cc', |
| 140 'fake_notifier_settings_provider.h', |
| 141 'fake_notifier_settings_provider.cc', |
| 142 ], |
| 143 }, # target_name: message_center_test_support |
| 144 { |
128 'target_name': 'message_center_unittests', | 145 'target_name': 'message_center_unittests', |
129 'type': 'executable', | 146 'type': 'executable', |
130 'dependencies': [ | 147 'dependencies': [ |
131 '../../base/base.gyp:base', | 148 '../../base/base.gyp:base', |
132 '../../base/base.gyp:test_support_base', | 149 '../../base/base.gyp:test_support_base', |
133 '../../skia/skia.gyp:skia', | 150 '../../skia/skia.gyp:skia', |
134 '../../testing/gtest.gyp:gtest', | 151 '../../testing/gtest.gyp:gtest', |
135 '../ui.gyp:run_ui_unittests', | 152 '../ui.gyp:run_ui_unittests', |
136 '../ui.gyp:ui', | 153 '../ui.gyp:ui', |
137 'message_center', | 154 'message_center', |
| 155 'message_center_test_support', |
138 ], | 156 ], |
139 'sources': [ | 157 'sources': [ |
140 'cocoa/notification_controller_unittest.mm', | 158 'cocoa/notification_controller_unittest.mm', |
141 'cocoa/popup_collection_unittest.mm', | 159 'cocoa/popup_collection_unittest.mm', |
142 'cocoa/popup_controller_unittest.mm', | 160 'cocoa/popup_controller_unittest.mm', |
143 'cocoa/settings_controller_unittest.mm', | 161 'cocoa/settings_controller_unittest.mm', |
144 'cocoa/status_item_view_unittest.mm', | 162 'cocoa/status_item_view_unittest.mm', |
145 'cocoa/tray_controller_unittest.mm', | 163 'cocoa/tray_controller_unittest.mm', |
146 'cocoa/tray_view_controller_unittest.mm', | 164 'cocoa/tray_view_controller_unittest.mm', |
147 'message_center_tray_unittest.cc', | 165 'message_center_tray_unittest.cc', |
148 'message_center_impl_unittest.cc', | 166 'message_center_impl_unittest.cc', |
149 'fake_message_center.h', | |
150 'fake_message_center.cc', | |
151 'fake_notifier_settings_provider.h', | |
152 'fake_notifier_settings_provider.cc', | |
153 'notification_list_unittest.cc', | 167 'notification_list_unittest.cc', |
154 'test/run_all_unittests.cc', | 168 'test/run_all_unittests.cc', |
155 ], | 169 ], |
156 'conditions': [ | 170 'conditions': [ |
157 ['OS=="mac"', { | 171 ['OS=="mac"', { |
158 'dependencies': [ | 172 'dependencies': [ |
159 '../ui.gyp:ui_test_support', | 173 '../ui.gyp:ui_test_support', |
160 ], | 174 ], |
161 }], | 175 }], |
162 ['toolkit_views==1', { | 176 ['toolkit_views==1', { |
(...skipping 14 matching lines...) Expand all Loading... |
177 'sources/': [ | 191 'sources/': [ |
178 # Exclude everything except main(). | 192 # Exclude everything except main(). |
179 ['exclude', '\\.(cc|mm)$'], | 193 ['exclude', '\\.(cc|mm)$'], |
180 ['include', '^test/run_all_unittests\\.cc$'], | 194 ['include', '^test/run_all_unittests\\.cc$'], |
181 ], | 195 ], |
182 }], | 196 }], |
183 ], | 197 ], |
184 }, # target_name: message_center_unittests | 198 }, # target_name: message_center_unittests |
185 ], | 199 ], |
186 } | 200 } |
OLD | NEW |