Adding WB_License_QueryKeyStatus()
The two major changes in this code drop are: 1. The introduction of WB_License_QueryKeyStatus(). This function makes it possible for the White-box to skip keys in the license and report the usefulness of the key to the CDM. 2. The restructuring of the repo, making it easier to share test BUILD files and set the foundation for the new code drop structure. This change brings the partner repo in sync with the internal repo at commit f3b472a541262ca4d425d2b294de39a99385a3d2.
This commit is contained in:
80
whitebox-impl/tests/BUILD
Normal file
80
whitebox-impl/tests/BUILD
Normal file
@@ -0,0 +1,80 @@
|
||||
# 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.
|
||||
#
|
||||
# test_license_whitebox : The target for testing the license white-box. The
|
||||
# white-box should use the private key provided in
|
||||
# "//api/test_license_whitebox_keys.cc".
|
||||
|
||||
# ==============================================================================
|
||||
# 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:test_license_whitebox",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "remote_attestation_and_verification_test",
|
||||
size = "small",
|
||||
deps = [
|
||||
"@whitebox_api//api:remote_attestation_and_verification_test",
|
||||
"//impl:test_license_whitebox",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "license_whitebox_benchmark",
|
||||
size = "small",
|
||||
deps = [
|
||||
"@whitebox_api//api:license_whitebox_benchmark",
|
||||
"//impl:test_license_whitebox",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "license_whitebox_uat_test",
|
||||
size = "small",
|
||||
deps = [
|
||||
"@whitebox_api//api:license_whitebox_uat_test",
|
||||
"//impl:test_license_whitebox",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user