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
40 lines
725 B
Makefile
40 lines
725 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
# THIS IS FOR THE MOCK TESTS:
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
oemcrypto_test.cpp
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
bionic \
|
|
external/gtest/include \
|
|
external/openssl/include \
|
|
external/stlport/stlport \
|
|
$(LOCAL_PATH)/../include \
|
|
$(LOCAL_PATH)/../mock/src \
|
|
vendor/widevine/libwvdrmengine/cdm/core/include \
|
|
vendor/widevine/libwvdrmengine/third_party/stringencoders/src \
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libcdm \
|
|
libgtest \
|
|
libgtest_main \
|
|
libwvlevel3 \
|
|
libcdm_utils \
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcrypto \
|
|
libcutils \
|
|
libdl \
|
|
liblog \
|
|
libstlport \
|
|
libutils \
|
|
libz \
|
|
|
|
LOCAL_MODULE:=oemcrypto_test
|
|
|
|
include $(BUILD_EXECUTABLE)
|