OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 import atexit | 6 import atexit |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 import stat | 9 import stat |
10 import subprocess | 10 import subprocess |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 self.trial.tear_down() | 143 self.trial.tear_down() |
144 | 144 |
145 @property | 145 @property |
146 def root_dir(self): | 146 def root_dir(self): |
147 return self.trial.root_dir | 147 return self.trial.root_dir |
148 | 148 |
149 | 149 |
150 class TestCase(auto_stub.TestCase, TrialDirMixIn): | 150 class TestCase(auto_stub.TestCase, TrialDirMixIn): |
151 """Base unittest class that cleans off a trial directory in tearDown().""" | 151 """Base unittest class that cleans off a trial directory in tearDown().""" |
152 def setUp(self): | 152 def setUp(self): |
| 153 TrialDirMixIn.setUp(self) |
153 auto_stub.TestCase.setUp(self) | 154 auto_stub.TestCase.setUp(self) |
154 TrialDirMixIn.setUp(self) | |
155 | 155 |
156 def tearDown(self): | 156 def tearDown(self): |
| 157 auto_stub.TestCase.tearDown(self) |
157 TrialDirMixIn.tearDown(self) | 158 TrialDirMixIn.tearDown(self) |
158 auto_stub.TestCase.tearDown(self) | |
OLD | NEW |