Home
last modified time | relevance | path

Searched refs:IntegrityTransform (Results 1 – 9 of 9) sorted by relevance

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DIntegrityUriComputingOpenerTest.java25 import com.google.android.libraries.mobiledatadownload.file.transforms.IntegrityTransform;
50 ImmutableList.of(new JavaFileBackend()), ImmutableList.of(new IntegrityTransform())); in setUpStorage()
58 String digest = IntegrityTransform.getDigestIfPresent(uriWithChecksum); in integrityUriComputingOpener_shouldProduceCorrectChecksum()
68 TransformProto.IntegrityTransform.newBuilder() in integrityUriComputingOpener_shouldIgnoreIncorrectInitialSpec()
73 String digest = IntegrityTransform.getDigestIfPresent(uriWithChecksum); in integrityUriComputingOpener_shouldIgnoreIncorrectInitialSpec()
83 .setIntegrity(TransformProto.IntegrityTransform.getDefaultInstance()) in integrityUriComputingOpener_shouldIgnoreIntegrityParamWithNoSubparam()
88 String digest = IntegrityTransform.getDigestIfPresent(uriWithChecksum); in integrityUriComputingOpener_shouldIgnoreIntegrityParamWithNoSubparam()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/transforms/
DIntegrityTransformTest.java62 ImmutableList.of(new JavaFileBackend()), ImmutableList.of(new IntegrityTransform())); in setUpStorage()
67 Transform transform = new IntegrityTransform(); in name_isIntegrity()
85 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()
DTransformProtosTest.java88 .setIntegrity(TransformProto.IntegrityTransform.getDefaultInstance())) in integrityProto_producesIntegrityTransform()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/
DIntegrityUriComputingOpener.java22 import com.google.android.libraries.mobiledatadownload.file.transforms.IntegrityTransform;
35 .setIntegrity(TransformProto.IntegrityTransform.getDefaultInstance())
65 String base64Digest = IntegrityTransform.getDigestIfPresent(uriWithDigest); in open()
68 .setIntegrity(TransformProto.IntegrityTransform.newBuilder().setSha256(base64Digest)) in open()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/transforms/
DTransformProtos.java44 .setIntegrity(TransformProto.IntegrityTransform.getDefaultInstance())
59 .setIntegrity(TransformProto.IntegrityTransform.newBuilder().setSha256(sha256)) in integrityTransformSpecWithSha256()
110 TransformProto.IntegrityTransform integrity = transformProto.getIntegrity(); in toEncodedSpec()
DBUILD38 srcs = ["IntegrityTransform.java"],
DIntegrityTransform.java67 public final class IntegrityTransform implements Transform { class
/external/mobile-data-download/proto/
Dtransform.proto38 IntegrityTransform integrity = 3;
64 message IntegrityTransform { message
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/internal/
DDataFileGroupValidatorTest.java27 import com.google.mobiledatadownload.TransformProto.IntegrityTransform;
146 .setIntegrity(IntegrityTransform.getDefaultInstance()))) in testAddGroupForDownload_integrityFileTransform()
286 .setIntegrity(IntegrityTransform.getDefaultInstance())))) in testAddGroupForDownload_readTransform()