diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2015-02-05 14:19:46 -0800 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2015-02-05 14:19:46 -0800 |
commit | 0d52964597d0552f5ab4442f9908fd39d8650b23 (patch) | |
tree | 21a5d6bceb80b6fbed67f990d2ca4f8cdfd01b8a /javanano/src/test/java/com/google/protobuf/nano/map_test.proto | |
parent | 3c0355ef3768d45843aaf8437f8ecf63f3706e5d (diff) |
Basic serialization/parsing test.
Diffstat (limited to 'javanano/src/test/java/com/google/protobuf/nano/map_test.proto')
-rw-r--r-- | javanano/src/test/java/com/google/protobuf/nano/map_test.proto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/javanano/src/test/java/com/google/protobuf/nano/map_test.proto b/javanano/src/test/java/com/google/protobuf/nano/map_test.proto index 482c499e..5ea86717 100644 --- a/javanano/src/test/java/com/google/protobuf/nano/map_test.proto +++ b/javanano/src/test/java/com/google/protobuf/nano/map_test.proto @@ -52,4 +52,18 @@ message TestMap { map<int32, EnumValue> int32_to_enum_field = 4; map<int32, MessageValue> int32_to_message_field = 5; map<string, int32> string_to_int32_field = 6; + map<bool, bool> bool_to_bool_field = 7; + + // Test all the other primitive types. As the key and value are not coupled in + // the implementation, we do not test all the combinations of key/value pairs, + // so that we can keep the number of test cases manageable + map<uint32, uint32> uint32_to_uint32_field = 11; + map<sint32, sint32> sint32_to_sint32_field = 12; + map<fixed32, fixed32> fixed32_to_fixed32_field = 13; + map<sfixed32, sfixed32> sfixed32_to_sfixed32_field = 14; + map<int64, int64> int64_to_int64_field = 15; + map<uint64, uint64> uint64_to_uint64_field = 16; + map<sint64, sint64> sint64_to_sint64_field = 17; + map<fixed64, fixed64> fixed64_to_fixed64_field = 18; + map<sfixed64, sfixed64> sfixed64_to_sfixed64_field = 19; } |