diff options
Diffstat (limited to 'src/profiling/test')
-rw-r--r-- | src/profiling/test/TimelineUtilityMethodsTests.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
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<ISendTimelinePacket> sendTimelinePacket = std::make_unique<SendTimelinePacket>(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(); |