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
a6ee778c
authored
Aug 24, 2020
by
tonihei
Committed by
kim-vde
Aug 26, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove unnecessary ID suffix.
PiperOrigin-RevId: 328154018
parent
996e5897
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
library/core/src/test/java/com/google/android/exoplayer2/analytics/AnalyticsCollectorTest.java
library/core/src/test/java/com/google/android/exoplayer2/analytics/AnalyticsCollectorTest.java
View file @
a6ee778c
...
...
@@ -106,7 +106,7 @@ public final class AnalyticsCollectorTest {
private
static
final
int
EVENT_AUDIO_INPUT_FORMAT_CHANGED
=
26
;
private
static
final
int
EVENT_AUDIO_DISABLED
=
27
;
private
static
final
int
EVENT_AUDIO_SESSION_ID
=
28
;
private
static
final
int
EVENT_AUDIO_POSITION_ADVANCING
_ID
=
29
;
private
static
final
int
EVENT_AUDIO_POSITION_ADVANCING
=
29
;
private
static
final
int
EVENT_AUDIO_UNDERRUN
=
30
;
private
static
final
int
EVENT_VIDEO_ENABLED
=
31
;
private
static
final
int
EVENT_VIDEO_DECODER_INIT
=
32
;
...
...
@@ -227,7 +227,7 @@ public final class AnalyticsCollectorTest {
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_DECODER_INIT
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_INPUT_FORMAT_CHANGED
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_SESSION_ID
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
_ID
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_VIDEO_ENABLED
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_VIDEO_DECODER_INIT
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_VIDEO_INPUT_FORMAT_CHANGED
)).
containsExactly
(
period0
);
...
...
@@ -307,7 +307,7 @@ public final class AnalyticsCollectorTest {
.
containsExactly
(
period0
,
period1
)
.
inOrder
();
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_SESSION_ID
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
_ID
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_VIDEO_ENABLED
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_VIDEO_DECODER_INIT
))
.
containsExactly
(
period0
,
period1
)
...
...
@@ -383,7 +383,7 @@ public final class AnalyticsCollectorTest {
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_DECODER_INIT
)).
containsExactly
(
period1
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_INPUT_FORMAT_CHANGED
)).
containsExactly
(
period1
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_SESSION_ID
)).
containsExactly
(
period1
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
_ID
)).
containsExactly
(
period1
);
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
)).
containsExactly
(
period1
);
assertThat
(
listener
.
getEvents
(
EVENT_VIDEO_ENABLED
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_VIDEO_DECODER_INIT
)).
containsExactly
(
period0
);
assertThat
(
listener
.
getEvents
(
EVENT_VIDEO_INPUT_FORMAT_CHANGED
)).
containsExactly
(
period0
);
...
...
@@ -480,7 +480,7 @@ public final class AnalyticsCollectorTest {
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_SESSION_ID
))
.
containsExactly
(
period0
,
period1
)
.
inOrder
();
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
_ID
))
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
))
.
containsExactly
(
period0
,
period1
)
.
inOrder
();
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_DISABLED
)).
containsExactly
(
period0
);
...
...
@@ -583,7 +583,7 @@ public final class AnalyticsCollectorTest {
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_SESSION_ID
))
.
containsExactly
(
period1Seq1
,
period1Seq2
)
.
inOrder
();
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
_ID
))
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_POSITION_ADVANCING
))
.
containsExactly
(
period1Seq1
,
period1Seq2
)
.
inOrder
();
assertThat
(
listener
.
getEvents
(
EVENT_AUDIO_DISABLED
)).
containsExactly
(
period0
);
...
...
@@ -1934,7 +1934,7 @@ public final class AnalyticsCollectorTest {
@Override
public
void
onAudioPositionAdvancing
(
EventTime
eventTime
,
long
playoutStartSystemTimeMs
)
{
reportedEvents
.
add
(
new
ReportedEvent
(
EVENT_AUDIO_POSITION_ADVANCING
_ID
,
eventTime
));
reportedEvents
.
add
(
new
ReportedEvent
(
EVENT_AUDIO_POSITION_ADVANCING
,
eventTime
));
}
@Override
...
...
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