| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 def CommonChecks(input_api, output_api): | |
| 6 results = [] | |
| 7 | |
| 8 results.extend(input_api.RunTests( | |
| 9 input_api.canned_checks.GetUnitTestsInDirectory( | |
| 10 input_api, | |
| 11 output_api, | |
| 12 input_api.os_path.join('unittests'), | |
| 13 whitelist=[r'.+_test\.py']))) | |
| 14 | |
| 15 return results | |
| 16 | |
| 17 | |
| 18 CheckChangeOnUpload = CommonChecks | |
| 19 CheckChangeOnCommit = CommonChecks | |
| OLD | NEW |