-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_crypto.cpp
More file actions
59 lines (41 loc) · 975 Bytes
/
Copy pathtest_crypto.cpp
File metadata and controls
59 lines (41 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include <QTest>
#include <QPushButton>
#include <QSlider>
#include <QLineEdit>
#include "crypto.hpp"
#include "test_config.hpp"
class TestCrypto : public QObject {
Q_OBJECT
private slots:
void initTestCase();
private:
Crypto widget;
};
void TestCrypto::initTestCase() {
{
auto w = widget.findChild<QLineEdit *>("inputpath");
QVERIFY2(w, "Could not find a QLineEdit widget");
}
{
auto w = widget.findChild<QPushButton *>("play");
QVERIFY2(w, "Could not find play button");
}
{
auto w = widget.findChild<QPushButton *>("pause");
QVERIFY2(w, "Could not find pause button");
}
{
auto w = widget.findChild<QPushButton *>("stop");
QVERIFY2(w, "Could not find stop button");
}
{
auto w = widget.findChild<QSlider *>("volume");
QVERIFY2(w, "Could not find volume slider");
}
{
auto w = widget.findChild<QPushButton *>("mute");
QVERIFY2(w, "Could not find mute button");
}
}
QTEST_MAIN(TestCrypto)
#include "test_crypto.moc"