gecko-dev/xpcom/tests/TestXPIDLString.cpp

19 lines
326 B
C++
Raw Normal View History

#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsXPIDLString.h"
static void
nsXPIDLStringTest_Value(char16_t** aResult)
{
*aResult = ToNewUnicode(NS_LITERAL_STRING("Hello, World"));
}
int
main(int argc, char* argv[])
{
nsXPIDLString s1;
nsXPIDLStringTest_Value(getter_Copies(s1));
return 0;
}