| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 # pylint: disable=E1101,W0403 | 6 # pylint: disable=E1101,W0403 |
| 7 | 7 |
| 8 import StringIO | 8 import StringIO |
| 9 | 9 |
| 10 # Fixes include path. | 10 # Fixes include path. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 self.mox.StubOutWithMock(gclient_utils, 'Popen') | 21 self.mox.StubOutWithMock(gclient_utils, 'Popen') |
| 22 | 22 |
| 23 | 23 |
| 24 class GclientUtilsUnittest(GclientUtilBase): | 24 class GclientUtilsUnittest(GclientUtilBase): |
| 25 """General gclient_utils.py tests.""" | 25 """General gclient_utils.py tests.""" |
| 26 def testMembersChanged(self): | 26 def testMembersChanged(self): |
| 27 members = [ | 27 members = [ |
| 28 'CheckCall', 'CheckCallError', 'CheckCallAndFilter', | 28 'CheckCall', 'CheckCallError', 'CheckCallAndFilter', |
| 29 'CheckCallAndFilterAndHeader', 'Error', 'ExecutionQueue', 'FileRead', | 29 'CheckCallAndFilterAndHeader', 'Error', 'ExecutionQueue', 'FileRead', |
| 30 'FileWrite', 'FindFileUpwards', 'FindGclientRoot', | 30 'FileWrite', 'FindFileUpwards', 'FindGclientRoot', |
| 31 'GetGClientRootAndEntries', 'MakeFileAutoFlush', | 31 'GetGClientRootAndEntries', 'IsDateRevision', 'MakeDateRevision', |
| 32 'MakeFileAnnotated', 'PathDifference', 'Popen', | 32 'MakeFileAutoFlush', 'MakeFileAnnotated', 'PathDifference', 'Popen', |
| 33 'PrintableObject', 'RemoveDirectory', 'SoftClone', 'SplitUrlRevision', | 33 'PrintableObject', 'RemoveDirectory', 'SoftClone', 'SplitUrlRevision', |
| 34 'SyntaxErrorToError', 'WorkItem', | 34 'SyntaxErrorToError', 'WorkItem', |
| 35 'errno', 'hack_subprocess', 'logging', 'os', 'Queue', 're', 'rmtree', | 35 'errno', 'hack_subprocess', 'logging', 'os', 'Queue', 're', 'rmtree', |
| 36 'stat', 'subprocess', 'sys','threading', 'time', | 36 'stat', 'subprocess', 'sys','threading', 'time', |
| 37 ] | 37 ] |
| 38 # If this test fails, you should add the relevant test. | 38 # If this test fails, you should add the relevant test. |
| 39 self.compareMembers(gclient_utils, members) | 39 self.compareMembers(gclient_utils, members) |
| 40 | 40 |
| 41 | 41 |
| 42 class CheckCallTestCase(GclientUtilBase): | 42 class CheckCallTestCase(GclientUtilBase): |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 os.chmod(l3, 0) | 197 os.chmod(l3, 0) |
| 198 os.chmod(l2, 0) | 198 os.chmod(l2, 0) |
| 199 os.chmod(l1, 0) | 199 os.chmod(l1, 0) |
| 200 | 200 |
| 201 | 201 |
| 202 if __name__ == '__main__': | 202 if __name__ == '__main__': |
| 203 import unittest | 203 import unittest |
| 204 unittest.main() | 204 unittest.main() |
| 205 | 205 |
| 206 # vim: ts=2:sw=2:tw=80:et: | 206 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |