Home
last modified time | relevance | path

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

12345678910>>...103

/external/robolectric/shadows/versioning/src/test/java/org/robolectric/versioning/
DAndroidVersionsTest.java22 assertThat(VERSION.SDK_INT).isEqualTo(33); in testStandardInitializationT()
23 assertThat(VERSION.RELEASE).isEqualTo("13"); in testStandardInitializationT()
24 assertThat(VERSION.CODENAME).isEqualTo("REL"); in testStandardInitializationT()
25 assertThat(AndroidVersions.T.SHORT_CODE).isEqualTo("T"); in testStandardInitializationT()
26 assertThat(new AndroidVersions.T().getVersion()).isEqualTo("13.0"); in testStandardInitializationT()
27 assertThat(AndroidVersions.CURRENT.getShortCode()).isEqualTo("T"); in testStandardInitializationT()
33 assertThat(VERSION.SDK_INT).isEqualTo(32); in testStandardInitializationSv2()
34 assertThat(VERSION.RELEASE).isEqualTo("12"); in testStandardInitializationSv2()
35 assertThat(VERSION.CODENAME).isEqualTo("REL"); in testStandardInitializationSv2()
36 assertThat(AndroidVersions.Sv2.SHORT_CODE).isEqualTo("Sv2"); in testStandardInitializationSv2()
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowStatFsTest.java20 assertThat(statsFs.getBlockCount()).isEqualTo(100); in shouldRegisterStats()
21 assertThat(statsFs.getFreeBlocks()).isEqualTo(20); in shouldRegisterStats()
22 assertThat(statsFs.getAvailableBlocks()).isEqualTo(10); in shouldRegisterStats()
23 assertThat(statsFs.getBlockSize()).isEqualTo(ShadowStatFs.BLOCK_SIZE); in shouldRegisterStats()
31 assertThat(statsFs.getBlockCount()).isEqualTo(100); in shouldRegisterStatsWithFile()
32 assertThat(statsFs.getFreeBlocks()).isEqualTo(20); in shouldRegisterStatsWithFile()
33 assertThat(statsFs.getAvailableBlocks()).isEqualTo(10); in shouldRegisterStatsWithFile()
34 assertThat(statsFs.getBlockSize()).isEqualTo(ShadowStatFs.BLOCK_SIZE); in shouldRegisterStatsWithFile()
46 assertThat(statsFsForTmp.getBlockCount()).isEqualTo(101); in shouldUseBestMatch()
47 assertThat(statsFsForTmp.getFreeBlocks()).isEqualTo(21); in shouldUseBestMatch()
[all …]
DShadowParcelTest.java60 assertThat(parcel.readInt()).isEqualTo(0); in testReadIntWhenEmpty()
61 assertThat(parcel.dataPosition()).isEqualTo(0); in testReadIntWhenEmpty()
67 assertThat(parcel.readLong()).isEqualTo(0); in testReadLongWhenEmpty()
68 assertThat(parcel.dataPosition()).isEqualTo(0); in testReadLongWhenEmpty()
86 assertThat(parcel.dataSize()).isEqualTo(4); in testReadWriteNumbers()
88 assertThat(parcel.dataSize()).isEqualTo(12); in testReadWriteNumbers()
91 assertThat(parcel.dataSize()).isEqualTo(20); in testReadWriteNumbers()
94 assertThat(parcel.dataSize()).isEqualTo(24); in testReadWriteNumbers()
98 assertThat(parcel.readInt()).isEqualTo(Integer.MIN_VALUE); in testReadWriteNumbers()
99 assertThat(parcel.dataPosition()).isEqualTo(4); in testReadWriteNumbers()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/util/
DUtilTest.java65 assertThat(res).isEqualTo(15); in addWithOverflowDefault_withoutOverFlow_returnsSum()
68 assertThat(res).isEqualTo(Long.MAX_VALUE); in addWithOverflowDefault_withoutOverFlow_returnsSum()
71 assertThat(res).isEqualTo(Long.MIN_VALUE); in addWithOverflowDefault_withoutOverFlow_returnsSum()
77 assertThat(res).isEqualTo(12345); in addWithOverflowDefault_withOverFlow_returnsOverflowDefault()
80 assertThat(res).isEqualTo(12345); in addWithOverflowDefault_withOverFlow_returnsOverflowDefault()
86 assertThat(res).isEqualTo(-5); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract()
89 assertThat(res).isEqualTo(Long.MIN_VALUE); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract()
92 assertThat(res).isEqualTo(Long.MAX_VALUE); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract()
98 assertThat(res).isEqualTo(12345); in subtrackWithOverflowDefault_withUnderflow_returnsOverflowDefault()
101 assertThat(res).isEqualTo(12345); in subtrackWithOverflowDefault_withUnderflow_returnsOverflowDefault()
[all …]
DUriUtilTest.java40 assertThat(resolve(base, "g:h")).isEqualTo("g:h"); in resolveNormal()
41 assertThat(resolve(base, "g")).isEqualTo("http://a/b/c/g"); in resolveNormal()
42 assertThat(resolve(base, "g/")).isEqualTo("http://a/b/c/g/"); in resolveNormal()
43 assertThat(resolve(base, "/g")).isEqualTo("http://a/g"); in resolveNormal()
44 assertThat(resolve(base, "//g")).isEqualTo("http://g"); in resolveNormal()
45 assertThat(resolve(base, "//g:80")).isEqualTo("http://g:80"); in resolveNormal()
46 assertThat(resolve(base, "?y")).isEqualTo("http://a/b/c/d;p?y"); in resolveNormal()
47 assertThat(resolve(base, "g?y")).isEqualTo("http://a/b/c/g?y"); in resolveNormal()
48 assertThat(resolve(base, "#s")).isEqualTo("http://a/b/c/d;p?q#s"); in resolveNormal()
49 assertThat(resolve(base, "g#s")).isEqualTo("http://a/b/c/g#s"); in resolveNormal()
[all …]
DParsableByteArrayTest.java53 assertThat(array.getData()).isEqualTo(copyOfDataBefore); in ensureCapacity_doesntReallocateNeedlesslyAndPreservesPositionAndLimit()
54 assertThat(array.getPosition()).isEqualTo(3); in ensureCapacity_doesntReallocateNeedlesslyAndPreservesPositionAndLimit()
55 assertThat(array.limit()).isEqualTo(4); in ensureCapacity_doesntReallocateNeedlesslyAndPreservesPositionAndLimit()
67 assertThat(array.getData()).isEqualTo(Bytes.concat(copyOfDataBefore, new byte[] {0})); in ensureCapacity_preservesDataPositionAndLimitWhenReallocating()
68 assertThat(array.getPosition()).isEqualTo(3); in ensureCapacity_preservesDataPositionAndLimitWhenReallocating()
69 assertThat(array.limit()).isEqualTo(4); in ensureCapacity_preservesDataPositionAndLimitWhenReallocating()
87 assertThat(readValue).isEqualTo(testValue); in testReadShort()
89 assertThat(testArray.getPosition()).isEqualTo(2); in testReadShort()
94 assertThat(readValue).isEqualTo(testValue); in testReadShort()
95 assertThat(testArray.getPosition()).isEqualTo(2); in testReadShort()
[all …]
DMimeTypesTest.java69 .isEqualTo("mp4a.40.2"); in getCodecsCorrespondingToMimeType_returnsCorrectResult()
73 .isEqualTo("avc1.4D5015,avc1.4D4015"); in getCodecsCorrespondingToMimeType_returnsCorrectResult()
77 .isEqualTo("ac-3"); in getCodecsCorrespondingToMimeType_returnsCorrectResult()
81 .isEqualTo("ac-3"); in getCodecsCorrespondingToMimeType_returnsCorrectResult()
129 assertThat(MimeTypes.getTrackType(MimeTypes.VIDEO_H264)).isEqualTo(C.TRACK_TYPE_VIDEO); in getTrackType_returnsCorrectResult()
130 assertThat(MimeTypes.getTrackType("video/custom")).isEqualTo(C.TRACK_TYPE_VIDEO); in getTrackType_returnsCorrectResult()
132 assertThat(MimeTypes.getTrackType(MimeTypes.AUDIO_AAC)).isEqualTo(C.TRACK_TYPE_AUDIO); in getTrackType_returnsCorrectResult()
133 assertThat(MimeTypes.getTrackType("audio/custom")).isEqualTo(C.TRACK_TYPE_AUDIO); in getTrackType_returnsCorrectResult()
135 assertThat(MimeTypes.getTrackType(MimeTypes.TEXT_SSA)).isEqualTo(C.TRACK_TYPE_TEXT); in getTrackType_returnsCorrectResult()
136 assertThat(MimeTypes.getTrackType("text/custom")).isEqualTo(C.TRACK_TYPE_TEXT); in getTrackType_returnsCorrectResult()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/source/ads/
DServerSideAdInsertionUtilTest.java54 .isEqualTo( in addAdGroupToAdPlaybackState_insertsCorrectAdGroupData()
72 .isEqualTo( in addAdGroupToAdPlaybackState_insertsCorrectAdGroupData()
94 .isEqualTo( in addAdGroupToAdPlaybackState_insertsCorrectAdGroupData()
120 .isEqualTo( in addAdGroupToAdPlaybackState_insertsCorrectAdGroupData()
163 assertThat(adGroup.durationsUs[0]).isEqualTo(0); in addAdGroupToAdPlaybackState_emptyLeadingAds_markedAsSkipped()
164 assertThat(adGroup.states[0]).isEqualTo(AdPlaybackState.AD_STATE_SKIPPED); in addAdGroupToAdPlaybackState_emptyLeadingAds_markedAsSkipped()
165 assertThat(adGroup.durationsUs[1]).isEqualTo(0); in addAdGroupToAdPlaybackState_emptyLeadingAds_markedAsSkipped()
166 assertThat(adGroup.states[1]).isEqualTo(AdPlaybackState.AD_STATE_SKIPPED); in addAdGroupToAdPlaybackState_emptyLeadingAds_markedAsSkipped()
167 assertThat(adGroup.durationsUs[2]).isEqualTo(10_000); in addAdGroupToAdPlaybackState_emptyLeadingAds_markedAsSkipped()
168 assertThat(adGroup.states[2]).isEqualTo(AdPlaybackState.AD_STATE_UNAVAILABLE); in addAdGroupToAdPlaybackState_emptyLeadingAds_markedAsSkipped()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/util/
DUtilTest.java64 assertThat(res).isEqualTo(15); in addWithOverflowDefault_withoutOverFlow_returnsSum()
67 assertThat(res).isEqualTo(Long.MAX_VALUE); in addWithOverflowDefault_withoutOverFlow_returnsSum()
70 assertThat(res).isEqualTo(Long.MIN_VALUE); in addWithOverflowDefault_withoutOverFlow_returnsSum()
76 assertThat(res).isEqualTo(12345); in addWithOverflowDefault_withOverFlow_returnsOverflowDefault()
79 assertThat(res).isEqualTo(12345); in addWithOverflowDefault_withOverFlow_returnsOverflowDefault()
85 assertThat(res).isEqualTo(-5); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract()
88 assertThat(res).isEqualTo(Long.MIN_VALUE); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract()
91 assertThat(res).isEqualTo(Long.MAX_VALUE); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract()
97 assertThat(res).isEqualTo(12345); in subtrackWithOverflowDefault_withUnderflow_returnsOverflowDefault()
100 assertThat(res).isEqualTo(12345); in subtrackWithOverflowDefault_withUnderflow_returnsOverflowDefault()
[all …]
DUriUtilTest.java40 assertThat(resolve(base, "g:h")).isEqualTo("g:h"); in resolveNormal()
41 assertThat(resolve(base, "g")).isEqualTo("http://a/b/c/g"); in resolveNormal()
42 assertThat(resolve(base, "g/")).isEqualTo("http://a/b/c/g/"); in resolveNormal()
43 assertThat(resolve(base, "/g")).isEqualTo("http://a/g"); in resolveNormal()
44 assertThat(resolve(base, "//g")).isEqualTo("http://g"); in resolveNormal()
45 assertThat(resolve(base, "//g:80")).isEqualTo("http://g:80"); in resolveNormal()
46 assertThat(resolve(base, "?y")).isEqualTo("http://a/b/c/d;p?y"); in resolveNormal()
47 assertThat(resolve(base, "g?y")).isEqualTo("http://a/b/c/g?y"); in resolveNormal()
48 assertThat(resolve(base, "#s")).isEqualTo("http://a/b/c/d;p?q#s"); in resolveNormal()
49 assertThat(resolve(base, "g#s")).isEqualTo("http://a/b/c/g#s"); in resolveNormal()
[all …]
DParsableByteArrayTest.java53 assertThat(array.getData()).isEqualTo(copyOfDataBefore); in ensureCapacity_doesntReallocateNeedlesslyAndPreservesPositionAndLimit()
54 assertThat(array.getPosition()).isEqualTo(3); in ensureCapacity_doesntReallocateNeedlesslyAndPreservesPositionAndLimit()
55 assertThat(array.limit()).isEqualTo(4); in ensureCapacity_doesntReallocateNeedlesslyAndPreservesPositionAndLimit()
67 assertThat(array.getData()).isEqualTo(Bytes.concat(copyOfDataBefore, new byte[] {0})); in ensureCapacity_preservesDataPositionAndLimitWhenReallocating()
68 assertThat(array.getPosition()).isEqualTo(3); in ensureCapacity_preservesDataPositionAndLimitWhenReallocating()
69 assertThat(array.limit()).isEqualTo(4); in ensureCapacity_preservesDataPositionAndLimitWhenReallocating()
87 assertThat(readValue).isEqualTo(testValue); in testReadShort()
89 assertThat(testArray.getPosition()).isEqualTo(2); in testReadShort()
94 assertThat(readValue).isEqualTo(testValue); in testReadShort()
95 assertThat(testArray.getPosition()).isEqualTo(2); in testReadShort()
[all …]
DMimeTypesTest.java69 .isEqualTo("mp4a.40.2"); in getCodecsCorrespondingToMimeType_returnsCorrectResult()
73 .isEqualTo("avc1.4D5015,avc1.4D4015"); in getCodecsCorrespondingToMimeType_returnsCorrectResult()
77 .isEqualTo("ac-3"); in getCodecsCorrespondingToMimeType_returnsCorrectResult()
81 .isEqualTo("ac-3"); in getCodecsCorrespondingToMimeType_returnsCorrectResult()
129 assertThat(MimeTypes.getTrackType(MimeTypes.VIDEO_H264)).isEqualTo(C.TRACK_TYPE_VIDEO); in getTrackType_returnsCorrectResult()
130 assertThat(MimeTypes.getTrackType("video/custom")).isEqualTo(C.TRACK_TYPE_VIDEO); in getTrackType_returnsCorrectResult()
132 assertThat(MimeTypes.getTrackType(MimeTypes.AUDIO_AAC)).isEqualTo(C.TRACK_TYPE_AUDIO); in getTrackType_returnsCorrectResult()
133 assertThat(MimeTypes.getTrackType("audio/custom")).isEqualTo(C.TRACK_TYPE_AUDIO); in getTrackType_returnsCorrectResult()
135 assertThat(MimeTypes.getTrackType(MimeTypes.TEXT_SSA)).isEqualTo(C.TRACK_TYPE_TEXT); in getTrackType_returnsCorrectResult()
136 assertThat(MimeTypes.getTrackType("text/custom")).isEqualTo(C.TRACK_TYPE_TEXT); in getTrackType_returnsCorrectResult()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/source/ads/
DServerSideAdInsertionUtilTest.java53 .isEqualTo( in addAdGroupToAdPlaybackState_insertsCorrectAdGroupData()
71 .isEqualTo( in addAdGroupToAdPlaybackState_insertsCorrectAdGroupData()
93 .isEqualTo( in addAdGroupToAdPlaybackState_insertsCorrectAdGroupData()
119 .isEqualTo( in addAdGroupToAdPlaybackState_insertsCorrectAdGroupData()
166 .isEqualTo(0); in getStreamPositionUsForAd_returnsCorrectPositions()
170 .isEqualTo(100); in getStreamPositionUsForAd_returnsCorrectPositions()
174 .isEqualTo(200); in getStreamPositionUsForAd_returnsCorrectPositions()
179 .isEqualTo(100); in getStreamPositionUsForAd_returnsCorrectPositions()
183 .isEqualTo(150); in getStreamPositionUsForAd_returnsCorrectPositions()
187 .isEqualTo(250); in getStreamPositionUsForAd_returnsCorrectPositions()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/
DLiteralStringValueExprTest.java34 assertThat(new CharLiteralExpr('\t').getValue()).isEqualTo("\\t"); in trivialLiteralsAreConverted()
35 assertThat(new CharLiteralExpr('\b').getValue()).isEqualTo("\\b"); in trivialLiteralsAreConverted()
36 assertThat(new CharLiteralExpr('\f').getValue()).isEqualTo("\\f"); in trivialLiteralsAreConverted()
37 assertThat(new CharLiteralExpr('\r').getValue()).isEqualTo("\\r"); in trivialLiteralsAreConverted()
38 assertThat(new CharLiteralExpr('\n').getValue()).isEqualTo("\\n"); in trivialLiteralsAreConverted()
39 assertThat(new CharLiteralExpr('\\').getValue()).isEqualTo("\\\\"); in trivialLiteralsAreConverted()
40 assertThat(new CharLiteralExpr('\"').getValue()).isEqualTo("\\\""); in trivialLiteralsAreConverted()
42 assertThat(new IntegerLiteralExpr("0B0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
43 assertThat(new IntegerLiteralExpr("0b0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
44 assertThat(new IntegerLiteralExpr("0X0").asInt()).isEqualTo(0); in trivialLiteralsAreConverted()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowStatFsTest.java20 assertThat(statsFs.getBlockCount()).isEqualTo(100); in shouldRegisterStats()
21 assertThat(statsFs.getFreeBlocks()).isEqualTo(20); in shouldRegisterStats()
22 assertThat(statsFs.getAvailableBlocks()).isEqualTo(10); in shouldRegisterStats()
23 assertThat(statsFs.getBlockSize()).isEqualTo(ShadowStatFs.BLOCK_SIZE); in shouldRegisterStats()
31 assertThat(statsFs.getBlockCount()).isEqualTo(100); in shouldRegisterStatsWithFile()
32 assertThat(statsFs.getFreeBlocks()).isEqualTo(20); in shouldRegisterStatsWithFile()
33 assertThat(statsFs.getAvailableBlocks()).isEqualTo(10); in shouldRegisterStatsWithFile()
34 assertThat(statsFs.getBlockSize()).isEqualTo(ShadowStatFs.BLOCK_SIZE); in shouldRegisterStatsWithFile()
46 assertThat(statsFsForTmp.getBlockCount()).isEqualTo(101); in shouldUseBestMatch()
47 assertThat(statsFsForTmp.getFreeBlocks()).isEqualTo(21); in shouldUseBestMatch()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/text/webvtt/
DWebvttDecoderTest.java83 assertThat(subtitle.getEventTimeCount()).isEqualTo(4); in decodeTypical()
85 assertThat(subtitle.getEventTime(0)).isEqualTo(0L); in decodeTypical()
86 assertThat(subtitle.getEventTime(1)).isEqualTo(1_234_000L); in decodeTypical()
88 assertThat(firstCue.text.toString()).isEqualTo("This is the first subtitle."); in decodeTypical()
90 assertThat(subtitle.getEventTime(2)).isEqualTo(2_345_000L); in decodeTypical()
91 assertThat(subtitle.getEventTime(3)).isEqualTo(3_456_000L); in decodeTypical()
93 assertThat(secondCue.text.toString()).isEqualTo("This is the second subtitle."); in decodeTypical()
100 assertThat(subtitle.getEventTimeCount()).isEqualTo(4); in decodeWithBom()
102 assertThat(subtitle.getEventTime(0)).isEqualTo(0L); in decodeWithBom()
103 assertThat(subtitle.getEventTime(1)).isEqualTo(1_234_000L); in decodeWithBom()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/test/java/com/google/android/exoplayer2/text/webvtt/
DWebvttDecoderTest.java83 assertThat(subtitle.getEventTimeCount()).isEqualTo(4); in decodeTypical()
85 assertThat(subtitle.getEventTime(0)).isEqualTo(0L); in decodeTypical()
86 assertThat(subtitle.getEventTime(1)).isEqualTo(1_234_000L); in decodeTypical()
88 assertThat(firstCue.text.toString()).isEqualTo("This is the first subtitle."); in decodeTypical()
90 assertThat(subtitle.getEventTime(2)).isEqualTo(2_345_000L); in decodeTypical()
91 assertThat(subtitle.getEventTime(3)).isEqualTo(3_456_000L); in decodeTypical()
93 assertThat(secondCue.text.toString()).isEqualTo("This is the second subtitle."); in decodeTypical()
100 assertThat(subtitle.getEventTimeCount()).isEqualTo(4); in decodeWithBom()
102 assertThat(subtitle.getEventTime(0)).isEqualTo(0L); in decodeWithBom()
103 assertThat(subtitle.getEventTime(1)).isEqualTo(1_234_000L); in decodeWithBom()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/manifest/
DAndroidManifestTest.java36 .isEqualTo("org.robolectric.tester.FullyQualifiedClassName"); in parseManifest_shouldReadContentProviders()
37 …assertThat(config.getContentProviders().get(0).getAuthorities()).isEqualTo("org.robolectric.author… in parseManifest_shouldReadContentProviders()
41 .isEqualTo("org.robolectric.tester.PartiallyQualifiedClassName"); in parseManifest_shouldReadContentProviders()
42 …assertThat(config.getContentProviders().get(1).getAuthorities()).isEqualTo("org.robolectric.author… in parseManifest_shouldReadContentProviders()
56 assertThat(permissionItemData.getName()).isEqualTo("some_permission"); in parseManifest_shouldReadPermissions()
57 assertThat(permissionItemData.getPermissionGroup()).isEqualTo("my_permission_group"); in parseManifest_shouldReadPermissions()
58 … assertThat(permissionItemData.getDescription()).isEqualTo("@string/test_permission_description"); in parseManifest_shouldReadPermissions()
59 assertThat(permissionItemData.getProtectionLevel()).isEqualTo("dangerous"); in parseManifest_shouldReadPermissions()
69 assertThat(permissionGroupItemData.getName()).isEqualTo("permission_group"); in parseManifest_shouldReadPermissionGroups()
70 …assertThat(permissionGroupItemData.getDescription()).isEqualTo("@string/test_permission_descriptio… in parseManifest_shouldReadPermissionGroups()
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/manifest/
DAndroidManifestTest.java35 .isEqualTo("org.robolectric.tester.FullyQualifiedClassName"); in parseManifest_shouldReadContentProviders()
37 .isEqualTo("org.robolectric.authority1"); in parseManifest_shouldReadContentProviders()
41 .isEqualTo("org.robolectric.tester.PartiallyQualifiedClassName"); in parseManifest_shouldReadContentProviders()
43 .isEqualTo("org.robolectric.authority2"); in parseManifest_shouldReadContentProviders()
58 assertThat(permissionItemData.getName()).isEqualTo("some_permission"); in parseManifest_shouldReadPermissions()
59 assertThat(permissionItemData.getPermissionGroup()).isEqualTo("my_permission_group"); in parseManifest_shouldReadPermissions()
61 .isEqualTo("@string/test_permission_description"); in parseManifest_shouldReadPermissions()
62 assertThat(permissionItemData.getProtectionLevel()).isEqualTo("dangerous"); in parseManifest_shouldReadPermissions()
73 assertThat(permissionGroupItemData.getName()).isEqualTo("permission_group"); in parseManifest_shouldReadPermissionGroups()
75 .isEqualTo("@string/test_permission_description"); in parseManifest_shouldReadPermissionGroups()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/test/java/com/google/android/exoplayer2/text/ttml/
DTextEmphasisTest.java59 .isEqualTo(TextEmphasisSpan.MARK_SHAPE_NONE); in testNone()
62 .isEqualTo(TextEmphasis.POSITION_OUTSIDE); in testNone()
70 assertWithMessage("markShape").that(textEmphasis.markShape).isEqualTo(MARK_SHAPE_AUTO); in testAuto()
73 .isEqualTo(TextEmphasisSpan.MARK_FILL_UNKNOWN); in testAuto()
76 .isEqualTo(TextEmphasis.POSITION_OUTSIDE); in testAuto()
84 assertWithMessage("markShape").that(textEmphasis.markShape).isEqualTo(MARK_SHAPE_AUTO); in testInvalid()
87 .isEqualTo(TextEmphasisSpan.MARK_FILL_UNKNOWN); in testInvalid()
90 .isEqualTo(TextEmphasis.POSITION_OUTSIDE); in testInvalid()
98 assertWithMessage("markShape").that(textEmphasis.markShape).isEqualTo(MARK_SHAPE_AUTO); in testAutoOutside()
101 .isEqualTo(TextEmphasisSpan.MARK_FILL_UNKNOWN); in testAutoOutside()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/test/java/com/google/android/exoplayer2/text/ttml/
DTextEmphasisTest.java59 .isEqualTo(TextEmphasisSpan.MARK_SHAPE_NONE); in testNone()
62 .isEqualTo(TextEmphasis.POSITION_OUTSIDE); in testNone()
70 assertWithMessage("markShape").that(textEmphasis.markShape).isEqualTo(MARK_SHAPE_AUTO); in testAuto()
73 .isEqualTo(TextEmphasisSpan.MARK_FILL_UNKNOWN); in testAuto()
76 .isEqualTo(TextEmphasis.POSITION_OUTSIDE); in testAuto()
84 assertWithMessage("markShape").that(textEmphasis.markShape).isEqualTo(MARK_SHAPE_AUTO); in testInvalid()
87 .isEqualTo(TextEmphasisSpan.MARK_FILL_UNKNOWN); in testInvalid()
90 .isEqualTo(TextEmphasis.POSITION_OUTSIDE); in testInvalid()
98 assertWithMessage("markShape").that(textEmphasis.markShape).isEqualTo(MARK_SHAPE_AUTO); in testAutoOutside()
101 .isEqualTo(TextEmphasisSpan.MARK_FILL_UNKNOWN); in testAutoOutside()
[all …]
/external/robolectric/resources/src/test/java/org/robolectric/res/
DQualifiersTest.java17 assertThat(configFrom("values-land-finger")).isEqualTo("land-finger"); in testQualifiers()
42 assertThat(Qualifiers.addPlatformVersion("", 21)).isEqualTo("v21"); in addPlatformVersion()
43 assertThat(Qualifiers.addPlatformVersion("v23", 21)).isEqualTo("v23"); in addPlatformVersion()
44 assertThat(Qualifiers.addPlatformVersion("foo-v14", 21)).isEqualTo("foo-v14"); in addPlatformVersion()
48 assertThat(Qualifiers.addSmallestScreenWidth("", 320)).isEqualTo("sw320dp"); in addSmallestScreenWidth()
49 assertThat(Qualifiers.addSmallestScreenWidth("sw160dp", 320)).isEqualTo("sw160dp"); in addSmallestScreenWidth()
50 assertThat(Qualifiers.addSmallestScreenWidth("sw480dp", 320)).isEqualTo("sw480dp"); in addSmallestScreenWidth()
51 …assertThat(Qualifiers.addSmallestScreenWidth("en-v23", 320)).isEqualTo("en-v23-sw320dp"); // todo:… in addSmallestScreenWidth()
52 … assertThat(Qualifiers.addSmallestScreenWidth("en-sw160dp-v23", 320)).isEqualTo("en-sw160dp-v23"); in addSmallestScreenWidth()
53 … assertThat(Qualifiers.addSmallestScreenWidth("en-sw480dp-v23", 320)).isEqualTo("en-sw480dp-v23"); in addSmallestScreenWidth()
[all …]
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DQualifiersTest.java15 assertThat(configFrom("values-land-finger")).isEqualTo("land-finger"); in testQualifiers()
40 assertThat(Qualifiers.addPlatformVersion("", 21)).isEqualTo("v21"); in addPlatformVersion()
41 assertThat(Qualifiers.addPlatformVersion("v23", 21)).isEqualTo("v23"); in addPlatformVersion()
42 assertThat(Qualifiers.addPlatformVersion("foo-v14", 21)).isEqualTo("foo-v14"); in addPlatformVersion()
46 assertThat(Qualifiers.addSmallestScreenWidth("", 320)).isEqualTo("sw320dp"); in addSmallestScreenWidth()
47 assertThat(Qualifiers.addSmallestScreenWidth("sw160dp", 320)).isEqualTo("sw160dp"); in addSmallestScreenWidth()
48 assertThat(Qualifiers.addSmallestScreenWidth("sw480dp", 320)).isEqualTo("sw480dp"); in addSmallestScreenWidth()
49 …assertThat(Qualifiers.addSmallestScreenWidth("en-v23", 320)).isEqualTo("en-v23-sw320dp"); // todo:… in addSmallestScreenWidth()
50 … assertThat(Qualifiers.addSmallestScreenWidth("en-sw160dp-v23", 320)).isEqualTo("en-sw160dp-v23"); in addSmallestScreenWidth()
51 … assertThat(Qualifiers.addSmallestScreenWidth("en-sw480dp-v23", 320)).isEqualTo("en-sw480dp-v23"); in addSmallestScreenWidth()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyMessageLiteTest.java62 assertThat(outer.getNum()).isEqualTo(1); in testSetValues()
63 assertThat(outer.getNumWithDefault()).isEqualTo(421); in testSetValues()
65 assertThat(outer.getInner().getNum()).isEqualTo(2); in testSetValues()
66 assertThat(outer.getInner().getNumWithDefault()).isEqualTo(42); in testSetValues()
68 assertThat(outer.getInner().getNum()).isEqualTo(2); in testSetValues()
69 assertThat(outer.getInner().getNumWithDefault()).isEqualTo(42); in testSetValues()
71 assertThat(outer.getInner().getNested().getNum()).isEqualTo(3); in testSetValues()
72 assertThat(outer.getInner().getNested().getNumWithDefault()).isEqualTo(4); in testSetValues()
77 assertThat(outer.getOneofInner().getNum()).isEqualTo(2); in testSetValues()
78 assertThat(outer.getOneofInner().getNumWithDefault()).isEqualTo(42); in testSetValues()
[all …]
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyMessageLiteTest.java62 assertThat(outer.getNum()).isEqualTo(1); in testSetValues()
63 assertThat(outer.getNumWithDefault()).isEqualTo(421); in testSetValues()
65 assertThat(outer.getInner().getNum()).isEqualTo(2); in testSetValues()
66 assertThat(outer.getInner().getNumWithDefault()).isEqualTo(42); in testSetValues()
68 assertThat(outer.getInner().getNum()).isEqualTo(2); in testSetValues()
69 assertThat(outer.getInner().getNumWithDefault()).isEqualTo(42); in testSetValues()
71 assertThat(outer.getInner().getNested().getNum()).isEqualTo(3); in testSetValues()
72 assertThat(outer.getInner().getNested().getNumWithDefault()).isEqualTo(4); in testSetValues()
77 assertThat(outer.getOneofInner().getNum()).isEqualTo(2); in testSetValues()
78 assertThat(outer.getOneofInner().getNumWithDefault()).isEqualTo(42); in testSetValues()
[all …]

12345678910>>...103