• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 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#pylint: disable-msg=C0111
6
7from autotest_lib.client.bin import test
8from autotest_lib.client.common_lib import error
9from autotest_lib.client.common_lib.cros import chrome
10from autotest_lib.client.cros import cryptohome
11
12class login_CryptohomeIncognito(test.test):
13    version = 1
14
15
16    def run_once(self):
17        with chrome.Chrome(logged_in=False):
18            if not cryptohome.is_guest_vault_mounted():
19                raise error.TestFail('Expected to find a guest vault mounted.')
20        # Allow the command to fail, so we can handle the error here.
21        if cryptohome.is_guest_vault_mounted(allow_fail=True):
22            raise error.TestFail('Expected to NOT find a guest vault mounted.')
23