rockbox/utils/rbutilqt/test/stubs/stubs-compareversion.cpp
Dominik Riebeling dc677208d0 rbutil: Fix unit tests on Windows.
Change-Id: I124882eb26b01e1acfadfba55bc718ab330ab52a
2021-12-25 17:47:14 +01:00

38 lines
685 B
C++

#include "playerbuildinfo.h"
#include "rbsettings.h"
#include "rockboxinfo.h"
#include "system.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)
{
}
#if defined(Q_OS_WIN32)
enum System::userlevel System::userPermissions(void)
{
return USER;
}
#endif