| OLD | NEW |
| 1 library googleapis.adexchangeseller.v1_1.test; | 1 library googleapis.adexchangeseller.v1_1.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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 if (buildCounterAdClient < 3) { | 94 if (buildCounterAdClient < 3) { |
| 95 unittest.expect(o.arcOptIn, unittest.isTrue); | 95 unittest.expect(o.arcOptIn, unittest.isTrue); |
| 96 unittest.expect(o.id, unittest.equals('foo')); | 96 unittest.expect(o.id, unittest.equals('foo')); |
| 97 unittest.expect(o.kind, unittest.equals('foo')); | 97 unittest.expect(o.kind, unittest.equals('foo')); |
| 98 unittest.expect(o.productCode, unittest.equals('foo')); | 98 unittest.expect(o.productCode, unittest.equals('foo')); |
| 99 unittest.expect(o.supportsReporting, unittest.isTrue); | 99 unittest.expect(o.supportsReporting, unittest.isTrue); |
| 100 } | 100 } |
| 101 buildCounterAdClient--; | 101 buildCounterAdClient--; |
| 102 } | 102 } |
| 103 | 103 |
| 104 buildUnnamed444() { | 104 buildUnnamed459() { |
| 105 var o = new core.List<api.AdClient>(); | 105 var o = new core.List<api.AdClient>(); |
| 106 o.add(buildAdClient()); | 106 o.add(buildAdClient()); |
| 107 o.add(buildAdClient()); | 107 o.add(buildAdClient()); |
| 108 return o; | 108 return o; |
| 109 } | 109 } |
| 110 | 110 |
| 111 checkUnnamed444(core.List<api.AdClient> o) { | 111 checkUnnamed459(core.List<api.AdClient> o) { |
| 112 unittest.expect(o, unittest.hasLength(2)); | 112 unittest.expect(o, unittest.hasLength(2)); |
| 113 checkAdClient(o[0]); | 113 checkAdClient(o[0]); |
| 114 checkAdClient(o[1]); | 114 checkAdClient(o[1]); |
| 115 } | 115 } |
| 116 | 116 |
| 117 core.int buildCounterAdClients = 0; | 117 core.int buildCounterAdClients = 0; |
| 118 buildAdClients() { | 118 buildAdClients() { |
| 119 var o = new api.AdClients(); | 119 var o = new api.AdClients(); |
| 120 buildCounterAdClients++; | 120 buildCounterAdClients++; |
| 121 if (buildCounterAdClients < 3) { | 121 if (buildCounterAdClients < 3) { |
| 122 o.etag = "foo"; | 122 o.etag = "foo"; |
| 123 o.items = buildUnnamed444(); | 123 o.items = buildUnnamed459(); |
| 124 o.kind = "foo"; | 124 o.kind = "foo"; |
| 125 o.nextPageToken = "foo"; | 125 o.nextPageToken = "foo"; |
| 126 } | 126 } |
| 127 buildCounterAdClients--; | 127 buildCounterAdClients--; |
| 128 return o; | 128 return o; |
| 129 } | 129 } |
| 130 | 130 |
| 131 checkAdClients(api.AdClients o) { | 131 checkAdClients(api.AdClients o) { |
| 132 buildCounterAdClients++; | 132 buildCounterAdClients++; |
| 133 if (buildCounterAdClients < 3) { | 133 if (buildCounterAdClients < 3) { |
| 134 unittest.expect(o.etag, unittest.equals('foo')); | 134 unittest.expect(o.etag, unittest.equals('foo')); |
| 135 checkUnnamed444(o.items); | 135 checkUnnamed459(o.items); |
| 136 unittest.expect(o.kind, unittest.equals('foo')); | 136 unittest.expect(o.kind, unittest.equals('foo')); |
| 137 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 137 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 138 } | 138 } |
| 139 buildCounterAdClients--; | 139 buildCounterAdClients--; |
| 140 } | 140 } |
| 141 | 141 |
| 142 core.int buildCounterAdUnit = 0; | 142 core.int buildCounterAdUnit = 0; |
| 143 buildAdUnit() { | 143 buildAdUnit() { |
| 144 var o = new api.AdUnit(); | 144 var o = new api.AdUnit(); |
| 145 buildCounterAdUnit++; | 145 buildCounterAdUnit++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 159 if (buildCounterAdUnit < 3) { | 159 if (buildCounterAdUnit < 3) { |
| 160 unittest.expect(o.code, unittest.equals('foo')); | 160 unittest.expect(o.code, unittest.equals('foo')); |
| 161 unittest.expect(o.id, unittest.equals('foo')); | 161 unittest.expect(o.id, unittest.equals('foo')); |
| 162 unittest.expect(o.kind, unittest.equals('foo')); | 162 unittest.expect(o.kind, unittest.equals('foo')); |
| 163 unittest.expect(o.name, unittest.equals('foo')); | 163 unittest.expect(o.name, unittest.equals('foo')); |
| 164 unittest.expect(o.status, unittest.equals('foo')); | 164 unittest.expect(o.status, unittest.equals('foo')); |
| 165 } | 165 } |
| 166 buildCounterAdUnit--; | 166 buildCounterAdUnit--; |
| 167 } | 167 } |
| 168 | 168 |
| 169 buildUnnamed445() { | 169 buildUnnamed460() { |
| 170 var o = new core.List<api.AdUnit>(); | 170 var o = new core.List<api.AdUnit>(); |
| 171 o.add(buildAdUnit()); | 171 o.add(buildAdUnit()); |
| 172 o.add(buildAdUnit()); | 172 o.add(buildAdUnit()); |
| 173 return o; | 173 return o; |
| 174 } | 174 } |
| 175 | 175 |
| 176 checkUnnamed445(core.List<api.AdUnit> o) { | 176 checkUnnamed460(core.List<api.AdUnit> o) { |
| 177 unittest.expect(o, unittest.hasLength(2)); | 177 unittest.expect(o, unittest.hasLength(2)); |
| 178 checkAdUnit(o[0]); | 178 checkAdUnit(o[0]); |
| 179 checkAdUnit(o[1]); | 179 checkAdUnit(o[1]); |
| 180 } | 180 } |
| 181 | 181 |
| 182 core.int buildCounterAdUnits = 0; | 182 core.int buildCounterAdUnits = 0; |
| 183 buildAdUnits() { | 183 buildAdUnits() { |
| 184 var o = new api.AdUnits(); | 184 var o = new api.AdUnits(); |
| 185 buildCounterAdUnits++; | 185 buildCounterAdUnits++; |
| 186 if (buildCounterAdUnits < 3) { | 186 if (buildCounterAdUnits < 3) { |
| 187 o.etag = "foo"; | 187 o.etag = "foo"; |
| 188 o.items = buildUnnamed445(); | 188 o.items = buildUnnamed460(); |
| 189 o.kind = "foo"; | 189 o.kind = "foo"; |
| 190 o.nextPageToken = "foo"; | 190 o.nextPageToken = "foo"; |
| 191 } | 191 } |
| 192 buildCounterAdUnits--; | 192 buildCounterAdUnits--; |
| 193 return o; | 193 return o; |
| 194 } | 194 } |
| 195 | 195 |
| 196 checkAdUnits(api.AdUnits o) { | 196 checkAdUnits(api.AdUnits o) { |
| 197 buildCounterAdUnits++; | 197 buildCounterAdUnits++; |
| 198 if (buildCounterAdUnits < 3) { | 198 if (buildCounterAdUnits < 3) { |
| 199 unittest.expect(o.etag, unittest.equals('foo')); | 199 unittest.expect(o.etag, unittest.equals('foo')); |
| 200 checkUnnamed445(o.items); | 200 checkUnnamed460(o.items); |
| 201 unittest.expect(o.kind, unittest.equals('foo')); | 201 unittest.expect(o.kind, unittest.equals('foo')); |
| 202 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 202 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 203 } | 203 } |
| 204 buildCounterAdUnits--; | 204 buildCounterAdUnits--; |
| 205 } | 205 } |
| 206 | 206 |
| 207 core.int buildCounterAlert = 0; | 207 core.int buildCounterAlert = 0; |
| 208 buildAlert() { | 208 buildAlert() { |
| 209 var o = new api.Alert(); | 209 var o = new api.Alert(); |
| 210 buildCounterAlert++; | 210 buildCounterAlert++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 224 if (buildCounterAlert < 3) { | 224 if (buildCounterAlert < 3) { |
| 225 unittest.expect(o.id, unittest.equals('foo')); | 225 unittest.expect(o.id, unittest.equals('foo')); |
| 226 unittest.expect(o.kind, unittest.equals('foo')); | 226 unittest.expect(o.kind, unittest.equals('foo')); |
| 227 unittest.expect(o.message, unittest.equals('foo')); | 227 unittest.expect(o.message, unittest.equals('foo')); |
| 228 unittest.expect(o.severity, unittest.equals('foo')); | 228 unittest.expect(o.severity, unittest.equals('foo')); |
| 229 unittest.expect(o.type, unittest.equals('foo')); | 229 unittest.expect(o.type, unittest.equals('foo')); |
| 230 } | 230 } |
| 231 buildCounterAlert--; | 231 buildCounterAlert--; |
| 232 } | 232 } |
| 233 | 233 |
| 234 buildUnnamed446() { | 234 buildUnnamed461() { |
| 235 var o = new core.List<api.Alert>(); | 235 var o = new core.List<api.Alert>(); |
| 236 o.add(buildAlert()); | 236 o.add(buildAlert()); |
| 237 o.add(buildAlert()); | 237 o.add(buildAlert()); |
| 238 return o; | 238 return o; |
| 239 } | 239 } |
| 240 | 240 |
| 241 checkUnnamed446(core.List<api.Alert> o) { | 241 checkUnnamed461(core.List<api.Alert> o) { |
| 242 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
| 243 checkAlert(o[0]); | 243 checkAlert(o[0]); |
| 244 checkAlert(o[1]); | 244 checkAlert(o[1]); |
| 245 } | 245 } |
| 246 | 246 |
| 247 core.int buildCounterAlerts = 0; | 247 core.int buildCounterAlerts = 0; |
| 248 buildAlerts() { | 248 buildAlerts() { |
| 249 var o = new api.Alerts(); | 249 var o = new api.Alerts(); |
| 250 buildCounterAlerts++; | 250 buildCounterAlerts++; |
| 251 if (buildCounterAlerts < 3) { | 251 if (buildCounterAlerts < 3) { |
| 252 o.items = buildUnnamed446(); | 252 o.items = buildUnnamed461(); |
| 253 o.kind = "foo"; | 253 o.kind = "foo"; |
| 254 } | 254 } |
| 255 buildCounterAlerts--; | 255 buildCounterAlerts--; |
| 256 return o; | 256 return o; |
| 257 } | 257 } |
| 258 | 258 |
| 259 checkAlerts(api.Alerts o) { | 259 checkAlerts(api.Alerts o) { |
| 260 buildCounterAlerts++; | 260 buildCounterAlerts++; |
| 261 if (buildCounterAlerts < 3) { | 261 if (buildCounterAlerts < 3) { |
| 262 checkUnnamed446(o.items); | 262 checkUnnamed461(o.items); |
| 263 unittest.expect(o.kind, unittest.equals('foo')); | 263 unittest.expect(o.kind, unittest.equals('foo')); |
| 264 } | 264 } |
| 265 buildCounterAlerts--; | 265 buildCounterAlerts--; |
| 266 } | 266 } |
| 267 | 267 |
| 268 core.int buildCounterCustomChannelTargetingInfo = 0; | 268 core.int buildCounterCustomChannelTargetingInfo = 0; |
| 269 buildCustomChannelTargetingInfo() { | 269 buildCustomChannelTargetingInfo() { |
| 270 var o = new api.CustomChannelTargetingInfo(); | 270 var o = new api.CustomChannelTargetingInfo(); |
| 271 buildCounterCustomChannelTargetingInfo++; | 271 buildCounterCustomChannelTargetingInfo++; |
| 272 if (buildCounterCustomChannelTargetingInfo < 3) { | 272 if (buildCounterCustomChannelTargetingInfo < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 if (buildCounterCustomChannel < 3) { | 310 if (buildCounterCustomChannel < 3) { |
| 311 unittest.expect(o.code, unittest.equals('foo')); | 311 unittest.expect(o.code, unittest.equals('foo')); |
| 312 unittest.expect(o.id, unittest.equals('foo')); | 312 unittest.expect(o.id, unittest.equals('foo')); |
| 313 unittest.expect(o.kind, unittest.equals('foo')); | 313 unittest.expect(o.kind, unittest.equals('foo')); |
| 314 unittest.expect(o.name, unittest.equals('foo')); | 314 unittest.expect(o.name, unittest.equals('foo')); |
| 315 checkCustomChannelTargetingInfo(o.targetingInfo); | 315 checkCustomChannelTargetingInfo(o.targetingInfo); |
| 316 } | 316 } |
| 317 buildCounterCustomChannel--; | 317 buildCounterCustomChannel--; |
| 318 } | 318 } |
| 319 | 319 |
| 320 buildUnnamed447() { | 320 buildUnnamed462() { |
| 321 var o = new core.List<api.CustomChannel>(); | 321 var o = new core.List<api.CustomChannel>(); |
| 322 o.add(buildCustomChannel()); | 322 o.add(buildCustomChannel()); |
| 323 o.add(buildCustomChannel()); | 323 o.add(buildCustomChannel()); |
| 324 return o; | 324 return o; |
| 325 } | 325 } |
| 326 | 326 |
| 327 checkUnnamed447(core.List<api.CustomChannel> o) { | 327 checkUnnamed462(core.List<api.CustomChannel> o) { |
| 328 unittest.expect(o, unittest.hasLength(2)); | 328 unittest.expect(o, unittest.hasLength(2)); |
| 329 checkCustomChannel(o[0]); | 329 checkCustomChannel(o[0]); |
| 330 checkCustomChannel(o[1]); | 330 checkCustomChannel(o[1]); |
| 331 } | 331 } |
| 332 | 332 |
| 333 core.int buildCounterCustomChannels = 0; | 333 core.int buildCounterCustomChannels = 0; |
| 334 buildCustomChannels() { | 334 buildCustomChannels() { |
| 335 var o = new api.CustomChannels(); | 335 var o = new api.CustomChannels(); |
| 336 buildCounterCustomChannels++; | 336 buildCounterCustomChannels++; |
| 337 if (buildCounterCustomChannels < 3) { | 337 if (buildCounterCustomChannels < 3) { |
| 338 o.etag = "foo"; | 338 o.etag = "foo"; |
| 339 o.items = buildUnnamed447(); | 339 o.items = buildUnnamed462(); |
| 340 o.kind = "foo"; | 340 o.kind = "foo"; |
| 341 o.nextPageToken = "foo"; | 341 o.nextPageToken = "foo"; |
| 342 } | 342 } |
| 343 buildCounterCustomChannels--; | 343 buildCounterCustomChannels--; |
| 344 return o; | 344 return o; |
| 345 } | 345 } |
| 346 | 346 |
| 347 checkCustomChannels(api.CustomChannels o) { | 347 checkCustomChannels(api.CustomChannels o) { |
| 348 buildCounterCustomChannels++; | 348 buildCounterCustomChannels++; |
| 349 if (buildCounterCustomChannels < 3) { | 349 if (buildCounterCustomChannels < 3) { |
| 350 unittest.expect(o.etag, unittest.equals('foo')); | 350 unittest.expect(o.etag, unittest.equals('foo')); |
| 351 checkUnnamed447(o.items); | 351 checkUnnamed462(o.items); |
| 352 unittest.expect(o.kind, unittest.equals('foo')); | 352 unittest.expect(o.kind, unittest.equals('foo')); |
| 353 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 353 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 354 } | 354 } |
| 355 buildCounterCustomChannels--; | 355 buildCounterCustomChannels--; |
| 356 } | 356 } |
| 357 | 357 |
| 358 buildUnnamed448() { | 358 buildUnnamed463() { |
| 359 var o = new core.List<api.ReportingMetadataEntry>(); | 359 var o = new core.List<api.ReportingMetadataEntry>(); |
| 360 o.add(buildReportingMetadataEntry()); | 360 o.add(buildReportingMetadataEntry()); |
| 361 o.add(buildReportingMetadataEntry()); | 361 o.add(buildReportingMetadataEntry()); |
| 362 return o; | 362 return o; |
| 363 } | 363 } |
| 364 | 364 |
| 365 checkUnnamed448(core.List<api.ReportingMetadataEntry> o) { | 365 checkUnnamed463(core.List<api.ReportingMetadataEntry> o) { |
| 366 unittest.expect(o, unittest.hasLength(2)); | 366 unittest.expect(o, unittest.hasLength(2)); |
| 367 checkReportingMetadataEntry(o[0]); | 367 checkReportingMetadataEntry(o[0]); |
| 368 checkReportingMetadataEntry(o[1]); | 368 checkReportingMetadataEntry(o[1]); |
| 369 } | 369 } |
| 370 | 370 |
| 371 core.int buildCounterMetadata = 0; | 371 core.int buildCounterMetadata = 0; |
| 372 buildMetadata() { | 372 buildMetadata() { |
| 373 var o = new api.Metadata(); | 373 var o = new api.Metadata(); |
| 374 buildCounterMetadata++; | 374 buildCounterMetadata++; |
| 375 if (buildCounterMetadata < 3) { | 375 if (buildCounterMetadata < 3) { |
| 376 o.items = buildUnnamed448(); | 376 o.items = buildUnnamed463(); |
| 377 o.kind = "foo"; | 377 o.kind = "foo"; |
| 378 } | 378 } |
| 379 buildCounterMetadata--; | 379 buildCounterMetadata--; |
| 380 return o; | 380 return o; |
| 381 } | 381 } |
| 382 | 382 |
| 383 checkMetadata(api.Metadata o) { | 383 checkMetadata(api.Metadata o) { |
| 384 buildCounterMetadata++; | 384 buildCounterMetadata++; |
| 385 if (buildCounterMetadata < 3) { | 385 if (buildCounterMetadata < 3) { |
| 386 checkUnnamed448(o.items); | 386 checkUnnamed463(o.items); |
| 387 unittest.expect(o.kind, unittest.equals('foo')); | 387 unittest.expect(o.kind, unittest.equals('foo')); |
| 388 } | 388 } |
| 389 buildCounterMetadata--; | 389 buildCounterMetadata--; |
| 390 } | 390 } |
| 391 | 391 |
| 392 core.int buildCounterPreferredDeal = 0; | 392 core.int buildCounterPreferredDeal = 0; |
| 393 buildPreferredDeal() { | 393 buildPreferredDeal() { |
| 394 var o = new api.PreferredDeal(); | 394 var o = new api.PreferredDeal(); |
| 395 buildCounterPreferredDeal++; | 395 buildCounterPreferredDeal++; |
| 396 if (buildCounterPreferredDeal < 3) { | 396 if (buildCounterPreferredDeal < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 415 unittest.expect(o.currencyCode, unittest.equals('foo')); | 415 unittest.expect(o.currencyCode, unittest.equals('foo')); |
| 416 unittest.expect(o.endTime, unittest.equals('foo')); | 416 unittest.expect(o.endTime, unittest.equals('foo')); |
| 417 unittest.expect(o.fixedCpm, unittest.equals('foo')); | 417 unittest.expect(o.fixedCpm, unittest.equals('foo')); |
| 418 unittest.expect(o.id, unittest.equals('foo')); | 418 unittest.expect(o.id, unittest.equals('foo')); |
| 419 unittest.expect(o.kind, unittest.equals('foo')); | 419 unittest.expect(o.kind, unittest.equals('foo')); |
| 420 unittest.expect(o.startTime, unittest.equals('foo')); | 420 unittest.expect(o.startTime, unittest.equals('foo')); |
| 421 } | 421 } |
| 422 buildCounterPreferredDeal--; | 422 buildCounterPreferredDeal--; |
| 423 } | 423 } |
| 424 | 424 |
| 425 buildUnnamed449() { | 425 buildUnnamed464() { |
| 426 var o = new core.List<api.PreferredDeal>(); | 426 var o = new core.List<api.PreferredDeal>(); |
| 427 o.add(buildPreferredDeal()); | 427 o.add(buildPreferredDeal()); |
| 428 o.add(buildPreferredDeal()); | 428 o.add(buildPreferredDeal()); |
| 429 return o; | 429 return o; |
| 430 } | 430 } |
| 431 | 431 |
| 432 checkUnnamed449(core.List<api.PreferredDeal> o) { | 432 checkUnnamed464(core.List<api.PreferredDeal> o) { |
| 433 unittest.expect(o, unittest.hasLength(2)); | 433 unittest.expect(o, unittest.hasLength(2)); |
| 434 checkPreferredDeal(o[0]); | 434 checkPreferredDeal(o[0]); |
| 435 checkPreferredDeal(o[1]); | 435 checkPreferredDeal(o[1]); |
| 436 } | 436 } |
| 437 | 437 |
| 438 core.int buildCounterPreferredDeals = 0; | 438 core.int buildCounterPreferredDeals = 0; |
| 439 buildPreferredDeals() { | 439 buildPreferredDeals() { |
| 440 var o = new api.PreferredDeals(); | 440 var o = new api.PreferredDeals(); |
| 441 buildCounterPreferredDeals++; | 441 buildCounterPreferredDeals++; |
| 442 if (buildCounterPreferredDeals < 3) { | 442 if (buildCounterPreferredDeals < 3) { |
| 443 o.items = buildUnnamed449(); | 443 o.items = buildUnnamed464(); |
| 444 o.kind = "foo"; | 444 o.kind = "foo"; |
| 445 } | 445 } |
| 446 buildCounterPreferredDeals--; | 446 buildCounterPreferredDeals--; |
| 447 return o; | 447 return o; |
| 448 } | 448 } |
| 449 | 449 |
| 450 checkPreferredDeals(api.PreferredDeals o) { | 450 checkPreferredDeals(api.PreferredDeals o) { |
| 451 buildCounterPreferredDeals++; | 451 buildCounterPreferredDeals++; |
| 452 if (buildCounterPreferredDeals < 3) { | 452 if (buildCounterPreferredDeals < 3) { |
| 453 checkUnnamed449(o.items); | 453 checkUnnamed464(o.items); |
| 454 unittest.expect(o.kind, unittest.equals('foo')); | 454 unittest.expect(o.kind, unittest.equals('foo')); |
| 455 } | 455 } |
| 456 buildCounterPreferredDeals--; | 456 buildCounterPreferredDeals--; |
| 457 } | 457 } |
| 458 | 458 |
| 459 buildUnnamed450() { | 459 buildUnnamed465() { |
| 460 var o = new core.List<core.String>(); | 460 var o = new core.List<core.String>(); |
| 461 o.add("foo"); | 461 o.add("foo"); |
| 462 o.add("foo"); | 462 o.add("foo"); |
| 463 return o; | 463 return o; |
| 464 } | 464 } |
| 465 | 465 |
| 466 checkUnnamed450(core.List<core.String> o) { | 466 checkUnnamed465(core.List<core.String> o) { |
| 467 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
| 468 unittest.expect(o[0], unittest.equals('foo')); | 468 unittest.expect(o[0], unittest.equals('foo')); |
| 469 unittest.expect(o[1], unittest.equals('foo')); | 469 unittest.expect(o[1], unittest.equals('foo')); |
| 470 } | 470 } |
| 471 | 471 |
| 472 core.int buildCounterReportHeaders = 0; | 472 core.int buildCounterReportHeaders = 0; |
| 473 buildReportHeaders() { | 473 buildReportHeaders() { |
| 474 var o = new api.ReportHeaders(); | 474 var o = new api.ReportHeaders(); |
| 475 buildCounterReportHeaders++; | 475 buildCounterReportHeaders++; |
| 476 if (buildCounterReportHeaders < 3) { | 476 if (buildCounterReportHeaders < 3) { |
| 477 o.currency = "foo"; | 477 o.currency = "foo"; |
| 478 o.name = "foo"; | 478 o.name = "foo"; |
| 479 o.type = "foo"; | 479 o.type = "foo"; |
| 480 } | 480 } |
| 481 buildCounterReportHeaders--; | 481 buildCounterReportHeaders--; |
| 482 return o; | 482 return o; |
| 483 } | 483 } |
| 484 | 484 |
| 485 checkReportHeaders(api.ReportHeaders o) { | 485 checkReportHeaders(api.ReportHeaders o) { |
| 486 buildCounterReportHeaders++; | 486 buildCounterReportHeaders++; |
| 487 if (buildCounterReportHeaders < 3) { | 487 if (buildCounterReportHeaders < 3) { |
| 488 unittest.expect(o.currency, unittest.equals('foo')); | 488 unittest.expect(o.currency, unittest.equals('foo')); |
| 489 unittest.expect(o.name, unittest.equals('foo')); | 489 unittest.expect(o.name, unittest.equals('foo')); |
| 490 unittest.expect(o.type, unittest.equals('foo')); | 490 unittest.expect(o.type, unittest.equals('foo')); |
| 491 } | 491 } |
| 492 buildCounterReportHeaders--; | 492 buildCounterReportHeaders--; |
| 493 } | 493 } |
| 494 | 494 |
| 495 buildUnnamed451() { | 495 buildUnnamed466() { |
| 496 var o = new core.List<api.ReportHeaders>(); | 496 var o = new core.List<api.ReportHeaders>(); |
| 497 o.add(buildReportHeaders()); | 497 o.add(buildReportHeaders()); |
| 498 o.add(buildReportHeaders()); | 498 o.add(buildReportHeaders()); |
| 499 return o; | 499 return o; |
| 500 } | 500 } |
| 501 | 501 |
| 502 checkUnnamed451(core.List<api.ReportHeaders> o) { | 502 checkUnnamed466(core.List<api.ReportHeaders> o) { |
| 503 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
| 504 checkReportHeaders(o[0]); | 504 checkReportHeaders(o[0]); |
| 505 checkReportHeaders(o[1]); | 505 checkReportHeaders(o[1]); |
| 506 } | 506 } |
| 507 | 507 |
| 508 buildUnnamed452() { | 508 buildUnnamed467() { |
| 509 var o = new core.List<core.String>(); | 509 var o = new core.List<core.String>(); |
| 510 o.add("foo"); | 510 o.add("foo"); |
| 511 o.add("foo"); | 511 o.add("foo"); |
| 512 return o; | 512 return o; |
| 513 } | 513 } |
| 514 | 514 |
| 515 checkUnnamed452(core.List<core.String> o) { | 515 checkUnnamed467(core.List<core.String> o) { |
| 516 unittest.expect(o, unittest.hasLength(2)); | 516 unittest.expect(o, unittest.hasLength(2)); |
| 517 unittest.expect(o[0], unittest.equals('foo')); | 517 unittest.expect(o[0], unittest.equals('foo')); |
| 518 unittest.expect(o[1], unittest.equals('foo')); | 518 unittest.expect(o[1], unittest.equals('foo')); |
| 519 } | 519 } |
| 520 | 520 |
| 521 buildUnnamed453() { | 521 buildUnnamed468() { |
| 522 var o = new core.List<core.List<core.String>>(); | 522 var o = new core.List<core.List<core.String>>(); |
| 523 o.add(buildUnnamed452()); | 523 o.add(buildUnnamed467()); |
| 524 o.add(buildUnnamed452()); | 524 o.add(buildUnnamed467()); |
| 525 return o; | 525 return o; |
| 526 } | 526 } |
| 527 | 527 |
| 528 checkUnnamed453(core.List<core.List<core.String>> o) { | 528 checkUnnamed468(core.List<core.List<core.String>> o) { |
| 529 unittest.expect(o, unittest.hasLength(2)); | 529 unittest.expect(o, unittest.hasLength(2)); |
| 530 checkUnnamed452(o[0]); | 530 checkUnnamed467(o[0]); |
| 531 checkUnnamed452(o[1]); | 531 checkUnnamed467(o[1]); |
| 532 } | 532 } |
| 533 | 533 |
| 534 buildUnnamed454() { | 534 buildUnnamed469() { |
| 535 var o = new core.List<core.String>(); | 535 var o = new core.List<core.String>(); |
| 536 o.add("foo"); | 536 o.add("foo"); |
| 537 o.add("foo"); | 537 o.add("foo"); |
| 538 return o; | 538 return o; |
| 539 } | 539 } |
| 540 | 540 |
| 541 checkUnnamed454(core.List<core.String> o) { | 541 checkUnnamed469(core.List<core.String> o) { |
| 542 unittest.expect(o, unittest.hasLength(2)); | 542 unittest.expect(o, unittest.hasLength(2)); |
| 543 unittest.expect(o[0], unittest.equals('foo')); | 543 unittest.expect(o[0], unittest.equals('foo')); |
| 544 unittest.expect(o[1], unittest.equals('foo')); | 544 unittest.expect(o[1], unittest.equals('foo')); |
| 545 } | 545 } |
| 546 | 546 |
| 547 buildUnnamed455() { | 547 buildUnnamed470() { |
| 548 var o = new core.List<core.String>(); | 548 var o = new core.List<core.String>(); |
| 549 o.add("foo"); | 549 o.add("foo"); |
| 550 o.add("foo"); | 550 o.add("foo"); |
| 551 return o; | 551 return o; |
| 552 } | 552 } |
| 553 | 553 |
| 554 checkUnnamed455(core.List<core.String> o) { | 554 checkUnnamed470(core.List<core.String> o) { |
| 555 unittest.expect(o, unittest.hasLength(2)); | 555 unittest.expect(o, unittest.hasLength(2)); |
| 556 unittest.expect(o[0], unittest.equals('foo')); | 556 unittest.expect(o[0], unittest.equals('foo')); |
| 557 unittest.expect(o[1], unittest.equals('foo')); | 557 unittest.expect(o[1], unittest.equals('foo')); |
| 558 } | 558 } |
| 559 | 559 |
| 560 core.int buildCounterReport = 0; | 560 core.int buildCounterReport = 0; |
| 561 buildReport() { | 561 buildReport() { |
| 562 var o = new api.Report(); | 562 var o = new api.Report(); |
| 563 buildCounterReport++; | 563 buildCounterReport++; |
| 564 if (buildCounterReport < 3) { | 564 if (buildCounterReport < 3) { |
| 565 o.averages = buildUnnamed450(); | 565 o.averages = buildUnnamed465(); |
| 566 o.headers = buildUnnamed451(); | 566 o.headers = buildUnnamed466(); |
| 567 o.kind = "foo"; | 567 o.kind = "foo"; |
| 568 o.rows = buildUnnamed453(); | 568 o.rows = buildUnnamed468(); |
| 569 o.totalMatchedRows = "foo"; | 569 o.totalMatchedRows = "foo"; |
| 570 o.totals = buildUnnamed454(); | 570 o.totals = buildUnnamed469(); |
| 571 o.warnings = buildUnnamed455(); | 571 o.warnings = buildUnnamed470(); |
| 572 } | 572 } |
| 573 buildCounterReport--; | 573 buildCounterReport--; |
| 574 return o; | 574 return o; |
| 575 } | 575 } |
| 576 | 576 |
| 577 checkReport(api.Report o) { | 577 checkReport(api.Report o) { |
| 578 buildCounterReport++; | 578 buildCounterReport++; |
| 579 if (buildCounterReport < 3) { | 579 if (buildCounterReport < 3) { |
| 580 checkUnnamed450(o.averages); | 580 checkUnnamed465(o.averages); |
| 581 checkUnnamed451(o.headers); | 581 checkUnnamed466(o.headers); |
| 582 unittest.expect(o.kind, unittest.equals('foo')); | 582 unittest.expect(o.kind, unittest.equals('foo')); |
| 583 checkUnnamed453(o.rows); | 583 checkUnnamed468(o.rows); |
| 584 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); | 584 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); |
| 585 checkUnnamed454(o.totals); | 585 checkUnnamed469(o.totals); |
| 586 checkUnnamed455(o.warnings); | 586 checkUnnamed470(o.warnings); |
| 587 } | 587 } |
| 588 buildCounterReport--; | 588 buildCounterReport--; |
| 589 } | 589 } |
| 590 | 590 |
| 591 buildUnnamed456() { | 591 buildUnnamed471() { |
| 592 var o = new core.List<core.String>(); | 592 var o = new core.List<core.String>(); |
| 593 o.add("foo"); | 593 o.add("foo"); |
| 594 o.add("foo"); | 594 o.add("foo"); |
| 595 return o; | 595 return o; |
| 596 } | 596 } |
| 597 | 597 |
| 598 checkUnnamed456(core.List<core.String> o) { | 598 checkUnnamed471(core.List<core.String> o) { |
| 599 unittest.expect(o, unittest.hasLength(2)); | 599 unittest.expect(o, unittest.hasLength(2)); |
| 600 unittest.expect(o[0], unittest.equals('foo')); | 600 unittest.expect(o[0], unittest.equals('foo')); |
| 601 unittest.expect(o[1], unittest.equals('foo')); | 601 unittest.expect(o[1], unittest.equals('foo')); |
| 602 } | 602 } |
| 603 | 603 |
| 604 buildUnnamed457() { | 604 buildUnnamed472() { |
| 605 var o = new core.List<core.String>(); | 605 var o = new core.List<core.String>(); |
| 606 o.add("foo"); | 606 o.add("foo"); |
| 607 o.add("foo"); | 607 o.add("foo"); |
| 608 return o; | 608 return o; |
| 609 } | 609 } |
| 610 | 610 |
| 611 checkUnnamed457(core.List<core.String> o) { | 611 checkUnnamed472(core.List<core.String> o) { |
| 612 unittest.expect(o, unittest.hasLength(2)); | 612 unittest.expect(o, unittest.hasLength(2)); |
| 613 unittest.expect(o[0], unittest.equals('foo')); | 613 unittest.expect(o[0], unittest.equals('foo')); |
| 614 unittest.expect(o[1], unittest.equals('foo')); | 614 unittest.expect(o[1], unittest.equals('foo')); |
| 615 } | 615 } |
| 616 | 616 |
| 617 buildUnnamed458() { | 617 buildUnnamed473() { |
| 618 var o = new core.List<core.String>(); | 618 var o = new core.List<core.String>(); |
| 619 o.add("foo"); | 619 o.add("foo"); |
| 620 o.add("foo"); | 620 o.add("foo"); |
| 621 return o; | 621 return o; |
| 622 } | 622 } |
| 623 | 623 |
| 624 checkUnnamed458(core.List<core.String> o) { | 624 checkUnnamed473(core.List<core.String> o) { |
| 625 unittest.expect(o, unittest.hasLength(2)); | 625 unittest.expect(o, unittest.hasLength(2)); |
| 626 unittest.expect(o[0], unittest.equals('foo')); | 626 unittest.expect(o[0], unittest.equals('foo')); |
| 627 unittest.expect(o[1], unittest.equals('foo')); | 627 unittest.expect(o[1], unittest.equals('foo')); |
| 628 } | 628 } |
| 629 | 629 |
| 630 buildUnnamed459() { | 630 buildUnnamed474() { |
| 631 var o = new core.List<core.String>(); | 631 var o = new core.List<core.String>(); |
| 632 o.add("foo"); | 632 o.add("foo"); |
| 633 o.add("foo"); | 633 o.add("foo"); |
| 634 return o; | 634 return o; |
| 635 } | 635 } |
| 636 | 636 |
| 637 checkUnnamed459(core.List<core.String> o) { | 637 checkUnnamed474(core.List<core.String> o) { |
| 638 unittest.expect(o, unittest.hasLength(2)); | 638 unittest.expect(o, unittest.hasLength(2)); |
| 639 unittest.expect(o[0], unittest.equals('foo')); | 639 unittest.expect(o[0], unittest.equals('foo')); |
| 640 unittest.expect(o[1], unittest.equals('foo')); | 640 unittest.expect(o[1], unittest.equals('foo')); |
| 641 } | 641 } |
| 642 | 642 |
| 643 buildUnnamed460() { | 643 buildUnnamed475() { |
| 644 var o = new core.List<core.String>(); | 644 var o = new core.List<core.String>(); |
| 645 o.add("foo"); | 645 o.add("foo"); |
| 646 o.add("foo"); | 646 o.add("foo"); |
| 647 return o; | 647 return o; |
| 648 } | 648 } |
| 649 | 649 |
| 650 checkUnnamed460(core.List<core.String> o) { | 650 checkUnnamed475(core.List<core.String> o) { |
| 651 unittest.expect(o, unittest.hasLength(2)); | 651 unittest.expect(o, unittest.hasLength(2)); |
| 652 unittest.expect(o[0], unittest.equals('foo')); | 652 unittest.expect(o[0], unittest.equals('foo')); |
| 653 unittest.expect(o[1], unittest.equals('foo')); | 653 unittest.expect(o[1], unittest.equals('foo')); |
| 654 } | 654 } |
| 655 | 655 |
| 656 core.int buildCounterReportingMetadataEntry = 0; | 656 core.int buildCounterReportingMetadataEntry = 0; |
| 657 buildReportingMetadataEntry() { | 657 buildReportingMetadataEntry() { |
| 658 var o = new api.ReportingMetadataEntry(); | 658 var o = new api.ReportingMetadataEntry(); |
| 659 buildCounterReportingMetadataEntry++; | 659 buildCounterReportingMetadataEntry++; |
| 660 if (buildCounterReportingMetadataEntry < 3) { | 660 if (buildCounterReportingMetadataEntry < 3) { |
| 661 o.compatibleDimensions = buildUnnamed456(); | 661 o.compatibleDimensions = buildUnnamed471(); |
| 662 o.compatibleMetrics = buildUnnamed457(); | 662 o.compatibleMetrics = buildUnnamed472(); |
| 663 o.id = "foo"; | 663 o.id = "foo"; |
| 664 o.kind = "foo"; | 664 o.kind = "foo"; |
| 665 o.requiredDimensions = buildUnnamed458(); | 665 o.requiredDimensions = buildUnnamed473(); |
| 666 o.requiredMetrics = buildUnnamed459(); | 666 o.requiredMetrics = buildUnnamed474(); |
| 667 o.supportedProducts = buildUnnamed460(); | 667 o.supportedProducts = buildUnnamed475(); |
| 668 } | 668 } |
| 669 buildCounterReportingMetadataEntry--; | 669 buildCounterReportingMetadataEntry--; |
| 670 return o; | 670 return o; |
| 671 } | 671 } |
| 672 | 672 |
| 673 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { | 673 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { |
| 674 buildCounterReportingMetadataEntry++; | 674 buildCounterReportingMetadataEntry++; |
| 675 if (buildCounterReportingMetadataEntry < 3) { | 675 if (buildCounterReportingMetadataEntry < 3) { |
| 676 checkUnnamed456(o.compatibleDimensions); | 676 checkUnnamed471(o.compatibleDimensions); |
| 677 checkUnnamed457(o.compatibleMetrics); | 677 checkUnnamed472(o.compatibleMetrics); |
| 678 unittest.expect(o.id, unittest.equals('foo')); | 678 unittest.expect(o.id, unittest.equals('foo')); |
| 679 unittest.expect(o.kind, unittest.equals('foo')); | 679 unittest.expect(o.kind, unittest.equals('foo')); |
| 680 checkUnnamed458(o.requiredDimensions); | 680 checkUnnamed473(o.requiredDimensions); |
| 681 checkUnnamed459(o.requiredMetrics); | 681 checkUnnamed474(o.requiredMetrics); |
| 682 checkUnnamed460(o.supportedProducts); | 682 checkUnnamed475(o.supportedProducts); |
| 683 } | 683 } |
| 684 buildCounterReportingMetadataEntry--; | 684 buildCounterReportingMetadataEntry--; |
| 685 } | 685 } |
| 686 | 686 |
| 687 core.int buildCounterSavedReport = 0; | 687 core.int buildCounterSavedReport = 0; |
| 688 buildSavedReport() { | 688 buildSavedReport() { |
| 689 var o = new api.SavedReport(); | 689 var o = new api.SavedReport(); |
| 690 buildCounterSavedReport++; | 690 buildCounterSavedReport++; |
| 691 if (buildCounterSavedReport < 3) { | 691 if (buildCounterSavedReport < 3) { |
| 692 o.id = "foo"; | 692 o.id = "foo"; |
| 693 o.kind = "foo"; | 693 o.kind = "foo"; |
| 694 o.name = "foo"; | 694 o.name = "foo"; |
| 695 } | 695 } |
| 696 buildCounterSavedReport--; | 696 buildCounterSavedReport--; |
| 697 return o; | 697 return o; |
| 698 } | 698 } |
| 699 | 699 |
| 700 checkSavedReport(api.SavedReport o) { | 700 checkSavedReport(api.SavedReport o) { |
| 701 buildCounterSavedReport++; | 701 buildCounterSavedReport++; |
| 702 if (buildCounterSavedReport < 3) { | 702 if (buildCounterSavedReport < 3) { |
| 703 unittest.expect(o.id, unittest.equals('foo')); | 703 unittest.expect(o.id, unittest.equals('foo')); |
| 704 unittest.expect(o.kind, unittest.equals('foo')); | 704 unittest.expect(o.kind, unittest.equals('foo')); |
| 705 unittest.expect(o.name, unittest.equals('foo')); | 705 unittest.expect(o.name, unittest.equals('foo')); |
| 706 } | 706 } |
| 707 buildCounterSavedReport--; | 707 buildCounterSavedReport--; |
| 708 } | 708 } |
| 709 | 709 |
| 710 buildUnnamed461() { | 710 buildUnnamed476() { |
| 711 var o = new core.List<api.SavedReport>(); | 711 var o = new core.List<api.SavedReport>(); |
| 712 o.add(buildSavedReport()); | 712 o.add(buildSavedReport()); |
| 713 o.add(buildSavedReport()); | 713 o.add(buildSavedReport()); |
| 714 return o; | 714 return o; |
| 715 } | 715 } |
| 716 | 716 |
| 717 checkUnnamed461(core.List<api.SavedReport> o) { | 717 checkUnnamed476(core.List<api.SavedReport> o) { |
| 718 unittest.expect(o, unittest.hasLength(2)); | 718 unittest.expect(o, unittest.hasLength(2)); |
| 719 checkSavedReport(o[0]); | 719 checkSavedReport(o[0]); |
| 720 checkSavedReport(o[1]); | 720 checkSavedReport(o[1]); |
| 721 } | 721 } |
| 722 | 722 |
| 723 core.int buildCounterSavedReports = 0; | 723 core.int buildCounterSavedReports = 0; |
| 724 buildSavedReports() { | 724 buildSavedReports() { |
| 725 var o = new api.SavedReports(); | 725 var o = new api.SavedReports(); |
| 726 buildCounterSavedReports++; | 726 buildCounterSavedReports++; |
| 727 if (buildCounterSavedReports < 3) { | 727 if (buildCounterSavedReports < 3) { |
| 728 o.etag = "foo"; | 728 o.etag = "foo"; |
| 729 o.items = buildUnnamed461(); | 729 o.items = buildUnnamed476(); |
| 730 o.kind = "foo"; | 730 o.kind = "foo"; |
| 731 o.nextPageToken = "foo"; | 731 o.nextPageToken = "foo"; |
| 732 } | 732 } |
| 733 buildCounterSavedReports--; | 733 buildCounterSavedReports--; |
| 734 return o; | 734 return o; |
| 735 } | 735 } |
| 736 | 736 |
| 737 checkSavedReports(api.SavedReports o) { | 737 checkSavedReports(api.SavedReports o) { |
| 738 buildCounterSavedReports++; | 738 buildCounterSavedReports++; |
| 739 if (buildCounterSavedReports < 3) { | 739 if (buildCounterSavedReports < 3) { |
| 740 unittest.expect(o.etag, unittest.equals('foo')); | 740 unittest.expect(o.etag, unittest.equals('foo')); |
| 741 checkUnnamed461(o.items); | 741 checkUnnamed476(o.items); |
| 742 unittest.expect(o.kind, unittest.equals('foo')); | 742 unittest.expect(o.kind, unittest.equals('foo')); |
| 743 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 743 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 744 } | 744 } |
| 745 buildCounterSavedReports--; | 745 buildCounterSavedReports--; |
| 746 } | 746 } |
| 747 | 747 |
| 748 core.int buildCounterUrlChannel = 0; | 748 core.int buildCounterUrlChannel = 0; |
| 749 buildUrlChannel() { | 749 buildUrlChannel() { |
| 750 var o = new api.UrlChannel(); | 750 var o = new api.UrlChannel(); |
| 751 buildCounterUrlChannel++; | 751 buildCounterUrlChannel++; |
| 752 if (buildCounterUrlChannel < 3) { | 752 if (buildCounterUrlChannel < 3) { |
| 753 o.id = "foo"; | 753 o.id = "foo"; |
| 754 o.kind = "foo"; | 754 o.kind = "foo"; |
| 755 o.urlPattern = "foo"; | 755 o.urlPattern = "foo"; |
| 756 } | 756 } |
| 757 buildCounterUrlChannel--; | 757 buildCounterUrlChannel--; |
| 758 return o; | 758 return o; |
| 759 } | 759 } |
| 760 | 760 |
| 761 checkUrlChannel(api.UrlChannel o) { | 761 checkUrlChannel(api.UrlChannel o) { |
| 762 buildCounterUrlChannel++; | 762 buildCounterUrlChannel++; |
| 763 if (buildCounterUrlChannel < 3) { | 763 if (buildCounterUrlChannel < 3) { |
| 764 unittest.expect(o.id, unittest.equals('foo')); | 764 unittest.expect(o.id, unittest.equals('foo')); |
| 765 unittest.expect(o.kind, unittest.equals('foo')); | 765 unittest.expect(o.kind, unittest.equals('foo')); |
| 766 unittest.expect(o.urlPattern, unittest.equals('foo')); | 766 unittest.expect(o.urlPattern, unittest.equals('foo')); |
| 767 } | 767 } |
| 768 buildCounterUrlChannel--; | 768 buildCounterUrlChannel--; |
| 769 } | 769 } |
| 770 | 770 |
| 771 buildUnnamed462() { | 771 buildUnnamed477() { |
| 772 var o = new core.List<api.UrlChannel>(); | 772 var o = new core.List<api.UrlChannel>(); |
| 773 o.add(buildUrlChannel()); | 773 o.add(buildUrlChannel()); |
| 774 o.add(buildUrlChannel()); | 774 o.add(buildUrlChannel()); |
| 775 return o; | 775 return o; |
| 776 } | 776 } |
| 777 | 777 |
| 778 checkUnnamed462(core.List<api.UrlChannel> o) { | 778 checkUnnamed477(core.List<api.UrlChannel> o) { |
| 779 unittest.expect(o, unittest.hasLength(2)); | 779 unittest.expect(o, unittest.hasLength(2)); |
| 780 checkUrlChannel(o[0]); | 780 checkUrlChannel(o[0]); |
| 781 checkUrlChannel(o[1]); | 781 checkUrlChannel(o[1]); |
| 782 } | 782 } |
| 783 | 783 |
| 784 core.int buildCounterUrlChannels = 0; | 784 core.int buildCounterUrlChannels = 0; |
| 785 buildUrlChannels() { | 785 buildUrlChannels() { |
| 786 var o = new api.UrlChannels(); | 786 var o = new api.UrlChannels(); |
| 787 buildCounterUrlChannels++; | 787 buildCounterUrlChannels++; |
| 788 if (buildCounterUrlChannels < 3) { | 788 if (buildCounterUrlChannels < 3) { |
| 789 o.etag = "foo"; | 789 o.etag = "foo"; |
| 790 o.items = buildUnnamed462(); | 790 o.items = buildUnnamed477(); |
| 791 o.kind = "foo"; | 791 o.kind = "foo"; |
| 792 o.nextPageToken = "foo"; | 792 o.nextPageToken = "foo"; |
| 793 } | 793 } |
| 794 buildCounterUrlChannels--; | 794 buildCounterUrlChannels--; |
| 795 return o; | 795 return o; |
| 796 } | 796 } |
| 797 | 797 |
| 798 checkUrlChannels(api.UrlChannels o) { | 798 checkUrlChannels(api.UrlChannels o) { |
| 799 buildCounterUrlChannels++; | 799 buildCounterUrlChannels++; |
| 800 if (buildCounterUrlChannels < 3) { | 800 if (buildCounterUrlChannels < 3) { |
| 801 unittest.expect(o.etag, unittest.equals('foo')); | 801 unittest.expect(o.etag, unittest.equals('foo')); |
| 802 checkUnnamed462(o.items); | 802 checkUnnamed477(o.items); |
| 803 unittest.expect(o.kind, unittest.equals('foo')); | 803 unittest.expect(o.kind, unittest.equals('foo')); |
| 804 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 804 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 805 } | 805 } |
| 806 buildCounterUrlChannels--; | 806 buildCounterUrlChannels--; |
| 807 } | 807 } |
| 808 | 808 |
| 809 buildUnnamed463() { | 809 buildUnnamed478() { |
| 810 var o = new core.List<core.String>(); | 810 var o = new core.List<core.String>(); |
| 811 o.add("foo"); | 811 o.add("foo"); |
| 812 o.add("foo"); | 812 o.add("foo"); |
| 813 return o; | 813 return o; |
| 814 } | 814 } |
| 815 | 815 |
| 816 checkUnnamed463(core.List<core.String> o) { | 816 checkUnnamed478(core.List<core.String> o) { |
| 817 unittest.expect(o, unittest.hasLength(2)); | 817 unittest.expect(o, unittest.hasLength(2)); |
| 818 unittest.expect(o[0], unittest.equals('foo')); | 818 unittest.expect(o[0], unittest.equals('foo')); |
| 819 unittest.expect(o[1], unittest.equals('foo')); | 819 unittest.expect(o[1], unittest.equals('foo')); |
| 820 } | 820 } |
| 821 | 821 |
| 822 buildUnnamed464() { | 822 buildUnnamed479() { |
| 823 var o = new core.List<core.String>(); | 823 var o = new core.List<core.String>(); |
| 824 o.add("foo"); | 824 o.add("foo"); |
| 825 o.add("foo"); | 825 o.add("foo"); |
| 826 return o; | 826 return o; |
| 827 } | 827 } |
| 828 | 828 |
| 829 checkUnnamed464(core.List<core.String> o) { | 829 checkUnnamed479(core.List<core.String> o) { |
| 830 unittest.expect(o, unittest.hasLength(2)); | 830 unittest.expect(o, unittest.hasLength(2)); |
| 831 unittest.expect(o[0], unittest.equals('foo')); | 831 unittest.expect(o[0], unittest.equals('foo')); |
| 832 unittest.expect(o[1], unittest.equals('foo')); | 832 unittest.expect(o[1], unittest.equals('foo')); |
| 833 } | 833 } |
| 834 | 834 |
| 835 buildUnnamed465() { | 835 buildUnnamed480() { |
| 836 var o = new core.List<core.String>(); | 836 var o = new core.List<core.String>(); |
| 837 o.add("foo"); | 837 o.add("foo"); |
| 838 o.add("foo"); | 838 o.add("foo"); |
| 839 return o; | 839 return o; |
| 840 } | 840 } |
| 841 | 841 |
| 842 checkUnnamed465(core.List<core.String> o) { | 842 checkUnnamed480(core.List<core.String> o) { |
| 843 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
| 844 unittest.expect(o[0], unittest.equals('foo')); | 844 unittest.expect(o[0], unittest.equals('foo')); |
| 845 unittest.expect(o[1], unittest.equals('foo')); | 845 unittest.expect(o[1], unittest.equals('foo')); |
| 846 } | 846 } |
| 847 | 847 |
| 848 buildUnnamed466() { | 848 buildUnnamed481() { |
| 849 var o = new core.List<core.String>(); | 849 var o = new core.List<core.String>(); |
| 850 o.add("foo"); | 850 o.add("foo"); |
| 851 o.add("foo"); | 851 o.add("foo"); |
| 852 return o; | 852 return o; |
| 853 } | 853 } |
| 854 | 854 |
| 855 checkUnnamed466(core.List<core.String> o) { | 855 checkUnnamed481(core.List<core.String> o) { |
| 856 unittest.expect(o, unittest.hasLength(2)); | 856 unittest.expect(o, unittest.hasLength(2)); |
| 857 unittest.expect(o[0], unittest.equals('foo')); | 857 unittest.expect(o[0], unittest.equals('foo')); |
| 858 unittest.expect(o[1], unittest.equals('foo')); | 858 unittest.expect(o[1], unittest.equals('foo')); |
| 859 } | 859 } |
| 860 | 860 |
| 861 | 861 |
| 862 main() { | 862 main() { |
| 863 unittest.group("obj-schema-Account", () { | 863 unittest.group("obj-schema-Account", () { |
| 864 unittest.test("to-json--from-json", () { | 864 unittest.test("to-json--from-json", () { |
| 865 var o = buildAccount(); | 865 var o = buildAccount(); |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1773 | 1773 |
| 1774 unittest.group("resource-ReportsResourceApi", () { | 1774 unittest.group("resource-ReportsResourceApi", () { |
| 1775 unittest.test("method--generate", () { | 1775 unittest.test("method--generate", () { |
| 1776 // TODO: Implement tests for media upload; | 1776 // TODO: Implement tests for media upload; |
| 1777 // TODO: Implement tests for media download; | 1777 // TODO: Implement tests for media download; |
| 1778 | 1778 |
| 1779 var mock = new HttpServerMock(); | 1779 var mock = new HttpServerMock(); |
| 1780 api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; | 1780 api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; |
| 1781 var arg_startDate = "foo"; | 1781 var arg_startDate = "foo"; |
| 1782 var arg_endDate = "foo"; | 1782 var arg_endDate = "foo"; |
| 1783 var arg_dimension = buildUnnamed463(); | 1783 var arg_dimension = buildUnnamed478(); |
| 1784 var arg_filter = buildUnnamed464(); | 1784 var arg_filter = buildUnnamed479(); |
| 1785 var arg_locale = "foo"; | 1785 var arg_locale = "foo"; |
| 1786 var arg_maxResults = 42; | 1786 var arg_maxResults = 42; |
| 1787 var arg_metric = buildUnnamed465(); | 1787 var arg_metric = buildUnnamed480(); |
| 1788 var arg_sort = buildUnnamed466(); | 1788 var arg_sort = buildUnnamed481(); |
| 1789 var arg_startIndex = 42; | 1789 var arg_startIndex = 42; |
| 1790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1791 var path = (req.url).path; | 1791 var path = (req.url).path; |
| 1792 var pathOffset = 0; | 1792 var pathOffset = 0; |
| 1793 var index; | 1793 var index; |
| 1794 var subPart; | 1794 var subPart; |
| 1795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1796 pathOffset += 1; | 1796 pathOffset += 1; |
| 1797 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v1.1/")); | 1797 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v1.1/")); |
| 1798 pathOffset += 22; | 1798 pathOffset += 22; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.UrlChannels response) { | 2004 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.UrlChannels response) { |
| 2005 checkUrlChannels(response); | 2005 checkUrlChannels(response); |
| 2006 }))); | 2006 }))); |
| 2007 }); | 2007 }); |
| 2008 | 2008 |
| 2009 }); | 2009 }); |
| 2010 | 2010 |
| 2011 | 2011 |
| 2012 } | 2012 } |
| 2013 | 2013 |
| OLD | NEW |