IVGCVSW-3902 Create IReadOnlyPacketBuffer, IPacketBuffer and IBufferManager interfaces
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Tue, 24 Sep 2019 16:23:16 +0000 (17:23 +0100)
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Thu, 26 Sep 2019 21:52:32 +0000 (22:52 +0100)
commit404b27569523f4cdd49752e7ae1633e359ba2190
treeb2acd65aae6b285cbacfafe7a83b8873a1a5e79e
parente4ffe399de3445a1ecaf0ea8da7ff4f06ec878d3
IVGCVSW-3902 Create IReadOnlyPacketBuffer, IPacketBuffer and IBufferManager interfaces

 * Create IReadOnlyPacketBuffer, IPacketBuffer and IBufferManager interfaces
 * Add Read and Write util functions that use IPacketBuffer
 * Add MockBufferManager using IBufferManager for testing
 * Modify SendCounterPacket to use IBufferManager
 * Modify MockStreamCounterBuffer to use IBufferManager
 * Remove IBufferWrapper and MockBuffer
 * Add MockPacketBuffer for testing
 * Modify unit tests to use the new interfaces

Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ib86768187e032f07169aa39367a418b7665c9f03
CMakeLists.txt
src/profiling/IBufferManager.hpp [new file with mode: 0644]
src/profiling/IBufferWrapper.hpp [deleted file]
src/profiling/IPacketBuffer.hpp [new file with mode: 0644]
src/profiling/ProfilingUtils.cpp
src/profiling/ProfilingUtils.hpp
src/profiling/SendCounterPacket.cpp
src/profiling/SendCounterPacket.hpp
src/profiling/test/ProfilingTests.cpp
src/profiling/test/SendCounterPacketTests.cpp
src/profiling/test/SendCounterPacketTests.hpp