• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2011 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
5from autotest_lib.client.bin import test, utils
6from autotest_lib.client.cros import cryptohome
7
8class platform_CryptohomeMultiple(test.test):
9    version = 1
10
11
12    def test_mount_single(self):
13        """
14        Tests mounting a single not-already-existing cryptohome. Ensures that
15        the infrastructure for multiple mounts is present and active.
16        """
17        user = utils.random_username()
18        cryptohome.mount_vault(user, 'test', create=True)
19        cryptohome.unmount_vault(user)
20
21
22    def run_once(self):
23        self.test_mount_single()
24