Address test failures
[ Merge of http://go/wvgerrit/104584 ] This corrects failures in * WVDrmPluginTest.ReturnsL3SpoidsWhenL3ProvisionedUsingL3Spoid * WVDrmPluginTest.ReturnsL3SpoidsWhenL3Unprovisioned * WVDrmPluginTest.ReturnsL1SpoidsWhenL3ProvisionedUsingL1Spoid and a warning in * PolicyEngineTest.PlaybackOk_RentalAndLicense0_WithPlaybackBeforeLicense_V15 Bug: 163542905 Test: WVDrmPluginTest and PolicyEngineTest Change-Id: I3e7799175b7b289fafd2caf88bd5df4123b88973
This commit is contained in:
@@ -809,9 +809,8 @@ TEST_F(PolicyEngineTest,
|
||||
policy->clear_rental_duration_seconds();
|
||||
// Only |playback_duration_seconds| set.
|
||||
|
||||
policy_engine_->BeginDecryption();
|
||||
|
||||
EXPECT_CALL(*mock_clock_, GetCurrentTime())
|
||||
.WillOnce(Return(kLicenseStartTime - 10))
|
||||
.WillOnce(Return(kLicenseStartTime + 1))
|
||||
.WillOnce(Return(kPlaybackStartTime))
|
||||
.WillOnce(Return(kPlaybackStartTime + kPlaybackDuration - 10))
|
||||
@@ -823,6 +822,9 @@ TEST_F(PolicyEngineTest,
|
||||
EXPECT_CALL(mock_event_listener_,
|
||||
OnExpirationUpdate(_, kPlaybackStartTime + kPlaybackDuration));
|
||||
|
||||
// Attempt decryption before the license has been received
|
||||
policy_engine_->BeginDecryption();
|
||||
|
||||
policy_engine_->SetLicense(license_, false, false);
|
||||
policy_engine_->BeginDecryption();
|
||||
policy_engine_->OnTimerEvent();
|
||||
|
||||
Reference in New Issue
Block a user