Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs b/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
index 0e2bad59e5fcf89ecb3ba3894a75fba45130938a..c616470e81fc6e8821283c68f87e2b5855659823 100644
--- a/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
+++ b/third_party/protobuf/csharp/src/Google.Protobuf.Test/FieldCodecTest.cs
@@ -32,7 +32,6 @@
using System.Collections.Generic;
using System.IO;
-using System.Reflection;
using Google.Protobuf.TestProtos;
using NUnit.Framework;
@@ -163,7 +162,7 @@ namespace Google.Protobuf
codedOutput.Flush();
Assert.AreEqual(0, stream.Position);
Assert.AreEqual(0, codec.CalculateSizeWithTag(codec.DefaultValue));
- if (typeof(T).GetTypeInfo().IsValueType)
+ if (typeof(T).IsValueType)
{
Assert.AreEqual(default(T), codec.DefaultValue);
}

Powered by Google App Engine
This is Rietveld 408576698