*not part of the buld*

blackConnect tests update


git-svn-id: svn://10.0.0.236/trunk@99925 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
idk%eng.sun.com
2001-07-25 22:05:35 +00:00
parent ad651ef17b
commit 4e0a322dbc
92 changed files with 1360 additions and 885 deletions

View File

@@ -37,9 +37,9 @@ CPPSRCS = \
X2JINOUTClientTestComponent.cpp \
X2JINOUTClientTestComponentFactory.cpp \
$(NULL)
XPIDLSRCS = iX2JINOUTClientTestComponent.idl
JAVAI = iX2JINOUTClientTestComponent.class
DSO_LDOPTS += \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \
@@ -47,7 +47,3 @@ DSO_LDOPTS += \
include $(topsrcdir)/config/rules.mk
$(JAVAI)::
$(JDKHOME)/bin/javac -classpath .:$(DIST)/classes -d $(DIST)/classes $<
install:: $(JAVAI)

View File

@@ -492,6 +492,23 @@ void X2JINOUTClientTestComponentImpl::TestWString(){
NS_FREE_STR_BUF(aBuf2)
}
_string=NULL;
cstr=new nsCString(_string);
_wstring=cstr->ToNewUnicode();
str = *(new nsString(_wstring));
{
NS_ALLOC_STR_BUF(aBuf5,str,100)
val=PR_sprintf_append(val,"%s\n",aBuf5);
NS_FREE_STR_BUF(aBuf5)
}
serverComponent->TestWString(&_wstring);
str = *(new nsString(_wstring));
{
NS_ALLOC_STR_BUF(aBuf6,str,100)
xval=PR_sprintf_append(xval,"%s\n",aBuf6);
NS_FREE_STR_BUF(aBuf6)
}
_string="Test string.";
cstr=new nsCString(_string);
_wstring=cstr->ToNewUnicode();