Home
last modified time | relevance | path

Searched refs:TestOneof2 (Results 1 - 14 of 14) sorted by relevance

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DGeneratedMessageTest.java60 import protobuf_unittest.UnittestProto.TestOneof2;
1388 TestOneof2 message = in testOneofEnumCase()
1389 TestOneof2.newBuilder().setFooInt(123).setFooString("foo").setFooCord("bar").build(); in testOneofEnumCase()
1394 TestOneof2.Builder builder = TestOneof2.newBuilder().setFooInt(123); in testClearOneof()
1395 assertEquals(TestOneof2.FooCase.FOO_INT, builder.getFooCase()); in testClearOneof()
1397 assertEquals(TestOneof2.FooCase.FOO_NOT_SET, builder.getFooCase()); in testClearOneof()
1401 TestOneof2.Builder builder = TestOneof2.newBuilder(); in testSetOneofClearsOthers()
1402 TestOneof2 messag in testSetOneofClearsOthers()
[all...]
H A DWireFormatLiteTest.java48 import protobuf_unittest.UnittestProto.TestOneof2;
486 TestOneof2.Builder builder = TestOneof2.newBuilder(); in testOneofWireFormat()
488 TestOneof2 message = builder.build(); in testOneofWireFormat()
493 TestOneof2 message2 = TestOneof2.parseFrom(rawBytes); in testOneofWireFormat()
502 TestOneof2 message = TestOneof2.parseFrom(rawBytes); in testOneofOnlyLastSet()
932 UnittestProto3.TestOneof2 message = in testProto2UnknownEnumValuesInOneof()
933 UnittestProto3.TestOneof2 in testProto2UnknownEnumValuesInOneof()
[all...]
H A DWireFormatTest.java41 import protobuf_unittest.UnittestProto.TestOneof2;
499 TestOneof2.Builder builder = TestOneof2.newBuilder(); in testOneofWireFormat()
501 TestOneof2 message = builder.build(); in testOneofWireFormat()
506 TestOneof2 message2 = TestOneof2.parseFrom(rawBytes); in testOneofWireFormat()
515 TestOneof2 message = TestOneof2.parseFrom(rawBytes); in testOneofOnlyLastSet()
H A DTextFormatTest.java54 import protobuf_unittest.UnittestProto.TestOneof2;
1351 TestOneof2.Builder builder = TestOneof2.newBuilder(); in testOneofTextFormat()
1353 TestOneof2 message = builder.build(); in testOneofTextFormat()
1354 TestOneof2.Builder dest = TestOneof2.newBuilder(); in testOneofTextFormat()
1361 TestOneof2.Builder builder = TestOneof2.newBuilder(); in testOneofOverwriteForbidden()
1367 "1:34: Field \"protobuf_unittest.TestOneof2.foo_int\"" in testOneofOverwriteForbidden()
1368 + " is specified along with field \"protobuf_unittest.TestOneof2 in testOneofOverwriteForbidden()
[all...]
H A DTestUtil.java229 import protobuf_unittest.UnittestProto.TestOneof2;
2539 public static void setOneof(TestOneof2.Builder message) { in setOneof()
2540 message.setFooLazyMessage(TestOneof2.NestedMessage.newBuilder().setQuxInt(100).build()); in setOneof()
2546 public static void assertOneofSet(TestOneof2 message) { in assertOneofSet()
2560 public static void assertAtMostOneFieldSetOneof(TestOneof2 message) { in assertAtMostOneFieldSetOneof()
/third_party/protobuf/src/google/protobuf/
H A Dgenerated_message_reflection_unittest.cc282 unittest::TestOneof2 message1, message2; in TEST()
293 unittest::TestOneof2 message1, message2; in TEST()
305 unittest::TestOneof2 message1, message2; in TEST()
678 unittest::TestOneof2 message; in TEST()
688 unittest::TestOneof2 message; in TEST()
704 unittest::TestOneof2::FOO, in TEST()
707 EXPECT_EQ(&unittest::TestOneof2::NestedMessage::default_instance(), in TEST()
710 EXPECT_EQ(&unittest::TestOneof2::FooGroup::default_instance(), in TEST()
713 EXPECT_NE(&unittest::TestOneof2::FooGroup::default_instance(), in TEST()
728 unittest::TestOneof2 in TEST()
[all...]
H A Ddynamic_message_unittest.cc115 pool_.FindMessageTypeByName("protobuf_unittest.TestOneof2"); in SetUp()
206 unittest::TestOneof2::FOO, in TEST_P()
212 pool_.FindMessageTypeByName("protobuf_unittest.TestOneof2.NestedMessage"); in TEST_P()
220 pool_.FindMessageTypeByName("protobuf_unittest.TestOneof2.FooGroup"); in TEST_P()
240 unittest::TestOneof2::BAR, in TEST_P()
H A Dreflection_ops_unittest.cc84 unittest::TestOneof2 message, message2; in TEST()
173 unittest::TestOneof2 message1, message2; in TEST()
257 unittest::TestOneof2 message; in TEST()
H A Dwire_format_unittest.cc191 unittest::TestOneof2 source, dest; in TEST()
276 unittest::TestOneof2 message; in TEST()
374 unittest::TestOneof2 message; in TEST()
H A Darena_unittest.cc67 using protobuf_unittest::TestOneof2;
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
H A DUnittest.cs721 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Parser, new[]{ "FooInt", "FooString", "FooCord", "FooStringPiece", "FooBytes", "FooEnum", "FooMessage", "FooGroup", "FooLazyMessage", "BarInt", "BarString", "BarCord", "BarStringPiece", "BarBytes", "BarEnum", "BazInt", "BazString" }, new[]{ "Foo", "Bar" }, new[]{ typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedEnum) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.FooGroup.Parser, new[]{ "A", "B" }, null, null, null, null), in UnittestReflection()
722 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage), global::Google.Protobuf.TestProtos.Proto2.TestOneof2.Types.NestedMessage.Parser, new[]{ "QuxInt", "CorgeInt" }, null, null, null, null)}), in UnittestReflection()
20236 public sealed partial class TestOneof2 : pb::IMessage<TestOneof2> class
20241 private static readonly pb::MessageParser<TestOneof2> _parse
20258 public TestOneof2() { TestOneof2() method in Google.Protobuf.TestProtos.Proto2.TestOneof2
20265 public TestOneof2(TestOneof2 other) : this() { TestOneof2() method in Google.Protobuf.TestProtos.Proto2.TestOneof2
[all...]
/third_party/protobuf/python/google/protobuf/internal/
H A Dwell_known_types_test.py656 new_msg = unittest_pb2.TestOneof2()
657 dst = unittest_pb2.TestOneof2()
H A Dreflection_test.py1882 m = unittest_pb2.TestOneof2() # This message has two messages in a oneof.
/third_party/protobuf/src/google/protobuf/util/
H A Dmessage_differencer_unittest.cc752 unittest::TestOneof2 msg1; in TEST()
753 unittest::TestOneof2 msg2; in TEST()
764 unittest::TestOneof2 msg1; in TEST()
765 unittest::TestOneof2 msg2; in TEST()

Completed in 80 milliseconds