/platform_testing/libraries/motion/tests/src/platform/test/motion/golden/ |
D | JsonGoldenSerializerTest.kt | 52 assertConversions(TimeSeries(listOf(), listOf()), """{"frame_ids":[],"features":[]}""") in emptyTimeSeries() 58 TimeSeries(listOf(TimestampFrameId(33)), listOf()), in timestampFrameId_asNumber() 66 TimeSeries(listOf(SupplementalFrameId("foo")), listOf()), in supplementalFrameId_asString() 74 TimeSeries(listOf(), listOf(Feature<Int>("foo", emptyList()))), in feature_withoutDataPoint_noType() 83 listOf(TimestampFrameId(1)), in feature_withSingleDataPoint_specifiesType() 84 listOf(Feature("foo", listOf(42.asDataPoint()))) in feature_withSingleDataPoint_specifiesType() 94 listOf(TimestampFrameId(1), TimestampFrameId(2)), in feature_withMultipleDataPoints_specifiesType() 95 listOf(Feature("foo", listOf(42.asDataPoint(), 43.asDataPoint()))) in feature_withMultipleDataPoints_specifiesType() 106 listOf(TimestampFrameId(1), TimestampFrameId(2)), in feature_withNullDataPoints_specifiesTypeAndHandlesNull() 107 listOf(Feature("foo", listOf(nullValue(), 43.asDataPoint()))) in feature_withNullDataPoints_specifiesTypeAndHandlesNull() [all …]
|
D | TimeSeriesTest.kt | 30 val frameIds = listOf(TimestampFrameId(0)) in moreDataPointsThanFrames_throws() 32 listOf(Feature("foo", dataPoints = listOf(1.asDataPoint(), 2.asDataPoint()))) in moreDataPointsThanFrames_throws() 39 val frameIds = listOf(TimestampFrameId(0), TimestampFrameId(1)) in lessDataPointsThanFrames_throws() 40 val properties = listOf(Feature("foo", dataPoints = listOf(1.asDataPoint()))) in lessDataPointsThanFrames_throws()
|
D | DataPointTypesTest.kt | 115 assertThat(DataPointTypes.listOf(DataPointTypes.int)) in listOf_fromToJson_ofInt() 116 .convertsJsonArray(listOf(1, 2, 3), """[1,2,3]""") in listOf_fromToJson_ofInt() 121 assertThat(DataPointTypes.listOf(DataPointTypes.int)).convertsJsonArray(listOf(), """[]""") in listOf_fromToJson_ofEmptyList() 126 assertThat(DataPointTypes.listOf(something)) in listOf_fromToJson_ofObject() 128 listOf(Something("foo"), Something("bar")), in listOf_fromToJson_ofObject() 135 assertThat(DataPointTypes.listOf(DataPointTypes.int).fromJson("""[1, "foo"]""")) in listOf_fromToJson_withWronglyTypedElement_returnsUnknown() 141 assertThat(DataPointTypes.listOf(DataPointTypes.int).fromJson("""[1, null]""")) in listOf_fromToJson_withNullElement_returnsUnknown() 147 assertThat(DataPointTypes.listOf(something).typeName).isEqualTo("something[]") in listOf_typeName_containsArrayIndicator()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/ |
D | TransitionTest.kt | 88 changes = listOf(), in mergePartialTransitionsOverrideValues() 113 changes = listOf(), in mergePartialTransitionsOverrideValues() 157 listOf( in getStartTransaction_directMatch() 168 listOf( in getStartTransaction_directMatch() 196 listOf( in getStartTransaction_noMatch() 207 listOf( in getStartTransaction_noMatch() 235 listOf( in getStartTransaction_indirectMatch() 242 mergedTransactionIds = listOf(transactionId) in getStartTransaction_indirectMatch() 246 listOf( in getStartTransaction_indirectMatch() 274 listOf( in getFinishTransaction_directMatch() [all …]
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/ |
D | TransitionRunnerTest.kt | 77 setup = listOf(runSetup), in runsTransition() 78 teardown = listOf(runTeardown), in runsTransition() 79 transitions = listOf(runTransition), in runsTransition() 99 setup = listOf(runSetup), in failsWithNoTransitions() 100 teardown = listOf(runTeardown), in failsWithNoTransitions() 119 setup = listOf(runSetup), in failsWithTransitionError() 120 teardown = listOf(runTeardown), in failsWithTransitionError() 121 transitions = listOf(throwError), in failsWithTransitionError() 140 setup = listOf(runSetup, throwError), in failsWithSetupErrorAndHasTraces() 141 teardown = listOf(runTeardown), in failsWithSetupErrorAndHasTraces() [all …]
|
D | SetupTeardownRuleTest.kt | 54 val rule = createRule(listOf(runSetup), listOf(runTeardown)) in executesSetupTeardown() 64 val rule = createRule(listOf(throwError, runSetup), listOf(runTeardown)) in throwsSetupFailureAndExecutesTeardown() 76 val rule = createRule(listOf(runSetup), listOf(throwError, runTeardown)) in throwsTeardownFailure()
|
D | TransitionExecutionRuleTest.kt | 73 val rule = createRule(listOf(runTransition)) in runSuccessfully() 81 val rule = createRule(listOf(runTransition), writer) in setTransitionStartAndEndTime() 91 val rule = createRule(listOf(throwTransitionError)) in throwsTransitionFailure() 102 val rule = createRule(listOf()) in throwsTransitionFailureEmptyTransitions() 113 val rule = createRule(listOf(throwAssertionError)) in throwsAssertionFailure() 123 val rule = createRule(listOf(runCreateValidTags), writer) in createsValidTags() 156 val rule = createRule(listOf(runInvalidTagSpace), writer) in throwErrorCreateInvalidTagWithSpace() 167 val rule = createRule(listOf(runCreateValidTags, runCreateValidTags), writer) in throwErrorCreateInvalidTagDuplicate() 178 val rule = createRule(listOf(runInvalidTagUnderscore), writer) in throwErrorCreateInvalidTagWithUnderscore() 197 Mockito.`when`(mockedFlicker.traceMonitors).thenReturn(listOf(mockedMonitor)) in createRule()
|
D | TraceMonitorRuleTest.kt | 58 val rule = createRule(listOf(monitorWithoutException)) in executesSuccessfully() 66 val rule = createRule(listOf(monitorWithoutException, monitorWithoutException)) in executesSuccessfullyMonitor2() 76 val rule = createRule(listOf(monitorWithExceptionStart)) in executesWithStartFailure() 88 val rule = createRule(listOf(monitorWithExceptionStart, monitorWithoutException)) in executesStartFailureMonitor2() 100 val rule = createRule(listOf(monitorWithExceptionStop)) in executesWithStopFailure() 112 val rule = createRule(listOf(monitorWithExceptionStop, monitorWithoutException)) in executesStopFailureMonitor2()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/ |
D | LegacyFlickerDecoratorTest.kt | 53 listOf(TestUtils.VALID_ARGS_EMPTY) in <lambda>() 60 Mockito.`when`(inner.getTestMethods(test)).thenReturn(listOf(mockMethod)) in <lambda>() 72 listOf(TestUtils.VALID_ARGS_EMPTY) in <lambda>() 83 .thenReturn(listOf()) in <lambda>() 108 listOf(TestUtils.VALID_ARGS_EMPTY) in <lambda>() 119 .thenReturn(listOf(method)) in <lambda>() 147 listOf("One object should be annotated with @FlickerBuilderProvider") in <lambda>() 156 listOf("Only one object should be annotated with @FlickerBuilderProvider") in <lambda>() 164 expectedExceptions = listOf("Method myMethod() should not be static") in <lambda>() 173 listOf( in <lambda>() [all …]
|
D | FlickerServiceCachedTestCaseTest.kt | 52 listOf<AssertionData>( in reportsPassingResultMetric() 66 .thenReturn(listOf(mockScenarioAssertion)) in reportsPassingResultMetric() 68 .thenReturn(listOf(mockScenarioInstance)) in reportsPassingResultMetric() 106 listOf<AssertionData>( in reportsFailingResultMetric() 115 listOf<FlickerAssertionError>(SimpleFlickerAssertionError("EXPECTED")) in reportsFailingResultMetric() 121 .thenReturn(listOf(mockScenarioAssertion)) in reportsFailingResultMetric() 123 .thenReturn(listOf(mockScenarioInstance)) in reportsFailingResultMetric() 163 listOf<AssertionData>( in skippedIfNonBlocking() 173 listOf<FlickerAssertionError>(SimpleFlickerAssertionError("EXPECTED")) in skippedIfNonBlocking() 179 .thenReturn(listOf(mockScenarioAssertion)) in skippedIfNonBlocking() [all …]
|
D | FlickerServiceDecoratorTest.kt | 59 .thenReturn(listOf(method)) in sendsInstrumentationUpdatesOWhenComputingTestMethods() 61 .thenReturn(listOf(flickerConfigProviderMethods)) in sendsInstrumentationUpdatesOWhenComputingTestMethods() 66 .thenReturn(listOf(method)) in sendsInstrumentationUpdatesOWhenComputingTestMethods() 123 .thenReturn(listOf(method)) in failsTestAndNotModuleOnFlickerServiceMethodComputeError() 125 .thenReturn(listOf(flickerConfigProviderMethods)) in failsTestAndNotModuleOnFlickerServiceMethodComputeError() 130 .thenReturn(listOf(method)) in failsTestAndNotModuleOnFlickerServiceMethodComputeError() 172 .thenReturn(listOf(method)) in handleDuplicateFlickerMethods() 174 .thenReturn(listOf(flickerConfigProviderMethods)) in handleDuplicateFlickerMethods() 179 .thenReturn(listOf(method)) in handleDuplicateFlickerMethods() 226 .thenReturn(listOf(mockScenarioInstance1, mockScenarioInstance2)) in handleDuplicateFlickerMethods()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/ |
D | IComponentMatcher.kt | 25 return OrComponentMatcher(listOf(this, other)) in or() 32 fun windowMatchesAnyOf(window: WindowContainer): Boolean = windowMatchesAnyOf(listOf(window)) in windowMatchesAnyOf() 44 fun activityMatchesAnyOf(activity: Activity): Boolean = activityMatchesAnyOf(listOf(activity)) in windowMatchesAnyOf() 56 fun layerMatchesAnyOf(layer: Layer): Boolean = layerMatchesAnyOf(listOf(layer)) in windowMatchesAnyOf()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/config/ |
D | AssertionTemplates.kt | 72 listOf( 81 listOf( 90 listOf( 103 listOf( 112 listOf(ComponentNameMatcher.NAV_BAR) 119 listOf( 127 listOf(FocusChanges(toComponent = OPENING_APPS), ScreenLockedAtStart()) 132 listOf( 147 listOf( 161 listOf( [all …]
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/filmstrip/ |
D | FilmstripTest.kt | 54 Filmstrip(listOf(MotionScreenshot(TimestampFrameId(10), mockScreenshot(Color.RED)))) in horizontalSingleFrame() 62 Filmstrip(listOf(MotionScreenshot(TimestampFrameId(10), mockScreenshot(Color.RED)))) in verticalSingleFrame() 73 listOf( in horizontalFilmstrip() 90 listOf( in horizontalFilmstrip_labelsWiderThanScreenshot() 109 listOf( in horizontalFilmstrip_variableSize_tileMatchesLargestDimensions() 126 listOf( in verticalFilmstrip() 143 listOf( in verticalFilmstrip_labelsTallerThanScreenshot() 156 listOf( in verticalFilmstrip_variableSize_tileMatchesLargestDimensions() 173 listOf( in automaticOrientation_tallScreenshots_filmstripIsHorizontal() 194 listOf( in automaticOrientation_wideScreenshots_filmstripIsVertical() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/ |
D | LegacyFlickerTestFactory.kt | 38 supportedRotations: List<Rotation> = listOf(Rotation.ROTATION_0, Rotation.ROTATION_90), in <lambda>() 39 supportedNavigationModes: List<NavBar> = listOf(NavBar.MODE_3BUTTON, NavBar.MODE_GESTURAL), in <lambda>() 57 supportedRotations: List<Rotation> = listOf(Rotation.ROTATION_0, Rotation.ROTATION_90), in <lambda>() 58 supportedNavigationModes: List<NavBar> = listOf(NavBar.MODE_3BUTTON, NavBar.MODE_GESTURAL), in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/monitors/view/ |
D | ViewTraceMonitorTest.kt | 50 var possibleExpectedTraces = listOf(EXPECTED_TRACES_LAUNCHER_ONLY) in captureTrace() 53 listOf(EXPECTED_TRACES_LAUNCHER_FIRST, EXPECTED_TRACES_SYSUI_FIRST) in captureTrace() 98 listOf("${getLauncherPackageName()}_0.vc__view_capture_trace.winscope") 100 listOf( 106 listOf(
|
/platform_testing/libraries/flicker/test/src/android/tools/integration/ |
D | FlickerServiceTracesCollectorTest.kt | 88 var possibleExpectedTraces = listOf(EXPECTED_TRACES_LAUNCHER_ONLY) in reportedTraceFileContainsAllTraces() 91 listOf(EXPECTED_TRACES_LAUNCHER_FIRST, EXPECTED_TRACES_SYSUI_FIRST) in reportedTraceFileContainsAllTraces() 119 listOf( 127 listOf( 140 listOf( 149 listOf( 163 listOf( 172 listOf(
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/ |
D | TimeSeriesSubjectTest.kt | 37 with(assertThrows { assertThat(TimeSeries(listOf(), emptyList())).isEqualTo("foo") }) { in <lambda>() 54 expected.copy(frameIds = listOf(expected.frameIds[0], SupplementalFrameId("x"))) in <lambda>() 142 listOf(Feature("foo", listOf(1.asDataPoint(), 2.asDataPoint()))) in <lambda>() 147 listOf(Feature("foo", listOf(1.asDataPoint(), 3.asDataPoint()))) in <lambda>() 168 listOf(createIntFeature("foo", frameCount), createStringFeature("bar", frameCount)) in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/perfetto/ |
D | ArgsTest.kt | 31 listOf( in <lambda>() 50 val args = makeArgs(listOf(Pair("child.grandChild0", 10), Pair("child.grandChild1", 11))) in <lambda>() 64 listOf( in <lambda>() 74 Truth.assertThat(values).isEqualTo(listOf(10, 11, 12)) in <lambda>() 81 listOf( in <lambda>()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/ |
D | FlickerServiceTest.kt | 53 Mockito.`when`(mockFlickerConfig.getEntries()).thenReturn(listOf(mockConfigEntry)) in generatesAssertionsFromExtractedScenarios() 54 Mockito.`when`(mockScenarioExtractor.extract(reader)).thenReturn(listOf(traceSlice)) in generatesAssertionsFromExtractedScenarios() 77 Mockito.`when`(mockFlickerConfig.getEntries()).thenReturn(listOf(mockConfigEntry)) in executesAssertionsReturnedByAssertionFactories() 78 Mockito.`when`(mockScenarioExtractor.extract(reader)).thenReturn(listOf(traceSlice)) in executesAssertionsReturnedByAssertionFactories()
|
D | FlickerServiceRuleTest.kt | 116 .thenReturn(listOf(mockFailureAssertionResult(assertionError))) in doesNotThrowExceptionForFlickerTestFailureIfRequested() 136 .thenReturn(listOf(mockFailureAssertionResult(assertionError))) in throwsExceptionForFlickerTestFailureIfRequested() 164 .thenReturn(listOf(executionError)) in neverThrowsExceptionForExecutionErrors() 184 .thenReturn(listOf(executionError)) in throwsExceptionForExecutionErrorsIfRequested() 211 .thenReturn(listOf(executionError)) in canBeDisabled() 235 .thenReturn(listOf(mockFailureAssertionResult(assertionError))) in assertionFailuresNotReportedIfUnderlyingTestFailed() 266 listOf<AssertionData>( in mockFailureAssertionResult() 274 override val assertionErrors = listOf(error) in mockFailureAssertionResult()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/ |
D | LayerTraceEntrySubjectTest.kt | 182 listOf( in orComponentMatcher_visibility_oneVisibleOtherInvisible() 196 listOf(ComponentNameMatcher(app1Name), ComponentNameMatcher(app2Name)) in orComponentMatcher_visibility_oneVisibleOtherInvisible() 215 listOf( in orComponentMatcher_visibility_oneVisibleOtherMissing() 226 listOf(ComponentNameMatcher(app1Name), ComponentNameMatcher(app2Name)) in orComponentMatcher_visibility_oneVisibleOtherMissing() 245 listOf( in canUseOrComponentMatcher_visibility_allVisible() 261 listOf(ComponentNameMatcher(app1Name), ComponentNameMatcher(app2Name)) in canUseOrComponentMatcher_visibility_allVisible() 280 listOf( in canUseOrComponentMatcher_contains_withOneExists() 291 listOf(ComponentNameMatcher(app1Name), ComponentNameMatcher(app2Name)) in canUseOrComponentMatcher_contains_withOneExists() 307 val layerTraceEntry = MockLayerTraceEntryBuilder().addDisplay(rootLayers = listOf()).build() in canUseOrComponentMatcher_contains_withNoneExists() 312 listOf(ComponentNameMatcher(app1Name), ComponentNameMatcher(app2Name)) in canUseOrComponentMatcher_contains_withNoneExists() [all …]
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/events/ |
D | CujTraceTest.kt | 31 listOf( in canCreateFromListOfCujEvents() 56 listOf( in canCreateFromListOfCujEventsWithTags() 83 listOf( in canCreateCanceledCujsFromListOfCujEvents() 108 listOf( in canHandleIncompleteCujs() 134 listOf( in canHandleOutOfOrderEntries() 159 listOf( in canHandleMissingStartAndEnds()
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/ |
D | PixelPerfectMatcherTest.kt | 61 regions = listOf(Rect(-10, -10, 0, 0)) in performDiff_sameSize_partialCompare_topLeftOutOfBoundaries_diff() 79 regions = listOf(Rect(0, 0, first.width / 2, first.height / 2)) in performDiff_sameSize_partialCompare_topLeft_diffBoundaries() 97 regions = listOf(Rect(first.width / 2, first.height / 2, first.width, first.height)) in performDiff_sameSize_partialCompare_bottomRight() 116 listOf( in performDiff_sameSize_partialCompare_bottomRightOutOfBoundaries_diff() 153 listOf(Rect(/* left= */ 1, /* top= */ 1, /* right= */ 4, /* bottom= */ 4)) in performDiff_sameSize_differentBorders_partialCompare() 172 listOf(interestingRegion) in performDiff_sameSize_partialCompare_checkDiffImage()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/ |
D | MotionTestRuleTest.kt | 48 TimeSeries(listOf(), emptyList()), 55 .isEqualTo(TimeSeries(listOf(), emptyList())) in readGoldenTimeSeries_withExistingGolden_returnsParsedJson() 143 listOf(TimestampFrameId(0), TimestampFrameId(16), SupplementalFrameId("after")), in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() 144 listOf() in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() 146 listOf( in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata()
|