Create a new gtest group WalletRPCTests

This commit is contained in:
sasha 2022-04-20 20:49:14 -07:00
parent 84197d858f
commit 996e6dde9e
2 changed files with 21 additions and 1 deletions

View File

@ -65,7 +65,8 @@ zcash_gtest_SOURCES += \
wallet/gtest/test_note_selection.cpp \
wallet/gtest/test_orchard_wallet.cpp \
wallet/gtest/test_paymentdisclosure.cpp \
wallet/gtest/test_wallet.cpp
wallet/gtest/test_wallet.cpp \
wallet/gtest/test_rpc_wallet.cpp
endif
zcash_gtest_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)

View File

@ -0,0 +1,19 @@
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "main.h"
#include "primitives/transaction.h"
#include "consensus/validation.h"
#include "transaction_builder.h"
#include "utiltest.h"
#include "wallet/asyncrpcoperation_mergetoaddress.h"
#include "wallet/asyncrpcoperation_shieldcoinbase.h"
#include "wallet/asyncrpcoperation_sendmany.h"
#include "zcash/JoinSplit.hpp"
#include <librustzcash.h>
#include <rust/ed25519.h>
bool find_error(const UniValue& objError, const std::string& expected) {
return find_value(objError, "message").get_str().find(expected) != string::npos;
}