OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import dbus, string |
| 6 from autotest_lib.client.bin import site_login, test |
| 7 from autotest_lib.client.common_lib import error |
| 8 |
| 9 class platform_CryptohomeSyncStress(test.test): |
| 10 version = 1 |
| 11 |
| 12 def run_once(self, username, password): |
| 13 # log in. don't use UITest because it uses its own auth and |
| 14 # DNS servers, and we need to do real login and chrome sync |
| 15 site_login.attempt_login(username, password) |
| 16 |
| 17 # make sure cryptohome is mounted |
| 18 bus = dbus.SystemBus() |
| 19 proxy = bus.get_object('org.chromium.Cryptohome', |
| 20 '/org/chromium/Cryptohome') |
| 21 cryptohome = dbus.Interface(proxy, 'org.chromium.CryptohomeInterface') |
| 22 |
| 23 ismounted = cryptohome.IsMounted() |
| 24 if not ismounted: |
| 25 raise error.TestFail('Cryptohome failed to mount.') |
| 26 |
| 27 self.job.set_state('client_fail', False) |
OLD | NEW |