Add Duration Use Case integration tests
Cherry pick from http://go/wvgerrit/102986, rvc-dev branch of http://go/wvgerrit/105825, rvc-widevine-release of http://go/ag/12561661 This CL adds several integration tests that match the duration use cases. The test classes are designed for the core cdm, but the test cases match those found in oemcrypto/odk/test/odk_timer_test.cpp. See this document for a list of use cases: libwvdrmengine/docs/License_Duration_and_Renewal.pdf Test: Ran the tests against v16 OEMCrypto. Some fail against v15. Bug: 161463952 Change-Id: I7cd424ae241d3897fbd06956e87dd9da0752cb6d
This commit is contained in:
committed by
Fred Gylys-Colwell
parent
d1dff772d3
commit
b1f54bbba8
@@ -40,6 +40,7 @@ WV_TEST_TARGETS="base64_test \
|
||||
crypto_session_unittest \
|
||||
device_files_unittest \
|
||||
distribution_unittest \
|
||||
duration_use_case_test \
|
||||
event_metric_unittest \
|
||||
file_store_unittest \
|
||||
file_utils_unittest \
|
||||
|
||||
1632
libwvdrmengine/cdm/core/test/duration_use_case_test.cpp
Normal file
1632
libwvdrmengine/cdm/core/test/duration_use_case_test.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -67,6 +67,11 @@ test_name := distribution_unittest
|
||||
test_src_dir := ../metrics/test
|
||||
include $(LOCAL_PATH)/unit-test.mk
|
||||
|
||||
test_name := duration_use_case_test
|
||||
test_src_dir := ../core/test
|
||||
test_main := ../core/test/test_main.cpp
|
||||
include $(LOCAL_PATH)/integration-test.mk
|
||||
|
||||
test_name := event_metric_unittest
|
||||
test_src_dir := ../metrics/test
|
||||
include $(LOCAL_PATH)/unit-test.mk
|
||||
|
||||
@@ -97,6 +97,9 @@ adb_shell_run request_license_test $PROVISIONING_ARG
|
||||
# cdm_extended_duration_test takes >30 minutes to run.
|
||||
# adb_shell_run cdm_extended_duration_test
|
||||
|
||||
# duration_use_case_test takes a very long time to run.
|
||||
# adb_shell_run duration_use_case_test
|
||||
|
||||
# cdm_feature_test to be run with modified/mock oemcrypto
|
||||
# adb_shell_run cdm_feature_test
|
||||
|
||||
@@ -127,6 +130,7 @@ adb_shell_run license_unittest
|
||||
adb_shell_run odk_test
|
||||
adb_shell_run policy_engine_constraints_unittest
|
||||
adb_shell_run policy_engine_unittest
|
||||
adb_shell_run policy_integration_test
|
||||
adb_shell_run rw_lock_test
|
||||
adb_shell_run service_certificate_unittest
|
||||
adb_shell_run timer_unittest
|
||||
|
||||
Reference in New Issue
Block a user