| 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 buildUnnamed731() { | 48 buildUnnamed759() { |
| 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 checkUnnamed731(core.List<api.CustomDimension> o) { | 55 checkUnnamed759(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 buildUnnamed732() { | 61 buildUnnamed760() { |
| 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 checkUnnamed732(core.List<api.CustomMetric> o) { | 68 checkUnnamed760(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 = buildUnnamed731(); | 90 o.customDimension = buildUnnamed759(); |
| 91 o.customMetric = buildUnnamed732(); | 91 o.customMetric = buildUnnamed760(); |
| 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 checkUnnamed731(o.customDimension); | 121 checkUnnamed759(o.customDimension); |
| 122 checkUnnamed732(o.customMetric); | 122 checkUnnamed760(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 buildUnnamed733() { | 137 buildUnnamed761() { |
| 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 checkUnnamed733(core.List<api.Conversion> o) { | 144 checkUnnamed761(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 = buildUnnamed733(); | 155 o.conversion = buildUnnamed761(); |
| 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 checkUnnamed733(o.conversion); | 165 checkUnnamed761(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 buildUnnamed734() { | 234 buildUnnamed762() { |
| 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 checkUnnamed734(core.List<api.ReportFiles> o) { | 241 checkUnnamed762(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 buildUnnamed735() { | 247 buildUnnamed763() { |
| 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 checkUnnamed735(core.List<api.ReportRow> o) { | 254 checkUnnamed763(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 = buildUnnamed734(); | 265 o.files = buildUnnamed762(); |
| 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 = buildUnnamed735(); | 271 o.rows = buildUnnamed763(); |
| 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 checkUnnamed734(o.files); | 282 checkUnnamed762(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 checkUnnamed735(o.rows); | 288 checkUnnamed763(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 19 matching lines...) Expand all Loading... |
| 318 unittest.expect(o.endDate, unittest.equals('foo')); | 318 unittest.expect(o.endDate, unittest.equals('foo')); |
| 319 unittest.expect(o.groupByColumn, unittest.isTrue); | 319 unittest.expect(o.groupByColumn, unittest.isTrue); |
| 320 unittest.expect(o.headerText, unittest.equals('foo')); | 320 unittest.expect(o.headerText, unittest.equals('foo')); |
| 321 unittest.expect(o.platformSource, unittest.equals('foo')); | 321 unittest.expect(o.platformSource, unittest.equals('foo')); |
| 322 unittest.expect(o.savedColumnName, unittest.equals('foo')); | 322 unittest.expect(o.savedColumnName, unittest.equals('foo')); |
| 323 unittest.expect(o.startDate, unittest.equals('foo')); | 323 unittest.expect(o.startDate, unittest.equals('foo')); |
| 324 } | 324 } |
| 325 buildCounterReportApiColumnSpec--; | 325 buildCounterReportApiColumnSpec--; |
| 326 } | 326 } |
| 327 | 327 |
| 328 buildUnnamed736() { | 328 buildUnnamed764() { |
| 329 var o = new core.List<api.ReportApiColumnSpec>(); | 329 var o = new core.List<api.ReportApiColumnSpec>(); |
| 330 o.add(buildReportApiColumnSpec()); | 330 o.add(buildReportApiColumnSpec()); |
| 331 o.add(buildReportApiColumnSpec()); | 331 o.add(buildReportApiColumnSpec()); |
| 332 return o; | 332 return o; |
| 333 } | 333 } |
| 334 | 334 |
| 335 checkUnnamed736(core.List<api.ReportApiColumnSpec> o) { | 335 checkUnnamed764(core.List<api.ReportApiColumnSpec> o) { |
| 336 unittest.expect(o, unittest.hasLength(2)); | 336 unittest.expect(o, unittest.hasLength(2)); |
| 337 checkReportApiColumnSpec(o[0]); | 337 checkReportApiColumnSpec(o[0]); |
| 338 checkReportApiColumnSpec(o[1]); | 338 checkReportApiColumnSpec(o[1]); |
| 339 } | 339 } |
| 340 | 340 |
| 341 buildUnnamed737() { | 341 buildUnnamed765() { |
| 342 var o = new core.List<core.Object>(); | 342 var o = new core.List<core.Object>(); |
| 343 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 343 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 344 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 344 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 345 return o; | 345 return o; |
| 346 } | 346 } |
| 347 | 347 |
| 348 checkUnnamed737(core.List<core.Object> o) { | 348 checkUnnamed765(core.List<core.Object> o) { |
| 349 unittest.expect(o, unittest.hasLength(2)); | 349 unittest.expect(o, unittest.hasLength(2)); |
| 350 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')); | 350 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')); |
| 351 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')); | 351 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')); |
| 352 } | 352 } |
| 353 | 353 |
| 354 core.int buildCounterReportRequestFilters = 0; | 354 core.int buildCounterReportRequestFilters = 0; |
| 355 buildReportRequestFilters() { | 355 buildReportRequestFilters() { |
| 356 var o = new api.ReportRequestFilters(); | 356 var o = new api.ReportRequestFilters(); |
| 357 buildCounterReportRequestFilters++; | 357 buildCounterReportRequestFilters++; |
| 358 if (buildCounterReportRequestFilters < 3) { | 358 if (buildCounterReportRequestFilters < 3) { |
| 359 o.column = buildReportApiColumnSpec(); | 359 o.column = buildReportApiColumnSpec(); |
| 360 o.operator = "foo"; | 360 o.operator = "foo"; |
| 361 o.values = buildUnnamed737(); | 361 o.values = buildUnnamed765(); |
| 362 } | 362 } |
| 363 buildCounterReportRequestFilters--; | 363 buildCounterReportRequestFilters--; |
| 364 return o; | 364 return o; |
| 365 } | 365 } |
| 366 | 366 |
| 367 checkReportRequestFilters(api.ReportRequestFilters o) { | 367 checkReportRequestFilters(api.ReportRequestFilters o) { |
| 368 buildCounterReportRequestFilters++; | 368 buildCounterReportRequestFilters++; |
| 369 if (buildCounterReportRequestFilters < 3) { | 369 if (buildCounterReportRequestFilters < 3) { |
| 370 checkReportApiColumnSpec(o.column); | 370 checkReportApiColumnSpec(o.column); |
| 371 unittest.expect(o.operator, unittest.equals('foo')); | 371 unittest.expect(o.operator, unittest.equals('foo')); |
| 372 checkUnnamed737(o.values); | 372 checkUnnamed765(o.values); |
| 373 } | 373 } |
| 374 buildCounterReportRequestFilters--; | 374 buildCounterReportRequestFilters--; |
| 375 } | 375 } |
| 376 | 376 |
| 377 buildUnnamed738() { | 377 buildUnnamed766() { |
| 378 var o = new core.List<api.ReportRequestFilters>(); | 378 var o = new core.List<api.ReportRequestFilters>(); |
| 379 o.add(buildReportRequestFilters()); | 379 o.add(buildReportRequestFilters()); |
| 380 o.add(buildReportRequestFilters()); | 380 o.add(buildReportRequestFilters()); |
| 381 return o; | 381 return o; |
| 382 } | 382 } |
| 383 | 383 |
| 384 checkUnnamed738(core.List<api.ReportRequestFilters> o) { | 384 checkUnnamed766(core.List<api.ReportRequestFilters> o) { |
| 385 unittest.expect(o, unittest.hasLength(2)); | 385 unittest.expect(o, unittest.hasLength(2)); |
| 386 checkReportRequestFilters(o[0]); | 386 checkReportRequestFilters(o[0]); |
| 387 checkReportRequestFilters(o[1]); | 387 checkReportRequestFilters(o[1]); |
| 388 } | 388 } |
| 389 | 389 |
| 390 core.int buildCounterReportRequestOrderBy = 0; | 390 core.int buildCounterReportRequestOrderBy = 0; |
| 391 buildReportRequestOrderBy() { | 391 buildReportRequestOrderBy() { |
| 392 var o = new api.ReportRequestOrderBy(); | 392 var o = new api.ReportRequestOrderBy(); |
| 393 buildCounterReportRequestOrderBy++; | 393 buildCounterReportRequestOrderBy++; |
| 394 if (buildCounterReportRequestOrderBy < 3) { | 394 if (buildCounterReportRequestOrderBy < 3) { |
| 395 o.column = buildReportApiColumnSpec(); | 395 o.column = buildReportApiColumnSpec(); |
| 396 o.sortOrder = "foo"; | 396 o.sortOrder = "foo"; |
| 397 } | 397 } |
| 398 buildCounterReportRequestOrderBy--; | 398 buildCounterReportRequestOrderBy--; |
| 399 return o; | 399 return o; |
| 400 } | 400 } |
| 401 | 401 |
| 402 checkReportRequestOrderBy(api.ReportRequestOrderBy o) { | 402 checkReportRequestOrderBy(api.ReportRequestOrderBy o) { |
| 403 buildCounterReportRequestOrderBy++; | 403 buildCounterReportRequestOrderBy++; |
| 404 if (buildCounterReportRequestOrderBy < 3) { | 404 if (buildCounterReportRequestOrderBy < 3) { |
| 405 checkReportApiColumnSpec(o.column); | 405 checkReportApiColumnSpec(o.column); |
| 406 unittest.expect(o.sortOrder, unittest.equals('foo')); | 406 unittest.expect(o.sortOrder, unittest.equals('foo')); |
| 407 } | 407 } |
| 408 buildCounterReportRequestOrderBy--; | 408 buildCounterReportRequestOrderBy--; |
| 409 } | 409 } |
| 410 | 410 |
| 411 buildUnnamed739() { | 411 buildUnnamed767() { |
| 412 var o = new core.List<api.ReportRequestOrderBy>(); | 412 var o = new core.List<api.ReportRequestOrderBy>(); |
| 413 o.add(buildReportRequestOrderBy()); | 413 o.add(buildReportRequestOrderBy()); |
| 414 o.add(buildReportRequestOrderBy()); | 414 o.add(buildReportRequestOrderBy()); |
| 415 return o; | 415 return o; |
| 416 } | 416 } |
| 417 | 417 |
| 418 checkUnnamed739(core.List<api.ReportRequestOrderBy> o) { | 418 checkUnnamed767(core.List<api.ReportRequestOrderBy> o) { |
| 419 unittest.expect(o, unittest.hasLength(2)); | 419 unittest.expect(o, unittest.hasLength(2)); |
| 420 checkReportRequestOrderBy(o[0]); | 420 checkReportRequestOrderBy(o[0]); |
| 421 checkReportRequestOrderBy(o[1]); | 421 checkReportRequestOrderBy(o[1]); |
| 422 } | 422 } |
| 423 | 423 |
| 424 core.int buildCounterReportRequestReportScope = 0; | 424 core.int buildCounterReportRequestReportScope = 0; |
| 425 buildReportRequestReportScope() { | 425 buildReportRequestReportScope() { |
| 426 var o = new api.ReportRequestReportScope(); | 426 var o = new api.ReportRequestReportScope(); |
| 427 buildCounterReportRequestReportScope++; | 427 buildCounterReportRequestReportScope++; |
| 428 if (buildCounterReportRequestReportScope < 3) { | 428 if (buildCounterReportRequestReportScope < 3) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 unittest.expect(o.startDate, unittest.equals('foo')); | 475 unittest.expect(o.startDate, unittest.equals('foo')); |
| 476 } | 476 } |
| 477 buildCounterReportRequestTimeRange--; | 477 buildCounterReportRequestTimeRange--; |
| 478 } | 478 } |
| 479 | 479 |
| 480 core.int buildCounterReportRequest = 0; | 480 core.int buildCounterReportRequest = 0; |
| 481 buildReportRequest() { | 481 buildReportRequest() { |
| 482 var o = new api.ReportRequest(); | 482 var o = new api.ReportRequest(); |
| 483 buildCounterReportRequest++; | 483 buildCounterReportRequest++; |
| 484 if (buildCounterReportRequest < 3) { | 484 if (buildCounterReportRequest < 3) { |
| 485 o.columns = buildUnnamed736(); | 485 o.columns = buildUnnamed764(); |
| 486 o.downloadFormat = "foo"; | 486 o.downloadFormat = "foo"; |
| 487 o.filters = buildUnnamed738(); | 487 o.filters = buildUnnamed766(); |
| 488 o.includeDeletedEntities = true; | 488 o.includeDeletedEntities = true; |
| 489 o.includeRemovedEntities = true; | 489 o.includeRemovedEntities = true; |
| 490 o.maxRowsPerFile = 42; | 490 o.maxRowsPerFile = 42; |
| 491 o.orderBy = buildUnnamed739(); | 491 o.orderBy = buildUnnamed767(); |
| 492 o.reportScope = buildReportRequestReportScope(); | 492 o.reportScope = buildReportRequestReportScope(); |
| 493 o.reportType = "foo"; | 493 o.reportType = "foo"; |
| 494 o.rowCount = 42; | 494 o.rowCount = 42; |
| 495 o.startRow = 42; | 495 o.startRow = 42; |
| 496 o.statisticsCurrency = "foo"; | 496 o.statisticsCurrency = "foo"; |
| 497 o.timeRange = buildReportRequestTimeRange(); | 497 o.timeRange = buildReportRequestTimeRange(); |
| 498 o.verifySingleTimeZone = true; | 498 o.verifySingleTimeZone = true; |
| 499 } | 499 } |
| 500 buildCounterReportRequest--; | 500 buildCounterReportRequest--; |
| 501 return o; | 501 return o; |
| 502 } | 502 } |
| 503 | 503 |
| 504 checkReportRequest(api.ReportRequest o) { | 504 checkReportRequest(api.ReportRequest o) { |
| 505 buildCounterReportRequest++; | 505 buildCounterReportRequest++; |
| 506 if (buildCounterReportRequest < 3) { | 506 if (buildCounterReportRequest < 3) { |
| 507 checkUnnamed736(o.columns); | 507 checkUnnamed764(o.columns); |
| 508 unittest.expect(o.downloadFormat, unittest.equals('foo')); | 508 unittest.expect(o.downloadFormat, unittest.equals('foo')); |
| 509 checkUnnamed738(o.filters); | 509 checkUnnamed766(o.filters); |
| 510 unittest.expect(o.includeDeletedEntities, unittest.isTrue); | 510 unittest.expect(o.includeDeletedEntities, unittest.isTrue); |
| 511 unittest.expect(o.includeRemovedEntities, unittest.isTrue); | 511 unittest.expect(o.includeRemovedEntities, unittest.isTrue); |
| 512 unittest.expect(o.maxRowsPerFile, unittest.equals(42)); | 512 unittest.expect(o.maxRowsPerFile, unittest.equals(42)); |
| 513 checkUnnamed739(o.orderBy); | 513 checkUnnamed767(o.orderBy); |
| 514 checkReportRequestReportScope(o.reportScope); | 514 checkReportRequestReportScope(o.reportScope); |
| 515 unittest.expect(o.reportType, unittest.equals('foo')); | 515 unittest.expect(o.reportType, unittest.equals('foo')); |
| 516 unittest.expect(o.rowCount, unittest.equals(42)); | 516 unittest.expect(o.rowCount, unittest.equals(42)); |
| 517 unittest.expect(o.startRow, unittest.equals(42)); | 517 unittest.expect(o.startRow, unittest.equals(42)); |
| 518 unittest.expect(o.statisticsCurrency, unittest.equals('foo')); | 518 unittest.expect(o.statisticsCurrency, unittest.equals('foo')); |
| 519 checkReportRequestTimeRange(o.timeRange); | 519 checkReportRequestTimeRange(o.timeRange); |
| 520 unittest.expect(o.verifySingleTimeZone, unittest.isTrue); | 520 unittest.expect(o.verifySingleTimeZone, unittest.isTrue); |
| 521 } | 521 } |
| 522 buildCounterReportRequest--; | 522 buildCounterReportRequest--; |
| 523 } | 523 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 551 checkSavedColumn(api.SavedColumn o) { | 551 checkSavedColumn(api.SavedColumn o) { |
| 552 buildCounterSavedColumn++; | 552 buildCounterSavedColumn++; |
| 553 if (buildCounterSavedColumn < 3) { | 553 if (buildCounterSavedColumn < 3) { |
| 554 unittest.expect(o.kind, unittest.equals('foo')); | 554 unittest.expect(o.kind, unittest.equals('foo')); |
| 555 unittest.expect(o.savedColumnName, unittest.equals('foo')); | 555 unittest.expect(o.savedColumnName, unittest.equals('foo')); |
| 556 unittest.expect(o.type, unittest.equals('foo')); | 556 unittest.expect(o.type, unittest.equals('foo')); |
| 557 } | 557 } |
| 558 buildCounterSavedColumn--; | 558 buildCounterSavedColumn--; |
| 559 } | 559 } |
| 560 | 560 |
| 561 buildUnnamed740() { | 561 buildUnnamed768() { |
| 562 var o = new core.List<api.SavedColumn>(); | 562 var o = new core.List<api.SavedColumn>(); |
| 563 o.add(buildSavedColumn()); | 563 o.add(buildSavedColumn()); |
| 564 o.add(buildSavedColumn()); | 564 o.add(buildSavedColumn()); |
| 565 return o; | 565 return o; |
| 566 } | 566 } |
| 567 | 567 |
| 568 checkUnnamed740(core.List<api.SavedColumn> o) { | 568 checkUnnamed768(core.List<api.SavedColumn> o) { |
| 569 unittest.expect(o, unittest.hasLength(2)); | 569 unittest.expect(o, unittest.hasLength(2)); |
| 570 checkSavedColumn(o[0]); | 570 checkSavedColumn(o[0]); |
| 571 checkSavedColumn(o[1]); | 571 checkSavedColumn(o[1]); |
| 572 } | 572 } |
| 573 | 573 |
| 574 core.int buildCounterSavedColumnList = 0; | 574 core.int buildCounterSavedColumnList = 0; |
| 575 buildSavedColumnList() { | 575 buildSavedColumnList() { |
| 576 var o = new api.SavedColumnList(); | 576 var o = new api.SavedColumnList(); |
| 577 buildCounterSavedColumnList++; | 577 buildCounterSavedColumnList++; |
| 578 if (buildCounterSavedColumnList < 3) { | 578 if (buildCounterSavedColumnList < 3) { |
| 579 o.items = buildUnnamed740(); | 579 o.items = buildUnnamed768(); |
| 580 o.kind = "foo"; | 580 o.kind = "foo"; |
| 581 } | 581 } |
| 582 buildCounterSavedColumnList--; | 582 buildCounterSavedColumnList--; |
| 583 return o; | 583 return o; |
| 584 } | 584 } |
| 585 | 585 |
| 586 checkSavedColumnList(api.SavedColumnList o) { | 586 checkSavedColumnList(api.SavedColumnList o) { |
| 587 buildCounterSavedColumnList++; | 587 buildCounterSavedColumnList++; |
| 588 if (buildCounterSavedColumnList < 3) { | 588 if (buildCounterSavedColumnList < 3) { |
| 589 checkUnnamed740(o.items); | 589 checkUnnamed768(o.items); |
| 590 unittest.expect(o.kind, unittest.equals('foo')); | 590 unittest.expect(o.kind, unittest.equals('foo')); |
| 591 } | 591 } |
| 592 buildCounterSavedColumnList--; | 592 buildCounterSavedColumnList--; |
| 593 } | 593 } |
| 594 | 594 |
| 595 buildUnnamed741() { | 595 buildUnnamed769() { |
| 596 var o = new core.List<api.Availability>(); | 596 var o = new core.List<api.Availability>(); |
| 597 o.add(buildAvailability()); | 597 o.add(buildAvailability()); |
| 598 o.add(buildAvailability()); | 598 o.add(buildAvailability()); |
| 599 return o; | 599 return o; |
| 600 } | 600 } |
| 601 | 601 |
| 602 checkUnnamed741(core.List<api.Availability> o) { | 602 checkUnnamed769(core.List<api.Availability> o) { |
| 603 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
| 604 checkAvailability(o[0]); | 604 checkAvailability(o[0]); |
| 605 checkAvailability(o[1]); | 605 checkAvailability(o[1]); |
| 606 } | 606 } |
| 607 | 607 |
| 608 core.int buildCounterUpdateAvailabilityRequest = 0; | 608 core.int buildCounterUpdateAvailabilityRequest = 0; |
| 609 buildUpdateAvailabilityRequest() { | 609 buildUpdateAvailabilityRequest() { |
| 610 var o = new api.UpdateAvailabilityRequest(); | 610 var o = new api.UpdateAvailabilityRequest(); |
| 611 buildCounterUpdateAvailabilityRequest++; | 611 buildCounterUpdateAvailabilityRequest++; |
| 612 if (buildCounterUpdateAvailabilityRequest < 3) { | 612 if (buildCounterUpdateAvailabilityRequest < 3) { |
| 613 o.availabilities = buildUnnamed741(); | 613 o.availabilities = buildUnnamed769(); |
| 614 } | 614 } |
| 615 buildCounterUpdateAvailabilityRequest--; | 615 buildCounterUpdateAvailabilityRequest--; |
| 616 return o; | 616 return o; |
| 617 } | 617 } |
| 618 | 618 |
| 619 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { | 619 checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { |
| 620 buildCounterUpdateAvailabilityRequest++; | 620 buildCounterUpdateAvailabilityRequest++; |
| 621 if (buildCounterUpdateAvailabilityRequest < 3) { | 621 if (buildCounterUpdateAvailabilityRequest < 3) { |
| 622 checkUnnamed741(o.availabilities); | 622 checkUnnamed769(o.availabilities); |
| 623 } | 623 } |
| 624 buildCounterUpdateAvailabilityRequest--; | 624 buildCounterUpdateAvailabilityRequest--; |
| 625 } | 625 } |
| 626 | 626 |
| 627 buildUnnamed742() { | 627 buildUnnamed770() { |
| 628 var o = new core.List<api.Availability>(); | 628 var o = new core.List<api.Availability>(); |
| 629 o.add(buildAvailability()); | 629 o.add(buildAvailability()); |
| 630 o.add(buildAvailability()); | 630 o.add(buildAvailability()); |
| 631 return o; | 631 return o; |
| 632 } | 632 } |
| 633 | 633 |
| 634 checkUnnamed742(core.List<api.Availability> o) { | 634 checkUnnamed770(core.List<api.Availability> o) { |
| 635 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
| 636 checkAvailability(o[0]); | 636 checkAvailability(o[0]); |
| 637 checkAvailability(o[1]); | 637 checkAvailability(o[1]); |
| 638 } | 638 } |
| 639 | 639 |
| 640 core.int buildCounterUpdateAvailabilityResponse = 0; | 640 core.int buildCounterUpdateAvailabilityResponse = 0; |
| 641 buildUpdateAvailabilityResponse() { | 641 buildUpdateAvailabilityResponse() { |
| 642 var o = new api.UpdateAvailabilityResponse(); | 642 var o = new api.UpdateAvailabilityResponse(); |
| 643 buildCounterUpdateAvailabilityResponse++; | 643 buildCounterUpdateAvailabilityResponse++; |
| 644 if (buildCounterUpdateAvailabilityResponse < 3) { | 644 if (buildCounterUpdateAvailabilityResponse < 3) { |
| 645 o.availabilities = buildUnnamed742(); | 645 o.availabilities = buildUnnamed770(); |
| 646 } | 646 } |
| 647 buildCounterUpdateAvailabilityResponse--; | 647 buildCounterUpdateAvailabilityResponse--; |
| 648 return o; | 648 return o; |
| 649 } | 649 } |
| 650 | 650 |
| 651 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { | 651 checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { |
| 652 buildCounterUpdateAvailabilityResponse++; | 652 buildCounterUpdateAvailabilityResponse++; |
| 653 if (buildCounterUpdateAvailabilityResponse < 3) { | 653 if (buildCounterUpdateAvailabilityResponse < 3) { |
| 654 checkUnnamed742(o.availabilities); | 654 checkUnnamed770(o.availabilities); |
| 655 } | 655 } |
| 656 buildCounterUpdateAvailabilityResponse--; | 656 buildCounterUpdateAvailabilityResponse--; |
| 657 } | 657 } |
| 658 | 658 |
| 659 | 659 |
| 660 main() { | 660 main() { |
| 661 unittest.group("obj-schema-Availability", () { | 661 unittest.group("obj-schema-Availability", () { |
| 662 unittest.test("to-json--from-json", () { | 662 unittest.test("to-json--from-json", () { |
| 663 var o = buildAvailability(); | 663 var o = buildAvailability(); |
| 664 var od = new api.Availability.fromJson(o.toJson()); | 664 var od = new api.Availability.fromJson(o.toJson()); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 var arg_startRow = 42; | 834 var arg_startRow = 42; |
| 835 var arg_adGroupId = "foo"; | 835 var arg_adGroupId = "foo"; |
| 836 var arg_adId = "foo"; | 836 var arg_adId = "foo"; |
| 837 var arg_campaignId = "foo"; | 837 var arg_campaignId = "foo"; |
| 838 var arg_criterionId = "foo"; | 838 var arg_criterionId = "foo"; |
| 839 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 839 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 840 var path = (req.url).path; | 840 var path = (req.url).path; |
| 841 var pathOffset = 0; | 841 var pathOffset = 0; |
| 842 var index; | 842 var index; |
| 843 var subPart; | 843 var subPart; |
| 844 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 844 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 845 pathOffset += 22; | 845 pathOffset += 1; |
| 846 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 847 pathOffset += 21; |
| 846 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("agency/")); | 848 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("agency/")); |
| 847 pathOffset += 7; | 849 pathOffset += 7; |
| 848 index = path.indexOf("/advertiser/", pathOffset); | 850 index = path.indexOf("/advertiser/", pathOffset); |
| 849 unittest.expect(index >= 0, unittest.isTrue); | 851 unittest.expect(index >= 0, unittest.isTrue); |
| 850 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 852 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 851 pathOffset = index; | 853 pathOffset = index; |
| 852 unittest.expect(subPart, unittest.equals("$arg_agencyId")); | 854 unittest.expect(subPart, unittest.equals("$arg_agencyId")); |
| 853 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertiser/")); | 855 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertiser/")); |
| 854 pathOffset += 12; | 856 pathOffset += 12; |
| 855 index = path.indexOf("/engine/", pathOffset); | 857 index = path.indexOf("/engine/", pathOffset); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).convers
ion; | 912 api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).convers
ion; |
| 911 var arg_request = buildConversionList(); | 913 var arg_request = buildConversionList(); |
| 912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 914 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 913 var obj = new api.ConversionList.fromJson(json); | 915 var obj = new api.ConversionList.fromJson(json); |
| 914 checkConversionList(obj); | 916 checkConversionList(obj); |
| 915 | 917 |
| 916 var path = (req.url).path; | 918 var path = (req.url).path; |
| 917 var pathOffset = 0; | 919 var pathOffset = 0; |
| 918 var index; | 920 var index; |
| 919 var subPart; | 921 var subPart; |
| 920 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 922 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 921 pathOffset += 22; | 923 pathOffset += 1; |
| 924 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 925 pathOffset += 21; |
| 922 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("conversion")); | 926 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("conversion")); |
| 923 pathOffset += 10; | 927 pathOffset += 10; |
| 924 | 928 |
| 925 var query = (req.url).query; | 929 var query = (req.url).query; |
| 926 var queryOffset = 0; | 930 var queryOffset = 0; |
| 927 var queryMap = {}; | 931 var queryMap = {}; |
| 928 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 932 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 929 parseBool(n) { | 933 parseBool(n) { |
| 930 if (n == "true") return true; | 934 if (n == "true") return true; |
| 931 if (n == "false") return false; | 935 if (n == "false") return false; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 var arg_startDate = 42; | 968 var arg_startDate = 42; |
| 965 var arg_startRow = 42; | 969 var arg_startRow = 42; |
| 966 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 970 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 967 var obj = new api.ConversionList.fromJson(json); | 971 var obj = new api.ConversionList.fromJson(json); |
| 968 checkConversionList(obj); | 972 checkConversionList(obj); |
| 969 | 973 |
| 970 var path = (req.url).path; | 974 var path = (req.url).path; |
| 971 var pathOffset = 0; | 975 var pathOffset = 0; |
| 972 var index; | 976 var index; |
| 973 var subPart; | 977 var subPart; |
| 974 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 978 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 975 pathOffset += 22; | 979 pathOffset += 1; |
| 980 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 981 pathOffset += 21; |
| 976 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("conversion")); | 982 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("conversion")); |
| 977 pathOffset += 10; | 983 pathOffset += 10; |
| 978 | 984 |
| 979 var query = (req.url).query; | 985 var query = (req.url).query; |
| 980 var queryOffset = 0; | 986 var queryOffset = 0; |
| 981 var queryMap = {}; | 987 var queryMap = {}; |
| 982 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 988 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 983 parseBool(n) { | 989 parseBool(n) { |
| 984 if (n == "true") return true; | 990 if (n == "true") return true; |
| 985 if (n == "false") return false; | 991 if (n == "false") return false; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).convers
ion; | 1024 api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).convers
ion; |
| 1019 var arg_request = buildConversionList(); | 1025 var arg_request = buildConversionList(); |
| 1020 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1026 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1021 var obj = new api.ConversionList.fromJson(json); | 1027 var obj = new api.ConversionList.fromJson(json); |
| 1022 checkConversionList(obj); | 1028 checkConversionList(obj); |
| 1023 | 1029 |
| 1024 var path = (req.url).path; | 1030 var path = (req.url).path; |
| 1025 var pathOffset = 0; | 1031 var pathOffset = 0; |
| 1026 var index; | 1032 var index; |
| 1027 var subPart; | 1033 var subPart; |
| 1028 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 1034 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1029 pathOffset += 22; | 1035 pathOffset += 1; |
| 1036 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 1037 pathOffset += 21; |
| 1030 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("conversion")); | 1038 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("conversion")); |
| 1031 pathOffset += 10; | 1039 pathOffset += 10; |
| 1032 | 1040 |
| 1033 var query = (req.url).query; | 1041 var query = (req.url).query; |
| 1034 var queryOffset = 0; | 1042 var queryOffset = 0; |
| 1035 var queryMap = {}; | 1043 var queryMap = {}; |
| 1036 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1044 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1037 parseBool(n) { | 1045 parseBool(n) { |
| 1038 if (n == "true") return true; | 1046 if (n == "true") return true; |
| 1039 if (n == "false") return false; | 1047 if (n == "false") return false; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1065 api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).convers
ion; | 1073 api.ConversionResourceApi res = new api.DoubleclicksearchApi(mock).convers
ion; |
| 1066 var arg_request = buildUpdateAvailabilityRequest(); | 1074 var arg_request = buildUpdateAvailabilityRequest(); |
| 1067 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1075 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1068 var obj = new api.UpdateAvailabilityRequest.fromJson(json); | 1076 var obj = new api.UpdateAvailabilityRequest.fromJson(json); |
| 1069 checkUpdateAvailabilityRequest(obj); | 1077 checkUpdateAvailabilityRequest(obj); |
| 1070 | 1078 |
| 1071 var path = (req.url).path; | 1079 var path = (req.url).path; |
| 1072 var pathOffset = 0; | 1080 var pathOffset = 0; |
| 1073 var index; | 1081 var index; |
| 1074 var subPart; | 1082 var subPart; |
| 1075 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 1083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1076 pathOffset += 22; | 1084 pathOffset += 1; |
| 1085 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 1086 pathOffset += 21; |
| 1077 unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.eq
uals("conversion/updateAvailability")); | 1087 unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.eq
uals("conversion/updateAvailability")); |
| 1078 pathOffset += 29; | 1088 pathOffset += 29; |
| 1079 | 1089 |
| 1080 var query = (req.url).query; | 1090 var query = (req.url).query; |
| 1081 var queryOffset = 0; | 1091 var queryOffset = 0; |
| 1082 var queryMap = {}; | 1092 var queryMap = {}; |
| 1083 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1093 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1084 parseBool(n) { | 1094 parseBool(n) { |
| 1085 if (n == "true") return true; | 1095 if (n == "true") return true; |
| 1086 if (n == "false") return false; | 1096 if (n == "false") return false; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1116 api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; | 1126 api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; |
| 1117 var arg_request_1 = buildReportRequest(); | 1127 var arg_request_1 = buildReportRequest(); |
| 1118 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1128 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1119 var obj = new api.ReportRequest.fromJson(json); | 1129 var obj = new api.ReportRequest.fromJson(json); |
| 1120 checkReportRequest(obj); | 1130 checkReportRequest(obj); |
| 1121 | 1131 |
| 1122 var path = (req.url).path; | 1132 var path = (req.url).path; |
| 1123 var pathOffset = 0; | 1133 var pathOffset = 0; |
| 1124 var index; | 1134 var index; |
| 1125 var subPart; | 1135 var subPart; |
| 1126 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 1136 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1127 pathOffset += 22; | 1137 pathOffset += 1; |
| 1138 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 1139 pathOffset += 21; |
| 1128 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("reports/generate")); | 1140 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("reports/generate")); |
| 1129 pathOffset += 16; | 1141 pathOffset += 16; |
| 1130 | 1142 |
| 1131 var query = (req.url).query; | 1143 var query = (req.url).query; |
| 1132 var queryOffset = 0; | 1144 var queryOffset = 0; |
| 1133 var queryMap = {}; | 1145 var queryMap = {}; |
| 1134 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1146 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1135 parseBool(n) { | 1147 parseBool(n) { |
| 1136 if (n == "true") return true; | 1148 if (n == "true") return true; |
| 1137 if (n == "false") return false; | 1149 if (n == "false") return false; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1160 unittest.test("method--get", () { | 1172 unittest.test("method--get", () { |
| 1161 | 1173 |
| 1162 var mock = new common_test.HttpServerMock(); | 1174 var mock = new common_test.HttpServerMock(); |
| 1163 api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; | 1175 api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; |
| 1164 var arg_reportId = "foo"; | 1176 var arg_reportId = "foo"; |
| 1165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1177 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1166 var path = (req.url).path; | 1178 var path = (req.url).path; |
| 1167 var pathOffset = 0; | 1179 var pathOffset = 0; |
| 1168 var index; | 1180 var index; |
| 1169 var subPart; | 1181 var subPart; |
| 1170 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 1182 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1171 pathOffset += 22; | 1183 pathOffset += 1; |
| 1184 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 1185 pathOffset += 21; |
| 1172 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); | 1186 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); |
| 1173 pathOffset += 8; | 1187 pathOffset += 8; |
| 1174 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1188 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 1175 pathOffset = path.length; | 1189 pathOffset = path.length; |
| 1176 unittest.expect(subPart, unittest.equals("$arg_reportId")); | 1190 unittest.expect(subPart, unittest.equals("$arg_reportId")); |
| 1177 | 1191 |
| 1178 var query = (req.url).query; | 1192 var query = (req.url).query; |
| 1179 var queryOffset = 0; | 1193 var queryOffset = 0; |
| 1180 var queryMap = {}; | 1194 var queryMap = {}; |
| 1181 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1195 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1210 | 1224 |
| 1211 var mock = new common_test.HttpServerMock(); | 1225 var mock = new common_test.HttpServerMock(); |
| 1212 api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; | 1226 api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; |
| 1213 var arg_reportId = "foo"; | 1227 var arg_reportId = "foo"; |
| 1214 var arg_reportFragment = 42; | 1228 var arg_reportFragment = 42; |
| 1215 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1229 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1216 var path = (req.url).path; | 1230 var path = (req.url).path; |
| 1217 var pathOffset = 0; | 1231 var pathOffset = 0; |
| 1218 var index; | 1232 var index; |
| 1219 var subPart; | 1233 var subPart; |
| 1220 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 1234 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1221 pathOffset += 22; | 1235 pathOffset += 1; |
| 1236 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 1237 pathOffset += 21; |
| 1222 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); | 1238 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); |
| 1223 pathOffset += 8; | 1239 pathOffset += 8; |
| 1224 index = path.indexOf("/files/", pathOffset); | 1240 index = path.indexOf("/files/", pathOffset); |
| 1225 unittest.expect(index >= 0, unittest.isTrue); | 1241 unittest.expect(index >= 0, unittest.isTrue); |
| 1226 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1242 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1227 pathOffset = index; | 1243 pathOffset = index; |
| 1228 unittest.expect(subPart, unittest.equals("$arg_reportId")); | 1244 unittest.expect(subPart, unittest.equals("$arg_reportId")); |
| 1229 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/files/")); | 1245 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/files/")); |
| 1230 pathOffset += 7; | 1246 pathOffset += 7; |
| 1231 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1247 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; | 1281 api.ReportsResourceApi res = new api.DoubleclicksearchApi(mock).reports; |
| 1266 var arg_request_1 = buildReportRequest(); | 1282 var arg_request_1 = buildReportRequest(); |
| 1267 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1283 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1268 var obj = new api.ReportRequest.fromJson(json); | 1284 var obj = new api.ReportRequest.fromJson(json); |
| 1269 checkReportRequest(obj); | 1285 checkReportRequest(obj); |
| 1270 | 1286 |
| 1271 var path = (req.url).path; | 1287 var path = (req.url).path; |
| 1272 var pathOffset = 0; | 1288 var pathOffset = 0; |
| 1273 var index; | 1289 var index; |
| 1274 var subPart; | 1290 var subPart; |
| 1275 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 1291 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1276 pathOffset += 22; | 1292 pathOffset += 1; |
| 1293 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 1294 pathOffset += 21; |
| 1277 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("reports")); | 1295 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("reports")); |
| 1278 pathOffset += 7; | 1296 pathOffset += 7; |
| 1279 | 1297 |
| 1280 var query = (req.url).query; | 1298 var query = (req.url).query; |
| 1281 var queryOffset = 0; | 1299 var queryOffset = 0; |
| 1282 var queryMap = {}; | 1300 var queryMap = {}; |
| 1283 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1301 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1284 parseBool(n) { | 1302 parseBool(n) { |
| 1285 if (n == "true") return true; | 1303 if (n == "true") return true; |
| 1286 if (n == "false") return false; | 1304 if (n == "false") return false; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1314 | 1332 |
| 1315 var mock = new common_test.HttpServerMock(); | 1333 var mock = new common_test.HttpServerMock(); |
| 1316 api.SavedColumnsResourceApi res = new api.DoubleclicksearchApi(mock).saved
Columns; | 1334 api.SavedColumnsResourceApi res = new api.DoubleclicksearchApi(mock).saved
Columns; |
| 1317 var arg_agencyId = "foo"; | 1335 var arg_agencyId = "foo"; |
| 1318 var arg_advertiserId = "foo"; | 1336 var arg_advertiserId = "foo"; |
| 1319 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1337 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1320 var path = (req.url).path; | 1338 var path = (req.url).path; |
| 1321 var pathOffset = 0; | 1339 var pathOffset = 0; |
| 1322 var index; | 1340 var index; |
| 1323 var subPart; | 1341 var subPart; |
| 1324 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/doubleclicksearch/v2/")); | 1342 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1325 pathOffset += 22; | 1343 pathOffset += 1; |
| 1344 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("doubleclicksearch/v2/")); |
| 1345 pathOffset += 21; |
| 1326 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("agency/")); | 1346 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("agency/")); |
| 1327 pathOffset += 7; | 1347 pathOffset += 7; |
| 1328 index = path.indexOf("/advertiser/", pathOffset); | 1348 index = path.indexOf("/advertiser/", pathOffset); |
| 1329 unittest.expect(index >= 0, unittest.isTrue); | 1349 unittest.expect(index >= 0, unittest.isTrue); |
| 1330 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1350 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1331 pathOffset = index; | 1351 pathOffset = index; |
| 1332 unittest.expect(subPart, unittest.equals("$arg_agencyId")); | 1352 unittest.expect(subPart, unittest.equals("$arg_agencyId")); |
| 1333 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertiser/")); | 1353 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertiser/")); |
| 1334 pathOffset += 12; | 1354 pathOffset += 12; |
| 1335 index = path.indexOf("/savedcolumns", pathOffset); | 1355 index = path.indexOf("/savedcolumns", pathOffset); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S
avedColumnList response) { | 1387 res.list(arg_agencyId, arg_advertiserId).then(unittest.expectAsync(((api.S
avedColumnList response) { |
| 1368 checkSavedColumnList(response); | 1388 checkSavedColumnList(response); |
| 1369 }))); | 1389 }))); |
| 1370 }); | 1390 }); |
| 1371 | 1391 |
| 1372 }); | 1392 }); |
| 1373 | 1393 |
| 1374 | 1394 |
| 1375 } | 1395 } |
| 1376 | 1396 |
| OLD | NEW |