Skip navigation links
A B C D E F G H I L M N O P R S T V Z 

A

AbstractClientTransportFactoryTest - Class in io.grpc.internal.testing
 
AbstractClientTransportFactoryTest() - Constructor for class io.grpc.internal.testing.AbstractClientTransportFactoryTest
 
AbstractTransportTest - Class in io.grpc.internal.testing
Standard unit tests for ClientTransports and ServerTransports.
AbstractTransportTest() - Constructor for class io.grpc.internal.testing.AbstractTransportTest
 
after() - Method in class io.grpc.testing.GrpcServerRule
After the test has completed, clean up the channel and server.
authorityPropagation() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
awaitCompletion() - Method in class io.grpc.testing.StreamRecorder
Waits for the stream to terminate.
awaitCompletion(int, TimeUnit) - Method in class io.grpc.testing.StreamRecorder
Waits a fixed timeout for the stream to terminate.

B

basicStream() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
before() - Method in class io.grpc.testing.GrpcServerRule
Before the test has started, create the server and channel.
builder() - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContext
 

C

cancel(String, Throwable) - Method in class io.grpc.internal.NoopClientCall
 
cancel(String, Throwable) - Method in class io.grpc.testing.NoopClientCall
Deprecated.
 
clientCancel() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
clientCancelFromWithinMessageRead() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
clientStartAndStopOnceConnected() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
clientStartStop() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
close(Status, Metadata) - Method in class io.grpc.internal.NoopServerCall
 
close(Status, Metadata) - Method in class io.grpc.testing.NoopServerCall
Deprecated.
 
contexts - Variable in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContextFactory
 
create() - Static method in class io.grpc.testing.StreamRecorder
Creates a new recorder.

D

deadline() - Static method in class io.grpc.testing.DeadlineSubject
 
DeadlineSubject - Class in io.grpc.testing
Propositions for Deadline subjects.
DeadlineSubject.TolerantDeadlineComparison - Class in io.grpc.testing
A partially specified proposition about an approximate relationship to a deadline subject using a tolerance.
deserialize(InputStream) - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContextFactory
 
directExecutor() - Method in class io.grpc.testing.GrpcServerRule
Returns this configured to use a direct executor for the ManagedChannel and Server.

E

earlyServerClose_noServerHeaders() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
earlyServerClose_serverFailure() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
earlyServerClose_withServerHeaders() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
equals(Object) - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContext
 
equals(Object) - Method in class io.grpc.testing.DeadlineSubject.TolerantDeadlineComparison
Deprecated.
Object.equals(Object) is not supported on TolerantDeadlineComparison If you meant to compare deadlines, use DeadlineSubject.TolerantDeadlineComparison.of(Deadline) instead.
EXTRA_TAG - Static variable in class io.grpc.internal.testing.StatsTestUtils
This tag will be propagated by StatsTestUtils.FakeStatsContextFactory on the wire.

F

FakeStatsContextFactory() - Constructor for class io.grpc.internal.testing.StatsTestUtils.FakeStatsContextFactory
Constructor.
firstValue() - Method in class io.grpc.testing.StreamRecorder
Returns a ListenableFuture for the first value received from the stream.
flowControlPushBack() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
frameAfterRstStreamShouldNotBreakClientChannel() - Method in class io.grpc.internal.testing.AbstractTransportTest
Test for issue https://github.com/grpc/grpc-java/issues/1682

G

getChannel() - Method in class io.grpc.testing.GrpcServerRule
Returns a ManagedChannel connected to this service.
getDefault() - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContextFactory
 
getError() - Method in class io.grpc.testing.StreamRecorder
Returns the stream terminating error.
getMethodDescriptor() - Method in class io.grpc.internal.NoopServerCall
 
getMethodDescriptor() - Method in class io.grpc.testing.NoopServerCall
Deprecated.
 
getMetric(MeasurementDescriptor) - Method in class io.grpc.internal.testing.StatsTestUtils.MetricsRecord
Returns the value of a metric, or null if not found.
getMetricAsLongOrFail(MeasurementDescriptor) - Method in class io.grpc.internal.testing.StatsTestUtils.MetricsRecord
Returns the value of a metric converted to long, or throw if not found.
getServer() - Method in class io.grpc.testing.GrpcServerRule
Returns the underlying gRPC Server for this service.
getServerName() - Method in class io.grpc.testing.GrpcServerRule
Returns the randomly generated server name for this service.
getServiceRegistry() - Method in class io.grpc.testing.GrpcServerRule
Returns the service registry for this service.
getValues() - Method in class io.grpc.testing.StreamRecorder
Returns the current set of received values.
GrpcServerRule - Class in io.grpc.testing
GrpcServerRule is a JUnit TestRule that starts an in-process gRPC service with a MutableHandlerRegistry for adding services.
GrpcServerRule() - Constructor for class io.grpc.testing.GrpcServerRule
 

H

halfClose() - Method in class io.grpc.internal.NoopClientCall
 
halfClose() - Method in class io.grpc.testing.NoopClientCall
Deprecated.
 
hashCode() - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContext
 
hashCode() - Method in class io.grpc.testing.DeadlineSubject.TolerantDeadlineComparison
Deprecated.
Object.hashCode() is not supported on TolerantDeadlineComparison

I

interactionsAfterClientStreamCancelAreNoops() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
interactionsAfterServerStreamCloseAreNoops() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
io.grpc.internal - package io.grpc.internal
 
io.grpc.internal.testing - package io.grpc.internal.testing
 
io.grpc.testing - package io.grpc.testing
 
isCancelled() - Method in class io.grpc.internal.NoopServerCall
 
isCancelled() - Method in class io.grpc.testing.NoopServerCall
Deprecated.
 
isWithin(long, TimeUnit) - Method in class io.grpc.testing.DeadlineSubject
Prepares for a check that the subject is deadline within the given tolerance of an expected value that will be provided in the next call in the fluent chain.

L

loadCert(String) - Static method in class io.grpc.testing.TestUtils
Saves a file from the classpath resources in src/main/resources/certs as a file on the filesystem.
loadX509Cert(String) - Static method in class io.grpc.testing.TestUtils
Loads an X.509 certificate from the classpath resources in src/main/resources/certs.

M

metrics - Variable in class io.grpc.internal.testing.StatsTestUtils.MetricsRecord
 
metricsExpected() - Method in class io.grpc.internal.testing.AbstractTransportTest
Returns true if the transport creates StatsTraceContext for each stream and records measurements with it.
multipleCallsToCloseShouldNotThrow() - Method in class io.grpc.internal.testing.AbstractClientTransportFactoryTest
 

N

newClientTransport(InternalServer) - Method in class io.grpc.internal.testing.AbstractTransportTest
Returns a new transport that when started will be able to connect to server.
newClientTransportAfterCloseShouldThrow() - Method in class io.grpc.internal.testing.AbstractClientTransportFactoryTest
 
newClientTransportFactory() - Method in class io.grpc.internal.testing.AbstractClientTransportFactoryTest
 
newServer(List<ServerStreamTracer.Factory>) - Method in class io.grpc.internal.testing.AbstractTransportTest
Returns a new server that when started will be able to be connected to from the client.
newServer(InternalServer, List<ServerStreamTracer.Factory>) - Method in class io.grpc.internal.testing.AbstractTransportTest
Builds a new server that is listening on the same location as the given server instance does.
newSslSocketFactoryForCa(Provider, File) - Static method in class io.grpc.testing.TestUtils
Creates an SSLSocketFactory which contains certChainFile as its only root certificate.
newStream_afterTermination() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
newStream_duringShutdown() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
NoopClientCall<ReqT,RespT> - Class in io.grpc.internal
NoopClientCall is a class that is designed for use in tests.
NoopClientCall() - Constructor for class io.grpc.internal.NoopClientCall
 
NoopClientCall<ReqT,RespT> - Class in io.grpc.testing
Deprecated.
moved to NoopClientCall and for internal use only. Please use GrpcServerRule to test on InProcess channels instead
NoopClientCall() - Constructor for class io.grpc.testing.NoopClientCall
Deprecated.
 
NoopClientCall.NoopClientCallListener<T> - Class in io.grpc.internal
NoopClientCall.NoopClientCallListener is a class that is designed for use in tests.
NoopClientCall.NoopClientCallListener<T> - Class in io.grpc.testing
Deprecated.
NoopClientCallListener() - Constructor for class io.grpc.internal.NoopClientCall.NoopClientCallListener
 
NoopClientCallListener() - Constructor for class io.grpc.testing.NoopClientCall.NoopClientCallListener
Deprecated.
 
noopMarshaller() - Static method in class io.grpc.testing.TestMethodDescriptors
Creates a new marshaller that does nothing.
noopMethod() - Static method in class io.grpc.testing.TestMethodDescriptors
Creates a new method descriptor that always creates zero length messages, and always parses to null objects.
NoopServerCall<ReqT,RespT> - Class in io.grpc.internal
NoopServerCall is a class that is designed for use in tests.
NoopServerCall() - Constructor for class io.grpc.internal.NoopServerCall
 
NoopServerCall<ReqT,RespT> - Class in io.grpc.testing
Deprecated.
moved to NoopServerCall and for internal use only. Please use GrpcServerRule to test on InProcess channels instead
NoopServerCall() - Constructor for class io.grpc.testing.NoopServerCall
Deprecated.
 
NoopServerCall.NoopServerCallListener<T> - Class in io.grpc.internal
NoopServerCall.NoopServerCallListener is a class that is designed for use in tests.
NoopServerCall.NoopServerCallListener<T> - Class in io.grpc.testing
Deprecated.
NoopServerCallListener() - Constructor for class io.grpc.internal.NoopServerCall.NoopServerCallListener
 
NoopServerCallListener() - Constructor for class io.grpc.testing.NoopServerCall.NoopServerCallListener
Deprecated.
 

O

of(Deadline) - Method in class io.grpc.testing.DeadlineSubject.TolerantDeadlineComparison
Fails if the subject was expected to be within the tolerance of the given value but was not or if it was expected not to be within the tolerance but was.
onCompleted() - Method in class io.grpc.testing.StreamRecorder
 
onError(Throwable) - Method in class io.grpc.testing.StreamRecorder
 
onNext(T) - Method in class io.grpc.testing.StreamRecorder
 
openStreamPreventsTermination() - Method in class io.grpc.internal.testing.AbstractTransportTest
 

P

ping() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
ping_afterTermination() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
ping_duringShutdown() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
pollContextOrFail() - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContextFactory
 
pollRecord() - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContextFactory
 
pollRecord(long, TimeUnit) - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContextFactory
 
preferredTestCiphers() - Static method in class io.grpc.testing.TestUtils
Returns the ciphers preferred to use during tests.

R

record(MeasurementMap) - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContext
 
recordRequestHeadersInterceptor(AtomicReference<Metadata>) - Static method in class io.grpc.testing.TestUtils
Capture the request headers from a client.
recordServerCallInterceptor(AtomicReference<ServerCall<?, ?>>) - Static method in class io.grpc.testing.TestUtils
Capture the request attributes.
request(int) - Method in class io.grpc.internal.NoopClientCall
 
request(int) - Method in class io.grpc.internal.NoopServerCall
 
request(int) - Method in class io.grpc.testing.NoopClientCall
Deprecated.
 
request(int) - Method in class io.grpc.testing.NoopServerCall
Deprecated.
 
rolloverRecords() - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContextFactory
Disconnect this factory with the contexts it has created so far.

S

sendHeaders(Metadata) - Method in class io.grpc.internal.NoopServerCall
 
sendHeaders(Metadata) - Method in class io.grpc.testing.NoopServerCall
Deprecated.
 
sendMessage(ReqT) - Method in class io.grpc.internal.NoopClientCall
 
sendMessage(RespT) - Method in class io.grpc.internal.NoopServerCall
 
sendMessage(ReqT) - Method in class io.grpc.testing.NoopClientCall
Deprecated.
 
sendMessage(RespT) - Method in class io.grpc.testing.NoopServerCall
Deprecated.
 
serialize(OutputStream) - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContext
 
serverAlreadyListening() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
serverCancel() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
serverNotListening() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
setStatsContextFactory(AbstractManagedChannelImplBuilder<?>, StatsContextFactory) - Static method in class io.grpc.internal.TestingAccessor
Sets a custom StatsContextFactory for tests.
setStatsContextFactory(AbstractServerImplBuilder<?>, StatsContextFactory) - Static method in class io.grpc.internal.TestingAccessor
Sets a custom StatsContextFactory for tests.
setUp() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
shutdownNowKillsClientStream() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
shutdownNowKillsServerStream() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
sleepAtLeast(long) - Static method in class io.grpc.testing.TestUtils
Sleeps for at least the specified time.
start(ClientCall.Listener<RespT>, Metadata) - Method in class io.grpc.internal.NoopClientCall
 
start(ClientCall.Listener<RespT>, Metadata) - Method in class io.grpc.testing.NoopClientCall
Deprecated.
 
StatsTestUtils - Class in io.grpc.internal.testing
 
StatsTestUtils.FakeStatsContext - Class in io.grpc.internal.testing
 
StatsTestUtils.FakeStatsContextFactory - Class in io.grpc.internal.testing
A factory that makes fake StatsContexts and saves the created contexts to be accessible from StatsTestUtils.FakeStatsContextFactory.pollContextOrFail().
StatsTestUtils.MetricsRecord - Class in io.grpc.internal.testing
 
StreamRecorder<T> - Class in io.grpc.testing
Utility implementation of StreamObserver used in testing.

T

tags - Variable in class io.grpc.internal.testing.StatsTestUtils.MetricsRecord
 
tearDown() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
TEST_SERVER_HOST - Static variable in class io.grpc.testing.TestUtils
 
testAuthority(InternalServer) - Method in class io.grpc.internal.testing.AbstractTransportTest
Returns the authority string used by a client to connect to server.
TestingAccessor - Class in io.grpc.internal
Test helper that allows accessing package-private stuff.
TestMethodDescriptors - Class in io.grpc.testing
A collection of method descriptor constructors useful for tests.
testServerAddress(String, int) - Static method in class io.grpc.testing.TestUtils
Creates a new InetSocketAddress that overrides the host with TestUtils.TEST_SERVER_HOST.
testServerAddress(int) - Static method in class io.grpc.testing.TestUtils
Creates a new InetSocketAddress on localhost that overrides the host with TestUtils.TEST_SERVER_HOST.
TestUtils - Class in io.grpc.testing
Common utility functions useful for writing tests.
thrown - Variable in class io.grpc.internal.testing.AbstractTransportTest
 
toString() - Method in class io.grpc.internal.testing.StatsTestUtils.FakeStatsContext
 
transportInUse_clientCancel() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
transportInUse_normalClose() - Method in class io.grpc.internal.testing.AbstractTransportTest
 

V

voidMarshaller() - Static method in class io.grpc.testing.TestMethodDescriptors
Creates a new marshaller that does nothing.
voidMethod() - Static method in class io.grpc.testing.TestMethodDescriptors
Creates a new method descriptor that always creates zero length messages, and always parses to null objects.

Z

zeroMessageStream() - Method in class io.grpc.internal.testing.AbstractTransportTest
 
A B C D E F G H I L M N O P R S T V Z 
Skip navigation links