Add unit test for empty mac key

Merge of change https://widevine-internal-review.googlesource.com/7950.

In the OEMCrypto library, it is valid to call LoadKeys with an empty
mac key.  The library should not update the mac and enc keys and
should not throw an error.

Since we have seen this behavior in several implementations, a unit
test should be added that verifies the correct behavior.

bug: 11032674
Change-Id: I011ba39c8abc47547226a722143e92dac3f63dc5
This commit is contained in:
Fred Gylys-Colwell
2013-10-01 19:02:16 -07:00
parent fc0c408c8d
commit 67c794bac3
2 changed files with 28 additions and 12 deletions

View File

@@ -8,9 +8,6 @@ LOCAL_SRC_FILES:= \
LOCAL_MODULE_TAGS := tests
# Define CAN_INSTALL_KEYBOX and the unit test will install a known keybox and test decryption.
LOCAL_CFLAGS += -DCAN_INSTALL_KEYBOX
LOCAL_C_INCLUDES += \
bionic \
external/gtest/include \