aboutsummaryrefslogtreecommitdiff
path: root/src/timelineDecoder/tests/TimelineTests.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2020-05-26 21:10:49 +0100
committerJim Flynn <jim.flynn@arm.com>2020-05-27 15:05:25 +0000
commit1892d210d089cfbf355b44e32feb40bcb283ffc3 (patch)
tree28e53f6b63443b89cf6198f2e94af353d43e3aa6 /src/timelineDecoder/tests/TimelineTests.cpp
parent83fcf988cc1d5c9254a19258d6d67362c04bbaf4 (diff)
downloadarmnn-1892d210d089cfbf355b44e32feb40bcb283ffc3.tar.gz
IVGCVSW-4735 Add label GUID to timeline eventClass message
Change-Id: Ie205d8146f5bb1920bf001b7623ead79e2ab9e48 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/timelineDecoder/tests/TimelineTests.cpp')
-rw-r--r--src/timelineDecoder/tests/TimelineTests.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/timelineDecoder/tests/TimelineTests.cpp b/src/timelineDecoder/tests/TimelineTests.cpp
index 390b589b7f..8d0b8a0f08 100644
--- a/src/timelineDecoder/tests/TimelineTests.cpp
+++ b/src/timelineDecoder/tests/TimelineTests.cpp
@@ -168,6 +168,7 @@ BOOST_AUTO_TEST_CASE(TimelineCaptureTest)
const uint64_t entityGuid = 111111u;
const uint64_t eventClassGuid = 22222u;
+ const uint64_t eventClassNameGuid = 22322u;
const uint64_t timestamp = 33333u;
const uint64_t eventGuid = 44444u;
@@ -205,7 +206,7 @@ BOOST_AUTO_TEST_CASE(TimelineCaptureTest)
timelineCaptureCommandHandler);
// Send event class
- sendTimelinePacket->SendTimelineEventClassBinaryPacket(eventClassGuid);
+ sendTimelinePacket->SendTimelineEventClassBinaryPacket(eventClassGuid, eventClassNameGuid);
sendTimelinePacket->Commit();
SendTimelinePacketToCommandHandler(bufferManager.GetReadableBuffer()->GetReadableData(),
timelineCaptureCommandHandler);
@@ -278,10 +279,11 @@ BOOST_AUTO_TEST_CASE(TimelineCaptureTestMultipleStringsInBuffer)
BOOST_CHECK(timelineDecoder.SetLabelCallback(PushLabel) == Status::TimelineStatus_Success);
BOOST_CHECK(timelineDecoder.SetRelationshipCallback(PushRelationship) == Status::TimelineStatus_Success);
- const uint64_t entityGuid = 111111u;
- const uint64_t eventClassGuid = 22222u;
- const uint64_t timestamp = 33333u;
- const uint64_t eventGuid = 44444u;
+ const uint64_t entityGuid = 111111u;
+ const uint64_t eventClassGuid = 22222u;
+ const uint64_t eventClassNameGuid = 22322u;
+ const uint64_t timestamp = 33333u;
+ const uint64_t eventGuid = 44444u;
const std::thread::id threadId = std::this_thread::get_id();
@@ -316,7 +318,7 @@ BOOST_AUTO_TEST_CASE(TimelineCaptureTestMultipleStringsInBuffer)
// Send entity
sendTimelinePacket->SendTimelineEntityBinaryPacket(entityGuid);
// Send event class
- sendTimelinePacket->SendTimelineEventClassBinaryPacket(eventClassGuid);
+ sendTimelinePacket->SendTimelineEventClassBinaryPacket(eventClassGuid, eventClassNameGuid);
// Send event
sendTimelinePacket->SendTimelineEventBinaryPacket(timestamp, threadId, eventGuid);
// Send label