Merge latest oemcrypto-v17 change
No-Typo-Check: Not related to this change. Bug: 161477208 Change-Id: I99e4780f6855b7045aa0cd5a49c13d2d0d51ed64
This commit is contained in:
committed by
Fred Gylys-Colwell
parent
c924960962
commit
642965c678
@@ -68,7 +68,7 @@ using wvcdm::kLicenseTypeRelease;
|
||||
using wvcdm::kLicenseTypeStreaming;
|
||||
using wvcdm::kSecurityLevelL1;
|
||||
using wvcdm::kSecurityLevelL3;
|
||||
using wvcdm::Base64Encode;
|
||||
using wvutil::Base64Encode;
|
||||
using wvcdm::CdmAppParameterMap;
|
||||
using wvcdm::CdmCertificateType;
|
||||
using wvcdm::CdmClientPropertySet;
|
||||
@@ -1281,7 +1281,7 @@ TEST_F(WVDrmPluginTest, ReturnsExpectedPropertyValues) {
|
||||
static const std::string oemCryptoPartnerDefinedHash = "2";
|
||||
static const std::string decryptHashErrorBadHashAndFrameNumber = "53, 1";
|
||||
drm_metrics::WvCdmMetrics expected_metrics;
|
||||
std::string serialized_metrics = wvcdm::a2bs_hex(kSerializedMetricsHex);
|
||||
std::string serialized_metrics = wvutil::a2bs_hex(kSerializedMetricsHex);
|
||||
ASSERT_TRUE(expected_metrics.ParseFromString(serialized_metrics));
|
||||
|
||||
EXPECT_CALL(*cdm, QueryStatus(_, QUERY_KEY_SECURITY_LEVEL, _))
|
||||
@@ -3227,7 +3227,7 @@ TEST_F(WVDrmPluginTest, CanSetDecryptHashProperties) {
|
||||
const std::vector<uint8_t> hashVector(
|
||||
reinterpret_cast<uint8_t*>(&hash),
|
||||
reinterpret_cast<uint8_t*>(&hash) + sizeof(uint32_t));
|
||||
const std::string base64EncodedHash = Base64Encode(hashVector);
|
||||
const std::string base64EncodedHash = wvutil::Base64Encode(hashVector);
|
||||
std::string computedHash(sessionId.begin(), sessionId.end());
|
||||
computedHash.append(frameNumber.c_str());
|
||||
computedHash.append(base64EncodedHash.c_str());
|
||||
|
||||
Reference in New Issue
Block a user