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,44 @@ |
| +#!/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. |
| + |
| +import os |
| + |
| +# Add chrome/test/functional to sys.path for importing pyauto_functional |
| +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.
|
| + 0, |
| + os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
| + |
| +import pyauto_functional # Must come before chromoting and pyauto. |
| +import chromoting |
| +import pyauto |
| + |
| +import chromoting_base |
| + |
| + |
| +class Me2MeEnable(chromoting_base.ChromotingBase): |
| + """Chromoting me2me enable/disable related test cases.""" |
| + |
| + def setUp(self): |
| + """Set up for me2me enable test.""" |
| + super(Me2MeEnable, self).setUp() |
| + |
| + self.InstallHostDaemon() |
| + self._app = self.InstallExtension(self.GetWebappPath()) |
| + self.host.LaunchApp(self._app) |
| + self.host.Authenticate() |
| + self.host.StartMe2Me() |
| + |
| + def tearDown(self): |
| + """Mainly uninstalls the host daemon.""" |
| + self.UninstallHostDaemon() |
| + |
| + def testMe2MeEnableDisable(self): |
| + """Enables remote connections, exercising different pin conditions |
| + and then disable it.""" |
| + self.host.EnableConnectionsInstalled(True) |
| + self.host.DisableConnections() |
| + |
| +if __name__ == '__main__': |
| + 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.
|
| Property changes on: chrome/test/functional/chromoting/me2me_enable.py |
| ___________________________________________________________________ |
| Added: svn:executable |
| + * |