aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test/wallet_test_fixture.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-04-18 14:54:57 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-04-18 14:57:42 +0200
commitf4eae2d910d9edb3750efec4facbeab161cce593 (patch)
treea01442d5df233ef117344574aa80529b5aded4ec /src/wallet/test/wallet_test_fixture.h
parentde39c95c2468cc643a5d5bed9e5dd8cea6a40747 (diff)
downloadbitcoin-f4eae2d910d9edb3750efec4facbeab161cce593.tar.xz
test: Create test fixture for wallet
Removes all the `#ifdef ENABLE_WALLET` from `test_bitcoin` by making the wallet tests use their own fixture.
Diffstat (limited to 'src/wallet/test/wallet_test_fixture.h')
-rw-r--r--src/wallet/test/wallet_test_fixture.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/wallet/test/wallet_test_fixture.h b/src/wallet/test/wallet_test_fixture.h
new file mode 100644
index 0000000000..97a6d98397
--- /dev/null
+++ b/src/wallet/test/wallet_test_fixture.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2016 The Bitcoin Core developers
+// Distributed under the MIT software license, see the accompanying
+// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+
+#ifndef BITCOIN_WALLET_TEST_FIXTURE_H
+#define BITCOIN_WALLET_TEST_FIXTURE_H
+
+#include "test/test_bitcoin.h"
+
+/** Testing setup and teardown for wallet.
+ */
+struct WalletTestingSetup: public TestingSetup {
+ WalletTestingSetup(const std::string& chainName = CBaseChainParams::MAIN);
+ ~WalletTestingSetup();
+};
+
+#endif
+