B2G/gecko/services/sync/tests/unit/head_helpers.js
/*
 * Mock implementation of WeaveCrypto. It does not encrypt or
 * decrypt, merely returning the input verbatim.
 */
Mock implementation of WeaveCrypto. It does not encrypt or
decrypt, merely returning the input verbatim.
Mock implementation of WeaveCrypto . It does not encrypt or decrypt merely returning the input verbatim .
function FakeCryptoService() {
  this.counter = 0;
  delete Svc.Crypto;  
  Svc.Crypto = this;
  CryptoWrapper.prototype.ciphertextHMAC = function ciphertextHMAC(keyBundle) {
    return fakeSHA256HMAC(this.ciphertext);
  };
}
function FakeCryptoService ( ) { this . counter = 0 ; delete Svc . Crypto ; Svc . Crypto = this ; CryptoWrapper . prototype . ciphertextHMAC = function ciphertextHMAC ( keyBundle ) { return fakeSHA256HMAC ( this . ciphertext ) ; } ; }
Mock implementation of WeaveCrypto.
Mock implementation of WeaveCrypto .
// get rid of the getter first