aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/ProfilingTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/test/ProfilingTests.cpp')
-rw-r--r--src/profiling/test/ProfilingTests.cpp11
1 files changed, 10 insertions, 1 deletions
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 <Runtime.hpp>
#include <boost/test/unit_test.hpp>
@@ -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()