| OLD | NEW |
| 1 library googleapis.adexchangeseller.v2_0.test; | 1 library googleapis.adexchangeseller.v2_0.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 checkAccount(api.Account o) { | 67 checkAccount(api.Account o) { |
| 68 buildCounterAccount++; | 68 buildCounterAccount++; |
| 69 if (buildCounterAccount < 3) { | 69 if (buildCounterAccount < 3) { |
| 70 unittest.expect(o.id, unittest.equals('foo')); | 70 unittest.expect(o.id, unittest.equals('foo')); |
| 71 unittest.expect(o.kind, unittest.equals('foo')); | 71 unittest.expect(o.kind, unittest.equals('foo')); |
| 72 unittest.expect(o.name, unittest.equals('foo')); | 72 unittest.expect(o.name, unittest.equals('foo')); |
| 73 } | 73 } |
| 74 buildCounterAccount--; | 74 buildCounterAccount--; |
| 75 } | 75 } |
| 76 | 76 |
| 77 buildUnnamed1674() { | 77 buildUnnamed1708() { |
| 78 var o = new core.List<api.Account>(); | 78 var o = new core.List<api.Account>(); |
| 79 o.add(buildAccount()); | 79 o.add(buildAccount()); |
| 80 o.add(buildAccount()); | 80 o.add(buildAccount()); |
| 81 return o; | 81 return o; |
| 82 } | 82 } |
| 83 | 83 |
| 84 checkUnnamed1674(core.List<api.Account> o) { | 84 checkUnnamed1708(core.List<api.Account> o) { |
| 85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
| 86 checkAccount(o[0]); | 86 checkAccount(o[0]); |
| 87 checkAccount(o[1]); | 87 checkAccount(o[1]); |
| 88 } | 88 } |
| 89 | 89 |
| 90 core.int buildCounterAccounts = 0; | 90 core.int buildCounterAccounts = 0; |
| 91 buildAccounts() { | 91 buildAccounts() { |
| 92 var o = new api.Accounts(); | 92 var o = new api.Accounts(); |
| 93 buildCounterAccounts++; | 93 buildCounterAccounts++; |
| 94 if (buildCounterAccounts < 3) { | 94 if (buildCounterAccounts < 3) { |
| 95 o.etag = "foo"; | 95 o.etag = "foo"; |
| 96 o.items = buildUnnamed1674(); | 96 o.items = buildUnnamed1708(); |
| 97 o.kind = "foo"; | 97 o.kind = "foo"; |
| 98 o.nextPageToken = "foo"; | 98 o.nextPageToken = "foo"; |
| 99 } | 99 } |
| 100 buildCounterAccounts--; | 100 buildCounterAccounts--; |
| 101 return o; | 101 return o; |
| 102 } | 102 } |
| 103 | 103 |
| 104 checkAccounts(api.Accounts o) { | 104 checkAccounts(api.Accounts o) { |
| 105 buildCounterAccounts++; | 105 buildCounterAccounts++; |
| 106 if (buildCounterAccounts < 3) { | 106 if (buildCounterAccounts < 3) { |
| 107 unittest.expect(o.etag, unittest.equals('foo')); | 107 unittest.expect(o.etag, unittest.equals('foo')); |
| 108 checkUnnamed1674(o.items); | 108 checkUnnamed1708(o.items); |
| 109 unittest.expect(o.kind, unittest.equals('foo')); | 109 unittest.expect(o.kind, unittest.equals('foo')); |
| 110 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 110 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 111 } | 111 } |
| 112 buildCounterAccounts--; | 112 buildCounterAccounts--; |
| 113 } | 113 } |
| 114 | 114 |
| 115 core.int buildCounterAdClient = 0; | 115 core.int buildCounterAdClient = 0; |
| 116 buildAdClient() { | 116 buildAdClient() { |
| 117 var o = new api.AdClient(); | 117 var o = new api.AdClient(); |
| 118 buildCounterAdClient++; | 118 buildCounterAdClient++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 132 if (buildCounterAdClient < 3) { | 132 if (buildCounterAdClient < 3) { |
| 133 unittest.expect(o.arcOptIn, unittest.isTrue); | 133 unittest.expect(o.arcOptIn, unittest.isTrue); |
| 134 unittest.expect(o.id, unittest.equals('foo')); | 134 unittest.expect(o.id, unittest.equals('foo')); |
| 135 unittest.expect(o.kind, unittest.equals('foo')); | 135 unittest.expect(o.kind, unittest.equals('foo')); |
| 136 unittest.expect(o.productCode, unittest.equals('foo')); | 136 unittest.expect(o.productCode, unittest.equals('foo')); |
| 137 unittest.expect(o.supportsReporting, unittest.isTrue); | 137 unittest.expect(o.supportsReporting, unittest.isTrue); |
| 138 } | 138 } |
| 139 buildCounterAdClient--; | 139 buildCounterAdClient--; |
| 140 } | 140 } |
| 141 | 141 |
| 142 buildUnnamed1675() { | 142 buildUnnamed1709() { |
| 143 var o = new core.List<api.AdClient>(); | 143 var o = new core.List<api.AdClient>(); |
| 144 o.add(buildAdClient()); | 144 o.add(buildAdClient()); |
| 145 o.add(buildAdClient()); | 145 o.add(buildAdClient()); |
| 146 return o; | 146 return o; |
| 147 } | 147 } |
| 148 | 148 |
| 149 checkUnnamed1675(core.List<api.AdClient> o) { | 149 checkUnnamed1709(core.List<api.AdClient> o) { |
| 150 unittest.expect(o, unittest.hasLength(2)); | 150 unittest.expect(o, unittest.hasLength(2)); |
| 151 checkAdClient(o[0]); | 151 checkAdClient(o[0]); |
| 152 checkAdClient(o[1]); | 152 checkAdClient(o[1]); |
| 153 } | 153 } |
| 154 | 154 |
| 155 core.int buildCounterAdClients = 0; | 155 core.int buildCounterAdClients = 0; |
| 156 buildAdClients() { | 156 buildAdClients() { |
| 157 var o = new api.AdClients(); | 157 var o = new api.AdClients(); |
| 158 buildCounterAdClients++; | 158 buildCounterAdClients++; |
| 159 if (buildCounterAdClients < 3) { | 159 if (buildCounterAdClients < 3) { |
| 160 o.etag = "foo"; | 160 o.etag = "foo"; |
| 161 o.items = buildUnnamed1675(); | 161 o.items = buildUnnamed1709(); |
| 162 o.kind = "foo"; | 162 o.kind = "foo"; |
| 163 o.nextPageToken = "foo"; | 163 o.nextPageToken = "foo"; |
| 164 } | 164 } |
| 165 buildCounterAdClients--; | 165 buildCounterAdClients--; |
| 166 return o; | 166 return o; |
| 167 } | 167 } |
| 168 | 168 |
| 169 checkAdClients(api.AdClients o) { | 169 checkAdClients(api.AdClients o) { |
| 170 buildCounterAdClients++; | 170 buildCounterAdClients++; |
| 171 if (buildCounterAdClients < 3) { | 171 if (buildCounterAdClients < 3) { |
| 172 unittest.expect(o.etag, unittest.equals('foo')); | 172 unittest.expect(o.etag, unittest.equals('foo')); |
| 173 checkUnnamed1675(o.items); | 173 checkUnnamed1709(o.items); |
| 174 unittest.expect(o.kind, unittest.equals('foo')); | 174 unittest.expect(o.kind, unittest.equals('foo')); |
| 175 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 175 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 176 } | 176 } |
| 177 buildCounterAdClients--; | 177 buildCounterAdClients--; |
| 178 } | 178 } |
| 179 | 179 |
| 180 core.int buildCounterAlert = 0; | 180 core.int buildCounterAlert = 0; |
| 181 buildAlert() { | 181 buildAlert() { |
| 182 var o = new api.Alert(); | 182 var o = new api.Alert(); |
| 183 buildCounterAlert++; | 183 buildCounterAlert++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 197 if (buildCounterAlert < 3) { | 197 if (buildCounterAlert < 3) { |
| 198 unittest.expect(o.id, unittest.equals('foo')); | 198 unittest.expect(o.id, unittest.equals('foo')); |
| 199 unittest.expect(o.kind, unittest.equals('foo')); | 199 unittest.expect(o.kind, unittest.equals('foo')); |
| 200 unittest.expect(o.message, unittest.equals('foo')); | 200 unittest.expect(o.message, unittest.equals('foo')); |
| 201 unittest.expect(o.severity, unittest.equals('foo')); | 201 unittest.expect(o.severity, unittest.equals('foo')); |
| 202 unittest.expect(o.type, unittest.equals('foo')); | 202 unittest.expect(o.type, unittest.equals('foo')); |
| 203 } | 203 } |
| 204 buildCounterAlert--; | 204 buildCounterAlert--; |
| 205 } | 205 } |
| 206 | 206 |
| 207 buildUnnamed1676() { | 207 buildUnnamed1710() { |
| 208 var o = new core.List<api.Alert>(); | 208 var o = new core.List<api.Alert>(); |
| 209 o.add(buildAlert()); | 209 o.add(buildAlert()); |
| 210 o.add(buildAlert()); | 210 o.add(buildAlert()); |
| 211 return o; | 211 return o; |
| 212 } | 212 } |
| 213 | 213 |
| 214 checkUnnamed1676(core.List<api.Alert> o) { | 214 checkUnnamed1710(core.List<api.Alert> o) { |
| 215 unittest.expect(o, unittest.hasLength(2)); | 215 unittest.expect(o, unittest.hasLength(2)); |
| 216 checkAlert(o[0]); | 216 checkAlert(o[0]); |
| 217 checkAlert(o[1]); | 217 checkAlert(o[1]); |
| 218 } | 218 } |
| 219 | 219 |
| 220 core.int buildCounterAlerts = 0; | 220 core.int buildCounterAlerts = 0; |
| 221 buildAlerts() { | 221 buildAlerts() { |
| 222 var o = new api.Alerts(); | 222 var o = new api.Alerts(); |
| 223 buildCounterAlerts++; | 223 buildCounterAlerts++; |
| 224 if (buildCounterAlerts < 3) { | 224 if (buildCounterAlerts < 3) { |
| 225 o.items = buildUnnamed1676(); | 225 o.items = buildUnnamed1710(); |
| 226 o.kind = "foo"; | 226 o.kind = "foo"; |
| 227 } | 227 } |
| 228 buildCounterAlerts--; | 228 buildCounterAlerts--; |
| 229 return o; | 229 return o; |
| 230 } | 230 } |
| 231 | 231 |
| 232 checkAlerts(api.Alerts o) { | 232 checkAlerts(api.Alerts o) { |
| 233 buildCounterAlerts++; | 233 buildCounterAlerts++; |
| 234 if (buildCounterAlerts < 3) { | 234 if (buildCounterAlerts < 3) { |
| 235 checkUnnamed1676(o.items); | 235 checkUnnamed1710(o.items); |
| 236 unittest.expect(o.kind, unittest.equals('foo')); | 236 unittest.expect(o.kind, unittest.equals('foo')); |
| 237 } | 237 } |
| 238 buildCounterAlerts--; | 238 buildCounterAlerts--; |
| 239 } | 239 } |
| 240 | 240 |
| 241 core.int buildCounterCustomChannelTargetingInfo = 0; | 241 core.int buildCounterCustomChannelTargetingInfo = 0; |
| 242 buildCustomChannelTargetingInfo() { | 242 buildCustomChannelTargetingInfo() { |
| 243 var o = new api.CustomChannelTargetingInfo(); | 243 var o = new api.CustomChannelTargetingInfo(); |
| 244 buildCounterCustomChannelTargetingInfo++; | 244 buildCounterCustomChannelTargetingInfo++; |
| 245 if (buildCounterCustomChannelTargetingInfo < 3) { | 245 if (buildCounterCustomChannelTargetingInfo < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 if (buildCounterCustomChannel < 3) { | 283 if (buildCounterCustomChannel < 3) { |
| 284 unittest.expect(o.code, unittest.equals('foo')); | 284 unittest.expect(o.code, unittest.equals('foo')); |
| 285 unittest.expect(o.id, unittest.equals('foo')); | 285 unittest.expect(o.id, unittest.equals('foo')); |
| 286 unittest.expect(o.kind, unittest.equals('foo')); | 286 unittest.expect(o.kind, unittest.equals('foo')); |
| 287 unittest.expect(o.name, unittest.equals('foo')); | 287 unittest.expect(o.name, unittest.equals('foo')); |
| 288 checkCustomChannelTargetingInfo(o.targetingInfo); | 288 checkCustomChannelTargetingInfo(o.targetingInfo); |
| 289 } | 289 } |
| 290 buildCounterCustomChannel--; | 290 buildCounterCustomChannel--; |
| 291 } | 291 } |
| 292 | 292 |
| 293 buildUnnamed1677() { | 293 buildUnnamed1711() { |
| 294 var o = new core.List<api.CustomChannel>(); | 294 var o = new core.List<api.CustomChannel>(); |
| 295 o.add(buildCustomChannel()); | 295 o.add(buildCustomChannel()); |
| 296 o.add(buildCustomChannel()); | 296 o.add(buildCustomChannel()); |
| 297 return o; | 297 return o; |
| 298 } | 298 } |
| 299 | 299 |
| 300 checkUnnamed1677(core.List<api.CustomChannel> o) { | 300 checkUnnamed1711(core.List<api.CustomChannel> o) { |
| 301 unittest.expect(o, unittest.hasLength(2)); | 301 unittest.expect(o, unittest.hasLength(2)); |
| 302 checkCustomChannel(o[0]); | 302 checkCustomChannel(o[0]); |
| 303 checkCustomChannel(o[1]); | 303 checkCustomChannel(o[1]); |
| 304 } | 304 } |
| 305 | 305 |
| 306 core.int buildCounterCustomChannels = 0; | 306 core.int buildCounterCustomChannels = 0; |
| 307 buildCustomChannels() { | 307 buildCustomChannels() { |
| 308 var o = new api.CustomChannels(); | 308 var o = new api.CustomChannels(); |
| 309 buildCounterCustomChannels++; | 309 buildCounterCustomChannels++; |
| 310 if (buildCounterCustomChannels < 3) { | 310 if (buildCounterCustomChannels < 3) { |
| 311 o.etag = "foo"; | 311 o.etag = "foo"; |
| 312 o.items = buildUnnamed1677(); | 312 o.items = buildUnnamed1711(); |
| 313 o.kind = "foo"; | 313 o.kind = "foo"; |
| 314 o.nextPageToken = "foo"; | 314 o.nextPageToken = "foo"; |
| 315 } | 315 } |
| 316 buildCounterCustomChannels--; | 316 buildCounterCustomChannels--; |
| 317 return o; | 317 return o; |
| 318 } | 318 } |
| 319 | 319 |
| 320 checkCustomChannels(api.CustomChannels o) { | 320 checkCustomChannels(api.CustomChannels o) { |
| 321 buildCounterCustomChannels++; | 321 buildCounterCustomChannels++; |
| 322 if (buildCounterCustomChannels < 3) { | 322 if (buildCounterCustomChannels < 3) { |
| 323 unittest.expect(o.etag, unittest.equals('foo')); | 323 unittest.expect(o.etag, unittest.equals('foo')); |
| 324 checkUnnamed1677(o.items); | 324 checkUnnamed1711(o.items); |
| 325 unittest.expect(o.kind, unittest.equals('foo')); | 325 unittest.expect(o.kind, unittest.equals('foo')); |
| 326 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 326 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 327 } | 327 } |
| 328 buildCounterCustomChannels--; | 328 buildCounterCustomChannels--; |
| 329 } | 329 } |
| 330 | 330 |
| 331 buildUnnamed1678() { | 331 buildUnnamed1712() { |
| 332 var o = new core.List<api.ReportingMetadataEntry>(); | 332 var o = new core.List<api.ReportingMetadataEntry>(); |
| 333 o.add(buildReportingMetadataEntry()); | 333 o.add(buildReportingMetadataEntry()); |
| 334 o.add(buildReportingMetadataEntry()); | 334 o.add(buildReportingMetadataEntry()); |
| 335 return o; | 335 return o; |
| 336 } | 336 } |
| 337 | 337 |
| 338 checkUnnamed1678(core.List<api.ReportingMetadataEntry> o) { | 338 checkUnnamed1712(core.List<api.ReportingMetadataEntry> o) { |
| 339 unittest.expect(o, unittest.hasLength(2)); | 339 unittest.expect(o, unittest.hasLength(2)); |
| 340 checkReportingMetadataEntry(o[0]); | 340 checkReportingMetadataEntry(o[0]); |
| 341 checkReportingMetadataEntry(o[1]); | 341 checkReportingMetadataEntry(o[1]); |
| 342 } | 342 } |
| 343 | 343 |
| 344 core.int buildCounterMetadata = 0; | 344 core.int buildCounterMetadata = 0; |
| 345 buildMetadata() { | 345 buildMetadata() { |
| 346 var o = new api.Metadata(); | 346 var o = new api.Metadata(); |
| 347 buildCounterMetadata++; | 347 buildCounterMetadata++; |
| 348 if (buildCounterMetadata < 3) { | 348 if (buildCounterMetadata < 3) { |
| 349 o.items = buildUnnamed1678(); | 349 o.items = buildUnnamed1712(); |
| 350 o.kind = "foo"; | 350 o.kind = "foo"; |
| 351 } | 351 } |
| 352 buildCounterMetadata--; | 352 buildCounterMetadata--; |
| 353 return o; | 353 return o; |
| 354 } | 354 } |
| 355 | 355 |
| 356 checkMetadata(api.Metadata o) { | 356 checkMetadata(api.Metadata o) { |
| 357 buildCounterMetadata++; | 357 buildCounterMetadata++; |
| 358 if (buildCounterMetadata < 3) { | 358 if (buildCounterMetadata < 3) { |
| 359 checkUnnamed1678(o.items); | 359 checkUnnamed1712(o.items); |
| 360 unittest.expect(o.kind, unittest.equals('foo')); | 360 unittest.expect(o.kind, unittest.equals('foo')); |
| 361 } | 361 } |
| 362 buildCounterMetadata--; | 362 buildCounterMetadata--; |
| 363 } | 363 } |
| 364 | 364 |
| 365 core.int buildCounterPreferredDeal = 0; | 365 core.int buildCounterPreferredDeal = 0; |
| 366 buildPreferredDeal() { | 366 buildPreferredDeal() { |
| 367 var o = new api.PreferredDeal(); | 367 var o = new api.PreferredDeal(); |
| 368 buildCounterPreferredDeal++; | 368 buildCounterPreferredDeal++; |
| 369 if (buildCounterPreferredDeal < 3) { | 369 if (buildCounterPreferredDeal < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 388 unittest.expect(o.currencyCode, unittest.equals('foo')); | 388 unittest.expect(o.currencyCode, unittest.equals('foo')); |
| 389 unittest.expect(o.endTime, unittest.equals('foo')); | 389 unittest.expect(o.endTime, unittest.equals('foo')); |
| 390 unittest.expect(o.fixedCpm, unittest.equals('foo')); | 390 unittest.expect(o.fixedCpm, unittest.equals('foo')); |
| 391 unittest.expect(o.id, unittest.equals('foo')); | 391 unittest.expect(o.id, unittest.equals('foo')); |
| 392 unittest.expect(o.kind, unittest.equals('foo')); | 392 unittest.expect(o.kind, unittest.equals('foo')); |
| 393 unittest.expect(o.startTime, unittest.equals('foo')); | 393 unittest.expect(o.startTime, unittest.equals('foo')); |
| 394 } | 394 } |
| 395 buildCounterPreferredDeal--; | 395 buildCounterPreferredDeal--; |
| 396 } | 396 } |
| 397 | 397 |
| 398 buildUnnamed1679() { | 398 buildUnnamed1713() { |
| 399 var o = new core.List<api.PreferredDeal>(); | 399 var o = new core.List<api.PreferredDeal>(); |
| 400 o.add(buildPreferredDeal()); | 400 o.add(buildPreferredDeal()); |
| 401 o.add(buildPreferredDeal()); | 401 o.add(buildPreferredDeal()); |
| 402 return o; | 402 return o; |
| 403 } | 403 } |
| 404 | 404 |
| 405 checkUnnamed1679(core.List<api.PreferredDeal> o) { | 405 checkUnnamed1713(core.List<api.PreferredDeal> o) { |
| 406 unittest.expect(o, unittest.hasLength(2)); | 406 unittest.expect(o, unittest.hasLength(2)); |
| 407 checkPreferredDeal(o[0]); | 407 checkPreferredDeal(o[0]); |
| 408 checkPreferredDeal(o[1]); | 408 checkPreferredDeal(o[1]); |
| 409 } | 409 } |
| 410 | 410 |
| 411 core.int buildCounterPreferredDeals = 0; | 411 core.int buildCounterPreferredDeals = 0; |
| 412 buildPreferredDeals() { | 412 buildPreferredDeals() { |
| 413 var o = new api.PreferredDeals(); | 413 var o = new api.PreferredDeals(); |
| 414 buildCounterPreferredDeals++; | 414 buildCounterPreferredDeals++; |
| 415 if (buildCounterPreferredDeals < 3) { | 415 if (buildCounterPreferredDeals < 3) { |
| 416 o.items = buildUnnamed1679(); | 416 o.items = buildUnnamed1713(); |
| 417 o.kind = "foo"; | 417 o.kind = "foo"; |
| 418 } | 418 } |
| 419 buildCounterPreferredDeals--; | 419 buildCounterPreferredDeals--; |
| 420 return o; | 420 return o; |
| 421 } | 421 } |
| 422 | 422 |
| 423 checkPreferredDeals(api.PreferredDeals o) { | 423 checkPreferredDeals(api.PreferredDeals o) { |
| 424 buildCounterPreferredDeals++; | 424 buildCounterPreferredDeals++; |
| 425 if (buildCounterPreferredDeals < 3) { | 425 if (buildCounterPreferredDeals < 3) { |
| 426 checkUnnamed1679(o.items); | 426 checkUnnamed1713(o.items); |
| 427 unittest.expect(o.kind, unittest.equals('foo')); | 427 unittest.expect(o.kind, unittest.equals('foo')); |
| 428 } | 428 } |
| 429 buildCounterPreferredDeals--; | 429 buildCounterPreferredDeals--; |
| 430 } | 430 } |
| 431 | 431 |
| 432 buildUnnamed1680() { | 432 buildUnnamed1714() { |
| 433 var o = new core.List<core.String>(); | 433 var o = new core.List<core.String>(); |
| 434 o.add("foo"); | 434 o.add("foo"); |
| 435 o.add("foo"); | 435 o.add("foo"); |
| 436 return o; | 436 return o; |
| 437 } | 437 } |
| 438 | 438 |
| 439 checkUnnamed1680(core.List<core.String> o) { | 439 checkUnnamed1714(core.List<core.String> o) { |
| 440 unittest.expect(o, unittest.hasLength(2)); | 440 unittest.expect(o, unittest.hasLength(2)); |
| 441 unittest.expect(o[0], unittest.equals('foo')); | 441 unittest.expect(o[0], unittest.equals('foo')); |
| 442 unittest.expect(o[1], unittest.equals('foo')); | 442 unittest.expect(o[1], unittest.equals('foo')); |
| 443 } | 443 } |
| 444 | 444 |
| 445 core.int buildCounterReportHeaders = 0; | 445 core.int buildCounterReportHeaders = 0; |
| 446 buildReportHeaders() { | 446 buildReportHeaders() { |
| 447 var o = new api.ReportHeaders(); | 447 var o = new api.ReportHeaders(); |
| 448 buildCounterReportHeaders++; | 448 buildCounterReportHeaders++; |
| 449 if (buildCounterReportHeaders < 3) { | 449 if (buildCounterReportHeaders < 3) { |
| 450 o.currency = "foo"; | 450 o.currency = "foo"; |
| 451 o.name = "foo"; | 451 o.name = "foo"; |
| 452 o.type = "foo"; | 452 o.type = "foo"; |
| 453 } | 453 } |
| 454 buildCounterReportHeaders--; | 454 buildCounterReportHeaders--; |
| 455 return o; | 455 return o; |
| 456 } | 456 } |
| 457 | 457 |
| 458 checkReportHeaders(api.ReportHeaders o) { | 458 checkReportHeaders(api.ReportHeaders o) { |
| 459 buildCounterReportHeaders++; | 459 buildCounterReportHeaders++; |
| 460 if (buildCounterReportHeaders < 3) { | 460 if (buildCounterReportHeaders < 3) { |
| 461 unittest.expect(o.currency, unittest.equals('foo')); | 461 unittest.expect(o.currency, unittest.equals('foo')); |
| 462 unittest.expect(o.name, unittest.equals('foo')); | 462 unittest.expect(o.name, unittest.equals('foo')); |
| 463 unittest.expect(o.type, unittest.equals('foo')); | 463 unittest.expect(o.type, unittest.equals('foo')); |
| 464 } | 464 } |
| 465 buildCounterReportHeaders--; | 465 buildCounterReportHeaders--; |
| 466 } | 466 } |
| 467 | 467 |
| 468 buildUnnamed1681() { | 468 buildUnnamed1715() { |
| 469 var o = new core.List<api.ReportHeaders>(); | 469 var o = new core.List<api.ReportHeaders>(); |
| 470 o.add(buildReportHeaders()); | 470 o.add(buildReportHeaders()); |
| 471 o.add(buildReportHeaders()); | 471 o.add(buildReportHeaders()); |
| 472 return o; | 472 return o; |
| 473 } | 473 } |
| 474 | 474 |
| 475 checkUnnamed1681(core.List<api.ReportHeaders> o) { | 475 checkUnnamed1715(core.List<api.ReportHeaders> o) { |
| 476 unittest.expect(o, unittest.hasLength(2)); | 476 unittest.expect(o, unittest.hasLength(2)); |
| 477 checkReportHeaders(o[0]); | 477 checkReportHeaders(o[0]); |
| 478 checkReportHeaders(o[1]); | 478 checkReportHeaders(o[1]); |
| 479 } | 479 } |
| 480 | 480 |
| 481 buildUnnamed1682() { | 481 buildUnnamed1716() { |
| 482 var o = new core.List<core.String>(); | 482 var o = new core.List<core.String>(); |
| 483 o.add("foo"); | 483 o.add("foo"); |
| 484 o.add("foo"); | 484 o.add("foo"); |
| 485 return o; | 485 return o; |
| 486 } | 486 } |
| 487 | 487 |
| 488 checkUnnamed1682(core.List<core.String> o) { | 488 checkUnnamed1716(core.List<core.String> o) { |
| 489 unittest.expect(o, unittest.hasLength(2)); | 489 unittest.expect(o, unittest.hasLength(2)); |
| 490 unittest.expect(o[0], unittest.equals('foo')); | 490 unittest.expect(o[0], unittest.equals('foo')); |
| 491 unittest.expect(o[1], unittest.equals('foo')); | 491 unittest.expect(o[1], unittest.equals('foo')); |
| 492 } | 492 } |
| 493 | 493 |
| 494 buildUnnamed1683() { | 494 buildUnnamed1717() { |
| 495 var o = new core.List<core.List<core.String>>(); | 495 var o = new core.List<core.List<core.String>>(); |
| 496 o.add(buildUnnamed1682()); | 496 o.add(buildUnnamed1716()); |
| 497 o.add(buildUnnamed1682()); | 497 o.add(buildUnnamed1716()); |
| 498 return o; | 498 return o; |
| 499 } | 499 } |
| 500 | 500 |
| 501 checkUnnamed1683(core.List<core.List<core.String>> o) { | 501 checkUnnamed1717(core.List<core.List<core.String>> o) { |
| 502 unittest.expect(o, unittest.hasLength(2)); | 502 unittest.expect(o, unittest.hasLength(2)); |
| 503 checkUnnamed1682(o[0]); | 503 checkUnnamed1716(o[0]); |
| 504 checkUnnamed1682(o[1]); | 504 checkUnnamed1716(o[1]); |
| 505 } | 505 } |
| 506 | 506 |
| 507 buildUnnamed1684() { | 507 buildUnnamed1718() { |
| 508 var o = new core.List<core.String>(); | 508 var o = new core.List<core.String>(); |
| 509 o.add("foo"); | 509 o.add("foo"); |
| 510 o.add("foo"); | 510 o.add("foo"); |
| 511 return o; | 511 return o; |
| 512 } | 512 } |
| 513 | 513 |
| 514 checkUnnamed1684(core.List<core.String> o) { | 514 checkUnnamed1718(core.List<core.String> o) { |
| 515 unittest.expect(o, unittest.hasLength(2)); | 515 unittest.expect(o, unittest.hasLength(2)); |
| 516 unittest.expect(o[0], unittest.equals('foo')); | 516 unittest.expect(o[0], unittest.equals('foo')); |
| 517 unittest.expect(o[1], unittest.equals('foo')); | 517 unittest.expect(o[1], unittest.equals('foo')); |
| 518 } | 518 } |
| 519 | 519 |
| 520 buildUnnamed1685() { | 520 buildUnnamed1719() { |
| 521 var o = new core.List<core.String>(); | 521 var o = new core.List<core.String>(); |
| 522 o.add("foo"); | 522 o.add("foo"); |
| 523 o.add("foo"); | 523 o.add("foo"); |
| 524 return o; | 524 return o; |
| 525 } | 525 } |
| 526 | 526 |
| 527 checkUnnamed1685(core.List<core.String> o) { | 527 checkUnnamed1719(core.List<core.String> o) { |
| 528 unittest.expect(o, unittest.hasLength(2)); | 528 unittest.expect(o, unittest.hasLength(2)); |
| 529 unittest.expect(o[0], unittest.equals('foo')); | 529 unittest.expect(o[0], unittest.equals('foo')); |
| 530 unittest.expect(o[1], unittest.equals('foo')); | 530 unittest.expect(o[1], unittest.equals('foo')); |
| 531 } | 531 } |
| 532 | 532 |
| 533 core.int buildCounterReport = 0; | 533 core.int buildCounterReport = 0; |
| 534 buildReport() { | 534 buildReport() { |
| 535 var o = new api.Report(); | 535 var o = new api.Report(); |
| 536 buildCounterReport++; | 536 buildCounterReport++; |
| 537 if (buildCounterReport < 3) { | 537 if (buildCounterReport < 3) { |
| 538 o.averages = buildUnnamed1680(); | 538 o.averages = buildUnnamed1714(); |
| 539 o.headers = buildUnnamed1681(); | 539 o.headers = buildUnnamed1715(); |
| 540 o.kind = "foo"; | 540 o.kind = "foo"; |
| 541 o.rows = buildUnnamed1683(); | 541 o.rows = buildUnnamed1717(); |
| 542 o.totalMatchedRows = "foo"; | 542 o.totalMatchedRows = "foo"; |
| 543 o.totals = buildUnnamed1684(); | 543 o.totals = buildUnnamed1718(); |
| 544 o.warnings = buildUnnamed1685(); | 544 o.warnings = buildUnnamed1719(); |
| 545 } | 545 } |
| 546 buildCounterReport--; | 546 buildCounterReport--; |
| 547 return o; | 547 return o; |
| 548 } | 548 } |
| 549 | 549 |
| 550 checkReport(api.Report o) { | 550 checkReport(api.Report o) { |
| 551 buildCounterReport++; | 551 buildCounterReport++; |
| 552 if (buildCounterReport < 3) { | 552 if (buildCounterReport < 3) { |
| 553 checkUnnamed1680(o.averages); | 553 checkUnnamed1714(o.averages); |
| 554 checkUnnamed1681(o.headers); | 554 checkUnnamed1715(o.headers); |
| 555 unittest.expect(o.kind, unittest.equals('foo')); | 555 unittest.expect(o.kind, unittest.equals('foo')); |
| 556 checkUnnamed1683(o.rows); | 556 checkUnnamed1717(o.rows); |
| 557 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); | 557 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); |
| 558 checkUnnamed1684(o.totals); | 558 checkUnnamed1718(o.totals); |
| 559 checkUnnamed1685(o.warnings); | 559 checkUnnamed1719(o.warnings); |
| 560 } | 560 } |
| 561 buildCounterReport--; | 561 buildCounterReport--; |
| 562 } | 562 } |
| 563 | 563 |
| 564 buildUnnamed1686() { | 564 buildUnnamed1720() { |
| 565 var o = new core.List<core.String>(); | 565 var o = new core.List<core.String>(); |
| 566 o.add("foo"); | 566 o.add("foo"); |
| 567 o.add("foo"); | 567 o.add("foo"); |
| 568 return o; | 568 return o; |
| 569 } | 569 } |
| 570 | 570 |
| 571 checkUnnamed1686(core.List<core.String> o) { | 571 checkUnnamed1720(core.List<core.String> o) { |
| 572 unittest.expect(o, unittest.hasLength(2)); | 572 unittest.expect(o, unittest.hasLength(2)); |
| 573 unittest.expect(o[0], unittest.equals('foo')); | 573 unittest.expect(o[0], unittest.equals('foo')); |
| 574 unittest.expect(o[1], unittest.equals('foo')); | 574 unittest.expect(o[1], unittest.equals('foo')); |
| 575 } | 575 } |
| 576 | 576 |
| 577 buildUnnamed1687() { | 577 buildUnnamed1721() { |
| 578 var o = new core.List<core.String>(); | 578 var o = new core.List<core.String>(); |
| 579 o.add("foo"); | 579 o.add("foo"); |
| 580 o.add("foo"); | 580 o.add("foo"); |
| 581 return o; | 581 return o; |
| 582 } | 582 } |
| 583 | 583 |
| 584 checkUnnamed1687(core.List<core.String> o) { | 584 checkUnnamed1721(core.List<core.String> o) { |
| 585 unittest.expect(o, unittest.hasLength(2)); | 585 unittest.expect(o, unittest.hasLength(2)); |
| 586 unittest.expect(o[0], unittest.equals('foo')); | 586 unittest.expect(o[0], unittest.equals('foo')); |
| 587 unittest.expect(o[1], unittest.equals('foo')); | 587 unittest.expect(o[1], unittest.equals('foo')); |
| 588 } | 588 } |
| 589 | 589 |
| 590 buildUnnamed1688() { | 590 buildUnnamed1722() { |
| 591 var o = new core.List<core.String>(); | 591 var o = new core.List<core.String>(); |
| 592 o.add("foo"); | 592 o.add("foo"); |
| 593 o.add("foo"); | 593 o.add("foo"); |
| 594 return o; | 594 return o; |
| 595 } | 595 } |
| 596 | 596 |
| 597 checkUnnamed1688(core.List<core.String> o) { | 597 checkUnnamed1722(core.List<core.String> o) { |
| 598 unittest.expect(o, unittest.hasLength(2)); | 598 unittest.expect(o, unittest.hasLength(2)); |
| 599 unittest.expect(o[0], unittest.equals('foo')); | 599 unittest.expect(o[0], unittest.equals('foo')); |
| 600 unittest.expect(o[1], unittest.equals('foo')); | 600 unittest.expect(o[1], unittest.equals('foo')); |
| 601 } | 601 } |
| 602 | 602 |
| 603 buildUnnamed1689() { | 603 buildUnnamed1723() { |
| 604 var o = new core.List<core.String>(); | 604 var o = new core.List<core.String>(); |
| 605 o.add("foo"); | 605 o.add("foo"); |
| 606 o.add("foo"); | 606 o.add("foo"); |
| 607 return o; | 607 return o; |
| 608 } | 608 } |
| 609 | 609 |
| 610 checkUnnamed1689(core.List<core.String> o) { | 610 checkUnnamed1723(core.List<core.String> o) { |
| 611 unittest.expect(o, unittest.hasLength(2)); | 611 unittest.expect(o, unittest.hasLength(2)); |
| 612 unittest.expect(o[0], unittest.equals('foo')); | 612 unittest.expect(o[0], unittest.equals('foo')); |
| 613 unittest.expect(o[1], unittest.equals('foo')); | 613 unittest.expect(o[1], unittest.equals('foo')); |
| 614 } | 614 } |
| 615 | 615 |
| 616 buildUnnamed1690() { | 616 buildUnnamed1724() { |
| 617 var o = new core.List<core.String>(); | 617 var o = new core.List<core.String>(); |
| 618 o.add("foo"); | 618 o.add("foo"); |
| 619 o.add("foo"); | 619 o.add("foo"); |
| 620 return o; | 620 return o; |
| 621 } | 621 } |
| 622 | 622 |
| 623 checkUnnamed1690(core.List<core.String> o) { | 623 checkUnnamed1724(core.List<core.String> o) { |
| 624 unittest.expect(o, unittest.hasLength(2)); | 624 unittest.expect(o, unittest.hasLength(2)); |
| 625 unittest.expect(o[0], unittest.equals('foo')); | 625 unittest.expect(o[0], unittest.equals('foo')); |
| 626 unittest.expect(o[1], unittest.equals('foo')); | 626 unittest.expect(o[1], unittest.equals('foo')); |
| 627 } | 627 } |
| 628 | 628 |
| 629 core.int buildCounterReportingMetadataEntry = 0; | 629 core.int buildCounterReportingMetadataEntry = 0; |
| 630 buildReportingMetadataEntry() { | 630 buildReportingMetadataEntry() { |
| 631 var o = new api.ReportingMetadataEntry(); | 631 var o = new api.ReportingMetadataEntry(); |
| 632 buildCounterReportingMetadataEntry++; | 632 buildCounterReportingMetadataEntry++; |
| 633 if (buildCounterReportingMetadataEntry < 3) { | 633 if (buildCounterReportingMetadataEntry < 3) { |
| 634 o.compatibleDimensions = buildUnnamed1686(); | 634 o.compatibleDimensions = buildUnnamed1720(); |
| 635 o.compatibleMetrics = buildUnnamed1687(); | 635 o.compatibleMetrics = buildUnnamed1721(); |
| 636 o.id = "foo"; | 636 o.id = "foo"; |
| 637 o.kind = "foo"; | 637 o.kind = "foo"; |
| 638 o.requiredDimensions = buildUnnamed1688(); | 638 o.requiredDimensions = buildUnnamed1722(); |
| 639 o.requiredMetrics = buildUnnamed1689(); | 639 o.requiredMetrics = buildUnnamed1723(); |
| 640 o.supportedProducts = buildUnnamed1690(); | 640 o.supportedProducts = buildUnnamed1724(); |
| 641 } | 641 } |
| 642 buildCounterReportingMetadataEntry--; | 642 buildCounterReportingMetadataEntry--; |
| 643 return o; | 643 return o; |
| 644 } | 644 } |
| 645 | 645 |
| 646 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { | 646 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { |
| 647 buildCounterReportingMetadataEntry++; | 647 buildCounterReportingMetadataEntry++; |
| 648 if (buildCounterReportingMetadataEntry < 3) { | 648 if (buildCounterReportingMetadataEntry < 3) { |
| 649 checkUnnamed1686(o.compatibleDimensions); | 649 checkUnnamed1720(o.compatibleDimensions); |
| 650 checkUnnamed1687(o.compatibleMetrics); | 650 checkUnnamed1721(o.compatibleMetrics); |
| 651 unittest.expect(o.id, unittest.equals('foo')); | 651 unittest.expect(o.id, unittest.equals('foo')); |
| 652 unittest.expect(o.kind, unittest.equals('foo')); | 652 unittest.expect(o.kind, unittest.equals('foo')); |
| 653 checkUnnamed1688(o.requiredDimensions); | 653 checkUnnamed1722(o.requiredDimensions); |
| 654 checkUnnamed1689(o.requiredMetrics); | 654 checkUnnamed1723(o.requiredMetrics); |
| 655 checkUnnamed1690(o.supportedProducts); | 655 checkUnnamed1724(o.supportedProducts); |
| 656 } | 656 } |
| 657 buildCounterReportingMetadataEntry--; | 657 buildCounterReportingMetadataEntry--; |
| 658 } | 658 } |
| 659 | 659 |
| 660 core.int buildCounterSavedReport = 0; | 660 core.int buildCounterSavedReport = 0; |
| 661 buildSavedReport() { | 661 buildSavedReport() { |
| 662 var o = new api.SavedReport(); | 662 var o = new api.SavedReport(); |
| 663 buildCounterSavedReport++; | 663 buildCounterSavedReport++; |
| 664 if (buildCounterSavedReport < 3) { | 664 if (buildCounterSavedReport < 3) { |
| 665 o.id = "foo"; | 665 o.id = "foo"; |
| 666 o.kind = "foo"; | 666 o.kind = "foo"; |
| 667 o.name = "foo"; | 667 o.name = "foo"; |
| 668 } | 668 } |
| 669 buildCounterSavedReport--; | 669 buildCounterSavedReport--; |
| 670 return o; | 670 return o; |
| 671 } | 671 } |
| 672 | 672 |
| 673 checkSavedReport(api.SavedReport o) { | 673 checkSavedReport(api.SavedReport o) { |
| 674 buildCounterSavedReport++; | 674 buildCounterSavedReport++; |
| 675 if (buildCounterSavedReport < 3) { | 675 if (buildCounterSavedReport < 3) { |
| 676 unittest.expect(o.id, unittest.equals('foo')); | 676 unittest.expect(o.id, unittest.equals('foo')); |
| 677 unittest.expect(o.kind, unittest.equals('foo')); | 677 unittest.expect(o.kind, unittest.equals('foo')); |
| 678 unittest.expect(o.name, unittest.equals('foo')); | 678 unittest.expect(o.name, unittest.equals('foo')); |
| 679 } | 679 } |
| 680 buildCounterSavedReport--; | 680 buildCounterSavedReport--; |
| 681 } | 681 } |
| 682 | 682 |
| 683 buildUnnamed1691() { | 683 buildUnnamed1725() { |
| 684 var o = new core.List<api.SavedReport>(); | 684 var o = new core.List<api.SavedReport>(); |
| 685 o.add(buildSavedReport()); | 685 o.add(buildSavedReport()); |
| 686 o.add(buildSavedReport()); | 686 o.add(buildSavedReport()); |
| 687 return o; | 687 return o; |
| 688 } | 688 } |
| 689 | 689 |
| 690 checkUnnamed1691(core.List<api.SavedReport> o) { | 690 checkUnnamed1725(core.List<api.SavedReport> o) { |
| 691 unittest.expect(o, unittest.hasLength(2)); | 691 unittest.expect(o, unittest.hasLength(2)); |
| 692 checkSavedReport(o[0]); | 692 checkSavedReport(o[0]); |
| 693 checkSavedReport(o[1]); | 693 checkSavedReport(o[1]); |
| 694 } | 694 } |
| 695 | 695 |
| 696 core.int buildCounterSavedReports = 0; | 696 core.int buildCounterSavedReports = 0; |
| 697 buildSavedReports() { | 697 buildSavedReports() { |
| 698 var o = new api.SavedReports(); | 698 var o = new api.SavedReports(); |
| 699 buildCounterSavedReports++; | 699 buildCounterSavedReports++; |
| 700 if (buildCounterSavedReports < 3) { | 700 if (buildCounterSavedReports < 3) { |
| 701 o.etag = "foo"; | 701 o.etag = "foo"; |
| 702 o.items = buildUnnamed1691(); | 702 o.items = buildUnnamed1725(); |
| 703 o.kind = "foo"; | 703 o.kind = "foo"; |
| 704 o.nextPageToken = "foo"; | 704 o.nextPageToken = "foo"; |
| 705 } | 705 } |
| 706 buildCounterSavedReports--; | 706 buildCounterSavedReports--; |
| 707 return o; | 707 return o; |
| 708 } | 708 } |
| 709 | 709 |
| 710 checkSavedReports(api.SavedReports o) { | 710 checkSavedReports(api.SavedReports o) { |
| 711 buildCounterSavedReports++; | 711 buildCounterSavedReports++; |
| 712 if (buildCounterSavedReports < 3) { | 712 if (buildCounterSavedReports < 3) { |
| 713 unittest.expect(o.etag, unittest.equals('foo')); | 713 unittest.expect(o.etag, unittest.equals('foo')); |
| 714 checkUnnamed1691(o.items); | 714 checkUnnamed1725(o.items); |
| 715 unittest.expect(o.kind, unittest.equals('foo')); | 715 unittest.expect(o.kind, unittest.equals('foo')); |
| 716 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 716 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 717 } | 717 } |
| 718 buildCounterSavedReports--; | 718 buildCounterSavedReports--; |
| 719 } | 719 } |
| 720 | 720 |
| 721 core.int buildCounterUrlChannel = 0; | 721 core.int buildCounterUrlChannel = 0; |
| 722 buildUrlChannel() { | 722 buildUrlChannel() { |
| 723 var o = new api.UrlChannel(); | 723 var o = new api.UrlChannel(); |
| 724 buildCounterUrlChannel++; | 724 buildCounterUrlChannel++; |
| 725 if (buildCounterUrlChannel < 3) { | 725 if (buildCounterUrlChannel < 3) { |
| 726 o.id = "foo"; | 726 o.id = "foo"; |
| 727 o.kind = "foo"; | 727 o.kind = "foo"; |
| 728 o.urlPattern = "foo"; | 728 o.urlPattern = "foo"; |
| 729 } | 729 } |
| 730 buildCounterUrlChannel--; | 730 buildCounterUrlChannel--; |
| 731 return o; | 731 return o; |
| 732 } | 732 } |
| 733 | 733 |
| 734 checkUrlChannel(api.UrlChannel o) { | 734 checkUrlChannel(api.UrlChannel o) { |
| 735 buildCounterUrlChannel++; | 735 buildCounterUrlChannel++; |
| 736 if (buildCounterUrlChannel < 3) { | 736 if (buildCounterUrlChannel < 3) { |
| 737 unittest.expect(o.id, unittest.equals('foo')); | 737 unittest.expect(o.id, unittest.equals('foo')); |
| 738 unittest.expect(o.kind, unittest.equals('foo')); | 738 unittest.expect(o.kind, unittest.equals('foo')); |
| 739 unittest.expect(o.urlPattern, unittest.equals('foo')); | 739 unittest.expect(o.urlPattern, unittest.equals('foo')); |
| 740 } | 740 } |
| 741 buildCounterUrlChannel--; | 741 buildCounterUrlChannel--; |
| 742 } | 742 } |
| 743 | 743 |
| 744 buildUnnamed1692() { | 744 buildUnnamed1726() { |
| 745 var o = new core.List<api.UrlChannel>(); | 745 var o = new core.List<api.UrlChannel>(); |
| 746 o.add(buildUrlChannel()); | 746 o.add(buildUrlChannel()); |
| 747 o.add(buildUrlChannel()); | 747 o.add(buildUrlChannel()); |
| 748 return o; | 748 return o; |
| 749 } | 749 } |
| 750 | 750 |
| 751 checkUnnamed1692(core.List<api.UrlChannel> o) { | 751 checkUnnamed1726(core.List<api.UrlChannel> o) { |
| 752 unittest.expect(o, unittest.hasLength(2)); | 752 unittest.expect(o, unittest.hasLength(2)); |
| 753 checkUrlChannel(o[0]); | 753 checkUrlChannel(o[0]); |
| 754 checkUrlChannel(o[1]); | 754 checkUrlChannel(o[1]); |
| 755 } | 755 } |
| 756 | 756 |
| 757 core.int buildCounterUrlChannels = 0; | 757 core.int buildCounterUrlChannels = 0; |
| 758 buildUrlChannels() { | 758 buildUrlChannels() { |
| 759 var o = new api.UrlChannels(); | 759 var o = new api.UrlChannels(); |
| 760 buildCounterUrlChannels++; | 760 buildCounterUrlChannels++; |
| 761 if (buildCounterUrlChannels < 3) { | 761 if (buildCounterUrlChannels < 3) { |
| 762 o.etag = "foo"; | 762 o.etag = "foo"; |
| 763 o.items = buildUnnamed1692(); | 763 o.items = buildUnnamed1726(); |
| 764 o.kind = "foo"; | 764 o.kind = "foo"; |
| 765 o.nextPageToken = "foo"; | 765 o.nextPageToken = "foo"; |
| 766 } | 766 } |
| 767 buildCounterUrlChannels--; | 767 buildCounterUrlChannels--; |
| 768 return o; | 768 return o; |
| 769 } | 769 } |
| 770 | 770 |
| 771 checkUrlChannels(api.UrlChannels o) { | 771 checkUrlChannels(api.UrlChannels o) { |
| 772 buildCounterUrlChannels++; | 772 buildCounterUrlChannels++; |
| 773 if (buildCounterUrlChannels < 3) { | 773 if (buildCounterUrlChannels < 3) { |
| 774 unittest.expect(o.etag, unittest.equals('foo')); | 774 unittest.expect(o.etag, unittest.equals('foo')); |
| 775 checkUnnamed1692(o.items); | 775 checkUnnamed1726(o.items); |
| 776 unittest.expect(o.kind, unittest.equals('foo')); | 776 unittest.expect(o.kind, unittest.equals('foo')); |
| 777 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 777 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 778 } | 778 } |
| 779 buildCounterUrlChannels--; | 779 buildCounterUrlChannels--; |
| 780 } | 780 } |
| 781 | 781 |
| 782 buildUnnamed1693() { | 782 buildUnnamed1727() { |
| 783 var o = new core.List<core.String>(); | 783 var o = new core.List<core.String>(); |
| 784 o.add("foo"); | 784 o.add("foo"); |
| 785 o.add("foo"); | 785 o.add("foo"); |
| 786 return o; | 786 return o; |
| 787 } | 787 } |
| 788 | 788 |
| 789 checkUnnamed1693(core.List<core.String> o) { | 789 checkUnnamed1727(core.List<core.String> o) { |
| 790 unittest.expect(o, unittest.hasLength(2)); | 790 unittest.expect(o, unittest.hasLength(2)); |
| 791 unittest.expect(o[0], unittest.equals('foo')); | 791 unittest.expect(o[0], unittest.equals('foo')); |
| 792 unittest.expect(o[1], unittest.equals('foo')); | 792 unittest.expect(o[1], unittest.equals('foo')); |
| 793 } | 793 } |
| 794 | 794 |
| 795 buildUnnamed1694() { | 795 buildUnnamed1728() { |
| 796 var o = new core.List<core.String>(); | 796 var o = new core.List<core.String>(); |
| 797 o.add("foo"); | 797 o.add("foo"); |
| 798 o.add("foo"); | 798 o.add("foo"); |
| 799 return o; | 799 return o; |
| 800 } | 800 } |
| 801 | 801 |
| 802 checkUnnamed1694(core.List<core.String> o) { | 802 checkUnnamed1728(core.List<core.String> o) { |
| 803 unittest.expect(o, unittest.hasLength(2)); | 803 unittest.expect(o, unittest.hasLength(2)); |
| 804 unittest.expect(o[0], unittest.equals('foo')); | 804 unittest.expect(o[0], unittest.equals('foo')); |
| 805 unittest.expect(o[1], unittest.equals('foo')); | 805 unittest.expect(o[1], unittest.equals('foo')); |
| 806 } | 806 } |
| 807 | 807 |
| 808 buildUnnamed1695() { | 808 buildUnnamed1729() { |
| 809 var o = new core.List<core.String>(); | 809 var o = new core.List<core.String>(); |
| 810 o.add("foo"); | 810 o.add("foo"); |
| 811 o.add("foo"); | 811 o.add("foo"); |
| 812 return o; | 812 return o; |
| 813 } | 813 } |
| 814 | 814 |
| 815 checkUnnamed1695(core.List<core.String> o) { | 815 checkUnnamed1729(core.List<core.String> o) { |
| 816 unittest.expect(o, unittest.hasLength(2)); | 816 unittest.expect(o, unittest.hasLength(2)); |
| 817 unittest.expect(o[0], unittest.equals('foo')); | 817 unittest.expect(o[0], unittest.equals('foo')); |
| 818 unittest.expect(o[1], unittest.equals('foo')); | 818 unittest.expect(o[1], unittest.equals('foo')); |
| 819 } | 819 } |
| 820 | 820 |
| 821 buildUnnamed1696() { | 821 buildUnnamed1730() { |
| 822 var o = new core.List<core.String>(); | 822 var o = new core.List<core.String>(); |
| 823 o.add("foo"); | 823 o.add("foo"); |
| 824 o.add("foo"); | 824 o.add("foo"); |
| 825 return o; | 825 return o; |
| 826 } | 826 } |
| 827 | 827 |
| 828 checkUnnamed1696(core.List<core.String> o) { | 828 checkUnnamed1730(core.List<core.String> o) { |
| 829 unittest.expect(o, unittest.hasLength(2)); | 829 unittest.expect(o, unittest.hasLength(2)); |
| 830 unittest.expect(o[0], unittest.equals('foo')); | 830 unittest.expect(o[0], unittest.equals('foo')); |
| 831 unittest.expect(o[1], unittest.equals('foo')); | 831 unittest.expect(o[1], unittest.equals('foo')); |
| 832 } | 832 } |
| 833 | 833 |
| 834 | 834 |
| 835 main() { | 835 main() { |
| 836 unittest.group("obj-schema-Account", () { | 836 unittest.group("obj-schema-Account", () { |
| 837 unittest.test("to-json--from-json", () { | 837 unittest.test("to-json--from-json", () { |
| 838 var o = buildAccount(); | 838 var o = buildAccount(); |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 unittest.group("resource-AccountsReportsResourceApi", () { | 1591 unittest.group("resource-AccountsReportsResourceApi", () { |
| 1592 unittest.test("method--generate", () { | 1592 unittest.test("method--generate", () { |
| 1593 // TODO: Implement tests for media upload; | 1593 // TODO: Implement tests for media upload; |
| 1594 // TODO: Implement tests for media download; | 1594 // TODO: Implement tests for media download; |
| 1595 | 1595 |
| 1596 var mock = new HttpServerMock(); | 1596 var mock = new HttpServerMock(); |
| 1597 api.AccountsReportsResourceApi res = new api.AdexchangesellerApi(mock).acc
ounts.reports; | 1597 api.AccountsReportsResourceApi res = new api.AdexchangesellerApi(mock).acc
ounts.reports; |
| 1598 var arg_accountId = "foo"; | 1598 var arg_accountId = "foo"; |
| 1599 var arg_startDate = "foo"; | 1599 var arg_startDate = "foo"; |
| 1600 var arg_endDate = "foo"; | 1600 var arg_endDate = "foo"; |
| 1601 var arg_dimension = buildUnnamed1693(); | 1601 var arg_dimension = buildUnnamed1727(); |
| 1602 var arg_filter = buildUnnamed1694(); | 1602 var arg_filter = buildUnnamed1728(); |
| 1603 var arg_locale = "foo"; | 1603 var arg_locale = "foo"; |
| 1604 var arg_maxResults = 42; | 1604 var arg_maxResults = 42; |
| 1605 var arg_metric = buildUnnamed1695(); | 1605 var arg_metric = buildUnnamed1729(); |
| 1606 var arg_sort = buildUnnamed1696(); | 1606 var arg_sort = buildUnnamed1730(); |
| 1607 var arg_startIndex = 42; | 1607 var arg_startIndex = 42; |
| 1608 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1608 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1609 var path = (req.url).path; | 1609 var path = (req.url).path; |
| 1610 var pathOffset = 0; | 1610 var pathOffset = 0; |
| 1611 var index; | 1611 var index; |
| 1612 var subPart; | 1612 var subPart; |
| 1613 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1613 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1614 pathOffset += 1; | 1614 pathOffset += 1; |
| 1615 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v2.0/")); | 1615 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v2.0/")); |
| 1616 pathOffset += 22; | 1616 pathOffset += 22; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1853 res.list(arg_accountId, arg_adClientId, maxResults: arg_maxResults, pageTo
ken: arg_pageToken).then(unittest.expectAsync(((api.UrlChannels response) { | 1853 res.list(arg_accountId, arg_adClientId, maxResults: arg_maxResults, pageTo
ken: arg_pageToken).then(unittest.expectAsync(((api.UrlChannels response) { |
| 1854 checkUrlChannels(response); | 1854 checkUrlChannels(response); |
| 1855 }))); | 1855 }))); |
| 1856 }); | 1856 }); |
| 1857 | 1857 |
| 1858 }); | 1858 }); |
| 1859 | 1859 |
| 1860 | 1860 |
| 1861 } | 1861 } |
| 1862 | 1862 |
| OLD | NEW |