| 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 buildUnnamed2112() { | 54 buildUnnamed1210() { |
| 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 checkUnnamed2112(core.List<core.String> o) { | 61 checkUnnamed1210(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.fileSpec = "foo"; | 72 o.fileSpec = "foo"; |
| 73 o.filterIds = buildUnnamed2112(); | 73 o.filterIds = buildUnnamed1210(); |
| 74 o.filterType = "foo"; | 74 o.filterType = "foo"; |
| 75 o.format = "foo"; | 75 o.format = "foo"; |
| 76 } | 76 } |
| 77 buildCounterDownloadLineItemsRequest--; | 77 buildCounterDownloadLineItemsRequest--; |
| 78 return o; | 78 return o; |
| 79 } | 79 } |
| 80 | 80 |
| 81 checkDownloadLineItemsRequest(api.DownloadLineItemsRequest o) { | 81 checkDownloadLineItemsRequest(api.DownloadLineItemsRequest o) { |
| 82 buildCounterDownloadLineItemsRequest++; | 82 buildCounterDownloadLineItemsRequest++; |
| 83 if (buildCounterDownloadLineItemsRequest < 3) { | 83 if (buildCounterDownloadLineItemsRequest < 3) { |
| 84 unittest.expect(o.fileSpec, unittest.equals('foo')); | 84 unittest.expect(o.fileSpec, unittest.equals('foo')); |
| 85 checkUnnamed2112(o.filterIds); | 85 checkUnnamed1210(o.filterIds); |
| 86 unittest.expect(o.filterType, unittest.equals('foo')); | 86 unittest.expect(o.filterType, unittest.equals('foo')); |
| 87 unittest.expect(o.format, unittest.equals('foo')); | 87 unittest.expect(o.format, unittest.equals('foo')); |
| 88 } | 88 } |
| 89 buildCounterDownloadLineItemsRequest--; | 89 buildCounterDownloadLineItemsRequest--; |
| 90 } | 90 } |
| 91 | 91 |
| 92 core.int buildCounterDownloadLineItemsResponse = 0; | 92 core.int buildCounterDownloadLineItemsResponse = 0; |
| 93 buildDownloadLineItemsResponse() { | 93 buildDownloadLineItemsResponse() { |
| 94 var o = new api.DownloadLineItemsResponse(); | 94 var o = new api.DownloadLineItemsResponse(); |
| 95 buildCounterDownloadLineItemsResponse++; | 95 buildCounterDownloadLineItemsResponse++; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 122 | 122 |
| 123 checkFilterPair(api.FilterPair o) { | 123 checkFilterPair(api.FilterPair o) { |
| 124 buildCounterFilterPair++; | 124 buildCounterFilterPair++; |
| 125 if (buildCounterFilterPair < 3) { | 125 if (buildCounterFilterPair < 3) { |
| 126 unittest.expect(o.type, unittest.equals('foo')); | 126 unittest.expect(o.type, unittest.equals('foo')); |
| 127 unittest.expect(o.value, unittest.equals('foo')); | 127 unittest.expect(o.value, unittest.equals('foo')); |
| 128 } | 128 } |
| 129 buildCounterFilterPair--; | 129 buildCounterFilterPair--; |
| 130 } | 130 } |
| 131 | 131 |
| 132 buildUnnamed2113() { | 132 buildUnnamed1211() { |
| 133 var o = new core.List<api.Query>(); | 133 var o = new core.List<api.Query>(); |
| 134 o.add(buildQuery()); | 134 o.add(buildQuery()); |
| 135 o.add(buildQuery()); | 135 o.add(buildQuery()); |
| 136 return o; | 136 return o; |
| 137 } | 137 } |
| 138 | 138 |
| 139 checkUnnamed2113(core.List<api.Query> o) { | 139 checkUnnamed1211(core.List<api.Query> o) { |
| 140 unittest.expect(o, unittest.hasLength(2)); | 140 unittest.expect(o, unittest.hasLength(2)); |
| 141 checkQuery(o[0]); | 141 checkQuery(o[0]); |
| 142 checkQuery(o[1]); | 142 checkQuery(o[1]); |
| 143 } | 143 } |
| 144 | 144 |
| 145 core.int buildCounterListQueriesResponse = 0; | 145 core.int buildCounterListQueriesResponse = 0; |
| 146 buildListQueriesResponse() { | 146 buildListQueriesResponse() { |
| 147 var o = new api.ListQueriesResponse(); | 147 var o = new api.ListQueriesResponse(); |
| 148 buildCounterListQueriesResponse++; | 148 buildCounterListQueriesResponse++; |
| 149 if (buildCounterListQueriesResponse < 3) { | 149 if (buildCounterListQueriesResponse < 3) { |
| 150 o.kind = "foo"; | 150 o.kind = "foo"; |
| 151 o.queries = buildUnnamed2113(); | 151 o.queries = buildUnnamed1211(); |
| 152 } | 152 } |
| 153 buildCounterListQueriesResponse--; | 153 buildCounterListQueriesResponse--; |
| 154 return o; | 154 return o; |
| 155 } | 155 } |
| 156 | 156 |
| 157 checkListQueriesResponse(api.ListQueriesResponse o) { | 157 checkListQueriesResponse(api.ListQueriesResponse o) { |
| 158 buildCounterListQueriesResponse++; | 158 buildCounterListQueriesResponse++; |
| 159 if (buildCounterListQueriesResponse < 3) { | 159 if (buildCounterListQueriesResponse < 3) { |
| 160 unittest.expect(o.kind, unittest.equals('foo')); | 160 unittest.expect(o.kind, unittest.equals('foo')); |
| 161 checkUnnamed2113(o.queries); | 161 checkUnnamed1211(o.queries); |
| 162 } | 162 } |
| 163 buildCounterListQueriesResponse--; | 163 buildCounterListQueriesResponse--; |
| 164 } | 164 } |
| 165 | 165 |
| 166 buildUnnamed2114() { | 166 buildUnnamed1212() { |
| 167 var o = new core.List<api.Report>(); | 167 var o = new core.List<api.Report>(); |
| 168 o.add(buildReport()); | 168 o.add(buildReport()); |
| 169 o.add(buildReport()); | 169 o.add(buildReport()); |
| 170 return o; | 170 return o; |
| 171 } | 171 } |
| 172 | 172 |
| 173 checkUnnamed2114(core.List<api.Report> o) { | 173 checkUnnamed1212(core.List<api.Report> o) { |
| 174 unittest.expect(o, unittest.hasLength(2)); | 174 unittest.expect(o, unittest.hasLength(2)); |
| 175 checkReport(o[0]); | 175 checkReport(o[0]); |
| 176 checkReport(o[1]); | 176 checkReport(o[1]); |
| 177 } | 177 } |
| 178 | 178 |
| 179 core.int buildCounterListReportsResponse = 0; | 179 core.int buildCounterListReportsResponse = 0; |
| 180 buildListReportsResponse() { | 180 buildListReportsResponse() { |
| 181 var o = new api.ListReportsResponse(); | 181 var o = new api.ListReportsResponse(); |
| 182 buildCounterListReportsResponse++; | 182 buildCounterListReportsResponse++; |
| 183 if (buildCounterListReportsResponse < 3) { | 183 if (buildCounterListReportsResponse < 3) { |
| 184 o.kind = "foo"; | 184 o.kind = "foo"; |
| 185 o.reports = buildUnnamed2114(); | 185 o.reports = buildUnnamed1212(); |
| 186 } | 186 } |
| 187 buildCounterListReportsResponse--; | 187 buildCounterListReportsResponse--; |
| 188 return o; | 188 return o; |
| 189 } | 189 } |
| 190 | 190 |
| 191 checkListReportsResponse(api.ListReportsResponse o) { | 191 checkListReportsResponse(api.ListReportsResponse o) { |
| 192 buildCounterListReportsResponse++; | 192 buildCounterListReportsResponse++; |
| 193 if (buildCounterListReportsResponse < 3) { | 193 if (buildCounterListReportsResponse < 3) { |
| 194 unittest.expect(o.kind, unittest.equals('foo')); | 194 unittest.expect(o.kind, unittest.equals('foo')); |
| 195 checkUnnamed2114(o.reports); | 195 checkUnnamed1212(o.reports); |
| 196 } | 196 } |
| 197 buildCounterListReportsResponse--; | 197 buildCounterListReportsResponse--; |
| 198 } | 198 } |
| 199 | 199 |
| 200 core.int buildCounterNote = 0; | 200 core.int buildCounterNote = 0; |
| 201 buildNote() { | 201 buildNote() { |
| 202 var o = new api.Note(); | 202 var o = new api.Note(); |
| 203 buildCounterNote++; | 203 buildCounterNote++; |
| 204 if (buildCounterNote < 3) { | 204 if (buildCounterNote < 3) { |
| 205 o.id = "foo"; | 205 o.id = "foo"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 217 if (buildCounterNote < 3) { | 217 if (buildCounterNote < 3) { |
| 218 unittest.expect(o.id, unittest.equals('foo')); | 218 unittest.expect(o.id, unittest.equals('foo')); |
| 219 unittest.expect(o.message, unittest.equals('foo')); | 219 unittest.expect(o.message, unittest.equals('foo')); |
| 220 unittest.expect(o.source, unittest.equals('foo')); | 220 unittest.expect(o.source, unittest.equals('foo')); |
| 221 unittest.expect(o.timestamp, unittest.equals('foo')); | 221 unittest.expect(o.timestamp, unittest.equals('foo')); |
| 222 unittest.expect(o.username, unittest.equals('foo')); | 222 unittest.expect(o.username, unittest.equals('foo')); |
| 223 } | 223 } |
| 224 buildCounterNote--; | 224 buildCounterNote--; |
| 225 } | 225 } |
| 226 | 226 |
| 227 buildUnnamed2115() { | 227 buildUnnamed1213() { |
| 228 var o = new core.List<api.Note>(); | 228 var o = new core.List<api.Note>(); |
| 229 o.add(buildNote()); | 229 o.add(buildNote()); |
| 230 o.add(buildNote()); | 230 o.add(buildNote()); |
| 231 return o; | 231 return o; |
| 232 } | 232 } |
| 233 | 233 |
| 234 checkUnnamed2115(core.List<api.Note> o) { | 234 checkUnnamed1213(core.List<api.Note> o) { |
| 235 unittest.expect(o, unittest.hasLength(2)); | 235 unittest.expect(o, unittest.hasLength(2)); |
| 236 checkNote(o[0]); | 236 checkNote(o[0]); |
| 237 checkNote(o[1]); | 237 checkNote(o[1]); |
| 238 } | 238 } |
| 239 | 239 |
| 240 core.int buildCounterNotifyProposalChangeRequest = 0; | 240 core.int buildCounterNotifyProposalChangeRequest = 0; |
| 241 buildNotifyProposalChangeRequest() { | 241 buildNotifyProposalChangeRequest() { |
| 242 var o = new api.NotifyProposalChangeRequest(); | 242 var o = new api.NotifyProposalChangeRequest(); |
| 243 buildCounterNotifyProposalChangeRequest++; | 243 buildCounterNotifyProposalChangeRequest++; |
| 244 if (buildCounterNotifyProposalChangeRequest < 3) { | 244 if (buildCounterNotifyProposalChangeRequest < 3) { |
| 245 o.action = "foo"; | 245 o.action = "foo"; |
| 246 o.href = "foo"; | 246 o.href = "foo"; |
| 247 o.id = "foo"; | 247 o.id = "foo"; |
| 248 o.notes = buildUnnamed2115(); | 248 o.notes = buildUnnamed1213(); |
| 249 o.token = "foo"; | 249 o.token = "foo"; |
| 250 } | 250 } |
| 251 buildCounterNotifyProposalChangeRequest--; | 251 buildCounterNotifyProposalChangeRequest--; |
| 252 return o; | 252 return o; |
| 253 } | 253 } |
| 254 | 254 |
| 255 checkNotifyProposalChangeRequest(api.NotifyProposalChangeRequest o) { | 255 checkNotifyProposalChangeRequest(api.NotifyProposalChangeRequest o) { |
| 256 buildCounterNotifyProposalChangeRequest++; | 256 buildCounterNotifyProposalChangeRequest++; |
| 257 if (buildCounterNotifyProposalChangeRequest < 3) { | 257 if (buildCounterNotifyProposalChangeRequest < 3) { |
| 258 unittest.expect(o.action, unittest.equals('foo')); | 258 unittest.expect(o.action, unittest.equals('foo')); |
| 259 unittest.expect(o.href, unittest.equals('foo')); | 259 unittest.expect(o.href, unittest.equals('foo')); |
| 260 unittest.expect(o.id, unittest.equals('foo')); | 260 unittest.expect(o.id, unittest.equals('foo')); |
| 261 checkUnnamed2115(o.notes); | 261 checkUnnamed1213(o.notes); |
| 262 unittest.expect(o.token, unittest.equals('foo')); | 262 unittest.expect(o.token, unittest.equals('foo')); |
| 263 } | 263 } |
| 264 buildCounterNotifyProposalChangeRequest--; | 264 buildCounterNotifyProposalChangeRequest--; |
| 265 } | 265 } |
| 266 | 266 |
| 267 buildUnnamed2116() { | 267 buildUnnamed1214() { |
| 268 var o = new core.List<api.FilterPair>(); | 268 var o = new core.List<api.FilterPair>(); |
| 269 o.add(buildFilterPair()); | 269 o.add(buildFilterPair()); |
| 270 o.add(buildFilterPair()); | 270 o.add(buildFilterPair()); |
| 271 return o; | 271 return o; |
| 272 } | 272 } |
| 273 | 273 |
| 274 checkUnnamed2116(core.List<api.FilterPair> o) { | 274 checkUnnamed1214(core.List<api.FilterPair> o) { |
| 275 unittest.expect(o, unittest.hasLength(2)); | 275 unittest.expect(o, unittest.hasLength(2)); |
| 276 checkFilterPair(o[0]); | 276 checkFilterPair(o[0]); |
| 277 checkFilterPair(o[1]); | 277 checkFilterPair(o[1]); |
| 278 } | 278 } |
| 279 | 279 |
| 280 buildUnnamed2117() { | 280 buildUnnamed1215() { |
| 281 var o = new core.List<core.String>(); | 281 var o = new core.List<core.String>(); |
| 282 o.add("foo"); | 282 o.add("foo"); |
| 283 o.add("foo"); | 283 o.add("foo"); |
| 284 return o; | 284 return o; |
| 285 } | 285 } |
| 286 | 286 |
| 287 checkUnnamed2117(core.List<core.String> o) { | 287 checkUnnamed1215(core.List<core.String> o) { |
| 288 unittest.expect(o, unittest.hasLength(2)); | 288 unittest.expect(o, unittest.hasLength(2)); |
| 289 unittest.expect(o[0], unittest.equals('foo')); | 289 unittest.expect(o[0], unittest.equals('foo')); |
| 290 unittest.expect(o[1], unittest.equals('foo')); | 290 unittest.expect(o[1], unittest.equals('foo')); |
| 291 } | 291 } |
| 292 | 292 |
| 293 buildUnnamed2118() { | 293 buildUnnamed1216() { |
| 294 var o = new core.List<core.String>(); | 294 var o = new core.List<core.String>(); |
| 295 o.add("foo"); | 295 o.add("foo"); |
| 296 o.add("foo"); | 296 o.add("foo"); |
| 297 return o; | 297 return o; |
| 298 } | 298 } |
| 299 | 299 |
| 300 checkUnnamed2118(core.List<core.String> o) { | 300 checkUnnamed1216(core.List<core.String> o) { |
| 301 unittest.expect(o, unittest.hasLength(2)); | 301 unittest.expect(o, unittest.hasLength(2)); |
| 302 unittest.expect(o[0], unittest.equals('foo')); | 302 unittest.expect(o[0], unittest.equals('foo')); |
| 303 unittest.expect(o[1], unittest.equals('foo')); | 303 unittest.expect(o[1], unittest.equals('foo')); |
| 304 } | 304 } |
| 305 | 305 |
| 306 core.int buildCounterParameters = 0; | 306 core.int buildCounterParameters = 0; |
| 307 buildParameters() { | 307 buildParameters() { |
| 308 var o = new api.Parameters(); | 308 var o = new api.Parameters(); |
| 309 buildCounterParameters++; | 309 buildCounterParameters++; |
| 310 if (buildCounterParameters < 3) { | 310 if (buildCounterParameters < 3) { |
| 311 o.filters = buildUnnamed2116(); | 311 o.filters = buildUnnamed1214(); |
| 312 o.groupBys = buildUnnamed2117(); | 312 o.groupBys = buildUnnamed1215(); |
| 313 o.includeInviteData = true; | 313 o.includeInviteData = true; |
| 314 o.metrics = buildUnnamed2118(); | 314 o.metrics = buildUnnamed1216(); |
| 315 o.type = "foo"; | 315 o.type = "foo"; |
| 316 } | 316 } |
| 317 buildCounterParameters--; | 317 buildCounterParameters--; |
| 318 return o; | 318 return o; |
| 319 } | 319 } |
| 320 | 320 |
| 321 checkParameters(api.Parameters o) { | 321 checkParameters(api.Parameters o) { |
| 322 buildCounterParameters++; | 322 buildCounterParameters++; |
| 323 if (buildCounterParameters < 3) { | 323 if (buildCounterParameters < 3) { |
| 324 checkUnnamed2116(o.filters); | 324 checkUnnamed1214(o.filters); |
| 325 checkUnnamed2117(o.groupBys); | 325 checkUnnamed1215(o.groupBys); |
| 326 unittest.expect(o.includeInviteData, unittest.isTrue); | 326 unittest.expect(o.includeInviteData, unittest.isTrue); |
| 327 checkUnnamed2118(o.metrics); | 327 checkUnnamed1216(o.metrics); |
| 328 unittest.expect(o.type, unittest.equals('foo')); | 328 unittest.expect(o.type, unittest.equals('foo')); |
| 329 } | 329 } |
| 330 buildCounterParameters--; | 330 buildCounterParameters--; |
| 331 } | 331 } |
| 332 | 332 |
| 333 core.int buildCounterQuery = 0; | 333 core.int buildCounterQuery = 0; |
| 334 buildQuery() { | 334 buildQuery() { |
| 335 var o = new api.Query(); | 335 var o = new api.Query(); |
| 336 buildCounterQuery++; | 336 buildCounterQuery++; |
| 337 if (buildCounterQuery < 3) { | 337 if (buildCounterQuery < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 356 checkParameters(o.params); | 356 checkParameters(o.params); |
| 357 unittest.expect(o.queryId, unittest.equals('foo')); | 357 unittest.expect(o.queryId, unittest.equals('foo')); |
| 358 unittest.expect(o.reportDataEndTimeMs, unittest.equals('foo')); | 358 unittest.expect(o.reportDataEndTimeMs, unittest.equals('foo')); |
| 359 unittest.expect(o.reportDataStartTimeMs, unittest.equals('foo')); | 359 unittest.expect(o.reportDataStartTimeMs, unittest.equals('foo')); |
| 360 checkQuerySchedule(o.schedule); | 360 checkQuerySchedule(o.schedule); |
| 361 unittest.expect(o.timezoneCode, unittest.equals('foo')); | 361 unittest.expect(o.timezoneCode, unittest.equals('foo')); |
| 362 } | 362 } |
| 363 buildCounterQuery--; | 363 buildCounterQuery--; |
| 364 } | 364 } |
| 365 | 365 |
| 366 buildUnnamed2119() { | 366 buildUnnamed1217() { |
| 367 var o = new core.List<core.String>(); | 367 var o = new core.List<core.String>(); |
| 368 o.add("foo"); | 368 o.add("foo"); |
| 369 o.add("foo"); | 369 o.add("foo"); |
| 370 return o; | 370 return o; |
| 371 } | 371 } |
| 372 | 372 |
| 373 checkUnnamed2119(core.List<core.String> o) { | 373 checkUnnamed1217(core.List<core.String> o) { |
| 374 unittest.expect(o, unittest.hasLength(2)); | 374 unittest.expect(o, unittest.hasLength(2)); |
| 375 unittest.expect(o[0], unittest.equals('foo')); | 375 unittest.expect(o[0], unittest.equals('foo')); |
| 376 unittest.expect(o[1], unittest.equals('foo')); | 376 unittest.expect(o[1], unittest.equals('foo')); |
| 377 } | 377 } |
| 378 | 378 |
| 379 core.int buildCounterQueryMetadata = 0; | 379 core.int buildCounterQueryMetadata = 0; |
| 380 buildQueryMetadata() { | 380 buildQueryMetadata() { |
| 381 var o = new api.QueryMetadata(); | 381 var o = new api.QueryMetadata(); |
| 382 buildCounterQueryMetadata++; | 382 buildCounterQueryMetadata++; |
| 383 if (buildCounterQueryMetadata < 3) { | 383 if (buildCounterQueryMetadata < 3) { |
| 384 o.dataRange = "foo"; | 384 o.dataRange = "foo"; |
| 385 o.format = "foo"; | 385 o.format = "foo"; |
| 386 o.googleCloudStoragePathForLatestReport = "foo"; | 386 o.googleCloudStoragePathForLatestReport = "foo"; |
| 387 o.googleDrivePathForLatestReport = "foo"; | 387 o.googleDrivePathForLatestReport = "foo"; |
| 388 o.latestReportRunTimeMs = "foo"; | 388 o.latestReportRunTimeMs = "foo"; |
| 389 o.locale = "foo"; | 389 o.locale = "foo"; |
| 390 o.reportCount = 42; | 390 o.reportCount = 42; |
| 391 o.running = true; | 391 o.running = true; |
| 392 o.sendNotification = true; | 392 o.sendNotification = true; |
| 393 o.shareEmailAddress = buildUnnamed2119(); | 393 o.shareEmailAddress = buildUnnamed1217(); |
| 394 o.title = "foo"; | 394 o.title = "foo"; |
| 395 } | 395 } |
| 396 buildCounterQueryMetadata--; | 396 buildCounterQueryMetadata--; |
| 397 return o; | 397 return o; |
| 398 } | 398 } |
| 399 | 399 |
| 400 checkQueryMetadata(api.QueryMetadata o) { | 400 checkQueryMetadata(api.QueryMetadata o) { |
| 401 buildCounterQueryMetadata++; | 401 buildCounterQueryMetadata++; |
| 402 if (buildCounterQueryMetadata < 3) { | 402 if (buildCounterQueryMetadata < 3) { |
| 403 unittest.expect(o.dataRange, unittest.equals('foo')); | 403 unittest.expect(o.dataRange, unittest.equals('foo')); |
| 404 unittest.expect(o.format, unittest.equals('foo')); | 404 unittest.expect(o.format, unittest.equals('foo')); |
| 405 unittest.expect(o.googleCloudStoragePathForLatestReport, unittest.equals('fo
o')); | 405 unittest.expect(o.googleCloudStoragePathForLatestReport, unittest.equals('fo
o')); |
| 406 unittest.expect(o.googleDrivePathForLatestReport, unittest.equals('foo')); | 406 unittest.expect(o.googleDrivePathForLatestReport, unittest.equals('foo')); |
| 407 unittest.expect(o.latestReportRunTimeMs, unittest.equals('foo')); | 407 unittest.expect(o.latestReportRunTimeMs, unittest.equals('foo')); |
| 408 unittest.expect(o.locale, unittest.equals('foo')); | 408 unittest.expect(o.locale, unittest.equals('foo')); |
| 409 unittest.expect(o.reportCount, unittest.equals(42)); | 409 unittest.expect(o.reportCount, unittest.equals(42)); |
| 410 unittest.expect(o.running, unittest.isTrue); | 410 unittest.expect(o.running, unittest.isTrue); |
| 411 unittest.expect(o.sendNotification, unittest.isTrue); | 411 unittest.expect(o.sendNotification, unittest.isTrue); |
| 412 checkUnnamed2119(o.shareEmailAddress); | 412 checkUnnamed1217(o.shareEmailAddress); |
| 413 unittest.expect(o.title, unittest.equals('foo')); | 413 unittest.expect(o.title, unittest.equals('foo')); |
| 414 } | 414 } |
| 415 buildCounterQueryMetadata--; | 415 buildCounterQueryMetadata--; |
| 416 } | 416 } |
| 417 | 417 |
| 418 core.int buildCounterQuerySchedule = 0; | 418 core.int buildCounterQuerySchedule = 0; |
| 419 buildQuerySchedule() { | 419 buildQuerySchedule() { |
| 420 var o = new api.QuerySchedule(); | 420 var o = new api.QuerySchedule(); |
| 421 buildCounterQuerySchedule++; | 421 buildCounterQuerySchedule++; |
| 422 if (buildCounterQuerySchedule < 3) { | 422 if (buildCounterQuerySchedule < 3) { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 buildCounterReportStatus++; | 546 buildCounterReportStatus++; |
| 547 if (buildCounterReportStatus < 3) { | 547 if (buildCounterReportStatus < 3) { |
| 548 checkReportFailure(o.failure); | 548 checkReportFailure(o.failure); |
| 549 unittest.expect(o.finishTimeMs, unittest.equals('foo')); | 549 unittest.expect(o.finishTimeMs, unittest.equals('foo')); |
| 550 unittest.expect(o.format, unittest.equals('foo')); | 550 unittest.expect(o.format, unittest.equals('foo')); |
| 551 unittest.expect(o.state, unittest.equals('foo')); | 551 unittest.expect(o.state, unittest.equals('foo')); |
| 552 } | 552 } |
| 553 buildCounterReportStatus--; | 553 buildCounterReportStatus--; |
| 554 } | 554 } |
| 555 | 555 |
| 556 buildUnnamed2120() { | 556 buildUnnamed1218() { |
| 557 var o = new core.List<core.String>(); | 557 var o = new core.List<core.String>(); |
| 558 o.add("foo"); | 558 o.add("foo"); |
| 559 o.add("foo"); | 559 o.add("foo"); |
| 560 return o; | 560 return o; |
| 561 } | 561 } |
| 562 | 562 |
| 563 checkUnnamed2120(core.List<core.String> o) { | 563 checkUnnamed1218(core.List<core.String> o) { |
| 564 unittest.expect(o, unittest.hasLength(2)); | 564 unittest.expect(o, unittest.hasLength(2)); |
| 565 unittest.expect(o[0], unittest.equals('foo')); | 565 unittest.expect(o[0], unittest.equals('foo')); |
| 566 unittest.expect(o[1], unittest.equals('foo')); | 566 unittest.expect(o[1], unittest.equals('foo')); |
| 567 } | 567 } |
| 568 | 568 |
| 569 core.int buildCounterRowStatus = 0; | 569 core.int buildCounterRowStatus = 0; |
| 570 buildRowStatus() { | 570 buildRowStatus() { |
| 571 var o = new api.RowStatus(); | 571 var o = new api.RowStatus(); |
| 572 buildCounterRowStatus++; | 572 buildCounterRowStatus++; |
| 573 if (buildCounterRowStatus < 3) { | 573 if (buildCounterRowStatus < 3) { |
| 574 o.changed = true; | 574 o.changed = true; |
| 575 o.entityId = "foo"; | 575 o.entityId = "foo"; |
| 576 o.entityName = "foo"; | 576 o.entityName = "foo"; |
| 577 o.errors = buildUnnamed2120(); | 577 o.errors = buildUnnamed1218(); |
| 578 o.persisted = true; | 578 o.persisted = true; |
| 579 o.rowNumber = 42; | 579 o.rowNumber = 42; |
| 580 } | 580 } |
| 581 buildCounterRowStatus--; | 581 buildCounterRowStatus--; |
| 582 return o; | 582 return o; |
| 583 } | 583 } |
| 584 | 584 |
| 585 checkRowStatus(api.RowStatus o) { | 585 checkRowStatus(api.RowStatus o) { |
| 586 buildCounterRowStatus++; | 586 buildCounterRowStatus++; |
| 587 if (buildCounterRowStatus < 3) { | 587 if (buildCounterRowStatus < 3) { |
| 588 unittest.expect(o.changed, unittest.isTrue); | 588 unittest.expect(o.changed, unittest.isTrue); |
| 589 unittest.expect(o.entityId, unittest.equals('foo')); | 589 unittest.expect(o.entityId, unittest.equals('foo')); |
| 590 unittest.expect(o.entityName, unittest.equals('foo')); | 590 unittest.expect(o.entityName, unittest.equals('foo')); |
| 591 checkUnnamed2120(o.errors); | 591 checkUnnamed1218(o.errors); |
| 592 unittest.expect(o.persisted, unittest.isTrue); | 592 unittest.expect(o.persisted, unittest.isTrue); |
| 593 unittest.expect(o.rowNumber, unittest.equals(42)); | 593 unittest.expect(o.rowNumber, unittest.equals(42)); |
| 594 } | 594 } |
| 595 buildCounterRowStatus--; | 595 buildCounterRowStatus--; |
| 596 } | 596 } |
| 597 | 597 |
| 598 core.int buildCounterRunQueryRequest = 0; | 598 core.int buildCounterRunQueryRequest = 0; |
| 599 buildRunQueryRequest() { | 599 buildRunQueryRequest() { |
| 600 var o = new api.RunQueryRequest(); | 600 var o = new api.RunQueryRequest(); |
| 601 buildCounterRunQueryRequest++; | 601 buildCounterRunQueryRequest++; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 } | 655 } |
| 656 | 656 |
| 657 checkUploadLineItemsResponse(api.UploadLineItemsResponse o) { | 657 checkUploadLineItemsResponse(api.UploadLineItemsResponse o) { |
| 658 buildCounterUploadLineItemsResponse++; | 658 buildCounterUploadLineItemsResponse++; |
| 659 if (buildCounterUploadLineItemsResponse < 3) { | 659 if (buildCounterUploadLineItemsResponse < 3) { |
| 660 checkUploadStatus(o.uploadStatus); | 660 checkUploadStatus(o.uploadStatus); |
| 661 } | 661 } |
| 662 buildCounterUploadLineItemsResponse--; | 662 buildCounterUploadLineItemsResponse--; |
| 663 } | 663 } |
| 664 | 664 |
| 665 buildUnnamed2121() { | 665 buildUnnamed1219() { |
| 666 var o = new core.List<core.String>(); | 666 var o = new core.List<core.String>(); |
| 667 o.add("foo"); | 667 o.add("foo"); |
| 668 o.add("foo"); | 668 o.add("foo"); |
| 669 return o; | 669 return o; |
| 670 } | 670 } |
| 671 | 671 |
| 672 checkUnnamed2121(core.List<core.String> o) { | 672 checkUnnamed1219(core.List<core.String> o) { |
| 673 unittest.expect(o, unittest.hasLength(2)); | 673 unittest.expect(o, unittest.hasLength(2)); |
| 674 unittest.expect(o[0], unittest.equals('foo')); | 674 unittest.expect(o[0], unittest.equals('foo')); |
| 675 unittest.expect(o[1], unittest.equals('foo')); | 675 unittest.expect(o[1], unittest.equals('foo')); |
| 676 } | 676 } |
| 677 | 677 |
| 678 buildUnnamed2122() { | 678 buildUnnamed1220() { |
| 679 var o = new core.List<api.RowStatus>(); | 679 var o = new core.List<api.RowStatus>(); |
| 680 o.add(buildRowStatus()); | 680 o.add(buildRowStatus()); |
| 681 o.add(buildRowStatus()); | 681 o.add(buildRowStatus()); |
| 682 return o; | 682 return o; |
| 683 } | 683 } |
| 684 | 684 |
| 685 checkUnnamed2122(core.List<api.RowStatus> o) { | 685 checkUnnamed1220(core.List<api.RowStatus> o) { |
| 686 unittest.expect(o, unittest.hasLength(2)); | 686 unittest.expect(o, unittest.hasLength(2)); |
| 687 checkRowStatus(o[0]); | 687 checkRowStatus(o[0]); |
| 688 checkRowStatus(o[1]); | 688 checkRowStatus(o[1]); |
| 689 } | 689 } |
| 690 | 690 |
| 691 core.int buildCounterUploadStatus = 0; | 691 core.int buildCounterUploadStatus = 0; |
| 692 buildUploadStatus() { | 692 buildUploadStatus() { |
| 693 var o = new api.UploadStatus(); | 693 var o = new api.UploadStatus(); |
| 694 buildCounterUploadStatus++; | 694 buildCounterUploadStatus++; |
| 695 if (buildCounterUploadStatus < 3) { | 695 if (buildCounterUploadStatus < 3) { |
| 696 o.errors = buildUnnamed2121(); | 696 o.errors = buildUnnamed1219(); |
| 697 o.rowStatus = buildUnnamed2122(); | 697 o.rowStatus = buildUnnamed1220(); |
| 698 } | 698 } |
| 699 buildCounterUploadStatus--; | 699 buildCounterUploadStatus--; |
| 700 return o; | 700 return o; |
| 701 } | 701 } |
| 702 | 702 |
| 703 checkUploadStatus(api.UploadStatus o) { | 703 checkUploadStatus(api.UploadStatus o) { |
| 704 buildCounterUploadStatus++; | 704 buildCounterUploadStatus++; |
| 705 if (buildCounterUploadStatus < 3) { | 705 if (buildCounterUploadStatus < 3) { |
| 706 checkUnnamed2121(o.errors); | 706 checkUnnamed1219(o.errors); |
| 707 checkUnnamed2122(o.rowStatus); | 707 checkUnnamed1220(o.rowStatus); |
| 708 } | 708 } |
| 709 buildCounterUploadStatus--; | 709 buildCounterUploadStatus--; |
| 710 } | 710 } |
| 711 | 711 |
| 712 | 712 |
| 713 main() { | 713 main() { |
| 714 unittest.group("obj-schema-DownloadLineItemsRequest", () { | 714 unittest.group("obj-schema-DownloadLineItemsRequest", () { |
| 715 unittest.test("to-json--from-json", () { | 715 unittest.test("to-json--from-json", () { |
| 716 var o = buildDownloadLineItemsRequest(); | 716 var o = buildDownloadLineItemsRequest(); |
| 717 var od = new api.DownloadLineItemsRequest.fromJson(o.toJson()); | 717 var od = new api.DownloadLineItemsRequest.fromJson(o.toJson()); |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 return new async.Future.value(stringResponse(200, h, resp)); | 1350 return new async.Future.value(stringResponse(200, h, resp)); |
| 1351 }), true); | 1351 }), true); |
| 1352 res.notifyproposalchange(arg_request).then(unittest.expectAsync((_) {})); | 1352 res.notifyproposalchange(arg_request).then(unittest.expectAsync((_) {})); |
| 1353 }); | 1353 }); |
| 1354 | 1354 |
| 1355 }); | 1355 }); |
| 1356 | 1356 |
| 1357 | 1357 |
| 1358 } | 1358 } |
| 1359 | 1359 |
| OLD | NEW |