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());
}
Aggregations