shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaPlayer.java
public void invokeInfoListener(int what, int extra) {
    if (infoListener != null) {
      infoListener.onInfo(player, what, extra);
    }
  }
public void invokeInfoListener(int what, int extra) {
    if (infoListener != null) {
      infoListener.onInfo(player, what, extra);
    }
  }
Allows test cases to directly simulate invocation of the OnInfo event.

@param what
parameter to pass in to {@code what} in
{@link MediaPlayer.OnInfoListener#onInfo(MediaPlayer, int, int)}.
@param extra
parameter to pass in to {@code extra} in
{@link MediaPlayer.OnInfoListener#onInfo(MediaPlayer, int, int)}.