Lines Matching refs:JoinString
712 TEST(StringUtilTest, JoinString) { in TEST() argument
715 EXPECT_EQ(std::string(), JoinString(parts, separator)); in TEST()
718 EXPECT_EQ(std::string(), JoinString(parts, separator)); in TEST()
722 EXPECT_EQ("a", JoinString(parts, separator)); in TEST()
726 EXPECT_EQ("a, b, c", JoinString(parts, separator)); in TEST()
729 EXPECT_EQ("a, b, c, ", JoinString(parts, separator)); in TEST()
731 EXPECT_EQ("a|b|c|| ", JoinString(parts, "|")); in TEST()
737 EXPECT_EQ(string16(), JoinString(parts, separator)); in TEST()
740 EXPECT_EQ(string16(), JoinString(parts, separator)); in TEST()
744 EXPECT_EQ(ASCIIToUTF16("a"), JoinString(parts, separator)); in TEST()
748 EXPECT_EQ(ASCIIToUTF16("a, b, c"), JoinString(parts, separator)); in TEST()
751 EXPECT_EQ(ASCIIToUTF16("a, b, c, "), JoinString(parts, separator)); in TEST()
753 EXPECT_EQ(ASCIIToUTF16("a|b|c|| "), JoinString(parts, ASCIIToUTF16("|"))); in TEST()
759 EXPECT_EQ(std::string(), JoinString(parts, separator)); in TEST()
763 EXPECT_EQ(std::string(), JoinString(parts, separator)); in TEST()
767 EXPECT_EQ("a", JoinString(parts, separator)); in TEST()
771 EXPECT_EQ("a, b, c", JoinString(parts, separator)); in TEST()
774 EXPECT_EQ("a, b, c, ", JoinString(parts, separator)); in TEST()
776 EXPECT_EQ("a|b|c|| ", JoinString(parts, "|")); in TEST()
782 EXPECT_EQ(string16(), JoinString(parts, separator)); in TEST()
786 EXPECT_EQ(string16(), JoinString(parts, separator)); in TEST()
791 EXPECT_EQ(ASCIIToUTF16("a"), JoinString(parts, separator)); in TEST()
797 EXPECT_EQ(ASCIIToUTF16("a, b, c"), JoinString(parts, separator)); in TEST()
800 EXPECT_EQ(ASCIIToUTF16("a, b, c, "), JoinString(parts, separator)); in TEST()
803 EXPECT_EQ(ASCIIToUTF16("a|b|c|| "), JoinString(parts, ASCIIToUTF16("|"))); in TEST()
808 EXPECT_EQ(std::string(), JoinString({}, separator)); in TEST()
811 EXPECT_EQ(std::string(), JoinString({StringPiece()}, separator)); in TEST()
814 EXPECT_EQ("a", JoinString({"a"}, separator)); in TEST()
815 EXPECT_EQ("a, b, c", JoinString({"a", "b", "c"}, separator)); in TEST()
816 EXPECT_EQ("a, b, c, ", JoinString({"a", "b", "c", StringPiece()}, separator)); in TEST()
817 EXPECT_EQ("a|b|c|| ", JoinString({"a", "b", "c", StringPiece(), " "}, "|")); in TEST()
822 EXPECT_EQ("a, b", JoinString({kA, kB}, separator)); in TEST()
827 EXPECT_EQ("a, b", JoinString({kPieceA, kPieceB}, separator)); in TEST()
832 EXPECT_EQ(string16(), JoinString({}, separator)); in TEST()
835 EXPECT_EQ(string16(), JoinString({StringPiece16()}, separator)); in TEST()
839 EXPECT_EQ(ASCIIToUTF16("a"), JoinString({kA}, separator)); in TEST()
843 EXPECT_EQ(ASCIIToUTF16("a, b, c"), JoinString({kA, kB, kC}, separator)); in TEST()
846 JoinString({kA, kB, kC, StringPiece16()}, separator)); in TEST()
850 JoinString({kA, kB, kC, StringPiece16(), kSpace}, ASCIIToUTF16("|"))); in TEST()
855 EXPECT_EQ(ASCIIToUTF16("a, b"), JoinString({kPieceA, kPieceB}, separator)); in TEST()