/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/ |
D | CompoundAssertionTest.kt | 25 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/ |
D | BaseFlickerTest.kt | 31 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 …]
|
D | AssertionFactory.kt | 43 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 …]
|
D | AssertionStateDataFactory.kt | 34 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)
|
D | FlickerTest.kt | 33 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 …]
|
D | CompoundAssertion.kt | 20 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>()
|
D | AssertionsChecker.kt | 38 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>()
|
D | ReaderAssertionRunner.kt | 29 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()
|
D | AssertionDataFactory.kt | 41 assertion: (FlickerTraceSubject<FlickerSubject>) -> Unit in createTraceAssertion() 45 assertion(this) in createTraceAssertion() 51 assertion = closedAssertion as FlickerSubject.() -> Unit in createTraceAssertion()
|
D | ServiceFlickerTest.kt | 22 override fun doProcess(assertion: AssertionData) { in doProcess() 23 assertions.add(assertion) in doProcess()
|
D | AssertionDataImpl.kt | 29 val assertion: FlickerSubject.() -> Unit constant in android.tools.flicker.assertions.AssertionDataImpl 33 subject?.let { assertion(it) } in checkAssertion()
|
D | BaseAssertionRunner.kt | 35 override fun runAssertion(assertion: AssertionData): Throwable? = in <lambda>() 36 innerRunner.runAssertion(assertion).also { updateResultStatus(it) } in <lambda>()
|
D | AssertionRunner.kt | 20 fun runAssertion(assertion: AssertionData): Throwable?
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/config/ |
D | FlickerConfigTest.kt | 51 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/ |
D | AnonymousInjectedTestCase.kt | 26 val assertion: () -> Unit constant 29 assertion() in execute()
|
D | FlickerServiceCachedTestCase.kt | 32 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/ |
D | InputMethodServiceEntrySubject.kt | 45 assertion: (InputMethodServiceEntry) -> Unit in invoke() 46 ): InputMethodServiceEntrySubject = apply { assertion(this.entry) } in invoke()
|
D | ImeClientEntrySubject.kt | 44 operator fun invoke(assertion: (ImeClientEntry) -> Unit): ImeClientEntrySubject = apply { in <lambda>() 45 assertion(this.entry) in <lambda>()
|
D | InputMethodManagerServiceEntrySubject.kt | 45 assertion: (InputMethodManagerServiceEntry) -> Unit in invoke() 46 ): InputMethodManagerServiceEntrySubject = apply { assertion(this.entry) } in invoke()
|
D | InputMethodManagerServiceTraceSubject.kt | 65 assertion: (InputMethodManagerServiceEntrySubject) -> Unit in invoke() 66 ): InputMethodManagerServiceTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
|
D | ImeClientTraceSubject.kt | 60 assertion: (ImeClientEntrySubject) -> Unit in invoke() 61 ): ImeClientTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
|
D | InputMethodServiceTraceSubject.kt | 60 assertion: (InputMethodServiceEntrySubject) -> Unit in invoke() 61 ): InputMethodServiceTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/ |
D | WindowStateSubject.kt | 58 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/ |
D | FlickerTraceSubject.kt | 46 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/ |
D | FlickerConfigImpl.kt | 61 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>()
|