| OLD | NEW |
| 1 #!/usr/bin/python | |
| 2 | |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # 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 |
| 5 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 6 | 4 |
| 7 import os | 5 import os |
| 8 | 6 |
| 9 | 7 |
| 10 class ChromotingMixIn(object): | 8 class ChromotingMixIn(object): |
| 11 """MixIn for PyUITest that adds Chromoting-specific methods. | 9 """MixIn for PyUITest that adds Chromoting-specific methods. |
| 12 | 10 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 180 |
| 183 def Disconnect(self, tab_index=1, windex=0): | 181 def Disconnect(self, tab_index=1, windex=0): |
| 184 """Disconnects from the Chromoting session on the client side. | 182 """Disconnects from the Chromoting session on the client side. |
| 185 | 183 |
| 186 Returns: | 184 Returns: |
| 187 True on success; False otherwise. | 185 True on success; False otherwise. |
| 188 """ | 186 """ |
| 189 return self._ExecuteAndWaitForMode( | 187 return self._ExecuteAndWaitForMode( |
| 190 'remoting.disconnect();', | 188 'remoting.disconnect();', |
| 191 'CLIENT_SESSION_FINISHED', tab_index, windex) | 189 'CLIENT_SESSION_FINISHED', tab_index, windex) |
| OLD | NEW |