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

Side by Side Diff: generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 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 library googleapis_beta.proximitybeacon.v1beta1.test; 1 library googleapis_beta.proximitybeacon.v1beta1.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;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 checkAttachmentInfo(api.AttachmentInfo o) { 87 checkAttachmentInfo(api.AttachmentInfo o) {
88 buildCounterAttachmentInfo++; 88 buildCounterAttachmentInfo++;
89 if (buildCounterAttachmentInfo < 3) { 89 if (buildCounterAttachmentInfo < 3) {
90 unittest.expect(o.data, unittest.equals('foo')); 90 unittest.expect(o.data, unittest.equals('foo'));
91 unittest.expect(o.namespacedType, unittest.equals('foo')); 91 unittest.expect(o.namespacedType, unittest.equals('foo'));
92 } 92 }
93 buildCounterAttachmentInfo--; 93 buildCounterAttachmentInfo--;
94 } 94 }
95 95
96 buildUnnamed3089() { 96 buildUnnamed3435() {
97 var o = new core.Map<core.String, core.String>(); 97 var o = new core.Map<core.String, core.String>();
98 o["x"] = "foo"; 98 o["x"] = "foo";
99 o["y"] = "foo"; 99 o["y"] = "foo";
100 return o; 100 return o;
101 } 101 }
102 102
103 checkUnnamed3089(core.Map<core.String, core.String> o) { 103 checkUnnamed3435(core.Map<core.String, core.String> o) {
104 unittest.expect(o, unittest.hasLength(2)); 104 unittest.expect(o, unittest.hasLength(2));
105 unittest.expect(o["x"], unittest.equals('foo')); 105 unittest.expect(o["x"], unittest.equals('foo'));
106 unittest.expect(o["y"], unittest.equals('foo')); 106 unittest.expect(o["y"], unittest.equals('foo'));
107 } 107 }
108 108
109 core.int buildCounterBeacon = 0; 109 core.int buildCounterBeacon = 0;
110 buildBeacon() { 110 buildBeacon() {
111 var o = new api.Beacon(); 111 var o = new api.Beacon();
112 buildCounterBeacon++; 112 buildCounterBeacon++;
113 if (buildCounterBeacon < 3) { 113 if (buildCounterBeacon < 3) {
114 o.advertisedId = buildAdvertisedId(); 114 o.advertisedId = buildAdvertisedId();
115 o.beaconName = "foo"; 115 o.beaconName = "foo";
116 o.description = "foo"; 116 o.description = "foo";
117 o.expectedStability = "foo"; 117 o.expectedStability = "foo";
118 o.indoorLevel = buildIndoorLevel(); 118 o.indoorLevel = buildIndoorLevel();
119 o.latLng = buildLatLng(); 119 o.latLng = buildLatLng();
120 o.placeId = "foo"; 120 o.placeId = "foo";
121 o.properties = buildUnnamed3089(); 121 o.properties = buildUnnamed3435();
122 o.status = "foo"; 122 o.status = "foo";
123 } 123 }
124 buildCounterBeacon--; 124 buildCounterBeacon--;
125 return o; 125 return o;
126 } 126 }
127 127
128 checkBeacon(api.Beacon o) { 128 checkBeacon(api.Beacon o) {
129 buildCounterBeacon++; 129 buildCounterBeacon++;
130 if (buildCounterBeacon < 3) { 130 if (buildCounterBeacon < 3) {
131 checkAdvertisedId(o.advertisedId); 131 checkAdvertisedId(o.advertisedId);
132 unittest.expect(o.beaconName, unittest.equals('foo')); 132 unittest.expect(o.beaconName, unittest.equals('foo'));
133 unittest.expect(o.description, unittest.equals('foo')); 133 unittest.expect(o.description, unittest.equals('foo'));
134 unittest.expect(o.expectedStability, unittest.equals('foo')); 134 unittest.expect(o.expectedStability, unittest.equals('foo'));
135 checkIndoorLevel(o.indoorLevel); 135 checkIndoorLevel(o.indoorLevel);
136 checkLatLng(o.latLng); 136 checkLatLng(o.latLng);
137 unittest.expect(o.placeId, unittest.equals('foo')); 137 unittest.expect(o.placeId, unittest.equals('foo'));
138 checkUnnamed3089(o.properties); 138 checkUnnamed3435(o.properties);
139 unittest.expect(o.status, unittest.equals('foo')); 139 unittest.expect(o.status, unittest.equals('foo'));
140 } 140 }
141 buildCounterBeacon--; 141 buildCounterBeacon--;
142 } 142 }
143 143
144 core.int buildCounterBeaconAttachment = 0; 144 core.int buildCounterBeaconAttachment = 0;
145 buildBeaconAttachment() { 145 buildBeaconAttachment() {
146 var o = new api.BeaconAttachment(); 146 var o = new api.BeaconAttachment();
147 buildCounterBeaconAttachment++; 147 buildCounterBeaconAttachment++;
148 if (buildCounterBeaconAttachment < 3) { 148 if (buildCounterBeaconAttachment < 3) {
149 o.attachmentName = "foo"; 149 o.attachmentName = "foo";
150 o.data = "foo"; 150 o.data = "foo";
151 o.namespacedType = "foo"; 151 o.namespacedType = "foo";
152 } 152 }
153 buildCounterBeaconAttachment--; 153 buildCounterBeaconAttachment--;
154 return o; 154 return o;
155 } 155 }
156 156
157 checkBeaconAttachment(api.BeaconAttachment o) { 157 checkBeaconAttachment(api.BeaconAttachment o) {
158 buildCounterBeaconAttachment++; 158 buildCounterBeaconAttachment++;
159 if (buildCounterBeaconAttachment < 3) { 159 if (buildCounterBeaconAttachment < 3) {
160 unittest.expect(o.attachmentName, unittest.equals('foo')); 160 unittest.expect(o.attachmentName, unittest.equals('foo'));
161 unittest.expect(o.data, unittest.equals('foo')); 161 unittest.expect(o.data, unittest.equals('foo'));
162 unittest.expect(o.namespacedType, unittest.equals('foo')); 162 unittest.expect(o.namespacedType, unittest.equals('foo'));
163 } 163 }
164 buildCounterBeaconAttachment--; 164 buildCounterBeaconAttachment--;
165 } 165 }
166 166
167 buildUnnamed3090() { 167 buildUnnamed3436() {
168 var o = new core.List<api.AttachmentInfo>(); 168 var o = new core.List<api.AttachmentInfo>();
169 o.add(buildAttachmentInfo()); 169 o.add(buildAttachmentInfo());
170 o.add(buildAttachmentInfo()); 170 o.add(buildAttachmentInfo());
171 return o; 171 return o;
172 } 172 }
173 173
174 checkUnnamed3090(core.List<api.AttachmentInfo> o) { 174 checkUnnamed3436(core.List<api.AttachmentInfo> o) {
175 unittest.expect(o, unittest.hasLength(2)); 175 unittest.expect(o, unittest.hasLength(2));
176 checkAttachmentInfo(o[0]); 176 checkAttachmentInfo(o[0]);
177 checkAttachmentInfo(o[1]); 177 checkAttachmentInfo(o[1]);
178 } 178 }
179 179
180 core.int buildCounterBeaconInfo = 0; 180 core.int buildCounterBeaconInfo = 0;
181 buildBeaconInfo() { 181 buildBeaconInfo() {
182 var o = new api.BeaconInfo(); 182 var o = new api.BeaconInfo();
183 buildCounterBeaconInfo++; 183 buildCounterBeaconInfo++;
184 if (buildCounterBeaconInfo < 3) { 184 if (buildCounterBeaconInfo < 3) {
185 o.advertisedId = buildAdvertisedId(); 185 o.advertisedId = buildAdvertisedId();
186 o.attachments = buildUnnamed3090(); 186 o.attachments = buildUnnamed3436();
187 o.beaconName = "foo"; 187 o.beaconName = "foo";
188 o.description = "foo"; 188 o.description = "foo";
189 } 189 }
190 buildCounterBeaconInfo--; 190 buildCounterBeaconInfo--;
191 return o; 191 return o;
192 } 192 }
193 193
194 checkBeaconInfo(api.BeaconInfo o) { 194 checkBeaconInfo(api.BeaconInfo o) {
195 buildCounterBeaconInfo++; 195 buildCounterBeaconInfo++;
196 if (buildCounterBeaconInfo < 3) { 196 if (buildCounterBeaconInfo < 3) {
197 checkAdvertisedId(o.advertisedId); 197 checkAdvertisedId(o.advertisedId);
198 checkUnnamed3090(o.attachments); 198 checkUnnamed3436(o.attachments);
199 unittest.expect(o.beaconName, unittest.equals('foo')); 199 unittest.expect(o.beaconName, unittest.equals('foo'));
200 unittest.expect(o.description, unittest.equals('foo')); 200 unittest.expect(o.description, unittest.equals('foo'));
201 } 201 }
202 buildCounterBeaconInfo--; 202 buildCounterBeaconInfo--;
203 } 203 }
204 204
205 core.int buildCounterDate = 0; 205 core.int buildCounterDate = 0;
206 buildDate() { 206 buildDate() {
207 var o = new api.Date(); 207 var o = new api.Date();
208 buildCounterDate++; 208 buildCounterDate++;
(...skipping 28 matching lines...) Expand all
237 } 237 }
238 238
239 checkDeleteAttachmentsResponse(api.DeleteAttachmentsResponse o) { 239 checkDeleteAttachmentsResponse(api.DeleteAttachmentsResponse o) {
240 buildCounterDeleteAttachmentsResponse++; 240 buildCounterDeleteAttachmentsResponse++;
241 if (buildCounterDeleteAttachmentsResponse < 3) { 241 if (buildCounterDeleteAttachmentsResponse < 3) {
242 unittest.expect(o.numDeleted, unittest.equals(42)); 242 unittest.expect(o.numDeleted, unittest.equals(42));
243 } 243 }
244 buildCounterDeleteAttachmentsResponse--; 244 buildCounterDeleteAttachmentsResponse--;
245 } 245 }
246 246
247 buildUnnamed3091() { 247 buildUnnamed3437() {
248 var o = new core.List<core.String>(); 248 var o = new core.List<core.String>();
249 o.add("foo"); 249 o.add("foo");
250 o.add("foo"); 250 o.add("foo");
251 return o; 251 return o;
252 } 252 }
253 253
254 checkUnnamed3091(core.List<core.String> o) { 254 checkUnnamed3437(core.List<core.String> o) {
255 unittest.expect(o, unittest.hasLength(2)); 255 unittest.expect(o, unittest.hasLength(2));
256 unittest.expect(o[0], unittest.equals('foo')); 256 unittest.expect(o[0], unittest.equals('foo'));
257 unittest.expect(o[1], unittest.equals('foo')); 257 unittest.expect(o[1], unittest.equals('foo'));
258 } 258 }
259 259
260 core.int buildCounterDiagnostics = 0; 260 core.int buildCounterDiagnostics = 0;
261 buildDiagnostics() { 261 buildDiagnostics() {
262 var o = new api.Diagnostics(); 262 var o = new api.Diagnostics();
263 buildCounterDiagnostics++; 263 buildCounterDiagnostics++;
264 if (buildCounterDiagnostics < 3) { 264 if (buildCounterDiagnostics < 3) {
265 o.alerts = buildUnnamed3091(); 265 o.alerts = buildUnnamed3437();
266 o.beaconName = "foo"; 266 o.beaconName = "foo";
267 o.estimatedLowBatteryDate = buildDate(); 267 o.estimatedLowBatteryDate = buildDate();
268 } 268 }
269 buildCounterDiagnostics--; 269 buildCounterDiagnostics--;
270 return o; 270 return o;
271 } 271 }
272 272
273 checkDiagnostics(api.Diagnostics o) { 273 checkDiagnostics(api.Diagnostics o) {
274 buildCounterDiagnostics++; 274 buildCounterDiagnostics++;
275 if (buildCounterDiagnostics < 3) { 275 if (buildCounterDiagnostics < 3) {
276 checkUnnamed3091(o.alerts); 276 checkUnnamed3437(o.alerts);
277 unittest.expect(o.beaconName, unittest.equals('foo')); 277 unittest.expect(o.beaconName, unittest.equals('foo'));
278 checkDate(o.estimatedLowBatteryDate); 278 checkDate(o.estimatedLowBatteryDate);
279 } 279 }
280 buildCounterDiagnostics--; 280 buildCounterDiagnostics--;
281 } 281 }
282 282
283 core.int buildCounterEmpty = 0; 283 core.int buildCounterEmpty = 0;
284 buildEmpty() { 284 buildEmpty() {
285 var o = new api.Empty(); 285 var o = new api.Empty();
286 buildCounterEmpty++; 286 buildCounterEmpty++;
287 if (buildCounterEmpty < 3) { 287 if (buildCounterEmpty < 3) {
288 } 288 }
289 buildCounterEmpty--; 289 buildCounterEmpty--;
290 return o; 290 return o;
291 } 291 }
292 292
293 checkEmpty(api.Empty o) { 293 checkEmpty(api.Empty o) {
294 buildCounterEmpty++; 294 buildCounterEmpty++;
295 if (buildCounterEmpty < 3) { 295 if (buildCounterEmpty < 3) {
296 } 296 }
297 buildCounterEmpty--; 297 buildCounterEmpty--;
298 } 298 }
299 299
300 buildUnnamed3092() { 300 buildUnnamed3438() {
301 var o = new core.List<core.String>(); 301 var o = new core.List<core.String>();
302 o.add("foo"); 302 o.add("foo");
303 o.add("foo"); 303 o.add("foo");
304 return o; 304 return o;
305 } 305 }
306 306
307 checkUnnamed3092(core.List<core.String> o) { 307 checkUnnamed3438(core.List<core.String> o) {
308 unittest.expect(o, unittest.hasLength(2)); 308 unittest.expect(o, unittest.hasLength(2));
309 unittest.expect(o[0], unittest.equals('foo')); 309 unittest.expect(o[0], unittest.equals('foo'));
310 unittest.expect(o[1], unittest.equals('foo')); 310 unittest.expect(o[1], unittest.equals('foo'));
311 } 311 }
312 312
313 buildUnnamed3093() { 313 buildUnnamed3439() {
314 var o = new core.List<api.Observation>(); 314 var o = new core.List<api.Observation>();
315 o.add(buildObservation()); 315 o.add(buildObservation());
316 o.add(buildObservation()); 316 o.add(buildObservation());
317 return o; 317 return o;
318 } 318 }
319 319
320 checkUnnamed3093(core.List<api.Observation> o) { 320 checkUnnamed3439(core.List<api.Observation> o) {
321 unittest.expect(o, unittest.hasLength(2)); 321 unittest.expect(o, unittest.hasLength(2));
322 checkObservation(o[0]); 322 checkObservation(o[0]);
323 checkObservation(o[1]); 323 checkObservation(o[1]);
324 } 324 }
325 325
326 core.int buildCounterGetInfoForObservedBeaconsRequest = 0; 326 core.int buildCounterGetInfoForObservedBeaconsRequest = 0;
327 buildGetInfoForObservedBeaconsRequest() { 327 buildGetInfoForObservedBeaconsRequest() {
328 var o = new api.GetInfoForObservedBeaconsRequest(); 328 var o = new api.GetInfoForObservedBeaconsRequest();
329 buildCounterGetInfoForObservedBeaconsRequest++; 329 buildCounterGetInfoForObservedBeaconsRequest++;
330 if (buildCounterGetInfoForObservedBeaconsRequest < 3) { 330 if (buildCounterGetInfoForObservedBeaconsRequest < 3) {
331 o.namespacedTypes = buildUnnamed3092(); 331 o.namespacedTypes = buildUnnamed3438();
332 o.observations = buildUnnamed3093(); 332 o.observations = buildUnnamed3439();
333 } 333 }
334 buildCounterGetInfoForObservedBeaconsRequest--; 334 buildCounterGetInfoForObservedBeaconsRequest--;
335 return o; 335 return o;
336 } 336 }
337 337
338 checkGetInfoForObservedBeaconsRequest(api.GetInfoForObservedBeaconsRequest o) { 338 checkGetInfoForObservedBeaconsRequest(api.GetInfoForObservedBeaconsRequest o) {
339 buildCounterGetInfoForObservedBeaconsRequest++; 339 buildCounterGetInfoForObservedBeaconsRequest++;
340 if (buildCounterGetInfoForObservedBeaconsRequest < 3) { 340 if (buildCounterGetInfoForObservedBeaconsRequest < 3) {
341 checkUnnamed3092(o.namespacedTypes); 341 checkUnnamed3438(o.namespacedTypes);
342 checkUnnamed3093(o.observations); 342 checkUnnamed3439(o.observations);
343 } 343 }
344 buildCounterGetInfoForObservedBeaconsRequest--; 344 buildCounterGetInfoForObservedBeaconsRequest--;
345 } 345 }
346 346
347 buildUnnamed3094() { 347 buildUnnamed3440() {
348 var o = new core.List<api.BeaconInfo>(); 348 var o = new core.List<api.BeaconInfo>();
349 o.add(buildBeaconInfo()); 349 o.add(buildBeaconInfo());
350 o.add(buildBeaconInfo()); 350 o.add(buildBeaconInfo());
351 return o; 351 return o;
352 } 352 }
353 353
354 checkUnnamed3094(core.List<api.BeaconInfo> o) { 354 checkUnnamed3440(core.List<api.BeaconInfo> o) {
355 unittest.expect(o, unittest.hasLength(2)); 355 unittest.expect(o, unittest.hasLength(2));
356 checkBeaconInfo(o[0]); 356 checkBeaconInfo(o[0]);
357 checkBeaconInfo(o[1]); 357 checkBeaconInfo(o[1]);
358 } 358 }
359 359
360 core.int buildCounterGetInfoForObservedBeaconsResponse = 0; 360 core.int buildCounterGetInfoForObservedBeaconsResponse = 0;
361 buildGetInfoForObservedBeaconsResponse() { 361 buildGetInfoForObservedBeaconsResponse() {
362 var o = new api.GetInfoForObservedBeaconsResponse(); 362 var o = new api.GetInfoForObservedBeaconsResponse();
363 buildCounterGetInfoForObservedBeaconsResponse++; 363 buildCounterGetInfoForObservedBeaconsResponse++;
364 if (buildCounterGetInfoForObservedBeaconsResponse < 3) { 364 if (buildCounterGetInfoForObservedBeaconsResponse < 3) {
365 o.beacons = buildUnnamed3094(); 365 o.beacons = buildUnnamed3440();
366 } 366 }
367 buildCounterGetInfoForObservedBeaconsResponse--; 367 buildCounterGetInfoForObservedBeaconsResponse--;
368 return o; 368 return o;
369 } 369 }
370 370
371 checkGetInfoForObservedBeaconsResponse(api.GetInfoForObservedBeaconsResponse o) { 371 checkGetInfoForObservedBeaconsResponse(api.GetInfoForObservedBeaconsResponse o) {
372 buildCounterGetInfoForObservedBeaconsResponse++; 372 buildCounterGetInfoForObservedBeaconsResponse++;
373 if (buildCounterGetInfoForObservedBeaconsResponse < 3) { 373 if (buildCounterGetInfoForObservedBeaconsResponse < 3) {
374 checkUnnamed3094(o.beacons); 374 checkUnnamed3440(o.beacons);
375 } 375 }
376 buildCounterGetInfoForObservedBeaconsResponse--; 376 buildCounterGetInfoForObservedBeaconsResponse--;
377 } 377 }
378 378
379 core.int buildCounterIndoorLevel = 0; 379 core.int buildCounterIndoorLevel = 0;
380 buildIndoorLevel() { 380 buildIndoorLevel() {
381 var o = new api.IndoorLevel(); 381 var o = new api.IndoorLevel();
382 buildCounterIndoorLevel++; 382 buildCounterIndoorLevel++;
383 if (buildCounterIndoorLevel < 3) { 383 if (buildCounterIndoorLevel < 3) {
384 o.name = "foo"; 384 o.name = "foo";
(...skipping 24 matching lines...) Expand all
409 409
410 checkLatLng(api.LatLng o) { 410 checkLatLng(api.LatLng o) {
411 buildCounterLatLng++; 411 buildCounterLatLng++;
412 if (buildCounterLatLng < 3) { 412 if (buildCounterLatLng < 3) {
413 unittest.expect(o.latitude, unittest.equals(42.0)); 413 unittest.expect(o.latitude, unittest.equals(42.0));
414 unittest.expect(o.longitude, unittest.equals(42.0)); 414 unittest.expect(o.longitude, unittest.equals(42.0));
415 } 415 }
416 buildCounterLatLng--; 416 buildCounterLatLng--;
417 } 417 }
418 418
419 buildUnnamed3095() { 419 buildUnnamed3441() {
420 var o = new core.List<api.BeaconAttachment>(); 420 var o = new core.List<api.BeaconAttachment>();
421 o.add(buildBeaconAttachment()); 421 o.add(buildBeaconAttachment());
422 o.add(buildBeaconAttachment()); 422 o.add(buildBeaconAttachment());
423 return o; 423 return o;
424 } 424 }
425 425
426 checkUnnamed3095(core.List<api.BeaconAttachment> o) { 426 checkUnnamed3441(core.List<api.BeaconAttachment> o) {
427 unittest.expect(o, unittest.hasLength(2)); 427 unittest.expect(o, unittest.hasLength(2));
428 checkBeaconAttachment(o[0]); 428 checkBeaconAttachment(o[0]);
429 checkBeaconAttachment(o[1]); 429 checkBeaconAttachment(o[1]);
430 } 430 }
431 431
432 core.int buildCounterListBeaconAttachmentsResponse = 0; 432 core.int buildCounterListBeaconAttachmentsResponse = 0;
433 buildListBeaconAttachmentsResponse() { 433 buildListBeaconAttachmentsResponse() {
434 var o = new api.ListBeaconAttachmentsResponse(); 434 var o = new api.ListBeaconAttachmentsResponse();
435 buildCounterListBeaconAttachmentsResponse++; 435 buildCounterListBeaconAttachmentsResponse++;
436 if (buildCounterListBeaconAttachmentsResponse < 3) { 436 if (buildCounterListBeaconAttachmentsResponse < 3) {
437 o.attachments = buildUnnamed3095(); 437 o.attachments = buildUnnamed3441();
438 } 438 }
439 buildCounterListBeaconAttachmentsResponse--; 439 buildCounterListBeaconAttachmentsResponse--;
440 return o; 440 return o;
441 } 441 }
442 442
443 checkListBeaconAttachmentsResponse(api.ListBeaconAttachmentsResponse o) { 443 checkListBeaconAttachmentsResponse(api.ListBeaconAttachmentsResponse o) {
444 buildCounterListBeaconAttachmentsResponse++; 444 buildCounterListBeaconAttachmentsResponse++;
445 if (buildCounterListBeaconAttachmentsResponse < 3) { 445 if (buildCounterListBeaconAttachmentsResponse < 3) {
446 checkUnnamed3095(o.attachments); 446 checkUnnamed3441(o.attachments);
447 } 447 }
448 buildCounterListBeaconAttachmentsResponse--; 448 buildCounterListBeaconAttachmentsResponse--;
449 } 449 }
450 450
451 buildUnnamed3096() { 451 buildUnnamed3442() {
452 var o = new core.List<api.Beacon>(); 452 var o = new core.List<api.Beacon>();
453 o.add(buildBeacon()); 453 o.add(buildBeacon());
454 o.add(buildBeacon()); 454 o.add(buildBeacon());
455 return o; 455 return o;
456 } 456 }
457 457
458 checkUnnamed3096(core.List<api.Beacon> o) { 458 checkUnnamed3442(core.List<api.Beacon> o) {
459 unittest.expect(o, unittest.hasLength(2)); 459 unittest.expect(o, unittest.hasLength(2));
460 checkBeacon(o[0]); 460 checkBeacon(o[0]);
461 checkBeacon(o[1]); 461 checkBeacon(o[1]);
462 } 462 }
463 463
464 core.int buildCounterListBeaconsResponse = 0; 464 core.int buildCounterListBeaconsResponse = 0;
465 buildListBeaconsResponse() { 465 buildListBeaconsResponse() {
466 var o = new api.ListBeaconsResponse(); 466 var o = new api.ListBeaconsResponse();
467 buildCounterListBeaconsResponse++; 467 buildCounterListBeaconsResponse++;
468 if (buildCounterListBeaconsResponse < 3) { 468 if (buildCounterListBeaconsResponse < 3) {
469 o.beacons = buildUnnamed3096(); 469 o.beacons = buildUnnamed3442();
470 o.nextPageToken = "foo"; 470 o.nextPageToken = "foo";
471 o.totalCount = "foo"; 471 o.totalCount = "foo";
472 } 472 }
473 buildCounterListBeaconsResponse--; 473 buildCounterListBeaconsResponse--;
474 return o; 474 return o;
475 } 475 }
476 476
477 checkListBeaconsResponse(api.ListBeaconsResponse o) { 477 checkListBeaconsResponse(api.ListBeaconsResponse o) {
478 buildCounterListBeaconsResponse++; 478 buildCounterListBeaconsResponse++;
479 if (buildCounterListBeaconsResponse < 3) { 479 if (buildCounterListBeaconsResponse < 3) {
480 checkUnnamed3096(o.beacons); 480 checkUnnamed3442(o.beacons);
481 unittest.expect(o.nextPageToken, unittest.equals('foo')); 481 unittest.expect(o.nextPageToken, unittest.equals('foo'));
482 unittest.expect(o.totalCount, unittest.equals('foo')); 482 unittest.expect(o.totalCount, unittest.equals('foo'));
483 } 483 }
484 buildCounterListBeaconsResponse--; 484 buildCounterListBeaconsResponse--;
485 } 485 }
486 486
487 buildUnnamed3097() { 487 buildUnnamed3443() {
488 var o = new core.List<api.Diagnostics>(); 488 var o = new core.List<api.Diagnostics>();
489 o.add(buildDiagnostics()); 489 o.add(buildDiagnostics());
490 o.add(buildDiagnostics()); 490 o.add(buildDiagnostics());
491 return o; 491 return o;
492 } 492 }
493 493
494 checkUnnamed3097(core.List<api.Diagnostics> o) { 494 checkUnnamed3443(core.List<api.Diagnostics> o) {
495 unittest.expect(o, unittest.hasLength(2)); 495 unittest.expect(o, unittest.hasLength(2));
496 checkDiagnostics(o[0]); 496 checkDiagnostics(o[0]);
497 checkDiagnostics(o[1]); 497 checkDiagnostics(o[1]);
498 } 498 }
499 499
500 core.int buildCounterListDiagnosticsResponse = 0; 500 core.int buildCounterListDiagnosticsResponse = 0;
501 buildListDiagnosticsResponse() { 501 buildListDiagnosticsResponse() {
502 var o = new api.ListDiagnosticsResponse(); 502 var o = new api.ListDiagnosticsResponse();
503 buildCounterListDiagnosticsResponse++; 503 buildCounterListDiagnosticsResponse++;
504 if (buildCounterListDiagnosticsResponse < 3) { 504 if (buildCounterListDiagnosticsResponse < 3) {
505 o.diagnostics = buildUnnamed3097(); 505 o.diagnostics = buildUnnamed3443();
506 o.nextPageToken = "foo"; 506 o.nextPageToken = "foo";
507 } 507 }
508 buildCounterListDiagnosticsResponse--; 508 buildCounterListDiagnosticsResponse--;
509 return o; 509 return o;
510 } 510 }
511 511
512 checkListDiagnosticsResponse(api.ListDiagnosticsResponse o) { 512 checkListDiagnosticsResponse(api.ListDiagnosticsResponse o) {
513 buildCounterListDiagnosticsResponse++; 513 buildCounterListDiagnosticsResponse++;
514 if (buildCounterListDiagnosticsResponse < 3) { 514 if (buildCounterListDiagnosticsResponse < 3) {
515 checkUnnamed3097(o.diagnostics); 515 checkUnnamed3443(o.diagnostics);
516 unittest.expect(o.nextPageToken, unittest.equals('foo')); 516 unittest.expect(o.nextPageToken, unittest.equals('foo'));
517 } 517 }
518 buildCounterListDiagnosticsResponse--; 518 buildCounterListDiagnosticsResponse--;
519 } 519 }
520 520
521 buildUnnamed3098() { 521 buildUnnamed3444() {
522 var o = new core.List<api.Namespace>(); 522 var o = new core.List<api.Namespace>();
523 o.add(buildNamespace()); 523 o.add(buildNamespace());
524 o.add(buildNamespace()); 524 o.add(buildNamespace());
525 return o; 525 return o;
526 } 526 }
527 527
528 checkUnnamed3098(core.List<api.Namespace> o) { 528 checkUnnamed3444(core.List<api.Namespace> o) {
529 unittest.expect(o, unittest.hasLength(2)); 529 unittest.expect(o, unittest.hasLength(2));
530 checkNamespace(o[0]); 530 checkNamespace(o[0]);
531 checkNamespace(o[1]); 531 checkNamespace(o[1]);
532 } 532 }
533 533
534 core.int buildCounterListNamespacesResponse = 0; 534 core.int buildCounterListNamespacesResponse = 0;
535 buildListNamespacesResponse() { 535 buildListNamespacesResponse() {
536 var o = new api.ListNamespacesResponse(); 536 var o = new api.ListNamespacesResponse();
537 buildCounterListNamespacesResponse++; 537 buildCounterListNamespacesResponse++;
538 if (buildCounterListNamespacesResponse < 3) { 538 if (buildCounterListNamespacesResponse < 3) {
539 o.namespaces = buildUnnamed3098(); 539 o.namespaces = buildUnnamed3444();
540 } 540 }
541 buildCounterListNamespacesResponse--; 541 buildCounterListNamespacesResponse--;
542 return o; 542 return o;
543 } 543 }
544 544
545 checkListNamespacesResponse(api.ListNamespacesResponse o) { 545 checkListNamespacesResponse(api.ListNamespacesResponse o) {
546 buildCounterListNamespacesResponse++; 546 buildCounterListNamespacesResponse++;
547 if (buildCounterListNamespacesResponse < 3) { 547 if (buildCounterListNamespacesResponse < 3) {
548 checkUnnamed3098(o.namespaces); 548 checkUnnamed3444(o.namespaces);
549 } 549 }
550 buildCounterListNamespacesResponse--; 550 buildCounterListNamespacesResponse--;
551 } 551 }
552 552
553 core.int buildCounterNamespace = 0; 553 core.int buildCounterNamespace = 0;
554 buildNamespace() { 554 buildNamespace() {
555 var o = new api.Namespace(); 555 var o = new api.Namespace();
556 buildCounterNamespace++; 556 buildCounterNamespace++;
557 if (buildCounterNamespace < 3) { 557 if (buildCounterNamespace < 3) {
558 o.namespaceName = "foo"; 558 o.namespaceName = "foo";
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 res.list().then(unittest.expectAsync(((api.ListNamespacesResponse response ) { 1436 res.list().then(unittest.expectAsync(((api.ListNamespacesResponse response ) {
1437 checkListNamespacesResponse(response); 1437 checkListNamespacesResponse(response);
1438 }))); 1438 })));
1439 }); 1439 });
1440 1440
1441 }); 1441 });
1442 1442
1443 1443
1444 } 1444 }
1445 1445
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/manager/v1beta2_test.dart ('k') | generated/googleapis_beta/test/pubsub/v1beta2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698