third_party/libusb/webport/src/chrome_usb/chrome-login-state-hook-unittest.js
/**
 * Simulates Chrome changing the session state.
 * @param {string} fakeNewSessionState
 * @param {!goog.testing.PropertyReplacer} propertyReplacer
 */
Simulates Chrome changing the session state.
Simulates Chrome changing the session state .
function changeSessionState(fakeNewSessionState, propertyReplacer) {
  propertyReplacer.replace(
      chrome.loginState, 'getSessionState', function(callback) {
        callback(fakeNewSessionState);
      });
  goog.array.forEach(sessionStateListeners, function(listener) {
    listener(fakeNewSessionState);
  });
}
function changeSessionState ( fakeNewSessionState , propertyReplacer ) { propertyReplacer . replace ( chrome . loginState , 'getSessionState' , function ( callback ) { callback ( fakeNewSessionState ) ; } ) ; goog . array . forEach ( sessionStateListeners , function ( listener ) { listener ( fakeNewSessionState ) ; } ) ; }
Simulates Chrome changing the session state.
Simulates Chrome changing the session state .