summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/test/stubs/stubs-serverinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/test/stubs/stubs-serverinfo.cpp')
-rw-r--r--rbutil/rbutilqt/test/stubs/stubs-serverinfo.cpp23
1 files changed, 9 insertions, 14 deletions
diff --git a/rbutil/rbutilqt/test/stubs/stubs-serverinfo.cpp b/rbutil/rbutilqt/test/stubs/stubs-serverinfo.cpp
index 38336a7a6f..f0fcaf6613 100644
--- a/rbutil/rbutilqt/test/stubs/stubs-serverinfo.cpp
+++ b/rbutil/rbutilqt/test/stubs/stubs-serverinfo.cpp
@@ -38,27 +38,22 @@ QVariant SystemInfo::platformValue(SystemInfo::PlatformInfo info, QString platfo
return QString();
}
-QVariant SystemInfo::value(SystemInfo::SystemInfos info)
+QVariant SystemInfo::value(SystemInfo::SystemInfos info, SystemInfo::BuildType type)
{
- switch(info) {
- case SystemInfo::ManualUrl:
- return QString("https://unittest/manual/rockbox-%MODEL%%FORMAT%");
- break;
- case SystemInfo::BleedingUrl:
+ (void)info; // test is currently only using BuildUrl.
+ switch(type) {
+ case SystemInfo::BuildCurrent:
return QString("https://unittest/dev/rockbox-%MODEL%.zip");
- break;
- case SystemInfo::DailyUrl:
+ case SystemInfo::BuildDaily:
return QString("https://unittest/daily/rockbox-%MODEL%-%RELVERSION%.zip");
- break;
- case SystemInfo::ReleaseUrl:
+ case SystemInfo::BuildRelease:
return QString("https://unittest/release/%RELVERSION%/rockbox-%MODEL%-%RELVERSION%.zip");
- break;
- case SystemInfo::CandidateUrl:
+ case SystemInfo::BuildCandidate:
return QString("https://unittest/rc/%RELVERSION%/rockbox-%MODEL%-%RELVERSION%.zip");
- break;
default:
- return QString();
+ break;
}
+ return QString();
}
QStringList SystemInfo::platforms(SystemInfo::PlatformType type, QString variant)