Home
last modified time | relevance | path

Searched refs:isA (Results 1 – 25 of 50) sorted by relevance

12

/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DKeepAliveManagerTest.java21 import static org.mockito.Matchers.isA;
76 isA(TimeUnit.class)); in sendKeepAlivePings()
83 .when(scheduler).schedule(isA(Runnable.class), isA(Long.class), isA(TimeUnit.class)); in sendKeepAlivePings()
88 verify(scheduler, times(2)).schedule(isA(Runnable.class), delayCaptor.capture(), in sendKeepAlivePings()
89 isA(TimeUnit.class)); in sendKeepAlivePings()
97 verify(scheduler, times(3)).schedule(isA(Runnable.class), delayCaptor.capture(), in sendKeepAlivePings()
98 isA(TimeUnit.class)); in sendKeepAlivePings()
100 verify(shutdownFuture).cancel(isA(Boolean.class)); in sendKeepAlivePings()
110 .when(scheduler).schedule(isA(Runnable.class), isA(Long.class), isA(TimeUnit.class)); in keepAlivePingDelayedByIncomingData()
115 verify(scheduler, times(1)).schedule(sendPingCaptor.capture(), isA(Long.class), in keepAlivePingDelayedByIncomingData()
[all …]
DServerCallImplTest.java25 import static org.mockito.Matchers.isA;
176 verify(stream).writeMessage(isA(InputStream.class)); in sendMessage()
202 doThrow(new RuntimeException("bad")).when(stream).writeMessage(isA(InputStream.class)); in sendMessage_closesOnFailure()
206 verify(stream).close(isA(Status.class), isA(Metadata.class)); in sendMessage_closesOnFailure()
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/
DCronetClientStreamTest.java24 import static org.mockito.Matchers.isA;
136 isA(BidirectionalStream.Callback.class), in startStream()
140 verify(builder, atLeast(2)).addHeader(isA(String.class), isA(String.class)); in startStream()
143 verify(builder, times(0)).addRequestAnnotation(isA(Object.class)); in startStream()
154 isA(String.class), callbackCaptor.capture(), isA(Executor.class)); in write()
169 verify(cronetStream, times(0)).write(isA(ByteBuffer.class), isA(Boolean.class)); in write()
174 verify(cronetStream, times(5)).write(isA(ByteBuffer.class), eq(false)); in write()
188 verify(cronetStream, times(5)).write(isA(ByteBuffer.class), eq(false)); in write()
192 verify(cronetStream, times(1)).write(isA(ByteBuffer.class), eq(true)); in write()
234 isA(String.class), callbackCaptor.capture(), isA(Executor.class)); in read()
[all …]
/external/libcxx/test/std/strings/strings.erasure/
Derase_if.pass.cpp35 auto isA = [](auto ch) { return ch == 'a';}; in test() local
42 test0(S(""), isA, S("")); in test()
44 test0(S("a"), isA, S("")); in test()
47 test0(S("ab"), isA, S("b")); in test()
50 test0(S("aa"), isA, S("")); in test()
53 test0(S("abc"), isA, S("bc")); in test()
58 test0(S("aab"), isA, S("b")); in test()
61 test0(S("abb"), isA, S("bb")); in test()
64 test0(S("aaa"), isA, S("")); in test()
/external/llvm/include/llvm/Support/
DError.h56 virtual bool isA(const void *const ClassID) const { in isA() function
61 template <typename ErrorInfoT> bool isA() const { in isA() function
62 return isA(ErrorInfoT::classID()); in isA()
216 template <typename ErrT> bool isA() const { in isA() function
217 return getPtr() && getPtr()->isA(ErrT::classID()); in isA()
298 bool isA(const void *const ClassID) const override { in isA() function
299 return ClassID == classID() || ParentErrT::isA(ClassID); in isA()
334 assert(!Payload1->isA<ErrorList>() && !Payload2->isA<ErrorList>() && in ErrorList()
345 if (E1.isA<ErrorList>()) { in join()
347 if (E2.isA<ErrorList>()) { in join()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DError.h69 virtual bool isA(const void *const ClassID) const { in isA() function
74 template <typename ErrorInfoT> bool isA() const { in isA() function
75 return isA(ErrorInfoT::classID()); in isA()
232 template <typename ErrT> bool isA() const { in isA() function
233 return getPtr() && getPtr()->isA(ErrT::classID()); in isA()
319 bool isA(const void *const ClassID) const override { in isA() function
320 return ClassID == classID() || ParentErrT::isA(ClassID); in isA()
354 assert(!Payload1->isA<ErrorList>() && !Payload2->isA<ErrorList>() && in ErrorList()
365 if (E1.isA<ErrorList>()) { in join()
367 if (E2.isA<ErrorList>()) { in join()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DError.h77 virtual bool isA(const void *const ClassID) const { in isA() function
82 template <typename ErrorInfoT> bool isA() const { in isA() function
83 return isA(ErrorInfoT::classID()); in isA()
237 template <typename ErrT> bool isA() const { in isA() function
238 return getPtr() && getPtr()->isA(ErrT::classID()); in isA()
346 bool isA(const void *const ClassID) const override { in isA() function
347 return ClassID == classID() || ParentErrT::isA(ClassID); in isA()
379 assert(!Payload1->isA<ErrorList>() && !Payload2->isA<ErrorList>() && in ErrorList()
390 if (E1.isA<ErrorList>()) { in join()
392 if (E2.isA<ErrorList>()) { in join()
[all …]
/external/jcommander/src/test/java/com/beust/jcommander/
DParametersDelegateTest.java21 public boolean isA; in delegatingEmptyClassHasNoEffect() field in ParametersDelegateTest.MainParams
31 Assert.assertTrue(p.isA); in delegatingEmptyClassHasNoEffect()
46 public boolean isA; in delegatingSetsFieldsOnBothMainParamsAndTheDelegatedParams() field in ParametersDelegateTest.MainParams
56 Assert.assertFalse(p.isA); in delegatingSetsFieldsOnBothMainParamsAndTheDelegatedParams()
100 public boolean isA; in combinedAndNestedDelegates() field in ParametersDelegateTest.MainParams
118 Assert.assertTrue(p.isA); in combinedAndNestedDelegates()
/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationUsingMatchersTest.java71 …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/netty/src/test/java/io/grpc/netty/
DWriteQueueTest.java22 import static org.mockito.Matchers.isA;
117 verify(channel).write(isA(QueuedCommand.class), eq(promise)); in singleWriteShouldWork()
129 verify(channel, times(5)).write(isA(QueuedCommand.class), eq(promise)); in multipleWritesShouldBeBatched()
142 verify(channel, times(writes)).write(isA(QueuedCommand.class), eq(promise)); in maxWritesBeforeFlushShouldBeEnforced()
201 verify(channel, times(writes)).write(isA(CuteCommand.class), eq(promise)); in concurrentWriteAndFlush()
DNettyClientStreamTest.java34 import static org.mockito.Matchers.isA;
171 verify(writeQueue).enqueue(isA(CancelClientStreamCommand.class), eq(true)); in cancelShouldStillSendCommandIfStreamNotCreatedToCancelCreation()
280 verify(writeQueue, never()).enqueue(isA(CancelClientStreamCommand.class), eq(true)); in inboundTrailersAfterHalfCloseDoesNotSendRstStream()
315 verify(writeQueue).enqueue(isA(CancelClientStreamCommand.class), eq(true)); in invalidInboundHeadersCancelStream()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DMultipleServletInjectorsTest.java22 import static org.easymock.EasyMock.isA;
47 fakeContextOne.setAttribute(eq(INJECTOR_NAME), isA(Injector.class)); in testTwoInjectors()
50 fakeContextTwo.setAttribute(eq(INJECTOR_NAME), isA(Injector.class)); in testTwoInjectors()
DInjectedFilterPipelineTest.java6 import static org.easymock.EasyMock.isA;
95 proceedingFilterChain.doFilter(isA(HttpServletRequest.class), (ServletResponse) isNull()); in testDispatchThruInjectedGuiceFilter()
125 proceedingFilterChain2.doFilter(isA(HttpServletRequest.class), (ServletResponse) isNull()); in testDispatchThruInjectedGuiceFilter()
DFilterPipelineTest.java6 import static org.easymock.EasyMock.isA;
75 proceedingFilterChain.doFilter(isA(HttpServletRequest.class), (ServletResponse) isNull()); in testDispatchThruGuiceFilter()
/external/llvm/unittests/Support/
DErrorTest.cpp158 EXPECT_TRUE(E.isA<CustomError>()); in TEST()
159 EXPECT_FALSE(E.isA<CustomSubError>()); in TEST()
160 EXPECT_TRUE(F.isA<CustomError>()); in TEST()
161 EXPECT_TRUE(F.isA<CustomSubError>()); in TEST()
162 EXPECT_FALSE(G.isA<CustomError>()); in TEST()
445 if (E.isA<CustomSubError>()) in TEST()
525 EXPECT_TRUE(E.isA<CustomError>()) << "Incorrect Expected error value"; in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DErrorTest.cpp163 EXPECT_TRUE(E.isA<CustomError>()); in TEST()
164 EXPECT_FALSE(E.isA<CustomSubError>()); in TEST()
165 EXPECT_TRUE(F.isA<CustomError>()); in TEST()
166 EXPECT_TRUE(F.isA<CustomSubError>()); in TEST()
167 EXPECT_FALSE(G.isA<CustomError>()); in TEST()
474 if (E.isA<CustomSubError>()) in TEST()
587 EXPECT_TRUE(E.isA<CustomError>()) << "Incorrect Expected error value"; in TEST()
665 EXPECT_TRUE(Err.isA<CustomError>()) in TEST()
/external/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetTest.java25 import static org.easymock.EasyMock.isA;
148 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(null);
197 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(existingZero);
199 expect(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class)))
202 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(existing);
207 expect(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class)))
209 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(existing);
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DIsTest.java8 import static org.hamcrest.core.Is.isA;
46 final Matcher matcher = isA(Integer.class); in providesConvenientShortcutForIsInstanceOf()
/external/mockito/src/test/java/org/mockitousage/bugs/
DNPEWithCertainMatchersTest.java30 verify(mock).intArgumentMethod(isA(Integer.class)); in shouldNotThrowNPEWhenIntegerPassed()
37 verify(mock).intArgumentMethod(isA(Integer.class)); in shouldNotThrowNPEWhenIntPassed()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DBasicStubbingTest.java32 when(mock.objectReturningMethod(isA(Integer.class))).thenReturn(100); in should_evaluate_latest_stubbing_first()
106 when(localMock.objectReturningMethod(isA(Integer.class))).thenReturn(100); in test_stub_only_not_verifiable()
/external/mockito/src/test/java/org/mockitousage/matchers/
DMoreMatchersTest.java45 verify(mock).simpleMethod(isA(List.class)); in any_class_should_be_actual_alias_to_isA()
53 verify(mock).simpleMethod(isA(String.class)); in any_class_should_be_actual_alias_to_isA()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DPickFirstLoadBalancerTest.java27 import static org.mockito.Matchers.isA;
125 .updateBalancingState(isA(ConnectivityState.class), isA(SubchannelPicker.class)); in pickAfterResolvedAndUnchanged()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DIs.java72 public static <T> Matcher<T> isA(Class<T> type) { in isA() method in Is
/external/mockito/src/main/java/org/mockito/
DArgumentMatchers.java221 public static <T> T isA(Class<T> type) { in isA() method in ArgumentMatchers
1091 AdditionalMatchers.or(isNull(), isA(clazz)); in nullable()
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/
DOkHttpClientStreamTest.java24 import static org.mockito.Matchers.isA;
201 verify(transport, times(0)).streamReadyToStart(isA(OkHttpClientStream.class)); in getUnaryRequest()

12