From f25dc4d0f3d004d9ec28838457d3a6b6f7581352 Mon Sep 17 00:00:00 2001 From: Rahul Frias Date: Tue, 5 Nov 2024 09:13:04 -0800 Subject: [PATCH] Correct SecureStop_RecoveryTest [ Merge of http://go/wvgerrit/209611 ] [Reset crypto session pointers on RemoveKeys](http://go/wvgerrit/189590) changed the plugin behavior. When RemoveKeys are called the Provider Session Token present in the license is cleared when CdmLicense object is reset. This causes a test expectation to fail. Since SecureStop are slated for removal, we will introduce a workaround to avoid this expectation check. The work around is to not expect usage information. Bug: 339917270 Test: request_license_test (WvCdmRequestLicenseTest.SecureStop_RecoveryTest) Flag: Test only code Change-Id: Ib6922372faf0a38b7bf131f699c4626cb2b533d0 --- libwvdrmengine/cdm/test/request_license_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libwvdrmengine/cdm/test/request_license_test.cpp b/libwvdrmengine/cdm/test/request_license_test.cpp index c044e8e7..14b09b5e 100644 --- a/libwvdrmengine/cdm/test/request_license_test.cpp +++ b/libwvdrmengine/cdm/test/request_license_test.cpp @@ -4927,7 +4927,7 @@ TEST_F(WvCdmRequestLicenseTest, SecureStop_RecoveryTest) { std::string response; VerifyKeyRequestResponse(CdmResponseType(wvcdm::STORE_USAGE_INFO_ERROR), config_.license_server(), config_.client_auth(), - true, &response); + false, &response); decryptor_->CloseSession(session_id_);