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

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

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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 buildUnnamed3689() { 96 buildUnnamed3781() {
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 checkUnnamed3689(core.Map<core.String, core.String> o) { 103 checkUnnamed3781(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.ephemeralIdRegistration = buildEphemeralIdRegistration(); 117 o.ephemeralIdRegistration = buildEphemeralIdRegistration();
118 o.expectedStability = "foo"; 118 o.expectedStability = "foo";
119 o.indoorLevel = buildIndoorLevel(); 119 o.indoorLevel = buildIndoorLevel();
120 o.latLng = buildLatLng(); 120 o.latLng = buildLatLng();
121 o.placeId = "foo"; 121 o.placeId = "foo";
122 o.properties = buildUnnamed3689(); 122 o.properties = buildUnnamed3781();
123 o.provisioningKey = "foo"; 123 o.provisioningKey = "foo";
124 o.status = "foo"; 124 o.status = "foo";
125 } 125 }
126 buildCounterBeacon--; 126 buildCounterBeacon--;
127 return o; 127 return o;
128 } 128 }
129 129
130 checkBeacon(api.Beacon o) { 130 checkBeacon(api.Beacon o) {
131 buildCounterBeacon++; 131 buildCounterBeacon++;
132 if (buildCounterBeacon < 3) { 132 if (buildCounterBeacon < 3) {
133 checkAdvertisedId(o.advertisedId); 133 checkAdvertisedId(o.advertisedId);
134 unittest.expect(o.beaconName, unittest.equals('foo')); 134 unittest.expect(o.beaconName, unittest.equals('foo'));
135 unittest.expect(o.description, unittest.equals('foo')); 135 unittest.expect(o.description, unittest.equals('foo'));
136 checkEphemeralIdRegistration(o.ephemeralIdRegistration); 136 checkEphemeralIdRegistration(o.ephemeralIdRegistration);
137 unittest.expect(o.expectedStability, unittest.equals('foo')); 137 unittest.expect(o.expectedStability, unittest.equals('foo'));
138 checkIndoorLevel(o.indoorLevel); 138 checkIndoorLevel(o.indoorLevel);
139 checkLatLng(o.latLng); 139 checkLatLng(o.latLng);
140 unittest.expect(o.placeId, unittest.equals('foo')); 140 unittest.expect(o.placeId, unittest.equals('foo'));
141 checkUnnamed3689(o.properties); 141 checkUnnamed3781(o.properties);
142 unittest.expect(o.provisioningKey, unittest.equals('foo')); 142 unittest.expect(o.provisioningKey, unittest.equals('foo'));
143 unittest.expect(o.status, unittest.equals('foo')); 143 unittest.expect(o.status, unittest.equals('foo'));
144 } 144 }
145 buildCounterBeacon--; 145 buildCounterBeacon--;
146 } 146 }
147 147
148 core.int buildCounterBeaconAttachment = 0; 148 core.int buildCounterBeaconAttachment = 0;
149 buildBeaconAttachment() { 149 buildBeaconAttachment() {
150 var o = new api.BeaconAttachment(); 150 var o = new api.BeaconAttachment();
151 buildCounterBeaconAttachment++; 151 buildCounterBeaconAttachment++;
152 if (buildCounterBeaconAttachment < 3) { 152 if (buildCounterBeaconAttachment < 3) {
153 o.attachmentName = "foo"; 153 o.attachmentName = "foo";
154 o.data = "foo"; 154 o.data = "foo";
155 o.namespacedType = "foo"; 155 o.namespacedType = "foo";
156 } 156 }
157 buildCounterBeaconAttachment--; 157 buildCounterBeaconAttachment--;
158 return o; 158 return o;
159 } 159 }
160 160
161 checkBeaconAttachment(api.BeaconAttachment o) { 161 checkBeaconAttachment(api.BeaconAttachment o) {
162 buildCounterBeaconAttachment++; 162 buildCounterBeaconAttachment++;
163 if (buildCounterBeaconAttachment < 3) { 163 if (buildCounterBeaconAttachment < 3) {
164 unittest.expect(o.attachmentName, unittest.equals('foo')); 164 unittest.expect(o.attachmentName, unittest.equals('foo'));
165 unittest.expect(o.data, unittest.equals('foo')); 165 unittest.expect(o.data, unittest.equals('foo'));
166 unittest.expect(o.namespacedType, unittest.equals('foo')); 166 unittest.expect(o.namespacedType, unittest.equals('foo'));
167 } 167 }
168 buildCounterBeaconAttachment--; 168 buildCounterBeaconAttachment--;
169 } 169 }
170 170
171 buildUnnamed3690() { 171 buildUnnamed3782() {
172 var o = new core.List<api.AttachmentInfo>(); 172 var o = new core.List<api.AttachmentInfo>();
173 o.add(buildAttachmentInfo()); 173 o.add(buildAttachmentInfo());
174 o.add(buildAttachmentInfo()); 174 o.add(buildAttachmentInfo());
175 return o; 175 return o;
176 } 176 }
177 177
178 checkUnnamed3690(core.List<api.AttachmentInfo> o) { 178 checkUnnamed3782(core.List<api.AttachmentInfo> o) {
179 unittest.expect(o, unittest.hasLength(2)); 179 unittest.expect(o, unittest.hasLength(2));
180 checkAttachmentInfo(o[0]); 180 checkAttachmentInfo(o[0]);
181 checkAttachmentInfo(o[1]); 181 checkAttachmentInfo(o[1]);
182 } 182 }
183 183
184 core.int buildCounterBeaconInfo = 0; 184 core.int buildCounterBeaconInfo = 0;
185 buildBeaconInfo() { 185 buildBeaconInfo() {
186 var o = new api.BeaconInfo(); 186 var o = new api.BeaconInfo();
187 buildCounterBeaconInfo++; 187 buildCounterBeaconInfo++;
188 if (buildCounterBeaconInfo < 3) { 188 if (buildCounterBeaconInfo < 3) {
189 o.advertisedId = buildAdvertisedId(); 189 o.advertisedId = buildAdvertisedId();
190 o.attachments = buildUnnamed3690(); 190 o.attachments = buildUnnamed3782();
191 o.beaconName = "foo"; 191 o.beaconName = "foo";
192 } 192 }
193 buildCounterBeaconInfo--; 193 buildCounterBeaconInfo--;
194 return o; 194 return o;
195 } 195 }
196 196
197 checkBeaconInfo(api.BeaconInfo o) { 197 checkBeaconInfo(api.BeaconInfo o) {
198 buildCounterBeaconInfo++; 198 buildCounterBeaconInfo++;
199 if (buildCounterBeaconInfo < 3) { 199 if (buildCounterBeaconInfo < 3) {
200 checkAdvertisedId(o.advertisedId); 200 checkAdvertisedId(o.advertisedId);
201 checkUnnamed3690(o.attachments); 201 checkUnnamed3782(o.attachments);
202 unittest.expect(o.beaconName, unittest.equals('foo')); 202 unittest.expect(o.beaconName, unittest.equals('foo'));
203 } 203 }
204 buildCounterBeaconInfo--; 204 buildCounterBeaconInfo--;
205 } 205 }
206 206
207 core.int buildCounterDate = 0; 207 core.int buildCounterDate = 0;
208 buildDate() { 208 buildDate() {
209 var o = new api.Date(); 209 var o = new api.Date();
210 buildCounterDate++; 210 buildCounterDate++;
211 if (buildCounterDate < 3) { 211 if (buildCounterDate < 3) {
(...skipping 27 matching lines...) Expand all
239 } 239 }
240 240
241 checkDeleteAttachmentsResponse(api.DeleteAttachmentsResponse o) { 241 checkDeleteAttachmentsResponse(api.DeleteAttachmentsResponse o) {
242 buildCounterDeleteAttachmentsResponse++; 242 buildCounterDeleteAttachmentsResponse++;
243 if (buildCounterDeleteAttachmentsResponse < 3) { 243 if (buildCounterDeleteAttachmentsResponse < 3) {
244 unittest.expect(o.numDeleted, unittest.equals(42)); 244 unittest.expect(o.numDeleted, unittest.equals(42));
245 } 245 }
246 buildCounterDeleteAttachmentsResponse--; 246 buildCounterDeleteAttachmentsResponse--;
247 } 247 }
248 248
249 buildUnnamed3691() { 249 buildUnnamed3783() {
250 var o = new core.List<core.String>(); 250 var o = new core.List<core.String>();
251 o.add("foo"); 251 o.add("foo");
252 o.add("foo"); 252 o.add("foo");
253 return o; 253 return o;
254 } 254 }
255 255
256 checkUnnamed3691(core.List<core.String> o) { 256 checkUnnamed3783(core.List<core.String> o) {
257 unittest.expect(o, unittest.hasLength(2)); 257 unittest.expect(o, unittest.hasLength(2));
258 unittest.expect(o[0], unittest.equals('foo')); 258 unittest.expect(o[0], unittest.equals('foo'));
259 unittest.expect(o[1], unittest.equals('foo')); 259 unittest.expect(o[1], unittest.equals('foo'));
260 } 260 }
261 261
262 core.int buildCounterDiagnostics = 0; 262 core.int buildCounterDiagnostics = 0;
263 buildDiagnostics() { 263 buildDiagnostics() {
264 var o = new api.Diagnostics(); 264 var o = new api.Diagnostics();
265 buildCounterDiagnostics++; 265 buildCounterDiagnostics++;
266 if (buildCounterDiagnostics < 3) { 266 if (buildCounterDiagnostics < 3) {
267 o.alerts = buildUnnamed3691(); 267 o.alerts = buildUnnamed3783();
268 o.beaconName = "foo"; 268 o.beaconName = "foo";
269 o.estimatedLowBatteryDate = buildDate(); 269 o.estimatedLowBatteryDate = buildDate();
270 } 270 }
271 buildCounterDiagnostics--; 271 buildCounterDiagnostics--;
272 return o; 272 return o;
273 } 273 }
274 274
275 checkDiagnostics(api.Diagnostics o) { 275 checkDiagnostics(api.Diagnostics o) {
276 buildCounterDiagnostics++; 276 buildCounterDiagnostics++;
277 if (buildCounterDiagnostics < 3) { 277 if (buildCounterDiagnostics < 3) {
278 checkUnnamed3691(o.alerts); 278 checkUnnamed3783(o.alerts);
279 unittest.expect(o.beaconName, unittest.equals('foo')); 279 unittest.expect(o.beaconName, unittest.equals('foo'));
280 checkDate(o.estimatedLowBatteryDate); 280 checkDate(o.estimatedLowBatteryDate);
281 } 281 }
282 buildCounterDiagnostics--; 282 buildCounterDiagnostics--;
283 } 283 }
284 284
285 core.int buildCounterEmpty = 0; 285 core.int buildCounterEmpty = 0;
286 buildEmpty() { 286 buildEmpty() {
287 var o = new api.Empty(); 287 var o = new api.Empty();
288 buildCounterEmpty++; 288 buildCounterEmpty++;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 checkEphemeralIdRegistrationParams(api.EphemeralIdRegistrationParams o) { 344 checkEphemeralIdRegistrationParams(api.EphemeralIdRegistrationParams o) {
345 buildCounterEphemeralIdRegistrationParams++; 345 buildCounterEphemeralIdRegistrationParams++;
346 if (buildCounterEphemeralIdRegistrationParams < 3) { 346 if (buildCounterEphemeralIdRegistrationParams < 3) {
347 unittest.expect(o.maxRotationPeriodExponent, unittest.equals(42)); 347 unittest.expect(o.maxRotationPeriodExponent, unittest.equals(42));
348 unittest.expect(o.minRotationPeriodExponent, unittest.equals(42)); 348 unittest.expect(o.minRotationPeriodExponent, unittest.equals(42));
349 unittest.expect(o.serviceEcdhPublicKey, unittest.equals('foo')); 349 unittest.expect(o.serviceEcdhPublicKey, unittest.equals('foo'));
350 } 350 }
351 buildCounterEphemeralIdRegistrationParams--; 351 buildCounterEphemeralIdRegistrationParams--;
352 } 352 }
353 353
354 buildUnnamed3692() { 354 buildUnnamed3784() {
355 var o = new core.List<core.String>(); 355 var o = new core.List<core.String>();
356 o.add("foo"); 356 o.add("foo");
357 o.add("foo"); 357 o.add("foo");
358 return o; 358 return o;
359 } 359 }
360 360
361 checkUnnamed3692(core.List<core.String> o) { 361 checkUnnamed3784(core.List<core.String> o) {
362 unittest.expect(o, unittest.hasLength(2)); 362 unittest.expect(o, unittest.hasLength(2));
363 unittest.expect(o[0], unittest.equals('foo')); 363 unittest.expect(o[0], unittest.equals('foo'));
364 unittest.expect(o[1], unittest.equals('foo')); 364 unittest.expect(o[1], unittest.equals('foo'));
365 } 365 }
366 366
367 buildUnnamed3693() { 367 buildUnnamed3785() {
368 var o = new core.List<api.Observation>(); 368 var o = new core.List<api.Observation>();
369 o.add(buildObservation()); 369 o.add(buildObservation());
370 o.add(buildObservation()); 370 o.add(buildObservation());
371 return o; 371 return o;
372 } 372 }
373 373
374 checkUnnamed3693(core.List<api.Observation> o) { 374 checkUnnamed3785(core.List<api.Observation> o) {
375 unittest.expect(o, unittest.hasLength(2)); 375 unittest.expect(o, unittest.hasLength(2));
376 checkObservation(o[0]); 376 checkObservation(o[0]);
377 checkObservation(o[1]); 377 checkObservation(o[1]);
378 } 378 }
379 379
380 core.int buildCounterGetInfoForObservedBeaconsRequest = 0; 380 core.int buildCounterGetInfoForObservedBeaconsRequest = 0;
381 buildGetInfoForObservedBeaconsRequest() { 381 buildGetInfoForObservedBeaconsRequest() {
382 var o = new api.GetInfoForObservedBeaconsRequest(); 382 var o = new api.GetInfoForObservedBeaconsRequest();
383 buildCounterGetInfoForObservedBeaconsRequest++; 383 buildCounterGetInfoForObservedBeaconsRequest++;
384 if (buildCounterGetInfoForObservedBeaconsRequest < 3) { 384 if (buildCounterGetInfoForObservedBeaconsRequest < 3) {
385 o.namespacedTypes = buildUnnamed3692(); 385 o.namespacedTypes = buildUnnamed3784();
386 o.observations = buildUnnamed3693(); 386 o.observations = buildUnnamed3785();
387 } 387 }
388 buildCounterGetInfoForObservedBeaconsRequest--; 388 buildCounterGetInfoForObservedBeaconsRequest--;
389 return o; 389 return o;
390 } 390 }
391 391
392 checkGetInfoForObservedBeaconsRequest(api.GetInfoForObservedBeaconsRequest o) { 392 checkGetInfoForObservedBeaconsRequest(api.GetInfoForObservedBeaconsRequest o) {
393 buildCounterGetInfoForObservedBeaconsRequest++; 393 buildCounterGetInfoForObservedBeaconsRequest++;
394 if (buildCounterGetInfoForObservedBeaconsRequest < 3) { 394 if (buildCounterGetInfoForObservedBeaconsRequest < 3) {
395 checkUnnamed3692(o.namespacedTypes); 395 checkUnnamed3784(o.namespacedTypes);
396 checkUnnamed3693(o.observations); 396 checkUnnamed3785(o.observations);
397 } 397 }
398 buildCounterGetInfoForObservedBeaconsRequest--; 398 buildCounterGetInfoForObservedBeaconsRequest--;
399 } 399 }
400 400
401 buildUnnamed3694() { 401 buildUnnamed3786() {
402 var o = new core.List<api.BeaconInfo>(); 402 var o = new core.List<api.BeaconInfo>();
403 o.add(buildBeaconInfo()); 403 o.add(buildBeaconInfo());
404 o.add(buildBeaconInfo()); 404 o.add(buildBeaconInfo());
405 return o; 405 return o;
406 } 406 }
407 407
408 checkUnnamed3694(core.List<api.BeaconInfo> o) { 408 checkUnnamed3786(core.List<api.BeaconInfo> o) {
409 unittest.expect(o, unittest.hasLength(2)); 409 unittest.expect(o, unittest.hasLength(2));
410 checkBeaconInfo(o[0]); 410 checkBeaconInfo(o[0]);
411 checkBeaconInfo(o[1]); 411 checkBeaconInfo(o[1]);
412 } 412 }
413 413
414 core.int buildCounterGetInfoForObservedBeaconsResponse = 0; 414 core.int buildCounterGetInfoForObservedBeaconsResponse = 0;
415 buildGetInfoForObservedBeaconsResponse() { 415 buildGetInfoForObservedBeaconsResponse() {
416 var o = new api.GetInfoForObservedBeaconsResponse(); 416 var o = new api.GetInfoForObservedBeaconsResponse();
417 buildCounterGetInfoForObservedBeaconsResponse++; 417 buildCounterGetInfoForObservedBeaconsResponse++;
418 if (buildCounterGetInfoForObservedBeaconsResponse < 3) { 418 if (buildCounterGetInfoForObservedBeaconsResponse < 3) {
419 o.beacons = buildUnnamed3694(); 419 o.beacons = buildUnnamed3786();
420 } 420 }
421 buildCounterGetInfoForObservedBeaconsResponse--; 421 buildCounterGetInfoForObservedBeaconsResponse--;
422 return o; 422 return o;
423 } 423 }
424 424
425 checkGetInfoForObservedBeaconsResponse(api.GetInfoForObservedBeaconsResponse o) { 425 checkGetInfoForObservedBeaconsResponse(api.GetInfoForObservedBeaconsResponse o) {
426 buildCounterGetInfoForObservedBeaconsResponse++; 426 buildCounterGetInfoForObservedBeaconsResponse++;
427 if (buildCounterGetInfoForObservedBeaconsResponse < 3) { 427 if (buildCounterGetInfoForObservedBeaconsResponse < 3) {
428 checkUnnamed3694(o.beacons); 428 checkUnnamed3786(o.beacons);
429 } 429 }
430 buildCounterGetInfoForObservedBeaconsResponse--; 430 buildCounterGetInfoForObservedBeaconsResponse--;
431 } 431 }
432 432
433 core.int buildCounterIndoorLevel = 0; 433 core.int buildCounterIndoorLevel = 0;
434 buildIndoorLevel() { 434 buildIndoorLevel() {
435 var o = new api.IndoorLevel(); 435 var o = new api.IndoorLevel();
436 buildCounterIndoorLevel++; 436 buildCounterIndoorLevel++;
437 if (buildCounterIndoorLevel < 3) { 437 if (buildCounterIndoorLevel < 3) {
438 o.name = "foo"; 438 o.name = "foo";
(...skipping 24 matching lines...) Expand all
463 463
464 checkLatLng(api.LatLng o) { 464 checkLatLng(api.LatLng o) {
465 buildCounterLatLng++; 465 buildCounterLatLng++;
466 if (buildCounterLatLng < 3) { 466 if (buildCounterLatLng < 3) {
467 unittest.expect(o.latitude, unittest.equals(42.0)); 467 unittest.expect(o.latitude, unittest.equals(42.0));
468 unittest.expect(o.longitude, unittest.equals(42.0)); 468 unittest.expect(o.longitude, unittest.equals(42.0));
469 } 469 }
470 buildCounterLatLng--; 470 buildCounterLatLng--;
471 } 471 }
472 472
473 buildUnnamed3695() { 473 buildUnnamed3787() {
474 var o = new core.List<api.BeaconAttachment>(); 474 var o = new core.List<api.BeaconAttachment>();
475 o.add(buildBeaconAttachment()); 475 o.add(buildBeaconAttachment());
476 o.add(buildBeaconAttachment()); 476 o.add(buildBeaconAttachment());
477 return o; 477 return o;
478 } 478 }
479 479
480 checkUnnamed3695(core.List<api.BeaconAttachment> o) { 480 checkUnnamed3787(core.List<api.BeaconAttachment> o) {
481 unittest.expect(o, unittest.hasLength(2)); 481 unittest.expect(o, unittest.hasLength(2));
482 checkBeaconAttachment(o[0]); 482 checkBeaconAttachment(o[0]);
483 checkBeaconAttachment(o[1]); 483 checkBeaconAttachment(o[1]);
484 } 484 }
485 485
486 core.int buildCounterListBeaconAttachmentsResponse = 0; 486 core.int buildCounterListBeaconAttachmentsResponse = 0;
487 buildListBeaconAttachmentsResponse() { 487 buildListBeaconAttachmentsResponse() {
488 var o = new api.ListBeaconAttachmentsResponse(); 488 var o = new api.ListBeaconAttachmentsResponse();
489 buildCounterListBeaconAttachmentsResponse++; 489 buildCounterListBeaconAttachmentsResponse++;
490 if (buildCounterListBeaconAttachmentsResponse < 3) { 490 if (buildCounterListBeaconAttachmentsResponse < 3) {
491 o.attachments = buildUnnamed3695(); 491 o.attachments = buildUnnamed3787();
492 } 492 }
493 buildCounterListBeaconAttachmentsResponse--; 493 buildCounterListBeaconAttachmentsResponse--;
494 return o; 494 return o;
495 } 495 }
496 496
497 checkListBeaconAttachmentsResponse(api.ListBeaconAttachmentsResponse o) { 497 checkListBeaconAttachmentsResponse(api.ListBeaconAttachmentsResponse o) {
498 buildCounterListBeaconAttachmentsResponse++; 498 buildCounterListBeaconAttachmentsResponse++;
499 if (buildCounterListBeaconAttachmentsResponse < 3) { 499 if (buildCounterListBeaconAttachmentsResponse < 3) {
500 checkUnnamed3695(o.attachments); 500 checkUnnamed3787(o.attachments);
501 } 501 }
502 buildCounterListBeaconAttachmentsResponse--; 502 buildCounterListBeaconAttachmentsResponse--;
503 } 503 }
504 504
505 buildUnnamed3696() { 505 buildUnnamed3788() {
506 var o = new core.List<api.Beacon>(); 506 var o = new core.List<api.Beacon>();
507 o.add(buildBeacon()); 507 o.add(buildBeacon());
508 o.add(buildBeacon()); 508 o.add(buildBeacon());
509 return o; 509 return o;
510 } 510 }
511 511
512 checkUnnamed3696(core.List<api.Beacon> o) { 512 checkUnnamed3788(core.List<api.Beacon> o) {
513 unittest.expect(o, unittest.hasLength(2)); 513 unittest.expect(o, unittest.hasLength(2));
514 checkBeacon(o[0]); 514 checkBeacon(o[0]);
515 checkBeacon(o[1]); 515 checkBeacon(o[1]);
516 } 516 }
517 517
518 core.int buildCounterListBeaconsResponse = 0; 518 core.int buildCounterListBeaconsResponse = 0;
519 buildListBeaconsResponse() { 519 buildListBeaconsResponse() {
520 var o = new api.ListBeaconsResponse(); 520 var o = new api.ListBeaconsResponse();
521 buildCounterListBeaconsResponse++; 521 buildCounterListBeaconsResponse++;
522 if (buildCounterListBeaconsResponse < 3) { 522 if (buildCounterListBeaconsResponse < 3) {
523 o.beacons = buildUnnamed3696(); 523 o.beacons = buildUnnamed3788();
524 o.nextPageToken = "foo"; 524 o.nextPageToken = "foo";
525 o.totalCount = "foo"; 525 o.totalCount = "foo";
526 } 526 }
527 buildCounterListBeaconsResponse--; 527 buildCounterListBeaconsResponse--;
528 return o; 528 return o;
529 } 529 }
530 530
531 checkListBeaconsResponse(api.ListBeaconsResponse o) { 531 checkListBeaconsResponse(api.ListBeaconsResponse o) {
532 buildCounterListBeaconsResponse++; 532 buildCounterListBeaconsResponse++;
533 if (buildCounterListBeaconsResponse < 3) { 533 if (buildCounterListBeaconsResponse < 3) {
534 checkUnnamed3696(o.beacons); 534 checkUnnamed3788(o.beacons);
535 unittest.expect(o.nextPageToken, unittest.equals('foo')); 535 unittest.expect(o.nextPageToken, unittest.equals('foo'));
536 unittest.expect(o.totalCount, unittest.equals('foo')); 536 unittest.expect(o.totalCount, unittest.equals('foo'));
537 } 537 }
538 buildCounterListBeaconsResponse--; 538 buildCounterListBeaconsResponse--;
539 } 539 }
540 540
541 buildUnnamed3697() { 541 buildUnnamed3789() {
542 var o = new core.List<api.Diagnostics>(); 542 var o = new core.List<api.Diagnostics>();
543 o.add(buildDiagnostics()); 543 o.add(buildDiagnostics());
544 o.add(buildDiagnostics()); 544 o.add(buildDiagnostics());
545 return o; 545 return o;
546 } 546 }
547 547
548 checkUnnamed3697(core.List<api.Diagnostics> o) { 548 checkUnnamed3789(core.List<api.Diagnostics> o) {
549 unittest.expect(o, unittest.hasLength(2)); 549 unittest.expect(o, unittest.hasLength(2));
550 checkDiagnostics(o[0]); 550 checkDiagnostics(o[0]);
551 checkDiagnostics(o[1]); 551 checkDiagnostics(o[1]);
552 } 552 }
553 553
554 core.int buildCounterListDiagnosticsResponse = 0; 554 core.int buildCounterListDiagnosticsResponse = 0;
555 buildListDiagnosticsResponse() { 555 buildListDiagnosticsResponse() {
556 var o = new api.ListDiagnosticsResponse(); 556 var o = new api.ListDiagnosticsResponse();
557 buildCounterListDiagnosticsResponse++; 557 buildCounterListDiagnosticsResponse++;
558 if (buildCounterListDiagnosticsResponse < 3) { 558 if (buildCounterListDiagnosticsResponse < 3) {
559 o.diagnostics = buildUnnamed3697(); 559 o.diagnostics = buildUnnamed3789();
560 o.nextPageToken = "foo"; 560 o.nextPageToken = "foo";
561 } 561 }
562 buildCounterListDiagnosticsResponse--; 562 buildCounterListDiagnosticsResponse--;
563 return o; 563 return o;
564 } 564 }
565 565
566 checkListDiagnosticsResponse(api.ListDiagnosticsResponse o) { 566 checkListDiagnosticsResponse(api.ListDiagnosticsResponse o) {
567 buildCounterListDiagnosticsResponse++; 567 buildCounterListDiagnosticsResponse++;
568 if (buildCounterListDiagnosticsResponse < 3) { 568 if (buildCounterListDiagnosticsResponse < 3) {
569 checkUnnamed3697(o.diagnostics); 569 checkUnnamed3789(o.diagnostics);
570 unittest.expect(o.nextPageToken, unittest.equals('foo')); 570 unittest.expect(o.nextPageToken, unittest.equals('foo'));
571 } 571 }
572 buildCounterListDiagnosticsResponse--; 572 buildCounterListDiagnosticsResponse--;
573 } 573 }
574 574
575 buildUnnamed3698() { 575 buildUnnamed3790() {
576 var o = new core.List<api.Namespace>(); 576 var o = new core.List<api.Namespace>();
577 o.add(buildNamespace()); 577 o.add(buildNamespace());
578 o.add(buildNamespace()); 578 o.add(buildNamespace());
579 return o; 579 return o;
580 } 580 }
581 581
582 checkUnnamed3698(core.List<api.Namespace> o) { 582 checkUnnamed3790(core.List<api.Namespace> o) {
583 unittest.expect(o, unittest.hasLength(2)); 583 unittest.expect(o, unittest.hasLength(2));
584 checkNamespace(o[0]); 584 checkNamespace(o[0]);
585 checkNamespace(o[1]); 585 checkNamespace(o[1]);
586 } 586 }
587 587
588 core.int buildCounterListNamespacesResponse = 0; 588 core.int buildCounterListNamespacesResponse = 0;
589 buildListNamespacesResponse() { 589 buildListNamespacesResponse() {
590 var o = new api.ListNamespacesResponse(); 590 var o = new api.ListNamespacesResponse();
591 buildCounterListNamespacesResponse++; 591 buildCounterListNamespacesResponse++;
592 if (buildCounterListNamespacesResponse < 3) { 592 if (buildCounterListNamespacesResponse < 3) {
593 o.namespaces = buildUnnamed3698(); 593 o.namespaces = buildUnnamed3790();
594 } 594 }
595 buildCounterListNamespacesResponse--; 595 buildCounterListNamespacesResponse--;
596 return o; 596 return o;
597 } 597 }
598 598
599 checkListNamespacesResponse(api.ListNamespacesResponse o) { 599 checkListNamespacesResponse(api.ListNamespacesResponse o) {
600 buildCounterListNamespacesResponse++; 600 buildCounterListNamespacesResponse++;
601 if (buildCounterListNamespacesResponse < 3) { 601 if (buildCounterListNamespacesResponse < 3) {
602 checkUnnamed3698(o.namespaces); 602 checkUnnamed3790(o.namespaces);
603 } 603 }
604 buildCounterListNamespacesResponse--; 604 buildCounterListNamespacesResponse--;
605 } 605 }
606 606
607 core.int buildCounterNamespace = 0; 607 core.int buildCounterNamespace = 0;
608 buildNamespace() { 608 buildNamespace() {
609 var o = new api.Namespace(); 609 var o = new api.Namespace();
610 buildCounterNamespace++; 610 buildCounterNamespace++;
611 if (buildCounterNamespace < 3) { 611 if (buildCounterNamespace < 3) {
612 o.namespaceName = "foo"; 612 o.namespaceName = "foo";
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 res.getEidparams().then(unittest.expectAsync(((api.EphemeralIdRegistration Params response) { 1632 res.getEidparams().then(unittest.expectAsync(((api.EphemeralIdRegistration Params response) {
1633 checkEphemeralIdRegistrationParams(response); 1633 checkEphemeralIdRegistrationParams(response);
1634 }))); 1634 })));
1635 }); 1635 });
1636 1636
1637 }); 1637 });
1638 1638
1639 1639
1640 } 1640 }
1641 1641
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/ml/v1beta1_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