/external/guice/core/test/com/google/inject/ |
D | MethodInterceptionTest.java | 19 import static com.google.inject.matcher.Matchers.only; 26 import com.google.inject.matcher.Matchers; 72 Matchers.any(), Matchers.returns(only(Foo.class)), new ReturnNullInterceptor()); in testSharedProxyClasses() 112 Matchers.any(), Matchers.returns(only(Foo.class)), new ReturnNullInterceptor()); in testSharedProxyClasses() 132 Matchers.any(), in testGetThis() 133 Matchers.any(), in testGetThis() 156 Matchers.any(), in testInterceptingFinalClass() 157 Matchers.any(), in testInterceptingFinalClass() 188 Matchers.any(), Matchers.returns(only(Foo.class)), countingInterceptor); in testSpiAccessToInterceptors() 190 Matchers.any(), in testSpiAccessToInterceptors() [all …]
|
D | ProvisionListenerTest.java | 30 import com.google.inject.matcher.Matchers; 56 bindListener(Matchers.any(), new FailBeforeProvision()); in testExceptionInListenerBeforeProvisioning() 82 bindListener(Matchers.any(), new FailAfterProvision()); in testExceptionInListenerAfterProvisioning() 108 bindListener(Matchers.any(), new JustProvision()); in testExceptionInProvisionExplicitlyCalled() 131 bindListener(Matchers.any(), new NoProvision()); in testExceptionInProvisionAutomaticallyCalled() 252 bindListener(Matchers.any(), new ProvisionTwice()); in testListenerCallsProvisionTwice() 279 bindListener(Matchers.any(), count1); in testCachedInScopePreventsProvisionNotify() 302 bindListener(Matchers.any(), count1); in testCombineAllBindListenerCalls() 303 bindListener(Matchers.any(), count2); in testCombineAllBindListenerCalls() 319 bindListener(Matchers.any(), count1, new FailBeforeProvision(), count2); in testNotifyEarlyListenersIfFailBeforeProvision() [all …]
|
D | TypeConversionTest.java | 25 import com.google.inject.matcher.Matchers; 282 Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(result)); in testCustomTypeConversion() 303 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), failingTypeConverter()); in configure() 362 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(null)); in configure() 390 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(-1)); in configure() 436 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), converter); in testStringIsConvertedOnlyOnce() 466 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(new Date())); in configure() 473 convertToTypes(Matchers.only(TypeLiteral.get(Date.class)), mockTypeConverter(new Date())); in configure()
|
/external/guice/jdk8-tests/test/com/google/inject/jdk8/ |
D | DefaultMethodInterceptionTest.java | 26 import com.google.inject.matcher.Matchers; 83 Matchers.any(), Matchers.annotatedWith(InterceptMe.class), interceptor); in testInterceptedDefaultMethod() 101 Matchers.any(), Matchers.annotatedWith(InterceptMe.class), interceptor); in testInterceptedDefaultMethod_calledByAnotherMethod() 130 Matchers.any(), Matchers.annotatedWith(InterceptMe.class), interceptor); in testInterceptedDefaultMethod_whenParentClassDefinesNonInterceptedMethod() 166 Matchers.any(), Matchers.annotatedWith(InterceptMe.class), interceptor); in testInterceptedDefaultMethod_whenParentClassDefinesInterceptedMethod() 200 bindInterceptor(Matchers.subclassesOf(Baz.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType() 219 bindInterceptor(Matchers.subclassesOf(BazImpl.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
|
/external/clang/lib/ASTMatchers/ |
D | ASTMatchFinder.cpp | 296 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/ |
D | MatcherTest.java | 21 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; 116 Package matchersPackage = Matchers.class.getPackage(); in testInPackage() [all …]
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsHandshakerClientTest.java | 43 import org.mockito.Matchers; 71 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeFailure() 84 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeSuccess() 97 when(mockStub.send(Matchers.<HandshakerReq>any())) in startClientHandshakeWithOptions() 120 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeFailure() 134 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeSuccess() 149 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeEmptyOutFrame() 164 when(mockStub.send(Matchers.<HandshakerReq>any())) in startServerHandshakeWithPrefixBuffer() 181 when(mockStub.send(Matchers.<HandshakerReq>any())) in nextFailure() 195 when(mockStub.send(Matchers.<HandshakerReq>any())) in nextSuccess() [all …]
|
D | AltsTsiHandshakerTest.java | 37 import org.mockito.Matchers; 104 verify(mockClient, never()).startServerHandshake(Matchers.<ByteBuffer>any()); in processBytesFromPeerFalseStart() 105 verify(mockClient, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerFalseStart() 116 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServer() 130 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServerEmptyOutput() 145 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerStartServerFinished() 158 verify(mockServer, never()).next(Matchers.<ByteBuffer>any()); in processBytesFromPeerNoBytesConsumed() 174 verify(mockClient, never()).startServerHandshake(Matchers.<ByteBuffer>any()); in processBytesFromPeerClientNext() 188 verify(mockClient, never()).startServerHandshake(Matchers.<ByteBuffer>any()); in processBytesFromPeerClientNextFinished() 249 when(mockServer.startServerHandshake(Matchers.<ByteBuffer>any())).thenReturn(outputFrame); in extractServerPeerSuccess()
|
/external/catch2/projects/SelfTest/Baselines/ |
D | console.std.approved.txt | 239 Matchers.tests.cpp:<line number> 242 Matchers.tests.cpp:<line number>: FAILED: 248 Matchers.tests.cpp:<line number>: FAILED: 288 Matchers.tests.cpp:<line number> 291 Matchers.tests.cpp:<line number>: FAILED: 296 Matchers.tests.cpp:<line number>: FAILED: 376 Matchers.tests.cpp:<line number> 379 Matchers.tests.cpp:<line number>: FAILED: 385 Matchers.tests.cpp:<line number>: FAILED: 395 Matchers.tests.cpp:<line number> [all …]
|
D | compact.sw.approved.txt | 213 Matchers.tests.cpp:<line number>: passed: 1, Predicate<int>(alwaysTrue, "always true") for: 1 match… 214 Matchers.tests.cpp:<line number>: passed: 1, !Predicate<int>(alwaysFalse, "always false") for: 1 no… 215 Matchers.tests.cpp:<line number>: passed: "Hello olleH", Predicate<std::string>( [] (std::string co… 216 Matchers.tests.cpp:<line number>: passed: "This wouldn't pass", !Predicate<std::string>( [] (std::s… 292 Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Contains("not there", Catch::Cas… 293 Matchers.tests.cpp:<line number>: failed: testStringForMatching(), Contains("STRING") for: "this st… 299 Matchers.tests.cpp:<line number>: failed: testStringForMatching(), EndsWith("Substring") for: "this… 300 Matchers.tests.cpp:<line number>: failed: testStringForMatching(), EndsWith("this", Catch::CaseSens… 322 Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Equals("this string contains 'ab… 323 Matchers.tests.cpp:<line number>: passed: testStringForMatching(), Equals("this string contains 'AB… [all …]
|
D | console.sw.approved.txt | 1614 Matchers.tests.cpp:<line number> 1617 Matchers.tests.cpp:<line number>: PASSED: 1622 Matchers.tests.cpp:<line number>: PASSED: 1631 Matchers.tests.cpp:<line number> 1634 Matchers.tests.cpp:<line number>: PASSED: 1639 Matchers.tests.cpp:<line number>: PASSED: 2148 Matchers.tests.cpp:<line number> 2151 Matchers.tests.cpp:<line number>: FAILED: 2157 Matchers.tests.cpp:<line number>: FAILED: 2213 Matchers.tests.cpp:<line number> [all …]
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | VariantValue.cpp | 114 : 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/ |
D | VerificationUsingMatchersTest.java | 10 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/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | DnsNameResolverTest.java | 26 import static org.mockito.Matchers.any; 72 import org.mockito.Matchers; 209 when(mockResolver.resolveAddress(Matchers.anyString())).thenReturn(answer1).thenReturn(answer2); in resolve_neverCache() 226 verify(mockResolver, times(2)).resolveAddress(Matchers.anyString()); in resolve_neverCache() 239 when(mockResolver.resolveAddress(Matchers.anyString())) in resolve_cacheForever() 259 verify(mockResolver).resolveAddress(Matchers.anyString()); in resolve_cacheForever() 273 when(mockResolver.resolveAddress(Matchers.anyString())) in resolve_usingCache() 294 verify(mockResolver).resolveAddress(Matchers.anyString()); in resolve_usingCache() 309 when(mockResolver.resolveAddress(Matchers.anyString())).thenReturn(answer1).thenReturn(answer2); in resolve_cacheExpired() 327 verify(mockResolver, times(2)).resolveAddress(Matchers.anyString()); in resolve_cacheExpired() [all …]
|
/external/catch2/include/internal/ |
D | catch_matchers.cpp | 11 namespace Matchers { namespace 25 using namespace Matchers; 26 using Matchers::Impl::MatcherBase;
|
/external/mockito/src/test/java/org/mockito/internal/util/reflection/ |
D | ParameterizedConstructorInstantiatorTest.java | 12 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/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
D | AccessibilityUtil.java | 17 import org.hamcrest.Matchers; 151 Matchers.equalTo(TouchTargetSizeViewCheck.class)); in setSuppressingResultMatcher() 154 Matchers.equalTo(DuplicateClickableBoundsViewCheck.class)); in setSuppressingResultMatcher() 157 Matchers.anyOf(touchTargetResultMatcher, duplicateBoundsResultMatcher)); in setSuppressingResultMatcher() 160 Matchers.anyOf(matcher, touchTargetResultMatcher, duplicateBoundsResultMatcher)); in setSuppressingResultMatcher()
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/ |
D | GlobalISelEmitter.cpp | 647 std::vector<Matcher *> Matchers; member in __anon0c06086d0111::GroupMatcher 688 return make_range(Matchers.begin(), Matchers.end()); in matchers() 690 size_t size() const { return Matchers.size(); } in size() 691 bool empty() const { return Matchers.empty(); } in empty() 719 std::vector<Matcher *> Matchers; member in __anon0c06086d0111::SwitchMatcher 740 return make_range(Matchers.begin(), Matchers.end()); in matchers() 742 size_t size() const { return Matchers.size(); } in size() 743 bool empty() const { return Matchers.empty(); } in empty() 779 MatchersTy Matchers; member in __anon0c06086d0111::RuleMatcher 826 : Matchers(), Actions(), InsnVariableIDs(), MutatableInsns(), in RuleMatcher() [all …]
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | ApplicationProtocolSelectorAdapterTest.java | 20 import static org.mockito.Matchers.same; 27 import org.mockito.Matchers; 80 when(selector.selectApplicationProtocol(same(engine), Matchers.anyListOf(String.class))) in mockSelection()
|
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | ApplicationProtocolSelectorAdapterTest.java | 21 import static org.mockito.Matchers.same; 28 import org.mockito.Matchers; 84 when(selector.selectApplicationProtocol(same(engine), Matchers.anyListOf(String.class))) in mockSelection()
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | ParserTest.cpp | 60 Matchers.push_back(ToStore); in actOnMatcherExpression() 73 std::vector<MatcherInfo> Matchers; member in clang::ast_matchers::dynamic::__anon235f7da70111::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/core/test/com/google/inject/internal/ |
D | ProxyFactoryTest.java | 19 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/grpc-grpc-java/examples/src/test/java/io/grpc/examples/header/ |
D | HeaderClientInterceptorTest.java | 47 import org.mockito.Matchers; 98 Matchers.<ServerCall<HelloRequest, HelloReply>>any(), in clientHeaderDeliveredToServer() 100 Matchers.<ServerCallHandler<HelloRequest, HelloReply>>any()); in clientHeaderDeliveredToServer()
|
/external/guice/extensions/persist/src/com/google/inject/persist/ |
D | PersistModule.java | 19 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/ |
D | MatchersMixedWithRawArgumentsTest.java | 14 import static org.mockito.Matchers.anyBoolean; 15 import static org.mockito.Matchers.anyString;
|