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

Side by Side Diff: generated/googleapis/test/doubleclicksearch/v2_test.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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 buildUnnamed1048() { 83 buildUnnamed1603() {
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 checkUnnamed1048(core.List<api.CustomDimension> o) { 90 checkUnnamed1603(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 buildUnnamed1049() { 96 buildUnnamed1604() {
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 checkUnnamed1049(core.List<api.CustomMetric> o) { 103 checkUnnamed1604(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 = buildUnnamed1048(); 128 o.customDimension = buildUnnamed1603();
129 o.customMetric = buildUnnamed1049(); 129 o.customMetric = buildUnnamed1604();
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 checkUnnamed1048(o.customDimension); 169 checkUnnamed1603(o.customDimension);
170 checkUnnamed1049(o.customMetric); 170 checkUnnamed1604(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 buildUnnamed1050() { 192 buildUnnamed1605() {
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 checkUnnamed1050(core.List<api.Conversion> o) { 199 checkUnnamed1605(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 = buildUnnamed1050(); 210 o.conversion = buildUnnamed1605();
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 checkUnnamed1050(o.conversion); 220 checkUnnamed1605(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 buildUnnamed1051() { 289 buildUnnamed1606() {
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 checkUnnamed1051(core.List<api.ReportFiles> o) { 296 checkUnnamed1606(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 buildUnnamed1052() { 302 buildUnnamed1607() {
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 checkUnnamed1052(core.List<api.ReportRow> o) { 309 checkUnnamed1607(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 = buildUnnamed1051(); 320 o.files = buildUnnamed1606();
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 = buildUnnamed1052(); 326 o.rows = buildUnnamed1607();
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 checkUnnamed1051(o.files); 337 checkUnnamed1606(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 checkUnnamed1052(o.rows); 343 checkUnnamed1607(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 21 matching lines...) Expand all
375 unittest.expect(o.endDate, unittest.equals('foo')); 375 unittest.expect(o.endDate, unittest.equals('foo'));
376 unittest.expect(o.groupByColumn, unittest.isTrue); 376 unittest.expect(o.groupByColumn, unittest.isTrue);
377 unittest.expect(o.headerText, unittest.equals('foo')); 377 unittest.expect(o.headerText, unittest.equals('foo'));
378 unittest.expect(o.platformSource, unittest.equals('foo')); 378 unittest.expect(o.platformSource, unittest.equals('foo'));
379 unittest.expect(o.savedColumnName, unittest.equals('foo')); 379 unittest.expect(o.savedColumnName, unittest.equals('foo'));
380 unittest.expect(o.startDate, unittest.equals('foo')); 380 unittest.expect(o.startDate, unittest.equals('foo'));
381 } 381 }
382 buildCounterReportApiColumnSpec--; 382 buildCounterReportApiColumnSpec--;
383 } 383 }
384 384
385 buildUnnamed1053() { 385 buildUnnamed1608() {
386 var o = new core.List<api.ReportApiColumnSpec>(); 386 var o = new core.List<api.ReportApiColumnSpec>();
387 o.add(buildReportApiColumnSpec()); 387 o.add(buildReportApiColumnSpec());
388 o.add(buildReportApiColumnSpec()); 388 o.add(buildReportApiColumnSpec());
389 return o; 389 return o;
390 } 390 }
391 391
392 checkUnnamed1053(core.List<api.ReportApiColumnSpec> o) { 392 checkUnnamed1608(core.List<api.ReportApiColumnSpec> o) {
393 unittest.expect(o, unittest.hasLength(2)); 393 unittest.expect(o, unittest.hasLength(2));
394 checkReportApiColumnSpec(o[0]); 394 checkReportApiColumnSpec(o[0]);
395 checkReportApiColumnSpec(o[1]); 395 checkReportApiColumnSpec(o[1]);
396 } 396 }
397 397
398 buildUnnamed1054() { 398 buildUnnamed1609() {
399 var o = new core.List<core.Object>(); 399 var o = new core.List<core.Object>();
400 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 400 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
401 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 401 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
402 return o; 402 return o;
403 } 403 }
404 404
405 checkUnnamed1054(core.List<core.Object> o) { 405 checkUnnamed1609(core.List<core.Object> o) {
406 unittest.expect(o, unittest.hasLength(2)); 406 unittest.expect(o, unittest.hasLength(2));
407 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')); 407 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'));
408 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')); 408 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'));
409 } 409 }
410 410
411 core.int buildCounterReportRequestFilters = 0; 411 core.int buildCounterReportRequestFilters = 0;
412 buildReportRequestFilters() { 412 buildReportRequestFilters() {
413 var o = new api.ReportRequestFilters(); 413 var o = new api.ReportRequestFilters();
414 buildCounterReportRequestFilters++; 414 buildCounterReportRequestFilters++;
415 if (buildCounterReportRequestFilters < 3) { 415 if (buildCounterReportRequestFilters < 3) {
416 o.column = buildReportApiColumnSpec(); 416 o.column = buildReportApiColumnSpec();
417 o.operator = "foo"; 417 o.operator = "foo";
418 o.values = buildUnnamed1054(); 418 o.values = buildUnnamed1609();
419 } 419 }
420 buildCounterReportRequestFilters--; 420 buildCounterReportRequestFilters--;
421 return o; 421 return o;
422 } 422 }
423 423
424 checkReportRequestFilters(api.ReportRequestFilters o) { 424 checkReportRequestFilters(api.ReportRequestFilters o) {
425 buildCounterReportRequestFilters++; 425 buildCounterReportRequestFilters++;
426 if (buildCounterReportRequestFilters < 3) { 426 if (buildCounterReportRequestFilters < 3) {
427 checkReportApiColumnSpec(o.column); 427 checkReportApiColumnSpec(o.column);
428 unittest.expect(o.operator, unittest.equals('foo')); 428 unittest.expect(o.operator, unittest.equals('foo'));
429 checkUnnamed1054(o.values); 429 checkUnnamed1609(o.values);
430 } 430 }
431 buildCounterReportRequestFilters--; 431 buildCounterReportRequestFilters--;
432 } 432 }
433 433
434 buildUnnamed1055() { 434 buildUnnamed1610() {
435 var o = new core.List<api.ReportRequestFilters>(); 435 var o = new core.List<api.ReportRequestFilters>();
436 o.add(buildReportRequestFilters()); 436 o.add(buildReportRequestFilters());
437 o.add(buildReportRequestFilters()); 437 o.add(buildReportRequestFilters());
438 return o; 438 return o;
439 } 439 }
440 440
441 checkUnnamed1055(core.List<api.ReportRequestFilters> o) { 441 checkUnnamed1610(core.List<api.ReportRequestFilters> o) {
442 unittest.expect(o, unittest.hasLength(2)); 442 unittest.expect(o, unittest.hasLength(2));
443 checkReportRequestFilters(o[0]); 443 checkReportRequestFilters(o[0]);
444 checkReportRequestFilters(o[1]); 444 checkReportRequestFilters(o[1]);
445 } 445 }
446 446
447 core.int buildCounterReportRequestOrderBy = 0; 447 core.int buildCounterReportRequestOrderBy = 0;
448 buildReportRequestOrderBy() { 448 buildReportRequestOrderBy() {
449 var o = new api.ReportRequestOrderBy(); 449 var o = new api.ReportRequestOrderBy();
450 buildCounterReportRequestOrderBy++; 450 buildCounterReportRequestOrderBy++;
451 if (buildCounterReportRequestOrderBy < 3) { 451 if (buildCounterReportRequestOrderBy < 3) {
452 o.column = buildReportApiColumnSpec(); 452 o.column = buildReportApiColumnSpec();
453 o.sortOrder = "foo"; 453 o.sortOrder = "foo";
454 } 454 }
455 buildCounterReportRequestOrderBy--; 455 buildCounterReportRequestOrderBy--;
456 return o; 456 return o;
457 } 457 }
458 458
459 checkReportRequestOrderBy(api.ReportRequestOrderBy o) { 459 checkReportRequestOrderBy(api.ReportRequestOrderBy o) {
460 buildCounterReportRequestOrderBy++; 460 buildCounterReportRequestOrderBy++;
461 if (buildCounterReportRequestOrderBy < 3) { 461 if (buildCounterReportRequestOrderBy < 3) {
462 checkReportApiColumnSpec(o.column); 462 checkReportApiColumnSpec(o.column);
463 unittest.expect(o.sortOrder, unittest.equals('foo')); 463 unittest.expect(o.sortOrder, unittest.equals('foo'));
464 } 464 }
465 buildCounterReportRequestOrderBy--; 465 buildCounterReportRequestOrderBy--;
466 } 466 }
467 467
468 buildUnnamed1056() { 468 buildUnnamed1611() {
469 var o = new core.List<api.ReportRequestOrderBy>(); 469 var o = new core.List<api.ReportRequestOrderBy>();
470 o.add(buildReportRequestOrderBy()); 470 o.add(buildReportRequestOrderBy());
471 o.add(buildReportRequestOrderBy()); 471 o.add(buildReportRequestOrderBy());
472 return o; 472 return o;
473 } 473 }
474 474
475 checkUnnamed1056(core.List<api.ReportRequestOrderBy> o) { 475 checkUnnamed1611(core.List<api.ReportRequestOrderBy> o) {
476 unittest.expect(o, unittest.hasLength(2)); 476 unittest.expect(o, unittest.hasLength(2));
477 checkReportRequestOrderBy(o[0]); 477 checkReportRequestOrderBy(o[0]);
478 checkReportRequestOrderBy(o[1]); 478 checkReportRequestOrderBy(o[1]);
479 } 479 }
480 480
481 core.int buildCounterReportRequestReportScope = 0; 481 core.int buildCounterReportRequestReportScope = 0;
482 buildReportRequestReportScope() { 482 buildReportRequestReportScope() {
483 var o = new api.ReportRequestReportScope(); 483 var o = new api.ReportRequestReportScope();
484 buildCounterReportRequestReportScope++; 484 buildCounterReportRequestReportScope++;
485 if (buildCounterReportRequestReportScope < 3) { 485 if (buildCounterReportRequestReportScope < 3) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 unittest.expect(o.startDate, unittest.equals('foo')); 532 unittest.expect(o.startDate, unittest.equals('foo'));
533 } 533 }
534 buildCounterReportRequestTimeRange--; 534 buildCounterReportRequestTimeRange--;
535 } 535 }
536 536
537 core.int buildCounterReportRequest = 0; 537 core.int buildCounterReportRequest = 0;
538 buildReportRequest() { 538 buildReportRequest() {
539 var o = new api.ReportRequest(); 539 var o = new api.ReportRequest();
540 buildCounterReportRequest++; 540 buildCounterReportRequest++;
541 if (buildCounterReportRequest < 3) { 541 if (buildCounterReportRequest < 3) {
542 o.columns = buildUnnamed1053(); 542 o.columns = buildUnnamed1608();
543 o.downloadFormat = "foo"; 543 o.downloadFormat = "foo";
544 o.filters = buildUnnamed1055(); 544 o.filters = buildUnnamed1610();
545 o.includeDeletedEntities = true; 545 o.includeDeletedEntities = true;
546 o.includeRemovedEntities = true; 546 o.includeRemovedEntities = true;
547 o.maxRowsPerFile = 42; 547 o.maxRowsPerFile = 42;
548 o.orderBy = buildUnnamed1056(); 548 o.orderBy = buildUnnamed1611();
549 o.reportScope = buildReportRequestReportScope(); 549 o.reportScope = buildReportRequestReportScope();
550 o.reportType = "foo"; 550 o.reportType = "foo";
551 o.rowCount = 42; 551 o.rowCount = 42;
552 o.startRow = 42; 552 o.startRow = 42;
553 o.statisticsCurrency = "foo"; 553 o.statisticsCurrency = "foo";
554 o.timeRange = buildReportRequestTimeRange(); 554 o.timeRange = buildReportRequestTimeRange();
555 o.verifySingleTimeZone = true; 555 o.verifySingleTimeZone = true;
556 } 556 }
557 buildCounterReportRequest--; 557 buildCounterReportRequest--;
558 return o; 558 return o;
559 } 559 }
560 560
561 checkReportRequest(api.ReportRequest o) { 561 checkReportRequest(api.ReportRequest o) {
562 buildCounterReportRequest++; 562 buildCounterReportRequest++;
563 if (buildCounterReportRequest < 3) { 563 if (buildCounterReportRequest < 3) {
564 checkUnnamed1053(o.columns); 564 checkUnnamed1608(o.columns);
565 unittest.expect(o.downloadFormat, unittest.equals('foo')); 565 unittest.expect(o.downloadFormat, unittest.equals('foo'));
566 checkUnnamed1055(o.filters); 566 checkUnnamed1610(o.filters);
567 unittest.expect(o.includeDeletedEntities, unittest.isTrue); 567 unittest.expect(o.includeDeletedEntities, unittest.isTrue);
568 unittest.expect(o.includeRemovedEntities, unittest.isTrue); 568 unittest.expect(o.includeRemovedEntities, unittest.isTrue);
569 unittest.expect(o.maxRowsPerFile, unittest.equals(42)); 569 unittest.expect(o.maxRowsPerFile, unittest.equals(42));
570 checkUnnamed1056(o.orderBy); 570 checkUnnamed1611(o.orderBy);
571 checkReportRequestReportScope(o.reportScope); 571 checkReportRequestReportScope(o.reportScope);
572 unittest.expect(o.reportType, unittest.equals('foo')); 572 unittest.expect(o.reportType, unittest.equals('foo'));
573 unittest.expect(o.rowCount, unittest.equals(42)); 573 unittest.expect(o.rowCount, unittest.equals(42));
574 unittest.expect(o.startRow, unittest.equals(42)); 574 unittest.expect(o.startRow, unittest.equals(42));
575 unittest.expect(o.statisticsCurrency, unittest.equals('foo')); 575 unittest.expect(o.statisticsCurrency, unittest.equals('foo'));
576 checkReportRequestTimeRange(o.timeRange); 576 checkReportRequestTimeRange(o.timeRange);
577 unittest.expect(o.verifySingleTimeZone, unittest.isTrue); 577 unittest.expect(o.verifySingleTimeZone, unittest.isTrue);
578 } 578 }
579 buildCounterReportRequest--; 579 buildCounterReportRequest--;
580 } 580 }
(...skipping 27 matching lines...) Expand all
608 checkSavedColumn(api.SavedColumn o) { 608 checkSavedColumn(api.SavedColumn o) {
609 buildCounterSavedColumn++; 609 buildCounterSavedColumn++;
610 if (buildCounterSavedColumn < 3) { 610 if (buildCounterSavedColumn < 3) {
611 unittest.expect(o.kind, unittest.equals('foo')); 611 unittest.expect(o.kind, unittest.equals('foo'));
612 unittest.expect(o.savedColumnName, unittest.equals('foo')); 612 unittest.expect(o.savedColumnName, unittest.equals('foo'));
613 unittest.expect(o.type, unittest.equals('foo')); 613 unittest.expect(o.type, unittest.equals('foo'));
614 } 614 }
615 buildCounterSavedColumn--; 615 buildCounterSavedColumn--;
616 } 616 }
617 617
618 buildUnnamed1057() { 618 buildUnnamed1612() {
619 var o = new core.List<api.SavedColumn>(); 619 var o = new core.List<api.SavedColumn>();
620 o.add(buildSavedColumn()); 620 o.add(buildSavedColumn());
621 o.add(buildSavedColumn()); 621 o.add(buildSavedColumn());
622 return o; 622 return o;
623 } 623 }
624 624
625 checkUnnamed1057(core.List<api.SavedColumn> o) { 625 checkUnnamed1612(core.List<api.SavedColumn> o) {
626 unittest.expect(o, unittest.hasLength(2)); 626 unittest.expect(o, unittest.hasLength(2));
627 checkSavedColumn(o[0]); 627 checkSavedColumn(o[0]);
628 checkSavedColumn(o[1]); 628 checkSavedColumn(o[1]);
629 } 629 }
630 630
631 core.int buildCounterSavedColumnList = 0; 631 core.int buildCounterSavedColumnList = 0;
632 buildSavedColumnList() { 632 buildSavedColumnList() {
633 var o = new api.SavedColumnList(); 633 var o = new api.SavedColumnList();
634 buildCounterSavedColumnList++; 634 buildCounterSavedColumnList++;
635 if (buildCounterSavedColumnList < 3) { 635 if (buildCounterSavedColumnList < 3) {
636 o.items = buildUnnamed1057(); 636 o.items = buildUnnamed1612();
637 o.kind = "foo"; 637 o.kind = "foo";
638 } 638 }
639 buildCounterSavedColumnList--; 639 buildCounterSavedColumnList--;
640 return o; 640 return o;
641 } 641 }
642 642
643 checkSavedColumnList(api.SavedColumnList o) { 643 checkSavedColumnList(api.SavedColumnList o) {
644 buildCounterSavedColumnList++; 644 buildCounterSavedColumnList++;
645 if (buildCounterSavedColumnList < 3) { 645 if (buildCounterSavedColumnList < 3) {
646 checkUnnamed1057(o.items); 646 checkUnnamed1612(o.items);
647 unittest.expect(o.kind, unittest.equals('foo')); 647 unittest.expect(o.kind, unittest.equals('foo'));
648 } 648 }
649 buildCounterSavedColumnList--; 649 buildCounterSavedColumnList--;
650 } 650 }
651 651
652 buildUnnamed1058() { 652 buildUnnamed1613() {
653 var o = new core.List<api.Availability>(); 653 var o = new core.List<api.Availability>();
654 o.add(buildAvailability()); 654 o.add(buildAvailability());
655 o.add(buildAvailability()); 655 o.add(buildAvailability());
656 return o; 656 return o;
657 } 657 }
658 658
659 checkUnnamed1058(core.List<api.Availability> o) { 659 checkUnnamed1613(core.List<api.Availability> o) {
660 unittest.expect(o, unittest.hasLength(2)); 660 unittest.expect(o, unittest.hasLength(2));
661 checkAvailability(o[0]); 661 checkAvailability(o[0]);
662 checkAvailability(o[1]); 662 checkAvailability(o[1]);
663 } 663 }
664 664
665 core.int buildCounterUpdateAvailabilityRequest = 0; 665 core.int buildCounterUpdateAvailabilityRequest = 0;
666 buildUpdateAvailabilityRequest() { 666 buildUpdateAvailabilityRequest() {
667 var o = new api.UpdateAvailabilityRequest(); 667 var o = new api.UpdateAvailabilityRequest();
668 buildCounterUpdateAvailabilityRequest++; 668 buildCounterUpdateAvailabilityRequest++;
669 if (buildCounterUpdateAvailabilityRequest < 3) { 669 if (buildCounterUpdateAvailabilityRequest < 3) {
670 o.availabilities = buildUnnamed1058(); 670 o.availabilities = buildUnnamed1613();
671 } 671 }
672 buildCounterUpdateAvailabilityRequest--; 672 buildCounterUpdateAvailabilityRequest--;
673 return o; 673 return o;
674 } 674 }
675 675
676 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { 676 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) {
677 buildCounterUpdateAvailabilityRequest++; 677 buildCounterUpdateAvailabilityRequest++;
678 if (buildCounterUpdateAvailabilityRequest < 3) { 678 if (buildCounterUpdateAvailabilityRequest < 3) {
679 checkUnnamed1058(o.availabilities); 679 checkUnnamed1613(o.availabilities);
680 } 680 }
681 buildCounterUpdateAvailabilityRequest--; 681 buildCounterUpdateAvailabilityRequest--;
682 } 682 }
683 683
684 buildUnnamed1059() { 684 buildUnnamed1614() {
685 var o = new core.List<api.Availability>(); 685 var o = new core.List<api.Availability>();
686 o.add(buildAvailability()); 686 o.add(buildAvailability());
687 o.add(buildAvailability()); 687 o.add(buildAvailability());
688 return o; 688 return o;
689 } 689 }
690 690
691 checkUnnamed1059(core.List<api.Availability> o) { 691 checkUnnamed1614(core.List<api.Availability> o) {
692 unittest.expect(o, unittest.hasLength(2)); 692 unittest.expect(o, unittest.hasLength(2));
693 checkAvailability(o[0]); 693 checkAvailability(o[0]);
694 checkAvailability(o[1]); 694 checkAvailability(o[1]);
695 } 695 }
696 696
697 core.int buildCounterUpdateAvailabilityResponse = 0; 697 core.int buildCounterUpdateAvailabilityResponse = 0;
698 buildUpdateAvailabilityResponse() { 698 buildUpdateAvailabilityResponse() {
699 var o = new api.UpdateAvailabilityResponse(); 699 var o = new api.UpdateAvailabilityResponse();
700 buildCounterUpdateAvailabilityResponse++; 700 buildCounterUpdateAvailabilityResponse++;
701 if (buildCounterUpdateAvailabilityResponse < 3) { 701 if (buildCounterUpdateAvailabilityResponse < 3) {
702 o.availabilities = buildUnnamed1059(); 702 o.availabilities = buildUnnamed1614();
703 } 703 }
704 buildCounterUpdateAvailabilityResponse--; 704 buildCounterUpdateAvailabilityResponse--;
705 return o; 705 return o;
706 } 706 }
707 707
708 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { 708 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) {
709 buildCounterUpdateAvailabilityResponse++; 709 buildCounterUpdateAvailabilityResponse++;
710 if (buildCounterUpdateAvailabilityResponse < 3) { 710 if (buildCounterUpdateAvailabilityResponse < 3) {
711 checkUnnamed1059(o.availabilities); 711 checkUnnamed1614(o.availabilities);
712 } 712 }
713 buildCounterUpdateAvailabilityResponse--; 713 buildCounterUpdateAvailabilityResponse--;
714 } 714 }
715 715
716 716
717 main() { 717 main() {
718 unittest.group("obj-schema-Availability", () { 718 unittest.group("obj-schema-Availability", () {
719 unittest.test("to-json--from-json", () { 719 unittest.test("to-json--from-json", () {
720 var o = buildAvailability(); 720 var o = buildAvailability();
721 var od = new api.Availability.fromJson(o.toJson()); 721 var od = new api.Availability.fromJson(o.toJson());
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S avedColumnList response) { 1444 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S avedColumnList response) {
1445 checkSavedColumnList(response); 1445 checkSavedColumnList(response);
1446 }))); 1446 })));
1447 }); 1447 });
1448 1448
1449 }); 1449 });
1450 1450
1451 1451
1452 } 1452 }
1453 1453
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698