| Index: third_party/grpc/test/distrib/csharp/DistribTest/Program.cs
|
| diff --git a/third_party/protobuf/csharp/src/Google.Protobuf.Test/SampleEnum.cs b/third_party/grpc/test/distrib/csharp/DistribTest/Program.cs
|
| similarity index 75%
|
| copy from third_party/protobuf/csharp/src/Google.Protobuf.Test/SampleEnum.cs
|
| copy to third_party/grpc/test/distrib/csharp/DistribTest/Program.cs
|
| index 77447afa127340046298081d9bfca4dd51c14f6c..e944648f179906bd8eb4bbe862e20dd7b4ce921f 100644
|
| --- a/third_party/protobuf/csharp/src/Google.Protobuf.Test/SampleEnum.cs
|
| +++ b/third_party/grpc/test/distrib/csharp/DistribTest/Program.cs
|
| @@ -1,7 +1,7 @@
|
| #region Copyright notice and license
|
| -// Protocol Buffers - Google's data interchange format
|
| -// Copyright 2015 Google Inc. All rights reserved.
|
| -// https://developers.google.com/protocol-buffers/
|
| +
|
| +// Copyright 2015-2016, Google Inc.
|
| +// All rights reserved.
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| @@ -28,15 +28,23 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +
|
| #endregion
|
| -
|
| -namespace Google.Protobuf
|
| +
|
| +using System;
|
| +using Grpc.Core;
|
| +
|
| +namespace TestGrpcPackage
|
| {
|
| - // Just a sample enum with positive and negative values to be used in tests.
|
| - internal enum SampleEnum
|
| + class MainClass
|
| {
|
| - NegativeValue = -2,
|
| - None = 0,
|
| - PositiveValue = 3
|
| + public static void Main(string[] args)
|
| + {
|
| + // This code doesn't do much but makes sure the native extension is loaded
|
| + // which is what we are testing here.
|
| + Channel c = new Channel("127.0.0.1:1000", ChannelCredentials.Insecure);
|
| + c.ShutdownAsync().Wait();
|
| + Console.WriteLine("Success!");
|
| + }
|
| }
|
| }
|
|
|