platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_cmd_xfer()
authorTzung-Bi Shih <tzungbi@kernel.org>
Mon, 18 Jul 2022 05:09:07 +0000 (05:09 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 20 Jul 2022 01:22:57 +0000 (01:22 +0000)
commit82f4def2d8224b45d7348daa943e5fc9d9c7163b
treec7b37c670c71a1fe1a1a71ba600b39cd06b0cdb5
parentd311664b90579c77c66bda18eb93affd4049b255
platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_cmd_xfer()

cros_ec_cmd_xfer() transfers the given command and data if any.  It
performs some sanity checks and calls cros_ec_send_command().

Add Kunit tests for cros_ec_cmd_xfer().

Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220718050914.2267370-4-tzungbi@kernel.org
drivers/platform/chrome/cros_ec_proto_test.c