IVGCVSW-3937 Improve the Connection Acknowledged Handler
authorMatteo Martincigh <matteo.martincigh@arm.com>
Wed, 9 Oct 2019 15:47:04 +0000 (16:47 +0100)
committerMatteo Martincigh <matteo.martincigh@arm.com>
Wed, 9 Oct 2019 16:44:11 +0000 (17:44 +0100)
commitd0613b56cea7eba0604e0548bddffd773a4eb554
tree18e5a28c346018340910c456eedd56717ab01c9c
parent09ca49cdcfbe377da979a19df9bcdb7cbffc7b50
IVGCVSW-3937 Improve the Connection Acknowledged Handler

 * The Connection Acknowledged Handler should report an error
   is it's called while in a wrong state
 * Stopping the threads in the ProfilingService before having
   to start them again
 * Updated the unit tests to check the changes
 * Removed unnecessary Packet.cpp file
 * Fixed memory leak

Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I8c4d33b4d97994df86fe6c9f8c659f880ec64c16
14 files changed:
Android.mk
CMakeLists.txt
src/profiling/CommandHandler.cpp
src/profiling/ConnectionAcknowledgedCommandHandler.cpp
src/profiling/Packet.cpp [deleted file]
src/profiling/Packet.hpp
src/profiling/ProfilingService.cpp
src/profiling/ProfilingService.hpp
src/profiling/RequestCounterDirectoryCommandHandler.cpp
src/profiling/SendCounterPacket.cpp
src/profiling/test/ProfilingTests.cpp
src/profiling/test/ProfilingTests.hpp [new file with mode: 0644]
src/profiling/test/SendCounterPacketTests.cpp
src/profiling/test/SendCounterPacketTests.hpp