Home
last modified time | relevance | path

Searched refs:getDigestIfPresent (Results 1 – 4 of 4) sorted by relevance

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/transforms/
DIntegrityTransformTest.java85 assertThat(IntegrityTransform.getDigestIfPresent(uriWithHash)).isEqualTo(ORIGTEXT_SHA256_B64); in write_shouldComputeChecksum()
101 assertThat(IntegrityTransform.getDigestIfPresent(uriFuture.get())) in consumeStream_shouldComputeChecksum()
118 assertThat(IntegrityTransform.getDigestIfPresent(uriFuture.get())) in consumeStream_shouldBothVerifyAndComputeChecksum()
131 assertThat(IntegrityTransform.getDigestIfPresent(uriFuture2.get())) in consumeStream_shouldBothVerifyAndComputeChecksum()
152 assertThat(IntegrityTransform.getDigestIfPresent(result.get())).isEqualTo(ORIGTEXT_SHA256_B64); in readFully_shouldComputeChecksum()
172 assertThat(IntegrityTransform.getDigestIfPresent(result.get())) in readWithWithPrematureClose_shouldComputeDifferentChecksum()
190 assertThat(IntegrityTransform.getDigestIfPresent(uriFuture.get())) in read_shouldValidateChecksum()
239 assertThat(IntegrityTransform.getDigestIfPresent(uriFuture.get())) in partialReadAndClose_shouldFailValidation()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DIntegrityUriComputingOpenerTest.java58 String digest = IntegrityTransform.getDigestIfPresent(uriWithChecksum); in integrityUriComputingOpener_shouldProduceCorrectChecksum()
73 String digest = IntegrityTransform.getDigestIfPresent(uriWithChecksum); in integrityUriComputingOpener_shouldIgnoreIncorrectInitialSpec()
88 String digest = IntegrityTransform.getDigestIfPresent(uriWithChecksum); in integrityUriComputingOpener_shouldIgnoreIntegrityParamWithNoSubparam()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/
DIntegrityUriComputingOpener.java65 String base64Digest = IntegrityTransform.getDigestIfPresent(uriWithDigest); in open()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/transforms/
DIntegrityTransform.java74 public static String getDigestIfPresent(Uri uri) { in getDigestIfPresent() method in IntegrityTransform