From 01ce2942262f7bb497b20fb36d6fe3224a809ec5 Mon Sep 17 00:00:00 2001 From: Fred Gylys-Colwell Date: Tue, 31 Jul 2018 21:15:38 -0700 Subject: [PATCH] Correct pssh Merge from Widevine repo of http://go/wvgerrit/56540 The pssh in request_license_test had the wrong size field. Test: tested as part of http://go/ag/4674759 Change-Id: I6fed0fc8d11aec0a360d300e500a4ef62b658dad --- .../cdm/test/request_license_test.cpp | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/libwvdrmengine/cdm/test/request_license_test.cpp b/libwvdrmengine/cdm/test/request_license_test.cpp index 1f06d3c6..9cc57d6c 100644 --- a/libwvdrmengine/cdm/test/request_license_test.cpp +++ b/libwvdrmengine/cdm/test/request_license_test.cpp @@ -418,6 +418,16 @@ struct UsageInfoSubSampleInfo { std::string app_id; }; +void PrintTo(UsageInfoSubSampleInfo* param, std::ostream* os) { + if (param) { + *os << "info=" << param->usage_info << ", " + << "level=" << (param->security_level == wvcdm::kLevel3 ? "L3" : "L1") + << " app_id=" << param->app_id; + } else { + *os << ""; + } +} + UsageInfoSubSampleInfo usage_info_sub_sample_info[] = { {&usage_info_sub_samples_icp[0], 1, wvcdm::kLevelDefault, ""}, {&usage_info_sub_samples_icp[0], 3, wvcdm::kLevelDefault, ""}, @@ -485,6 +495,14 @@ struct RenewWithClientIdTestConfiguration { std::string test_description; }; +void PrintTo(RenewWithClientIdTestConfiguration* param, std::ostream* os) { + if (param) { + *os << param->test_description; + } else { + *os << ""; + } +} + RenewWithClientIdTestConfiguration streaming_renew_client_id_test_configuration[] = { {false, false, false, false, @@ -2502,7 +2520,7 @@ TEST_F(WvCdmRequestLicenseTest, StreamingLicenseRenewalProhibited) { decryptor_.OpenSession(g_key_system, NULL, kDefaultCdmIdentifier, NULL, &session_id_); std::string key_id = a2bs_hex( // streaming_clip11 - "000000427073736800000000" // blob size and pssh + "000000437073736800000000" // blob size and pssh "EDEF8BA979D64ACEA3C827DCD51D21ED00000023" // Widevine system id "08011a0d7769646576696e655f746573" // pssh data "74221073747265616d696e675f636c69703131"); @@ -2864,7 +2882,7 @@ TEST_P(WvCdmUsageTest, WithClientId) { if (config->always_include_client_id) { key_id = a2bs_hex( // streaming_clip20 - "000000427073736800000000" // blob size and pssh + "000000437073736800000000" // blob size and pssh "EDEF8BA979D64ACEA3C827DCD51D21ED00000023" // Widevine system id "08011a0d7769646576696e655f746573" // pssh data "74221073747265616d696e675f636c69703230");