| 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 StringIO | 10 import StringIO |
| (...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1869 'CheckChangeHasOnlyOneEol', 'CheckChangeHasNoCR', | 1869 'CheckChangeHasOnlyOneEol', 'CheckChangeHasNoCR', |
| 1870 'CheckChangeHasNoCrAndHasOnlyOneEol', 'CheckChangeHasNoTabs', | 1870 'CheckChangeHasNoCrAndHasOnlyOneEol', 'CheckChangeHasNoTabs', |
| 1871 'CheckChangeTodoHasOwner', | 1871 'CheckChangeTodoHasOwner', |
| 1872 'CheckChangeHasQaField', 'CheckChangeHasTestedField', | 1872 'CheckChangeHasQaField', 'CheckChangeHasTestedField', |
| 1873 'CheckChangeHasTestField', | 1873 'CheckChangeHasTestField', |
| 1874 'CheckChangeLintsClean', | 1874 'CheckChangeLintsClean', |
| 1875 'CheckChangeSvnEolStyle', | 1875 'CheckChangeSvnEolStyle', |
| 1876 'CheckChangeWasUploaded', | 1876 'CheckChangeWasUploaded', |
| 1877 'CheckDoNotSubmit', | 1877 'CheckDoNotSubmit', |
| 1878 'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles', | 1878 'CheckDoNotSubmitInDescription', 'CheckDoNotSubmitInFiles', |
| 1879 'CheckGenderNeutral', |
| 1879 'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks', | 1880 'CheckLongLines', 'CheckTreeIsOpen', 'PanProjectChecks', |
| 1880 'CheckLicense', | 1881 'CheckLicense', |
| 1881 'CheckOwners', | 1882 'CheckOwners', |
| 1882 'CheckPatchFormatted', | 1883 'CheckPatchFormatted', |
| 1883 'CheckGNFormatted', | 1884 'CheckGNFormatted', |
| 1884 'CheckRietveldTryJobExecution', | 1885 'CheckRietveldTryJobExecution', |
| 1885 'CheckSingletonInHeaders', | 1886 'CheckSingletonInHeaders', |
| 1886 'CheckSvnForCommonMimeTypes', 'CheckSvnProperty', | 1887 'CheckSvnForCommonMimeTypes', 'CheckSvnProperty', |
| 1887 'RunPythonUnitTests', 'RunPylint', | 1888 'RunPythonUnitTests', 'RunPylint', |
| 1888 'RunUnitTests', 'RunUnitTestsInDirectory', | 1889 'RunUnitTests', 'RunUnitTestsInDirectory', |
| (...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2922 owners_check=False) | 2923 owners_check=False) |
| 2923 self.assertEqual(2, len(results)) | 2924 self.assertEqual(2, len(results)) |
| 2924 self.assertEqual( | 2925 self.assertEqual( |
| 2925 'Found line ending with white spaces in:', results[0]._message) | 2926 'Found line ending with white spaces in:', results[0]._message) |
| 2926 self.checkstdout('') | 2927 self.checkstdout('') |
| 2927 | 2928 |
| 2928 | 2929 |
| 2929 if __name__ == '__main__': | 2930 if __name__ == '__main__': |
| 2930 import unittest | 2931 import unittest |
| 2931 unittest.main() | 2932 unittest.main() |
| OLD | NEW |