diff --git a/src/Makefile.gtest.include b/src/Makefile.gtest.include index 33b1813f0..2d7eb9ff5 100644 --- a/src/Makefile.gtest.include +++ b/src/Makefile.gtest.include @@ -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) diff --git a/src/wallet/gtest/test_rpc_wallet.cpp b/src/wallet/gtest/test_rpc_wallet.cpp new file mode 100644 index 000000000..f46662d0e --- /dev/null +++ b/src/wallet/gtest/test_rpc_wallet.cpp @@ -0,0 +1,19 @@ +#include +#include + +#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 +#include + +bool find_error(const UniValue& objError, const std::string& expected) { + return find_value(objError, "message").get_str().find(expected) != string::npos; +} \ No newline at end of file