/external/clang/test/CodeGenCXX/ |
new-array-init-exceptions.cpp | 4 struct Throws { 5 Throws(int); 6 Throws(); 7 ~Throws(); 20 new Throws[n] { 1, 2, 3 }; 36 new Throws[3] { 1, 2, 3 };
|
/external/libcxx/test/std/containers/sequences/deque/deque.modifiers/ |
erase_iter.pass.cpp | 24 struct Throws { 25 Throws() : v_(0) {} 26 Throws(int v) : v_(v) {} 27 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } 28 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } 29 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } 30 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; [all...] |
erase_iter_iter.pass.cpp | 26 struct Throws { 27 Throws() : v_(0) {} 28 Throws(int v) : v_(v) {} 29 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } 30 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } 31 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } 32 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; [all...] |
/external/libcxx/test/std/containers/sequences/vector/vector.modifiers/ |
erase_iter.pass.cpp | 22 struct Throws { 23 Throws() : v_(0) {} 24 Throws(int v) : v_(v) {} 25 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } 26 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } 27 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } 28 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; [all...] |
erase_iter_iter.pass.cpp | 22 struct Throws { 23 Throws() : v_(0) {} 24 Throws(int v) : v_(v) {} 25 Throws(const Throws &rhs) : v_(rhs.v_) { if (sThrows) throw 1; } 26 Throws( Throws &&rhs) : v_(rhs.v_) { if (sThrows) throw 1; } 27 Throws& operator=(const Throws &rhs) { v_ = rhs.v_; return *this; } 28 Throws& operator=( Throws &&rhs) { v_ = rhs.v_; return *this; [all...] |
/external/flatbuffers/tests/FlatBuffers.Test/ |
ByteBufferTests.cs | 48 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutByte(1, 99)); 69 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(2, 99)); 78 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(0, 99)); 85 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutShort(1, 99)); 108 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(2, 0x0A0B0C0D)); 115 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(0, 0x0A0B0C0D)); 122 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutInt(2, 0x0A0B0C0D)); 149 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(2, 0x010203040A0B0C0D)); 156 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(0, 0x010203040A0B0C0D)); 163 Assert.Throws<ArgumentOutOfRangeException>(() => uut.PutLong(2, 0x010203040A0B0C0D)) [all...] |
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/ |
ChannelCredentialsTest.cs | 39 Assert.Throws(typeof(ArgumentNullException), () => ChannelCredentials.Create(null, new FakeCallCredentials())); 40 Assert.Throws(typeof(ArgumentNullException), () => ChannelCredentials.Create(new FakeChannelCredentials(true), null)); 43 Assert.Throws(typeof(ArgumentException), () => ChannelCredentials.Create(new FakeChannelCredentials(false), new FakeCallCredentials())); 60 var ex1 = Assert.Throws(typeof(Exception), () => creds.GetNativeCredentials()); 61 var ex2 = Assert.Throws(typeof(Exception), () => creds.GetNativeCredentials());
|
MetadataTest.cs | 42 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc-bin", "xyz")); 54 Assert.Throws(typeof(InvalidOperationException), () => { var v = entry.Value; }); 57 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc", bytes)); 71 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc[", "xyz")); 72 Assert.Throws(typeof(ArgumentException), () => new Metadata.Entry("abc/", "xyz")); 78 Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry(null, "xyz")); 79 Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry("abc", (string)null)); 80 Assert.Throws(typeof(ArgumentNullException), () => new Metadata.Entry("abc-bin", (byte[])null)); 114 Assert.Throws(typeof(InvalidOperationException), () => { var v = entry.Value; }); 212 Assert.Throws<InvalidOperationException>(() => metadata.Insert(0, entry)) [all...] |
AuthPropertyTest.cs | 29 Assert.Throws(typeof(ArgumentNullException), () => AuthProperty.Create(null, new byte[0])); 30 Assert.Throws(typeof(ArgumentNullException), () => AuthProperty.CreateUnsafe(null, new byte[0])); 36 Assert.Throws(typeof(ArgumentNullException), () => AuthProperty.Create("abc", null)); 37 Assert.Throws(typeof(ArgumentNullException), () => AuthProperty.CreateUnsafe("abc", null));
|
ChannelOptionsTest.cs | 38 Assert.Throws(typeof(InvalidOperationException), () => { var s = option.StringValue; }); 49 Assert.Throws(typeof(InvalidOperationException), () => { var s = option.IntValue; }); 55 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption(null, "abc"); }); 56 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption(null, 1); }); 57 Assert.Throws(typeof(ArgumentNullException), () => { new ChannelOption("abc", null); });
|
ServerTest.cs | 80 Assert.Throws(typeof(IOException), () => server.Start()); 92 Assert.Throws(typeof(InvalidOperationException), () => server.Ports.Add("localhost", 9999, ServerCredentials.Insecure)); 93 Assert.Throws(typeof(InvalidOperationException), () => server.Services.Add(ServerServiceDefinition.CreateBuilder().Build())); 103 Assert.Throws(typeof(InvalidOperationException), () => server.Start());
|
ChannelTest.cs | 33 Assert.Throws(typeof(ArgumentNullException), () => new Channel(null, ChannelCredentials.Insecure)); 44 Assert.Throws(typeof(ArgumentException), () => new Channel("127.0.0.1", ChannelCredentials.Insecure, options)); 113 Assert.Throws(typeof(ObjectDisposedException), () => { var x = channel.ResolvedTarget; });
|
/external/grpc-grpc-java/examples/example-kotlin/src/main/kotlin/io/grpc/examples/helloworld/ |
HelloWorldServer.kt | 35 @Throws(IOException::class) 61 @Throws(InterruptedException::class) 81 @Throws(IOException::class, InterruptedException::class)
|
HelloWorldClient.kt | 44 @Throws(InterruptedException::class) 70 @Throws(Exception::class)
|
/external/grpc-grpc/src/csharp/Grpc.Core/Utils/ |
GrpcPreconditions.cs | 29 /// Throws <see cref="ArgumentException"/> if condition is false. 41 /// Throws <see cref="ArgumentException"/> with given message if condition is false. 54 /// Throws <see cref="ArgumentNullException"/> if reference is null. 67 /// Throws <see cref="ArgumentNullException"/> if reference is null. 81 /// Throws <see cref="InvalidOperationException"/> if condition is false. 93 /// Throws <see cref="InvalidOperationException"/> with given message if condition is false.
|
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
GeneratedClientTest.cs | 39 Assert.Throws(typeof(NotImplementedException), () => unimplementedClient.UnaryCall(new SimpleRequest())); 45 Assert.Throws(typeof(NotImplementedException), () => unimplementedClient.StreamingInputCall()); 51 Assert.Throws(typeof(NotImplementedException), () => unimplementedClient.StreamingOutputCall(new StreamingOutputCallRequest())); 57 Assert.Throws(typeof(NotImplementedException), () => unimplementedClient.FullDuplexCall());
|
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/ |
DefaultObjectPoolTest.cs | 75 Assert.Throws<ArgumentNullException>(() => new DefaultObjectPool<TestPooledObject>(null, 10, 2)); 76 Assert.Throws<ArgumentException>(() => new DefaultObjectPool<TestPooledObject>(() => new TestPooledObject(), -1, 10)); 77 Assert.Throws<ArgumentException>(() => new DefaultObjectPool<TestPooledObject>(() => new TestPooledObject(), 10, -1));
|
/developers/build/prebuilts/gradle/EmojiCompat/kotlinApp/app/src/androidTest/java/com/example/android/emojicompat/ |
MainActivityTest.kt | 39 @Throws(Exception::class)
|
/developers/samples/android/views/EmojiCompat/kotlinApp/app/src/androidTest/java/com/example/android/emojicompat/ |
MainActivityTest.kt | 35 @Throws(Exception::class)
|
/external/flatbuffers/tests/ |
phpTest.php | 349 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 373 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 380 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 387 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 411 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 418 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 425 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 446 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 453 $assert->Throws(new OutOfRangeException(), function() use ($uut) { 461 $assert->Throws(new OutOfRangeException(), function() use ($uut) [all...] |
/external/grpc-grpc-java/examples/example-kotlin/src/test/kotlin/io/grpc/examples/helloworld/ |
HelloWorldServerTest.kt | 53 @Throws(Exception::class)
|
/external/catch2/include/internal/ |
catch_test_case_info.h | 33 Throws = 1 << 4, 47 bool throws() const;
|
catch_test_case_info.cpp | 27 else if( tag == "!throws" ) 28 return TestCaseInfo::Throws; 124 bool TestCaseInfo::throws() const { function in class:Catch::TestCaseInfo 125 return ( properties & Throws ) != 0;
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
CodedInputStreamTest.cs | 99 var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32());
103 exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64());
107 exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(new MemoryStream(data)));
284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes());
321 Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(data65));
324 Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input));
334 Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input));
422 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadTag());
498 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField);
515 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); [all...] |
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Interceptors/ |
ServerInterceptorTest.cs | 85 Assert.Throws<ArgumentNullException>(() => sd.Intercept(default(Interceptor))); 86 Assert.Throws<ArgumentNullException>(() => sd.Intercept(new[]{default(Interceptor)})); 87 Assert.Throws<ArgumentNullException>(() => sd.Intercept(new[]{new ServerCallContextInterceptor(ctx=>{}), null})); 88 Assert.Throws<ArgumentNullException>(() => sd.Intercept(default(Interceptor[])));
|