/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | DelayedClientTransportTest.java | 111 when(mockRealTransport.newStream(same(method), same(headers), same(callOptions))) in setUp() 113 when(mockRealTransport2.newStream(same(method2), same(headers2), same(callOptions2))) in setUp() 124 ClientStream stream = delayedTransport.newStream(method, headers, callOptions); in streamStartThenAssignTransport() 134 verify(mockRealTransport).newStream(same(method), same(headers), same(callOptions)); in streamStartThenAssignTransport() 143 ClientStream stream = delayedTransport.newStream(method, headers, callOptions); in newStreamThenAssignTransportThenShutdown() 152 verify(mockRealTransport).newStream(same(method), same(headers), same(callOptions)); in newStreamThenAssignTransportThenShutdown() 170 ClientStream stream = delayedTransport.newStream(method, headers, callOptions); in assignTransportThenShutdownThenNewStream() 173 verify(mockRealTransport, never()).newStream( in assignTransportThenShutdownThenNewStream() 182 ClientStream stream = delayedTransport.newStream(method, headers, callOptions); in assignTransportThenShutdownNowThenNewStream() 185 verify(mockRealTransport, never()).newStream( in assignTransportThenShutdownNowThenNewStream() [all …]
|
D | CallCredentials2ApplyingTest.java | 111 when(mockTransport.newStream(same(method), any(Metadata.class), any(CallOptions.class))) in setUp() 127 transport.newStream(method, origHeaders, callOptions); in parameterPropagation_base() 148 transport.newStream(method, origHeaders, callOptions); in parameterPropagation_transportSetSecurityLevel() 168 transport.newStream(method, origHeaders, in parameterPropagation_callOptionsSetAuthority() 189 (FailingClientStream) transport.newStream(method, origHeaders, callOptions); in credentialThrows() 191 verify(mockTransport, never()).newStream(method, origHeaders, callOptions); in credentialThrows() 211 ClientStream stream = transport.newStream(method, origHeaders, callOptions); in applyMetadata_inline() 213 verify(mockTransport).newStream(method, origHeaders, callOptions); in applyMetadata_inline() 234 (FailingClientStream) transport.newStream(method, origHeaders, callOptions); in fail_inline() 236 verify(mockTransport, never()).newStream(method, origHeaders, callOptions); in fail_inline() [all …]
|
D | CallCredentialsApplyingTest.java | 110 when(mockTransport.newStream(same(method), any(Metadata.class), any(CallOptions.class))) in setUp() 126 transport.newStream(method, origHeaders, callOptions); in parameterPropagation_base() 146 transport.newStream(method, origHeaders, callOptions); in parameterPropagation_overrideByTransport() 167 transport.newStream(method, origHeaders, in parameterPropagation_overrideByCallOptions() 188 (FailingClientStream) transport.newStream(method, origHeaders, callOptions); in credentialThrows() 190 verify(mockTransport, never()).newStream(method, origHeaders, callOptions); in credentialThrows() 211 ClientStream stream = transport.newStream(method, origHeaders, callOptions); in applyMetadata_inline() 213 verify(mockTransport).newStream(method, origHeaders, callOptions); in applyMetadata_inline() 235 (FailingClientStream) transport.newStream(method, origHeaders, callOptions); in fail_inline() 237 verify(mockTransport, never()).newStream(method, origHeaders, callOptions); in fail_inline() [all …]
|
D | ManagedChannelImplTest.java | 445 when(mockTransport.newStream(same(method), same(headers), same(CallOptions.DEFAULT))) in subtestCallsAndShutdown() 447 when(mockTransport.newStream(same(method), same(headers2), same(CallOptions.DEFAULT))) in subtestCallsAndShutdown() 465 .newStream(same(method), same(headers), same(CallOptions.DEFAULT)); in subtestCallsAndShutdown() 470 verify(mockTransport).newStream(same(method), same(headers2), same(CallOptions.DEFAULT)); in subtestCallsAndShutdown() 471 verify(mockTransport).newStream(same(method), same(headers2), same(CallOptions.DEFAULT)); in subtestCallsAndShutdown() 516 verify(mockTransport).newStream(same(method), same(headers), same(CallOptions.DEFAULT)); in subtestCallsAndShutdown() 645 when(mockTransport.newStream(same(method), same(headers), any(CallOptions.class))) in callOptionsExecutor() 655 verify(mockTransport).newStream(same(method), same(headers), same(options)); in callOptionsExecutor() 875 when(goodTransportInfo.transport.newStream( in firstResolvedServerFailedToConnect() 889 verify(goodTransportInfo.transport).newStream(same(method), same(headers), in firstResolvedServerFailedToConnect() [all …]
|
D | GrpcUtilTest.java | 247 .newStream(TestMethodDescriptors.voidMethod(), new Metadata(), CallOptions.DEFAULT); in getTransportFromPickResult_errorPickResult_failFast() 263 .newStream(TestMethodDescriptors.voidMethod(), new Metadata(), CallOptions.DEFAULT); in getTransportFromPickResult_dropPickResult_waitForReady() 279 .newStream(TestMethodDescriptors.voidMethod(), new Metadata(), CallOptions.DEFAULT); in getTransportFromPickResult_dropPickResult_failFast()
|
D | FailingClientTransportTest.java | 45 .newStream(TestMethodDescriptors.voidMethod(), new Metadata(), CallOptions.DEFAULT); in newStreamStart()
|
D | TestUtils.java | 79 when(mockTransport.newStream( in captureTransports()
|
/external/antlr/tool/src/test/java/org/antlr/test/ |
D | TestTreeNodeStream.java | 41 public TreeNodeStream newStream(Object t) { in newStream() method in TestTreeNodeStream 52 TreeNodeStream stream = newStream(t); in testSingleNode() 69 TreeNodeStream stream = newStream(t); in test4Nodes() 92 TreeNodeStream stream = newStream(root); in testList() 109 TreeNodeStream stream = newStream(root); in testFlatList() 124 TreeNodeStream stream = newStream(root); in testListWithOneNode() 138 TreeNodeStream stream = newStream(t); in testAoverB() 155 TreeNodeStream stream = newStream(t); in testLT() 183 TreeNodeStream stream = newStream(r0); in testMarkRewindEntire() 214 TreeNodeStream stream = newStream(r0); in testMarkRewindInMiddle() [all …]
|
D | TestBufferedTreeNodeStream.java | 43 public TreeNodeStream newStream(Object t) { in newStream() method in TestBufferedTreeNodeStream 66 TreeNodeStream stream = newStream(r0); in testSeek()
|
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/ |
D | OkHttpClientTransportTest.java | 251 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in maxMessageSizeShouldBeEnforced() 277 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in nextFrameThrowIoException() 281 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in nextFrameThrowIoException() 311 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in nextFrameThrowsError() 332 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in nextFrameReturnFalse() 350 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in readMessages() 400 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in invalidInboundHeadersCancelStream() 424 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in invalidInboundTrailersPropagateToMetadata() 444 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in readStatus() 458 clientTransport.newStream(method, new Metadata(), CallOptions.DEFAULT); in receiveReset() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | Spdy3ConnectionTest.java | 74 FramedStream stream = connection.newStream(headerEntries("b", "banana"), true, true); in clientCreatesStreamAndServerReplies() 105 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, false); in headersOnlyStreamIsClosedAfterReplyHeaders() 125 connection.newStream(headerEntries("b", "banana"), false, true); in clientCreatesStreamAndServerRepliesWithFin() 424 FramedStream stream = connection.newStream(headerEntries("a", "android"), true, false); 469 FramedStream stream = connection.newStream(headerEntries("a", "android"), true, true); 512 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, true); 558 FramedStream stream = connection.newStream(headerEntries("a", "android"), true, true); 604 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, true); 632 FramedStream stream = connection.newStream(headerEntries("c", "cola"), true, true); 704 FramedStream stream = connection.newStream(headerEntries("b", "banana"), true, true); [all …]
|
D | Http2ConnectionTest.java | 131 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, true); 192 FramedStream stream1 = connection.newStream(headerEntries("a", "android"), true, true); 193 FramedStream stream2 = connection.newStream(headerEntries("b", "banana"), true, true); 208 connection.newStream(headerEntries("c", "cola"), true, true); 255 FramedStream stream = connection.newStream(headerEntries("b", "banana"), false, true); 296 FramedStream client = connection.newStream(headerEntries("b", "banana"), false, true); 318 FramedStream client = connection.newStream(headerEntries("b", "banana"), true, true); 347 FramedStream stream = connection.newStream(headerEntries("b", "banana"), true, true); 388 FramedStream client = connection.newStream(headerEntries("b", "banana"), false, true); 412 connection.newStream(headerEntries("b", "banana"), false, true); [all …]
|
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/ |
D | AbstractTransportTest.java | 252 ClientStream stream = client.newStream(methodDescriptor, new Metadata(), callOptions); in frameAfterRstStreamShouldNotBreakClientChannel() 275 stream = client.newStream(methodDescriptor, new Metadata(), callOptions); in frameAfterRstStreamShouldNotBreakClientChannel() 370 ClientStream clientStream = client.newStream(methodDescriptor, new Metadata(), callOptions); in openStreamPreventsTermination() 422 ClientStream clientStream = client.newStream(methodDescriptor, new Metadata(), callOptions); in shutdownNowKillsClientStream() 459 ClientStream clientStream = client.newStream(methodDescriptor, new Metadata(), callOptions); in shutdownNowKillsServerStream() 513 ClientStream stream = client.newStream(methodDescriptor, new Metadata(), callOptions); in ping_duringShutdown() 557 ClientStream stream = client.newStream(methodDescriptor, new Metadata(), callOptions); in newStream_duringShutdown() 565 ClientStream stream2 = client.newStream(methodDescriptor, new Metadata(), callOptions); in newStream_duringShutdown() 601 ClientStream stream = client.newStream(methodDescriptor, new Metadata(), callOptions); in newStream_afterTermination() 620 ClientStream stream1 = client.newStream(methodDescriptor, new Metadata(), callOptions); in transportInUse_normalClose() [all …]
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | ForwardingConnectionClientTransport.java | 47 public ClientStream newStream( in newStream() method in ForwardingConnectionClientTransport 49 return delegate().newStream(method, headers, callOptions); in newStream()
|
D | CallCredentialsApplyingTransportFactory.java | 76 public ClientStream newStream( in newStream() method in CallCredentialsApplyingTransportFactory.CallCredentialsApplyingTransport 99 return delegate.newStream(method, headers, callOptions); in newStream()
|
D | DelayedClientTransport.java | 131 public final ClientStream newStream( in newStream() method in DelayedClientTransport 153 return transport.newStream( in newStream() 358 realStream = transport.newStream( in createRealStream()
|
D | ClientTransport.java | 52 ClientStream newStream(MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions); in newStream() method
|
D | FailingClientTransport.java | 47 public ClientStream newStream( in newStream() method in FailingClientTransport
|
D | MetadataApplierImpl.java | 70 realStream = transport.newStream(method, origHeaders, callOptions); in apply()
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/output/ |
D | BrokenOutputStreamTest.java | 56 try (OutputStream newStream = new BrokenOutputStream()) { in testTryWithResources() 57 newStream.write(1); in testTryWithResources()
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/input/ |
D | BrokenInputStreamTest.java | 73 try (InputStream newStream = new BrokenInputStream()) { in testTryWithResources() 74 newStream.read(); in testTryWithResources()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
D | FramedConnection.java | 236 return newStream(associatedStreamId, requestHeaders, out, false); in pushStream() 247 public FramedStream newStream(List<Header> requestHeaders, boolean out, boolean in) in newStream() method in FramedConnection 249 return newStream(0, requestHeaders, out, in); in newStream() 252 private FramedStream newStream(int associatedStreamId, List<Header> requestHeaders, boolean out, in newStream() method in FramedConnection 668 newStream = new FramedStream(streamId, FramedConnection.this, outFinished, in headers() 671 streams.put(streamId, newStream); in headers() 675 listener.onStream(newStream); in headers() 679 newStream.close(ErrorCode.PROTOCOL_ERROR); in headers()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/ |
D | FramedConnection.java | 238 return newStream(associatedStreamId, requestHeaders, out, false); in pushStream() 249 public FramedStream newStream(List<Header> requestHeaders, boolean out, boolean in) in newStream() method in FramedConnection 251 return newStream(0, requestHeaders, out, in); in newStream() 254 private FramedStream newStream(int associatedStreamId, List<Header> requestHeaders, boolean out, in newStream() method in FramedConnection 673 newStream = new FramedStream(streamId, FramedConnection.this, outFinished, in headers() 676 streams.put(streamId, newStream); in headers() 680 listener.onStream(newStream); in headers() 684 newStream.close(ErrorCode.PROTOCOL_ERROR); in headers()
|
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/ |
D | CronetChannelBuilderTest.java | 65 CronetClientStream stream = transport.newStream(method, new Metadata(), CallOptions.DEFAULT); in alwaysUsePutTrue_cronetStreamIsIdempotent() 79 CronetClientStream stream = transport.newStream(method, new Metadata(), CallOptions.DEFAULT); in alwaysUsePut_defaultsToFalse()
|
D | CronetClientTransportTest.java | 93 transport.newStream(descriptor, new Metadata(), CallOptions.DEFAULT); in shutdownTransport() 95 transport.newStream(descriptor, new Metadata(), CallOptions.DEFAULT); in shutdownTransport()
|