Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
36450210
Commit
36450210
authored
Jun 28, 2017
by
Yilun Chong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add message set test case
parent
06c9057c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
conformance.proto
conformance/conformance.proto
+1
-0
test_messages_proto2.proto
src/google/protobuf/test_messages_proto2.proto
+20
-0
No files found.
conformance/conformance.proto
View file @
36450210
...
...
@@ -78,6 +78,7 @@ message ConformanceRequest {
// Which format should the testee serialize its message to?
WireFormat
requested_output_format
=
3
;
// should be set to either "proto2" or "proto3"
string
message_type
=
4
;
}
...
...
src/google/protobuf/test_messages_proto2.proto
View file @
36450210
...
...
@@ -179,6 +179,26 @@ message TestAllTypesProto2 {
optional
int32
field__Name16
=
416
;
optional
int32
field_name17__
=
417
;
optional
int32
Field_name18__
=
418
;
// message_set test case.
message
mset_correct
{
option
message_set_wire_format
=
true
;
extensions
4
to
max
;
}
message
mset_correct_extension1
{
extend
mset_correct
{
optional
mset_correct_extension1
message_set_extension
=
1547769
;
}
optional
string
str
=
25
;
}
message
mset_correct_extension2
{
extend
mset_correct
{
optional
mset_correct_extension1
message_set_extension
=
4135312
;
}
optional
int32
i
=
9
;
}
}
message
ForeignMessage
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment