| 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 gcl. | 8 for more details about the presubmit API built into gcl. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 | 635 |
| 636 | 636 |
| 637 def _CheckSpamLogging(input_api, output_api): | 637 def _CheckSpamLogging(input_api, output_api): |
| 638 file_inclusion_pattern = r'.+%s' % _IMPLEMENTATION_EXTENSIONS | 638 file_inclusion_pattern = r'.+%s' % _IMPLEMENTATION_EXTENSIONS |
| 639 black_list = (_EXCLUDED_PATHS + | 639 black_list = (_EXCLUDED_PATHS + |
| 640 _TEST_CODE_EXCLUDED_PATHS + | 640 _TEST_CODE_EXCLUDED_PATHS + |
| 641 input_api.DEFAULT_BLACK_LIST + | 641 input_api.DEFAULT_BLACK_LIST + |
| 642 (r"^base/logging\.h$", | 642 (r"^base/logging\.h$", |
| 643 r"^base/logging\.cc$", | 643 r"^base/logging\.cc$", |
| 644 r"^examples/wget/wget\.cc$", | 644 r"^examples/wget/wget\.cc$", |
| 645 r"^mojo/nacl/sfi/nacl_bindings/mojo_syscall\.cc$", |
| 645 r"^shell/application_manager/network_fetcher\.cc$", | 646 r"^shell/application_manager/network_fetcher\.cc$", |
| 646 r"^shell/tracer\.cc$", | 647 r"^shell/tracer\.cc$", |
| 647 r"^sandbox/linux/.*", | 648 r"^sandbox/linux/.*", |
| 648 r"^tools/.*")) | 649 r"^tools/.*")) |
| 649 source_file_filter = lambda x: input_api.FilterSourceFile( | 650 source_file_filter = lambda x: input_api.FilterSourceFile( |
| 650 x, white_list=(file_inclusion_pattern,), black_list=black_list) | 651 x, white_list=(file_inclusion_pattern,), black_list=black_list) |
| 651 | 652 |
| 652 log_macro = input_api.re.compile(r"\bD?LOG\s*\(\s*INFO\s*\)") | 653 log_macro = input_api.re.compile(r"\bD?LOG\s*\(\s*INFO\s*\)") |
| 653 log_if_macro = input_api.re.compile(r"\bD?LOG_IF\s*\(\s*INFO\s*,") | 654 log_if_macro = input_api.re.compile(r"\bD?LOG_IF\s*\(\s*INFO\s*,") |
| 654 printf_macro = input_api.re.compile(r"\bprintf\(") | 655 printf_macro = input_api.re.compile(r"\bprintf\(") |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 'Mojo Linux ASan Try', | 1127 'Mojo Linux ASan Try', |
| 1127 'Mojo Linux Try', | 1128 'Mojo Linux Try', |
| 1128 ] | 1129 ] |
| 1129 | 1130 |
| 1130 return GetDefaultTryConfigs(builders) | 1131 return GetDefaultTryConfigs(builders) |
| 1131 | 1132 |
| 1132 def PostUploadHook(cl, change, output_api): | 1133 def PostUploadHook(cl, change, output_api): |
| 1133 import subprocess | 1134 import subprocess |
| 1134 subprocess.check_call(["git", "cl", "try"]) | 1135 subprocess.check_call(["git", "cl", "try"]) |
| 1135 return [] | 1136 return [] |
| OLD | NEW |