diff options
Diffstat (limited to 'tests/storagetest.cpp')
-rw-r--r-- | tests/storagetest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/storagetest.cpp b/tests/storagetest.cpp index 8d5ee00..8e841cb 100644 --- a/tests/storagetest.cpp +++ b/tests/storagetest.cpp | |||
@@ -381,6 +381,15 @@ private Q_SLOTS: | |||
381 | 381 | ||
382 | QCOMPARE(result, QByteArray("value2")); | 382 | QCOMPARE(result, QByteArray("value2")); |
383 | } | 383 | } |
384 | |||
385 | void testRecordRevision() | ||
386 | { | ||
387 | Akonadi2::Storage store(testDataPath, dbName, Akonadi2::Storage::ReadWrite); | ||
388 | auto transaction = store.createTransaction(Akonadi2::Storage::ReadWrite); | ||
389 | Akonadi2::Storage::recordRevision(transaction, 1, "uid", "type"); | ||
390 | QCOMPARE(Akonadi2::Storage::getTypeFromRevision(transaction, 1), QByteArray("type")); | ||
391 | QCOMPARE(Akonadi2::Storage::getUidFromRevision(transaction, 1), QByteArray("uid")); | ||
392 | } | ||
384 | }; | 393 | }; |
385 | 394 | ||
386 | QTEST_MAIN(StorageTest) | 395 | QTEST_MAIN(StorageTest) |