tenfourfox/xpcom/tests/gtest/TestXPIDLString.cpp
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

19 lines
379 B
C++

#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsXPIDLString.h"
#include "gtest/gtest.h"
static void
nsXPIDLStringTest_Value(char16_t** aResult)
{
*aResult = ToNewUnicode(NS_LITERAL_STRING("Hello, World"));
}
TEST(XPIDLString, Main)
{
nsXPIDLString s1;
nsXPIDLStringTest_Value(getter_Copies(s1));
EXPECT_TRUE(s1.EqualsLiteral("Hello, World"));
}