Home
last modified time | relevance | path

Searched refs:recordedMotion (Results 1 – 4 of 4) sorted by relevance

/platform_testing/libraries/motion/src/platform/test/motion/truth/
DRecordedMotionSubject.kt52 val recordedMotion = checkNotNull(actual) in timeSeriesMatchesGolden() constant
54 val goldenIdentifier = getGoldenIdentifier(recordedMotion, goldenName) in timeSeriesMatchesGolden()
55 val actualTimeSeries = recordedMotion.timeSeries in timeSeriesMatchesGolden()
80 motionTestRule.writeGeneratedTimeSeries(goldenIdentifier, recordedMotion, result) in timeSeriesMatchesGolden()
98 val recordedMotion = checkNotNull(actual) in filmstripMatchesGolden() constant
105 checkNotNull(recordedMotion.filmstrip) { in filmstripMatchesGolden()
109 val goldenIdentifier = getGoldenIdentifier(recordedMotion, goldenName) in filmstripMatchesGolden()
114 private fun getGoldenIdentifier(recordedMotion: RecordedMotion, goldenName: String?): String =
115 goldenName ?: recordedMotion.testMethodName
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/
DRecordedMotionSubjectTest.kt65 val recordedMotion = fakeRecordedMotion() in <lambda>() constant
72 assertThrows { motionRule.assertThat(recordedMotion).timeSeriesMatchesGolden("foo") } in <lambda>()
80 recordedMotion, in <lambda>()
87 val recordedMotion = fakeRecordedMotion() in <lambda>() constant
89 doReturn(recordedMotion.timeSeries) in <lambda>()
93 motionRule.assertThat(recordedMotion).timeSeriesMatchesGolden("foo") in <lambda>()
96 .writeGeneratedTimeSeries("foo", recordedMotion, TimeSeriesVerificationResult.PASSED) in <lambda>()
101 val recordedMotion = fakeRecordedMotion() in <lambda>() constant
107 assertThrows { motionRule.assertThat(recordedMotion).timeSeriesMatchesGolden("foo") } in <lambda>()
114 .writeGeneratedTimeSeries("foo", recordedMotion, TimeSeriesVerificationResult.FAILED) in <lambda>()
[all …]
/platform_testing/libraries/motion/src/platform/test/motion/
DMotionTestRule.kt94 fun assertThat(recordedMotion: RecordedMotion): RecordedMotionSubject = in <lambda>()
95 assertAbout(motion()).that(recordedMotion) in <lambda>()
126 recordedMotion: RecordedMotion, in <lambda>()
135 deviceLocalPath.resolve(recordedMotion.testClassName).resolve(relativeGoldenPath) in <lambda>()
147 metadata.put("filmstripTestIdentifier", debugFilmstripTestIdentifier(recordedMotion)) in <lambda>()
151 recordedMotion.videoRenderer?.let { videoRenderer -> in <lambda>()
165 val jsonObject = JsonGoldenSerializer.toJson(recordedMotion.timeSeries) in <lambda>()
187 recordedMotion: RecordedMotion, in <lambda>()
/platform_testing/libraries/motion/tests/src/platform/test/motion/view/
DViewToolkitTest.kt64 val recordedMotion = in <lambda>() constant
72 motionRule.assertThat(recordedMotion).timeSeriesMatchesGolden("timeseries_simple_scene_box") in <lambda>()
80 val recordedMotion = in <lambda>() constant
88 motionRule.assertThat(recordedMotion).timeSeriesMatchesGolden("timeseries_simple_scene_box") in <lambda>()
97 val recordedMotion = motionRule.record(animator, sceneRoot.capture(evenlySampled(10)) {}) in <lambda>() constant
99 motionRule.assertThat(recordedMotion).filmstripMatchesGolden() in <lambda>()