aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/TestLayerVisitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn/test/TestLayerVisitor.cpp')
-rw-r--r--src/armnn/test/TestLayerVisitor.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/armnn/test/TestLayerVisitor.cpp b/src/armnn/test/TestLayerVisitor.cpp
new file mode 100644
index 0000000000..24d3c0b181
--- /dev/null
+++ b/src/armnn/test/TestLayerVisitor.cpp
@@ -0,0 +1,28 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#include <boost/test/unit_test.hpp>
+#include "TestLayerVisitor.hpp"
+
+namespace armnn
+{
+
+void TestLayerVisitor::CheckLayerName(const char* name)
+{
+ if (name == nullptr)
+ {
+ BOOST_CHECK(m_LayerName == nullptr);
+ }
+ else if (m_LayerName == nullptr)
+ {
+ BOOST_CHECK(name == nullptr);
+ }
+ else
+ {
+ BOOST_CHECK_EQUAL(m_LayerName, name);
+ }
+};
+
+} //namespace armnn \ No newline at end of file