summaryrefslogtreecommitdiffstats
path: root/tests/mailquerybenchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mailquerybenchmark.cpp')
-rw-r--r--tests/mailquerybenchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mailquerybenchmark.cpp b/tests/mailquerybenchmark.cpp
index 080d30e..d68151a 100644
--- a/tests/mailquerybenchmark.cpp
+++ b/tests/mailquerybenchmark.cpp
@@ -69,7 +69,7 @@ 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->setUid("uid"); 72 domainObject->setExtractedMessageId("uid");
73 domainObject->setExtractedSubject(QString("subject%1").arg(i)); 73 domainObject->setExtractedSubject(QString("subject%1").arg(i));
74 domainObject->setExtractedDate(date.addSecs(count)); 74 domainObject->setExtractedDate(date.addSecs(count));
75 domainObject->setFolder("folder1"); 75 domainObject->setFolder("folder1");
@@ -151,7 +151,7 @@ private slots:
151 void test50k() 151 void test50k()
152 { 152 {
153 Sink::Query query; 153 Sink::Query query;
154 query.request<Mail::Uid>() 154 query.request<Mail::MessageId>()
155 .request<Mail::Subject>() 155 .request<Mail::Subject>()
156 .request<Mail::Date>(); 156 .request<Mail::Date>();
157 query.sort<Mail::Date>(); 157 query.sort<Mail::Date>();