• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include <common/include/CommandHandlerFunctor.hpp>
8 #include <common/include/IgnoreUnused.hpp>
9 
10 #include <vector>
11 
12 namespace armnn
13 {
14 
15 namespace gatordmock
16 {
17 
18 class StubCommandHandler : public arm::pipe::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      */
StubCommandHandler(uint32_t familyId,uint32_t packetId,uint32_t version)27     StubCommandHandler(uint32_t familyId,
28                        uint32_t packetId,
29                        uint32_t version)
30             : CommandHandlerFunctor(familyId, packetId, version)
31     {}
32 
operator ()(const arm::pipe::Packet & packet)33     void operator()(const arm::pipe::Packet& packet) override
34     {
35         //No op
36         arm::pipe::IgnoreUnused(packet);
37     }
38 
39 };
40 
41 }    // namespace gatordmock
42 }    // namespace armnn
43