Bug 319997 - Convert parser tests to use the frozen linkage, r=mrbkap

This commit is contained in:
bsmedberg@covad.net
2005-12-12 20:56:37 +00:00
parent 1b1721e893
commit eb08713416
6 changed files with 22 additions and 13 deletions

View File

@@ -37,10 +37,12 @@
#include "nsXPCOM.h"
#include "nsIComponentManager.h"
#include "nsComponentManagerUtils.h"
#include "nsParserCIID.h"
#include "nsIParser.h"
#include "nsILoggingSink.h"
#include "nsIInputStream.h"
#include "nsCOMPtr.h"
// Class IID's
static NS_DEFINE_CID(kParserCID, NS_PARSER_CID);
@@ -94,7 +96,7 @@ nsresult ParseData(char* anInputStream,char* anOutputStream) {
while(!done) {
length = PR_Read(in, buffer, sizeof(buffer));
if (length != 0) {
stream.AppendWithConversion(buffer, length);
stream.Append(NS_ConvertUTF8toUTF16(buffer, length));
}
else {
done=PR_TRUE;