Renaming MockBackend in OptimizerTests to avoid namespace clash.

Change-Id: I3f5dfb0d84d841eec30bb2b6ad9593024f3a39f1
Signed-off-by: Colm Donelan <colm.donelan@arm.com>
diff --git a/src/armnn/test/OptimizerTests.cpp b/src/armnn/test/OptimizerTests.cpp
index a3949af..a7277b7 100644
--- a/src/armnn/test/OptimizerTests.cpp
+++ b/src/armnn/test/OptimizerTests.cpp
@@ -187,16 +187,16 @@
 };
 
 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 @@
 
     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();