Lines Matching full:component
99 const url_parse::Component& component) {
100 // If the component is nonexistant (length == -1), it should begin at 0.
101 EXPECT_TRUE(component.len >= 0 || component.len == -1);
104 EXPECT_LE(0, component.begin);
106 // A NULL reference means the component should be nonexistant.
108 return component.len == -1;
109 if (component.len < 0)
112 if (strlen(reference) != static_cast<size_t>(component.len))
116 return strncmp(reference, &input[component.begin], component.len) == 0;
119 void ExpectInvalidComponent(const url_parse::Component& component) {
120 EXPECT_EQ(0, component.begin);
121 EXPECT_EQ(-1, component.len);
158 Parsed::ComponentType component;
181 // Now test when the requested component is missing.
196 // Make sure a random component still works when there's nothing there.
215 count_cases[i].component, count_cases[i].include_delimiter);
453 url_parse::Component file_name;
470 url_parse::Component query = parsed.query;
473 url_parse::Component key, value;