aboutsummaryrefslogtreecommitdiff
path: root/tests/profiling/gatordmock/StubCommandHandler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/profiling/gatordmock/StubCommandHandler.hpp')
-rw-r--r--tests/profiling/gatordmock/StubCommandHandler.hpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/profiling/gatordmock/StubCommandHandler.hpp b/tests/profiling/gatordmock/StubCommandHandler.hpp
new file mode 100644
index 0000000000..450f90fd2b
--- /dev/null
+++ b/tests/profiling/gatordmock/StubCommandHandler.hpp
@@ -0,0 +1,42 @@
+//
+// Copyright © 2020 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+#pragma once
+
+#include <CommandHandlerFunctor.hpp>
+#include <armnn/utility/IgnoreUnused.hpp>
+
+#include <vector>
+
+namespace armnn
+{
+
+namespace gatordmock
+{
+
+class StubCommandHandler : public profiling::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 armnn::profiling::Packet& packet) override
+ {
+ //No op
+ IgnoreUnused(packet);
+ }
+
+};
+
+} // namespace gatordmock
+} // namespace armnn