Lines Matching refs:StringSplit
31 using bluetooth::common::StringSplit;
46 ASSERT_THAT(StringSplit("", ","), ElementsAre("")); in TEST()
47 ASSERT_THAT(StringSplit("1,2,3", ","), ElementsAre("1", "2", "3")); in TEST()
48 ASSERT_THAT(StringSplit("1,2,3", "!"), ElementsAre("1,2,3")); in TEST()
49 ASSERT_THAT(StringSplit("1,2,3", ",", 2), ElementsAre("1", "2,3")); in TEST()
50 ASSERT_THAT(StringSplit("a,b,", ","), ElementsAre("a", "b", "")); in TEST()
51 ASSERT_THAT(StringSplit("ab,", ",", 2), ElementsAre("ab", "")); in TEST()
52 ASSERT_THAT(StringSplit("ab,,", ",", 2), ElementsAre("ab", ",")); in TEST()
53 ASSERT_THAT(StringSplit("ab,,", ",", 1), ElementsAre("ab,,")); in TEST()
54 ASSERT_THAT(StringSplit("1,,2,,3", ",,"), ElementsAre("1", "2", "3")); in TEST()
55 ASSERT_THAT(StringSplit("1,,2,,3,,", ",,"), ElementsAre("1", "2", "3", "")); in TEST()
56 ASSERT_THAT(StringSplit("1,,2,,3,,", ",,", 2), ElementsAre("1", "2,,3,,")); in TEST()
57 ASSERT_THAT(StringSplit("1", ",,", 2), ElementsAre("1")); in TEST()
58 ASSERT_DEATH({ StringSplit("1,2,3", ""); }, "delim cannot be empty"); in TEST()