Rollback
Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=224206719
This commit is contained in:
committed by
Fang Yu
parent
df7566c0c1
commit
7f649cf826
123
common/BUILD
123
common/BUILD
@@ -31,6 +31,98 @@ cc_library(
|
||||
hdrs = ["certificate_type.h"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "client_cert",
|
||||
srcs = ["client_cert.cc"],
|
||||
hdrs = ["client_cert.h"],
|
||||
deps = [
|
||||
":crypto_util",
|
||||
":drm_root_certificate",
|
||||
":error_space",
|
||||
":random_util",
|
||||
":rsa_key",
|
||||
":signing_key_util",
|
||||
":wvm_token_handler",
|
||||
"//base",
|
||||
"//strings",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"@abseil_repo//absl/time",
|
||||
"//util/gtl:map_util",
|
||||
"//util:status",
|
||||
"//protos/public:client_identification_proto",
|
||||
"//protos/public:drm_certificate_proto",
|
||||
"//protos/public:errors_proto",
|
||||
"//protos/public:license_protocol_proto",
|
||||
"//protos/public:signed_drm_certificate_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "client_cert_test",
|
||||
srcs = ["client_cert_test.cc"],
|
||||
deps = [
|
||||
":client_cert",
|
||||
":drm_root_certificate",
|
||||
":error_space",
|
||||
":wvm_test_keys",
|
||||
"//base",
|
||||
"//strings",
|
||||
"//testing:gunit_main",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"@abseil_repo//absl/time",
|
||||
"//common:rsa_key",
|
||||
"//common:rsa_test_keys",
|
||||
"//protos/public:drm_certificate_proto",
|
||||
"//protos/public:errors_proto",
|
||||
"//protos/public:signed_drm_certificate_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "device_status_list",
|
||||
srcs = ["device_status_list.cc"],
|
||||
hdrs = ["device_status_list.h"],
|
||||
deps = [
|
||||
":client_cert",
|
||||
":crypto_util",
|
||||
":drm_root_certificate",
|
||||
":error_space",
|
||||
":random_util",
|
||||
":rsa_key",
|
||||
":signing_key_util",
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//util/gtl:map_util",
|
||||
"//util:status",
|
||||
"//protos/public:client_identification_proto",
|
||||
"//protos/public:device_certificate_status_proto",
|
||||
"//protos/public:errors_proto",
|
||||
"//protos/public:provisioned_device_info_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "device_status_list_test",
|
||||
timeout = "short",
|
||||
srcs = ["device_status_list_test.cc"],
|
||||
deps = [
|
||||
":client_cert",
|
||||
":device_status_list",
|
||||
"//base",
|
||||
"//testing:gunit_main",
|
||||
"@abseil_repo//absl/strings",
|
||||
"//common:rsa_key",
|
||||
"//common:rsa_test_keys",
|
||||
"//protos/public:client_identification_proto",
|
||||
"//protos/public:errors_proto",
|
||||
"//protos/public:provisioned_device_info_proto",
|
||||
"//protos/public:signed_drm_certificate_proto",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "drm_root_certificate",
|
||||
srcs = ["drm_root_certificate.cc"],
|
||||
@@ -39,8 +131,11 @@ cc_library(
|
||||
":certificate_type",
|
||||
":error_space",
|
||||
":rsa_key",
|
||||
":sha_util",
|
||||
"//base",
|
||||
"@abseil_repo//absl/memory",
|
||||
"@abseil_repo//absl/strings",
|
||||
"@abseil_repo//absl/synchronization",
|
||||
"//external:openssl",
|
||||
"//util:status",
|
||||
"//protos/public:drm_certificate_proto",
|
||||
@@ -55,9 +150,12 @@ cc_test(
|
||||
srcs = ["drm_root_certificate_test.cc"],
|
||||
deps = [
|
||||
":drm_root_certificate",
|
||||
":error_space",
|
||||
":rsa_key",
|
||||
":rsa_test_keys",
|
||||
":test_drm_certificates",
|
||||
"//base",
|
||||
"//external:protobuf",
|
||||
"//testing:gunit_main",
|
||||
"//protos/public:drm_certificate_proto",
|
||||
"//protos/public:errors_proto",
|
||||
@@ -65,22 +163,6 @@ cc_test(
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "certificate_util",
|
||||
srcs = ["certificate_util.cc"],
|
||||
hdrs = ["certificate_util.h"],
|
||||
deps = [
|
||||
":certificate_type",
|
||||
":drm_root_certificate",
|
||||
":drm_service_certificate",
|
||||
":verified_media_pipeline",
|
||||
":vmp_checker",
|
||||
"//base",
|
||||
"//util:status",
|
||||
"//license_server_sdk/internal:sdk",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "client_id_util",
|
||||
srcs = ["client_id_util.cc"],
|
||||
@@ -342,10 +424,10 @@ cc_test(
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "test_certificates",
|
||||
name = "test_drm_certificates",
|
||||
testonly = 1,
|
||||
srcs = ["test_certificates.cc"],
|
||||
hdrs = ["test_certificates.h"],
|
||||
srcs = ["test_drm_certificates.cc"],
|
||||
hdrs = ["test_drm_certificates.h"],
|
||||
deps = [
|
||||
"//base",
|
||||
"@abseil_repo//absl/strings",
|
||||
@@ -454,11 +536,12 @@ cc_test(
|
||||
srcs = ["drm_service_certificate_test.cc"],
|
||||
deps = [
|
||||
":aes_cbc_util",
|
||||
":drm_root_certificate",
|
||||
":drm_service_certificate",
|
||||
":rsa_key",
|
||||
":rsa_test_keys",
|
||||
":rsa_util",
|
||||
":test_certificates",
|
||||
":test_drm_certificates",
|
||||
"//base",
|
||||
"//external:protobuf",
|
||||
"//testing:gunit_main",
|
||||
|
||||
Reference in New Issue
Block a user