Improve KeyImpl & KeyAesImpl code coverage 73/235573/7
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 5 Jun 2020 19:50:34 +0000 (21:50 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Fri, 12 Jun 2020 12:07:09 +0000 (12:07 +0000)
commit9f206483e1a3287d5c96dc432e08a4c61e1c6555
tree7e6f46886585a90af7b60a464c65e089de518c0b
parentefefa90fd791c4dd0a08cc2166e112d6a659a4ac
Improve KeyImpl & KeyAesImpl code coverage

Also unify key API.

KeyAesImpl() will now return an empty object instead of throwing. This will
unify the error code returned for symmetric and asymmetric keys from
ckmc_get_key(). It will also fix asynchronous C++ API. Observer will receive
an empty key instead of not being called at all.

Unify the type returned from empty keys. C++ API is a platform one and
getType() function is not used in tizen.org according to CodeGrok.

Change-Id: I7de8f32dfe59b1c5af441dfb9a0b8bee5c0d0bcf
src/manager/client/client-manager-impl.cpp
src/manager/common/key-aes-impl.cpp
src/manager/common/key-impl.cpp
src/manager/common/key-impl.h
unit-tests/test_key.cpp