/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | SegmentSharingTest.kt | 19 import okio.TestUtil.assertEquivalent 31 assertEquivalent(snapshot, ByteString.EMPTY) in snapshotOfEmptyBuffer() 36 assertEquivalent(byteString, bufferWithSegments(xs, ys + zs).snapshot()) in snapshotsAreEquivalent() 37 assertEquivalent(byteString, bufferWithSegments(xs + ys + zs).snapshot()) in snapshotsAreEquivalent() 38 assertEquivalent(byteString, (xs + ys + zs).encodeUtf8()) in snapshotsAreEquivalent() 103 assertEquivalent(byteString, TestUtil.reserialize(byteString)) in snapshotJavaSerialization() 109 assertEquivalent(bufferA, bufferB) in clonesAreEquivalent() 110 assertEquivalent(bufferA, bufferWithSegments(xs + ys, zs)) in clonesAreEquivalent() 151 assertEquivalent(bufferB, bufferA) in appendSnapshotToEmptyBuffer() 159 assertEquivalent(bufferB, Buffer().writeUtf8(us + xs + ys)) in appendSnapshotToNonEmptyBuffer() [all …]
|
D | TestUtil.kt | 104 fun assertEquivalent(b1: ByteString, b2: ByteString) { in assertEquivalent() method 141 fun assertEquivalent(b1: Buffer, b2: Buffer) { in assertEquivalent() method
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | SegmentSharingTest.java | 20 import static okio.TestUtil.assertEquivalent; 35 assertEquivalent(snapshot, ByteString.EMPTY); in snapshotOfEmptyBuffer() 40 assertEquivalent(byteString, concatenateBuffers(xs, ys + zs).snapshot()); in snapshotsAreEquivalent() 41 assertEquivalent(byteString, concatenateBuffers(xs + ys + zs).snapshot()); in snapshotsAreEquivalent() 42 assertEquivalent(byteString, ByteString.encodeUtf8(xs + ys + zs)); in snapshotsAreEquivalent() 111 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in snapshotJavaSerialization() 117 assertEquivalent(bufferA, bufferB); in clonesAreEquivalent() 118 assertEquivalent(bufferA, concatenateBuffers(xs + ys, zs)); in clonesAreEquivalent() 159 assertEquivalent(bufferB, bufferA); in appendSnapshotToEmptyBuffer() 167 assertEquivalent(bufferB, new Buffer().writeUtf8(us + xs + ys)); in appendSnapshotToNonEmptyBuffer() [all …]
|
D | TestUtil.java | 53 public static void assertEquivalent(ByteString b1, ByteString b2) { in assertEquivalent() method in TestUtil 89 public static void assertEquivalent(Buffer b1, Buffer b2) { in assertEquivalent() method in TestUtil
|
D | ByteStringTest.java | 29 import static okio.TestUtil.assertEquivalent; 269 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in javaSerializationTestNonEmpty() 274 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in javaSerializationTestEmpty()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | CollectorTester.java | 157 assertEquivalent(expectedResult, (R) finalAccum); in doExpectCollects() 159 assertEquivalent(expectedResult, collector.finisher().apply(finalAccum)); in doExpectCollects() 163 private void assertEquivalent(@Nullable R expected, @Nullable R actual) { in assertEquivalent() method in CollectorTester
|
/external/icu/android_icu4j/testing/src/com/android/icu/test/util/ |
D | ExtendedTimeZoneParameterizedTest.java | 126 assertEquivalent(icuTrans, jtTrans); in testTransitionsNearInstants() 134 assertEquivalent(icuTrans, jtTrans); in testTransitionsNearInstants() 163 assertEquivalent(icuTrans, jtTrans); in testAllTransitions() 273 private static void assertEquivalent( in assertEquivalent() method in ExtendedTimeZoneParameterizedTest
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | StatsTest.java | 685 assertEquivalent(stats.mean(), stream(array).average().getAsDouble()); in testEquivalentStreams() 686 assertEquivalent(stats.sum(), stream(array).sum()); in testEquivalentStreams() 687 assertEquivalent(stats.max(), stream(array).max().getAsDouble()); in testEquivalentStreams() 688 assertEquivalent(stats.min(), stream(array).min().getAsDouble()); in testEquivalentStreams() 690 assertEquivalent(Stats.meanOf(array), stream(array).average().getAsDouble()); in testEquivalentStreams() 694 assertEquivalent(stats.mean(), streamStats.getAverage()); in testEquivalentStreams() 695 assertEquivalent(stats.sum(), streamStats.getSum()); in testEquivalentStreams() 696 assertEquivalent(stats.max(), streamStats.getMax()); in testEquivalentStreams() 697 assertEquivalent(stats.min(), streamStats.getMin()); in testEquivalentStreams() 701 private static void assertEquivalent(double actual, double expected) { in assertEquivalent() method in StatsTest
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | ByteStringJavaTest.java | 36 import static okio.TestUtil.assertEquivalent; 568 assertEquivalent(byteString, TestUtil.<ByteString>reserialize(byteString)); in javaSerializationTestNonEmpty() 573 assertEquivalent(byteString, TestUtil.<ByteString>reserialize(byteString)); in javaSerializationTestEmpty()
|