Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/protobuf/objectivec/Tests/GPBWireFormatTests.m

Issue 1983203003: Update third_party/protobuf to protobuf-v3.0.0-beta-3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owners Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 - (void)testParseMessageSet { 183 - (void)testParseMessageSet {
184 // Set up a RawMessageSet with two known messages and an unknown one. 184 // Set up a RawMessageSet with two known messages and an unknown one.
185 RawMessageSet* raw = [RawMessageSet message]; 185 RawMessageSet* raw = [RawMessageSet message];
186 186
187 { 187 {
188 RawMessageSet_Item* item = [RawMessageSet_Item message]; 188 RawMessageSet_Item* item = [RawMessageSet_Item message];
189 item.typeId = [TestMessageSetExtension1 messageSetExtension].fieldNumber; 189 item.typeId = [TestMessageSetExtension1 messageSetExtension].fieldNumber;
190 TestMessageSetExtension1* message = [TestMessageSetExtension1 message]; 190 TestMessageSetExtension1* message = [TestMessageSetExtension1 message];
191 message.i = 123; 191 message.i = 123;
192 item.message = [message data]; 192 item.message = [message data];
193 raw.itemArray = [NSMutableArray array];
194 [raw.itemArray addObject:item]; 193 [raw.itemArray addObject:item];
195 } 194 }
196 195
197 { 196 {
198 RawMessageSet_Item* item = [RawMessageSet_Item message]; 197 RawMessageSet_Item* item = [RawMessageSet_Item message];
199 item.typeId = [TestMessageSetExtension2 messageSetExtension].fieldNumber; 198 item.typeId = [TestMessageSetExtension2 messageSetExtension].fieldNumber;
200 TestMessageSetExtension2* message = [TestMessageSetExtension2 message]; 199 TestMessageSetExtension2* message = [TestMessageSetExtension2 message];
201 message.str = @"foo"; 200 message.str = @"foo";
202 item.message = [message data]; 201 item.message = [message data];
203 [raw.itemArray addObject:item]; 202 [raw.itemArray addObject:item];
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 if (tag == 0) { 243 if (tag == 0) {
245 break; 244 break;
246 } 245 }
247 246
248 XCTAssertGreaterThan(tag, previousTag); 247 XCTAssertGreaterThan(tag, previousTag);
249 [input skipField:tag]; 248 [input skipField:tag];
250 } 249 }
251 } 250 }
252 251
253 @end 252 @end
OLDNEW
« no previous file with comments | « third_party/protobuf/objectivec/Tests/GPBUnittestProtos.m ('k') | third_party/protobuf/objectivec/Tests/unittest_objc.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698