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 """Brings in Chrome Android's android_commands module, which itself is a | 4 """Brings in Chrome Android's android_commands module, which itself is a |
5 thin(ish) wrapper around adb.""" | 5 thin(ish) wrapper around adb.""" |
6 import os | 6 import os |
7 import sys | 7 import sys |
8 | 8 |
9 # This is currently a thin wrapper around Chrome Android's | 9 # This is currently a thin wrapper around Chrome Android's |
10 # build scripts, located in chrome/build/android. This file exists mainly to | 10 # build scripts, located in chrome/build/android. This file exists mainly to |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 @property | 172 @property |
173 def url(self): | 173 def url(self): |
174 assert self._forwarder | 174 assert self._forwarder |
175 return 'http://localhost:%i' % self._host_port | 175 return 'http://localhost:%i' % self._host_port |
176 | 176 |
177 def Close(self): | 177 def Close(self): |
178 if self._forwarder: | 178 if self._forwarder: |
179 self._forwarder.Close() | 179 self._forwarder.Close() |
180 self._forwarder = None | 180 self._forwarder = None |
OLD | NEW |