| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 """Basic tests for Chromoting it2me.""" |
| 7 |
| 8 import chromoting_base |
| 9 |
| 10 |
| 11 class IT2MeBasic(chromoting_base.ChromotingBase): |
| 12 """Drives it2me basic test cases.""" |
| 13 |
| 14 def setUp(self): |
| 15 """Set up for it2me basic test.""" |
| 16 chromoting_base.ChromotingBase.setUp(self) |
| 17 |
| 18 webapp = self.InstallExtension(self.GetWebappPath()) |
| 19 self.LaunchApp(webapp) |
| 20 self.Authenticate() |
| 21 |
| 22 if self.client_local: |
| 23 self.client.LaunchApp(webapp) |
| 24 |
| 25 def testIT2MeBasic(self): |
| 26 """Verify that we can start and disconnect a Chromoting it2me session.""" |
| 27 access_code = self.host.Share() |
| 28 self.assertTrue(access_code, |
| 29 msg='Host attempted to share, but it failed. ' |
| 30 'No access code was found.') |
| 31 |
| 32 self.client.Connect(access_code, self.client_tab_index) |
| 33 |
| 34 self.host.CancelShare() |
| 35 self.client.Disconnect(self.client_tab_index) |
| 36 |
| 37 |
| 38 if __name__ == '__main__': |
| 39 chromoting_base.Main() |
| OLD | NEW |