aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp')
-rw-r--r--SQLiteStudio3/Tests/TestUtils/dbattachermock.cpp35
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();
+}