cout << "Test 5 Passed\n\n";
printf("Test 5 Passed\n\n");
PRBool TestWordBreaker(){   cout << "==================================\n";   cout << "Finish nsIWordBreakerFactory Test \n";   cout << "==================================\n";   nsIWordBreakerFactory *t = NULL;   nsresult res;   PRBool ok = PR_TRUE;   res = nsServiceManager::GetService(kLWBrkCID,                                kIWordBreakerFactory,                                (nsISupports**) &t);              cout << "Test 1 - GetService():\n";   if(NS_FAILED(res) || ( t == NULL ) ) {     cout << "\t1st GetService failed\n";     ok = PR_FALSE;   } else {     res = nsServiceManager::ReleaseService(kLWBrkCID, t);   }   res = nsServiceManager::GetService(kLWBrkCID,                                kIWordBreakerFactory,                                (nsISupports**) &t);              if(NS_FAILED(res) || ( t == NULL ) ) {     cout << "\t2nd GetService failed\n";     ok = PR_FALSE;   } else {     cout << "Test 3 - GetWordBreaker():\n";     nsIWordBreaker *lb;     nsAutoString lb_arg;     res = t->GetBreaker(lb_arg, &lb);     if(NS_FAILED(res) || (lb == NULL)) {         cout << "GetBreaker(nsIWordBreaker*) failed\n";         ok = PR_FALSE;     } else {                  cout << "Test 4 - {First,Next}ForwardBreak():\n";         if( TestASCIIWB(lb, teng1, sizeof(teng1)/sizeof(char),                    wexp1, sizeof(wexp1)/sizeof(PRUint32)) )         {           cout << "Test 4 Passed\n\n";         } else {           ok = PR_FALSE;           cout << "Test 4 Failed\n\n";         }         cout << "Test 5 - {First,Next}ForwardBreak():\n";         if(TestASCIIWB(lb, teng2, sizeof(teng2)/sizeof(char),                    wexp2, sizeof(wexp2)/sizeof(PRUint32)) )         {           cout << "Test 5 Passed\n\n";         } else {           ok = PR_FALSE;           cout << "Test 5 Failed\n\n";         }         cout << "Test 6 - {First,Next}ForwardBreak():\n";         if(TestASCIIWB(lb, teng3, sizeof(teng3)/sizeof(char),                    wexp3, sizeof(wexp3)/sizeof(PRUint32)) )         {           cout << "Test 6 Passed\n\n";         } else {           ok = PR_FALSE;           cout << "Test 6 Failed\n\n";         }         NS_IF_RELEASE(lb);     }     res = nsServiceManager::ReleaseService(kLWBrkCID, t);   }   cout << "==================================\n";   cout << "Finish nsIWordBreakerFactory Test \n";   cout << "==================================\n";   return ok;}