Propagate the player error to ExoPlayerTestRunner

In a test run where no exceptions were thrown on the main thread and the test
did not time out, exceptions from onPlayerError were not correctly propagated to
the test thread (handleException would be called with null).

Fix ExoPlayerTestRunner.onPlayerError to propagate the actual exception from the
player.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176825907
This commit is contained in:
andrewlewis 2017-11-24 02:20:35 -08:00 committed by Oliver Woodman
parent 5cd8869646
commit de476ba4e6

View file

@ -567,7 +567,7 @@ public final class ExoPlayerTestRunner extends Player.DefaultEventListener {
@Override
public void onPlayerError(ExoPlaybackException error) {
handleException(exception);
handleException(error);
}
@Override