Line data Source code
1 : // Copyright (c) 2009-2014 The Bitcoin Core developers
2 : // Distributed under the MIT software license, see the accompanying
3 : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 :
5 : #ifndef BITCOIN_QT_TEST_PAYMENTSERVERTESTS_H
6 : #define BITCOIN_QT_TEST_PAYMENTSERVERTESTS_H
7 :
8 : #include "../paymentserver.h"
9 :
10 : #include <QObject>
11 : #include <QTest>
12 :
13 2 : class PaymentServerTests : public QObject
14 : {
15 : Q_OBJECT
16 :
17 : private Q_SLOTS:
18 : void paymentServerTests();
19 : };
20 :
21 : // Dummy class to receive paymentserver signals.
22 : // If SendCoinsRecipient was a proper QObject, then
23 : // we could use QSignalSpy... but it's not.
24 12 : class RecipientCatcher : public QObject
25 : {
26 : Q_OBJECT
27 :
28 : public Q_SLOTS:
29 : void getRecipient(SendCoinsRecipient r);
30 :
31 : public:
32 : SendCoinsRecipient recipient;
33 : };
34 :
35 : #endif // BITCOIN_QT_TEST_PAYMENTSERVERTESTS_H
|