Home
last modified time | relevance | path

Searched refs:assertion (Results 1 – 25 of 38) sorted by relevance

12

/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DCompoundAssertionTest.kt25 val assertion = assertion1() in correctNameSingle() constant
26 Assert.assertEquals(NAME, assertion.name) in correctNameSingle()
31 val assertion = assertion1() in correctNamePair() constant
32 Assert.assertEquals(NAME, assertion.name) in correctNamePair()
33 assertion.add({}, OTHER, optional = false) in correctNamePair()
34 Assert.assertEquals("$NAME and $OTHER", assertion.name) in correctNamePair()
39 val assertion = assertion1() in correctNameTriple() constant
41 Assert.assertEquals(NAME, assertion.name) in correctNameTriple()
42 assertion.add({}, OTHER, optional = false) in correctNameTriple()
43 assertion.add({}, OTHER, optional = false) in correctNameTriple()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DBaseFlickerTest.kt31 protected abstract fun doProcess(assertion: AssertionData) in doProcess()
33 override fun assertWmStart(assertion: WindowManagerStateSubject.() -> Unit) { in doProcess()
35 val assertionData = assertionFactory.createWmStartAssertion(assertion) in doProcess()
40 override fun assertWmEnd(assertion: WindowManagerStateSubject.() -> Unit) { in assertWmEnd()
42 val assertionData = assertionFactory.createWmEndAssertion(assertion) in assertWmEnd()
47 override fun assertWm(assertion: WindowManagerTraceSubject.() -> Unit) { in assertWm()
49 val assertionData = assertionFactory.createWmAssertion(assertion) in assertWm()
54 override fun assertWmTag(tag: String, assertion: WindowManagerStateSubject.() -> Unit) { in assertWmTag()
56 val assertionData = assertionFactory.createWmTagAssertion(tag, assertion) in assertWmTag()
63 assertion: RegionTraceSubject.() -> Unit in assertWmVisibleRegion()
[all …]
DAssertionFactory.kt43 fun createWmStartAssertion(assertion: WindowManagerStateSubject.() -> Unit): AssertionData = in createWmStartAssertion()
45 wmAssertionFactory.createStartStateAssertion(assertion as FlickerSubject.() -> Unit) in createWmStartAssertion()
53 fun createWmEndAssertion(assertion: WindowManagerStateSubject.() -> Unit): AssertionData = in createWmEndAssertion()
55 wmAssertionFactory.createEndStateAssertion(assertion as FlickerSubject.() -> Unit) in createWmEndAssertion()
63 fun createWmAssertion(assertion: WindowManagerTraceSubject.() -> Unit): AssertionData = in createWmAssertion()
66 assertion as (FlickerTraceSubject<FlickerSubject>) -> Unit in createWmAssertion()
77 assertion: WindowManagerStateSubject.() -> Unit in createWmTagAssertion()
80 wmAssertionFactory.createTagAssertion(tag, assertion as FlickerSubject.() -> Unit) in createWmTagAssertion()
91 assertion: RegionTraceSubject.() -> Unit in createWmVisibleRegionAssertion()
99 assertion(regionTraceSubject) in createWmVisibleRegionAssertion()
[all …]
DAssertionStateDataFactory.kt34 fun createStartStateAssertion(assertion: FlickerSubject.() -> Unit) =
38 assertion = assertion
46 fun createEndStateAssertion(assertion: FlickerSubject.() -> Unit) =
47 AssertionDataImpl(tag = Tag.END, expectedSubjectClass = stateSubject, assertion = assertion)
54 fun createTagAssertion(tag: String, assertion: FlickerSubject.() -> Unit) =
55 AssertionDataImpl(tag = tag, expectedSubjectClass = stateSubject, assertion = assertion)
DFlickerTest.kt33 fun assertWmStart(assertion: WindowManagerStateSubject.() -> Unit)
40 fun assertWmEnd(assertion: WindowManagerStateSubject.() -> Unit)
47 fun assertWm(assertion: WindowManagerTraceSubject.() -> Unit)
54 fun assertWmTag(tag: String, assertion: WindowManagerStateSubject.() -> Unit)
58 assertion: RegionTraceSubject.() -> Unit
66 fun assertLayersStart(assertion: LayerTraceEntrySubject.() -> Unit)
73 fun assertLayersEnd(assertion: LayerTraceEntrySubject.() -> Unit)
80 fun assertLayers(assertion: LayersTraceSubject.() -> Unit)
87 fun assertLayersTag(tag: String, assertion: LayerTraceEntrySubject.() -> Unit)
102 assertion: RegionTraceSubject.() -> Unit
[all …]
DCompoundAssertion.kt20 class CompoundAssertion<T>(assertion: (T) -> Unit, name: String, optional: Boolean) : Assertion<T> { in <lambda>()
24 add(assertion, name, optional) in <lambda>()
41 assertions.mapNotNull { assertion -> in <lambda>() method
42 val error = kotlin.runCatching { assertion.invoke(target) }.exceptionOrNull() in <lambda>()
44 Pair(assertion, error) in <lambda>()
66 fun add(assertion: (T) -> Unit, name: String, optional: Boolean) { in <lambda>()
67 assertions.add(NamedAssertion(assertion, name, optional)) in <lambda>()
79 assertions.forEachIndexed { index, assertion -> in <lambda>() method
80 if (assertion != other.assertions[index]) { in <lambda>()
DAssertionsChecker.kt38 fun add(name: String, isOptional: Boolean = false, assertion: (T) -> Unit) { in <lambda>()
39 assertions.add(CompoundAssertion(assertion, name, isOptional)) in <lambda>()
43 fun append(name: String, isOptional: Boolean = false, assertion: (T) -> Unit) { in <lambda>()
44 assertions.last().add(assertion, name, isOptional) in <lambda>()
111 assertions.mapIndexed { idx, assertion -> in <lambda>() method
112 Fact("Assertion$idx", assertion.toString()) in <lambda>()
153 assertions.forEachIndexed { index, assertion -> in <lambda>() method
154 if (assertion != other.assertions[index]) { in <lambda>()
DReaderAssertionRunner.kt29 override fun runAssertion(assertion: AssertionData): Throwable? = in runAssertion()
31 resultReader.executionError ?: doRunAssertion(assertion) in runAssertion()
34 private fun doRunAssertion(assertion: AssertionData): Throwable? { in doRunAssertion()
37 assertion.checkAssertion(subjectsParser) in doRunAssertion()
DAssertionDataFactory.kt41 assertion: (FlickerTraceSubject<FlickerSubject>) -> Unit in createTraceAssertion()
45 assertion(this) in createTraceAssertion()
51 assertion = closedAssertion as FlickerSubject.() -> Unit in createTraceAssertion()
DServiceFlickerTest.kt22 override fun doProcess(assertion: AssertionData) { in doProcess()
23 assertions.add(assertion) in doProcess()
DAssertionDataImpl.kt29 val assertion: FlickerSubject.() -> Unit constant in android.tools.flicker.assertions.AssertionDataImpl
33 subject?.let { assertion(it) } in checkAssertion()
DBaseAssertionRunner.kt35 override fun runAssertion(assertion: AssertionData): Throwable? = in <lambda>()
36 innerRunner.runAssertion(assertion).also { updateResultStatus(it) } in <lambda>()
DAssertionRunner.kt20 fun runAssertion(assertion: AssertionData): Throwable?
/platform_testing/libraries/flicker/test/src/android/tools/flicker/config/
DFlickerConfigTest.kt51 val assertion = in canRegisterScenarioWithAssertions() constant
61 mapOf(assertion to AssertionInvocationGroup.BLOCKING) in canRegisterScenarioWithAssertions()
102 val assertion = in canUnregisterAssertion() constant
112 mapOf(assertion to AssertionInvocationGroup.BLOCKING) in canUnregisterAssertion()
114 registry.unregisterAssertion(SOME_SCENARIO, assertion.id) in canUnregisterAssertion()
134 val assertion = in canOverrideStabilityGroup() constant
144 mapOf(assertion to AssertionInvocationGroup.BLOCKING) in canOverrideStabilityGroup()
148 assertion.id, in canOverrideStabilityGroup()
225 val assertion = in throwsOnRegisteringAssertionToNotRegisteredScenario() constant
233 assertThrows<Throwable> { registry.registerAssertions(SOME_SCENARIO, assertion) } in throwsOnRegisteringAssertionToNotRegisteredScenario()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DAnonymousInjectedTestCase.kt26 val assertion: () -> Unit constant
29 assertion() in execute()
DFlickerServiceCachedTestCase.kt32 private val assertion: ScenarioAssertion, constant in android.tools.flicker.junit.FlickerServiceCachedTestCase
42 val result = assertion.execute() in execute()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/inputmethod/
DInputMethodServiceEntrySubject.kt45 assertion: (InputMethodServiceEntry) -> Unit in invoke()
46 ): InputMethodServiceEntrySubject = apply { assertion(this.entry) } in invoke()
DImeClientEntrySubject.kt44 operator fun invoke(assertion: (ImeClientEntry) -> Unit): ImeClientEntrySubject = apply { in <lambda>()
45 assertion(this.entry) in <lambda>()
DInputMethodManagerServiceEntrySubject.kt45 assertion: (InputMethodManagerServiceEntry) -> Unit in invoke()
46 ): InputMethodManagerServiceEntrySubject = apply { assertion(this.entry) } in invoke()
DInputMethodManagerServiceTraceSubject.kt65 assertion: (InputMethodManagerServiceEntrySubject) -> Unit in invoke()
66 ): InputMethodManagerServiceTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
DImeClientTraceSubject.kt60 assertion: (ImeClientEntrySubject) -> Unit in invoke()
61 ): ImeClientTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
DInputMethodServiceTraceSubject.kt60 assertion: (InputMethodServiceEntrySubject) -> Unit in invoke()
61 ): InputMethodServiceTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/
DWindowStateSubject.kt58 operator fun invoke(assertion: (WindowState) -> Unit): WindowStateSubject = apply { in <lambda>()
59 assertion(this.windowState) in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/
DFlickerTraceSubject.kt46 assertion: (EntrySubject) -> Unit in <lambda>()
49 assertionsChecker.add(name, isOptional, assertion) in <lambda>()
51 assertionsChecker.append(name, isOptional, assertion) in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/
DFlickerConfigImpl.kt61 assertions.forEach { assertion -> in <lambda>() method
62 require(entry.assertions.keys.none { it.id == assertion.id }) { in <lambda>()
71 entry.assertions.toMutableMap().apply { this[assertion] = stabilityGroup }, in <lambda>()

12