aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/ProfilingTests.hpp
diff options
context:
space:
mode:
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