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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 'See http://www.chromium.org/Home/chromium-security/education/security-tips-
for-ipc') | 326 'See http://www.chromium.org/Home/chromium-security/education/security-tips-
for-ipc') |
327 | 327 |
328 | 328 |
329 _VALID_OS_MACROS = ( | 329 _VALID_OS_MACROS = ( |
330 # Please keep sorted. | 330 # Please keep sorted. |
331 'OS_ANDROID', | 331 'OS_ANDROID', |
332 'OS_BSD', | 332 'OS_BSD', |
333 'OS_CAT', # For testing. | 333 'OS_CAT', # For testing. |
334 'OS_CHROMEOS', | 334 'OS_CHROMEOS', |
335 'OS_FREEBSD', | 335 'OS_FREEBSD', |
| 336 'OS_FUCHSIA', |
336 'OS_IOS', | 337 'OS_IOS', |
337 'OS_LINUX', | 338 'OS_LINUX', |
338 'OS_MACOSX', | 339 'OS_MACOSX', |
339 'OS_NACL', | 340 'OS_NACL', |
340 'OS_NACL_NONSFI', | 341 'OS_NACL_NONSFI', |
341 'OS_NACL_SFI', | 342 'OS_NACL_SFI', |
342 'OS_NETBSD', | 343 'OS_NETBSD', |
343 'OS_OPENBSD', | 344 'OS_OPENBSD', |
344 'OS_POSIX', | 345 'OS_POSIX', |
345 'OS_QNX', | 346 'OS_QNX', |
(...skipping 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2386 output_api, | 2387 output_api, |
2387 json_url='http://chromium-status.appspot.com/current?format=json')) | 2388 json_url='http://chromium-status.appspot.com/current?format=json')) |
2388 | 2389 |
2389 results.extend( | 2390 results.extend( |
2390 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) | 2391 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) |
2391 results.extend(input_api.canned_checks.CheckChangeHasBugField( | 2392 results.extend(input_api.canned_checks.CheckChangeHasBugField( |
2392 input_api, output_api)) | 2393 input_api, output_api)) |
2393 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 2394 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
2394 input_api, output_api)) | 2395 input_api, output_api)) |
2395 return results | 2396 return results |
OLD | NEW |