diff --git a/libwvdrmengine/cdm/test/request_license_test.cpp b/libwvdrmengine/cdm/test/request_license_test.cpp index c272d474..a9809ce2 100644 --- a/libwvdrmengine/cdm/test/request_license_test.cpp +++ b/libwvdrmengine/cdm/test/request_license_test.cpp @@ -6233,6 +6233,9 @@ TEST_F(WvCdmRequestLicenseRollbackTest, Streaming_ExpireBeforeRollback) { GenerateKeyRequest(init_data_with_expiry_, kLicenseTypeStreaming); VerifyKeyRequestResponse(config_.license_server(), config_.client_auth()); + // Start playback timer. + EXPECT_EQ(NO_ERROR, Decrypt(session_id_)); + // Elapse time so that the key should now be considered expired. std::this_thread::sleep_for( std::chrono::milliseconds(kExpirationWithWindowMs_)); @@ -6319,6 +6322,9 @@ TEST_F(WvCdmRequestLicenseRollbackTest, nullptr, &session_id_); EXPECT_EQ(wvcdm::KEY_ADDED, decryptor_->RestoreKey(session_id_, key_set_id)); + // Start playback timer. + EXPECT_EQ(NO_ERROR, Decrypt(session_id_)); + RollbackSystemTime(kExpirationWithWindowMs_); // Elapse time so that the key should now be considered expired. @@ -6357,6 +6363,9 @@ TEST_F(WvCdmRequestLicenseRollbackTest, nullptr, &session_id_); EXPECT_EQ(wvcdm::KEY_ADDED, decryptor_->RestoreKey(session_id_, key_set_id)); + // Start playback timer. + EXPECT_EQ(NO_ERROR, Decrypt(session_id_)); + // Elapse time so that the key should now be considered expired. std::this_thread::sleep_for( std::chrono::milliseconds(kExpirationWithWindowMs_));