aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/BufferTests.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-08 21:23:44 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-09 22:14:52 +0000
commitf9db3efe5ce2b989b59c47056e1b84b32d2f1100 (patch)
treeb1fd75d5f951f9036a8f0b37211fc30b4d651262 /src/profiling/test/BufferTests.cpp
parent0e5588f3289845d1bd7597ade081764018eda2cc (diff)
downloadarmnn-f9db3efe5ce2b989b59c47056e1b84b32d2f1100.tar.gz
IVGCVSW-6821 Remove dependency on armnn::Exception classes from the Profiling code
Change-Id: Id46a9a0576091df21b2af5b472f1ca5c6335e8a3 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/test/BufferTests.cpp')
-rw-r--r--src/profiling/test/BufferTests.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/profiling/test/BufferTests.cpp b/src/profiling/test/BufferTests.cpp
index c4714d6ad4..943cfd5f31 100644
--- a/src/profiling/test/BufferTests.cpp
+++ b/src/profiling/test/BufferTests.cpp
@@ -9,8 +9,6 @@
#include <common/include/SwTrace.hpp>
-#include <armnn/Exceptions.hpp>
-
#include <doctest/doctest.h>
using namespace arm::pipe;
@@ -113,7 +111,7 @@ TEST_CASE("PacketBufferCommitErrorTest")
IPacketBufferPtr packetBuffer = std::make_unique<PacketBuffer>(8);
// Cannot commit data bigger than the max size of the buffer
- CHECK_THROWS_AS(packetBuffer->Commit(16);, armnn::RuntimeException);
+ CHECK_THROWS_AS(packetBuffer->Commit(16);, arm::pipe::ProfilingException);
}
TEST_CASE("BufferReserveTest")
@@ -384,7 +382,7 @@ TEST_CASE("ReadSwTraceMessageExceptionTest0")
unsigned int uint32_t_size = sizeof(uint32_t);
unsigned int offset = uint32_t_size;
CHECK_THROWS_AS(ReadSwTraceMessage(packetBuffer->GetReadableData(), offset, packetBuffer->GetSize()),
- ProfilingException);
+ arm::pipe::ProfilingException);
}
@@ -406,7 +404,7 @@ TEST_CASE("ReadSwTraceMessageExceptionTest1")
unsigned int uint32_t_size = sizeof(uint32_t);
unsigned int offset = uint32_t_size;
CHECK_THROWS_AS(ReadSwTraceMessage(packetBuffer->GetReadableData(), offset, packetBuffer->GetSize()),
- ProfilingException);
+ arm::pipe::ProfilingException);
}