aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/ProfilingTestUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/test/ProfilingTestUtils.cpp')
-rw-r--r--src/profiling/test/ProfilingTestUtils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/profiling/test/ProfilingTestUtils.cpp b/src/profiling/test/ProfilingTestUtils.cpp
index ff256047be..20e1a9b446 100644
--- a/src/profiling/test/ProfilingTestUtils.cpp
+++ b/src/profiling/test/ProfilingTestUtils.cpp
@@ -118,6 +118,7 @@ void VerifyTimelineLabelBinaryPacketData(Optional<ProfilingGuid> guid,
}
void VerifyTimelineEventClassBinaryPacketData(ProfilingGuid guid,
+ ProfilingGuid nameGuid,
const unsigned char* readableData,
unsigned int& offset)
{
@@ -136,6 +137,10 @@ void VerifyTimelineEventClassBinaryPacketData(ProfilingGuid guid,
uint64_t readProfilingGuid = ReadUint64(readableData, offset);
BOOST_CHECK(readProfilingGuid == guid);
+ offset += uint64_t_size;
+ uint64_t readProfiilngNameGuid = ReadUint64(readableData, offset);
+ BOOST_CHECK(readProfiilngNameGuid == nameGuid);
+
// Update the offset to allow parsing to be continued after this function returns
offset += uint64_t_size;
}