res = ccMan->GetCharsetAtom(csAlias2.GetUnicode(), getter_AddRefs(csAtom));
res = ccMan->GetCharsetAtom(csAlias2.get(), getter_AddRefs(csAtom));
nsresult nsTestUConv::TestCharsetManager(){  char * trace = "TestCharsetManager";  mLog.AddTrace(trace);  nsresult res = NS_OK;  const PRUnichar * name;  nsCOMPtr<nsIAtom> csAtom;  NS_WITH_SERVICE(nsICharsetConverterManager2, ccMan, kCharsetConverterManagerCID, &res);  if (NS_FAILED(res)) {    mLog.PrintError("NS_WITH_SERVICE", res);    return res;  }  // test alias resolving capability  nsAutoString csAlias; csAlias.AssignWithConversion("iso-10646-ucs-basic");  nsAutoString csName; csName.AssignWithConversion("UTF-16BE");  res = ccMan->GetCharsetAtom(csAlias.GetUnicode(), getter_AddRefs(csAtom));  if (NS_FAILED(res)) {    mLog.PrintError("GetCharsetAtom()", res);    return res;  }  res = csAtom->GetUnicode(&name);  if (NS_FAILED(res)) {    mLog.PrintError("GetUnicode()", res);    return res;  }  if (!csName.EqualsWithConversion(name)) {    mLog.PrintError("Equals()", "unexpected charset name");    return NS_ERROR_UNEXPECTED;  }  // test self returning if alias was not found  nsAutoString csAlias2; csAlias2.AssignWithConversion("Totally_dummy_charset_name");  res = ccMan->GetCharsetAtom(csAlias2.GetUnicode(), getter_AddRefs(csAtom));  if (NS_FAILED(res)) {    mLog.PrintError("GetCharsetAtom()", res);    return res;  }  res = csAtom->GetUnicode(&name);  if (NS_FAILED(res)) {    mLog.PrintError("GetUnicode()", res);    return res;  }  if (!csAlias2.EqualsWithConversion(name)) {    mLog.PrintError("Equals()", "unexpected charset name");    return NS_ERROR_UNEXPECTED;  }  mLog.DelTrace(trace);  return res;}