blob: 1dc39b6f374813edfadb557e2c76e3da1d612bb3 [file] [log] [blame]
// Copyright 2021 The ChromiumOS Authors
// 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"
#include "cryptohome/pkcs11/pkcs11_token_factory.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_