From e848538efbdf01aa0b067da942c3c214f8e62826 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Thu, 10 Oct 2019 14:08:21 +0100 Subject: IVGCVSW-3964 Implement the Periodic Counter Selection command handler * Improved the PeriodicCounterPacket class to handle errors properly * Improved the PeriodicCounterSelectionCommandHandler to handle invalid counter UIDs in the selection packet * Added the Periodic Counter Selection command handler to the ProfilingService class * Code refactoring and added comments * Added WaitForPacketSent method to the SendCounterPacket class to allow waiting for the packets to be sent (useful in the unit tests) * Added unit tests and updated the old ones accordingly * Fixed threading issues with a number of unit tests Signed-off-by: Matteo Martincigh Change-Id: I271b7b0bfa801d88fe1725b934d24e30cd839ed7 --- src/profiling/RequestCounterDirectoryCommandHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/profiling/RequestCounterDirectoryCommandHandler.cpp') diff --git a/src/profiling/RequestCounterDirectoryCommandHandler.cpp b/src/profiling/RequestCounterDirectoryCommandHandler.cpp index e85acb4215..b8ac9d9426 100644 --- a/src/profiling/RequestCounterDirectoryCommandHandler.cpp +++ b/src/profiling/RequestCounterDirectoryCommandHandler.cpp @@ -21,7 +21,7 @@ void RequestCounterDirectoryCommandHandler::operator()(const Packet& packet) case ProfilingState::Uninitialised: case ProfilingState::NotConnected: case ProfilingState::WaitingForAck: - throw RuntimeException(boost::str(boost::format("Request Counter Directory Handler invoked while in an " + throw RuntimeException(boost::str(boost::format("Request Counter Directory Comand Handler invoked while in an " "wrong state: %1%") % GetProfilingStateName(currentState))); case ProfilingState::Active: -- cgit v1.2.1