diff options
author | Edward Hill <ecgh@chromium.org> | 2020-08-05 19:50:07 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-12 23:05:27 +0000 |
commit | 4c3b024809702c348491c49bec4318a679a6ecad (patch) | |
tree | 6b191387274bf5c96e12cf3d6fd3e4fdb51ab8d2 /include | |
parent | af58e3697787aed2a44bdab20dbb0e4ae547b45e (diff) | |
download | chrome-ec-4c3b024809702c348491c49bec4318a679a6ecad.tar.gz |
test: Soft_Reset sent regardless of Rp value
Add test for TD.PD.SRC3.E26.Soft_Reset sent regardless of Rp value.
BUG=b:161835483
BRANCH=none
TEST=make -j run-usb_tcpmv2_tcpci
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: I972bffcb1c7a330aef4ebdff98fcd33af9a667be
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2340486
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/mock/tcpci_i2c_mock.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/mock/tcpci_i2c_mock.h b/include/mock/tcpci_i2c_mock.h index 4734a2e1e2..4864c7fc96 100644 --- a/include/mock/tcpci_i2c_mock.h +++ b/include/mock/tcpci_i2c_mock.h @@ -18,7 +18,13 @@ int verify_tcpci_transmit(enum tcpm_transmit_type tx_type, enum pd_ctrl_msg_type ctrl_msg, enum pd_data_msg_type data_msg); -int verify_tcpci_tx_retry_count(uint8_t retry_count); +int verify_tcpci_tx_retry_count(enum tcpm_transmit_type tx_type, + int retry_count); + +int verify_tcpci_tx_timeout(enum tcpm_transmit_type tx_type, + enum pd_ctrl_msg_type ctrl_msg, + enum pd_data_msg_type data_msg, + int timeout); void mock_tcpci_receive(enum pd_msg_type sop, uint16_t header, uint32_t *payload); |