Chromium Code Reviews| Index: chrome/test/functional/chromoting/me2me_enable.py |
| =================================================================== |
| --- chrome/test/functional/chromoting/me2me_enable.py (revision 0) |
| +++ chrome/test/functional/chromoting/me2me_enable.py (revision 0) |
| @@ -0,0 +1,37 @@ |
| +#!/usr/bin/env python |
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +"""Chromoting me2me enable/disable related test cases.""" |
| + |
| +import chromoting_base |
| +import sys |
| + |
| + |
| +class Me2MeEnable(chromoting_base.ChromotingBase): |
| + """Drives the me2me enable test cases.""" |
| + |
| + def setUp(self): |
| + """Set up for me2me enable test.""" |
| + chromoting_base.ChromotingBase.setUp(self) |
| + |
| + self.InstallHostDaemon() |
| + webapp = self.InstallExtension(self.GetWebappPath()) |
| + self.host.LaunchApp(webapp) |
| + self.host.Authenticate() |
| + self.host.StartMe2Me() |
| + |
| + def tearDown(self): |
| + """Mainly uninstalls the host daemon.""" |
| + self.UninstallHostDaemon() |
|
Nirnimesh
2012/08/08 19:46:10
Call parent's tearDown
yihongg
2012/08/10 20:42:52
Done.
|
| + |
| + def testMe2MeEnableDisable(self): |
| + """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.
|
| + and then disable it.""" |
| + self.host.EnableConnectionsInstalled(True) |
| + self.host.DisableConnections() |
| + |
| + |
| +if __name__ == '__main__': |
| + sys.exit(chromoting_base.Main()) |
| Property changes on: chrome/test/functional/chromoting/me2me_enable.py |
| ___________________________________________________________________ |
| Added: svn:executable |
| + * |