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 """Chromoting me2me enable/disable related test cases.""" |
| 7 |
| 8 import chromoting_base |
| 9 |
| 10 |
| 11 class Me2MeEnable(chromoting_base.ChromotingBase): |
| 12 """Drives the me2me enable test cases.""" |
| 13 |
| 14 def setUp(self): |
| 15 """Set up for me2me enable test.""" |
| 16 chromoting_base.ChromotingBase.setUp(self) |
| 17 |
| 18 self.InstallHostDaemon() |
| 19 webapp = self.InstallExtension(self.GetWebappPath()) |
| 20 self.host.LaunchApp(webapp) |
| 21 self.host.Authenticate() |
| 22 self.host.StartMe2Me() |
| 23 |
| 24 def tearDown(self): |
| 25 """Mainly uninstalls the host daemon.""" |
| 26 self.UninstallHostDaemon() |
| 27 |
| 28 chromoting_base.ChromotingBase.tearDown(self) |
| 29 |
| 30 def testMe2MeEnableDisable(self): |
| 31 """Enables/disables remote connections. |
| 32 |
| 33 This test also exercises different pin conditions. |
| 34 """ |
| 35 self.host.EnableConnectionsInstalled(True) |
| 36 self.host.DisableConnections() |
| 37 |
| 38 |
| 39 if __name__ == '__main__': |
| 40 chromoting_base.Main() |
OLD | NEW |