OSDN Git Service

platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_prepare_tx()
authorTzung-Bi Shih <tzungbi@kernel.org>
Wed, 18 May 2022 09:18:11 +0000 (17:18 +0800)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 6 Jun 2022 03:11:37 +0000 (03:11 +0000)
commitdb681eaf7145158fb49eddbdb548692e8bfe7fab
tree31c82929a67b484579cd4a158eb3cefc433e2ad7
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
platform/chrome: cros_ec_proto: add Kunit tests for cros_ec_prepare_tx()

cros_ec_prepare_tx() is used to fill the protocol headers according to
the requested protocol version.

Add Kunit tests cros_ec_prepare_tx() for each version.

Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20220518091814.2028579-2-tzungbi@kernel.org
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_ec_proto_test.c [new file with mode: 0644]