Files
pay/testing/wallet/TestWallet.h
T
TomZ cb2b147096 Split 'balance' into 3 variables.
* confirmed
* unconfirmed
* immature
2020-11-06 22:54:39 +01:00

51 lines
1.3 KiB
C++

/*
* This file is part of the Flowee project
* Copyright (C) 2020 Tom Zander <tomz@freedommail.ch>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TEST_WALLET_H
#define TEST_WALLET_H
#include <QObject>
#include <utils/primitives/key.h>
struct ECC_State {
ECC_State() { ECC_Start(); }
~ECC_State() { ECC_Stop(); }
};
class Wallet;
class TestWallet : public QObject
{
Q_OBJECT
private slots:
void cleanup(); // called after each testcase.
void transactionOrdering();
void addingTransactions();
void saveTransaction();
void saveTransaction2();
private:
std::unique_ptr<Wallet> createWallet();
std::unique_ptr<Wallet> openWallet();
QString m_dir;
const ECC_State m_state;
};
#endif