| 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 cc. | 5 """Top-level presubmit script for cc. |
| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 results += CheckChangeLintsClean(input_api, output_api) | 286 results += CheckChangeLintsClean(input_api, output_api) |
| 287 results += CheckTodos(input_api, output_api) | 287 results += CheckTodos(input_api, output_api) |
| 288 results += CheckNamespace(input_api, output_api) | 288 results += CheckNamespace(input_api, output_api) |
| 289 results += CheckForUseOfWrongClock(input_api, output_api) | 289 results += CheckForUseOfWrongClock(input_api, output_api) |
| 290 results += FindUselessIfdefs(input_api, output_api) | 290 results += FindUselessIfdefs(input_api, output_api) |
| 291 results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) | 291 results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) |
| 292 return results | 292 return results |
| 293 | 293 |
| 294 def GetPreferredTryMasters(project, change): | 294 def GetPreferredTryMasters(project, change): |
| 295 return { | 295 return { |
| 296 'tryserver.chromium': { | 296 'tryserver.blink': { |
| 297 'linux_blink_rel': set(['defaulttests']), | 297 'linux_blink_rel': set(['defaulttests']), |
| 298 }, | 298 }, |
| 299 'tryserver.chromium.gpu': { | 299 'tryserver.chromium.gpu': { |
| 300 'linux_gpu': set(['defaulttests']), | 300 'linux_gpu': set(['defaulttests']), |
| 301 'mac_gpu': set(['defaulttests']), | 301 'mac_gpu': set(['defaulttests']), |
| 302 'win_gpu': set(['defaulttests']), | 302 'win_gpu': set(['defaulttests']), |
| 303 }, | 303 }, |
| 304 } | 304 } |
| OLD | NEW |