aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2020-03-20 11:11:01 +0000
committerSadik Armagan <sadik.armagan@arm.com>2020-03-20 11:11:01 +0000
commit0a35667e683105021834a28ac13d1d35af3a4a4e (patch)
treed790767a68c8f5fee6878850ab8d7f57f4eff602 /src/profiling/test
parentea41b57721b644b9350e14754d3ecdcfba87667f (diff)
downloadarmnn-0a35667e683105021834a28ac13d1d35af3a4a4e.tar.gz
IVGCVSW-4587 ArmNN failing to build in the Internal OOB
* ProfilingService reference field not required in TimelineUtilityMethods Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I83ca13e577d35fb9497d7df1535607ec66c201bf
Diffstat (limited to 'src/profiling/test')
-rw-r--r--src/profiling/test/TimelineUtilityMethodsTests.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/profiling/test/TimelineUtilityMethodsTests.cpp b/src/profiling/test/TimelineUtilityMethodsTests.cpp
index f83a9622ca..5c738b670f 100644
--- a/src/profiling/test/TimelineUtilityMethodsTests.cpp
+++ b/src/profiling/test/TimelineUtilityMethodsTests.cpp
@@ -26,7 +26,7 @@ BOOST_AUTO_TEST_CASE(CreateTypedLabelTest)
ProfilingService profilingService;
std::unique_ptr<ISendTimelinePacket> sendTimelinePacket = std::make_unique<SendTimelinePacket>(mockBufferManager);
- TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket, profilingService);
+ TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket);
// Generate first guid to ensure that the named typed entity guid is not 0 on local single test.
profilingService.NextGuid();
@@ -80,9 +80,8 @@ BOOST_AUTO_TEST_CASE(CreateTypedLabelTest)
BOOST_AUTO_TEST_CASE(SendWellKnownLabelsAndEventClassesTest)
{
MockBufferManager mockBufferManager(1024);
- ProfilingService profilingService;
std::unique_ptr<ISendTimelinePacket> sendTimelinePacket = std::make_unique<SendTimelinePacket>(mockBufferManager);
- TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket, profilingService);
+ TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket);
BOOST_CHECK_NO_THROW(timelineUtilityMethods.SendWellKnownLabelsAndEventClasses());
@@ -183,7 +182,7 @@ BOOST_AUTO_TEST_CASE(CreateNamedTypedChildEntityTest)
MockBufferManager mockBufferManager(1024);
ProfilingService profilingService;
std::unique_ptr<ISendTimelinePacket> sendTimelinePacket = std::make_unique<SendTimelinePacket>(mockBufferManager);
- TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket, profilingService);
+ TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket);
ProfilingDynamicGuid childEntityGuid(0);
ProfilingGuid parentEntityGuid(123);
@@ -282,7 +281,7 @@ BOOST_AUTO_TEST_CASE(DeclareLabelTest)
MockBufferManager mockBufferManager(1024);
ProfilingService profilingService;
std::unique_ptr<ISendTimelinePacket> sendTimelinePacket = std::make_unique<SendTimelinePacket>(mockBufferManager);
- TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket, profilingService);
+ TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket);
// Generate first guid to ensure that the named typed entity guid is not 0 on local single test.
profilingService.NextGuid();
@@ -311,7 +310,7 @@ BOOST_AUTO_TEST_CASE(CreateNameTypeEntityInvalidTest)
MockBufferManager mockBufferManager(1024);
ProfilingService profilingService;
std::unique_ptr<ISendTimelinePacket> sendTimelinePacket = std::make_unique<SendTimelinePacket>(mockBufferManager);
- TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket, profilingService);
+ TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket);
// Invalid name
BOOST_CHECK_THROW(timelineUtilityMethods.CreateNamedTypedEntity("", "Type"), InvalidArgumentException);
@@ -336,7 +335,7 @@ BOOST_AUTO_TEST_CASE(CreateNameTypeEntityTest)
MockBufferManager mockBufferManager(1024);
ProfilingService profilingService;
std::unique_ptr<ISendTimelinePacket> sendTimelinePacket = std::make_unique<SendTimelinePacket>(mockBufferManager);
- TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket, profilingService);
+ TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket);
const std::string entityName = "Entity0";
const std::string entityType = "Type0";
@@ -416,7 +415,7 @@ BOOST_AUTO_TEST_CASE(RecordEventTest)
MockBufferManager mockBufferManager(1024);
ProfilingService profilingService;
std::unique_ptr<ISendTimelinePacket> sendTimelinePacket = std::make_unique<SendTimelinePacket>(mockBufferManager);
- TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket, profilingService);
+ TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket);
// Generate first guid to ensure that the named typed entity guid is not 0 on local single test.
profilingService.NextGuid();