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 | 6 import subprocess |
7 | 7 |
8 from telemetry import browser_backend | 8 from telemetry import browser_backend |
9 from telemetry import util | 9 from telemetry import util |
10 | 10 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 @property | 216 @property |
217 def url(self): | 217 def url(self): |
218 assert self._proc | 218 assert self._proc |
219 return 'http://localhost:%i' % self._host_port | 219 return 'http://localhost:%i' % self._host_port |
220 | 220 |
221 def Close(self): | 221 def Close(self): |
222 if self._proc: | 222 if self._proc: |
223 self._proc.kill() | 223 self._proc.kill() |
224 self._proc = None | 224 self._proc = None |
OLD | NEW |