setUp() {
    mockControl = new MockControl();

    mockClock = new MockClock(true);
    // Time should never be 0...
    mockClock.tick();
    /** @suppress {missingRequire} */
    mockHTML5LocalStorageCtor = mockControl.createConstructorMock(
        goog.storage.mechanism, 'HTML5LocalStorage');

    mockHtml5LocalStorage = new StructsMap();

    // The builtin localStorage returns null instead of undefined.
    const originalGetFn =
        goog.bind(mockHtml5LocalStorage.get, mockHtml5LocalStorage);
    mockHtml5LocalStorage.get = (key) => {
      const value = originalGetFn(key);
      if (value === undefined) {
        return null;
      }
      return value;
    };
    /**
     * @suppress {strictMissingProperties} suppression added to enable type
     * checking
     */
    mockHtml5LocalStorage.key = (idx) => mockHtml5LocalStorage.getKeys()[idx];
    /**
     * @suppress {strictMissingProperties} suppression added to enable type
     * checking
     */
    mockHtml5LocalStorage.isAvailable = () => true;

    // IE has problems. IE9+ still dispatches storage events locally. IE8 also
    // doesn't include the key/value information. So for IE, every time we get a
    // "set" on localStorage we simulate for the appropriate browser.
    if (userAgent.IE) {
      const target = isIe8 ? document : window;
      const originalSetFn =
          goog.bind(mockHtml5LocalStorage.set, mockHtml5LocalStorage);
      mockHtml5LocalStorage.set = (key, value) => {
        originalSetFn(key, value);
        const event = new GoogTestingEvent('storage', target);
        if (!isIe8) {
          /**
           * @suppress {strictMissingProperties} suppression added to enable
           * type checking
           */
          event.key = key;
          /**
           * @suppress {strictMissingProperties} suppression added to enable
           * type checking
           */
          event.newValue = value;
        }
        events.fireBrowserEvent(event);
      };
    }
  }
@suppress {strictMissingProperties,visibility} suppression added to
enable type checking