function validateRecordedListener(expected, recorder) {
  assertObjectEquals(
      expected,
      googArray.map(recorder.getCalls(), (call) => call.getArguments()));
}
Checks if the actual log of a fake listener matches the expectations.
@param {!Array<!Array<*>>} expected The expected log from the fake listener.
@param {!Function} recorder The output of `recordFunction` for logging all
    calls to the fake listener.
@return {boolean} True if the recorder's log is expected.
@suppress {strictMissingProperties,missingReturn} suppression added to enable
type checking