Home | History | Annotate | Download | only in login_CryptohomeIncognito
      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 
      7 from autotest_lib.client.bin import test
      8 from autotest_lib.client.common_lib import error
      9 from autotest_lib.client.common_lib.cros import chrome
     10 from autotest_lib.client.cros import cryptohome
     11 
     12 class 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 '
     20                                      'mounted via tmpfs.')
     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