aboutsummaryrefslogtreecommitdiff
path: root/tests/profiling/gatordmock/StubCommandHandler.hpp
blob: 450f90fd2bd84c4c9699139d9937f72b6949b08e (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
34
35
36
37
38
39
40
41
42
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once

#include <CommandHandlerFunctor.hpp>
#include <armnn/utility/IgnoreUnused.hpp>

#include <vector>

namespace armnn
{

namespace gatordmock
{

class StubCommandHandler : public profiling::CommandHandlerFunctor
{

public:
    /**
     *
     * @param packetId The id of packets this handler will process.
     * @param version The version of that id.
     */
    StubCommandHandler(uint32_t familyId,
                       uint32_t packetId,
                       uint32_t version)
            : CommandHandlerFunctor(familyId, packetId, version)
    {}

    void operator()(const armnn::profiling::Packet& packet) override
    {
        //No op
        IgnoreUnused(packet);
    }

};

}    // namespace gatordmock
}    // namespace armnn