Lines Matching refs:expected
39 void checkKeyPath(const String& keyPath, const Vector<String>& expected, int parserError)
51 ASSERT_EQ(expected.size(), keyPathElements.size());
52 for (size_t i = 0; i < expected.size(); ++i)
53 ASSERT_TRUE(expected[i] == keyPathElements[i]) << i;
58 Vector<String> expected;
60 checkKeyPath(keyPath, expected, 0);
65 Vector<String> expected;
67 expected.append(String("foo"));
68 checkKeyPath(keyPath, expected, 0);
73 Vector<String> expected;
75 expected.append(String("foo"));
76 expected.append(String("bar"));
77 expected.append(String("baz"));
78 checkKeyPath(keyPath, expected, 0);
83 Vector<String> expected;
85 checkKeyPath(keyPath, expected, 1);
90 Vector<String> expected;
92 checkKeyPath(keyPath, expected, 1);
97 Vector<String> expected;
99 expected.append(String("foo"));
100 checkKeyPath(keyPath, expected, 2);
105 Vector<String> expected;
107 expected.append(String("foo"));
108 checkKeyPath(keyPath, expected, 2);
113 Vector<String> expected;
115 expected.append(String("foo"));
116 checkKeyPath(keyPath, expected, 3);
121 Vector<String> expected;
123 expected.append(String("foo"));
124 checkKeyPath(keyPath, expected, 3);