Search in sources :

Example 6 with VisibilityChecker

use of org.prebid.mobile.rendering.utils.helpers.VisibilityChecker in project prebid-mobile-android by prebid.

the class CreativeVisibilityTrackerTest method hasRequiredTimeElapsedWithStartTimeSet_And_ElapsedTimeGreaterThanMinTimeViewed_ReturnTrue.

@Test
public void hasRequiredTimeElapsedWithStartTimeSet_And_ElapsedTimeGreaterThanMinTimeViewed_ReturnTrue() {
    mSpyVisibilityChecker = new VisibilityChecker(mVisibilityTrackerOption);
    mSpyVisibilityChecker.setStartTimeMillis();
    // minVisibleMillis is 0 ms as defined by constant MIN_VISIBLE_MILLIS
    assertTrue(mSpyVisibilityChecker.hasRequiredTimeElapsed());
}
Also used : VisibilityChecker(org.prebid.mobile.rendering.utils.helpers.VisibilityChecker) Test(org.junit.Test)

Aggregations

VisibilityChecker (org.prebid.mobile.rendering.utils.helpers.VisibilityChecker)6 VisibilityTrackerOption (org.prebid.mobile.rendering.models.internal.VisibilityTrackerOption)5 Test (org.junit.Test)2 View (android.view.View)1 AdView (com.google.android.gms.ads.AdView)1 MoPubView (com.mopub.mobileads.MoPubView)1 ArrayList (java.util.ArrayList)1 BidLoader (org.prebid.mobile.rendering.bidding.loader.BidLoader)1