• Home
  • Raw
  • Download

Lines Matching refs:orig

113   Message3 *orig = [[Message3 alloc] init];
115 orig.optionalEnum = Message3_Enum_Extra3;
116 orig.repeatedEnumArray =
119 orig.oneofEnum = Message3_Enum_Extra3;
121 NSData *data = [orig data];
157 [orig release];
161 UnknownEnumsMyMessagePlusExtra *orig =
164 orig.e = UnknownEnumsMyEnumPlusExtra_EExtra;
165 orig.repeatedEArray = [GPBEnumArray
168 orig.repeatedPackedEArray = [GPBEnumArray
171 orig.oneofE1 = UnknownEnumsMyEnumPlusExtra_EExtra;
175 NSData *data = [orig data];
201 orig = [UnknownEnumsMyMessagePlusExtra parseFromData:data error:NULL];
203 XCTAssertEqual(orig.e, UnknownEnumsMyEnumPlusExtra_EExtra);
204 XCTAssertEqual(orig.repeatedEArray.count, 1U);
205 XCTAssertEqual([orig.repeatedEArray valueAtIndex:0],
207 XCTAssertEqual(orig.repeatedPackedEArray.count, 1U);
208 XCTAssertEqual([orig.repeatedPackedEArray valueAtIndex:0],
210 XCTAssertEqual(orig.oneofE1, UnknownEnumsMyEnumPlusExtra_EExtra);
217 //% MESSAGE *orig = [[MESSAGE alloc] init];
218 //% orig.oneof##FIELD = VALUE;
219 //% XCTAssertEqual(orig.oOneOfCase, MESSAGE##_O_OneOfCase_Oneof##FIELD);
220 //% NSData *data = [orig data];
225 //% [orig release];
287 Message2 *orig = [[Message2 alloc] init];
288 orig.oneofInt32 = 1;
289 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofInt32);
290 NSData *data = [orig data];
295 [orig release];
299 Message2 *orig = [[Message2 alloc] init];
300 orig.oneofInt64 = 2;
301 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofInt64);
302 NSData *data = [orig data];
307 [orig release];
311 Message2 *orig = [[Message2 alloc] init];
312 orig.oneofUint32 = 3U;
313 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofUint32);
314 NSData *data = [orig data];
319 [orig release];
323 Message2 *orig = [[Message2 alloc] init];
324 orig.oneofUint64 = 4U;
325 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofUint64);
326 NSData *data = [orig data];
331 [orig release];
335 Message2 *orig = [[Message2 alloc] init];
336 orig.oneofSint32 = 5;
337 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofSint32);
338 NSData *data = [orig data];
343 [orig release];
347 Message2 *orig = [[Message2 alloc] init];
348 orig.oneofSint64 = 6;
349 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofSint64);
350 NSData *data = [orig data];
355 [orig release];
359 Message2 *orig = [[Message2 alloc] init];
360 orig.oneofFixed32 = 7U;
361 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofFixed32);
362 NSData *data = [orig data];
367 [orig release];
371 Message2 *orig = [[Message2 alloc] init];
372 orig.oneofFixed64 = 8U;
373 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofFixed64);
374 NSData *data = [orig data];
379 [orig release];
383 Message2 *orig = [[Message2 alloc] init];
384 orig.oneofSfixed32 = 9;
385 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofSfixed32);
386 NSData *data = [orig data];
391 [orig release];
395 Message2 *orig = [[Message2 alloc] init];
396 orig.oneofSfixed64 = 10;
397 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofSfixed64);
398 NSData *data = [orig data];
403 [orig release];
407 Message2 *orig = [[Message2 alloc] init];
408 orig.oneofFloat = 11.0f;
409 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofFloat);
410 NSData *data = [orig data];
415 [orig release];
419 Message2 *orig = [[Message2 alloc] init];
420 orig.oneofDouble = 12.0;
421 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofDouble);
422 NSData *data = [orig data];
427 [orig release];
431 Message2 *orig = [[Message2 alloc] init];
432 orig.oneofBool = NO;
433 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofBool);
434 NSData *data = [orig data];
439 [orig release];
443 Message2 *orig = [[Message2 alloc] init];
444 orig.oneofString = @"foo";
445 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofString);
446 NSData *data = [orig data];
451 [orig release];
455 Message2 *orig = [[Message2 alloc] init];
456 orig.oneofBytes = [@"bar" dataUsingEncoding:NSUTF8StringEncoding];
457 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofBytes);
458 NSData *data = [orig data];
463 [orig release];
467 Message2 *orig = [[Message2 alloc] init];
468 orig.oneofGroup = group;
469 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofGroup);
470 NSData *data = [orig data];
475 [orig release];
479 Message2 *orig = [[Message2 alloc] init];
480 orig.oneofMessage = subMessage;
481 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofMessage);
482 NSData *data = [orig data];
487 [orig release];
491 Message2 *orig = [[Message2 alloc] init];
492 orig.oneofEnum = Message2_Enum_Bar;
493 XCTAssertEqual(orig.oOneOfCase, Message2_O_OneOfCase_OneofEnum);
494 NSData *data = [orig data];
499 [orig release];
516 Message3 *orig = [[Message3 alloc] init];
517 orig.oneofInt32 = 1;
518 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofInt32);
519 NSData *data = [orig data];
524 [orig release];
528 Message3 *orig = [[Message3 alloc] init];
529 orig.oneofInt64 = 2;
530 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofInt64);
531 NSData *data = [orig data];
536 [orig release];
540 Message3 *orig = [[Message3 alloc] init];
541 orig.oneofUint32 = 3U;
542 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofUint32);
543 NSData *data = [orig data];
548 [orig release];
552 Message3 *orig = [[Message3 alloc] init];
553 orig.oneofUint64 = 4U;
554 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofUint64);
555 NSData *data = [orig data];
560 [orig release];
564 Message3 *orig = [[Message3 alloc] init];
565 orig.oneofSint32 = 5;
566 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofSint32);
567 NSData *data = [orig data];
572 [orig release];
576 Message3 *orig = [[Message3 alloc] init];
577 orig.oneofSint64 = 6;
578 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofSint64);
579 NSData *data = [orig data];
584 [orig release];
588 Message3 *orig = [[Message3 alloc] init];
589 orig.oneofFixed32 = 7U;
590 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofFixed32);
591 NSData *data = [orig data];
596 [orig release];
600 Message3 *orig = [[Message3 alloc] init];
601 orig.oneofFixed64 = 8U;
602 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofFixed64);
603 NSData *data = [orig data];
608 [orig release];
612 Message3 *orig = [[Message3 alloc] init];
613 orig.oneofSfixed32 = 9;
614 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofSfixed32);
615 NSData *data = [orig data];
620 [orig release];
624 Message3 *orig = [[Message3 alloc] init];
625 orig.oneofSfixed64 = 10;
626 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofSfixed64);
627 NSData *data = [orig data];
632 [orig release];
636 Message3 *orig = [[Message3 alloc] init];
637 orig.oneofFloat = 11.0f;
638 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofFloat);
639 NSData *data = [orig data];
644 [orig release];
648 Message3 *orig = [[Message3 alloc] init];
649 orig.oneofDouble = 12.0;
650 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofDouble);
651 NSData *data = [orig data];
656 [orig release];
660 Message3 *orig = [[Message3 alloc] init];
661 orig.oneofBool = YES;
662 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofBool);
663 NSData *data = [orig data];
668 [orig release];
672 Message3 *orig = [[Message3 alloc] init];
673 orig.oneofString = @"foo";
674 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofString);
675 NSData *data = [orig data];
680 [orig release];
684 Message3 *orig = [[Message3 alloc] init];
685 orig.oneofBytes = [@"bar" dataUsingEncoding:NSUTF8StringEncoding];
686 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofBytes);
687 NSData *data = [orig data];
692 [orig release];
698 Message3 *orig = [[Message3 alloc] init];
699 orig.oneofMessage = subMessage;
700 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofMessage);
701 NSData *data = [orig data];
706 [orig release];
710 Message3 *orig = [[Message3 alloc] init];
711 orig.oneofEnum = Message2_Enum_Bar;
712 XCTAssertEqual(orig.oOneOfCase, Message3_O_OneOfCase_OneofEnum);
713 NSData *data = [orig data];
718 [orig release];
1115 TestEnumMapPlusExtra *orig = [[TestEnumMapPlusExtra alloc] init];
1117 orig.knownMapField = [[[GPBInt32EnumDictionary alloc]
1119 orig.unknownMapField = [[[GPBInt32EnumDictionary alloc]
1121 [orig.knownMapField setEnum:Proto2MapEnumPlusExtra_EProto2MapEnumFoo
1123 [orig.unknownMapField setEnum:Proto2MapEnumPlusExtra_EProto2MapEnumExtra
1126 NSData *data = [orig data];
1148 XCTAssertEqualObjects(orig, msg2);
1150 [orig release];