diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dummyresourcebenchmark.cpp | 2 | ||||
-rw-r--r-- | tests/dummyresourcetest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index fd2cb01..7d40779 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp | |||
@@ -133,7 +133,7 @@ private Q_SLOTS: | |||
133 | const QByteArray command(reinterpret_cast<const char *>(fbb.GetBufferPointer()), fbb.GetSize()); | 133 | const QByteArray command(reinterpret_cast<const char *>(fbb.GetBufferPointer()), fbb.GetSize()); |
134 | 134 | ||
135 | for (int i = 0; i < num; i++) { | 135 | for (int i = 0; i < num; i++) { |
136 | resource.processCommand(Akonadi2::Commands::CreateEntityCommand, command, command.size(), &pipeline); | 136 | resource.processCommand(Akonadi2::Commands::CreateEntityCommand, command, &pipeline); |
137 | } | 137 | } |
138 | auto appendTime = time.elapsed(); | 138 | auto appendTime = time.elapsed(); |
139 | 139 | ||
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); |