• Home
  • Raw
  • Download

Lines Matching refs:message2

429   GPBMessage *message2 = [TestAllExtensions message];
430 [message2 setExtension:[UnittestRoot optionalInt32Extension] value:@1];
432 [message2 addExtension:[UnittestRoot repeatedInt32Extension] value:@2];
434 description = [message2 description];
566 TestAllTypes *message2 = [TestAllTypes message];
567 XCTAssertEqualObjects(message, message2);
587 GPBMessage *message2 = [TestAllExtensions message];
588 [message2 addExtension:[UnittestRoot repeatedInt32Extension] value:@1];
591 [[message2 getExtension:[UnittestRoot repeatedInt32Extension]] count],
593 [message2 clearExtension:[UnittestRoot repeatedInt32Extension]];
595 [[message2 getExtension:[UnittestRoot repeatedInt32Extension]] count],
664 TestAllTypes *message2 = [TestAllTypes message];
667 XCTAssertNotEqual(message2.optionalGroup, optionalGroup);
668 XCTAssertNotEqual(message2.optionalNestedMessage, optionalNestedMessage);
669 XCTAssertNotEqual(message2.optionalForeignMessage, optionalForeignMessage);
670 XCTAssertNotEqual(message2.optionalImportMessage, optionalImportMessage);
671 XCTAssertNotEqual(message2.optionalPublicImportMessage,
673 XCTAssertNotEqual(message2.optionalLazyMessage, optionalLazyMessage);
712 TestAllTypes *message2 = [TestAllTypes message];
713 message2.optionalGroup = message.optionalGroup;
714 XCTAssertTrue([message2 hasOptionalGroup]);
716 message2.optionalGroup.a = 42;
718 XCTAssertTrue([message2 hasOptionalGroup]);
726 TestAllTypes *message2 = [[message copy] autorelease];
727 XCTAssertTrue([message2 hasOptionalGroup]);
728 XCTAssertFalse([message2 hasOptionalNestedMessage]);
732 message2.optionalNestedMessage);
757 TestAllTypes *message2 = [TestAllTypes message];
758 subMessage = message2.optionalForeignMessage; // Autocreated
761 message2));
969 TestRecursiveMessageWithRepeatedField *message2 =
976 XCTAssertNotNil(message2.a.a.strArray);
977 XCTAssertFalse([message2 hasA]);
978 XCTAssertFalse([message2.a hasA]);
985 [message2.a.a.strArray addObject:@"foo"];
986 XCTAssertTrue([message2 hasA]);
987 XCTAssertTrue([message2.a hasA]);
988 XCTAssertEqual([message2.a.a.strArray count], (NSUInteger)1);
1023 TestAllTypes *message2 = [[message copy] autorelease];
1025 XCTAssertNotEqual(message.repeatedStringArray, message2.repeatedStringArray);
1026 XCTAssertNotEqual(message.repeatedInt32Array, message2.repeatedInt32Array);
1049 TestAllTypes *message2 = [TestAllTypes message];
1050 message.repeatedInt32Array = message2.repeatedInt32Array;
1051 message.repeatedStringArray = message2.repeatedStringArray;
1053 XCTAssertEqual(message.repeatedInt32Array->_autocreator, message2);
1058 message2);
1162 TestRecursiveMessageWithRepeatedField *message2 =
1169 XCTAssertNotNil(message2.a.a.strToStr);
1170 XCTAssertFalse([message2 hasA]);
1171 XCTAssertFalse([message2.a hasA]);
1178 [message2.a.a.strToStr setObject:@"foo" forKey:@"bar"];
1179 XCTAssertTrue([message2 hasA]);
1180 XCTAssertTrue([message2.a hasA]);
1181 XCTAssertEqual([message2.a.a.strToStr count], (NSUInteger)1);
1217 TestRecursiveMessageWithRepeatedField *message2 =
1220 XCTAssertNotEqual(message.strToStr, message2.strToStr);
1221 XCTAssertNotEqual(message.iToI, message2.iToI);
1246 TestRecursiveMessageWithRepeatedField *message2 =
1248 message.iToI = message2.iToI;
1249 message.strToStr = message2.strToStr;
1251 XCTAssertEqual(message.iToI->_autocreator, message2);
1256 message2);
1379 TestAllExtensions *message2 = [TestAllExtensions message];
1380 [self setAllExtensions:message2 repeatedCount:kGPBDefaultRepeatCount];
1381 XCTAssertFalse([message isEqual:message2]);
1382 message2 = [TestAllExtensions message];
1383 [self setAllExtensions:message2 repeatedCount:kGPBDefaultRepeatCount];
1384 [self modifyRepeatedExtensions:message2];
1385 XCTAssertEqualObjects(message, message2);
1395 TestAllExtensions *message2 = [TestAllExtensions message];
1396 [self modifyRepeatedExtensions:message2];
1397 [message2 mergeFrom:message];
1399 XCTAssertEqualObjects(message, message2);
1477 TestAllExtensions *message2 = [TestAllExtensions message];
1481 [message2 getExtension:[UnittestRoot optionalGroupExtension]],
1484 [message2 getExtension:[UnittestRoot optionalNestedMessageExtension]],
1487 [message2 getExtension:[UnittestRoot optionalForeignMessageExtension]],
1490 [message2 getExtension:[UnittestRoot optionalImportMessageExtension]],
1493 [message2 getExtension:[UnittestRoot optionalPublicImportMessageExtension]],
1496 [message2 getExtension:[UnittestRoot optionalLazyMessageExtension]],
1550 TestAllExtensions *message2 = [TestAllExtensions message];
1552 [message setExtension:extension value:[message2 getExtension:extension]];
1554 [message2 getExtension:extension]);
1555 XCTAssertFalse([message2 hasExtension:extension]);
1559 [message2 getExtension:extension];
1561 XCTAssertTrue([message2 hasExtension:extension]);
1580 TestAllExtensions *message2 = [[message copy] autorelease];
1582 // message2 should end up with its own copy of the optional group.
1583 XCTAssertTrue([message2 hasExtension:optionalGroupExtension]);
1585 [message2 getExtension:optionalGroupExtension]);
1588 [message2 getExtension:optionalGroupExtension]);
1590 XCTAssertFalse([message2 hasExtension:optionalNestedMessageExtesion]);
1594 [message2 getExtension:optionalNestedMessageExtesion]);
1621 TestAllExtensions *message2 = [TestAllExtensions message];
1623 value:[message2 getExtension:optionalGroupExtension]];
1625 [message getExtension:optionalGroupExtension], message2));
1760 GPBMessage *message2 =
1762 XCTAssertEqualObjects(message, message2);
1776 GPBMessage *message2 = [GPBMessage message];
1777 [message2 setUnknownFields:unknowns2];
1781 [delimitedData appendData:[message2 delimitedData]];
1791 XCTAssertEqualObjects(message2, message4);