UnitTests: Fix LastChangedRowId

Change-Id: I538d068168488eee2662618dede598135c45e396
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2020-05-22 19:04:03 +02:00
parent ae5ce649c1
commit 64cbffe959
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ public:
: database(database)
{
callback = [=](ChangeType, char const *database, char const *table, long long rowId) {
callback = [=](ChangeType, char const *, char const *, long long rowId) {
this->lastRowId = rowId;
};
@@ -51,7 +51,7 @@ public:
: database(database)
{
callback = [=](ChangeType, char const *database, char const *table, long long rowId) {
callback = [=](ChangeType, char const *database, char const *, long long rowId) {
if (databaseName == database)
this->lastRowId = rowId;
};

View File

@@ -369,7 +369,7 @@ class LastChangedRowIdWithNoTable : public testing::Test
{
protected:
NiceMock<MockSqliteDatabase> mockSqliteDatabase;
Sqlite::LastChangedRowId lastRowId{mockSqliteDatabase};
Sqlite::LastChangedRowId lastRowId{mockSqliteDatabase, "main"};
};
TEST_F(LastChangedRowIdWithNoTable, SetUpdateHookInContructor)