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