OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 media component. | 5 """Top-level presubmit script for Chromium media component. |
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 'base::Time and derived classes should be passed by value and not by\n' | 165 'base::Time and derived classes should be passed by value and not by\n' |
166 'const ref, see base/time/time.h for more information.', problems)] | 166 'const ref, see base/time/time.h for more information.', problems)] |
167 return [] | 167 return [] |
168 | 168 |
169 | 169 |
170 def _CheckChange(input_api, output_api): | 170 def _CheckChange(input_api, output_api): |
171 results = [] | 171 results = [] |
172 results.extend(_CheckForUseOfWrongClock(input_api, output_api)) | 172 results.extend(_CheckForUseOfWrongClock(input_api, output_api)) |
173 results.extend(_CheckPassByValue(input_api, output_api)) | 173 results.extend(_CheckPassByValue(input_api, output_api)) |
174 results.extend(_CheckForHistogramOffByOne(input_api, output_api)) | 174 results.extend(_CheckForHistogramOffByOne(input_api, output_api)) |
175 results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) | |
176 return results | 175 return results |
177 | 176 |
178 | 177 |
179 def CheckChangeOnUpload(input_api, output_api): | 178 def CheckChangeOnUpload(input_api, output_api): |
180 return _CheckChange(input_api, output_api) | 179 return _CheckChange(input_api, output_api) |
181 | 180 |
182 | 181 |
183 def CheckChangeOnCommit(input_api, output_api): | 182 def CheckChangeOnCommit(input_api, output_api): |
184 return _CheckChange(input_api, output_api) | 183 return _CheckChange(input_api, output_api) |
OLD | NEW |