unblockAndReject_(reason) {
    if (this.state_ != mr.MockPromise.State_.BLOCKED) {
      throw Error('Expected state to be BLOCKED.');
    }
    this.state_ = mr.MockPromise.State_.PENDING;
    this.resolve_(mr.MockPromise.State_.REJECTED, reason);
  }
/**
   * Unblocks the Promise and rejects it with the given rejection reason.
   *
   * @param {*} reason
   * @private
   */
Unblocks the Promise and rejects it with the given rejection reason.
@param {*} reason
@private
Unblocks the Promise and rejects it with the given rejection reason . @param { * } reason @private
unblockAndReject_(reason) {
    if (this.state_ != mr.MockPromise.State_.BLOCKED) {
      throw Error('Expected state to be BLOCKED.');
    }
    this.state_ = mr.MockPromise.State_.PENDING;
    this.resolve_(mr.MockPromise.State_.REJECTED, reason);
  }
unblockAndReject_ ( reason ) { if ( this . state_ != mr . MockPromise . State_ . BLOCKED ) { throw Error ( 'Expected state to be BLOCKED.' ) ; } this . state_ = mr . MockPromise . State_ . PENDING ; this . resolve_ ( mr . MockPromise . State_ . REJECTED , reason ) ; }
Unblocks the Promise and rejects it with the given rejection reason.
Unblocks the Promise and rejects it with the given rejection reason .