@Test public void onTouch_whenCloseButtonNotVisible_shouldNotPingClickThroughTrackers() throws Exception { VastVideoConfiguration vastVideoConfiguration = new VastVideoConfiguration(); vastVideoConfiguration.setDiskMediaFileUrl("disk_video_path"); vastVideoConfiguration.addClickTrackers(Arrays.asList("click_1", "click_2")); bundle.putSerializable(VAST_VIDEO_CONFIGURATION, vastVideoConfiguration); initializeSubject(); subject.setCloseButtonVisible(false); getShadowVideoView().getOnTouchListener().onTouch(null, GestureUtils.createActionUp(0, 0)); assertThat(Robolectric.httpRequestWasMade()).isFalse(); }
@Deprecated @VisibleForTesting void setCloseButtonVisible(boolean visible) { mShowCloseButtonEventFired = visible; }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting void setCloseButtonVisible(boolean visible) { mShowCloseButtonEventFired = visible; } }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting void setCloseButtonVisible(boolean visible) { mShowCloseButtonEventFired = visible; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting void setCloseButtonVisible(boolean visible) { mShowCloseButtonEventFired = visible; } 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 void setCloseButtonVisible(boolean visible) { mShowCloseButtonEventFired = visible; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); @Override boolean backButtonEnabled(); @Override void onComplete(String url, DownloadResponse downloadResponse);  }