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

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

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 8 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
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."""
7
8 import chromoting_base
9 import pyauto
10
11
12 class ChromotingAuth(chromoting_base.ChromotingBase):
13 """Chromoting authentication related test cases."""
14
15 def setUp(self):
16 """Set up for auth test."""
17 pyauto.PyUITest.setUp(self)
18
19 webapp = self.InstallExtension(self.GetWebappPath())
20 self.host.LaunchApp(webapp)
21 self.account = self.GetPrivateInfo()['test_chromoting_account']
22
23 def testDenyAllowAccess(self):
24 """Denies access and then allows access."""
25 self.host.ContinueAuth()
26 self.host.SignIn(self.account['username'], self.account['password'])
27 self.host.DenyAccess()
28 self.host.ContinueAuth()
29 self.host.AllowAccess()
30
31 def testSignOutAndSignBackIn(self):
32 """Signs out from chromoting and signs back in."""
33 self.host.ContinueAuth()
34 self.host.SignIn(self.account['username'], self.account['password'])
35 self.host.AllowAccess()
36 self.host.SignOut()
37 self.host.ContinueAuth()
38 self.host.AllowAccess()
39
40
41 if __name__ == '__main__':
42 chromoting_base.Main()
OLDNEW
« no previous file with comments | « chrome/test/functional/chromeos_volume.py ('k') | chrome/test/functional/chromoting/chromoting_base.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698