Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
99b87139
authored
Nov 12, 2020
by
ibaker
Committed by
Christos Tsilopoulos
Nov 13, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Change Truth assertions in DashWidevineOfflineTest to increase clarity
PiperOrigin-RevId: 342040610
parent
a038b421
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/DashWidevineOfflineTest.java
playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/DashWidevineOfflineTest.java
View file @
99b87139
...
@@ -171,9 +171,9 @@ public final class DashWidevineOfflineTest {
...
@@ -171,9 +171,9 @@ public final class DashWidevineOfflineTest {
long
licenseDuration
=
long
licenseDuration
=
offlineLicenseHelper
.
getLicenseDurationRemainingSec
(
offlineLicenseKeySetId
).
first
;
offlineLicenseHelper
.
getLicenseDurationRemainingSec
(
offlineLicenseKeySetId
).
first
;
assertWithMessage
(
assertWithMessage
(
"License duration should be less than 30 sec.
"
+
"
Server settings might have changed."
)
"License duration should be less than 30 sec. Server settings might have changed."
)
.
that
(
licenseDuration
<
30
)
.
that
(
licenseDuration
)
.
is
True
(
);
.
is
LessThan
(
30
);
while
(
licenseDuration
>
0
)
{
while
(
licenseDuration
>
0
)
{
synchronized
(
this
)
{
synchronized
(
this
)
{
wait
(
licenseDuration
*
1000
+
2000
);
wait
(
licenseDuration
*
1000
+
2000
);
...
@@ -182,8 +182,8 @@ public final class DashWidevineOfflineTest {
...
@@ -182,8 +182,8 @@ public final class DashWidevineOfflineTest {
licenseDuration
=
licenseDuration
=
offlineLicenseHelper
.
getLicenseDurationRemainingSec
(
offlineLicenseKeySetId
).
first
;
offlineLicenseHelper
.
getLicenseDurationRemainingSec
(
offlineLicenseKeySetId
).
first
;
assertWithMessage
(
"License duration should be decreasing."
)
assertWithMessage
(
"License duration should be decreasing."
)
.
that
(
previousDuration
>
licenseDuration
)
.
that
(
licenseDuration
)
.
is
True
(
);
.
is
LessThan
(
previousDuration
);
}
}
// DefaultDrmSessionManager should renew the license and stream play fine
// DefaultDrmSessionManager should renew the license and stream play fine
...
@@ -203,8 +203,8 @@ public final class DashWidevineOfflineTest {
...
@@ -203,8 +203,8 @@ public final class DashWidevineOfflineTest {
long
licenseDuration
=
licenseDurationRemainingSec
.
first
;
long
licenseDuration
=
licenseDurationRemainingSec
.
first
;
assertWithMessage
(
assertWithMessage
(
"License duration should be less than 30 sec. Server settings might have changed."
)
"License duration should be less than 30 sec. Server settings might have changed."
)
.
that
(
licenseDuration
<
30
)
.
that
(
licenseDuration
)
.
is
True
(
);
.
is
LessThan
(
30
);
ActionSchedule
schedule
=
new
ActionSchedule
.
Builder
(
TAG
)
ActionSchedule
schedule
=
new
ActionSchedule
.
Builder
(
TAG
)
.
waitForPlaybackState
(
Player
.
STATE_READY
)
.
waitForPlaybackState
(
Player
.
STATE_READY
)
.
delay
(
3000
).
pause
().
delay
(
licenseDuration
*
1000
+
2000
).
play
().
build
();
.
delay
(
3000
).
pause
().
delay
(
licenseDuration
*
1000
+
2000
).
play
().
build
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment