blob: 1be0a91de60c2d93850c66c71bc407c4f707d6c4 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CRYPTOHOME_MOCK_MOUNT_H_
#define CRYPTOHOME_MOCK_MOUNT_H_
#include "mount.h"
#include <gmock/gmock.h>
namespace cryptohome {
class Credentials;
class MockMount : public Mount {
public:
MockMount() {}
~MockMount() {}
MOCK_METHOD0(Init, bool());
MOCK_METHOD1(AreSameUser, bool(const Credentials&));
MOCK_METHOD1(AreValid, bool(const Credentials&));
MOCK_METHOD3(MountCryptohome, bool(const Credentials&,
const Mount::MountArgs&,
MountError*));
MOCK_METHOD0(UnmountCryptohome, bool());
MOCK_METHOD0(MountGuestCryptohome, bool());
MOCK_METHOD2(MigratePasskey, bool(const Credentials&, const char*));
MOCK_METHOD1(RemoveCryptohome, bool(const Credentials&));
MOCK_METHOD0(DoAutomaticFreeDiskSpaceControl, bool());
MOCK_METHOD1(UpdateCurrentUserActivityTimestamp, bool(int)); // NOLINT
};
} // namespace cryptohome
#endif // CRYPTOHOME_MOCK_MOUNT_H_