| 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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 black_list = (_EXCLUDED_PATHS + | 865 black_list = (_EXCLUDED_PATHS + |
| 866 _TEST_CODE_EXCLUDED_PATHS + | 866 _TEST_CODE_EXCLUDED_PATHS + |
| 867 input_api.DEFAULT_BLACK_LIST + | 867 input_api.DEFAULT_BLACK_LIST + |
| 868 (r"^base[\\\/]logging\.h$", | 868 (r"^base[\\\/]logging\.h$", |
| 869 r"^chrome[\\\/]app[\\\/]chrome_main_delegate\.cc$", | 869 r"^chrome[\\\/]app[\\\/]chrome_main_delegate\.cc$", |
| 870 r"^chrome[\\\/]browser[\\\/]chrome_browser_main\.cc$", | 870 r"^chrome[\\\/]browser[\\\/]chrome_browser_main\.cc$", |
| 871 r"^chrome[\\\/]installer[\\\/]setup[\\\/].*", | 871 r"^chrome[\\\/]installer[\\\/]setup[\\\/].*", |
| 872 r"^chrome[\\\/]renderer[\\\/]extensions[\\\/]" | 872 r"^chrome[\\\/]renderer[\\\/]extensions[\\\/]" |
| 873 r"logging_native_handler\.cc$", | 873 r"logging_native_handler\.cc$", |
| 874 r"^remoting[\\\/]base[\\\/]logging\.h$", | 874 r"^remoting[\\\/]base[\\\/]logging\.h$", |
| 875 r"^remoting[\\\/]host[\\\/].*", |
| 875 r"^sandbox[\\\/]linux[\\\/].*", | 876 r"^sandbox[\\\/]linux[\\\/].*", |
| 876 r"^ui[\\\/]aura[\\\/]bench[\\\/]bench_main\.cc$",)) | 877 r"^ui[\\\/]aura[\\\/]bench[\\\/]bench_main\.cc$",)) |
| 877 source_file_filter = lambda x: input_api.FilterSourceFile( | 878 source_file_filter = lambda x: input_api.FilterSourceFile( |
| 878 x, white_list=(file_inclusion_pattern,), black_list=black_list) | 879 x, white_list=(file_inclusion_pattern,), black_list=black_list) |
| 879 | 880 |
| 880 log_info = [] | 881 log_info = [] |
| 881 printf = [] | 882 printf = [] |
| 882 | 883 |
| 883 for f in input_api.AffectedSourceFiles(source_file_filter): | 884 for f in input_api.AffectedSourceFiles(source_file_filter): |
| 884 contents = input_api.ReadFile(f, 'rb') | 885 contents = input_api.ReadFile(f, 'rb') |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 trybots += ['cros_x86'] | 1247 trybots += ['cros_x86'] |
| 1247 | 1248 |
| 1248 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it | 1249 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it |
| 1249 # unless they're .gyp(i) files as changes to those files can break the gyp | 1250 # unless they're .gyp(i) files as changes to those files can break the gyp |
| 1250 # step on that bot. | 1251 # step on that bot. |
| 1251 if (not all(re.search('^chrome', f) for f in files) or | 1252 if (not all(re.search('^chrome', f) for f in files) or |
| 1252 any(re.search('\.gypi?$', f) for f in files)): | 1253 any(re.search('\.gypi?$', f) for f in files)): |
| 1253 trybots += ['android_aosp'] | 1254 trybots += ['android_aosp'] |
| 1254 | 1255 |
| 1255 return trybots | 1256 return trybots |
| OLD | NEW |