Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/walletdb_tests.cpp
Show All 32 Lines | |||||
} | } | ||||
static std::unique_ptr<CWallet> LoadWallet(CWalletDB *db) { | static std::unique_ptr<CWallet> LoadWallet(CWalletDB *db) { | ||||
std::unique_ptr<CWallet> wallet(new CWallet); | std::unique_ptr<CWallet> wallet(new CWallet); | ||||
DBErrors res = db->LoadWallet(wallet.get()); | DBErrors res = db->LoadWallet(wallet.get()); | ||||
BOOST_CHECK(res == DB_LOAD_OK); | BOOST_CHECK(res == DB_LOAD_OK); | ||||
return wallet; | return wallet; | ||||
} | } | ||||
} | } // namespace | ||||
BOOST_FIXTURE_TEST_SUITE(walletdb_tests, WalletDBTestingSetup); | BOOST_FIXTURE_TEST_SUITE(walletdb_tests, WalletDBTestingSetup); | ||||
BOOST_AUTO_TEST_CASE(write_erase_name) { | BOOST_AUTO_TEST_CASE(write_erase_name) { | ||||
auto walletdb = TmpDB(pathTemp, "write_erase_name"); | auto walletdb = TmpDB(pathTemp, "write_erase_name"); | ||||
CTxDestination dst1 = CKeyID(uint160S("c0ffee")); | CTxDestination dst1 = CKeyID(uint160S("c0ffee")); | ||||
CTxDestination dst2 = CKeyID(uint160S("f00d")); | CTxDestination dst2 = CKeyID(uint160S("f00d")); | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |