@Test public void onPrepared_whenDurationIsLessThanMaxVideoDurationForCloseButton_shouldSetShowCloseButtonDelayToDuration() throws Exception { initializeSubject(); spyOnVideoView(); setVideoViewParams(0, 1000); getShadowVideoView().getOnPreparedListener().onPrepared(null); assertThat(subject.getShowCloseButtonDelay()).isEqualTo(1000); }
@Deprecated @VisibleForTesting int getShowCloseButtonDelay() { return mShowCloseButtonDelay; }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting int getShowCloseButtonDelay() { return mShowCloseButtonDelay; } }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting int getShowCloseButtonDelay() { return mShowCloseButtonDelay; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting int getShowCloseButtonDelay() { return mShowCloseButtonDelay; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); @Override boolean backButtonEnabled(); @Override void onComplete(String url, DownloadResponse downloadResponse); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting int getShowCloseButtonDelay() { return mShowCloseButtonDelay; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); @Override boolean backButtonEnabled(); @Override void onComplete(String url, DownloadResponse downloadResponse);  }