aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/TestLayerVisitor.cpp
blob: 5cb7bdfca50fdcfa4867fed07fd6312042d95a7b (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
29
30
31
32
33
//
// 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);
    }
};

void TestLayerVisitor::CheckLayerPointer(const IConnectableLayer* layer)
{
    BOOST_CHECK(layer != nullptr);
};

} //namespace armnn