| Index: third_party/grpc/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueEventTest.cs
|
| diff --git a/third_party/protobuf/csharp/src/Google.Protobuf.Test/SampleEnum.cs b/third_party/grpc/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueEventTest.cs
|
| similarity index 76%
|
| copy from third_party/protobuf/csharp/src/Google.Protobuf.Test/SampleEnum.cs
|
| copy to third_party/grpc/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueEventTest.cs
|
| index 77447afa127340046298081d9bfca4dd51c14f6c..188c6406a290ea4aa898b5904e29f81c29c518f1 100644
|
| --- a/third_party/protobuf/csharp/src/Google.Protobuf.Test/SampleEnum.cs
|
| +++ b/third_party/grpc/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueEventTest.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, 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,25 @@
|
| // 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 System.Runtime.InteropServices;
|
| +using System.Threading.Tasks;
|
| +using Grpc.Core;
|
| +using Grpc.Core.Internal;
|
| +using Grpc.Core.Utils;
|
| +using NUnit.Framework;
|
| +
|
| +namespace Grpc.Core.Internal.Tests
|
| {
|
| - // Just a sample enum with positive and negative values to be used in tests.
|
| - internal enum SampleEnum
|
| + public class CompletionQueueEventTest
|
| {
|
| - NegativeValue = -2,
|
| - None = 0,
|
| - PositiveValue = 3
|
| + [Test]
|
| + public void CreateAndDestroy()
|
| + {
|
| + Assert.AreEqual(CompletionQueueEvent.NativeSize, Marshal.SizeOf(typeof(CompletionQueueEvent)));
|
| + }
|
| }
|
| }
|
|
|