Search in sources :

Example 1 with MockMediationUtils

use of org.prebid.mobile.rendering.bidding.config.MockMediationUtils in project prebid-mobile-android by prebid.

the class MediationBaseAdUnitTest method createAdUnit.

private MediationBaseAdUnit createAdUnit(String configId) {
    MediationBaseAdUnit baseAdUnit = new MediationBaseAdUnit(mContext, configId, mMockAdSize, new MockMediationUtils()) {

        @Override
        protected void initAdConfig(String configId, AdSize adSize) {
            mAdUnitConfig.setConfigId(configId);
        }
    };
    WhiteBox.setInternalState(baseAdUnit, "mBidLoader", mMockBidLoader);
    return baseAdUnit;
}
Also used : AdSize(org.prebid.mobile.rendering.bidding.data.AdSize) MockMediationUtils(org.prebid.mobile.rendering.bidding.config.MockMediationUtils)

Aggregations

MockMediationUtils (org.prebid.mobile.rendering.bidding.config.MockMediationUtils)1 AdSize (org.prebid.mobile.rendering.bidding.data.AdSize)1