aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/test/ProfilingMocks.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/ProfilingMocks.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/ProfilingMocks.hpp')
-rw-r--r--src/profiling/test/ProfilingMocks.hpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/profiling/test/ProfilingMocks.hpp b/src/profiling/test/ProfilingMocks.hpp
index 491f057599..5e7d31a914 100644
--- a/src/profiling/test/ProfilingMocks.hpp
+++ b/src/profiling/test/ProfilingMocks.hpp
@@ -27,10 +27,10 @@
#include <mutex>
#include <thread>
-namespace armnn
+namespace arm
{
-namespace profiling
+namespace pipe
{
class MockProfilingConnection : public IProfilingConnection
@@ -131,7 +131,7 @@ public:
arm::pipe::Packet ReadPacket(uint32_t timeout) override
{
- IgnoreUnused(timeout);
+ armnn::IgnoreUnused(timeout);
// Simulate a delay in the reading process. The default timeout is way too long.
std::this_thread::sleep_for(std::chrono::milliseconds(5));
@@ -165,7 +165,7 @@ class MockProfilingConnectionFactory : public IProfilingConnectionFactory
public:
IProfilingConnectionPtr GetProfilingConnection(const ProfilingOptions& options) const override
{
- IgnoreUnused(options);
+ armnn::IgnoreUnused(options);
return std::make_unique<MockProfilingConnection>();
}
};
@@ -404,7 +404,7 @@ public:
void SendCounterDirectoryPacket(const ICounterDirectory& counterDirectory) override
{
- IgnoreUnused(counterDirectory);
+ armnn::IgnoreUnused(counterDirectory);
std::string message("SendCounterDirectoryPacket");
unsigned int reserved = 0;
@@ -416,7 +416,7 @@ public:
void SendPeriodicCounterCapturePacket(uint64_t timestamp,
const std::vector<CounterValue>& values) override
{
- IgnoreUnused(timestamp, values);
+ armnn::IgnoreUnused(timestamp, values);
std::string message("SendPeriodicCounterCapturePacket");
unsigned int reserved = 0;
@@ -428,7 +428,7 @@ public:
void SendPeriodicCounterSelectionPacket(uint32_t capturePeriod,
const std::vector<uint16_t>& selectedCounterIds) override
{
- IgnoreUnused(capturePeriod, selectedCounterIds);
+ armnn::IgnoreUnused(capturePeriod, selectedCounterIds);
std::string message("SendPeriodicCounterSelectionPacket");
unsigned int reserved = 0;
@@ -505,7 +505,7 @@ public:
return counterSetPtr;
}
- const Counter* RegisterCounter(const BackendId& backendId,
+ const Counter* RegisterCounter(const armnn::BackendId& backendId,
const uint16_t uid,
const std::string& parentCategoryName,
uint16_t counterClass,
@@ -518,7 +518,7 @@ public:
const armnn::Optional<uint16_t>& deviceUid = armnn::EmptyOptional(),
const armnn::Optional<uint16_t>& counterSetUid = armnn::EmptyOptional())
{
- IgnoreUnused(backendId);
+ armnn::IgnoreUnused(backendId);
// Get the number of cores from the argument only
uint16_t deviceCores = numberOfCores.has_value() ? numberOfCores.value() : 0;
@@ -602,19 +602,19 @@ public:
const Device* GetDevice(uint16_t uid) const override
{
- IgnoreUnused(uid);
+ armnn::IgnoreUnused(uid);
return nullptr; // Not used by the unit tests
}
const CounterSet* GetCounterSet(uint16_t uid) const override
{
- IgnoreUnused(uid);
+ armnn::IgnoreUnused(uid);
return nullptr; // Not used by the unit tests
}
const Counter* GetCounter(uint16_t uid) const override
{
- IgnoreUnused(uid);
+ armnn::IgnoreUnused(uid);
return nullptr; // Not used by the unit tests
}
@@ -698,9 +698,9 @@ class MockProfilingServiceStatus : public IProfilingServiceStatus
{
public:
void NotifyProfilingServiceActive() override {}
- void WaitForProfilingServiceActivation(unsigned int timeout) override { IgnoreUnused(timeout); }
+ void WaitForProfilingServiceActivation(unsigned int timeout) override { armnn::IgnoreUnused(timeout); }
};
-} // namespace profiling
+} // namespace pipe
-} // namespace armnn
+} // namespace arm