MoPubView extends FrameLayout { protected void nativeAdLoaded() { if (mAdViewController != null) mAdViewController.scheduleRefreshTimerIfEnabled(); adLoaded(); } MoPubView(Context context);  MoPubView(Context context, AttributeSet attrs); void loadAd(); void destroy(); void setAdUnitId(String adUnitId); String getAdUnitId(); void setKeywords(String keywords); String getKeywords(); void setLocation(Location location); Location getLocation(); void setTimeout(int milliseconds); int getAdWidth(); int getAdHeight(); String getResponseString(); void setClickthroughUrl(String url); String getClickthroughUrl(); Activity getActivity(); void setBannerAdListener(BannerAdListener listener); BannerAdListener getBannerAdListener(); void setLocalExtras(Map<String, Object> localExtras); Map<String, Object> getLocalExtras(); void setAutorefreshEnabled(boolean enabled); boolean getAutorefreshEnabled(); void setAdContentView(View view); void setTesting(boolean testing); boolean getTesting(); void forceRefresh(); @Deprecated void setLocationAwareness(LocationAwareness locationAwareness); @Deprecated LocationAwareness getLocationAwareness(); @Deprecated void setLocationPrecision(int precision); @Deprecated int getLocationPrecision(); @Deprecated void setOnAdWillLoadListener(OnAdWillLoadListener listener); @Deprecated void setOnAdLoadedListener(OnAdLoadedListener listener); @Deprecated void setOnAdFailedListener(OnAdFailedListener listener); @Deprecated void setOnAdPresentedOverlayListener(OnAdPresentedOverlayListener listener); @Deprecated void setOnAdClosedListener(OnAdClosedListener listener); @Deprecated void setOnAdClickedListener(OnAdClickedListener listener); @Deprecated void customEventDidLoadAd(); @Deprecated void customEventDidFailToLoadAd(); @Deprecated void customEventActionWillBegin(); @Deprecated void setFacebookSupported(boolean enabled); @Deprecated boolean isFacebookSupported(); static final int DEFAULT_LOCATION_PRECISION; }
@Test public void nativeAdLoaded_shouldScheduleRefreshTimer() throws Exception { subject.nativeAdLoaded(); verify(adViewController).scheduleRefreshTimerIfEnabled(); }