OSDN Git Service

Check return from DeleteKey correctly.
authorShawn Willden <swillden@google.com>
Thu, 1 Jun 2017 13:44:27 +0000 (07:44 -0600)
committerShawn Willden <swillden@google.com>
Thu, 1 Jun 2017 13:44:27 +0000 (07:44 -0600)
commit1c69c5fcb898481cb0c6132e6b392fa0eddaf103
tree570ac8418cd9cf36bb8d42a5bf253d6cbefd256b
parentfcc61188827e1472965b36041c29b80cbe4079ba
Check return from DeleteKey correctly.

DeleteKey may legitimately return ErrorCode::UNIMPLEMENTED rather than
ErrorCode::OK, but the VTS test didn't allow that in all cases.  In many
case the return code was also left unchecked.

Test: adb shell/data/nativetest64/VtsHalKeymasterV3_0TargetTest/VtsHalKeymasterV3_0TargetTest
Bug: 62193967
Change-Id: I19a90a87850675b0700baf7409e57098e0584d54
keymaster/3.0/vts/functional/keymaster_hidl_hal_test.cpp