diff options
author | Denis Brockus <dbrockus@google.com> | 2020-12-29 12:57:03 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-30 22:34:04 +0000 |
commit | 1ea0a8ad86d4d731a2fbb1861038564b393fbc82 (patch) | |
tree | ce00adc912a0b34a65c7bf70ca4113608b71f349 /include/mock/tcpci_i2c_mock.h | |
parent | c7641168a60cae345bddc5566bd7bf7aedd4d1ed (diff) | |
download | chrome-ec-1ea0a8ad86d4d731a2fbb1861038564b393fbc82.tar.gz |
TCPMv2: Compliance Unit Test - TD.PD.SRC.E2
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I0b498d56dd189e3360fd1498acbfb5314c9870d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2602844
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/mock/tcpci_i2c_mock.h')
-rw-r--r-- | include/mock/tcpci_i2c_mock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mock/tcpci_i2c_mock.h b/include/mock/tcpci_i2c_mock.h index 7b068280d4..2c7faabd37 100644 --- a/include/mock/tcpci_i2c_mock.h +++ b/include/mock/tcpci_i2c_mock.h @@ -30,6 +30,12 @@ int verify_tcpci_tx_timeout(enum tcpm_transmit_type tx_type, enum pd_data_msg_type data_msg, int timeout); +int verify_tcpci_tx_with_data(enum tcpm_transmit_type tx_type, + enum pd_data_msg_type data_msg, + uint8_t *data, + int data_bytes, + int *msg_len); + void mock_tcpci_receive(enum pd_msg_type sop, uint16_t header, uint32_t *payload); |