mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
rbutil: Don't stub out PlayerBuildInfo in tests
Change-Id: I75667bc291828c1d4c548ab8f92c43a7a7fb892e
This commit is contained in:
parent
22d72bf369
commit
bb20b5c6bf
3 changed files with 3 additions and 20 deletions
|
@ -431,6 +431,8 @@ add_executable(test_talkgenerator
|
|||
base/talkgenerator.h
|
||||
base/encttssettings.cpp
|
||||
base/encttssettings.h
|
||||
base/playerbuildinfo.h
|
||||
base/playerbuildinfo.cpp
|
||||
base/ttsbase.h
|
||||
test/stubs/stubs-talkgenerator.cpp
|
||||
test/test-talkgenerator.qrc
|
||||
|
@ -443,4 +445,3 @@ target_compile_definitions(test_talkgenerator PRIVATE UNICODE)
|
|||
qtest_discover_tests(test_talkgenerator)
|
||||
set_property(TARGET test_talkgenerator PROPERTY AUTOMOC ON)
|
||||
set_property(TARGET test_talkgenerator PROPERTY AUTORCC ON)
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
class PlayerBuildInfo : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
enum BuildType {
|
||||
|
|
|
@ -82,23 +82,4 @@ EncoderBase* EncoderBase::getEncoder(QObject*, QString)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
QVariant PlayerBuildInfo::value(PlayerBuildInfo::DeviceInfo /*item*/, QString /*target*/)
|
||||
{
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
PlayerBuildInfo* PlayerBuildInfo::infoInstance = nullptr;
|
||||
|
||||
PlayerBuildInfo::PlayerBuildInfo()
|
||||
{
|
||||
}
|
||||
|
||||
PlayerBuildInfo* PlayerBuildInfo::instance()
|
||||
{
|
||||
if (infoInstance == nullptr) {
|
||||
infoInstance = new PlayerBuildInfo();
|
||||
}
|
||||
return infoInstance;
|
||||
}
|
||||
|
||||
#include "stubs-talkgenerator.moc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue