diff options
author | Edward Hill <ecgh@chromium.org> | 2020-11-29 16:12:59 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-01 18:19:40 +0000 |
commit | 725de7c47295adf7bc6a770c9867e4d413d1fafd (patch) | |
tree | 74ae39f6d337f994dabca14e4b6a2741dd2f5748 /include/usb_prl_sm.h | |
parent | a2390f3c505a4684535c08da27736099a63850fe (diff) | |
download | chrome-ec-725de7c47295adf7bc6a770c9867e4d413d1fafd.tar.gz |
test: Improve test_send_caps_error in usb_pe_drp
Better mock tx and rx messages, add sop type.
BUG=b:161835483 b:173791979
BRANCH=none
TEST=make run-usb_pe_drp
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: If1f91b6385d6841d662a8a6262af6382645da92e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2553343
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include/usb_prl_sm.h')
-rw-r--r-- | include/usb_prl_sm.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/usb_prl_sm.h b/include/usb_prl_sm.h index d5d133f250..6a143f9acc 100644 --- a/include/usb_prl_sm.h +++ b/include/usb_prl_sm.h @@ -123,28 +123,4 @@ void prl_hard_reset_complete(int port); */ void prl_execute_hard_reset(int port); -#ifdef TEST_BUILD -/** - * Fake to track the last sent control message - */ -enum pd_ctrl_msg_type fake_prl_get_last_sent_ctrl_msg(int port); - -/** - * Fake to set the last sent control message to an invalid value. - */ -void fake_prl_clear_last_sent_ctrl_msg(int port); - -/** - * Get the type of the last sent data message on the given port. - */ -enum pd_data_msg_type fake_prl_get_last_sent_data_msg_type(int port); - -/** - * Clear the last sent data message on the given port to an invalid value, - * making it possible to check that two of the same message were sent in order. - */ -void fake_prl_clear_last_sent_data_msg(int port); -#endif - #endif /* __CROS_EC_USB_PRL_H */ - |