rockbox/rbutil/rbutilqt/test/stubs/stubs-compareversion.cpp
Dominik Riebeling 3300815c44 rbutil: Update and fix unit tests.
- Fix changed dependencies and provide real stubs.
- Update to use QTest global data for test table, so individual test
  vector entries show up as individual tests. That way a single
  comparison failing doesn't make all appear as failed and provide
  better indication what went wrong.

Change-Id: I69681c3acd5ceceb4c8ceb1feb341e90a65dd603
2020-12-03 22:25:12 +01:00

31 lines
560 B
C++

#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)
{
}