OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Unit tests for presubmit_support.py and presubmit_canned_checks.py.""" | 6 """Unit tests for presubmit_support.py and presubmit_canned_checks.py.""" |
7 | 7 |
8 # pylint: disable=E1101,E1103 | 8 # pylint: disable=E1101,E1103 |
9 | 9 |
10 import functools | 10 import functools |
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1745 'CheckChangeHasQaField', 'CheckChangeHasTestedField', | 1745 'CheckChangeHasQaField', 'CheckChangeHasTestedField', |
1746 'CheckChangeHasTestField', | 1746 'CheckChangeHasTestField', |
1747 'CheckChangeLintsClean', | 1747 'CheckChangeLintsClean', |
1748 'CheckChangeSvnEolStyle', | 1748 'CheckChangeSvnEolStyle', |
1749 'CheckChangeWasUploaded', | 1749 'CheckChangeWasUploaded', |
1750 'CheckDoNotSubmit', | 1750 'CheckDoNotSubmit', |
1751 'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles', | 1751 'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles', |
1752 'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks', | 1752 'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks', |
1753 'CheckLicense', | 1753 'CheckLicense', |
1754 'CheckOwners', | 1754 'CheckOwners', |
| 1755 'CheckPatchFormatted', |
1755 'CheckRietveldTryJobExecution', | 1756 'CheckRietveldTryJobExecution', |
1756 'CheckSingletonInHeaders', | 1757 'CheckSingletonInHeaders', |
1757 'CheckSvnModifiedDirectories', | 1758 'CheckSvnModifiedDirectories', |
1758 'CheckSvnForCommonMimeTypes', 'CheckSvnProperty', | 1759 'CheckSvnForCommonMimeTypes', 'CheckSvnProperty', |
1759 'RunPythonUnitTests', 'RunPylint', | 1760 'RunPythonUnitTests', 'RunPylint', |
1760 'RunUnitTests', 'RunUnitTestsInDirectory', | 1761 'RunUnitTests', 'RunUnitTestsInDirectory', |
1761 'GetPythonUnitTests', 'GetPylint', | 1762 'GetPythonUnitTests', 'GetPylint', |
1762 'GetUnitTests', 'GetUnitTestsInDirectory', | 1763 'GetUnitTests', 'GetUnitTestsInDirectory', |
1763 ] | 1764 ] |
1764 # If this test fails, you should add the relevant test. | 1765 # If this test fails, you should add the relevant test. |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2742 owners_check=False) | 2743 owners_check=False) |
2743 self.assertEqual(1, len(results)) | 2744 self.assertEqual(1, len(results)) |
2744 self.assertEqual( | 2745 self.assertEqual( |
2745 'Found line ending with white spaces in:', results[0]._message) | 2746 'Found line ending with white spaces in:', results[0]._message) |
2746 self.checkstdout('') | 2747 self.checkstdout('') |
2747 | 2748 |
2748 | 2749 |
2749 if __name__ == '__main__': | 2750 if __name__ == '__main__': |
2750 import unittest | 2751 import unittest |
2751 unittest.main() | 2752 unittest.main() |
OLD | NEW |