diff options
author | Marco Bubke <marco.bubke@qt.io> | 2019-05-20 16:46:22 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2019-06-17 10:46:12 +0000 |
commit | 912cb9278f7528709f9edf08060d997c20d3ec8c (patch) | |
tree | e0bc19fbd679092c31cf57de59ebc7ce0ee1b9e2 /tests/unit/unittest/mocksqlitedatabase.h | |
parent | 60ea77f3ebb56931e95430a218f292e670654f3b (diff) |
ClangRefactoring: Ensure that database is written to log after indexing
Change-Id: Ic2473d9fe8dc9b41a7da728c9e1b5202524c1a79
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'tests/unit/unittest/mocksqlitedatabase.h')
-rw-r--r-- | tests/unit/unittest/mocksqlitedatabase.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/unittest/mocksqlitedatabase.h b/tests/unit/unittest/mocksqlitedatabase.h index 5bef2ba8c5..05f6f4e958 100644 --- a/tests/unit/unittest/mocksqlitedatabase.h +++ b/tests/unit/unittest/mocksqlitedatabase.h @@ -31,12 +31,13 @@ #include "mocksqlitetransactionbackend.h" #include "mocksqlitewritestatement.h" +#include <sqlitedatabaseinterface.h> #include <sqlitetable.h> #include <sqlitetransaction.h> #include <utils/smallstringview.h> -class MockSqliteDatabase : public MockSqliteTransactionBackend +class MockSqliteDatabase : public MockSqliteTransactionBackend, public Sqlite::DatabaseInterface { public: using ReadStatement = NiceMock<MockSqliteReadStatement>; @@ -56,5 +57,7 @@ public: MOCK_METHOD1(setIsInitialized, void (bool)); + + MOCK_METHOD0(walCheckpointFull, void()); }; |