aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/ProfilingTests.cpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-10-15 09:35:29 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-10-15 15:20:31 +0000
commit8d9590e5510b8ebdc4e0b2b31ce4b653b46fc02a (patch)
tree0521297dae9ebbf4b012df52313abe44d66d4c42 /src/profiling/test/ProfilingTests.cpp
parent672d06eac5b0842c22f9f219e9b65efcd5883d33 (diff)
downloadarmnn-8d9590e5510b8ebdc4e0b2b31ce4b653b46fc02a.tar.gz
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 <matteo.martincigh@arm.com> Change-Id: Ibaf2fede76e06d5b8ce7258a4820a60e5993559f
Diffstat (limited to 'src/profiling/test/ProfilingTests.cpp')
-rw-r--r--src/profiling/test/ProfilingTests.cpp8
1 files changed, 4 insertions, 4 deletions
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);