Lines Matching defs:contexts
166 // Tests numbers found by the PhoneNumberMatcher in various textual contexts.
178 // Helper method which tests the contexts provided and ensures that:
185 void FindMatchesInContexts(const std::vector<NumberContext>& contexts,
189 DoTestInContext(number, region, contexts, PhoneNumberMatcher::VALID);
191 for (std::vector<NumberContext>::const_iterator it = contexts.begin();
192 it != contexts.end(); ++it) {
199 DoTestInContext(number, region, contexts, PhoneNumberMatcher::POSSIBLE);
201 for (std::vector<NumberContext>::const_iterator it = contexts.begin();
202 it != contexts.end(); ++it) {
213 void FindMatchesInContexts(const std::vector<NumberContext>& contexts,
218 FindMatchesInContexts(contexts, is_valid, is_possible, region, number);
221 // Tests valid numbers in contexts that should pass for
266 // Tests valid numbers in contexts that fail for PhoneNumberMatcher::POSSIBLE
687 std::vector<NumberContext> contexts;
688 contexts.push_back(NumberContext("$20 ", ""));
689 contexts.push_back(NumberContext("", " 100$"));
692 FindMatchesInContexts(contexts, true, true);