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

Unified Diff: third_party/dom_distiller_js/test_sample.proto

Issue 2034373002: Generate the proto JSON converter for DOM distiller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows-specific fixes Created 4 years, 4 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/dom_distiller_js/test_sample.proto
diff --git a/third_party/dom_distiller_js/test_sample.proto b/third_party/dom_distiller_js/test_sample.proto
new file mode 100644
index 0000000000000000000000000000000000000000..bceb5c7e007c337cd492f9d929ded30adda5cc1e
--- /dev/null
+++ b/third_party/dom_distiller_js/test_sample.proto
@@ -0,0 +1,30 @@
+// Copyright 2016 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.
+
+syntax = "proto2";
+
+package dom_distiller.test_sample.proto;
+option optimize_for = LITE_RUNTIME;
+option java_package = "org.chromium.distiller.test_sample.proto";
+option java_outer_classname = "DomDistillerTestProtos";
+
+message TypeTest {
+ optional float float_value = 1;
+ optional double double_value = 2;
+ optional int32 int32_value = 3;
+ optional bool bool_value = 4;
+ optional string string_value = 5;
+ message Message { optional bool dummy = 1; }
+ optional Message message_value = 6;
+}
+
+message Repeated {
+ repeated float float_value = 1;
+ repeated double double_value = 2;
+ repeated int32 int32_value = 3;
+ repeated bool bool_value = 4;
+ repeated string string_value = 5;
+ message Message { repeated bool dummy = 1; }
+ repeated Message message_value = 6;
+}

Powered by Google App Engine
This is Rietveld 408576698