summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/dummyresourcebenchmark.cpp2
-rw-r--r--tests/resourcecommunicationtest.cpp16
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp
index 124abc1..1e71fc2 100644
--- a/tests/dummyresourcebenchmark.cpp
+++ b/tests/dummyresourcebenchmark.cpp
@@ -86,7 +86,7 @@ private slots:
86 QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid")); 86 QCOMPARE(event.getProperty("uid").toByteArray(), QByteArray("testuid"));
87 event.setProperty("summary", "summaryValue"); 87 event.setProperty("summary", "summaryValue");
88 88
89 auto notifier = QSharedPointer<Sink::Notifier>::create("org.kde.dummy.instance1"); 89 auto notifier = QSharedPointer<Sink::Notifier>::create("org.kde.dummy.instance1", "org.kde.dummy");
90 bool gotNotification = false; 90 bool gotNotification = false;
91 int duration = 0; 91 int duration = 0;
92 notifier->registerHandler([&gotNotification, &duration, &time](const Sink::Notification &notification) { 92 notifier->registerHandler([&gotNotification, &duration, &time](const Sink::Notification &notification) {
diff --git a/tests/resourcecommunicationtest.cpp b/tests/resourcecommunicationtest.cpp
index 2daf372..2874457 100644
--- a/tests/resourcecommunicationtest.cpp
+++ b/tests/resourcecommunicationtest.cpp
@@ -15,8 +15,8 @@ private slots:
15 void testConnect() 15 void testConnect()
16 { 16 {
17 const QByteArray resourceIdentifier("test"); 17 const QByteArray resourceIdentifier("test");
18 Listener listener(resourceIdentifier); 18 Listener listener(resourceIdentifier, "");
19 Sink::ResourceAccess resourceAccess(resourceIdentifier); 19 Sink::ResourceAccess resourceAccess(resourceIdentifier, "");
20 20
21 QSignalSpy spy(&resourceAccess, &Sink::ResourceAccess::ready); 21 QSignalSpy spy(&resourceAccess, &Sink::ResourceAccess::ready);
22 resourceAccess.open(); 22 resourceAccess.open();
@@ -26,8 +26,8 @@ private slots:
26 void testHandshake() 26 void testHandshake()
27 { 27 {
28 const QByteArray resourceIdentifier("test"); 28 const QByteArray resourceIdentifier("test");
29 Listener listener(resourceIdentifier); 29 Listener listener(resourceIdentifier, "");
30 Sink::ResourceAccess resourceAccess(resourceIdentifier); 30 Sink::ResourceAccess resourceAccess(resourceIdentifier, "");
31 resourceAccess.open(); 31 resourceAccess.open();
32 32
33 flatbuffers::FlatBufferBuilder fbb; 33 flatbuffers::FlatBufferBuilder fbb;
@@ -42,8 +42,8 @@ private slots:
42 void testCommandLoop() 42 void testCommandLoop()
43 { 43 {
44 const QByteArray resourceIdentifier("test"); 44 const QByteArray resourceIdentifier("test");
45 Listener listener(resourceIdentifier); 45 Listener listener(resourceIdentifier, "");
46 Sink::ResourceAccess resourceAccess(resourceIdentifier); 46 Sink::ResourceAccess resourceAccess(resourceIdentifier, "");
47 resourceAccess.open(); 47 resourceAccess.open();
48 48
49 const int count = 500; 49 const int count = 500;
@@ -67,8 +67,8 @@ private slots:
67 { 67 {
68 qDebug(); 68 qDebug();
69 const QByteArray resourceIdentifier("test"); 69 const QByteArray resourceIdentifier("test");
70 Listener listener(resourceIdentifier); 70 Listener listener(resourceIdentifier, "");
71 Sink::ResourceAccess resourceAccess(resourceIdentifier); 71 Sink::ResourceAccess resourceAccess(resourceIdentifier, "");
72 resourceAccess.open(); 72 resourceAccess.open();
73 73
74 const int count = 10; 74 const int count = 10;