32 #ifndef LEDGER_CORE_BASEFIXTURE_H 33 #define LEDGER_CORE_BASEFIXTURE_H 35 #include <gtest/gtest.h> 36 #include <async/QtThreadDispatcher.hpp> 37 #include <src/database/DatabaseSessionPool.hpp> 38 #include <NativePathResolver.hpp> 39 #include <unordered_set> 40 #include <src/wallet/pool/WalletPool.hpp> 41 #include <CoutLogPrinter.hpp> 42 #include <src/api/DynamicObject.hpp> 43 #include <wallet/common/CurrencyBuilder.hpp> 44 #include <wallet/bitcoin/BitcoinLikeWallet.hpp> 45 #include <wallet/bitcoin/database/BitcoinLikeWalletDatabase.h> 46 #include <wallet/bitcoin/database/BitcoinLikeTransactionDatabaseHelper.h> 47 #include <wallet/common/database/AccountDatabaseHelper.h> 48 #include <wallet/pool/database/PoolDatabaseHelper.hpp> 49 #include <utils/JSONUtils.h> 50 #include <wallet/bitcoin/explorers/api/TransactionParser.hpp> 51 #include <async/async_wait.h> 52 #include <wallet/bitcoin/BitcoinLikeAccount.hpp> 53 #include <api/BitcoinLikeOperation.hpp> 54 #include <api/BitcoinLikeTransaction.hpp> 55 #include <api/BitcoinLikeInput.hpp> 56 #include <api/BitcoinLikeOutput.hpp> 57 #include <api/BigInt.hpp> 58 #include <net/QtHttpClient.hpp> 59 #include <events/LambdaEventReceiver.hpp> 61 #include <api/Account.hpp> 62 #include <api/BitcoinLikeAccount.hpp> 70 extern const std::string TX_1;
71 extern const std::string TX_2;
72 extern const std::string TX_3;
73 extern const std::string TX_4;
78 void SetUp()
override;
79 void TearDown()
override;
80 std::shared_ptr<WalletPool> newDefaultPool(std::string poolName =
"my_ppol");
81 void createWallet(
const std::shared_ptr<WalletPool>& pool,
82 const std::string& walletName,
83 const std::string& currencyName,
84 const std::shared_ptr<api::DynamicObject> &configuration);
86 void createAccount(
const std::shared_ptr<WalletPool>& pool,
const std::string& walletName, int32_t index);
88 const std::string& walletName,
89 const std::string& currencyName,
90 const std::shared_ptr<api::DynamicObject> &configuration,
92 const std::string& xpub);
93 std::shared_ptr<BitcoinLikeAccount> createBitcoinLikeAccount(
const std::shared_ptr<AbstractWallet>& wallet,
97 std::shared_ptr<BitcoinLikeAccount> createBitcoinLikeAccount(
const std::shared_ptr<AbstractWallet>& wallet,
102 std::shared_ptr<QtThreadDispatcher> dispatcher;
103 std::shared_ptr<NativePathResolver> resolver;
104 std::shared_ptr<DatabaseBackend> backend;
105 std::shared_ptr<CoutLogPrinter> printer;
106 std::shared_ptr<QtHttpClient> http;
109 #endif //LEDGER_CORE_BASEFIXTURE_H Definition: Account.cpp:8
Definition: BitcoinLikeWalletDatabase.h:42
Definition: ExtendedKeyAccountCreationInfo.hpp:16
Definition: BaseFixture.h:76
Definition: AccountCreationInfo.hpp:16