cout << "\t1st Norm GetService failed\n";
printf("\t1st Norm GetService failed\n");
void TestNormalization(){   cout << "==============================\n";   cout << "Start nsIUnicodeNormalizer Test \n";   cout << "==============================\n";   nsIUnicodeNormalizer *t = NULL;   nsresult res;   res = nsServiceManager::GetService(kUnicodeNormalizerCID,                                      NS_GET_IID(nsIUnicodeNormalizer),                                      (nsISupports**) &t);              cout << "Test 1 - GetService():\n";   if(NS_FAILED(res) || ( t == NULL ) ) {     cout << "\t1st Norm GetService failed\n";   } else {     res = nsServiceManager::ReleaseService(kUnicodeNormalizerCID, t);   }   res = nsServiceManager::GetService(kUnicodeNormalizerCID,                                NS_GET_IID(nsIUnicodeNormalizer),                                (nsISupports**) &t);              if(NS_FAILED(res) || ( t == NULL ) ) {     cout << "\t2nd GetService failed\n";   } else {    cout << "Test 2 - NormalizeUnicode(PRUint32, const nsAString&, nsAString&):\n";    nsAutoString resultStr;    res =  t->NormalizeUnicodeNFD(nsDependentString(normStr), resultStr);    if (resultStr.Equals(nfdForm)) {      cout << " Succeeded in NFD UnicodeNormalizer test. \n";    } else {      cout << " Failed in NFD UnicodeNormalizer test. \n";    }    res = nsServiceManager::ReleaseService(kUnicodeNormalizerCID, t);   }   cout << "==============================\n";   cout << "Finish nsIUnicodeNormalizer Test \n";   cout << "==============================\n";}