xpcom/tests/TestXPIDLString.cpp

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:136a77a30414
1 #include "nsString.h"
2 #include "nsReadableUtils.h"
3 #include "nsXPIDLString.h"
4
5 static void
6 nsXPIDLStringTest_Value(char16_t** aResult)
7 {
8 *aResult = ToNewUnicode(NS_LITERAL_STRING("Hello, World"));
9 }
10
11 int
12 main(int argc, char* argv[])
13 {
14 nsXPIDLString s1;
15 nsXPIDLStringTest_Value(getter_Copies(s1));
16 return 0;
17 }
18

mercurial