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 """Top-level presubmit script for Chromium. | 5 """Top-level presubmit script for Chromium. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into depot_tools. | 8 for more details about the presubmit API built into depot_tools. |
9 """ | 9 """ |
10 | 10 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
184 True, | 184 True, |
185 ( | 185 ( |
186 r"^ui[\\\/]gl[\\\/].*\.cc$", | 186 r"^ui[\\\/]gl[\\\/].*\.cc$", |
187 r"^media[\\\/]gpu[\\\/].*\.cc$", | 187 r"^media[\\\/]gpu[\\\/].*\.cc$", |
188 r"^gpu[\\\/].*\.cc$", | 188 r"^gpu[\\\/].*\.cc$", |
189 ), | 189 ), |
190 ), | 190 ), |
191 ( | 191 ( |
192 'ScopedAllowIO', | 192 'ScopedAllowIO', |
193 ( | 193 ( |
194 'New code should not use ScopedAllowIO. Post a task to the blocking', | 194 'New production code should not use ScopedAllowIO (using it in', |
195 'pool or the FILE thread instead.', | 195 'browser tests is fine). Post a task to the blocking pool or the', |
196 'FILE thread instead.', | |
196 ), | 197 ), |
197 True, | 198 True, |
198 ( | 199 ( |
200 r"^.*browser(|_)test[a-z_]*\.cc$", | |
satorux1
2017/05/30 04:33:20
This pattern is based on the existing pattern
r
Matt Giuca
2017/05/30 05:35:56
Could we extend this to all files with "test" in t
Matt Giuca
2017/05/30 05:48:01
I guess there's no point in allowing it currently
| |
199 r"^base[\\\/]memory[\\\/]shared_memory_posix\.cc$", | 201 r"^base[\\\/]memory[\\\/]shared_memory_posix\.cc$", |
200 r"^base[\\\/]process[\\\/]internal_aix\.cc$", | 202 r"^base[\\\/]process[\\\/]internal_aix\.cc$", |
201 r"^base[\\\/]process[\\\/]process_linux\.cc$", | 203 r"^base[\\\/]process[\\\/]process_linux\.cc$", |
202 r"^base[\\\/]process[\\\/]process_metrics_linux\.cc$", | 204 r"^base[\\\/]process[\\\/]process_metrics_linux\.cc$", |
203 r"^chrome[\\\/]browser[\\\/]chromeos[\\\/]boot_times_recorder\.cc$", | 205 r"^chrome[\\\/]browser[\\\/]chromeos[\\\/]boot_times_recorder\.cc$", |
204 r"^chrome[\\\/]browser[\\\/]lifetime[\\\/]application_lifetime\.cc$", | 206 r"^chrome[\\\/]browser[\\\/]lifetime[\\\/]application_lifetime\.cc$", |
205 r"^chrome[\\\/]browser[\\\/]chromeos[\\\/]" | |
206 "customization_document_browsertest\.cc$", | |
207 r"^components[\\\/]crash[\\\/]app[\\\/]breakpad_mac\.mm$", | 207 r"^components[\\\/]crash[\\\/]app[\\\/]breakpad_mac\.mm$", |
208 r"^content[\\\/]shell[\\\/]browser[\\\/]layout_test[\\\/]" + | 208 r"^content[\\\/]shell[\\\/]browser[\\\/]layout_test[\\\/]" + |
209 r"test_info_extractor\.cc$", | 209 r"test_info_extractor\.cc$", |
210 r"^content[\\\/].*browser(|_)test[a-zA-Z_]*\.cc$", | |
211 r"^content[\\\/]shell[\\\/]browser[\\\/]shell_browser_main\.cc$", | 210 r"^content[\\\/]shell[\\\/]browser[\\\/]shell_browser_main\.cc$", |
212 r"^content[\\\/]shell[\\\/]browser[\\\/]shell_message_filter\.cc$", | 211 r"^content[\\\/]shell[\\\/]browser[\\\/]shell_message_filter\.cc$", |
213 r"^content[\\\/]test[\\\/]ppapi[\\\/]ppapi_test\.cc$", | 212 r"^content[\\\/]test[\\\/]ppapi[\\\/]ppapi_test\.cc$", |
214 r"^mojo[\\\/]edk[\\\/]embedder[\\\/]" + | 213 r"^mojo[\\\/]edk[\\\/]embedder[\\\/]" + |
215 r"simple_platform_shared_buffer_posix\.cc$", | 214 r"simple_platform_shared_buffer_posix\.cc$", |
216 r"^net[\\\/]disk_cache[\\\/]cache_util\.cc$", | 215 r"^net[\\\/]disk_cache[\\\/]cache_util\.cc$", |
217 r"^net[\\\/]cert[\\\/]test_root_certs\.cc$", | 216 r"^net[\\\/]cert[\\\/]test_root_certs\.cc$", |
218 r"^net[\\\/]test[\\\/]embedded_test_server[\\\/]" + | 217 r"^net[\\\/]test[\\\/]embedded_test_server[\\\/]" + |
219 r"embedded_test_server\.cc$", | 218 r"embedded_test_server\.cc$", |
220 r"^net[\\\/]test[\\\/]spawned_test_server[\\\/]local_test_server\.cc$", | 219 r"^net[\\\/]test[\\\/]spawned_test_server[\\\/]local_test_server\.cc$", |
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2464 output_api, | 2463 output_api, |
2465 json_url='http://chromium-status.appspot.com/current?format=json')) | 2464 json_url='http://chromium-status.appspot.com/current?format=json')) |
2466 | 2465 |
2467 results.extend( | 2466 results.extend( |
2468 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) | 2467 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) |
2469 results.extend(input_api.canned_checks.CheckChangeHasBugField( | 2468 results.extend(input_api.canned_checks.CheckChangeHasBugField( |
2470 input_api, output_api)) | 2469 input_api, output_api)) |
2471 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 2470 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
2472 input_api, output_api)) | 2471 input_api, output_api)) |
2473 return results | 2472 return results |
OLD | NEW |