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