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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 ) | 321 ) |
322 | 322 |
323 | 323 |
324 _IPC_ENUM_TRAITS_DEPRECATED = ( | 324 _IPC_ENUM_TRAITS_DEPRECATED = ( |
325 'You are using IPC_ENUM_TRAITS() in your code. It has been deprecated.\n' | 325 'You are using IPC_ENUM_TRAITS() in your code. It has been deprecated.\n' |
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_AIX', |
331 'OS_ANDROID', | 332 'OS_ANDROID', |
332 'OS_BSD', | 333 'OS_BSD', |
333 'OS_CAT', # For testing. | 334 'OS_CAT', # For testing. |
334 'OS_CHROMEOS', | 335 'OS_CHROMEOS', |
335 'OS_FREEBSD', | 336 'OS_FREEBSD', |
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', |
(...skipping 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2450 output_api, | 2451 output_api, |
2451 json_url='http://chromium-status.appspot.com/current?format=json')) | 2452 json_url='http://chromium-status.appspot.com/current?format=json')) |
2452 | 2453 |
2453 results.extend( | 2454 results.extend( |
2454 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) | 2455 input_api.canned_checks.CheckPatchFormatted(input_api, output_api)) |
2455 results.extend(input_api.canned_checks.CheckChangeHasBugField( | 2456 results.extend(input_api.canned_checks.CheckChangeHasBugField( |
2456 input_api, output_api)) | 2457 input_api, output_api)) |
2457 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 2458 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
2458 input_api, output_api)) | 2459 input_api, output_api)) |
2459 return results | 2460 return results |
OLD | NEW |