function registerMockMessageCallbacks(mockObject, mockClass) {
  if (!deferGlobalOverrides && !originalChrome)
    overrideChrome();
  var mockProxy = mockObject.proxy();
  for (var func in mockClass.prototype) {
    if (typeof mockClass.prototype[func] === 'function') {
      registerMessageCallback(func, mockProxy, mockProxy[func]);
    }
  }
}
/**
 * Register all methods of {@code mockClass.prototype} with messages of the
 * same name as the method, using the proxy of the |mockObject| as the
 * |messageHandler| when registering.
 * @param {Mock4JS.Mock} mockObject The mock to register callbacks against.
 * @param {function(new:Object)} mockClAss Constructor for the mocked class.
 * @see registerMessageCallback
 * @see overrideChrome
 */
Register all methods of  mockClass.prototype with messages of the
same name as the method, using the proxy of the |mockObject| as the
|messageHandler| when registering.
@param {Mock4JS.Mock} mockObject The mock to register callbacks against.
@param {function(new:Object)} mockClAss Constructor for the mocked class.
@see registerMessageCallback
@see overrideChrome
Register all methods of mockClass . prototype with messages of the same name as the method using the proxy of the |mockObject| as the |messageHandler| when registering . @param { Mock4JS . Mock } mockObject The mock to register callbacks against . @param { function ( new : Object ) } mockClAss Constructor for the mocked class . @see registerMessageCallback @see overrideChrome
function registerMockMessageCallbacks(mockObject, mockClass) {
  if (!deferGlobalOverrides && !originalChrome)
    overrideChrome();
  var mockProxy = mockObject.proxy();
  for (var func in mockClass.prototype) {
    if (typeof mockClass.prototype[func] === 'function') {
      registerMessageCallback(func, mockProxy, mockProxy[func]);
    }
  }
}
function registerMockMessageCallbacks ( mockObject , mockClass ) { if ( ! deferGlobalOverrides && ! originalChrome ) overrideChrome ( ) ; var mockProxy = mockObject . proxy ( ) ; for ( var func in mockClass . prototype ) { if ( typeof mockClass . prototype [ func ] === 'function' ) { registerMessageCallback ( func , mockProxy , mockProxy [ func ] ) ; } } }
Register all methods of {@code mockClass.prototype} with messages of the
 same name as the method, using the proxy of the |mockObject| as the
 |messageHandler| when registering.
Register all methods of { @code mockClass . prototype } with messages of the same name as the method using the proxy of the |mockObject| as the |messageHandler| when registering .