OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 import logging | 4 import logging |
5 import os | 5 import os |
6 import subprocess as subprocess | 6 import subprocess as subprocess |
7 import shutil | 7 import shutil |
8 import sys | 8 import sys |
9 import tempfile | 9 import tempfile |
10 | 10 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 if self._delete_profile_dir_after_run and \ | 168 if self._delete_profile_dir_after_run and \ |
169 self._tmpdir and os.path.exists(self._tmpdir): | 169 self._tmpdir and os.path.exists(self._tmpdir): |
170 shutil.rmtree(self._tmpdir, ignore_errors=True) | 170 shutil.rmtree(self._tmpdir, ignore_errors=True) |
171 self._tmpdir = None | 171 self._tmpdir = None |
172 | 172 |
173 if self._tmp_output_file: | 173 if self._tmp_output_file: |
174 self._tmp_output_file.close() | 174 self._tmp_output_file.close() |
175 self._tmp_output_file = None | 175 self._tmp_output_file = None |
176 | 176 |
177 def CreateForwarder(self, *port_pairs): | 177 def CreateForwarder(self, *port_pairs): |
178 return browser_backend.DoNothingForwarder(*port_pairs) | 178 return util.DoNothingForwarder(*port_pairs) |
OLD | NEW |