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

Unified Diff: chrome/browser/sync/protocol/test.proto

Issue 3384024: sync_unit_tests: add test for unknown field retention. (Closed)
Patch Set: Created 10 years, 3 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
« no previous file with comments | « chrome/browser/sync/protocol/sync_proto.gyp ('k') | chrome/browser/sync/util/protobuf_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/protocol/test.proto
diff --git a/chrome/browser/sync/protocol/test.proto b/chrome/browser/sync/protocol/test.proto
new file mode 100644
index 0000000000000000000000000000000000000000..e218e477fe48a9b853b0bf0fecd5a4f7dea6b536
--- /dev/null
+++ b/chrome/browser/sync/protocol/test.proto
@@ -0,0 +1,24 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// Protocol messages used only for testing.
+
+syntax = "proto2";
+
+// TODO(agl): In the future we hope that the lite runtime will be able to
+// handle unknown fields in messages. Until then, we use the full runtime.
+
+// option optimize_for = LITE_RUNTIME;
+// option retain_unknown_fields = true;
+
+package sync_pb;
+
+message UnknownFieldsTestA {
+ required bool foo = 1;
+}
+
+message UnknownFieldsTestB {
+ required bool foo = 1;
+ required bool bar = 2;
+}
« no previous file with comments | « chrome/browser/sync/protocol/sync_proto.gyp ('k') | chrome/browser/sync/util/protobuf_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698