blob: 57c2fdcd21dd5d2a69389c861d864a7fafe26d7b [file] [log] [blame]
// Copyright 2021 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.
#include "cryptohome/mock_cryptohome_keys_manager.h"
using testing::_;
using testing::Return;
namespace cryptohome {
MockCryptohomeKeysManager::MockCryptohomeKeysManager()
: CryptohomeKeysManager(nullptr, nullptr) {
ON_CALL(*this, Init()).WillByDefault(Return());
ON_CALL(*this, HasAnyCryptohomeKey()).WillByDefault(Return(true));
ON_CALL(*this, ReloadAllCryptohomeKeys()).WillByDefault(Return(true));
ON_CALL(*this, GetKeyLoader(_))
.WillByDefault(Return(&mock_cryptohome_key_loader_));
}
} // namespace cryptohome