Home
last modified time | relevance | path

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

12

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DMessageTest.java36 import protobuf_unittest.UnittestProto.TestRequired;
117 private static final TestRequired TEST_REQUIRED_UNINITIALIZED = TestRequired.getDefaultInstance();
118 private static final TestRequired TEST_REQUIRED_INITIALIZED =
119 TestRequired.newBuilder().setA(1).setB(2).setC(3).build();
122 TestRequired.Builder builder = TestRequired.newBuilder(); in testRequired()
156 builder.setExtension(TestRequired.single, TEST_REQUIRED_UNINITIALIZED); in testRequiredExtension()
159 builder.setExtension(TestRequired.single, TEST_REQUIRED_INITIALIZED); in testRequiredExtension()
162 builder.addExtension(TestRequired.multi, TEST_REQUIRED_UNINITIALIZED); in testRequiredExtension()
165 builder.setExtension(TestRequired.multi, 0, TEST_REQUIRED_INITIALIZED); in testRequiredExtension()
170 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testRequiredDynamic()
[all …]
DTextFormatTest.java48 import protobuf_unittest.UnittestProto.TestRequired;
343 TestRequired.Builder builder = TestRequired.newBuilder(); in testMergeInitialized()
350 TestRequired parsed = in testParseInitialized()
351 TextFormat.parse(TEST_REQUIRED_INITIALIZED.toString(), TestRequired.class); in testParseInitialized()
357 TestRequired.Builder builder = TestRequired.newBuilder(); in testMergeUninitialized()
365 TextFormat.parse(TEST_REQUIRED_UNINITIALIZED.toString(), TestRequired.class); in testParseUninitialized()
DParserTest.java41 import protobuf_unittest.UnittestProto.TestRequired;
116 assertParsePartial(TestRequired.parser(), TestRequired.newBuilder().setA(1).buildPartial()); in testParsePartial()
DAbstractMessageTest.java43 import protobuf_unittest.UnittestProto.TestRequired;
366 TestRequired.Builder builder = TestRequired.newBuilder(); in testIsInitialized()
DDescriptorsTest.java65 import protobuf_unittest.UnittestProto.TestRequired;
197 FieldDescriptor nestedExtension = TestRequired.single.getDescriptor(); in testFieldDescriptor()
239 assertEquals(TestRequired.getDescriptor(), nestedExtension.getExtensionScope()); in testFieldDescriptor()
243 FieldDescriptor requiredField = TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorLabel()
256 FieldDescriptor requiredField = TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorJsonName()
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DMessageTest.java36 import protobuf_unittest.UnittestProto.TestRequired;
115 private static final TestRequired TEST_REQUIRED_UNINITIALIZED =
116 TestRequired.getDefaultInstance();
117 private static final TestRequired TEST_REQUIRED_INITIALIZED =
118 TestRequired.newBuilder().setA(1).setB(2).setC(3).build();
121 TestRequired.Builder builder = TestRequired.newBuilder(); in testRequired()
155 builder.setExtension(TestRequired.single, TEST_REQUIRED_UNINITIALIZED); in testRequiredExtension()
158 builder.setExtension(TestRequired.single, TEST_REQUIRED_INITIALIZED); in testRequiredExtension()
161 builder.addExtension(TestRequired.multi, TEST_REQUIRED_UNINITIALIZED); in testRequiredExtension()
164 builder.setExtension(TestRequired.multi, 0, TEST_REQUIRED_INITIALIZED); in testRequiredExtension()
[all …]
DParserTest.java40 import protobuf_unittest.UnittestProto.TestRequired;
121 Parser<TestRequired> parser = TestRequired.PARSER; in testParsePartial()
126 TestRequired partialMessage = TestRequired.newBuilder() in testParsePartial()
DAbstractMessageTest.java41 import protobuf_unittest.UnittestProto.TestRequired;
327 private static final TestRequired TEST_REQUIRED_UNINITIALIZED =
328 TestRequired.getDefaultInstance();
329 private static final TestRequired TEST_REQUIRED_INITIALIZED =
330 TestRequired.newBuilder().setA(1).setB(2).setC(3).build();
333 TestRequired.Builder builder = TestRequired.newBuilder(); in testIsInitialized()
DDescriptorsTest.java57 import protobuf_unittest.UnittestProto.TestRequired;
206 FieldDescriptor nestedExtension = TestRequired.single.getDescriptor(); in testFieldDescriptor()
256 assertEquals(TestRequired.getDescriptor(), in testFieldDescriptor()
262 TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorLabel()
/external/protobuf/src/google/protobuf/
Dreflection_ops_unittest.cc340 unittest::TestRequired message; in TEST()
369 unittest::TestRequired* sub_message = message.add_repeated_message(); in TEST()
387 message.MutableExtension(unittest::TestRequired::single); in TEST()
391 message.MutableExtension(unittest::TestRequired::single)->set_a(1); in TEST()
392 message.MutableExtension(unittest::TestRequired::single)->set_b(2); in TEST()
393 message.MutableExtension(unittest::TestRequired::single)->set_c(3); in TEST()
397 message.AddExtension(unittest::TestRequired::multi); in TEST()
401 message.MutableExtension(unittest::TestRequired::multi, 0)->set_a(1); in TEST()
402 message.MutableExtension(unittest::TestRequired::multi, 0)->set_b(2); in TEST()
403 message.MutableExtension(unittest::TestRequired::multi, 0)->set_c(3); in TEST()
[all …]
Dmessage_unittest.inc195 UNITTEST::TestRequired message;
207 ".TestRequired\" because it is missing required fields: a, b, c",
212 UNITTEST::TestRequired message;
219 UNITTEST::TestRequired message;
229 EXPECT_EQ(nullptr, DynamicCastToGenerated<UNITTEST::TestRequired>(
236 EXPECT_EQ(nullptr, DynamicCastToGenerated<const UNITTEST::TestRequired>(
243 UNITTEST::TestRequired message;
248 ".TestRequired\" because "
253 UNITTEST::TestRequired message;
256 ".TestRequired\" is missing required "
[all …]
Dextension_set_unittest.cc702 message.MutableExtension(unittest::TestRequired::single); in TEST()
705 message.MutableExtension(unittest::TestRequired::single)->set_a(1); in TEST()
707 message.MutableExtension(unittest::TestRequired::single)->set_b(2); in TEST()
709 message.MutableExtension(unittest::TestRequired::single)->set_c(3); in TEST()
712 message.AddExtension(unittest::TestRequired::multi); in TEST()
715 message.MutableExtension(unittest::TestRequired::multi, 0)->set_a(1); in TEST()
717 message.MutableExtension(unittest::TestRequired::multi, 0)->set_b(2); in TEST()
719 message.MutableExtension(unittest::TestRequired::multi, 0)->set_c(3); in TEST()
Dunittest.proto372 message TestRequired { message
378 optional TestRequired single = 1000;
379 repeated TestRequired multi = 1001;
418 optional TestRequired optional_message = 1;
419 repeated TestRequired repeated_message = 2;
424 optional TestRequired optional_message = 1;
425 repeated TestRequired repeated_message = 2;
426 required TestRequired required_message = 3;
Dunittest_lite_imports_nonlite.proto46 optional TestRequired message_with_required = 2;
Dtext_format_unittest.cc1120 unittest::TestRequired message; in TEST_F()
1735 unittest::TestRequired message; in TEST_F()
1741 unittest::TestRequired message; in TEST_F()
1755 unittest::TestRequired message; in TEST_F()
1769 unittest::TestRequired message; in TEST_F()
/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dfield_presence_test.proto55 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;
93 repeated protobuf_unittest.TestRequired repeated_proto2_message = 26;
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dgenerator_test.py126 self.assertEqual(unittest_pb2.TestRequired.single.containing_type,
132 self.assertEqual(unittest_pb2.TestRequired.single.extension_scope,
133 unittest_pb2.TestRequired.DESCRIPTOR)
137 self.assertTrue(unittest_pb2.TestRequired.single.is_extension)
139 message_descriptor = unittest_pb2.TestRequired.DESCRIPTOR
/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.py1320 extension = unittest_pb2.TestRequired.single
1774 proto = unittest_pb2.TestRequired()
1796 extension = unittest_pb2.TestRequired.multi
1811 extension = unittest_pb2.TestRequired.single
1820 proto = unittest_pb2.TestRequired()
2036 third_proto = unittest_pb2.TestRequired()
2742 proto = unittest_pb2.TestRequired()
2751 proto2 = unittest_pb2.TestRequired()
2778 proto2 = unittest_pb2.TestRequired()
2927 self.assertEqual(unittest_pb2.TestRequired.single.number, 1000)
[all …]
/external/protobuf/objectivec/Tests/
DGPBMessageTests.m216 - (TestRequired *)testRequiredInitialized {
217 TestRequired *message = [TestRequired message];
225 TestRequired *message = [TestRequired message];
241 [message setOptionalMessage:[TestRequired message]];
247 [message.repeatedMessageArray addObject:[TestRequired message]];
260 [message setExtension:[TestRequired single] value:[TestRequired message]];
263 [message setExtension:[TestRequired single]
267 [message addExtension:[TestRequired multi] value:[TestRequired message]];
270 [message setExtension:[TestRequired multi]
277 TestRequired *message = [TestRequired message];
[all …]
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskTreeTest.java39 import protobuf_unittest.UnittestProto.TestRequired;
131 TestRequired value = TestRequired.newBuilder().setA(4321).setB(8765).setC(233333).build(); in testMergeRequire()
/external/protobuf/src/google/protobuf/util/
Dfield_mask_util_test.cc119 using protobuf_unittest::TestRequired;
673 TestRequired required_msg_1; in TEST()
677 TestRequired trimmed_required_msg_1(required_msg_1); in TEST()
700 TestRequired* repeated_msg = required_msg_2.add_repeated_message(); in TEST()
/external/protobuf/python/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/
Dunittest.proto312 message TestRequired { message
318 optional TestRequired single = 1000;
319 repeated TestRequired multi = 1001;
358 optional TestRequired optional_message = 1;
359 repeated TestRequired repeated_message = 2;
/external/protobuf/java/compatibility_tests/v2.5.0/more_protos/src/proto/google/protobuf/
Dunittest.proto312 message TestRequired { message
318 optional TestRequired single = 1000;
319 repeated TestRequired multi = 1001;
358 optional TestRequired optional_message = 1;
359 repeated TestRequired repeated_message = 2;
/external/protobuf/java/compatibility_tests/v2.5.0/protos/src/proto/google/protobuf/
Dunittest.proto312 message TestRequired { message
318 optional TestRequired single = 1000;
319 repeated TestRequired multi = 1001;
358 optional TestRequired optional_message = 1;
359 repeated TestRequired repeated_message = 2;

12