OLD | NEW |
1 library googleapis.doubleclickbidmanager.v1.test; | 1 library googleapis.doubleclickbidmanager.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed1007() { | 54 buildUnnamed1593() { |
55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
56 o.add("foo"); | 56 o.add("foo"); |
57 o.add("foo"); | 57 o.add("foo"); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed1007(core.List<core.String> o) { | 61 checkUnnamed1593(core.List<core.String> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterDownloadLineItemsRequest = 0; | 67 core.int buildCounterDownloadLineItemsRequest = 0; |
68 buildDownloadLineItemsRequest() { | 68 buildDownloadLineItemsRequest() { |
69 var o = new api.DownloadLineItemsRequest(); | 69 var o = new api.DownloadLineItemsRequest(); |
70 buildCounterDownloadLineItemsRequest++; | 70 buildCounterDownloadLineItemsRequest++; |
71 if (buildCounterDownloadLineItemsRequest < 3) { | 71 if (buildCounterDownloadLineItemsRequest < 3) { |
72 o.filterIds = buildUnnamed1007(); | 72 o.filterIds = buildUnnamed1593(); |
73 o.filterType = "foo"; | 73 o.filterType = "foo"; |
74 o.format = "foo"; | 74 o.format = "foo"; |
75 } | 75 } |
76 buildCounterDownloadLineItemsRequest--; | 76 buildCounterDownloadLineItemsRequest--; |
77 return o; | 77 return o; |
78 } | 78 } |
79 | 79 |
80 checkDownloadLineItemsRequest(api.DownloadLineItemsRequest o) { | 80 checkDownloadLineItemsRequest(api.DownloadLineItemsRequest o) { |
81 buildCounterDownloadLineItemsRequest++; | 81 buildCounterDownloadLineItemsRequest++; |
82 if (buildCounterDownloadLineItemsRequest < 3) { | 82 if (buildCounterDownloadLineItemsRequest < 3) { |
83 checkUnnamed1007(o.filterIds); | 83 checkUnnamed1593(o.filterIds); |
84 unittest.expect(o.filterType, unittest.equals('foo')); | 84 unittest.expect(o.filterType, unittest.equals('foo')); |
85 unittest.expect(o.format, unittest.equals('foo')); | 85 unittest.expect(o.format, unittest.equals('foo')); |
86 } | 86 } |
87 buildCounterDownloadLineItemsRequest--; | 87 buildCounterDownloadLineItemsRequest--; |
88 } | 88 } |
89 | 89 |
90 core.int buildCounterDownloadLineItemsResponse = 0; | 90 core.int buildCounterDownloadLineItemsResponse = 0; |
91 buildDownloadLineItemsResponse() { | 91 buildDownloadLineItemsResponse() { |
92 var o = new api.DownloadLineItemsResponse(); | 92 var o = new api.DownloadLineItemsResponse(); |
93 buildCounterDownloadLineItemsResponse++; | 93 buildCounterDownloadLineItemsResponse++; |
(...skipping 26 matching lines...) Expand all Loading... |
120 | 120 |
121 checkFilterPair(api.FilterPair o) { | 121 checkFilterPair(api.FilterPair o) { |
122 buildCounterFilterPair++; | 122 buildCounterFilterPair++; |
123 if (buildCounterFilterPair < 3) { | 123 if (buildCounterFilterPair < 3) { |
124 unittest.expect(o.type, unittest.equals('foo')); | 124 unittest.expect(o.type, unittest.equals('foo')); |
125 unittest.expect(o.value, unittest.equals('foo')); | 125 unittest.expect(o.value, unittest.equals('foo')); |
126 } | 126 } |
127 buildCounterFilterPair--; | 127 buildCounterFilterPair--; |
128 } | 128 } |
129 | 129 |
130 buildUnnamed1008() { | 130 buildUnnamed1594() { |
131 var o = new core.List<api.Query>(); | 131 var o = new core.List<api.Query>(); |
132 o.add(buildQuery()); | 132 o.add(buildQuery()); |
133 o.add(buildQuery()); | 133 o.add(buildQuery()); |
134 return o; | 134 return o; |
135 } | 135 } |
136 | 136 |
137 checkUnnamed1008(core.List<api.Query> o) { | 137 checkUnnamed1594(core.List<api.Query> o) { |
138 unittest.expect(o, unittest.hasLength(2)); | 138 unittest.expect(o, unittest.hasLength(2)); |
139 checkQuery(o[0]); | 139 checkQuery(o[0]); |
140 checkQuery(o[1]); | 140 checkQuery(o[1]); |
141 } | 141 } |
142 | 142 |
143 core.int buildCounterListQueriesResponse = 0; | 143 core.int buildCounterListQueriesResponse = 0; |
144 buildListQueriesResponse() { | 144 buildListQueriesResponse() { |
145 var o = new api.ListQueriesResponse(); | 145 var o = new api.ListQueriesResponse(); |
146 buildCounterListQueriesResponse++; | 146 buildCounterListQueriesResponse++; |
147 if (buildCounterListQueriesResponse < 3) { | 147 if (buildCounterListQueriesResponse < 3) { |
148 o.kind = "foo"; | 148 o.kind = "foo"; |
149 o.queries = buildUnnamed1008(); | 149 o.queries = buildUnnamed1594(); |
150 } | 150 } |
151 buildCounterListQueriesResponse--; | 151 buildCounterListQueriesResponse--; |
152 return o; | 152 return o; |
153 } | 153 } |
154 | 154 |
155 checkListQueriesResponse(api.ListQueriesResponse o) { | 155 checkListQueriesResponse(api.ListQueriesResponse o) { |
156 buildCounterListQueriesResponse++; | 156 buildCounterListQueriesResponse++; |
157 if (buildCounterListQueriesResponse < 3) { | 157 if (buildCounterListQueriesResponse < 3) { |
158 unittest.expect(o.kind, unittest.equals('foo')); | 158 unittest.expect(o.kind, unittest.equals('foo')); |
159 checkUnnamed1008(o.queries); | 159 checkUnnamed1594(o.queries); |
160 } | 160 } |
161 buildCounterListQueriesResponse--; | 161 buildCounterListQueriesResponse--; |
162 } | 162 } |
163 | 163 |
164 buildUnnamed1009() { | 164 buildUnnamed1595() { |
165 var o = new core.List<api.Report>(); | 165 var o = new core.List<api.Report>(); |
166 o.add(buildReport()); | 166 o.add(buildReport()); |
167 o.add(buildReport()); | 167 o.add(buildReport()); |
168 return o; | 168 return o; |
169 } | 169 } |
170 | 170 |
171 checkUnnamed1009(core.List<api.Report> o) { | 171 checkUnnamed1595(core.List<api.Report> o) { |
172 unittest.expect(o, unittest.hasLength(2)); | 172 unittest.expect(o, unittest.hasLength(2)); |
173 checkReport(o[0]); | 173 checkReport(o[0]); |
174 checkReport(o[1]); | 174 checkReport(o[1]); |
175 } | 175 } |
176 | 176 |
177 core.int buildCounterListReportsResponse = 0; | 177 core.int buildCounterListReportsResponse = 0; |
178 buildListReportsResponse() { | 178 buildListReportsResponse() { |
179 var o = new api.ListReportsResponse(); | 179 var o = new api.ListReportsResponse(); |
180 buildCounterListReportsResponse++; | 180 buildCounterListReportsResponse++; |
181 if (buildCounterListReportsResponse < 3) { | 181 if (buildCounterListReportsResponse < 3) { |
182 o.kind = "foo"; | 182 o.kind = "foo"; |
183 o.reports = buildUnnamed1009(); | 183 o.reports = buildUnnamed1595(); |
184 } | 184 } |
185 buildCounterListReportsResponse--; | 185 buildCounterListReportsResponse--; |
186 return o; | 186 return o; |
187 } | 187 } |
188 | 188 |
189 checkListReportsResponse(api.ListReportsResponse o) { | 189 checkListReportsResponse(api.ListReportsResponse o) { |
190 buildCounterListReportsResponse++; | 190 buildCounterListReportsResponse++; |
191 if (buildCounterListReportsResponse < 3) { | 191 if (buildCounterListReportsResponse < 3) { |
192 unittest.expect(o.kind, unittest.equals('foo')); | 192 unittest.expect(o.kind, unittest.equals('foo')); |
193 checkUnnamed1009(o.reports); | 193 checkUnnamed1595(o.reports); |
194 } | 194 } |
195 buildCounterListReportsResponse--; | 195 buildCounterListReportsResponse--; |
196 } | 196 } |
197 | 197 |
198 buildUnnamed1010() { | 198 buildUnnamed1596() { |
199 var o = new core.List<api.FilterPair>(); | 199 var o = new core.List<api.FilterPair>(); |
200 o.add(buildFilterPair()); | 200 o.add(buildFilterPair()); |
201 o.add(buildFilterPair()); | 201 o.add(buildFilterPair()); |
202 return o; | 202 return o; |
203 } | 203 } |
204 | 204 |
205 checkUnnamed1010(core.List<api.FilterPair> o) { | 205 checkUnnamed1596(core.List<api.FilterPair> o) { |
206 unittest.expect(o, unittest.hasLength(2)); | 206 unittest.expect(o, unittest.hasLength(2)); |
207 checkFilterPair(o[0]); | 207 checkFilterPair(o[0]); |
208 checkFilterPair(o[1]); | 208 checkFilterPair(o[1]); |
209 } | 209 } |
210 | 210 |
211 buildUnnamed1011() { | 211 buildUnnamed1597() { |
212 var o = new core.List<core.String>(); | 212 var o = new core.List<core.String>(); |
213 o.add("foo"); | 213 o.add("foo"); |
214 o.add("foo"); | 214 o.add("foo"); |
215 return o; | 215 return o; |
216 } | 216 } |
217 | 217 |
218 checkUnnamed1011(core.List<core.String> o) { | 218 checkUnnamed1597(core.List<core.String> o) { |
219 unittest.expect(o, unittest.hasLength(2)); | 219 unittest.expect(o, unittest.hasLength(2)); |
220 unittest.expect(o[0], unittest.equals('foo')); | 220 unittest.expect(o[0], unittest.equals('foo')); |
221 unittest.expect(o[1], unittest.equals('foo')); | 221 unittest.expect(o[1], unittest.equals('foo')); |
222 } | 222 } |
223 | 223 |
224 buildUnnamed1012() { | 224 buildUnnamed1598() { |
225 var o = new core.List<core.String>(); | 225 var o = new core.List<core.String>(); |
226 o.add("foo"); | 226 o.add("foo"); |
227 o.add("foo"); | 227 o.add("foo"); |
228 return o; | 228 return o; |
229 } | 229 } |
230 | 230 |
231 checkUnnamed1012(core.List<core.String> o) { | 231 checkUnnamed1598(core.List<core.String> o) { |
232 unittest.expect(o, unittest.hasLength(2)); | 232 unittest.expect(o, unittest.hasLength(2)); |
233 unittest.expect(o[0], unittest.equals('foo')); | 233 unittest.expect(o[0], unittest.equals('foo')); |
234 unittest.expect(o[1], unittest.equals('foo')); | 234 unittest.expect(o[1], unittest.equals('foo')); |
235 } | 235 } |
236 | 236 |
237 core.int buildCounterParameters = 0; | 237 core.int buildCounterParameters = 0; |
238 buildParameters() { | 238 buildParameters() { |
239 var o = new api.Parameters(); | 239 var o = new api.Parameters(); |
240 buildCounterParameters++; | 240 buildCounterParameters++; |
241 if (buildCounterParameters < 3) { | 241 if (buildCounterParameters < 3) { |
242 o.filters = buildUnnamed1010(); | 242 o.filters = buildUnnamed1596(); |
243 o.groupBys = buildUnnamed1011(); | 243 o.groupBys = buildUnnamed1597(); |
244 o.includeInviteData = true; | 244 o.includeInviteData = true; |
245 o.metrics = buildUnnamed1012(); | 245 o.metrics = buildUnnamed1598(); |
246 o.type = "foo"; | 246 o.type = "foo"; |
247 } | 247 } |
248 buildCounterParameters--; | 248 buildCounterParameters--; |
249 return o; | 249 return o; |
250 } | 250 } |
251 | 251 |
252 checkParameters(api.Parameters o) { | 252 checkParameters(api.Parameters o) { |
253 buildCounterParameters++; | 253 buildCounterParameters++; |
254 if (buildCounterParameters < 3) { | 254 if (buildCounterParameters < 3) { |
255 checkUnnamed1010(o.filters); | 255 checkUnnamed1596(o.filters); |
256 checkUnnamed1011(o.groupBys); | 256 checkUnnamed1597(o.groupBys); |
257 unittest.expect(o.includeInviteData, unittest.isTrue); | 257 unittest.expect(o.includeInviteData, unittest.isTrue); |
258 checkUnnamed1012(o.metrics); | 258 checkUnnamed1598(o.metrics); |
259 unittest.expect(o.type, unittest.equals('foo')); | 259 unittest.expect(o.type, unittest.equals('foo')); |
260 } | 260 } |
261 buildCounterParameters--; | 261 buildCounterParameters--; |
262 } | 262 } |
263 | 263 |
264 core.int buildCounterQuery = 0; | 264 core.int buildCounterQuery = 0; |
265 buildQuery() { | 265 buildQuery() { |
266 var o = new api.Query(); | 266 var o = new api.Query(); |
267 buildCounterQuery++; | 267 buildCounterQuery++; |
268 if (buildCounterQuery < 3) { | 268 if (buildCounterQuery < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
287 checkParameters(o.params); | 287 checkParameters(o.params); |
288 unittest.expect(o.queryId, unittest.equals('foo')); | 288 unittest.expect(o.queryId, unittest.equals('foo')); |
289 unittest.expect(o.reportDataEndTimeMs, unittest.equals('foo')); | 289 unittest.expect(o.reportDataEndTimeMs, unittest.equals('foo')); |
290 unittest.expect(o.reportDataStartTimeMs, unittest.equals('foo')); | 290 unittest.expect(o.reportDataStartTimeMs, unittest.equals('foo')); |
291 checkQuerySchedule(o.schedule); | 291 checkQuerySchedule(o.schedule); |
292 unittest.expect(o.timezoneCode, unittest.equals('foo')); | 292 unittest.expect(o.timezoneCode, unittest.equals('foo')); |
293 } | 293 } |
294 buildCounterQuery--; | 294 buildCounterQuery--; |
295 } | 295 } |
296 | 296 |
297 buildUnnamed1013() { | 297 buildUnnamed1599() { |
298 var o = new core.List<core.String>(); | 298 var o = new core.List<core.String>(); |
299 o.add("foo"); | 299 o.add("foo"); |
300 o.add("foo"); | 300 o.add("foo"); |
301 return o; | 301 return o; |
302 } | 302 } |
303 | 303 |
304 checkUnnamed1013(core.List<core.String> o) { | 304 checkUnnamed1599(core.List<core.String> o) { |
305 unittest.expect(o, unittest.hasLength(2)); | 305 unittest.expect(o, unittest.hasLength(2)); |
306 unittest.expect(o[0], unittest.equals('foo')); | 306 unittest.expect(o[0], unittest.equals('foo')); |
307 unittest.expect(o[1], unittest.equals('foo')); | 307 unittest.expect(o[1], unittest.equals('foo')); |
308 } | 308 } |
309 | 309 |
310 core.int buildCounterQueryMetadata = 0; | 310 core.int buildCounterQueryMetadata = 0; |
311 buildQueryMetadata() { | 311 buildQueryMetadata() { |
312 var o = new api.QueryMetadata(); | 312 var o = new api.QueryMetadata(); |
313 buildCounterQueryMetadata++; | 313 buildCounterQueryMetadata++; |
314 if (buildCounterQueryMetadata < 3) { | 314 if (buildCounterQueryMetadata < 3) { |
315 o.dataRange = "foo"; | 315 o.dataRange = "foo"; |
316 o.format = "foo"; | 316 o.format = "foo"; |
317 o.googleCloudStoragePathForLatestReport = "foo"; | 317 o.googleCloudStoragePathForLatestReport = "foo"; |
318 o.googleDrivePathForLatestReport = "foo"; | 318 o.googleDrivePathForLatestReport = "foo"; |
319 o.latestReportRunTimeMs = "foo"; | 319 o.latestReportRunTimeMs = "foo"; |
320 o.locale = "foo"; | 320 o.locale = "foo"; |
321 o.reportCount = 42; | 321 o.reportCount = 42; |
322 o.running = true; | 322 o.running = true; |
323 o.sendNotification = true; | 323 o.sendNotification = true; |
324 o.shareEmailAddress = buildUnnamed1013(); | 324 o.shareEmailAddress = buildUnnamed1599(); |
325 o.title = "foo"; | 325 o.title = "foo"; |
326 } | 326 } |
327 buildCounterQueryMetadata--; | 327 buildCounterQueryMetadata--; |
328 return o; | 328 return o; |
329 } | 329 } |
330 | 330 |
331 checkQueryMetadata(api.QueryMetadata o) { | 331 checkQueryMetadata(api.QueryMetadata o) { |
332 buildCounterQueryMetadata++; | 332 buildCounterQueryMetadata++; |
333 if (buildCounterQueryMetadata < 3) { | 333 if (buildCounterQueryMetadata < 3) { |
334 unittest.expect(o.dataRange, unittest.equals('foo')); | 334 unittest.expect(o.dataRange, unittest.equals('foo')); |
335 unittest.expect(o.format, unittest.equals('foo')); | 335 unittest.expect(o.format, unittest.equals('foo')); |
336 unittest.expect(o.googleCloudStoragePathForLatestReport, unittest.equals('fo
o')); | 336 unittest.expect(o.googleCloudStoragePathForLatestReport, unittest.equals('fo
o')); |
337 unittest.expect(o.googleDrivePathForLatestReport, unittest.equals('foo')); | 337 unittest.expect(o.googleDrivePathForLatestReport, unittest.equals('foo')); |
338 unittest.expect(o.latestReportRunTimeMs, unittest.equals('foo')); | 338 unittest.expect(o.latestReportRunTimeMs, unittest.equals('foo')); |
339 unittest.expect(o.locale, unittest.equals('foo')); | 339 unittest.expect(o.locale, unittest.equals('foo')); |
340 unittest.expect(o.reportCount, unittest.equals(42)); | 340 unittest.expect(o.reportCount, unittest.equals(42)); |
341 unittest.expect(o.running, unittest.isTrue); | 341 unittest.expect(o.running, unittest.isTrue); |
342 unittest.expect(o.sendNotification, unittest.isTrue); | 342 unittest.expect(o.sendNotification, unittest.isTrue); |
343 checkUnnamed1013(o.shareEmailAddress); | 343 checkUnnamed1599(o.shareEmailAddress); |
344 unittest.expect(o.title, unittest.equals('foo')); | 344 unittest.expect(o.title, unittest.equals('foo')); |
345 } | 345 } |
346 buildCounterQueryMetadata--; | 346 buildCounterQueryMetadata--; |
347 } | 347 } |
348 | 348 |
349 core.int buildCounterQuerySchedule = 0; | 349 core.int buildCounterQuerySchedule = 0; |
350 buildQuerySchedule() { | 350 buildQuerySchedule() { |
351 var o = new api.QuerySchedule(); | 351 var o = new api.QuerySchedule(); |
352 buildCounterQuerySchedule++; | 352 buildCounterQuerySchedule++; |
353 if (buildCounterQuerySchedule < 3) { | 353 if (buildCounterQuerySchedule < 3) { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 buildCounterReportStatus++; | 477 buildCounterReportStatus++; |
478 if (buildCounterReportStatus < 3) { | 478 if (buildCounterReportStatus < 3) { |
479 checkReportFailure(o.failure); | 479 checkReportFailure(o.failure); |
480 unittest.expect(o.finishTimeMs, unittest.equals('foo')); | 480 unittest.expect(o.finishTimeMs, unittest.equals('foo')); |
481 unittest.expect(o.format, unittest.equals('foo')); | 481 unittest.expect(o.format, unittest.equals('foo')); |
482 unittest.expect(o.state, unittest.equals('foo')); | 482 unittest.expect(o.state, unittest.equals('foo')); |
483 } | 483 } |
484 buildCounterReportStatus--; | 484 buildCounterReportStatus--; |
485 } | 485 } |
486 | 486 |
487 buildUnnamed1014() { | 487 buildUnnamed1600() { |
488 var o = new core.List<core.String>(); | 488 var o = new core.List<core.String>(); |
489 o.add("foo"); | 489 o.add("foo"); |
490 o.add("foo"); | 490 o.add("foo"); |
491 return o; | 491 return o; |
492 } | 492 } |
493 | 493 |
494 checkUnnamed1014(core.List<core.String> o) { | 494 checkUnnamed1600(core.List<core.String> o) { |
495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
496 unittest.expect(o[0], unittest.equals('foo')); | 496 unittest.expect(o[0], unittest.equals('foo')); |
497 unittest.expect(o[1], unittest.equals('foo')); | 497 unittest.expect(o[1], unittest.equals('foo')); |
498 } | 498 } |
499 | 499 |
500 core.int buildCounterRowStatus = 0; | 500 core.int buildCounterRowStatus = 0; |
501 buildRowStatus() { | 501 buildRowStatus() { |
502 var o = new api.RowStatus(); | 502 var o = new api.RowStatus(); |
503 buildCounterRowStatus++; | 503 buildCounterRowStatus++; |
504 if (buildCounterRowStatus < 3) { | 504 if (buildCounterRowStatus < 3) { |
505 o.changed = true; | 505 o.changed = true; |
506 o.entityId = "foo"; | 506 o.entityId = "foo"; |
507 o.entityName = "foo"; | 507 o.entityName = "foo"; |
508 o.errors = buildUnnamed1014(); | 508 o.errors = buildUnnamed1600(); |
509 o.persisted = true; | 509 o.persisted = true; |
510 o.rowNumber = 42; | 510 o.rowNumber = 42; |
511 } | 511 } |
512 buildCounterRowStatus--; | 512 buildCounterRowStatus--; |
513 return o; | 513 return o; |
514 } | 514 } |
515 | 515 |
516 checkRowStatus(api.RowStatus o) { | 516 checkRowStatus(api.RowStatus o) { |
517 buildCounterRowStatus++; | 517 buildCounterRowStatus++; |
518 if (buildCounterRowStatus < 3) { | 518 if (buildCounterRowStatus < 3) { |
519 unittest.expect(o.changed, unittest.isTrue); | 519 unittest.expect(o.changed, unittest.isTrue); |
520 unittest.expect(o.entityId, unittest.equals('foo')); | 520 unittest.expect(o.entityId, unittest.equals('foo')); |
521 unittest.expect(o.entityName, unittest.equals('foo')); | 521 unittest.expect(o.entityName, unittest.equals('foo')); |
522 checkUnnamed1014(o.errors); | 522 checkUnnamed1600(o.errors); |
523 unittest.expect(o.persisted, unittest.isTrue); | 523 unittest.expect(o.persisted, unittest.isTrue); |
524 unittest.expect(o.rowNumber, unittest.equals(42)); | 524 unittest.expect(o.rowNumber, unittest.equals(42)); |
525 } | 525 } |
526 buildCounterRowStatus--; | 526 buildCounterRowStatus--; |
527 } | 527 } |
528 | 528 |
529 core.int buildCounterRunQueryRequest = 0; | 529 core.int buildCounterRunQueryRequest = 0; |
530 buildRunQueryRequest() { | 530 buildRunQueryRequest() { |
531 var o = new api.RunQueryRequest(); | 531 var o = new api.RunQueryRequest(); |
532 buildCounterRunQueryRequest++; | 532 buildCounterRunQueryRequest++; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 } | 586 } |
587 | 587 |
588 checkUploadLineItemsResponse(api.UploadLineItemsResponse o) { | 588 checkUploadLineItemsResponse(api.UploadLineItemsResponse o) { |
589 buildCounterUploadLineItemsResponse++; | 589 buildCounterUploadLineItemsResponse++; |
590 if (buildCounterUploadLineItemsResponse < 3) { | 590 if (buildCounterUploadLineItemsResponse < 3) { |
591 checkUploadStatus(o.uploadStatus); | 591 checkUploadStatus(o.uploadStatus); |
592 } | 592 } |
593 buildCounterUploadLineItemsResponse--; | 593 buildCounterUploadLineItemsResponse--; |
594 } | 594 } |
595 | 595 |
596 buildUnnamed1015() { | 596 buildUnnamed1601() { |
597 var o = new core.List<core.String>(); | 597 var o = new core.List<core.String>(); |
598 o.add("foo"); | 598 o.add("foo"); |
599 o.add("foo"); | 599 o.add("foo"); |
600 return o; | 600 return o; |
601 } | 601 } |
602 | 602 |
603 checkUnnamed1015(core.List<core.String> o) { | 603 checkUnnamed1601(core.List<core.String> o) { |
604 unittest.expect(o, unittest.hasLength(2)); | 604 unittest.expect(o, unittest.hasLength(2)); |
605 unittest.expect(o[0], unittest.equals('foo')); | 605 unittest.expect(o[0], unittest.equals('foo')); |
606 unittest.expect(o[1], unittest.equals('foo')); | 606 unittest.expect(o[1], unittest.equals('foo')); |
607 } | 607 } |
608 | 608 |
609 buildUnnamed1016() { | 609 buildUnnamed1602() { |
610 var o = new core.List<api.RowStatus>(); | 610 var o = new core.List<api.RowStatus>(); |
611 o.add(buildRowStatus()); | 611 o.add(buildRowStatus()); |
612 o.add(buildRowStatus()); | 612 o.add(buildRowStatus()); |
613 return o; | 613 return o; |
614 } | 614 } |
615 | 615 |
616 checkUnnamed1016(core.List<api.RowStatus> o) { | 616 checkUnnamed1602(core.List<api.RowStatus> o) { |
617 unittest.expect(o, unittest.hasLength(2)); | 617 unittest.expect(o, unittest.hasLength(2)); |
618 checkRowStatus(o[0]); | 618 checkRowStatus(o[0]); |
619 checkRowStatus(o[1]); | 619 checkRowStatus(o[1]); |
620 } | 620 } |
621 | 621 |
622 core.int buildCounterUploadStatus = 0; | 622 core.int buildCounterUploadStatus = 0; |
623 buildUploadStatus() { | 623 buildUploadStatus() { |
624 var o = new api.UploadStatus(); | 624 var o = new api.UploadStatus(); |
625 buildCounterUploadStatus++; | 625 buildCounterUploadStatus++; |
626 if (buildCounterUploadStatus < 3) { | 626 if (buildCounterUploadStatus < 3) { |
627 o.errors = buildUnnamed1015(); | 627 o.errors = buildUnnamed1601(); |
628 o.rowStatus = buildUnnamed1016(); | 628 o.rowStatus = buildUnnamed1602(); |
629 } | 629 } |
630 buildCounterUploadStatus--; | 630 buildCounterUploadStatus--; |
631 return o; | 631 return o; |
632 } | 632 } |
633 | 633 |
634 checkUploadStatus(api.UploadStatus o) { | 634 checkUploadStatus(api.UploadStatus o) { |
635 buildCounterUploadStatus++; | 635 buildCounterUploadStatus++; |
636 if (buildCounterUploadStatus < 3) { | 636 if (buildCounterUploadStatus < 3) { |
637 checkUnnamed1015(o.errors); | 637 checkUnnamed1601(o.errors); |
638 checkUnnamed1016(o.rowStatus); | 638 checkUnnamed1602(o.rowStatus); |
639 } | 639 } |
640 buildCounterUploadStatus--; | 640 buildCounterUploadStatus--; |
641 } | 641 } |
642 | 642 |
643 | 643 |
644 main() { | 644 main() { |
645 unittest.group("obj-schema-DownloadLineItemsRequest", () { | 645 unittest.group("obj-schema-DownloadLineItemsRequest", () { |
646 unittest.test("to-json--from-json", () { | 646 unittest.test("to-json--from-json", () { |
647 var o = buildDownloadLineItemsRequest(); | 647 var o = buildDownloadLineItemsRequest(); |
648 var od = new api.DownloadLineItemsRequest.fromJson(o.toJson()); | 648 var od = new api.DownloadLineItemsRequest.fromJson(o.toJson()); |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 res.listreports(arg_queryId).then(unittest.expectAsync(((api.ListReportsRe
sponse response) { | 1212 res.listreports(arg_queryId).then(unittest.expectAsync(((api.ListReportsRe
sponse response) { |
1213 checkListReportsResponse(response); | 1213 checkListReportsResponse(response); |
1214 }))); | 1214 }))); |
1215 }); | 1215 }); |
1216 | 1216 |
1217 }); | 1217 }); |
1218 | 1218 |
1219 | 1219 |
1220 } | 1220 } |
1221 | 1221 |
OLD | NEW |