aboutsummaryrefslogtreecommitdiff
path: root/libcontextprovider/customer-tests/service/servicetest.h
blob: 6fccee70eed116f67835ef307f8ca9dba244e0ec (plain)
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
#include <QObject>

class QProcess;

namespace ContextProvider {

class ServiceTest : public QObject
{
    Q_OBJECT

    QProcess *client;
    bool isReadyToRead;

private Q_SLOTS:
    void initTestCase();
    void cleanupTestCase();
    void init();
    void cleanup();

    void startStopStart();
    void recreate();
    void multiStart();
    void defaultService();
    void recreateProperty();

public Q_SLOTS:
    void readStandardOutput();

private:
    QString writeToClient(const char* input);

private:
    bool clientStarted;
};

} // end namespace