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