/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/ |
D | UtilTest.java | 47 assertThat(res).isEqualTo(15); in addWithOverflowDefault_withoutOverFlow_returnsSum() 50 assertThat(res).isEqualTo(Long.MAX_VALUE); in addWithOverflowDefault_withoutOverFlow_returnsSum() 53 assertThat(res).isEqualTo(Long.MIN_VALUE); in addWithOverflowDefault_withoutOverFlow_returnsSum() 59 assertThat(res).isEqualTo(12345); in addWithOverflowDefault_withOverFlow_returnsOverflowDefault() 62 assertThat(res).isEqualTo(12345); in addWithOverflowDefault_withOverFlow_returnsOverflowDefault() 68 assertThat(res).isEqualTo(-5); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract() 71 assertThat(res).isEqualTo(Long.MIN_VALUE); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract() 74 assertThat(res).isEqualTo(Long.MAX_VALUE); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract() 80 assertThat(res).isEqualTo(12345); in subtrackWithOverflowDefault_withUnderflow_returnsOverflowDefault() 83 assertThat(res).isEqualTo(12345); in subtrackWithOverflowDefault_withUnderflow_returnsOverflowDefault() [all …]
|
D | MimeTypesTest.java | 53 assertThat(MimeTypes.getMediaMimeType("avc1")).isEqualTo(MimeTypes.VIDEO_H264); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 54 assertThat(MimeTypes.getMediaMimeType("avc1.42E01E")).isEqualTo(MimeTypes.VIDEO_H264); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 55 assertThat(MimeTypes.getMediaMimeType("avc1.42E01F")).isEqualTo(MimeTypes.VIDEO_H264); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 56 assertThat(MimeTypes.getMediaMimeType("avc1.4D401F")).isEqualTo(MimeTypes.VIDEO_H264); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 57 assertThat(MimeTypes.getMediaMimeType("avc1.4D4028")).isEqualTo(MimeTypes.VIDEO_H264); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 58 assertThat(MimeTypes.getMediaMimeType("avc1.640028")).isEqualTo(MimeTypes.VIDEO_H264); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 59 assertThat(MimeTypes.getMediaMimeType("avc1.640029")).isEqualTo(MimeTypes.VIDEO_H264); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 60 assertThat(MimeTypes.getMediaMimeType("avc3")).isEqualTo(MimeTypes.VIDEO_H264); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 61 assertThat(MimeTypes.getMediaMimeType("hev1")).isEqualTo(MimeTypes.VIDEO_H265); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() 62 assertThat(MimeTypes.getMediaMimeType("hvc1")).isEqualTo(MimeTypes.VIDEO_H265); in getMediaMimeType_fromValidCodecs_returnsCorrectMimeType() [all …]
|
D | ParsableByteArrayTest.java | 56 assertThat(readValue).isEqualTo(testValue); in testReadShort() 58 assertThat(testArray.getPosition()).isEqualTo(2); in testReadShort() 63 assertThat(readValue).isEqualTo(testValue); in testReadShort() 64 assertThat(testArray.getPosition()).isEqualTo(2); in testReadShort() 82 assertThat(readValue).isEqualTo(testValue); in testReadInt() 84 assertThat(testArray.getPosition()).isEqualTo(4); in testReadInt() 89 assertThat(readValue).isEqualTo(testValue); in testReadInt() 90 assertThat(testArray.getPosition()).isEqualTo(4); in testReadInt() 108 assertThat(readValue).isEqualTo(testValue); in testReadUnsignedInt() 110 assertThat(testArray.getPosition()).isEqualTo(4); in testReadUnsignedInt() [all …]
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | LiteralStringValueExprTest.java | 34 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/ |
D | ShadowStatFsTest.java | 20 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 …]
|
D | ShadowLocaleDataTest.java | 25 assertThat(localeData.amPm).isEqualTo(new String[]{"AM", "PM"}); in shouldSupportLocaleEn_US() 26 assertThat(localeData.eras).isEqualTo(new String[]{"BC", "AD"}); in shouldSupportLocaleEn_US() 28 assertThat(localeData.firstDayOfWeek).isEqualTo(1); in shouldSupportLocaleEn_US() 29 assertThat(localeData.minimalDaysInFirstWeek).isEqualTo(1); in shouldSupportLocaleEn_US() 31 …assertThat(localeData.longMonthNames).isEqualTo(new String[]{"January", "February", "March", "Apri… in shouldSupportLocaleEn_US() 32 …assertThat(localeData.shortMonthNames).isEqualTo(new String[]{"Jan", "Feb", "Mar", "Apr", "May", "… in shouldSupportLocaleEn_US() 34 assertThat(localeData.longStandAloneMonthNames).isEqualTo(localeData.longMonthNames); in shouldSupportLocaleEn_US() 35 assertThat(localeData.shortStandAloneMonthNames).isEqualTo(localeData.shortMonthNames); in shouldSupportLocaleEn_US() 37 …assertThat(localeData.longWeekdayNames).isEqualTo(new String[]{"", "Sunday", "Monday", "Tuesday", … in shouldSupportLocaleEn_US() 38 …assertThat(localeData.shortWeekdayNames).isEqualTo(new String[]{"", "Sun", "Mon", "Tue", "Wed", "T… in shouldSupportLocaleEn_US() [all …]
|
D | ShadowMatrixCursorTest.java | 32 assertThat(cursor.getCount()).isEqualTo(2); in shouldAddObjectArraysAsRows() 36 assertThat(cursor.getString(0)).isEqualTo("foo"); in shouldAddObjectArraysAsRows() 37 assertThat(cursor.getLong(1)).isEqualTo(10L); in shouldAddObjectArraysAsRows() 38 assertThat(cursor.getFloat(2)).isEqualTo(0.1f); in shouldAddObjectArraysAsRows() 42 assertThat(cursor.getString(0)).isEqualTo("baz"); in shouldAddObjectArraysAsRows() 43 assertThat(cursor.getLong(1)).isEqualTo(20L); in shouldAddObjectArraysAsRows() 54 assertThat(cursor.getCount()).isEqualTo(2); in shouldAddIterablesAsRows() 58 assertThat(cursor.getString(0)).isEqualTo("foo"); in shouldAddIterablesAsRows() 59 assertThat(cursor.getLong(1)).isEqualTo(10L); in shouldAddIterablesAsRows() 60 assertThat(cursor.getFloat(2)).isEqualTo(0.1f); in shouldAddIterablesAsRows() [all …]
|
D | SQLiteCursorTest.java | 63 assertThat(cursor.getColumnIndex("id")).isEqualTo(0); in testGetColumnIndex() 64 assertThat(cursor.getColumnIndex("name")).isEqualTo(1); in testGetColumnIndex() 69 assertThat(cursor.getColumnIndex("Fred")).isEqualTo(-1); in testGetColumnIndexNotFound() 76 assertThat(cursor.getColumnIndex("id")).isEqualTo(0); in testGetColumnIndexEmpty() 77 assertThat(cursor.getColumnIndex("name")).isEqualTo(1); in testGetColumnIndexEmpty() 82 assertThat(cursor.getColumnIndexOrThrow("id")).isEqualTo(0); in testGetColumnIndexOrThrow() 83 assertThat(cursor.getColumnIndexOrThrow("name")).isEqualTo(1); in testGetColumnIndexOrThrow() 95 assertThat(cursor.getColumnIndexOrThrow("name")).isEqualTo(1); in testGetColumnIndexOrThrowEmpty() 108 assertThat(cursor.getInt(0)).isEqualTo(1234); in testMoveToFirst() 109 assertThat(cursor.getString(1)).isEqualTo("Chuck"); in testMoveToFirst() [all …]
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/util/ |
D | UriUtilTest.java | 40 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, "?y")).isEqualTo("http://a/b/c/d;p?y"); in resolveNormal() 46 assertThat(resolve(base, "g?y")).isEqualTo("http://a/b/c/g?y"); in resolveNormal() 47 assertThat(resolve(base, "#s")).isEqualTo("http://a/b/c/d;p?q#s"); in resolveNormal() 48 assertThat(resolve(base, "g#s")).isEqualTo("http://a/b/c/g#s"); in resolveNormal() 49 assertThat(resolve(base, "g?y#s")).isEqualTo("http://a/b/c/g?y#s"); in resolveNormal() [all …]
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/ |
D | WebvttDecoderTest.java | 75 assertThat(subtitle.getEventTimeCount()).isEqualTo(4); in decodeTypical() 77 assertThat(subtitle.getEventTime(0)).isEqualTo(0L); in decodeTypical() 78 assertThat(subtitle.getEventTime(1)).isEqualTo(1_234_000L); in decodeTypical() 80 assertThat(firstCue.text.toString()).isEqualTo("This is the first subtitle."); in decodeTypical() 82 assertThat(subtitle.getEventTime(2)).isEqualTo(2_345_000L); in decodeTypical() 83 assertThat(subtitle.getEventTime(3)).isEqualTo(3_456_000L); in decodeTypical() 85 assertThat(secondCue.text.toString()).isEqualTo("This is the second subtitle."); in decodeTypical() 92 assertThat(subtitle.getEventTimeCount()).isEqualTo(4); in decodeWithBom() 94 assertThat(subtitle.getEventTime(0)).isEqualTo(0L); in decodeWithBom() 95 assertThat(subtitle.getEventTime(1)).isEqualTo(1_234_000L); in decodeWithBom() [all …]
|
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/ |
D | QualifiersTest.java | 15 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/robolectric-shadows/robolectric/src/test/java/org/robolectric/manifest/ |
D | AndroidManifestTest.java | 36 .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/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | TimestampTest.java | 34 assertThat(Timestamp.create(24, 42).getSeconds()).isEqualTo(24); in timestampCreate() 35 assertThat(Timestamp.create(24, 42).getNanos()).isEqualTo(42); in timestampCreate() 36 assertThat(Timestamp.create(-24, 42).getSeconds()).isEqualTo(-24); in timestampCreate() 37 assertThat(Timestamp.create(-24, 42).getNanos()).isEqualTo(42); in timestampCreate() 38 assertThat(Timestamp.create(315576000000L, 999999999).getSeconds()).isEqualTo(315576000000L); in timestampCreate() 39 assertThat(Timestamp.create(315576000000L, 999999999).getNanos()).isEqualTo(999999999); in timestampCreate() 40 assertThat(Timestamp.create(-315576000000L, 999999999).getSeconds()).isEqualTo(-315576000000L); in timestampCreate() 41 assertThat(Timestamp.create(-315576000000L, 999999999).getNanos()).isEqualTo(999999999); in timestampCreate() 88 assertThat(Timestamp.fromMillis(0)).isEqualTo(Timestamp.create(0, 0)); in timestampFromMillis() 89 assertThat(Timestamp.fromMillis(987)).isEqualTo(Timestamp.create(0, 987000000)); in timestampFromMillis() [all …]
|
D | DurationTest.java | 34 assertThat(Duration.create(24, 42).getSeconds()).isEqualTo(24); in testDurationCreate() 35 assertThat(Duration.create(24, 42).getNanos()).isEqualTo(42); in testDurationCreate() 36 assertThat(Duration.create(-24, -42).getSeconds()).isEqualTo(-24); in testDurationCreate() 37 assertThat(Duration.create(-24, -42).getNanos()).isEqualTo(-42); in testDurationCreate() 38 assertThat(Duration.create(315576000000L, 999999999).getSeconds()).isEqualTo(315576000000L); in testDurationCreate() 39 assertThat(Duration.create(315576000000L, 999999999).getNanos()).isEqualTo(999999999); in testDurationCreate() 40 assertThat(Duration.create(-315576000000L, -999999999).getSeconds()).isEqualTo(-315576000000L); in testDurationCreate() 41 assertThat(Duration.create(-315576000000L, -999999999).getNanos()).isEqualTo(-999999999); in testDurationCreate() 88 assertThat(Duration.fromMillis(0)).isEqualTo(Duration.create(0, 0)); in testDurationFromMillis() 89 assertThat(Duration.fromMillis(987)).isEqualTo(Duration.create(0, 987000000)); in testDurationFromMillis() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | BootstrapTest.java | 87 assertThat(displayInfo.name).isEqualTo("Built-in screen"); in shouldSetUpRealisticDisplay() 88 assertThat(displayInfo.appWidth).isEqualTo(480); in shouldSetUpRealisticDisplay() 89 assertThat(displayInfo.appHeight).isEqualTo(640); in shouldSetUpRealisticDisplay() 90 assertThat(displayInfo.smallestNominalAppWidth).isEqualTo(480); in shouldSetUpRealisticDisplay() 91 assertThat(displayInfo.smallestNominalAppHeight).isEqualTo(480); in shouldSetUpRealisticDisplay() 92 assertThat(displayInfo.largestNominalAppWidth).isEqualTo(640); in shouldSetUpRealisticDisplay() 93 assertThat(displayInfo.largestNominalAppHeight).isEqualTo(640); in shouldSetUpRealisticDisplay() 94 assertThat(displayInfo.logicalWidth).isEqualTo(480); in shouldSetUpRealisticDisplay() 95 assertThat(displayInfo.logicalHeight).isEqualTo(640); in shouldSetUpRealisticDisplay() 96 assertThat(displayInfo.rotation).isEqualTo(ROTATION_0); in shouldSetUpRealisticDisplay() [all …]
|
/external/dagger2/javatests/dagger/functional/builder/ |
D | BuilderTest.java | 46 assertThat(component.s()).isEqualTo("sam"); in interfaceBuilder() 47 assertThat(component.i()).isEqualTo(1); in interfaceBuilder() 48 assertThat(component.d()).isEqualTo(4.2d); in interfaceBuilder() 49 assertThat(component.f()).isEqualTo(5.5f); in interfaceBuilder() 50 assertThat(component.l()).isEqualTo(6L); in interfaceBuilder() 70 assertThat(component.s()).isEqualTo("sam"); in abstractClassBuilder() 71 assertThat(component.i()).isEqualTo(1); in abstractClassBuilder() 72 assertThat(component.d()).isEqualTo(4.2d); in abstractClassBuilder() 73 assertThat(component.f()).isEqualTo(5.5f); in abstractClassBuilder() 74 assertThat(component.l()).isEqualTo(6L); in abstractClassBuilder() [all …]
|
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/ |
D | HeapDiskTest.java | 50 assertThat(disk.blockSize()).isEqualTo(8192); in testInitialSettings_basic() 51 assertThat(disk.getTotalSpace()).isEqualTo(819200); in testInitialSettings_basic() 52 assertThat(disk.getUnallocatedSpace()).isEqualTo(819200); in testInitialSettings_basic() 53 assertThat(disk.blockCache.blockCount()).isEqualTo(0); in testInitialSettings_basic() 67 assertThat(disk.blockSize()).isEqualTo(4); in testInitialSettings_fromConfiguration() 68 assertThat(disk.getTotalSpace()).isEqualTo(96); in testInitialSettings_fromConfiguration() 69 assertThat(disk.getUnallocatedSpace()).isEqualTo(96); in testInitialSettings_fromConfiguration() 70 assertThat(disk.blockCache.blockCount()).isEqualTo(0); in testInitialSettings_fromConfiguration() 79 assertThat(blocks.blockCount()).isEqualTo(1); in testAllocate() 80 assertThat(blocks.getBlock(0).length).isEqualTo(4); in testAllocate() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/ |
D | ResNameTest.java | 12 …assertThat(ResName.qualifyResourceName("some.package:type/name", null, null)).isEqualTo("some.pack… in shouldQualify() 13 …fyResourceName("some.package:type/name", "default.package", "deftype")).isEqualTo("some.package:ty… in shouldQualify() 14 …ualifyResourceName("*android:type/name", "default.package", "deftype")).isEqualTo("android:type/na… in shouldQualify() 15 …qualifyResourceName("some.package:name", "default.package", "deftype")).isEqualTo("some.package:de… in shouldQualify() 16 …assertThat(ResName.qualifyResourceName("type/name", "default.package", "deftype")).isEqualTo("defa… in shouldQualify() 17 …assertThat(ResName.qualifyResourceName("name", "default.package", "deftype")).isEqualTo("default.p… in shouldQualify() 23 .isEqualTo(new ResName("some.package", "type", "name")); in shouldQualifyResNameFromString() 25 .isEqualTo(new ResName("some.package", "default_type", "name")); in shouldQualifyResNameFromString() 27 .isEqualTo(new ResName("default_package", "type", "name")); in shouldQualifyResNameFromString() 29 .isEqualTo(new ResName("default_package", "default_type", "name")); in shouldQualifyResNameFromString() [all …]
|
/external/javapoet/src/test/java/com/squareup/javapoet/ |
D | NameAllocatorTest.java | 28 assertThat(nameAllocator.newName("foo", 1)).isEqualTo("foo"); in usage() 29 assertThat(nameAllocator.newName("bar", 2)).isEqualTo("bar"); in usage() 30 assertThat(nameAllocator.get(1)).isEqualTo("foo"); in usage() 31 assertThat(nameAllocator.get(2)).isEqualTo("bar"); in usage() 36 assertThat(nameAllocator.newName("foo")).isEqualTo("foo"); in nameCollision() 37 assertThat(nameAllocator.newName("foo")).isEqualTo("foo_"); in nameCollision() 38 assertThat(nameAllocator.newName("foo")).isEqualTo("foo__"); in nameCollision() 43 assertThat(nameAllocator.newName("foo", 1)).isEqualTo("foo"); in nameCollisionWithTag() 44 assertThat(nameAllocator.newName("foo", 2)).isEqualTo("foo_"); in nameCollisionWithTag() 45 assertThat(nameAllocator.newName("foo", 3)).isEqualTo("foo__"); in nameCollisionWithTag() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/ |
D | RoboCursorTest.java | 52 assertThat(cursor.uri).isEqualTo(uri); in query_shouldMakeQueryParamsAvailable() 53 assertThat(cursor.projection[0]).isEqualTo("projection"); in query_shouldMakeQueryParamsAvailable() 54 assertThat(cursor.selection).isEqualTo("selection"); in query_shouldMakeQueryParamsAvailable() 55 assertThat(cursor.selectionArgs[0]).isEqualTo("selection"); in query_shouldMakeQueryParamsAvailable() 56 assertThat(cursor.sortOrder).isEqualTo("sortOrder"); in query_shouldMakeQueryParamsAvailable() 66 assertThat(cursor.getColumnCount()).isEqualTo(3); in getColumnCount_whenSetColumnNamesHasntBeenCalled_shouldReturnCountFromData() 69 assertThat(cursor.getColumnCount()).isEqualTo(4); in getColumnCount_whenSetColumnNamesHasntBeenCalled_shouldReturnCountFromData() 74 assertThat(cursor.getColumnCount()).isEqualTo(8); in getColumnName_shouldReturnColumnName() 75 assertThat(cursor.getColumnName(0)).isEqualTo(STRING_COLUMN); in getColumnName_shouldReturnColumnName() 76 assertThat(cursor.getColumnName(1)).isEqualTo(LONG_COLUMN); in getColumnName_shouldReturnColumnName() [all …]
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/ssa/ |
D | SsaDecoderTest.java | 54 assertThat(subtitle.getEventTimeCount()).isEqualTo(0); in decodeEmpty() 64 assertThat(subtitle.getEventTimeCount()).isEqualTo(6); in decodeTypical() 69 .isEqualTo(Layout.Alignment.ALIGN_CENTER); in decodeTypical() 72 .isEqualTo(Cue.ANCHOR_TYPE_MIDDLE); in decodeTypical() 73 assertThat(firstCue.position).isEqualTo(0.5f); in decodeTypical() 74 assertThat(firstCue.lineAnchor).isEqualTo(Cue.ANCHOR_TYPE_END); in decodeTypical() 75 assertThat(firstCue.lineType).isEqualTo(Cue.LINE_TYPE_FRACTION); in decodeTypical() 76 assertThat(firstCue.line).isEqualTo(0.95f); in decodeTypical() 97 assertThat(subtitle.getEventTimeCount()).isEqualTo(6); in decodeTypicalWithInitializationData() 110 assertThat(subtitle.getEventTime(0)).isEqualTo(1_000_000); in decodeOverlappingTimecodes() [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ |
D | VorbisUtilTest.java | 38 assertThat(iLog(0)).isEqualTo(0); in iLog_returnsHighestSetBit() 39 assertThat(iLog(1)).isEqualTo(1); in iLog_returnsHighestSetBit() 40 assertThat(iLog(2)).isEqualTo(2); in iLog_returnsHighestSetBit() 41 assertThat(iLog(3)).isEqualTo(2); in iLog_returnsHighestSetBit() 42 assertThat(iLog(4)).isEqualTo(3); in iLog_returnsHighestSetBit() 43 assertThat(iLog(5)).isEqualTo(3); in iLog_returnsHighestSetBit() 44 assertThat(iLog(8)).isEqualTo(4); in iLog_returnsHighestSetBit() 45 assertThat(iLog(-1)).isEqualTo(0); in iLog_returnsHighestSetBit() 46 assertThat(iLog(-122)).isEqualTo(0); in iLog_returnsHighestSetBit() 58 assertThat(vorbisIdHeader.sampleRate).isEqualTo(22050); in readIdHeader() [all …]
|
/external/turbine/javatests/com/google/turbine/bytecode/ |
D | ClassReaderTest.java | 74 .isEqualTo(TurbineFlag.ACC_PUBLIC | TurbineFlag.ACC_FINAL | TurbineFlag.ACC_SUPER); in methods() 75 assertThat(classFile.name()).isEqualTo("test/Hello"); in methods() 77 assertThat(classFile.superName()).isEqualTo("java/lang/Object"); in methods() 83 assertThat(f.access()).isEqualTo(TurbineFlag.ACC_PUBLIC); in methods() 84 assertThat(f.name()).isEqualTo("f"); in methods() 85 assertThat(f.descriptor()).isEqualTo("(Ljava/lang/String;)Ljava/lang/String;"); in methods() 86 assertThat(f.signature()).isEqualTo("<T:Ljava/lang/String;>(TT;)TT;"); in methods() 93 assertThat(g.access()).isEqualTo(TurbineFlag.ACC_PUBLIC | TurbineFlag.ACC_STATIC); in methods() 94 assertThat(g.name()).isEqualTo("g"); in methods() 95 assertThat(g.descriptor()).isEqualTo("(Z)V"); in methods() [all …]
|
/external/exoplayer/tree/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/ |
D | HlsMasterPlaylistParserTest.java | 235 assertThat(variants.get(0).format.bitrate).isEqualTo(1280000); in parseMasterPlaylist_withSimple_success() 236 assertThat(variants.get(0).format.codecs).isEqualTo("mp4a.40.2,avc1.66.30"); in parseMasterPlaylist_withSimple_success() 237 assertThat(variants.get(0).format.width).isEqualTo(304); in parseMasterPlaylist_withSimple_success() 238 assertThat(variants.get(0).format.height).isEqualTo(128); in parseMasterPlaylist_withSimple_success() 239 assertThat(variants.get(0).url).isEqualTo(Uri.parse("http://example.com/low.m3u8")); in parseMasterPlaylist_withSimple_success() 241 assertThat(variants.get(1).format.bitrate).isEqualTo(1280000); in parseMasterPlaylist_withSimple_success() 242 assertThat(variants.get(1).format.codecs).isEqualTo("mp4a.40.2 , avc1.66.30 "); in parseMasterPlaylist_withSimple_success() 244 .isEqualTo(Uri.parse("http://example.com/spaces_in_codecs.m3u8")); in parseMasterPlaylist_withSimple_success() 246 assertThat(variants.get(2).format.bitrate).isEqualTo(2560000); in parseMasterPlaylist_withSimple_success() 248 assertThat(variants.get(2).format.width).isEqualTo(384); in parseMasterPlaylist_withSimple_success() [all …]
|
/external/opencensus-java/contrib/dropwizard/src/test/java/io/opencensus/contrib/dropwizard/ |
D | DropWizardMetricsTest.java | 125 assertThat(metrics.size()).isEqualTo(9); in collect() 128 .isEqualTo( in collect() 136 assertThat(metrics.get(0).getTimeSeriesList().size()).isEqualTo(1); in collect() 137 assertThat(metrics.get(0).getTimeSeriesList().get(0).getLabelValues().size()).isEqualTo(0); in collect() 138 assertThat(metrics.get(0).getTimeSeriesList().get(0).getPoints().size()).isEqualTo(1); in collect() 140 .isEqualTo(Value.longValue(1)); in collect() 141 assertThat(metrics.get(0).getTimeSeriesList().get(0).getStartTimestamp()).isEqualTo(null); in collect() 144 .isEqualTo( in collect() 152 assertThat(metrics.get(1).getTimeSeriesList().size()).isEqualTo(1); in collect() 153 assertThat(metrics.get(1).getTimeSeriesList().get(0).getLabelValues().size()).isEqualTo(0); in collect() [all …]
|