HomeSort by relevance Sort by last modified time
    Searched refs:Throws (Results 26 - 50 of 63) sorted by null

12 3

  /external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/
TimespecTest.cs 94 Assert.Throws(typeof(InvalidOperationException),
96 Assert.Throws(typeof(InvalidOperationException),
98 Assert.Throws(typeof(InvalidOperationException),
154 Assert.Throws(typeof(ArgumentException),
AsyncCallTest.cs 58 Assert.Throws(typeof(InvalidOperationException),
68 Assert.Throws(typeof(InvalidOperationException),
113 Assert.Throws(typeof(ArgumentNullException), () => asyncCall.UnaryCallAsync(nullRequest));
122 Assert.Throws(typeof(InvalidOperationException), () => asyncCall.UnaryCallAsync("request1"));
131 Assert.Throws(typeof(ArgumentNullException), () => asyncCall.UnaryCall(nullRequest));
140 Assert.Throws(typeof(InvalidOperationException), () => asyncCall.UnaryCall("request1"));
258 Assert.Throws(typeof(InvalidOperationException), () => requestStream.WriteAsync("request2"));
319 Assert.Throws(typeof(InvalidOperationException), () => requestStream.WriteAsync("request1"));
370 Assert.Throws(typeof(InvalidOperationException), () => asyncCall.ClientStreamingCallAsync());
379 Assert.Throws(typeof(InvalidOperationException)
    [all...]
AsyncCallServerTest.cs 126 Assert.Throws(typeof(InvalidOperationException), () => responseStream.WriteAsync("request1"));
  /external/grpc-grpc-java/examples/example-kotlin/src/test/kotlin/io/grpc/examples/helloworld/
HelloWorldClientTest.kt 61 @Throws(Exception::class)
  /external/flatbuffers/tests/FlatBuffers.Test/
Assert.cs 118 public static void Throws<T>(Action action) where T : Exception
FlatBufferBuilderTests.cs 334 Assert.Throws<ArgumentNullException>(() => fbb.Add(data));
  /external/grpc-grpc/src/csharp/Grpc.Core.Tests/
ClientServerTest.cs 78 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc"));
93 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc"));
111 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc"));
133 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc"));
152 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc"));
321 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(callDetails, "abc"));
336 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "abc"));
MarshallingErrorsTest.cs 50 // Google.Protobuf throws exception inherited from IOException
60 // Google.Protobuf throws exception inherited from IOException
86 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "REQUEST"));
112 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "UNPARSEABLE_VALUE"));
113 // Spec doesn't define the behavior. With the current implementation server handler throws exception which results in StatusCode.Unknown.
143 Assert.Throws<IOException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "UNSERIALIZABLE_VALUE"));
TimeoutsTest.cs 98 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptions(deadline: DateTime.MinValue)), "abc"));
112 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptions(deadline: DateTime.UtcNow.Add(TimeSpan.FromSeconds(5)))), "abc"));
132 var ex = Assert.Throws<RpcException>(() => Calls.BlockingUnaryCall(helper.CreateUnaryCall(new CallOptions(deadline: DateTime.UtcNow.Add(TimeSpan.FromSeconds(5)))), "abc"));
CallOptionsTest.cs 78 Assert.Throws(typeof(ArgumentException), () => new CallOptions(deadline: deadline, propagationToken: propagationToken1).Normalize());
84 Assert.Throws(typeof(ArgumentException), () => new CallOptions(cancellationToken: token, propagationToken: propagationToken2).Normalize());
CallCredentialsTest.cs 36 Assert.Throws(typeof(ArgumentException), () => CallCredentials.Compose(new FakeCallCredentials()));
ContextPropagationTest.cs 118 Assert.Throws(typeof(ArgumentException), () =>
  /developers/build/prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/java/com/example/android/pdfrendererbasic/
PdfRendererBasicFragment.kt 146 @Throws(IOException::class)
175 * @throws IOException When the PDF file cannot be closed.
177 @Throws(IOException::class)
  /external/grpc-grpc/src/csharp/Grpc.Core/
AsyncDuplexStreamingCall.cs 97 /// Throws InvalidOperationException otherwise.
106 /// Throws InvalidOperationException otherwise.
AsyncServerStreamingCall.cs 81 /// Throws InvalidOperationException otherwise.
90 /// Throws InvalidOperationException otherwise.
AsyncUnaryCall.cs 91 /// Throws InvalidOperationException otherwise.
100 /// Throws InvalidOperationException otherwise.
AsyncClientStreamingCall.cs 107 /// Throws InvalidOperationException otherwise.
116 /// Throws InvalidOperationException otherwise.
  /external/grpc-grpc/src/csharp/Grpc.Core.Tests/Interceptors/
ClientInterceptorTest.cs 99 Assert.Throws<ArgumentNullException>(() => helper.GetChannel().Intercept(default(Interceptor)));
100 Assert.Throws<ArgumentNullException>(() => helper.GetChannel().Intercept(new[]{default(Interceptor)}));
101 Assert.Throws<ArgumentNullException>(() => helper.GetChannel().Intercept(new[]{new CallbackInterceptor(()=>{}), null}));
102 Assert.Throws<ArgumentNullException>(() => helper.GetChannel().Intercept(default(Interceptor[])));
  /external/flatbuffers/tests/
phpUnionVectorTest.php 34 public function Throws($class, Callable $callback) {
  /external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
GeneratedServiceBaseTest.cs 63 var ex = Assert.Throws<RpcException>(() => client.UnaryCall(new SimpleRequest { }));
MetadataCredentialsTest.cs 148 var ex = Assert.Throws<RpcException>(() => client.UnaryCall(new SimpleRequest { }));
149 // StatusCode.Unknown as the server-side handler throws an exception after not receiving the authorization header.
156 var authInterceptorExceptionMessage = "Auth interceptor throws";
165 var ex = Assert.Throws<RpcException>(() => client.UnaryCall(new SimpleRequest { }));
InteropClient.cs 541 var e = Assert.Throws<RpcException>(() => client.UnaryCall(request));
573 var e = Assert.Throws<RpcException>(() => client.UnimplementedCall(new Empty()));
582 var e = Assert.Throws<RpcException>(() => client.UnimplementedCall(new Empty()));
600 var e = Assert.Throws<RpcException>(() => client.UnaryCall(probeRequest, CreateClientCompressionMetadata(false)));
  /external/javapoet/src/test/java/com/squareup/javapoet/
MethodSpecTest.java 109 @Nullable String thing, List<? extends T> things) throws IOException, SecurityException;
113 <T, R, V extends Throwable> T run(R param) throws V {
122 interface Throws<R extends RuntimeException> {
123 void fail() throws R;
127 Throws<IllegalStateException> {
157 + " java.lang.String arg0, java.util.List<? extends T> arg1) throws java.io.IOException,\n"
170 + "<T, R, V extends java.lang.Throwable> T run(R param) throws V {\n"
205 + "public java.lang.Integer call() throws java.lang.Exception {\n"
217 + "public void fail() throws java.lang.IllegalStateException {\n"
  /external/grpc-grpc/src/csharp/Grpc.Examples.Tests/
MathClientServerTests.cs 80 var ex = Assert.Throws<RpcException>(() => client.Div(new DivArgs { Dividend = 0, Divisor = 0 }));
  /external/swiftshader/third_party/llvm-7.0/llvm/utils/lit/lit/
Test.py 268 Throws ValueError if an XFAIL line has a syntax error.
299 Throws ValueError if a REQUIRES line has a syntax error.
329 Throws ValueError if a REQUIRES line has a syntax error.
341 Throws ValueError if an UNSUPPORTED line has a syntax error.

Completed in 1172 milliseconds

12 3