summaryrefslogtreecommitdiffstats
path: root/tests/storagebenchmark.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-15 19:28:05 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-15 19:28:05 +0100
commit3dd90236e7927028ff5c98635f8075189c9869c2 (patch)
treeaefb7ce4e698b6c9d6993546d5e437a61d7ce4e3 /tests/storagebenchmark.cpp
parentcb0f5fb769380db5771ff8e0dba8d780cdc92edb (diff)
downloadsink-3dd90236e7927028ff5c98635f8075189c9869c2.tar.gz
sink-3dd90236e7927028ff5c98635f8075189c9869c2.zip
namespace everything in libs with Akonadi2
Diffstat (limited to 'tests/storagebenchmark.cpp')
-rw-r--r--tests/storagebenchmark.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/storagebenchmark.cpp b/tests/storagebenchmark.cpp
index 130753f..9cf9a71 100644
--- a/tests/storagebenchmark.cpp
+++ b/tests/storagebenchmark.cpp
@@ -62,7 +62,7 @@ private Q_SLOTS:
62 62
63 void cleanupTestCase() 63 void cleanupTestCase()
64 { 64 {
65 Storage store(testDataPath, dbName); 65 Akonadi2::Storage store(testDataPath, dbName);
66 store.removeFromDisk(); 66 store.removeFromDisk();
67 } 67 }
68 68
@@ -80,9 +80,9 @@ private Q_SLOTS:
80 QFETCH(bool, useDb); 80 QFETCH(bool, useDb);
81 QFETCH(int, count); 81 QFETCH(int, count);
82 82
83 QScopedPointer<Storage> store; 83 QScopedPointer<Akonadi2::Storage> store;
84 if (useDb) { 84 if (useDb) {
85 store.reset(new Storage(testDataPath, dbName, Storage::ReadWrite)); 85 store.reset(new Akonadi2::Storage(testDataPath, dbName, Akonadi2::Storage::ReadWrite));
86 } 86 }
87 87
88 std::ofstream myfile; 88 std::ofstream myfile;
@@ -143,10 +143,10 @@ private Q_SLOTS:
143 qDebug() << "File reading is not implemented."; 143 qDebug() << "File reading is not implemented.";
144 } 144 }
145 } 145 }
146 146
147 void testScan() 147 void testScan()
148 { 148 {
149 QScopedPointer<Storage> store(new Storage(testDataPath, dbName, Storage::ReadOnly)); 149 QScopedPointer<Akonadi2::Storage> store(new Akonadi2::Storage(testDataPath, dbName, Akonadi2::Storage::ReadOnly));
150 150
151 QBENCHMARK { 151 QBENCHMARK {
152 int hit = 0; 152 int hit = 0;
@@ -163,7 +163,7 @@ private Q_SLOTS:
163 163
164 void testKeyLookup() 164 void testKeyLookup()
165 { 165 {
166 QScopedPointer<Storage> store(new Storage(testDataPath, dbName, Storage::ReadOnly)); 166 QScopedPointer<Akonadi2::Storage> store(new Akonadi2::Storage(testDataPath, dbName, Akonadi2::Storage::ReadOnly));
167 167
168 QBENCHMARK { 168 QBENCHMARK {
169 int hit = 0; 169 int hit = 0;
@@ -203,7 +203,7 @@ private Q_SLOTS:
203 203
204 void testSizes() 204 void testSizes()
205 { 205 {
206 Storage store(testDataPath, dbName); 206 Akonadi2::Storage store(testDataPath, dbName);
207 qDebug() << "Database size [kb]: " << store.diskUsage()/1024; 207 qDebug() << "Database size [kb]: " << store.diskUsage()/1024;
208 208
209 QFileInfo fileInfo(filePath); 209 QFileInfo fileInfo(filePath);