From 0a35667e683105021834a28ac13d1d35af3a4a4e Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Fri, 20 Mar 2020 11:11:01 +0000 Subject: IVGCVSW-4587 ArmNN failing to build in the Internal OOB * ProfilingService reference field not required in TimelineUtilityMethods Signed-off-by: Sadik Armagan Change-Id: I83ca13e577d35fb9497d7df1535607ec66c201bf --- src/profiling/test/TimelineUtilityMethodsTests.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/profiling/test') 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 sendTimelinePacket = std::make_unique(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 sendTimelinePacket = std::make_unique(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 sendTimelinePacket = std::make_unique(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 sendTimelinePacket = std::make_unique(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 sendTimelinePacket = std::make_unique(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 sendTimelinePacket = std::make_unique(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 sendTimelinePacket = std::make_unique(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(); -- cgit v1.2.1