Home
last modified time | relevance | path

Searched refs:TestRequired (Results 1 – 22 of 22) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DMessageTest.java36 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 …]
DAbstractMessageTest.java40 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()
DParserTest.java44 import protobuf_unittest.UnittestProto.TestRequired;
127 assertParsePartial(TestRequired.parser(), TestRequired.newBuilder().setA(1).buildPartial()); in testParsePartial()
DDescriptorsTest.java59 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()
DFieldPresenceTest.java315 UnittestProto.TestRequired.Builder proto2Builder = in testIsInitialized()
DGeneratedMessageTest.java872 assertEquals(UnittestProto.TestRequired.SINGLE_FIELD_NUMBER, 1000); in testExtensionConstantValues()
873 assertEquals(UnittestProto.TestRequired.MULTI_FIELD_NUMBER, 1001); in testExtensionConstantValues()
/external/protobuf/src/google/protobuf/
Dreflection_ops_unittest.cc338 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 …]
Dmessage_unittest.cc184 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()
Dextension_set_unittest.cc609 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()
Dtext_format_unittest.cc831 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()
Dunittest.proto344 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;
Dunittest_no_field_presence.proto125 protobuf_unittest.TestRequired proto2 = 1;
Dmap_unittest.proto88 map<int32, TestRequired> map_field = 1;
/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dfield_presence_test.proto56 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/
Dgenerator_test.py132 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
Dreflection_test.py1170 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 …]
Dmessage_test.py1046 golden_message = unittest_pb2.TestRequired(a=1)
/external/protobuf/objectivec/Tests/
DGPBMessageTests.m215 - (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 …]
DGPBMessageTests+Runtime.m2076 TestRequired *subMsg = [[TestRequired alloc] init];
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc684 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/
Dmessage_differencer_unittest.cc176 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/
Dall_test.go2327 func TestRequired(t *testing.T) { func