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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 @property | 144 @property |
145 def url(self): | 145 def url(self): |
146 assert self._forwarder | 146 assert self._forwarder |
147 return 'http://localhost:%i' % self._host_port | 147 return 'http://localhost:%i' % self._host_port |
148 | 148 |
149 def Close(self): | 149 def Close(self): |
150 if self._forwarder: | 150 if self._forwarder: |
151 self._forwarder.Close() | 151 self._forwarder.Close() |
152 self._forwarder = None | 152 self._forwarder = None |
OLD | NEW |