Lines Matching refs:StringSplit
34 using bluetooth::common::StringSplit;
90 ASSERT_THAT(StringSplit("", ","), ElementsAre("")); in TEST()
91 ASSERT_THAT(StringSplit("1,2,3", ","), ElementsAre("1", "2", "3")); in TEST()
92 ASSERT_THAT(StringSplit("1,2,3", "!"), ElementsAre("1,2,3")); in TEST()
93 ASSERT_THAT(StringSplit("1,2,3", ",", 2), ElementsAre("1", "2,3")); in TEST()
94 ASSERT_THAT(StringSplit("a,b,", ","), ElementsAre("a", "b", "")); in TEST()
95 ASSERT_THAT(StringSplit("ab,", ",", 2), ElementsAre("ab", "")); in TEST()
96 ASSERT_THAT(StringSplit("ab,,", ",", 2), ElementsAre("ab", ",")); in TEST()
97 ASSERT_THAT(StringSplit("ab,,", ",", 1), ElementsAre("ab,,")); in TEST()
98 ASSERT_THAT(StringSplit("1,,2,,3", ",,"), ElementsAre("1", "2", "3")); in TEST()
99 ASSERT_THAT(StringSplit("1,,2,,3,,", ",,"), ElementsAre("1", "2", "3", "")); in TEST()
100 ASSERT_THAT(StringSplit("1,,2,,3,,", ",,", 2), ElementsAre("1", "2,,3,,")); in TEST()
101 ASSERT_THAT(StringSplit("1", ",,", 2), ElementsAre("1")); in TEST()
102 ASSERT_DEATH({ StringSplit("1,2,3", ""); }, "delim cannot be empty"); in TEST()