Home
last modified time | relevance | path

Searched refs:CreateUnaryCall (Results 1 – 11 of 11) sorted by relevance

/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DClientServerTest.cs65 Assert.AreEqual("ABC", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "ABC")); in UnaryCall()
67 Assert.AreEqual("ABC", await Calls.AsyncUnaryCall(helper.CreateUnaryCall(), "ABC")); in UnaryCall()
78 …r ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc")); in UnaryCall_ServerHandlerThrows()
81 …ThrowsAsync<RpcException>(async () => await Calls.AsyncUnaryCall(helper.CreateUnaryCall(), "abc")); in UnaryCall_ServerHandlerThrows()
93 …r ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc")); in UnaryCall_ServerHandlerThrowsRpcException()
97 …ThrowsAsync<RpcException>(async () => await Calls.AsyncUnaryCall(helper.CreateUnaryCall(), "abc")); in UnaryCall_ServerHandlerThrowsRpcException()
111 …r ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc")); in UnaryCall_ServerHandlerThrowsRpcExceptionWithTrailers()
117 …ThrowsAsync<RpcException>(async () => await Calls.AsyncUnaryCall(helper.CreateUnaryCall(), "abc")); in UnaryCall_ServerHandlerThrowsRpcExceptionWithTrailers()
133 …r ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc")); in UnaryCall_ServerHandlerSetsStatus()
137 …ThrowsAsync<RpcException>(async () => await Calls.AsyncUnaryCall(helper.CreateUnaryCall(), "abc")); in UnaryCall_ServerHandlerSetsStatus()
[all …]
DTimeoutsTest.cs67 Assert.AreEqual("PASS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc")); in InfiniteDeadline()
70 …Assert.AreEqual("PASS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptions(deadline: D… in InfiniteDeadline()
86 … Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptions(deadline: clientDeadline)), "abc"); in DeadlineTransferredToServer()
98 …x = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptio… in DeadlineInThePast()
112 …x = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptio… in DeadlineExceededStatusOnTimeout()
132 …x = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptio… in ServerReceivesCancellationOnTimeout()
DThreadingModelTest.cs59 … var response = Calls.BlockingUnaryCall(helper.CreateUnaryCall(), (recursionDepth - 1).ToString()); in BlockingCallInServerHandlerDoesNotDeadlock()
64 …Assert.AreEqual("SUCCESS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), maxRecursionDepth.ToS… in BlockingCallInServerHandlerDoesNotDeadlock()
78 Assert.AreEqual("ABC", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "ABC")); in HandlerDoesNotRunOnGrpcThread()
89 await Calls.AsyncUnaryCall(helper.CreateUnaryCall(), "ABC"); in ContinuationDoesNotRunOnGrpcThread()
DMarshallingErrorsTest.cs86 …x = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "REQUEST")… in ResponseParsingError_UnaryResponse()
112 …x = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "UNPARSEAB… in RequestParsingError_UnaryRequest()
143 …Assert.Throws<IOException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "UNSERIALIZABLE… in RequestSerializationError_BlockingUnary()
149 …rowsAsync<IOException>(async () => await Calls.AsyncUnaryCall(helper.CreateUnaryCall(), "UNSERIALI… in RequestSerializationError_AsyncUnary()
DContextPropagationTest.cs80 await Calls.AsyncUnaryCall(helper.CreateUnaryCall(callOptions), "xyz"); in PropagateCancellation()
121 Calls.BlockingUnaryCall(helper.CreateUnaryCall( in PropagateDeadline()
127 return await Calls.AsyncUnaryCall(helper.CreateUnaryCall(callOptions), "xyz"); in PropagateDeadline()
149 return await Calls.AsyncUnaryCall(helper.CreateUnaryCall(callOptions), "xyz"); in SuppressDeadlinePropagation()
DResponseHeadersTest.cs73 var call = Calls.AsyncUnaryCall(helper.CreateUnaryCall(), ""); in ResponseHeadersAsync_UnaryCall()
147 Assert.AreEqual("PASS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "")); in WriteResponseHeaders_NullNotAllowed()
167 Assert.AreEqual("PASS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "")); in WriteResponseHeaders_AllowedOnlyOnce()
DUserAgentStringTest.cs64 Assert.AreEqual("PASS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "")); in DefaultUserAgentString()
84 Assert.AreEqual("PASS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "")); in ApplicationUserAgentString()
DCompressionTest.cs65 Calls.BlockingUnaryCall(helper.CreateUnaryCall(callOptions), "abc"); in WriteOptions_Unary()
128 …var response = Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptions(compressionMetadata)… in CanReadCompressedMessages()
DPerformanceTest.cs69 var callDetails = helper.CreateUnaryCall(); in UnaryCallPerformance()
DMockServiceHelper.cs152 …public CallInvocationDetails<string, string> CreateUnaryCall(CallOptions options = default(CallOpt… in CreateUnaryCall() method in Grpc.Core.Tests.MockServiceHelper
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Interceptors/
DServerInterceptorTest.cs55 Assert.AreEqual("PASS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "")); in AddRequestHeaderInServerInterceptor()
76 Assert.AreEqual("PASS", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "")); in VerifyInterceptorOrdering()