| OLD | NEW |
| 1 library googleapis.doubleclicksearch.v2.test; | 1 library googleapis.doubleclicksearch.v2.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 27 matching lines...) Expand all Loading... |
| 38 unittest.expect(o.advertiserId, unittest.equals('foo')); | 38 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 39 unittest.expect(o.agencyId, unittest.equals('foo')); | 39 unittest.expect(o.agencyId, unittest.equals('foo')); |
| 40 unittest.expect(o.availabilityTimestamp, unittest.equals('foo')); | 40 unittest.expect(o.availabilityTimestamp, unittest.equals('foo')); |
| 41 unittest.expect(o.segmentationId, unittest.equals('foo')); | 41 unittest.expect(o.segmentationId, unittest.equals('foo')); |
| 42 unittest.expect(o.segmentationName, unittest.equals('foo')); | 42 unittest.expect(o.segmentationName, unittest.equals('foo')); |
| 43 unittest.expect(o.segmentationType, unittest.equals('foo')); | 43 unittest.expect(o.segmentationType, unittest.equals('foo')); |
| 44 } | 44 } |
| 45 buildCounterAvailability--; | 45 buildCounterAvailability--; |
| 46 } | 46 } |
| 47 | 47 |
| 48 buildUnnamed114() { | 48 buildUnnamed742() { |
| 49 var o = new core.List<api.CustomDimension>(); | 49 var o = new core.List<api.CustomDimension>(); |
| 50 o.add(buildCustomDimension()); | 50 o.add(buildCustomDimension()); |
| 51 o.add(buildCustomDimension()); | 51 o.add(buildCustomDimension()); |
| 52 return o; | 52 return o; |
| 53 } | 53 } |
| 54 | 54 |
| 55 checkUnnamed114(core.List<api.CustomDimension> o) { | 55 checkUnnamed742(core.List<api.CustomDimension> o) { |
| 56 unittest.expect(o, unittest.hasLength(2)); | 56 unittest.expect(o, unittest.hasLength(2)); |
| 57 checkCustomDimension(o[0]); | 57 checkCustomDimension(o[0]); |
| 58 checkCustomDimension(o[1]); | 58 checkCustomDimension(o[1]); |
| 59 } | 59 } |
| 60 | 60 |
| 61 buildUnnamed115() { | 61 buildUnnamed743() { |
| 62 var o = new core.List<api.CustomMetric>(); | 62 var o = new core.List<api.CustomMetric>(); |
| 63 o.add(buildCustomMetric()); | 63 o.add(buildCustomMetric()); |
| 64 o.add(buildCustomMetric()); | 64 o.add(buildCustomMetric()); |
| 65 return o; | 65 return o; |
| 66 } | 66 } |
| 67 | 67 |
| 68 checkUnnamed115(core.List<api.CustomMetric> o) { | 68 checkUnnamed743(core.List<api.CustomMetric> o) { |
| 69 unittest.expect(o, unittest.hasLength(2)); | 69 unittest.expect(o, unittest.hasLength(2)); |
| 70 checkCustomMetric(o[0]); | 70 checkCustomMetric(o[0]); |
| 71 checkCustomMetric(o[1]); | 71 checkCustomMetric(o[1]); |
| 72 } | 72 } |
| 73 | 73 |
| 74 core.int buildCounterConversion = 0; | 74 core.int buildCounterConversion = 0; |
| 75 buildConversion() { | 75 buildConversion() { |
| 76 var o = new api.Conversion(); | 76 var o = new api.Conversion(); |
| 77 buildCounterConversion++; | 77 buildCounterConversion++; |
| 78 if (buildCounterConversion < 3) { | 78 if (buildCounterConversion < 3) { |
| 79 o.adGroupId = "foo"; | 79 o.adGroupId = "foo"; |
| 80 o.adId = "foo"; | 80 o.adId = "foo"; |
| 81 o.advertiserId = "foo"; | 81 o.advertiserId = "foo"; |
| 82 o.agencyId = "foo"; | 82 o.agencyId = "foo"; |
| 83 o.campaignId = "foo"; | 83 o.campaignId = "foo"; |
| 84 o.clickId = "foo"; | 84 o.clickId = "foo"; |
| 85 o.conversionId = "foo"; | 85 o.conversionId = "foo"; |
| 86 o.conversionModifiedTimestamp = "foo"; | 86 o.conversionModifiedTimestamp = "foo"; |
| 87 o.conversionTimestamp = "foo"; | 87 o.conversionTimestamp = "foo"; |
| 88 o.criterionId = "foo"; | 88 o.criterionId = "foo"; |
| 89 o.currencyCode = "foo"; | 89 o.currencyCode = "foo"; |
| 90 o.customDimension = buildUnnamed114(); | 90 o.customDimension = buildUnnamed742(); |
| 91 o.customMetric = buildUnnamed115(); | 91 o.customMetric = buildUnnamed743(); |
| 92 o.dsConversionId = "foo"; | 92 o.dsConversionId = "foo"; |
| 93 o.engineAccountId = "foo"; | 93 o.engineAccountId = "foo"; |
| 94 o.floodlightOrderId = "foo"; | 94 o.floodlightOrderId = "foo"; |
| 95 o.quantityMillis = "foo"; | 95 o.quantityMillis = "foo"; |
| 96 o.revenueMicros = "foo"; | 96 o.revenueMicros = "foo"; |
| 97 o.segmentationId = "foo"; | 97 o.segmentationId = "foo"; |
| 98 o.segmentationName = "foo"; | 98 o.segmentationName = "foo"; |
| 99 o.segmentationType = "foo"; | 99 o.segmentationType = "foo"; |
| 100 o.state = "foo"; | 100 o.state = "foo"; |
| 101 o.type = "foo"; | 101 o.type = "foo"; |
| 102 } | 102 } |
| 103 buildCounterConversion--; | 103 buildCounterConversion--; |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkConversion(api.Conversion o) { | 107 checkConversion(api.Conversion o) { |
| 108 buildCounterConversion++; | 108 buildCounterConversion++; |
| 109 if (buildCounterConversion < 3) { | 109 if (buildCounterConversion < 3) { |
| 110 unittest.expect(o.adGroupId, unittest.equals('foo')); | 110 unittest.expect(o.adGroupId, unittest.equals('foo')); |
| 111 unittest.expect(o.adId, unittest.equals('foo')); | 111 unittest.expect(o.adId, unittest.equals('foo')); |
| 112 unittest.expect(o.advertiserId, unittest.equals('foo')); | 112 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 113 unittest.expect(o.agencyId, unittest.equals('foo')); | 113 unittest.expect(o.agencyId, unittest.equals('foo')); |
| 114 unittest.expect(o.campaignId, unittest.equals('foo')); | 114 unittest.expect(o.campaignId, unittest.equals('foo')); |
| 115 unittest.expect(o.clickId, unittest.equals('foo')); | 115 unittest.expect(o.clickId, unittest.equals('foo')); |
| 116 unittest.expect(o.conversionId, unittest.equals('foo')); | 116 unittest.expect(o.conversionId, unittest.equals('foo')); |
| 117 unittest.expect(o.conversionModifiedTimestamp, unittest.equals('foo')); | 117 unittest.expect(o.conversionModifiedTimestamp, unittest.equals('foo')); |
| 118 unittest.expect(o.conversionTimestamp, unittest.equals('foo')); | 118 unittest.expect(o.conversionTimestamp, unittest.equals('foo')); |
| 119 unittest.expect(o.criterionId, unittest.equals('foo')); | 119 unittest.expect(o.criterionId, unittest.equals('foo')); |
| 120 unittest.expect(o.currencyCode, unittest.equals('foo')); | 120 unittest.expect(o.currencyCode, unittest.equals('foo')); |
| 121 checkUnnamed114(o.customDimension); | 121 checkUnnamed742(o.customDimension); |
| 122 checkUnnamed115(o.customMetric); | 122 checkUnnamed743(o.customMetric); |
| 123 unittest.expect(o.dsConversionId, unittest.equals('foo')); | 123 unittest.expect(o.dsConversionId, unittest.equals('foo')); |
| 124 unittest.expect(o.engineAccountId, unittest.equals('foo')); | 124 unittest.expect(o.engineAccountId, unittest.equals('foo')); |
| 125 unittest.expect(o.floodlightOrderId, unittest.equals('foo')); | 125 unittest.expect(o.floodlightOrderId, unittest.equals('foo')); |
| 126 unittest.expect(o.quantityMillis, unittest.equals('foo')); | 126 unittest.expect(o.quantityMillis, unittest.equals('foo')); |
| 127 unittest.expect(o.revenueMicros, unittest.equals('foo')); | 127 unittest.expect(o.revenueMicros, unittest.equals('foo')); |
| 128 unittest.expect(o.segmentationId, unittest.equals('foo')); | 128 unittest.expect(o.segmentationId, unittest.equals('foo')); |
| 129 unittest.expect(o.segmentationName, unittest.equals('foo')); | 129 unittest.expect(o.segmentationName, unittest.equals('foo')); |
| 130 unittest.expect(o.segmentationType, unittest.equals('foo')); | 130 unittest.expect(o.segmentationType, unittest.equals('foo')); |
| 131 unittest.expect(o.state, unittest.equals('foo')); | 131 unittest.expect(o.state, unittest.equals('foo')); |
| 132 unittest.expect(o.type, unittest.equals('foo')); | 132 unittest.expect(o.type, unittest.equals('foo')); |
| 133 } | 133 } |
| 134 buildCounterConversion--; | 134 buildCounterConversion--; |
| 135 } | 135 } |
| 136 | 136 |
| 137 buildUnnamed116() { | 137 buildUnnamed744() { |
| 138 var o = new core.List<api.Conversion>(); | 138 var o = new core.List<api.Conversion>(); |
| 139 o.add(buildConversion()); | 139 o.add(buildConversion()); |
| 140 o.add(buildConversion()); | 140 o.add(buildConversion()); |
| 141 return o; | 141 return o; |
| 142 } | 142 } |
| 143 | 143 |
| 144 checkUnnamed116(core.List<api.Conversion> o) { | 144 checkUnnamed744(core.List<api.Conversion> o) { |
| 145 unittest.expect(o, unittest.hasLength(2)); | 145 unittest.expect(o, unittest.hasLength(2)); |
| 146 checkConversion(o[0]); | 146 checkConversion(o[0]); |
| 147 checkConversion(o[1]); | 147 checkConversion(o[1]); |
| 148 } | 148 } |
| 149 | 149 |
| 150 core.int buildCounterConversionList = 0; | 150 core.int buildCounterConversionList = 0; |
| 151 buildConversionList() { | 151 buildConversionList() { |
| 152 var o = new api.ConversionList(); | 152 var o = new api.ConversionList(); |
| 153 buildCounterConversionList++; | 153 buildCounterConversionList++; |
| 154 if (buildCounterConversionList < 3) { | 154 if (buildCounterConversionList < 3) { |
| 155 o.conversion = buildUnnamed116(); | 155 o.conversion = buildUnnamed744(); |
| 156 o.kind = "foo"; | 156 o.kind = "foo"; |
| 157 } | 157 } |
| 158 buildCounterConversionList--; | 158 buildCounterConversionList--; |
| 159 return o; | 159 return o; |
| 160 } | 160 } |
| 161 | 161 |
| 162 checkConversionList(api.ConversionList o) { | 162 checkConversionList(api.ConversionList o) { |
| 163 buildCounterConversionList++; | 163 buildCounterConversionList++; |
| 164 if (buildCounterConversionList < 3) { | 164 if (buildCounterConversionList < 3) { |
| 165 checkUnnamed116(o.conversion); | 165 checkUnnamed744(o.conversion); |
| 166 unittest.expect(o.kind, unittest.equals('foo')); | 166 unittest.expect(o.kind, unittest.equals('foo')); |
| 167 } | 167 } |
| 168 buildCounterConversionList--; | 168 buildCounterConversionList--; |
| 169 } | 169 } |
| 170 | 170 |
| 171 core.int buildCounterCustomDimension = 0; | 171 core.int buildCounterCustomDimension = 0; |
| 172 buildCustomDimension() { | 172 buildCustomDimension() { |
| 173 var o = new api.CustomDimension(); | 173 var o = new api.CustomDimension(); |
| 174 buildCounterCustomDimension++; | 174 buildCounterCustomDimension++; |
| 175 if (buildCounterCustomDimension < 3) { | 175 if (buildCounterCustomDimension < 3) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 checkReportFiles(api.ReportFiles o) { | 225 checkReportFiles(api.ReportFiles o) { |
| 226 buildCounterReportFiles++; | 226 buildCounterReportFiles++; |
| 227 if (buildCounterReportFiles < 3) { | 227 if (buildCounterReportFiles < 3) { |
| 228 unittest.expect(o.byteCount, unittest.equals('foo')); | 228 unittest.expect(o.byteCount, unittest.equals('foo')); |
| 229 unittest.expect(o.url, unittest.equals('foo')); | 229 unittest.expect(o.url, unittest.equals('foo')); |
| 230 } | 230 } |
| 231 buildCounterReportFiles--; | 231 buildCounterReportFiles--; |
| 232 } | 232 } |
| 233 | 233 |
| 234 buildUnnamed117() { | 234 buildUnnamed745() { |
| 235 var o = new core.List<api.ReportFiles>(); | 235 var o = new core.List<api.ReportFiles>(); |
| 236 o.add(buildReportFiles()); | 236 o.add(buildReportFiles()); |
| 237 o.add(buildReportFiles()); | 237 o.add(buildReportFiles()); |
| 238 return o; | 238 return o; |
| 239 } | 239 } |
| 240 | 240 |
| 241 checkUnnamed117(core.List<api.ReportFiles> o) { | 241 checkUnnamed745(core.List<api.ReportFiles> o) { |
| 242 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
| 243 checkReportFiles(o[0]); | 243 checkReportFiles(o[0]); |
| 244 checkReportFiles(o[1]); | 244 checkReportFiles(o[1]); |
| 245 } | 245 } |
| 246 | 246 |
| 247 buildUnnamed118() { | 247 buildUnnamed746() { |
| 248 var o = new core.List<api.ReportRow>(); | 248 var o = new core.List<api.ReportRow>(); |
| 249 o.add(buildReportRow()); | 249 o.add(buildReportRow()); |
| 250 o.add(buildReportRow()); | 250 o.add(buildReportRow()); |
| 251 return o; | 251 return o; |
| 252 } | 252 } |
| 253 | 253 |
| 254 checkUnnamed118(core.List<api.ReportRow> o) { | 254 checkUnnamed746(core.List<api.ReportRow> o) { |
| 255 unittest.expect(o, unittest.hasLength(2)); | 255 unittest.expect(o, unittest.hasLength(2)); |
| 256 checkReportRow(o[0]); | 256 checkReportRow(o[0]); |
| 257 checkReportRow(o[1]); | 257 checkReportRow(o[1]); |
| 258 } | 258 } |
| 259 | 259 |
| 260 core.int buildCounterReport = 0; | 260 core.int buildCounterReport = 0; |
| 261 buildReport() { | 261 buildReport() { |
| 262 var o = new api.Report(); | 262 var o = new api.Report(); |
| 263 buildCounterReport++; | 263 buildCounterReport++; |
| 264 if (buildCounterReport < 3) { | 264 if (buildCounterReport < 3) { |
| 265 o.files = buildUnnamed117(); | 265 o.files = buildUnnamed745(); |
| 266 o.id = "foo"; | 266 o.id = "foo"; |
| 267 o.isReportReady = true; | 267 o.isReportReady = true; |
| 268 o.kind = "foo"; | 268 o.kind = "foo"; |
| 269 o.request = buildReportRequest(); | 269 o.request = buildReportRequest(); |
| 270 o.rowCount = 42; | 270 o.rowCount = 42; |
| 271 o.rows = buildUnnamed118(); | 271 o.rows = buildUnnamed746(); |
| 272 o.statisticsCurrencyCode = "foo"; | 272 o.statisticsCurrencyCode = "foo"; |
| 273 o.statisticsTimeZone = "foo"; | 273 o.statisticsTimeZone = "foo"; |
| 274 } | 274 } |
| 275 buildCounterReport--; | 275 buildCounterReport--; |
| 276 return o; | 276 return o; |
| 277 } | 277 } |
| 278 | 278 |
| 279 checkReport(api.Report o) { | 279 checkReport(api.Report o) { |
| 280 buildCounterReport++; | 280 buildCounterReport++; |
| 281 if (buildCounterReport < 3) { | 281 if (buildCounterReport < 3) { |
| 282 checkUnnamed117(o.files); | 282 checkUnnamed745(o.files); |
| 283 unittest.expect(o.id, unittest.equals('foo')); | 283 unittest.expect(o.id, unittest.equals('foo')); |
| 284 unittest.expect(o.isReportReady, unittest.isTrue); | 284 unittest.expect(o.isReportReady, unittest.isTrue); |
| 285 unittest.expect(o.kind, unittest.equals('foo')); | 285 unittest.expect(o.kind, unittest.equals('foo')); |
| 286 checkReportRequest(o.request); | 286 checkReportRequest(o.request); |
| 287 unittest.expect(o.rowCount, unittest.equals(42)); | 287 unittest.expect(o.rowCount, unittest.equals(42)); |
| 288 checkUnnamed118(o.rows); | 288 checkUnnamed746(o.rows); |
| 289 unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); | 289 unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); |
| 290 unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); | 290 unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); |
| 291 } | 291 } |
| 292 buildCounterReport--; | 292 buildCounterReport--; |
| 293 } | 293 } |
| 294 | 294 |
| 295 core.int buildCounterReportApiColumnSpec = 0; | 295 core.int buildCounterReportApiColumnSpec = 0; |
| 296 buildReportApiColumnSpec() { | 296 buildReportApiColumnSpec() { |
| 297 var o = new api.ReportApiColumnSpec(); | 297 var o = new api.ReportApiColumnSpec(); |
| 298 buildCounterReportApiColumnSpec++; | 298 buildCounterReportApiColumnSpec++; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 320 unittest.expect(o.endDate, unittest.equals('foo')); | 320 unittest.expect(o.endDate, unittest.equals('foo')); |
| 321 unittest.expect(o.groupByColumn, unittest.isTrue); | 321 unittest.expect(o.groupByColumn, unittest.isTrue); |
| 322 unittest.expect(o.headerText, unittest.equals('foo')); | 322 unittest.expect(o.headerText, unittest.equals('foo')); |
| 323 unittest.expect(o.platformSource, unittest.equals('foo')); | 323 unittest.expect(o.platformSource, unittest.equals('foo')); |
| 324 unittest.expect(o.savedColumnName, unittest.equals('foo')); | 324 unittest.expect(o.savedColumnName, unittest.equals('foo')); |
| 325 unittest.expect(o.startDate, unittest.equals('foo')); | 325 unittest.expect(o.startDate, unittest.equals('foo')); |
| 326 } | 326 } |
| 327 buildCounterReportApiColumnSpec--; | 327 buildCounterReportApiColumnSpec--; |
| 328 } | 328 } |
| 329 | 329 |
| 330 buildUnnamed119() { | 330 buildUnnamed747() { |
| 331 var o = new core.List<api.ReportApiColumnSpec>(); | 331 var o = new core.List<api.ReportApiColumnSpec>(); |
| 332 o.add(buildReportApiColumnSpec()); | 332 o.add(buildReportApiColumnSpec()); |
| 333 o.add(buildReportApiColumnSpec()); | 333 o.add(buildReportApiColumnSpec()); |
| 334 return o; | 334 return o; |
| 335 } | 335 } |
| 336 | 336 |
| 337 checkUnnamed119(core.List<api.ReportApiColumnSpec> o) { | 337 checkUnnamed747(core.List<api.ReportApiColumnSpec> o) { |
| 338 unittest.expect(o, unittest.hasLength(2)); | 338 unittest.expect(o, unittest.hasLength(2)); |
| 339 checkReportApiColumnSpec(o[0]); | 339 checkReportApiColumnSpec(o[0]); |
| 340 checkReportApiColumnSpec(o[1]); | 340 checkReportApiColumnSpec(o[1]); |
| 341 } | 341 } |
| 342 | 342 |
| 343 buildUnnamed120() { | 343 buildUnnamed748() { |
| 344 var o = new core.List<core.Object>(); | 344 var o = new core.List<core.Object>(); |
| 345 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 345 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 346 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 346 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 347 return o; | 347 return o; |
| 348 } | 348 } |
| 349 | 349 |
| 350 checkUnnamed120(core.List<core.Object> o) { | 350 checkUnnamed748(core.List<core.Object> o) { |
| 351 unittest.expect(o, unittest.hasLength(2)); | 351 unittest.expect(o, unittest.hasLength(2)); |
| 352 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 352 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
| 353 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 353 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
| 354 } | 354 } |
| 355 | 355 |
| 356 core.int buildCounterReportRequestFilters = 0; | 356 core.int buildCounterReportRequestFilters = 0; |
| 357 buildReportRequestFilters() { | 357 buildReportRequestFilters() { |
| 358 var o = new api.ReportRequestFilters(); | 358 var o = new api.ReportRequestFilters(); |
| 359 buildCounterReportRequestFilters++; | 359 buildCounterReportRequestFilters++; |
| 360 if (buildCounterReportRequestFilters < 3) { | 360 if (buildCounterReportRequestFilters < 3) { |
| 361 o.column = buildReportApiColumnSpec(); | 361 o.column = buildReportApiColumnSpec(); |
| 362 o.operator = "foo"; | 362 o.operator = "foo"; |
| 363 o.values = buildUnnamed120(); | 363 o.values = buildUnnamed748(); |
| 364 } | 364 } |
| 365 buildCounterReportRequestFilters--; | 365 buildCounterReportRequestFilters--; |
| 366 return o; | 366 return o; |
| 367 } | 367 } |
| 368 | 368 |
| 369 checkReportRequestFilters(api.ReportRequestFilters o) { | 369 checkReportRequestFilters(api.ReportRequestFilters o) { |
| 370 buildCounterReportRequestFilters++; | 370 buildCounterReportRequestFilters++; |
| 371 if (buildCounterReportRequestFilters < 3) { | 371 if (buildCounterReportRequestFilters < 3) { |
| 372 checkReportApiColumnSpec(o.column); | 372 checkReportApiColumnSpec(o.column); |
| 373 unittest.expect(o.operator, unittest.equals('foo')); | 373 unittest.expect(o.operator, unittest.equals('foo')); |
| 374 checkUnnamed120(o.values); | 374 checkUnnamed748(o.values); |
| 375 } | 375 } |
| 376 buildCounterReportRequestFilters--; | 376 buildCounterReportRequestFilters--; |
| 377 } | 377 } |
| 378 | 378 |
| 379 buildUnnamed121() { | 379 buildUnnamed749() { |
| 380 var o = new core.List<api.ReportRequestFilters>(); | 380 var o = new core.List<api.ReportRequestFilters>(); |
| 381 o.add(buildReportRequestFilters()); | 381 o.add(buildReportRequestFilters()); |
| 382 o.add(buildReportRequestFilters()); | 382 o.add(buildReportRequestFilters()); |
| 383 return o; | 383 return o; |
| 384 } | 384 } |
| 385 | 385 |
| 386 checkUnnamed121(core.List<api.ReportRequestFilters> o) { | 386 checkUnnamed749(core.List<api.ReportRequestFilters> o) { |
| 387 unittest.expect(o, unittest.hasLength(2)); | 387 unittest.expect(o, unittest.hasLength(2)); |
| 388 checkReportRequestFilters(o[0]); | 388 checkReportRequestFilters(o[0]); |
| 389 checkReportRequestFilters(o[1]); | 389 checkReportRequestFilters(o[1]); |
| 390 } | 390 } |
| 391 | 391 |
| 392 core.int buildCounterReportRequestOrderBy = 0; | 392 core.int buildCounterReportRequestOrderBy = 0; |
| 393 buildReportRequestOrderBy() { | 393 buildReportRequestOrderBy() { |
| 394 var o = new api.ReportRequestOrderBy(); | 394 var o = new api.ReportRequestOrderBy(); |
| 395 buildCounterReportRequestOrderBy++; | 395 buildCounterReportRequestOrderBy++; |
| 396 if (buildCounterReportRequestOrderBy < 3) { | 396 if (buildCounterReportRequestOrderBy < 3) { |
| 397 o.column = buildReportApiColumnSpec(); | 397 o.column = buildReportApiColumnSpec(); |
| 398 o.sortOrder = "foo"; | 398 o.sortOrder = "foo"; |
| 399 } | 399 } |
| 400 buildCounterReportRequestOrderBy--; | 400 buildCounterReportRequestOrderBy--; |
| 401 return o; | 401 return o; |
| 402 } | 402 } |
| 403 | 403 |
| 404 checkReportRequestOrderBy(api.ReportRequestOrderBy o) { | 404 checkReportRequestOrderBy(api.ReportRequestOrderBy o) { |
| 405 buildCounterReportRequestOrderBy++; | 405 buildCounterReportRequestOrderBy++; |
| 406 if (buildCounterReportRequestOrderBy < 3) { | 406 if (buildCounterReportRequestOrderBy < 3) { |
| 407 checkReportApiColumnSpec(o.column); | 407 checkReportApiColumnSpec(o.column); |
| 408 unittest.expect(o.sortOrder, unittest.equals('foo')); | 408 unittest.expect(o.sortOrder, unittest.equals('foo')); |
| 409 } | 409 } |
| 410 buildCounterReportRequestOrderBy--; | 410 buildCounterReportRequestOrderBy--; |
| 411 } | 411 } |
| 412 | 412 |
| 413 buildUnnamed122() { | 413 buildUnnamed750() { |
| 414 var o = new core.List<api.ReportRequestOrderBy>(); | 414 var o = new core.List<api.ReportRequestOrderBy>(); |
| 415 o.add(buildReportRequestOrderBy()); | 415 o.add(buildReportRequestOrderBy()); |
| 416 o.add(buildReportRequestOrderBy()); | 416 o.add(buildReportRequestOrderBy()); |
| 417 return o; | 417 return o; |
| 418 } | 418 } |
| 419 | 419 |
| 420 checkUnnamed122(core.List<api.ReportRequestOrderBy> o) { | 420 checkUnnamed750(core.List<api.ReportRequestOrderBy> o) { |
| 421 unittest.expect(o, unittest.hasLength(2)); | 421 unittest.expect(o, unittest.hasLength(2)); |
| 422 checkReportRequestOrderBy(o[0]); | 422 checkReportRequestOrderBy(o[0]); |
| 423 checkReportRequestOrderBy(o[1]); | 423 checkReportRequestOrderBy(o[1]); |
| 424 } | 424 } |
| 425 | 425 |
| 426 core.int buildCounterReportRequestReportScope = 0; | 426 core.int buildCounterReportRequestReportScope = 0; |
| 427 buildReportRequestReportScope() { | 427 buildReportRequestReportScope() { |
| 428 var o = new api.ReportRequestReportScope(); | 428 var o = new api.ReportRequestReportScope(); |
| 429 buildCounterReportRequestReportScope++; | 429 buildCounterReportRequestReportScope++; |
| 430 if (buildCounterReportRequestReportScope < 3) { | 430 if (buildCounterReportRequestReportScope < 3) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 unittest.expect(o.startDate, unittest.equals('foo')); | 477 unittest.expect(o.startDate, unittest.equals('foo')); |
| 478 } | 478 } |
| 479 buildCounterReportRequestTimeRange--; | 479 buildCounterReportRequestTimeRange--; |
| 480 } | 480 } |
| 481 | 481 |
| 482 core.int buildCounterReportRequest = 0; | 482 core.int buildCounterReportRequest = 0; |
| 483 buildReportRequest() { | 483 buildReportRequest() { |
| 484 var o = new api.ReportRequest(); | 484 var o = new api.ReportRequest(); |
| 485 buildCounterReportRequest++; | 485 buildCounterReportRequest++; |
| 486 if (buildCounterReportRequest < 3) { | 486 if (buildCounterReportRequest < 3) { |
| 487 o.columns = buildUnnamed119(); | 487 o.columns = buildUnnamed747(); |
| 488 o.downloadFormat = "foo"; | 488 o.downloadFormat = "foo"; |
| 489 o.filters = buildUnnamed121(); | 489 o.filters = buildUnnamed749(); |
| 490 o.includeDeletedEntities = true; | 490 o.includeDeletedEntities = true; |
| 491 o.includeRemovedEntities = true; | 491 o.includeRemovedEntities = true; |
| 492 o.maxRowsPerFile = 42; | 492 o.maxRowsPerFile = 42; |
| 493 o.orderBy = buildUnnamed122(); | 493 o.orderBy = buildUnnamed750(); |
| 494 o.reportScope = buildReportRequestReportScope(); | 494 o.reportScope = buildReportRequestReportScope(); |
| 495 o.reportType = "foo"; | 495 o.reportType = "foo"; |
| 496 o.rowCount = 42; | 496 o.rowCount = 42; |
| 497 o.startRow = 42; | 497 o.startRow = 42; |
| 498 o.statisticsCurrency = "foo"; | 498 o.statisticsCurrency = "foo"; |
| 499 o.timeRange = buildReportRequestTimeRange(); | 499 o.timeRange = buildReportRequestTimeRange(); |
| 500 o.verifySingleTimeZone = true; | 500 o.verifySingleTimeZone = true; |
| 501 } | 501 } |
| 502 buildCounterReportRequest--; | 502 buildCounterReportRequest--; |
| 503 return o; | 503 return o; |
| 504 } | 504 } |
| 505 | 505 |
| 506 checkReportRequest(api.ReportRequest o) { | 506 checkReportRequest(api.ReportRequest o) { |
| 507 buildCounterReportRequest++; | 507 buildCounterReportRequest++; |
| 508 if (buildCounterReportRequest < 3) { | 508 if (buildCounterReportRequest < 3) { |
| 509 checkUnnamed119(o.columns); | 509 checkUnnamed747(o.columns); |
| 510 unittest.expect(o.downloadFormat, unittest.equals('foo')); | 510 unittest.expect(o.downloadFormat, unittest.equals('foo')); |
| 511 checkUnnamed121(o.filters); | 511 checkUnnamed749(o.filters); |
| 512 unittest.expect(o.includeDeletedEntities, unittest.isTrue); | 512 unittest.expect(o.includeDeletedEntities, unittest.isTrue); |
| 513 unittest.expect(o.includeRemovedEntities, unittest.isTrue); | 513 unittest.expect(o.includeRemovedEntities, unittest.isTrue); |
| 514 unittest.expect(o.maxRowsPerFile, unittest.equals(42)); | 514 unittest.expect(o.maxRowsPerFile, unittest.equals(42)); |
| 515 checkUnnamed122(o.orderBy); | 515 checkUnnamed750(o.orderBy); |
| 516 checkReportRequestReportScope(o.reportScope); | 516 checkReportRequestReportScope(o.reportScope); |
| 517 unittest.expect(o.reportType, unittest.equals('foo')); | 517 unittest.expect(o.reportType, unittest.equals('foo')); |
| 518 unittest.expect(o.rowCount, unittest.equals(42)); | 518 unittest.expect(o.rowCount, unittest.equals(42)); |
| 519 unittest.expect(o.startRow, unittest.equals(42)); | 519 unittest.expect(o.startRow, unittest.equals(42)); |
| 520 unittest.expect(o.statisticsCurrency, unittest.equals('foo')); | 520 unittest.expect(o.statisticsCurrency, unittest.equals('foo')); |
| 521 checkReportRequestTimeRange(o.timeRange); | 521 checkReportRequestTimeRange(o.timeRange); |
| 522 unittest.expect(o.verifySingleTimeZone, unittest.isTrue); | 522 unittest.expect(o.verifySingleTimeZone, unittest.isTrue); |
| 523 } | 523 } |
| 524 buildCounterReportRequest--; | 524 buildCounterReportRequest--; |
| 525 } | 525 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 553 checkSavedColumn(api.SavedColumn o) { | 553 checkSavedColumn(api.SavedColumn o) { |
| 554 buildCounterSavedColumn++; | 554 buildCounterSavedColumn++; |
| 555 if (buildCounterSavedColumn < 3) { | 555 if (buildCounterSavedColumn < 3) { |
| 556 unittest.expect(o.kind, unittest.equals('foo')); | 556 unittest.expect(o.kind, unittest.equals('foo')); |
| 557 unittest.expect(o.savedColumnName, unittest.equals('foo')); | 557 unittest.expect(o.savedColumnName, unittest.equals('foo')); |
| 558 unittest.expect(o.type, unittest.equals('foo')); | 558 unittest.expect(o.type, unittest.equals('foo')); |
| 559 } | 559 } |
| 560 buildCounterSavedColumn--; | 560 buildCounterSavedColumn--; |
| 561 } | 561 } |
| 562 | 562 |
| 563 buildUnnamed123() { | 563 buildUnnamed751() { |
| 564 var o = new core.List<api.SavedColumn>(); | 564 var o = new core.List<api.SavedColumn>(); |
| 565 o.add(buildSavedColumn()); | 565 o.add(buildSavedColumn()); |
| 566 o.add(buildSavedColumn()); | 566 o.add(buildSavedColumn()); |
| 567 return o; | 567 return o; |
| 568 } | 568 } |
| 569 | 569 |
| 570 checkUnnamed123(core.List<api.SavedColumn> o) { | 570 checkUnnamed751(core.List<api.SavedColumn> o) { |
| 571 unittest.expect(o, unittest.hasLength(2)); | 571 unittest.expect(o, unittest.hasLength(2)); |
| 572 checkSavedColumn(o[0]); | 572 checkSavedColumn(o[0]); |
| 573 checkSavedColumn(o[1]); | 573 checkSavedColumn(o[1]); |
| 574 } | 574 } |
| 575 | 575 |
| 576 core.int buildCounterSavedColumnList = 0; | 576 core.int buildCounterSavedColumnList = 0; |
| 577 buildSavedColumnList() { | 577 buildSavedColumnList() { |
| 578 var o = new api.SavedColumnList(); | 578 var o = new api.SavedColumnList(); |
| 579 buildCounterSavedColumnList++; | 579 buildCounterSavedColumnList++; |
| 580 if (buildCounterSavedColumnList < 3) { | 580 if (buildCounterSavedColumnList < 3) { |
| 581 o.items = buildUnnamed123(); | 581 o.items = buildUnnamed751(); |
| 582 o.kind = "foo"; | 582 o.kind = "foo"; |
| 583 } | 583 } |
| 584 buildCounterSavedColumnList--; | 584 buildCounterSavedColumnList--; |
| 585 return o; | 585 return o; |
| 586 } | 586 } |
| 587 | 587 |
| 588 checkSavedColumnList(api.SavedColumnList o) { | 588 checkSavedColumnList(api.SavedColumnList o) { |
| 589 buildCounterSavedColumnList++; | 589 buildCounterSavedColumnList++; |
| 590 if (buildCounterSavedColumnList < 3) { | 590 if (buildCounterSavedColumnList < 3) { |
| 591 checkUnnamed123(o.items); | 591 checkUnnamed751(o.items); |
| 592 unittest.expect(o.kind, unittest.equals('foo')); | 592 unittest.expect(o.kind, unittest.equals('foo')); |
| 593 } | 593 } |
| 594 buildCounterSavedColumnList--; | 594 buildCounterSavedColumnList--; |
| 595 } | 595 } |
| 596 | 596 |
| 597 buildUnnamed124() { | 597 buildUnnamed752() { |
| 598 var o = new core.List<api.Availability>(); | 598 var o = new core.List<api.Availability>(); |
| 599 o.add(buildAvailability()); | 599 o.add(buildAvailability()); |
| 600 o.add(buildAvailability()); | 600 o.add(buildAvailability()); |
| 601 return o; | 601 return o; |
| 602 } | 602 } |
| 603 | 603 |
| 604 checkUnnamed124(core.List<api.Availability> o) { | 604 checkUnnamed752(core.List<api.Availability> o) { |
| 605 unittest.expect(o, unittest.hasLength(2)); | 605 unittest.expect(o, unittest.hasLength(2)); |
| 606 checkAvailability(o[0]); | 606 checkAvailability(o[0]); |
| 607 checkAvailability(o[1]); | 607 checkAvailability(o[1]); |
| 608 } | 608 } |
| 609 | 609 |
| 610 core.int buildCounterUpdateAvailabilityRequest = 0; | 610 core.int buildCounterUpdateAvailabilityRequest = 0; |
| 611 buildUpdateAvailabilityRequest() { | 611 buildUpdateAvailabilityRequest() { |
| 612 var o = new api.UpdateAvailabilityRequest(); | 612 var o = new api.UpdateAvailabilityRequest(); |
| 613 buildCounterUpdateAvailabilityRequest++; | 613 buildCounterUpdateAvailabilityRequest++; |
| 614 if (buildCounterUpdateAvailabilityRequest < 3) { | 614 if (buildCounterUpdateAvailabilityRequest < 3) { |
| 615 o.availabilities = buildUnnamed124(); | 615 o.availabilities = buildUnnamed752(); |
| 616 } | 616 } |
| 617 buildCounterUpdateAvailabilityRequest--; | 617 buildCounterUpdateAvailabilityRequest--; |
| 618 return o; | 618 return o; |
| 619 } | 619 } |
| 620 | 620 |
| 621 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { | 621 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { |
| 622 buildCounterUpdateAvailabilityRequest++; | 622 buildCounterUpdateAvailabilityRequest++; |
| 623 if (buildCounterUpdateAvailabilityRequest < 3) { | 623 if (buildCounterUpdateAvailabilityRequest < 3) { |
| 624 checkUnnamed124(o.availabilities); | 624 checkUnnamed752(o.availabilities); |
| 625 } | 625 } |
| 626 buildCounterUpdateAvailabilityRequest--; | 626 buildCounterUpdateAvailabilityRequest--; |
| 627 } | 627 } |
| 628 | 628 |
| 629 buildUnnamed125() { | 629 buildUnnamed753() { |
| 630 var o = new core.List<api.Availability>(); | 630 var o = new core.List<api.Availability>(); |
| 631 o.add(buildAvailability()); | 631 o.add(buildAvailability()); |
| 632 o.add(buildAvailability()); | 632 o.add(buildAvailability()); |
| 633 return o; | 633 return o; |
| 634 } | 634 } |
| 635 | 635 |
| 636 checkUnnamed125(core.List<api.Availability> o) { | 636 checkUnnamed753(core.List<api.Availability> o) { |
| 637 unittest.expect(o, unittest.hasLength(2)); | 637 unittest.expect(o, unittest.hasLength(2)); |
| 638 checkAvailability(o[0]); | 638 checkAvailability(o[0]); |
| 639 checkAvailability(o[1]); | 639 checkAvailability(o[1]); |
| 640 } | 640 } |
| 641 | 641 |
| 642 core.int buildCounterUpdateAvailabilityResponse = 0; | 642 core.int buildCounterUpdateAvailabilityResponse = 0; |
| 643 buildUpdateAvailabilityResponse() { | 643 buildUpdateAvailabilityResponse() { |
| 644 var o = new api.UpdateAvailabilityResponse(); | 644 var o = new api.UpdateAvailabilityResponse(); |
| 645 buildCounterUpdateAvailabilityResponse++; | 645 buildCounterUpdateAvailabilityResponse++; |
| 646 if (buildCounterUpdateAvailabilityResponse < 3) { | 646 if (buildCounterUpdateAvailabilityResponse < 3) { |
| 647 o.availabilities = buildUnnamed125(); | 647 o.availabilities = buildUnnamed753(); |
| 648 } | 648 } |
| 649 buildCounterUpdateAvailabilityResponse--; | 649 buildCounterUpdateAvailabilityResponse--; |
| 650 return o; | 650 return o; |
| 651 } | 651 } |
| 652 | 652 |
| 653 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { | 653 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { |
| 654 buildCounterUpdateAvailabilityResponse++; | 654 buildCounterUpdateAvailabilityResponse++; |
| 655 if (buildCounterUpdateAvailabilityResponse < 3) { | 655 if (buildCounterUpdateAvailabilityResponse < 3) { |
| 656 checkUnnamed125(o.availabilities); | 656 checkUnnamed753(o.availabilities); |
| 657 } | 657 } |
| 658 buildCounterUpdateAvailabilityResponse--; | 658 buildCounterUpdateAvailabilityResponse--; |
| 659 } | 659 } |
| 660 | 660 |
| 661 | 661 |
| 662 main() { | 662 main() { |
| 663 unittest.group("obj-schema-Availability", () { | 663 unittest.group("obj-schema-Availability", () { |
| 664 unittest.test("to-json--from-json", () { | 664 unittest.test("to-json--from-json", () { |
| 665 var o = buildAvailability(); | 665 var o = buildAvailability(); |
| 666 var od = new api.Availability.fromJson(o.toJson()); | 666 var od = new api.Availability.fromJson(o.toJson()); |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S
avedColumnList response) { | 1389 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S
avedColumnList response) { |
| 1390 checkSavedColumnList(response); | 1390 checkSavedColumnList(response); |
| 1391 }))); | 1391 }))); |
| 1392 }); | 1392 }); |
| 1393 | 1393 |
| 1394 }); | 1394 }); |
| 1395 | 1395 |
| 1396 | 1396 |
| 1397 } | 1397 } |
| 1398 | 1398 |
| OLD | NEW |