blob: 50fb14b5de3b9e2b030d340fec02ddf81a86c325 [file] [log] [blame]
Finn Williamsd7fcafa2020-04-23 17:55:18 +01001//
Jim Flynnbbfe6032020-07-20 16:57:44 +01002// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
Finn Williamsd7fcafa2020-04-23 17:55:18 +01003// SPDX-License-Identifier: MIT
4//
5#pragma once
6
Jim Flynnbbfe6032020-07-20 16:57:44 +01007#include <common/include/CommandHandlerFunctor.hpp>
8#include <common/include/IgnoreUnused.hpp>
Finn Williamsd7fcafa2020-04-23 17:55:18 +01009
10#include <vector>
11
12namespace armnn
13{
14
15namespace gatordmock
16{
17
Jim Flynnbbfe6032020-07-20 16:57:44 +010018class StubCommandHandler : public arm::pipe::CommandHandlerFunctor
Finn Williamsd7fcafa2020-04-23 17:55:18 +010019{
20
21public:
22 /**
23 *
24 * @param packetId The id of packets this handler will process.
25 * @param version The version of that id.
26 */
27 StubCommandHandler(uint32_t familyId,
28 uint32_t packetId,
29 uint32_t version)
30 : CommandHandlerFunctor(familyId, packetId, version)
31 {}
32
Jim Flynnbbfe6032020-07-20 16:57:44 +010033 void operator()(const arm::pipe::Packet& packet) override
Finn Williamsd7fcafa2020-04-23 17:55:18 +010034 {
35 //No op
Jim Flynnbbfe6032020-07-20 16:57:44 +010036 arm::pipe::IgnoreUnused(packet);
Finn Williamsd7fcafa2020-04-23 17:55:18 +010037 }
38
39};
40
41} // namespace gatordmock
42} // namespace armnn