This updates the partner repo to match the internal version, including the following changes: - Adds a WB_RESULT_NOT_IMPLEMENTED error code - Add a flag to control new features (e.g. entitlement support). - Updates tests to match new expectations
82 lines
2.2 KiB
Python
82 lines
2.2 KiB
Python
# Copyright 2021 Google LLC. All Rights Reserved.
|
|
|
|
package(default_visibility = [
|
|
"//visibility:private",
|
|
])
|
|
|
|
# ==============================================================================
|
|
# Requirements
|
|
# ==============================================================================
|
|
#
|
|
# This BUILD file expects the implementation BUILD file to expose the following
|
|
# build targets so that it can link against them:
|
|
#
|
|
# test_aead_whitebox : The target for testing the AEAD white-box.
|
|
#
|
|
# general_license_whitebox: The target for testing the license white-box.
|
|
#
|
|
# uat_license_whitebox : The target for testing the license white-box against
|
|
# licenses from Widevine's UAT server.
|
|
|
|
# ==============================================================================
|
|
# AEAD Test Targets
|
|
# ==============================================================================
|
|
|
|
cc_test(
|
|
name = "aead_whitebox_test",
|
|
size = "small",
|
|
deps = [
|
|
"@whitebox_api//api:aead_whitebox_test",
|
|
"//impl:test_aead_whitebox",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "aead_whitebox_benchmark",
|
|
size = "small",
|
|
deps = [
|
|
"@whitebox_api//api:aead_whitebox_benchmark",
|
|
"//impl:test_aead_whitebox",
|
|
],
|
|
)
|
|
|
|
# ==============================================================================
|
|
# License Whitebox Test Targets
|
|
# ==============================================================================
|
|
|
|
cc_test(
|
|
name = "license_whitebox_test",
|
|
size = "small",
|
|
deps = [
|
|
"@whitebox_api//api:license_whitebox_test",
|
|
"//impl:general_license_whitebox",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "remote_attestation_and_verification_test",
|
|
size = "small",
|
|
deps = [
|
|
"@whitebox_api//api:remote_attestation_and_verification_test",
|
|
"//impl:general_license_whitebox",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "license_whitebox_benchmark",
|
|
size = "small",
|
|
deps = [
|
|
"@whitebox_api//api:license_whitebox_benchmark",
|
|
"//impl:general_license_whitebox",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "license_whitebox_uat_test",
|
|
size = "small",
|
|
deps = [
|
|
"@whitebox_api//api:license_whitebox_uat_test",
|
|
"//impl:uat_license_whitebox",
|
|
],
|
|
)
|