aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/mocksqlitedatabase.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-09-21 11:43:59 +0200
committerTim Jenssen <tim.jenssen@qt.io>2017-10-05 17:36:37 +0000
commitd2e15e5f1efa1ef160a2d4f40ab61180477d1f14 (patch)
treeb35eeec94b895a48e9c7ce6ea00c245935d1ea38 /tests/unit/unittest/mocksqlitedatabase.h
parent0be824000262882023b2b48b5eab0786f3db379b (diff)
Clang: Add file cache
The database is using file path integer ids to handle file paths because otherwise we would save many redundant data. This patch is improving it further with the introduction of a database based file path cache. The entries are now divided in a directory path and file name. This is quite handy for directory based file watching. Change-Id: I03f2e388e43f3d521d6bf8e39dfb95eb2309dc73 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'tests/unit/unittest/mocksqlitedatabase.h')
-rw-r--r--tests/unit/unittest/mocksqlitedatabase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/unittest/mocksqlitedatabase.h b/tests/unit/unittest/mocksqlitedatabase.h
index bad4eefda2..ce903c5b62 100644
--- a/tests/unit/unittest/mocksqlitedatabase.h
+++ b/tests/unit/unittest/mocksqlitedatabase.h
@@ -50,5 +50,8 @@ public:
MOCK_METHOD0(databaseMutex,
MockMutex &());
+
+ MOCK_CONST_METHOD0(lastInsertedRowId,
+ int64_t ());
};