/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | MessageTest.java | 36 import protobuf_unittest.UnittestProto.TestRequired; 114 private static final TestRequired TEST_REQUIRED_UNINITIALIZED = 115 TestRequired.getDefaultInstance(); 116 private static final TestRequired TEST_REQUIRED_INITIALIZED = 117 TestRequired.newBuilder().setA(1).setB(2).setC(3).build(); 120 TestRequired.Builder builder = TestRequired.newBuilder(); in testRequired() 154 builder.setExtension(TestRequired.single, TEST_REQUIRED_UNINITIALIZED); in testRequiredExtension() 157 builder.setExtension(TestRequired.single, TEST_REQUIRED_INITIALIZED); in testRequiredExtension() 160 builder.addExtension(TestRequired.multi, TEST_REQUIRED_UNINITIALIZED); in testRequiredExtension() 163 builder.setExtension(TestRequired.multi, 0, TEST_REQUIRED_INITIALIZED); in testRequiredExtension() [all …]
|
D | AbstractMessageTest.java | 40 import protobuf_unittest.UnittestProto.TestRequired; 350 private static final TestRequired TEST_REQUIRED_UNINITIALIZED = 351 TestRequired.getDefaultInstance(); 352 private static final TestRequired TEST_REQUIRED_INITIALIZED = 353 TestRequired.newBuilder().setA(1).setB(2).setC(3).build(); 356 TestRequired.Builder builder = TestRequired.newBuilder(); in testIsInitialized()
|
D | ParserTest.java | 44 import protobuf_unittest.UnittestProto.TestRequired; 127 assertParsePartial(TestRequired.parser(), TestRequired.newBuilder().setA(1).buildPartial()); in testParsePartial()
|
D | DescriptorsTest.java | 59 import protobuf_unittest.UnittestProto.TestRequired; 207 FieldDescriptor nestedExtension = TestRequired.single.getDescriptor(); in testFieldDescriptor() 257 assertEquals(TestRequired.getDescriptor(), in testFieldDescriptor() 263 TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorLabel() 278 FieldDescriptor requiredField = TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorJsonName()
|
D | FieldPresenceTest.java | 315 UnittestProto.TestRequired.Builder proto2Builder = in testIsInitialized()
|
D | GeneratedMessageTest.java | 872 assertEquals(UnittestProto.TestRequired.SINGLE_FIELD_NUMBER, 1000); in testExtensionConstantValues() 873 assertEquals(UnittestProto.TestRequired.MULTI_FIELD_NUMBER, 1001); in testExtensionConstantValues()
|
/external/protobuf/src/google/protobuf/ |
D | reflection_ops_unittest.cc | 338 unittest::TestRequired message; in TEST() 367 unittest::TestRequired* sub_message = message.add_repeated_message(); in TEST() 385 message.MutableExtension(unittest::TestRequired::single); in TEST() 389 message.MutableExtension(unittest::TestRequired::single)->set_a(1); in TEST() 390 message.MutableExtension(unittest::TestRequired::single)->set_b(2); in TEST() 391 message.MutableExtension(unittest::TestRequired::single)->set_c(3); in TEST() 395 message.AddExtension(unittest::TestRequired::multi); in TEST() 399 message.MutableExtension(unittest::TestRequired::multi, 0)->set_a(1); in TEST() 400 message.MutableExtension(unittest::TestRequired::multi, 0)->set_b(2); in TEST() 401 message.MutableExtension(unittest::TestRequired::multi, 0)->set_c(3); in TEST() [all …]
|
D | message_unittest.cc | 184 unittest::TestRequired message; in TEST() 200 unittest::TestRequired message; in TEST() 207 unittest::TestRequired message; in TEST() 219 google::protobuf::internal::DynamicCastToGenerated<unittest::TestRequired>( in TEST() 229 google::protobuf::internal::DynamicCastToGenerated<const unittest::TestRequired>( in TEST() 236 unittest::TestRequired message; in TEST() 244 unittest::TestRequired message; in TEST() 272 class NegativeByteSize : public unittest::TestRequired { 290 unittest::TestRequired message; in TEST() 297 unittest::TestRequired message; in TEST()
|
D | extension_set_unittest.cc | 609 message.MutableExtension(unittest::TestRequired::single); in TEST() 612 message.MutableExtension(unittest::TestRequired::single)->set_a(1); in TEST() 614 message.MutableExtension(unittest::TestRequired::single)->set_b(2); in TEST() 616 message.MutableExtension(unittest::TestRequired::single)->set_c(3); in TEST() 619 message.AddExtension(unittest::TestRequired::multi); in TEST() 622 message.MutableExtension(unittest::TestRequired::multi, 0)->set_a(1); in TEST() 624 message.MutableExtension(unittest::TestRequired::multi, 0)->set_b(2); in TEST() 626 message.MutableExtension(unittest::TestRequired::multi, 0)->set_c(3); in TEST()
|
D | text_format_unittest.cc | 831 unittest::TestRequired message; in TEST_F() 1356 unittest::TestRequired message; in TEST_F() 1363 unittest::TestRequired message; in TEST_F() 1377 unittest::TestRequired message; in TEST_F() 1391 unittest::TestRequired message; in TEST_F()
|
D | unittest.proto | 344 message TestRequired { message 350 optional TestRequired single = 1000; 351 repeated TestRequired multi = 1001; 390 optional TestRequired optional_message = 1; 391 repeated TestRequired repeated_message = 2;
|
D | unittest_no_field_presence.proto | 125 protobuf_unittest.TestRequired proto2 = 1;
|
D | map_unittest.proto | 88 map<int32, TestRequired> map_field = 1;
|
/external/protobuf/java/core/src/test/proto/com/google/protobuf/ |
D | field_presence_test.proto | 56 protobuf_unittest.TestRequired optional_proto2_message = 6; 65 protobuf_unittest.TestRequired oneof_proto2_message = 17; 73 repeated protobuf_unittest.TestRequired repeated_proto2_message = 26; 83 protobuf_unittest.TestRequired optional_proto2_message = 6; 92 repeated protobuf_unittest.TestRequired repeated_proto2_message = 26;
|
/external/protobuf/python/google/protobuf/internal/ |
D | generator_test.py | 132 self.assertEqual(unittest_pb2.TestRequired.single.containing_type, 138 self.assertEqual(unittest_pb2.TestRequired.single.extension_scope, 139 unittest_pb2.TestRequired.DESCRIPTOR) 143 self.assertTrue(unittest_pb2.TestRequired.single.is_extension) 145 message_descriptor = unittest_pb2.TestRequired.DESCRIPTOR
|
D | reflection_test.py | 1170 extension = unittest_pb2.TestRequired.single 1586 proto = unittest_pb2.TestRequired() 1608 extension = unittest_pb2.TestRequired.multi 1623 extension = unittest_pb2.TestRequired.single 1632 proto = unittest_pb2.TestRequired() 1846 third_proto = unittest_pb2.TestRequired() 2532 proto = unittest_pb2.TestRequired() 2541 proto2 = unittest_pb2.TestRequired() 2568 proto2 = unittest_pb2.TestRequired() 2717 self.assertEqual(unittest_pb2.TestRequired.single.number, 1000) [all …]
|
D | message_test.py | 1046 golden_message = unittest_pb2.TestRequired(a=1)
|
/external/protobuf/objectivec/Tests/ |
D | GPBMessageTests.m | 215 - (TestRequired *)testRequiredInitialized { 216 TestRequired *message = [TestRequired message]; 224 TestRequired *message = [TestRequired message]; 240 [message setOptionalMessage:[TestRequired message]]; 246 [message.repeatedMessageArray addObject:[TestRequired message]]; 259 [message setExtension:[TestRequired single] value:[TestRequired message]]; 262 [message setExtension:[TestRequired single] 266 [message addExtension:[TestRequired multi] value:[TestRequired message]]; 269 [message setExtension:[TestRequired multi] 276 TestRequired *message = [TestRequired message]; [all …]
|
D | GPBMessageTests+Runtime.m | 2076 TestRequired *subMsg = [[TestRequired alloc] init];
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_unittest.cc | 684 unittest::TestRequired message; in TEST() 939 unittest::TestRequired message; in TEST() 952 EXPECT_EQ(unittest::TestRequired::kSingleFieldNumber, 1000); in TEST() 953 EXPECT_EQ(unittest::TestRequired::kMultiFieldNumber, 1001); in TEST()
|
/external/protobuf/src/google/protobuf/util/ |
D | message_differencer_unittest.cc | 176 unittest::TestRequired msg1; in TEST() 177 unittest::TestRequired msg2; in TEST() 358 unittest::TestRequired msg1; in TEST() 359 unittest::TestRequired msg2; in TEST()
|
/external/golang-protobuf/proto/ |
D | all_test.go | 2327 func TestRequired(t *testing.T) { func
|