2022-07-04 21:14:13 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Onboarding/Accounts/AccountsServiceInterface.h"
|
|
|
|
|
|
|
|
#include <gmock/gmock.h>
|
|
|
|
|
|
|
|
namespace Onboarding = Status::Onboarding;
|
|
|
|
|
|
|
|
namespace Status::Testing
|
|
|
|
{
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief The AccountsServiceMock test class
|
|
|
|
*
|
|
|
|
* \todo Consider if this is really neaded for testing controllers
|
|
|
|
* \todo Move it to mocks subfolder
|
|
|
|
*/
|
|
|
|
class AccountsServiceMock final : public Onboarding::AccountsServiceInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~AccountsServiceMock() override {};
|
|
|
|
|
|
|
|
MOCK_METHOD(bool, init, (const fs::path&), (override));
|
|
|
|
MOCK_METHOD(std::vector<Onboarding::AccountDto>, openAndListAccounts, (), (override));
|
|
|
|
MOCK_METHOD(const std::vector<Onboarding::GeneratedAccountDto>&, generatedAccounts, (), (const, override));
|
|
|
|
MOCK_METHOD(bool, setupAccountAndLogin, (const QString&, const QString&, const QString&), (override));
|
|
|
|
MOCK_METHOD(const Onboarding::AccountDto&, getLoggedInAccount, (), (const, override));
|
|
|
|
MOCK_METHOD(const Onboarding::GeneratedAccountDto&, getImportedAccount, (), (const, override));
|
|
|
|
MOCK_METHOD(bool, isFirstTimeAccountLogin, (), (const, override));
|
|
|
|
MOCK_METHOD(bool, setKeyStoreDir, (const QString&), (override));
|
|
|
|
MOCK_METHOD(QString, login, (Onboarding::AccountDto, const QString&), (override));
|
|
|
|
MOCK_METHOD(void, clear, (), (override));
|
|
|
|
MOCK_METHOD(QString, generateAlias, (const QString&), (override));
|
2022-07-07 18:16:59 +00:00
|
|
|
MOCK_METHOD(void, deleteMultiAccount, (const Onboarding::AccountDto&), (override));
|
2022-07-04 21:14:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|