Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeriu Popa committed Nov 17, 2023
1 parent f2d0776 commit 1231eb7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ - (void)testRequestBannerAdSuccess {

id mockCriteo = OCMClassMock([Criteo class]);
OCMStub([mockCriteo sharedCriteo]).andReturn(mockCriteo);
OCMStub([mockCriteo registerCriteoPublisherId:@"testCpId" withStoreId: @"testStoreId" withAdUnits:@[ bannerAdUnit ]]);
OCMStub([mockCriteo registerCriteoPublisherId:@"testCpId"
withStoreId:@"testStoreId"
withAdUnits:@[ bannerAdUnit ]]);
OCMStub([mockCriteo setChildDirectedTreatment:mockChildDirectedTreatment]);

[customEvent loadBannerForAdUnit:bannerAdUnit
Expand All @@ -78,7 +80,9 @@ - (void)testRequestBannerAdSuccess {

OCMVerify([mockCRBannerView loadAd]);
OCMVerify([mockCRBannerView setDelegate:customEvent]);
OCMVerify([mockCriteo registerCriteoPublisherId:@"testCpId" withStoreId: @"testStoreId" withAdUnits:@[ bannerAdUnit ]]);
OCMVerify([mockCriteo registerCriteoPublisherId:@"testCpId"
withStoreId:@"testStoreId"
withAdUnits:@[ bannerAdUnit ]]);
OCMVerify([mockCriteo setChildDirectedTreatment:mockChildDirectedTreatment]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ - (void)testLoadAndPresentFromRootViewController {

id mockCriteo = OCMStrictClassMock([Criteo class]);
OCMStub([mockCriteo sharedCriteo]).andReturn(mockCriteo);
OCMStub([mockCriteo registerCriteoPublisherId:@"testCpId" withStoreId: @"testStoreId" withAdUnits:@[ interstitialAdUnit ]]);
OCMStub([mockCriteo registerCriteoPublisherId:@"testCpId"
withStoreId:@"testStoreId"
withAdUnits:@[ interstitialAdUnit ]]);
OCMStub([mockCriteo setChildDirectedTreatment:mockChildDirectedTreatment]);

[customEvent loadInterstitialForAdUnit:interstitialAdUnit
Expand All @@ -87,7 +89,9 @@ - (void)testLoadAndPresentFromRootViewController {
OCMVerify([mockCRInterstitial loadAd]);
OCMVerify([mockCRInterstitial setDelegate:customEvent]);
OCMVerify([mockCRInterstitial presentFromRootViewController:realVC]);
OCMVerify([mockCriteo registerCriteoPublisherId:@"testCpId" withStoreId: @"testStoreId" withAdUnits:@[ interstitialAdUnit ]]);
OCMVerify([mockCriteo registerCriteoPublisherId:@"testCpId"
withStoreId:@"testStoreId"
withAdUnits:@[ interstitialAdUnit ]]);
OCMVerify([mockCriteo setChildDirectedTreatment:mockChildDirectedTreatment]);
}

Expand Down

0 comments on commit 1231eb7

Please sign in to comment.