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

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

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owners Created 4 years, 7 months 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/TestProtos/ForeignMessagePartial.cs
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs b/third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs
similarity index 81%
copy from third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs
copy to third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs
index 9f620eb4012e35421383ce544f51d7087f4100a1..5663a69902e59858b1fa8b170f652fadb0b595a8 100644
--- a/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/WrappersPartial.cs
+++ b/third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/ForeignMessagePartial.cs
@@ -1,6 +1,6 @@
#region Copyright notice and license
// Protocol Buffers - Google's data interchange format
-// Copyright 2008 Google Inc. All rights reserved.
+// Copyright 2016 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
@@ -30,13 +30,16 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endregion
-namespace Google.Protobuf.WellKnownTypes
+namespace Google.Protobuf.TestProtos
{
- public static partial class WrappersReflection
+ /// <summary>
+ /// A message with custom diagnostics (to test that they work).
+ /// </summary>
+ public partial class ForeignMessage : ICustomDiagnosticMessage
{
- /// <summary>
- /// Field number for the single "value" field in all wrapper types.
- /// </summary>
- internal const int WrapperValueFieldNumber = Int32Value.ValueFieldNumber;
+ public string ToDiagnosticString()
+ {
+ return $"{{ \"c\": {C}, \"@cInHex\": \"{C:x}\" }}";
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698