| OLD | NEW |
| 1 library googleapis.dfareporting.v1_3.test; | 1 library googleapis.dfareporting.v1_3.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; |
| 11 import 'package:googleapis/common/common.dart' as common; | |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
| 13 import '../common/common_internal_test.dart' as common_test; | |
| 14 | 11 |
| 15 import 'package:googleapis/dfareporting/v1_3.dart' as api; | 12 import 'package:googleapis/dfareporting/v1_3.dart' as api; |
| 16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
| 18 | 22 |
| 19 buildUnnamed196() { | 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
| 53 |
| 54 buildUnnamed643() { |
| 20 var o = new core.List<api.DimensionValue>(); | 55 var o = new core.List<api.DimensionValue>(); |
| 21 o.add(buildDimensionValue()); | 56 o.add(buildDimensionValue()); |
| 22 o.add(buildDimensionValue()); | 57 o.add(buildDimensionValue()); |
| 23 return o; | 58 return o; |
| 24 } | 59 } |
| 25 | 60 |
| 26 checkUnnamed196(core.List<api.DimensionValue> o) { | 61 checkUnnamed643(core.List<api.DimensionValue> o) { |
| 27 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 28 checkDimensionValue(o[0]); | 63 checkDimensionValue(o[0]); |
| 29 checkDimensionValue(o[1]); | 64 checkDimensionValue(o[1]); |
| 30 } | 65 } |
| 31 | 66 |
| 32 buildUnnamed197() { | 67 buildUnnamed644() { |
| 33 var o = new core.List<core.String>(); | 68 var o = new core.List<core.String>(); |
| 34 o.add("foo"); | 69 o.add("foo"); |
| 35 o.add("foo"); | 70 o.add("foo"); |
| 36 return o; | 71 return o; |
| 37 } | 72 } |
| 38 | 73 |
| 39 checkUnnamed197(core.List<core.String> o) { | 74 checkUnnamed644(core.List<core.String> o) { |
| 40 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
| 41 unittest.expect(o[0], unittest.equals('foo')); | 76 unittest.expect(o[0], unittest.equals('foo')); |
| 42 unittest.expect(o[1], unittest.equals('foo')); | 77 unittest.expect(o[1], unittest.equals('foo')); |
| 43 } | 78 } |
| 44 | 79 |
| 45 core.int buildCounterActivities = 0; | 80 core.int buildCounterActivities = 0; |
| 46 buildActivities() { | 81 buildActivities() { |
| 47 var o = new api.Activities(); | 82 var o = new api.Activities(); |
| 48 buildCounterActivities++; | 83 buildCounterActivities++; |
| 49 if (buildCounterActivities < 3) { | 84 if (buildCounterActivities < 3) { |
| 50 o.filters = buildUnnamed196(); | 85 o.filters = buildUnnamed643(); |
| 51 o.kind = "foo"; | 86 o.kind = "foo"; |
| 52 o.metricNames = buildUnnamed197(); | 87 o.metricNames = buildUnnamed644(); |
| 53 } | 88 } |
| 54 buildCounterActivities--; | 89 buildCounterActivities--; |
| 55 return o; | 90 return o; |
| 56 } | 91 } |
| 57 | 92 |
| 58 checkActivities(api.Activities o) { | 93 checkActivities(api.Activities o) { |
| 59 buildCounterActivities++; | 94 buildCounterActivities++; |
| 60 if (buildCounterActivities < 3) { | 95 if (buildCounterActivities < 3) { |
| 61 checkUnnamed196(o.filters); | 96 checkUnnamed643(o.filters); |
| 62 unittest.expect(o.kind, unittest.equals('foo')); | 97 unittest.expect(o.kind, unittest.equals('foo')); |
| 63 checkUnnamed197(o.metricNames); | 98 checkUnnamed644(o.metricNames); |
| 64 } | 99 } |
| 65 buildCounterActivities--; | 100 buildCounterActivities--; |
| 66 } | 101 } |
| 67 | 102 |
| 68 core.int buildCounterCompatibleFields = 0; | 103 core.int buildCounterCompatibleFields = 0; |
| 69 buildCompatibleFields() { | 104 buildCompatibleFields() { |
| 70 var o = new api.CompatibleFields(); | 105 var o = new api.CompatibleFields(); |
| 71 buildCounterCompatibleFields++; | 106 buildCounterCompatibleFields++; |
| 72 if (buildCounterCompatibleFields < 3) { | 107 if (buildCounterCompatibleFields < 3) { |
| 73 o.crossDimensionReachReportCompatibleFields = buildCrossDimensionReachReport
CompatibleFields(); | 108 o.crossDimensionReachReportCompatibleFields = buildCrossDimensionReachReport
CompatibleFields(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 87 checkCrossDimensionReachReportCompatibleFields(o.crossDimensionReachReportCo
mpatibleFields); | 122 checkCrossDimensionReachReportCompatibleFields(o.crossDimensionReachReportCo
mpatibleFields); |
| 88 checkFloodlightReportCompatibleFields(o.floodlightReportCompatibleFields); | 123 checkFloodlightReportCompatibleFields(o.floodlightReportCompatibleFields); |
| 89 unittest.expect(o.kind, unittest.equals('foo')); | 124 unittest.expect(o.kind, unittest.equals('foo')); |
| 90 checkPathToConversionReportCompatibleFields(o.pathToConversionReportCompatib
leFields); | 125 checkPathToConversionReportCompatibleFields(o.pathToConversionReportCompatib
leFields); |
| 91 checkReachReportCompatibleFields(o.reachReportCompatibleFields); | 126 checkReachReportCompatibleFields(o.reachReportCompatibleFields); |
| 92 checkReportCompatibleFields(o.reportCompatibleFields); | 127 checkReportCompatibleFields(o.reportCompatibleFields); |
| 93 } | 128 } |
| 94 buildCounterCompatibleFields--; | 129 buildCounterCompatibleFields--; |
| 95 } | 130 } |
| 96 | 131 |
| 97 buildUnnamed198() { | 132 buildUnnamed645() { |
| 98 var o = new core.List<api.Dimension>(); | 133 var o = new core.List<api.Dimension>(); |
| 99 o.add(buildDimension()); | 134 o.add(buildDimension()); |
| 100 o.add(buildDimension()); | 135 o.add(buildDimension()); |
| 101 return o; | 136 return o; |
| 102 } | 137 } |
| 103 | 138 |
| 104 checkUnnamed198(core.List<api.Dimension> o) { | 139 checkUnnamed645(core.List<api.Dimension> o) { |
| 105 unittest.expect(o, unittest.hasLength(2)); | 140 unittest.expect(o, unittest.hasLength(2)); |
| 106 checkDimension(o[0]); | 141 checkDimension(o[0]); |
| 107 checkDimension(o[1]); | 142 checkDimension(o[1]); |
| 108 } | 143 } |
| 109 | 144 |
| 110 buildUnnamed199() { | 145 buildUnnamed646() { |
| 111 var o = new core.List<api.Dimension>(); | 146 var o = new core.List<api.Dimension>(); |
| 112 o.add(buildDimension()); | 147 o.add(buildDimension()); |
| 113 o.add(buildDimension()); | 148 o.add(buildDimension()); |
| 114 return o; | 149 return o; |
| 115 } | 150 } |
| 116 | 151 |
| 117 checkUnnamed199(core.List<api.Dimension> o) { | 152 checkUnnamed646(core.List<api.Dimension> o) { |
| 118 unittest.expect(o, unittest.hasLength(2)); | 153 unittest.expect(o, unittest.hasLength(2)); |
| 119 checkDimension(o[0]); | 154 checkDimension(o[0]); |
| 120 checkDimension(o[1]); | 155 checkDimension(o[1]); |
| 121 } | 156 } |
| 122 | 157 |
| 123 buildUnnamed200() { | 158 buildUnnamed647() { |
| 124 var o = new core.List<api.Metric>(); | 159 var o = new core.List<api.Metric>(); |
| 125 o.add(buildMetric()); | 160 o.add(buildMetric()); |
| 126 o.add(buildMetric()); | 161 o.add(buildMetric()); |
| 127 return o; | 162 return o; |
| 128 } | 163 } |
| 129 | 164 |
| 130 checkUnnamed200(core.List<api.Metric> o) { | 165 checkUnnamed647(core.List<api.Metric> o) { |
| 131 unittest.expect(o, unittest.hasLength(2)); | 166 unittest.expect(o, unittest.hasLength(2)); |
| 132 checkMetric(o[0]); | 167 checkMetric(o[0]); |
| 133 checkMetric(o[1]); | 168 checkMetric(o[1]); |
| 134 } | 169 } |
| 135 | 170 |
| 136 buildUnnamed201() { | 171 buildUnnamed648() { |
| 137 var o = new core.List<api.Metric>(); | 172 var o = new core.List<api.Metric>(); |
| 138 o.add(buildMetric()); | 173 o.add(buildMetric()); |
| 139 o.add(buildMetric()); | 174 o.add(buildMetric()); |
| 140 return o; | 175 return o; |
| 141 } | 176 } |
| 142 | 177 |
| 143 checkUnnamed201(core.List<api.Metric> o) { | 178 checkUnnamed648(core.List<api.Metric> o) { |
| 144 unittest.expect(o, unittest.hasLength(2)); | 179 unittest.expect(o, unittest.hasLength(2)); |
| 145 checkMetric(o[0]); | 180 checkMetric(o[0]); |
| 146 checkMetric(o[1]); | 181 checkMetric(o[1]); |
| 147 } | 182 } |
| 148 | 183 |
| 149 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; | 184 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; |
| 150 buildCrossDimensionReachReportCompatibleFields() { | 185 buildCrossDimensionReachReportCompatibleFields() { |
| 151 var o = new api.CrossDimensionReachReportCompatibleFields(); | 186 var o = new api.CrossDimensionReachReportCompatibleFields(); |
| 152 buildCounterCrossDimensionReachReportCompatibleFields++; | 187 buildCounterCrossDimensionReachReportCompatibleFields++; |
| 153 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { | 188 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { |
| 154 o.breakdown = buildUnnamed198(); | 189 o.breakdown = buildUnnamed645(); |
| 155 o.dimensionFilters = buildUnnamed199(); | 190 o.dimensionFilters = buildUnnamed646(); |
| 156 o.kind = "foo"; | 191 o.kind = "foo"; |
| 157 o.metrics = buildUnnamed200(); | 192 o.metrics = buildUnnamed647(); |
| 158 o.overlapMetrics = buildUnnamed201(); | 193 o.overlapMetrics = buildUnnamed648(); |
| 159 } | 194 } |
| 160 buildCounterCrossDimensionReachReportCompatibleFields--; | 195 buildCounterCrossDimensionReachReportCompatibleFields--; |
| 161 return o; | 196 return o; |
| 162 } | 197 } |
| 163 | 198 |
| 164 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp
atibleFields o) { | 199 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp
atibleFields o) { |
| 165 buildCounterCrossDimensionReachReportCompatibleFields++; | 200 buildCounterCrossDimensionReachReportCompatibleFields++; |
| 166 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { | 201 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { |
| 167 checkUnnamed198(o.breakdown); | 202 checkUnnamed645(o.breakdown); |
| 168 checkUnnamed199(o.dimensionFilters); | 203 checkUnnamed646(o.dimensionFilters); |
| 169 unittest.expect(o.kind, unittest.equals('foo')); | 204 unittest.expect(o.kind, unittest.equals('foo')); |
| 170 checkUnnamed200(o.metrics); | 205 checkUnnamed647(o.metrics); |
| 171 checkUnnamed201(o.overlapMetrics); | 206 checkUnnamed648(o.overlapMetrics); |
| 172 } | 207 } |
| 173 buildCounterCrossDimensionReachReportCompatibleFields--; | 208 buildCounterCrossDimensionReachReportCompatibleFields--; |
| 174 } | 209 } |
| 175 | 210 |
| 176 buildUnnamed202() { | 211 buildUnnamed649() { |
| 177 var o = new core.List<api.DimensionValue>(); | 212 var o = new core.List<api.DimensionValue>(); |
| 178 o.add(buildDimensionValue()); | 213 o.add(buildDimensionValue()); |
| 179 o.add(buildDimensionValue()); | 214 o.add(buildDimensionValue()); |
| 180 return o; | 215 return o; |
| 181 } | 216 } |
| 182 | 217 |
| 183 checkUnnamed202(core.List<api.DimensionValue> o) { | 218 checkUnnamed649(core.List<api.DimensionValue> o) { |
| 184 unittest.expect(o, unittest.hasLength(2)); | 219 unittest.expect(o, unittest.hasLength(2)); |
| 185 checkDimensionValue(o[0]); | 220 checkDimensionValue(o[0]); |
| 186 checkDimensionValue(o[1]); | 221 checkDimensionValue(o[1]); |
| 187 } | 222 } |
| 188 | 223 |
| 189 core.int buildCounterCustomRichMediaEvents = 0; | 224 core.int buildCounterCustomRichMediaEvents = 0; |
| 190 buildCustomRichMediaEvents() { | 225 buildCustomRichMediaEvents() { |
| 191 var o = new api.CustomRichMediaEvents(); | 226 var o = new api.CustomRichMediaEvents(); |
| 192 buildCounterCustomRichMediaEvents++; | 227 buildCounterCustomRichMediaEvents++; |
| 193 if (buildCounterCustomRichMediaEvents < 3) { | 228 if (buildCounterCustomRichMediaEvents < 3) { |
| 194 o.filteredEventIds = buildUnnamed202(); | 229 o.filteredEventIds = buildUnnamed649(); |
| 195 o.kind = "foo"; | 230 o.kind = "foo"; |
| 196 } | 231 } |
| 197 buildCounterCustomRichMediaEvents--; | 232 buildCounterCustomRichMediaEvents--; |
| 198 return o; | 233 return o; |
| 199 } | 234 } |
| 200 | 235 |
| 201 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { | 236 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { |
| 202 buildCounterCustomRichMediaEvents++; | 237 buildCounterCustomRichMediaEvents++; |
| 203 if (buildCounterCustomRichMediaEvents < 3) { | 238 if (buildCounterCustomRichMediaEvents < 3) { |
| 204 checkUnnamed202(o.filteredEventIds); | 239 checkUnnamed649(o.filteredEventIds); |
| 205 unittest.expect(o.kind, unittest.equals('foo')); | 240 unittest.expect(o.kind, unittest.equals('foo')); |
| 206 } | 241 } |
| 207 buildCounterCustomRichMediaEvents--; | 242 buildCounterCustomRichMediaEvents--; |
| 208 } | 243 } |
| 209 | 244 |
| 210 core.int buildCounterDateRange = 0; | 245 core.int buildCounterDateRange = 0; |
| 211 buildDateRange() { | 246 buildDateRange() { |
| 212 var o = new api.DateRange(); | 247 var o = new api.DateRange(); |
| 213 buildCounterDateRange++; | 248 buildCounterDateRange++; |
| 214 if (buildCounterDateRange < 3) { | 249 if (buildCounterDateRange < 3) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 unittest.expect(o.dimensionName, unittest.equals('foo')); | 333 unittest.expect(o.dimensionName, unittest.equals('foo')); |
| 299 unittest.expect(o.etag, unittest.equals('foo')); | 334 unittest.expect(o.etag, unittest.equals('foo')); |
| 300 unittest.expect(o.id, unittest.equals('foo')); | 335 unittest.expect(o.id, unittest.equals('foo')); |
| 301 unittest.expect(o.kind, unittest.equals('foo')); | 336 unittest.expect(o.kind, unittest.equals('foo')); |
| 302 unittest.expect(o.matchType, unittest.equals('foo')); | 337 unittest.expect(o.matchType, unittest.equals('foo')); |
| 303 unittest.expect(o.value, unittest.equals('foo')); | 338 unittest.expect(o.value, unittest.equals('foo')); |
| 304 } | 339 } |
| 305 buildCounterDimensionValue--; | 340 buildCounterDimensionValue--; |
| 306 } | 341 } |
| 307 | 342 |
| 308 buildUnnamed203() { | 343 buildUnnamed650() { |
| 309 var o = new core.List<api.DimensionValue>(); | 344 var o = new core.List<api.DimensionValue>(); |
| 310 o.add(buildDimensionValue()); | 345 o.add(buildDimensionValue()); |
| 311 o.add(buildDimensionValue()); | 346 o.add(buildDimensionValue()); |
| 312 return o; | 347 return o; |
| 313 } | 348 } |
| 314 | 349 |
| 315 checkUnnamed203(core.List<api.DimensionValue> o) { | 350 checkUnnamed650(core.List<api.DimensionValue> o) { |
| 316 unittest.expect(o, unittest.hasLength(2)); | 351 unittest.expect(o, unittest.hasLength(2)); |
| 317 checkDimensionValue(o[0]); | 352 checkDimensionValue(o[0]); |
| 318 checkDimensionValue(o[1]); | 353 checkDimensionValue(o[1]); |
| 319 } | 354 } |
| 320 | 355 |
| 321 core.int buildCounterDimensionValueList = 0; | 356 core.int buildCounterDimensionValueList = 0; |
| 322 buildDimensionValueList() { | 357 buildDimensionValueList() { |
| 323 var o = new api.DimensionValueList(); | 358 var o = new api.DimensionValueList(); |
| 324 buildCounterDimensionValueList++; | 359 buildCounterDimensionValueList++; |
| 325 if (buildCounterDimensionValueList < 3) { | 360 if (buildCounterDimensionValueList < 3) { |
| 326 o.etag = "foo"; | 361 o.etag = "foo"; |
| 327 o.items = buildUnnamed203(); | 362 o.items = buildUnnamed650(); |
| 328 o.kind = "foo"; | 363 o.kind = "foo"; |
| 329 o.nextPageToken = "foo"; | 364 o.nextPageToken = "foo"; |
| 330 } | 365 } |
| 331 buildCounterDimensionValueList--; | 366 buildCounterDimensionValueList--; |
| 332 return o; | 367 return o; |
| 333 } | 368 } |
| 334 | 369 |
| 335 checkDimensionValueList(api.DimensionValueList o) { | 370 checkDimensionValueList(api.DimensionValueList o) { |
| 336 buildCounterDimensionValueList++; | 371 buildCounterDimensionValueList++; |
| 337 if (buildCounterDimensionValueList < 3) { | 372 if (buildCounterDimensionValueList < 3) { |
| 338 unittest.expect(o.etag, unittest.equals('foo')); | 373 unittest.expect(o.etag, unittest.equals('foo')); |
| 339 checkUnnamed203(o.items); | 374 checkUnnamed650(o.items); |
| 340 unittest.expect(o.kind, unittest.equals('foo')); | 375 unittest.expect(o.kind, unittest.equals('foo')); |
| 341 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 376 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 342 } | 377 } |
| 343 buildCounterDimensionValueList--; | 378 buildCounterDimensionValueList--; |
| 344 } | 379 } |
| 345 | 380 |
| 346 buildUnnamed204() { | 381 buildUnnamed651() { |
| 347 var o = new core.List<api.DimensionFilter>(); | 382 var o = new core.List<api.DimensionFilter>(); |
| 348 o.add(buildDimensionFilter()); | 383 o.add(buildDimensionFilter()); |
| 349 o.add(buildDimensionFilter()); | 384 o.add(buildDimensionFilter()); |
| 350 return o; | 385 return o; |
| 351 } | 386 } |
| 352 | 387 |
| 353 checkUnnamed204(core.List<api.DimensionFilter> o) { | 388 checkUnnamed651(core.List<api.DimensionFilter> o) { |
| 354 unittest.expect(o, unittest.hasLength(2)); | 389 unittest.expect(o, unittest.hasLength(2)); |
| 355 checkDimensionFilter(o[0]); | 390 checkDimensionFilter(o[0]); |
| 356 checkDimensionFilter(o[1]); | 391 checkDimensionFilter(o[1]); |
| 357 } | 392 } |
| 358 | 393 |
| 359 core.int buildCounterDimensionValueRequest = 0; | 394 core.int buildCounterDimensionValueRequest = 0; |
| 360 buildDimensionValueRequest() { | 395 buildDimensionValueRequest() { |
| 361 var o = new api.DimensionValueRequest(); | 396 var o = new api.DimensionValueRequest(); |
| 362 buildCounterDimensionValueRequest++; | 397 buildCounterDimensionValueRequest++; |
| 363 if (buildCounterDimensionValueRequest < 3) { | 398 if (buildCounterDimensionValueRequest < 3) { |
| 364 o.dimensionName = "foo"; | 399 o.dimensionName = "foo"; |
| 365 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 400 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 366 o.filters = buildUnnamed204(); | 401 o.filters = buildUnnamed651(); |
| 367 o.kind = "foo"; | 402 o.kind = "foo"; |
| 368 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 403 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 369 } | 404 } |
| 370 buildCounterDimensionValueRequest--; | 405 buildCounterDimensionValueRequest--; |
| 371 return o; | 406 return o; |
| 372 } | 407 } |
| 373 | 408 |
| 374 checkDimensionValueRequest(api.DimensionValueRequest o) { | 409 checkDimensionValueRequest(api.DimensionValueRequest o) { |
| 375 buildCounterDimensionValueRequest++; | 410 buildCounterDimensionValueRequest++; |
| 376 if (buildCounterDimensionValueRequest < 3) { | 411 if (buildCounterDimensionValueRequest < 3) { |
| 377 unittest.expect(o.dimensionName, unittest.equals('foo')); | 412 unittest.expect(o.dimensionName, unittest.equals('foo')); |
| 378 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 413 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 379 checkUnnamed204(o.filters); | 414 checkUnnamed651(o.filters); |
| 380 unittest.expect(o.kind, unittest.equals('foo')); | 415 unittest.expect(o.kind, unittest.equals('foo')); |
| 381 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 416 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 382 } | 417 } |
| 383 buildCounterDimensionValueRequest--; | 418 buildCounterDimensionValueRequest--; |
| 384 } | 419 } |
| 385 | 420 |
| 386 core.int buildCounterFileUrls = 0; | 421 core.int buildCounterFileUrls = 0; |
| 387 buildFileUrls() { | 422 buildFileUrls() { |
| 388 var o = new api.FileUrls(); | 423 var o = new api.FileUrls(); |
| 389 buildCounterFileUrls++; | 424 buildCounterFileUrls++; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 unittest.expect(o.id, unittest.equals('foo')); | 469 unittest.expect(o.id, unittest.equals('foo')); |
| 435 unittest.expect(o.kind, unittest.equals('foo')); | 470 unittest.expect(o.kind, unittest.equals('foo')); |
| 436 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 471 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
| 437 unittest.expect(o.reportId, unittest.equals('foo')); | 472 unittest.expect(o.reportId, unittest.equals('foo')); |
| 438 unittest.expect(o.status, unittest.equals('foo')); | 473 unittest.expect(o.status, unittest.equals('foo')); |
| 439 checkFileUrls(o.urls); | 474 checkFileUrls(o.urls); |
| 440 } | 475 } |
| 441 buildCounterFile--; | 476 buildCounterFile--; |
| 442 } | 477 } |
| 443 | 478 |
| 444 buildUnnamed205() { | 479 buildUnnamed652() { |
| 445 var o = new core.List<api.File>(); | 480 var o = new core.List<api.File>(); |
| 446 o.add(buildFile()); | 481 o.add(buildFile()); |
| 447 o.add(buildFile()); | 482 o.add(buildFile()); |
| 448 return o; | 483 return o; |
| 449 } | 484 } |
| 450 | 485 |
| 451 checkUnnamed205(core.List<api.File> o) { | 486 checkUnnamed652(core.List<api.File> o) { |
| 452 unittest.expect(o, unittest.hasLength(2)); | 487 unittest.expect(o, unittest.hasLength(2)); |
| 453 checkFile(o[0]); | 488 checkFile(o[0]); |
| 454 checkFile(o[1]); | 489 checkFile(o[1]); |
| 455 } | 490 } |
| 456 | 491 |
| 457 core.int buildCounterFileList = 0; | 492 core.int buildCounterFileList = 0; |
| 458 buildFileList() { | 493 buildFileList() { |
| 459 var o = new api.FileList(); | 494 var o = new api.FileList(); |
| 460 buildCounterFileList++; | 495 buildCounterFileList++; |
| 461 if (buildCounterFileList < 3) { | 496 if (buildCounterFileList < 3) { |
| 462 o.etag = "foo"; | 497 o.etag = "foo"; |
| 463 o.items = buildUnnamed205(); | 498 o.items = buildUnnamed652(); |
| 464 o.kind = "foo"; | 499 o.kind = "foo"; |
| 465 o.nextPageToken = "foo"; | 500 o.nextPageToken = "foo"; |
| 466 } | 501 } |
| 467 buildCounterFileList--; | 502 buildCounterFileList--; |
| 468 return o; | 503 return o; |
| 469 } | 504 } |
| 470 | 505 |
| 471 checkFileList(api.FileList o) { | 506 checkFileList(api.FileList o) { |
| 472 buildCounterFileList++; | 507 buildCounterFileList++; |
| 473 if (buildCounterFileList < 3) { | 508 if (buildCounterFileList < 3) { |
| 474 unittest.expect(o.etag, unittest.equals('foo')); | 509 unittest.expect(o.etag, unittest.equals('foo')); |
| 475 checkUnnamed205(o.items); | 510 checkUnnamed652(o.items); |
| 476 unittest.expect(o.kind, unittest.equals('foo')); | 511 unittest.expect(o.kind, unittest.equals('foo')); |
| 477 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 512 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 478 } | 513 } |
| 479 buildCounterFileList--; | 514 buildCounterFileList--; |
| 480 } | 515 } |
| 481 | 516 |
| 482 buildUnnamed206() { | 517 buildUnnamed653() { |
| 483 var o = new core.List<api.Dimension>(); | 518 var o = new core.List<api.Dimension>(); |
| 484 o.add(buildDimension()); | 519 o.add(buildDimension()); |
| 485 o.add(buildDimension()); | 520 o.add(buildDimension()); |
| 486 return o; | 521 return o; |
| 487 } | 522 } |
| 488 | 523 |
| 489 checkUnnamed206(core.List<api.Dimension> o) { | 524 checkUnnamed653(core.List<api.Dimension> o) { |
| 490 unittest.expect(o, unittest.hasLength(2)); | 525 unittest.expect(o, unittest.hasLength(2)); |
| 491 checkDimension(o[0]); | 526 checkDimension(o[0]); |
| 492 checkDimension(o[1]); | 527 checkDimension(o[1]); |
| 493 } | 528 } |
| 494 | 529 |
| 495 buildUnnamed207() { | 530 buildUnnamed654() { |
| 496 var o = new core.List<api.Dimension>(); | 531 var o = new core.List<api.Dimension>(); |
| 497 o.add(buildDimension()); | 532 o.add(buildDimension()); |
| 498 o.add(buildDimension()); | 533 o.add(buildDimension()); |
| 499 return o; | 534 return o; |
| 500 } | 535 } |
| 501 | 536 |
| 502 checkUnnamed207(core.List<api.Dimension> o) { | 537 checkUnnamed654(core.List<api.Dimension> o) { |
| 503 unittest.expect(o, unittest.hasLength(2)); | 538 unittest.expect(o, unittest.hasLength(2)); |
| 504 checkDimension(o[0]); | 539 checkDimension(o[0]); |
| 505 checkDimension(o[1]); | 540 checkDimension(o[1]); |
| 506 } | 541 } |
| 507 | 542 |
| 508 buildUnnamed208() { | 543 buildUnnamed655() { |
| 509 var o = new core.List<api.Metric>(); | 544 var o = new core.List<api.Metric>(); |
| 510 o.add(buildMetric()); | 545 o.add(buildMetric()); |
| 511 o.add(buildMetric()); | 546 o.add(buildMetric()); |
| 512 return o; | 547 return o; |
| 513 } | 548 } |
| 514 | 549 |
| 515 checkUnnamed208(core.List<api.Metric> o) { | 550 checkUnnamed655(core.List<api.Metric> o) { |
| 516 unittest.expect(o, unittest.hasLength(2)); | 551 unittest.expect(o, unittest.hasLength(2)); |
| 517 checkMetric(o[0]); | 552 checkMetric(o[0]); |
| 518 checkMetric(o[1]); | 553 checkMetric(o[1]); |
| 519 } | 554 } |
| 520 | 555 |
| 521 core.int buildCounterFloodlightReportCompatibleFields = 0; | 556 core.int buildCounterFloodlightReportCompatibleFields = 0; |
| 522 buildFloodlightReportCompatibleFields() { | 557 buildFloodlightReportCompatibleFields() { |
| 523 var o = new api.FloodlightReportCompatibleFields(); | 558 var o = new api.FloodlightReportCompatibleFields(); |
| 524 buildCounterFloodlightReportCompatibleFields++; | 559 buildCounterFloodlightReportCompatibleFields++; |
| 525 if (buildCounterFloodlightReportCompatibleFields < 3) { | 560 if (buildCounterFloodlightReportCompatibleFields < 3) { |
| 526 o.dimensionFilters = buildUnnamed206(); | 561 o.dimensionFilters = buildUnnamed653(); |
| 527 o.dimensions = buildUnnamed207(); | 562 o.dimensions = buildUnnamed654(); |
| 528 o.kind = "foo"; | 563 o.kind = "foo"; |
| 529 o.metrics = buildUnnamed208(); | 564 o.metrics = buildUnnamed655(); |
| 530 } | 565 } |
| 531 buildCounterFloodlightReportCompatibleFields--; | 566 buildCounterFloodlightReportCompatibleFields--; |
| 532 return o; | 567 return o; |
| 533 } | 568 } |
| 534 | 569 |
| 535 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { | 570 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { |
| 536 buildCounterFloodlightReportCompatibleFields++; | 571 buildCounterFloodlightReportCompatibleFields++; |
| 537 if (buildCounterFloodlightReportCompatibleFields < 3) { | 572 if (buildCounterFloodlightReportCompatibleFields < 3) { |
| 538 checkUnnamed206(o.dimensionFilters); | 573 checkUnnamed653(o.dimensionFilters); |
| 539 checkUnnamed207(o.dimensions); | 574 checkUnnamed654(o.dimensions); |
| 540 unittest.expect(o.kind, unittest.equals('foo')); | 575 unittest.expect(o.kind, unittest.equals('foo')); |
| 541 checkUnnamed208(o.metrics); | 576 checkUnnamed655(o.metrics); |
| 542 } | 577 } |
| 543 buildCounterFloodlightReportCompatibleFields--; | 578 buildCounterFloodlightReportCompatibleFields--; |
| 544 } | 579 } |
| 545 | 580 |
| 546 core.int buildCounterMetric = 0; | 581 core.int buildCounterMetric = 0; |
| 547 buildMetric() { | 582 buildMetric() { |
| 548 var o = new api.Metric(); | 583 var o = new api.Metric(); |
| 549 buildCounterMetric++; | 584 buildCounterMetric++; |
| 550 if (buildCounterMetric < 3) { | 585 if (buildCounterMetric < 3) { |
| 551 o.kind = "foo"; | 586 o.kind = "foo"; |
| 552 o.name = "foo"; | 587 o.name = "foo"; |
| 553 } | 588 } |
| 554 buildCounterMetric--; | 589 buildCounterMetric--; |
| 555 return o; | 590 return o; |
| 556 } | 591 } |
| 557 | 592 |
| 558 checkMetric(api.Metric o) { | 593 checkMetric(api.Metric o) { |
| 559 buildCounterMetric++; | 594 buildCounterMetric++; |
| 560 if (buildCounterMetric < 3) { | 595 if (buildCounterMetric < 3) { |
| 561 unittest.expect(o.kind, unittest.equals('foo')); | 596 unittest.expect(o.kind, unittest.equals('foo')); |
| 562 unittest.expect(o.name, unittest.equals('foo')); | 597 unittest.expect(o.name, unittest.equals('foo')); |
| 563 } | 598 } |
| 564 buildCounterMetric--; | 599 buildCounterMetric--; |
| 565 } | 600 } |
| 566 | 601 |
| 567 buildUnnamed209() { | 602 buildUnnamed656() { |
| 568 var o = new core.List<api.Dimension>(); | 603 var o = new core.List<api.Dimension>(); |
| 569 o.add(buildDimension()); | 604 o.add(buildDimension()); |
| 570 o.add(buildDimension()); | 605 o.add(buildDimension()); |
| 571 return o; | 606 return o; |
| 572 } | 607 } |
| 573 | 608 |
| 574 checkUnnamed209(core.List<api.Dimension> o) { | 609 checkUnnamed656(core.List<api.Dimension> o) { |
| 575 unittest.expect(o, unittest.hasLength(2)); | 610 unittest.expect(o, unittest.hasLength(2)); |
| 576 checkDimension(o[0]); | 611 checkDimension(o[0]); |
| 577 checkDimension(o[1]); | 612 checkDimension(o[1]); |
| 578 } | 613 } |
| 579 | 614 |
| 580 buildUnnamed210() { | 615 buildUnnamed657() { |
| 581 var o = new core.List<api.Dimension>(); | 616 var o = new core.List<api.Dimension>(); |
| 582 o.add(buildDimension()); | 617 o.add(buildDimension()); |
| 583 o.add(buildDimension()); | 618 o.add(buildDimension()); |
| 584 return o; | 619 return o; |
| 585 } | 620 } |
| 586 | 621 |
| 587 checkUnnamed210(core.List<api.Dimension> o) { | 622 checkUnnamed657(core.List<api.Dimension> o) { |
| 588 unittest.expect(o, unittest.hasLength(2)); | 623 unittest.expect(o, unittest.hasLength(2)); |
| 589 checkDimension(o[0]); | 624 checkDimension(o[0]); |
| 590 checkDimension(o[1]); | 625 checkDimension(o[1]); |
| 591 } | 626 } |
| 592 | 627 |
| 593 buildUnnamed211() { | 628 buildUnnamed658() { |
| 594 var o = new core.List<api.Metric>(); | 629 var o = new core.List<api.Metric>(); |
| 595 o.add(buildMetric()); | 630 o.add(buildMetric()); |
| 596 o.add(buildMetric()); | 631 o.add(buildMetric()); |
| 597 return o; | 632 return o; |
| 598 } | 633 } |
| 599 | 634 |
| 600 checkUnnamed211(core.List<api.Metric> o) { | 635 checkUnnamed658(core.List<api.Metric> o) { |
| 601 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
| 602 checkMetric(o[0]); | 637 checkMetric(o[0]); |
| 603 checkMetric(o[1]); | 638 checkMetric(o[1]); |
| 604 } | 639 } |
| 605 | 640 |
| 606 buildUnnamed212() { | 641 buildUnnamed659() { |
| 607 var o = new core.List<api.Dimension>(); | 642 var o = new core.List<api.Dimension>(); |
| 608 o.add(buildDimension()); | 643 o.add(buildDimension()); |
| 609 o.add(buildDimension()); | 644 o.add(buildDimension()); |
| 610 return o; | 645 return o; |
| 611 } | 646 } |
| 612 | 647 |
| 613 checkUnnamed212(core.List<api.Dimension> o) { | 648 checkUnnamed659(core.List<api.Dimension> o) { |
| 614 unittest.expect(o, unittest.hasLength(2)); | 649 unittest.expect(o, unittest.hasLength(2)); |
| 615 checkDimension(o[0]); | 650 checkDimension(o[0]); |
| 616 checkDimension(o[1]); | 651 checkDimension(o[1]); |
| 617 } | 652 } |
| 618 | 653 |
| 619 core.int buildCounterPathToConversionReportCompatibleFields = 0; | 654 core.int buildCounterPathToConversionReportCompatibleFields = 0; |
| 620 buildPathToConversionReportCompatibleFields() { | 655 buildPathToConversionReportCompatibleFields() { |
| 621 var o = new api.PathToConversionReportCompatibleFields(); | 656 var o = new api.PathToConversionReportCompatibleFields(); |
| 622 buildCounterPathToConversionReportCompatibleFields++; | 657 buildCounterPathToConversionReportCompatibleFields++; |
| 623 if (buildCounterPathToConversionReportCompatibleFields < 3) { | 658 if (buildCounterPathToConversionReportCompatibleFields < 3) { |
| 624 o.conversionDimensions = buildUnnamed209(); | 659 o.conversionDimensions = buildUnnamed656(); |
| 625 o.customFloodlightVariables = buildUnnamed210(); | 660 o.customFloodlightVariables = buildUnnamed657(); |
| 626 o.kind = "foo"; | 661 o.kind = "foo"; |
| 627 o.metrics = buildUnnamed211(); | 662 o.metrics = buildUnnamed658(); |
| 628 o.perInteractionDimensions = buildUnnamed212(); | 663 o.perInteractionDimensions = buildUnnamed659(); |
| 629 } | 664 } |
| 630 buildCounterPathToConversionReportCompatibleFields--; | 665 buildCounterPathToConversionReportCompatibleFields--; |
| 631 return o; | 666 return o; |
| 632 } | 667 } |
| 633 | 668 |
| 634 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible
Fields o) { | 669 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible
Fields o) { |
| 635 buildCounterPathToConversionReportCompatibleFields++; | 670 buildCounterPathToConversionReportCompatibleFields++; |
| 636 if (buildCounterPathToConversionReportCompatibleFields < 3) { | 671 if (buildCounterPathToConversionReportCompatibleFields < 3) { |
| 637 checkUnnamed209(o.conversionDimensions); | 672 checkUnnamed656(o.conversionDimensions); |
| 638 checkUnnamed210(o.customFloodlightVariables); | 673 checkUnnamed657(o.customFloodlightVariables); |
| 639 unittest.expect(o.kind, unittest.equals('foo')); | 674 unittest.expect(o.kind, unittest.equals('foo')); |
| 640 checkUnnamed211(o.metrics); | 675 checkUnnamed658(o.metrics); |
| 641 checkUnnamed212(o.perInteractionDimensions); | 676 checkUnnamed659(o.perInteractionDimensions); |
| 642 } | 677 } |
| 643 buildCounterPathToConversionReportCompatibleFields--; | 678 buildCounterPathToConversionReportCompatibleFields--; |
| 644 } | 679 } |
| 645 | 680 |
| 646 buildUnnamed213() { | 681 buildUnnamed660() { |
| 647 var o = new core.List<api.Dimension>(); | 682 var o = new core.List<api.Dimension>(); |
| 648 o.add(buildDimension()); | 683 o.add(buildDimension()); |
| 649 o.add(buildDimension()); | 684 o.add(buildDimension()); |
| 650 return o; | 685 return o; |
| 651 } | 686 } |
| 652 | 687 |
| 653 checkUnnamed213(core.List<api.Dimension> o) { | 688 checkUnnamed660(core.List<api.Dimension> o) { |
| 654 unittest.expect(o, unittest.hasLength(2)); | 689 unittest.expect(o, unittest.hasLength(2)); |
| 655 checkDimension(o[0]); | 690 checkDimension(o[0]); |
| 656 checkDimension(o[1]); | 691 checkDimension(o[1]); |
| 657 } | 692 } |
| 658 | 693 |
| 659 buildUnnamed214() { | 694 buildUnnamed661() { |
| 660 var o = new core.List<api.Dimension>(); | 695 var o = new core.List<api.Dimension>(); |
| 661 o.add(buildDimension()); | 696 o.add(buildDimension()); |
| 662 o.add(buildDimension()); | 697 o.add(buildDimension()); |
| 663 return o; | 698 return o; |
| 664 } | 699 } |
| 665 | 700 |
| 666 checkUnnamed214(core.List<api.Dimension> o) { | 701 checkUnnamed661(core.List<api.Dimension> o) { |
| 667 unittest.expect(o, unittest.hasLength(2)); | 702 unittest.expect(o, unittest.hasLength(2)); |
| 668 checkDimension(o[0]); | 703 checkDimension(o[0]); |
| 669 checkDimension(o[1]); | 704 checkDimension(o[1]); |
| 670 } | 705 } |
| 671 | 706 |
| 672 buildUnnamed215() { | 707 buildUnnamed662() { |
| 673 var o = new core.List<api.Metric>(); | 708 var o = new core.List<api.Metric>(); |
| 674 o.add(buildMetric()); | 709 o.add(buildMetric()); |
| 675 o.add(buildMetric()); | 710 o.add(buildMetric()); |
| 676 return o; | 711 return o; |
| 677 } | 712 } |
| 678 | 713 |
| 679 checkUnnamed215(core.List<api.Metric> o) { | 714 checkUnnamed662(core.List<api.Metric> o) { |
| 680 unittest.expect(o, unittest.hasLength(2)); | 715 unittest.expect(o, unittest.hasLength(2)); |
| 681 checkMetric(o[0]); | 716 checkMetric(o[0]); |
| 682 checkMetric(o[1]); | 717 checkMetric(o[1]); |
| 683 } | 718 } |
| 684 | 719 |
| 685 buildUnnamed216() { | 720 buildUnnamed663() { |
| 686 var o = new core.List<api.Metric>(); | 721 var o = new core.List<api.Metric>(); |
| 687 o.add(buildMetric()); | 722 o.add(buildMetric()); |
| 688 o.add(buildMetric()); | 723 o.add(buildMetric()); |
| 689 return o; | 724 return o; |
| 690 } | 725 } |
| 691 | 726 |
| 692 checkUnnamed216(core.List<api.Metric> o) { | 727 checkUnnamed663(core.List<api.Metric> o) { |
| 693 unittest.expect(o, unittest.hasLength(2)); | 728 unittest.expect(o, unittest.hasLength(2)); |
| 694 checkMetric(o[0]); | 729 checkMetric(o[0]); |
| 695 checkMetric(o[1]); | 730 checkMetric(o[1]); |
| 696 } | 731 } |
| 697 | 732 |
| 698 buildUnnamed217() { | 733 buildUnnamed664() { |
| 699 var o = new core.List<api.Metric>(); | 734 var o = new core.List<api.Metric>(); |
| 700 o.add(buildMetric()); | 735 o.add(buildMetric()); |
| 701 o.add(buildMetric()); | 736 o.add(buildMetric()); |
| 702 return o; | 737 return o; |
| 703 } | 738 } |
| 704 | 739 |
| 705 checkUnnamed217(core.List<api.Metric> o) { | 740 checkUnnamed664(core.List<api.Metric> o) { |
| 706 unittest.expect(o, unittest.hasLength(2)); | 741 unittest.expect(o, unittest.hasLength(2)); |
| 707 checkMetric(o[0]); | 742 checkMetric(o[0]); |
| 708 checkMetric(o[1]); | 743 checkMetric(o[1]); |
| 709 } | 744 } |
| 710 | 745 |
| 711 core.int buildCounterReachReportCompatibleFields = 0; | 746 core.int buildCounterReachReportCompatibleFields = 0; |
| 712 buildReachReportCompatibleFields() { | 747 buildReachReportCompatibleFields() { |
| 713 var o = new api.ReachReportCompatibleFields(); | 748 var o = new api.ReachReportCompatibleFields(); |
| 714 buildCounterReachReportCompatibleFields++; | 749 buildCounterReachReportCompatibleFields++; |
| 715 if (buildCounterReachReportCompatibleFields < 3) { | 750 if (buildCounterReachReportCompatibleFields < 3) { |
| 716 o.dimensionFilters = buildUnnamed213(); | 751 o.dimensionFilters = buildUnnamed660(); |
| 717 o.dimensions = buildUnnamed214(); | 752 o.dimensions = buildUnnamed661(); |
| 718 o.kind = "foo"; | 753 o.kind = "foo"; |
| 719 o.metrics = buildUnnamed215(); | 754 o.metrics = buildUnnamed662(); |
| 720 o.pivotedActivityMetrics = buildUnnamed216(); | 755 o.pivotedActivityMetrics = buildUnnamed663(); |
| 721 o.reachByFrequencyMetrics = buildUnnamed217(); | 756 o.reachByFrequencyMetrics = buildUnnamed664(); |
| 722 } | 757 } |
| 723 buildCounterReachReportCompatibleFields--; | 758 buildCounterReachReportCompatibleFields--; |
| 724 return o; | 759 return o; |
| 725 } | 760 } |
| 726 | 761 |
| 727 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { | 762 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { |
| 728 buildCounterReachReportCompatibleFields++; | 763 buildCounterReachReportCompatibleFields++; |
| 729 if (buildCounterReachReportCompatibleFields < 3) { | 764 if (buildCounterReachReportCompatibleFields < 3) { |
| 730 checkUnnamed213(o.dimensionFilters); | 765 checkUnnamed660(o.dimensionFilters); |
| 731 checkUnnamed214(o.dimensions); | 766 checkUnnamed661(o.dimensions); |
| 732 unittest.expect(o.kind, unittest.equals('foo')); | 767 unittest.expect(o.kind, unittest.equals('foo')); |
| 733 checkUnnamed215(o.metrics); | 768 checkUnnamed662(o.metrics); |
| 734 checkUnnamed216(o.pivotedActivityMetrics); | 769 checkUnnamed663(o.pivotedActivityMetrics); |
| 735 checkUnnamed217(o.reachByFrequencyMetrics); | 770 checkUnnamed664(o.reachByFrequencyMetrics); |
| 736 } | 771 } |
| 737 buildCounterReachReportCompatibleFields--; | 772 buildCounterReachReportCompatibleFields--; |
| 738 } | 773 } |
| 739 | 774 |
| 740 core.int buildCounterRecipient = 0; | 775 core.int buildCounterRecipient = 0; |
| 741 buildRecipient() { | 776 buildRecipient() { |
| 742 var o = new api.Recipient(); | 777 var o = new api.Recipient(); |
| 743 buildCounterRecipient++; | 778 buildCounterRecipient++; |
| 744 if (buildCounterRecipient < 3) { | 779 if (buildCounterRecipient < 3) { |
| 745 o.deliveryType = "foo"; | 780 o.deliveryType = "foo"; |
| 746 o.email = "foo"; | 781 o.email = "foo"; |
| 747 o.kind = "foo"; | 782 o.kind = "foo"; |
| 748 } | 783 } |
| 749 buildCounterRecipient--; | 784 buildCounterRecipient--; |
| 750 return o; | 785 return o; |
| 751 } | 786 } |
| 752 | 787 |
| 753 checkRecipient(api.Recipient o) { | 788 checkRecipient(api.Recipient o) { |
| 754 buildCounterRecipient++; | 789 buildCounterRecipient++; |
| 755 if (buildCounterRecipient < 3) { | 790 if (buildCounterRecipient < 3) { |
| 756 unittest.expect(o.deliveryType, unittest.equals('foo')); | 791 unittest.expect(o.deliveryType, unittest.equals('foo')); |
| 757 unittest.expect(o.email, unittest.equals('foo')); | 792 unittest.expect(o.email, unittest.equals('foo')); |
| 758 unittest.expect(o.kind, unittest.equals('foo')); | 793 unittest.expect(o.kind, unittest.equals('foo')); |
| 759 } | 794 } |
| 760 buildCounterRecipient--; | 795 buildCounterRecipient--; |
| 761 } | 796 } |
| 762 | 797 |
| 763 buildUnnamed218() { | 798 buildUnnamed665() { |
| 764 var o = new core.List<api.DimensionValue>(); | 799 var o = new core.List<api.DimensionValue>(); |
| 765 o.add(buildDimensionValue()); | 800 o.add(buildDimensionValue()); |
| 766 o.add(buildDimensionValue()); | 801 o.add(buildDimensionValue()); |
| 767 return o; | 802 return o; |
| 768 } | 803 } |
| 769 | 804 |
| 770 checkUnnamed218(core.List<api.DimensionValue> o) { | 805 checkUnnamed665(core.List<api.DimensionValue> o) { |
| 771 unittest.expect(o, unittest.hasLength(2)); | 806 unittest.expect(o, unittest.hasLength(2)); |
| 772 checkDimensionValue(o[0]); | 807 checkDimensionValue(o[0]); |
| 773 checkDimensionValue(o[1]); | 808 checkDimensionValue(o[1]); |
| 774 } | 809 } |
| 775 | 810 |
| 776 buildUnnamed219() { | 811 buildUnnamed666() { |
| 777 var o = new core.List<api.SortedDimension>(); | 812 var o = new core.List<api.SortedDimension>(); |
| 778 o.add(buildSortedDimension()); | 813 o.add(buildSortedDimension()); |
| 779 o.add(buildSortedDimension()); | 814 o.add(buildSortedDimension()); |
| 780 return o; | 815 return o; |
| 781 } | 816 } |
| 782 | 817 |
| 783 checkUnnamed219(core.List<api.SortedDimension> o) { | 818 checkUnnamed666(core.List<api.SortedDimension> o) { |
| 784 unittest.expect(o, unittest.hasLength(2)); | 819 unittest.expect(o, unittest.hasLength(2)); |
| 785 checkSortedDimension(o[0]); | 820 checkSortedDimension(o[0]); |
| 786 checkSortedDimension(o[1]); | 821 checkSortedDimension(o[1]); |
| 787 } | 822 } |
| 788 | 823 |
| 789 buildUnnamed220() { | 824 buildUnnamed667() { |
| 790 var o = new core.List<core.String>(); | 825 var o = new core.List<core.String>(); |
| 791 o.add("foo"); | 826 o.add("foo"); |
| 792 o.add("foo"); | 827 o.add("foo"); |
| 793 return o; | 828 return o; |
| 794 } | 829 } |
| 795 | 830 |
| 796 checkUnnamed220(core.List<core.String> o) { | 831 checkUnnamed667(core.List<core.String> o) { |
| 797 unittest.expect(o, unittest.hasLength(2)); | 832 unittest.expect(o, unittest.hasLength(2)); |
| 798 unittest.expect(o[0], unittest.equals('foo')); | 833 unittest.expect(o[0], unittest.equals('foo')); |
| 799 unittest.expect(o[1], unittest.equals('foo')); | 834 unittest.expect(o[1], unittest.equals('foo')); |
| 800 } | 835 } |
| 801 | 836 |
| 802 core.int buildCounterReportActiveGrpCriteria = 0; | 837 core.int buildCounterReportActiveGrpCriteria = 0; |
| 803 buildReportActiveGrpCriteria() { | 838 buildReportActiveGrpCriteria() { |
| 804 var o = new api.ReportActiveGrpCriteria(); | 839 var o = new api.ReportActiveGrpCriteria(); |
| 805 buildCounterReportActiveGrpCriteria++; | 840 buildCounterReportActiveGrpCriteria++; |
| 806 if (buildCounterReportActiveGrpCriteria < 3) { | 841 if (buildCounterReportActiveGrpCriteria < 3) { |
| 807 o.dateRange = buildDateRange(); | 842 o.dateRange = buildDateRange(); |
| 808 o.dimensionFilters = buildUnnamed218(); | 843 o.dimensionFilters = buildUnnamed665(); |
| 809 o.dimensions = buildUnnamed219(); | 844 o.dimensions = buildUnnamed666(); |
| 810 o.metricNames = buildUnnamed220(); | 845 o.metricNames = buildUnnamed667(); |
| 811 } | 846 } |
| 812 buildCounterReportActiveGrpCriteria--; | 847 buildCounterReportActiveGrpCriteria--; |
| 813 return o; | 848 return o; |
| 814 } | 849 } |
| 815 | 850 |
| 816 checkReportActiveGrpCriteria(api.ReportActiveGrpCriteria o) { | 851 checkReportActiveGrpCriteria(api.ReportActiveGrpCriteria o) { |
| 817 buildCounterReportActiveGrpCriteria++; | 852 buildCounterReportActiveGrpCriteria++; |
| 818 if (buildCounterReportActiveGrpCriteria < 3) { | 853 if (buildCounterReportActiveGrpCriteria < 3) { |
| 819 checkDateRange(o.dateRange); | 854 checkDateRange(o.dateRange); |
| 820 checkUnnamed218(o.dimensionFilters); | 855 checkUnnamed665(o.dimensionFilters); |
| 821 checkUnnamed219(o.dimensions); | 856 checkUnnamed666(o.dimensions); |
| 822 checkUnnamed220(o.metricNames); | 857 checkUnnamed667(o.metricNames); |
| 823 } | 858 } |
| 824 buildCounterReportActiveGrpCriteria--; | 859 buildCounterReportActiveGrpCriteria--; |
| 825 } | 860 } |
| 826 | 861 |
| 827 buildUnnamed221() { | 862 buildUnnamed668() { |
| 828 var o = new core.List<api.DimensionValue>(); | 863 var o = new core.List<api.DimensionValue>(); |
| 829 o.add(buildDimensionValue()); | 864 o.add(buildDimensionValue()); |
| 830 o.add(buildDimensionValue()); | 865 o.add(buildDimensionValue()); |
| 831 return o; | 866 return o; |
| 832 } | 867 } |
| 833 | 868 |
| 834 checkUnnamed221(core.List<api.DimensionValue> o) { | 869 checkUnnamed668(core.List<api.DimensionValue> o) { |
| 835 unittest.expect(o, unittest.hasLength(2)); | 870 unittest.expect(o, unittest.hasLength(2)); |
| 836 checkDimensionValue(o[0]); | 871 checkDimensionValue(o[0]); |
| 837 checkDimensionValue(o[1]); | 872 checkDimensionValue(o[1]); |
| 838 } | 873 } |
| 839 | 874 |
| 840 buildUnnamed222() { | 875 buildUnnamed669() { |
| 841 var o = new core.List<api.SortedDimension>(); | 876 var o = new core.List<api.SortedDimension>(); |
| 842 o.add(buildSortedDimension()); | 877 o.add(buildSortedDimension()); |
| 843 o.add(buildSortedDimension()); | 878 o.add(buildSortedDimension()); |
| 844 return o; | 879 return o; |
| 845 } | 880 } |
| 846 | 881 |
| 847 checkUnnamed222(core.List<api.SortedDimension> o) { | 882 checkUnnamed669(core.List<api.SortedDimension> o) { |
| 848 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
| 849 checkSortedDimension(o[0]); | 884 checkSortedDimension(o[0]); |
| 850 checkSortedDimension(o[1]); | 885 checkSortedDimension(o[1]); |
| 851 } | 886 } |
| 852 | 887 |
| 853 buildUnnamed223() { | 888 buildUnnamed670() { |
| 854 var o = new core.List<core.String>(); | 889 var o = new core.List<core.String>(); |
| 855 o.add("foo"); | 890 o.add("foo"); |
| 856 o.add("foo"); | 891 o.add("foo"); |
| 857 return o; | 892 return o; |
| 858 } | 893 } |
| 859 | 894 |
| 860 checkUnnamed223(core.List<core.String> o) { | 895 checkUnnamed670(core.List<core.String> o) { |
| 861 unittest.expect(o, unittest.hasLength(2)); | 896 unittest.expect(o, unittest.hasLength(2)); |
| 862 unittest.expect(o[0], unittest.equals('foo')); | 897 unittest.expect(o[0], unittest.equals('foo')); |
| 863 unittest.expect(o[1], unittest.equals('foo')); | 898 unittest.expect(o[1], unittest.equals('foo')); |
| 864 } | 899 } |
| 865 | 900 |
| 866 core.int buildCounterReportCriteria = 0; | 901 core.int buildCounterReportCriteria = 0; |
| 867 buildReportCriteria() { | 902 buildReportCriteria() { |
| 868 var o = new api.ReportCriteria(); | 903 var o = new api.ReportCriteria(); |
| 869 buildCounterReportCriteria++; | 904 buildCounterReportCriteria++; |
| 870 if (buildCounterReportCriteria < 3) { | 905 if (buildCounterReportCriteria < 3) { |
| 871 o.activities = buildActivities(); | 906 o.activities = buildActivities(); |
| 872 o.customRichMediaEvents = buildCustomRichMediaEvents(); | 907 o.customRichMediaEvents = buildCustomRichMediaEvents(); |
| 873 o.dateRange = buildDateRange(); | 908 o.dateRange = buildDateRange(); |
| 874 o.dimensionFilters = buildUnnamed221(); | 909 o.dimensionFilters = buildUnnamed668(); |
| 875 o.dimensions = buildUnnamed222(); | 910 o.dimensions = buildUnnamed669(); |
| 876 o.metricNames = buildUnnamed223(); | 911 o.metricNames = buildUnnamed670(); |
| 877 } | 912 } |
| 878 buildCounterReportCriteria--; | 913 buildCounterReportCriteria--; |
| 879 return o; | 914 return o; |
| 880 } | 915 } |
| 881 | 916 |
| 882 checkReportCriteria(api.ReportCriteria o) { | 917 checkReportCriteria(api.ReportCriteria o) { |
| 883 buildCounterReportCriteria++; | 918 buildCounterReportCriteria++; |
| 884 if (buildCounterReportCriteria < 3) { | 919 if (buildCounterReportCriteria < 3) { |
| 885 checkActivities(o.activities); | 920 checkActivities(o.activities); |
| 886 checkCustomRichMediaEvents(o.customRichMediaEvents); | 921 checkCustomRichMediaEvents(o.customRichMediaEvents); |
| 887 checkDateRange(o.dateRange); | 922 checkDateRange(o.dateRange); |
| 888 checkUnnamed221(o.dimensionFilters); | 923 checkUnnamed668(o.dimensionFilters); |
| 889 checkUnnamed222(o.dimensions); | 924 checkUnnamed669(o.dimensions); |
| 890 checkUnnamed223(o.metricNames); | 925 checkUnnamed670(o.metricNames); |
| 891 } | 926 } |
| 892 buildCounterReportCriteria--; | 927 buildCounterReportCriteria--; |
| 893 } | 928 } |
| 894 | 929 |
| 895 buildUnnamed224() { | 930 buildUnnamed671() { |
| 896 var o = new core.List<api.SortedDimension>(); | 931 var o = new core.List<api.SortedDimension>(); |
| 897 o.add(buildSortedDimension()); | 932 o.add(buildSortedDimension()); |
| 898 o.add(buildSortedDimension()); | 933 o.add(buildSortedDimension()); |
| 899 return o; | 934 return o; |
| 900 } | 935 } |
| 901 | 936 |
| 902 checkUnnamed224(core.List<api.SortedDimension> o) { | 937 checkUnnamed671(core.List<api.SortedDimension> o) { |
| 903 unittest.expect(o, unittest.hasLength(2)); | 938 unittest.expect(o, unittest.hasLength(2)); |
| 904 checkSortedDimension(o[0]); | 939 checkSortedDimension(o[0]); |
| 905 checkSortedDimension(o[1]); | 940 checkSortedDimension(o[1]); |
| 906 } | 941 } |
| 907 | 942 |
| 908 buildUnnamed225() { | 943 buildUnnamed672() { |
| 909 var o = new core.List<api.DimensionValue>(); | 944 var o = new core.List<api.DimensionValue>(); |
| 910 o.add(buildDimensionValue()); | 945 o.add(buildDimensionValue()); |
| 911 o.add(buildDimensionValue()); | 946 o.add(buildDimensionValue()); |
| 912 return o; | 947 return o; |
| 913 } | 948 } |
| 914 | 949 |
| 915 checkUnnamed225(core.List<api.DimensionValue> o) { | 950 checkUnnamed672(core.List<api.DimensionValue> o) { |
| 916 unittest.expect(o, unittest.hasLength(2)); | 951 unittest.expect(o, unittest.hasLength(2)); |
| 917 checkDimensionValue(o[0]); | 952 checkDimensionValue(o[0]); |
| 918 checkDimensionValue(o[1]); | 953 checkDimensionValue(o[1]); |
| 919 } | 954 } |
| 920 | 955 |
| 921 buildUnnamed226() { | 956 buildUnnamed673() { |
| 922 var o = new core.List<core.String>(); | 957 var o = new core.List<core.String>(); |
| 923 o.add("foo"); | 958 o.add("foo"); |
| 924 o.add("foo"); | 959 o.add("foo"); |
| 925 return o; | 960 return o; |
| 926 } | 961 } |
| 927 | 962 |
| 928 checkUnnamed226(core.List<core.String> o) { | 963 checkUnnamed673(core.List<core.String> o) { |
| 929 unittest.expect(o, unittest.hasLength(2)); | 964 unittest.expect(o, unittest.hasLength(2)); |
| 930 unittest.expect(o[0], unittest.equals('foo')); | 965 unittest.expect(o[0], unittest.equals('foo')); |
| 931 unittest.expect(o[1], unittest.equals('foo')); | 966 unittest.expect(o[1], unittest.equals('foo')); |
| 932 } | 967 } |
| 933 | 968 |
| 934 buildUnnamed227() { | 969 buildUnnamed674() { |
| 935 var o = new core.List<core.String>(); | 970 var o = new core.List<core.String>(); |
| 936 o.add("foo"); | 971 o.add("foo"); |
| 937 o.add("foo"); | 972 o.add("foo"); |
| 938 return o; | 973 return o; |
| 939 } | 974 } |
| 940 | 975 |
| 941 checkUnnamed227(core.List<core.String> o) { | 976 checkUnnamed674(core.List<core.String> o) { |
| 942 unittest.expect(o, unittest.hasLength(2)); | 977 unittest.expect(o, unittest.hasLength(2)); |
| 943 unittest.expect(o[0], unittest.equals('foo')); | 978 unittest.expect(o[0], unittest.equals('foo')); |
| 944 unittest.expect(o[1], unittest.equals('foo')); | 979 unittest.expect(o[1], unittest.equals('foo')); |
| 945 } | 980 } |
| 946 | 981 |
| 947 core.int buildCounterReportCrossDimensionReachCriteria = 0; | 982 core.int buildCounterReportCrossDimensionReachCriteria = 0; |
| 948 buildReportCrossDimensionReachCriteria() { | 983 buildReportCrossDimensionReachCriteria() { |
| 949 var o = new api.ReportCrossDimensionReachCriteria(); | 984 var o = new api.ReportCrossDimensionReachCriteria(); |
| 950 buildCounterReportCrossDimensionReachCriteria++; | 985 buildCounterReportCrossDimensionReachCriteria++; |
| 951 if (buildCounterReportCrossDimensionReachCriteria < 3) { | 986 if (buildCounterReportCrossDimensionReachCriteria < 3) { |
| 952 o.breakdown = buildUnnamed224(); | 987 o.breakdown = buildUnnamed671(); |
| 953 o.dateRange = buildDateRange(); | 988 o.dateRange = buildDateRange(); |
| 954 o.dimension = "foo"; | 989 o.dimension = "foo"; |
| 955 o.dimensionFilters = buildUnnamed225(); | 990 o.dimensionFilters = buildUnnamed672(); |
| 956 o.metricNames = buildUnnamed226(); | 991 o.metricNames = buildUnnamed673(); |
| 957 o.overlapMetricNames = buildUnnamed227(); | 992 o.overlapMetricNames = buildUnnamed674(); |
| 958 o.pivoted = true; | 993 o.pivoted = true; |
| 959 } | 994 } |
| 960 buildCounterReportCrossDimensionReachCriteria--; | 995 buildCounterReportCrossDimensionReachCriteria--; |
| 961 return o; | 996 return o; |
| 962 } | 997 } |
| 963 | 998 |
| 964 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o)
{ | 999 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o)
{ |
| 965 buildCounterReportCrossDimensionReachCriteria++; | 1000 buildCounterReportCrossDimensionReachCriteria++; |
| 966 if (buildCounterReportCrossDimensionReachCriteria < 3) { | 1001 if (buildCounterReportCrossDimensionReachCriteria < 3) { |
| 967 checkUnnamed224(o.breakdown); | 1002 checkUnnamed671(o.breakdown); |
| 968 checkDateRange(o.dateRange); | 1003 checkDateRange(o.dateRange); |
| 969 unittest.expect(o.dimension, unittest.equals('foo')); | 1004 unittest.expect(o.dimension, unittest.equals('foo')); |
| 970 checkUnnamed225(o.dimensionFilters); | 1005 checkUnnamed672(o.dimensionFilters); |
| 971 checkUnnamed226(o.metricNames); | 1006 checkUnnamed673(o.metricNames); |
| 972 checkUnnamed227(o.overlapMetricNames); | 1007 checkUnnamed674(o.overlapMetricNames); |
| 973 unittest.expect(o.pivoted, unittest.isTrue); | 1008 unittest.expect(o.pivoted, unittest.isTrue); |
| 974 } | 1009 } |
| 975 buildCounterReportCrossDimensionReachCriteria--; | 1010 buildCounterReportCrossDimensionReachCriteria--; |
| 976 } | 1011 } |
| 977 | 1012 |
| 978 buildUnnamed228() { | 1013 buildUnnamed675() { |
| 979 var o = new core.List<api.Recipient>(); | 1014 var o = new core.List<api.Recipient>(); |
| 980 o.add(buildRecipient()); | 1015 o.add(buildRecipient()); |
| 981 o.add(buildRecipient()); | 1016 o.add(buildRecipient()); |
| 982 return o; | 1017 return o; |
| 983 } | 1018 } |
| 984 | 1019 |
| 985 checkUnnamed228(core.List<api.Recipient> o) { | 1020 checkUnnamed675(core.List<api.Recipient> o) { |
| 986 unittest.expect(o, unittest.hasLength(2)); | 1021 unittest.expect(o, unittest.hasLength(2)); |
| 987 checkRecipient(o[0]); | 1022 checkRecipient(o[0]); |
| 988 checkRecipient(o[1]); | 1023 checkRecipient(o[1]); |
| 989 } | 1024 } |
| 990 | 1025 |
| 991 core.int buildCounterReportDelivery = 0; | 1026 core.int buildCounterReportDelivery = 0; |
| 992 buildReportDelivery() { | 1027 buildReportDelivery() { |
| 993 var o = new api.ReportDelivery(); | 1028 var o = new api.ReportDelivery(); |
| 994 buildCounterReportDelivery++; | 1029 buildCounterReportDelivery++; |
| 995 if (buildCounterReportDelivery < 3) { | 1030 if (buildCounterReportDelivery < 3) { |
| 996 o.emailOwner = true; | 1031 o.emailOwner = true; |
| 997 o.emailOwnerDeliveryType = "foo"; | 1032 o.emailOwnerDeliveryType = "foo"; |
| 998 o.message = "foo"; | 1033 o.message = "foo"; |
| 999 o.recipients = buildUnnamed228(); | 1034 o.recipients = buildUnnamed675(); |
| 1000 } | 1035 } |
| 1001 buildCounterReportDelivery--; | 1036 buildCounterReportDelivery--; |
| 1002 return o; | 1037 return o; |
| 1003 } | 1038 } |
| 1004 | 1039 |
| 1005 checkReportDelivery(api.ReportDelivery o) { | 1040 checkReportDelivery(api.ReportDelivery o) { |
| 1006 buildCounterReportDelivery++; | 1041 buildCounterReportDelivery++; |
| 1007 if (buildCounterReportDelivery < 3) { | 1042 if (buildCounterReportDelivery < 3) { |
| 1008 unittest.expect(o.emailOwner, unittest.isTrue); | 1043 unittest.expect(o.emailOwner, unittest.isTrue); |
| 1009 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); | 1044 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); |
| 1010 unittest.expect(o.message, unittest.equals('foo')); | 1045 unittest.expect(o.message, unittest.equals('foo')); |
| 1011 checkUnnamed228(o.recipients); | 1046 checkUnnamed675(o.recipients); |
| 1012 } | 1047 } |
| 1013 buildCounterReportDelivery--; | 1048 buildCounterReportDelivery--; |
| 1014 } | 1049 } |
| 1015 | 1050 |
| 1016 buildUnnamed229() { | 1051 buildUnnamed676() { |
| 1017 var o = new core.List<api.DimensionValue>(); | 1052 var o = new core.List<api.DimensionValue>(); |
| 1018 o.add(buildDimensionValue()); | 1053 o.add(buildDimensionValue()); |
| 1019 o.add(buildDimensionValue()); | 1054 o.add(buildDimensionValue()); |
| 1020 return o; | 1055 return o; |
| 1021 } | 1056 } |
| 1022 | 1057 |
| 1023 checkUnnamed229(core.List<api.DimensionValue> o) { | 1058 checkUnnamed676(core.List<api.DimensionValue> o) { |
| 1024 unittest.expect(o, unittest.hasLength(2)); | 1059 unittest.expect(o, unittest.hasLength(2)); |
| 1025 checkDimensionValue(o[0]); | 1060 checkDimensionValue(o[0]); |
| 1026 checkDimensionValue(o[1]); | 1061 checkDimensionValue(o[1]); |
| 1027 } | 1062 } |
| 1028 | 1063 |
| 1029 buildUnnamed230() { | 1064 buildUnnamed677() { |
| 1030 var o = new core.List<api.DimensionValue>(); | 1065 var o = new core.List<api.DimensionValue>(); |
| 1031 o.add(buildDimensionValue()); | 1066 o.add(buildDimensionValue()); |
| 1032 o.add(buildDimensionValue()); | 1067 o.add(buildDimensionValue()); |
| 1033 return o; | 1068 return o; |
| 1034 } | 1069 } |
| 1035 | 1070 |
| 1036 checkUnnamed230(core.List<api.DimensionValue> o) { | 1071 checkUnnamed677(core.List<api.DimensionValue> o) { |
| 1037 unittest.expect(o, unittest.hasLength(2)); | 1072 unittest.expect(o, unittest.hasLength(2)); |
| 1038 checkDimensionValue(o[0]); | 1073 checkDimensionValue(o[0]); |
| 1039 checkDimensionValue(o[1]); | 1074 checkDimensionValue(o[1]); |
| 1040 } | 1075 } |
| 1041 | 1076 |
| 1042 buildUnnamed231() { | 1077 buildUnnamed678() { |
| 1043 var o = new core.List<api.SortedDimension>(); | 1078 var o = new core.List<api.SortedDimension>(); |
| 1044 o.add(buildSortedDimension()); | 1079 o.add(buildSortedDimension()); |
| 1045 o.add(buildSortedDimension()); | 1080 o.add(buildSortedDimension()); |
| 1046 return o; | 1081 return o; |
| 1047 } | 1082 } |
| 1048 | 1083 |
| 1049 checkUnnamed231(core.List<api.SortedDimension> o) { | 1084 checkUnnamed678(core.List<api.SortedDimension> o) { |
| 1050 unittest.expect(o, unittest.hasLength(2)); | 1085 unittest.expect(o, unittest.hasLength(2)); |
| 1051 checkSortedDimension(o[0]); | 1086 checkSortedDimension(o[0]); |
| 1052 checkSortedDimension(o[1]); | 1087 checkSortedDimension(o[1]); |
| 1053 } | 1088 } |
| 1054 | 1089 |
| 1055 buildUnnamed232() { | 1090 buildUnnamed679() { |
| 1056 var o = new core.List<core.String>(); | 1091 var o = new core.List<core.String>(); |
| 1057 o.add("foo"); | 1092 o.add("foo"); |
| 1058 o.add("foo"); | 1093 o.add("foo"); |
| 1059 return o; | 1094 return o; |
| 1060 } | 1095 } |
| 1061 | 1096 |
| 1062 checkUnnamed232(core.List<core.String> o) { | 1097 checkUnnamed679(core.List<core.String> o) { |
| 1063 unittest.expect(o, unittest.hasLength(2)); | 1098 unittest.expect(o, unittest.hasLength(2)); |
| 1064 unittest.expect(o[0], unittest.equals('foo')); | 1099 unittest.expect(o[0], unittest.equals('foo')); |
| 1065 unittest.expect(o[1], unittest.equals('foo')); | 1100 unittest.expect(o[1], unittest.equals('foo')); |
| 1066 } | 1101 } |
| 1067 | 1102 |
| 1068 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; | 1103 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; |
| 1069 buildReportFloodlightCriteriaReportProperties() { | 1104 buildReportFloodlightCriteriaReportProperties() { |
| 1070 var o = new api.ReportFloodlightCriteriaReportProperties(); | 1105 var o = new api.ReportFloodlightCriteriaReportProperties(); |
| 1071 buildCounterReportFloodlightCriteriaReportProperties++; | 1106 buildCounterReportFloodlightCriteriaReportProperties++; |
| 1072 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { | 1107 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1086 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); | 1121 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); |
| 1087 } | 1122 } |
| 1088 buildCounterReportFloodlightCriteriaReportProperties--; | 1123 buildCounterReportFloodlightCriteriaReportProperties--; |
| 1089 } | 1124 } |
| 1090 | 1125 |
| 1091 core.int buildCounterReportFloodlightCriteria = 0; | 1126 core.int buildCounterReportFloodlightCriteria = 0; |
| 1092 buildReportFloodlightCriteria() { | 1127 buildReportFloodlightCriteria() { |
| 1093 var o = new api.ReportFloodlightCriteria(); | 1128 var o = new api.ReportFloodlightCriteria(); |
| 1094 buildCounterReportFloodlightCriteria++; | 1129 buildCounterReportFloodlightCriteria++; |
| 1095 if (buildCounterReportFloodlightCriteria < 3) { | 1130 if (buildCounterReportFloodlightCriteria < 3) { |
| 1096 o.customRichMediaEvents = buildUnnamed229(); | 1131 o.customRichMediaEvents = buildUnnamed676(); |
| 1097 o.dateRange = buildDateRange(); | 1132 o.dateRange = buildDateRange(); |
| 1098 o.dimensionFilters = buildUnnamed230(); | 1133 o.dimensionFilters = buildUnnamed677(); |
| 1099 o.dimensions = buildUnnamed231(); | 1134 o.dimensions = buildUnnamed678(); |
| 1100 o.floodlightConfigId = buildDimensionValue(); | 1135 o.floodlightConfigId = buildDimensionValue(); |
| 1101 o.metricNames = buildUnnamed232(); | 1136 o.metricNames = buildUnnamed679(); |
| 1102 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); | 1137 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); |
| 1103 } | 1138 } |
| 1104 buildCounterReportFloodlightCriteria--; | 1139 buildCounterReportFloodlightCriteria--; |
| 1105 return o; | 1140 return o; |
| 1106 } | 1141 } |
| 1107 | 1142 |
| 1108 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { | 1143 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { |
| 1109 buildCounterReportFloodlightCriteria++; | 1144 buildCounterReportFloodlightCriteria++; |
| 1110 if (buildCounterReportFloodlightCriteria < 3) { | 1145 if (buildCounterReportFloodlightCriteria < 3) { |
| 1111 checkUnnamed229(o.customRichMediaEvents); | 1146 checkUnnamed676(o.customRichMediaEvents); |
| 1112 checkDateRange(o.dateRange); | 1147 checkDateRange(o.dateRange); |
| 1113 checkUnnamed230(o.dimensionFilters); | 1148 checkUnnamed677(o.dimensionFilters); |
| 1114 checkUnnamed231(o.dimensions); | 1149 checkUnnamed678(o.dimensions); |
| 1115 checkDimensionValue(o.floodlightConfigId); | 1150 checkDimensionValue(o.floodlightConfigId); |
| 1116 checkUnnamed232(o.metricNames); | 1151 checkUnnamed679(o.metricNames); |
| 1117 checkReportFloodlightCriteriaReportProperties(o.reportProperties); | 1152 checkReportFloodlightCriteriaReportProperties(o.reportProperties); |
| 1118 } | 1153 } |
| 1119 buildCounterReportFloodlightCriteria--; | 1154 buildCounterReportFloodlightCriteria--; |
| 1120 } | 1155 } |
| 1121 | 1156 |
| 1122 buildUnnamed233() { | 1157 buildUnnamed680() { |
| 1123 var o = new core.List<api.DimensionValue>(); | 1158 var o = new core.List<api.DimensionValue>(); |
| 1124 o.add(buildDimensionValue()); | 1159 o.add(buildDimensionValue()); |
| 1125 o.add(buildDimensionValue()); | 1160 o.add(buildDimensionValue()); |
| 1126 return o; | 1161 return o; |
| 1127 } | 1162 } |
| 1128 | 1163 |
| 1129 checkUnnamed233(core.List<api.DimensionValue> o) { | 1164 checkUnnamed680(core.List<api.DimensionValue> o) { |
| 1130 unittest.expect(o, unittest.hasLength(2)); | 1165 unittest.expect(o, unittest.hasLength(2)); |
| 1131 checkDimensionValue(o[0]); | 1166 checkDimensionValue(o[0]); |
| 1132 checkDimensionValue(o[1]); | 1167 checkDimensionValue(o[1]); |
| 1133 } | 1168 } |
| 1134 | 1169 |
| 1135 buildUnnamed234() { | 1170 buildUnnamed681() { |
| 1136 var o = new core.List<api.SortedDimension>(); | 1171 var o = new core.List<api.SortedDimension>(); |
| 1137 o.add(buildSortedDimension()); | 1172 o.add(buildSortedDimension()); |
| 1138 o.add(buildSortedDimension()); | 1173 o.add(buildSortedDimension()); |
| 1139 return o; | 1174 return o; |
| 1140 } | 1175 } |
| 1141 | 1176 |
| 1142 checkUnnamed234(core.List<api.SortedDimension> o) { | 1177 checkUnnamed681(core.List<api.SortedDimension> o) { |
| 1143 unittest.expect(o, unittest.hasLength(2)); | 1178 unittest.expect(o, unittest.hasLength(2)); |
| 1144 checkSortedDimension(o[0]); | 1179 checkSortedDimension(o[0]); |
| 1145 checkSortedDimension(o[1]); | 1180 checkSortedDimension(o[1]); |
| 1146 } | 1181 } |
| 1147 | 1182 |
| 1148 buildUnnamed235() { | 1183 buildUnnamed682() { |
| 1149 var o = new core.List<api.SortedDimension>(); | 1184 var o = new core.List<api.SortedDimension>(); |
| 1150 o.add(buildSortedDimension()); | 1185 o.add(buildSortedDimension()); |
| 1151 o.add(buildSortedDimension()); | 1186 o.add(buildSortedDimension()); |
| 1152 return o; | 1187 return o; |
| 1153 } | 1188 } |
| 1154 | 1189 |
| 1155 checkUnnamed235(core.List<api.SortedDimension> o) { | 1190 checkUnnamed682(core.List<api.SortedDimension> o) { |
| 1156 unittest.expect(o, unittest.hasLength(2)); | 1191 unittest.expect(o, unittest.hasLength(2)); |
| 1157 checkSortedDimension(o[0]); | 1192 checkSortedDimension(o[0]); |
| 1158 checkSortedDimension(o[1]); | 1193 checkSortedDimension(o[1]); |
| 1159 } | 1194 } |
| 1160 | 1195 |
| 1161 buildUnnamed236() { | 1196 buildUnnamed683() { |
| 1162 var o = new core.List<api.DimensionValue>(); | 1197 var o = new core.List<api.DimensionValue>(); |
| 1163 o.add(buildDimensionValue()); | 1198 o.add(buildDimensionValue()); |
| 1164 o.add(buildDimensionValue()); | 1199 o.add(buildDimensionValue()); |
| 1165 return o; | 1200 return o; |
| 1166 } | 1201 } |
| 1167 | 1202 |
| 1168 checkUnnamed236(core.List<api.DimensionValue> o) { | 1203 checkUnnamed683(core.List<api.DimensionValue> o) { |
| 1169 unittest.expect(o, unittest.hasLength(2)); | 1204 unittest.expect(o, unittest.hasLength(2)); |
| 1170 checkDimensionValue(o[0]); | 1205 checkDimensionValue(o[0]); |
| 1171 checkDimensionValue(o[1]); | 1206 checkDimensionValue(o[1]); |
| 1172 } | 1207 } |
| 1173 | 1208 |
| 1174 buildUnnamed237() { | 1209 buildUnnamed684() { |
| 1175 var o = new core.List<core.String>(); | 1210 var o = new core.List<core.String>(); |
| 1176 o.add("foo"); | 1211 o.add("foo"); |
| 1177 o.add("foo"); | 1212 o.add("foo"); |
| 1178 return o; | 1213 return o; |
| 1179 } | 1214 } |
| 1180 | 1215 |
| 1181 checkUnnamed237(core.List<core.String> o) { | 1216 checkUnnamed684(core.List<core.String> o) { |
| 1182 unittest.expect(o, unittest.hasLength(2)); | 1217 unittest.expect(o, unittest.hasLength(2)); |
| 1183 unittest.expect(o[0], unittest.equals('foo')); | 1218 unittest.expect(o[0], unittest.equals('foo')); |
| 1184 unittest.expect(o[1], unittest.equals('foo')); | 1219 unittest.expect(o[1], unittest.equals('foo')); |
| 1185 } | 1220 } |
| 1186 | 1221 |
| 1187 buildUnnamed238() { | 1222 buildUnnamed685() { |
| 1188 var o = new core.List<api.SortedDimension>(); | 1223 var o = new core.List<api.SortedDimension>(); |
| 1189 o.add(buildSortedDimension()); | 1224 o.add(buildSortedDimension()); |
| 1190 o.add(buildSortedDimension()); | 1225 o.add(buildSortedDimension()); |
| 1191 return o; | 1226 return o; |
| 1192 } | 1227 } |
| 1193 | 1228 |
| 1194 checkUnnamed238(core.List<api.SortedDimension> o) { | 1229 checkUnnamed685(core.List<api.SortedDimension> o) { |
| 1195 unittest.expect(o, unittest.hasLength(2)); | 1230 unittest.expect(o, unittest.hasLength(2)); |
| 1196 checkSortedDimension(o[0]); | 1231 checkSortedDimension(o[0]); |
| 1197 checkSortedDimension(o[1]); | 1232 checkSortedDimension(o[1]); |
| 1198 } | 1233 } |
| 1199 | 1234 |
| 1200 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; | 1235 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; |
| 1201 buildReportPathToConversionCriteriaReportProperties() { | 1236 buildReportPathToConversionCriteriaReportProperties() { |
| 1202 var o = new api.ReportPathToConversionCriteriaReportProperties(); | 1237 var o = new api.ReportPathToConversionCriteriaReportProperties(); |
| 1203 buildCounterReportPathToConversionCriteriaReportProperties++; | 1238 buildCounterReportPathToConversionCriteriaReportProperties++; |
| 1204 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { | 1239 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1230 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); | 1265 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); |
| 1231 } | 1266 } |
| 1232 buildCounterReportPathToConversionCriteriaReportProperties--; | 1267 buildCounterReportPathToConversionCriteriaReportProperties--; |
| 1233 } | 1268 } |
| 1234 | 1269 |
| 1235 core.int buildCounterReportPathToConversionCriteria = 0; | 1270 core.int buildCounterReportPathToConversionCriteria = 0; |
| 1236 buildReportPathToConversionCriteria() { | 1271 buildReportPathToConversionCriteria() { |
| 1237 var o = new api.ReportPathToConversionCriteria(); | 1272 var o = new api.ReportPathToConversionCriteria(); |
| 1238 buildCounterReportPathToConversionCriteria++; | 1273 buildCounterReportPathToConversionCriteria++; |
| 1239 if (buildCounterReportPathToConversionCriteria < 3) { | 1274 if (buildCounterReportPathToConversionCriteria < 3) { |
| 1240 o.activityFilters = buildUnnamed233(); | 1275 o.activityFilters = buildUnnamed680(); |
| 1241 o.conversionDimensions = buildUnnamed234(); | 1276 o.conversionDimensions = buildUnnamed681(); |
| 1242 o.customFloodlightVariables = buildUnnamed235(); | 1277 o.customFloodlightVariables = buildUnnamed682(); |
| 1243 o.customRichMediaEvents = buildUnnamed236(); | 1278 o.customRichMediaEvents = buildUnnamed683(); |
| 1244 o.dateRange = buildDateRange(); | 1279 o.dateRange = buildDateRange(); |
| 1245 o.floodlightConfigId = buildDimensionValue(); | 1280 o.floodlightConfigId = buildDimensionValue(); |
| 1246 o.metricNames = buildUnnamed237(); | 1281 o.metricNames = buildUnnamed684(); |
| 1247 o.perInteractionDimensions = buildUnnamed238(); | 1282 o.perInteractionDimensions = buildUnnamed685(); |
| 1248 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); | 1283 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); |
| 1249 } | 1284 } |
| 1250 buildCounterReportPathToConversionCriteria--; | 1285 buildCounterReportPathToConversionCriteria--; |
| 1251 return o; | 1286 return o; |
| 1252 } | 1287 } |
| 1253 | 1288 |
| 1254 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { | 1289 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { |
| 1255 buildCounterReportPathToConversionCriteria++; | 1290 buildCounterReportPathToConversionCriteria++; |
| 1256 if (buildCounterReportPathToConversionCriteria < 3) { | 1291 if (buildCounterReportPathToConversionCriteria < 3) { |
| 1257 checkUnnamed233(o.activityFilters); | 1292 checkUnnamed680(o.activityFilters); |
| 1258 checkUnnamed234(o.conversionDimensions); | 1293 checkUnnamed681(o.conversionDimensions); |
| 1259 checkUnnamed235(o.customFloodlightVariables); | 1294 checkUnnamed682(o.customFloodlightVariables); |
| 1260 checkUnnamed236(o.customRichMediaEvents); | 1295 checkUnnamed683(o.customRichMediaEvents); |
| 1261 checkDateRange(o.dateRange); | 1296 checkDateRange(o.dateRange); |
| 1262 checkDimensionValue(o.floodlightConfigId); | 1297 checkDimensionValue(o.floodlightConfigId); |
| 1263 checkUnnamed237(o.metricNames); | 1298 checkUnnamed684(o.metricNames); |
| 1264 checkUnnamed238(o.perInteractionDimensions); | 1299 checkUnnamed685(o.perInteractionDimensions); |
| 1265 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); | 1300 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); |
| 1266 } | 1301 } |
| 1267 buildCounterReportPathToConversionCriteria--; | 1302 buildCounterReportPathToConversionCriteria--; |
| 1268 } | 1303 } |
| 1269 | 1304 |
| 1270 buildUnnamed239() { | 1305 buildUnnamed686() { |
| 1271 var o = new core.List<api.DimensionValue>(); | 1306 var o = new core.List<api.DimensionValue>(); |
| 1272 o.add(buildDimensionValue()); | 1307 o.add(buildDimensionValue()); |
| 1273 o.add(buildDimensionValue()); | 1308 o.add(buildDimensionValue()); |
| 1274 return o; | 1309 return o; |
| 1275 } | 1310 } |
| 1276 | 1311 |
| 1277 checkUnnamed239(core.List<api.DimensionValue> o) { | 1312 checkUnnamed686(core.List<api.DimensionValue> o) { |
| 1278 unittest.expect(o, unittest.hasLength(2)); | 1313 unittest.expect(o, unittest.hasLength(2)); |
| 1279 checkDimensionValue(o[0]); | 1314 checkDimensionValue(o[0]); |
| 1280 checkDimensionValue(o[1]); | 1315 checkDimensionValue(o[1]); |
| 1281 } | 1316 } |
| 1282 | 1317 |
| 1283 buildUnnamed240() { | 1318 buildUnnamed687() { |
| 1284 var o = new core.List<api.SortedDimension>(); | 1319 var o = new core.List<api.SortedDimension>(); |
| 1285 o.add(buildSortedDimension()); | 1320 o.add(buildSortedDimension()); |
| 1286 o.add(buildSortedDimension()); | 1321 o.add(buildSortedDimension()); |
| 1287 return o; | 1322 return o; |
| 1288 } | 1323 } |
| 1289 | 1324 |
| 1290 checkUnnamed240(core.List<api.SortedDimension> o) { | 1325 checkUnnamed687(core.List<api.SortedDimension> o) { |
| 1291 unittest.expect(o, unittest.hasLength(2)); | 1326 unittest.expect(o, unittest.hasLength(2)); |
| 1292 checkSortedDimension(o[0]); | 1327 checkSortedDimension(o[0]); |
| 1293 checkSortedDimension(o[1]); | 1328 checkSortedDimension(o[1]); |
| 1294 } | 1329 } |
| 1295 | 1330 |
| 1296 buildUnnamed241() { | 1331 buildUnnamed688() { |
| 1297 var o = new core.List<core.String>(); | 1332 var o = new core.List<core.String>(); |
| 1298 o.add("foo"); | 1333 o.add("foo"); |
| 1299 o.add("foo"); | 1334 o.add("foo"); |
| 1300 return o; | 1335 return o; |
| 1301 } | 1336 } |
| 1302 | 1337 |
| 1303 checkUnnamed241(core.List<core.String> o) { | 1338 checkUnnamed688(core.List<core.String> o) { |
| 1304 unittest.expect(o, unittest.hasLength(2)); | 1339 unittest.expect(o, unittest.hasLength(2)); |
| 1305 unittest.expect(o[0], unittest.equals('foo')); | 1340 unittest.expect(o[0], unittest.equals('foo')); |
| 1306 unittest.expect(o[1], unittest.equals('foo')); | 1341 unittest.expect(o[1], unittest.equals('foo')); |
| 1307 } | 1342 } |
| 1308 | 1343 |
| 1309 buildUnnamed242() { | 1344 buildUnnamed689() { |
| 1310 var o = new core.List<core.String>(); | 1345 var o = new core.List<core.String>(); |
| 1311 o.add("foo"); | 1346 o.add("foo"); |
| 1312 o.add("foo"); | 1347 o.add("foo"); |
| 1313 return o; | 1348 return o; |
| 1314 } | 1349 } |
| 1315 | 1350 |
| 1316 checkUnnamed242(core.List<core.String> o) { | 1351 checkUnnamed689(core.List<core.String> o) { |
| 1317 unittest.expect(o, unittest.hasLength(2)); | 1352 unittest.expect(o, unittest.hasLength(2)); |
| 1318 unittest.expect(o[0], unittest.equals('foo')); | 1353 unittest.expect(o[0], unittest.equals('foo')); |
| 1319 unittest.expect(o[1], unittest.equals('foo')); | 1354 unittest.expect(o[1], unittest.equals('foo')); |
| 1320 } | 1355 } |
| 1321 | 1356 |
| 1322 core.int buildCounterReportReachCriteria = 0; | 1357 core.int buildCounterReportReachCriteria = 0; |
| 1323 buildReportReachCriteria() { | 1358 buildReportReachCriteria() { |
| 1324 var o = new api.ReportReachCriteria(); | 1359 var o = new api.ReportReachCriteria(); |
| 1325 buildCounterReportReachCriteria++; | 1360 buildCounterReportReachCriteria++; |
| 1326 if (buildCounterReportReachCriteria < 3) { | 1361 if (buildCounterReportReachCriteria < 3) { |
| 1327 o.activities = buildActivities(); | 1362 o.activities = buildActivities(); |
| 1328 o.customRichMediaEvents = buildCustomRichMediaEvents(); | 1363 o.customRichMediaEvents = buildCustomRichMediaEvents(); |
| 1329 o.dateRange = buildDateRange(); | 1364 o.dateRange = buildDateRange(); |
| 1330 o.dimensionFilters = buildUnnamed239(); | 1365 o.dimensionFilters = buildUnnamed686(); |
| 1331 o.dimensions = buildUnnamed240(); | 1366 o.dimensions = buildUnnamed687(); |
| 1332 o.metricNames = buildUnnamed241(); | 1367 o.metricNames = buildUnnamed688(); |
| 1333 o.reachByFrequencyMetricNames = buildUnnamed242(); | 1368 o.reachByFrequencyMetricNames = buildUnnamed689(); |
| 1334 } | 1369 } |
| 1335 buildCounterReportReachCriteria--; | 1370 buildCounterReportReachCriteria--; |
| 1336 return o; | 1371 return o; |
| 1337 } | 1372 } |
| 1338 | 1373 |
| 1339 checkReportReachCriteria(api.ReportReachCriteria o) { | 1374 checkReportReachCriteria(api.ReportReachCriteria o) { |
| 1340 buildCounterReportReachCriteria++; | 1375 buildCounterReportReachCriteria++; |
| 1341 if (buildCounterReportReachCriteria < 3) { | 1376 if (buildCounterReportReachCriteria < 3) { |
| 1342 checkActivities(o.activities); | 1377 checkActivities(o.activities); |
| 1343 checkCustomRichMediaEvents(o.customRichMediaEvents); | 1378 checkCustomRichMediaEvents(o.customRichMediaEvents); |
| 1344 checkDateRange(o.dateRange); | 1379 checkDateRange(o.dateRange); |
| 1345 checkUnnamed239(o.dimensionFilters); | 1380 checkUnnamed686(o.dimensionFilters); |
| 1346 checkUnnamed240(o.dimensions); | 1381 checkUnnamed687(o.dimensions); |
| 1347 checkUnnamed241(o.metricNames); | 1382 checkUnnamed688(o.metricNames); |
| 1348 checkUnnamed242(o.reachByFrequencyMetricNames); | 1383 checkUnnamed689(o.reachByFrequencyMetricNames); |
| 1349 } | 1384 } |
| 1350 buildCounterReportReachCriteria--; | 1385 buildCounterReportReachCriteria--; |
| 1351 } | 1386 } |
| 1352 | 1387 |
| 1353 buildUnnamed243() { | 1388 buildUnnamed690() { |
| 1354 var o = new core.List<core.String>(); | 1389 var o = new core.List<core.String>(); |
| 1355 o.add("foo"); | 1390 o.add("foo"); |
| 1356 o.add("foo"); | 1391 o.add("foo"); |
| 1357 return o; | 1392 return o; |
| 1358 } | 1393 } |
| 1359 | 1394 |
| 1360 checkUnnamed243(core.List<core.String> o) { | 1395 checkUnnamed690(core.List<core.String> o) { |
| 1361 unittest.expect(o, unittest.hasLength(2)); | 1396 unittest.expect(o, unittest.hasLength(2)); |
| 1362 unittest.expect(o[0], unittest.equals('foo')); | 1397 unittest.expect(o[0], unittest.equals('foo')); |
| 1363 unittest.expect(o[1], unittest.equals('foo')); | 1398 unittest.expect(o[1], unittest.equals('foo')); |
| 1364 } | 1399 } |
| 1365 | 1400 |
| 1366 core.int buildCounterReportSchedule = 0; | 1401 core.int buildCounterReportSchedule = 0; |
| 1367 buildReportSchedule() { | 1402 buildReportSchedule() { |
| 1368 var o = new api.ReportSchedule(); | 1403 var o = new api.ReportSchedule(); |
| 1369 buildCounterReportSchedule++; | 1404 buildCounterReportSchedule++; |
| 1370 if (buildCounterReportSchedule < 3) { | 1405 if (buildCounterReportSchedule < 3) { |
| 1371 o.active = true; | 1406 o.active = true; |
| 1372 o.every = 42; | 1407 o.every = 42; |
| 1373 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 1408 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 1374 o.repeats = "foo"; | 1409 o.repeats = "foo"; |
| 1375 o.repeatsOnWeekDays = buildUnnamed243(); | 1410 o.repeatsOnWeekDays = buildUnnamed690(); |
| 1376 o.runsOnDayOfMonth = "foo"; | 1411 o.runsOnDayOfMonth = "foo"; |
| 1377 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 1412 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 1378 } | 1413 } |
| 1379 buildCounterReportSchedule--; | 1414 buildCounterReportSchedule--; |
| 1380 return o; | 1415 return o; |
| 1381 } | 1416 } |
| 1382 | 1417 |
| 1383 checkReportSchedule(api.ReportSchedule o) { | 1418 checkReportSchedule(api.ReportSchedule o) { |
| 1384 buildCounterReportSchedule++; | 1419 buildCounterReportSchedule++; |
| 1385 if (buildCounterReportSchedule < 3) { | 1420 if (buildCounterReportSchedule < 3) { |
| 1386 unittest.expect(o.active, unittest.isTrue); | 1421 unittest.expect(o.active, unittest.isTrue); |
| 1387 unittest.expect(o.every, unittest.equals(42)); | 1422 unittest.expect(o.every, unittest.equals(42)); |
| 1388 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-
02-27T00:00:00"))); | 1423 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-
02-27T00:00:00"))); |
| 1389 unittest.expect(o.repeats, unittest.equals('foo')); | 1424 unittest.expect(o.repeats, unittest.equals('foo')); |
| 1390 checkUnnamed243(o.repeatsOnWeekDays); | 1425 checkUnnamed690(o.repeatsOnWeekDays); |
| 1391 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); | 1426 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); |
| 1392 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 1427 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 1393 } | 1428 } |
| 1394 buildCounterReportSchedule--; | 1429 buildCounterReportSchedule--; |
| 1395 } | 1430 } |
| 1396 | 1431 |
| 1397 core.int buildCounterReport = 0; | 1432 core.int buildCounterReport = 0; |
| 1398 buildReport() { | 1433 buildReport() { |
| 1399 var o = new api.Report(); | 1434 var o = new api.Report(); |
| 1400 buildCounterReport++; | 1435 buildCounterReport++; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 unittest.expect(o.ownerProfileId, unittest.equals('foo')); | 1477 unittest.expect(o.ownerProfileId, unittest.equals('foo')); |
| 1443 checkReportPathToConversionCriteria(o.pathToConversionCriteria); | 1478 checkReportPathToConversionCriteria(o.pathToConversionCriteria); |
| 1444 checkReportReachCriteria(o.reachCriteria); | 1479 checkReportReachCriteria(o.reachCriteria); |
| 1445 checkReportSchedule(o.schedule); | 1480 checkReportSchedule(o.schedule); |
| 1446 unittest.expect(o.subAccountId, unittest.equals('foo')); | 1481 unittest.expect(o.subAccountId, unittest.equals('foo')); |
| 1447 unittest.expect(o.type, unittest.equals('foo')); | 1482 unittest.expect(o.type, unittest.equals('foo')); |
| 1448 } | 1483 } |
| 1449 buildCounterReport--; | 1484 buildCounterReport--; |
| 1450 } | 1485 } |
| 1451 | 1486 |
| 1452 buildUnnamed244() { | 1487 buildUnnamed691() { |
| 1453 var o = new core.List<api.Dimension>(); | 1488 var o = new core.List<api.Dimension>(); |
| 1454 o.add(buildDimension()); | 1489 o.add(buildDimension()); |
| 1455 o.add(buildDimension()); | 1490 o.add(buildDimension()); |
| 1456 return o; | 1491 return o; |
| 1457 } | 1492 } |
| 1458 | 1493 |
| 1459 checkUnnamed244(core.List<api.Dimension> o) { | 1494 checkUnnamed691(core.List<api.Dimension> o) { |
| 1460 unittest.expect(o, unittest.hasLength(2)); | 1495 unittest.expect(o, unittest.hasLength(2)); |
| 1461 checkDimension(o[0]); | 1496 checkDimension(o[0]); |
| 1462 checkDimension(o[1]); | 1497 checkDimension(o[1]); |
| 1463 } | 1498 } |
| 1464 | 1499 |
| 1465 buildUnnamed245() { | 1500 buildUnnamed692() { |
| 1466 var o = new core.List<api.Dimension>(); | 1501 var o = new core.List<api.Dimension>(); |
| 1467 o.add(buildDimension()); | 1502 o.add(buildDimension()); |
| 1468 o.add(buildDimension()); | 1503 o.add(buildDimension()); |
| 1469 return o; | 1504 return o; |
| 1470 } | 1505 } |
| 1471 | 1506 |
| 1472 checkUnnamed245(core.List<api.Dimension> o) { | 1507 checkUnnamed692(core.List<api.Dimension> o) { |
| 1473 unittest.expect(o, unittest.hasLength(2)); | 1508 unittest.expect(o, unittest.hasLength(2)); |
| 1474 checkDimension(o[0]); | 1509 checkDimension(o[0]); |
| 1475 checkDimension(o[1]); | 1510 checkDimension(o[1]); |
| 1476 } | 1511 } |
| 1477 | 1512 |
| 1478 buildUnnamed246() { | 1513 buildUnnamed693() { |
| 1479 var o = new core.List<api.Metric>(); | 1514 var o = new core.List<api.Metric>(); |
| 1480 o.add(buildMetric()); | 1515 o.add(buildMetric()); |
| 1481 o.add(buildMetric()); | 1516 o.add(buildMetric()); |
| 1482 return o; | 1517 return o; |
| 1483 } | 1518 } |
| 1484 | 1519 |
| 1485 checkUnnamed246(core.List<api.Metric> o) { | 1520 checkUnnamed693(core.List<api.Metric> o) { |
| 1486 unittest.expect(o, unittest.hasLength(2)); | 1521 unittest.expect(o, unittest.hasLength(2)); |
| 1487 checkMetric(o[0]); | 1522 checkMetric(o[0]); |
| 1488 checkMetric(o[1]); | 1523 checkMetric(o[1]); |
| 1489 } | 1524 } |
| 1490 | 1525 |
| 1491 buildUnnamed247() { | 1526 buildUnnamed694() { |
| 1492 var o = new core.List<api.Metric>(); | 1527 var o = new core.List<api.Metric>(); |
| 1493 o.add(buildMetric()); | 1528 o.add(buildMetric()); |
| 1494 o.add(buildMetric()); | 1529 o.add(buildMetric()); |
| 1495 return o; | 1530 return o; |
| 1496 } | 1531 } |
| 1497 | 1532 |
| 1498 checkUnnamed247(core.List<api.Metric> o) { | 1533 checkUnnamed694(core.List<api.Metric> o) { |
| 1499 unittest.expect(o, unittest.hasLength(2)); | 1534 unittest.expect(o, unittest.hasLength(2)); |
| 1500 checkMetric(o[0]); | 1535 checkMetric(o[0]); |
| 1501 checkMetric(o[1]); | 1536 checkMetric(o[1]); |
| 1502 } | 1537 } |
| 1503 | 1538 |
| 1504 core.int buildCounterReportCompatibleFields = 0; | 1539 core.int buildCounterReportCompatibleFields = 0; |
| 1505 buildReportCompatibleFields() { | 1540 buildReportCompatibleFields() { |
| 1506 var o = new api.ReportCompatibleFields(); | 1541 var o = new api.ReportCompatibleFields(); |
| 1507 buildCounterReportCompatibleFields++; | 1542 buildCounterReportCompatibleFields++; |
| 1508 if (buildCounterReportCompatibleFields < 3) { | 1543 if (buildCounterReportCompatibleFields < 3) { |
| 1509 o.dimensionFilters = buildUnnamed244(); | 1544 o.dimensionFilters = buildUnnamed691(); |
| 1510 o.dimensions = buildUnnamed245(); | 1545 o.dimensions = buildUnnamed692(); |
| 1511 o.kind = "foo"; | 1546 o.kind = "foo"; |
| 1512 o.metrics = buildUnnamed246(); | 1547 o.metrics = buildUnnamed693(); |
| 1513 o.pivotedActivityMetrics = buildUnnamed247(); | 1548 o.pivotedActivityMetrics = buildUnnamed694(); |
| 1514 } | 1549 } |
| 1515 buildCounterReportCompatibleFields--; | 1550 buildCounterReportCompatibleFields--; |
| 1516 return o; | 1551 return o; |
| 1517 } | 1552 } |
| 1518 | 1553 |
| 1519 checkReportCompatibleFields(api.ReportCompatibleFields o) { | 1554 checkReportCompatibleFields(api.ReportCompatibleFields o) { |
| 1520 buildCounterReportCompatibleFields++; | 1555 buildCounterReportCompatibleFields++; |
| 1521 if (buildCounterReportCompatibleFields < 3) { | 1556 if (buildCounterReportCompatibleFields < 3) { |
| 1522 checkUnnamed244(o.dimensionFilters); | 1557 checkUnnamed691(o.dimensionFilters); |
| 1523 checkUnnamed245(o.dimensions); | 1558 checkUnnamed692(o.dimensions); |
| 1524 unittest.expect(o.kind, unittest.equals('foo')); | 1559 unittest.expect(o.kind, unittest.equals('foo')); |
| 1525 checkUnnamed246(o.metrics); | 1560 checkUnnamed693(o.metrics); |
| 1526 checkUnnamed247(o.pivotedActivityMetrics); | 1561 checkUnnamed694(o.pivotedActivityMetrics); |
| 1527 } | 1562 } |
| 1528 buildCounterReportCompatibleFields--; | 1563 buildCounterReportCompatibleFields--; |
| 1529 } | 1564 } |
| 1530 | 1565 |
| 1531 buildUnnamed248() { | 1566 buildUnnamed695() { |
| 1532 var o = new core.List<api.Report>(); | 1567 var o = new core.List<api.Report>(); |
| 1533 o.add(buildReport()); | 1568 o.add(buildReport()); |
| 1534 o.add(buildReport()); | 1569 o.add(buildReport()); |
| 1535 return o; | 1570 return o; |
| 1536 } | 1571 } |
| 1537 | 1572 |
| 1538 checkUnnamed248(core.List<api.Report> o) { | 1573 checkUnnamed695(core.List<api.Report> o) { |
| 1539 unittest.expect(o, unittest.hasLength(2)); | 1574 unittest.expect(o, unittest.hasLength(2)); |
| 1540 checkReport(o[0]); | 1575 checkReport(o[0]); |
| 1541 checkReport(o[1]); | 1576 checkReport(o[1]); |
| 1542 } | 1577 } |
| 1543 | 1578 |
| 1544 core.int buildCounterReportList = 0; | 1579 core.int buildCounterReportList = 0; |
| 1545 buildReportList() { | 1580 buildReportList() { |
| 1546 var o = new api.ReportList(); | 1581 var o = new api.ReportList(); |
| 1547 buildCounterReportList++; | 1582 buildCounterReportList++; |
| 1548 if (buildCounterReportList < 3) { | 1583 if (buildCounterReportList < 3) { |
| 1549 o.etag = "foo"; | 1584 o.etag = "foo"; |
| 1550 o.items = buildUnnamed248(); | 1585 o.items = buildUnnamed695(); |
| 1551 o.kind = "foo"; | 1586 o.kind = "foo"; |
| 1552 o.nextPageToken = "foo"; | 1587 o.nextPageToken = "foo"; |
| 1553 } | 1588 } |
| 1554 buildCounterReportList--; | 1589 buildCounterReportList--; |
| 1555 return o; | 1590 return o; |
| 1556 } | 1591 } |
| 1557 | 1592 |
| 1558 checkReportList(api.ReportList o) { | 1593 checkReportList(api.ReportList o) { |
| 1559 buildCounterReportList++; | 1594 buildCounterReportList++; |
| 1560 if (buildCounterReportList < 3) { | 1595 if (buildCounterReportList < 3) { |
| 1561 unittest.expect(o.etag, unittest.equals('foo')); | 1596 unittest.expect(o.etag, unittest.equals('foo')); |
| 1562 checkUnnamed248(o.items); | 1597 checkUnnamed695(o.items); |
| 1563 unittest.expect(o.kind, unittest.equals('foo')); | 1598 unittest.expect(o.kind, unittest.equals('foo')); |
| 1564 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1599 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1565 } | 1600 } |
| 1566 buildCounterReportList--; | 1601 buildCounterReportList--; |
| 1567 } | 1602 } |
| 1568 | 1603 |
| 1569 core.int buildCounterSortedDimension = 0; | 1604 core.int buildCounterSortedDimension = 0; |
| 1570 buildSortedDimension() { | 1605 buildSortedDimension() { |
| 1571 var o = new api.SortedDimension(); | 1606 var o = new api.SortedDimension(); |
| 1572 buildCounterSortedDimension++; | 1607 buildCounterSortedDimension++; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 unittest.expect(o.etag, unittest.equals('foo')); | 1650 unittest.expect(o.etag, unittest.equals('foo')); |
| 1616 unittest.expect(o.kind, unittest.equals('foo')); | 1651 unittest.expect(o.kind, unittest.equals('foo')); |
| 1617 unittest.expect(o.profileId, unittest.equals('foo')); | 1652 unittest.expect(o.profileId, unittest.equals('foo')); |
| 1618 unittest.expect(o.subAccountId, unittest.equals('foo')); | 1653 unittest.expect(o.subAccountId, unittest.equals('foo')); |
| 1619 unittest.expect(o.subAccountName, unittest.equals('foo')); | 1654 unittest.expect(o.subAccountName, unittest.equals('foo')); |
| 1620 unittest.expect(o.userName, unittest.equals('foo')); | 1655 unittest.expect(o.userName, unittest.equals('foo')); |
| 1621 } | 1656 } |
| 1622 buildCounterUserProfile--; | 1657 buildCounterUserProfile--; |
| 1623 } | 1658 } |
| 1624 | 1659 |
| 1625 buildUnnamed249() { | 1660 buildUnnamed696() { |
| 1626 var o = new core.List<api.UserProfile>(); | 1661 var o = new core.List<api.UserProfile>(); |
| 1627 o.add(buildUserProfile()); | 1662 o.add(buildUserProfile()); |
| 1628 o.add(buildUserProfile()); | 1663 o.add(buildUserProfile()); |
| 1629 return o; | 1664 return o; |
| 1630 } | 1665 } |
| 1631 | 1666 |
| 1632 checkUnnamed249(core.List<api.UserProfile> o) { | 1667 checkUnnamed696(core.List<api.UserProfile> o) { |
| 1633 unittest.expect(o, unittest.hasLength(2)); | 1668 unittest.expect(o, unittest.hasLength(2)); |
| 1634 checkUserProfile(o[0]); | 1669 checkUserProfile(o[0]); |
| 1635 checkUserProfile(o[1]); | 1670 checkUserProfile(o[1]); |
| 1636 } | 1671 } |
| 1637 | 1672 |
| 1638 core.int buildCounterUserProfileList = 0; | 1673 core.int buildCounterUserProfileList = 0; |
| 1639 buildUserProfileList() { | 1674 buildUserProfileList() { |
| 1640 var o = new api.UserProfileList(); | 1675 var o = new api.UserProfileList(); |
| 1641 buildCounterUserProfileList++; | 1676 buildCounterUserProfileList++; |
| 1642 if (buildCounterUserProfileList < 3) { | 1677 if (buildCounterUserProfileList < 3) { |
| 1643 o.etag = "foo"; | 1678 o.etag = "foo"; |
| 1644 o.items = buildUnnamed249(); | 1679 o.items = buildUnnamed696(); |
| 1645 o.kind = "foo"; | 1680 o.kind = "foo"; |
| 1646 } | 1681 } |
| 1647 buildCounterUserProfileList--; | 1682 buildCounterUserProfileList--; |
| 1648 return o; | 1683 return o; |
| 1649 } | 1684 } |
| 1650 | 1685 |
| 1651 checkUserProfileList(api.UserProfileList o) { | 1686 checkUserProfileList(api.UserProfileList o) { |
| 1652 buildCounterUserProfileList++; | 1687 buildCounterUserProfileList++; |
| 1653 if (buildCounterUserProfileList < 3) { | 1688 if (buildCounterUserProfileList < 3) { |
| 1654 unittest.expect(o.etag, unittest.equals('foo')); | 1689 unittest.expect(o.etag, unittest.equals('foo')); |
| 1655 checkUnnamed249(o.items); | 1690 checkUnnamed696(o.items); |
| 1656 unittest.expect(o.kind, unittest.equals('foo')); | 1691 unittest.expect(o.kind, unittest.equals('foo')); |
| 1657 } | 1692 } |
| 1658 buildCounterUserProfileList--; | 1693 buildCounterUserProfileList--; |
| 1659 } | 1694 } |
| 1660 | 1695 |
| 1661 | 1696 |
| 1662 main() { | 1697 main() { |
| 1663 unittest.group("obj-schema-Activities", () { | 1698 unittest.group("obj-schema-Activities", () { |
| 1664 unittest.test("to-json--from-json", () { | 1699 unittest.test("to-json--from-json", () { |
| 1665 var o = buildActivities(); | 1700 var o = buildActivities(); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1962 var o = buildUserProfileList(); | 1997 var o = buildUserProfileList(); |
| 1963 var od = new api.UserProfileList.fromJson(o.toJson()); | 1998 var od = new api.UserProfileList.fromJson(o.toJson()); |
| 1964 checkUserProfileList(od); | 1999 checkUserProfileList(od); |
| 1965 }); | 2000 }); |
| 1966 }); | 2001 }); |
| 1967 | 2002 |
| 1968 | 2003 |
| 1969 unittest.group("resource-DimensionValuesResourceApi", () { | 2004 unittest.group("resource-DimensionValuesResourceApi", () { |
| 1970 unittest.test("method--query", () { | 2005 unittest.test("method--query", () { |
| 1971 | 2006 |
| 1972 var mock = new common_test.HttpServerMock(); | 2007 var mock = new HttpServerMock(); |
| 1973 api.DimensionValuesResourceApi res = new api.DfareportingApi(mock).dimensi
onValues; | 2008 api.DimensionValuesResourceApi res = new api.DfareportingApi(mock).dimensi
onValues; |
| 1974 var arg_request = buildDimensionValueRequest(); | 2009 var arg_request = buildDimensionValueRequest(); |
| 1975 var arg_profileId = "foo"; | 2010 var arg_profileId = "foo"; |
| 1976 var arg_maxResults = 42; | 2011 var arg_maxResults = 42; |
| 1977 var arg_pageToken = "foo"; | 2012 var arg_pageToken = "foo"; |
| 1978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2013 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1979 var obj = new api.DimensionValueRequest.fromJson(json); | 2014 var obj = new api.DimensionValueRequest.fromJson(json); |
| 1980 checkDimensionValueRequest(obj); | 2015 checkDimensionValueRequest(obj); |
| 1981 | 2016 |
| 1982 var path = (req.url).path; | 2017 var path = (req.url).path; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2014 } | 2049 } |
| 2015 } | 2050 } |
| 2016 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 2051 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 2017 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2052 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2018 | 2053 |
| 2019 | 2054 |
| 2020 var h = { | 2055 var h = { |
| 2021 "content-type" : "application/json; charset=utf-8", | 2056 "content-type" : "application/json; charset=utf-8", |
| 2022 }; | 2057 }; |
| 2023 var resp = convert.JSON.encode(buildDimensionValueList()); | 2058 var resp = convert.JSON.encode(buildDimensionValueList()); |
| 2024 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2059 return new async.Future.value(stringResponse(200, h, resp)); |
| 2025 }), true); | 2060 }), true); |
| 2026 res.query(arg_request, arg_profileId, maxResults: arg_maxResults, pageToke
n: arg_pageToken).then(unittest.expectAsync(((api.DimensionValueList response) { | 2061 res.query(arg_request, arg_profileId, maxResults: arg_maxResults, pageToke
n: arg_pageToken).then(unittest.expectAsync(((api.DimensionValueList response) { |
| 2027 checkDimensionValueList(response); | 2062 checkDimensionValueList(response); |
| 2028 }))); | 2063 }))); |
| 2029 }); | 2064 }); |
| 2030 | 2065 |
| 2031 }); | 2066 }); |
| 2032 | 2067 |
| 2033 | 2068 |
| 2034 unittest.group("resource-FilesResourceApi", () { | 2069 unittest.group("resource-FilesResourceApi", () { |
| 2035 unittest.test("method--get", () { | 2070 unittest.test("method--get", () { |
| 2036 // TODO: Implement tests for media upload; | 2071 // TODO: Implement tests for media upload; |
| 2037 // TODO: Implement tests for media download; | 2072 // TODO: Implement tests for media download; |
| 2038 | 2073 |
| 2039 var mock = new common_test.HttpServerMock(); | 2074 var mock = new HttpServerMock(); |
| 2040 api.FilesResourceApi res = new api.DfareportingApi(mock).files; | 2075 api.FilesResourceApi res = new api.DfareportingApi(mock).files; |
| 2041 var arg_reportId = "foo"; | 2076 var arg_reportId = "foo"; |
| 2042 var arg_fileId = "foo"; | 2077 var arg_fileId = "foo"; |
| 2043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2078 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2044 var path = (req.url).path; | 2079 var path = (req.url).path; |
| 2045 var pathOffset = 0; | 2080 var pathOffset = 0; |
| 2046 var index; | 2081 var index; |
| 2047 var subPart; | 2082 var subPart; |
| 2048 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2049 pathOffset += 1; | 2084 pathOffset += 1; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2077 var keyvalue = part.split("="); | 2112 var keyvalue = part.split("="); |
| 2078 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2113 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2079 } | 2114 } |
| 2080 } | 2115 } |
| 2081 | 2116 |
| 2082 | 2117 |
| 2083 var h = { | 2118 var h = { |
| 2084 "content-type" : "application/json; charset=utf-8", | 2119 "content-type" : "application/json; charset=utf-8", |
| 2085 }; | 2120 }; |
| 2086 var resp = convert.JSON.encode(buildFile()); | 2121 var resp = convert.JSON.encode(buildFile()); |
| 2087 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2122 return new async.Future.value(stringResponse(200, h, resp)); |
| 2088 }), true); | 2123 }), true); |
| 2089 res.get(arg_reportId, arg_fileId).then(unittest.expectAsync(((api.File res
ponse) { | 2124 res.get(arg_reportId, arg_fileId).then(unittest.expectAsync(((api.File res
ponse) { |
| 2090 checkFile(response); | 2125 checkFile(response); |
| 2091 }))); | 2126 }))); |
| 2092 }); | 2127 }); |
| 2093 | 2128 |
| 2094 unittest.test("method--list", () { | 2129 unittest.test("method--list", () { |
| 2095 | 2130 |
| 2096 var mock = new common_test.HttpServerMock(); | 2131 var mock = new HttpServerMock(); |
| 2097 api.FilesResourceApi res = new api.DfareportingApi(mock).files; | 2132 api.FilesResourceApi res = new api.DfareportingApi(mock).files; |
| 2098 var arg_profileId = "foo"; | 2133 var arg_profileId = "foo"; |
| 2099 var arg_maxResults = 42; | 2134 var arg_maxResults = 42; |
| 2100 var arg_pageToken = "foo"; | 2135 var arg_pageToken = "foo"; |
| 2101 var arg_scope = "foo"; | 2136 var arg_scope = "foo"; |
| 2102 var arg_sortField = "foo"; | 2137 var arg_sortField = "foo"; |
| 2103 var arg_sortOrder = "foo"; | 2138 var arg_sortOrder = "foo"; |
| 2104 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2139 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2105 var path = (req.url).path; | 2140 var path = (req.url).path; |
| 2106 var pathOffset = 0; | 2141 var pathOffset = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2140 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2175 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2141 unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); | 2176 unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); |
| 2142 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); | 2177 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 2143 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 2178 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 2144 | 2179 |
| 2145 | 2180 |
| 2146 var h = { | 2181 var h = { |
| 2147 "content-type" : "application/json; charset=utf-8", | 2182 "content-type" : "application/json; charset=utf-8", |
| 2148 }; | 2183 }; |
| 2149 var resp = convert.JSON.encode(buildFileList()); | 2184 var resp = convert.JSON.encode(buildFileList()); |
| 2150 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2185 return new async.Future.value(stringResponse(200, h, resp)); |
| 2151 }), true); | 2186 }), true); |
| 2152 res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageTok
en, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(u
nittest.expectAsync(((api.FileList response) { | 2187 res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageTok
en, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(u
nittest.expectAsync(((api.FileList response) { |
| 2153 checkFileList(response); | 2188 checkFileList(response); |
| 2154 }))); | 2189 }))); |
| 2155 }); | 2190 }); |
| 2156 | 2191 |
| 2157 }); | 2192 }); |
| 2158 | 2193 |
| 2159 | 2194 |
| 2160 unittest.group("resource-ReportsResourceApi", () { | 2195 unittest.group("resource-ReportsResourceApi", () { |
| 2161 unittest.test("method--delete", () { | 2196 unittest.test("method--delete", () { |
| 2162 | 2197 |
| 2163 var mock = new common_test.HttpServerMock(); | 2198 var mock = new HttpServerMock(); |
| 2164 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2199 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 2165 var arg_profileId = "foo"; | 2200 var arg_profileId = "foo"; |
| 2166 var arg_reportId = "foo"; | 2201 var arg_reportId = "foo"; |
| 2167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2202 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2168 var path = (req.url).path; | 2203 var path = (req.url).path; |
| 2169 var pathOffset = 0; | 2204 var pathOffset = 0; |
| 2170 var index; | 2205 var index; |
| 2171 var subPart; | 2206 var subPart; |
| 2172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2207 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2173 pathOffset += 1; | 2208 pathOffset += 1; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2201 var keyvalue = part.split("="); | 2236 var keyvalue = part.split("="); |
| 2202 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2237 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2203 } | 2238 } |
| 2204 } | 2239 } |
| 2205 | 2240 |
| 2206 | 2241 |
| 2207 var h = { | 2242 var h = { |
| 2208 "content-type" : "application/json; charset=utf-8", | 2243 "content-type" : "application/json; charset=utf-8", |
| 2209 }; | 2244 }; |
| 2210 var resp = ""; | 2245 var resp = ""; |
| 2211 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2246 return new async.Future.value(stringResponse(200, h, resp)); |
| 2212 }), true); | 2247 }), true); |
| 2213 res.delete(arg_profileId, arg_reportId).then(unittest.expectAsync((_) {}))
; | 2248 res.delete(arg_profileId, arg_reportId).then(unittest.expectAsync((_) {}))
; |
| 2214 }); | 2249 }); |
| 2215 | 2250 |
| 2216 unittest.test("method--get", () { | 2251 unittest.test("method--get", () { |
| 2217 | 2252 |
| 2218 var mock = new common_test.HttpServerMock(); | 2253 var mock = new HttpServerMock(); |
| 2219 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2254 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 2220 var arg_profileId = "foo"; | 2255 var arg_profileId = "foo"; |
| 2221 var arg_reportId = "foo"; | 2256 var arg_reportId = "foo"; |
| 2222 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2257 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2223 var path = (req.url).path; | 2258 var path = (req.url).path; |
| 2224 var pathOffset = 0; | 2259 var pathOffset = 0; |
| 2225 var index; | 2260 var index; |
| 2226 var subPart; | 2261 var subPart; |
| 2227 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2262 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2228 pathOffset += 1; | 2263 pathOffset += 1; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2256 var keyvalue = part.split("="); | 2291 var keyvalue = part.split("="); |
| 2257 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2292 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2258 } | 2293 } |
| 2259 } | 2294 } |
| 2260 | 2295 |
| 2261 | 2296 |
| 2262 var h = { | 2297 var h = { |
| 2263 "content-type" : "application/json; charset=utf-8", | 2298 "content-type" : "application/json; charset=utf-8", |
| 2264 }; | 2299 }; |
| 2265 var resp = convert.JSON.encode(buildReport()); | 2300 var resp = convert.JSON.encode(buildReport()); |
| 2266 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2301 return new async.Future.value(stringResponse(200, h, resp)); |
| 2267 }), true); | 2302 }), true); |
| 2268 res.get(arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Repor
t response) { | 2303 res.get(arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Repor
t response) { |
| 2269 checkReport(response); | 2304 checkReport(response); |
| 2270 }))); | 2305 }))); |
| 2271 }); | 2306 }); |
| 2272 | 2307 |
| 2273 unittest.test("method--insert", () { | 2308 unittest.test("method--insert", () { |
| 2274 | 2309 |
| 2275 var mock = new common_test.HttpServerMock(); | 2310 var mock = new HttpServerMock(); |
| 2276 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2311 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 2277 var arg_request = buildReport(); | 2312 var arg_request = buildReport(); |
| 2278 var arg_profileId = "foo"; | 2313 var arg_profileId = "foo"; |
| 2279 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2314 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2280 var obj = new api.Report.fromJson(json); | 2315 var obj = new api.Report.fromJson(json); |
| 2281 checkReport(obj); | 2316 checkReport(obj); |
| 2282 | 2317 |
| 2283 var path = (req.url).path; | 2318 var path = (req.url).path; |
| 2284 var pathOffset = 0; | 2319 var pathOffset = 0; |
| 2285 var index; | 2320 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2313 var keyvalue = part.split("="); | 2348 var keyvalue = part.split("="); |
| 2314 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2349 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2315 } | 2350 } |
| 2316 } | 2351 } |
| 2317 | 2352 |
| 2318 | 2353 |
| 2319 var h = { | 2354 var h = { |
| 2320 "content-type" : "application/json; charset=utf-8", | 2355 "content-type" : "application/json; charset=utf-8", |
| 2321 }; | 2356 }; |
| 2322 var resp = convert.JSON.encode(buildReport()); | 2357 var resp = convert.JSON.encode(buildReport()); |
| 2323 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2358 return new async.Future.value(stringResponse(200, h, resp)); |
| 2324 }), true); | 2359 }), true); |
| 2325 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rep
ort response) { | 2360 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rep
ort response) { |
| 2326 checkReport(response); | 2361 checkReport(response); |
| 2327 }))); | 2362 }))); |
| 2328 }); | 2363 }); |
| 2329 | 2364 |
| 2330 unittest.test("method--list", () { | 2365 unittest.test("method--list", () { |
| 2331 | 2366 |
| 2332 var mock = new common_test.HttpServerMock(); | 2367 var mock = new HttpServerMock(); |
| 2333 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2368 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 2334 var arg_profileId = "foo"; | 2369 var arg_profileId = "foo"; |
| 2335 var arg_maxResults = 42; | 2370 var arg_maxResults = 42; |
| 2336 var arg_pageToken = "foo"; | 2371 var arg_pageToken = "foo"; |
| 2337 var arg_scope = "foo"; | 2372 var arg_scope = "foo"; |
| 2338 var arg_sortField = "foo"; | 2373 var arg_sortField = "foo"; |
| 2339 var arg_sortOrder = "foo"; | 2374 var arg_sortOrder = "foo"; |
| 2340 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2375 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2341 var path = (req.url).path; | 2376 var path = (req.url).path; |
| 2342 var pathOffset = 0; | 2377 var pathOffset = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2376 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2411 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2377 unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); | 2412 unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); |
| 2378 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); | 2413 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 2379 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 2414 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 2380 | 2415 |
| 2381 | 2416 |
| 2382 var h = { | 2417 var h = { |
| 2383 "content-type" : "application/json; charset=utf-8", | 2418 "content-type" : "application/json; charset=utf-8", |
| 2384 }; | 2419 }; |
| 2385 var resp = convert.JSON.encode(buildReportList()); | 2420 var resp = convert.JSON.encode(buildReportList()); |
| 2386 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2421 return new async.Future.value(stringResponse(200, h, resp)); |
| 2387 }), true); | 2422 }), true); |
| 2388 res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageTok
en, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(u
nittest.expectAsync(((api.ReportList response) { | 2423 res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageTok
en, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(u
nittest.expectAsync(((api.ReportList response) { |
| 2389 checkReportList(response); | 2424 checkReportList(response); |
| 2390 }))); | 2425 }))); |
| 2391 }); | 2426 }); |
| 2392 | 2427 |
| 2393 unittest.test("method--patch", () { | 2428 unittest.test("method--patch", () { |
| 2394 | 2429 |
| 2395 var mock = new common_test.HttpServerMock(); | 2430 var mock = new HttpServerMock(); |
| 2396 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2431 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 2397 var arg_request = buildReport(); | 2432 var arg_request = buildReport(); |
| 2398 var arg_profileId = "foo"; | 2433 var arg_profileId = "foo"; |
| 2399 var arg_reportId = "foo"; | 2434 var arg_reportId = "foo"; |
| 2400 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2435 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2401 var obj = new api.Report.fromJson(json); | 2436 var obj = new api.Report.fromJson(json); |
| 2402 checkReport(obj); | 2437 checkReport(obj); |
| 2403 | 2438 |
| 2404 var path = (req.url).path; | 2439 var path = (req.url).path; |
| 2405 var pathOffset = 0; | 2440 var pathOffset = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2437 var keyvalue = part.split("="); | 2472 var keyvalue = part.split("="); |
| 2438 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2473 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2439 } | 2474 } |
| 2440 } | 2475 } |
| 2441 | 2476 |
| 2442 | 2477 |
| 2443 var h = { | 2478 var h = { |
| 2444 "content-type" : "application/json; charset=utf-8", | 2479 "content-type" : "application/json; charset=utf-8", |
| 2445 }; | 2480 }; |
| 2446 var resp = convert.JSON.encode(buildReport()); | 2481 var resp = convert.JSON.encode(buildReport()); |
| 2447 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2482 return new async.Future.value(stringResponse(200, h, resp)); |
| 2448 }), true); | 2483 }), true); |
| 2449 res.patch(arg_request, arg_profileId, arg_reportId).then(unittest.expectAs
ync(((api.Report response) { | 2484 res.patch(arg_request, arg_profileId, arg_reportId).then(unittest.expectAs
ync(((api.Report response) { |
| 2450 checkReport(response); | 2485 checkReport(response); |
| 2451 }))); | 2486 }))); |
| 2452 }); | 2487 }); |
| 2453 | 2488 |
| 2454 unittest.test("method--run", () { | 2489 unittest.test("method--run", () { |
| 2455 | 2490 |
| 2456 var mock = new common_test.HttpServerMock(); | 2491 var mock = new HttpServerMock(); |
| 2457 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2492 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 2458 var arg_profileId = "foo"; | 2493 var arg_profileId = "foo"; |
| 2459 var arg_reportId = "foo"; | 2494 var arg_reportId = "foo"; |
| 2460 var arg_synchronous = true; | 2495 var arg_synchronous = true; |
| 2461 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2496 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2462 var path = (req.url).path; | 2497 var path = (req.url).path; |
| 2463 var pathOffset = 0; | 2498 var pathOffset = 0; |
| 2464 var index; | 2499 var index; |
| 2465 var subPart; | 2500 var subPart; |
| 2466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2500 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2535 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2501 } | 2536 } |
| 2502 } | 2537 } |
| 2503 unittest.expect(queryMap["synchronous"].first, unittest.equals("$arg_syn
chronous")); | 2538 unittest.expect(queryMap["synchronous"].first, unittest.equals("$arg_syn
chronous")); |
| 2504 | 2539 |
| 2505 | 2540 |
| 2506 var h = { | 2541 var h = { |
| 2507 "content-type" : "application/json; charset=utf-8", | 2542 "content-type" : "application/json; charset=utf-8", |
| 2508 }; | 2543 }; |
| 2509 var resp = convert.JSON.encode(buildFile()); | 2544 var resp = convert.JSON.encode(buildFile()); |
| 2510 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2545 return new async.Future.value(stringResponse(200, h, resp)); |
| 2511 }), true); | 2546 }), true); |
| 2512 res.run(arg_profileId, arg_reportId, synchronous: arg_synchronous).then(un
ittest.expectAsync(((api.File response) { | 2547 res.run(arg_profileId, arg_reportId, synchronous: arg_synchronous).then(un
ittest.expectAsync(((api.File response) { |
| 2513 checkFile(response); | 2548 checkFile(response); |
| 2514 }))); | 2549 }))); |
| 2515 }); | 2550 }); |
| 2516 | 2551 |
| 2517 unittest.test("method--update", () { | 2552 unittest.test("method--update", () { |
| 2518 | 2553 |
| 2519 var mock = new common_test.HttpServerMock(); | 2554 var mock = new HttpServerMock(); |
| 2520 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 2555 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 2521 var arg_request = buildReport(); | 2556 var arg_request = buildReport(); |
| 2522 var arg_profileId = "foo"; | 2557 var arg_profileId = "foo"; |
| 2523 var arg_reportId = "foo"; | 2558 var arg_reportId = "foo"; |
| 2524 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2525 var obj = new api.Report.fromJson(json); | 2560 var obj = new api.Report.fromJson(json); |
| 2526 checkReport(obj); | 2561 checkReport(obj); |
| 2527 | 2562 |
| 2528 var path = (req.url).path; | 2563 var path = (req.url).path; |
| 2529 var pathOffset = 0; | 2564 var pathOffset = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2561 var keyvalue = part.split("="); | 2596 var keyvalue = part.split("="); |
| 2562 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2597 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2563 } | 2598 } |
| 2564 } | 2599 } |
| 2565 | 2600 |
| 2566 | 2601 |
| 2567 var h = { | 2602 var h = { |
| 2568 "content-type" : "application/json; charset=utf-8", | 2603 "content-type" : "application/json; charset=utf-8", |
| 2569 }; | 2604 }; |
| 2570 var resp = convert.JSON.encode(buildReport()); | 2605 var resp = convert.JSON.encode(buildReport()); |
| 2571 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2606 return new async.Future.value(stringResponse(200, h, resp)); |
| 2572 }), true); | 2607 }), true); |
| 2573 res.update(arg_request, arg_profileId, arg_reportId).then(unittest.expectA
sync(((api.Report response) { | 2608 res.update(arg_request, arg_profileId, arg_reportId).then(unittest.expectA
sync(((api.Report response) { |
| 2574 checkReport(response); | 2609 checkReport(response); |
| 2575 }))); | 2610 }))); |
| 2576 }); | 2611 }); |
| 2577 | 2612 |
| 2578 }); | 2613 }); |
| 2579 | 2614 |
| 2580 | 2615 |
| 2581 unittest.group("resource-ReportsCompatibleFieldsResourceApi", () { | 2616 unittest.group("resource-ReportsCompatibleFieldsResourceApi", () { |
| 2582 unittest.test("method--query", () { | 2617 unittest.test("method--query", () { |
| 2583 | 2618 |
| 2584 var mock = new common_test.HttpServerMock(); | 2619 var mock = new HttpServerMock(); |
| 2585 api.ReportsCompatibleFieldsResourceApi res = new api.DfareportingApi(mock)
.reports.compatibleFields; | 2620 api.ReportsCompatibleFieldsResourceApi res = new api.DfareportingApi(mock)
.reports.compatibleFields; |
| 2586 var arg_request = buildReport(); | 2621 var arg_request = buildReport(); |
| 2587 var arg_profileId = "foo"; | 2622 var arg_profileId = "foo"; |
| 2588 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2623 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2589 var obj = new api.Report.fromJson(json); | 2624 var obj = new api.Report.fromJson(json); |
| 2590 checkReport(obj); | 2625 checkReport(obj); |
| 2591 | 2626 |
| 2592 var path = (req.url).path; | 2627 var path = (req.url).path; |
| 2593 var pathOffset = 0; | 2628 var pathOffset = 0; |
| 2594 var index; | 2629 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2622 var keyvalue = part.split("="); | 2657 var keyvalue = part.split("="); |
| 2623 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2658 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2624 } | 2659 } |
| 2625 } | 2660 } |
| 2626 | 2661 |
| 2627 | 2662 |
| 2628 var h = { | 2663 var h = { |
| 2629 "content-type" : "application/json; charset=utf-8", | 2664 "content-type" : "application/json; charset=utf-8", |
| 2630 }; | 2665 }; |
| 2631 var resp = convert.JSON.encode(buildCompatibleFields()); | 2666 var resp = convert.JSON.encode(buildCompatibleFields()); |
| 2632 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2667 return new async.Future.value(stringResponse(200, h, resp)); |
| 2633 }), true); | 2668 }), true); |
| 2634 res.query(arg_request, arg_profileId).then(unittest.expectAsync(((api.Comp
atibleFields response) { | 2669 res.query(arg_request, arg_profileId).then(unittest.expectAsync(((api.Comp
atibleFields response) { |
| 2635 checkCompatibleFields(response); | 2670 checkCompatibleFields(response); |
| 2636 }))); | 2671 }))); |
| 2637 }); | 2672 }); |
| 2638 | 2673 |
| 2639 }); | 2674 }); |
| 2640 | 2675 |
| 2641 | 2676 |
| 2642 unittest.group("resource-ReportsFilesResourceApi", () { | 2677 unittest.group("resource-ReportsFilesResourceApi", () { |
| 2643 unittest.test("method--get", () { | 2678 unittest.test("method--get", () { |
| 2644 // TODO: Implement tests for media upload; | 2679 // TODO: Implement tests for media upload; |
| 2645 // TODO: Implement tests for media download; | 2680 // TODO: Implement tests for media download; |
| 2646 | 2681 |
| 2647 var mock = new common_test.HttpServerMock(); | 2682 var mock = new HttpServerMock(); |
| 2648 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi
les; | 2683 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi
les; |
| 2649 var arg_profileId = "foo"; | 2684 var arg_profileId = "foo"; |
| 2650 var arg_reportId = "foo"; | 2685 var arg_reportId = "foo"; |
| 2651 var arg_fileId = "foo"; | 2686 var arg_fileId = "foo"; |
| 2652 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2687 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2653 var path = (req.url).path; | 2688 var path = (req.url).path; |
| 2654 var pathOffset = 0; | 2689 var pathOffset = 0; |
| 2655 var index; | 2690 var index; |
| 2656 var subPart; | 2691 var subPart; |
| 2657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2692 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2693 var keyvalue = part.split("="); | 2728 var keyvalue = part.split("="); |
| 2694 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2729 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2695 } | 2730 } |
| 2696 } | 2731 } |
| 2697 | 2732 |
| 2698 | 2733 |
| 2699 var h = { | 2734 var h = { |
| 2700 "content-type" : "application/json; charset=utf-8", | 2735 "content-type" : "application/json; charset=utf-8", |
| 2701 }; | 2736 }; |
| 2702 var resp = convert.JSON.encode(buildFile()); | 2737 var resp = convert.JSON.encode(buildFile()); |
| 2703 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2738 return new async.Future.value(stringResponse(200, h, resp)); |
| 2704 }), true); | 2739 }), true); |
| 2705 res.get(arg_profileId, arg_reportId, arg_fileId).then(unittest.expectAsync
(((api.File response) { | 2740 res.get(arg_profileId, arg_reportId, arg_fileId).then(unittest.expectAsync
(((api.File response) { |
| 2706 checkFile(response); | 2741 checkFile(response); |
| 2707 }))); | 2742 }))); |
| 2708 }); | 2743 }); |
| 2709 | 2744 |
| 2710 unittest.test("method--list", () { | 2745 unittest.test("method--list", () { |
| 2711 | 2746 |
| 2712 var mock = new common_test.HttpServerMock(); | 2747 var mock = new HttpServerMock(); |
| 2713 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi
les; | 2748 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi
les; |
| 2714 var arg_profileId = "foo"; | 2749 var arg_profileId = "foo"; |
| 2715 var arg_reportId = "foo"; | 2750 var arg_reportId = "foo"; |
| 2716 var arg_maxResults = 42; | 2751 var arg_maxResults = 42; |
| 2717 var arg_pageToken = "foo"; | 2752 var arg_pageToken = "foo"; |
| 2718 var arg_sortField = "foo"; | 2753 var arg_sortField = "foo"; |
| 2719 var arg_sortOrder = "foo"; | 2754 var arg_sortOrder = "foo"; |
| 2720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2721 var path = (req.url).path; | 2756 var path = (req.url).path; |
| 2722 var pathOffset = 0; | 2757 var pathOffset = 0; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2762 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 2797 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 2763 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2798 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2764 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); | 2799 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 2765 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 2800 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 2766 | 2801 |
| 2767 | 2802 |
| 2768 var h = { | 2803 var h = { |
| 2769 "content-type" : "application/json; charset=utf-8", | 2804 "content-type" : "application/json; charset=utf-8", |
| 2770 }; | 2805 }; |
| 2771 var resp = convert.JSON.encode(buildFileList()); | 2806 var resp = convert.JSON.encode(buildFileList()); |
| 2772 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2807 return new async.Future.value(stringResponse(200, h, resp)); |
| 2773 }), true); | 2808 }), true); |
| 2774 res.list(arg_profileId, arg_reportId, maxResults: arg_maxResults, pageToke
n: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unitt
est.expectAsync(((api.FileList response) { | 2809 res.list(arg_profileId, arg_reportId, maxResults: arg_maxResults, pageToke
n: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unitt
est.expectAsync(((api.FileList response) { |
| 2775 checkFileList(response); | 2810 checkFileList(response); |
| 2776 }))); | 2811 }))); |
| 2777 }); | 2812 }); |
| 2778 | 2813 |
| 2779 }); | 2814 }); |
| 2780 | 2815 |
| 2781 | 2816 |
| 2782 unittest.group("resource-UserProfilesResourceApi", () { | 2817 unittest.group("resource-UserProfilesResourceApi", () { |
| 2783 unittest.test("method--get", () { | 2818 unittest.test("method--get", () { |
| 2784 | 2819 |
| 2785 var mock = new common_test.HttpServerMock(); | 2820 var mock = new HttpServerMock(); |
| 2786 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; | 2821 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; |
| 2787 var arg_profileId = "foo"; | 2822 var arg_profileId = "foo"; |
| 2788 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2823 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2789 var path = (req.url).path; | 2824 var path = (req.url).path; |
| 2790 var pathOffset = 0; | 2825 var pathOffset = 0; |
| 2791 var index; | 2826 var index; |
| 2792 var subPart; | 2827 var subPart; |
| 2793 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2828 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2794 pathOffset += 1; | 2829 pathOffset += 1; |
| 2795 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); | 2830 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2815 var keyvalue = part.split("="); | 2850 var keyvalue = part.split("="); |
| 2816 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2851 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2817 } | 2852 } |
| 2818 } | 2853 } |
| 2819 | 2854 |
| 2820 | 2855 |
| 2821 var h = { | 2856 var h = { |
| 2822 "content-type" : "application/json; charset=utf-8", | 2857 "content-type" : "application/json; charset=utf-8", |
| 2823 }; | 2858 }; |
| 2824 var resp = convert.JSON.encode(buildUserProfile()); | 2859 var resp = convert.JSON.encode(buildUserProfile()); |
| 2825 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2860 return new async.Future.value(stringResponse(200, h, resp)); |
| 2826 }), true); | 2861 }), true); |
| 2827 res.get(arg_profileId).then(unittest.expectAsync(((api.UserProfile respons
e) { | 2862 res.get(arg_profileId).then(unittest.expectAsync(((api.UserProfile respons
e) { |
| 2828 checkUserProfile(response); | 2863 checkUserProfile(response); |
| 2829 }))); | 2864 }))); |
| 2830 }); | 2865 }); |
| 2831 | 2866 |
| 2832 unittest.test("method--list", () { | 2867 unittest.test("method--list", () { |
| 2833 | 2868 |
| 2834 var mock = new common_test.HttpServerMock(); | 2869 var mock = new HttpServerMock(); |
| 2835 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; | 2870 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; |
| 2836 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2871 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2837 var path = (req.url).path; | 2872 var path = (req.url).path; |
| 2838 var pathOffset = 0; | 2873 var pathOffset = 0; |
| 2839 var index; | 2874 var index; |
| 2840 var subPart; | 2875 var subPart; |
| 2841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2876 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2842 pathOffset += 1; | 2877 pathOffset += 1; |
| 2843 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); | 2878 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v1.3/")); |
| 2844 pathOffset += 18; | 2879 pathOffset += 18; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2860 var keyvalue = part.split("="); | 2895 var keyvalue = part.split("="); |
| 2861 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2896 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2862 } | 2897 } |
| 2863 } | 2898 } |
| 2864 | 2899 |
| 2865 | 2900 |
| 2866 var h = { | 2901 var h = { |
| 2867 "content-type" : "application/json; charset=utf-8", | 2902 "content-type" : "application/json; charset=utf-8", |
| 2868 }; | 2903 }; |
| 2869 var resp = convert.JSON.encode(buildUserProfileList()); | 2904 var resp = convert.JSON.encode(buildUserProfileList()); |
| 2870 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2905 return new async.Future.value(stringResponse(200, h, resp)); |
| 2871 }), true); | 2906 }), true); |
| 2872 res.list().then(unittest.expectAsync(((api.UserProfileList response) { | 2907 res.list().then(unittest.expectAsync(((api.UserProfileList response) { |
| 2873 checkUserProfileList(response); | 2908 checkUserProfileList(response); |
| 2874 }))); | 2909 }))); |
| 2875 }); | 2910 }); |
| 2876 | 2911 |
| 2877 }); | 2912 }); |
| 2878 | 2913 |
| 2879 | 2914 |
| 2880 } | 2915 } |
| 2881 | 2916 |
| OLD | NEW |