summaryrefslogtreecommitdiff
path: root/common/mock/tcpm_mock.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/mock/tcpm_mock.c')
-rw-r--r--common/mock/tcpm_mock.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/common/mock/tcpm_mock.c b/common/mock/tcpm_mock.c
new file mode 100644
index 0000000000..efd07a9967
--- /dev/null
+++ b/common/mock/tcpm_mock.c
@@ -0,0 +1,22 @@
+/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+/* Mock for the TCPM interface */
+
+#include "common.h"
+#include "console.h"
+#include "memory.h"
+#include "mock/tcpm_mock.h"
+
+int tcpm_dequeue_message(int port, uint32_t *payload, int *header)
+{
+ /* TODO flesh out the mock*/
+ return 0;
+}
+
+int tcpm_has_pending_message(int port)
+{
+ /* TODO flesh out the mock*/
+ return 0;
+}