summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adservices/tests/cts/src/android/adservices/cts/CustomAudienceApiCtsTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/adservices/tests/cts/src/android/adservices/cts/CustomAudienceApiCtsTest.java b/adservices/tests/cts/src/android/adservices/cts/CustomAudienceApiCtsTest.java
index baf5738913..99b4e4ba79 100644
--- a/adservices/tests/cts/src/android/adservices/cts/CustomAudienceApiCtsTest.java
+++ b/adservices/tests/cts/src/android/adservices/cts/CustomAudienceApiCtsTest.java
@@ -58,6 +58,7 @@ import android.net.Uri;
import android.os.Process;
import android.util.Pair;
+import androidx.test.filters.FlakyTest;
import androidx.test.platform.app.InstrumentationRegistry;
import com.android.adservices.common.AdservicesTestHelper;
@@ -360,6 +361,7 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validFetchUri_validRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -380,12 +382,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validFetchUri_validRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_validFetchUri_validRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_unenrolledFetchUri_invalidRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -410,12 +414,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_unenrolledFetchUri_invalidRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_unenrolledFetchUri_invalidRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validName_validRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -437,12 +443,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validName_validRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_validName_validRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_tooLongName_invalidRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -467,12 +475,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_tooLongName_invalidRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_tooLongName_invalidRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validActivationTime_validRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -495,12 +505,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validActivationTime_validRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_validActivationTime_validRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_activationExceedsDelay_invalidRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -523,12 +535,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_activationExceedsDelay_invalidRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_activationExceedsDelay_invalidRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validExpirationTime_validRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -550,12 +564,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validExpirationTime_validRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_validExpirationTime_validRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_beyondMaxExpiration_invalidRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -578,12 +594,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_beyondMaxExpiration_invalidRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_beyondMaxExpiration_invalidRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validUserBiddingSignals_validRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -605,12 +623,14 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_validUserBiddingSignals_validRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_validUserBiddingSignals_validRequest();
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_tooBigUserBiddingSignals_invalidRequest() {
// NOTE: not using flag annotations because it's called by other test
flags.setFlag(KEY_FLEDGE_FETCH_CUSTOM_AUDIENCE_ENABLED, true);
@@ -633,6 +653,7 @@ public final class CustomAudienceApiCtsTest extends ForegroundCtsTestCase {
}
@Test
+ @FlakyTest(bugId = 319330548)
public void testFetchAndJoinCustomAudience_tooBigUserBiddingSignals_invalidRequest_getMethod() {
createClientUsingGetMethod();
testFetchAndJoinCustomAudience_tooBigUserBiddingSignals_invalidRequest();