diff options
author | Jett Rink <jettrink@chromium.org> | 2020-07-20 12:02:23 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-21 20:56:22 +0000 |
commit | 783ba1855035fa1827a701b1d905dabedbb9bb7a (patch) | |
tree | f9278ff1a325e525d1d8225e26b35ec3db4b51bf /test/usb_pe.h | |
parent | e2d358b2d8c78067a19defb0beeb15428459ae26 (diff) | |
download | chrome-ec-783ba1855035fa1827a701b1d905dabedbb9bb7a.tar.gz |
test: Use pd_task for pe test
Instead of calling pe function direction in unit test, use the existing
state machine task for unit tests. This allows the real code to call
into a task_set_event on the PD tasks. See CL:1786462 where this is
needed.
BRANCH=none
BUG=none
TEST=run test passes with and without CL:1786462
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: If31f946e2253c724dd314b2b22e2265cf46197f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2307713
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'test/usb_pe.h')
-rw-r--r-- | test/usb_pe.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/usb_pe.h b/test/usb_pe.h index 86e4f3eb10..c927437103 100644 --- a/test/usb_pe.h +++ b/test/usb_pe.h @@ -14,18 +14,6 @@ */ #define PORT0 0 -/* - * Parameters for pe_run - * - * pe_run(port, evt, enable) - * evt - currently ignored in the implementation - * enable - 0 Disable/1 Enable - */ -#define EVT_IGNORED 0 - -#define ENABLED 1 -#define DISABLED 0 - /** * usb_pe_drp_sm.c locally defined. If it changes there, it must * be changed here as well. |