Skip to content

Commit

Permalink
Update additional tests for new debug NonEEA semantics.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsimantov committed Dec 13, 2023
1 parent 10e3680 commit 0694344
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gma/integration_test/src/integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,8 @@ TEST_F(FirebaseGmaUmpTest, TestUmpShowForm) {
}

TEST_F(FirebaseGmaUmpTest, TestUmpLoadFormUnavailableDueToUnderAgeOfConsent) {
SKIP_TEST_ON_IOS_SIMULATOR;

using firebase::gma::ump::ConsentDebugSettings;
using firebase::gma::ump::ConsentFormStatus;
using firebase::gma::ump::ConsentRequestParameters;
Expand Down Expand Up @@ -2902,10 +2904,13 @@ TEST_F(FirebaseGmaUmpTest, TestCanRequestAdsNonEEA) {
WaitForCompletion(consent_info_->RequestConsentInfoUpdate(params),
"RequestConsentInfoUpdate");

EXPECT_EQ(consent_info_->GetConsentStatus(),
firebase::gma::ump::kConsentStatusNotRequired);
EXPECT_THAT(consent_info_->GetConsentStatus(),
AnyOf(Eq(firebase::gma::ump::kConsentStatusNotRequired),
Eq(firebase::gma::ump::kConsentStatusRequired)));

EXPECT_TRUE(consent_info_->CanRequestAds());
if (consent_info_->GetConsentStatus() == firebase::gma::ump::kConsentStatusNotRequired) {
EXPECT_TRUE(consent_info_->CanRequestAds());
}
}

TEST_F(FirebaseGmaUmpTest, TestCanRequestAdsEEA) {
Expand Down

0 comments on commit 0694344

Please sign in to comment.