From f414d999704e2d198aa3136bd556f33a9cc4945f Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Thu, 10 Feb 2022 10:09:04 +0000 Subject: Renaming MockBackend in OptimizerTests to avoid namespace clash. Change-Id: I3f5dfb0d84d841eec30bb2b6ad9593024f3a39f1 Signed-off-by: Colm Donelan --- src/armnn/test/OptimizerTests.cpp | 13 +++++++------ 1 file 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 -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>(); }); + backendRegistry.Register("MockBackend", []() { return std::make_unique>(); }); - backendRegistry.Register("CustomBackend", []() { return std::make_unique>(); }); + backendRegistry.Register("CustomBackend", + []() { return std::make_unique>(); }); // Define the network auto network = INetwork::Create(); -- cgit v1.2.1