diff options
author | Paul Fagerburg <pfagerburg@google.com> | 2020-06-18 16:32:30 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-23 02:29:14 +0000 |
commit | 01705adbfa51d14e986c76605c995b9ec2d42170 (patch) | |
tree | 3d5d7f12010d90f8f1d42222bad7ef749f2100bc /test/usb_prl.mocklist | |
parent | ae40ebba225fefeb802db2bdce843080eecae081 (diff) | |
download | chrome-ec-01705adbfa51d14e986c76605c995b9ec2d42170.tar.gz |
usb_prl: new unit test with mocks
Now that the old usb_prl unit test is under usb_prl_old, add a new
unit test for usb_prl with mocks for the various subsystems that it
will use.
BUG=b:158608129
BRANCH=None
TEST=`TEST_LIST_HOST="usb_prl_old usb_prl" make runhosttests`
Signed-off-by: Paul Fagerburg <pfagerburg@google.com>
Change-Id: Ie1bf9a4494cd933473caa4ceb594eddd97c277c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2252662
Tested-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'test/usb_prl.mocklist')
-rw-r--r-- | test/usb_prl.mocklist | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/usb_prl.mocklist b/test/usb_prl.mocklist new file mode 100644 index 0000000000..c89e12e78b --- /dev/null +++ b/test/usb_prl.mocklist @@ -0,0 +1,11 @@ +/* Copyright 2019 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + + #define CONFIG_TEST_MOCK_LIST \ + MOCK(TCPC) \ + MOCK(TCPM) \ + MOCK(USB_PD) \ + MOCK(USB_PE_SM) \ + MOCK(USB_TC_SM) |