diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/entitystoretest.cpp | 10 | ||||
-rw-r--r-- | tests/mailquerybenchmark.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/entitystoretest.cpp b/tests/entitystoretest.cpp index 925ca7e..90575a5 100644 --- a/tests/entitystoretest.cpp +++ b/tests/entitystoretest.cpp | |||
@@ -49,14 +49,14 @@ private slots: | |||
49 | mail3.setExtractedSubject("foo"); | 49 | mail3.setExtractedSubject("foo"); |
50 | 50 | ||
51 | store.startTransaction(Storage::DataStore::ReadWrite); | 51 | store.startTransaction(Storage::DataStore::ReadWrite); |
52 | store.add("mail", mail, false, [] (const ApplicationDomain::ApplicationDomainType &) {}); | 52 | store.add("mail", mail, false); |
53 | store.add("mail", mail2, false, [] (const ApplicationDomain::ApplicationDomainType &) {}); | 53 | store.add("mail", mail2, false); |
54 | store.add("mail", mail3, false, [] (const ApplicationDomain::ApplicationDomainType &) {}); | 54 | store.add("mail", mail3, false); |
55 | 55 | ||
56 | mail.setExtractedSubject("foo"); | 56 | mail.setExtractedSubject("foo"); |
57 | 57 | ||
58 | store.modify("mail", mail, {}, false, [] (const ApplicationDomain::ApplicationDomainType &, ApplicationDomain::ApplicationDomainType &) {}); | 58 | store.modify("mail", mail, QByteArrayList{}, false); |
59 | store.remove("mail", mail3.identifier(), false, [] (const ApplicationDomain::ApplicationDomainType &) {}); | 59 | store.remove("mail", mail3, false); |
60 | store.commitTransaction(); | 60 | store.commitTransaction(); |
61 | 61 | ||
62 | store.startTransaction(Storage::DataStore::ReadOnly); | 62 | store.startTransaction(Storage::DataStore::ReadOnly); |
diff --git a/tests/mailquerybenchmark.cpp b/tests/mailquerybenchmark.cpp index 3ecfa19..b15c8d6 100644 --- a/tests/mailquerybenchmark.cpp +++ b/tests/mailquerybenchmark.cpp | |||
@@ -72,7 +72,7 @@ class MailQueryBenchmark : public QObject | |||
72 | domainObject.setFolder(QByteArray("folder") + QByteArray::number(i - (i % folderSpreadFactor))); | 72 | domainObject.setFolder(QByteArray("folder") + QByteArray::number(i - (i % folderSpreadFactor))); |
73 | } | 73 | } |
74 | 74 | ||
75 | entityStore.add("mail", domainObject, false, [] (const Mail &) {}); | 75 | entityStore.add("mail", domainObject, false); |
76 | } | 76 | } |
77 | 77 | ||
78 | entityStore.commitTransaction(); | 78 | entityStore.commitTransaction(); |