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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/functional/chromoting/auth.py
===================================================================
--- chrome/test/functional/chromoting/auth.py (revision 0)
+++ chrome/test/functional/chromoting/auth.py (revision 0)
@@ -0,0 +1,42 @@
+#!/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 authentication related test cases."""
+
+import chromoting_base
+import sys
Nirnimesh 2012/08/08 19:46:10 system imports should go first local imports (ie c
yihongg 2012/08/10 20:42:52 Done.
+
+
+class ChromotingAuth(chromoting_base.ChromotingBase):
+ """Drives authentication test cases."""
+
+ def setUp(self):
+ """Set up for auth test."""
+ chromoting_base.ChromotingBase.setUp(self)
+
+ webapp = self.InstallExtension(self.GetWebappPath())
+ self.host.LaunchApp(webapp)
+ self.account = self.GetPrivateInfo()['test_chromoting_account']
+
+ def testDenyAllowAccess(self):
+ """Denies access and then allows access."""
+ self.host.ContinueAuth()
+ self.host.LogIn(self.account['username'], self.account['password'])
+ self.host.DenyAccess()
+ self.host.ContinueAuth()
+ self.host.AllowAccess()
+
+ def testSignOutAndSignBackIn(self):
+ """Signs out from chromoting and signs back in."""
+ self.host.ContinueAuth()
+ self.host.LogIn(self.account['username'], self.account['password'])
+ self.host.AllowAccess()
+ self.host.SignOut()
+ self.host.ContinueAuth()
+ self.host.AllowAccess()
+
+
+if __name__ == '__main__':
+ sys.exit(chromoting_base.Main())
Property changes on: chrome/test/functional/chromoting/auth.py
___________________________________________________________________
Added: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698