From 8d9590e5510b8ebdc4e0b2b31ce4b653b46fc02a Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Tue, 15 Oct 2019 09:35:29 +0100 Subject: IVGCVSW-3939 Code refactoring and minor fixes * Fixed value masking in SendPeriodicCounterCapturePacket and updated the pertinent unit tests * Code refactoring and cleanup * Added extra comments to the ProfilingService stop/reset procedure Signed-off-by: Matteo Martincigh Change-Id: Ibaf2fede76e06d5b8ce7258a4820a60e5993559f --- src/profiling/test/ProfilingTests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/profiling/test/ProfilingTests.cpp') diff --git a/src/profiling/test/ProfilingTests.cpp b/src/profiling/test/ProfilingTests.cpp index b32a55cc6d..50af75eeea 100644 --- a/src/profiling/test/ProfilingTests.cpp +++ b/src/profiling/test/ProfilingTests.cpp @@ -2119,10 +2119,10 @@ BOOST_AUTO_TEST_CASE(CheckPeriodicCounterCaptureThread) uint32_t headerWord0 = ReadUint32(buffer, 0); uint32_t headerWord1 = ReadUint32(buffer, 4); - BOOST_TEST(((headerWord0 >> 26) & 0x3F) == 1); // packet family - BOOST_TEST(((headerWord0 >> 19) & 0x3F) == 0); // packet class - BOOST_TEST(((headerWord0 >> 16) & 0x3) == 0); // packet type - BOOST_TEST(headerWord1 == 20); // data length + BOOST_TEST(((headerWord0 >> 26) & 0x0000003F) == 1); // packet family + BOOST_TEST(((headerWord0 >> 19) & 0x0000007F) == 0); // packet class + BOOST_TEST(((headerWord0 >> 16) & 0x00000007) == 0); // packet type + BOOST_TEST(headerWord1 == 20); uint32_t offset = 16; uint16_t readIndex = ReadUint16(buffer, offset); -- cgit v1.2.1