mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
Change Truth assertions in DashWidevineOfflineTest to increase clarity
PiperOrigin-RevId: 342040610
This commit is contained in:
parent
a038b421dd
commit
99b87139df
1 changed files with 7 additions and 7 deletions
|
|
@ -171,9 +171,9 @@ public final class DashWidevineOfflineTest {
|
|||
long licenseDuration =
|
||||
offlineLicenseHelper.getLicenseDurationRemainingSec(offlineLicenseKeySetId).first;
|
||||
assertWithMessage(
|
||||
"License duration should be less than 30 sec. " + "Server settings might have changed.")
|
||||
.that(licenseDuration < 30)
|
||||
.isTrue();
|
||||
"License duration should be less than 30 sec. Server settings might have changed.")
|
||||
.that(licenseDuration)
|
||||
.isLessThan(30);
|
||||
while (licenseDuration > 0) {
|
||||
synchronized (this) {
|
||||
wait(licenseDuration * 1000 + 2000);
|
||||
|
|
@ -182,8 +182,8 @@ public final class DashWidevineOfflineTest {
|
|||
licenseDuration =
|
||||
offlineLicenseHelper.getLicenseDurationRemainingSec(offlineLicenseKeySetId).first;
|
||||
assertWithMessage("License duration should be decreasing.")
|
||||
.that(previousDuration > licenseDuration)
|
||||
.isTrue();
|
||||
.that(licenseDuration)
|
||||
.isLessThan(previousDuration);
|
||||
}
|
||||
|
||||
// DefaultDrmSessionManager should renew the license and stream play fine
|
||||
|
|
@ -203,8 +203,8 @@ public final class DashWidevineOfflineTest {
|
|||
long licenseDuration = licenseDurationRemainingSec.first;
|
||||
assertWithMessage(
|
||||
"License duration should be less than 30 sec. Server settings might have changed.")
|
||||
.that(licenseDuration < 30)
|
||||
.isTrue();
|
||||
.that(licenseDuration)
|
||||
.isLessThan(30);
|
||||
ActionSchedule schedule = new ActionSchedule.Builder(TAG)
|
||||
.waitForPlaybackState(Player.STATE_READY)
|
||||
.delay(3000).pause().delay(licenseDuration * 1000 + 2000).play().build();
|
||||
|
|
|
|||
Loading…
Reference in a new issue