From 3345eb5170ed8fd4694b25b44183517a0d400969 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Fri, 24 May 2019 09:17:57 +0200 Subject: [PATCH] Fix unit tests following CommandObject::execute changes --- .../UnitTests/RifcCommandCore-Test.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ApplicationCode/UnitTests/RifcCommandCore-Test.cpp b/ApplicationCode/UnitTests/RifcCommandCore-Test.cpp index 020f873705..aa342003c8 100644 --- a/ApplicationCode/UnitTests/RifcCommandCore-Test.cpp +++ b/ApplicationCode/UnitTests/RifcCommandCore-Test.cpp @@ -19,10 +19,12 @@ public: RICF_InitField(&m_boolArgument, "BoolArgument", false, "BoolArgument", "", "", ""); } - void execute() override { std::cout << "TestCommand1::execute(" << "\"" << m_textArgument().toStdString() << "\", " - << m_doubleArgument() << ", " - << m_intArgument << ", " - << m_boolArgument << ");" << std::endl; } + RicfCommandResponse execute() override { + std::cout << "TestCommand1::execute(" + << "\"" << m_textArgument().toStdString() << "\", " << m_doubleArgument() << ", " << m_intArgument << ", " + << m_boolArgument << ");" << std::endl; + return RicfCommandResponse(); + } caf::PdmField m_textArgument; caf::PdmField m_doubleArgument; @@ -45,9 +47,13 @@ public: RICF_InitField(&m_boolArgument, "ba", false,"BoolArgument", "", "", ""); } - void execute() override { std::cout << "TC2::execute(" << "\"" << m_textArgument().toStdString() << "\", " + RicfCommandResponse execute() override + { + std::cout << "TC2::execute(" << "\"" << m_textArgument().toStdString() << "\", " << m_doubleArgument() << ", " - << m_intArgument() << ", " << m_boolArgument() << ");" << std::endl; } + << m_intArgument() << ", " << m_boolArgument() << ");" << std::endl; + return RicfCommandResponse(); + } caf::PdmField m_textArgument; caf::PdmField m_doubleArgument;