diff --git a/tests/UnitTests/Application/StreamingServices/FakeUserScript.cpp b/tests/UnitTests/Application/StreamingServices/FakeUserScript.cpp index ec1f2e3d..7190dfa9 100644 --- a/tests/UnitTests/Application/StreamingServices/FakeUserScript.cpp +++ b/tests/UnitTests/Application/StreamingServices/FakeUserScript.cpp @@ -4,13 +4,14 @@ using namespace MellowPlayer::Application; using namespace MellowPlayer::Application::Tests; -void FakeUserScript::import(const QString& path) +bool FakeUserScript::import(const QString& path) { - load(path); + return load(path); } -void FakeUserScript::load(const QString& path) +bool FakeUserScript::load(const QString& path) { UserScriptBase::path_ = path; Application::UserScriptBase::code_ = FAKE_USER_SCRIPT_CODE; + return true; } diff --git a/tests/UnitTests/Application/StreamingServices/FakeUserScript.hpp b/tests/UnitTests/Application/StreamingServices/FakeUserScript.hpp index 93db69c8..ea53f3b7 100644 --- a/tests/UnitTests/Application/StreamingServices/FakeUserScript.hpp +++ b/tests/UnitTests/Application/StreamingServices/FakeUserScript.hpp @@ -10,8 +10,7 @@ namespace MellowPlayer::Application::Tests class FakeUserScript: public UserScriptBase { public: - void import(const QString& path) override; - - void load(const QString& path) override; + bool import(const QString& path) override; + bool load(const QString& path) override; }; } \ No newline at end of file