blobhasher_test.js
No description.

File Location

/goog/crypt/blobhasher_test.js


Public Protected Private

Global Functions

fsSliceBlobMock()
No description.
code »
readFromBlob(blobHashermaxReads)
Makes the blobHasher read chunks from the blob and hash it. The number of reads shall not exceed a pre-determined number (typically blob size / chunk size) for computing hash. This function fails fast (after maxReads is reached), assuming that the hasher failed to generate hashes. This prevents the test suite from going into infinite loop.
Arguments:
blobHasher : !goog.crypt.BlobHasher
Hasher in action.
maxReads : number
Max number of read attempts.
code »
setUp()
No description.
code »
tearDown()
No description.
code »
testAbortsAndErrors()
No description.
code »
testAbortsAndErrorsWhileThrottling()
No description.
code »
testBasicOperations()
No description.
code »
testBasicThrottling()
No description.
code »
testLengthZeroThrottling()
No description.
code »
testNormalFlow()
No description.
code »

Global Variables

BlobMock :
No description.
Code »
FileReaderMock :
No description.
Code »

Directory crypt

File Reference