Add mock RPC interface
Add comparators for the RPC parameter types and mock RPC interface.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I9a927cc35a5dcb346d4c2e2a04b34c8a8d2460fb
diff --git a/components/rpc/common/test/mock_rpc_interface.h b/components/rpc/common/test/mock_rpc_interface.h
new file mode 100644
index 0000000..7e80c4a
--- /dev/null
+++ b/components/rpc/common/test/mock_rpc_interface.h
@@ -0,0 +1,27 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
+ */
+
+#ifndef MOCK_RPC_INTERFACE_H_
+#define MOCK_RPC_INTERFACE_H_
+
+#include "../endpoint/rpc_interface.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void mock_rpc_interface_init(void);
+
+void expect_mock_rpc_interface_receive(struct rpc_interface *iface,
+ const struct call_req *req, rpc_status_t result);
+
+rpc_status_t mock_rpc_interface_receive(struct rpc_interface *iface,
+ struct call_req *req);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* MOCK_RPC_INTERFACE_H_ */