]> www.infradead.org Git - linux.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)
commitda95f691311f1f364a482ac11db82dad42bc9742
tree7ae66a3148b8ac842ef0822ce9ca4cfe7a719170
parent82f4def2d8224b45d7348daa943e5fc9d9c7163b
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