/external/chromium_org/net/test/ |
H A D | gtest_util.h | 20 #define GTEST_DFATAL_(statement, matcher, fail) \ 28 EXPECT_CALL(gtest_log, Log(logging::LOG_DFATAL, _, _, _, matcher)) \ 51 // The _WITH() variants allow one to specify any matcher for the 54 #define EXPECT_DFATAL_WITH(statement, matcher) \ 55 GTEST_DFATAL_(statement, matcher, GTEST_NONFATAL_FAILURE_) 57 #define ASSERT_DFATAL_WITH(statement, matcher) \ 58 GTEST_DFATAL_(statement, matcher, GTEST_FATAL_FAILURE_)
|
/external/easymock/src/org/easymock/internal/ |
H A D | ExpectedInvocation.java | 34 private final org.easymock.ArgumentsMatcher matcher;
field in class:ExpectedInvocation 45 org.easymock.ArgumentsMatcher matcher) {
47 this.matcher = matcher;
48 this.matchers = (matcher == null) ? createMissingMatchers(invocation,
77 && ((this.matcher == null && other.matcher == null) || (this.matcher != null && this.matcher
78 .equals(other.matcher)))
43 ExpectedInvocation(Invocation invocation, List<IArgumentMatcher> matchers, @SuppressWarnings(�) org.easymock.ArgumentsMatcher matcher) argument 131 withMatcher(@uppressWarnings�) org.easymock.ArgumentsMatcher matcher) argument [all...] |
H A D | LegacyMatcherProvider.java | 48 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/chromium_org/third_party/icu/source/i18n/ |
H A D | quant.cpp | 27 matcher = adoptedMatcher; 35 matcher(o.matcher->clone()), 42 delete matcher; 71 UMatchDegree m = matcher->toMatcher()->matches(text, offset, limit, incremental); 101 matcher->toMatcher()->toPattern(result, escapeUnprintable); 126 return (minCount == 0) || matcher->toMatcher()->matchesIndexValue(v); 134 matcher->toMatcher()->addMatchSetTo(toUnionTo); 142 matcher->setData(d);
|
/external/icu/icu4c/source/i18n/ |
H A D | quant.cpp | 27 matcher = adoptedMatcher; 35 matcher(o.matcher->clone()), 42 delete matcher; 71 UMatchDegree m = matcher->toMatcher()->matches(text, offset, limit, incremental); 101 matcher->toMatcher()->toPattern(result, escapeUnprintable); 126 return (minCount == 0) || matcher->toMatcher()->matchesIndexValue(v); 134 matcher->toMatcher()->addMatchSetTo(toUnionTo); 142 matcher->setData(d);
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_filename_controller/ |
H A D | bg.js | 6 if (rule.matcher == 'js') 8 if (rule.matcher == 'hostname') { 15 if (rule.matcher == 'default') 17 if (rule.matcher == 'url-regex') 19 if (rule.matcher == 'default-regex')
|
/external/chromium_org/components/autofill/core/browser/ |
H A D | autofill_regexes.cc | 24 // 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/content/renderer/android/ |
H A D | email_detector.cc | 54 scoped_ptr<icu::RegexMatcher> matcher( 59 if (matcher->find()) { 60 *start_pos = matcher->start(status); 62 *end_pos = matcher->end(status); 64 icu::UnicodeString content_ustr(matcher->group(status));
|
/external/mockito/src/org/mockito/ |
H A D | Matchers.java | 24 * //stubbing using anyInt() argument matcher
30 * //you can also verify using argument matcher
42 * //above is correct - eq() is also an argument matcher
45 * //above is incorrect - exception will be thrown because third argument is given without argument matcher.
49 * Internally, they record a matcher on a stack and return a dummy value (usually null).
64 * Before you start implementing your own custom argument matcher, make sure you check out {@link ArgumentCaptor} api.
66 * So, how to implement your own argument matcher?
67 * First, you might want to subclass {@link ArgumentMatcher} which is an hamcrest matcher with predefined describeTo() method.
100 * Also, <b>sometimes {@link ArgumentCaptor} may be a better fit</b> than custom matcher.
101 * For example, if custom argument matcher i 777 argThat(Matcher<T> matcher) argument 789 charThat(Matcher<Character> matcher) argument 801 booleanThat(Matcher<Boolean> matcher) argument 813 byteThat(Matcher<Byte> matcher) argument 825 shortThat(Matcher<Short> matcher) argument 837 intThat(Matcher<Integer> matcher) argument 849 longThat(Matcher<Long> matcher) argument 861 floatThat(Matcher<Float> matcher) argument 873 doubleThat(Matcher<Double> matcher) argument 877 reportMatcher(Matcher<?> matcher) argument [all...] |
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
H A D | UserAgentTest.java | 44 Matcher matcher = Pattern.compile("Android_[^;]+;_[^_]").matcher(ua); 45 assertTrue(matcher.find());
|
/external/junit/src/org/junit/ |
H A D | Assume.java | 51 * 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/chromium_org/content/browser/service_worker/ |
H A D | service_worker_utils_unittest.cc | 75 LongestScopeMatcher matcher(GURL("http://www.example.com/xxx")); 78 ASSERT_TRUE(matcher.MatchLongest(GURL("http://www.example.com/x"))); 79 ASSERT_FALSE(matcher.MatchLongest(GURL("http://www.example.com/"))); 80 ASSERT_TRUE(matcher.MatchLongest(GURL("http://www.example.com/xx"))); 83 ASSERT_TRUE(matcher.MatchLongest(GURL("http://www.example.com/xxx"))); 85 ASSERT_FALSE(matcher.MatchLongest(GURL("http://www.example.com/xxxx")));
|
/external/proguard/src/proguard/util/ |
H A D | ListMatcher.java | 57 StringMatcher matcher = matchers[index]; 58 if (matcher.matches(string))
|
/external/chromium_org/extensions/browser/api/declarative_webrequest/ |
H A D | webrequest_condition_unittest.cc | 30 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/junit/src/org/junit/rules/ |
H A D | ErrorCollector.java | 51 * 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);
|
/external/mockito/src/org/mockito/internal/matchers/ |
H A D | MatchersPrinter.java | 34 for (final Matcher matcher : matchers) {
35 if (matcher instanceof ContainsExtraTypeInformation && printSettings.extraTypeInfoFor(i)) {
36 withPrintSettings.add(((ContainsExtraTypeInformation) matcher).withExtraTypeInfo());
38 withPrintSettings.add(matcher);
|
/external/mockito/src/org/mockito/internal/progress/ |
H A D | ArgumentMatcherStorage.java | 15 HandyReturnValues reportMatcher(Matcher matcher);
argument
|
/external/openfst/src/extensions/lookahead/ |
H A D | arc_lookahead-fst.cc | 18 #include <fst/matcher-fst.h>
|
H A D | ilabel_lookahead-fst.cc | 18 #include <fst/matcher-fst.h>
|
H A D | olabel_lookahead-fst.cc | 18 #include <fst/matcher-fst.h>
|
/external/oprofile/libpp/ |
H A D | locate_images.h | 39 /// 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/junit/src/org/junit/runner/ |
H A D | Description.java | 218 Matcher matcher= methodStringMatcher(); 219 return matcher.matches() 220 ? matcher.group(2) 233 Matcher matcher= methodStringMatcher(); 234 if (matcher.matches()) 235 return matcher.group(1); 240 return Pattern.compile("(.*)\\((.*)\\)").matcher(toString());
|
/external/chromium_org/components/url_matcher/ |
H A D | url_matcher_factory_unittest.cc | 20 URLMatcher matcher; local 69 matcher.condition_factory(), &invalid_condition, 1, &error); 76 matcher.condition_factory(), &invalid_condition2, 2, &error); 83 matcher.condition_factory(), &invalid_condition3, 3, &error); 89 matcher.condition_factory(), &invalid_condition4, 4, &error); 96 matcher.condition_factory(), &valid_condition, 100, &error); 102 matcher.AddConditionSets(conditions); 104 EXPECT_EQ(1u, matcher.MatchURL(GURL("http://www.example.com")).size()); 105 EXPECT_EQ(1u, matcher.MatchURL(GURL("http://www.example.com:80")).size()); 106 EXPECT_EQ(1u, matcher 118 URLMatcher matcher; local 239 URLMatcher matcher; local [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
H A D | regextst.cpp | 380 REMatcher = REPattern->matcher(unEscapedInput, status); 382 errln("RegexTest failure in REPattern::matcher() at line %d. Status = %s\n", 456 REMatcher = &REPattern->matcher(status)->reset(&inputText); 458 errln("RegexTest failure in REPattern::matcher() at line %d (UTF8). Status = %s\n", 582 RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); 727 RegexMatcher matcher(&pattern, 0, status); 733 matcher.reset(&input); 735 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); 737 matcher.reset(matcher 908 RegexMatcher *matcher = pat->matcher(data, status); local 968 RegexMatcher *matcher = pat->matcher(data, status); local 1022 RegexMatcher *matcher = pat->matcher(data, status); local 1329 RegexMatcher *matcher = pat->matcher(data, status); local 1989 RegexMatcher *matcher = &pat->matcher(status)->reset(&input); local 2109 RegexMatcher *matcher = &pat->matcher(status)->reset(&input); local 2171 RegexMatcher *matcher = &pat->matcher(status)->reset(&input); local 2407 RegexMatcher *matcher = &pat->matcher(status)->reset(&dataText); local 3296 RegexMatcher *matcher = NULL, *UTF8Matcher = NULL; local [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | regextst.cpp | 385 REMatcher = REPattern->matcher(unEscapedInput, status); 387 errln("RegexTest failure in REPattern::matcher() at line %d. Status = %s\n", 461 REMatcher = &REPattern->matcher(status)->reset(&inputText); 463 errln("RegexTest failure in REPattern::matcher() at line %d (UTF8). Status = %s\n", 587 RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); 732 RegexMatcher matcher(&pattern, 0, status); 738 matcher.reset(&input); 740 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); 742 matcher.reset(matcher 913 RegexMatcher *matcher = pat->matcher(data, status); local 973 RegexMatcher *matcher = pat->matcher(data, status); local 1027 RegexMatcher *matcher = pat->matcher(data, status); local 1334 RegexMatcher *matcher = pat->matcher(data, status); local 1994 RegexMatcher *matcher = &pat->matcher(status)->reset(&input); local 2114 RegexMatcher *matcher = &pat->matcher(status)->reset(&input); local 2176 RegexMatcher *matcher = &pat->matcher(status)->reset(&input); local 2412 RegexMatcher *matcher = &pat->matcher(status)->reset(&dataText); local 3301 RegexMatcher *matcher = NULL, *UTF8Matcher = NULL; local [all...] |