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

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

Issue 612053002: Api roll 2: 2014-09-29 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed more review comments Created 6 years, 2 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 27 matching lines...) Expand all
38 unittest.expect(o.advertiserId, unittest.equals('foo')); 38 unittest.expect(o.advertiserId, unittest.equals('foo'));
39 unittest.expect(o.agencyId, unittest.equals('foo')); 39 unittest.expect(o.agencyId, unittest.equals('foo'));
40 unittest.expect(o.availabilityTimestamp, unittest.equals('foo')); 40 unittest.expect(o.availabilityTimestamp, unittest.equals('foo'));
41 unittest.expect(o.segmentationId, unittest.equals('foo')); 41 unittest.expect(o.segmentationId, unittest.equals('foo'));
42 unittest.expect(o.segmentationName, unittest.equals('foo')); 42 unittest.expect(o.segmentationName, unittest.equals('foo'));
43 unittest.expect(o.segmentationType, unittest.equals('foo')); 43 unittest.expect(o.segmentationType, unittest.equals('foo'));
44 } 44 }
45 buildCounterAvailability--; 45 buildCounterAvailability--;
46 } 46 }
47 47
48 buildUnnamed759() { 48 buildUnnamed113() {
49 var o = new core.List<api.CustomDimension>(); 49 var o = new core.List<api.CustomDimension>();
50 o.add(buildCustomDimension()); 50 o.add(buildCustomDimension());
51 o.add(buildCustomDimension()); 51 o.add(buildCustomDimension());
52 return o; 52 return o;
53 } 53 }
54 54
55 checkUnnamed759(core.List<api.CustomDimension> o) { 55 checkUnnamed113(core.List<api.CustomDimension> o) {
56 unittest.expect(o, unittest.hasLength(2)); 56 unittest.expect(o, unittest.hasLength(2));
57 checkCustomDimension(o[0]); 57 checkCustomDimension(o[0]);
58 checkCustomDimension(o[1]); 58 checkCustomDimension(o[1]);
59 } 59 }
60 60
61 buildUnnamed760() { 61 buildUnnamed114() {
62 var o = new core.List<api.CustomMetric>(); 62 var o = new core.List<api.CustomMetric>();
63 o.add(buildCustomMetric()); 63 o.add(buildCustomMetric());
64 o.add(buildCustomMetric()); 64 o.add(buildCustomMetric());
65 return o; 65 return o;
66 } 66 }
67 67
68 checkUnnamed760(core.List<api.CustomMetric> o) { 68 checkUnnamed114(core.List<api.CustomMetric> o) {
69 unittest.expect(o, unittest.hasLength(2)); 69 unittest.expect(o, unittest.hasLength(2));
70 checkCustomMetric(o[0]); 70 checkCustomMetric(o[0]);
71 checkCustomMetric(o[1]); 71 checkCustomMetric(o[1]);
72 } 72 }
73 73
74 core.int buildCounterConversion = 0; 74 core.int buildCounterConversion = 0;
75 buildConversion() { 75 buildConversion() {
76 var o = new api.Conversion(); 76 var o = new api.Conversion();
77 buildCounterConversion++; 77 buildCounterConversion++;
78 if (buildCounterConversion < 3) { 78 if (buildCounterConversion < 3) {
79 o.adGroupId = "foo"; 79 o.adGroupId = "foo";
80 o.adId = "foo"; 80 o.adId = "foo";
81 o.advertiserId = "foo"; 81 o.advertiserId = "foo";
82 o.agencyId = "foo"; 82 o.agencyId = "foo";
83 o.campaignId = "foo"; 83 o.campaignId = "foo";
84 o.clickId = "foo"; 84 o.clickId = "foo";
85 o.conversionId = "foo"; 85 o.conversionId = "foo";
86 o.conversionModifiedTimestamp = "foo"; 86 o.conversionModifiedTimestamp = "foo";
87 o.conversionTimestamp = "foo"; 87 o.conversionTimestamp = "foo";
88 o.criterionId = "foo"; 88 o.criterionId = "foo";
89 o.currencyCode = "foo"; 89 o.currencyCode = "foo";
90 o.customDimension = buildUnnamed759(); 90 o.customDimension = buildUnnamed113();
91 o.customMetric = buildUnnamed760(); 91 o.customMetric = buildUnnamed114();
92 o.dsConversionId = "foo"; 92 o.dsConversionId = "foo";
93 o.engineAccountId = "foo"; 93 o.engineAccountId = "foo";
94 o.floodlightOrderId = "foo"; 94 o.floodlightOrderId = "foo";
95 o.quantityMillis = "foo"; 95 o.quantityMillis = "foo";
96 o.revenueMicros = "foo"; 96 o.revenueMicros = "foo";
97 o.segmentationId = "foo"; 97 o.segmentationId = "foo";
98 o.segmentationName = "foo"; 98 o.segmentationName = "foo";
99 o.segmentationType = "foo"; 99 o.segmentationType = "foo";
100 o.state = "foo"; 100 o.state = "foo";
101 o.type = "foo"; 101 o.type = "foo";
102 } 102 }
103 buildCounterConversion--; 103 buildCounterConversion--;
104 return o; 104 return o;
105 } 105 }
106 106
107 checkConversion(api.Conversion o) { 107 checkConversion(api.Conversion o) {
108 buildCounterConversion++; 108 buildCounterConversion++;
109 if (buildCounterConversion < 3) { 109 if (buildCounterConversion < 3) {
110 unittest.expect(o.adGroupId, unittest.equals('foo')); 110 unittest.expect(o.adGroupId, unittest.equals('foo'));
111 unittest.expect(o.adId, unittest.equals('foo')); 111 unittest.expect(o.adId, unittest.equals('foo'));
112 unittest.expect(o.advertiserId, unittest.equals('foo')); 112 unittest.expect(o.advertiserId, unittest.equals('foo'));
113 unittest.expect(o.agencyId, unittest.equals('foo')); 113 unittest.expect(o.agencyId, unittest.equals('foo'));
114 unittest.expect(o.campaignId, unittest.equals('foo')); 114 unittest.expect(o.campaignId, unittest.equals('foo'));
115 unittest.expect(o.clickId, unittest.equals('foo')); 115 unittest.expect(o.clickId, unittest.equals('foo'));
116 unittest.expect(o.conversionId, unittest.equals('foo')); 116 unittest.expect(o.conversionId, unittest.equals('foo'));
117 unittest.expect(o.conversionModifiedTimestamp, unittest.equals('foo')); 117 unittest.expect(o.conversionModifiedTimestamp, unittest.equals('foo'));
118 unittest.expect(o.conversionTimestamp, unittest.equals('foo')); 118 unittest.expect(o.conversionTimestamp, unittest.equals('foo'));
119 unittest.expect(o.criterionId, unittest.equals('foo')); 119 unittest.expect(o.criterionId, unittest.equals('foo'));
120 unittest.expect(o.currencyCode, unittest.equals('foo')); 120 unittest.expect(o.currencyCode, unittest.equals('foo'));
121 checkUnnamed759(o.customDimension); 121 checkUnnamed113(o.customDimension);
122 checkUnnamed760(o.customMetric); 122 checkUnnamed114(o.customMetric);
123 unittest.expect(o.dsConversionId, unittest.equals('foo')); 123 unittest.expect(o.dsConversionId, unittest.equals('foo'));
124 unittest.expect(o.engineAccountId, unittest.equals('foo')); 124 unittest.expect(o.engineAccountId, unittest.equals('foo'));
125 unittest.expect(o.floodlightOrderId, unittest.equals('foo')); 125 unittest.expect(o.floodlightOrderId, unittest.equals('foo'));
126 unittest.expect(o.quantityMillis, unittest.equals('foo')); 126 unittest.expect(o.quantityMillis, unittest.equals('foo'));
127 unittest.expect(o.revenueMicros, unittest.equals('foo')); 127 unittest.expect(o.revenueMicros, unittest.equals('foo'));
128 unittest.expect(o.segmentationId, unittest.equals('foo')); 128 unittest.expect(o.segmentationId, unittest.equals('foo'));
129 unittest.expect(o.segmentationName, unittest.equals('foo')); 129 unittest.expect(o.segmentationName, unittest.equals('foo'));
130 unittest.expect(o.segmentationType, unittest.equals('foo')); 130 unittest.expect(o.segmentationType, unittest.equals('foo'));
131 unittest.expect(o.state, unittest.equals('foo')); 131 unittest.expect(o.state, unittest.equals('foo'));
132 unittest.expect(o.type, unittest.equals('foo')); 132 unittest.expect(o.type, unittest.equals('foo'));
133 } 133 }
134 buildCounterConversion--; 134 buildCounterConversion--;
135 } 135 }
136 136
137 buildUnnamed761() { 137 buildUnnamed115() {
138 var o = new core.List<api.Conversion>(); 138 var o = new core.List<api.Conversion>();
139 o.add(buildConversion()); 139 o.add(buildConversion());
140 o.add(buildConversion()); 140 o.add(buildConversion());
141 return o; 141 return o;
142 } 142 }
143 143
144 checkUnnamed761(core.List<api.Conversion> o) { 144 checkUnnamed115(core.List<api.Conversion> o) {
145 unittest.expect(o, unittest.hasLength(2)); 145 unittest.expect(o, unittest.hasLength(2));
146 checkConversion(o[0]); 146 checkConversion(o[0]);
147 checkConversion(o[1]); 147 checkConversion(o[1]);
148 } 148 }
149 149
150 core.int buildCounterConversionList = 0; 150 core.int buildCounterConversionList = 0;
151 buildConversionList() { 151 buildConversionList() {
152 var o = new api.ConversionList(); 152 var o = new api.ConversionList();
153 buildCounterConversionList++; 153 buildCounterConversionList++;
154 if (buildCounterConversionList < 3) { 154 if (buildCounterConversionList < 3) {
155 o.conversion = buildUnnamed761(); 155 o.conversion = buildUnnamed115();
156 o.kind = "foo"; 156 o.kind = "foo";
157 } 157 }
158 buildCounterConversionList--; 158 buildCounterConversionList--;
159 return o; 159 return o;
160 } 160 }
161 161
162 checkConversionList(api.ConversionList o) { 162 checkConversionList(api.ConversionList o) {
163 buildCounterConversionList++; 163 buildCounterConversionList++;
164 if (buildCounterConversionList < 3) { 164 if (buildCounterConversionList < 3) {
165 checkUnnamed761(o.conversion); 165 checkUnnamed115(o.conversion);
166 unittest.expect(o.kind, unittest.equals('foo')); 166 unittest.expect(o.kind, unittest.equals('foo'));
167 } 167 }
168 buildCounterConversionList--; 168 buildCounterConversionList--;
169 } 169 }
170 170
171 core.int buildCounterCustomDimension = 0; 171 core.int buildCounterCustomDimension = 0;
172 buildCustomDimension() { 172 buildCustomDimension() {
173 var o = new api.CustomDimension(); 173 var o = new api.CustomDimension();
174 buildCounterCustomDimension++; 174 buildCounterCustomDimension++;
175 if (buildCounterCustomDimension < 3) { 175 if (buildCounterCustomDimension < 3) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 checkReportFiles(api.ReportFiles o) { 225 checkReportFiles(api.ReportFiles o) {
226 buildCounterReportFiles++; 226 buildCounterReportFiles++;
227 if (buildCounterReportFiles < 3) { 227 if (buildCounterReportFiles < 3) {
228 unittest.expect(o.byteCount, unittest.equals('foo')); 228 unittest.expect(o.byteCount, unittest.equals('foo'));
229 unittest.expect(o.url, unittest.equals('foo')); 229 unittest.expect(o.url, unittest.equals('foo'));
230 } 230 }
231 buildCounterReportFiles--; 231 buildCounterReportFiles--;
232 } 232 }
233 233
234 buildUnnamed762() { 234 buildUnnamed116() {
235 var o = new core.List<api.ReportFiles>(); 235 var o = new core.List<api.ReportFiles>();
236 o.add(buildReportFiles()); 236 o.add(buildReportFiles());
237 o.add(buildReportFiles()); 237 o.add(buildReportFiles());
238 return o; 238 return o;
239 } 239 }
240 240
241 checkUnnamed762(core.List<api.ReportFiles> o) { 241 checkUnnamed116(core.List<api.ReportFiles> o) {
242 unittest.expect(o, unittest.hasLength(2)); 242 unittest.expect(o, unittest.hasLength(2));
243 checkReportFiles(o[0]); 243 checkReportFiles(o[0]);
244 checkReportFiles(o[1]); 244 checkReportFiles(o[1]);
245 } 245 }
246 246
247 buildUnnamed763() { 247 buildUnnamed117() {
248 var o = new core.List<api.ReportRow>(); 248 var o = new core.List<api.ReportRow>();
249 o.add(buildReportRow()); 249 o.add(buildReportRow());
250 o.add(buildReportRow()); 250 o.add(buildReportRow());
251 return o; 251 return o;
252 } 252 }
253 253
254 checkUnnamed763(core.List<api.ReportRow> o) { 254 checkUnnamed117(core.List<api.ReportRow> o) {
255 unittest.expect(o, unittest.hasLength(2)); 255 unittest.expect(o, unittest.hasLength(2));
256 checkReportRow(o[0]); 256 checkReportRow(o[0]);
257 checkReportRow(o[1]); 257 checkReportRow(o[1]);
258 } 258 }
259 259
260 core.int buildCounterReport = 0; 260 core.int buildCounterReport = 0;
261 buildReport() { 261 buildReport() {
262 var o = new api.Report(); 262 var o = new api.Report();
263 buildCounterReport++; 263 buildCounterReport++;
264 if (buildCounterReport < 3) { 264 if (buildCounterReport < 3) {
265 o.files = buildUnnamed762(); 265 o.files = buildUnnamed116();
266 o.id = "foo"; 266 o.id = "foo";
267 o.isReportReady = true; 267 o.isReportReady = true;
268 o.kind = "foo"; 268 o.kind = "foo";
269 o.request = buildReportRequest(); 269 o.request = buildReportRequest();
270 o.rowCount = 42; 270 o.rowCount = 42;
271 o.rows = buildUnnamed763(); 271 o.rows = buildUnnamed117();
272 o.statisticsCurrencyCode = "foo"; 272 o.statisticsCurrencyCode = "foo";
273 o.statisticsTimeZone = "foo"; 273 o.statisticsTimeZone = "foo";
274 } 274 }
275 buildCounterReport--; 275 buildCounterReport--;
276 return o; 276 return o;
277 } 277 }
278 278
279 checkReport(api.Report o) { 279 checkReport(api.Report o) {
280 buildCounterReport++; 280 buildCounterReport++;
281 if (buildCounterReport < 3) { 281 if (buildCounterReport < 3) {
282 checkUnnamed762(o.files); 282 checkUnnamed116(o.files);
283 unittest.expect(o.id, unittest.equals('foo')); 283 unittest.expect(o.id, unittest.equals('foo'));
284 unittest.expect(o.isReportReady, unittest.isTrue); 284 unittest.expect(o.isReportReady, unittest.isTrue);
285 unittest.expect(o.kind, unittest.equals('foo')); 285 unittest.expect(o.kind, unittest.equals('foo'));
286 checkReportRequest(o.request); 286 checkReportRequest(o.request);
287 unittest.expect(o.rowCount, unittest.equals(42)); 287 unittest.expect(o.rowCount, unittest.equals(42));
288 checkUnnamed763(o.rows); 288 checkUnnamed117(o.rows);
289 unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); 289 unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo'));
290 unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); 290 unittest.expect(o.statisticsTimeZone, unittest.equals('foo'));
291 } 291 }
292 buildCounterReport--; 292 buildCounterReport--;
293 } 293 }
294 294
295 core.int buildCounterReportApiColumnSpec = 0; 295 core.int buildCounterReportApiColumnSpec = 0;
296 buildReportApiColumnSpec() { 296 buildReportApiColumnSpec() {
297 var o = new api.ReportApiColumnSpec(); 297 var o = new api.ReportApiColumnSpec();
298 buildCounterReportApiColumnSpec++; 298 buildCounterReportApiColumnSpec++;
(...skipping 19 matching lines...) Expand all
318 unittest.expect(o.endDate, unittest.equals('foo')); 318 unittest.expect(o.endDate, unittest.equals('foo'));
319 unittest.expect(o.groupByColumn, unittest.isTrue); 319 unittest.expect(o.groupByColumn, unittest.isTrue);
320 unittest.expect(o.headerText, unittest.equals('foo')); 320 unittest.expect(o.headerText, unittest.equals('foo'));
321 unittest.expect(o.platformSource, unittest.equals('foo')); 321 unittest.expect(o.platformSource, unittest.equals('foo'));
322 unittest.expect(o.savedColumnName, unittest.equals('foo')); 322 unittest.expect(o.savedColumnName, unittest.equals('foo'));
323 unittest.expect(o.startDate, unittest.equals('foo')); 323 unittest.expect(o.startDate, unittest.equals('foo'));
324 } 324 }
325 buildCounterReportApiColumnSpec--; 325 buildCounterReportApiColumnSpec--;
326 } 326 }
327 327
328 buildUnnamed764() { 328 buildUnnamed118() {
329 var o = new core.List<api.ReportApiColumnSpec>(); 329 var o = new core.List<api.ReportApiColumnSpec>();
330 o.add(buildReportApiColumnSpec()); 330 o.add(buildReportApiColumnSpec());
331 o.add(buildReportApiColumnSpec()); 331 o.add(buildReportApiColumnSpec());
332 return o; 332 return o;
333 } 333 }
334 334
335 checkUnnamed764(core.List<api.ReportApiColumnSpec> o) { 335 checkUnnamed118(core.List<api.ReportApiColumnSpec> o) {
336 unittest.expect(o, unittest.hasLength(2)); 336 unittest.expect(o, unittest.hasLength(2));
337 checkReportApiColumnSpec(o[0]); 337 checkReportApiColumnSpec(o[0]);
338 checkReportApiColumnSpec(o[1]); 338 checkReportApiColumnSpec(o[1]);
339 } 339 }
340 340
341 buildUnnamed765() { 341 buildUnnamed119() {
342 var o = new core.List<core.Object>(); 342 var o = new core.List<core.Object>();
343 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 343 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
344 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 344 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
345 return o; 345 return o;
346 } 346 }
347 347
348 checkUnnamed765(core.List<core.Object> o) { 348 checkUnnamed119(core.List<core.Object> o) {
349 unittest.expect(o, unittest.hasLength(2)); 349 unittest.expect(o, unittest.hasLength(2));
350 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')); 350 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'));
351 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')); 351 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'));
352 } 352 }
353 353
354 core.int buildCounterReportRequestFilters = 0; 354 core.int buildCounterReportRequestFilters = 0;
355 buildReportRequestFilters() { 355 buildReportRequestFilters() {
356 var o = new api.ReportRequestFilters(); 356 var o = new api.ReportRequestFilters();
357 buildCounterReportRequestFilters++; 357 buildCounterReportRequestFilters++;
358 if (buildCounterReportRequestFilters < 3) { 358 if (buildCounterReportRequestFilters < 3) {
359 o.column = buildReportApiColumnSpec(); 359 o.column = buildReportApiColumnSpec();
360 o.operator = "foo"; 360 o.operator = "foo";
361 o.values = buildUnnamed765(); 361 o.values = buildUnnamed119();
362 } 362 }
363 buildCounterReportRequestFilters--; 363 buildCounterReportRequestFilters--;
364 return o; 364 return o;
365 } 365 }
366 366
367 checkReportRequestFilters(api.ReportRequestFilters o) { 367 checkReportRequestFilters(api.ReportRequestFilters o) {
368 buildCounterReportRequestFilters++; 368 buildCounterReportRequestFilters++;
369 if (buildCounterReportRequestFilters < 3) { 369 if (buildCounterReportRequestFilters < 3) {
370 checkReportApiColumnSpec(o.column); 370 checkReportApiColumnSpec(o.column);
371 unittest.expect(o.operator, unittest.equals('foo')); 371 unittest.expect(o.operator, unittest.equals('foo'));
372 checkUnnamed765(o.values); 372 checkUnnamed119(o.values);
373 } 373 }
374 buildCounterReportRequestFilters--; 374 buildCounterReportRequestFilters--;
375 } 375 }
376 376
377 buildUnnamed766() { 377 buildUnnamed120() {
378 var o = new core.List<api.ReportRequestFilters>(); 378 var o = new core.List<api.ReportRequestFilters>();
379 o.add(buildReportRequestFilters()); 379 o.add(buildReportRequestFilters());
380 o.add(buildReportRequestFilters()); 380 o.add(buildReportRequestFilters());
381 return o; 381 return o;
382 } 382 }
383 383
384 checkUnnamed766(core.List<api.ReportRequestFilters> o) { 384 checkUnnamed120(core.List<api.ReportRequestFilters> o) {
385 unittest.expect(o, unittest.hasLength(2)); 385 unittest.expect(o, unittest.hasLength(2));
386 checkReportRequestFilters(o[0]); 386 checkReportRequestFilters(o[0]);
387 checkReportRequestFilters(o[1]); 387 checkReportRequestFilters(o[1]);
388 } 388 }
389 389
390 core.int buildCounterReportRequestOrderBy = 0; 390 core.int buildCounterReportRequestOrderBy = 0;
391 buildReportRequestOrderBy() { 391 buildReportRequestOrderBy() {
392 var o = new api.ReportRequestOrderBy(); 392 var o = new api.ReportRequestOrderBy();
393 buildCounterReportRequestOrderBy++; 393 buildCounterReportRequestOrderBy++;
394 if (buildCounterReportRequestOrderBy < 3) { 394 if (buildCounterReportRequestOrderBy < 3) {
395 o.column = buildReportApiColumnSpec(); 395 o.column = buildReportApiColumnSpec();
396 o.sortOrder = "foo"; 396 o.sortOrder = "foo";
397 } 397 }
398 buildCounterReportRequestOrderBy--; 398 buildCounterReportRequestOrderBy--;
399 return o; 399 return o;
400 } 400 }
401 401
402 checkReportRequestOrderBy(api.ReportRequestOrderBy o) { 402 checkReportRequestOrderBy(api.ReportRequestOrderBy o) {
403 buildCounterReportRequestOrderBy++; 403 buildCounterReportRequestOrderBy++;
404 if (buildCounterReportRequestOrderBy < 3) { 404 if (buildCounterReportRequestOrderBy < 3) {
405 checkReportApiColumnSpec(o.column); 405 checkReportApiColumnSpec(o.column);
406 unittest.expect(o.sortOrder, unittest.equals('foo')); 406 unittest.expect(o.sortOrder, unittest.equals('foo'));
407 } 407 }
408 buildCounterReportRequestOrderBy--; 408 buildCounterReportRequestOrderBy--;
409 } 409 }
410 410
411 buildUnnamed767() { 411 buildUnnamed121() {
412 var o = new core.List<api.ReportRequestOrderBy>(); 412 var o = new core.List<api.ReportRequestOrderBy>();
413 o.add(buildReportRequestOrderBy()); 413 o.add(buildReportRequestOrderBy());
414 o.add(buildReportRequestOrderBy()); 414 o.add(buildReportRequestOrderBy());
415 return o; 415 return o;
416 } 416 }
417 417
418 checkUnnamed767(core.List<api.ReportRequestOrderBy> o) { 418 checkUnnamed121(core.List<api.ReportRequestOrderBy> o) {
419 unittest.expect(o, unittest.hasLength(2)); 419 unittest.expect(o, unittest.hasLength(2));
420 checkReportRequestOrderBy(o[0]); 420 checkReportRequestOrderBy(o[0]);
421 checkReportRequestOrderBy(o[1]); 421 checkReportRequestOrderBy(o[1]);
422 } 422 }
423 423
424 core.int buildCounterReportRequestReportScope = 0; 424 core.int buildCounterReportRequestReportScope = 0;
425 buildReportRequestReportScope() { 425 buildReportRequestReportScope() {
426 var o = new api.ReportRequestReportScope(); 426 var o = new api.ReportRequestReportScope();
427 buildCounterReportRequestReportScope++; 427 buildCounterReportRequestReportScope++;
428 if (buildCounterReportRequestReportScope < 3) { 428 if (buildCounterReportRequestReportScope < 3) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 unittest.expect(o.startDate, unittest.equals('foo')); 475 unittest.expect(o.startDate, unittest.equals('foo'));
476 } 476 }
477 buildCounterReportRequestTimeRange--; 477 buildCounterReportRequestTimeRange--;
478 } 478 }
479 479
480 core.int buildCounterReportRequest = 0; 480 core.int buildCounterReportRequest = 0;
481 buildReportRequest() { 481 buildReportRequest() {
482 var o = new api.ReportRequest(); 482 var o = new api.ReportRequest();
483 buildCounterReportRequest++; 483 buildCounterReportRequest++;
484 if (buildCounterReportRequest < 3) { 484 if (buildCounterReportRequest < 3) {
485 o.columns = buildUnnamed764(); 485 o.columns = buildUnnamed118();
486 o.downloadFormat = "foo"; 486 o.downloadFormat = "foo";
487 o.filters = buildUnnamed766(); 487 o.filters = buildUnnamed120();
488 o.includeDeletedEntities = true; 488 o.includeDeletedEntities = true;
489 o.includeRemovedEntities = true; 489 o.includeRemovedEntities = true;
490 o.maxRowsPerFile = 42; 490 o.maxRowsPerFile = 42;
491 o.orderBy = buildUnnamed767(); 491 o.orderBy = buildUnnamed121();
492 o.reportScope = buildReportRequestReportScope(); 492 o.reportScope = buildReportRequestReportScope();
493 o.reportType = "foo"; 493 o.reportType = "foo";
494 o.rowCount = 42; 494 o.rowCount = 42;
495 o.startRow = 42; 495 o.startRow = 42;
496 o.statisticsCurrency = "foo"; 496 o.statisticsCurrency = "foo";
497 o.timeRange = buildReportRequestTimeRange(); 497 o.timeRange = buildReportRequestTimeRange();
498 o.verifySingleTimeZone = true; 498 o.verifySingleTimeZone = true;
499 } 499 }
500 buildCounterReportRequest--; 500 buildCounterReportRequest--;
501 return o; 501 return o;
502 } 502 }
503 503
504 checkReportRequest(api.ReportRequest o) { 504 checkReportRequest(api.ReportRequest o) {
505 buildCounterReportRequest++; 505 buildCounterReportRequest++;
506 if (buildCounterReportRequest < 3) { 506 if (buildCounterReportRequest < 3) {
507 checkUnnamed764(o.columns); 507 checkUnnamed118(o.columns);
508 unittest.expect(o.downloadFormat, unittest.equals('foo')); 508 unittest.expect(o.downloadFormat, unittest.equals('foo'));
509 checkUnnamed766(o.filters); 509 checkUnnamed120(o.filters);
510 unittest.expect(o.includeDeletedEntities, unittest.isTrue); 510 unittest.expect(o.includeDeletedEntities, unittest.isTrue);
511 unittest.expect(o.includeRemovedEntities, unittest.isTrue); 511 unittest.expect(o.includeRemovedEntities, unittest.isTrue);
512 unittest.expect(o.maxRowsPerFile, unittest.equals(42)); 512 unittest.expect(o.maxRowsPerFile, unittest.equals(42));
513 checkUnnamed767(o.orderBy); 513 checkUnnamed121(o.orderBy);
514 checkReportRequestReportScope(o.reportScope); 514 checkReportRequestReportScope(o.reportScope);
515 unittest.expect(o.reportType, unittest.equals('foo')); 515 unittest.expect(o.reportType, unittest.equals('foo'));
516 unittest.expect(o.rowCount, unittest.equals(42)); 516 unittest.expect(o.rowCount, unittest.equals(42));
517 unittest.expect(o.startRow, unittest.equals(42)); 517 unittest.expect(o.startRow, unittest.equals(42));
518 unittest.expect(o.statisticsCurrency, unittest.equals('foo')); 518 unittest.expect(o.statisticsCurrency, unittest.equals('foo'));
519 checkReportRequestTimeRange(o.timeRange); 519 checkReportRequestTimeRange(o.timeRange);
520 unittest.expect(o.verifySingleTimeZone, unittest.isTrue); 520 unittest.expect(o.verifySingleTimeZone, unittest.isTrue);
521 } 521 }
522 buildCounterReportRequest--; 522 buildCounterReportRequest--;
523 } 523 }
(...skipping 27 matching lines...) Expand all
551 checkSavedColumn(api.SavedColumn o) { 551 checkSavedColumn(api.SavedColumn o) {
552 buildCounterSavedColumn++; 552 buildCounterSavedColumn++;
553 if (buildCounterSavedColumn < 3) { 553 if (buildCounterSavedColumn < 3) {
554 unittest.expect(o.kind, unittest.equals('foo')); 554 unittest.expect(o.kind, unittest.equals('foo'));
555 unittest.expect(o.savedColumnName, unittest.equals('foo')); 555 unittest.expect(o.savedColumnName, unittest.equals('foo'));
556 unittest.expect(o.type, unittest.equals('foo')); 556 unittest.expect(o.type, unittest.equals('foo'));
557 } 557 }
558 buildCounterSavedColumn--; 558 buildCounterSavedColumn--;
559 } 559 }
560 560
561 buildUnnamed768() { 561 buildUnnamed122() {
562 var o = new core.List<api.SavedColumn>(); 562 var o = new core.List<api.SavedColumn>();
563 o.add(buildSavedColumn()); 563 o.add(buildSavedColumn());
564 o.add(buildSavedColumn()); 564 o.add(buildSavedColumn());
565 return o; 565 return o;
566 } 566 }
567 567
568 checkUnnamed768(core.List<api.SavedColumn> o) { 568 checkUnnamed122(core.List<api.SavedColumn> o) {
569 unittest.expect(o, unittest.hasLength(2)); 569 unittest.expect(o, unittest.hasLength(2));
570 checkSavedColumn(o[0]); 570 checkSavedColumn(o[0]);
571 checkSavedColumn(o[1]); 571 checkSavedColumn(o[1]);
572 } 572 }
573 573
574 core.int buildCounterSavedColumnList = 0; 574 core.int buildCounterSavedColumnList = 0;
575 buildSavedColumnList() { 575 buildSavedColumnList() {
576 var o = new api.SavedColumnList(); 576 var o = new api.SavedColumnList();
577 buildCounterSavedColumnList++; 577 buildCounterSavedColumnList++;
578 if (buildCounterSavedColumnList < 3) { 578 if (buildCounterSavedColumnList < 3) {
579 o.items = buildUnnamed768(); 579 o.items = buildUnnamed122();
580 o.kind = "foo"; 580 o.kind = "foo";
581 } 581 }
582 buildCounterSavedColumnList--; 582 buildCounterSavedColumnList--;
583 return o; 583 return o;
584 } 584 }
585 585
586 checkSavedColumnList(api.SavedColumnList o) { 586 checkSavedColumnList(api.SavedColumnList o) {
587 buildCounterSavedColumnList++; 587 buildCounterSavedColumnList++;
588 if (buildCounterSavedColumnList < 3) { 588 if (buildCounterSavedColumnList < 3) {
589 checkUnnamed768(o.items); 589 checkUnnamed122(o.items);
590 unittest.expect(o.kind, unittest.equals('foo')); 590 unittest.expect(o.kind, unittest.equals('foo'));
591 } 591 }
592 buildCounterSavedColumnList--; 592 buildCounterSavedColumnList--;
593 } 593 }
594 594
595 buildUnnamed769() { 595 buildUnnamed123() {
596 var o = new core.List<api.Availability>(); 596 var o = new core.List<api.Availability>();
597 o.add(buildAvailability()); 597 o.add(buildAvailability());
598 o.add(buildAvailability()); 598 o.add(buildAvailability());
599 return o; 599 return o;
600 } 600 }
601 601
602 checkUnnamed769(core.List<api.Availability> o) { 602 checkUnnamed123(core.List<api.Availability> o) {
603 unittest.expect(o, unittest.hasLength(2)); 603 unittest.expect(o, unittest.hasLength(2));
604 checkAvailability(o[0]); 604 checkAvailability(o[0]);
605 checkAvailability(o[1]); 605 checkAvailability(o[1]);
606 } 606 }
607 607
608 core.int buildCounterUpdateAvailabilityRequest = 0; 608 core.int buildCounterUpdateAvailabilityRequest = 0;
609 buildUpdateAvailabilityRequest() { 609 buildUpdateAvailabilityRequest() {
610 var o = new api.UpdateAvailabilityRequest(); 610 var o = new api.UpdateAvailabilityRequest();
611 buildCounterUpdateAvailabilityRequest++; 611 buildCounterUpdateAvailabilityRequest++;
612 if (buildCounterUpdateAvailabilityRequest < 3) { 612 if (buildCounterUpdateAvailabilityRequest < 3) {
613 o.availabilities = buildUnnamed769(); 613 o.availabilities = buildUnnamed123();
614 } 614 }
615 buildCounterUpdateAvailabilityRequest--; 615 buildCounterUpdateAvailabilityRequest--;
616 return o; 616 return o;
617 } 617 }
618 618
619 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { 619 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) {
620 buildCounterUpdateAvailabilityRequest++; 620 buildCounterUpdateAvailabilityRequest++;
621 if (buildCounterUpdateAvailabilityRequest < 3) { 621 if (buildCounterUpdateAvailabilityRequest < 3) {
622 checkUnnamed769(o.availabilities); 622 checkUnnamed123(o.availabilities);
623 } 623 }
624 buildCounterUpdateAvailabilityRequest--; 624 buildCounterUpdateAvailabilityRequest--;
625 } 625 }
626 626
627 buildUnnamed770() { 627 buildUnnamed124() {
628 var o = new core.List<api.Availability>(); 628 var o = new core.List<api.Availability>();
629 o.add(buildAvailability()); 629 o.add(buildAvailability());
630 o.add(buildAvailability()); 630 o.add(buildAvailability());
631 return o; 631 return o;
632 } 632 }
633 633
634 checkUnnamed770(core.List<api.Availability> o) { 634 checkUnnamed124(core.List<api.Availability> o) {
635 unittest.expect(o, unittest.hasLength(2)); 635 unittest.expect(o, unittest.hasLength(2));
636 checkAvailability(o[0]); 636 checkAvailability(o[0]);
637 checkAvailability(o[1]); 637 checkAvailability(o[1]);
638 } 638 }
639 639
640 core.int buildCounterUpdateAvailabilityResponse = 0; 640 core.int buildCounterUpdateAvailabilityResponse = 0;
641 buildUpdateAvailabilityResponse() { 641 buildUpdateAvailabilityResponse() {
642 var o = new api.UpdateAvailabilityResponse(); 642 var o = new api.UpdateAvailabilityResponse();
643 buildCounterUpdateAvailabilityResponse++; 643 buildCounterUpdateAvailabilityResponse++;
644 if (buildCounterUpdateAvailabilityResponse < 3) { 644 if (buildCounterUpdateAvailabilityResponse < 3) {
645 o.availabilities = buildUnnamed770(); 645 o.availabilities = buildUnnamed124();
646 } 646 }
647 buildCounterUpdateAvailabilityResponse--; 647 buildCounterUpdateAvailabilityResponse--;
648 return o; 648 return o;
649 } 649 }
650 650
651 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { 651 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) {
652 buildCounterUpdateAvailabilityResponse++; 652 buildCounterUpdateAvailabilityResponse++;
653 if (buildCounterUpdateAvailabilityResponse < 3) { 653 if (buildCounterUpdateAvailabilityResponse < 3) {
654 checkUnnamed770(o.availabilities); 654 checkUnnamed124(o.availabilities);
655 } 655 }
656 buildCounterUpdateAvailabilityResponse--; 656 buildCounterUpdateAvailabilityResponse--;
657 } 657 }
658 658
659 659
660 main() { 660 main() {
661 unittest.group("obj-schema-Availability", () { 661 unittest.group("obj-schema-Availability", () {
662 unittest.test("to-json--from-json", () { 662 unittest.test("to-json--from-json", () {
663 var o = buildAvailability(); 663 var o = buildAvailability();
664 var od = new api.Availability.fromJson(o.toJson()); 664 var od = new api.Availability.fromJson(o.toJson());
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S avedColumnList response) { 1387 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S avedColumnList response) {
1388 checkSavedColumnList(response); 1388 checkSavedColumnList(response);
1389 }))); 1389 })));
1390 }); 1390 });
1391 1391
1392 }); 1392 });
1393 1393
1394 1394
1395 } 1395 }
1396 1396
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