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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 338 |
339 | 339 |
340 _VALID_OS_MACROS = ( | 340 _VALID_OS_MACROS = ( |
341 # Please keep sorted. | 341 # Please keep sorted. |
342 'OS_AIX', | 342 'OS_AIX', |
343 'OS_ANDROID', | 343 'OS_ANDROID', |
344 'OS_BSD', | 344 'OS_BSD', |
345 'OS_CAT', # For testing. | 345 'OS_CAT', # For testing. |
346 'OS_CHROMEOS', | 346 'OS_CHROMEOS', |
347 'OS_FREEBSD', | 347 'OS_FREEBSD', |
| 348 'OS_FUCHSIA', |
348 'OS_IOS', | 349 'OS_IOS', |
349 'OS_LINUX', | 350 'OS_LINUX', |
350 'OS_MACOSX', | 351 'OS_MACOSX', |
351 'OS_NACL', | 352 'OS_NACL', |
352 'OS_NACL_NONSFI', | 353 'OS_NACL_NONSFI', |
353 'OS_NACL_SFI', | 354 'OS_NACL_SFI', |
354 'OS_NETBSD', | 355 'OS_NETBSD', |
355 'OS_OPENBSD', | 356 'OS_OPENBSD', |
356 'OS_POSIX', | 357 'OS_POSIX', |
357 'OS_QNX', | 358 'OS_QNX', |
(...skipping 2108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2466 output_api, | 2467 output_api, |
2467 json_url='http://chromium-status.appspot.com/current?format=json')) | 2468 json_url='http://chromium-status.appspot.com/current?format=json')) |
2468 | 2469 |
2469 results.extend( | 2470 results.extend( |
2470 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) | 2471 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) |
2471 results.extend(input_api.canned_checks.CheckChangeHasBugField( | 2472 results.extend(input_api.canned_checks.CheckChangeHasBugField( |
2472 input_api, output_api)) | 2473 input_api, output_api)) |
2473 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 2474 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
2474 input_api, output_api)) | 2475 input_api, output_api)) |
2475 return results | 2476 return results |
OLD | NEW |