diff options
author | Denis Brockus <dbrockus@google.com> | 2021-01-06 10:52:29 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-07 21:14:16 +0000 |
commit | fd9de64cdfd14943110cde1ac69c1f5542acccd1 (patch) | |
tree | f189873895b15e62ddff4f3dd801581f7f2372cc /include | |
parent | 9759b382b2ce0900c5dd20ad351b213a2c786897 (diff) | |
download | chrome-ec-fd9de64cdfd14943110cde1ac69c1f5542acccd1.tar.gz |
TCPMv2: Compliance Unit Test - TD.PD.SRC3.E7
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Iaa6888d2e0d861d64b2747856465789304dde414
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613724
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/mock/tcpci_i2c_mock.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mock/tcpci_i2c_mock.h b/include/mock/tcpci_i2c_mock.h index 06f5885a57..46691e5b46 100644 --- a/include/mock/tcpci_i2c_mock.h +++ b/include/mock/tcpci_i2c_mock.h @@ -37,6 +37,20 @@ int verify_tcpci_tx_with_data(enum tcpm_transmit_type tx_type, int *msg_len, int timeout); +struct possible_tx { + enum tcpm_transmit_type tx_type; + enum pd_ctrl_msg_type ctrl_msg; + enum pd_data_msg_type data_msg; +}; + +int verify_tcpci_possible_tx(struct possible_tx possible[], + int possible_cnt, + int *found_index, + uint8_t *data, + int data_bytes, + int *msg_len, + int timeout); + void mock_tcpci_receive(enum pd_msg_type sop, uint16_t header, uint32_t *payload); |