diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2018-03-29 10:56:04 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@gmail.com> | 2018-04-25 13:08:53 -0400 |
commit | 9c01be1b85f8ad11a8a0826a4a2bcdc2668a5c1f (patch) | |
tree | c689ea08afebf413262c2cf33e07b000156024dd /src/qt/test/util.h | |
parent | 8cdcaee4c7b256c5c3b70f1cfb04a5fb547311cd (diff) |
[tests] [qt] Introduce qt/test/util with a generalized ConfirmMessage
ConfirmMessage is reused in future tests apart from its single usage here.
Diffstat (limited to 'src/qt/test/util.h')
-rw-r--r-- | src/qt/test/util.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qt/test/util.h b/src/qt/test/util.h new file mode 100644 index 0000000000..324386c139 --- /dev/null +++ b/src/qt/test/util.h @@ -0,0 +1,12 @@ +#ifndef BITCOIN_QT_TEST_UTIL_H +#define BITCOIN_QT_TEST_UTIL_H + +/** + * Press "Ok" button in message box dialog. + * + * @param text - Optionally store dialog text. + * @param msec - Number of miliseconds to pause before triggering the callback. + */ +void ConfirmMessage(QString* text = nullptr, int msec = 0); + +#endif // BITCOIN_QT_TEST_UTIL_H |