forked from qt-creator/qt-creator
UnitTests: Fix LastChangedRowId
Change-Id: I538d068168488eee2662618dede598135c45e396 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user