tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/TestDownloadManagerListener.java
public void blockUntilTasksCompleteAndThrowAnyDownloadError() throws Throwable {
    blockUntilTasksComplete();
    if (failureReason != Download.FAILURE_REASON_NONE) {
      throw new Exception("Failure reason: " + failureReason);
    }
  }
/**
   * Blocks until all remove and download tasks are complete and throws an exception if there was an
   * error.
   */
Blocks until all remove and download tasks are complete and throws an exception if there was an
error.
Blocks until all remove and download tasks are complete and throws an exception if there was an error .
public void blockUntilTasksCompleteAndThrowAnyDownloadError() throws Throwable {
    blockUntilTasksComplete();
    if (failureReason != Download.FAILURE_REASON_NONE) {
      throw new Exception("Failure reason: " + failureReason);
    }
  }
public void blockUntilTasksCompleteAndThrowAnyDownloadError ( ) throws Throwable { blockUntilTasksComplete ( ) ; if ( failureReason != Download . FAILURE_REASON_NONE ) { throw new Exception ( "Failure reason: " + failureReason ) ; } }
Blocks until all remove and download tasks are complete and throws an exception if there was an
 error.
Blocks until all remove and download tasks are complete and throws an exception if there was an error .