OLD | NEW |
1 library googleapis.dfareporting.v1_3.test; | 1 library googleapis.dfareporting.v1_3.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; |
11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
14 | 14 |
15 import 'package:googleapis/dfareporting/v1_3.dart' as api; | 15 import 'package:googleapis/dfareporting/v1_3.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed211() { | 19 buildUnnamed214() { |
20 var o = new core.List<api.DimensionValue>(); | 20 var o = new core.List<api.DimensionValue>(); |
21 o.add(buildDimensionValue()); | 21 o.add(buildDimensionValue()); |
22 o.add(buildDimensionValue()); | 22 o.add(buildDimensionValue()); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed211(core.List<api.DimensionValue> o) { | 26 checkUnnamed214(core.List<api.DimensionValue> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 checkDimensionValue(o[0]); | 28 checkDimensionValue(o[0]); |
29 checkDimensionValue(o[1]); | 29 checkDimensionValue(o[1]); |
30 } | 30 } |
31 | 31 |
32 buildUnnamed212() { | 32 buildUnnamed215() { |
33 var o = new core.List<core.String>(); | 33 var o = new core.List<core.String>(); |
34 o.add("foo"); | 34 o.add("foo"); |
35 o.add("foo"); | 35 o.add("foo"); |
36 return o; | 36 return o; |
37 } | 37 } |
38 | 38 |
39 checkUnnamed212(core.List<core.String> o) { | 39 checkUnnamed215(core.List<core.String> o) { |
40 unittest.expect(o, unittest.hasLength(2)); | 40 unittest.expect(o, unittest.hasLength(2)); |
41 unittest.expect(o[0], unittest.equals('foo')); | 41 unittest.expect(o[0], unittest.equals('foo')); |
42 unittest.expect(o[1], unittest.equals('foo')); | 42 unittest.expect(o[1], unittest.equals('foo')); |
43 } | 43 } |
44 | 44 |
45 core.int buildCounterActivities = 0; | 45 core.int buildCounterActivities = 0; |
46 buildActivities() { | 46 buildActivities() { |
47 var o = new api.Activities(); | 47 var o = new api.Activities(); |
48 buildCounterActivities++; | 48 buildCounterActivities++; |
49 if (buildCounterActivities < 3) { | 49 if (buildCounterActivities < 3) { |
50 o.filters = buildUnnamed211(); | 50 o.filters = buildUnnamed214(); |
51 o.kind = "foo"; | 51 o.kind = "foo"; |
52 o.metricNames = buildUnnamed212(); | 52 o.metricNames = buildUnnamed215(); |
53 } | 53 } |
54 buildCounterActivities--; | 54 buildCounterActivities--; |
55 return o; | 55 return o; |
56 } | 56 } |
57 | 57 |
58 checkActivities(api.Activities o) { | 58 checkActivities(api.Activities o) { |
59 buildCounterActivities++; | 59 buildCounterActivities++; |
60 if (buildCounterActivities < 3) { | 60 if (buildCounterActivities < 3) { |
61 checkUnnamed211(o.filters); | 61 checkUnnamed214(o.filters); |
62 unittest.expect(o.kind, unittest.equals('foo')); | 62 unittest.expect(o.kind, unittest.equals('foo')); |
63 checkUnnamed212(o.metricNames); | 63 checkUnnamed215(o.metricNames); |
64 } | 64 } |
65 buildCounterActivities--; | 65 buildCounterActivities--; |
66 } | 66 } |
67 | 67 |
68 core.int buildCounterCompatibleFields = 0; | 68 core.int buildCounterCompatibleFields = 0; |
69 buildCompatibleFields() { | 69 buildCompatibleFields() { |
70 var o = new api.CompatibleFields(); | 70 var o = new api.CompatibleFields(); |
71 buildCounterCompatibleFields++; | 71 buildCounterCompatibleFields++; |
72 if (buildCounterCompatibleFields < 3) { | 72 if (buildCounterCompatibleFields < 3) { |
73 o.crossDimensionReachReportCompatibleFields = buildCrossDimensionReachReport
CompatibleFields(); | 73 o.crossDimensionReachReportCompatibleFields = buildCrossDimensionReachReport
CompatibleFields(); |
(...skipping 13 matching lines...) Expand all Loading... |
87 checkCrossDimensionReachReportCompatibleFields(o.crossDimensionReachReportCo
mpatibleFields); | 87 checkCrossDimensionReachReportCompatibleFields(o.crossDimensionReachReportCo
mpatibleFields); |
88 checkFloodlightReportCompatibleFields(o.floodlightReportCompatibleFields); | 88 checkFloodlightReportCompatibleFields(o.floodlightReportCompatibleFields); |
89 unittest.expect(o.kind, unittest.equals('foo')); | 89 unittest.expect(o.kind, unittest.equals('foo')); |
90 checkPathToConversionReportCompatibleFields(o.pathToConversionReportCompatib
leFields); | 90 checkPathToConversionReportCompatibleFields(o.pathToConversionReportCompatib
leFields); |
91 checkReachReportCompatibleFields(o.reachReportCompatibleFields); | 91 checkReachReportCompatibleFields(o.reachReportCompatibleFields); |
92 checkReportCompatibleFields(o.reportCompatibleFields); | 92 checkReportCompatibleFields(o.reportCompatibleFields); |
93 } | 93 } |
94 buildCounterCompatibleFields--; | 94 buildCounterCompatibleFields--; |
95 } | 95 } |
96 | 96 |
97 buildUnnamed213() { | 97 buildUnnamed216() { |
98 var o = new core.List<api.Dimension>(); | 98 var o = new core.List<api.Dimension>(); |
99 o.add(buildDimension()); | 99 o.add(buildDimension()); |
100 o.add(buildDimension()); | 100 o.add(buildDimension()); |
101 return o; | 101 return o; |
102 } | 102 } |
103 | 103 |
104 checkUnnamed213(core.List<api.Dimension> o) { | 104 checkUnnamed216(core.List<api.Dimension> o) { |
105 unittest.expect(o, unittest.hasLength(2)); | 105 unittest.expect(o, unittest.hasLength(2)); |
106 checkDimension(o[0]); | 106 checkDimension(o[0]); |
107 checkDimension(o[1]); | 107 checkDimension(o[1]); |
108 } | 108 } |
109 | 109 |
110 buildUnnamed214() { | 110 buildUnnamed217() { |
111 var o = new core.List<api.Dimension>(); | 111 var o = new core.List<api.Dimension>(); |
112 o.add(buildDimension()); | 112 o.add(buildDimension()); |
113 o.add(buildDimension()); | 113 o.add(buildDimension()); |
114 return o; | 114 return o; |
115 } | 115 } |
116 | 116 |
117 checkUnnamed214(core.List<api.Dimension> o) { | 117 checkUnnamed217(core.List<api.Dimension> o) { |
118 unittest.expect(o, unittest.hasLength(2)); | 118 unittest.expect(o, unittest.hasLength(2)); |
119 checkDimension(o[0]); | 119 checkDimension(o[0]); |
120 checkDimension(o[1]); | 120 checkDimension(o[1]); |
121 } | 121 } |
122 | 122 |
123 buildUnnamed215() { | 123 buildUnnamed218() { |
124 var o = new core.List<api.Metric>(); | 124 var o = new core.List<api.Metric>(); |
125 o.add(buildMetric()); | 125 o.add(buildMetric()); |
126 o.add(buildMetric()); | 126 o.add(buildMetric()); |
127 return o; | 127 return o; |
128 } | 128 } |
129 | 129 |
130 checkUnnamed215(core.List<api.Metric> o) { | 130 checkUnnamed218(core.List<api.Metric> o) { |
131 unittest.expect(o, unittest.hasLength(2)); | 131 unittest.expect(o, unittest.hasLength(2)); |
132 checkMetric(o[0]); | 132 checkMetric(o[0]); |
133 checkMetric(o[1]); | 133 checkMetric(o[1]); |
134 } | 134 } |
135 | 135 |
136 buildUnnamed216() { | 136 buildUnnamed219() { |
137 var o = new core.List<api.Metric>(); | 137 var o = new core.List<api.Metric>(); |
138 o.add(buildMetric()); | 138 o.add(buildMetric()); |
139 o.add(buildMetric()); | 139 o.add(buildMetric()); |
140 return o; | 140 return o; |
141 } | 141 } |
142 | 142 |
143 checkUnnamed216(core.List<api.Metric> o) { | 143 checkUnnamed219(core.List<api.Metric> o) { |
144 unittest.expect(o, unittest.hasLength(2)); | 144 unittest.expect(o, unittest.hasLength(2)); |
145 checkMetric(o[0]); | 145 checkMetric(o[0]); |
146 checkMetric(o[1]); | 146 checkMetric(o[1]); |
147 } | 147 } |
148 | 148 |
149 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; | 149 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; |
150 buildCrossDimensionReachReportCompatibleFields() { | 150 buildCrossDimensionReachReportCompatibleFields() { |
151 var o = new api.CrossDimensionReachReportCompatibleFields(); | 151 var o = new api.CrossDimensionReachReportCompatibleFields(); |
152 buildCounterCrossDimensionReachReportCompatibleFields++; | 152 buildCounterCrossDimensionReachReportCompatibleFields++; |
153 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { | 153 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { |
154 o.breakdown = buildUnnamed213(); | 154 o.breakdown = buildUnnamed216(); |
155 o.dimensionFilters = buildUnnamed214(); | 155 o.dimensionFilters = buildUnnamed217(); |
156 o.kind = "foo"; | 156 o.kind = "foo"; |
157 o.metrics = buildUnnamed215(); | 157 o.metrics = buildUnnamed218(); |
158 o.overlapMetrics = buildUnnamed216(); | 158 o.overlapMetrics = buildUnnamed219(); |
159 } | 159 } |
160 buildCounterCrossDimensionReachReportCompatibleFields--; | 160 buildCounterCrossDimensionReachReportCompatibleFields--; |
161 return o; | 161 return o; |
162 } | 162 } |
163 | 163 |
164 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp
atibleFields o) { | 164 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp
atibleFields o) { |
165 buildCounterCrossDimensionReachReportCompatibleFields++; | 165 buildCounterCrossDimensionReachReportCompatibleFields++; |
166 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { | 166 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { |
167 checkUnnamed213(o.breakdown); | 167 checkUnnamed216(o.breakdown); |
168 checkUnnamed214(o.dimensionFilters); | 168 checkUnnamed217(o.dimensionFilters); |
169 unittest.expect(o.kind, unittest.equals('foo')); | 169 unittest.expect(o.kind, unittest.equals('foo')); |
170 checkUnnamed215(o.metrics); | 170 checkUnnamed218(o.metrics); |
171 checkUnnamed216(o.overlapMetrics); | 171 checkUnnamed219(o.overlapMetrics); |
172 } | 172 } |
173 buildCounterCrossDimensionReachReportCompatibleFields--; | 173 buildCounterCrossDimensionReachReportCompatibleFields--; |
174 } | 174 } |
175 | 175 |
176 buildUnnamed217() { | 176 buildUnnamed220() { |
177 var o = new core.List<api.DimensionValue>(); | 177 var o = new core.List<api.DimensionValue>(); |
178 o.add(buildDimensionValue()); | 178 o.add(buildDimensionValue()); |
179 o.add(buildDimensionValue()); | 179 o.add(buildDimensionValue()); |
180 return o; | 180 return o; |
181 } | 181 } |
182 | 182 |
183 checkUnnamed217(core.List<api.DimensionValue> o) { | 183 checkUnnamed220(core.List<api.DimensionValue> o) { |
184 unittest.expect(o, unittest.hasLength(2)); | 184 unittest.expect(o, unittest.hasLength(2)); |
185 checkDimensionValue(o[0]); | 185 checkDimensionValue(o[0]); |
186 checkDimensionValue(o[1]); | 186 checkDimensionValue(o[1]); |
187 } | 187 } |
188 | 188 |
189 core.int buildCounterCustomRichMediaEvents = 0; | 189 core.int buildCounterCustomRichMediaEvents = 0; |
190 buildCustomRichMediaEvents() { | 190 buildCustomRichMediaEvents() { |
191 var o = new api.CustomRichMediaEvents(); | 191 var o = new api.CustomRichMediaEvents(); |
192 buildCounterCustomRichMediaEvents++; | 192 buildCounterCustomRichMediaEvents++; |
193 if (buildCounterCustomRichMediaEvents < 3) { | 193 if (buildCounterCustomRichMediaEvents < 3) { |
194 o.filteredEventIds = buildUnnamed217(); | 194 o.filteredEventIds = buildUnnamed220(); |
195 o.kind = "foo"; | 195 o.kind = "foo"; |
196 } | 196 } |
197 buildCounterCustomRichMediaEvents--; | 197 buildCounterCustomRichMediaEvents--; |
198 return o; | 198 return o; |
199 } | 199 } |
200 | 200 |
201 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { | 201 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { |
202 buildCounterCustomRichMediaEvents++; | 202 buildCounterCustomRichMediaEvents++; |
203 if (buildCounterCustomRichMediaEvents < 3) { | 203 if (buildCounterCustomRichMediaEvents < 3) { |
204 checkUnnamed217(o.filteredEventIds); | 204 checkUnnamed220(o.filteredEventIds); |
205 unittest.expect(o.kind, unittest.equals('foo')); | 205 unittest.expect(o.kind, unittest.equals('foo')); |
206 } | 206 } |
207 buildCounterCustomRichMediaEvents--; | 207 buildCounterCustomRichMediaEvents--; |
208 } | 208 } |
209 | 209 |
210 core.int buildCounterDateRange = 0; | 210 core.int buildCounterDateRange = 0; |
211 buildDateRange() { | 211 buildDateRange() { |
212 var o = new api.DateRange(); | 212 var o = new api.DateRange(); |
213 buildCounterDateRange++; | 213 buildCounterDateRange++; |
214 if (buildCounterDateRange < 3) { | 214 if (buildCounterDateRange < 3) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 unittest.expect(o.dimensionName, unittest.equals('foo')); | 298 unittest.expect(o.dimensionName, unittest.equals('foo')); |
299 unittest.expect(o.etag, unittest.equals('foo')); | 299 unittest.expect(o.etag, unittest.equals('foo')); |
300 unittest.expect(o.id, unittest.equals('foo')); | 300 unittest.expect(o.id, unittest.equals('foo')); |
301 unittest.expect(o.kind, unittest.equals('foo')); | 301 unittest.expect(o.kind, unittest.equals('foo')); |
302 unittest.expect(o.matchType, unittest.equals('foo')); | 302 unittest.expect(o.matchType, unittest.equals('foo')); |
303 unittest.expect(o.value, unittest.equals('foo')); | 303 unittest.expect(o.value, unittest.equals('foo')); |
304 } | 304 } |
305 buildCounterDimensionValue--; | 305 buildCounterDimensionValue--; |
306 } | 306 } |
307 | 307 |
308 buildUnnamed218() { | 308 buildUnnamed221() { |
309 var o = new core.List<api.DimensionValue>(); | 309 var o = new core.List<api.DimensionValue>(); |
310 o.add(buildDimensionValue()); | 310 o.add(buildDimensionValue()); |
311 o.add(buildDimensionValue()); | 311 o.add(buildDimensionValue()); |
312 return o; | 312 return o; |
313 } | 313 } |
314 | 314 |
315 checkUnnamed218(core.List<api.DimensionValue> o) { | 315 checkUnnamed221(core.List<api.DimensionValue> o) { |
316 unittest.expect(o, unittest.hasLength(2)); | 316 unittest.expect(o, unittest.hasLength(2)); |
317 checkDimensionValue(o[0]); | 317 checkDimensionValue(o[0]); |
318 checkDimensionValue(o[1]); | 318 checkDimensionValue(o[1]); |
319 } | 319 } |
320 | 320 |
321 core.int buildCounterDimensionValueList = 0; | 321 core.int buildCounterDimensionValueList = 0; |
322 buildDimensionValueList() { | 322 buildDimensionValueList() { |
323 var o = new api.DimensionValueList(); | 323 var o = new api.DimensionValueList(); |
324 buildCounterDimensionValueList++; | 324 buildCounterDimensionValueList++; |
325 if (buildCounterDimensionValueList < 3) { | 325 if (buildCounterDimensionValueList < 3) { |
326 o.etag = "foo"; | 326 o.etag = "foo"; |
327 o.items = buildUnnamed218(); | 327 o.items = buildUnnamed221(); |
328 o.kind = "foo"; | 328 o.kind = "foo"; |
329 o.nextPageToken = "foo"; | 329 o.nextPageToken = "foo"; |
330 } | 330 } |
331 buildCounterDimensionValueList--; | 331 buildCounterDimensionValueList--; |
332 return o; | 332 return o; |
333 } | 333 } |
334 | 334 |
335 checkDimensionValueList(api.DimensionValueList o) { | 335 checkDimensionValueList(api.DimensionValueList o) { |
336 buildCounterDimensionValueList++; | 336 buildCounterDimensionValueList++; |
337 if (buildCounterDimensionValueList < 3) { | 337 if (buildCounterDimensionValueList < 3) { |
338 unittest.expect(o.etag, unittest.equals('foo')); | 338 unittest.expect(o.etag, unittest.equals('foo')); |
339 checkUnnamed218(o.items); | 339 checkUnnamed221(o.items); |
340 unittest.expect(o.kind, unittest.equals('foo')); | 340 unittest.expect(o.kind, unittest.equals('foo')); |
341 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 341 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
342 } | 342 } |
343 buildCounterDimensionValueList--; | 343 buildCounterDimensionValueList--; |
344 } | 344 } |
345 | 345 |
346 buildUnnamed219() { | 346 buildUnnamed222() { |
347 var o = new core.List<api.DimensionFilter>(); | 347 var o = new core.List<api.DimensionFilter>(); |
348 o.add(buildDimensionFilter()); | 348 o.add(buildDimensionFilter()); |
349 o.add(buildDimensionFilter()); | 349 o.add(buildDimensionFilter()); |
350 return o; | 350 return o; |
351 } | 351 } |
352 | 352 |
353 checkUnnamed219(core.List<api.DimensionFilter> o) { | 353 checkUnnamed222(core.List<api.DimensionFilter> o) { |
354 unittest.expect(o, unittest.hasLength(2)); | 354 unittest.expect(o, unittest.hasLength(2)); |
355 checkDimensionFilter(o[0]); | 355 checkDimensionFilter(o[0]); |
356 checkDimensionFilter(o[1]); | 356 checkDimensionFilter(o[1]); |
357 } | 357 } |
358 | 358 |
359 core.int buildCounterDimensionValueRequest = 0; | 359 core.int buildCounterDimensionValueRequest = 0; |
360 buildDimensionValueRequest() { | 360 buildDimensionValueRequest() { |
361 var o = new api.DimensionValueRequest(); | 361 var o = new api.DimensionValueRequest(); |
362 buildCounterDimensionValueRequest++; | 362 buildCounterDimensionValueRequest++; |
363 if (buildCounterDimensionValueRequest < 3) { | 363 if (buildCounterDimensionValueRequest < 3) { |
364 o.dimensionName = "foo"; | 364 o.dimensionName = "foo"; |
365 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 365 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
366 o.filters = buildUnnamed219(); | 366 o.filters = buildUnnamed222(); |
367 o.kind = "foo"; | 367 o.kind = "foo"; |
368 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 368 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
369 } | 369 } |
370 buildCounterDimensionValueRequest--; | 370 buildCounterDimensionValueRequest--; |
371 return o; | 371 return o; |
372 } | 372 } |
373 | 373 |
374 checkDimensionValueRequest(api.DimensionValueRequest o) { | 374 checkDimensionValueRequest(api.DimensionValueRequest o) { |
375 buildCounterDimensionValueRequest++; | 375 buildCounterDimensionValueRequest++; |
376 if (buildCounterDimensionValueRequest < 3) { | 376 if (buildCounterDimensionValueRequest < 3) { |
377 unittest.expect(o.dimensionName, unittest.equals('foo')); | 377 unittest.expect(o.dimensionName, unittest.equals('foo')); |
378 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 378 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
379 checkUnnamed219(o.filters); | 379 checkUnnamed222(o.filters); |
380 unittest.expect(o.kind, unittest.equals('foo')); | 380 unittest.expect(o.kind, unittest.equals('foo')); |
381 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 381 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
382 } | 382 } |
383 buildCounterDimensionValueRequest--; | 383 buildCounterDimensionValueRequest--; |
384 } | 384 } |
385 | 385 |
386 core.int buildCounterFileUrls = 0; | 386 core.int buildCounterFileUrls = 0; |
387 buildFileUrls() { | 387 buildFileUrls() { |
388 var o = new api.FileUrls(); | 388 var o = new api.FileUrls(); |
389 buildCounterFileUrls++; | 389 buildCounterFileUrls++; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 unittest.expect(o.id, unittest.equals('foo')); | 434 unittest.expect(o.id, unittest.equals('foo')); |
435 unittest.expect(o.kind, unittest.equals('foo')); | 435 unittest.expect(o.kind, unittest.equals('foo')); |
436 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 436 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
437 unittest.expect(o.reportId, unittest.equals('foo')); | 437 unittest.expect(o.reportId, unittest.equals('foo')); |
438 unittest.expect(o.status, unittest.equals('foo')); | 438 unittest.expect(o.status, unittest.equals('foo')); |
439 checkFileUrls(o.urls); | 439 checkFileUrls(o.urls); |
440 } | 440 } |
441 buildCounterFile--; | 441 buildCounterFile--; |
442 } | 442 } |
443 | 443 |
444 buildUnnamed220() { | 444 buildUnnamed223() { |
445 var o = new core.List<api.File>(); | 445 var o = new core.List<api.File>(); |
446 o.add(buildFile()); | 446 o.add(buildFile()); |
447 o.add(buildFile()); | 447 o.add(buildFile()); |
448 return o; | 448 return o; |
449 } | 449 } |
450 | 450 |
451 checkUnnamed220(core.List<api.File> o) { | 451 checkUnnamed223(core.List<api.File> o) { |
452 unittest.expect(o, unittest.hasLength(2)); | 452 unittest.expect(o, unittest.hasLength(2)); |
453 checkFile(o[0]); | 453 checkFile(o[0]); |
454 checkFile(o[1]); | 454 checkFile(o[1]); |
455 } | 455 } |
456 | 456 |
457 core.int buildCounterFileList = 0; | 457 core.int buildCounterFileList = 0; |
458 buildFileList() { | 458 buildFileList() { |
459 var o = new api.FileList(); | 459 var o = new api.FileList(); |
460 buildCounterFileList++; | 460 buildCounterFileList++; |
461 if (buildCounterFileList < 3) { | 461 if (buildCounterFileList < 3) { |
462 o.etag = "foo"; | 462 o.etag = "foo"; |
463 o.items = buildUnnamed220(); | 463 o.items = buildUnnamed223(); |
464 o.kind = "foo"; | 464 o.kind = "foo"; |
465 o.nextPageToken = "foo"; | 465 o.nextPageToken = "foo"; |
466 } | 466 } |
467 buildCounterFileList--; | 467 buildCounterFileList--; |
468 return o; | 468 return o; |
469 } | 469 } |
470 | 470 |
471 checkFileList(api.FileList o) { | 471 checkFileList(api.FileList o) { |
472 buildCounterFileList++; | 472 buildCounterFileList++; |
473 if (buildCounterFileList < 3) { | 473 if (buildCounterFileList < 3) { |
474 unittest.expect(o.etag, unittest.equals('foo')); | 474 unittest.expect(o.etag, unittest.equals('foo')); |
475 checkUnnamed220(o.items); | 475 checkUnnamed223(o.items); |
476 unittest.expect(o.kind, unittest.equals('foo')); | 476 unittest.expect(o.kind, unittest.equals('foo')); |
477 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 477 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
478 } | 478 } |
479 buildCounterFileList--; | 479 buildCounterFileList--; |
480 } | 480 } |
481 | 481 |
482 buildUnnamed221() { | 482 buildUnnamed224() { |
483 var o = new core.List<api.Dimension>(); | 483 var o = new core.List<api.Dimension>(); |
484 o.add(buildDimension()); | 484 o.add(buildDimension()); |
485 o.add(buildDimension()); | 485 o.add(buildDimension()); |
486 return o; | 486 return o; |
487 } | 487 } |
488 | 488 |
489 checkUnnamed221(core.List<api.Dimension> o) { | 489 checkUnnamed224(core.List<api.Dimension> o) { |
490 unittest.expect(o, unittest.hasLength(2)); | 490 unittest.expect(o, unittest.hasLength(2)); |
491 checkDimension(o[0]); | 491 checkDimension(o[0]); |
492 checkDimension(o[1]); | 492 checkDimension(o[1]); |
493 } | 493 } |
494 | 494 |
495 buildUnnamed222() { | 495 buildUnnamed225() { |
496 var o = new core.List<api.Dimension>(); | 496 var o = new core.List<api.Dimension>(); |
497 o.add(buildDimension()); | 497 o.add(buildDimension()); |
498 o.add(buildDimension()); | 498 o.add(buildDimension()); |
499 return o; | 499 return o; |
500 } | 500 } |
501 | 501 |
502 checkUnnamed222(core.List<api.Dimension> o) { | 502 checkUnnamed225(core.List<api.Dimension> o) { |
503 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
504 checkDimension(o[0]); | 504 checkDimension(o[0]); |
505 checkDimension(o[1]); | 505 checkDimension(o[1]); |
506 } | 506 } |
507 | 507 |
508 buildUnnamed223() { | 508 buildUnnamed226() { |
509 var o = new core.List<api.Metric>(); | 509 var o = new core.List<api.Metric>(); |
510 o.add(buildMetric()); | 510 o.add(buildMetric()); |
511 o.add(buildMetric()); | 511 o.add(buildMetric()); |
512 return o; | 512 return o; |
513 } | 513 } |
514 | 514 |
515 checkUnnamed223(core.List<api.Metric> o) { | 515 checkUnnamed226(core.List<api.Metric> o) { |
516 unittest.expect(o, unittest.hasLength(2)); | 516 unittest.expect(o, unittest.hasLength(2)); |
517 checkMetric(o[0]); | 517 checkMetric(o[0]); |
518 checkMetric(o[1]); | 518 checkMetric(o[1]); |
519 } | 519 } |
520 | 520 |
521 core.int buildCounterFloodlightReportCompatibleFields = 0; | 521 core.int buildCounterFloodlightReportCompatibleFields = 0; |
522 buildFloodlightReportCompatibleFields() { | 522 buildFloodlightReportCompatibleFields() { |
523 var o = new api.FloodlightReportCompatibleFields(); | 523 var o = new api.FloodlightReportCompatibleFields(); |
524 buildCounterFloodlightReportCompatibleFields++; | 524 buildCounterFloodlightReportCompatibleFields++; |
525 if (buildCounterFloodlightReportCompatibleFields < 3) { | 525 if (buildCounterFloodlightReportCompatibleFields < 3) { |
526 o.dimensionFilters = buildUnnamed221(); | 526 o.dimensionFilters = buildUnnamed224(); |
527 o.dimensions = buildUnnamed222(); | 527 o.dimensions = buildUnnamed225(); |
528 o.kind = "foo"; | 528 o.kind = "foo"; |
529 o.metrics = buildUnnamed223(); | 529 o.metrics = buildUnnamed226(); |
530 } | 530 } |
531 buildCounterFloodlightReportCompatibleFields--; | 531 buildCounterFloodlightReportCompatibleFields--; |
532 return o; | 532 return o; |
533 } | 533 } |
534 | 534 |
535 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { | 535 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { |
536 buildCounterFloodlightReportCompatibleFields++; | 536 buildCounterFloodlightReportCompatibleFields++; |
537 if (buildCounterFloodlightReportCompatibleFields < 3) { | 537 if (buildCounterFloodlightReportCompatibleFields < 3) { |
538 checkUnnamed221(o.dimensionFilters); | 538 checkUnnamed224(o.dimensionFilters); |
539 checkUnnamed222(o.dimensions); | 539 checkUnnamed225(o.dimensions); |
540 unittest.expect(o.kind, unittest.equals('foo')); | 540 unittest.expect(o.kind, unittest.equals('foo')); |
541 checkUnnamed223(o.metrics); | 541 checkUnnamed226(o.metrics); |
542 } | 542 } |
543 buildCounterFloodlightReportCompatibleFields--; | 543 buildCounterFloodlightReportCompatibleFields--; |
544 } | 544 } |
545 | 545 |
546 core.int buildCounterMetric = 0; | 546 core.int buildCounterMetric = 0; |
547 buildMetric() { | 547 buildMetric() { |
548 var o = new api.Metric(); | 548 var o = new api.Metric(); |
549 buildCounterMetric++; | 549 buildCounterMetric++; |
550 if (buildCounterMetric < 3) { | 550 if (buildCounterMetric < 3) { |
551 o.kind = "foo"; | 551 o.kind = "foo"; |
552 o.name = "foo"; | 552 o.name = "foo"; |
553 } | 553 } |
554 buildCounterMetric--; | 554 buildCounterMetric--; |
555 return o; | 555 return o; |
556 } | 556 } |
557 | 557 |
558 checkMetric(api.Metric o) { | 558 checkMetric(api.Metric o) { |
559 buildCounterMetric++; | 559 buildCounterMetric++; |
560 if (buildCounterMetric < 3) { | 560 if (buildCounterMetric < 3) { |
561 unittest.expect(o.kind, unittest.equals('foo')); | 561 unittest.expect(o.kind, unittest.equals('foo')); |
562 unittest.expect(o.name, unittest.equals('foo')); | 562 unittest.expect(o.name, unittest.equals('foo')); |
563 } | 563 } |
564 buildCounterMetric--; | 564 buildCounterMetric--; |
565 } | 565 } |
566 | 566 |
567 buildUnnamed224() { | |
568 var o = new core.List<api.Dimension>(); | |
569 o.add(buildDimension()); | |
570 o.add(buildDimension()); | |
571 return o; | |
572 } | |
573 | |
574 checkUnnamed224(core.List<api.Dimension> o) { | |
575 unittest.expect(o, unittest.hasLength(2)); | |
576 checkDimension(o[0]); | |
577 checkDimension(o[1]); | |
578 } | |
579 | |
580 buildUnnamed225() { | |
581 var o = new core.List<api.Dimension>(); | |
582 o.add(buildDimension()); | |
583 o.add(buildDimension()); | |
584 return o; | |
585 } | |
586 | |
587 checkUnnamed225(core.List<api.Dimension> o) { | |
588 unittest.expect(o, unittest.hasLength(2)); | |
589 checkDimension(o[0]); | |
590 checkDimension(o[1]); | |
591 } | |
592 | |
593 buildUnnamed226() { | |
594 var o = new core.List<api.Metric>(); | |
595 o.add(buildMetric()); | |
596 o.add(buildMetric()); | |
597 return o; | |
598 } | |
599 | |
600 checkUnnamed226(core.List<api.Metric> o) { | |
601 unittest.expect(o, unittest.hasLength(2)); | |
602 checkMetric(o[0]); | |
603 checkMetric(o[1]); | |
604 } | |
605 | |
606 buildUnnamed227() { | 567 buildUnnamed227() { |
607 var o = new core.List<api.Dimension>(); | 568 var o = new core.List<api.Dimension>(); |
608 o.add(buildDimension()); | 569 o.add(buildDimension()); |
609 o.add(buildDimension()); | 570 o.add(buildDimension()); |
610 return o; | 571 return o; |
611 } | 572 } |
612 | 573 |
613 checkUnnamed227(core.List<api.Dimension> o) { | 574 checkUnnamed227(core.List<api.Dimension> o) { |
614 unittest.expect(o, unittest.hasLength(2)); | 575 unittest.expect(o, unittest.hasLength(2)); |
615 checkDimension(o[0]); | 576 checkDimension(o[0]); |
616 checkDimension(o[1]); | 577 checkDimension(o[1]); |
| 578 } |
| 579 |
| 580 buildUnnamed228() { |
| 581 var o = new core.List<api.Dimension>(); |
| 582 o.add(buildDimension()); |
| 583 o.add(buildDimension()); |
| 584 return o; |
| 585 } |
| 586 |
| 587 checkUnnamed228(core.List<api.Dimension> o) { |
| 588 unittest.expect(o, unittest.hasLength(2)); |
| 589 checkDimension(o[0]); |
| 590 checkDimension(o[1]); |
| 591 } |
| 592 |
| 593 buildUnnamed229() { |
| 594 var o = new core.List<api.Metric>(); |
| 595 o.add(buildMetric()); |
| 596 o.add(buildMetric()); |
| 597 return o; |
| 598 } |
| 599 |
| 600 checkUnnamed229(core.List<api.Metric> o) { |
| 601 unittest.expect(o, unittest.hasLength(2)); |
| 602 checkMetric(o[0]); |
| 603 checkMetric(o[1]); |
| 604 } |
| 605 |
| 606 buildUnnamed230() { |
| 607 var o = new core.List<api.Dimension>(); |
| 608 o.add(buildDimension()); |
| 609 o.add(buildDimension()); |
| 610 return o; |
| 611 } |
| 612 |
| 613 checkUnnamed230(core.List<api.Dimension> o) { |
| 614 unittest.expect(o, unittest.hasLength(2)); |
| 615 checkDimension(o[0]); |
| 616 checkDimension(o[1]); |
617 } | 617 } |
618 | 618 |
619 core.int buildCounterPathToConversionReportCompatibleFields = 0; | 619 core.int buildCounterPathToConversionReportCompatibleFields = 0; |
620 buildPathToConversionReportCompatibleFields() { | 620 buildPathToConversionReportCompatibleFields() { |
621 var o = new api.PathToConversionReportCompatibleFields(); | 621 var o = new api.PathToConversionReportCompatibleFields(); |
622 buildCounterPathToConversionReportCompatibleFields++; | 622 buildCounterPathToConversionReportCompatibleFields++; |
623 if (buildCounterPathToConversionReportCompatibleFields < 3) { | 623 if (buildCounterPathToConversionReportCompatibleFields < 3) { |
624 o.conversionDimensions = buildUnnamed224(); | 624 o.conversionDimensions = buildUnnamed227(); |
625 o.customFloodlightVariables = buildUnnamed225(); | 625 o.customFloodlightVariables = buildUnnamed228(); |
626 o.kind = "foo"; | 626 o.kind = "foo"; |
627 o.metrics = buildUnnamed226(); | 627 o.metrics = buildUnnamed229(); |
628 o.perInteractionDimensions = buildUnnamed227(); | 628 o.perInteractionDimensions = buildUnnamed230(); |
629 } | 629 } |
630 buildCounterPathToConversionReportCompatibleFields--; | 630 buildCounterPathToConversionReportCompatibleFields--; |
631 return o; | 631 return o; |
632 } | 632 } |
633 | 633 |
634 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible
Fields o) { | 634 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible
Fields o) { |
635 buildCounterPathToConversionReportCompatibleFields++; | 635 buildCounterPathToConversionReportCompatibleFields++; |
636 if (buildCounterPathToConversionReportCompatibleFields < 3) { | 636 if (buildCounterPathToConversionReportCompatibleFields < 3) { |
637 checkUnnamed224(o.conversionDimensions); | 637 checkUnnamed227(o.conversionDimensions); |
638 checkUnnamed225(o.customFloodlightVariables); | 638 checkUnnamed228(o.customFloodlightVariables); |
639 unittest.expect(o.kind, unittest.equals('foo')); | 639 unittest.expect(o.kind, unittest.equals('foo')); |
640 checkUnnamed226(o.metrics); | 640 checkUnnamed229(o.metrics); |
641 checkUnnamed227(o.perInteractionDimensions); | 641 checkUnnamed230(o.perInteractionDimensions); |
642 } | 642 } |
643 buildCounterPathToConversionReportCompatibleFields--; | 643 buildCounterPathToConversionReportCompatibleFields--; |
644 } | 644 } |
645 | 645 |
646 buildUnnamed228() { | 646 buildUnnamed231() { |
647 var o = new core.List<api.Dimension>(); | 647 var o = new core.List<api.Dimension>(); |
648 o.add(buildDimension()); | 648 o.add(buildDimension()); |
649 o.add(buildDimension()); | 649 o.add(buildDimension()); |
650 return o; | 650 return o; |
651 } | 651 } |
652 | 652 |
653 checkUnnamed228(core.List<api.Dimension> o) { | 653 checkUnnamed231(core.List<api.Dimension> o) { |
654 unittest.expect(o, unittest.hasLength(2)); | 654 unittest.expect(o, unittest.hasLength(2)); |
655 checkDimension(o[0]); | 655 checkDimension(o[0]); |
656 checkDimension(o[1]); | 656 checkDimension(o[1]); |
657 } | 657 } |
658 | 658 |
659 buildUnnamed229() { | 659 buildUnnamed232() { |
660 var o = new core.List<api.Dimension>(); | 660 var o = new core.List<api.Dimension>(); |
661 o.add(buildDimension()); | 661 o.add(buildDimension()); |
662 o.add(buildDimension()); | 662 o.add(buildDimension()); |
663 return o; | 663 return o; |
664 } | 664 } |
665 | 665 |
666 checkUnnamed229(core.List<api.Dimension> o) { | 666 checkUnnamed232(core.List<api.Dimension> o) { |
667 unittest.expect(o, unittest.hasLength(2)); | 667 unittest.expect(o, unittest.hasLength(2)); |
668 checkDimension(o[0]); | 668 checkDimension(o[0]); |
669 checkDimension(o[1]); | 669 checkDimension(o[1]); |
670 } | 670 } |
671 | 671 |
672 buildUnnamed230() { | 672 buildUnnamed233() { |
673 var o = new core.List<api.Metric>(); | 673 var o = new core.List<api.Metric>(); |
674 o.add(buildMetric()); | 674 o.add(buildMetric()); |
675 o.add(buildMetric()); | 675 o.add(buildMetric()); |
676 return o; | 676 return o; |
677 } | 677 } |
678 | 678 |
679 checkUnnamed230(core.List<api.Metric> o) { | 679 checkUnnamed233(core.List<api.Metric> o) { |
680 unittest.expect(o, unittest.hasLength(2)); | 680 unittest.expect(o, unittest.hasLength(2)); |
681 checkMetric(o[0]); | 681 checkMetric(o[0]); |
682 checkMetric(o[1]); | 682 checkMetric(o[1]); |
683 } | 683 } |
684 | 684 |
685 buildUnnamed231() { | 685 buildUnnamed234() { |
686 var o = new core.List<api.Metric>(); | 686 var o = new core.List<api.Metric>(); |
687 o.add(buildMetric()); | 687 o.add(buildMetric()); |
688 o.add(buildMetric()); | 688 o.add(buildMetric()); |
689 return o; | 689 return o; |
690 } | 690 } |
691 | 691 |
692 checkUnnamed231(core.List<api.Metric> o) { | 692 checkUnnamed234(core.List<api.Metric> o) { |
693 unittest.expect(o, unittest.hasLength(2)); | 693 unittest.expect(o, unittest.hasLength(2)); |
694 checkMetric(o[0]); | 694 checkMetric(o[0]); |
695 checkMetric(o[1]); | 695 checkMetric(o[1]); |
696 } | 696 } |
697 | 697 |
698 buildUnnamed232() { | 698 buildUnnamed235() { |
699 var o = new core.List<api.Metric>(); | 699 var o = new core.List<api.Metric>(); |
700 o.add(buildMetric()); | 700 o.add(buildMetric()); |
701 o.add(buildMetric()); | 701 o.add(buildMetric()); |
702 return o; | 702 return o; |
703 } | 703 } |
704 | 704 |
705 checkUnnamed232(core.List<api.Metric> o) { | 705 checkUnnamed235(core.List<api.Metric> o) { |
706 unittest.expect(o, unittest.hasLength(2)); | 706 unittest.expect(o, unittest.hasLength(2)); |
707 checkMetric(o[0]); | 707 checkMetric(o[0]); |
708 checkMetric(o[1]); | 708 checkMetric(o[1]); |
709 } | 709 } |
710 | 710 |
711 core.int buildCounterReachReportCompatibleFields = 0; | 711 core.int buildCounterReachReportCompatibleFields = 0; |
712 buildReachReportCompatibleFields() { | 712 buildReachReportCompatibleFields() { |
713 var o = new api.ReachReportCompatibleFields(); | 713 var o = new api.ReachReportCompatibleFields(); |
714 buildCounterReachReportCompatibleFields++; | 714 buildCounterReachReportCompatibleFields++; |
715 if (buildCounterReachReportCompatibleFields < 3) { | 715 if (buildCounterReachReportCompatibleFields < 3) { |
716 o.dimensionFilters = buildUnnamed228(); | 716 o.dimensionFilters = buildUnnamed231(); |
717 o.dimensions = buildUnnamed229(); | 717 o.dimensions = buildUnnamed232(); |
718 o.kind = "foo"; | 718 o.kind = "foo"; |
719 o.metrics = buildUnnamed230(); | 719 o.metrics = buildUnnamed233(); |
720 o.pivotedActivityMetrics = buildUnnamed231(); | 720 o.pivotedActivityMetrics = buildUnnamed234(); |
721 o.reachByFrequencyMetrics = buildUnnamed232(); | 721 o.reachByFrequencyMetrics = buildUnnamed235(); |
722 } | 722 } |
723 buildCounterReachReportCompatibleFields--; | 723 buildCounterReachReportCompatibleFields--; |
724 return o; | 724 return o; |
725 } | 725 } |
726 | 726 |
727 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { | 727 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { |
728 buildCounterReachReportCompatibleFields++; | 728 buildCounterReachReportCompatibleFields++; |
729 if (buildCounterReachReportCompatibleFields < 3) { | 729 if (buildCounterReachReportCompatibleFields < 3) { |
730 checkUnnamed228(o.dimensionFilters); | 730 checkUnnamed231(o.dimensionFilters); |
731 checkUnnamed229(o.dimensions); | 731 checkUnnamed232(o.dimensions); |
732 unittest.expect(o.kind, unittest.equals('foo')); | 732 unittest.expect(o.kind, unittest.equals('foo')); |
733 checkUnnamed230(o.metrics); | 733 checkUnnamed233(o.metrics); |
734 checkUnnamed231(o.pivotedActivityMetrics); | 734 checkUnnamed234(o.pivotedActivityMetrics); |
735 checkUnnamed232(o.reachByFrequencyMetrics); | 735 checkUnnamed235(o.reachByFrequencyMetrics); |
736 } | 736 } |
737 buildCounterReachReportCompatibleFields--; | 737 buildCounterReachReportCompatibleFields--; |
738 } | 738 } |
739 | 739 |
740 core.int buildCounterRecipient = 0; | 740 core.int buildCounterRecipient = 0; |
741 buildRecipient() { | 741 buildRecipient() { |
742 var o = new api.Recipient(); | 742 var o = new api.Recipient(); |
743 buildCounterRecipient++; | 743 buildCounterRecipient++; |
744 if (buildCounterRecipient < 3) { | 744 if (buildCounterRecipient < 3) { |
745 o.deliveryType = "foo"; | 745 o.deliveryType = "foo"; |
746 o.email = "foo"; | 746 o.email = "foo"; |
747 o.kind = "foo"; | 747 o.kind = "foo"; |
748 } | 748 } |
749 buildCounterRecipient--; | 749 buildCounterRecipient--; |
750 return o; | 750 return o; |
751 } | 751 } |
752 | 752 |
753 checkRecipient(api.Recipient o) { | 753 checkRecipient(api.Recipient o) { |
754 buildCounterRecipient++; | 754 buildCounterRecipient++; |
755 if (buildCounterRecipient < 3) { | 755 if (buildCounterRecipient < 3) { |
756 unittest.expect(o.deliveryType, unittest.equals('foo')); | 756 unittest.expect(o.deliveryType, unittest.equals('foo')); |
757 unittest.expect(o.email, unittest.equals('foo')); | 757 unittest.expect(o.email, unittest.equals('foo')); |
758 unittest.expect(o.kind, unittest.equals('foo')); | 758 unittest.expect(o.kind, unittest.equals('foo')); |
759 } | 759 } |
760 buildCounterRecipient--; | 760 buildCounterRecipient--; |
761 } | 761 } |
762 | 762 |
763 buildUnnamed233() { | 763 buildUnnamed236() { |
764 var o = new core.List<api.DimensionValue>(); | 764 var o = new core.List<api.DimensionValue>(); |
765 o.add(buildDimensionValue()); | 765 o.add(buildDimensionValue()); |
766 o.add(buildDimensionValue()); | 766 o.add(buildDimensionValue()); |
767 return o; | 767 return o; |
768 } | 768 } |
769 | 769 |
770 checkUnnamed233(core.List<api.DimensionValue> o) { | 770 checkUnnamed236(core.List<api.DimensionValue> o) { |
771 unittest.expect(o, unittest.hasLength(2)); | 771 unittest.expect(o, unittest.hasLength(2)); |
772 checkDimensionValue(o[0]); | 772 checkDimensionValue(o[0]); |
773 checkDimensionValue(o[1]); | 773 checkDimensionValue(o[1]); |
774 } | 774 } |
775 | 775 |
776 buildUnnamed234() { | 776 buildUnnamed237() { |
777 var o = new core.List<api.SortedDimension>(); | 777 var o = new core.List<api.SortedDimension>(); |
778 o.add(buildSortedDimension()); | 778 o.add(buildSortedDimension()); |
779 o.add(buildSortedDimension()); | 779 o.add(buildSortedDimension()); |
780 return o; | 780 return o; |
781 } | 781 } |
782 | 782 |
783 checkUnnamed234(core.List<api.SortedDimension> o) { | 783 checkUnnamed237(core.List<api.SortedDimension> o) { |
784 unittest.expect(o, unittest.hasLength(2)); | 784 unittest.expect(o, unittest.hasLength(2)); |
785 checkSortedDimension(o[0]); | 785 checkSortedDimension(o[0]); |
786 checkSortedDimension(o[1]); | 786 checkSortedDimension(o[1]); |
787 } | 787 } |
788 | 788 |
789 buildUnnamed235() { | 789 buildUnnamed238() { |
790 var o = new core.List<core.String>(); | 790 var o = new core.List<core.String>(); |
791 o.add("foo"); | 791 o.add("foo"); |
792 o.add("foo"); | 792 o.add("foo"); |
793 return o; | 793 return o; |
794 } | 794 } |
795 | 795 |
796 checkUnnamed235(core.List<core.String> o) { | 796 checkUnnamed238(core.List<core.String> o) { |
797 unittest.expect(o, unittest.hasLength(2)); | 797 unittest.expect(o, unittest.hasLength(2)); |
798 unittest.expect(o[0], unittest.equals('foo')); | 798 unittest.expect(o[0], unittest.equals('foo')); |
799 unittest.expect(o[1], unittest.equals('foo')); | 799 unittest.expect(o[1], unittest.equals('foo')); |
800 } | 800 } |
801 | 801 |
802 core.int buildCounterReportActiveGrpCriteria = 0; | 802 core.int buildCounterReportActiveGrpCriteria = 0; |
803 buildReportActiveGrpCriteria() { | 803 buildReportActiveGrpCriteria() { |
804 var o = new api.ReportActiveGrpCriteria(); | 804 var o = new api.ReportActiveGrpCriteria(); |
805 buildCounterReportActiveGrpCriteria++; | 805 buildCounterReportActiveGrpCriteria++; |
806 if (buildCounterReportActiveGrpCriteria < 3) { | 806 if (buildCounterReportActiveGrpCriteria < 3) { |
807 o.dateRange = buildDateRange(); | 807 o.dateRange = buildDateRange(); |
808 o.dimensionFilters = buildUnnamed233(); | 808 o.dimensionFilters = buildUnnamed236(); |
809 o.dimensions = buildUnnamed234(); | 809 o.dimensions = buildUnnamed237(); |
810 o.metricNames = buildUnnamed235(); | 810 o.metricNames = buildUnnamed238(); |
811 } | 811 } |
812 buildCounterReportActiveGrpCriteria--; | 812 buildCounterReportActiveGrpCriteria--; |
813 return o; | 813 return o; |
814 } | 814 } |
815 | 815 |
816 checkReportActiveGrpCriteria(api.ReportActiveGrpCriteria o) { | 816 checkReportActiveGrpCriteria(api.ReportActiveGrpCriteria o) { |
817 buildCounterReportActiveGrpCriteria++; | 817 buildCounterReportActiveGrpCriteria++; |
818 if (buildCounterReportActiveGrpCriteria < 3) { | 818 if (buildCounterReportActiveGrpCriteria < 3) { |
819 checkDateRange(o.dateRange); | 819 checkDateRange(o.dateRange); |
820 checkUnnamed233(o.dimensionFilters); | 820 checkUnnamed236(o.dimensionFilters); |
821 checkUnnamed234(o.dimensions); | 821 checkUnnamed237(o.dimensions); |
822 checkUnnamed235(o.metricNames); | 822 checkUnnamed238(o.metricNames); |
823 } | 823 } |
824 buildCounterReportActiveGrpCriteria--; | 824 buildCounterReportActiveGrpCriteria--; |
825 } | 825 } |
826 | 826 |
827 buildUnnamed236() { | 827 buildUnnamed239() { |
828 var o = new core.List<api.DimensionValue>(); | 828 var o = new core.List<api.DimensionValue>(); |
829 o.add(buildDimensionValue()); | 829 o.add(buildDimensionValue()); |
830 o.add(buildDimensionValue()); | 830 o.add(buildDimensionValue()); |
831 return o; | 831 return o; |
832 } | 832 } |
833 | 833 |
834 checkUnnamed236(core.List<api.DimensionValue> o) { | 834 checkUnnamed239(core.List<api.DimensionValue> o) { |
835 unittest.expect(o, unittest.hasLength(2)); | 835 unittest.expect(o, unittest.hasLength(2)); |
836 checkDimensionValue(o[0]); | 836 checkDimensionValue(o[0]); |
837 checkDimensionValue(o[1]); | 837 checkDimensionValue(o[1]); |
838 } | 838 } |
839 | 839 |
840 buildUnnamed237() { | 840 buildUnnamed240() { |
841 var o = new core.List<api.SortedDimension>(); | 841 var o = new core.List<api.SortedDimension>(); |
842 o.add(buildSortedDimension()); | 842 o.add(buildSortedDimension()); |
843 o.add(buildSortedDimension()); | 843 o.add(buildSortedDimension()); |
844 return o; | 844 return o; |
845 } | 845 } |
846 | 846 |
847 checkUnnamed237(core.List<api.SortedDimension> o) { | 847 checkUnnamed240(core.List<api.SortedDimension> o) { |
848 unittest.expect(o, unittest.hasLength(2)); | 848 unittest.expect(o, unittest.hasLength(2)); |
849 checkSortedDimension(o[0]); | 849 checkSortedDimension(o[0]); |
850 checkSortedDimension(o[1]); | 850 checkSortedDimension(o[1]); |
851 } | 851 } |
852 | 852 |
853 buildUnnamed238() { | 853 buildUnnamed241() { |
854 var o = new core.List<core.String>(); | 854 var o = new core.List<core.String>(); |
855 o.add("foo"); | 855 o.add("foo"); |
856 o.add("foo"); | 856 o.add("foo"); |
857 return o; | 857 return o; |
858 } | 858 } |
859 | 859 |
860 checkUnnamed238(core.List<core.String> o) { | 860 checkUnnamed241(core.List<core.String> o) { |
861 unittest.expect(o, unittest.hasLength(2)); | 861 unittest.expect(o, unittest.hasLength(2)); |
862 unittest.expect(o[0], unittest.equals('foo')); | 862 unittest.expect(o[0], unittest.equals('foo')); |
863 unittest.expect(o[1], unittest.equals('foo')); | 863 unittest.expect(o[1], unittest.equals('foo')); |
864 } | 864 } |
865 | 865 |
866 core.int buildCounterReportCriteria = 0; | 866 core.int buildCounterReportCriteria = 0; |
867 buildReportCriteria() { | 867 buildReportCriteria() { |
868 var o = new api.ReportCriteria(); | 868 var o = new api.ReportCriteria(); |
869 buildCounterReportCriteria++; | 869 buildCounterReportCriteria++; |
870 if (buildCounterReportCriteria < 3) { | 870 if (buildCounterReportCriteria < 3) { |
871 o.activities = buildActivities(); | 871 o.activities = buildActivities(); |
872 o.customRichMediaEvents = buildCustomRichMediaEvents(); | 872 o.customRichMediaEvents = buildCustomRichMediaEvents(); |
873 o.dateRange = buildDateRange(); | 873 o.dateRange = buildDateRange(); |
874 o.dimensionFilters = buildUnnamed236(); | 874 o.dimensionFilters = buildUnnamed239(); |
875 o.dimensions = buildUnnamed237(); | 875 o.dimensions = buildUnnamed240(); |
876 o.metricNames = buildUnnamed238(); | 876 o.metricNames = buildUnnamed241(); |
877 } | 877 } |
878 buildCounterReportCriteria--; | 878 buildCounterReportCriteria--; |
879 return o; | 879 return o; |
880 } | 880 } |
881 | 881 |
882 checkReportCriteria(api.ReportCriteria o) { | 882 checkReportCriteria(api.ReportCriteria o) { |
883 buildCounterReportCriteria++; | 883 buildCounterReportCriteria++; |
884 if (buildCounterReportCriteria < 3) { | 884 if (buildCounterReportCriteria < 3) { |
885 checkActivities(o.activities); | 885 checkActivities(o.activities); |
886 checkCustomRichMediaEvents(o.customRichMediaEvents); | 886 checkCustomRichMediaEvents(o.customRichMediaEvents); |
887 checkDateRange(o.dateRange); | 887 checkDateRange(o.dateRange); |
888 checkUnnamed236(o.dimensionFilters); | 888 checkUnnamed239(o.dimensionFilters); |
889 checkUnnamed237(o.dimensions); | 889 checkUnnamed240(o.dimensions); |
890 checkUnnamed238(o.metricNames); | 890 checkUnnamed241(o.metricNames); |
891 } | 891 } |
892 buildCounterReportCriteria--; | 892 buildCounterReportCriteria--; |
893 } | 893 } |
894 | 894 |
895 buildUnnamed239() { | 895 buildUnnamed242() { |
896 var o = new core.List<api.SortedDimension>(); | 896 var o = new core.List<api.SortedDimension>(); |
897 o.add(buildSortedDimension()); | 897 o.add(buildSortedDimension()); |
898 o.add(buildSortedDimension()); | 898 o.add(buildSortedDimension()); |
899 return o; | 899 return o; |
900 } | 900 } |
901 | 901 |
902 checkUnnamed239(core.List<api.SortedDimension> o) { | 902 checkUnnamed242(core.List<api.SortedDimension> o) { |
903 unittest.expect(o, unittest.hasLength(2)); | 903 unittest.expect(o, unittest.hasLength(2)); |
904 checkSortedDimension(o[0]); | 904 checkSortedDimension(o[0]); |
905 checkSortedDimension(o[1]); | 905 checkSortedDimension(o[1]); |
906 } | 906 } |
907 | 907 |
908 buildUnnamed240() { | 908 buildUnnamed243() { |
909 var o = new core.List<api.DimensionValue>(); | 909 var o = new core.List<api.DimensionValue>(); |
910 o.add(buildDimensionValue()); | 910 o.add(buildDimensionValue()); |
911 o.add(buildDimensionValue()); | 911 o.add(buildDimensionValue()); |
912 return o; | 912 return o; |
913 } | 913 } |
914 | 914 |
915 checkUnnamed240(core.List<api.DimensionValue> o) { | 915 checkUnnamed243(core.List<api.DimensionValue> o) { |
916 unittest.expect(o, unittest.hasLength(2)); | 916 unittest.expect(o, unittest.hasLength(2)); |
917 checkDimensionValue(o[0]); | 917 checkDimensionValue(o[0]); |
918 checkDimensionValue(o[1]); | 918 checkDimensionValue(o[1]); |
919 } | 919 } |
920 | 920 |
921 buildUnnamed241() { | 921 buildUnnamed244() { |
922 var o = new core.List<core.String>(); | 922 var o = new core.List<core.String>(); |
923 o.add("foo"); | 923 o.add("foo"); |
924 o.add("foo"); | 924 o.add("foo"); |
925 return o; | 925 return o; |
926 } | 926 } |
927 | 927 |
928 checkUnnamed241(core.List<core.String> o) { | 928 checkUnnamed244(core.List<core.String> o) { |
929 unittest.expect(o, unittest.hasLength(2)); | 929 unittest.expect(o, unittest.hasLength(2)); |
930 unittest.expect(o[0], unittest.equals('foo')); | 930 unittest.expect(o[0], unittest.equals('foo')); |
931 unittest.expect(o[1], unittest.equals('foo')); | 931 unittest.expect(o[1], unittest.equals('foo')); |
932 } | 932 } |
933 | 933 |
934 buildUnnamed242() { | 934 buildUnnamed245() { |
935 var o = new core.List<core.String>(); | 935 var o = new core.List<core.String>(); |
936 o.add("foo"); | 936 o.add("foo"); |
937 o.add("foo"); | 937 o.add("foo"); |
938 return o; | 938 return o; |
939 } | 939 } |
940 | 940 |
941 checkUnnamed242(core.List<core.String> o) { | 941 checkUnnamed245(core.List<core.String> o) { |
942 unittest.expect(o, unittest.hasLength(2)); | 942 unittest.expect(o, unittest.hasLength(2)); |
943 unittest.expect(o[0], unittest.equals('foo')); | 943 unittest.expect(o[0], unittest.equals('foo')); |
944 unittest.expect(o[1], unittest.equals('foo')); | 944 unittest.expect(o[1], unittest.equals('foo')); |
945 } | 945 } |
946 | 946 |
947 core.int buildCounterReportCrossDimensionReachCriteria = 0; | 947 core.int buildCounterReportCrossDimensionReachCriteria = 0; |
948 buildReportCrossDimensionReachCriteria() { | 948 buildReportCrossDimensionReachCriteria() { |
949 var o = new api.ReportCrossDimensionReachCriteria(); | 949 var o = new api.ReportCrossDimensionReachCriteria(); |
950 buildCounterReportCrossDimensionReachCriteria++; | 950 buildCounterReportCrossDimensionReachCriteria++; |
951 if (buildCounterReportCrossDimensionReachCriteria < 3) { | 951 if (buildCounterReportCrossDimensionReachCriteria < 3) { |
952 o.breakdown = buildUnnamed239(); | 952 o.breakdown = buildUnnamed242(); |
953 o.dateRange = buildDateRange(); | 953 o.dateRange = buildDateRange(); |
954 o.dimension = "foo"; | 954 o.dimension = "foo"; |
955 o.dimensionFilters = buildUnnamed240(); | 955 o.dimensionFilters = buildUnnamed243(); |
956 o.metricNames = buildUnnamed241(); | 956 o.metricNames = buildUnnamed244(); |
957 o.overlapMetricNames = buildUnnamed242(); | 957 o.overlapMetricNames = buildUnnamed245(); |
958 o.pivoted = true; | 958 o.pivoted = true; |
959 } | 959 } |
960 buildCounterReportCrossDimensionReachCriteria--; | 960 buildCounterReportCrossDimensionReachCriteria--; |
961 return o; | 961 return o; |
962 } | 962 } |
963 | 963 |
964 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o)
{ | 964 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o)
{ |
965 buildCounterReportCrossDimensionReachCriteria++; | 965 buildCounterReportCrossDimensionReachCriteria++; |
966 if (buildCounterReportCrossDimensionReachCriteria < 3) { | 966 if (buildCounterReportCrossDimensionReachCriteria < 3) { |
967 checkUnnamed239(o.breakdown); | 967 checkUnnamed242(o.breakdown); |
968 checkDateRange(o.dateRange); | 968 checkDateRange(o.dateRange); |
969 unittest.expect(o.dimension, unittest.equals('foo')); | 969 unittest.expect(o.dimension, unittest.equals('foo')); |
970 checkUnnamed240(o.dimensionFilters); | 970 checkUnnamed243(o.dimensionFilters); |
971 checkUnnamed241(o.metricNames); | 971 checkUnnamed244(o.metricNames); |
972 checkUnnamed242(o.overlapMetricNames); | 972 checkUnnamed245(o.overlapMetricNames); |
973 unittest.expect(o.pivoted, unittest.isTrue); | 973 unittest.expect(o.pivoted, unittest.isTrue); |
974 } | 974 } |
975 buildCounterReportCrossDimensionReachCriteria--; | 975 buildCounterReportCrossDimensionReachCriteria--; |
976 } | 976 } |
977 | 977 |
978 buildUnnamed243() { | 978 buildUnnamed246() { |
979 var o = new core.List<api.Recipient>(); | 979 var o = new core.List<api.Recipient>(); |
980 o.add(buildRecipient()); | 980 o.add(buildRecipient()); |
981 o.add(buildRecipient()); | 981 o.add(buildRecipient()); |
982 return o; | 982 return o; |
983 } | 983 } |
984 | 984 |
985 checkUnnamed243(core.List<api.Recipient> o) { | 985 checkUnnamed246(core.List<api.Recipient> o) { |
986 unittest.expect(o, unittest.hasLength(2)); | 986 unittest.expect(o, unittest.hasLength(2)); |
987 checkRecipient(o[0]); | 987 checkRecipient(o[0]); |
988 checkRecipient(o[1]); | 988 checkRecipient(o[1]); |
989 } | 989 } |
990 | 990 |
991 core.int buildCounterReportDelivery = 0; | 991 core.int buildCounterReportDelivery = 0; |
992 buildReportDelivery() { | 992 buildReportDelivery() { |
993 var o = new api.ReportDelivery(); | 993 var o = new api.ReportDelivery(); |
994 buildCounterReportDelivery++; | 994 buildCounterReportDelivery++; |
995 if (buildCounterReportDelivery < 3) { | 995 if (buildCounterReportDelivery < 3) { |
996 o.emailOwner = true; | 996 o.emailOwner = true; |
997 o.emailOwnerDeliveryType = "foo"; | 997 o.emailOwnerDeliveryType = "foo"; |
998 o.message = "foo"; | 998 o.message = "foo"; |
999 o.recipients = buildUnnamed243(); | 999 o.recipients = buildUnnamed246(); |
1000 } | 1000 } |
1001 buildCounterReportDelivery--; | 1001 buildCounterReportDelivery--; |
1002 return o; | 1002 return o; |
1003 } | 1003 } |
1004 | 1004 |
1005 checkReportDelivery(api.ReportDelivery o) { | 1005 checkReportDelivery(api.ReportDelivery o) { |
1006 buildCounterReportDelivery++; | 1006 buildCounterReportDelivery++; |
1007 if (buildCounterReportDelivery < 3) { | 1007 if (buildCounterReportDelivery < 3) { |
1008 unittest.expect(o.emailOwner, unittest.isTrue); | 1008 unittest.expect(o.emailOwner, unittest.isTrue); |
1009 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); | 1009 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); |
1010 unittest.expect(o.message, unittest.equals('foo')); | 1010 unittest.expect(o.message, unittest.equals('foo')); |
1011 checkUnnamed243(o.recipients); | 1011 checkUnnamed246(o.recipients); |
1012 } | 1012 } |
1013 buildCounterReportDelivery--; | 1013 buildCounterReportDelivery--; |
1014 } | 1014 } |
1015 | 1015 |
1016 buildUnnamed244() { | 1016 buildUnnamed247() { |
1017 var o = new core.List<api.DimensionValue>(); | 1017 var o = new core.List<api.DimensionValue>(); |
1018 o.add(buildDimensionValue()); | 1018 o.add(buildDimensionValue()); |
1019 o.add(buildDimensionValue()); | 1019 o.add(buildDimensionValue()); |
1020 return o; | 1020 return o; |
1021 } | 1021 } |
1022 | 1022 |
1023 checkUnnamed244(core.List<api.DimensionValue> o) { | 1023 checkUnnamed247(core.List<api.DimensionValue> o) { |
1024 unittest.expect(o, unittest.hasLength(2)); | 1024 unittest.expect(o, unittest.hasLength(2)); |
1025 checkDimensionValue(o[0]); | 1025 checkDimensionValue(o[0]); |
1026 checkDimensionValue(o[1]); | 1026 checkDimensionValue(o[1]); |
1027 } | 1027 } |
1028 | 1028 |
1029 buildUnnamed245() { | 1029 buildUnnamed248() { |
1030 var o = new core.List<api.DimensionValue>(); | 1030 var o = new core.List<api.DimensionValue>(); |
1031 o.add(buildDimensionValue()); | 1031 o.add(buildDimensionValue()); |
1032 o.add(buildDimensionValue()); | 1032 o.add(buildDimensionValue()); |
1033 return o; | 1033 return o; |
1034 } | 1034 } |
1035 | 1035 |
1036 checkUnnamed245(core.List<api.DimensionValue> o) { | 1036 checkUnnamed248(core.List<api.DimensionValue> o) { |
1037 unittest.expect(o, unittest.hasLength(2)); | 1037 unittest.expect(o, unittest.hasLength(2)); |
1038 checkDimensionValue(o[0]); | 1038 checkDimensionValue(o[0]); |
1039 checkDimensionValue(o[1]); | 1039 checkDimensionValue(o[1]); |
1040 } | 1040 } |
1041 | 1041 |
1042 buildUnnamed246() { | 1042 buildUnnamed249() { |
1043 var o = new core.List<api.SortedDimension>(); | 1043 var o = new core.List<api.SortedDimension>(); |
1044 o.add(buildSortedDimension()); | 1044 o.add(buildSortedDimension()); |
1045 o.add(buildSortedDimension()); | 1045 o.add(buildSortedDimension()); |
1046 return o; | 1046 return o; |
1047 } | 1047 } |
1048 | 1048 |
1049 checkUnnamed246(core.List<api.SortedDimension> o) { | 1049 checkUnnamed249(core.List<api.SortedDimension> o) { |
1050 unittest.expect(o, unittest.hasLength(2)); | 1050 unittest.expect(o, unittest.hasLength(2)); |
1051 checkSortedDimension(o[0]); | 1051 checkSortedDimension(o[0]); |
1052 checkSortedDimension(o[1]); | 1052 checkSortedDimension(o[1]); |
1053 } | 1053 } |
1054 | 1054 |
1055 buildUnnamed247() { | 1055 buildUnnamed250() { |
1056 var o = new core.List<core.String>(); | 1056 var o = new core.List<core.String>(); |
1057 o.add("foo"); | 1057 o.add("foo"); |
1058 o.add("foo"); | 1058 o.add("foo"); |
1059 return o; | 1059 return o; |
1060 } | 1060 } |
1061 | 1061 |
1062 checkUnnamed247(core.List<core.String> o) { | 1062 checkUnnamed250(core.List<core.String> o) { |
1063 unittest.expect(o, unittest.hasLength(2)); | 1063 unittest.expect(o, unittest.hasLength(2)); |
1064 unittest.expect(o[0], unittest.equals('foo')); | 1064 unittest.expect(o[0], unittest.equals('foo')); |
1065 unittest.expect(o[1], unittest.equals('foo')); | 1065 unittest.expect(o[1], unittest.equals('foo')); |
1066 } | 1066 } |
1067 | 1067 |
1068 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; | 1068 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; |
1069 buildReportFloodlightCriteriaReportProperties() { | 1069 buildReportFloodlightCriteriaReportProperties() { |
1070 var o = new api.ReportFloodlightCriteriaReportProperties(); | 1070 var o = new api.ReportFloodlightCriteriaReportProperties(); |
1071 buildCounterReportFloodlightCriteriaReportProperties++; | 1071 buildCounterReportFloodlightCriteriaReportProperties++; |
1072 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { | 1072 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { |
(...skipping 13 matching lines...) Expand all Loading... |
1086 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); | 1086 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); |
1087 } | 1087 } |
1088 buildCounterReportFloodlightCriteriaReportProperties--; | 1088 buildCounterReportFloodlightCriteriaReportProperties--; |
1089 } | 1089 } |
1090 | 1090 |
1091 core.int buildCounterReportFloodlightCriteria = 0; | 1091 core.int buildCounterReportFloodlightCriteria = 0; |
1092 buildReportFloodlightCriteria() { | 1092 buildReportFloodlightCriteria() { |
1093 var o = new api.ReportFloodlightCriteria(); | 1093 var o = new api.ReportFloodlightCriteria(); |
1094 buildCounterReportFloodlightCriteria++; | 1094 buildCounterReportFloodlightCriteria++; |
1095 if (buildCounterReportFloodlightCriteria < 3) { | 1095 if (buildCounterReportFloodlightCriteria < 3) { |
1096 o.customRichMediaEvents = buildUnnamed244(); | 1096 o.customRichMediaEvents = buildUnnamed247(); |
1097 o.dateRange = buildDateRange(); | 1097 o.dateRange = buildDateRange(); |
1098 o.dimensionFilters = buildUnnamed245(); | 1098 o.dimensionFilters = buildUnnamed248(); |
1099 o.dimensions = buildUnnamed246(); | 1099 o.dimensions = buildUnnamed249(); |
1100 o.floodlightConfigId = buildDimensionValue(); | 1100 o.floodlightConfigId = buildDimensionValue(); |
1101 o.metricNames = buildUnnamed247(); | 1101 o.metricNames = buildUnnamed250(); |
1102 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); | 1102 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); |
1103 } | 1103 } |
1104 buildCounterReportFloodlightCriteria--; | 1104 buildCounterReportFloodlightCriteria--; |
1105 return o; | 1105 return o; |
1106 } | 1106 } |
1107 | 1107 |
1108 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { | 1108 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { |
1109 buildCounterReportFloodlightCriteria++; | 1109 buildCounterReportFloodlightCriteria++; |
1110 if (buildCounterReportFloodlightCriteria < 3) { | 1110 if (buildCounterReportFloodlightCriteria < 3) { |
1111 checkUnnamed244(o.customRichMediaEvents); | 1111 checkUnnamed247(o.customRichMediaEvents); |
1112 checkDateRange(o.dateRange); | 1112 checkDateRange(o.dateRange); |
1113 checkUnnamed245(o.dimensionFilters); | 1113 checkUnnamed248(o.dimensionFilters); |
1114 checkUnnamed246(o.dimensions); | 1114 checkUnnamed249(o.dimensions); |
1115 checkDimensionValue(o.floodlightConfigId); | 1115 checkDimensionValue(o.floodlightConfigId); |
1116 checkUnnamed247(o.metricNames); | 1116 checkUnnamed250(o.metricNames); |
1117 checkReportFloodlightCriteriaReportProperties(o.reportProperties); | 1117 checkReportFloodlightCriteriaReportProperties(o.reportProperties); |
1118 } | 1118 } |
1119 buildCounterReportFloodlightCriteria--; | 1119 buildCounterReportFloodlightCriteria--; |
1120 } | 1120 } |
1121 | 1121 |
1122 buildUnnamed248() { | |
1123 var o = new core.List<api.DimensionValue>(); | |
1124 o.add(buildDimensionValue()); | |
1125 o.add(buildDimensionValue()); | |
1126 return o; | |
1127 } | |
1128 | |
1129 checkUnnamed248(core.List<api.DimensionValue> o) { | |
1130 unittest.expect(o, unittest.hasLength(2)); | |
1131 checkDimensionValue(o[0]); | |
1132 checkDimensionValue(o[1]); | |
1133 } | |
1134 | |
1135 buildUnnamed249() { | |
1136 var o = new core.List<api.SortedDimension>(); | |
1137 o.add(buildSortedDimension()); | |
1138 o.add(buildSortedDimension()); | |
1139 return o; | |
1140 } | |
1141 | |
1142 checkUnnamed249(core.List<api.SortedDimension> o) { | |
1143 unittest.expect(o, unittest.hasLength(2)); | |
1144 checkSortedDimension(o[0]); | |
1145 checkSortedDimension(o[1]); | |
1146 } | |
1147 | |
1148 buildUnnamed250() { | |
1149 var o = new core.List<api.SortedDimension>(); | |
1150 o.add(buildSortedDimension()); | |
1151 o.add(buildSortedDimension()); | |
1152 return o; | |
1153 } | |
1154 | |
1155 checkUnnamed250(core.List<api.SortedDimension> o) { | |
1156 unittest.expect(o, unittest.hasLength(2)); | |
1157 checkSortedDimension(o[0]); | |
1158 checkSortedDimension(o[1]); | |
1159 } | |
1160 | |
1161 buildUnnamed251() { | 1122 buildUnnamed251() { |
1162 var o = new core.List<api.DimensionValue>(); | 1123 var o = new core.List<api.DimensionValue>(); |
1163 o.add(buildDimensionValue()); | 1124 o.add(buildDimensionValue()); |
1164 o.add(buildDimensionValue()); | 1125 o.add(buildDimensionValue()); |
1165 return o; | 1126 return o; |
1166 } | 1127 } |
1167 | 1128 |
1168 checkUnnamed251(core.List<api.DimensionValue> o) { | 1129 checkUnnamed251(core.List<api.DimensionValue> o) { |
1169 unittest.expect(o, unittest.hasLength(2)); | 1130 unittest.expect(o, unittest.hasLength(2)); |
1170 checkDimensionValue(o[0]); | 1131 checkDimensionValue(o[0]); |
1171 checkDimensionValue(o[1]); | 1132 checkDimensionValue(o[1]); |
1172 } | 1133 } |
1173 | 1134 |
1174 buildUnnamed252() { | 1135 buildUnnamed252() { |
1175 var o = new core.List<core.String>(); | 1136 var o = new core.List<api.SortedDimension>(); |
1176 o.add("foo"); | 1137 o.add(buildSortedDimension()); |
1177 o.add("foo"); | 1138 o.add(buildSortedDimension()); |
1178 return o; | 1139 return o; |
1179 } | 1140 } |
1180 | 1141 |
1181 checkUnnamed252(core.List<core.String> o) { | 1142 checkUnnamed252(core.List<api.SortedDimension> o) { |
1182 unittest.expect(o, unittest.hasLength(2)); | 1143 unittest.expect(o, unittest.hasLength(2)); |
1183 unittest.expect(o[0], unittest.equals('foo')); | 1144 checkSortedDimension(o[0]); |
1184 unittest.expect(o[1], unittest.equals('foo')); | 1145 checkSortedDimension(o[1]); |
1185 } | 1146 } |
1186 | 1147 |
1187 buildUnnamed253() { | 1148 buildUnnamed253() { |
1188 var o = new core.List<api.SortedDimension>(); | 1149 var o = new core.List<api.SortedDimension>(); |
1189 o.add(buildSortedDimension()); | 1150 o.add(buildSortedDimension()); |
1190 o.add(buildSortedDimension()); | 1151 o.add(buildSortedDimension()); |
1191 return o; | 1152 return o; |
1192 } | 1153 } |
1193 | 1154 |
1194 checkUnnamed253(core.List<api.SortedDimension> o) { | 1155 checkUnnamed253(core.List<api.SortedDimension> o) { |
1195 unittest.expect(o, unittest.hasLength(2)); | 1156 unittest.expect(o, unittest.hasLength(2)); |
1196 checkSortedDimension(o[0]); | 1157 checkSortedDimension(o[0]); |
1197 checkSortedDimension(o[1]); | 1158 checkSortedDimension(o[1]); |
| 1159 } |
| 1160 |
| 1161 buildUnnamed254() { |
| 1162 var o = new core.List<api.DimensionValue>(); |
| 1163 o.add(buildDimensionValue()); |
| 1164 o.add(buildDimensionValue()); |
| 1165 return o; |
| 1166 } |
| 1167 |
| 1168 checkUnnamed254(core.List<api.DimensionValue> o) { |
| 1169 unittest.expect(o, unittest.hasLength(2)); |
| 1170 checkDimensionValue(o[0]); |
| 1171 checkDimensionValue(o[1]); |
| 1172 } |
| 1173 |
| 1174 buildUnnamed255() { |
| 1175 var o = new core.List<core.String>(); |
| 1176 o.add("foo"); |
| 1177 o.add("foo"); |
| 1178 return o; |
| 1179 } |
| 1180 |
| 1181 checkUnnamed255(core.List<core.String> o) { |
| 1182 unittest.expect(o, unittest.hasLength(2)); |
| 1183 unittest.expect(o[0], unittest.equals('foo')); |
| 1184 unittest.expect(o[1], unittest.equals('foo')); |
| 1185 } |
| 1186 |
| 1187 buildUnnamed256() { |
| 1188 var o = new core.List<api.SortedDimension>(); |
| 1189 o.add(buildSortedDimension()); |
| 1190 o.add(buildSortedDimension()); |
| 1191 return o; |
| 1192 } |
| 1193 |
| 1194 checkUnnamed256(core.List<api.SortedDimension> o) { |
| 1195 unittest.expect(o, unittest.hasLength(2)); |
| 1196 checkSortedDimension(o[0]); |
| 1197 checkSortedDimension(o[1]); |
1198 } | 1198 } |
1199 | 1199 |
1200 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; | 1200 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; |
1201 buildReportPathToConversionCriteriaReportProperties() { | 1201 buildReportPathToConversionCriteriaReportProperties() { |
1202 var o = new api.ReportPathToConversionCriteriaReportProperties(); | 1202 var o = new api.ReportPathToConversionCriteriaReportProperties(); |
1203 buildCounterReportPathToConversionCriteriaReportProperties++; | 1203 buildCounterReportPathToConversionCriteriaReportProperties++; |
1204 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { | 1204 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { |
1205 o.clicksLookbackWindow = 42; | 1205 o.clicksLookbackWindow = 42; |
1206 o.impressionsLookbackWindow = 42; | 1206 o.impressionsLookbackWindow = 42; |
1207 o.includeAttributedIPConversions = true; | 1207 o.includeAttributedIPConversions = true; |
(...skipping 22 matching lines...) Expand all Loading... |
1230 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); | 1230 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); |
1231 } | 1231 } |
1232 buildCounterReportPathToConversionCriteriaReportProperties--; | 1232 buildCounterReportPathToConversionCriteriaReportProperties--; |
1233 } | 1233 } |
1234 | 1234 |
1235 core.int buildCounterReportPathToConversionCriteria = 0; | 1235 core.int buildCounterReportPathToConversionCriteria = 0; |
1236 buildReportPathToConversionCriteria() { | 1236 buildReportPathToConversionCriteria() { |
1237 var o = new api.ReportPathToConversionCriteria(); | 1237 var o = new api.ReportPathToConversionCriteria(); |
1238 buildCounterReportPathToConversionCriteria++; | 1238 buildCounterReportPathToConversionCriteria++; |
1239 if (buildCounterReportPathToConversionCriteria < 3) { | 1239 if (buildCounterReportPathToConversionCriteria < 3) { |
1240 o.activityFilters = buildUnnamed248(); | 1240 o.activityFilters = buildUnnamed251(); |
1241 o.conversionDimensions = buildUnnamed249(); | 1241 o.conversionDimensions = buildUnnamed252(); |
1242 o.customFloodlightVariables = buildUnnamed250(); | 1242 o.customFloodlightVariables = buildUnnamed253(); |
1243 o.customRichMediaEvents = buildUnnamed251(); | 1243 o.customRichMediaEvents = buildUnnamed254(); |
1244 o.dateRange = buildDateRange(); | 1244 o.dateRange = buildDateRange(); |
1245 o.floodlightConfigId = buildDimensionValue(); | 1245 o.floodlightConfigId = buildDimensionValue(); |
1246 o.metricNames = buildUnnamed252(); | 1246 o.metricNames = buildUnnamed255(); |
1247 o.perInteractionDimensions = buildUnnamed253(); | 1247 o.perInteractionDimensions = buildUnnamed256(); |
1248 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); | 1248 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); |
1249 } | 1249 } |
1250 buildCounterReportPathToConversionCriteria--; | 1250 buildCounterReportPathToConversionCriteria--; |
1251 return o; | 1251 return o; |
1252 } | 1252 } |
1253 | 1253 |
1254 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { | 1254 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { |
1255 buildCounterReportPathToConversionCriteria++; | 1255 buildCounterReportPathToConversionCriteria++; |
1256 if (buildCounterReportPathToConversionCriteria < 3) { | 1256 if (buildCounterReportPathToConversionCriteria < 3) { |
1257 checkUnnamed248(o.activityFilters); | 1257 checkUnnamed251(o.activityFilters); |
1258 checkUnnamed249(o.conversionDimensions); | 1258 checkUnnamed252(o.conversionDimensions); |
1259 checkUnnamed250(o.customFloodlightVariables); | 1259 checkUnnamed253(o.customFloodlightVariables); |
1260 checkUnnamed251(o.customRichMediaEvents); | 1260 checkUnnamed254(o.customRichMediaEvents); |
1261 checkDateRange(o.dateRange); | 1261 checkDateRange(o.dateRange); |
1262 checkDimensionValue(o.floodlightConfigId); | 1262 checkDimensionValue(o.floodlightConfigId); |
1263 checkUnnamed252(o.metricNames); | 1263 checkUnnamed255(o.metricNames); |
1264 checkUnnamed253(o.perInteractionDimensions); | 1264 checkUnnamed256(o.perInteractionDimensions); |
1265 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); | 1265 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); |
1266 } | 1266 } |
1267 buildCounterReportPathToConversionCriteria--; | 1267 buildCounterReportPathToConversionCriteria--; |
1268 } | 1268 } |
1269 | 1269 |
1270 buildUnnamed254() { | 1270 buildUnnamed257() { |
1271 var o = new core.List<api.DimensionValue>(); | 1271 var o = new core.List<api.DimensionValue>(); |
1272 o.add(buildDimensionValue()); | 1272 o.add(buildDimensionValue()); |
1273 o.add(buildDimensionValue()); | 1273 o.add(buildDimensionValue()); |
1274 return o; | 1274 return o; |
1275 } | 1275 } |
1276 | 1276 |
1277 checkUnnamed254(core.List<api.DimensionValue> o) { | 1277 checkUnnamed257(core.List<api.DimensionValue> o) { |
1278 unittest.expect(o, unittest.hasLength(2)); | 1278 unittest.expect(o, unittest.hasLength(2)); |
1279 checkDimensionValue(o[0]); | 1279 checkDimensionValue(o[0]); |
1280 checkDimensionValue(o[1]); | 1280 checkDimensionValue(o[1]); |
1281 } | 1281 } |
1282 | 1282 |
1283 buildUnnamed255() { | 1283 buildUnnamed258() { |
1284 var o = new core.List<api.SortedDimension>(); | 1284 var o = new core.List<api.SortedDimension>(); |
1285 o.add(buildSortedDimension()); | 1285 o.add(buildSortedDimension()); |
1286 o.add(buildSortedDimension()); | 1286 o.add(buildSortedDimension()); |
1287 return o; | 1287 return o; |
1288 } | 1288 } |
1289 | 1289 |
1290 checkUnnamed255(core.List<api.SortedDimension> o) { | 1290 checkUnnamed258(core.List<api.SortedDimension> o) { |
1291 unittest.expect(o, unittest.hasLength(2)); | 1291 unittest.expect(o, unittest.hasLength(2)); |
1292 checkSortedDimension(o[0]); | 1292 checkSortedDimension(o[0]); |
1293 checkSortedDimension(o[1]); | 1293 checkSortedDimension(o[1]); |
1294 } | 1294 } |
1295 | 1295 |
1296 buildUnnamed256() { | 1296 buildUnnamed259() { |
1297 var o = new core.List<core.String>(); | 1297 var o = new core.List<core.String>(); |
1298 o.add("foo"); | 1298 o.add("foo"); |
1299 o.add("foo"); | 1299 o.add("foo"); |
1300 return o; | 1300 return o; |
1301 } | 1301 } |
1302 | 1302 |
1303 checkUnnamed256(core.List<core.String> o) { | 1303 checkUnnamed259(core.List<core.String> o) { |
1304 unittest.expect(o, unittest.hasLength(2)); | 1304 unittest.expect(o, unittest.hasLength(2)); |
1305 unittest.expect(o[0], unittest.equals('foo')); | 1305 unittest.expect(o[0], unittest.equals('foo')); |
1306 unittest.expect(o[1], unittest.equals('foo')); | 1306 unittest.expect(o[1], unittest.equals('foo')); |
1307 } | 1307 } |
1308 | 1308 |
1309 buildUnnamed257() { | 1309 buildUnnamed260() { |
1310 var o = new core.List<core.String>(); | 1310 var o = new core.List<core.String>(); |
1311 o.add("foo"); | 1311 o.add("foo"); |
1312 o.add("foo"); | 1312 o.add("foo"); |
1313 return o; | 1313 return o; |
1314 } | 1314 } |
1315 | 1315 |
1316 checkUnnamed257(core.List<core.String> o) { | 1316 checkUnnamed260(core.List<core.String> o) { |
1317 unittest.expect(o, unittest.hasLength(2)); | 1317 unittest.expect(o, unittest.hasLength(2)); |
1318 unittest.expect(o[0], unittest.equals('foo')); | 1318 unittest.expect(o[0], unittest.equals('foo')); |
1319 unittest.expect(o[1], unittest.equals('foo')); | 1319 unittest.expect(o[1], unittest.equals('foo')); |
1320 } | 1320 } |
1321 | 1321 |
1322 core.int buildCounterReportReachCriteria = 0; | 1322 core.int buildCounterReportReachCriteria = 0; |
1323 buildReportReachCriteria() { | 1323 buildReportReachCriteria() { |
1324 var o = new api.ReportReachCriteria(); | 1324 var o = new api.ReportReachCriteria(); |
1325 buildCounterReportReachCriteria++; | 1325 buildCounterReportReachCriteria++; |
1326 if (buildCounterReportReachCriteria < 3) { | 1326 if (buildCounterReportReachCriteria < 3) { |
1327 o.activities = buildActivities(); | 1327 o.activities = buildActivities(); |
1328 o.customRichMediaEvents = buildCustomRichMediaEvents(); | 1328 o.customRichMediaEvents = buildCustomRichMediaEvents(); |
1329 o.dateRange = buildDateRange(); | 1329 o.dateRange = buildDateRange(); |
1330 o.dimensionFilters = buildUnnamed254(); | 1330 o.dimensionFilters = buildUnnamed257(); |
1331 o.dimensions = buildUnnamed255(); | 1331 o.dimensions = buildUnnamed258(); |
1332 o.metricNames = buildUnnamed256(); | 1332 o.metricNames = buildUnnamed259(); |
1333 o.reachByFrequencyMetricNames = buildUnnamed257(); | 1333 o.reachByFrequencyMetricNames = buildUnnamed260(); |
1334 } | 1334 } |
1335 buildCounterReportReachCriteria--; | 1335 buildCounterReportReachCriteria--; |
1336 return o; | 1336 return o; |
1337 } | 1337 } |
1338 | 1338 |
1339 checkReportReachCriteria(api.ReportReachCriteria o) { | 1339 checkReportReachCriteria(api.ReportReachCriteria o) { |
1340 buildCounterReportReachCriteria++; | 1340 buildCounterReportReachCriteria++; |
1341 if (buildCounterReportReachCriteria < 3) { | 1341 if (buildCounterReportReachCriteria < 3) { |
1342 checkActivities(o.activities); | 1342 checkActivities(o.activities); |
1343 checkCustomRichMediaEvents(o.customRichMediaEvents); | 1343 checkCustomRichMediaEvents(o.customRichMediaEvents); |
1344 checkDateRange(o.dateRange); | 1344 checkDateRange(o.dateRange); |
1345 checkUnnamed254(o.dimensionFilters); | 1345 checkUnnamed257(o.dimensionFilters); |
1346 checkUnnamed255(o.dimensions); | 1346 checkUnnamed258(o.dimensions); |
1347 checkUnnamed256(o.metricNames); | 1347 checkUnnamed259(o.metricNames); |
1348 checkUnnamed257(o.reachByFrequencyMetricNames); | 1348 checkUnnamed260(o.reachByFrequencyMetricNames); |
1349 } | 1349 } |
1350 buildCounterReportReachCriteria--; | 1350 buildCounterReportReachCriteria--; |
1351 } | 1351 } |
1352 | 1352 |
1353 buildUnnamed258() { | 1353 buildUnnamed261() { |
1354 var o = new core.List<core.String>(); | 1354 var o = new core.List<core.String>(); |
1355 o.add("foo"); | 1355 o.add("foo"); |
1356 o.add("foo"); | 1356 o.add("foo"); |
1357 return o; | 1357 return o; |
1358 } | 1358 } |
1359 | 1359 |
1360 checkUnnamed258(core.List<core.String> o) { | 1360 checkUnnamed261(core.List<core.String> o) { |
1361 unittest.expect(o, unittest.hasLength(2)); | 1361 unittest.expect(o, unittest.hasLength(2)); |
1362 unittest.expect(o[0], unittest.equals('foo')); | 1362 unittest.expect(o[0], unittest.equals('foo')); |
1363 unittest.expect(o[1], unittest.equals('foo')); | 1363 unittest.expect(o[1], unittest.equals('foo')); |
1364 } | 1364 } |
1365 | 1365 |
1366 core.int buildCounterReportSchedule = 0; | 1366 core.int buildCounterReportSchedule = 0; |
1367 buildReportSchedule() { | 1367 buildReportSchedule() { |
1368 var o = new api.ReportSchedule(); | 1368 var o = new api.ReportSchedule(); |
1369 buildCounterReportSchedule++; | 1369 buildCounterReportSchedule++; |
1370 if (buildCounterReportSchedule < 3) { | 1370 if (buildCounterReportSchedule < 3) { |
1371 o.active = true; | 1371 o.active = true; |
1372 o.every = 42; | 1372 o.every = 42; |
1373 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 1373 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
1374 o.repeats = "foo"; | 1374 o.repeats = "foo"; |
1375 o.repeatsOnWeekDays = buildUnnamed258(); | 1375 o.repeatsOnWeekDays = buildUnnamed261(); |
1376 o.runsOnDayOfMonth = "foo"; | 1376 o.runsOnDayOfMonth = "foo"; |
1377 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 1377 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
1378 } | 1378 } |
1379 buildCounterReportSchedule--; | 1379 buildCounterReportSchedule--; |
1380 return o; | 1380 return o; |
1381 } | 1381 } |
1382 | 1382 |
1383 checkReportSchedule(api.ReportSchedule o) { | 1383 checkReportSchedule(api.ReportSchedule o) { |
1384 buildCounterReportSchedule++; | 1384 buildCounterReportSchedule++; |
1385 if (buildCounterReportSchedule < 3) { | 1385 if (buildCounterReportSchedule < 3) { |
1386 unittest.expect(o.active, unittest.isTrue); | 1386 unittest.expect(o.active, unittest.isTrue); |
1387 unittest.expect(o.every, unittest.equals(42)); | 1387 unittest.expect(o.every, unittest.equals(42)); |
1388 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-
02-27T00:00:00"))); | 1388 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-
02-27T00:00:00"))); |
1389 unittest.expect(o.repeats, unittest.equals('foo')); | 1389 unittest.expect(o.repeats, unittest.equals('foo')); |
1390 checkUnnamed258(o.repeatsOnWeekDays); | 1390 checkUnnamed261(o.repeatsOnWeekDays); |
1391 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); | 1391 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); |
1392 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 1392 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
1393 } | 1393 } |
1394 buildCounterReportSchedule--; | 1394 buildCounterReportSchedule--; |
1395 } | 1395 } |
1396 | 1396 |
1397 core.int buildCounterReport = 0; | 1397 core.int buildCounterReport = 0; |
1398 buildReport() { | 1398 buildReport() { |
1399 var o = new api.Report(); | 1399 var o = new api.Report(); |
1400 buildCounterReport++; | 1400 buildCounterReport++; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1442 unittest.expect(o.ownerProfileId, unittest.equals('foo')); | 1442 unittest.expect(o.ownerProfileId, unittest.equals('foo')); |
1443 checkReportPathToConversionCriteria(o.pathToConversionCriteria); | 1443 checkReportPathToConversionCriteria(o.pathToConversionCriteria); |
1444 checkReportReachCriteria(o.reachCriteria); | 1444 checkReportReachCriteria(o.reachCriteria); |
1445 checkReportSchedule(o.schedule); | 1445 checkReportSchedule(o.schedule); |
1446 unittest.expect(o.subAccountId, unittest.equals('foo')); | 1446 unittest.expect(o.subAccountId, unittest.equals('foo')); |
1447 unittest.expect(o.type, unittest.equals('foo')); | 1447 unittest.expect(o.type, unittest.equals('foo')); |
1448 } | 1448 } |
1449 buildCounterReport--; | 1449 buildCounterReport--; |
1450 } | 1450 } |
1451 | 1451 |
1452 buildUnnamed259() { | 1452 buildUnnamed262() { |
1453 var o = new core.List<api.Dimension>(); | 1453 var o = new core.List<api.Dimension>(); |
1454 o.add(buildDimension()); | 1454 o.add(buildDimension()); |
1455 o.add(buildDimension()); | 1455 o.add(buildDimension()); |
1456 return o; | 1456 return o; |
1457 } | 1457 } |
1458 | 1458 |
1459 checkUnnamed259(core.List<api.Dimension> o) { | 1459 checkUnnamed262(core.List<api.Dimension> o) { |
1460 unittest.expect(o, unittest.hasLength(2)); | 1460 unittest.expect(o, unittest.hasLength(2)); |
1461 checkDimension(o[0]); | 1461 checkDimension(o[0]); |
1462 checkDimension(o[1]); | 1462 checkDimension(o[1]); |
1463 } | 1463 } |
1464 | 1464 |
1465 buildUnnamed260() { | 1465 buildUnnamed263() { |
1466 var o = new core.List<api.Dimension>(); | 1466 var o = new core.List<api.Dimension>(); |
1467 o.add(buildDimension()); | 1467 o.add(buildDimension()); |
1468 o.add(buildDimension()); | 1468 o.add(buildDimension()); |
1469 return o; | 1469 return o; |
1470 } | 1470 } |
1471 | 1471 |
1472 checkUnnamed260(core.List<api.Dimension> o) { | 1472 checkUnnamed263(core.List<api.Dimension> o) { |
1473 unittest.expect(o, unittest.hasLength(2)); | 1473 unittest.expect(o, unittest.hasLength(2)); |
1474 checkDimension(o[0]); | 1474 checkDimension(o[0]); |
1475 checkDimension(o[1]); | 1475 checkDimension(o[1]); |
1476 } | 1476 } |
1477 | 1477 |
1478 buildUnnamed261() { | 1478 buildUnnamed264() { |
1479 var o = new core.List<api.Metric>(); | 1479 var o = new core.List<api.Metric>(); |
1480 o.add(buildMetric()); | 1480 o.add(buildMetric()); |
1481 o.add(buildMetric()); | 1481 o.add(buildMetric()); |
1482 return o; | 1482 return o; |
1483 } | 1483 } |
1484 | 1484 |
1485 checkUnnamed261(core.List<api.Metric> o) { | 1485 checkUnnamed264(core.List<api.Metric> o) { |
1486 unittest.expect(o, unittest.hasLength(2)); | 1486 unittest.expect(o, unittest.hasLength(2)); |
1487 checkMetric(o[0]); | 1487 checkMetric(o[0]); |
1488 checkMetric(o[1]); | 1488 checkMetric(o[1]); |
1489 } | 1489 } |
1490 | 1490 |
1491 buildUnnamed262() { | 1491 buildUnnamed265() { |
1492 var o = new core.List<api.Metric>(); | 1492 var o = new core.List<api.Metric>(); |
1493 o.add(buildMetric()); | 1493 o.add(buildMetric()); |
1494 o.add(buildMetric()); | 1494 o.add(buildMetric()); |
1495 return o; | 1495 return o; |
1496 } | 1496 } |
1497 | 1497 |
1498 checkUnnamed262(core.List<api.Metric> o) { | 1498 checkUnnamed265(core.List<api.Metric> o) { |
1499 unittest.expect(o, unittest.hasLength(2)); | 1499 unittest.expect(o, unittest.hasLength(2)); |
1500 checkMetric(o[0]); | 1500 checkMetric(o[0]); |
1501 checkMetric(o[1]); | 1501 checkMetric(o[1]); |
1502 } | 1502 } |
1503 | 1503 |
1504 core.int buildCounterReportCompatibleFields = 0; | 1504 core.int buildCounterReportCompatibleFields = 0; |
1505 buildReportCompatibleFields() { | 1505 buildReportCompatibleFields() { |
1506 var o = new api.ReportCompatibleFields(); | 1506 var o = new api.ReportCompatibleFields(); |
1507 buildCounterReportCompatibleFields++; | 1507 buildCounterReportCompatibleFields++; |
1508 if (buildCounterReportCompatibleFields < 3) { | 1508 if (buildCounterReportCompatibleFields < 3) { |
1509 o.dimensionFilters = buildUnnamed259(); | 1509 o.dimensionFilters = buildUnnamed262(); |
1510 o.dimensions = buildUnnamed260(); | 1510 o.dimensions = buildUnnamed263(); |
1511 o.kind = "foo"; | 1511 o.kind = "foo"; |
1512 o.metrics = buildUnnamed261(); | 1512 o.metrics = buildUnnamed264(); |
1513 o.pivotedActivityMetrics = buildUnnamed262(); | 1513 o.pivotedActivityMetrics = buildUnnamed265(); |
1514 } | 1514 } |
1515 buildCounterReportCompatibleFields--; | 1515 buildCounterReportCompatibleFields--; |
1516 return o; | 1516 return o; |
1517 } | 1517 } |
1518 | 1518 |
1519 checkReportCompatibleFields(api.ReportCompatibleFields o) { | 1519 checkReportCompatibleFields(api.ReportCompatibleFields o) { |
1520 buildCounterReportCompatibleFields++; | 1520 buildCounterReportCompatibleFields++; |
1521 if (buildCounterReportCompatibleFields < 3) { | 1521 if (buildCounterReportCompatibleFields < 3) { |
1522 checkUnnamed259(o.dimensionFilters); | 1522 checkUnnamed262(o.dimensionFilters); |
1523 checkUnnamed260(o.dimensions); | 1523 checkUnnamed263(o.dimensions); |
1524 unittest.expect(o.kind, unittest.equals('foo')); | 1524 unittest.expect(o.kind, unittest.equals('foo')); |
1525 checkUnnamed261(o.metrics); | 1525 checkUnnamed264(o.metrics); |
1526 checkUnnamed262(o.pivotedActivityMetrics); | 1526 checkUnnamed265(o.pivotedActivityMetrics); |
1527 } | 1527 } |
1528 buildCounterReportCompatibleFields--; | 1528 buildCounterReportCompatibleFields--; |
1529 } | 1529 } |
1530 | 1530 |
1531 buildUnnamed263() { | 1531 buildUnnamed266() { |
1532 var o = new core.List<api.Report>(); | 1532 var o = new core.List<api.Report>(); |
1533 o.add(buildReport()); | 1533 o.add(buildReport()); |
1534 o.add(buildReport()); | 1534 o.add(buildReport()); |
1535 return o; | 1535 return o; |
1536 } | 1536 } |
1537 | 1537 |
1538 checkUnnamed263(core.List<api.Report> o) { | 1538 checkUnnamed266(core.List<api.Report> o) { |
1539 unittest.expect(o, unittest.hasLength(2)); | 1539 unittest.expect(o, unittest.hasLength(2)); |
1540 checkReport(o[0]); | 1540 checkReport(o[0]); |
1541 checkReport(o[1]); | 1541 checkReport(o[1]); |
1542 } | 1542 } |
1543 | 1543 |
1544 core.int buildCounterReportList = 0; | 1544 core.int buildCounterReportList = 0; |
1545 buildReportList() { | 1545 buildReportList() { |
1546 var o = new api.ReportList(); | 1546 var o = new api.ReportList(); |
1547 buildCounterReportList++; | 1547 buildCounterReportList++; |
1548 if (buildCounterReportList < 3) { | 1548 if (buildCounterReportList < 3) { |
1549 o.etag = "foo"; | 1549 o.etag = "foo"; |
1550 o.items = buildUnnamed263(); | 1550 o.items = buildUnnamed266(); |
1551 o.kind = "foo"; | 1551 o.kind = "foo"; |
1552 o.nextPageToken = "foo"; | 1552 o.nextPageToken = "foo"; |
1553 } | 1553 } |
1554 buildCounterReportList--; | 1554 buildCounterReportList--; |
1555 return o; | 1555 return o; |
1556 } | 1556 } |
1557 | 1557 |
1558 checkReportList(api.ReportList o) { | 1558 checkReportList(api.ReportList o) { |
1559 buildCounterReportList++; | 1559 buildCounterReportList++; |
1560 if (buildCounterReportList < 3) { | 1560 if (buildCounterReportList < 3) { |
1561 unittest.expect(o.etag, unittest.equals('foo')); | 1561 unittest.expect(o.etag, unittest.equals('foo')); |
1562 checkUnnamed263(o.items); | 1562 checkUnnamed266(o.items); |
1563 unittest.expect(o.kind, unittest.equals('foo')); | 1563 unittest.expect(o.kind, unittest.equals('foo')); |
1564 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1564 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1565 } | 1565 } |
1566 buildCounterReportList--; | 1566 buildCounterReportList--; |
1567 } | 1567 } |
1568 | 1568 |
1569 core.int buildCounterSortedDimension = 0; | 1569 core.int buildCounterSortedDimension = 0; |
1570 buildSortedDimension() { | 1570 buildSortedDimension() { |
1571 var o = new api.SortedDimension(); | 1571 var o = new api.SortedDimension(); |
1572 buildCounterSortedDimension++; | 1572 buildCounterSortedDimension++; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 unittest.expect(o.etag, unittest.equals('foo')); | 1615 unittest.expect(o.etag, unittest.equals('foo')); |
1616 unittest.expect(o.kind, unittest.equals('foo')); | 1616 unittest.expect(o.kind, unittest.equals('foo')); |
1617 unittest.expect(o.profileId, unittest.equals('foo')); | 1617 unittest.expect(o.profileId, unittest.equals('foo')); |
1618 unittest.expect(o.subAccountId, unittest.equals('foo')); | 1618 unittest.expect(o.subAccountId, unittest.equals('foo')); |
1619 unittest.expect(o.subAccountName, unittest.equals('foo')); | 1619 unittest.expect(o.subAccountName, unittest.equals('foo')); |
1620 unittest.expect(o.userName, unittest.equals('foo')); | 1620 unittest.expect(o.userName, unittest.equals('foo')); |
1621 } | 1621 } |
1622 buildCounterUserProfile--; | 1622 buildCounterUserProfile--; |
1623 } | 1623 } |
1624 | 1624 |
1625 buildUnnamed264() { | 1625 buildUnnamed267() { |
1626 var o = new core.List<api.UserProfile>(); | 1626 var o = new core.List<api.UserProfile>(); |
1627 o.add(buildUserProfile()); | 1627 o.add(buildUserProfile()); |
1628 o.add(buildUserProfile()); | 1628 o.add(buildUserProfile()); |
1629 return o; | 1629 return o; |
1630 } | 1630 } |
1631 | 1631 |
1632 checkUnnamed264(core.List<api.UserProfile> o) { | 1632 checkUnnamed267(core.List<api.UserProfile> o) { |
1633 unittest.expect(o, unittest.hasLength(2)); | 1633 unittest.expect(o, unittest.hasLength(2)); |
1634 checkUserProfile(o[0]); | 1634 checkUserProfile(o[0]); |
1635 checkUserProfile(o[1]); | 1635 checkUserProfile(o[1]); |
1636 } | 1636 } |
1637 | 1637 |
1638 core.int buildCounterUserProfileList = 0; | 1638 core.int buildCounterUserProfileList = 0; |
1639 buildUserProfileList() { | 1639 buildUserProfileList() { |
1640 var o = new api.UserProfileList(); | 1640 var o = new api.UserProfileList(); |
1641 buildCounterUserProfileList++; | 1641 buildCounterUserProfileList++; |
1642 if (buildCounterUserProfileList < 3) { | 1642 if (buildCounterUserProfileList < 3) { |
1643 o.etag = "foo"; | 1643 o.etag = "foo"; |
1644 o.items = buildUnnamed264(); | 1644 o.items = buildUnnamed267(); |
1645 o.kind = "foo"; | 1645 o.kind = "foo"; |
1646 } | 1646 } |
1647 buildCounterUserProfileList--; | 1647 buildCounterUserProfileList--; |
1648 return o; | 1648 return o; |
1649 } | 1649 } |
1650 | 1650 |
1651 checkUserProfileList(api.UserProfileList o) { | 1651 checkUserProfileList(api.UserProfileList o) { |
1652 buildCounterUserProfileList++; | 1652 buildCounterUserProfileList++; |
1653 if (buildCounterUserProfileList < 3) { | 1653 if (buildCounterUserProfileList < 3) { |
1654 unittest.expect(o.etag, unittest.equals('foo')); | 1654 unittest.expect(o.etag, unittest.equals('foo')); |
1655 checkUnnamed264(o.items); | 1655 checkUnnamed267(o.items); |
1656 unittest.expect(o.kind, unittest.equals('foo')); | 1656 unittest.expect(o.kind, unittest.equals('foo')); |
1657 } | 1657 } |
1658 buildCounterUserProfileList--; | 1658 buildCounterUserProfileList--; |
1659 } | 1659 } |
1660 | 1660 |
1661 | 1661 |
1662 main() { | 1662 main() { |
1663 unittest.group("obj-schema-Activities", () { | 1663 unittest.group("obj-schema-Activities", () { |
1664 unittest.test("to-json--from-json", () { | 1664 unittest.test("to-json--from-json", () { |
1665 var o = buildActivities(); | 1665 var o = buildActivities(); |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1976 var arg_maxResults = 42; | 1976 var arg_maxResults = 42; |
1977 var arg_pageToken = "foo"; | 1977 var arg_pageToken = "foo"; |
1978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1979 var obj = new api.DimensionValueRequest.fromJson(json); | 1979 var obj = new api.DimensionValueRequest.fromJson(json); |
1980 checkDimensionValueRequest(obj); | 1980 checkDimensionValueRequest(obj); |
1981 | 1981 |
1982 var path = (req.url).path; | 1982 var path = (req.url).path; |
1983 var pathOffset = 0; | 1983 var pathOffset = 0; |
1984 var index; | 1984 var index; |
1985 var subPart; | 1985 var subPart; |
1986 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 1986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1987 pathOffset += 19; | 1987 pathOffset += 1; |
| 1988 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 1989 pathOffset += 18; |
1988 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 1990 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
1989 pathOffset += 13; | 1991 pathOffset += 13; |
1990 index = path.indexOf("/dimensionvalues/query", pathOffset); | 1992 index = path.indexOf("/dimensionvalues/query", pathOffset); |
1991 unittest.expect(index >= 0, unittest.isTrue); | 1993 unittest.expect(index >= 0, unittest.isTrue); |
1992 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1994 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1993 pathOffset = index; | 1995 pathOffset = index; |
1994 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 1996 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
1995 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/dimensionvalues/query")); | 1997 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/dimensionvalues/query")); |
1996 pathOffset += 22; | 1998 pathOffset += 22; |
1997 | 1999 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2036 | 2038 |
2037 var mock = new common_test.HttpServerMock(); | 2039 var mock = new common_test.HttpServerMock(); |
2038 api.FilesResourceApi res = new api.DfareportingApi(mock).files; | 2040 api.FilesResourceApi res = new api.DfareportingApi(mock).files; |
2039 var arg_reportId = "foo"; | 2041 var arg_reportId = "foo"; |
2040 var arg_fileId = "foo"; | 2042 var arg_fileId = "foo"; |
2041 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2042 var path = (req.url).path; | 2044 var path = (req.url).path; |
2043 var pathOffset = 0; | 2045 var pathOffset = 0; |
2044 var index; | 2046 var index; |
2045 var subPart; | 2047 var subPart; |
2046 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2048 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2047 pathOffset += 19; | 2049 pathOffset += 1; |
| 2050 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2051 pathOffset += 18; |
2048 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); | 2052 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); |
2049 pathOffset += 8; | 2053 pathOffset += 8; |
2050 index = path.indexOf("/files/", pathOffset); | 2054 index = path.indexOf("/files/", pathOffset); |
2051 unittest.expect(index >= 0, unittest.isTrue); | 2055 unittest.expect(index >= 0, unittest.isTrue); |
2052 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2056 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2053 pathOffset = index; | 2057 pathOffset = index; |
2054 unittest.expect(subPart, unittest.equals("$arg_reportId")); | 2058 unittest.expect(subPart, unittest.equals("$arg_reportId")); |
2055 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/files/")); | 2059 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/files/")); |
2056 pathOffset += 7; | 2060 pathOffset += 7; |
2057 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2061 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 var arg_maxResults = 42; | 2099 var arg_maxResults = 42; |
2096 var arg_pageToken = "foo"; | 2100 var arg_pageToken = "foo"; |
2097 var arg_scope = "foo"; | 2101 var arg_scope = "foo"; |
2098 var arg_sortField = "foo"; | 2102 var arg_sortField = "foo"; |
2099 var arg_sortOrder = "foo"; | 2103 var arg_sortOrder = "foo"; |
2100 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2104 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2101 var path = (req.url).path; | 2105 var path = (req.url).path; |
2102 var pathOffset = 0; | 2106 var pathOffset = 0; |
2103 var index; | 2107 var index; |
2104 var subPart; | 2108 var subPart; |
2105 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2109 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2106 pathOffset += 19; | 2110 pathOffset += 1; |
| 2111 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2112 pathOffset += 18; |
2107 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2113 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2108 pathOffset += 13; | 2114 pathOffset += 13; |
2109 index = path.indexOf("/files", pathOffset); | 2115 index = path.indexOf("/files", pathOffset); |
2110 unittest.expect(index >= 0, unittest.isTrue); | 2116 unittest.expect(index >= 0, unittest.isTrue); |
2111 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2117 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2112 pathOffset = index; | 2118 pathOffset = index; |
2113 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2119 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2114 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/files")); | 2120 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/files")); |
2115 pathOffset += 6; | 2121 pathOffset += 6; |
2116 | 2122 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2156 | 2162 |
2157 var mock = new common_test.HttpServerMock(); | 2163 var mock = new common_test.HttpServerMock(); |
2158 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2164 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
2159 var arg_profileId = "foo"; | 2165 var arg_profileId = "foo"; |
2160 var arg_reportId = "foo"; | 2166 var arg_reportId = "foo"; |
2161 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2162 var path = (req.url).path; | 2168 var path = (req.url).path; |
2163 var pathOffset = 0; | 2169 var pathOffset = 0; |
2164 var index; | 2170 var index; |
2165 var subPart; | 2171 var subPart; |
2166 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2167 pathOffset += 19; | 2173 pathOffset += 1; |
| 2174 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2175 pathOffset += 18; |
2168 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2176 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2169 pathOffset += 13; | 2177 pathOffset += 13; |
2170 index = path.indexOf("/reports/", pathOffset); | 2178 index = path.indexOf("/reports/", pathOffset); |
2171 unittest.expect(index >= 0, unittest.isTrue); | 2179 unittest.expect(index >= 0, unittest.isTrue); |
2172 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2180 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2173 pathOffset = index; | 2181 pathOffset = index; |
2174 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2182 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2175 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 2183 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
2176 pathOffset += 9; | 2184 pathOffset += 9; |
2177 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2185 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2209 | 2217 |
2210 var mock = new common_test.HttpServerMock(); | 2218 var mock = new common_test.HttpServerMock(); |
2211 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2219 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
2212 var arg_profileId = "foo"; | 2220 var arg_profileId = "foo"; |
2213 var arg_reportId = "foo"; | 2221 var arg_reportId = "foo"; |
2214 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2222 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2215 var path = (req.url).path; | 2223 var path = (req.url).path; |
2216 var pathOffset = 0; | 2224 var pathOffset = 0; |
2217 var index; | 2225 var index; |
2218 var subPart; | 2226 var subPart; |
2219 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2227 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2220 pathOffset += 19; | 2228 pathOffset += 1; |
| 2229 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2230 pathOffset += 18; |
2221 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2231 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2222 pathOffset += 13; | 2232 pathOffset += 13; |
2223 index = path.indexOf("/reports/", pathOffset); | 2233 index = path.indexOf("/reports/", pathOffset); |
2224 unittest.expect(index >= 0, unittest.isTrue); | 2234 unittest.expect(index >= 0, unittest.isTrue); |
2225 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2235 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2226 pathOffset = index; | 2236 pathOffset = index; |
2227 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2237 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2228 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 2238 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
2229 pathOffset += 9; | 2239 pathOffset += 9; |
2230 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2240 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2267 var arg_request = buildReport(); | 2277 var arg_request = buildReport(); |
2268 var arg_profileId = "foo"; | 2278 var arg_profileId = "foo"; |
2269 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2279 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2270 var obj = new api.Report.fromJson(json); | 2280 var obj = new api.Report.fromJson(json); |
2271 checkReport(obj); | 2281 checkReport(obj); |
2272 | 2282 |
2273 var path = (req.url).path; | 2283 var path = (req.url).path; |
2274 var pathOffset = 0; | 2284 var pathOffset = 0; |
2275 var index; | 2285 var index; |
2276 var subPart; | 2286 var subPart; |
2277 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2287 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2278 pathOffset += 19; | 2288 pathOffset += 1; |
| 2289 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2290 pathOffset += 18; |
2279 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2291 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2280 pathOffset += 13; | 2292 pathOffset += 13; |
2281 index = path.indexOf("/reports", pathOffset); | 2293 index = path.indexOf("/reports", pathOffset); |
2282 unittest.expect(index >= 0, unittest.isTrue); | 2294 unittest.expect(index >= 0, unittest.isTrue); |
2283 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2295 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2284 pathOffset = index; | 2296 pathOffset = index; |
2285 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2297 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2286 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); | 2298 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); |
2287 pathOffset += 8; | 2299 pathOffset += 8; |
2288 | 2300 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2323 var arg_maxResults = 42; | 2335 var arg_maxResults = 42; |
2324 var arg_pageToken = "foo"; | 2336 var arg_pageToken = "foo"; |
2325 var arg_scope = "foo"; | 2337 var arg_scope = "foo"; |
2326 var arg_sortField = "foo"; | 2338 var arg_sortField = "foo"; |
2327 var arg_sortOrder = "foo"; | 2339 var arg_sortOrder = "foo"; |
2328 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2340 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2329 var path = (req.url).path; | 2341 var path = (req.url).path; |
2330 var pathOffset = 0; | 2342 var pathOffset = 0; |
2331 var index; | 2343 var index; |
2332 var subPart; | 2344 var subPart; |
2333 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2334 pathOffset += 19; | 2346 pathOffset += 1; |
| 2347 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2348 pathOffset += 18; |
2335 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2349 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2336 pathOffset += 13; | 2350 pathOffset += 13; |
2337 index = path.indexOf("/reports", pathOffset); | 2351 index = path.indexOf("/reports", pathOffset); |
2338 unittest.expect(index >= 0, unittest.isTrue); | 2352 unittest.expect(index >= 0, unittest.isTrue); |
2339 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2353 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2340 pathOffset = index; | 2354 pathOffset = index; |
2341 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2355 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2342 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); | 2356 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); |
2343 pathOffset += 8; | 2357 pathOffset += 8; |
2344 | 2358 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2384 var arg_profileId = "foo"; | 2398 var arg_profileId = "foo"; |
2385 var arg_reportId = "foo"; | 2399 var arg_reportId = "foo"; |
2386 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2400 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2387 var obj = new api.Report.fromJson(json); | 2401 var obj = new api.Report.fromJson(json); |
2388 checkReport(obj); | 2402 checkReport(obj); |
2389 | 2403 |
2390 var path = (req.url).path; | 2404 var path = (req.url).path; |
2391 var pathOffset = 0; | 2405 var pathOffset = 0; |
2392 var index; | 2406 var index; |
2393 var subPart; | 2407 var subPart; |
2394 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2408 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2395 pathOffset += 19; | 2409 pathOffset += 1; |
| 2410 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2411 pathOffset += 18; |
2396 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2412 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2397 pathOffset += 13; | 2413 pathOffset += 13; |
2398 index = path.indexOf("/reports/", pathOffset); | 2414 index = path.indexOf("/reports/", pathOffset); |
2399 unittest.expect(index >= 0, unittest.isTrue); | 2415 unittest.expect(index >= 0, unittest.isTrue); |
2400 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2416 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2401 pathOffset = index; | 2417 pathOffset = index; |
2402 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2418 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2403 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 2419 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
2404 pathOffset += 9; | 2420 pathOffset += 9; |
2405 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2421 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2440 var mock = new common_test.HttpServerMock(); | 2456 var mock = new common_test.HttpServerMock(); |
2441 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2457 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
2442 var arg_profileId = "foo"; | 2458 var arg_profileId = "foo"; |
2443 var arg_reportId = "foo"; | 2459 var arg_reportId = "foo"; |
2444 var arg_synchronous = true; | 2460 var arg_synchronous = true; |
2445 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2461 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2446 var path = (req.url).path; | 2462 var path = (req.url).path; |
2447 var pathOffset = 0; | 2463 var pathOffset = 0; |
2448 var index; | 2464 var index; |
2449 var subPart; | 2465 var subPart; |
2450 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2451 pathOffset += 19; | 2467 pathOffset += 1; |
| 2468 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2469 pathOffset += 18; |
2452 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2470 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2453 pathOffset += 13; | 2471 pathOffset += 13; |
2454 index = path.indexOf("/reports/", pathOffset); | 2472 index = path.indexOf("/reports/", pathOffset); |
2455 unittest.expect(index >= 0, unittest.isTrue); | 2473 unittest.expect(index >= 0, unittest.isTrue); |
2456 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2474 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2457 pathOffset = index; | 2475 pathOffset = index; |
2458 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2476 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2459 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 2477 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
2460 pathOffset += 9; | 2478 pathOffset += 9; |
2461 index = path.indexOf("/run", pathOffset); | 2479 index = path.indexOf("/run", pathOffset); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2504 var arg_profileId = "foo"; | 2522 var arg_profileId = "foo"; |
2505 var arg_reportId = "foo"; | 2523 var arg_reportId = "foo"; |
2506 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2524 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2507 var obj = new api.Report.fromJson(json); | 2525 var obj = new api.Report.fromJson(json); |
2508 checkReport(obj); | 2526 checkReport(obj); |
2509 | 2527 |
2510 var path = (req.url).path; | 2528 var path = (req.url).path; |
2511 var pathOffset = 0; | 2529 var pathOffset = 0; |
2512 var index; | 2530 var index; |
2513 var subPart; | 2531 var subPart; |
2514 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2532 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2515 pathOffset += 19; | 2533 pathOffset += 1; |
| 2534 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2535 pathOffset += 18; |
2516 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2536 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2517 pathOffset += 13; | 2537 pathOffset += 13; |
2518 index = path.indexOf("/reports/", pathOffset); | 2538 index = path.indexOf("/reports/", pathOffset); |
2519 unittest.expect(index >= 0, unittest.isTrue); | 2539 unittest.expect(index >= 0, unittest.isTrue); |
2520 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2540 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2521 pathOffset = index; | 2541 pathOffset = index; |
2522 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2542 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2523 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 2543 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
2524 pathOffset += 9; | 2544 pathOffset += 9; |
2525 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2545 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2566 var arg_request = buildReport(); | 2586 var arg_request = buildReport(); |
2567 var arg_profileId = "foo"; | 2587 var arg_profileId = "foo"; |
2568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2588 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2569 var obj = new api.Report.fromJson(json); | 2589 var obj = new api.Report.fromJson(json); |
2570 checkReport(obj); | 2590 checkReport(obj); |
2571 | 2591 |
2572 var path = (req.url).path; | 2592 var path = (req.url).path; |
2573 var pathOffset = 0; | 2593 var pathOffset = 0; |
2574 var index; | 2594 var index; |
2575 var subPart; | 2595 var subPart; |
2576 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2577 pathOffset += 19; | 2597 pathOffset += 1; |
| 2598 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2599 pathOffset += 18; |
2578 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2600 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2579 pathOffset += 13; | 2601 pathOffset += 13; |
2580 index = path.indexOf("/reports/compatiblefields/query", pathOffset); | 2602 index = path.indexOf("/reports/compatiblefields/query", pathOffset); |
2581 unittest.expect(index >= 0, unittest.isTrue); | 2603 unittest.expect(index >= 0, unittest.isTrue); |
2582 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2604 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2583 pathOffset = index; | 2605 pathOffset = index; |
2584 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2606 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2585 unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.eq
uals("/reports/compatiblefields/query")); | 2607 unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.eq
uals("/reports/compatiblefields/query")); |
2586 pathOffset += 31; | 2608 pathOffset += 31; |
2587 | 2609 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2625 var mock = new common_test.HttpServerMock(); | 2647 var mock = new common_test.HttpServerMock(); |
2626 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi
les; | 2648 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi
les; |
2627 var arg_profileId = "foo"; | 2649 var arg_profileId = "foo"; |
2628 var arg_reportId = "foo"; | 2650 var arg_reportId = "foo"; |
2629 var arg_fileId = "foo"; | 2651 var arg_fileId = "foo"; |
2630 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2652 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2631 var path = (req.url).path; | 2653 var path = (req.url).path; |
2632 var pathOffset = 0; | 2654 var pathOffset = 0; |
2633 var index; | 2655 var index; |
2634 var subPart; | 2656 var subPart; |
2635 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2636 pathOffset += 19; | 2658 pathOffset += 1; |
| 2659 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2660 pathOffset += 18; |
2637 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2661 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2638 pathOffset += 13; | 2662 pathOffset += 13; |
2639 index = path.indexOf("/reports/", pathOffset); | 2663 index = path.indexOf("/reports/", pathOffset); |
2640 unittest.expect(index >= 0, unittest.isTrue); | 2664 unittest.expect(index >= 0, unittest.isTrue); |
2641 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2665 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2642 pathOffset = index; | 2666 pathOffset = index; |
2643 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2667 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2644 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 2668 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
2645 pathOffset += 9; | 2669 pathOffset += 9; |
2646 index = path.indexOf("/files/", pathOffset); | 2670 index = path.indexOf("/files/", pathOffset); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2691 var arg_reportId = "foo"; | 2715 var arg_reportId = "foo"; |
2692 var arg_maxResults = 42; | 2716 var arg_maxResults = 42; |
2693 var arg_pageToken = "foo"; | 2717 var arg_pageToken = "foo"; |
2694 var arg_sortField = "foo"; | 2718 var arg_sortField = "foo"; |
2695 var arg_sortOrder = "foo"; | 2719 var arg_sortOrder = "foo"; |
2696 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2697 var path = (req.url).path; | 2721 var path = (req.url).path; |
2698 var pathOffset = 0; | 2722 var pathOffset = 0; |
2699 var index; | 2723 var index; |
2700 var subPart; | 2724 var subPart; |
2701 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2702 pathOffset += 19; | 2726 pathOffset += 1; |
| 2727 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2728 pathOffset += 18; |
2703 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2729 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2704 pathOffset += 13; | 2730 pathOffset += 13; |
2705 index = path.indexOf("/reports/", pathOffset); | 2731 index = path.indexOf("/reports/", pathOffset); |
2706 unittest.expect(index >= 0, unittest.isTrue); | 2732 unittest.expect(index >= 0, unittest.isTrue); |
2707 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2733 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2708 pathOffset = index; | 2734 pathOffset = index; |
2709 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2735 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2710 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 2736 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
2711 pathOffset += 9; | 2737 pathOffset += 9; |
2712 index = path.indexOf("/files", pathOffset); | 2738 index = path.indexOf("/files", pathOffset); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2757 unittest.test("method--get", () { | 2783 unittest.test("method--get", () { |
2758 | 2784 |
2759 var mock = new common_test.HttpServerMock(); | 2785 var mock = new common_test.HttpServerMock(); |
2760 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; | 2786 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; |
2761 var arg_profileId = "foo"; | 2787 var arg_profileId = "foo"; |
2762 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2788 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2763 var path = (req.url).path; | 2789 var path = (req.url).path; |
2764 var pathOffset = 0; | 2790 var pathOffset = 0; |
2765 var index; | 2791 var index; |
2766 var subPart; | 2792 var subPart; |
2767 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2793 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2768 pathOffset += 19; | 2794 pathOffset += 1; |
| 2795 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2796 pathOffset += 18; |
2769 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 2797 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
2770 pathOffset += 13; | 2798 pathOffset += 13; |
2771 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2799 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
2772 pathOffset = path.length; | 2800 pathOffset = path.length; |
2773 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 2801 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
2774 | 2802 |
2775 var query = (req.url).query; | 2803 var query = (req.url).query; |
2776 var queryOffset = 0; | 2804 var queryOffset = 0; |
2777 var queryMap = {}; | 2805 var queryMap = {}; |
2778 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2806 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 24 matching lines...) Expand all Loading... |
2803 | 2831 |
2804 unittest.test("method--list", () { | 2832 unittest.test("method--list", () { |
2805 | 2833 |
2806 var mock = new common_test.HttpServerMock(); | 2834 var mock = new common_test.HttpServerMock(); |
2807 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; | 2835 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; |
2808 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2836 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2809 var path = (req.url).path; | 2837 var path = (req.url).path; |
2810 var pathOffset = 0; | 2838 var pathOffset = 0; |
2811 var index; | 2839 var index; |
2812 var subPart; | 2840 var subPart; |
2813 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/dfareporting/v1.3/")); | 2841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2814 pathOffset += 19; | 2842 pathOffset += 1; |
| 2843 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2844 pathOffset += 18; |
2815 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("userprofiles")); | 2845 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("userprofiles")); |
2816 pathOffset += 12; | 2846 pathOffset += 12; |
2817 | 2847 |
2818 var query = (req.url).query; | 2848 var query = (req.url).query; |
2819 var queryOffset = 0; | 2849 var queryOffset = 0; |
2820 var queryMap = {}; | 2850 var queryMap = {}; |
2821 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2851 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2822 parseBool(n) { | 2852 parseBool(n) { |
2823 if (n == "true") return true; | 2853 if (n == "true") return true; |
2824 if (n == "false") return false; | 2854 if (n == "false") return false; |
(...skipping 17 matching lines...) Expand all Loading... |
2842 res.list().then(unittest.expectAsync(((api.UserProfileList response) { | 2872 res.list().then(unittest.expectAsync(((api.UserProfileList response) { |
2843 checkUserProfileList(response); | 2873 checkUserProfileList(response); |
2844 }))); | 2874 }))); |
2845 }); | 2875 }); |
2846 | 2876 |
2847 }); | 2877 }); |
2848 | 2878 |
2849 | 2879 |
2850 } | 2880 } |
2851 | 2881 |
OLD | NEW |