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; |
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/doubleclickbidmanager/v1.dart' as api; | 15 import 'package:googleapis/doubleclickbidmanager/v1.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed1061() { | 19 buildUnnamed702() { |
20 var o = new core.List<core.String>(); | 20 var o = new core.List<core.String>(); |
21 o.add("foo"); | 21 o.add("foo"); |
22 o.add("foo"); | 22 o.add("foo"); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed1061(core.List<core.String> o) { | 26 checkUnnamed702(core.List<core.String> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 unittest.expect(o[0], unittest.equals('foo')); | 28 unittest.expect(o[0], unittest.equals('foo')); |
29 unittest.expect(o[1], unittest.equals('foo')); | 29 unittest.expect(o[1], unittest.equals('foo')); |
30 } | 30 } |
31 | 31 |
32 core.int buildCounterDownloadLineItemsRequest = 0; | 32 core.int buildCounterDownloadLineItemsRequest = 0; |
33 buildDownloadLineItemsRequest() { | 33 buildDownloadLineItemsRequest() { |
34 var o = new api.DownloadLineItemsRequest(); | 34 var o = new api.DownloadLineItemsRequest(); |
35 buildCounterDownloadLineItemsRequest++; | 35 buildCounterDownloadLineItemsRequest++; |
36 if (buildCounterDownloadLineItemsRequest < 3) { | 36 if (buildCounterDownloadLineItemsRequest < 3) { |
37 o.filterIds = buildUnnamed1061(); | 37 o.filterIds = buildUnnamed702(); |
38 o.filterType = "foo"; | 38 o.filterType = "foo"; |
39 o.format = "foo"; | 39 o.format = "foo"; |
40 } | 40 } |
41 buildCounterDownloadLineItemsRequest--; | 41 buildCounterDownloadLineItemsRequest--; |
42 return o; | 42 return o; |
43 } | 43 } |
44 | 44 |
45 checkDownloadLineItemsRequest(api.DownloadLineItemsRequest o) { | 45 checkDownloadLineItemsRequest(api.DownloadLineItemsRequest o) { |
46 buildCounterDownloadLineItemsRequest++; | 46 buildCounterDownloadLineItemsRequest++; |
47 if (buildCounterDownloadLineItemsRequest < 3) { | 47 if (buildCounterDownloadLineItemsRequest < 3) { |
48 checkUnnamed1061(o.filterIds); | 48 checkUnnamed702(o.filterIds); |
49 unittest.expect(o.filterType, unittest.equals('foo')); | 49 unittest.expect(o.filterType, unittest.equals('foo')); |
50 unittest.expect(o.format, unittest.equals('foo')); | 50 unittest.expect(o.format, unittest.equals('foo')); |
51 } | 51 } |
52 buildCounterDownloadLineItemsRequest--; | 52 buildCounterDownloadLineItemsRequest--; |
53 } | 53 } |
54 | 54 |
55 core.int buildCounterDownloadLineItemsResponse = 0; | 55 core.int buildCounterDownloadLineItemsResponse = 0; |
56 buildDownloadLineItemsResponse() { | 56 buildDownloadLineItemsResponse() { |
57 var o = new api.DownloadLineItemsResponse(); | 57 var o = new api.DownloadLineItemsResponse(); |
58 buildCounterDownloadLineItemsResponse++; | 58 buildCounterDownloadLineItemsResponse++; |
(...skipping 26 matching lines...) Expand all Loading... |
85 | 85 |
86 checkFilterPair(api.FilterPair o) { | 86 checkFilterPair(api.FilterPair o) { |
87 buildCounterFilterPair++; | 87 buildCounterFilterPair++; |
88 if (buildCounterFilterPair < 3) { | 88 if (buildCounterFilterPair < 3) { |
89 unittest.expect(o.type, unittest.equals('foo')); | 89 unittest.expect(o.type, unittest.equals('foo')); |
90 unittest.expect(o.value, unittest.equals('foo')); | 90 unittest.expect(o.value, unittest.equals('foo')); |
91 } | 91 } |
92 buildCounterFilterPair--; | 92 buildCounterFilterPair--; |
93 } | 93 } |
94 | 94 |
95 buildUnnamed1062() { | 95 buildUnnamed703() { |
96 var o = new core.List<api.Query>(); | 96 var o = new core.List<api.Query>(); |
97 o.add(buildQuery()); | 97 o.add(buildQuery()); |
98 o.add(buildQuery()); | 98 o.add(buildQuery()); |
99 return o; | 99 return o; |
100 } | 100 } |
101 | 101 |
102 checkUnnamed1062(core.List<api.Query> o) { | 102 checkUnnamed703(core.List<api.Query> o) { |
103 unittest.expect(o, unittest.hasLength(2)); | 103 unittest.expect(o, unittest.hasLength(2)); |
104 checkQuery(o[0]); | 104 checkQuery(o[0]); |
105 checkQuery(o[1]); | 105 checkQuery(o[1]); |
106 } | 106 } |
107 | 107 |
108 core.int buildCounterListQueriesResponse = 0; | 108 core.int buildCounterListQueriesResponse = 0; |
109 buildListQueriesResponse() { | 109 buildListQueriesResponse() { |
110 var o = new api.ListQueriesResponse(); | 110 var o = new api.ListQueriesResponse(); |
111 buildCounterListQueriesResponse++; | 111 buildCounterListQueriesResponse++; |
112 if (buildCounterListQueriesResponse < 3) { | 112 if (buildCounterListQueriesResponse < 3) { |
113 o.kind = "foo"; | 113 o.kind = "foo"; |
114 o.queries = buildUnnamed1062(); | 114 o.queries = buildUnnamed703(); |
115 } | 115 } |
116 buildCounterListQueriesResponse--; | 116 buildCounterListQueriesResponse--; |
117 return o; | 117 return o; |
118 } | 118 } |
119 | 119 |
120 checkListQueriesResponse(api.ListQueriesResponse o) { | 120 checkListQueriesResponse(api.ListQueriesResponse o) { |
121 buildCounterListQueriesResponse++; | 121 buildCounterListQueriesResponse++; |
122 if (buildCounterListQueriesResponse < 3) { | 122 if (buildCounterListQueriesResponse < 3) { |
123 unittest.expect(o.kind, unittest.equals('foo')); | 123 unittest.expect(o.kind, unittest.equals('foo')); |
124 checkUnnamed1062(o.queries); | 124 checkUnnamed703(o.queries); |
125 } | 125 } |
126 buildCounterListQueriesResponse--; | 126 buildCounterListQueriesResponse--; |
127 } | 127 } |
128 | 128 |
129 buildUnnamed1063() { | 129 buildUnnamed704() { |
130 var o = new core.List<api.Report>(); | 130 var o = new core.List<api.Report>(); |
131 o.add(buildReport()); | 131 o.add(buildReport()); |
132 o.add(buildReport()); | 132 o.add(buildReport()); |
133 return o; | 133 return o; |
134 } | 134 } |
135 | 135 |
136 checkUnnamed1063(core.List<api.Report> o) { | 136 checkUnnamed704(core.List<api.Report> o) { |
137 unittest.expect(o, unittest.hasLength(2)); | 137 unittest.expect(o, unittest.hasLength(2)); |
138 checkReport(o[0]); | 138 checkReport(o[0]); |
139 checkReport(o[1]); | 139 checkReport(o[1]); |
140 } | 140 } |
141 | 141 |
142 core.int buildCounterListReportsResponse = 0; | 142 core.int buildCounterListReportsResponse = 0; |
143 buildListReportsResponse() { | 143 buildListReportsResponse() { |
144 var o = new api.ListReportsResponse(); | 144 var o = new api.ListReportsResponse(); |
145 buildCounterListReportsResponse++; | 145 buildCounterListReportsResponse++; |
146 if (buildCounterListReportsResponse < 3) { | 146 if (buildCounterListReportsResponse < 3) { |
147 o.kind = "foo"; | 147 o.kind = "foo"; |
148 o.reports = buildUnnamed1063(); | 148 o.reports = buildUnnamed704(); |
149 } | 149 } |
150 buildCounterListReportsResponse--; | 150 buildCounterListReportsResponse--; |
151 return o; | 151 return o; |
152 } | 152 } |
153 | 153 |
154 checkListReportsResponse(api.ListReportsResponse o) { | 154 checkListReportsResponse(api.ListReportsResponse o) { |
155 buildCounterListReportsResponse++; | 155 buildCounterListReportsResponse++; |
156 if (buildCounterListReportsResponse < 3) { | 156 if (buildCounterListReportsResponse < 3) { |
157 unittest.expect(o.kind, unittest.equals('foo')); | 157 unittest.expect(o.kind, unittest.equals('foo')); |
158 checkUnnamed1063(o.reports); | 158 checkUnnamed704(o.reports); |
159 } | 159 } |
160 buildCounterListReportsResponse--; | 160 buildCounterListReportsResponse--; |
161 } | 161 } |
162 | 162 |
163 buildUnnamed1064() { | 163 buildUnnamed705() { |
164 var o = new core.List<api.FilterPair>(); | 164 var o = new core.List<api.FilterPair>(); |
165 o.add(buildFilterPair()); | 165 o.add(buildFilterPair()); |
166 o.add(buildFilterPair()); | 166 o.add(buildFilterPair()); |
167 return o; | 167 return o; |
168 } | 168 } |
169 | 169 |
170 checkUnnamed1064(core.List<api.FilterPair> o) { | 170 checkUnnamed705(core.List<api.FilterPair> o) { |
171 unittest.expect(o, unittest.hasLength(2)); | 171 unittest.expect(o, unittest.hasLength(2)); |
172 checkFilterPair(o[0]); | 172 checkFilterPair(o[0]); |
173 checkFilterPair(o[1]); | 173 checkFilterPair(o[1]); |
174 } | 174 } |
175 | 175 |
176 buildUnnamed1065() { | 176 buildUnnamed706() { |
177 var o = new core.List<core.String>(); | 177 var o = new core.List<core.String>(); |
178 o.add("foo"); | 178 o.add("foo"); |
179 o.add("foo"); | 179 o.add("foo"); |
180 return o; | 180 return o; |
181 } | 181 } |
182 | 182 |
183 checkUnnamed1065(core.List<core.String> o) { | 183 checkUnnamed706(core.List<core.String> o) { |
184 unittest.expect(o, unittest.hasLength(2)); | 184 unittest.expect(o, unittest.hasLength(2)); |
185 unittest.expect(o[0], unittest.equals('foo')); | 185 unittest.expect(o[0], unittest.equals('foo')); |
186 unittest.expect(o[1], unittest.equals('foo')); | 186 unittest.expect(o[1], unittest.equals('foo')); |
187 } | 187 } |
188 | 188 |
189 buildUnnamed1066() { | 189 buildUnnamed707() { |
190 var o = new core.List<core.String>(); | 190 var o = new core.List<core.String>(); |
191 o.add("foo"); | 191 o.add("foo"); |
192 o.add("foo"); | 192 o.add("foo"); |
193 return o; | 193 return o; |
194 } | 194 } |
195 | 195 |
196 checkUnnamed1066(core.List<core.String> o) { | 196 checkUnnamed707(core.List<core.String> o) { |
197 unittest.expect(o, unittest.hasLength(2)); | 197 unittest.expect(o, unittest.hasLength(2)); |
198 unittest.expect(o[0], unittest.equals('foo')); | 198 unittest.expect(o[0], unittest.equals('foo')); |
199 unittest.expect(o[1], unittest.equals('foo')); | 199 unittest.expect(o[1], unittest.equals('foo')); |
200 } | 200 } |
201 | 201 |
202 core.int buildCounterParameters = 0; | 202 core.int buildCounterParameters = 0; |
203 buildParameters() { | 203 buildParameters() { |
204 var o = new api.Parameters(); | 204 var o = new api.Parameters(); |
205 buildCounterParameters++; | 205 buildCounterParameters++; |
206 if (buildCounterParameters < 3) { | 206 if (buildCounterParameters < 3) { |
207 o.filters = buildUnnamed1064(); | 207 o.filters = buildUnnamed705(); |
208 o.groupBys = buildUnnamed1065(); | 208 o.groupBys = buildUnnamed706(); |
209 o.includeInviteData = true; | 209 o.includeInviteData = true; |
210 o.metrics = buildUnnamed1066(); | 210 o.metrics = buildUnnamed707(); |
211 o.type = "foo"; | 211 o.type = "foo"; |
212 } | 212 } |
213 buildCounterParameters--; | 213 buildCounterParameters--; |
214 return o; | 214 return o; |
215 } | 215 } |
216 | 216 |
217 checkParameters(api.Parameters o) { | 217 checkParameters(api.Parameters o) { |
218 buildCounterParameters++; | 218 buildCounterParameters++; |
219 if (buildCounterParameters < 3) { | 219 if (buildCounterParameters < 3) { |
220 checkUnnamed1064(o.filters); | 220 checkUnnamed705(o.filters); |
221 checkUnnamed1065(o.groupBys); | 221 checkUnnamed706(o.groupBys); |
222 unittest.expect(o.includeInviteData, unittest.isTrue); | 222 unittest.expect(o.includeInviteData, unittest.isTrue); |
223 checkUnnamed1066(o.metrics); | 223 checkUnnamed707(o.metrics); |
224 unittest.expect(o.type, unittest.equals('foo')); | 224 unittest.expect(o.type, unittest.equals('foo')); |
225 } | 225 } |
226 buildCounterParameters--; | 226 buildCounterParameters--; |
227 } | 227 } |
228 | 228 |
229 core.int buildCounterQuery = 0; | 229 core.int buildCounterQuery = 0; |
230 buildQuery() { | 230 buildQuery() { |
231 var o = new api.Query(); | 231 var o = new api.Query(); |
232 buildCounterQuery++; | 232 buildCounterQuery++; |
233 if (buildCounterQuery < 3) { | 233 if (buildCounterQuery < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
252 checkParameters(o.params); | 252 checkParameters(o.params); |
253 unittest.expect(o.queryId, unittest.equals('foo')); | 253 unittest.expect(o.queryId, unittest.equals('foo')); |
254 unittest.expect(o.reportDataEndTimeMs, unittest.equals('foo')); | 254 unittest.expect(o.reportDataEndTimeMs, unittest.equals('foo')); |
255 unittest.expect(o.reportDataStartTimeMs, unittest.equals('foo')); | 255 unittest.expect(o.reportDataStartTimeMs, unittest.equals('foo')); |
256 checkQuerySchedule(o.schedule); | 256 checkQuerySchedule(o.schedule); |
257 unittest.expect(o.timezoneCode, unittest.equals('foo')); | 257 unittest.expect(o.timezoneCode, unittest.equals('foo')); |
258 } | 258 } |
259 buildCounterQuery--; | 259 buildCounterQuery--; |
260 } | 260 } |
261 | 261 |
262 buildUnnamed1067() { | 262 buildUnnamed708() { |
263 var o = new core.List<core.String>(); | 263 var o = new core.List<core.String>(); |
264 o.add("foo"); | 264 o.add("foo"); |
265 o.add("foo"); | 265 o.add("foo"); |
266 return o; | 266 return o; |
267 } | 267 } |
268 | 268 |
269 checkUnnamed1067(core.List<core.String> o) { | 269 checkUnnamed708(core.List<core.String> o) { |
270 unittest.expect(o, unittest.hasLength(2)); | 270 unittest.expect(o, unittest.hasLength(2)); |
271 unittest.expect(o[0], unittest.equals('foo')); | 271 unittest.expect(o[0], unittest.equals('foo')); |
272 unittest.expect(o[1], unittest.equals('foo')); | 272 unittest.expect(o[1], unittest.equals('foo')); |
273 } | 273 } |
274 | 274 |
275 core.int buildCounterQueryMetadata = 0; | 275 core.int buildCounterQueryMetadata = 0; |
276 buildQueryMetadata() { | 276 buildQueryMetadata() { |
277 var o = new api.QueryMetadata(); | 277 var o = new api.QueryMetadata(); |
278 buildCounterQueryMetadata++; | 278 buildCounterQueryMetadata++; |
279 if (buildCounterQueryMetadata < 3) { | 279 if (buildCounterQueryMetadata < 3) { |
280 o.dataRange = "foo"; | 280 o.dataRange = "foo"; |
281 o.format = "foo"; | 281 o.format = "foo"; |
282 o.googleCloudStoragePathForLatestReport = "foo"; | 282 o.googleCloudStoragePathForLatestReport = "foo"; |
283 o.googleDrivePathForLatestReport = "foo"; | 283 o.googleDrivePathForLatestReport = "foo"; |
284 o.latestReportRunTimeMs = "foo"; | 284 o.latestReportRunTimeMs = "foo"; |
285 o.reportCount = 42; | 285 o.reportCount = 42; |
286 o.running = true; | 286 o.running = true; |
287 o.sendNotification = true; | 287 o.sendNotification = true; |
288 o.shareEmailAddress = buildUnnamed1067(); | 288 o.shareEmailAddress = buildUnnamed708(); |
289 o.title = "foo"; | 289 o.title = "foo"; |
290 } | 290 } |
291 buildCounterQueryMetadata--; | 291 buildCounterQueryMetadata--; |
292 return o; | 292 return o; |
293 } | 293 } |
294 | 294 |
295 checkQueryMetadata(api.QueryMetadata o) { | 295 checkQueryMetadata(api.QueryMetadata o) { |
296 buildCounterQueryMetadata++; | 296 buildCounterQueryMetadata++; |
297 if (buildCounterQueryMetadata < 3) { | 297 if (buildCounterQueryMetadata < 3) { |
298 unittest.expect(o.dataRange, unittest.equals('foo')); | 298 unittest.expect(o.dataRange, unittest.equals('foo')); |
299 unittest.expect(o.format, unittest.equals('foo')); | 299 unittest.expect(o.format, unittest.equals('foo')); |
300 unittest.expect(o.googleCloudStoragePathForLatestReport, unittest.equals('fo
o')); | 300 unittest.expect(o.googleCloudStoragePathForLatestReport, unittest.equals('fo
o')); |
301 unittest.expect(o.googleDrivePathForLatestReport, unittest.equals('foo')); | 301 unittest.expect(o.googleDrivePathForLatestReport, unittest.equals('foo')); |
302 unittest.expect(o.latestReportRunTimeMs, unittest.equals('foo')); | 302 unittest.expect(o.latestReportRunTimeMs, unittest.equals('foo')); |
303 unittest.expect(o.reportCount, unittest.equals(42)); | 303 unittest.expect(o.reportCount, unittest.equals(42)); |
304 unittest.expect(o.running, unittest.isTrue); | 304 unittest.expect(o.running, unittest.isTrue); |
305 unittest.expect(o.sendNotification, unittest.isTrue); | 305 unittest.expect(o.sendNotification, unittest.isTrue); |
306 checkUnnamed1067(o.shareEmailAddress); | 306 checkUnnamed708(o.shareEmailAddress); |
307 unittest.expect(o.title, unittest.equals('foo')); | 307 unittest.expect(o.title, unittest.equals('foo')); |
308 } | 308 } |
309 buildCounterQueryMetadata--; | 309 buildCounterQueryMetadata--; |
310 } | 310 } |
311 | 311 |
312 core.int buildCounterQuerySchedule = 0; | 312 core.int buildCounterQuerySchedule = 0; |
313 buildQuerySchedule() { | 313 buildQuerySchedule() { |
314 var o = new api.QuerySchedule(); | 314 var o = new api.QuerySchedule(); |
315 buildCounterQuerySchedule++; | 315 buildCounterQuerySchedule++; |
316 if (buildCounterQuerySchedule < 3) { | 316 if (buildCounterQuerySchedule < 3) { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 buildCounterReportStatus++; | 440 buildCounterReportStatus++; |
441 if (buildCounterReportStatus < 3) { | 441 if (buildCounterReportStatus < 3) { |
442 checkReportFailure(o.failure); | 442 checkReportFailure(o.failure); |
443 unittest.expect(o.finishTimeMs, unittest.equals('foo')); | 443 unittest.expect(o.finishTimeMs, unittest.equals('foo')); |
444 unittest.expect(o.format, unittest.equals('foo')); | 444 unittest.expect(o.format, unittest.equals('foo')); |
445 unittest.expect(o.state, unittest.equals('foo')); | 445 unittest.expect(o.state, unittest.equals('foo')); |
446 } | 446 } |
447 buildCounterReportStatus--; | 447 buildCounterReportStatus--; |
448 } | 448 } |
449 | 449 |
450 buildUnnamed1068() { | 450 buildUnnamed709() { |
451 var o = new core.List<core.String>(); | 451 var o = new core.List<core.String>(); |
452 o.add("foo"); | 452 o.add("foo"); |
453 o.add("foo"); | 453 o.add("foo"); |
454 return o; | 454 return o; |
455 } | 455 } |
456 | 456 |
457 checkUnnamed1068(core.List<core.String> o) { | 457 checkUnnamed709(core.List<core.String> o) { |
458 unittest.expect(o, unittest.hasLength(2)); | 458 unittest.expect(o, unittest.hasLength(2)); |
459 unittest.expect(o[0], unittest.equals('foo')); | 459 unittest.expect(o[0], unittest.equals('foo')); |
460 unittest.expect(o[1], unittest.equals('foo')); | 460 unittest.expect(o[1], unittest.equals('foo')); |
461 } | 461 } |
462 | 462 |
463 core.int buildCounterRowStatus = 0; | 463 core.int buildCounterRowStatus = 0; |
464 buildRowStatus() { | 464 buildRowStatus() { |
465 var o = new api.RowStatus(); | 465 var o = new api.RowStatus(); |
466 buildCounterRowStatus++; | 466 buildCounterRowStatus++; |
467 if (buildCounterRowStatus < 3) { | 467 if (buildCounterRowStatus < 3) { |
468 o.changed = true; | 468 o.changed = true; |
469 o.entityId = "foo"; | 469 o.entityId = "foo"; |
470 o.entityName = "foo"; | 470 o.entityName = "foo"; |
471 o.errors = buildUnnamed1068(); | 471 o.errors = buildUnnamed709(); |
472 o.persisted = true; | 472 o.persisted = true; |
473 o.rowNumber = 42; | 473 o.rowNumber = 42; |
474 } | 474 } |
475 buildCounterRowStatus--; | 475 buildCounterRowStatus--; |
476 return o; | 476 return o; |
477 } | 477 } |
478 | 478 |
479 checkRowStatus(api.RowStatus o) { | 479 checkRowStatus(api.RowStatus o) { |
480 buildCounterRowStatus++; | 480 buildCounterRowStatus++; |
481 if (buildCounterRowStatus < 3) { | 481 if (buildCounterRowStatus < 3) { |
482 unittest.expect(o.changed, unittest.isTrue); | 482 unittest.expect(o.changed, unittest.isTrue); |
483 unittest.expect(o.entityId, unittest.equals('foo')); | 483 unittest.expect(o.entityId, unittest.equals('foo')); |
484 unittest.expect(o.entityName, unittest.equals('foo')); | 484 unittest.expect(o.entityName, unittest.equals('foo')); |
485 checkUnnamed1068(o.errors); | 485 checkUnnamed709(o.errors); |
486 unittest.expect(o.persisted, unittest.isTrue); | 486 unittest.expect(o.persisted, unittest.isTrue); |
487 unittest.expect(o.rowNumber, unittest.equals(42)); | 487 unittest.expect(o.rowNumber, unittest.equals(42)); |
488 } | 488 } |
489 buildCounterRowStatus--; | 489 buildCounterRowStatus--; |
490 } | 490 } |
491 | 491 |
492 core.int buildCounterRunQueryRequest = 0; | 492 core.int buildCounterRunQueryRequest = 0; |
493 buildRunQueryRequest() { | 493 buildRunQueryRequest() { |
494 var o = new api.RunQueryRequest(); | 494 var o = new api.RunQueryRequest(); |
495 buildCounterRunQueryRequest++; | 495 buildCounterRunQueryRequest++; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 } | 549 } |
550 | 550 |
551 checkUploadLineItemsResponse(api.UploadLineItemsResponse o) { | 551 checkUploadLineItemsResponse(api.UploadLineItemsResponse o) { |
552 buildCounterUploadLineItemsResponse++; | 552 buildCounterUploadLineItemsResponse++; |
553 if (buildCounterUploadLineItemsResponse < 3) { | 553 if (buildCounterUploadLineItemsResponse < 3) { |
554 checkUploadStatus(o.uploadStatus); | 554 checkUploadStatus(o.uploadStatus); |
555 } | 555 } |
556 buildCounterUploadLineItemsResponse--; | 556 buildCounterUploadLineItemsResponse--; |
557 } | 557 } |
558 | 558 |
559 buildUnnamed1069() { | 559 buildUnnamed710() { |
560 var o = new core.List<core.String>(); | 560 var o = new core.List<core.String>(); |
561 o.add("foo"); | 561 o.add("foo"); |
562 o.add("foo"); | 562 o.add("foo"); |
563 return o; | 563 return o; |
564 } | 564 } |
565 | 565 |
566 checkUnnamed1069(core.List<core.String> o) { | 566 checkUnnamed710(core.List<core.String> o) { |
567 unittest.expect(o, unittest.hasLength(2)); | 567 unittest.expect(o, unittest.hasLength(2)); |
568 unittest.expect(o[0], unittest.equals('foo')); | 568 unittest.expect(o[0], unittest.equals('foo')); |
569 unittest.expect(o[1], unittest.equals('foo')); | 569 unittest.expect(o[1], unittest.equals('foo')); |
570 } | 570 } |
571 | 571 |
572 buildUnnamed1070() { | 572 buildUnnamed711() { |
573 var o = new core.List<api.RowStatus>(); | 573 var o = new core.List<api.RowStatus>(); |
574 o.add(buildRowStatus()); | 574 o.add(buildRowStatus()); |
575 o.add(buildRowStatus()); | 575 o.add(buildRowStatus()); |
576 return o; | 576 return o; |
577 } | 577 } |
578 | 578 |
579 checkUnnamed1070(core.List<api.RowStatus> o) { | 579 checkUnnamed711(core.List<api.RowStatus> o) { |
580 unittest.expect(o, unittest.hasLength(2)); | 580 unittest.expect(o, unittest.hasLength(2)); |
581 checkRowStatus(o[0]); | 581 checkRowStatus(o[0]); |
582 checkRowStatus(o[1]); | 582 checkRowStatus(o[1]); |
583 } | 583 } |
584 | 584 |
585 core.int buildCounterUploadStatus = 0; | 585 core.int buildCounterUploadStatus = 0; |
586 buildUploadStatus() { | 586 buildUploadStatus() { |
587 var o = new api.UploadStatus(); | 587 var o = new api.UploadStatus(); |
588 buildCounterUploadStatus++; | 588 buildCounterUploadStatus++; |
589 if (buildCounterUploadStatus < 3) { | 589 if (buildCounterUploadStatus < 3) { |
590 o.errors = buildUnnamed1069(); | 590 o.errors = buildUnnamed710(); |
591 o.rowStatus = buildUnnamed1070(); | 591 o.rowStatus = buildUnnamed711(); |
592 } | 592 } |
593 buildCounterUploadStatus--; | 593 buildCounterUploadStatus--; |
594 return o; | 594 return o; |
595 } | 595 } |
596 | 596 |
597 checkUploadStatus(api.UploadStatus o) { | 597 checkUploadStatus(api.UploadStatus o) { |
598 buildCounterUploadStatus++; | 598 buildCounterUploadStatus++; |
599 if (buildCounterUploadStatus < 3) { | 599 if (buildCounterUploadStatus < 3) { |
600 checkUnnamed1069(o.errors); | 600 checkUnnamed710(o.errors); |
601 checkUnnamed1070(o.rowStatus); | 601 checkUnnamed711(o.rowStatus); |
602 } | 602 } |
603 buildCounterUploadStatus--; | 603 buildCounterUploadStatus--; |
604 } | 604 } |
605 | 605 |
606 | 606 |
607 main() { | 607 main() { |
608 unittest.group("obj-schema-DownloadLineItemsRequest", () { | 608 unittest.group("obj-schema-DownloadLineItemsRequest", () { |
609 unittest.test("to-json--from-json", () { | 609 unittest.test("to-json--from-json", () { |
610 var o = buildDownloadLineItemsRequest(); | 610 var o = buildDownloadLineItemsRequest(); |
611 var od = new api.DownloadLineItemsRequest.fromJson(o.toJson()); | 611 var od = new api.DownloadLineItemsRequest.fromJson(o.toJson()); |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 res.listreports(arg_queryId).then(unittest.expectAsync(((api.ListReportsRe
sponse response) { | 1175 res.listreports(arg_queryId).then(unittest.expectAsync(((api.ListReportsRe
sponse response) { |
1176 checkListReportsResponse(response); | 1176 checkListReportsResponse(response); |
1177 }))); | 1177 }))); |
1178 }); | 1178 }); |
1179 | 1179 |
1180 }); | 1180 }); |
1181 | 1181 |
1182 | 1182 |
1183 } | 1183 } |
1184 | 1184 |
OLD | NEW |