@Test public void onCreate_shouldFireImpressionTracker() throws Exception { initializeSubject(); subject.onCreate(); verify(mockRequestQueue).add(argThat(isUrl("imp"))); }
@Override protected void onCreate() { super.onCreate(); switch (mVastVideoConfiguration.getCustomForceOrientation()) { case FORCE_PORTRAIT: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); break; case FORCE_LANDSCAPE: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); break; case DEVICE_ORIENTATION: break; case UNDEFINED: break; default: break; } downloadCompanionAd(); makeTrackingHttpRequest( mVastVideoConfiguration.getImpressionTrackers(), getContext(), BaseEvent.Name.IMPRESSION_REQUEST ); broadcastAction(ACTION_INTERSTITIAL_SHOW); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Override protected void onCreate() { super.onCreate(); switch (mVastVideoConfiguration.getCustomForceOrientation()) { case FORCE_PORTRAIT: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); break; case FORCE_LANDSCAPE: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); break; case DEVICE_ORIENTATION: break; case UNDEFINED: break; default: break; } downloadCompanionAd(); makeTrackingHttpRequest( mVastVideoConfiguration.getImpressionTrackers(), getContext(), BaseEvent.Name.IMPRESSION_REQUEST ); broadcastAction(ACTION_INTERSTITIAL_SHOW); } }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Override protected void onCreate() { super.onCreate(); switch (mVastVideoConfiguration.getCustomForceOrientation()) { case FORCE_PORTRAIT: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); break; case FORCE_LANDSCAPE: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); break; case DEVICE_ORIENTATION: break; case UNDEFINED: break; default: break; } downloadCompanionAd(); makeTrackingHttpRequest( mVastVideoConfiguration.getImpressionTrackers(), getContext(), BaseEvent.Name.IMPRESSION_REQUEST ); broadcastAction(ACTION_INTERSTITIAL_SHOW); } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Override protected void onCreate() { super.onCreate(); switch (mVastVideoConfiguration.getCustomForceOrientation()) { case FORCE_PORTRAIT: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); break; case FORCE_LANDSCAPE: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); break; case DEVICE_ORIENTATION: break; case UNDEFINED: break; default: break; } downloadCompanionAd(); makeTrackingHttpRequest( mVastVideoConfiguration.getImpressionTrackers(), getContext(), BaseEvent.Name.IMPRESSION_REQUEST ); broadcastAction(ACTION_INTERSTITIAL_SHOW); } 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 { @Override protected void onCreate() { super.onCreate(); switch (mVastVideoConfiguration.getCustomForceOrientation()) { case FORCE_PORTRAIT: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); break; case FORCE_LANDSCAPE: getBaseVideoViewControllerListener().onSetRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); break; case DEVICE_ORIENTATION: break; case UNDEFINED: break; default: break; } downloadCompanionAd(); makeTrackingHttpRequest( mVastVideoConfiguration.getImpressionTrackers(), getContext(), BaseEvent.Name.IMPRESSION_REQUEST ); broadcastAction(ACTION_INTERSTITIAL_SHOW); } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); @Override boolean backButtonEnabled(); @Override void onComplete(String url, DownloadResponse downloadResponse);  }