Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: tests/gclient_utils_test.py

Issue 6689023: Revert r80216 "Reapply r79779: "Removed gclient_utils.Popen() and use subprocess2's ..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « subprocess2.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15 matching lines...) Expand all
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', 'GetNamedNodeText', 'MakeFileAutoFlush', 31 'GetGClientRootAndEntries', 'GetNamedNodeText', 'MakeFileAutoFlush',
32 'GetNodeNamedAttributeText', 'MakeFileAnnotated', 'PathDifference', 32 'GetNodeNamedAttributeText', 'MakeFileAnnotated', 'PathDifference',
33 'ParseXML', 'Popen', 33 'ParseXML', 'Popen',
34 'PrintableObject', 'RemoveDirectory', 'SoftClone', 'SplitUrlRevision', 34 'PrintableObject', 'RemoveDirectory', 'SoftClone', 'SplitUrlRevision',
35 'SyntaxErrorToError', 'WorkItem', 35 'SyntaxErrorToError', 'WorkItem',
36 'errno', 'logging', 'os', 'Queue', 're', 'rmtree', 36 'errno', 'hack_subprocess', 'logging', 'os', 'Queue', 're', 'rmtree',
37 'stat', 'subprocess', 'subprocess2', 'sys','threading', 'time', 'xml', 37 'stat', 'subprocess', 'sys','threading', 'time', 'xml',
38 ] 38 ]
39 # If this test fails, you should add the relevant test. 39 # If this test fails, you should add the relevant test.
40 self.compareMembers(gclient_utils, members) 40 self.compareMembers(gclient_utils, members)
41 41
42 42
43 class CheckCallTestCase(GclientUtilBase): 43 class CheckCallTestCase(GclientUtilBase):
44 def testCheckCallSuccess(self): 44 def testCheckCallSuccess(self):
45 args = ['boo', 'foo', 'bar'] 45 args = ['boo', 'foo', 'bar']
46 process = self.mox.CreateMockAnything() 46 process = self.mox.CreateMockAnything()
47 process.returncode = 0 47 process.returncode = 0
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 os.chmod(l3, 0) 198 os.chmod(l3, 0)
199 os.chmod(l2, 0) 199 os.chmod(l2, 0)
200 os.chmod(l1, 0) 200 os.chmod(l1, 0)
201 201
202 202
203 if __name__ == '__main__': 203 if __name__ == '__main__':
204 import unittest 204 import unittest
205 unittest.main() 205 unittest.main()
206 206
207 # vim: ts=2:sw=2:tw=80:et: 207 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « subprocess2.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698