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

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

Issue 635343003: Api roll 3: 2014-10-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Updated CHANGELOG.md for the googleapis package 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 buildUnnamed113() { 48 buildUnnamed114() {
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 checkUnnamed113(core.List<api.CustomDimension> o) { 55 checkUnnamed114(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 buildUnnamed114() { 61 buildUnnamed115() {
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 checkUnnamed114(core.List<api.CustomMetric> o) { 68 checkUnnamed115(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 = buildUnnamed113(); 90 o.customDimension = buildUnnamed114();
91 o.customMetric = buildUnnamed114(); 91 o.customMetric = buildUnnamed115();
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 checkUnnamed113(o.customDimension); 121 checkUnnamed114(o.customDimension);
122 checkUnnamed114(o.customMetric); 122 checkUnnamed115(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 buildUnnamed115() { 137 buildUnnamed116() {
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 checkUnnamed115(core.List<api.Conversion> o) { 144 checkUnnamed116(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 = buildUnnamed115(); 155 o.conversion = buildUnnamed116();
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 checkUnnamed115(o.conversion); 165 checkUnnamed116(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 buildUnnamed116() { 234 buildUnnamed117() {
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 checkUnnamed116(core.List<api.ReportFiles> o) { 241 checkUnnamed117(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 buildUnnamed117() { 247 buildUnnamed118() {
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 checkUnnamed117(core.List<api.ReportRow> o) { 254 checkUnnamed118(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 = buildUnnamed116(); 265 o.files = buildUnnamed117();
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 = buildUnnamed117(); 271 o.rows = buildUnnamed118();
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 checkUnnamed116(o.files); 282 checkUnnamed117(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 checkUnnamed117(o.rows); 288 checkUnnamed118(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++;
299 if (buildCounterReportApiColumnSpec < 3) { 299 if (buildCounterReportApiColumnSpec < 3) {
300 o.columnName = "foo"; 300 o.columnName = "foo";
301 o.customDimensionName = "foo"; 301 o.customDimensionName = "foo";
302 o.customMetricName = "foo";
302 o.endDate = "foo"; 303 o.endDate = "foo";
303 o.groupByColumn = true; 304 o.groupByColumn = true;
304 o.headerText = "foo"; 305 o.headerText = "foo";
305 o.platformSource = "foo"; 306 o.platformSource = "foo";
306 o.savedColumnName = "foo"; 307 o.savedColumnName = "foo";
307 o.startDate = "foo"; 308 o.startDate = "foo";
308 } 309 }
309 buildCounterReportApiColumnSpec--; 310 buildCounterReportApiColumnSpec--;
310 return o; 311 return o;
311 } 312 }
312 313
313 checkReportApiColumnSpec(api.ReportApiColumnSpec o) { 314 checkReportApiColumnSpec(api.ReportApiColumnSpec o) {
314 buildCounterReportApiColumnSpec++; 315 buildCounterReportApiColumnSpec++;
315 if (buildCounterReportApiColumnSpec < 3) { 316 if (buildCounterReportApiColumnSpec < 3) {
316 unittest.expect(o.columnName, unittest.equals('foo')); 317 unittest.expect(o.columnName, unittest.equals('foo'));
317 unittest.expect(o.customDimensionName, unittest.equals('foo')); 318 unittest.expect(o.customDimensionName, unittest.equals('foo'));
319 unittest.expect(o.customMetricName, unittest.equals('foo'));
318 unittest.expect(o.endDate, unittest.equals('foo')); 320 unittest.expect(o.endDate, unittest.equals('foo'));
319 unittest.expect(o.groupByColumn, unittest.isTrue); 321 unittest.expect(o.groupByColumn, unittest.isTrue);
320 unittest.expect(o.headerText, unittest.equals('foo')); 322 unittest.expect(o.headerText, unittest.equals('foo'));
321 unittest.expect(o.platformSource, unittest.equals('foo')); 323 unittest.expect(o.platformSource, unittest.equals('foo'));
322 unittest.expect(o.savedColumnName, unittest.equals('foo')); 324 unittest.expect(o.savedColumnName, unittest.equals('foo'));
323 unittest.expect(o.startDate, unittest.equals('foo')); 325 unittest.expect(o.startDate, unittest.equals('foo'));
324 } 326 }
325 buildCounterReportApiColumnSpec--; 327 buildCounterReportApiColumnSpec--;
326 } 328 }
327 329
328 buildUnnamed118() { 330 buildUnnamed119() {
329 var o = new core.List<api.ReportApiColumnSpec>(); 331 var o = new core.List<api.ReportApiColumnSpec>();
330 o.add(buildReportApiColumnSpec()); 332 o.add(buildReportApiColumnSpec());
331 o.add(buildReportApiColumnSpec()); 333 o.add(buildReportApiColumnSpec());
332 return o; 334 return o;
333 } 335 }
334 336
335 checkUnnamed118(core.List<api.ReportApiColumnSpec> o) { 337 checkUnnamed119(core.List<api.ReportApiColumnSpec> o) {
336 unittest.expect(o, unittest.hasLength(2)); 338 unittest.expect(o, unittest.hasLength(2));
337 checkReportApiColumnSpec(o[0]); 339 checkReportApiColumnSpec(o[0]);
338 checkReportApiColumnSpec(o[1]); 340 checkReportApiColumnSpec(o[1]);
339 } 341 }
340 342
341 buildUnnamed119() { 343 buildUnnamed120() {
342 var o = new core.List<core.Object>(); 344 var o = new core.List<core.Object>();
343 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 345 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
344 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 346 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
345 return o; 347 return o;
346 } 348 }
347 349
348 checkUnnamed119(core.List<core.Object> o) { 350 checkUnnamed120(core.List<core.Object> o) {
349 unittest.expect(o, unittest.hasLength(2)); 351 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')); 352 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')); 353 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 } 354 }
353 355
354 core.int buildCounterReportRequestFilters = 0; 356 core.int buildCounterReportRequestFilters = 0;
355 buildReportRequestFilters() { 357 buildReportRequestFilters() {
356 var o = new api.ReportRequestFilters(); 358 var o = new api.ReportRequestFilters();
357 buildCounterReportRequestFilters++; 359 buildCounterReportRequestFilters++;
358 if (buildCounterReportRequestFilters < 3) { 360 if (buildCounterReportRequestFilters < 3) {
359 o.column = buildReportApiColumnSpec(); 361 o.column = buildReportApiColumnSpec();
360 o.operator = "foo"; 362 o.operator = "foo";
361 o.values = buildUnnamed119(); 363 o.values = buildUnnamed120();
362 } 364 }
363 buildCounterReportRequestFilters--; 365 buildCounterReportRequestFilters--;
364 return o; 366 return o;
365 } 367 }
366 368
367 checkReportRequestFilters(api.ReportRequestFilters o) { 369 checkReportRequestFilters(api.ReportRequestFilters o) {
368 buildCounterReportRequestFilters++; 370 buildCounterReportRequestFilters++;
369 if (buildCounterReportRequestFilters < 3) { 371 if (buildCounterReportRequestFilters < 3) {
370 checkReportApiColumnSpec(o.column); 372 checkReportApiColumnSpec(o.column);
371 unittest.expect(o.operator, unittest.equals('foo')); 373 unittest.expect(o.operator, unittest.equals('foo'));
372 checkUnnamed119(o.values); 374 checkUnnamed120(o.values);
373 } 375 }
374 buildCounterReportRequestFilters--; 376 buildCounterReportRequestFilters--;
375 } 377 }
376 378
377 buildUnnamed120() { 379 buildUnnamed121() {
378 var o = new core.List<api.ReportRequestFilters>(); 380 var o = new core.List<api.ReportRequestFilters>();
379 o.add(buildReportRequestFilters()); 381 o.add(buildReportRequestFilters());
380 o.add(buildReportRequestFilters()); 382 o.add(buildReportRequestFilters());
381 return o; 383 return o;
382 } 384 }
383 385
384 checkUnnamed120(core.List<api.ReportRequestFilters> o) { 386 checkUnnamed121(core.List<api.ReportRequestFilters> o) {
385 unittest.expect(o, unittest.hasLength(2)); 387 unittest.expect(o, unittest.hasLength(2));
386 checkReportRequestFilters(o[0]); 388 checkReportRequestFilters(o[0]);
387 checkReportRequestFilters(o[1]); 389 checkReportRequestFilters(o[1]);
388 } 390 }
389 391
390 core.int buildCounterReportRequestOrderBy = 0; 392 core.int buildCounterReportRequestOrderBy = 0;
391 buildReportRequestOrderBy() { 393 buildReportRequestOrderBy() {
392 var o = new api.ReportRequestOrderBy(); 394 var o = new api.ReportRequestOrderBy();
393 buildCounterReportRequestOrderBy++; 395 buildCounterReportRequestOrderBy++;
394 if (buildCounterReportRequestOrderBy < 3) { 396 if (buildCounterReportRequestOrderBy < 3) {
395 o.column = buildReportApiColumnSpec(); 397 o.column = buildReportApiColumnSpec();
396 o.sortOrder = "foo"; 398 o.sortOrder = "foo";
397 } 399 }
398 buildCounterReportRequestOrderBy--; 400 buildCounterReportRequestOrderBy--;
399 return o; 401 return o;
400 } 402 }
401 403
402 checkReportRequestOrderBy(api.ReportRequestOrderBy o) { 404 checkReportRequestOrderBy(api.ReportRequestOrderBy o) {
403 buildCounterReportRequestOrderBy++; 405 buildCounterReportRequestOrderBy++;
404 if (buildCounterReportRequestOrderBy < 3) { 406 if (buildCounterReportRequestOrderBy < 3) {
405 checkReportApiColumnSpec(o.column); 407 checkReportApiColumnSpec(o.column);
406 unittest.expect(o.sortOrder, unittest.equals('foo')); 408 unittest.expect(o.sortOrder, unittest.equals('foo'));
407 } 409 }
408 buildCounterReportRequestOrderBy--; 410 buildCounterReportRequestOrderBy--;
409 } 411 }
410 412
411 buildUnnamed121() { 413 buildUnnamed122() {
412 var o = new core.List<api.ReportRequestOrderBy>(); 414 var o = new core.List<api.ReportRequestOrderBy>();
413 o.add(buildReportRequestOrderBy()); 415 o.add(buildReportRequestOrderBy());
414 o.add(buildReportRequestOrderBy()); 416 o.add(buildReportRequestOrderBy());
415 return o; 417 return o;
416 } 418 }
417 419
418 checkUnnamed121(core.List<api.ReportRequestOrderBy> o) { 420 checkUnnamed122(core.List<api.ReportRequestOrderBy> o) {
419 unittest.expect(o, unittest.hasLength(2)); 421 unittest.expect(o, unittest.hasLength(2));
420 checkReportRequestOrderBy(o[0]); 422 checkReportRequestOrderBy(o[0]);
421 checkReportRequestOrderBy(o[1]); 423 checkReportRequestOrderBy(o[1]);
422 } 424 }
423 425
424 core.int buildCounterReportRequestReportScope = 0; 426 core.int buildCounterReportRequestReportScope = 0;
425 buildReportRequestReportScope() { 427 buildReportRequestReportScope() {
426 var o = new api.ReportRequestReportScope(); 428 var o = new api.ReportRequestReportScope();
427 buildCounterReportRequestReportScope++; 429 buildCounterReportRequestReportScope++;
428 if (buildCounterReportRequestReportScope < 3) { 430 if (buildCounterReportRequestReportScope < 3) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 unittest.expect(o.startDate, unittest.equals('foo')); 477 unittest.expect(o.startDate, unittest.equals('foo'));
476 } 478 }
477 buildCounterReportRequestTimeRange--; 479 buildCounterReportRequestTimeRange--;
478 } 480 }
479 481
480 core.int buildCounterReportRequest = 0; 482 core.int buildCounterReportRequest = 0;
481 buildReportRequest() { 483 buildReportRequest() {
482 var o = new api.ReportRequest(); 484 var o = new api.ReportRequest();
483 buildCounterReportRequest++; 485 buildCounterReportRequest++;
484 if (buildCounterReportRequest < 3) { 486 if (buildCounterReportRequest < 3) {
485 o.columns = buildUnnamed118(); 487 o.columns = buildUnnamed119();
486 o.downloadFormat = "foo"; 488 o.downloadFormat = "foo";
487 o.filters = buildUnnamed120(); 489 o.filters = buildUnnamed121();
488 o.includeDeletedEntities = true; 490 o.includeDeletedEntities = true;
489 o.includeRemovedEntities = true; 491 o.includeRemovedEntities = true;
490 o.maxRowsPerFile = 42; 492 o.maxRowsPerFile = 42;
491 o.orderBy = buildUnnamed121(); 493 o.orderBy = buildUnnamed122();
492 o.reportScope = buildReportRequestReportScope(); 494 o.reportScope = buildReportRequestReportScope();
493 o.reportType = "foo"; 495 o.reportType = "foo";
494 o.rowCount = 42; 496 o.rowCount = 42;
495 o.startRow = 42; 497 o.startRow = 42;
496 o.statisticsCurrency = "foo"; 498 o.statisticsCurrency = "foo";
497 o.timeRange = buildReportRequestTimeRange(); 499 o.timeRange = buildReportRequestTimeRange();
498 o.verifySingleTimeZone = true; 500 o.verifySingleTimeZone = true;
499 } 501 }
500 buildCounterReportRequest--; 502 buildCounterReportRequest--;
501 return o; 503 return o;
502 } 504 }
503 505
504 checkReportRequest(api.ReportRequest o) { 506 checkReportRequest(api.ReportRequest o) {
505 buildCounterReportRequest++; 507 buildCounterReportRequest++;
506 if (buildCounterReportRequest < 3) { 508 if (buildCounterReportRequest < 3) {
507 checkUnnamed118(o.columns); 509 checkUnnamed119(o.columns);
508 unittest.expect(o.downloadFormat, unittest.equals('foo')); 510 unittest.expect(o.downloadFormat, unittest.equals('foo'));
509 checkUnnamed120(o.filters); 511 checkUnnamed121(o.filters);
510 unittest.expect(o.includeDeletedEntities, unittest.isTrue); 512 unittest.expect(o.includeDeletedEntities, unittest.isTrue);
511 unittest.expect(o.includeRemovedEntities, unittest.isTrue); 513 unittest.expect(o.includeRemovedEntities, unittest.isTrue);
512 unittest.expect(o.maxRowsPerFile, unittest.equals(42)); 514 unittest.expect(o.maxRowsPerFile, unittest.equals(42));
513 checkUnnamed121(o.orderBy); 515 checkUnnamed122(o.orderBy);
514 checkReportRequestReportScope(o.reportScope); 516 checkReportRequestReportScope(o.reportScope);
515 unittest.expect(o.reportType, unittest.equals('foo')); 517 unittest.expect(o.reportType, unittest.equals('foo'));
516 unittest.expect(o.rowCount, unittest.equals(42)); 518 unittest.expect(o.rowCount, unittest.equals(42));
517 unittest.expect(o.startRow, unittest.equals(42)); 519 unittest.expect(o.startRow, unittest.equals(42));
518 unittest.expect(o.statisticsCurrency, unittest.equals('foo')); 520 unittest.expect(o.statisticsCurrency, unittest.equals('foo'));
519 checkReportRequestTimeRange(o.timeRange); 521 checkReportRequestTimeRange(o.timeRange);
520 unittest.expect(o.verifySingleTimeZone, unittest.isTrue); 522 unittest.expect(o.verifySingleTimeZone, unittest.isTrue);
521 } 523 }
522 buildCounterReportRequest--; 524 buildCounterReportRequest--;
523 } 525 }
(...skipping 27 matching lines...) Expand all
551 checkSavedColumn(api.SavedColumn o) { 553 checkSavedColumn(api.SavedColumn o) {
552 buildCounterSavedColumn++; 554 buildCounterSavedColumn++;
553 if (buildCounterSavedColumn < 3) { 555 if (buildCounterSavedColumn < 3) {
554 unittest.expect(o.kind, unittest.equals('foo')); 556 unittest.expect(o.kind, unittest.equals('foo'));
555 unittest.expect(o.savedColumnName, unittest.equals('foo')); 557 unittest.expect(o.savedColumnName, unittest.equals('foo'));
556 unittest.expect(o.type, unittest.equals('foo')); 558 unittest.expect(o.type, unittest.equals('foo'));
557 } 559 }
558 buildCounterSavedColumn--; 560 buildCounterSavedColumn--;
559 } 561 }
560 562
561 buildUnnamed122() { 563 buildUnnamed123() {
562 var o = new core.List<api.SavedColumn>(); 564 var o = new core.List<api.SavedColumn>();
563 o.add(buildSavedColumn()); 565 o.add(buildSavedColumn());
564 o.add(buildSavedColumn()); 566 o.add(buildSavedColumn());
565 return o; 567 return o;
566 } 568 }
567 569
568 checkUnnamed122(core.List<api.SavedColumn> o) { 570 checkUnnamed123(core.List<api.SavedColumn> o) {
569 unittest.expect(o, unittest.hasLength(2)); 571 unittest.expect(o, unittest.hasLength(2));
570 checkSavedColumn(o[0]); 572 checkSavedColumn(o[0]);
571 checkSavedColumn(o[1]); 573 checkSavedColumn(o[1]);
572 } 574 }
573 575
574 core.int buildCounterSavedColumnList = 0; 576 core.int buildCounterSavedColumnList = 0;
575 buildSavedColumnList() { 577 buildSavedColumnList() {
576 var o = new api.SavedColumnList(); 578 var o = new api.SavedColumnList();
577 buildCounterSavedColumnList++; 579 buildCounterSavedColumnList++;
578 if (buildCounterSavedColumnList < 3) { 580 if (buildCounterSavedColumnList < 3) {
579 o.items = buildUnnamed122(); 581 o.items = buildUnnamed123();
580 o.kind = "foo"; 582 o.kind = "foo";
581 } 583 }
582 buildCounterSavedColumnList--; 584 buildCounterSavedColumnList--;
583 return o; 585 return o;
584 } 586 }
585 587
586 checkSavedColumnList(api.SavedColumnList o) { 588 checkSavedColumnList(api.SavedColumnList o) {
587 buildCounterSavedColumnList++; 589 buildCounterSavedColumnList++;
588 if (buildCounterSavedColumnList < 3) { 590 if (buildCounterSavedColumnList < 3) {
589 checkUnnamed122(o.items); 591 checkUnnamed123(o.items);
590 unittest.expect(o.kind, unittest.equals('foo')); 592 unittest.expect(o.kind, unittest.equals('foo'));
591 } 593 }
592 buildCounterSavedColumnList--; 594 buildCounterSavedColumnList--;
593 } 595 }
594 596
595 buildUnnamed123() { 597 buildUnnamed124() {
596 var o = new core.List<api.Availability>(); 598 var o = new core.List<api.Availability>();
597 o.add(buildAvailability()); 599 o.add(buildAvailability());
598 o.add(buildAvailability()); 600 o.add(buildAvailability());
599 return o; 601 return o;
600 } 602 }
601 603
602 checkUnnamed123(core.List<api.Availability> o) { 604 checkUnnamed124(core.List<api.Availability> o) {
603 unittest.expect(o, unittest.hasLength(2)); 605 unittest.expect(o, unittest.hasLength(2));
604 checkAvailability(o[0]); 606 checkAvailability(o[0]);
605 checkAvailability(o[1]); 607 checkAvailability(o[1]);
606 } 608 }
607 609
608 core.int buildCounterUpdateAvailabilityRequest = 0; 610 core.int buildCounterUpdateAvailabilityRequest = 0;
609 buildUpdateAvailabilityRequest() { 611 buildUpdateAvailabilityRequest() {
610 var o = new api.UpdateAvailabilityRequest(); 612 var o = new api.UpdateAvailabilityRequest();
611 buildCounterUpdateAvailabilityRequest++; 613 buildCounterUpdateAvailabilityRequest++;
612 if (buildCounterUpdateAvailabilityRequest < 3) { 614 if (buildCounterUpdateAvailabilityRequest < 3) {
613 o.availabilities = buildUnnamed123(); 615 o.availabilities = buildUnnamed124();
614 } 616 }
615 buildCounterUpdateAvailabilityRequest--; 617 buildCounterUpdateAvailabilityRequest--;
616 return o; 618 return o;
617 } 619 }
618 620
619 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { 621 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) {
620 buildCounterUpdateAvailabilityRequest++; 622 buildCounterUpdateAvailabilityRequest++;
621 if (buildCounterUpdateAvailabilityRequest < 3) { 623 if (buildCounterUpdateAvailabilityRequest < 3) {
622 checkUnnamed123(o.availabilities); 624 checkUnnamed124(o.availabilities);
623 } 625 }
624 buildCounterUpdateAvailabilityRequest--; 626 buildCounterUpdateAvailabilityRequest--;
625 } 627 }
626 628
627 buildUnnamed124() { 629 buildUnnamed125() {
628 var o = new core.List<api.Availability>(); 630 var o = new core.List<api.Availability>();
629 o.add(buildAvailability()); 631 o.add(buildAvailability());
630 o.add(buildAvailability()); 632 o.add(buildAvailability());
631 return o; 633 return o;
632 } 634 }
633 635
634 checkUnnamed124(core.List<api.Availability> o) { 636 checkUnnamed125(core.List<api.Availability> o) {
635 unittest.expect(o, unittest.hasLength(2)); 637 unittest.expect(o, unittest.hasLength(2));
636 checkAvailability(o[0]); 638 checkAvailability(o[0]);
637 checkAvailability(o[1]); 639 checkAvailability(o[1]);
638 } 640 }
639 641
640 core.int buildCounterUpdateAvailabilityResponse = 0; 642 core.int buildCounterUpdateAvailabilityResponse = 0;
641 buildUpdateAvailabilityResponse() { 643 buildUpdateAvailabilityResponse() {
642 var o = new api.UpdateAvailabilityResponse(); 644 var o = new api.UpdateAvailabilityResponse();
643 buildCounterUpdateAvailabilityResponse++; 645 buildCounterUpdateAvailabilityResponse++;
644 if (buildCounterUpdateAvailabilityResponse < 3) { 646 if (buildCounterUpdateAvailabilityResponse < 3) {
645 o.availabilities = buildUnnamed124(); 647 o.availabilities = buildUnnamed125();
646 } 648 }
647 buildCounterUpdateAvailabilityResponse--; 649 buildCounterUpdateAvailabilityResponse--;
648 return o; 650 return o;
649 } 651 }
650 652
651 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { 653 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) {
652 buildCounterUpdateAvailabilityResponse++; 654 buildCounterUpdateAvailabilityResponse++;
653 if (buildCounterUpdateAvailabilityResponse < 3) { 655 if (buildCounterUpdateAvailabilityResponse < 3) {
654 checkUnnamed124(o.availabilities); 656 checkUnnamed125(o.availabilities);
655 } 657 }
656 buildCounterUpdateAvailabilityResponse--; 658 buildCounterUpdateAvailabilityResponse--;
657 } 659 }
658 660
659 661
660 main() { 662 main() {
661 unittest.group("obj-schema-Availability", () { 663 unittest.group("obj-schema-Availability", () {
662 unittest.test("to-json--from-json", () { 664 unittest.test("to-json--from-json", () {
663 var o = buildAvailability(); 665 var o = buildAvailability();
664 var od = new api.Availability.fromJson(o.toJson()); 666 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) { 1389 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S avedColumnList response) {
1388 checkSavedColumnList(response); 1390 checkSavedColumnList(response);
1389 }))); 1391 })));
1390 }); 1392 });
1391 1393
1392 }); 1394 });
1393 1395
1394 1396
1395 } 1397 }
1396 1398
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