Home
last modified time | relevance | path

Searched refs:optionalGroup (Results 1 – 12 of 12) sorted by relevance

/third_party/protobuf/objectivec/Tests/
DGPBSwiftTests.swift49 msg.optionalGroup = msg3 in testProto2Basics()
81 XCTAssertTrue(msg.optionalGroup === msg3) in testProto2Basics()
113 msg.optionalGroup = nil in testProto2Basics()
115 XCTAssertTrue(msg.optionalGroup !== msg3) // New instance in testProto2Basics()
236 let msg2 = msg.optionalGroup in testAutoCreation()
246 msg.optionalGroup.a = 10 in testAutoCreation()
253 XCTAssertTrue(msg2 === msg.optionalGroup) in testAutoCreation()
262 msg.optionalGroup.a = 20 in testAutoCreation()
267 XCTAssertTrue(msg2 !== msg.optionalGroup) in testAutoCreation()
439 msg.optionalGroup.a = 102 in testSerialization()
[all …]
DGPBUtilitiesTests.m246 OptionalGroup_extension *optionalGroup = [OptionalGroup_extension message];
247 optionalGroup.a = 123;
248 optionalGroup.unknownFields = UnknownFieldsSetHelper(779);
250 value:optionalGroup];
286 OptionalGroup_extension *optionalGroup =
288 XCTAssertNotNil(optionalGroup);
289 XCTAssertEqual(optionalGroup.a, 123);
290 XCTAssertNotNil(optionalGroup.unknownFields);
333 OptionalGroup_extension *optionalGroup =
335 XCTAssertNotNil(optionalGroup);
[all …]
DGPBMessageTests.m647 TestAllTypes_OptionalGroup *optionalGroup = [message.optionalGroup retain];
658 XCTAssertNotNil(optionalGroup);
678 XCTAssertEqual(message.optionalGroup, optionalGroup);
692 XCTAssertNotEqual(message2.optionalGroup, optionalGroup);
703 message.optionalGroup = nil;
718 XCTAssertNotEqual(message.optionalGroup, optionalGroup);
726 [optionalGroup release];
738 message2.optionalGroup = message.optionalGroup;
741 message2.optionalGroup.a = 42;
749 message.optionalGroup.a = 42;
[all …]
DGPBPerfTests.m294 [message.optionalGroup hasA];
295 message.optionalGroup.hasA = NO;
296 [message.optionalGroup hasA];
DGPBTestUtilities.m532 XCTAssertTrue(message.optionalGroup.hasA);
561 XCTAssertEqual(117, message.optionalGroup.a);
955 OptionalGroup_extension *optionalGroup = [OptionalGroup_extension message];
956 [optionalGroup setA:117];
958 value:optionalGroup];
2013 XCTAssertNotNil(message.optionalGroup);
2014 XCTAssertEqualObjects([message valueForKeyPath:@"optionalGroup.hasA"], @YES);
2015 XCTAssertEqualObjects(@(message.optionalGroup.a), [message valueForKeyPath:@"optionalGroup.a"]);
2168 [message setValue:allTypes forKey:@"optionalGroup"];
2461 XCTAssertNotNil([message valueForKeyPath:@"optionalGroup"]);
[all …]
DGPBMessageTests+Runtime.m388 //% // Test doesn't apply to optionalGroup/optionalMessage.
690 // Test doesn't apply to optionalGroup/optionalMessage.
736 { // optionalGroup
739 msg.optionalGroup = [Message2_OptionalGroup message];
741 msg.optionalGroup = nil;
2636 XCTAssertNotEqual(msg1.optionalGroup, msg2.optionalGroup);
/third_party/protobuf/java/lite/src/test/java/com/google/protobuf/
DLiteTest.java335 OptionalGroup optionalGroup = OptionalGroup.newBuilder().setA(1).build(); in testSanityCopyOnWrite() local
336 builder.setOptionalGroup(optionalGroup); in testSanityCopyOnWrite()
338 assertEquals(optionalGroup, builder.getOptionalGroup()); in testSanityCopyOnWrite()
340 assertEquals(optionalGroup, messageAfterBuild.getOptionalGroup()); in testSanityCopyOnWrite()
344 assertEquals(optionalGroup, messageAfterBuild.getOptionalGroup()); in testSanityCopyOnWrite()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java1876 private final Descriptors.Descriptor optionalGroup; field in TestUtil.ReflectionTester
1939 this.optionalGroup = in ReflectionTester()
1944 this.optionalGroup = in ReflectionTester()
1959 Assert.assertNotNull(optionalGroup ); in ReflectionTester()
1982 this.groupA = optionalGroup.findFieldByName("a"); in ReflectionTester()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtil.java2661 private final Descriptors.Descriptor optionalGroup; field in TestUtil.ReflectionTester
2720 this.optionalGroup = testAllTypes.findNestedTypeByName("OptionalGroup"); in ReflectionTester()
2723 this.optionalGroup = file.findMessageTypeByName("OptionalGroup_extension"); in ReflectionTester()
2735 Assert.assertNotNull(optionalGroup); in ReflectionTester()
2758 this.groupA = optionalGroup.findFieldByName("a"); in ReflectionTester()
/third_party/protobuf/js/compatibility_tests/v3.0.0/
Dmessage_test.js764 optionalGroup: undefined, property
/third_party/protobuf/js/
Dmessage_test.js797 optionalGroup: undefined, property
/third_party/protobuf/js/compatibility_tests/v3.1.0/
Dmessage_test.js716 optionalGroup: undefined, property