Home
last modified time | relevance | path

Searched refs:isEqualTo (Results 1 – 25 of 101) sorted by relevance

12345

/platform_testing/libraries/flicker/utils/test/src/android/tools/
DTimeUtilsTest.kt32 Truth.assertThat(Timestamp.formatElapsedTimestamp(0)).isEqualTo("0ns") in canFormatElapsedTime()
33 Truth.assertThat(Timestamp.formatElapsedTimestamp(1000)).isEqualTo("1000ns") in canFormatElapsedTime()
34 Truth.assertThat(Timestamp.formatElapsedTimestamp(MILLISECOND - 1)).isEqualTo("999999ns") in canFormatElapsedTime()
35 Truth.assertThat(Timestamp.formatElapsedTimestamp(MILLISECOND)).isEqualTo("1ms0ns") in canFormatElapsedTime()
36 Truth.assertThat(Timestamp.formatElapsedTimestamp(10 * MILLISECOND)).isEqualTo("10ms0ns") in canFormatElapsedTime()
38 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND - 1)).isEqualTo("999ms999999ns") in canFormatElapsedTime()
39 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND)).isEqualTo("1s0ms0ns") in canFormatElapsedTime()
41 .isEqualTo("1s1ms0ns") in canFormatElapsedTime()
43 Truth.assertThat(Timestamp.formatElapsedTimestamp(MINUTE - 1)).isEqualTo("59s999ms999999ns") in canFormatElapsedTime()
44 Truth.assertThat(Timestamp.formatElapsedTimestamp(MINUTE)).isEqualTo("1m0s0ms0ns") in canFormatElapsedTime()
[all …]
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/
DTimeSeriesSubjectTest.kt37 with(assertThrows { assertThat(TimeSeries(listOf(), emptyList())).isEqualTo("foo") }) { in <lambda>()
38 factValue("expected").isEqualTo("foo") in <lambda>()
39 factValue("but was").isEqualTo("TimeSeries(frameIds=[], features={})") in <lambda>()
47 assertThat(timeSeries).isEqualTo(timeSeries.copy()) in <lambda>()
56 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
58 factValue("| expected").isEqualTo("[0ms, 1ms]") in <lambda>()
59 factValue("| but got").isEqualTo("[0ms, x]") in <lambda>()
60 factValue("| unexpected (1)").isEqualTo("[x]") in <lambda>()
61 factValue("| missing (1)").isEqualTo("[1ms]") in <lambda>()
72 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>()
[all …]
/platform_testing/libraries/motion/tests/src/platform/test/motion/golden/
DDataPointTypesTest.kt31 assertThat(DataPointTypes.boolean.fromJson(true)).isEqualTo(true.asDataPoint()) in boolean_fromJson_native()
36 assertThat(DataPointTypes.boolean.fromJson("true")).isEqualTo(true.asDataPoint()) in boolean_fromJson_trueString()
41 assertThat(DataPointTypes.boolean.fromJson("false")).isEqualTo(false.asDataPoint()) in boolean_fromJson_falseString()
47 .isEqualTo(DataPoint.unknownType<Boolean>()) in boolean_fromJson_unknown()
52 assertThat(DataPointTypes.float.fromJson(1.5f)).isEqualTo(1.5f.asDataPoint()) in float_fromJson_native()
57 assertThat(DataPointTypes.float.fromJson(1.5)).isEqualTo(1.5f.asDataPoint()) in float_fromJson_number()
62 assertThat(DataPointTypes.float.fromJson("1.5")).isEqualTo(1.5f.asDataPoint()) in float_fromJson_floatString()
67 assertThat(DataPointTypes.float.fromJson("foo")).isEqualTo(DataPoint.unknownType<Float>()) in float_fromJson_unparseableString()
73 .isEqualTo(DataPoint.unknownType<Float>()) in float_fromJson_unknown()
78 assertThat(DataPointTypes.int.fromJson(1)).isEqualTo(1.asDataPoint()) in int_fromJson_native()
[all …]
DDataPointTypeTest.kt48 assertThat(subject.makeDataPoint(null)).isEqualTo(nullValue<Native>()) in <lambda>()
66 assertThat(dataPoint).isEqualTo(nullValue<Native>()) in <lambda>()
67 assertThat(jsonToValueInvocations).isEqualTo(0) in <lambda>()
74 assertThat(dataPoint).isEqualTo(notFound<Native>()) in <lambda>()
75 assertThat(jsonToValueInvocations).isEqualTo(0) in <lambda>()
84 assertThat(valueDataPoint.value).isEqualTo(Native("one")) in <lambda>()
86 assertThat(jsonToValueInvocations).isEqualTo(1) in <lambda>()
93 assertThat(json).isEqualTo("one") in <lambda>()
94 assertThat(valueToJsonInvocations).isEqualTo(1) in <lambda>()
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DSfStatsCollectionHelperTest.java158 .isEqualTo(Double.valueOf(1566336030)); in testCollect_valuesMatch()
165 .isEqualTo(Double.valueOf(1566338516)); in testCollect_valuesMatch()
172 .isEqualTo(Double.valueOf(5791)); in testCollect_valuesMatch()
179 .isEqualTo(Double.valueOf(82)); in testCollect_valuesMatch()
186 .isEqualTo(Double.valueOf(0)); in testCollect_valuesMatch()
193 .isEqualTo(Double.valueOf(2485421)); in testCollect_valuesMatch()
200 .isEqualTo(Double.valueOf(2674034)); in testCollect_valuesMatch()
207 .isEqualTo(Double.valueOf(5.5)); in testCollect_valuesMatch()
214 .isEqualTo(Double.valueOf(6.5)); in testCollect_valuesMatch()
221 .isEqualTo(Double.valueOf(5448)); in testCollect_valuesMatch()
[all …]
DJankCollectionHelperTest.java117 .isEqualTo(900.0); in testCollect_valuesMatch()
119 .isEqualTo(300.0); in testCollect_valuesMatch()
121 .isEqualTo(33.33); in testCollect_valuesMatch()
123 .isEqualTo(200.0); in testCollect_valuesMatch()
125 .isEqualTo(22.22); in testCollect_valuesMatch()
127 .isEqualTo(150.0); in testCollect_valuesMatch()
129 .isEqualTo(190.0); in testCollect_valuesMatch()
131 .isEqualTo(195.0); in testCollect_valuesMatch()
133 .isEqualTo(199.0); in testCollect_valuesMatch()
135 .isEqualTo(1.0); in testCollect_valuesMatch()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/perfetto/
DArgsTest.kt40 Truth.assertThat(args.getChild("int")?.getInt()).isEqualTo(10) in <lambda>()
41 Truth.assertThat(args.getChild("long")?.getLong()).isEqualTo(100L) in <lambda>()
42 Truth.assertThat(args.getChild("float")?.getFloat()).isEqualTo(10.1f) in <lambda>()
43 Truth.assertThat(args.getChild("string")?.getString()).isEqualTo("text") in <lambda>()
74 Truth.assertThat(values).isEqualTo(listOf(10, 11, 12)) in <lambda>()
94 Truth.assertThat(args.getChild("child0")?.getString()).isEqualTo("0") in <lambda>()
95 Truth.assertThat(args.getChild("child1")?.getString()).isEqualTo("1") in <lambda>()
97 Truth.assertThat(args.getChildren("children")!![0].getString()).isEqualTo("10") in <lambda>()
99 .isEqualTo(10) in <lambda>()
103 .isEqualTo("text") in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/
DWindowManagerTraceEntryBuilderTest.kt52 Truth.assertThat(entry.elapsedTimestamp).isEqualTo(100) in createsEntryWithCorrectClockTime()
53 Truth.assertThat(entry.clockTimestamp).isEqualTo(600) in createsEntryWithCorrectClockTime()
55 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in createsEntryWithCorrectClockTime()
57 .isEqualTo(Timestamps.empty().systemUptimeNanos) in createsEntryWithCorrectClockTime()
58 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in createsEntryWithCorrectClockTime()
75 Truth.assertThat(entry.elapsedTimestamp).isEqualTo(100) in supportsMissingRealToElapsedTimeOffsetNs()
76 Truth.assertThat(entry.clockTimestamp).isEqualTo(null) in supportsMissingRealToElapsedTimeOffsetNs()
78 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in supportsMissingRealToElapsedTimeOffsetNs()
80 .isEqualTo(Timestamps.empty().systemUptimeNanos) in supportsMissingRealToElapsedTimeOffsetNs()
81 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in supportsMissingRealToElapsedTimeOffsetNs()
DTransitionTest.kt68 Truth.assertThat(mergedTransition.createTime.elapsedNanos).isEqualTo(10) in canMergePartialTransitions()
69 Truth.assertThat(mergedTransition.sendTime.elapsedNanos).isEqualTo(20) in canMergePartialTransitions()
70 Truth.assertThat(mergedTransition.dispatchTime.elapsedNanos).isEqualTo(22) in canMergePartialTransitions()
71 Truth.assertThat(mergedTransition.finishTime.elapsedNanos).isEqualTo(40) in canMergePartialTransitions()
128 Truth.assertThat(mergedTransition.createTime.elapsedNanos).isEqualTo(100) in mergePartialTransitionsOverrideValues()
129 Truth.assertThat(mergedTransition.sendTime.elapsedNanos).isEqualTo(200) in mergePartialTransitionsOverrideValues()
130 Truth.assertThat(mergedTransition.abortTime?.elapsedNanos).isEqualTo(300) in mergePartialTransitionsOverrideValues()
131 Truth.assertThat(mergedTransition.finishTime.elapsedNanos).isEqualTo(400) in mergePartialTransitionsOverrideValues()
132 Truth.assertThat(mergedTransition.startTransactionId).isEqualTo(10) in mergePartialTransitionsOverrideValues()
133 Truth.assertThat(mergedTransition.finishTransactionId).isEqualTo(20) in mergePartialTransitionsOverrideValues()
[all …]
DTransitionsTraceTest.kt63 Truth.assertThat(compressedTrace.entries.size).isEqualTo(1) in canBeCompressed()
65 Truth.assertThat(compressedTrace.entries.first().createTime.elapsedNanos).isEqualTo(10) in canBeCompressed()
66 Truth.assertThat(compressedTrace.entries.first().sendTime.elapsedNanos).isEqualTo(20) in canBeCompressed()
67 Truth.assertThat(compressedTrace.entries.first().dispatchTime.elapsedNanos).isEqualTo(22) in canBeCompressed()
68 Truth.assertThat(compressedTrace.entries.first().finishTime.elapsedNanos).isEqualTo(40) in canBeCompressed()
DWindowManagerStateTest.kt60 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
61 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
84 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(100) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
85 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in usesRealTimestampWhenAvailableAndFallsbackOnElapsedTimestamp()
/platform_testing/libraries/collectors-helper/lyric/test/src/com/android/helpers/
DLyricMemProfilerHelperTest.java390 assertThat(metrics.get("nativeHeap")).isEqualTo(377584); in testProcessOutput()
391 assertThat(metrics.get("totalPss")).isEqualTo(550123); in testProcessOutput()
392 assertThat(metrics.get("dmabuf")).isEqualTo(1552); in testProcessOutput()
394 assertThat(metrics.get("CameraProviderNativeHeap")).isEqualTo(377584); in testProcessOutput()
395 assertThat(metrics.get("CameraProviderTotalPss")).isEqualTo(550123); in testProcessOutput()
396 assertThat(metrics.get("CameraProviderDmabuf")).isEqualTo(1552); in testProcessOutput()
398 assertThat(metrics.get("CameraServerNativeHeap")).isEqualTo(584); in testProcessOutput()
399 assertThat(metrics.get("CameraServerTotalPss")).isEqualTo(9630); in testProcessOutput()
400 assertThat(metrics.get("CameraServerDmabuf")).isEqualTo(104349); in testProcessOutput()
402 assertThat(metrics.get("CameraAppNativeHeap")).isEqualTo(94780); in testProcessOutput()
[all …]
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/report/
DScubaExportStrategyTest.kt65 .isEqualTo("test-id_actual_golden-id.png") in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
67 .isEqualTo("test-id_expected_golden-id.png") in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
69 .isEqualTo("test-id_diff_golden-id.png") in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
71 .isEqualTo("test-id_golden-id_goldResult.textproto") in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
73 .isEqualTo("test-id_golden-id_goldResult.pb") in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
82 .isEqualTo("test-id_actual_bar_golden-id.png") in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
84 .isEqualTo("test-id_expected_bar_golden-id.png") in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
86 .isEqualTo("test-id_diff_bar_golden-id.png") in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
88 .isEqualTo("test-id_bar_golden-id_goldResult.textproto") in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
90 .isEqualTo("test-id_bar_golden-id_goldResult.pb") in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/
DTraceTest.kt36 Truth.assertThat(trace.getEntryExactlyAt(Timestamps.from(1, 1, 1))).isEqualTo(entry1) in getEntryExactlyAtTest()
37 Truth.assertThat(trace.getEntryExactlyAt(Timestamps.from(5, 5, 5))).isEqualTo(entry2) in getEntryExactlyAtTest()
38 Truth.assertThat(trace.getEntryExactlyAt(Timestamps.from(25, 25, 25))).isEqualTo(entry3) in getEntryExactlyAtTest()
54 Truth.assertThat(trace.getEntryAt(Timestamps.from(2, 2, 2))).isEqualTo(entry1) in getEntryAtTest()
55 Truth.assertThat(trace.getEntryAt(Timestamps.from(5, 5, 5))).isEqualTo(entry2) in getEntryAtTest()
56 Truth.assertThat(trace.getEntryAt(Timestamps.from(25, 25, 25))).isEqualTo(entry3) in getEntryAtTest()
58 Truth.assertThat(trace.getEntryAt(Timestamps.from(4, 4, 4))).isEqualTo(entry1) in getEntryAtTest()
59 Truth.assertThat(trace.getEntryAt(Timestamps.from(6, 6, 6))).isEqualTo(entry2) in getEntryAtTest()
60 Truth.assertThat(trace.getEntryAt(Timestamps.from(100, 100, 100))).isEqualTo(entry3) in getEntryAtTest()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayerTest.kt40 assertThat(makeLayerWithDefaults(0x0).verboseFlags).isEqualTo("") in hasVerboseFlagsProperty()
42 assertThat(makeLayerWithDefaults(0x1).verboseFlags).isEqualTo("HIDDEN (0x1)") in hasVerboseFlagsProperty()
44 assertThat(makeLayerWithDefaults(0x2).verboseFlags).isEqualTo("OPAQUE (0x2)") in hasVerboseFlagsProperty()
46 assertThat(makeLayerWithDefaults(0x40).verboseFlags).isEqualTo("SKIP_SCREENSHOT (0x40)") in hasVerboseFlagsProperty()
48 assertThat(makeLayerWithDefaults(0x80).verboseFlags).isEqualTo("SECURE (0x80)") in hasVerboseFlagsProperty()
51 .isEqualTo("ENABLE_BACKPRESSURE (0x100)") in hasVerboseFlagsProperty()
54 .isEqualTo("DISPLAY_DECORATION (0x200)") in hasVerboseFlagsProperty()
57 .isEqualTo("IGNORE_DESTINATION_FRAME (0x400)") in hasVerboseFlagsProperty()
60 .isEqualTo("HIDDEN|OPAQUE|SKIP_SCREENSHOT|SECURE (0xc3)") in hasVerboseFlagsProperty()
DLayerTraceEntryBuilderTest.kt51 Truth.assertThat(entry.elapsedTimestamp).isEqualTo(100) in createsEntryWithCorrectClockTime()
52 Truth.assertThat(entry.clockTimestamp).isEqualTo(600) in createsEntryWithCorrectClockTime()
54 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(Timestamps.empty().elapsedNanos) in createsEntryWithCorrectClockTime()
55 Truth.assertThat(entry.timestamp.systemUptimeNanos).isEqualTo(100) in createsEntryWithCorrectClockTime()
56 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(600) in createsEntryWithCorrectClockTime()
68 Truth.assertThat(entry.elapsedTimestamp).isEqualTo(100) in supportsMissingRealToElapsedTimeOffsetNs()
69 Truth.assertThat(entry.clockTimestamp).isEqualTo(null) in supportsMissingRealToElapsedTimeOffsetNs()
71 Truth.assertThat(entry.timestamp.elapsedNanos).isEqualTo(Timestamps.empty().elapsedNanos) in supportsMissingRealToElapsedTimeOffsetNs()
72 Truth.assertThat(entry.timestamp.systemUptimeNanos).isEqualTo(100) in supportsMissingRealToElapsedTimeOffsetNs()
73 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in supportsMissingRealToElapsedTimeOffsetNs()
/platform_testing/libraries/collectors-helper/adservices/test/src/com/android/helpers/
DSelectAdsLatencyHelperTest.java96 assertThat(actual.get(LOG_LABEL_P50_5G)).isEqualTo(102); in testInitTimeInLogcat()
97 assertThat(actual.get(LOG_LABEL_P50_4GPLUS)).isEqualTo(1); in testInitTimeInLogcat()
98 assertThat(actual.get(LOG_LABEL_P50_4G)).isEqualTo(43); in testInitTimeInLogcat()
99 assertThat(actual.get(LOG_LABEL_P90_5G)).isEqualTo(23); in testInitTimeInLogcat()
100 assertThat(actual.get(LOG_LABEL_P90_4GPLUS)).isEqualTo(45); in testInitTimeInLogcat()
101 assertThat(actual.get(LOG_LABEL_P90_4G)).isEqualTo(1); in testInitTimeInLogcat()
102 assertThat(actual.get(LOG_LABEL_REAL_SERVER_P50)).isEqualTo(117); in testInitTimeInLogcat()
112 assertThat(actual.size()).isEqualTo(0); in testWithNonMatchingInput()
120 assertThat(actual.size()).isEqualTo(0); in testWithEmptyLogcat()
129 assertThat(val).isEqualTo(0); in testInputStreamThrowsException()
DJSScriptEngineLatencyHelperTest.java79 assertThat(actual.get(SANDBOX_INIT_TIME_AVG)).isEqualTo((102 + 45) / 2); in testInitTimeInLogcat()
80 assertThat(actual.get(ISOLATE_CREATE_TIME_AVG)).isEqualTo((1 + 1) / 2); in testInitTimeInLogcat()
81 assertThat(actual.get(JAVA_EXECUTION_TIME_AVG)).isEqualTo((43 + 19) / 2); in testInitTimeInLogcat()
82 assertThat(actual.get(WEBVIEW_EXECUTION_TIME_AVG)).isEqualTo((23 + 29) / 2); in testInitTimeInLogcat()
83 assertThat(actual.get(NUM_ITERATIONS)).isEqualTo(2); in testInitTimeInLogcat()
92 assertThat(val).isEqualTo(0); in testWithEmptyLogcat()
102 assertThat(val).isEqualTo(0); in testInputStreamThrowsException()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DTraceMonitorRuleTest.kt60 Truth.assertWithMessage("Start executed").that(startExecutionCount).isEqualTo(1) in executesSuccessfully()
61 Truth.assertWithMessage("Set result executed").that(setResultExecutionCount).isEqualTo(1) in executesSuccessfully()
68 Truth.assertWithMessage("Start executed").that(startExecutionCount).isEqualTo(2) in executesSuccessfullyMonitor2()
69 Truth.assertWithMessage("Set result executed").that(setResultExecutionCount).isEqualTo(2) in executesSuccessfullyMonitor2()
80 Truth.assertWithMessage("Start executed").that(startExecutionCount).isEqualTo(0) in executesWithStartFailure()
81 Truth.assertWithMessage("Set result executed").that(setResultExecutionCount).isEqualTo(1) in executesWithStartFailure()
92 Truth.assertWithMessage("Start executed").that(startExecutionCount).isEqualTo(0) in executesStartFailureMonitor2()
93 Truth.assertWithMessage("Set result executed").that(setResultExecutionCount).isEqualTo(2) in executesStartFailureMonitor2()
104 Truth.assertWithMessage("Start executed").that(startExecutionCount).isEqualTo(1) in executesWithStopFailure()
105 Truth.assertWithMessage("Set result executed").that(setResultExecutionCount).isEqualTo(0) in executesWithStopFailure()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/events/
DCujTraceTest.kt46 Truth.assertThat(trace.entries.first().cuj).isEqualTo(CujType.CUJ_LAUNCHER_ALL_APPS_SCROLL) in canCreateFromListOfCujEvents()
47 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canCreateFromListOfCujEvents()
48 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canCreateFromListOfCujEvents()
72 Truth.assertThat(trace.entries.first().cuj).isEqualTo(CujType.CUJ_LAUNCHER_ALL_APPS_SCROLL) in canCreateFromListOfCujEventsWithTags()
73 Truth.assertThat(trace.entries.first().tag).isEqualTo("MySubType") in canCreateFromListOfCujEventsWithTags()
74 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canCreateFromListOfCujEventsWithTags()
75 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canCreateFromListOfCujEventsWithTags()
98 Truth.assertThat(trace.entries.first().cuj).isEqualTo(CujType.CUJ_LAUNCHER_ALL_APPS_SCROLL) in canCreateCanceledCujsFromListOfCujEvents()
99 Truth.assertThat(trace.entries.first().startTimestamp.unixNanos).isEqualTo(1) in canCreateCanceledCujsFromListOfCujEvents()
100 Truth.assertThat(trace.entries.first().endTimestamp.unixNanos).isEqualTo(2) in canCreateCanceledCujsFromListOfCujEvents()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DArtifactAssertionRunnerTest.kt62 Truth.assertWithMessage("Executed").that(executionCount).isEqualTo(2) in executes()
65 .isEqualTo(RunStatus.ASSERTION_SUCCESS) in executes()
77 Truth.assertWithMessage("Executed").that(executionCount).isEqualTo(2) in executesFailure()
80 .isEqualTo(RunStatus.ASSERTION_FAILED) in executesFailure()
87 .isEqualTo(lastAssertionResult?.message) in executesFailure()
96 Truth.assertWithMessage("Executed").that(executionCount).isEqualTo(2) in updatesRunStatusFailureFirst()
101 .isEqualTo(RunStatus.ASSERTION_FAILED) in updatesRunStatusFailureFirst()
110 Truth.assertWithMessage("Executed").that(executionCount).isEqualTo(2) in updatesRunStatusFailureLast()
115 .isEqualTo(RunStatus.ASSERTION_FAILED) in updatesRunStatusFailureLast()
/platform_testing/libraries/motion/src/platform/test/motion/testing/
DJsonSubject.kt36 override fun isEqualTo(expected: Any?) { in <lambda>() method
40 .isEqualTo(expected.toString(PRETTY_PRINT_INDENT)) in <lambda>()
44 .isEqualTo(expected.toString(PRETTY_PRINT_INDENT)) in <lambda>()
46 super.isEqualTo(expected) in <lambda>()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DDataPointTypesTest.kt41 assertThat(dp.fromJson(1)).isEqualTo(1.dp.asDataPoint()) in dp_jsonConversion()
42 assertThat(1.dp.asDataPoint().asJson()).isEqualTo(1) in dp_jsonConversion()
71 assertThat(offset.fromJson("unspecified")).isEqualTo(Offset.Unspecified.asDataPoint()) in offset_jsonConversion()
72 assertThat(Offset.Unspecified.asDataPoint().asJson()).isEqualTo("unspecified") in offset_jsonConversion()
74 assertThat(offset.fromJson("infinite")).isEqualTo(Offset.Infinite.asDataPoint()) in offset_jsonConversion()
75 assertThat(Offset.Infinite.asDataPoint().asJson()).isEqualTo("infinite") in offset_jsonConversion()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DDeviceEmulationRuleTest.kt68 assertThat(metrics.densityDpi).isEqualTo(90) in <lambda>()
69 assertThat(metrics.widthPixels).isEqualTo(500) in <lambda>()
70 assertThat(metrics.heightPixels).isEqualTo(400) in <lambda>()
74 .isEqualTo(!isSystemUsingDarkTheme) in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/wm/
DWindowManagerTraceParserTest.kt44 Truth.assertThat(firstEntry.timestamp.elapsedNanos).isEqualTo(9213763541297L) in canParseAllEntriesFromStoredTrace()
45 Truth.assertThat(firstEntry.windowStates.size).isEqualTo(10) in canParseAllEntriesFromStoredTrace()
46 Truth.assertThat(firstEntry.visibleWindows.size).isEqualTo(5) in canParseAllEntriesFromStoredTrace()
47 Truth.assertThat(trace.entries.last().timestamp.elapsedNanos).isEqualTo(9216093628925L) in canParseAllEntriesFromStoredTrace()

12345