From cf2ad554502830804e991aca2e5b0741623119b2 Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Fri, 20 Mar 2020 15:10:59 +0000 Subject: IVGCVSW-4589 Add call to SendWellKnownLabelsAndEventClasses Signed-off-by: Finn Williams Change-Id: Ia42f962ba53d7684f5ad75f5b1b91e2d9f3a2f9c --- src/profiling/test/TimelineUtilityMethodsTests.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/profiling/test/TimelineUtilityMethodsTests.cpp') diff --git a/src/profiling/test/TimelineUtilityMethodsTests.cpp b/src/profiling/test/TimelineUtilityMethodsTests.cpp index 5c738b670f..43a5b0a4f5 100644 --- a/src/profiling/test/TimelineUtilityMethodsTests.cpp +++ b/src/profiling/test/TimelineUtilityMethodsTests.cpp @@ -80,13 +80,10 @@ BOOST_AUTO_TEST_CASE(CreateTypedLabelTest) BOOST_AUTO_TEST_CASE(SendWellKnownLabelsAndEventClassesTest) { MockBufferManager mockBufferManager(1024); - std::unique_ptr sendTimelinePacket = std::make_unique(mockBufferManager); - TimelineUtilityMethods timelineUtilityMethods(sendTimelinePacket); - - BOOST_CHECK_NO_THROW(timelineUtilityMethods.SendWellKnownLabelsAndEventClasses()); + ProfilingService profilingService; + SendTimelinePacket sendTimelinePacket(mockBufferManager); - // Commit all packets at once - timelineUtilityMethods.Commit(); + BOOST_CHECK_NO_THROW(TimelineUtilityMethods::SendWellKnownLabelsAndEventClasses(sendTimelinePacket)); // Get the readable buffer auto readableBuffer = mockBufferManager.GetReadableBuffer(); -- cgit v1.2.1