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 import os |
| 7 |
| 8 os.sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))
)) |
| 9 |
| 10 import pyauto_functional # Must come before chromoting and pyauto. |
| 11 import chromoting |
| 12 import pyauto |
| 13 |
| 14 import chromoting_base |
| 15 |
| 16 class Me2MeEnable(chromoting_base.ChromotingBase): |
| 17 """Chromoting me2me enable/disable related test cases.""" |
| 18 |
| 19 def setUp(self): |
| 20 """Set up for me2me enable test.""" |
| 21 super(Me2MeEnable, self).setUp() |
| 22 |
| 23 self.InstallHostDaemon() |
| 24 self._app = self.InstallExtension(self.GetWebappPath()) |
| 25 self.host.LaunchApp(self._app) |
| 26 self.host.Authenticate() |
| 27 self.host.GetMe2MeStarted() |
| 28 |
| 29 def tearDown(self): |
| 30 """Mainly uninstalls the host daemon.""" |
| 31 self.UninstallHostDaemon() |
| 32 |
| 33 def testMe2MeEnableDisable(self): |
| 34 """Enables remote connections, exercising different pin conditions and then
disable it.""" |
| 35 self.host.EnableConnectionsInstalled(True) |
| 36 self.host.DisableConnections() |
| 37 |
| 38 if __name__ == '__main__': |
| 39 pyauto_functional.Main() |
OLD | NEW |