[Qt] add payment request unit test for non matching networks

- verify that payment request network matches client network
- add static verifyNetwork() function to PaymentServer to be able to use
  the same validation code in GUI and unit-testing code
This commit is contained in:
Philip Kaufmann
2015-01-12 08:43:08 +01:00
parent 080da96c7c
commit 17005bc0fc
4 changed files with 68 additions and 2 deletions

View File

@@ -91,6 +91,9 @@ public:
// This is now public, because we use it in paymentservertests.cpp
static bool readPaymentRequestFromFile(const QString& filename, PaymentRequestPlus& request);
// Verify that the payment request network matches the client network
static bool verifyNetwork(const payments::PaymentDetails& requestDetails);
signals:
// Fired when a valid payment request is received
void receivedPaymentRequest(SendCoinsRecipient);