Lines Matching refs:expected
14 // Helper function to find expected strings in a list
15 bool Match(StringList* list, const char** expected, size_t off, size_t len) {
21 EXPECT_STR_EQ(elem, expected[off + i]);
42 const char* expected[] = {"", "foo", "bar", "baz", ""};
48 EXPECT_TRUE(Match(&list, expected, 1, 3));
53 EXPECT_TRUE(Match(&list, expected, 0, 5));
58 EXPECT_TRUE(Match(&list, expected, 0, 5));
61 StringList list2(expected, arraysize(expected));
62 EXPECT_TRUE(Match(&list, expected, 0, 5));