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

Side by Side Diff: generated/googleapis/test/doubleclicksearch/v2_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.doubleclicksearch.v2.test; 1 library googleapis.doubleclicksearch.v2.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 unittest.expect(o.advertiserId, unittest.equals('foo')); 73 unittest.expect(o.advertiserId, unittest.equals('foo'));
74 unittest.expect(o.agencyId, unittest.equals('foo')); 74 unittest.expect(o.agencyId, unittest.equals('foo'));
75 unittest.expect(o.availabilityTimestamp, unittest.equals('foo')); 75 unittest.expect(o.availabilityTimestamp, unittest.equals('foo'));
76 unittest.expect(o.segmentationId, unittest.equals('foo')); 76 unittest.expect(o.segmentationId, unittest.equals('foo'));
77 unittest.expect(o.segmentationName, unittest.equals('foo')); 77 unittest.expect(o.segmentationName, unittest.equals('foo'));
78 unittest.expect(o.segmentationType, unittest.equals('foo')); 78 unittest.expect(o.segmentationType, unittest.equals('foo'));
79 } 79 }
80 buildCounterAvailability--; 80 buildCounterAvailability--;
81 } 81 }
82 82
83 buildUnnamed1192() { 83 buildUnnamed1203() {
84 var o = new core.List<api.CustomDimension>(); 84 var o = new core.List<api.CustomDimension>();
85 o.add(buildCustomDimension()); 85 o.add(buildCustomDimension());
86 o.add(buildCustomDimension()); 86 o.add(buildCustomDimension());
87 return o; 87 return o;
88 } 88 }
89 89
90 checkUnnamed1192(core.List<api.CustomDimension> o) { 90 checkUnnamed1203(core.List<api.CustomDimension> o) {
91 unittest.expect(o, unittest.hasLength(2)); 91 unittest.expect(o, unittest.hasLength(2));
92 checkCustomDimension(o[0]); 92 checkCustomDimension(o[0]);
93 checkCustomDimension(o[1]); 93 checkCustomDimension(o[1]);
94 } 94 }
95 95
96 buildUnnamed1193() { 96 buildUnnamed1204() {
97 var o = new core.List<api.CustomMetric>(); 97 var o = new core.List<api.CustomMetric>();
98 o.add(buildCustomMetric()); 98 o.add(buildCustomMetric());
99 o.add(buildCustomMetric()); 99 o.add(buildCustomMetric());
100 return o; 100 return o;
101 } 101 }
102 102
103 checkUnnamed1193(core.List<api.CustomMetric> o) { 103 checkUnnamed1204(core.List<api.CustomMetric> o) {
104 unittest.expect(o, unittest.hasLength(2)); 104 unittest.expect(o, unittest.hasLength(2));
105 checkCustomMetric(o[0]); 105 checkCustomMetric(o[0]);
106 checkCustomMetric(o[1]); 106 checkCustomMetric(o[1]);
107 } 107 }
108 108
109 core.int buildCounterConversion = 0; 109 core.int buildCounterConversion = 0;
110 buildConversion() { 110 buildConversion() {
111 var o = new api.Conversion(); 111 var o = new api.Conversion();
112 buildCounterConversion++; 112 buildCounterConversion++;
113 if (buildCounterConversion < 3) { 113 if (buildCounterConversion < 3) {
114 o.adGroupId = "foo"; 114 o.adGroupId = "foo";
115 o.adId = "foo"; 115 o.adId = "foo";
116 o.advertiserId = "foo"; 116 o.advertiserId = "foo";
117 o.agencyId = "foo"; 117 o.agencyId = "foo";
118 o.attributionModel = "foo"; 118 o.attributionModel = "foo";
119 o.campaignId = "foo"; 119 o.campaignId = "foo";
120 o.channel = "foo"; 120 o.channel = "foo";
121 o.clickId = "foo"; 121 o.clickId = "foo";
122 o.conversionId = "foo"; 122 o.conversionId = "foo";
123 o.conversionModifiedTimestamp = "foo"; 123 o.conversionModifiedTimestamp = "foo";
124 o.conversionTimestamp = "foo"; 124 o.conversionTimestamp = "foo";
125 o.countMillis = "foo"; 125 o.countMillis = "foo";
126 o.criterionId = "foo"; 126 o.criterionId = "foo";
127 o.currencyCode = "foo"; 127 o.currencyCode = "foo";
128 o.customDimension = buildUnnamed1192(); 128 o.customDimension = buildUnnamed1203();
129 o.customMetric = buildUnnamed1193(); 129 o.customMetric = buildUnnamed1204();
130 o.deviceType = "foo"; 130 o.deviceType = "foo";
131 o.dsConversionId = "foo"; 131 o.dsConversionId = "foo";
132 o.engineAccountId = "foo"; 132 o.engineAccountId = "foo";
133 o.floodlightOrderId = "foo"; 133 o.floodlightOrderId = "foo";
134 o.inventoryAccountId = "foo"; 134 o.inventoryAccountId = "foo";
135 o.productCountry = "foo"; 135 o.productCountry = "foo";
136 o.productGroupId = "foo"; 136 o.productGroupId = "foo";
137 o.productId = "foo"; 137 o.productId = "foo";
138 o.productLanguage = "foo"; 138 o.productLanguage = "foo";
139 o.quantityMillis = "foo"; 139 o.quantityMillis = "foo";
(...skipping 19 matching lines...) Expand all
159 unittest.expect(o.attributionModel, unittest.equals('foo')); 159 unittest.expect(o.attributionModel, unittest.equals('foo'));
160 unittest.expect(o.campaignId, unittest.equals('foo')); 160 unittest.expect(o.campaignId, unittest.equals('foo'));
161 unittest.expect(o.channel, unittest.equals('foo')); 161 unittest.expect(o.channel, unittest.equals('foo'));
162 unittest.expect(o.clickId, unittest.equals('foo')); 162 unittest.expect(o.clickId, unittest.equals('foo'));
163 unittest.expect(o.conversionId, unittest.equals('foo')); 163 unittest.expect(o.conversionId, unittest.equals('foo'));
164 unittest.expect(o.conversionModifiedTimestamp, unittest.equals('foo')); 164 unittest.expect(o.conversionModifiedTimestamp, unittest.equals('foo'));
165 unittest.expect(o.conversionTimestamp, unittest.equals('foo')); 165 unittest.expect(o.conversionTimestamp, unittest.equals('foo'));
166 unittest.expect(o.countMillis, unittest.equals('foo')); 166 unittest.expect(o.countMillis, unittest.equals('foo'));
167 unittest.expect(o.criterionId, unittest.equals('foo')); 167 unittest.expect(o.criterionId, unittest.equals('foo'));
168 unittest.expect(o.currencyCode, unittest.equals('foo')); 168 unittest.expect(o.currencyCode, unittest.equals('foo'));
169 checkUnnamed1192(o.customDimension); 169 checkUnnamed1203(o.customDimension);
170 checkUnnamed1193(o.customMetric); 170 checkUnnamed1204(o.customMetric);
171 unittest.expect(o.deviceType, unittest.equals('foo')); 171 unittest.expect(o.deviceType, unittest.equals('foo'));
172 unittest.expect(o.dsConversionId, unittest.equals('foo')); 172 unittest.expect(o.dsConversionId, unittest.equals('foo'));
173 unittest.expect(o.engineAccountId, unittest.equals('foo')); 173 unittest.expect(o.engineAccountId, unittest.equals('foo'));
174 unittest.expect(o.floodlightOrderId, unittest.equals('foo')); 174 unittest.expect(o.floodlightOrderId, unittest.equals('foo'));
175 unittest.expect(o.inventoryAccountId, unittest.equals('foo')); 175 unittest.expect(o.inventoryAccountId, unittest.equals('foo'));
176 unittest.expect(o.productCountry, unittest.equals('foo')); 176 unittest.expect(o.productCountry, unittest.equals('foo'));
177 unittest.expect(o.productGroupId, unittest.equals('foo')); 177 unittest.expect(o.productGroupId, unittest.equals('foo'));
178 unittest.expect(o.productId, unittest.equals('foo')); 178 unittest.expect(o.productId, unittest.equals('foo'));
179 unittest.expect(o.productLanguage, unittest.equals('foo')); 179 unittest.expect(o.productLanguage, unittest.equals('foo'));
180 unittest.expect(o.quantityMillis, unittest.equals('foo')); 180 unittest.expect(o.quantityMillis, unittest.equals('foo'));
181 unittest.expect(o.revenueMicros, unittest.equals('foo')); 181 unittest.expect(o.revenueMicros, unittest.equals('foo'));
182 unittest.expect(o.segmentationId, unittest.equals('foo')); 182 unittest.expect(o.segmentationId, unittest.equals('foo'));
183 unittest.expect(o.segmentationName, unittest.equals('foo')); 183 unittest.expect(o.segmentationName, unittest.equals('foo'));
184 unittest.expect(o.segmentationType, unittest.equals('foo')); 184 unittest.expect(o.segmentationType, unittest.equals('foo'));
185 unittest.expect(o.state, unittest.equals('foo')); 185 unittest.expect(o.state, unittest.equals('foo'));
186 unittest.expect(o.storeId, unittest.equals('foo')); 186 unittest.expect(o.storeId, unittest.equals('foo'));
187 unittest.expect(o.type, unittest.equals('foo')); 187 unittest.expect(o.type, unittest.equals('foo'));
188 } 188 }
189 buildCounterConversion--; 189 buildCounterConversion--;
190 } 190 }
191 191
192 buildUnnamed1194() { 192 buildUnnamed1205() {
193 var o = new core.List<api.Conversion>(); 193 var o = new core.List<api.Conversion>();
194 o.add(buildConversion()); 194 o.add(buildConversion());
195 o.add(buildConversion()); 195 o.add(buildConversion());
196 return o; 196 return o;
197 } 197 }
198 198
199 checkUnnamed1194(core.List<api.Conversion> o) { 199 checkUnnamed1205(core.List<api.Conversion> o) {
200 unittest.expect(o, unittest.hasLength(2)); 200 unittest.expect(o, unittest.hasLength(2));
201 checkConversion(o[0]); 201 checkConversion(o[0]);
202 checkConversion(o[1]); 202 checkConversion(o[1]);
203 } 203 }
204 204
205 core.int buildCounterConversionList = 0; 205 core.int buildCounterConversionList = 0;
206 buildConversionList() { 206 buildConversionList() {
207 var o = new api.ConversionList(); 207 var o = new api.ConversionList();
208 buildCounterConversionList++; 208 buildCounterConversionList++;
209 if (buildCounterConversionList < 3) { 209 if (buildCounterConversionList < 3) {
210 o.conversion = buildUnnamed1194(); 210 o.conversion = buildUnnamed1205();
211 o.kind = "foo"; 211 o.kind = "foo";
212 } 212 }
213 buildCounterConversionList--; 213 buildCounterConversionList--;
214 return o; 214 return o;
215 } 215 }
216 216
217 checkConversionList(api.ConversionList o) { 217 checkConversionList(api.ConversionList o) {
218 buildCounterConversionList++; 218 buildCounterConversionList++;
219 if (buildCounterConversionList < 3) { 219 if (buildCounterConversionList < 3) {
220 checkUnnamed1194(o.conversion); 220 checkUnnamed1205(o.conversion);
221 unittest.expect(o.kind, unittest.equals('foo')); 221 unittest.expect(o.kind, unittest.equals('foo'));
222 } 222 }
223 buildCounterConversionList--; 223 buildCounterConversionList--;
224 } 224 }
225 225
226 core.int buildCounterCustomDimension = 0; 226 core.int buildCounterCustomDimension = 0;
227 buildCustomDimension() { 227 buildCustomDimension() {
228 var o = new api.CustomDimension(); 228 var o = new api.CustomDimension();
229 buildCounterCustomDimension++; 229 buildCounterCustomDimension++;
230 if (buildCounterCustomDimension < 3) { 230 if (buildCounterCustomDimension < 3) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 checkReportFiles(api.ReportFiles o) { 280 checkReportFiles(api.ReportFiles o) {
281 buildCounterReportFiles++; 281 buildCounterReportFiles++;
282 if (buildCounterReportFiles < 3) { 282 if (buildCounterReportFiles < 3) {
283 unittest.expect(o.byteCount, unittest.equals('foo')); 283 unittest.expect(o.byteCount, unittest.equals('foo'));
284 unittest.expect(o.url, unittest.equals('foo')); 284 unittest.expect(o.url, unittest.equals('foo'));
285 } 285 }
286 buildCounterReportFiles--; 286 buildCounterReportFiles--;
287 } 287 }
288 288
289 buildUnnamed1195() { 289 buildUnnamed1206() {
290 var o = new core.List<api.ReportFiles>(); 290 var o = new core.List<api.ReportFiles>();
291 o.add(buildReportFiles()); 291 o.add(buildReportFiles());
292 o.add(buildReportFiles()); 292 o.add(buildReportFiles());
293 return o; 293 return o;
294 } 294 }
295 295
296 checkUnnamed1195(core.List<api.ReportFiles> o) { 296 checkUnnamed1206(core.List<api.ReportFiles> o) {
297 unittest.expect(o, unittest.hasLength(2)); 297 unittest.expect(o, unittest.hasLength(2));
298 checkReportFiles(o[0]); 298 checkReportFiles(o[0]);
299 checkReportFiles(o[1]); 299 checkReportFiles(o[1]);
300 } 300 }
301 301
302 buildUnnamed1196() { 302 buildUnnamed1207() {
303 var o = new core.List<api.ReportRow>(); 303 var o = new core.List<api.ReportRow>();
304 o.add(buildReportRow()); 304 o.add(buildReportRow());
305 o.add(buildReportRow()); 305 o.add(buildReportRow());
306 return o; 306 return o;
307 } 307 }
308 308
309 checkUnnamed1196(core.List<api.ReportRow> o) { 309 checkUnnamed1207(core.List<api.ReportRow> o) {
310 unittest.expect(o, unittest.hasLength(2)); 310 unittest.expect(o, unittest.hasLength(2));
311 checkReportRow(o[0]); 311 checkReportRow(o[0]);
312 checkReportRow(o[1]); 312 checkReportRow(o[1]);
313 } 313 }
314 314
315 core.int buildCounterReport = 0; 315 core.int buildCounterReport = 0;
316 buildReport() { 316 buildReport() {
317 var o = new api.Report(); 317 var o = new api.Report();
318 buildCounterReport++; 318 buildCounterReport++;
319 if (buildCounterReport < 3) { 319 if (buildCounterReport < 3) {
320 o.files = buildUnnamed1195(); 320 o.files = buildUnnamed1206();
321 o.id = "foo"; 321 o.id = "foo";
322 o.isReportReady = true; 322 o.isReportReady = true;
323 o.kind = "foo"; 323 o.kind = "foo";
324 o.request = buildReportRequest(); 324 o.request = buildReportRequest();
325 o.rowCount = 42; 325 o.rowCount = 42;
326 o.rows = buildUnnamed1196(); 326 o.rows = buildUnnamed1207();
327 o.statisticsCurrencyCode = "foo"; 327 o.statisticsCurrencyCode = "foo";
328 o.statisticsTimeZone = "foo"; 328 o.statisticsTimeZone = "foo";
329 } 329 }
330 buildCounterReport--; 330 buildCounterReport--;
331 return o; 331 return o;
332 } 332 }
333 333
334 checkReport(api.Report o) { 334 checkReport(api.Report o) {
335 buildCounterReport++; 335 buildCounterReport++;
336 if (buildCounterReport < 3) { 336 if (buildCounterReport < 3) {
337 checkUnnamed1195(o.files); 337 checkUnnamed1206(o.files);
338 unittest.expect(o.id, unittest.equals('foo')); 338 unittest.expect(o.id, unittest.equals('foo'));
339 unittest.expect(o.isReportReady, unittest.isTrue); 339 unittest.expect(o.isReportReady, unittest.isTrue);
340 unittest.expect(o.kind, unittest.equals('foo')); 340 unittest.expect(o.kind, unittest.equals('foo'));
341 checkReportRequest(o.request); 341 checkReportRequest(o.request);
342 unittest.expect(o.rowCount, unittest.equals(42)); 342 unittest.expect(o.rowCount, unittest.equals(42));
343 checkUnnamed1196(o.rows); 343 checkUnnamed1207(o.rows);
344 unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); 344 unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo'));
345 unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); 345 unittest.expect(o.statisticsTimeZone, unittest.equals('foo'));
346 } 346 }
347 buildCounterReport--; 347 buildCounterReport--;
348 } 348 }
349 349
350 core.int buildCounterReportApiColumnSpec = 0; 350 core.int buildCounterReportApiColumnSpec = 0;
351 buildReportApiColumnSpec() { 351 buildReportApiColumnSpec() {
352 var o = new api.ReportApiColumnSpec(); 352 var o = new api.ReportApiColumnSpec();
353 buildCounterReportApiColumnSpec++; 353 buildCounterReportApiColumnSpec++;
(...skipping 23 matching lines...) Expand all
377 unittest.expect(o.groupByColumn, unittest.isTrue); 377 unittest.expect(o.groupByColumn, unittest.isTrue);
378 unittest.expect(o.headerText, unittest.equals('foo')); 378 unittest.expect(o.headerText, unittest.equals('foo'));
379 unittest.expect(o.platformSource, unittest.equals('foo')); 379 unittest.expect(o.platformSource, unittest.equals('foo'));
380 unittest.expect(o.productReportPerspective, unittest.equals('foo')); 380 unittest.expect(o.productReportPerspective, unittest.equals('foo'));
381 unittest.expect(o.savedColumnName, unittest.equals('foo')); 381 unittest.expect(o.savedColumnName, unittest.equals('foo'));
382 unittest.expect(o.startDate, unittest.equals('foo')); 382 unittest.expect(o.startDate, unittest.equals('foo'));
383 } 383 }
384 buildCounterReportApiColumnSpec--; 384 buildCounterReportApiColumnSpec--;
385 } 385 }
386 386
387 buildUnnamed1197() { 387 buildUnnamed1208() {
388 var o = new core.List<api.ReportApiColumnSpec>(); 388 var o = new core.List<api.ReportApiColumnSpec>();
389 o.add(buildReportApiColumnSpec()); 389 o.add(buildReportApiColumnSpec());
390 o.add(buildReportApiColumnSpec()); 390 o.add(buildReportApiColumnSpec());
391 return o; 391 return o;
392 } 392 }
393 393
394 checkUnnamed1197(core.List<api.ReportApiColumnSpec> o) { 394 checkUnnamed1208(core.List<api.ReportApiColumnSpec> o) {
395 unittest.expect(o, unittest.hasLength(2)); 395 unittest.expect(o, unittest.hasLength(2));
396 checkReportApiColumnSpec(o[0]); 396 checkReportApiColumnSpec(o[0]);
397 checkReportApiColumnSpec(o[1]); 397 checkReportApiColumnSpec(o[1]);
398 } 398 }
399 399
400 buildUnnamed1198() { 400 buildUnnamed1209() {
401 var o = new core.List<core.Object>(); 401 var o = new core.List<core.Object>();
402 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 402 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
403 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 403 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
404 return o; 404 return o;
405 } 405 }
406 406
407 checkUnnamed1198(core.List<core.Object> o) { 407 checkUnnamed1209(core.List<core.Object> o) {
408 unittest.expect(o, unittest.hasLength(2)); 408 unittest.expect(o, unittest.hasLength(2));
409 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo')); 409 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo'));
410 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo')); 410 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo'));
411 } 411 }
412 412
413 core.int buildCounterReportRequestFilters = 0; 413 core.int buildCounterReportRequestFilters = 0;
414 buildReportRequestFilters() { 414 buildReportRequestFilters() {
415 var o = new api.ReportRequestFilters(); 415 var o = new api.ReportRequestFilters();
416 buildCounterReportRequestFilters++; 416 buildCounterReportRequestFilters++;
417 if (buildCounterReportRequestFilters < 3) { 417 if (buildCounterReportRequestFilters < 3) {
418 o.column = buildReportApiColumnSpec(); 418 o.column = buildReportApiColumnSpec();
419 o.operator = "foo"; 419 o.operator = "foo";
420 o.values = buildUnnamed1198(); 420 o.values = buildUnnamed1209();
421 } 421 }
422 buildCounterReportRequestFilters--; 422 buildCounterReportRequestFilters--;
423 return o; 423 return o;
424 } 424 }
425 425
426 checkReportRequestFilters(api.ReportRequestFilters o) { 426 checkReportRequestFilters(api.ReportRequestFilters o) {
427 buildCounterReportRequestFilters++; 427 buildCounterReportRequestFilters++;
428 if (buildCounterReportRequestFilters < 3) { 428 if (buildCounterReportRequestFilters < 3) {
429 checkReportApiColumnSpec(o.column); 429 checkReportApiColumnSpec(o.column);
430 unittest.expect(o.operator, unittest.equals('foo')); 430 unittest.expect(o.operator, unittest.equals('foo'));
431 checkUnnamed1198(o.values); 431 checkUnnamed1209(o.values);
432 } 432 }
433 buildCounterReportRequestFilters--; 433 buildCounterReportRequestFilters--;
434 } 434 }
435 435
436 buildUnnamed1199() { 436 buildUnnamed1210() {
437 var o = new core.List<api.ReportRequestFilters>(); 437 var o = new core.List<api.ReportRequestFilters>();
438 o.add(buildReportRequestFilters()); 438 o.add(buildReportRequestFilters());
439 o.add(buildReportRequestFilters()); 439 o.add(buildReportRequestFilters());
440 return o; 440 return o;
441 } 441 }
442 442
443 checkUnnamed1199(core.List<api.ReportRequestFilters> o) { 443 checkUnnamed1210(core.List<api.ReportRequestFilters> o) {
444 unittest.expect(o, unittest.hasLength(2)); 444 unittest.expect(o, unittest.hasLength(2));
445 checkReportRequestFilters(o[0]); 445 checkReportRequestFilters(o[0]);
446 checkReportRequestFilters(o[1]); 446 checkReportRequestFilters(o[1]);
447 } 447 }
448 448
449 core.int buildCounterReportRequestOrderBy = 0; 449 core.int buildCounterReportRequestOrderBy = 0;
450 buildReportRequestOrderBy() { 450 buildReportRequestOrderBy() {
451 var o = new api.ReportRequestOrderBy(); 451 var o = new api.ReportRequestOrderBy();
452 buildCounterReportRequestOrderBy++; 452 buildCounterReportRequestOrderBy++;
453 if (buildCounterReportRequestOrderBy < 3) { 453 if (buildCounterReportRequestOrderBy < 3) {
454 o.column = buildReportApiColumnSpec(); 454 o.column = buildReportApiColumnSpec();
455 o.sortOrder = "foo"; 455 o.sortOrder = "foo";
456 } 456 }
457 buildCounterReportRequestOrderBy--; 457 buildCounterReportRequestOrderBy--;
458 return o; 458 return o;
459 } 459 }
460 460
461 checkReportRequestOrderBy(api.ReportRequestOrderBy o) { 461 checkReportRequestOrderBy(api.ReportRequestOrderBy o) {
462 buildCounterReportRequestOrderBy++; 462 buildCounterReportRequestOrderBy++;
463 if (buildCounterReportRequestOrderBy < 3) { 463 if (buildCounterReportRequestOrderBy < 3) {
464 checkReportApiColumnSpec(o.column); 464 checkReportApiColumnSpec(o.column);
465 unittest.expect(o.sortOrder, unittest.equals('foo')); 465 unittest.expect(o.sortOrder, unittest.equals('foo'));
466 } 466 }
467 buildCounterReportRequestOrderBy--; 467 buildCounterReportRequestOrderBy--;
468 } 468 }
469 469
470 buildUnnamed1200() { 470 buildUnnamed1211() {
471 var o = new core.List<api.ReportRequestOrderBy>(); 471 var o = new core.List<api.ReportRequestOrderBy>();
472 o.add(buildReportRequestOrderBy()); 472 o.add(buildReportRequestOrderBy());
473 o.add(buildReportRequestOrderBy()); 473 o.add(buildReportRequestOrderBy());
474 return o; 474 return o;
475 } 475 }
476 476
477 checkUnnamed1200(core.List<api.ReportRequestOrderBy> o) { 477 checkUnnamed1211(core.List<api.ReportRequestOrderBy> o) {
478 unittest.expect(o, unittest.hasLength(2)); 478 unittest.expect(o, unittest.hasLength(2));
479 checkReportRequestOrderBy(o[0]); 479 checkReportRequestOrderBy(o[0]);
480 checkReportRequestOrderBy(o[1]); 480 checkReportRequestOrderBy(o[1]);
481 } 481 }
482 482
483 core.int buildCounterReportRequestReportScope = 0; 483 core.int buildCounterReportRequestReportScope = 0;
484 buildReportRequestReportScope() { 484 buildReportRequestReportScope() {
485 var o = new api.ReportRequestReportScope(); 485 var o = new api.ReportRequestReportScope();
486 buildCounterReportRequestReportScope++; 486 buildCounterReportRequestReportScope++;
487 if (buildCounterReportRequestReportScope < 3) { 487 if (buildCounterReportRequestReportScope < 3) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 unittest.expect(o.startDate, unittest.equals('foo')); 534 unittest.expect(o.startDate, unittest.equals('foo'));
535 } 535 }
536 buildCounterReportRequestTimeRange--; 536 buildCounterReportRequestTimeRange--;
537 } 537 }
538 538
539 core.int buildCounterReportRequest = 0; 539 core.int buildCounterReportRequest = 0;
540 buildReportRequest() { 540 buildReportRequest() {
541 var o = new api.ReportRequest(); 541 var o = new api.ReportRequest();
542 buildCounterReportRequest++; 542 buildCounterReportRequest++;
543 if (buildCounterReportRequest < 3) { 543 if (buildCounterReportRequest < 3) {
544 o.columns = buildUnnamed1197(); 544 o.columns = buildUnnamed1208();
545 o.downloadFormat = "foo"; 545 o.downloadFormat = "foo";
546 o.filters = buildUnnamed1199(); 546 o.filters = buildUnnamed1210();
547 o.includeDeletedEntities = true; 547 o.includeDeletedEntities = true;
548 o.includeRemovedEntities = true; 548 o.includeRemovedEntities = true;
549 o.maxRowsPerFile = 42; 549 o.maxRowsPerFile = 42;
550 o.orderBy = buildUnnamed1200(); 550 o.orderBy = buildUnnamed1211();
551 o.reportScope = buildReportRequestReportScope(); 551 o.reportScope = buildReportRequestReportScope();
552 o.reportType = "foo"; 552 o.reportType = "foo";
553 o.rowCount = 42; 553 o.rowCount = 42;
554 o.startRow = 42; 554 o.startRow = 42;
555 o.statisticsCurrency = "foo"; 555 o.statisticsCurrency = "foo";
556 o.timeRange = buildReportRequestTimeRange(); 556 o.timeRange = buildReportRequestTimeRange();
557 o.verifySingleTimeZone = true; 557 o.verifySingleTimeZone = true;
558 } 558 }
559 buildCounterReportRequest--; 559 buildCounterReportRequest--;
560 return o; 560 return o;
561 } 561 }
562 562
563 checkReportRequest(api.ReportRequest o) { 563 checkReportRequest(api.ReportRequest o) {
564 buildCounterReportRequest++; 564 buildCounterReportRequest++;
565 if (buildCounterReportRequest < 3) { 565 if (buildCounterReportRequest < 3) {
566 checkUnnamed1197(o.columns); 566 checkUnnamed1208(o.columns);
567 unittest.expect(o.downloadFormat, unittest.equals('foo')); 567 unittest.expect(o.downloadFormat, unittest.equals('foo'));
568 checkUnnamed1199(o.filters); 568 checkUnnamed1210(o.filters);
569 unittest.expect(o.includeDeletedEntities, unittest.isTrue); 569 unittest.expect(o.includeDeletedEntities, unittest.isTrue);
570 unittest.expect(o.includeRemovedEntities, unittest.isTrue); 570 unittest.expect(o.includeRemovedEntities, unittest.isTrue);
571 unittest.expect(o.maxRowsPerFile, unittest.equals(42)); 571 unittest.expect(o.maxRowsPerFile, unittest.equals(42));
572 checkUnnamed1200(o.orderBy); 572 checkUnnamed1211(o.orderBy);
573 checkReportRequestReportScope(o.reportScope); 573 checkReportRequestReportScope(o.reportScope);
574 unittest.expect(o.reportType, unittest.equals('foo')); 574 unittest.expect(o.reportType, unittest.equals('foo'));
575 unittest.expect(o.rowCount, unittest.equals(42)); 575 unittest.expect(o.rowCount, unittest.equals(42));
576 unittest.expect(o.startRow, unittest.equals(42)); 576 unittest.expect(o.startRow, unittest.equals(42));
577 unittest.expect(o.statisticsCurrency, unittest.equals('foo')); 577 unittest.expect(o.statisticsCurrency, unittest.equals('foo'));
578 checkReportRequestTimeRange(o.timeRange); 578 checkReportRequestTimeRange(o.timeRange);
579 unittest.expect(o.verifySingleTimeZone, unittest.isTrue); 579 unittest.expect(o.verifySingleTimeZone, unittest.isTrue);
580 } 580 }
581 buildCounterReportRequest--; 581 buildCounterReportRequest--;
582 } 582 }
(...skipping 27 matching lines...) Expand all
610 checkSavedColumn(api.SavedColumn o) { 610 checkSavedColumn(api.SavedColumn o) {
611 buildCounterSavedColumn++; 611 buildCounterSavedColumn++;
612 if (buildCounterSavedColumn < 3) { 612 if (buildCounterSavedColumn < 3) {
613 unittest.expect(o.kind, unittest.equals('foo')); 613 unittest.expect(o.kind, unittest.equals('foo'));
614 unittest.expect(o.savedColumnName, unittest.equals('foo')); 614 unittest.expect(o.savedColumnName, unittest.equals('foo'));
615 unittest.expect(o.type, unittest.equals('foo')); 615 unittest.expect(o.type, unittest.equals('foo'));
616 } 616 }
617 buildCounterSavedColumn--; 617 buildCounterSavedColumn--;
618 } 618 }
619 619
620 buildUnnamed1201() { 620 buildUnnamed1212() {
621 var o = new core.List<api.SavedColumn>(); 621 var o = new core.List<api.SavedColumn>();
622 o.add(buildSavedColumn()); 622 o.add(buildSavedColumn());
623 o.add(buildSavedColumn()); 623 o.add(buildSavedColumn());
624 return o; 624 return o;
625 } 625 }
626 626
627 checkUnnamed1201(core.List<api.SavedColumn> o) { 627 checkUnnamed1212(core.List<api.SavedColumn> o) {
628 unittest.expect(o, unittest.hasLength(2)); 628 unittest.expect(o, unittest.hasLength(2));
629 checkSavedColumn(o[0]); 629 checkSavedColumn(o[0]);
630 checkSavedColumn(o[1]); 630 checkSavedColumn(o[1]);
631 } 631 }
632 632
633 core.int buildCounterSavedColumnList = 0; 633 core.int buildCounterSavedColumnList = 0;
634 buildSavedColumnList() { 634 buildSavedColumnList() {
635 var o = new api.SavedColumnList(); 635 var o = new api.SavedColumnList();
636 buildCounterSavedColumnList++; 636 buildCounterSavedColumnList++;
637 if (buildCounterSavedColumnList < 3) { 637 if (buildCounterSavedColumnList < 3) {
638 o.items = buildUnnamed1201(); 638 o.items = buildUnnamed1212();
639 o.kind = "foo"; 639 o.kind = "foo";
640 } 640 }
641 buildCounterSavedColumnList--; 641 buildCounterSavedColumnList--;
642 return o; 642 return o;
643 } 643 }
644 644
645 checkSavedColumnList(api.SavedColumnList o) { 645 checkSavedColumnList(api.SavedColumnList o) {
646 buildCounterSavedColumnList++; 646 buildCounterSavedColumnList++;
647 if (buildCounterSavedColumnList < 3) { 647 if (buildCounterSavedColumnList < 3) {
648 checkUnnamed1201(o.items); 648 checkUnnamed1212(o.items);
649 unittest.expect(o.kind, unittest.equals('foo')); 649 unittest.expect(o.kind, unittest.equals('foo'));
650 } 650 }
651 buildCounterSavedColumnList--; 651 buildCounterSavedColumnList--;
652 } 652 }
653 653
654 buildUnnamed1202() { 654 buildUnnamed1213() {
655 var o = new core.List<api.Availability>(); 655 var o = new core.List<api.Availability>();
656 o.add(buildAvailability()); 656 o.add(buildAvailability());
657 o.add(buildAvailability()); 657 o.add(buildAvailability());
658 return o; 658 return o;
659 } 659 }
660 660
661 checkUnnamed1202(core.List<api.Availability> o) { 661 checkUnnamed1213(core.List<api.Availability> o) {
662 unittest.expect(o, unittest.hasLength(2)); 662 unittest.expect(o, unittest.hasLength(2));
663 checkAvailability(o[0]); 663 checkAvailability(o[0]);
664 checkAvailability(o[1]); 664 checkAvailability(o[1]);
665 } 665 }
666 666
667 core.int buildCounterUpdateAvailabilityRequest = 0; 667 core.int buildCounterUpdateAvailabilityRequest = 0;
668 buildUpdateAvailabilityRequest() { 668 buildUpdateAvailabilityRequest() {
669 var o = new api.UpdateAvailabilityRequest(); 669 var o = new api.UpdateAvailabilityRequest();
670 buildCounterUpdateAvailabilityRequest++; 670 buildCounterUpdateAvailabilityRequest++;
671 if (buildCounterUpdateAvailabilityRequest < 3) { 671 if (buildCounterUpdateAvailabilityRequest < 3) {
672 o.availabilities = buildUnnamed1202(); 672 o.availabilities = buildUnnamed1213();
673 } 673 }
674 buildCounterUpdateAvailabilityRequest--; 674 buildCounterUpdateAvailabilityRequest--;
675 return o; 675 return o;
676 } 676 }
677 677
678 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { 678 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) {
679 buildCounterUpdateAvailabilityRequest++; 679 buildCounterUpdateAvailabilityRequest++;
680 if (buildCounterUpdateAvailabilityRequest < 3) { 680 if (buildCounterUpdateAvailabilityRequest < 3) {
681 checkUnnamed1202(o.availabilities); 681 checkUnnamed1213(o.availabilities);
682 } 682 }
683 buildCounterUpdateAvailabilityRequest--; 683 buildCounterUpdateAvailabilityRequest--;
684 } 684 }
685 685
686 buildUnnamed1203() { 686 buildUnnamed1214() {
687 var o = new core.List<api.Availability>(); 687 var o = new core.List<api.Availability>();
688 o.add(buildAvailability()); 688 o.add(buildAvailability());
689 o.add(buildAvailability()); 689 o.add(buildAvailability());
690 return o; 690 return o;
691 } 691 }
692 692
693 checkUnnamed1203(core.List<api.Availability> o) { 693 checkUnnamed1214(core.List<api.Availability> o) {
694 unittest.expect(o, unittest.hasLength(2)); 694 unittest.expect(o, unittest.hasLength(2));
695 checkAvailability(o[0]); 695 checkAvailability(o[0]);
696 checkAvailability(o[1]); 696 checkAvailability(o[1]);
697 } 697 }
698 698
699 core.int buildCounterUpdateAvailabilityResponse = 0; 699 core.int buildCounterUpdateAvailabilityResponse = 0;
700 buildUpdateAvailabilityResponse() { 700 buildUpdateAvailabilityResponse() {
701 var o = new api.UpdateAvailabilityResponse(); 701 var o = new api.UpdateAvailabilityResponse();
702 buildCounterUpdateAvailabilityResponse++; 702 buildCounterUpdateAvailabilityResponse++;
703 if (buildCounterUpdateAvailabilityResponse < 3) { 703 if (buildCounterUpdateAvailabilityResponse < 3) {
704 o.availabilities = buildUnnamed1203(); 704 o.availabilities = buildUnnamed1214();
705 } 705 }
706 buildCounterUpdateAvailabilityResponse--; 706 buildCounterUpdateAvailabilityResponse--;
707 return o; 707 return o;
708 } 708 }
709 709
710 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { 710 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) {
711 buildCounterUpdateAvailabilityResponse++; 711 buildCounterUpdateAvailabilityResponse++;
712 if (buildCounterUpdateAvailabilityResponse < 3) { 712 if (buildCounterUpdateAvailabilityResponse < 3) {
713 checkUnnamed1203(o.availabilities); 713 checkUnnamed1214(o.availabilities);
714 } 714 }
715 buildCounterUpdateAvailabilityResponse--; 715 buildCounterUpdateAvailabilityResponse--;
716 } 716 }
717 717
718 718
719 main() { 719 main() {
720 unittest.group("obj-schema-Availability", () { 720 unittest.group("obj-schema-Availability", () {
721 unittest.test("to-json--from-json", () { 721 unittest.test("to-json--from-json", () {
722 var o = buildAvailability(); 722 var o = buildAvailability();
723 var od = new api.Availability.fromJson(o.toJson()); 723 var od = new api.Availability.fromJson(o.toJson());
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S avedColumnList response) { 1446 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S avedColumnList response) {
1447 checkSavedColumnList(response); 1447 checkSavedColumnList(response);
1448 }))); 1448 })));
1449 }); 1449 });
1450 1450
1451 }); 1451 });
1452 1452
1453 1453
1454 } 1454 }
1455 1455
OLDNEW
« no previous file with comments | « generated/googleapis/test/doubleclickbidmanager/v1_test.dart ('k') | generated/googleapis/test/drive/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698