function checkEachUserAgentDetected(userAgents, browser) {
  googArray.forEach(userAgents, (ua) => {
    mockAgent.setUserAgentString(ua.ua);
    updateUserAgentUtils();

    assertIsBrowser(browser);

    // Check versions
    ua.versions.forEach(v => {
      mockAgent.setUserAgentString(ua.ua);
      updateUserAgentUtils();
      assertEquals(
          'Expected version ' + v.num + ' from ' + ua.ua + ' but got ' +
              product.VERSION,
          v.truth, isVersion(v.num));
    });
  });
}
@param {Array<{
          ua: string,
          versions: Array<{
            num: (string|number), truth: boolean}>}>} userAgents
@param {string} browser