diff options
author | FrancisMurtagh <francis.murtagh@arm.com> | 2019-01-28 14:03:21 +0000 |
---|---|---|
committer | FrancisMurtagh <francis.murtagh@arm.com> | 2019-01-28 14:03:21 +0000 |
commit | 1306b194dc9c480ade79f4cf60249b0e5aa61d69 (patch) | |
tree | dc177650b6d48e31b958fe0098e607d79cc02fbb /src/armnn/test/TestLayerVisitor.cpp | |
parent | a0d56c77a53f5f991565041927003ce7460730ce (diff) | |
download | armnn-1306b194dc9c480ade79f4cf60249b0e5aa61d69.tar.gz |
IVGCVSW-2548 Add the TestLayerVisitor class
* Add abstract base class TestLayerVisitor
Change-Id: Id453f3ad9721f3680166a41b75a1880cf20032f7
Diffstat (limited to 'src/armnn/test/TestLayerVisitor.cpp')
-rw-r--r-- | src/armnn/test/TestLayerVisitor.cpp | 28 |
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 |