aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/ProfilingTests.hpp
diff options
context:
space:
mode:
authorCathal Corbett <cathal.corbett@arm.com>2022-02-25 15:33:28 +0000
committerCathal Corbett <cathal.corbett@arm.com>2022-03-01 11:44:14 +0000
commit5aa9fd7ac6bf8dad576fa4a0a32aa3dae98d11ab (patch)
tree23a3a0d5ca5143924277f34c98d36cf7b99430a7 /src/profiling/test/ProfilingTests.hpp
parent1fc448ad2455ad31b96a3891f847125a3295d75a (diff)
downloadarmnn-5aa9fd7ac6bf8dad576fa4a0a32aa3dae98d11ab.tar.gz
IVGCVSW-6704 Change the namespace from armnn::profiling to arm::pipe
* Updated ABI version to 29 due to being the first ABI break in 22.05 !android-nn-driver:7226 Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: I9c50007dcd5b5e792757e7bd1213606df5ffec36
Diffstat (limited to 'src/profiling/test/ProfilingTests.hpp')
-rw-r--r--src/profiling/test/ProfilingTests.hpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/profiling/test/ProfilingTests.hpp b/src/profiling/test/ProfilingTests.hpp
index a8ca1b9b18..fd8ad315f1 100644
--- a/src/profiling/test/ProfilingTests.hpp
+++ b/src/profiling/test/ProfilingTests.hpp
@@ -21,10 +21,10 @@
#include <chrono>
#include <thread>
-namespace armnn
+namespace arm
{
-namespace profiling
+namespace pipe
{
struct LogLevelSwapper
@@ -79,7 +79,7 @@ public:
bool WritePacket(const unsigned char* buffer, uint32_t length) override
{
- IgnoreUnused(buffer, length);
+ armnn::IgnoreUnused(buffer, length);
return false;
}
@@ -141,7 +141,7 @@ public:
arm::pipe::Packet ReadPacket(uint32_t timeout) override
{
- IgnoreUnused(timeout);
+ armnn::IgnoreUnused(timeout);
++m_ReadRequests;
throw armnn::Exception("Simulate a non-timeout error");
}
@@ -160,7 +160,7 @@ class TestProfilingConnectionBadAckPacket : public TestProfilingConnectionBase
public:
arm::pipe::Packet ReadPacket(uint32_t timeout) override
{
- IgnoreUnused(timeout);
+ armnn::IgnoreUnused(timeout);
// Connection Acknowledged Packet header (word 0, word 1 is always zero):
// 26:31 [6] packet_family: Control Packet Family, value 0b000000
// 16:25 [10] packet_id: Packet identifier, value 0b0000000001
@@ -183,7 +183,7 @@ public:
void operator()(const arm::pipe::Packet& packet) override
{
- IgnoreUnused(packet);
+ armnn::IgnoreUnused(packet);
m_Count++;
}
@@ -206,7 +206,7 @@ class SwapProfilingConnectionFactoryHelper : public ProfilingService
public:
using MockProfilingConnectionFactoryPtr = std::unique_ptr<MockProfilingConnectionFactory>;
- SwapProfilingConnectionFactoryHelper(armnn::profiling::ProfilingService& profilingService)
+ SwapProfilingConnectionFactoryHelper(ProfilingService& profilingService)
: ProfilingService()
, m_ProfilingService(profilingService)
, m_MockProfilingConnectionFactory(new MockProfilingConnectionFactory())
@@ -231,7 +231,7 @@ public:
MockProfilingConnection* GetMockProfilingConnection()
{
IProfilingConnection* profilingConnection = GetProfilingConnection(m_ProfilingService);
- return PolymorphicDowncast<MockProfilingConnection*>(profilingConnection);
+ return armnn::PolymorphicDowncast<MockProfilingConnection*>(profilingConnection);
}
void ForceTransitionToState(ProfilingState newState)
@@ -272,11 +272,11 @@ public:
}
private:
- armnn::profiling::ProfilingService& m_ProfilingService;
+ ProfilingService& m_ProfilingService;
MockProfilingConnectionFactoryPtr m_MockProfilingConnectionFactory;
IProfilingConnectionFactory* m_BackupProfilingConnectionFactory;
};
-} // namespace profiling
+} // namespace pipe
-} // namespace armnn
+} // namespace arm