@@ -2015,11 +2015,9 @@ TEST_F(FirebaseGmaTest, TestRewardedAdErrorBadExtrasClassName) {
2015
2015
// Stress tests. These take a while so run them near the end.
2016
2016
TEST_F (FirebaseGmaTest, TestAdViewStress) {
2017
2017
SKIP_TEST_ON_DESKTOP;
2018
- SKIP_TEST_ON_SIMULATOR;
2019
2018
2020
- // Loading Ads has been deemed flaky as the AdMob Service has a chance to
2021
- // return NoFill for valid ad requests if there aren't any ads to serve.
2022
- FLAKY_TEST_SECTION_BEGIN ();
2019
+ // TODO(@drsanta): remove when GMA whitelists CI devices
2020
+ TEST_REQUIRES_USER_INTERACTION_ON_IOS;
2023
2021
2024
2022
for (int i = 0 ; i < 10 ; ++i) {
2025
2023
const firebase::gma::AdSize banner_ad_size (kBannerWidth , kBannerHeight );
@@ -2037,17 +2035,13 @@ TEST_F(FirebaseGmaTest, TestAdViewStress) {
2037
2035
WaitForCompletion (ad_view->Destroy (), " Destroy the AdView" );
2038
2036
delete ad_view;
2039
2037
}
2040
-
2041
- FLAKY_TEST_SECTION_END ();
2042
2038
}
2043
2039
2044
2040
TEST_F (FirebaseGmaTest, TestInterstitialAdStress) {
2045
2041
SKIP_TEST_ON_DESKTOP;
2046
- SKIP_TEST_ON_SIMULATOR;
2047
2042
2048
- // Loading Ads has been deemed flaky as the AdMob Service has a chance to
2049
- // return NoFill for valid ad requests if there aren't any ads to serve.
2050
- FLAKY_TEST_SECTION_BEGIN ();
2043
+ // TODO(@drsanta): remove when GMA whitelists CI devices
2044
+ TEST_REQUIRES_USER_INTERACTION_ON_IOS;
2051
2045
2052
2046
for (int i = 0 ; i < 10 ; ++i) {
2053
2047
firebase::gma::InterstitialAd* interstitial =
@@ -2063,17 +2057,13 @@ TEST_F(FirebaseGmaTest, TestInterstitialAdStress) {
2063
2057
" TestInterstitialAdStress LoadAd" );
2064
2058
delete interstitial;
2065
2059
}
2066
-
2067
- FLAKY_TEST_SECTION_END ();
2068
2060
}
2069
2061
2070
2062
TEST_F (FirebaseGmaTest, TestRewardedAdStress) {
2071
2063
SKIP_TEST_ON_DESKTOP;
2072
- SKIP_TEST_ON_SIMULATOR;
2073
2064
2074
- // Loading Ads has been deemed flaky as the AdMob Service has a chance to
2075
- // return NoFill for valid ad requests if there aren't any ads to serve.
2076
- FLAKY_TEST_SECTION_BEGIN ();
2065
+ // TODO(@drsanta): remove when GMA whitelists CI devices
2066
+ TEST_REQUIRES_USER_INTERACTION_ON_IOS;
2077
2067
2078
2068
for (int i = 0 ; i < 10 ; ++i) {
2079
2069
firebase::gma::RewardedAd* rewarded = new firebase::gma::RewardedAd ();
@@ -2087,8 +2077,6 @@ TEST_F(FirebaseGmaTest, TestRewardedAdStress) {
2087
2077
" TestRewardedAdStress LoadAd" );
2088
2078
delete rewarded;
2089
2079
}
2090
-
2091
- FLAKY_TEST_SECTION_END ();
2092
2080
}
2093
2081
2094
2082
#if defined(ANDROID) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
0 commit comments