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.h | |
Imported Upstream version 2.99.6upstream/2.99.6
Diffstat (limited to 'SQLiteStudio3/Tests/TestUtils/dbattachermock.h')
| -rw-r--r-- | SQLiteStudio3/Tests/TestUtils/dbattachermock.h | 23 |
1 files changed, 23 insertions, 0 deletions
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<SqliteQueryPtr>&); + bool attachDatabases(SqliteQueryPtr); + void detachDatabases(); + BiStrHash getDbNameToAttach() const; + QString getQuery() const; +}; + +class DbAttacherFactoryMock : public DbAttacherFactory +{ + public: + DbAttacher* create(Db*); +}; + +#endif // DBATTACHERMOCK_H |
