Searched defs:matcher (Results 1 - 25 of 133) sorted by relevance

123456

/external/chromium_org/third_party/WebKit/Source/core/css/
H A DMediaQueryMatcherTest.cpp19 RefPtrWillBeRawPtr<MediaQueryMatcher> matcher = MediaQueryMatcher::create(pageHolder->document()); local
21 ASSERT_TRUE(matcher->evaluate(querySet.get()));
23 matcher->documentDetached();
24 ASSERT_FALSE(matcher->evaluate(querySet.get()));
/external/chromium_org/chrome/browser/extensions/api/declarative_content/
H A Dcontent_condition_unittest.cc27 URLMatcher matcher; local
31 matcher.condition_factory(),
41 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions";
45 URLMatcher matcher; local
49 matcher.condition_factory(),
59 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions";
63 URLMatcher matcher; local
67 matcher.condition_factory(),
77 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions";
81 URLMatcher matcher; local
[all...]
/external/chromium_org/components/url_matcher/
H A Dregex_set_matcher_unittest.cc23 RegexSetMatcher matcher; local
24 matcher.AddPatterns(regexes);
27 matcher.Match("http://abracadabra.com", &result1);
33 matcher.Match("https://abfffffffffffffffffffffffffffffff.fi/cf", &result2);
39 matcher.Match("http://nothing.com/", &result3);
49 RegexSetMatcher matcher; local
50 matcher.AddPatterns(regexes);
53 matcher.Match("http://aaa.net/", &result1);
57 matcher.Match("http://aaa.net/quaaACK", &result2);
H A Dsubstring_set_matcher_unittest.cc26 SubstringSetMatcher matcher; local
27 matcher.RegisterPatterns(patterns);
29 matcher.Match(test_string, &matches);
57 SubstringSetMatcher matcher; local
58 matcher.RegisterPatterns(patterns);
60 matcher.Match(test_string, &matches);
125 SubstringSetMatcher matcher; local
133 matcher.RegisterPatterns(patterns);
138 matcher.RegisterPatterns(patterns);
141 matcher
164 SubstringSetMatcher matcher; local
[all...]
/external/chromium_org/third_party/icu/source/i18n/
H A Dquant.h113 UnicodeFunctor* matcher; // owned member in class:Quantifier
/external/hamcrest/integration/src/org/hamcrest/
H A DMatcherAssert.java7 public static <T> void assertThat(T actual, Matcher<T> matcher) { argument
8 assertThat("", actual, matcher);
11 public static <T> void assertThat(String reason, T actual, Matcher<T> matcher) { argument
12 if (!matcher.matches(actual)) {
16 .appendDescriptionOf(matcher)
/external/icu/icu4c/source/i18n/
H A Dquant.h113 UnicodeFunctor* matcher; // owned member in class:Quantifier
/external/proguard/src/proguard/util/
H A DNotMatcher.java31 private final StringMatcher matcher; field in class:NotMatcher
34 public NotMatcher(StringMatcher matcher) argument
36 this.matcher = matcher;
44 return !matcher.matches(string);
H A DSettableMatcher.java31 private StringMatcher matcher; field in class:SettableMatcher
34 public void setMatcher(StringMatcher matcher) argument
36 this.matcher = matcher;
44 return matcher.matches(string);
/external/easymock/src/org/easymock/internal/
H A DILegacyMatcherMethods.java23 void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher); argument
26 void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher); argument
H A DLegacyMatcherProvider.java48 public void setDefaultMatcher(ArgumentsMatcher matcher) { argument
52 "default matcher can only be set once directly after creation of the MockControl"));
54 defaultMatcher = matcher;
58 public void setMatcher(Method method, ArgumentsMatcher matcher) { argument
59 if (matchers.containsKey(method) && matchers.get(method) != matcher) {
66 + "), a matcher has already been set"));
68 matchers.put(method, matcher);
96 for (Map.Entry<Method, ArgumentsMatcher> matcher : matchers.entrySet()) {
97 map.put(new MethodSerializationWrapper(matcher.getKey()), matcher
[all...]
/external/guava/guava/src/com/google/common/base/
H A DPlatform.java52 static CharMatcher precomputeCharMatcher(CharMatcher matcher) { argument
53 return matcher.precomputedInternal();
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
H A DPlatform.java36 static CharMatcher precomputeCharMatcher(CharMatcher matcher) { argument
41 return matcher;
/external/oprofile/libpp/
H A Dlocate_images.h39 /// base class for matcher functors object
40 struct matcher { struct in class:extra_images
43 explicit matcher(std::string const & v) : value(v) {} function in struct:extra_images::matcher
44 virtual ~matcher() {}
54 std::vector<std::string> const find(matcher const & match) const;
/external/apache-http/src/org/apache/http/protocol/
H A DHttpRequestHandlerRegistry.java58 private final UriPatternMatcher matcher; field in class:HttpRequestHandlerRegistry
61 matcher = new UriPatternMatcher();
65 matcher.register(pattern, handler);
69 matcher.unregister(pattern);
73 matcher.setHandlers(map);
77 return (HttpRequestHandler) matcher.lookup(requestURI);
85 return matcher.matchUriRequestPattern(pattern, requestUri);
/external/chromium_org/components/autofill/core/browser/
H A Dautofill_regexes.cc24 // Returns the compiled regex matcher corresponding to |pattern|.
56 icu::RegexMatcher* matcher = new icu::RegexMatcher(icu_pattern, local
61 matchers_.insert(std::make_pair(pattern, matcher));
73 icu::RegexMatcher* matcher = local
76 matcher->reset(icu_input);
79 UBool match = matcher->find(0, status);
/external/chromium_org/extensions/browser/api/declarative_webrequest/
H A Dwebrequest_condition_unittest.cc30 URLMatcher matcher; local
39 matcher.condition_factory(),
52 matcher.condition_factory(),
66 matcher.condition_factory(),
79 matcher.AddConditionSets(url_matcher_condition_set);
87 request_data.url_match_ids = matcher.MatchURL(http_url);
103 request_data.url_match_ids = matcher.MatchURL(http_url);
120 URLMatcher matcher; local
127 matcher.condition_factory(),
139 matcher
172 URLMatcher matcher; local
245 URLMatcher matcher; local
314 URLMatcher matcher; local
374 URLMatcher matcher; local
[all...]
/external/hamcrest/src/org/hamcrest/core/
H A DDescribedAs.java13 * Provides a custom description to another matcher.
17 private final Matcher<T> matcher; field in class:DescribedAs
22 public DescribedAs(String descriptionTemplate, Matcher<T> matcher, Object[] values) { argument
24 this.matcher = matcher;
29 return matcher.matches(o);
33 java.util.regex.Matcher arg = ARG_PATTERN.matcher(descriptionTemplate);
49 * Wraps an existing matcher and overrides the description when it fails.
52 public static <T> Matcher<T> describedAs(String description, Matcher<T> matcher, Object... values) { argument
53 return new DescribedAs<T>(description, matcher, value
[all...]
H A DIs.java19 private final Matcher<T> matcher; field in class:Is
21 public Is(Matcher<T> matcher) { argument
22 this.matcher = matcher;
26 return matcher.matches(arg);
30 description.appendText("is ").appendDescriptionOf(matcher);
41 public static <T> Matcher<T> is(Matcher<T> matcher) { argument
42 return new Is<T>(matcher);
H A DIsNot.java13 * Calculates the logical negation of a matcher.
16 private final Matcher<T> matcher; field in class:IsNot
18 public IsNot(Matcher<T> matcher) { argument
19 this.matcher = matcher;
23 return !matcher.matches(arg);
27 description.appendText("not ").appendDescriptionOf(matcher);
34 public static <T> Matcher<T> not(Matcher<T> matcher) { argument
35 return new IsNot<T>(matcher);
/external/junit/src/org/junit/
H A DAssume.java51 * Call to assume that <code>actual</code> satisfies the condition specified by <code>matcher</code>.
61 * @param <T> the static type accepted by the matcher (this can flag obvious compile-time problems such as {@code assumeThat(1, is("a"))}
63 * @param matcher an expression, built of {@link Matcher}s, specifying allowed values
68 public static <T> void assumeThat(T actual, Matcher<T> matcher) { argument
69 if (!matcher.matches(actual))
70 throw new AssumptionViolatedException(actual, matcher);
/external/junit/src/org/junit/internal/
H A DAssumptionViolatedException.java15 public AssumptionViolatedException(Object value, Matcher<?> matcher) { argument
18 fMatcher= matcher;
/external/junit/src/org/junit/internal/matchers/
H A DCombinableMatcher.java13 public CombinableMatcher(Matcher<? extends T> matcher) { argument
14 fMatcher= matcher;
26 public CombinableMatcher<T> and(Matcher<? extends T> matcher) { argument
27 return new CombinableMatcher<T>(allOf(matcher, fMatcher));
31 public CombinableMatcher<T> or(Matcher<? extends T> matcher) { argument
32 return new CombinableMatcher<T>(anyOf(matcher, fMatcher));
/external/junit/src/org/junit/matchers/
H A DJUnitMatchers.java16 * @return A matcher matching any collection containing element
24 * @return A matcher matching any collection containing an element matching elementMatcher
32 * @return A matcher matching any collection containing every element in elements
40 * @return A matcher matching any collection containing at least one element that matches
41 * each matcher in elementMatcher (this may be one element matching all matchers,
42 * or different elements matching each matcher)
50 * @return A matcher matching any collection in which every element matches elementMatcher
58 * @return a matcher matching any string that contains substring
70 public static <T> CombinableMatcher<T> both(Matcher<T> matcher) { argument
71 return new CombinableMatcher<T>(matcher);
80 either(Matcher<T> matcher) argument
[all...]
/external/junit/src/org/junit/rules/
H A DErrorCollector.java51 * Adds a failure to the table if {@code matcher} does not match {@code value}.
54 public <T> void checkThat(final T value, final Matcher<T> matcher) { argument
55 checkThat("", value, matcher);
60 * to the table if {@code matcher} does not match {@code value}.
63 public <T> void checkThat(final String reason, final T value, final Matcher<T> matcher) { argument
66 assertThat(reason, value, matcher);

Completed in 638 milliseconds

123456