Home
last modified time | relevance | path

Searched refs:Matchers (Results 1 – 25 of 92) sorted by relevance

1234

/external/guice/core/test/com/google/inject/
DMethodInterceptionTest.java19 import static com.google.inject.matcher.Matchers.only;
26 import com.google.inject.matcher.Matchers;
70 bindInterceptor(Matchers.any(), Matchers.returns(only(Foo.class)), in testSharedProxyClasses()
99 bindInterceptor(Matchers.any(), Matchers.returns(only(Foo.class)), in testSharedProxyClasses()
114 bindInterceptor(Matchers.any(), Matchers.any(), new MethodInterceptor() { in testGetThis()
131 bindInterceptor(Matchers.any(), Matchers.any(), new MethodInterceptor() { in testInterceptingFinalClass()
154 bindInterceptor(Matchers.any(),Matchers.returns(only(Foo.class)), in testSpiAccessToInterceptors()
156 bindInterceptor(Matchers.any(), Matchers.returns(only(Foo.class).or(only(Bar.class))), in testSpiAccessToInterceptors()
182 bindInterceptor(Matchers.any(), Matchers.any(), new CountingInterceptor()); in testInterceptedMethodThrows()
183 bindInterceptor(Matchers.any(), Matchers.any(), new CountingInterceptor()); in testInterceptedMethodThrows()
[all …]
DProvisionListenerTest.java28 import com.google.inject.matcher.Matchers;
55 bindListener(Matchers.any(), new FailBeforeProvision()); in testExceptionInListenerBeforeProvisioning()
76 bindListener(Matchers.any(), new FailAfterProvision()); in testExceptionInListenerAfterProvisioning()
97 bindListener(Matchers.any(), new JustProvision()); in testExceptionInProvisionExplicitlyCalled()
117 bindListener(Matchers.any(), new NoProvision()); in testExceptionInProvisionAutomaticallyCalled()
197 bindListener(Matchers.any(), new ProvisionTwice()); in testListenerCallsProvisionTwice()
219 bindListener(Matchers.any(), count1); in testCachedInScopePreventsProvisionNotify()
240 bindListener(Matchers.any(), count1); in testCombineAllBindListenerCalls()
241 bindListener(Matchers.any(), count2); in testCombineAllBindListenerCalls()
255 bindListener(Matchers.any(), count1, new FailBeforeProvision(), count2); in testNotifyEarlyListenersIfFailBeforeProvision()
[all …]
DTypeConversionTest.java25 import com.google.inject.matcher.Matchers;
256 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)) , mockTypeConverter(result)); in testCustomTypeConversion()
275 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), failingTypeConverter()); in configure()
325 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(null)); in configure()
351 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(-1)); in configure()
390 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), converter); in testStringIsConvertedOnlyOnce()
417 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(new Date())); in configure()
423 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(new Date())); in configure()
DParentInjectorTest.java26 import com.google.inject.matcher.Matchers;
143 super.bindInterceptor(Matchers.any(), Matchers.returns(Matchers.identicalTo(A.class)), in testInterceptorsInherited()
296 convertToTypes(Matchers.any(), listConverter);
DRequestInjectionTest.java23 import com.google.inject.matcher.Matchers;
209 bindListener(Matchers.any(), new TypeListener() { in testEarlyInjectableReferencesWithSameIdentity()
/external/guice/jdk8-tests/test/com/google/inject/jdk8/
DDefaultMethodInterceptionTest.java26 import com.google.inject.matcher.Matchers;
82 bindInterceptor(Matchers.any(), Matchers.annotatedWith(InterceptMe.class), in testInterceptedDefaultMethod()
98 bindInterceptor(Matchers.any(), Matchers.annotatedWith(InterceptMe.class), in testInterceptedDefaultMethod_calledByAnotherMethod()
126 bindInterceptor(Matchers.any(), Matchers.annotatedWith(InterceptMe.class), in testInterceptedDefaultMethod_whenParentClassDefinesNonInterceptedMethod()
161 bindInterceptor(Matchers.any(), Matchers.annotatedWith(InterceptMe.class), in testInterceptedDefaultMethod_whenParentClassDefinesInterceptedMethod()
194 bindInterceptor(Matchers.subclassesOf(Baz.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType()
211 bindInterceptor(Matchers.subclassesOf(BazImpl.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp296 MatchASTVisitor(const MatchFinder::MatchersByType *Matchers, in MatchASTVisitor() argument
298 : Matchers(Matchers), Options(Options), ActiveASTContext(nullptr) {} in MatchASTVisitor()
309 for (MatchCallback *MC : Matchers->AllCallbacks) { in onStartOfTranslationUnit()
319 for (MatchCallback *MC : Matchers->AllCallbacks) { in onEndOfTranslationUnit()
521 void matchWithoutFilter(const T &Node, const MC &Matchers) { in matchWithoutFilter() argument
524 for (const auto &MP : Matchers) { in matchWithoutFilter()
546 auto &Matchers = this->Matchers->DeclOrStmt; in matchWithFilter() local
548 auto &MP = Matchers[I]; in matchWithFilter()
562 auto &Matchers = this->Matchers->DeclOrStmt; in getFilterForKind() local
563 assert((Matchers.size() < USHRT_MAX) && "Too many matchers."); in getFilterForKind()
[all …]
/external/guice/core/test/com/google/inject/matcher/
DMatcherTest.java21 import static com.google.inject.matcher.Matchers.annotatedWith;
22 import static com.google.inject.matcher.Matchers.any;
23 import static com.google.inject.matcher.Matchers.identicalTo;
24 import static com.google.inject.matcher.Matchers.inPackage;
25 import static com.google.inject.matcher.Matchers.inSubpackage;
26 import static com.google.inject.matcher.Matchers.not;
27 import static com.google.inject.matcher.Matchers.only;
28 import static com.google.inject.matcher.Matchers.returns;
29 import static com.google.inject.matcher.Matchers.subclassesOf;
121 Package matchersPackage = Matchers.class.getPackage(); in testInPackage()
[all …]
/external/clang/lib/ASTMatchers/Dynamic/
DVariantValue.cpp114 : Matchers(std::move(MatchersIn)) {} in PolymorphicPayload()
119 if (Matchers.size() != 1) in getSingleMatcher()
121 return Matchers[0]; in getSingleMatcher()
126 for (size_t i = 0, e = Matchers.size(); i != e; ++i) { in getTypeAsString()
129 Inner += Matchers[i].getSupportedKind().asStringRef(); in getTypeAsString()
139 for (size_t i = 0, e = Matchers.size(); i != e; ++i) { in getTypedMatcher()
141 if (Ops.canConstructFrom(Matchers[i], IsExactMatch)) { in getTypedMatcher()
148 Found = &Matchers[i]; in getTypedMatcher()
162 for (const DynTypedMatcher &Matcher : Matchers) { in isConvertibleTo()
174 const std::vector<DynTypedMatcher> Matchers; member in clang::ast_matchers::dynamic::VariantMatcher::PolymorphicPayload
[all …]
/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationUsingMatchersTest.java10 import org.mockito.Matchers;
21 import static org.mockito.Matchers.*;
71 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
79 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
87 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
94 …verify(mock).threeArgumentMethod(and(geq(7), leq(10)), isA(String.class), Matchers.contains("123")… in shouldVerifyUsingMixedMatchers()
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DParameterizedConstructorInstantiatorTest.java12 import org.mockito.Matchers;
73 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ob… in should_instantiate_type_if_resolver_provide_matching_types()
86 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ob… in should_fail_if_an_argument_instance_type_do_not_match_wanted_type()
98 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ nu… in should_report_failure_if_constructor_throws_exception()
111 …given(resolver.resolveTypeInstances(Matchers.<Class<?>[]>anyVararg())).willReturn(new Object[]{ ""… in should_instantiate_type_with_vararg_constructor()
/external/clang/unittests/ASTMatchers/Dynamic/
DParserTest.cpp60 Matchers.push_back(ToStore); in actOnMatcherExpression()
73 std::vector<MatcherInfo> Matchers; member in clang::ast_matchers::dynamic::__anon4975ea460111::MockSema
139 EXPECT_EQ(3ULL, Sema.Matchers.size()); in TEST()
140 const MockSema::MatcherInfo Bar = Sema.Matchers[0]; in TEST()
146 const MockSema::MatcherInfo Baz = Sema.Matchers[1]; in TEST()
152 const MockSema::MatcherInfo Foo = Sema.Matchers[2]; in TEST()
/external/guice/extensions/persist/src/com/google/inject/persist/
DPersistModule.java19 import static com.google.inject.matcher.Matchers.annotatedWith;
20 import static com.google.inject.matcher.Matchers.any;
/external/mockito/src/test/java/org/mockitousage/matchers/
DMatchersMixedWithRawArgumentsTest.java14 import static org.mockito.Matchers.anyBoolean;
15 import static org.mockito.Matchers.anyString;
/external/guice/core/test/com/google/inject/internal/
DProxyFactoryTest.java19 import static com.google.inject.matcher.Matchers.annotatedWith;
20 import static com.google.inject.matcher.Matchers.any;
21 import static com.google.inject.matcher.Matchers.not;
22 import static com.google.inject.matcher.Matchers.only;
/external/guice/core/test/com/google/inject/internal/util/
DLineNumbersTest.java26 import com.google.inject.matcher.Matchers;
65 bindInterceptor(Matchers.only(A.class), Matchers.any(), in testCanHandleLineNumbersForGuiceGeneratedClasses()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslatorUnitTest.java9 import static org.mockito.Matchers.any;
10 import static org.mockito.Matchers.anyObject;
11 import static org.mockito.Matchers.eq;
/external/guice/core/src/com/google/inject/internal/
DTypeConverterBindingProcessor.java23 import com.google.inject.matcher.Matchers;
68 convertToClasses(injector, Matchers.subclassesOf(Enum.class), new TypeConverter() { in prepareBuiltInConverters()
136 convertToClasses(injector, Matchers.identicalTo(type), converter); in convertToClass()
DEncounterImpl.java29 import com.google.inject.matcher.Matchers;
76 aspects.add(new MethodAspect(Matchers.any(), methodMatcher, interceptors)); in bindInterceptor()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DEditTextTest.java6 import static org.mockito.Matchers.anyInt;
7 import static org.mockito.Matchers.eq;
/external/mockito/src/test/java/org/mockitousage/bugs/
DCompareMatcherTest.java5 import static org.mockito.Matchers.argThat;
6 import static org.mockito.Matchers.startsWith;
/external/googletest/googlemock/docs/v1_5/
DCheatSheet.md147 # Matchers # chapter
186 ## Floating-Point Matchers ##
202 ## String Matchers ##
220 ## Container Matchers ##
236 …a count (e.g. in `Bar(const T* buffer, int len)` -- see [Multi-argument Matchers](#Multiargument_M…
240 ## Member Matchers ##
253 ## Pointer Matchers ##
258 ## Multiargument Matchers ##
279 ## Composite Matchers ##
288 ## Adapters for Matchers ##
[all …]
/external/mockito/src/main/java/org/mockito/
DMatchers.java12 public class Matchers extends ArgumentMatchers { class
/external/googletest/googlemock/docs/v1_6/
DCheatSheet.md147 # Matchers # chapter
186 ## Floating-Point Matchers ##
202 ## String Matchers ##
223 ## Container Matchers ##
241 …a count (e.g. in `Bar(const T* buffer, int len)` -- see [Multi-argument Matchers](#Multiargument_M…
245 ## Member Matchers ##
258 ## Pointer Matchers ##
263 ## Multiargument Matchers ##
284 ## Composite Matchers ##
293 ## Adapters for Matchers ##
[all …]
/external/clang/include/clang/ASTMatchers/Dynamic/
DVariantValue.h145 PolymorphicMatcher(std::vector<DynTypedMatcher> Matchers);
258 VariantValue(const VariantMatcher &Matchers);

1234