Home
last modified time | relevance | path

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

/external/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 …]
DGPBMessageTests.m622 TestAllTypes_OptionalGroup *optionalGroup = [message.optionalGroup retain];
633 XCTAssertNotNil(optionalGroup);
653 XCTAssertEqual(message.optionalGroup, optionalGroup);
667 XCTAssertNotEqual(message2.optionalGroup, optionalGroup);
678 message.optionalGroup = nil;
693 XCTAssertNotEqual(message.optionalGroup, optionalGroup);
701 [optionalGroup release];
713 message2.optionalGroup = message.optionalGroup;
716 message2.optionalGroup.a = 42;
724 message.optionalGroup.a = 42;
[all …]
DGPBPerfTests.m188 [message.optionalGroup hasA];
189 message.optionalGroup.hasA = NO;
190 [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.m346 //% // Test doesn't apply to optionalGroup/optionalMessage.
639 // Test doesn't apply to optionalGroup/optionalMessage.
698 //% // Test doesn't apply to optionalGroup/optionalMessage.
856 // Test doesn't apply to optionalGroup/optionalMessage.
1987 XCTAssertNotEqual(msg1.optionalGroup, msg2.optionalGroup);
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java492 assertFalse(msg.optionalGroup != null); in testNanoOptionalGroup()
493 msg.optionalGroup = grp; in testNanoOptionalGroup()
494 assertTrue(msg.optionalGroup != null); in testNanoOptionalGroup()
495 assertEquals(1, msg.optionalGroup.a); in testNanoOptionalGroup()
497 assertFalse(msg.optionalGroup != null); in testNanoOptionalGroup()
499 .optionalGroup = new TestAllTypesNano.OptionalGroup(); in testNanoOptionalGroup()
500 msg.optionalGroup.a = 2; in testNanoOptionalGroup()
501 assertTrue(msg.optionalGroup != null); in testNanoOptionalGroup()
503 assertFalse(msg.optionalGroup != null); in testNanoOptionalGroup()
505 msg.optionalGroup = grp; in testNanoOptionalGroup()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLiteTest.java327 OptionalGroup optionalGroup = OptionalGroup.newBuilder() in testSanityCopyOnWrite() local
330 builder.setOptionalGroup(optionalGroup); in testSanityCopyOnWrite()
333 assertEquals(optionalGroup, builder.getOptionalGroup()); in testSanityCopyOnWrite()
335 assertEquals(optionalGroup, messageAfterBuild.getOptionalGroup()); in testSanityCopyOnWrite()
341 assertEquals(optionalGroup, messageAfterBuild.getOptionalGroup()); in testSanityCopyOnWrite()
DTestUtil.java2635 private final Descriptors.Descriptor optionalGroup; field in TestUtil.ReflectionTester
2698 this.optionalGroup = in ReflectionTester()
2703 this.optionalGroup = in ReflectionTester()
2718 Assert.assertNotNull(optionalGroup ); in ReflectionTester()
2741 this.groupA = optionalGroup.findFieldByName("a"); in ReflectionTester()
/external/protobuf/js/
Dmessage_test.js714 optionalGroup: undefined, property