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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 ), | 152 ), |
153 ( | 153 ( |
154 'ScopedAllowIO', | 154 'ScopedAllowIO', |
155 ( | 155 ( |
156 'New code should not use ScopedAllowIO. Post a task to the blocking', | 156 'New code should not use ScopedAllowIO. Post a task to the blocking', |
157 'pool or the FILE thread instead.', | 157 'pool or the FILE thread instead.', |
158 ), | 158 ), |
159 True, | 159 True, |
160 ( | 160 ( |
161 r"^content[\\\/]shell[\\\/]shell_browser_main\.cc$", | 161 r"^content[\\\/]shell[\\\/]shell_browser_main\.cc$", |
| 162 r"^net[\\\/]disk_cache[\\\/]cache_util\.cc$", |
162 ), | 163 ), |
163 ), | 164 ), |
164 ) | 165 ) |
165 | 166 |
166 | 167 |
167 _VALID_OS_MACROS = ( | 168 _VALID_OS_MACROS = ( |
168 # Please keep sorted. | 169 # Please keep sorted. |
169 'OS_ANDROID', | 170 'OS_ANDROID', |
170 'OS_BSD', | 171 'OS_BSD', |
171 'OS_CAT', # For testing. | 172 'OS_CAT', # For testing. |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 'win_rel', | 940 'win_rel', |
940 'win:compile', | 941 'win:compile', |
941 ] | 942 ] |
942 | 943 |
943 # Match things like path/aura/file.cc and path/file_aura.cc. | 944 # Match things like path/aura/file.cc and path/file_aura.cc. |
944 # Same for chromeos. | 945 # Same for chromeos. |
945 if any(re.search('[/_](aura|chromeos)', f) for f in files): | 946 if any(re.search('[/_](aura|chromeos)', f) for f in files): |
946 trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan'] | 947 trybots += ['linux_chromeos_clang:compile', 'linux_chromeos_asan'] |
947 | 948 |
948 return trybots | 949 return trybots |
OLD | NEW |