Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: chrome/test/functional/chromoting/auth.py

Issue 10821015: Initial checkin of the me2me pyauto automation: (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:executable
+ *
OLDNEW
(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 authentication related test cases."""
Nirnimesh 2012/08/14 22:09:30 You don't need this docstring, since the class bel
yihongg 2012/08/15 17:48:38 Is it OK to keep this? Pylint complains if there i
7
8 import chromoting_base
9
10
11 class ChromotingAuth(chromoting_base.ChromotingBase):
12 """Drives authentication test cases."""
13
14 def setUp(self):
15 """Set up for auth test."""
16 chromoting_base.ChromotingBase.setUp(self)
17
18 webapp = self.InstallExtension(self.GetWebappPath())
19 self.host.LaunchApp(webapp)
20 self.account = self.GetPrivateInfo()['test_chromoting_account']
21
22 def testDenyAllowAccess(self):
23 """Denies access and then allows access."""
24 self.host.ContinueAuth()
25 self.host.SignIn(self.account['username'], self.account['password'])
26 self.host.DenyAccess()
27 self.host.ContinueAuth()
28 self.host.AllowAccess()
29
30 def testSignOutAndSignBackIn(self):
31 """Signs out from chromoting and signs back in."""
32 self.host.ContinueAuth()
33 self.host.SignIn(self.account['username'], self.account['password'])
34 self.host.AllowAccess()
35 self.host.SignOut()
36 self.host.ContinueAuth()
37 self.host.AllowAccess()
38
39
40 if __name__ == '__main__':
41 chromoting_base.Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698