OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 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 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building base_unittests{,.exe}. | 6 Configuration for building base_unittests{,.exe}. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 'gfx/native_theme_unittest.cc', | 133 'gfx/native_theme_unittest.cc', |
134 'gfx/uniscribe_unittest.cc', | 134 'gfx/uniscribe_unittest.cc', |
135 'gfx/vector_canvas_unittest.cc', | 135 'gfx/vector_canvas_unittest.cc', |
136 ] | 136 ] |
137 for remove in to_be_ported_files: | 137 for remove in to_be_ported_files: |
138 input_files.remove(remove) | 138 input_files.remove(remove) |
139 | 139 |
140 if env['PLATFORM'] == 'win32': | 140 if env['PLATFORM'] == 'win32': |
141 # Windows-specific tests. | 141 # Windows-specific tests. |
142 input_files.extend([ | 142 input_files.extend([ |
| 143 'directory_watcher_unittest.cc', |
143 'file_version_info_unittest.cc', | 144 'file_version_info_unittest.cc', |
144 'object_watcher_unittest.cc', | 145 'object_watcher_unittest.cc', |
145 'pe_image_unittest.cc', | 146 'pe_image_unittest.cc', |
146 'sys_string_conversions_win_unittest.cc', | 147 'sys_string_conversions_win_unittest.cc', |
147 'time_unittest_win.cc', | 148 'time_unittest_win.cc', |
148 'win_util_unittest.cc', | 149 'win_util_unittest.cc', |
149 'wmi_util_unittest.cc', | 150 'wmi_util_unittest.cc', |
150 ]) | 151 ]) |
151 | 152 |
152 if env['PLATFORM'] == 'darwin': | 153 if env['PLATFORM'] == 'darwin': |
153 # Mac-specific tests. | 154 # Mac-specific tests. |
154 input_files.extend([ | 155 input_files.extend([ |
155 'platform_test_mac.mm', | 156 'platform_test_mac.mm', |
156 ]) | 157 ]) |
157 | 158 |
158 base_unittests = env.ChromeTestProgram('base_unittests', input_files) | 159 base_unittests = env.ChromeTestProgram('base_unittests', input_files) |
159 | 160 |
160 # Install up a level to allow unit test path assumptions to be valid. | 161 # Install up a level to allow unit test path assumptions to be valid. |
161 installed_base_unittests = env.Install('$TARGET_ROOT', base_unittests) | 162 installed_base_unittests = env.Install('$TARGET_ROOT', base_unittests) |
162 | 163 |
163 env.Alias('base', installed_base_unittests) | 164 env.Alias('base', installed_base_unittests) |
164 | 165 |
165 # TODO(sgk) should this be moved into base.lib like everything else? This will | 166 # TODO(sgk) should this be moved into base.lib like everything else? This will |
166 # require updating a bunch of other SConscripts which link directly against | 167 # require updating a bunch of other SConscripts which link directly against |
167 # this generated object file. | 168 # this generated object file. |
168 env.StaticObject('perftimer.cc') | 169 env.StaticObject('perftimer.cc') |
169 | 170 |
170 # Since run_all_perftests supplies a main, we cannot have it in base.lib | 171 # Since run_all_perftests supplies a main, we cannot have it in base.lib |
171 env.StaticObject('run_all_perftests.cc') | 172 env.StaticObject('run_all_perftests.cc') |
OLD | NEW |