@Test public void onActivityResult_shouldForwardOnActivityResultToViewController() throws Exception { initializeSubjectWithMockViewController(); int expectedRequestCode = -100; int expectedResultCode = 200; Intent expectedData = new Intent("arbitrary_data"); subject.onActivityResult(expectedRequestCode, expectedResultCode, expectedData); verify(baseVideoViewController).onActivityResult( eq(expectedRequestCode), eq(expectedResultCode), eq(expectedData) ); }
@Override protected void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (mBaseVideoController != null) { mBaseVideoController.onActivityResult(requestCode, resultCode, data); } }
MraidVideoPlayerActivity extends BaseVideoPlayerActivity implements BaseVideoViewController.BaseVideoViewControllerListener { @Override protected void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (mBaseVideoController != null) { mBaseVideoController.onActivityResult(requestCode, resultCode, data); } } }
MraidVideoPlayerActivity extends BaseVideoPlayerActivity implements BaseVideoViewController.BaseVideoViewControllerListener { @Override protected void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (mBaseVideoController != null) { mBaseVideoController.onActivityResult(requestCode, resultCode, data); } }  }
MraidVideoPlayerActivity extends BaseVideoPlayerActivity implements BaseVideoViewController.BaseVideoViewControllerListener { @Override protected void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (mBaseVideoController != null) { mBaseVideoController.onActivityResult(requestCode, resultCode, data); } }  @Override void onBackPressed(); @Override void onSetContentView(final View view); @Override void onSetRequestedOrientation(final int requestedOrientation); @Override void onFinish(); @Override void onStartActivityForResult(final Class<? extends Activity> clazz,
            final int requestCode,
            final Bundle extras); }
MraidVideoPlayerActivity extends BaseVideoPlayerActivity implements BaseVideoViewController.BaseVideoViewControllerListener { @Override protected void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (mBaseVideoController != null) { mBaseVideoController.onActivityResult(requestCode, resultCode, data); } }  @Override void onBackPressed(); @Override void onSetContentView(final View view); @Override void onSetRequestedOrientation(final int requestedOrientation); @Override void onFinish(); @Override void onStartActivityForResult(final Class<? extends Activity> clazz,
            final int requestCode,
            final Bundle extras);  }