diff options
author | Victor Chong <victor.chong@linaro.org> | 2021-02-15 00:57:42 +0900 |
---|---|---|
committer | vchong <7334750+vchong@users.noreply.github.com> | 2021-02-25 23:56:44 +0900 |
commit | 264d3bc8ca81cb206ee13fff7751d2bd2cce4432 (patch) | |
tree | a265feb21911a1cb9f3bc415c40edc65963a4952 | |
parent | c4f4ca80d87ee037c245d146a730be677f7d155d (diff) | |
download | apps-264d3bc8ca81cb206ee13fff7751d2bd2cce4432.tar.gz |
km: test: add initial check for SetUp()
Add initial check for SetUp() in KeymasterTest class to verify
supported features are as expected.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Acked-by: Ruchika Gupta <ruchika.gupta@linaro.org>
Tested-by: Victor Chong <victor.chong@linaro.org>
-rw-r--r-- | test/functional/keymaster_hidl_hal_test.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/functional/keymaster_hidl_hal_test.cpp b/test/functional/keymaster_hidl_hal_test.cpp index 811139f..25e5fb2 100644 --- a/test/functional/keymaster_hidl_hal_test.cpp +++ b/test/functional/keymaster_hidl_hal_test.cpp @@ -322,14 +322,13 @@ class KeymasterTest : public ::testing::TestWithParam<std::string> { ->getHardwareFeatures([&](bool isSecure, bool supportsEc, bool supportsSymmetric, bool supportsAttestation, bool supportsAllDigests, const hidl_string& name, const hidl_string& author) { - //TODO: Add some initial check - (void)(isSecure); - (void)(supportsEc); - (void)(supportsSymmetric); - (void)(supportsAttestation); - (void)(supportsAllDigests); - (void)(name); - (void)(author); + ASSERT_TRUE(isSecure); + ASSERT_TRUE(supportsEc); + ASSERT_TRUE(supportsSymmetric); + ASSERT_TRUE(supportsAttestation); + ASSERT_TRUE(supportsAllDigests); + (void)(name); + (void)(author); }) .isOk()); } |