aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests
diff options
context:
space:
mode:
authorDusan Klinec <dusan.klinec@gmail.com>2022-10-20 17:23:28 +0200
committerDusan Klinec <dusan.klinec@gmail.com>2022-11-17 12:12:23 +0100
commit1114e7eed778b4957561bca4da5c7631f8c60133 (patch)
treeacf440f32a8af468dbdc1b74c4c8ab139f504f7b /tests/core_tests
parentMerge pull request #8587 (diff)
downloadmonero-1114e7eed778b4957561bca4da5c7631f8c60133.tar.xz
fix(trezor-tests): fix trezor tests build, fix integrated addr test
- fix integrated address test, it was not testing integrated address suport - fix trezor test build as dependent classes were changed - add a friend test class for Monero::WalletImpl to support wallet api tests When using wallet_api in tests, synthetic chain is used. Without being able to set `allow_mismatched_daemon_version` in the underlying wallet, we are not able to use a synthetic chain with the tests
Diffstat (limited to 'tests/core_tests')
-rw-r--r--tests/core_tests/wallet_tools.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/core_tests/wallet_tools.h b/tests/core_tests/wallet_tools.h
index 982862d45..20cd2c4d9 100644
--- a/tests/core_tests/wallet_tools.h
+++ b/tests/core_tests/wallet_tools.h
@@ -32,6 +32,7 @@
#include "chaingen.h"
#include "wallet/wallet2.h"
+#include "wallet/api/wallet.h"
typedef struct {
tools::wallet2::transfer_details * td;
@@ -57,6 +58,13 @@ public:
static void process_parsed_blocks(tools::wallet2 * wallet, uint64_t start_height, const std::vector<cryptonote::block_complete_entry> &blocks, const std::vector<tools::wallet2::parsed_block> &parsed_blocks, uint64_t& blocks_added);
};
+// Wallet API friend, direct access to required fields and private methods
+class WalletApiAccessorTest
+{
+public:
+ static void allow_mismatched_daemon_version(Monero::WalletImpl * wallet, bool allow_mismatch) { wallet->m_wallet->allow_mismatched_daemon_version(allow_mismatch); }
+};
+
class wallet_tools
{
public: