|
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 import sys | |
10 | |
11 | |
12 class Me2MeEnable(chromoting_base.ChromotingBase): | |
13 """Drives the me2me enable test cases.""" | |
14 | |
15 def setUp(self): | |
16 """Set up for me2me enable test.""" | |
17 chromoting_base.ChromotingBase.setUp(self) | |
18 | |
19 self.InstallHostDaemon() | |
20 webapp = self.InstallExtension(self.GetWebappPath()) | |
21 self.host.LaunchApp(webapp) | |
22 self.host.Authenticate() | |
23 self.host.StartMe2Me() | |
24 | |
25 def tearDown(self): | |
26 """Mainly uninstalls the host daemon.""" | |
27 self.UninstallHostDaemon() | |
Nirnimesh
2012/08/08 19:46:10
Call parent's tearDown
yihongg
2012/08/10 20:42:52
Done.
| |
28 | |
29 def testMe2MeEnableDisable(self): | |
30 """Enables remote connections, exercising different pin conditions | |
Nirnimesh
2012/08/08 19:46:10
Make it a one liner. Details can go in next para
yihongg
2012/08/10 20:42:52
Done.
| |
31 and then disable it.""" | |
32 self.host.EnableConnectionsInstalled(True) | |
33 self.host.DisableConnections() | |
34 | |
35 | |
36 if __name__ == '__main__': | |
37 sys.exit(chromoting_base.Main()) | |
OLD | NEW |