87 lines
1.9 KiB
Python
87 lines
1.9 KiB
Python
################################################################################
|
|
# Copyright 2016 Google LLC.
|
|
#
|
|
# This software is licensed under the terms defined in the Widevine Master
|
|
# License Agreement. For a copy of this agreement, please contact
|
|
# widevine-licensing@google.com.
|
|
################################################################################
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
filegroup(
|
|
name = "binary_release_files",
|
|
srcs = glob([
|
|
"*.py",
|
|
"*.i",
|
|
]),
|
|
)
|
|
|
|
py_library(
|
|
name = "test_data_utility",
|
|
srcs = [
|
|
"test_data_provider.py",
|
|
"test_data_utility.py",
|
|
],
|
|
data = [
|
|
"//example:example_data",
|
|
],
|
|
deps = [
|
|
"//protos/public:certificate_provisioning_py_pb2",
|
|
],
|
|
)
|
|
|
|
py_library(
|
|
name = "crypto_utility",
|
|
srcs = ["crypto_utility.py"],
|
|
)
|
|
|
|
py_test(
|
|
name = "init_engine_test",
|
|
size = "small",
|
|
srcs = ["init_engine_test.py"],
|
|
deps = [
|
|
":test_data_utility",
|
|
],
|
|
)
|
|
|
|
py_test(
|
|
name = "set_certificate_status_list_test",
|
|
size = "small",
|
|
srcs = ["set_certificate_status_list_test.py"],
|
|
deps = [
|
|
":test_data_utility",
|
|
],
|
|
)
|
|
|
|
py_test(
|
|
name = "drm_intermediate_certificate_test",
|
|
size = "small",
|
|
srcs = ["drm_intermediate_certificate_test.py"],
|
|
deps = [
|
|
":test_data_utility",
|
|
],
|
|
)
|
|
|
|
py_test(
|
|
name = "engine_generate_certificate_test",
|
|
size = "small",
|
|
srcs = ["engine_generate_certificate_test.py"],
|
|
deps = [
|
|
":crypto_utility",
|
|
":test_data_utility",
|
|
"//protos/public:signed_drm_certificate_py_pb2",
|
|
],
|
|
)
|
|
|
|
py_test(
|
|
name = "new_session_test",
|
|
size = "small",
|
|
srcs = ["new_session_test.py"],
|
|
deps = [
|
|
":crypto_utility",
|
|
":test_data_utility",
|
|
"//protos/public:certificate_provisioning_py_pb2",
|
|
"//protos/public:signed_drm_certificate_py_pb2",
|
|
],
|
|
)
|