function assertSortCountryListForLocale(sortedNames, inputNames, locale) {
  var countryList = inputNames.map(function(name) {
    return {name: name, e164_key: '', e164_cc: '', iso2_cc: ''};
  });
  firebaseui.auth.data.country.sortCountryListForLocale(countryList, locale);
  var actualSortedNames = countryList.map(function(country) {
    return country.name;
  });
  assertArrayEquals(sortedNames, actualSortedNames);
}
Asserts that the given countries are sorted by sortCountryListForLocale.
@param {!Array<string>} sortedNames
@param {!Array<string>} inputNames
@param {string} locale