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

Side by Side Diff: client/site_tests/login_CryptohomeMounted/login_CryptohomeMounted.py

Issue 5519008: Create a cros directory under client, and start moving things into it. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 10 years 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
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 from autotest_lib.client.bin import chromeos_constants
7 from autotest_lib.client.bin import site_cryptohome, site_login, site_ui_test 6 from autotest_lib.client.bin import site_cryptohome, site_login, site_ui_test
8 7 from autotest_lib.client.cros import constants as chromeos_constants
9 8
10 TEST_USER = 'cryptohome_test@chromium.org' 9 TEST_USER = 'cryptohome_test@chromium.org'
11 TEST_PASS = 'testme' 10 TEST_PASS = 'testme'
12 TEST_FILE = os.path.join(chromeos_constants.CRYPTOHOME_MOUNT_PT, 'hello') 11 TEST_FILE = os.path.join(chromeos_constants.CRYPTOHOME_MOUNT_PT, 'hello')
13 12
14 13
15 class login_CryptohomeMounted(site_ui_test.UITest): 14 class login_CryptohomeMounted(site_ui_test.UITest):
16 version = 1 15 version = 1
17 16
18 def run_once(self): 17 def run_once(self):
19 site_login.wait_for_cryptohome() 18 site_login.wait_for_cryptohome()
20 site_login.attempt_logout() 19 site_login.attempt_logout()
21 site_cryptohome.remove_vault(TEST_USER) 20 site_cryptohome.remove_vault(TEST_USER)
22 site_cryptohome.mount_vault(TEST_USER, TEST_PASS, create=True) 21 site_cryptohome.mount_vault(TEST_USER, TEST_PASS, create=True)
23 open(TEST_FILE, 'w').close() 22 open(TEST_FILE, 'w').close()
24 self.login() 23 self.login()
25 site_login.wait_for_cryptohome() 24 site_login.wait_for_cryptohome()
26 self.assert_(not os.path.exists(TEST_FILE)) 25 self.assert_(not os.path.exists(TEST_FILE))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698