diff -r 000000000000 -r 6474c204b198 xpcom/tests/TestXPIDLString.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xpcom/tests/TestXPIDLString.cpp Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,18 @@ +#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; +} +