]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_send_command()
authorTzung-Bi Shih <tzungbi@kernel.org>
Mon, 18 Jul 2022 05:09:08 +0000 (05:09 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 20 Jul 2022 01:22:58 +0000 (01:22 +0000)
commit95af3319be83ae68732b3ea510e754726fc76ead
tree7ae66a3148b8ac842ef0822ce9ca4cfe7a719170
parent2cc8842e59dc3ee9dc4f6e0010169dcf565fae8a
platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_send_command()

cros_ec_cmd_xfer() is the only exported function that calls static
function cros_ec_send_command().

Add Kunit tests for cros_ec_send_command() through calling
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-5-tzungbi@kernel.org
drivers/platform/chrome/cros_ec_proto_test.c
drivers/platform/chrome/cros_kunit_util.c
drivers/platform/chrome/cros_kunit_util.h