Home
last modified time | relevance | path

Searched refs:FromResult (Results 1 – 25 of 32) sorted by relevance

12

/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DThreadingModelTest.cs57 return Task.FromResult("SUCCESS"); in BlockingCallInServerHandlerDoesNotDeadlock()
60 return Task.FromResult(response); in BlockingCallInServerHandlerDoesNotDeadlock()
73 … return Task.FromResult("Server handler should not run on gRPC threadpool thread."); in HandlerDoesNotRunOnGrpcThread()
75 return Task.FromResult(request); in HandlerDoesNotRunOnGrpcThread()
86 return Task.FromResult(request); in ContinuationDoesNotRunOnGrpcThread()
DClientServerTest.cs62 return Task.FromResult(request); in UnaryCall()
130 return Task.FromResult(""); in UnaryCall_ServerHandlerSetsStatus()
149 return Task.FromResult(""); in UnaryCall_ServerHandlerSetsStatusAndTrailers()
287 return Task.FromResult(""); in AsyncUnaryCall_EchoMetadata()
333 return Task.FromResult(""); in StatusDetailIsUtf8()
346 return Task.FromResult(context.Peer); in ServerCallContext_PeerInfoPresent()
360 return Task.FromResult("PASS"); in ServerCallContext_HostAndMethodPresent()
372 return Task.FromResult("PASS"); in ServerCallContext_AuthContextNotPopulated()
DUserAgentStringTest.cs57 return Task.FromResult("PASS"); in DefaultUserAgentString()
77 return Task.FromResult("PASS"); in ApplicationUserAgentString()
DTimeoutsTest.cs63 return Task.FromResult("PASS"); in InfiniteDeadline()
84 return Task.FromResult("PASS"); in DeadlineTransferredToServer()
DMarshallingErrorsTest.cs83 return Task.FromResult("UNPARSEABLE_VALUE"); in ResponseParsingError_UnaryResponse()
109 return Task.FromResult("RESPONSE"); in RequestParsingError_UnaryRequest()
DMockServiceHelper.cs101 return Task.FromResult(""); in MockServiceHelper()
107 return Task.FromResult(""); in MockServiceHelper()
DContextPropagationTest.cs113 return Task.FromResult("PASS"); in PropagateDeadline()
141 return Task.FromResult("PASS"); in SuppressDeadlinePropagation()
DHalfcloseTest.cs67 return Task.FromResult("PASS"); in HalfcloseAfterFullclose_ClientStreamingCall()
DPerformanceTest.cs66 return Task.FromResult(request); in UnaryCallPerformance()
DCompressionTest.cs61 return Task.FromResult(request); in WriteOptions_Unary()
/external/grpc-grpc/src/csharp/Grpc.Examples.Tests/
DMathClientMockableTest.cs59 …var fakeCall = TestCalls.AsyncUnaryCall<DivReply>(Task.FromResult(new DivReply()), Task.FromResult in ClientBaseAsyncUnaryCallCanBeMocked()
71 …ntStreamingCall<Num, Num>(mockRequestStream.Object, Task.FromResult(new Num()), Task.FromResult(ne… in ClientBaseClientStreamingCallCanBeMocked()
83 …estCalls.AsyncServerStreamingCall<Num>(mockResponseStream.Object, Task.FromResult(new Metadata()),… in ClientBaseServerStreamingCallCanBeMocked()
96 …s, DivReply>(mockRequestStream.Object, mockResponseStream.Object, Task.FromResult(new Metadata()),… in ClientBaseDuplexStreamingCallCanBeMocked()
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DWorkerServiceImpl.cs90 return Task.FromResult(new CoreResponse { Cores = Environment.ProcessorCount }); in CoreCount()
96 return Task.FromResult(new Void()); in QuitWorker()
DBenchmarkServiceImpl.cs41 return Task.FromResult(response); in UnaryCall()
DSslCredentialsTest.cs99 … return Task.FromResult(new SimpleResponse { Payload = CreateZerosPayload(request.ResponseSize) }); in UnaryCall()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Interceptors/
DClientInterceptorTest.cs48 return Task.FromResult("PASS"); in AddRequestHeaderInClientInterceptor()
67 return Task.FromResult("PASS"); in CheckInterceptorOrderInClientInterceptors()
97 return Task.FromResult("PASS"); in CheckNullInterceptorRegistrationFails()
DServerInterceptorTest.cs49 return Task.FromResult("PASS"); in AddRequestHeaderInServerInterceptor()
64 return Task.FromResult("PASS"); in VerifyInterceptorOrdering()
/external/grpc-grpc/src/csharp/Grpc.Core/Utils/
DTaskUtils.cs39 return Task.FromResult<object>(null); // for .NET45, emulate the functionality
/external/grpc-grpc/examples/csharp/Helloworld/GreeterServer/
DProgram.cs27 return Task.FromResult(new HelloReply { Message = "Hello " + request.Name }); in SayHello()
/external/grpc-grpc/examples/csharp/HelloworldLegacyCsproj/GreeterServer/
DProgram.cs27 return Task.FromResult(new HelloReply { Message = "Hello " + request.Name }); in SayHello()
/external/grpc-grpc/src/csharp/Grpc.HealthCheck/
DHealthServiceImpl.cs99 return Task.FromResult(new HealthCheckResponse { Status = status }); in Check()
/external/grpc-grpc/examples/csharp/HelloworldXamarin/iOS/
DViewController.cs87 return Task.FromResult(new HelloReply { Message = "Hello " + request.Name }); in SayHello()
/external/grpc-grpc/examples/csharp/HelloworldXamarin/Droid/
DMainActivity.cs79 return Task.FromResult(new HelloReply { Message = "Hello " + request.Name }); in SayHello()
/external/grpc-grpc/src/csharp/Grpc.Examples/
DMathServiceImpl.cs35 return Task.FromResult(DivInternal(request)); in Div()
/external/v8/src/heap/
Dlocal-allocator-inl.h93 new_space_lab_ = LocalAllocationBuffer::FromResult(heap_, result, kLabSize); in NewLocalAllocationBuffer()
/external/grpc-grpc/examples/csharp/RouteGuide/RouteGuideServer/
DRouteGuideImpl.cs48 return Task.FromResult(CheckFeature(request)); in GetFeature()

12