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.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 SQLiteStudio3/Tests/TestUtils/dbattachermock.h (limited to 'SQLiteStudio3/Tests/TestUtils/dbattachermock.h') diff --git a/SQLiteStudio3/Tests/TestUtils/dbattachermock.h b/SQLiteStudio3/Tests/TestUtils/dbattachermock.h new file mode 100644 index 0000000..b3ab345 --- /dev/null +++ b/SQLiteStudio3/Tests/TestUtils/dbattachermock.h @@ -0,0 +1,23 @@ +#ifndef DBATTACHERMOCK_H +#define DBATTACHERMOCK_H + +#include "dbattacher.h" + +class DbAttacherMock : public DbAttacher +{ + public: + bool attachDatabases(const QString&); + bool attachDatabases(const QList&); + bool attachDatabases(SqliteQueryPtr); + void detachDatabases(); + BiStrHash getDbNameToAttach() const; + QString getQuery() const; +}; + +class DbAttacherFactoryMock : public DbAttacherFactory +{ + public: + DbAttacher* create(Db*); +}; + +#endif // DBATTACHERMOCK_H -- cgit v1.2.3