aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColm Donelan <colm.donelan@arm.com>2022-02-10 10:09:04 +0000
committerColm Donelan <colm.donelan@arm.com>2022-02-10 10:27:06 +0000
commitf414d999704e2d198aa3136bd556f33a9cc4945f (patch)
tree3182e57533f27c6475cd07a996fdfdac50017c87
parentb28e525233d43b2aaea4da56acdbe9914cb41b5b (diff)
downloadarmnn-f414d999704e2d198aa3136bd556f33a9cc4945f.tar.gz
Renaming MockBackend in OptimizerTests to avoid namespace clash.
Change-Id: I3f5dfb0d84d841eec30bb2b6ad9593024f3a39f1 Signed-off-by: Colm Donelan <colm.donelan@arm.com>
-rw-r--r--src/armnn/test/OptimizerTests.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/armnn/test/OptimizerTests.cpp b/src/armnn/test/OptimizerTests.cpp
index a3949affce..a7277b78b5 100644
--- a/src/armnn/test/OptimizerTests.cpp
+++ b/src/armnn/test/OptimizerTests.cpp
@@ -187,16 +187,16 @@ public:
};
template <typename NamePolicy>
-class MockBackend : public IBackendInternal
+class CustomAllocatorBackend : public IBackendInternal
{
public:
- MockBackend() :
+ CustomAllocatorBackend() :
m_BackendCapabilities(NamePolicy::GetIdStatic(), {{"NullCapability", false}}),
m_CustomAllocator(false) {};
- MockBackend(const BackendCapabilities& capabilities) :
+ CustomAllocatorBackend(const BackendCapabilities& capabilities) :
m_BackendCapabilities(capabilities),
m_CustomAllocator(false) {};
- ~MockBackend() = default;
+ ~CustomAllocatorBackend() = default;
static const BackendId& GetIdStatic()
{
@@ -785,9 +785,10 @@ TEST_CASE("BackendHintTest")
auto& backendRegistry = BackendRegistryInstance();
- backendRegistry.Register("MockBackend", []() { return std::make_unique<MockBackend<MockPolicy>>(); });
+ backendRegistry.Register("MockBackend", []() { return std::make_unique<CustomAllocatorBackend<MockPolicy>>(); });
- backendRegistry.Register("CustomBackend", []() { return std::make_unique<MockBackend<CustomPolicy>>(); });
+ backendRegistry.Register("CustomBackend",
+ []() { return std::make_unique<CustomAllocatorBackend<CustomPolicy>>(); });
// Define the network
auto network = INetwork::Create();