blob: 6455988a4b8e7c8e3d39ad91fe33e753c1f7201c [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.
#ifndef CRYPTOHOME_PKCS11_MOCK_PKCS11_TOKEN_FACTORY_H_
#define CRYPTOHOME_PKCS11_MOCK_PKCS11_TOKEN_FACTORY_H_
#include <memory>
#include <string>
#include <base/files/file_path.h>
#include <brillo/secure_blob.h>
#include <gmock/gmock.h>
#include "cryptohome/pkcs11/pkcs11_token.h"
namespace cryptohome {
class MockPkcs11TokenFactory : public Pkcs11TokenFactory {
public:
MockPkcs11TokenFactory() = default;
~MockPkcs11TokenFactory() override = default;
MOCK_METHOD(std::unique_ptr<Pkcs11Token>,
New,
(const std::string& username,
const base::FilePath& token_dir,
const brillo::SecureBlob& auth_data),
(override));
};
} // namespace cryptohome
#endif // CRYPTOHOME_PKCS11_MOCK_PKCS11_TOKEN_FACTORY_H_