| 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 21 matching lines...) Expand all Loading... |
| 32 checkAccount(api.Account o) { | 32 checkAccount(api.Account o) { |
| 33 buildCounterAccount++; | 33 buildCounterAccount++; |
| 34 if (buildCounterAccount < 3) { | 34 if (buildCounterAccount < 3) { |
| 35 unittest.expect(o.id, unittest.equals('foo')); | 35 unittest.expect(o.id, unittest.equals('foo')); |
| 36 unittest.expect(o.kind, unittest.equals('foo')); | 36 unittest.expect(o.kind, unittest.equals('foo')); |
| 37 unittest.expect(o.name, unittest.equals('foo')); | 37 unittest.expect(o.name, unittest.equals('foo')); |
| 38 } | 38 } |
| 39 buildCounterAccount--; | 39 buildCounterAccount--; |
| 40 } | 40 } |
| 41 | 41 |
| 42 buildUnnamed821() { | 42 buildUnnamed67() { |
| 43 var o = new core.List<api.Account>(); | 43 var o = new core.List<api.Account>(); |
| 44 o.add(buildAccount()); | 44 o.add(buildAccount()); |
| 45 o.add(buildAccount()); | 45 o.add(buildAccount()); |
| 46 return o; | 46 return o; |
| 47 } | 47 } |
| 48 | 48 |
| 49 checkUnnamed821(core.List<api.Account> o) { | 49 checkUnnamed67(core.List<api.Account> o) { |
| 50 unittest.expect(o, unittest.hasLength(2)); | 50 unittest.expect(o, unittest.hasLength(2)); |
| 51 checkAccount(o[0]); | 51 checkAccount(o[0]); |
| 52 checkAccount(o[1]); | 52 checkAccount(o[1]); |
| 53 } | 53 } |
| 54 | 54 |
| 55 core.int buildCounterAccounts = 0; | 55 core.int buildCounterAccounts = 0; |
| 56 buildAccounts() { | 56 buildAccounts() { |
| 57 var o = new api.Accounts(); | 57 var o = new api.Accounts(); |
| 58 buildCounterAccounts++; | 58 buildCounterAccounts++; |
| 59 if (buildCounterAccounts < 3) { | 59 if (buildCounterAccounts < 3) { |
| 60 o.etag = "foo"; | 60 o.etag = "foo"; |
| 61 o.items = buildUnnamed821(); | 61 o.items = buildUnnamed67(); |
| 62 o.kind = "foo"; | 62 o.kind = "foo"; |
| 63 o.nextPageToken = "foo"; | 63 o.nextPageToken = "foo"; |
| 64 } | 64 } |
| 65 buildCounterAccounts--; | 65 buildCounterAccounts--; |
| 66 return o; | 66 return o; |
| 67 } | 67 } |
| 68 | 68 |
| 69 checkAccounts(api.Accounts o) { | 69 checkAccounts(api.Accounts o) { |
| 70 buildCounterAccounts++; | 70 buildCounterAccounts++; |
| 71 if (buildCounterAccounts < 3) { | 71 if (buildCounterAccounts < 3) { |
| 72 unittest.expect(o.etag, unittest.equals('foo')); | 72 unittest.expect(o.etag, unittest.equals('foo')); |
| 73 checkUnnamed821(o.items); | 73 checkUnnamed67(o.items); |
| 74 unittest.expect(o.kind, unittest.equals('foo')); | 74 unittest.expect(o.kind, unittest.equals('foo')); |
| 75 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 75 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 76 } | 76 } |
| 77 buildCounterAccounts--; | 77 buildCounterAccounts--; |
| 78 } | 78 } |
| 79 | 79 |
| 80 core.int buildCounterAdClient = 0; | 80 core.int buildCounterAdClient = 0; |
| 81 buildAdClient() { | 81 buildAdClient() { |
| 82 var o = new api.AdClient(); | 82 var o = new api.AdClient(); |
| 83 buildCounterAdClient++; | 83 buildCounterAdClient++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 97 if (buildCounterAdClient < 3) { | 97 if (buildCounterAdClient < 3) { |
| 98 unittest.expect(o.arcOptIn, unittest.isTrue); | 98 unittest.expect(o.arcOptIn, unittest.isTrue); |
| 99 unittest.expect(o.id, unittest.equals('foo')); | 99 unittest.expect(o.id, unittest.equals('foo')); |
| 100 unittest.expect(o.kind, unittest.equals('foo')); | 100 unittest.expect(o.kind, unittest.equals('foo')); |
| 101 unittest.expect(o.productCode, unittest.equals('foo')); | 101 unittest.expect(o.productCode, unittest.equals('foo')); |
| 102 unittest.expect(o.supportsReporting, unittest.isTrue); | 102 unittest.expect(o.supportsReporting, unittest.isTrue); |
| 103 } | 103 } |
| 104 buildCounterAdClient--; | 104 buildCounterAdClient--; |
| 105 } | 105 } |
| 106 | 106 |
| 107 buildUnnamed822() { | 107 buildUnnamed68() { |
| 108 var o = new core.List<api.AdClient>(); | 108 var o = new core.List<api.AdClient>(); |
| 109 o.add(buildAdClient()); | 109 o.add(buildAdClient()); |
| 110 o.add(buildAdClient()); | 110 o.add(buildAdClient()); |
| 111 return o; | 111 return o; |
| 112 } | 112 } |
| 113 | 113 |
| 114 checkUnnamed822(core.List<api.AdClient> o) { | 114 checkUnnamed68(core.List<api.AdClient> o) { |
| 115 unittest.expect(o, unittest.hasLength(2)); | 115 unittest.expect(o, unittest.hasLength(2)); |
| 116 checkAdClient(o[0]); | 116 checkAdClient(o[0]); |
| 117 checkAdClient(o[1]); | 117 checkAdClient(o[1]); |
| 118 } | 118 } |
| 119 | 119 |
| 120 core.int buildCounterAdClients = 0; | 120 core.int buildCounterAdClients = 0; |
| 121 buildAdClients() { | 121 buildAdClients() { |
| 122 var o = new api.AdClients(); | 122 var o = new api.AdClients(); |
| 123 buildCounterAdClients++; | 123 buildCounterAdClients++; |
| 124 if (buildCounterAdClients < 3) { | 124 if (buildCounterAdClients < 3) { |
| 125 o.etag = "foo"; | 125 o.etag = "foo"; |
| 126 o.items = buildUnnamed822(); | 126 o.items = buildUnnamed68(); |
| 127 o.kind = "foo"; | 127 o.kind = "foo"; |
| 128 o.nextPageToken = "foo"; | 128 o.nextPageToken = "foo"; |
| 129 } | 129 } |
| 130 buildCounterAdClients--; | 130 buildCounterAdClients--; |
| 131 return o; | 131 return o; |
| 132 } | 132 } |
| 133 | 133 |
| 134 checkAdClients(api.AdClients o) { | 134 checkAdClients(api.AdClients o) { |
| 135 buildCounterAdClients++; | 135 buildCounterAdClients++; |
| 136 if (buildCounterAdClients < 3) { | 136 if (buildCounterAdClients < 3) { |
| 137 unittest.expect(o.etag, unittest.equals('foo')); | 137 unittest.expect(o.etag, unittest.equals('foo')); |
| 138 checkUnnamed822(o.items); | 138 checkUnnamed68(o.items); |
| 139 unittest.expect(o.kind, unittest.equals('foo')); | 139 unittest.expect(o.kind, unittest.equals('foo')); |
| 140 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 140 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 141 } | 141 } |
| 142 buildCounterAdClients--; | 142 buildCounterAdClients--; |
| 143 } | 143 } |
| 144 | 144 |
| 145 core.int buildCounterAlert = 0; | 145 core.int buildCounterAlert = 0; |
| 146 buildAlert() { | 146 buildAlert() { |
| 147 var o = new api.Alert(); | 147 var o = new api.Alert(); |
| 148 buildCounterAlert++; | 148 buildCounterAlert++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 162 if (buildCounterAlert < 3) { | 162 if (buildCounterAlert < 3) { |
| 163 unittest.expect(o.id, unittest.equals('foo')); | 163 unittest.expect(o.id, unittest.equals('foo')); |
| 164 unittest.expect(o.kind, unittest.equals('foo')); | 164 unittest.expect(o.kind, unittest.equals('foo')); |
| 165 unittest.expect(o.message, unittest.equals('foo')); | 165 unittest.expect(o.message, unittest.equals('foo')); |
| 166 unittest.expect(o.severity, unittest.equals('foo')); | 166 unittest.expect(o.severity, unittest.equals('foo')); |
| 167 unittest.expect(o.type, unittest.equals('foo')); | 167 unittest.expect(o.type, unittest.equals('foo')); |
| 168 } | 168 } |
| 169 buildCounterAlert--; | 169 buildCounterAlert--; |
| 170 } | 170 } |
| 171 | 171 |
| 172 buildUnnamed823() { | 172 buildUnnamed69() { |
| 173 var o = new core.List<api.Alert>(); | 173 var o = new core.List<api.Alert>(); |
| 174 o.add(buildAlert()); | 174 o.add(buildAlert()); |
| 175 o.add(buildAlert()); | 175 o.add(buildAlert()); |
| 176 return o; | 176 return o; |
| 177 } | 177 } |
| 178 | 178 |
| 179 checkUnnamed823(core.List<api.Alert> o) { | 179 checkUnnamed69(core.List<api.Alert> o) { |
| 180 unittest.expect(o, unittest.hasLength(2)); | 180 unittest.expect(o, unittest.hasLength(2)); |
| 181 checkAlert(o[0]); | 181 checkAlert(o[0]); |
| 182 checkAlert(o[1]); | 182 checkAlert(o[1]); |
| 183 } | 183 } |
| 184 | 184 |
| 185 core.int buildCounterAlerts = 0; | 185 core.int buildCounterAlerts = 0; |
| 186 buildAlerts() { | 186 buildAlerts() { |
| 187 var o = new api.Alerts(); | 187 var o = new api.Alerts(); |
| 188 buildCounterAlerts++; | 188 buildCounterAlerts++; |
| 189 if (buildCounterAlerts < 3) { | 189 if (buildCounterAlerts < 3) { |
| 190 o.items = buildUnnamed823(); | 190 o.items = buildUnnamed69(); |
| 191 o.kind = "foo"; | 191 o.kind = "foo"; |
| 192 } | 192 } |
| 193 buildCounterAlerts--; | 193 buildCounterAlerts--; |
| 194 return o; | 194 return o; |
| 195 } | 195 } |
| 196 | 196 |
| 197 checkAlerts(api.Alerts o) { | 197 checkAlerts(api.Alerts o) { |
| 198 buildCounterAlerts++; | 198 buildCounterAlerts++; |
| 199 if (buildCounterAlerts < 3) { | 199 if (buildCounterAlerts < 3) { |
| 200 checkUnnamed823(o.items); | 200 checkUnnamed69(o.items); |
| 201 unittest.expect(o.kind, unittest.equals('foo')); | 201 unittest.expect(o.kind, unittest.equals('foo')); |
| 202 } | 202 } |
| 203 buildCounterAlerts--; | 203 buildCounterAlerts--; |
| 204 } | 204 } |
| 205 | 205 |
| 206 core.int buildCounterCustomChannelTargetingInfo = 0; | 206 core.int buildCounterCustomChannelTargetingInfo = 0; |
| 207 buildCustomChannelTargetingInfo() { | 207 buildCustomChannelTargetingInfo() { |
| 208 var o = new api.CustomChannelTargetingInfo(); | 208 var o = new api.CustomChannelTargetingInfo(); |
| 209 buildCounterCustomChannelTargetingInfo++; | 209 buildCounterCustomChannelTargetingInfo++; |
| 210 if (buildCounterCustomChannelTargetingInfo < 3) { | 210 if (buildCounterCustomChannelTargetingInfo < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 if (buildCounterCustomChannel < 3) { | 248 if (buildCounterCustomChannel < 3) { |
| 249 unittest.expect(o.code, unittest.equals('foo')); | 249 unittest.expect(o.code, unittest.equals('foo')); |
| 250 unittest.expect(o.id, unittest.equals('foo')); | 250 unittest.expect(o.id, unittest.equals('foo')); |
| 251 unittest.expect(o.kind, unittest.equals('foo')); | 251 unittest.expect(o.kind, unittest.equals('foo')); |
| 252 unittest.expect(o.name, unittest.equals('foo')); | 252 unittest.expect(o.name, unittest.equals('foo')); |
| 253 checkCustomChannelTargetingInfo(o.targetingInfo); | 253 checkCustomChannelTargetingInfo(o.targetingInfo); |
| 254 } | 254 } |
| 255 buildCounterCustomChannel--; | 255 buildCounterCustomChannel--; |
| 256 } | 256 } |
| 257 | 257 |
| 258 buildUnnamed824() { | 258 buildUnnamed70() { |
| 259 var o = new core.List<api.CustomChannel>(); | 259 var o = new core.List<api.CustomChannel>(); |
| 260 o.add(buildCustomChannel()); | 260 o.add(buildCustomChannel()); |
| 261 o.add(buildCustomChannel()); | 261 o.add(buildCustomChannel()); |
| 262 return o; | 262 return o; |
| 263 } | 263 } |
| 264 | 264 |
| 265 checkUnnamed824(core.List<api.CustomChannel> o) { | 265 checkUnnamed70(core.List<api.CustomChannel> o) { |
| 266 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
| 267 checkCustomChannel(o[0]); | 267 checkCustomChannel(o[0]); |
| 268 checkCustomChannel(o[1]); | 268 checkCustomChannel(o[1]); |
| 269 } | 269 } |
| 270 | 270 |
| 271 core.int buildCounterCustomChannels = 0; | 271 core.int buildCounterCustomChannels = 0; |
| 272 buildCustomChannels() { | 272 buildCustomChannels() { |
| 273 var o = new api.CustomChannels(); | 273 var o = new api.CustomChannels(); |
| 274 buildCounterCustomChannels++; | 274 buildCounterCustomChannels++; |
| 275 if (buildCounterCustomChannels < 3) { | 275 if (buildCounterCustomChannels < 3) { |
| 276 o.etag = "foo"; | 276 o.etag = "foo"; |
| 277 o.items = buildUnnamed824(); | 277 o.items = buildUnnamed70(); |
| 278 o.kind = "foo"; | 278 o.kind = "foo"; |
| 279 o.nextPageToken = "foo"; | 279 o.nextPageToken = "foo"; |
| 280 } | 280 } |
| 281 buildCounterCustomChannels--; | 281 buildCounterCustomChannels--; |
| 282 return o; | 282 return o; |
| 283 } | 283 } |
| 284 | 284 |
| 285 checkCustomChannels(api.CustomChannels o) { | 285 checkCustomChannels(api.CustomChannels o) { |
| 286 buildCounterCustomChannels++; | 286 buildCounterCustomChannels++; |
| 287 if (buildCounterCustomChannels < 3) { | 287 if (buildCounterCustomChannels < 3) { |
| 288 unittest.expect(o.etag, unittest.equals('foo')); | 288 unittest.expect(o.etag, unittest.equals('foo')); |
| 289 checkUnnamed824(o.items); | 289 checkUnnamed70(o.items); |
| 290 unittest.expect(o.kind, unittest.equals('foo')); | 290 unittest.expect(o.kind, unittest.equals('foo')); |
| 291 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 291 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 292 } | 292 } |
| 293 buildCounterCustomChannels--; | 293 buildCounterCustomChannels--; |
| 294 } | 294 } |
| 295 | 295 |
| 296 buildUnnamed825() { | 296 buildUnnamed71() { |
| 297 var o = new core.List<api.ReportingMetadataEntry>(); | 297 var o = new core.List<api.ReportingMetadataEntry>(); |
| 298 o.add(buildReportingMetadataEntry()); | 298 o.add(buildReportingMetadataEntry()); |
| 299 o.add(buildReportingMetadataEntry()); | 299 o.add(buildReportingMetadataEntry()); |
| 300 return o; | 300 return o; |
| 301 } | 301 } |
| 302 | 302 |
| 303 checkUnnamed825(core.List<api.ReportingMetadataEntry> o) { | 303 checkUnnamed71(core.List<api.ReportingMetadataEntry> o) { |
| 304 unittest.expect(o, unittest.hasLength(2)); | 304 unittest.expect(o, unittest.hasLength(2)); |
| 305 checkReportingMetadataEntry(o[0]); | 305 checkReportingMetadataEntry(o[0]); |
| 306 checkReportingMetadataEntry(o[1]); | 306 checkReportingMetadataEntry(o[1]); |
| 307 } | 307 } |
| 308 | 308 |
| 309 core.int buildCounterMetadata = 0; | 309 core.int buildCounterMetadata = 0; |
| 310 buildMetadata() { | 310 buildMetadata() { |
| 311 var o = new api.Metadata(); | 311 var o = new api.Metadata(); |
| 312 buildCounterMetadata++; | 312 buildCounterMetadata++; |
| 313 if (buildCounterMetadata < 3) { | 313 if (buildCounterMetadata < 3) { |
| 314 o.items = buildUnnamed825(); | 314 o.items = buildUnnamed71(); |
| 315 o.kind = "foo"; | 315 o.kind = "foo"; |
| 316 } | 316 } |
| 317 buildCounterMetadata--; | 317 buildCounterMetadata--; |
| 318 return o; | 318 return o; |
| 319 } | 319 } |
| 320 | 320 |
| 321 checkMetadata(api.Metadata o) { | 321 checkMetadata(api.Metadata o) { |
| 322 buildCounterMetadata++; | 322 buildCounterMetadata++; |
| 323 if (buildCounterMetadata < 3) { | 323 if (buildCounterMetadata < 3) { |
| 324 checkUnnamed825(o.items); | 324 checkUnnamed71(o.items); |
| 325 unittest.expect(o.kind, unittest.equals('foo')); | 325 unittest.expect(o.kind, unittest.equals('foo')); |
| 326 } | 326 } |
| 327 buildCounterMetadata--; | 327 buildCounterMetadata--; |
| 328 } | 328 } |
| 329 | 329 |
| 330 core.int buildCounterPreferredDeal = 0; | 330 core.int buildCounterPreferredDeal = 0; |
| 331 buildPreferredDeal() { | 331 buildPreferredDeal() { |
| 332 var o = new api.PreferredDeal(); | 332 var o = new api.PreferredDeal(); |
| 333 buildCounterPreferredDeal++; | 333 buildCounterPreferredDeal++; |
| 334 if (buildCounterPreferredDeal < 3) { | 334 if (buildCounterPreferredDeal < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 353 unittest.expect(o.currencyCode, unittest.equals('foo')); | 353 unittest.expect(o.currencyCode, unittest.equals('foo')); |
| 354 unittest.expect(o.endTime, unittest.equals('foo')); | 354 unittest.expect(o.endTime, unittest.equals('foo')); |
| 355 unittest.expect(o.fixedCpm, unittest.equals('foo')); | 355 unittest.expect(o.fixedCpm, unittest.equals('foo')); |
| 356 unittest.expect(o.id, unittest.equals('foo')); | 356 unittest.expect(o.id, unittest.equals('foo')); |
| 357 unittest.expect(o.kind, unittest.equals('foo')); | 357 unittest.expect(o.kind, unittest.equals('foo')); |
| 358 unittest.expect(o.startTime, unittest.equals('foo')); | 358 unittest.expect(o.startTime, unittest.equals('foo')); |
| 359 } | 359 } |
| 360 buildCounterPreferredDeal--; | 360 buildCounterPreferredDeal--; |
| 361 } | 361 } |
| 362 | 362 |
| 363 buildUnnamed826() { | 363 buildUnnamed72() { |
| 364 var o = new core.List<api.PreferredDeal>(); | 364 var o = new core.List<api.PreferredDeal>(); |
| 365 o.add(buildPreferredDeal()); | 365 o.add(buildPreferredDeal()); |
| 366 o.add(buildPreferredDeal()); | 366 o.add(buildPreferredDeal()); |
| 367 return o; | 367 return o; |
| 368 } | 368 } |
| 369 | 369 |
| 370 checkUnnamed826(core.List<api.PreferredDeal> o) { | 370 checkUnnamed72(core.List<api.PreferredDeal> o) { |
| 371 unittest.expect(o, unittest.hasLength(2)); | 371 unittest.expect(o, unittest.hasLength(2)); |
| 372 checkPreferredDeal(o[0]); | 372 checkPreferredDeal(o[0]); |
| 373 checkPreferredDeal(o[1]); | 373 checkPreferredDeal(o[1]); |
| 374 } | 374 } |
| 375 | 375 |
| 376 core.int buildCounterPreferredDeals = 0; | 376 core.int buildCounterPreferredDeals = 0; |
| 377 buildPreferredDeals() { | 377 buildPreferredDeals() { |
| 378 var o = new api.PreferredDeals(); | 378 var o = new api.PreferredDeals(); |
| 379 buildCounterPreferredDeals++; | 379 buildCounterPreferredDeals++; |
| 380 if (buildCounterPreferredDeals < 3) { | 380 if (buildCounterPreferredDeals < 3) { |
| 381 o.items = buildUnnamed826(); | 381 o.items = buildUnnamed72(); |
| 382 o.kind = "foo"; | 382 o.kind = "foo"; |
| 383 } | 383 } |
| 384 buildCounterPreferredDeals--; | 384 buildCounterPreferredDeals--; |
| 385 return o; | 385 return o; |
| 386 } | 386 } |
| 387 | 387 |
| 388 checkPreferredDeals(api.PreferredDeals o) { | 388 checkPreferredDeals(api.PreferredDeals o) { |
| 389 buildCounterPreferredDeals++; | 389 buildCounterPreferredDeals++; |
| 390 if (buildCounterPreferredDeals < 3) { | 390 if (buildCounterPreferredDeals < 3) { |
| 391 checkUnnamed826(o.items); | 391 checkUnnamed72(o.items); |
| 392 unittest.expect(o.kind, unittest.equals('foo')); | 392 unittest.expect(o.kind, unittest.equals('foo')); |
| 393 } | 393 } |
| 394 buildCounterPreferredDeals--; | 394 buildCounterPreferredDeals--; |
| 395 } | 395 } |
| 396 | 396 |
| 397 buildUnnamed827() { | 397 buildUnnamed73() { |
| 398 var o = new core.List<core.String>(); | 398 var o = new core.List<core.String>(); |
| 399 o.add("foo"); | 399 o.add("foo"); |
| 400 o.add("foo"); | 400 o.add("foo"); |
| 401 return o; | 401 return o; |
| 402 } | 402 } |
| 403 | 403 |
| 404 checkUnnamed827(core.List<core.String> o) { | 404 checkUnnamed73(core.List<core.String> o) { |
| 405 unittest.expect(o, unittest.hasLength(2)); | 405 unittest.expect(o, unittest.hasLength(2)); |
| 406 unittest.expect(o[0], unittest.equals('foo')); | 406 unittest.expect(o[0], unittest.equals('foo')); |
| 407 unittest.expect(o[1], unittest.equals('foo')); | 407 unittest.expect(o[1], unittest.equals('foo')); |
| 408 } | 408 } |
| 409 | 409 |
| 410 core.int buildCounterReportHeaders = 0; | 410 core.int buildCounterReportHeaders = 0; |
| 411 buildReportHeaders() { | 411 buildReportHeaders() { |
| 412 var o = new api.ReportHeaders(); | 412 var o = new api.ReportHeaders(); |
| 413 buildCounterReportHeaders++; | 413 buildCounterReportHeaders++; |
| 414 if (buildCounterReportHeaders < 3) { | 414 if (buildCounterReportHeaders < 3) { |
| 415 o.currency = "foo"; | 415 o.currency = "foo"; |
| 416 o.name = "foo"; | 416 o.name = "foo"; |
| 417 o.type = "foo"; | 417 o.type = "foo"; |
| 418 } | 418 } |
| 419 buildCounterReportHeaders--; | 419 buildCounterReportHeaders--; |
| 420 return o; | 420 return o; |
| 421 } | 421 } |
| 422 | 422 |
| 423 checkReportHeaders(api.ReportHeaders o) { | 423 checkReportHeaders(api.ReportHeaders o) { |
| 424 buildCounterReportHeaders++; | 424 buildCounterReportHeaders++; |
| 425 if (buildCounterReportHeaders < 3) { | 425 if (buildCounterReportHeaders < 3) { |
| 426 unittest.expect(o.currency, unittest.equals('foo')); | 426 unittest.expect(o.currency, unittest.equals('foo')); |
| 427 unittest.expect(o.name, unittest.equals('foo')); | 427 unittest.expect(o.name, unittest.equals('foo')); |
| 428 unittest.expect(o.type, unittest.equals('foo')); | 428 unittest.expect(o.type, unittest.equals('foo')); |
| 429 } | 429 } |
| 430 buildCounterReportHeaders--; | 430 buildCounterReportHeaders--; |
| 431 } | 431 } |
| 432 | 432 |
| 433 buildUnnamed828() { | 433 buildUnnamed74() { |
| 434 var o = new core.List<api.ReportHeaders>(); | 434 var o = new core.List<api.ReportHeaders>(); |
| 435 o.add(buildReportHeaders()); | 435 o.add(buildReportHeaders()); |
| 436 o.add(buildReportHeaders()); | 436 o.add(buildReportHeaders()); |
| 437 return o; | 437 return o; |
| 438 } | 438 } |
| 439 | 439 |
| 440 checkUnnamed828(core.List<api.ReportHeaders> o) { | 440 checkUnnamed74(core.List<api.ReportHeaders> o) { |
| 441 unittest.expect(o, unittest.hasLength(2)); | 441 unittest.expect(o, unittest.hasLength(2)); |
| 442 checkReportHeaders(o[0]); | 442 checkReportHeaders(o[0]); |
| 443 checkReportHeaders(o[1]); | 443 checkReportHeaders(o[1]); |
| 444 } | 444 } |
| 445 | 445 |
| 446 buildUnnamed829() { | 446 buildUnnamed75() { |
| 447 var o = new core.List<core.String>(); | 447 var o = new core.List<core.String>(); |
| 448 o.add("foo"); | 448 o.add("foo"); |
| 449 o.add("foo"); | 449 o.add("foo"); |
| 450 return o; | 450 return o; |
| 451 } | 451 } |
| 452 | 452 |
| 453 checkUnnamed829(core.List<core.String> o) { | 453 checkUnnamed75(core.List<core.String> o) { |
| 454 unittest.expect(o, unittest.hasLength(2)); | 454 unittest.expect(o, unittest.hasLength(2)); |
| 455 unittest.expect(o[0], unittest.equals('foo')); | 455 unittest.expect(o[0], unittest.equals('foo')); |
| 456 unittest.expect(o[1], unittest.equals('foo')); | 456 unittest.expect(o[1], unittest.equals('foo')); |
| 457 } | 457 } |
| 458 | 458 |
| 459 buildUnnamed830() { | 459 buildUnnamed76() { |
| 460 var o = new core.List<core.List<core.String>>(); | 460 var o = new core.List<core.List<core.String>>(); |
| 461 o.add(buildUnnamed829()); | 461 o.add(buildUnnamed75()); |
| 462 o.add(buildUnnamed829()); | 462 o.add(buildUnnamed75()); |
| 463 return o; | 463 return o; |
| 464 } | 464 } |
| 465 | 465 |
| 466 checkUnnamed830(core.List<core.List<core.String>> o) { | 466 checkUnnamed76(core.List<core.List<core.String>> o) { |
| 467 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
| 468 checkUnnamed829(o[0]); | 468 checkUnnamed75(o[0]); |
| 469 checkUnnamed829(o[1]); | 469 checkUnnamed75(o[1]); |
| 470 } | 470 } |
| 471 | 471 |
| 472 buildUnnamed831() { | 472 buildUnnamed77() { |
| 473 var o = new core.List<core.String>(); | 473 var o = new core.List<core.String>(); |
| 474 o.add("foo"); | 474 o.add("foo"); |
| 475 o.add("foo"); | 475 o.add("foo"); |
| 476 return o; | 476 return o; |
| 477 } | 477 } |
| 478 | 478 |
| 479 checkUnnamed831(core.List<core.String> o) { | 479 checkUnnamed77(core.List<core.String> o) { |
| 480 unittest.expect(o, unittest.hasLength(2)); | 480 unittest.expect(o, unittest.hasLength(2)); |
| 481 unittest.expect(o[0], unittest.equals('foo')); | 481 unittest.expect(o[0], unittest.equals('foo')); |
| 482 unittest.expect(o[1], unittest.equals('foo')); | 482 unittest.expect(o[1], unittest.equals('foo')); |
| 483 } | 483 } |
| 484 | 484 |
| 485 buildUnnamed832() { | 485 buildUnnamed78() { |
| 486 var o = new core.List<core.String>(); | 486 var o = new core.List<core.String>(); |
| 487 o.add("foo"); | 487 o.add("foo"); |
| 488 o.add("foo"); | 488 o.add("foo"); |
| 489 return o; | 489 return o; |
| 490 } | 490 } |
| 491 | 491 |
| 492 checkUnnamed832(core.List<core.String> o) { | 492 checkUnnamed78(core.List<core.String> o) { |
| 493 unittest.expect(o, unittest.hasLength(2)); | 493 unittest.expect(o, unittest.hasLength(2)); |
| 494 unittest.expect(o[0], unittest.equals('foo')); | 494 unittest.expect(o[0], unittest.equals('foo')); |
| 495 unittest.expect(o[1], unittest.equals('foo')); | 495 unittest.expect(o[1], unittest.equals('foo')); |
| 496 } | 496 } |
| 497 | 497 |
| 498 core.int buildCounterReport = 0; | 498 core.int buildCounterReport = 0; |
| 499 buildReport() { | 499 buildReport() { |
| 500 var o = new api.Report(); | 500 var o = new api.Report(); |
| 501 buildCounterReport++; | 501 buildCounterReport++; |
| 502 if (buildCounterReport < 3) { | 502 if (buildCounterReport < 3) { |
| 503 o.averages = buildUnnamed827(); | 503 o.averages = buildUnnamed73(); |
| 504 o.headers = buildUnnamed828(); | 504 o.headers = buildUnnamed74(); |
| 505 o.kind = "foo"; | 505 o.kind = "foo"; |
| 506 o.rows = buildUnnamed830(); | 506 o.rows = buildUnnamed76(); |
| 507 o.totalMatchedRows = "foo"; | 507 o.totalMatchedRows = "foo"; |
| 508 o.totals = buildUnnamed831(); | 508 o.totals = buildUnnamed77(); |
| 509 o.warnings = buildUnnamed832(); | 509 o.warnings = buildUnnamed78(); |
| 510 } | 510 } |
| 511 buildCounterReport--; | 511 buildCounterReport--; |
| 512 return o; | 512 return o; |
| 513 } | 513 } |
| 514 | 514 |
| 515 checkReport(api.Report o) { | 515 checkReport(api.Report o) { |
| 516 buildCounterReport++; | 516 buildCounterReport++; |
| 517 if (buildCounterReport < 3) { | 517 if (buildCounterReport < 3) { |
| 518 checkUnnamed827(o.averages); | 518 checkUnnamed73(o.averages); |
| 519 checkUnnamed828(o.headers); | 519 checkUnnamed74(o.headers); |
| 520 unittest.expect(o.kind, unittest.equals('foo')); | 520 unittest.expect(o.kind, unittest.equals('foo')); |
| 521 checkUnnamed830(o.rows); | 521 checkUnnamed76(o.rows); |
| 522 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); | 522 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); |
| 523 checkUnnamed831(o.totals); | 523 checkUnnamed77(o.totals); |
| 524 checkUnnamed832(o.warnings); | 524 checkUnnamed78(o.warnings); |
| 525 } | 525 } |
| 526 buildCounterReport--; | 526 buildCounterReport--; |
| 527 } | 527 } |
| 528 | 528 |
| 529 buildUnnamed833() { | 529 buildUnnamed79() { |
| 530 var o = new core.List<core.String>(); | 530 var o = new core.List<core.String>(); |
| 531 o.add("foo"); | 531 o.add("foo"); |
| 532 o.add("foo"); | 532 o.add("foo"); |
| 533 return o; | 533 return o; |
| 534 } | 534 } |
| 535 | 535 |
| 536 checkUnnamed833(core.List<core.String> o) { | 536 checkUnnamed79(core.List<core.String> o) { |
| 537 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
| 538 unittest.expect(o[0], unittest.equals('foo')); | 538 unittest.expect(o[0], unittest.equals('foo')); |
| 539 unittest.expect(o[1], unittest.equals('foo')); | 539 unittest.expect(o[1], unittest.equals('foo')); |
| 540 } | 540 } |
| 541 | 541 |
| 542 buildUnnamed834() { | 542 buildUnnamed80() { |
| 543 var o = new core.List<core.String>(); | 543 var o = new core.List<core.String>(); |
| 544 o.add("foo"); | 544 o.add("foo"); |
| 545 o.add("foo"); | 545 o.add("foo"); |
| 546 return o; | 546 return o; |
| 547 } | 547 } |
| 548 | 548 |
| 549 checkUnnamed834(core.List<core.String> o) { | 549 checkUnnamed80(core.List<core.String> o) { |
| 550 unittest.expect(o, unittest.hasLength(2)); | 550 unittest.expect(o, unittest.hasLength(2)); |
| 551 unittest.expect(o[0], unittest.equals('foo')); | 551 unittest.expect(o[0], unittest.equals('foo')); |
| 552 unittest.expect(o[1], unittest.equals('foo')); | 552 unittest.expect(o[1], unittest.equals('foo')); |
| 553 } | 553 } |
| 554 | 554 |
| 555 buildUnnamed835() { | 555 buildUnnamed81() { |
| 556 var o = new core.List<core.String>(); | 556 var o = new core.List<core.String>(); |
| 557 o.add("foo"); | 557 o.add("foo"); |
| 558 o.add("foo"); | 558 o.add("foo"); |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkUnnamed835(core.List<core.String> o) { | 562 checkUnnamed81(core.List<core.String> o) { |
| 563 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
| 564 unittest.expect(o[0], unittest.equals('foo')); | 564 unittest.expect(o[0], unittest.equals('foo')); |
| 565 unittest.expect(o[1], unittest.equals('foo')); | 565 unittest.expect(o[1], unittest.equals('foo')); |
| 566 } | 566 } |
| 567 | 567 |
| 568 buildUnnamed836() { | 568 buildUnnamed82() { |
| 569 var o = new core.List<core.String>(); | 569 var o = new core.List<core.String>(); |
| 570 o.add("foo"); | 570 o.add("foo"); |
| 571 o.add("foo"); | 571 o.add("foo"); |
| 572 return o; | 572 return o; |
| 573 } | 573 } |
| 574 | 574 |
| 575 checkUnnamed836(core.List<core.String> o) { | 575 checkUnnamed82(core.List<core.String> o) { |
| 576 unittest.expect(o, unittest.hasLength(2)); | 576 unittest.expect(o, unittest.hasLength(2)); |
| 577 unittest.expect(o[0], unittest.equals('foo')); | 577 unittest.expect(o[0], unittest.equals('foo')); |
| 578 unittest.expect(o[1], unittest.equals('foo')); | 578 unittest.expect(o[1], unittest.equals('foo')); |
| 579 } | 579 } |
| 580 | 580 |
| 581 buildUnnamed837() { | 581 buildUnnamed83() { |
| 582 var o = new core.List<core.String>(); | 582 var o = new core.List<core.String>(); |
| 583 o.add("foo"); | 583 o.add("foo"); |
| 584 o.add("foo"); | 584 o.add("foo"); |
| 585 return o; | 585 return o; |
| 586 } | 586 } |
| 587 | 587 |
| 588 checkUnnamed837(core.List<core.String> o) { | 588 checkUnnamed83(core.List<core.String> o) { |
| 589 unittest.expect(o, unittest.hasLength(2)); | 589 unittest.expect(o, unittest.hasLength(2)); |
| 590 unittest.expect(o[0], unittest.equals('foo')); | 590 unittest.expect(o[0], unittest.equals('foo')); |
| 591 unittest.expect(o[1], unittest.equals('foo')); | 591 unittest.expect(o[1], unittest.equals('foo')); |
| 592 } | 592 } |
| 593 | 593 |
| 594 core.int buildCounterReportingMetadataEntry = 0; | 594 core.int buildCounterReportingMetadataEntry = 0; |
| 595 buildReportingMetadataEntry() { | 595 buildReportingMetadataEntry() { |
| 596 var o = new api.ReportingMetadataEntry(); | 596 var o = new api.ReportingMetadataEntry(); |
| 597 buildCounterReportingMetadataEntry++; | 597 buildCounterReportingMetadataEntry++; |
| 598 if (buildCounterReportingMetadataEntry < 3) { | 598 if (buildCounterReportingMetadataEntry < 3) { |
| 599 o.compatibleDimensions = buildUnnamed833(); | 599 o.compatibleDimensions = buildUnnamed79(); |
| 600 o.compatibleMetrics = buildUnnamed834(); | 600 o.compatibleMetrics = buildUnnamed80(); |
| 601 o.id = "foo"; | 601 o.id = "foo"; |
| 602 o.kind = "foo"; | 602 o.kind = "foo"; |
| 603 o.requiredDimensions = buildUnnamed835(); | 603 o.requiredDimensions = buildUnnamed81(); |
| 604 o.requiredMetrics = buildUnnamed836(); | 604 o.requiredMetrics = buildUnnamed82(); |
| 605 o.supportedProducts = buildUnnamed837(); | 605 o.supportedProducts = buildUnnamed83(); |
| 606 } | 606 } |
| 607 buildCounterReportingMetadataEntry--; | 607 buildCounterReportingMetadataEntry--; |
| 608 return o; | 608 return o; |
| 609 } | 609 } |
| 610 | 610 |
| 611 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { | 611 checkReportingMetadataEntry(api.ReportingMetadataEntry o) { |
| 612 buildCounterReportingMetadataEntry++; | 612 buildCounterReportingMetadataEntry++; |
| 613 if (buildCounterReportingMetadataEntry < 3) { | 613 if (buildCounterReportingMetadataEntry < 3) { |
| 614 checkUnnamed833(o.compatibleDimensions); | 614 checkUnnamed79(o.compatibleDimensions); |
| 615 checkUnnamed834(o.compatibleMetrics); | 615 checkUnnamed80(o.compatibleMetrics); |
| 616 unittest.expect(o.id, unittest.equals('foo')); | 616 unittest.expect(o.id, unittest.equals('foo')); |
| 617 unittest.expect(o.kind, unittest.equals('foo')); | 617 unittest.expect(o.kind, unittest.equals('foo')); |
| 618 checkUnnamed835(o.requiredDimensions); | 618 checkUnnamed81(o.requiredDimensions); |
| 619 checkUnnamed836(o.requiredMetrics); | 619 checkUnnamed82(o.requiredMetrics); |
| 620 checkUnnamed837(o.supportedProducts); | 620 checkUnnamed83(o.supportedProducts); |
| 621 } | 621 } |
| 622 buildCounterReportingMetadataEntry--; | 622 buildCounterReportingMetadataEntry--; |
| 623 } | 623 } |
| 624 | 624 |
| 625 core.int buildCounterSavedReport = 0; | 625 core.int buildCounterSavedReport = 0; |
| 626 buildSavedReport() { | 626 buildSavedReport() { |
| 627 var o = new api.SavedReport(); | 627 var o = new api.SavedReport(); |
| 628 buildCounterSavedReport++; | 628 buildCounterSavedReport++; |
| 629 if (buildCounterSavedReport < 3) { | 629 if (buildCounterSavedReport < 3) { |
| 630 o.id = "foo"; | 630 o.id = "foo"; |
| 631 o.kind = "foo"; | 631 o.kind = "foo"; |
| 632 o.name = "foo"; | 632 o.name = "foo"; |
| 633 } | 633 } |
| 634 buildCounterSavedReport--; | 634 buildCounterSavedReport--; |
| 635 return o; | 635 return o; |
| 636 } | 636 } |
| 637 | 637 |
| 638 checkSavedReport(api.SavedReport o) { | 638 checkSavedReport(api.SavedReport o) { |
| 639 buildCounterSavedReport++; | 639 buildCounterSavedReport++; |
| 640 if (buildCounterSavedReport < 3) { | 640 if (buildCounterSavedReport < 3) { |
| 641 unittest.expect(o.id, unittest.equals('foo')); | 641 unittest.expect(o.id, unittest.equals('foo')); |
| 642 unittest.expect(o.kind, unittest.equals('foo')); | 642 unittest.expect(o.kind, unittest.equals('foo')); |
| 643 unittest.expect(o.name, unittest.equals('foo')); | 643 unittest.expect(o.name, unittest.equals('foo')); |
| 644 } | 644 } |
| 645 buildCounterSavedReport--; | 645 buildCounterSavedReport--; |
| 646 } | 646 } |
| 647 | 647 |
| 648 buildUnnamed838() { | 648 buildUnnamed84() { |
| 649 var o = new core.List<api.SavedReport>(); | 649 var o = new core.List<api.SavedReport>(); |
| 650 o.add(buildSavedReport()); | 650 o.add(buildSavedReport()); |
| 651 o.add(buildSavedReport()); | 651 o.add(buildSavedReport()); |
| 652 return o; | 652 return o; |
| 653 } | 653 } |
| 654 | 654 |
| 655 checkUnnamed838(core.List<api.SavedReport> o) { | 655 checkUnnamed84(core.List<api.SavedReport> o) { |
| 656 unittest.expect(o, unittest.hasLength(2)); | 656 unittest.expect(o, unittest.hasLength(2)); |
| 657 checkSavedReport(o[0]); | 657 checkSavedReport(o[0]); |
| 658 checkSavedReport(o[1]); | 658 checkSavedReport(o[1]); |
| 659 } | 659 } |
| 660 | 660 |
| 661 core.int buildCounterSavedReports = 0; | 661 core.int buildCounterSavedReports = 0; |
| 662 buildSavedReports() { | 662 buildSavedReports() { |
| 663 var o = new api.SavedReports(); | 663 var o = new api.SavedReports(); |
| 664 buildCounterSavedReports++; | 664 buildCounterSavedReports++; |
| 665 if (buildCounterSavedReports < 3) { | 665 if (buildCounterSavedReports < 3) { |
| 666 o.etag = "foo"; | 666 o.etag = "foo"; |
| 667 o.items = buildUnnamed838(); | 667 o.items = buildUnnamed84(); |
| 668 o.kind = "foo"; | 668 o.kind = "foo"; |
| 669 o.nextPageToken = "foo"; | 669 o.nextPageToken = "foo"; |
| 670 } | 670 } |
| 671 buildCounterSavedReports--; | 671 buildCounterSavedReports--; |
| 672 return o; | 672 return o; |
| 673 } | 673 } |
| 674 | 674 |
| 675 checkSavedReports(api.SavedReports o) { | 675 checkSavedReports(api.SavedReports o) { |
| 676 buildCounterSavedReports++; | 676 buildCounterSavedReports++; |
| 677 if (buildCounterSavedReports < 3) { | 677 if (buildCounterSavedReports < 3) { |
| 678 unittest.expect(o.etag, unittest.equals('foo')); | 678 unittest.expect(o.etag, unittest.equals('foo')); |
| 679 checkUnnamed838(o.items); | 679 checkUnnamed84(o.items); |
| 680 unittest.expect(o.kind, unittest.equals('foo')); | 680 unittest.expect(o.kind, unittest.equals('foo')); |
| 681 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 681 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 682 } | 682 } |
| 683 buildCounterSavedReports--; | 683 buildCounterSavedReports--; |
| 684 } | 684 } |
| 685 | 685 |
| 686 core.int buildCounterUrlChannel = 0; | 686 core.int buildCounterUrlChannel = 0; |
| 687 buildUrlChannel() { | 687 buildUrlChannel() { |
| 688 var o = new api.UrlChannel(); | 688 var o = new api.UrlChannel(); |
| 689 buildCounterUrlChannel++; | 689 buildCounterUrlChannel++; |
| 690 if (buildCounterUrlChannel < 3) { | 690 if (buildCounterUrlChannel < 3) { |
| 691 o.id = "foo"; | 691 o.id = "foo"; |
| 692 o.kind = "foo"; | 692 o.kind = "foo"; |
| 693 o.urlPattern = "foo"; | 693 o.urlPattern = "foo"; |
| 694 } | 694 } |
| 695 buildCounterUrlChannel--; | 695 buildCounterUrlChannel--; |
| 696 return o; | 696 return o; |
| 697 } | 697 } |
| 698 | 698 |
| 699 checkUrlChannel(api.UrlChannel o) { | 699 checkUrlChannel(api.UrlChannel o) { |
| 700 buildCounterUrlChannel++; | 700 buildCounterUrlChannel++; |
| 701 if (buildCounterUrlChannel < 3) { | 701 if (buildCounterUrlChannel < 3) { |
| 702 unittest.expect(o.id, unittest.equals('foo')); | 702 unittest.expect(o.id, unittest.equals('foo')); |
| 703 unittest.expect(o.kind, unittest.equals('foo')); | 703 unittest.expect(o.kind, unittest.equals('foo')); |
| 704 unittest.expect(o.urlPattern, unittest.equals('foo')); | 704 unittest.expect(o.urlPattern, unittest.equals('foo')); |
| 705 } | 705 } |
| 706 buildCounterUrlChannel--; | 706 buildCounterUrlChannel--; |
| 707 } | 707 } |
| 708 | 708 |
| 709 buildUnnamed839() { | 709 buildUnnamed85() { |
| 710 var o = new core.List<api.UrlChannel>(); | 710 var o = new core.List<api.UrlChannel>(); |
| 711 o.add(buildUrlChannel()); | 711 o.add(buildUrlChannel()); |
| 712 o.add(buildUrlChannel()); | 712 o.add(buildUrlChannel()); |
| 713 return o; | 713 return o; |
| 714 } | 714 } |
| 715 | 715 |
| 716 checkUnnamed839(core.List<api.UrlChannel> o) { | 716 checkUnnamed85(core.List<api.UrlChannel> o) { |
| 717 unittest.expect(o, unittest.hasLength(2)); | 717 unittest.expect(o, unittest.hasLength(2)); |
| 718 checkUrlChannel(o[0]); | 718 checkUrlChannel(o[0]); |
| 719 checkUrlChannel(o[1]); | 719 checkUrlChannel(o[1]); |
| 720 } | 720 } |
| 721 | 721 |
| 722 core.int buildCounterUrlChannels = 0; | 722 core.int buildCounterUrlChannels = 0; |
| 723 buildUrlChannels() { | 723 buildUrlChannels() { |
| 724 var o = new api.UrlChannels(); | 724 var o = new api.UrlChannels(); |
| 725 buildCounterUrlChannels++; | 725 buildCounterUrlChannels++; |
| 726 if (buildCounterUrlChannels < 3) { | 726 if (buildCounterUrlChannels < 3) { |
| 727 o.etag = "foo"; | 727 o.etag = "foo"; |
| 728 o.items = buildUnnamed839(); | 728 o.items = buildUnnamed85(); |
| 729 o.kind = "foo"; | 729 o.kind = "foo"; |
| 730 o.nextPageToken = "foo"; | 730 o.nextPageToken = "foo"; |
| 731 } | 731 } |
| 732 buildCounterUrlChannels--; | 732 buildCounterUrlChannels--; |
| 733 return o; | 733 return o; |
| 734 } | 734 } |
| 735 | 735 |
| 736 checkUrlChannels(api.UrlChannels o) { | 736 checkUrlChannels(api.UrlChannels o) { |
| 737 buildCounterUrlChannels++; | 737 buildCounterUrlChannels++; |
| 738 if (buildCounterUrlChannels < 3) { | 738 if (buildCounterUrlChannels < 3) { |
| 739 unittest.expect(o.etag, unittest.equals('foo')); | 739 unittest.expect(o.etag, unittest.equals('foo')); |
| 740 checkUnnamed839(o.items); | 740 checkUnnamed85(o.items); |
| 741 unittest.expect(o.kind, unittest.equals('foo')); | 741 unittest.expect(o.kind, unittest.equals('foo')); |
| 742 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 742 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 743 } | 743 } |
| 744 buildCounterUrlChannels--; | 744 buildCounterUrlChannels--; |
| 745 } | 745 } |
| 746 | 746 |
| 747 buildUnnamed840() { | 747 buildUnnamed86() { |
| 748 var o = new core.List<core.String>(); | 748 var o = new core.List<core.String>(); |
| 749 o.add("foo"); | 749 o.add("foo"); |
| 750 o.add("foo"); | 750 o.add("foo"); |
| 751 return o; | 751 return o; |
| 752 } | 752 } |
| 753 | 753 |
| 754 checkUnnamed840(core.List<core.String> o) { | 754 checkUnnamed86(core.List<core.String> o) { |
| 755 unittest.expect(o, unittest.hasLength(2)); | 755 unittest.expect(o, unittest.hasLength(2)); |
| 756 unittest.expect(o[0], unittest.equals('foo')); | 756 unittest.expect(o[0], unittest.equals('foo')); |
| 757 unittest.expect(o[1], unittest.equals('foo')); | 757 unittest.expect(o[1], unittest.equals('foo')); |
| 758 } | 758 } |
| 759 | 759 |
| 760 buildUnnamed841() { | 760 buildUnnamed87() { |
| 761 var o = new core.List<core.String>(); | 761 var o = new core.List<core.String>(); |
| 762 o.add("foo"); | 762 o.add("foo"); |
| 763 o.add("foo"); | 763 o.add("foo"); |
| 764 return o; | 764 return o; |
| 765 } | 765 } |
| 766 | 766 |
| 767 checkUnnamed841(core.List<core.String> o) { | 767 checkUnnamed87(core.List<core.String> o) { |
| 768 unittest.expect(o, unittest.hasLength(2)); | 768 unittest.expect(o, unittest.hasLength(2)); |
| 769 unittest.expect(o[0], unittest.equals('foo')); | 769 unittest.expect(o[0], unittest.equals('foo')); |
| 770 unittest.expect(o[1], unittest.equals('foo')); | 770 unittest.expect(o[1], unittest.equals('foo')); |
| 771 } | 771 } |
| 772 | 772 |
| 773 buildUnnamed842() { | 773 buildUnnamed88() { |
| 774 var o = new core.List<core.String>(); | 774 var o = new core.List<core.String>(); |
| 775 o.add("foo"); | 775 o.add("foo"); |
| 776 o.add("foo"); | 776 o.add("foo"); |
| 777 return o; | 777 return o; |
| 778 } | 778 } |
| 779 | 779 |
| 780 checkUnnamed842(core.List<core.String> o) { | 780 checkUnnamed88(core.List<core.String> o) { |
| 781 unittest.expect(o, unittest.hasLength(2)); | 781 unittest.expect(o, unittest.hasLength(2)); |
| 782 unittest.expect(o[0], unittest.equals('foo')); | 782 unittest.expect(o[0], unittest.equals('foo')); |
| 783 unittest.expect(o[1], unittest.equals('foo')); | 783 unittest.expect(o[1], unittest.equals('foo')); |
| 784 } | 784 } |
| 785 | 785 |
| 786 buildUnnamed843() { | 786 buildUnnamed89() { |
| 787 var o = new core.List<core.String>(); | 787 var o = new core.List<core.String>(); |
| 788 o.add("foo"); | 788 o.add("foo"); |
| 789 o.add("foo"); | 789 o.add("foo"); |
| 790 return o; | 790 return o; |
| 791 } | 791 } |
| 792 | 792 |
| 793 checkUnnamed843(core.List<core.String> o) { | 793 checkUnnamed89(core.List<core.String> o) { |
| 794 unittest.expect(o, unittest.hasLength(2)); | 794 unittest.expect(o, unittest.hasLength(2)); |
| 795 unittest.expect(o[0], unittest.equals('foo')); | 795 unittest.expect(o[0], unittest.equals('foo')); |
| 796 unittest.expect(o[1], unittest.equals('foo')); | 796 unittest.expect(o[1], unittest.equals('foo')); |
| 797 } | 797 } |
| 798 | 798 |
| 799 | 799 |
| 800 main() { | 800 main() { |
| 801 unittest.group("obj-schema-Account", () { | 801 unittest.group("obj-schema-Account", () { |
| 802 unittest.test("to-json--from-json", () { | 802 unittest.test("to-json--from-json", () { |
| 803 var o = buildAccount(); | 803 var o = buildAccount(); |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1556 unittest.group("resource-AccountsReportsResourceApi", () { | 1556 unittest.group("resource-AccountsReportsResourceApi", () { |
| 1557 unittest.test("method--generate", () { | 1557 unittest.test("method--generate", () { |
| 1558 // TODO: Implement tests for media upload; | 1558 // TODO: Implement tests for media upload; |
| 1559 // TODO: Implement tests for media download; | 1559 // TODO: Implement tests for media download; |
| 1560 | 1560 |
| 1561 var mock = new common_test.HttpServerMock(); | 1561 var mock = new common_test.HttpServerMock(); |
| 1562 api.AccountsReportsResourceApi res = new api.AdexchangesellerApi(mock).acc
ounts.reports; | 1562 api.AccountsReportsResourceApi res = new api.AdexchangesellerApi(mock).acc
ounts.reports; |
| 1563 var arg_accountId = "foo"; | 1563 var arg_accountId = "foo"; |
| 1564 var arg_startDate = "foo"; | 1564 var arg_startDate = "foo"; |
| 1565 var arg_endDate = "foo"; | 1565 var arg_endDate = "foo"; |
| 1566 var arg_dimension = buildUnnamed840(); | 1566 var arg_dimension = buildUnnamed86(); |
| 1567 var arg_filter = buildUnnamed841(); | 1567 var arg_filter = buildUnnamed87(); |
| 1568 var arg_locale = "foo"; | 1568 var arg_locale = "foo"; |
| 1569 var arg_maxResults = 42; | 1569 var arg_maxResults = 42; |
| 1570 var arg_metric = buildUnnamed842(); | 1570 var arg_metric = buildUnnamed88(); |
| 1571 var arg_sort = buildUnnamed843(); | 1571 var arg_sort = buildUnnamed89(); |
| 1572 var arg_startIndex = 42; | 1572 var arg_startIndex = 42; |
| 1573 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1573 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1574 var path = (req.url).path; | 1574 var path = (req.url).path; |
| 1575 var pathOffset = 0; | 1575 var pathOffset = 0; |
| 1576 var index; | 1576 var index; |
| 1577 var subPart; | 1577 var subPart; |
| 1578 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1578 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1579 pathOffset += 1; | 1579 pathOffset += 1; |
| 1580 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v2.0/")); | 1580 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("adexchangeseller/v2.0/")); |
| 1581 pathOffset += 22; | 1581 pathOffset += 22; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 res.list(arg_accountId, arg_adClientId, maxResults: arg_maxResults, pageTo
ken: arg_pageToken).then(unittest.expectAsync(((api.UrlChannels response) { | 1818 res.list(arg_accountId, arg_adClientId, maxResults: arg_maxResults, pageTo
ken: arg_pageToken).then(unittest.expectAsync(((api.UrlChannels response) { |
| 1819 checkUrlChannels(response); | 1819 checkUrlChannels(response); |
| 1820 }))); | 1820 }))); |
| 1821 }); | 1821 }); |
| 1822 | 1822 |
| 1823 }); | 1823 }); |
| 1824 | 1824 |
| 1825 | 1825 |
| 1826 } | 1826 } |
| 1827 | 1827 |
| OLD | NEW |