xpcom/tests/TestXPIDLString.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/tests/TestXPIDLString.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +#include "nsString.h"
     1.5 +#include "nsReadableUtils.h"
     1.6 +#include "nsXPIDLString.h"
     1.7 +
     1.8 +static void
     1.9 +nsXPIDLStringTest_Value(char16_t** aResult)
    1.10 +{
    1.11 +    *aResult = ToNewUnicode(NS_LITERAL_STRING("Hello, World"));
    1.12 +}
    1.13 +
    1.14 +int
    1.15 +main(int argc, char* argv[])
    1.16 +{
    1.17 +    nsXPIDLString s1;
    1.18 +    nsXPIDLStringTest_Value(getter_Copies(s1));
    1.19 +    return 0;
    1.20 +}
    1.21 +

mercurial