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

Side by Side Diff: generated/googleapis/test/mirror/v1_test.dart

Issue 770773002: Api roll 7: 2014-12-01 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years 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 library googleapis.mirror.v1.test; 1 library googleapis.mirror.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
11 import 'package:googleapis/common/common.dart' as common; 11 import 'package:googleapis/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal; 12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test; 13 import '../common/common_internal_test.dart' as common_test;
14 14
15 import 'package:googleapis/mirror/v1.dart' as api; 15 import 'package:googleapis/mirror/v1.dart' as api;
16 16
17 17
18 18
19 buildUnnamed761() { 19 buildUnnamed953() {
20 var o = new core.List<api.AuthToken>(); 20 var o = new core.List<api.AuthToken>();
21 o.add(buildAuthToken()); 21 o.add(buildAuthToken());
22 o.add(buildAuthToken()); 22 o.add(buildAuthToken());
23 return o; 23 return o;
24 } 24 }
25 25
26 checkUnnamed761(core.List<api.AuthToken> o) { 26 checkUnnamed953(core.List<api.AuthToken> o) {
27 unittest.expect(o, unittest.hasLength(2)); 27 unittest.expect(o, unittest.hasLength(2));
28 checkAuthToken(o[0]); 28 checkAuthToken(o[0]);
29 checkAuthToken(o[1]); 29 checkAuthToken(o[1]);
30 } 30 }
31 31
32 buildUnnamed762() { 32 buildUnnamed954() {
33 var o = new core.List<core.String>(); 33 var o = new core.List<core.String>();
34 o.add("foo"); 34 o.add("foo");
35 o.add("foo"); 35 o.add("foo");
36 return o; 36 return o;
37 } 37 }
38 38
39 checkUnnamed762(core.List<core.String> o) { 39 checkUnnamed954(core.List<core.String> o) {
40 unittest.expect(o, unittest.hasLength(2)); 40 unittest.expect(o, unittest.hasLength(2));
41 unittest.expect(o[0], unittest.equals('foo')); 41 unittest.expect(o[0], unittest.equals('foo'));
42 unittest.expect(o[1], unittest.equals('foo')); 42 unittest.expect(o[1], unittest.equals('foo'));
43 } 43 }
44 44
45 buildUnnamed763() { 45 buildUnnamed955() {
46 var o = new core.List<api.UserData>(); 46 var o = new core.List<api.UserData>();
47 o.add(buildUserData()); 47 o.add(buildUserData());
48 o.add(buildUserData()); 48 o.add(buildUserData());
49 return o; 49 return o;
50 } 50 }
51 51
52 checkUnnamed763(core.List<api.UserData> o) { 52 checkUnnamed955(core.List<api.UserData> o) {
53 unittest.expect(o, unittest.hasLength(2)); 53 unittest.expect(o, unittest.hasLength(2));
54 checkUserData(o[0]); 54 checkUserData(o[0]);
55 checkUserData(o[1]); 55 checkUserData(o[1]);
56 } 56 }
57 57
58 core.int buildCounterAccount = 0; 58 core.int buildCounterAccount = 0;
59 buildAccount() { 59 buildAccount() {
60 var o = new api.Account(); 60 var o = new api.Account();
61 buildCounterAccount++; 61 buildCounterAccount++;
62 if (buildCounterAccount < 3) { 62 if (buildCounterAccount < 3) {
63 o.authTokens = buildUnnamed761(); 63 o.authTokens = buildUnnamed953();
64 o.features = buildUnnamed762(); 64 o.features = buildUnnamed954();
65 o.password = "foo"; 65 o.password = "foo";
66 o.userData = buildUnnamed763(); 66 o.userData = buildUnnamed955();
67 } 67 }
68 buildCounterAccount--; 68 buildCounterAccount--;
69 return o; 69 return o;
70 } 70 }
71 71
72 checkAccount(api.Account o) { 72 checkAccount(api.Account o) {
73 buildCounterAccount++; 73 buildCounterAccount++;
74 if (buildCounterAccount < 3) { 74 if (buildCounterAccount < 3) {
75 checkUnnamed761(o.authTokens); 75 checkUnnamed953(o.authTokens);
76 checkUnnamed762(o.features); 76 checkUnnamed954(o.features);
77 unittest.expect(o.password, unittest.equals('foo')); 77 unittest.expect(o.password, unittest.equals('foo'));
78 checkUnnamed763(o.userData); 78 checkUnnamed955(o.userData);
79 } 79 }
80 buildCounterAccount--; 80 buildCounterAccount--;
81 } 81 }
82 82
83 core.int buildCounterAttachment = 0; 83 core.int buildCounterAttachment = 0;
84 buildAttachment() { 84 buildAttachment() {
85 var o = new api.Attachment(); 85 var o = new api.Attachment();
86 buildCounterAttachment++; 86 buildCounterAttachment++;
87 if (buildCounterAttachment < 3) { 87 if (buildCounterAttachment < 3) {
88 o.contentType = "foo"; 88 o.contentType = "foo";
89 o.contentUrl = "foo"; 89 o.contentUrl = "foo";
90 o.id = "foo"; 90 o.id = "foo";
91 o.isProcessingContent = true; 91 o.isProcessingContent = true;
92 } 92 }
93 buildCounterAttachment--; 93 buildCounterAttachment--;
94 return o; 94 return o;
95 } 95 }
96 96
97 checkAttachment(api.Attachment o) { 97 checkAttachment(api.Attachment o) {
98 buildCounterAttachment++; 98 buildCounterAttachment++;
99 if (buildCounterAttachment < 3) { 99 if (buildCounterAttachment < 3) {
100 unittest.expect(o.contentType, unittest.equals('foo')); 100 unittest.expect(o.contentType, unittest.equals('foo'));
101 unittest.expect(o.contentUrl, unittest.equals('foo')); 101 unittest.expect(o.contentUrl, unittest.equals('foo'));
102 unittest.expect(o.id, unittest.equals('foo')); 102 unittest.expect(o.id, unittest.equals('foo'));
103 unittest.expect(o.isProcessingContent, unittest.isTrue); 103 unittest.expect(o.isProcessingContent, unittest.isTrue);
104 } 104 }
105 buildCounterAttachment--; 105 buildCounterAttachment--;
106 } 106 }
107 107
108 buildUnnamed764() { 108 buildUnnamed956() {
109 var o = new core.List<api.Attachment>(); 109 var o = new core.List<api.Attachment>();
110 o.add(buildAttachment()); 110 o.add(buildAttachment());
111 o.add(buildAttachment()); 111 o.add(buildAttachment());
112 return o; 112 return o;
113 } 113 }
114 114
115 checkUnnamed764(core.List<api.Attachment> o) { 115 checkUnnamed956(core.List<api.Attachment> o) {
116 unittest.expect(o, unittest.hasLength(2)); 116 unittest.expect(o, unittest.hasLength(2));
117 checkAttachment(o[0]); 117 checkAttachment(o[0]);
118 checkAttachment(o[1]); 118 checkAttachment(o[1]);
119 } 119 }
120 120
121 core.int buildCounterAttachmentsListResponse = 0; 121 core.int buildCounterAttachmentsListResponse = 0;
122 buildAttachmentsListResponse() { 122 buildAttachmentsListResponse() {
123 var o = new api.AttachmentsListResponse(); 123 var o = new api.AttachmentsListResponse();
124 buildCounterAttachmentsListResponse++; 124 buildCounterAttachmentsListResponse++;
125 if (buildCounterAttachmentsListResponse < 3) { 125 if (buildCounterAttachmentsListResponse < 3) {
126 o.items = buildUnnamed764(); 126 o.items = buildUnnamed956();
127 o.kind = "foo"; 127 o.kind = "foo";
128 } 128 }
129 buildCounterAttachmentsListResponse--; 129 buildCounterAttachmentsListResponse--;
130 return o; 130 return o;
131 } 131 }
132 132
133 checkAttachmentsListResponse(api.AttachmentsListResponse o) { 133 checkAttachmentsListResponse(api.AttachmentsListResponse o) {
134 buildCounterAttachmentsListResponse++; 134 buildCounterAttachmentsListResponse++;
135 if (buildCounterAttachmentsListResponse < 3) { 135 if (buildCounterAttachmentsListResponse < 3) {
136 checkUnnamed764(o.items); 136 checkUnnamed956(o.items);
137 unittest.expect(o.kind, unittest.equals('foo')); 137 unittest.expect(o.kind, unittest.equals('foo'));
138 } 138 }
139 buildCounterAttachmentsListResponse--; 139 buildCounterAttachmentsListResponse--;
140 } 140 }
141 141
142 core.int buildCounterAuthToken = 0; 142 core.int buildCounterAuthToken = 0;
143 buildAuthToken() { 143 buildAuthToken() {
144 var o = new api.AuthToken(); 144 var o = new api.AuthToken();
145 buildCounterAuthToken++; 145 buildCounterAuthToken++;
146 if (buildCounterAuthToken < 3) { 146 if (buildCounterAuthToken < 3) {
(...skipping 25 matching lines...) Expand all
172 } 172 }
173 173
174 checkCommand(api.Command o) { 174 checkCommand(api.Command o) {
175 buildCounterCommand++; 175 buildCounterCommand++;
176 if (buildCounterCommand < 3) { 176 if (buildCounterCommand < 3) {
177 unittest.expect(o.type, unittest.equals('foo')); 177 unittest.expect(o.type, unittest.equals('foo'));
178 } 178 }
179 buildCounterCommand--; 179 buildCounterCommand--;
180 } 180 }
181 181
182 buildUnnamed765() { 182 buildUnnamed957() {
183 var o = new core.List<api.Command>(); 183 var o = new core.List<api.Command>();
184 o.add(buildCommand()); 184 o.add(buildCommand());
185 o.add(buildCommand()); 185 o.add(buildCommand());
186 return o; 186 return o;
187 } 187 }
188 188
189 checkUnnamed765(core.List<api.Command> o) { 189 checkUnnamed957(core.List<api.Command> o) {
190 unittest.expect(o, unittest.hasLength(2)); 190 unittest.expect(o, unittest.hasLength(2));
191 checkCommand(o[0]); 191 checkCommand(o[0]);
192 checkCommand(o[1]); 192 checkCommand(o[1]);
193 } 193 }
194 194
195 buildUnnamed766() { 195 buildUnnamed958() {
196 var o = new core.List<core.String>(); 196 var o = new core.List<core.String>();
197 o.add("foo"); 197 o.add("foo");
198 o.add("foo"); 198 o.add("foo");
199 return o; 199 return o;
200 } 200 }
201 201
202 checkUnnamed766(core.List<core.String> o) { 202 checkUnnamed958(core.List<core.String> o) {
203 unittest.expect(o, unittest.hasLength(2)); 203 unittest.expect(o, unittest.hasLength(2));
204 unittest.expect(o[0], unittest.equals('foo')); 204 unittest.expect(o[0], unittest.equals('foo'));
205 unittest.expect(o[1], unittest.equals('foo')); 205 unittest.expect(o[1], unittest.equals('foo'));
206 } 206 }
207 207
208 buildUnnamed767() { 208 buildUnnamed959() {
209 var o = new core.List<core.String>(); 209 var o = new core.List<core.String>();
210 o.add("foo"); 210 o.add("foo");
211 o.add("foo"); 211 o.add("foo");
212 return o; 212 return o;
213 } 213 }
214 214
215 checkUnnamed767(core.List<core.String> o) { 215 checkUnnamed959(core.List<core.String> o) {
216 unittest.expect(o, unittest.hasLength(2)); 216 unittest.expect(o, unittest.hasLength(2));
217 unittest.expect(o[0], unittest.equals('foo')); 217 unittest.expect(o[0], unittest.equals('foo'));
218 unittest.expect(o[1], unittest.equals('foo')); 218 unittest.expect(o[1], unittest.equals('foo'));
219 } 219 }
220 220
221 buildUnnamed768() { 221 buildUnnamed960() {
222 var o = new core.List<core.String>(); 222 var o = new core.List<core.String>();
223 o.add("foo"); 223 o.add("foo");
224 o.add("foo"); 224 o.add("foo");
225 return o; 225 return o;
226 } 226 }
227 227
228 checkUnnamed768(core.List<core.String> o) { 228 checkUnnamed960(core.List<core.String> o) {
229 unittest.expect(o, unittest.hasLength(2)); 229 unittest.expect(o, unittest.hasLength(2));
230 unittest.expect(o[0], unittest.equals('foo')); 230 unittest.expect(o[0], unittest.equals('foo'));
231 unittest.expect(o[1], unittest.equals('foo')); 231 unittest.expect(o[1], unittest.equals('foo'));
232 } 232 }
233 233
234 core.int buildCounterContact = 0; 234 core.int buildCounterContact = 0;
235 buildContact() { 235 buildContact() {
236 var o = new api.Contact(); 236 var o = new api.Contact();
237 buildCounterContact++; 237 buildCounterContact++;
238 if (buildCounterContact < 3) { 238 if (buildCounterContact < 3) {
239 o.acceptCommands = buildUnnamed765(); 239 o.acceptCommands = buildUnnamed957();
240 o.acceptTypes = buildUnnamed766(); 240 o.acceptTypes = buildUnnamed958();
241 o.displayName = "foo"; 241 o.displayName = "foo";
242 o.id = "foo"; 242 o.id = "foo";
243 o.imageUrls = buildUnnamed767(); 243 o.imageUrls = buildUnnamed959();
244 o.kind = "foo"; 244 o.kind = "foo";
245 o.phoneNumber = "foo"; 245 o.phoneNumber = "foo";
246 o.priority = 42; 246 o.priority = 42;
247 o.sharingFeatures = buildUnnamed768(); 247 o.sharingFeatures = buildUnnamed960();
248 o.source = "foo"; 248 o.source = "foo";
249 o.speakableName = "foo"; 249 o.speakableName = "foo";
250 o.type = "foo"; 250 o.type = "foo";
251 } 251 }
252 buildCounterContact--; 252 buildCounterContact--;
253 return o; 253 return o;
254 } 254 }
255 255
256 checkContact(api.Contact o) { 256 checkContact(api.Contact o) {
257 buildCounterContact++; 257 buildCounterContact++;
258 if (buildCounterContact < 3) { 258 if (buildCounterContact < 3) {
259 checkUnnamed765(o.acceptCommands); 259 checkUnnamed957(o.acceptCommands);
260 checkUnnamed766(o.acceptTypes); 260 checkUnnamed958(o.acceptTypes);
261 unittest.expect(o.displayName, unittest.equals('foo')); 261 unittest.expect(o.displayName, unittest.equals('foo'));
262 unittest.expect(o.id, unittest.equals('foo')); 262 unittest.expect(o.id, unittest.equals('foo'));
263 checkUnnamed767(o.imageUrls); 263 checkUnnamed959(o.imageUrls);
264 unittest.expect(o.kind, unittest.equals('foo')); 264 unittest.expect(o.kind, unittest.equals('foo'));
265 unittest.expect(o.phoneNumber, unittest.equals('foo')); 265 unittest.expect(o.phoneNumber, unittest.equals('foo'));
266 unittest.expect(o.priority, unittest.equals(42)); 266 unittest.expect(o.priority, unittest.equals(42));
267 checkUnnamed768(o.sharingFeatures); 267 checkUnnamed960(o.sharingFeatures);
268 unittest.expect(o.source, unittest.equals('foo')); 268 unittest.expect(o.source, unittest.equals('foo'));
269 unittest.expect(o.speakableName, unittest.equals('foo')); 269 unittest.expect(o.speakableName, unittest.equals('foo'));
270 unittest.expect(o.type, unittest.equals('foo')); 270 unittest.expect(o.type, unittest.equals('foo'));
271 } 271 }
272 buildCounterContact--; 272 buildCounterContact--;
273 } 273 }
274 274
275 buildUnnamed769() { 275 buildUnnamed961() {
276 var o = new core.List<api.Contact>(); 276 var o = new core.List<api.Contact>();
277 o.add(buildContact()); 277 o.add(buildContact());
278 o.add(buildContact()); 278 o.add(buildContact());
279 return o; 279 return o;
280 } 280 }
281 281
282 checkUnnamed769(core.List<api.Contact> o) { 282 checkUnnamed961(core.List<api.Contact> o) {
283 unittest.expect(o, unittest.hasLength(2)); 283 unittest.expect(o, unittest.hasLength(2));
284 checkContact(o[0]); 284 checkContact(o[0]);
285 checkContact(o[1]); 285 checkContact(o[1]);
286 } 286 }
287 287
288 core.int buildCounterContactsListResponse = 0; 288 core.int buildCounterContactsListResponse = 0;
289 buildContactsListResponse() { 289 buildContactsListResponse() {
290 var o = new api.ContactsListResponse(); 290 var o = new api.ContactsListResponse();
291 buildCounterContactsListResponse++; 291 buildCounterContactsListResponse++;
292 if (buildCounterContactsListResponse < 3) { 292 if (buildCounterContactsListResponse < 3) {
293 o.items = buildUnnamed769(); 293 o.items = buildUnnamed961();
294 o.kind = "foo"; 294 o.kind = "foo";
295 } 295 }
296 buildCounterContactsListResponse--; 296 buildCounterContactsListResponse--;
297 return o; 297 return o;
298 } 298 }
299 299
300 checkContactsListResponse(api.ContactsListResponse o) { 300 checkContactsListResponse(api.ContactsListResponse o) {
301 buildCounterContactsListResponse++; 301 buildCounterContactsListResponse++;
302 if (buildCounterContactsListResponse < 3) { 302 if (buildCounterContactsListResponse < 3) {
303 checkUnnamed769(o.items); 303 checkUnnamed961(o.items);
304 unittest.expect(o.kind, unittest.equals('foo')); 304 unittest.expect(o.kind, unittest.equals('foo'));
305 } 305 }
306 buildCounterContactsListResponse--; 306 buildCounterContactsListResponse--;
307 } 307 }
308 308
309 core.int buildCounterLocation = 0; 309 core.int buildCounterLocation = 0;
310 buildLocation() { 310 buildLocation() {
311 var o = new api.Location(); 311 var o = new api.Location();
312 buildCounterLocation++; 312 buildCounterLocation++;
313 if (buildCounterLocation < 3) { 313 if (buildCounterLocation < 3) {
(...skipping 18 matching lines...) Expand all
332 unittest.expect(o.displayName, unittest.equals('foo')); 332 unittest.expect(o.displayName, unittest.equals('foo'));
333 unittest.expect(o.id, unittest.equals('foo')); 333 unittest.expect(o.id, unittest.equals('foo'));
334 unittest.expect(o.kind, unittest.equals('foo')); 334 unittest.expect(o.kind, unittest.equals('foo'));
335 unittest.expect(o.latitude, unittest.equals(42.0)); 335 unittest.expect(o.latitude, unittest.equals(42.0));
336 unittest.expect(o.longitude, unittest.equals(42.0)); 336 unittest.expect(o.longitude, unittest.equals(42.0));
337 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 337 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
338 } 338 }
339 buildCounterLocation--; 339 buildCounterLocation--;
340 } 340 }
341 341
342 buildUnnamed770() { 342 buildUnnamed962() {
343 var o = new core.List<api.Location>(); 343 var o = new core.List<api.Location>();
344 o.add(buildLocation()); 344 o.add(buildLocation());
345 o.add(buildLocation()); 345 o.add(buildLocation());
346 return o; 346 return o;
347 } 347 }
348 348
349 checkUnnamed770(core.List<api.Location> o) { 349 checkUnnamed962(core.List<api.Location> o) {
350 unittest.expect(o, unittest.hasLength(2)); 350 unittest.expect(o, unittest.hasLength(2));
351 checkLocation(o[0]); 351 checkLocation(o[0]);
352 checkLocation(o[1]); 352 checkLocation(o[1]);
353 } 353 }
354 354
355 core.int buildCounterLocationsListResponse = 0; 355 core.int buildCounterLocationsListResponse = 0;
356 buildLocationsListResponse() { 356 buildLocationsListResponse() {
357 var o = new api.LocationsListResponse(); 357 var o = new api.LocationsListResponse();
358 buildCounterLocationsListResponse++; 358 buildCounterLocationsListResponse++;
359 if (buildCounterLocationsListResponse < 3) { 359 if (buildCounterLocationsListResponse < 3) {
360 o.items = buildUnnamed770(); 360 o.items = buildUnnamed962();
361 o.kind = "foo"; 361 o.kind = "foo";
362 } 362 }
363 buildCounterLocationsListResponse--; 363 buildCounterLocationsListResponse--;
364 return o; 364 return o;
365 } 365 }
366 366
367 checkLocationsListResponse(api.LocationsListResponse o) { 367 checkLocationsListResponse(api.LocationsListResponse o) {
368 buildCounterLocationsListResponse++; 368 buildCounterLocationsListResponse++;
369 if (buildCounterLocationsListResponse < 3) { 369 if (buildCounterLocationsListResponse < 3) {
370 checkUnnamed770(o.items); 370 checkUnnamed962(o.items);
371 unittest.expect(o.kind, unittest.equals('foo')); 371 unittest.expect(o.kind, unittest.equals('foo'));
372 } 372 }
373 buildCounterLocationsListResponse--; 373 buildCounterLocationsListResponse--;
374 } 374 }
375 375
376 buildUnnamed771() { 376 buildUnnamed963() {
377 var o = new core.List<api.MenuValue>(); 377 var o = new core.List<api.MenuValue>();
378 o.add(buildMenuValue()); 378 o.add(buildMenuValue());
379 o.add(buildMenuValue()); 379 o.add(buildMenuValue());
380 return o; 380 return o;
381 } 381 }
382 382
383 checkUnnamed771(core.List<api.MenuValue> o) { 383 checkUnnamed963(core.List<api.MenuValue> o) {
384 unittest.expect(o, unittest.hasLength(2)); 384 unittest.expect(o, unittest.hasLength(2));
385 checkMenuValue(o[0]); 385 checkMenuValue(o[0]);
386 checkMenuValue(o[1]); 386 checkMenuValue(o[1]);
387 } 387 }
388 388
389 core.int buildCounterMenuItem = 0; 389 core.int buildCounterMenuItem = 0;
390 buildMenuItem() { 390 buildMenuItem() {
391 var o = new api.MenuItem(); 391 var o = new api.MenuItem();
392 buildCounterMenuItem++; 392 buildCounterMenuItem++;
393 if (buildCounterMenuItem < 3) { 393 if (buildCounterMenuItem < 3) {
394 o.action = "foo"; 394 o.action = "foo";
395 o.contextualCommand = "foo"; 395 o.contextualCommand = "foo";
396 o.id = "foo"; 396 o.id = "foo";
397 o.payload = "foo"; 397 o.payload = "foo";
398 o.removeWhenSelected = true; 398 o.removeWhenSelected = true;
399 o.values = buildUnnamed771(); 399 o.values = buildUnnamed963();
400 } 400 }
401 buildCounterMenuItem--; 401 buildCounterMenuItem--;
402 return o; 402 return o;
403 } 403 }
404 404
405 checkMenuItem(api.MenuItem o) { 405 checkMenuItem(api.MenuItem o) {
406 buildCounterMenuItem++; 406 buildCounterMenuItem++;
407 if (buildCounterMenuItem < 3) { 407 if (buildCounterMenuItem < 3) {
408 unittest.expect(o.action, unittest.equals('foo')); 408 unittest.expect(o.action, unittest.equals('foo'));
409 unittest.expect(o.contextualCommand, unittest.equals('foo')); 409 unittest.expect(o.contextualCommand, unittest.equals('foo'));
410 unittest.expect(o.id, unittest.equals('foo')); 410 unittest.expect(o.id, unittest.equals('foo'));
411 unittest.expect(o.payload, unittest.equals('foo')); 411 unittest.expect(o.payload, unittest.equals('foo'));
412 unittest.expect(o.removeWhenSelected, unittest.isTrue); 412 unittest.expect(o.removeWhenSelected, unittest.isTrue);
413 checkUnnamed771(o.values); 413 checkUnnamed963(o.values);
414 } 414 }
415 buildCounterMenuItem--; 415 buildCounterMenuItem--;
416 } 416 }
417 417
418 core.int buildCounterMenuValue = 0; 418 core.int buildCounterMenuValue = 0;
419 buildMenuValue() { 419 buildMenuValue() {
420 var o = new api.MenuValue(); 420 var o = new api.MenuValue();
421 buildCounterMenuValue++; 421 buildCounterMenuValue++;
422 if (buildCounterMenuValue < 3) { 422 if (buildCounterMenuValue < 3) {
423 o.displayName = "foo"; 423 o.displayName = "foo";
424 o.iconUrl = "foo"; 424 o.iconUrl = "foo";
425 o.state = "foo"; 425 o.state = "foo";
426 } 426 }
427 buildCounterMenuValue--; 427 buildCounterMenuValue--;
428 return o; 428 return o;
429 } 429 }
430 430
431 checkMenuValue(api.MenuValue o) { 431 checkMenuValue(api.MenuValue o) {
432 buildCounterMenuValue++; 432 buildCounterMenuValue++;
433 if (buildCounterMenuValue < 3) { 433 if (buildCounterMenuValue < 3) {
434 unittest.expect(o.displayName, unittest.equals('foo')); 434 unittest.expect(o.displayName, unittest.equals('foo'));
435 unittest.expect(o.iconUrl, unittest.equals('foo')); 435 unittest.expect(o.iconUrl, unittest.equals('foo'));
436 unittest.expect(o.state, unittest.equals('foo')); 436 unittest.expect(o.state, unittest.equals('foo'));
437 } 437 }
438 buildCounterMenuValue--; 438 buildCounterMenuValue--;
439 } 439 }
440 440
441 buildUnnamed772() { 441 buildUnnamed964() {
442 var o = new core.List<api.UserAction>(); 442 var o = new core.List<api.UserAction>();
443 o.add(buildUserAction()); 443 o.add(buildUserAction());
444 o.add(buildUserAction()); 444 o.add(buildUserAction());
445 return o; 445 return o;
446 } 446 }
447 447
448 checkUnnamed772(core.List<api.UserAction> o) { 448 checkUnnamed964(core.List<api.UserAction> o) {
449 unittest.expect(o, unittest.hasLength(2)); 449 unittest.expect(o, unittest.hasLength(2));
450 checkUserAction(o[0]); 450 checkUserAction(o[0]);
451 checkUserAction(o[1]); 451 checkUserAction(o[1]);
452 } 452 }
453 453
454 core.int buildCounterNotification = 0; 454 core.int buildCounterNotification = 0;
455 buildNotification() { 455 buildNotification() {
456 var o = new api.Notification(); 456 var o = new api.Notification();
457 buildCounterNotification++; 457 buildCounterNotification++;
458 if (buildCounterNotification < 3) { 458 if (buildCounterNotification < 3) {
459 o.collection = "foo"; 459 o.collection = "foo";
460 o.itemId = "foo"; 460 o.itemId = "foo";
461 o.operation = "foo"; 461 o.operation = "foo";
462 o.userActions = buildUnnamed772(); 462 o.userActions = buildUnnamed964();
463 o.userToken = "foo"; 463 o.userToken = "foo";
464 o.verifyToken = "foo"; 464 o.verifyToken = "foo";
465 } 465 }
466 buildCounterNotification--; 466 buildCounterNotification--;
467 return o; 467 return o;
468 } 468 }
469 469
470 checkNotification(api.Notification o) { 470 checkNotification(api.Notification o) {
471 buildCounterNotification++; 471 buildCounterNotification++;
472 if (buildCounterNotification < 3) { 472 if (buildCounterNotification < 3) {
473 unittest.expect(o.collection, unittest.equals('foo')); 473 unittest.expect(o.collection, unittest.equals('foo'));
474 unittest.expect(o.itemId, unittest.equals('foo')); 474 unittest.expect(o.itemId, unittest.equals('foo'));
475 unittest.expect(o.operation, unittest.equals('foo')); 475 unittest.expect(o.operation, unittest.equals('foo'));
476 checkUnnamed772(o.userActions); 476 checkUnnamed964(o.userActions);
477 unittest.expect(o.userToken, unittest.equals('foo')); 477 unittest.expect(o.userToken, unittest.equals('foo'));
478 unittest.expect(o.verifyToken, unittest.equals('foo')); 478 unittest.expect(o.verifyToken, unittest.equals('foo'));
479 } 479 }
480 buildCounterNotification--; 480 buildCounterNotification--;
481 } 481 }
482 482
483 core.int buildCounterNotificationConfig = 0; 483 core.int buildCounterNotificationConfig = 0;
484 buildNotificationConfig() { 484 buildNotificationConfig() {
485 var o = new api.NotificationConfig(); 485 var o = new api.NotificationConfig();
486 buildCounterNotificationConfig++; 486 buildCounterNotificationConfig++;
(...skipping 30 matching lines...) Expand all
517 checkSetting(api.Setting o) { 517 checkSetting(api.Setting o) {
518 buildCounterSetting++; 518 buildCounterSetting++;
519 if (buildCounterSetting < 3) { 519 if (buildCounterSetting < 3) {
520 unittest.expect(o.id, unittest.equals('foo')); 520 unittest.expect(o.id, unittest.equals('foo'));
521 unittest.expect(o.kind, unittest.equals('foo')); 521 unittest.expect(o.kind, unittest.equals('foo'));
522 unittest.expect(o.value, unittest.equals('foo')); 522 unittest.expect(o.value, unittest.equals('foo'));
523 } 523 }
524 buildCounterSetting--; 524 buildCounterSetting--;
525 } 525 }
526 526
527 buildUnnamed773() { 527 buildUnnamed965() {
528 var o = new core.List<core.String>(); 528 var o = new core.List<core.String>();
529 o.add("foo"); 529 o.add("foo");
530 o.add("foo"); 530 o.add("foo");
531 return o; 531 return o;
532 } 532 }
533 533
534 checkUnnamed773(core.List<core.String> o) { 534 checkUnnamed965(core.List<core.String> o) {
535 unittest.expect(o, unittest.hasLength(2)); 535 unittest.expect(o, unittest.hasLength(2));
536 unittest.expect(o[0], unittest.equals('foo')); 536 unittest.expect(o[0], unittest.equals('foo'));
537 unittest.expect(o[1], unittest.equals('foo')); 537 unittest.expect(o[1], unittest.equals('foo'));
538 } 538 }
539 539
540 core.int buildCounterSubscription = 0; 540 core.int buildCounterSubscription = 0;
541 buildSubscription() { 541 buildSubscription() {
542 var o = new api.Subscription(); 542 var o = new api.Subscription();
543 buildCounterSubscription++; 543 buildCounterSubscription++;
544 if (buildCounterSubscription < 3) { 544 if (buildCounterSubscription < 3) {
545 o.callbackUrl = "foo"; 545 o.callbackUrl = "foo";
546 o.collection = "foo"; 546 o.collection = "foo";
547 o.id = "foo"; 547 o.id = "foo";
548 o.kind = "foo"; 548 o.kind = "foo";
549 o.notification = buildNotification(); 549 o.notification = buildNotification();
550 o.operation = buildUnnamed773(); 550 o.operation = buildUnnamed965();
551 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 551 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
552 o.userToken = "foo"; 552 o.userToken = "foo";
553 o.verifyToken = "foo"; 553 o.verifyToken = "foo";
554 } 554 }
555 buildCounterSubscription--; 555 buildCounterSubscription--;
556 return o; 556 return o;
557 } 557 }
558 558
559 checkSubscription(api.Subscription o) { 559 checkSubscription(api.Subscription o) {
560 buildCounterSubscription++; 560 buildCounterSubscription++;
561 if (buildCounterSubscription < 3) { 561 if (buildCounterSubscription < 3) {
562 unittest.expect(o.callbackUrl, unittest.equals('foo')); 562 unittest.expect(o.callbackUrl, unittest.equals('foo'));
563 unittest.expect(o.collection, unittest.equals('foo')); 563 unittest.expect(o.collection, unittest.equals('foo'));
564 unittest.expect(o.id, unittest.equals('foo')); 564 unittest.expect(o.id, unittest.equals('foo'));
565 unittest.expect(o.kind, unittest.equals('foo')); 565 unittest.expect(o.kind, unittest.equals('foo'));
566 checkNotification(o.notification); 566 checkNotification(o.notification);
567 checkUnnamed773(o.operation); 567 checkUnnamed965(o.operation);
568 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 568 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
569 unittest.expect(o.userToken, unittest.equals('foo')); 569 unittest.expect(o.userToken, unittest.equals('foo'));
570 unittest.expect(o.verifyToken, unittest.equals('foo')); 570 unittest.expect(o.verifyToken, unittest.equals('foo'));
571 } 571 }
572 buildCounterSubscription--; 572 buildCounterSubscription--;
573 } 573 }
574 574
575 buildUnnamed774() { 575 buildUnnamed966() {
576 var o = new core.List<api.Subscription>(); 576 var o = new core.List<api.Subscription>();
577 o.add(buildSubscription()); 577 o.add(buildSubscription());
578 o.add(buildSubscription()); 578 o.add(buildSubscription());
579 return o; 579 return o;
580 } 580 }
581 581
582 checkUnnamed774(core.List<api.Subscription> o) { 582 checkUnnamed966(core.List<api.Subscription> o) {
583 unittest.expect(o, unittest.hasLength(2)); 583 unittest.expect(o, unittest.hasLength(2));
584 checkSubscription(o[0]); 584 checkSubscription(o[0]);
585 checkSubscription(o[1]); 585 checkSubscription(o[1]);
586 } 586 }
587 587
588 core.int buildCounterSubscriptionsListResponse = 0; 588 core.int buildCounterSubscriptionsListResponse = 0;
589 buildSubscriptionsListResponse() { 589 buildSubscriptionsListResponse() {
590 var o = new api.SubscriptionsListResponse(); 590 var o = new api.SubscriptionsListResponse();
591 buildCounterSubscriptionsListResponse++; 591 buildCounterSubscriptionsListResponse++;
592 if (buildCounterSubscriptionsListResponse < 3) { 592 if (buildCounterSubscriptionsListResponse < 3) {
593 o.items = buildUnnamed774(); 593 o.items = buildUnnamed966();
594 o.kind = "foo"; 594 o.kind = "foo";
595 } 595 }
596 buildCounterSubscriptionsListResponse--; 596 buildCounterSubscriptionsListResponse--;
597 return o; 597 return o;
598 } 598 }
599 599
600 checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { 600 checkSubscriptionsListResponse(api.SubscriptionsListResponse o) {
601 buildCounterSubscriptionsListResponse++; 601 buildCounterSubscriptionsListResponse++;
602 if (buildCounterSubscriptionsListResponse < 3) { 602 if (buildCounterSubscriptionsListResponse < 3) {
603 checkUnnamed774(o.items); 603 checkUnnamed966(o.items);
604 unittest.expect(o.kind, unittest.equals('foo')); 604 unittest.expect(o.kind, unittest.equals('foo'));
605 } 605 }
606 buildCounterSubscriptionsListResponse--; 606 buildCounterSubscriptionsListResponse--;
607 } 607 }
608 608
609 buildUnnamed775() { 609 buildUnnamed967() {
610 var o = new core.List<api.Attachment>(); 610 var o = new core.List<api.Attachment>();
611 o.add(buildAttachment()); 611 o.add(buildAttachment());
612 o.add(buildAttachment()); 612 o.add(buildAttachment());
613 return o; 613 return o;
614 } 614 }
615 615
616 checkUnnamed775(core.List<api.Attachment> o) { 616 checkUnnamed967(core.List<api.Attachment> o) {
617 unittest.expect(o, unittest.hasLength(2)); 617 unittest.expect(o, unittest.hasLength(2));
618 checkAttachment(o[0]); 618 checkAttachment(o[0]);
619 checkAttachment(o[1]); 619 checkAttachment(o[1]);
620 } 620 }
621 621
622 buildUnnamed776() { 622 buildUnnamed968() {
623 var o = new core.List<api.MenuItem>(); 623 var o = new core.List<api.MenuItem>();
624 o.add(buildMenuItem()); 624 o.add(buildMenuItem());
625 o.add(buildMenuItem()); 625 o.add(buildMenuItem());
626 return o; 626 return o;
627 } 627 }
628 628
629 checkUnnamed776(core.List<api.MenuItem> o) { 629 checkUnnamed968(core.List<api.MenuItem> o) {
630 unittest.expect(o, unittest.hasLength(2)); 630 unittest.expect(o, unittest.hasLength(2));
631 checkMenuItem(o[0]); 631 checkMenuItem(o[0]);
632 checkMenuItem(o[1]); 632 checkMenuItem(o[1]);
633 } 633 }
634 634
635 buildUnnamed777() { 635 buildUnnamed969() {
636 var o = new core.List<api.Contact>(); 636 var o = new core.List<api.Contact>();
637 o.add(buildContact()); 637 o.add(buildContact());
638 o.add(buildContact()); 638 o.add(buildContact());
639 return o; 639 return o;
640 } 640 }
641 641
642 checkUnnamed777(core.List<api.Contact> o) { 642 checkUnnamed969(core.List<api.Contact> o) {
643 unittest.expect(o, unittest.hasLength(2)); 643 unittest.expect(o, unittest.hasLength(2));
644 checkContact(o[0]); 644 checkContact(o[0]);
645 checkContact(o[1]); 645 checkContact(o[1]);
646 } 646 }
647 647
648 core.int buildCounterTimelineItem = 0; 648 core.int buildCounterTimelineItem = 0;
649 buildTimelineItem() { 649 buildTimelineItem() {
650 var o = new api.TimelineItem(); 650 var o = new api.TimelineItem();
651 buildCounterTimelineItem++; 651 buildCounterTimelineItem++;
652 if (buildCounterTimelineItem < 3) { 652 if (buildCounterTimelineItem < 3) {
653 o.attachments = buildUnnamed775(); 653 o.attachments = buildUnnamed967();
654 o.bundleId = "foo"; 654 o.bundleId = "foo";
655 o.canonicalUrl = "foo"; 655 o.canonicalUrl = "foo";
656 o.created = core.DateTime.parse("2002-02-27T14:01:02"); 656 o.created = core.DateTime.parse("2002-02-27T14:01:02");
657 o.creator = buildContact(); 657 o.creator = buildContact();
658 o.displayTime = core.DateTime.parse("2002-02-27T14:01:02"); 658 o.displayTime = core.DateTime.parse("2002-02-27T14:01:02");
659 o.etag = "foo"; 659 o.etag = "foo";
660 o.html = "foo"; 660 o.html = "foo";
661 o.id = "foo"; 661 o.id = "foo";
662 o.inReplyTo = "foo"; 662 o.inReplyTo = "foo";
663 o.isBundleCover = true; 663 o.isBundleCover = true;
664 o.isDeleted = true; 664 o.isDeleted = true;
665 o.isPinned = true; 665 o.isPinned = true;
666 o.kind = "foo"; 666 o.kind = "foo";
667 o.location = buildLocation(); 667 o.location = buildLocation();
668 o.menuItems = buildUnnamed776(); 668 o.menuItems = buildUnnamed968();
669 o.notification = buildNotificationConfig(); 669 o.notification = buildNotificationConfig();
670 o.pinScore = 42; 670 o.pinScore = 42;
671 o.recipients = buildUnnamed777(); 671 o.recipients = buildUnnamed969();
672 o.selfLink = "foo"; 672 o.selfLink = "foo";
673 o.sourceItemId = "foo"; 673 o.sourceItemId = "foo";
674 o.speakableText = "foo"; 674 o.speakableText = "foo";
675 o.speakableType = "foo"; 675 o.speakableType = "foo";
676 o.text = "foo"; 676 o.text = "foo";
677 o.title = "foo"; 677 o.title = "foo";
678 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 678 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
679 } 679 }
680 buildCounterTimelineItem--; 680 buildCounterTimelineItem--;
681 return o; 681 return o;
682 } 682 }
683 683
684 checkTimelineItem(api.TimelineItem o) { 684 checkTimelineItem(api.TimelineItem o) {
685 buildCounterTimelineItem++; 685 buildCounterTimelineItem++;
686 if (buildCounterTimelineItem < 3) { 686 if (buildCounterTimelineItem < 3) {
687 checkUnnamed775(o.attachments); 687 checkUnnamed967(o.attachments);
688 unittest.expect(o.bundleId, unittest.equals('foo')); 688 unittest.expect(o.bundleId, unittest.equals('foo'));
689 unittest.expect(o.canonicalUrl, unittest.equals('foo')); 689 unittest.expect(o.canonicalUrl, unittest.equals('foo'));
690 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 690 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
691 checkContact(o.creator); 691 checkContact(o.creator);
692 unittest.expect(o.displayTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 692 unittest.expect(o.displayTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
693 unittest.expect(o.etag, unittest.equals('foo')); 693 unittest.expect(o.etag, unittest.equals('foo'));
694 unittest.expect(o.html, unittest.equals('foo')); 694 unittest.expect(o.html, unittest.equals('foo'));
695 unittest.expect(o.id, unittest.equals('foo')); 695 unittest.expect(o.id, unittest.equals('foo'));
696 unittest.expect(o.inReplyTo, unittest.equals('foo')); 696 unittest.expect(o.inReplyTo, unittest.equals('foo'));
697 unittest.expect(o.isBundleCover, unittest.isTrue); 697 unittest.expect(o.isBundleCover, unittest.isTrue);
698 unittest.expect(o.isDeleted, unittest.isTrue); 698 unittest.expect(o.isDeleted, unittest.isTrue);
699 unittest.expect(o.isPinned, unittest.isTrue); 699 unittest.expect(o.isPinned, unittest.isTrue);
700 unittest.expect(o.kind, unittest.equals('foo')); 700 unittest.expect(o.kind, unittest.equals('foo'));
701 checkLocation(o.location); 701 checkLocation(o.location);
702 checkUnnamed776(o.menuItems); 702 checkUnnamed968(o.menuItems);
703 checkNotificationConfig(o.notification); 703 checkNotificationConfig(o.notification);
704 unittest.expect(o.pinScore, unittest.equals(42)); 704 unittest.expect(o.pinScore, unittest.equals(42));
705 checkUnnamed777(o.recipients); 705 checkUnnamed969(o.recipients);
706 unittest.expect(o.selfLink, unittest.equals('foo')); 706 unittest.expect(o.selfLink, unittest.equals('foo'));
707 unittest.expect(o.sourceItemId, unittest.equals('foo')); 707 unittest.expect(o.sourceItemId, unittest.equals('foo'));
708 unittest.expect(o.speakableText, unittest.equals('foo')); 708 unittest.expect(o.speakableText, unittest.equals('foo'));
709 unittest.expect(o.speakableType, unittest.equals('foo')); 709 unittest.expect(o.speakableType, unittest.equals('foo'));
710 unittest.expect(o.text, unittest.equals('foo')); 710 unittest.expect(o.text, unittest.equals('foo'));
711 unittest.expect(o.title, unittest.equals('foo')); 711 unittest.expect(o.title, unittest.equals('foo'));
712 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 712 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
713 } 713 }
714 buildCounterTimelineItem--; 714 buildCounterTimelineItem--;
715 } 715 }
716 716
717 buildUnnamed778() { 717 buildUnnamed970() {
718 var o = new core.List<api.TimelineItem>(); 718 var o = new core.List<api.TimelineItem>();
719 o.add(buildTimelineItem()); 719 o.add(buildTimelineItem());
720 o.add(buildTimelineItem()); 720 o.add(buildTimelineItem());
721 return o; 721 return o;
722 } 722 }
723 723
724 checkUnnamed778(core.List<api.TimelineItem> o) { 724 checkUnnamed970(core.List<api.TimelineItem> o) {
725 unittest.expect(o, unittest.hasLength(2)); 725 unittest.expect(o, unittest.hasLength(2));
726 checkTimelineItem(o[0]); 726 checkTimelineItem(o[0]);
727 checkTimelineItem(o[1]); 727 checkTimelineItem(o[1]);
728 } 728 }
729 729
730 core.int buildCounterTimelineListResponse = 0; 730 core.int buildCounterTimelineListResponse = 0;
731 buildTimelineListResponse() { 731 buildTimelineListResponse() {
732 var o = new api.TimelineListResponse(); 732 var o = new api.TimelineListResponse();
733 buildCounterTimelineListResponse++; 733 buildCounterTimelineListResponse++;
734 if (buildCounterTimelineListResponse < 3) { 734 if (buildCounterTimelineListResponse < 3) {
735 o.items = buildUnnamed778(); 735 o.items = buildUnnamed970();
736 o.kind = "foo"; 736 o.kind = "foo";
737 o.nextPageToken = "foo"; 737 o.nextPageToken = "foo";
738 } 738 }
739 buildCounterTimelineListResponse--; 739 buildCounterTimelineListResponse--;
740 return o; 740 return o;
741 } 741 }
742 742
743 checkTimelineListResponse(api.TimelineListResponse o) { 743 checkTimelineListResponse(api.TimelineListResponse o) {
744 buildCounterTimelineListResponse++; 744 buildCounterTimelineListResponse++;
745 if (buildCounterTimelineListResponse < 3) { 745 if (buildCounterTimelineListResponse < 3) {
746 checkUnnamed778(o.items); 746 checkUnnamed970(o.items);
747 unittest.expect(o.kind, unittest.equals('foo')); 747 unittest.expect(o.kind, unittest.equals('foo'));
748 unittest.expect(o.nextPageToken, unittest.equals('foo')); 748 unittest.expect(o.nextPageToken, unittest.equals('foo'));
749 } 749 }
750 buildCounterTimelineListResponse--; 750 buildCounterTimelineListResponse--;
751 } 751 }
752 752
753 core.int buildCounterUserAction = 0; 753 core.int buildCounterUserAction = 0;
754 buildUserAction() { 754 buildUserAction() {
755 var o = new api.UserAction(); 755 var o = new api.UserAction();
756 buildCounterUserAction++; 756 buildCounterUserAction++;
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after
2235 res.list(arg_itemId).then(unittest.expectAsync(((api.AttachmentsListRespon se response) { 2235 res.list(arg_itemId).then(unittest.expectAsync(((api.AttachmentsListRespon se response) {
2236 checkAttachmentsListResponse(response); 2236 checkAttachmentsListResponse(response);
2237 }))); 2237 })));
2238 }); 2238 });
2239 2239
2240 }); 2240 });
2241 2241
2242 2242
2243 } 2243 }
2244 2244
OLDNEW
« no previous file with comments | « generated/googleapis/test/mapsengine/v1_test.dart ('k') | generated/googleapis/test/pagespeedonline/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698