aboutsummaryrefslogtreecommitdiff
path: root/tests/profiling/gatordmock/StubCommandHandler.hpp
blob: 50fb14b5de3b9e2b030d340fec02ddf81a86c325 (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 and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once

#include <common/include/CommandHandlerFunctor.hpp>
#include <common/include/IgnoreUnused.hpp>

#include <vector>

namespace armnn
{

namespace gatordmock
{

class StubCommandHandler : public arm::pipe::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 arm::pipe::Packet& packet) override
    {
        //No op
        arm::pipe::IgnoreUnused(packet);
    }

};

}    // namespace gatordmock
}    // namespace armnn