summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/test/stubs/stubs-compareversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/test/stubs/stubs-compareversion.cpp')
-rw-r--r--rbutil/rbutilqt/test/stubs/stubs-compareversion.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/test/stubs/stubs-compareversion.cpp b/rbutil/rbutilqt/test/stubs/stubs-compareversion.cpp
new file mode 100644
index 0000000000..07e2d18f19
--- /dev/null
+++ b/rbutil/rbutilqt/test/stubs/stubs-compareversion.cpp
@@ -0,0 +1,31 @@
+
+#include "playerbuildinfo.h"
+#include "rbsettings.h"
+#include "rockboxinfo.h"
+
+// not used by the test, just to make things compile.
+QVariant RbSettings::value(RbSettings::UserSettings setting)
+{
+ (void)setting;
+ return QVariant();
+}
+
+
+// not used in the test. If used the test will crash!
+PlayerBuildInfo* PlayerBuildInfo::instance()
+{
+ return nullptr;
+}
+
+QVariant PlayerBuildInfo::value(PlayerBuildInfo::DeviceInfo item, QString target)
+{
+ (void)item;
+ (void)target;
+ return QVariant();
+}
+
+RockboxInfo::RockboxInfo(QString, QString)
+{
+}
+
+