diff options
| author | 2014-12-06 17:33:25 -0500 | |
|---|---|---|
| committer | 2014-12-06 17:33:25 -0500 | |
| commit | 7167ce41b61d2ba2cdb526777a4233eb84a3b66a (patch) | |
| tree | a35c14143716e1f2c98f808c81f89426045a946f /SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp | |
Imported Upstream version 2.99.6upstream/2.99.6
Diffstat (limited to 'SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp')
| -rw-r--r-- | SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
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<SqliteQueryPtr>&) +{ + 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(); +} |
