From 9bab49686a091d61fd06a05bbf7286f559fdae3d Mon Sep 17 00:00:00 2001 From: Teresa Charlin Date: Fri, 6 Sep 2019 12:28:35 +0100 Subject: IVGCVSW-3580: Extend the IProfilingConnection to connect to a Socket Signed-off-by: Teresa Charlin Signed-off-by: Aron Virginas-Tar Change-Id: I72e099ee00052f7a0907c055c7bff02c7d8fde86 --- src/profiling/test/ProfilingTests.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/profiling/test') diff --git a/src/profiling/test/ProfilingTests.cpp b/src/profiling/test/ProfilingTests.cpp index fe94092c7f..25fae6c478 100644 --- a/src/profiling/test/ProfilingTests.cpp +++ b/src/profiling/test/ProfilingTests.cpp @@ -10,9 +10,12 @@ #include "../Holder.hpp" #include "../Packet.hpp" #include "../PacketVersionResolver.hpp" +#include "../ProfilingService.hpp" #include "../ProfilingStateMachine.hpp" #include "../ProfilingUtils.hpp" -#include "../ProfilingService.hpp" +#include "../SocketProfilingConnection.hpp" + +#include #include @@ -528,4 +531,10 @@ BOOST_AUTO_TEST_CASE(GetNextUidTest) BOOST_TEST(uid1 != uid2); } +BOOST_AUTO_TEST_CASE(CheckSocketProfilingConnection) +{ + // Check that creating a SocketProfilingConnection results in an exception as the Gator UDS doesn't exist. + BOOST_CHECK_THROW(new SocketProfilingConnection(), armnn::Exception); +} + BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.1