summaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/Tests/TestUtils/functionmanagermock.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2014-12-06 17:33:25 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2014-12-06 17:33:25 -0500
commit7167ce41b61d2ba2cdb526777a4233eb84a3b66a (patch)
treea35c14143716e1f2c98f808c81f89426045a946f /SQLiteStudio3/Tests/TestUtils/functionmanagermock.cpp
Imported Upstream version 2.99.6upstream/2.99.6
Diffstat (limited to 'SQLiteStudio3/Tests/TestUtils/functionmanagermock.cpp')
-rw-r--r--SQLiteStudio3/Tests/TestUtils/functionmanagermock.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/SQLiteStudio3/Tests/TestUtils/functionmanagermock.cpp b/SQLiteStudio3/Tests/TestUtils/functionmanagermock.cpp
new file mode 100644
index 0000000..8657f42
--- /dev/null
+++ b/SQLiteStudio3/Tests/TestUtils/functionmanagermock.cpp
@@ -0,0 +1,38 @@
+#include "functionmanagermock.h"
+
+void FunctionManagerMock::setScriptFunctions(const QList<ScriptFunction *> &)
+{
+}
+
+QList<FunctionManager::ScriptFunction *> FunctionManagerMock::getAllScriptFunctions() const
+{
+ return QList<FunctionManager::ScriptFunction*>();
+}
+
+QList<FunctionManager::ScriptFunction *> FunctionManagerMock::getScriptFunctionsForDatabase(const QString&) const
+{
+ return QList<FunctionManager::ScriptFunction*>();
+}
+
+QList<FunctionManager::NativeFunction *> FunctionManagerMock::getAllNativeFunctions() const
+{
+ return QList<FunctionManager::NativeFunction*>();
+}
+
+QVariant FunctionManagerMock::evaluateScalar(const QString&, int, const QList<QVariant>&, Db*, bool&)
+{
+ return QVariant();
+}
+
+void FunctionManagerMock::evaluateAggregateInitial(const QString&, int, Db*, QHash<QString, QVariant>&)
+{
+}
+
+void FunctionManagerMock::evaluateAggregateStep(const QString&, int, const QList<QVariant>&, Db*, QHash<QString, QVariant>&)
+{
+}
+
+QVariant FunctionManagerMock::evaluateAggregateFinal(const QString&, int, Db*, bool&, QHash<QString, QVariant>&)
+{
+ return QVariant();
+}