Finn Williams | d7fcafa | 2020-04-23 17:55:18 +0100 | [diff] [blame] | 1 | // |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 2 | // Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
Finn Williams | d7fcafa | 2020-04-23 17:55:18 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | #pragma once |
| 6 | |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 7 | #include <common/include/CommandHandlerFunctor.hpp> |
| 8 | #include <common/include/IgnoreUnused.hpp> |
Finn Williams | d7fcafa | 2020-04-23 17:55:18 +0100 | [diff] [blame] | 9 | |
| 10 | #include <vector> |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | namespace gatordmock |
| 16 | { |
| 17 | |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 18 | class StubCommandHandler : public arm::pipe::CommandHandlerFunctor |
Finn Williams | d7fcafa | 2020-04-23 17:55:18 +0100 | [diff] [blame] | 19 | { |
| 20 | |
| 21 | public: |
| 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 Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 33 | void operator()(const arm::pipe::Packet& packet) override |
Finn Williams | d7fcafa | 2020-04-23 17:55:18 +0100 | [diff] [blame] | 34 | { |
| 35 | //No op |
Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 36 | arm::pipe::IgnoreUnused(packet); |
Finn Williams | d7fcafa | 2020-04-23 17:55:18 +0100 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | }; |
| 40 | |
| 41 | } // namespace gatordmock |
| 42 | } // namespace armnn |