Chromium Code Reviews
|
| 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 # Add chrome/test/functional to sys.path for importing pyauto_functional | |
| 9 os.sys.path.insert( | |
|
Nirnimesh
2012/08/06 19:13:53
This should be done in chromoting_base.py
Look at
yihongg
2012/08/08 01:04:48
Done.
| |
| 10 0, | |
| 11 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| 12 | |
| 13 import pyauto_functional # Must come before chromoting and pyauto. | |
| 14 import chromoting | |
| 15 import pyauto | |
| 16 | |
| 17 import chromoting_base | |
| 18 | |
| 19 | |
| 20 class Me2MeEnable(chromoting_base.ChromotingBase): | |
| 21 """Chromoting me2me enable/disable related test cases.""" | |
| 22 | |
| 23 def setUp(self): | |
| 24 """Set up for me2me enable test.""" | |
| 25 super(Me2MeEnable, self).setUp() | |
| 26 | |
| 27 self.InstallHostDaemon() | |
| 28 self._app = self.InstallExtension(self.GetWebappPath()) | |
| 29 self.host.LaunchApp(self._app) | |
| 30 self.host.Authenticate() | |
| 31 self.host.StartMe2Me() | |
| 32 | |
| 33 def tearDown(self): | |
| 34 """Mainly uninstalls the host daemon.""" | |
| 35 self.UninstallHostDaemon() | |
| 36 | |
| 37 def testMe2MeEnableDisable(self): | |
| 38 """Enables remote connections, exercising different pin conditions | |
| 39 and then disable it.""" | |
| 40 self.host.EnableConnectionsInstalled(True) | |
| 41 self.host.DisableConnections() | |
| 42 | |
| 43 if __name__ == '__main__': | |
| 44 pyauto_functional.Main() | |
|
Nirnimesh
2012/08/06 19:13:53
If you follow my comment above, this will change t
yihongg
2012/08/08 01:04:48
Done.
| |
| OLD | NEW |