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 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 Loading... |
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: |
OLD | NEW |