aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/TestLayerVisitor.cpp
blob: 24d3c0b181d4c693b4d849f11b88f2507d521227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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