From 7167ce41b61d2ba2cdb526777a4233eb84a3b66a Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 6 Dec 2014 17:33:25 -0500 Subject: Imported Upstream version 2.99.6 --- SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp (limited to 'SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp') diff --git a/SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp b/SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp new file mode 100644 index 0000000..9f61d2d --- /dev/null +++ b/SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp @@ -0,0 +1,35 @@ +#include "dbattachermock.h" + +bool DbAttacherMock::attachDatabases(const QString&) +{ + return true; +} + +bool DbAttacherMock::attachDatabases(const QList&) +{ + return true; +} + +bool DbAttacherMock::attachDatabases(SqliteQueryPtr) +{ + return true; +} + +void DbAttacherMock::detachDatabases() +{ +} + +BiStrHash DbAttacherMock::getDbNameToAttach() const +{ + return BiStrHash(); +} + +QString DbAttacherMock::getQuery() const +{ + return QString(); +} + +DbAttacher* DbAttacherFactoryMock::create(Db*) +{ + return new DbAttacherMock(); +} -- cgit v1.2.3