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

Side by Side Diff: tests/gclient_utils_test.py

Issue 8508015: Create a new depot_tools_testing_lib to move utility modules there (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Renamed to testing_support Created 9 years, 1 month 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 | « tests/gclient_test.py ('k') | tests/local_rietveld.py » ('j') | 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 import os 6 import os
7 import StringIO 7 import StringIO
8 import sys 8 import sys
9 9
10 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 10 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
11 11
12 from super_mox import SuperMoxTestBase 12 from testing_support.super_mox import SuperMoxTestBase
13 import trial_dir 13 from testing_support import trial_dir
14 14
15 import gclient_utils 15 import gclient_utils
16 import subprocess2 16 import subprocess2
17 17
18 18
19 class GclientUtilBase(SuperMoxTestBase): 19 class GclientUtilBase(SuperMoxTestBase):
20 def setUp(self): 20 def setUp(self):
21 super(GclientUtilBase, self).setUp() 21 super(GclientUtilBase, self).setUp()
22 gclient_utils.sys.stdout.flush = lambda: None 22 gclient_utils.sys.stdout.flush = lambda: None
23 self.mox.StubOutWithMock(subprocess2, 'Popen') 23 self.mox.StubOutWithMock(subprocess2, 'Popen')
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 os.chmod(l3, 0) 169 os.chmod(l3, 0)
170 os.chmod(l2, 0) 170 os.chmod(l2, 0)
171 os.chmod(l1, 0) 171 os.chmod(l1, 0)
172 172
173 173
174 if __name__ == '__main__': 174 if __name__ == '__main__':
175 import unittest 175 import unittest
176 unittest.main() 176 unittest.main()
177 177
178 # vim: ts=2:sw=2:tw=80:et: 178 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « tests/gclient_test.py ('k') | tests/local_rietveld.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698