summaryrefslogtreecommitdiffstats
path: root/tests/mailquerybenchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mailquerybenchmark.cpp')
-rw-r--r--tests/mailquerybenchmark.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/mailquerybenchmark.cpp b/tests/mailquerybenchmark.cpp
index 702239d..0e2f6fa 100644
--- a/tests/mailquerybenchmark.cpp
+++ b/tests/mailquerybenchmark.cpp
@@ -69,11 +69,11 @@ class MailQueryBenchmark : public QObject
69 const auto date = QDateTime::currentDateTimeUtc(); 69 const auto date = QDateTime::currentDateTimeUtc();
70 for (int i = 0; i < count; i++) { 70 for (int i = 0; i < count; i++) {
71 auto domainObject = Mail::Ptr::create(); 71 auto domainObject = Mail::Ptr::create();
72 domainObject->setProperty("uid", "uid"); 72 domainObject->setUid("uid");
73 domainObject->setProperty("subject", QString("subject%1").arg(i)); 73 domainObject->setExtractedSubject(QString("subject%1").arg(i));
74 domainObject->setProperty("date", date.addSecs(count)); 74 domainObject->setExtractedDate(date.addSecs(count));
75 domainObject->setProperty("folder", "folder1"); 75 domainObject->setFolder("folder1");
76 // domainObject->setProperty("attachment", attachment); 76 // domainObject->setAttachment(attachment);
77 const auto command = createCommand<Mail>(*domainObject, *domainTypeAdaptorFactory); 77 const auto command = createCommand<Mail>(*domainObject, *domainTypeAdaptorFactory);
78 pipeline->newEntity(command.data(), command.size()); 78 pipeline->newEntity(command.data(), command.size());
79 } 79 }