Home
last modified time | relevance | path

Searched refs:cleanUpErrors (Results 1 – 3 of 3) sorted by relevance

/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DAbstractRethrowerRule.java41 List<Throwable> cleanUpErrors = new ArrayList<>(); in evaluate() local
42 preTest(base, description, cleanUpErrors); in evaluate()
48 cleanUpErrors.add(t); in evaluate()
49 onTestFailure(base, description, cleanUpErrors, t); in evaluate()
51 postTest(base, description, cleanUpErrors); in evaluate()
56 throwIfNecessary(testName, testError, cleanUpErrors); in evaluate()
60 String testName, @Nullable Throwable testError, List<Throwable> cleanUpErrors) in throwIfNecessary() argument
71 String dumpDescription = decorateTestFailureMessage(dump, cleanUpErrors); in throwIfNecessary()
81 protected void preTest(Statement base, Description description, List<Throwable> cleanUpErrors) { in preTest() argument
94 List<Throwable> cleanUpErrors, in onTestFailure() argument
[all …]
DAbstractFlagsSetterRule.java165 protected void preTest(Statement base, Description description, List<Throwable> cleanUpErrors) { in preTest() argument
171 runSafely(cleanUpErrors, () -> mPreTestFlags.addAll(mDeviceConfig.getAll())); in preTest()
173 cleanUpErrors, in preTest()
186 List<Throwable> cleanUpErrors, in onTestFailure() argument
188 runSafely(cleanUpErrors, () -> mOnTestFailureFlags.addAll(mDeviceConfig.getAll())); in onTestFailure()
190 cleanUpErrors, in onTestFailure()
198 Statement base, Description description, List<Throwable> cleanUpErrors) { in postTest() argument
200 runSafely(cleanUpErrors, () -> resetFlags(testName)); in postTest()
201 runSafely(cleanUpErrors, () -> resetSystemProperties(testName)); in postTest()
202 runSafely(cleanUpErrors, () -> setSyncDisabledMode(mPreviousSyncDisabledModeForTest)); in postTest()
[all …]
/packages/modules/AdServices/adservices/tests/test-util/side-less/com/android/adservices/common/
DAbstractSystemPropertiesDumperRule.java56 protected void preTest(Statement base, Description description, List<Throwable> cleanUpErrors) { in preTest() argument
57 runSafely(cleanUpErrors, () -> mPreTestSystemProperties.addAll(mHelper.getAll(mMatcher))); in preTest()
64 List<Throwable> cleanUpErrors, in onTestFailure() argument
67 cleanUpErrors, in onTestFailure()
72 protected String decorateTestFailureMessage(StringBuilder dump, List<Throwable> cleanUpErrors) { in decorateTestFailureMessage() argument