@Test public void onClickCloseButton_whenCloseButtonIsVisible_shouldFireCloseTrackers() throws Exception { initializeSubject(); subject.setCloseButtonVisible(true); View.OnTouchListener closeButtonOnTouchListener = shadowOf(getVastVideoToolbar().getCloseButtonWidget()).getOnTouchListener(); closeButtonOnTouchListener.onTouch(null, GestureUtils.createActionUp(0, 0)); verify(mockRequestQueue).add(argThat(isUrl("close"))); verify(mockRequestQueue).add(argThat(isUrl("skip"))); }
@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);  }