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 os | 4 import os |
5 import sys | 5 import sys |
6 | 6 |
7 from telemetry import util | 7 from telemetry import util |
8 | 8 |
9 # Get chrome/test/functional scripts into our path. | 9 # Get chrome/test/functional scripts into our path. |
10 # TODO(tonyg): Move webpagereplay.py to a common location. | 10 # TODO(tonyg): Move webpagereplay.py to a common location. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 def __exit__(self, *args): | 56 def __exit__(self, *args): |
57 self.Close() | 57 self.Close() |
58 | 58 |
59 def Close(self): | 59 def Close(self): |
60 if self._forwarder: | 60 if self._forwarder: |
61 self._forwarder.Close() | 61 self._forwarder.Close() |
62 self._forwarder = None | 62 self._forwarder = None |
63 if self._web_page_replay: | 63 if self._web_page_replay: |
64 self._web_page_replay.StopServer() | 64 self._web_page_replay.StopServer() |
65 self._web_page_replay = None | 65 self._web_page_replay = None |
OLD | NEW |