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
1b5a0c11
authored
Feb 22, 2022
by
ibaker
Committed by
Ian Baker
Feb 22, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix DefaultAnalyticsCollectorTest failure when run with JaCoCo
#minor-release PiperOrigin-RevId: 430189385
parent
19e21d6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
library/core/src/test/java/com/google/android/exoplayer2/analytics/DefaultAnalyticsCollectorTest.java
library/core/src/test/java/com/google/android/exoplayer2/analytics/DefaultAnalyticsCollectorTest.java
View file @
1b5a0c11
...
...
@@ -192,10 +192,18 @@ public final class DefaultAnalyticsCollectorTest {
private
EventWindowAndPeriodId
window0Period1Seq0
;
private
EventWindowAndPeriodId
window1Period0Seq1
;
/**
* Verify that {@link DefaultAnalyticsCollector} explicitly overrides all {@link Player.Listener}
* methods.
*/
@Test
public
void
defaultAnalyticsCollector_overridesAllPlayerListenerMethods
()
throws
Exception
{
// Verify that AnalyticsCollector forwards all Player.Listener methods to AnalyticsListener.
for
(
Method
method
:
Player
.
Listener
.
class
.
getDeclaredMethods
())
{
if
(
method
.
isSynthetic
())
{
// JaCoCo inserts synthetic methods. See "My code uses reflection. Why does it fail when I
// execute it with JaCoCo?": https://www.eclemma.org/jacoco/trunk/doc/faq.html
continue
;
}
assertThat
(
DefaultAnalyticsCollector
.
class
.
getMethod
(
method
.
getName
(),
method
.
getParameterTypes
())
...
...
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