Home
last modified time | relevance | path

Searched refs:mBaseStatement (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/android/car/test/
DPermissionsCheckerRuleTest.java53 private final SimpleStatement<Exception> mBaseStatement = new SimpleStatement<>(); field in PermissionsCheckerRuleTest
66 mRule.apply(mBaseStatement, testMethod).evaluate(); in testNoAnnotation()
68 mBaseStatement.assertEvaluated(); in testNoAnnotation()
77 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_onePermission()
79 mBaseStatement.assertEvaluated(); in testEnsureHasPermission_onePermission()
88 mBaseStatement.failWith(exception); in testEnsureHasPermission_onePermissionTestThrows()
91 () -> mRule.apply(mBaseStatement, testMethod).evaluate()); in testEnsureHasPermission_onePermissionTestThrows()
102 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_multiplePermissions()
104 mBaseStatement.assertEvaluated(); in testEnsureHasPermission_multiplePermissions()
114 mRule.apply(mBaseStatement, testMethod).evaluate(); in testEnsureHasPermission_permissionsAdoptedBefore()
[all …]
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DAbstractLoggingUsageRuleTest.java42 private final SimpleStatement mBaseStatement = new SimpleStatement(); field in AbstractLoggingUsageRuleTest
57 () -> rule.evaluate(mBaseStatement, mDescription)); in testEvaluate_withNonTestDescription_throwsException()
73 rule.evaluate(mBaseStatement, mDescription); in testEvaluate_withSkipAnnotation_gracefullyExits()
75 mBaseStatement.assertNotEvaluated(); in testEvaluate_withSkipAnnotation_gracefullyExits()
84 rule.evaluate(mBaseStatement, mDescription); in testEvaluate_withNoLogVerifiers_gracefullyExits()
86 mBaseStatement.assertNotEvaluated(); in testEvaluate_withNoLogVerifiers_gracefullyExits()
92 mBaseStatement.failWith(new RuntimeException()); in testEvaluate_withStatementThrowsException_setupDoneButNoVerification()
96 assertThrows(RuntimeException.class, () -> rule.evaluate(mBaseStatement, mDescription)); in testEvaluate_withStatementThrowsException_setupDoneButNoVerification()
110 IllegalArgumentException.class, () -> rule.evaluate(mBaseStatement, mDescription)); in testEvaluate_withLogVerifierThrowsException_throwsSameException()
117 mBaseStatement.assertEvaluated(); in testEvaluate_withLogVerifierThrowsException_throwsSameException()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/side-less/com/android/adservices/common/
DAbstractAdServicesDeviceSupportedRuleTest.java56 private final SimpleStatement mBaseStatement = new SimpleStatement(); field in AbstractAdServicesDeviceSupportedRuleTest
146 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithLowRam_deviceLowRam()
148 mBaseStatement.assertEvaluated(); in testAnnotatedWithLowRam_deviceLowRam()
171 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithLargeScreen_deviceLargeScreen()
173 mBaseStatement.assertEvaluated(); in testAnnotatedWithLargeScreen_deviceLargeScreen()
196 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithSmallScreen_deviceSmallScreen()
198 mBaseStatement.assertEvaluated(); in testAnnotatedWithSmallScreen_deviceSmallScreen()
217 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithRequiresGoDevice_deviceGoDevice()
219 mBaseStatement.assertEvaluated(); in testAnnotatedWithRequiresGoDevice_deviceGoDevice()
273 mAdServicesDeviceSupportedRule.apply(mBaseStatement, description).evaluate(); in testAnnotatedWithRequiresGoDeviceAndRequiresLowMemoryDevice_deviceBoth()
[all …]
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DAbstractSdkLevelSupportedRuleTest.java75 private final SimpleStatement mBaseStatement = new SimpleStatement(); field in AbstractSdkLevelSupportedRuleTest
150 rule.apply(mBaseStatement, testMethod).evaluate(); in testPassesWhenDeviceLevelIsInRange()
155 mBaseStatement.assertEvaluated(); in testPassesWhenDeviceLevelIsInRange()
169 () -> rule.apply(mBaseStatement, testMethod).evaluate()); in testSkipsWhenDeviceLevelIsOutsideRange()
176 mBaseStatement.assertNotEvaluated(); in testSkipsWhenDeviceLevelIsOutsideRange()
789 () -> rule.apply(mBaseStatement, testMethod).evaluate()); in testSkippedWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
796 mBaseStatement.assertNotEvaluated(); in testSkippedWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
807 () -> rule.apply(mBaseStatement, testMethod).evaluate()); in testThrewWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
814 mBaseStatement.assertNotEvaluated(); in testThrewWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
823 rule.apply(mBaseStatement, testMethod).evaluate(); in testRanWhenRuleIsAtLeastXDeviceIsYAndTestAnnotatedWithLessThanT()
[all …]
DAbstractRuleTest.java39 private final SimpleStatement mBaseStatement = new SimpleStatement(); field in AbstractRuleTest
48 mRule.apply(mBaseStatement, mDefaultDescription).evaluate(); in testApply()
50 mBaseStatement.assertEvaluated(); in testApply()