Home | History | Annotate | Download | only in test

Lines Matching full:c_str

403   EXPECT_STREQ("", WideStringToUtf8(L"", 0).c_str());
404 EXPECT_STREQ("", WideStringToUtf8(L"", -1).c_str());
409 EXPECT_STREQ("a", WideStringToUtf8(L"a", 1).c_str());
410 EXPECT_STREQ("ab", WideStringToUtf8(L"ab", 2).c_str());
411 EXPECT_STREQ("a", WideStringToUtf8(L"a", -1).c_str());
412 EXPECT_STREQ("ab", WideStringToUtf8(L"ab", -1).c_str());
419 EXPECT_STREQ("\xC3\x93", WideStringToUtf8(L"\xD3", 1).c_str());
420 EXPECT_STREQ("\xC3\x93", WideStringToUtf8(L"\xD3", -1).c_str());
423 EXPECT_STREQ("\xD5\xB6", WideStringToUtf8(L"\x576", 1).c_str());
424 EXPECT_STREQ("\xD5\xB6", WideStringToUtf8(L"\x576", -1).c_str());
431 EXPECT_STREQ("\xE0\xA3\x93", WideStringToUtf8(L"\x8D3", 1).c_str());
432 EXPECT_STREQ("\xE0\xA3\x93", WideStringToUtf8(L"\x8D3", -1).c_str());
435 EXPECT_STREQ("\xEC\x9D\x8D", WideStringToUtf8(L"\xC74D", 1).c_str());
436 EXPECT_STREQ("\xEC\x9D\x8D", WideStringToUtf8(L"\xC74D", -1).c_str());
441 EXPECT_STREQ("ABC", WideStringToUtf8(L"ABC\0XYZ", 100).c_str());
447 EXPECT_STREQ("ABC", WideStringToUtf8(L"ABCDEF", 3).c_str());
457 EXPECT_STREQ("\xF0\x90\xA3\x93", WideStringToUtf8(L"\x108D3", 1).c_str());
458 EXPECT_STREQ("\xF0\x90\xA3\x93", WideStringToUtf8(L"\x108D3", -1).c_str());
461 EXPECT_STREQ("\xF4\x88\x98\xB4", WideStringToUtf8(L"\x108634", 1).c_str());
462 EXPECT_STREQ("\xF4\x88\x98\xB4", WideStringToUtf8(L"\x108634", -1).c_str());
468 WideStringToUtf8(L"\xABCDFF", -1).c_str());
475 WideStringToUtf8(L"\xD801\xDC00", -1).c_str());
482 EXPECT_STREQ("\xED\xA0\x80", WideStringToUtf8(L"\xD800", -1).c_str());
484 EXPECT_STREQ("\xED\xA0\x80$", WideStringToUtf8(L"\xD800$", -1).c_str());
486 EXPECT_STREQ("\xED\xB0\x80PQR", WideStringToUtf8(L"\xDC00PQR", -1).c_str());
500 WideStringToUtf8(L"\x108634\xC74D\n\x576\x8D3\x108634", -1).c_str());
506 WideStringToUtf8(L"\xC74D\n\x576\x8D3", -1).c_str());
806 // We aren't using EXPECT_EQ(NULL, s1.c_str()) because comparing
809 EXPECT_TRUE(NULL == s1.c_str());
814 EXPECT_STREQ("Hi", s2.c_str());
819 EXPECT_STREQ("hel", s3.c_str());
824 EXPECT_FALSE(String(NULL, 0).c_str() == NULL);
829 EXPECT_EQ('a', s4.c_str()[0]);
830 EXPECT_EQ('\0', s4.c_str()[1]);
831 EXPECT_EQ('b', s4.c_str()[2]);
832 EXPECT_EQ('c', s4.c_str()[3]);
837 EXPECT_TRUE(s5.c_str() == NULL);
842 EXPECT_STREQ("hel", s6.c_str());
847 EXPECT_EQ('a', s7.c_str()[0]);
848 EXPECT_EQ('\0', s7.c_str()[1]);
849 EXPECT_EQ('b', s7.c_str()[2]);
850 EXPECT_EQ('c', s7.c_str()[3]);
858 EXPECT_STREQ("", dest1.c_str());
864 EXPECT_STREQ("Hi", dest2.c_str());
870 EXPECT_EQ('a', dest3.c_str()[0]);
871 EXPECT_EQ('\0', dest3.c_str()[1]);
872 EXPECT_EQ('b', dest3.c_str()[2]);
899 EXPECT_STREQ("", dest1.c_str());
905 EXPECT_STREQ("Hi", dest2.c_str());
911 EXPECT_EQ('x', dest3.c_str()[0]);
912 EXPECT_EQ('\0', dest3.c_str()[1]);
913 EXPECT_EQ('y', dest3.c_str()[2]);
937 String::ShowCStringQuoted(NULL).c_str());
939 String::ShowCStringQuoted("").c_str());
941 String::ShowCStringQuoted("foo").c_str());
1088 EXPECT_STREQ(NULL, dest.c_str());
1097 EXPECT_STREQ("", dest.c_str());
1106 EXPECT_STREQ("hello", dest.c_str());
1112 EXPECT_EQ('x', dest2.c_str()[0]);
1113 EXPECT_EQ('\0', dest2.c_str()[1]);
1114 EXPECT_EQ('y', dest2.c_str()[2]);
1122 EXPECT_STREQ("hello", dest.c_str());
1140 EXPECT_STREQ("Hello, 42", String::Format("%s, %d", "Hello", 42).c_str());
1147 EXPECT_STREQ(buffer, String::Format("%s", buffer).c_str());
1151 String::Format("x%s", buffer).c_str());
1159 String::Format("%").c_str());
1168 String::ShowWideCString(NULL).c_str());
1169 EXPECT_STREQ("", String::ShowWideCString(L"").c_str());
1170 EXPECT_STREQ("foo", String::ShowWideCString(L"foo").c_str());
1176 String::ShowWideCStringQuoted(NULL).c_str());
1178 String::ShowWideCStringQuoted(L"").c_str());
1180 String::ShowWideCStringQuoted(L"foo").c_str());
1717 EXPECT_STREQ("auto", GTEST_FLAG(color).c_str());
1719 EXPECT_STREQ("", GTEST_FLAG(filter).c_str());
1721 EXPECT_STREQ("", GTEST_FLAG(output).c_str());
1789 putenv(const_cast<char*>(added_env[name]->c_str()));
1792 _putenv((Message() << name << "=" << value).GetString().c_str());
3426 msg1.c_str());
3435 msg2.c_str());
3444 msg3.c_str());
3451 msg4.c_str());
3462 msg5.c_str());
3471 AppendUserMessage(foo, msg).c_str());
3475 AppendUserMessage(foo, msg).c_str());
4279 EXPECT_STREQ("5", StreamableToString(5).c_str());
4286 EXPECT_STRNE("(null)", StreamableToString(p).c_str());
4292 EXPECT_STREQ("(null)", StreamableToString(p).c_str());
4297 EXPECT_STREQ("Foo", StreamableToString("Foo").c_str());
4303 EXPECT_STREQ("(null)", StreamableToString(p).c_str());
4313 str.c_str());
4792 EXPECT_STREQ("1(1)", msg.GetString().c_str());
4817 EXPECT_STREQ("1(1)", msg.GetString().c_str());
4842 EXPECT_STREQ("1(1)", msg.GetString().c_str());
4867 EXPECT_STREQ("1(1)", msg.GetString().c_str());
4882 msg.GetString().c_str());
4890 (Message() << const_wstr).GetString().c_str());
4895 (Message() << wstr).GetString().c_str());
4900 (Message() << const_wstr).GetString().c_str());
4905 (Message() << wstr).GetString().c_str());
5195 EXPECT_STREQ(expected.filter, GTEST_FLAG(filter).c_str());
5197 EXPECT_STREQ(expected.output, GTEST_FLAG(output).c_str());
6302 EXPECT_STREQ("", GetCurrentOsStackTraceExceptTop(unit_test, 0).c_str());
6303 EXPECT_STREQ("", GetCurrentOsStackTraceExceptTop(unit_test, 1).c_str());
6514 EXPECT_STREQ("1st.OnTestProgramStart", vec[0].c_str());
6515 EXPECT_STREQ("2nd.OnTestProgramStart", vec[1].c_str());
6516 EXPECT_STREQ("3rd.OnTestProgramStart", vec[2].c_str());
6522 EXPECT_STREQ("3rd.OnTestProgramEnd", vec[0].c_str());
6523 EXPECT_STREQ("2nd.OnTestProgramEnd", vec[1].c_str());
6524 EXPECT_STREQ("1st.OnTestProgramEnd", vec[2].c_str());
6530 EXPECT_STREQ("1st.OnTestIterationStart", vec[0].c_str());
6531 EXPECT_STREQ("2nd.OnTestIterationStart", vec[1].c_str());
6532 EXPECT_STREQ("3rd.OnTestIterationStart", vec[2].c_str());
6538 EXPECT_STREQ("3rd.OnTestIterationEnd", vec[0].c_str());
6539 EXPECT_STREQ("2nd.OnTestIterationEnd", vec[1].c_str());
6540 EXPECT_STREQ("1st.OnTestIterationEnd", vec[2].c_str());