summaryrefslogtreecommitdiffstats
path: root/tests/dummyresourcetest.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-20 16:15:49 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-23 17:37:53 +0200
commitb187b95672fe0d8b16ba80bedd9022f1cda3a051 (patch)
treec86bf63c73eb91aca83a3d0c22be95b7a7515f0b /tests/dummyresourcetest.cpp
parent4a71e5b06506af6e3ab7a7715705e76b6d6e9bb7 (diff)
downloadsink-b187b95672fe0d8b16ba80bedd9022f1cda3a051.tar.gz
sink-b187b95672fe0d8b16ba80bedd9022f1cda3a051.zip
Pass command around as QByteArray
Simpler api, GenericResource didn't honor size anyways, and we copy the command for now to avoid sideeffects of data coming in in the meantime (although that should generally work since data is always appended).
Diffstat (limited to 'tests/dummyresourcetest.cpp')
-rw-r--r--tests/dummyresourcetest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dummyresourcetest.cpp b/tests/dummyresourcetest.cpp
index 7499d62..36812c1 100644
--- a/tests/dummyresourcetest.cpp
+++ b/tests/dummyresourcetest.cpp
@@ -89,8 +89,8 @@ private Q_SLOTS:
89 QSignalSpy revisionSpy(&pipeline, SIGNAL(revisionUpdated())); 89 QSignalSpy revisionSpy(&pipeline, SIGNAL(revisionUpdated()));
90 DummyResource resource("org.kde.dummy.instance1"); 90 DummyResource resource("org.kde.dummy.instance1");
91 resource.configurePipeline(&pipeline); 91 resource.configurePipeline(&pipeline);
92 resource.processCommand(Akonadi2::Commands::CreateEntityCommand, command, command.size(), &pipeline); 92 resource.processCommand(Akonadi2::Commands::CreateEntityCommand, command, &pipeline);
93 resource.processCommand(Akonadi2::Commands::CreateEntityCommand, command, command.size(), &pipeline); 93 resource.processCommand(Akonadi2::Commands::CreateEntityCommand, command, &pipeline);
94 94
95 QVERIFY(revisionSpy.isValid()); 95 QVERIFY(revisionSpy.isValid());
96 QTRY_COMPARE(revisionSpy.count(), 2); 96 QTRY_COMPARE(revisionSpy.count(), 2);