Home
last modified time | relevance | path

Searched refs:assertThat (Results 1 – 25 of 121) sorted by relevance

12345

/platform_testing/libraries/collectors-helper/lyric/test/src/com/android/helpers/
DLyricMemProfilerHelperTest.java19 import static com.google.common.truth.Truth.assertThat;
215 assertThat(providerMemInfoString).isEmpty(); in testParsePid()
216 assertThat(dmabufDumpString).isEmpty(); in testParsePid()
229 assertThat(metrics).containsKey("nativeHeap"); in testParsePid()
230 assertThat(metrics).containsKey("totalPss"); in testParsePid()
231 assertThat(metrics).containsKey("dmabuf"); in testParsePid()
233 assertThat(metrics).containsKey("CameraProviderNativeHeap"); in testParsePid()
234 assertThat(metrics).containsKey("CameraProviderTotalPss"); in testParsePid()
235 assertThat(metrics).containsKey("CameraProviderDmabuf"); in testParsePid()
237 assertThat(metrics).containsKey("CameraServerNativeHeap"); in testParsePid()
[all …]
DLyricCpuUtilizationHelperTest.java19 import static com.google.common.truth.Truth.assertThat;
62 assertThat(metrics.get(String.format(METRIC_KEY, node, "number_of_invocations"))) in testProcessOutput()
65 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time"))) in testProcessOutput()
68 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time"))) in testProcessOutput()
71 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time_max"))) in testProcessOutput()
74 assertThat(metrics.get(String.format(METRIC_KEY, node, "user_time_min"))) in testProcessOutput()
77 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time"))) in testProcessOutput()
80 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time_max"))) in testProcessOutput()
83 assertThat(metrics.get(String.format(METRIC_KEY, node, "system_time_min"))) in testProcessOutput()
86 assertThat(metrics.get(String.format(METRIC_KEY, node, "wall_time"))) in testProcessOutput()
[all …]
/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()
40 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND + MILLISECOND)) in canFormatElapsedTime()
43 Truth.assertThat(Timestamp.formatElapsedTimestamp(MINUTE - 1)).isEqualTo("59s999ms999999ns") in canFormatElapsedTime()
44 Truth.assertThat(Timestamp.formatElapsedTimestamp(MINUTE)).isEqualTo("1m0s0ms0ns") in canFormatElapsedTime()
[all …]
DUtilsTest.kt48 Truth.assertThat(currState.first).isNotEmpty() in canFetchCurrentDeviceState()
49 Truth.assertThat(currState.second).isNotEmpty() in canFetchCurrentDeviceState()
55 Truth.assertThat(currStateDump.first).isNotEmpty() in canFetchCurrentDeviceStateOnlyWm()
56 Truth.assertThat(currStateDump.second).isEmpty() in canFetchCurrentDeviceStateOnlyWm()
58 Truth.assertThat(currState.wmState).isNotNull() in canFetchCurrentDeviceStateOnlyWm()
59 Truth.assertThat(currState.layerState).isNull() in canFetchCurrentDeviceStateOnlyWm()
65 Truth.assertThat(currStateDump.first).isEmpty() in canFetchCurrentDeviceStateOnlyLayers()
66 Truth.assertThat(currStateDump.second).isNotEmpty() in canFetchCurrentDeviceStateOnlyLayers()
68 Truth.assertThat(currState.wmState).isNull() in canFetchCurrentDeviceStateOnlyLayers()
69 Truth.assertThat(currState.layerState).isNotNull() in canFetchCurrentDeviceStateOnlyLayers()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayersTraceEntryTest.kt42 Truth.assertThat(trace.entries).isNotEmpty() in canParseAllLayers()
43 Truth.assertThat(trace.entries.first().timestamp.systemUptimeNanos).isEqualTo(922839428857) in canParseAllLayers()
44 Truth.assertThat(trace.entries.last().timestamp.systemUptimeNanos).isEqualTo(941432656959) in canParseAllLayers()
45 Truth.assertThat(trace.entries.last().flattenedLayers).hasSize(57) in canParseAllLayers()
58 Truth.assertThat(msg).contains("ScreenDecorOverlay#0") in canParseVisibleLayersLauncher()
59 Truth.assertThat(msg).contains("ScreenDecorOverlayBottom#0") in canParseVisibleLayersLauncher()
60 Truth.assertThat(msg).contains("NavigationBar0#0") in canParseVisibleLayersLauncher()
61 Truth.assertThat(msg).contains("ImageWallpaper#0") in canParseVisibleLayersLauncher()
62 Truth.assertThat(msg).contains("StatusBar#0") in canParseVisibleLayersLauncher()
63 Truth.assertThat(msg).contains("NexusLauncherActivity#0") in canParseVisibleLayersLauncher()
[all …]
DLayerTest.kt24 import com.google.common.truth.Truth.assertThat
40 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()
50 assertThat(makeLayerWithDefaults(0x100).verboseFlags) in hasVerboseFlagsProperty()
53 assertThat(makeLayerWithDefaults(0x200).verboseFlags) in hasVerboseFlagsProperty()
56 assertThat(makeLayerWithDefaults(0x400).verboseFlags) in hasVerboseFlagsProperty()
59 assertThat(makeLayerWithDefaults(0xc3).verboseFlags) in hasVerboseFlagsProperty()
[all …]
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()
[all …]
/platform_testing/libraries/motion/tests/src/platform/test/motion/golden/
DDataPointTypesTest.kt20 import com.google.common.truth.Truth.assertThat
24 import platform.test.motion.testing.DataPointTypeSubject.Companion.assertThat
31 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()
46 assertThat(DataPointTypes.boolean.fromJson(Something("bar"))) 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()
[all …]
DDataPointTypeTest.kt20 import com.google.common.truth.Truth.assertThat in <lambda>()
48 assertThat(subject.makeDataPoint(null)).isEqualTo(nullValue<Native>()) in <lambda>()
56 assertThat(dataPoint).isInstanceOf(ValueDataPoint::class.java) in <lambda>()
58 assertThat(valueDataPoint.value).isSameInstanceAs(nativeValue) in <lambda>()
59 assertThat(valueDataPoint.type).isSameInstanceAs(subject) 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>()
82 assertThat(dataPoint).isInstanceOf(ValueDataPoint::class.java) in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/perfetto/
DArgsTest.kt39 Truth.assertThat(args.getChild("invalidChild")).isNull() in <lambda>()
40 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>()
52 Truth.assertThat(args.getChild("invalidChild")).isNull() in <lambda>()
53 Truth.assertThat(args.getChild("child")).isNotNull() in <lambda>()
55 Truth.assertThat(args.getChild("child")?.getChild("invalidgrandChild")).isNull() in <lambda>()
56 Truth.assertThat(args.getChild("child")?.getChild("grandChild0")).isNotNull() in <lambda>()
57 Truth.assertThat(args.getChild("child")?.getChild("grandChild1")).isNotNull() in <lambda>()
[all …]
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DDataPointTypesTest.kt25 import com.google.common.truth.Truth.assertThat
34 import platform.test.motion.testing.DataPointTypeSubject.Companion.assertThat
41 assertThat(dp.fromJson(1)).isEqualTo(1.dp.asDataPoint()) in dp_jsonConversion()
42 assertThat(1.dp.asDataPoint().asJson()).isEqualTo(1) in dp_jsonConversion()
43 assertThat(dp).invalidJsonReturnsUnknownDataPoint(JSONObject(), "foo") in dp_jsonConversion()
48 assertThat(intSize) in intSize_jsonConversion()
51 assertThat(intSize).invalidJsonReturnsUnknownDataPoint(JSONObject(), 1) in intSize_jsonConversion()
55 assertThat(dpSize) in dpSize_jsonConversion()
58 assertThat(intSize).invalidJsonReturnsUnknownDataPoint(JSONObject(), 1) in dpSize_jsonConversion()
62 assertThat(dpOffset).convertsJsonObject(DpOffset(x = 1.dp, y = 2.dp), """{"x":1, "y": 2}""") in dpOffset_jsonConversion()
[all …]
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/report/
DScubaExportStrategyTest.kt24 import com.google.common.truth.Truth.assertThat
64 assertThat(subject.getPathOnDeviceFor(IMAGE_ACTUAL).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
66 assertThat(subject.getPathOnDeviceFor(IMAGE_EXPECTED).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
68 assertThat(subject.getPathOnDeviceFor(IMAGE_DIFF).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
70 assertThat(subject.getPathOnDeviceFor(RESULT_PROTO).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
72 assertThat(subject.getPathOnDeviceFor(RESULT_BIN_PROTO).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement()
81 assertThat(subject.getPathOnDeviceFor(IMAGE_ACTUAL).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
83 assertThat(subject.getPathOnDeviceFor(IMAGE_EXPECTED).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
85 assertThat(subject.getPathOnDeviceFor(IMAGE_DIFF).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
87 assertThat(subject.getPathOnDeviceFor(RESULT_PROTO).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement()
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/events/
DCujTraceTest.kt45 Truth.assertThat(trace.entries).hasSize(1) in canCreateFromListOfCujEvents()
46 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()
49 Truth.assertThat(trace.entries.first().canceled).isFalse() in canCreateFromListOfCujEvents()
71 Truth.assertThat(trace.entries).hasSize(1) in canCreateFromListOfCujEventsWithTags()
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()
[all …]
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DSfStatsCollectionHelperTest.java24 import static com.google.common.truth.Truth.assertThat;
152 assertThat( in testCollect_valuesMatch()
159 assertThat( in testCollect_valuesMatch()
166 assertThat( in testCollect_valuesMatch()
173 assertThat( in testCollect_valuesMatch()
180 assertThat( in testCollect_valuesMatch()
187 assertThat( in testCollect_valuesMatch()
194 assertThat( in testCollect_valuesMatch()
201 assertThat( in testCollect_valuesMatch()
208 assertThat( in testCollect_valuesMatch()
[all …]
DJankCollectionHelperTest.java38 import static com.google.common.truth.Truth.assertThat;
116 assertThat(metrics.get(buildMetricKey("pkg1", TOTAL_FRAMES.getMetricId()))) in testCollect_valuesMatch()
118 assertThat(metrics.get(buildMetricKey("pkg1", JANKY_FRAMES_COUNT.getMetricId()))) in testCollect_valuesMatch()
120 assertThat(metrics.get(buildMetricKey("pkg1", JANKY_FRAMES_PRCNT.getMetricId()))) in testCollect_valuesMatch()
122 assertThat(metrics.get(buildMetricKey("pkg1", JANKY_FRAMES_LEGACY_COUNT.getMetricId()))) in testCollect_valuesMatch()
124 assertThat(metrics.get(buildMetricKey("pkg1", JANKY_FRAMES_LEGACY_PRCNT.getMetricId()))) in testCollect_valuesMatch()
126 assertThat(metrics.get(buildMetricKey("pkg1", FRAME_TIME_50TH.getMetricId()))) in testCollect_valuesMatch()
128 assertThat(metrics.get(buildMetricKey("pkg1", FRAME_TIME_90TH.getMetricId()))) in testCollect_valuesMatch()
130 assertThat(metrics.get(buildMetricKey("pkg1", FRAME_TIME_95TH.getMetricId()))) in testCollect_valuesMatch()
132 assertThat(metrics.get(buildMetricKey("pkg1", FRAME_TIME_99TH.getMetricId()))) in testCollect_valuesMatch()
[all …]
/platform_testing/libraries/health/utils/tests/src/android/platform/test/util/
DTestFilterTest.java18 import static com.google.common.truth.Truth.assertThat;
36 assertThat( in testFilters_singleTest()
45 assertThat(TestFilter.isFilteredOrUnspecified(arguments, DESCRIPTION1)).isTrue(); in testFilters_multipleTests()
46 assertThat(TestFilter.isFilteredOrUnspecified(arguments, DESCRIPTION2)).isTrue(); in testFilters_multipleTests()
51 assertThat(TestFilter.isFilteredOrUnspecified(new Bundle(), DESCRIPTION1)).isTrue(); in testFilters_allTestsWhenUnspecified()
52 assertThat(TestFilter.isFilteredOrUnspecified(new Bundle(), DESCRIPTION2)).isTrue(); in testFilters_allTestsWhenUnspecified()
57 assertThat( in testDoesNotFilter_otherTest()
66 assertThat(TestFilter.isFilteredOrUnspecified(buildArguments(null), DESCRIPTION1)).isTrue(); in testDoesNotThrow_onBadArguments()
68 assertThat(TestFilter.isFilteredOrUnspecified(buildArguments(",,,"), DESCRIPTION1)) in testDoesNotThrow_onBadArguments()
70 assertThat(TestFilter.isFilteredOrUnspecified(buildArguments("a#,#b"), DESCRIPTION1)) in testDoesNotThrow_onBadArguments()
/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()
56 Truth.assertThat(entry.timestamp.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()
79 Truth.assertThat(entry.timestamp.systemUptimeNanos) in supportsMissingRealToElapsedTimeOffsetNs()
81 Truth.assertThat(entry.timestamp.unixNanos).isEqualTo(Timestamps.empty().unixNanos) in supportsMissingRealToElapsedTimeOffsetNs()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/
DScenarioInstanceTest.kt91 Truth.assertThat(assertions).hasSize(2) in willReportFlickerAssertions()
94 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertionSingle") in willReportFlickerAssertions()
95 Truth.assertThat(results.map { it.name }) in willReportFlickerAssertions()
103 Truth.assertThat(singleAssertionResult.status).isEqualTo(AssertionResult.Status.FAIL) in willReportFlickerAssertions()
104 Truth.assertThat(singleAssertionResult.assertionErrors).hasSize(1) in willReportFlickerAssertions()
105 Truth.assertThat(singleAssertionResult.assertionErrors.first()) in willReportFlickerAssertions()
109 Truth.assertThat(multipleAssertionResult.status).isEqualTo(AssertionResult.Status.FAIL) in willReportFlickerAssertions()
110 Truth.assertThat(multipleAssertionResult.assertionErrors).hasSize(2) in willReportFlickerAssertions()
111 Truth.assertThat(multipleAssertionResult.assertionErrors.first()) in willReportFlickerAssertions()
114 Truth.assertThat(multipleAssertionResult.assertionErrors.last()) in willReportFlickerAssertions()
[all …]
DFlickerServiceResultsCollectorTest.kt73 Truth.assertThat(collector.executionErrors).isEmpty() in <lambda>()
74 Truth.assertThat(collector.assertionResultsByTest[testDescription]).isNull() in <lambda>()
75 Truth.assertThat(runData.hasMetrics()).isFalse() in <lambda>()
104 Truth.assertThat(collector.executionErrors).isEmpty() in <lambda>()
105 Truth.assertThat(collector.resultsForTest(testDescription)).isNotEmpty() in <lambda>()
106 Truth.assertThat(testData.hasMetrics()).isTrue() in <lambda>()
107 Truth.assertThat(runData.hasMetrics()).isFalse() in <lambda>()
123 Truth.assertThat(collector.executionErrors).isEmpty() in <lambda>()
124 Truth.assertThat(collector.resultsForTest(testDescription)).isNotEmpty() in <lambda>()
125 Truth.assertThat(testData.hasMetrics()).isTrue() in <lambda>()
[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()
40 Truth.assertThat( 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()
[all …]
/platform_testing/libraries/motion/tests/src/platform/test/motion/view/
DDataPointTypesTest.kt22 import com.google.common.truth.Truth.assertThat
28 import platform.test.motion.testing.DataPointTypeSubject.Companion.assertThat
38 assertThat(point).convertsJsonObject(Point(/* x = */ 1, /* y = */ 2), """{"x":1, "y": 2}""") in point_fromToJson()
46 assertThat((dataPoint as ValueDataPoint).value.x).isEqualTo(1) in point_dataPoint_isImmutable()
51 assertThat(point).invalidJsonReturnsUnknownDataPoint(JSONObject(), 1) in point_fromInvalidJson_returnsUnknown()
56 assertThat(rect) in rect_fromToJson()
65 assertThat(rect).invalidJsonReturnsUnknownDataPoint(JSONObject(), 1) in rect_fromInvalidJson_returnsUnknown()
73 assertThat((dataPoint as ValueDataPoint).value.left).isEqualTo(1) in rect_dataPoint_isImmutable()
78 assertThat(cornerRadii) in cornerRadii_fromToJson()
99 assertThat((dataPoint as ValueDataPoint).value.rawValues[0]).isEqualTo(1) in cornerRadii_dataPoint_isImmutable()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/config/
DFlickerConfigTest.kt42 Truth.assertThat(entries).hasSize(1) in canRegisterScenario()
43 Truth.assertThat(entries.first().scenarioId).isEqualTo(SOME_SCENARIO) in canRegisterScenario()
65 Truth.assertThat(entries).hasSize(1) in canRegisterScenarioWithAssertions()
66 Truth.assertThat(entries.first().scenarioId).isEqualTo(SOME_SCENARIO) in canRegisterScenarioWithAssertions()
70 Truth.assertThat(scenarioSlices).hasSize(1) in canRegisterScenarioWithAssertions()
75 Truth.assertThat(assertions).hasSize(1) in canRegisterScenarioWithAssertions()
77 Truth.assertThat(executed).isTrue() in canRegisterScenarioWithAssertions()
89 Truth.assertThat(entries).hasSize(1) in canUnregisterScenario()
93 Truth.assertThat(entries).hasSize(0) in canUnregisterScenario()
117 Truth.assertThat(entries).hasSize(1) in canUnregisterAssertion()
[all …]
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/
DAlmostPerfectMatcherTest.kt21 import com.google.common.truth.Truth.assertThat
43 assertThat(result.matches).isTrue() in diffColor_exactMatch()
44 assertThat(result.diff).isNull() in diffColor_exactMatch()
61 assertThat(result.matches).isTrue() in diffColor_almostMatchLowRed()
62 assertThat(result.diff).isNull() in diffColor_almostMatchLowRed()
79 assertThat(result.matches).isTrue() in diffColor_almostMatchHighRed()
80 assertThat(result.diff).isNull() in diffColor_almostMatchHighRed()
97 assertThat(result.matches).isFalse() in diffColor_notMatch()
98 assertThat(result.diff).isNotNull() in diffColor_notMatch()
115 assertThat(result.matches).isTrue() in performDiff_sameBitmaps()
[all …]
/platform_testing/libraries/collectors-helper/adservices/test/src/com/android/helpers/
DSelectAdsLatencyHelperTest.java19 import static com.google.common.truth.Truth.assertThat;
96 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()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DScenarioAssertionTest.kt51 Truth.assertThat(assertionResult.assertionErrors).hasSize(1) in addsExtraDataToFlickerAssertionMessage()
53 Truth.assertThat(assertionMessage).contains("My assertion") in addsExtraDataToFlickerAssertionMessage()
54 Truth.assertThat(assertionMessage).contains("extraKey") in addsExtraDataToFlickerAssertionMessage()
55 Truth.assertThat(assertionMessage).contains("extraValue") in addsExtraDataToFlickerAssertionMessage()
66 Truth.assertThat("abc").isEqualTo("efg") in supportsRunningAssertionsWithTruthAssertions()
81 Truth.assertThat(result.status).isEqualTo(AssertionResult.Status.FAIL) in supportsRunningAssertionsWithTruthAssertions()
82 Truth.assertThat(result.assertionErrors).hasSize(1) in supportsRunningAssertionsWithTruthAssertions()
83 Truth.assertThat(result.assertionErrors.first()) in supportsRunningAssertionsWithTruthAssertions()
111 Truth.assertThat(result.status).isEqualTo(AssertionResult.Status.ASSUMPTION_VIOLATION) in supportsRunningAssertionsWithAssumptionViolations()
112 Truth.assertThat(result.assumptionViolations).hasSize(1) in supportsRunningAssertionsWithAssumptionViolations()
[all …]

12345