mirror of
https://github.com/google/pebble.git
synced 2025-08-17 03:46:32 -04:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
7
third_party/nanopb/tests/regression/issue_545/SConscript
vendored
Normal file
7
third_party/nanopb/tests/regression/issue_545/SConscript
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Regression test for #545:
|
||||
# Field descriptor width automatic sizing is inaccurate with oneofs
|
||||
|
||||
Import("env")
|
||||
env.NanopbProto("submsg_callback")
|
||||
env.Object("submsg_callback.pb.c")
|
||||
|
23
third_party/nanopb/tests/regression/issue_545/submsg_callback.proto
vendored
Normal file
23
third_party/nanopb/tests/regression/issue_545/submsg_callback.proto
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
syntax = "proto2";
|
||||
|
||||
import "nanopb.proto";
|
||||
|
||||
message SubMessage3 {
|
||||
required uint32 foo = 1;
|
||||
}
|
||||
|
||||
message SubMessage2 {
|
||||
oneof oneof {
|
||||
SubMessage3 submsg = 1 [(nanopb).submsg_callback = true];
|
||||
}
|
||||
}
|
||||
|
||||
message SubMessage1 {
|
||||
repeated SubMessage2 msgs = 1 [(nanopb).max_count = 16];
|
||||
}
|
||||
|
||||
message MainMessage {
|
||||
required SubMessage1 msg = 1;
|
||||
required uint32 foo = 2;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue