| OLD | NEW |
| 1 library googleapis.dfareporting.v2_0.test; | 1 library googleapis.dfareporting.v2_2.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 | 11 |
| 12 import 'package:googleapis/dfareporting/v2_0.dart' as api; | 12 import 'package:googleapis/dfareporting/v2_2.dart' as api; |
| 13 | 13 |
| 14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 15 core.Function _callback; |
| 16 core.bool _expectJson; | 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 19 _callback = callback; |
| 20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed258() { | 54 buildUnnamed1304() { |
| 55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
| 56 o.add("foo"); | 56 o.add("foo"); |
| 57 o.add("foo"); | 57 o.add("foo"); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed258(core.List<core.String> o) { | 61 checkUnnamed1304(core.List<core.String> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
| 64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
| 65 } | 65 } |
| 66 | 66 |
| 67 buildUnnamed259() { | 67 buildUnnamed1305() { |
| 68 var o = new core.List<core.String>(); | 68 var o = new core.List<core.String>(); |
| 69 o.add("foo"); | 69 o.add("foo"); |
| 70 o.add("foo"); | 70 o.add("foo"); |
| 71 return o; | 71 return o; |
| 72 } | 72 } |
| 73 | 73 |
| 74 checkUnnamed259(core.List<core.String> o) { | 74 checkUnnamed1305(core.List<core.String> o) { |
| 75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
| 76 unittest.expect(o[0], unittest.equals('foo')); | 76 unittest.expect(o[0], unittest.equals('foo')); |
| 77 unittest.expect(o[1], unittest.equals('foo')); | 77 unittest.expect(o[1], unittest.equals('foo')); |
| 78 } | 78 } |
| 79 | 79 |
| 80 core.int buildCounterAccount = 0; | 80 core.int buildCounterAccount = 0; |
| 81 buildAccount() { | 81 buildAccount() { |
| 82 var o = new api.Account(); | 82 var o = new api.Account(); |
| 83 buildCounterAccount++; | 83 buildCounterAccount++; |
| 84 if (buildCounterAccount < 3) { | 84 if (buildCounterAccount < 3) { |
| 85 o.accountPermissionIds = buildUnnamed258(); | 85 o.accountPermissionIds = buildUnnamed1304(); |
| 86 o.accountProfile = "foo"; | 86 o.accountProfile = "foo"; |
| 87 o.active = true; | 87 o.active = true; |
| 88 o.activeAdsLimitTier = "foo"; | 88 o.activeAdsLimitTier = "foo"; |
| 89 o.activeViewOptOut = true; | 89 o.activeViewOptOut = true; |
| 90 o.availablePermissionIds = buildUnnamed259(); | 90 o.availablePermissionIds = buildUnnamed1305(); |
| 91 o.comscoreVceEnabled = true; | 91 o.comscoreVceEnabled = true; |
| 92 o.countryId = "foo"; | 92 o.countryId = "foo"; |
| 93 o.currencyId = "foo"; | 93 o.currencyId = "foo"; |
| 94 o.defaultCreativeSizeId = "foo"; | 94 o.defaultCreativeSizeId = "foo"; |
| 95 o.description = "foo"; | 95 o.description = "foo"; |
| 96 o.id = "foo"; | 96 o.id = "foo"; |
| 97 o.kind = "foo"; | 97 o.kind = "foo"; |
| 98 o.locale = "foo"; | 98 o.locale = "foo"; |
| 99 o.maximumImageSize = "foo"; | 99 o.maximumImageSize = "foo"; |
| 100 o.name = "foo"; | 100 o.name = "foo"; |
| 101 o.nielsenOcrEnabled = true; | 101 o.nielsenOcrEnabled = true; |
| 102 o.reportsConfiguration = buildReportsConfiguration(); | 102 o.reportsConfiguration = buildReportsConfiguration(); |
| 103 o.teaserSizeLimit = "foo"; | 103 o.teaserSizeLimit = "foo"; |
| 104 } | 104 } |
| 105 buildCounterAccount--; | 105 buildCounterAccount--; |
| 106 return o; | 106 return o; |
| 107 } | 107 } |
| 108 | 108 |
| 109 checkAccount(api.Account o) { | 109 checkAccount(api.Account o) { |
| 110 buildCounterAccount++; | 110 buildCounterAccount++; |
| 111 if (buildCounterAccount < 3) { | 111 if (buildCounterAccount < 3) { |
| 112 checkUnnamed258(o.accountPermissionIds); | 112 checkUnnamed1304(o.accountPermissionIds); |
| 113 unittest.expect(o.accountProfile, unittest.equals('foo')); | 113 unittest.expect(o.accountProfile, unittest.equals('foo')); |
| 114 unittest.expect(o.active, unittest.isTrue); | 114 unittest.expect(o.active, unittest.isTrue); |
| 115 unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); | 115 unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); |
| 116 unittest.expect(o.activeViewOptOut, unittest.isTrue); | 116 unittest.expect(o.activeViewOptOut, unittest.isTrue); |
| 117 checkUnnamed259(o.availablePermissionIds); | 117 checkUnnamed1305(o.availablePermissionIds); |
| 118 unittest.expect(o.comscoreVceEnabled, unittest.isTrue); | 118 unittest.expect(o.comscoreVceEnabled, unittest.isTrue); |
| 119 unittest.expect(o.countryId, unittest.equals('foo')); | 119 unittest.expect(o.countryId, unittest.equals('foo')); |
| 120 unittest.expect(o.currencyId, unittest.equals('foo')); | 120 unittest.expect(o.currencyId, unittest.equals('foo')); |
| 121 unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); | 121 unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); |
| 122 unittest.expect(o.description, unittest.equals('foo')); | 122 unittest.expect(o.description, unittest.equals('foo')); |
| 123 unittest.expect(o.id, unittest.equals('foo')); | 123 unittest.expect(o.id, unittest.equals('foo')); |
| 124 unittest.expect(o.kind, unittest.equals('foo')); | 124 unittest.expect(o.kind, unittest.equals('foo')); |
| 125 unittest.expect(o.locale, unittest.equals('foo')); | 125 unittest.expect(o.locale, unittest.equals('foo')); |
| 126 unittest.expect(o.maximumImageSize, unittest.equals('foo')); | 126 unittest.expect(o.maximumImageSize, unittest.equals('foo')); |
| 127 unittest.expect(o.name, unittest.equals('foo')); | 127 unittest.expect(o.name, unittest.equals('foo')); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 152 if (buildCounterAccountActiveAdSummary < 3) { | 152 if (buildCounterAccountActiveAdSummary < 3) { |
| 153 unittest.expect(o.accountId, unittest.equals('foo')); | 153 unittest.expect(o.accountId, unittest.equals('foo')); |
| 154 unittest.expect(o.activeAds, unittest.equals('foo')); | 154 unittest.expect(o.activeAds, unittest.equals('foo')); |
| 155 unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); | 155 unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); |
| 156 unittest.expect(o.availableAds, unittest.equals('foo')); | 156 unittest.expect(o.availableAds, unittest.equals('foo')); |
| 157 unittest.expect(o.kind, unittest.equals('foo')); | 157 unittest.expect(o.kind, unittest.equals('foo')); |
| 158 } | 158 } |
| 159 buildCounterAccountActiveAdSummary--; | 159 buildCounterAccountActiveAdSummary--; |
| 160 } | 160 } |
| 161 | 161 |
| 162 buildUnnamed260() { | 162 buildUnnamed1306() { |
| 163 var o = new core.List<core.String>(); | 163 var o = new core.List<core.String>(); |
| 164 o.add("foo"); | 164 o.add("foo"); |
| 165 o.add("foo"); | 165 o.add("foo"); |
| 166 return o; | 166 return o; |
| 167 } | 167 } |
| 168 | 168 |
| 169 checkUnnamed260(core.List<core.String> o) { | 169 checkUnnamed1306(core.List<core.String> o) { |
| 170 unittest.expect(o, unittest.hasLength(2)); | 170 unittest.expect(o, unittest.hasLength(2)); |
| 171 unittest.expect(o[0], unittest.equals('foo')); | 171 unittest.expect(o[0], unittest.equals('foo')); |
| 172 unittest.expect(o[1], unittest.equals('foo')); | 172 unittest.expect(o[1], unittest.equals('foo')); |
| 173 } | 173 } |
| 174 | 174 |
| 175 core.int buildCounterAccountPermission = 0; | 175 core.int buildCounterAccountPermission = 0; |
| 176 buildAccountPermission() { | 176 buildAccountPermission() { |
| 177 var o = new api.AccountPermission(); | 177 var o = new api.AccountPermission(); |
| 178 buildCounterAccountPermission++; | 178 buildCounterAccountPermission++; |
| 179 if (buildCounterAccountPermission < 3) { | 179 if (buildCounterAccountPermission < 3) { |
| 180 o.accountProfiles = buildUnnamed260(); | 180 o.accountProfiles = buildUnnamed1306(); |
| 181 o.id = "foo"; | 181 o.id = "foo"; |
| 182 o.kind = "foo"; | 182 o.kind = "foo"; |
| 183 o.level = "foo"; | 183 o.level = "foo"; |
| 184 o.name = "foo"; | 184 o.name = "foo"; |
| 185 o.permissionGroupId = "foo"; | 185 o.permissionGroupId = "foo"; |
| 186 } | 186 } |
| 187 buildCounterAccountPermission--; | 187 buildCounterAccountPermission--; |
| 188 return o; | 188 return o; |
| 189 } | 189 } |
| 190 | 190 |
| 191 checkAccountPermission(api.AccountPermission o) { | 191 checkAccountPermission(api.AccountPermission o) { |
| 192 buildCounterAccountPermission++; | 192 buildCounterAccountPermission++; |
| 193 if (buildCounterAccountPermission < 3) { | 193 if (buildCounterAccountPermission < 3) { |
| 194 checkUnnamed260(o.accountProfiles); | 194 checkUnnamed1306(o.accountProfiles); |
| 195 unittest.expect(o.id, unittest.equals('foo')); | 195 unittest.expect(o.id, unittest.equals('foo')); |
| 196 unittest.expect(o.kind, unittest.equals('foo')); | 196 unittest.expect(o.kind, unittest.equals('foo')); |
| 197 unittest.expect(o.level, unittest.equals('foo')); | 197 unittest.expect(o.level, unittest.equals('foo')); |
| 198 unittest.expect(o.name, unittest.equals('foo')); | 198 unittest.expect(o.name, unittest.equals('foo')); |
| 199 unittest.expect(o.permissionGroupId, unittest.equals('foo')); | 199 unittest.expect(o.permissionGroupId, unittest.equals('foo')); |
| 200 } | 200 } |
| 201 buildCounterAccountPermission--; | 201 buildCounterAccountPermission--; |
| 202 } | 202 } |
| 203 | 203 |
| 204 core.int buildCounterAccountPermissionGroup = 0; | 204 core.int buildCounterAccountPermissionGroup = 0; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 217 checkAccountPermissionGroup(api.AccountPermissionGroup o) { | 217 checkAccountPermissionGroup(api.AccountPermissionGroup o) { |
| 218 buildCounterAccountPermissionGroup++; | 218 buildCounterAccountPermissionGroup++; |
| 219 if (buildCounterAccountPermissionGroup < 3) { | 219 if (buildCounterAccountPermissionGroup < 3) { |
| 220 unittest.expect(o.id, unittest.equals('foo')); | 220 unittest.expect(o.id, unittest.equals('foo')); |
| 221 unittest.expect(o.kind, unittest.equals('foo')); | 221 unittest.expect(o.kind, unittest.equals('foo')); |
| 222 unittest.expect(o.name, unittest.equals('foo')); | 222 unittest.expect(o.name, unittest.equals('foo')); |
| 223 } | 223 } |
| 224 buildCounterAccountPermissionGroup--; | 224 buildCounterAccountPermissionGroup--; |
| 225 } | 225 } |
| 226 | 226 |
| 227 buildUnnamed261() { | 227 buildUnnamed1307() { |
| 228 var o = new core.List<api.AccountPermissionGroup>(); | 228 var o = new core.List<api.AccountPermissionGroup>(); |
| 229 o.add(buildAccountPermissionGroup()); | 229 o.add(buildAccountPermissionGroup()); |
| 230 o.add(buildAccountPermissionGroup()); | 230 o.add(buildAccountPermissionGroup()); |
| 231 return o; | 231 return o; |
| 232 } | 232 } |
| 233 | 233 |
| 234 checkUnnamed261(core.List<api.AccountPermissionGroup> o) { | 234 checkUnnamed1307(core.List<api.AccountPermissionGroup> o) { |
| 235 unittest.expect(o, unittest.hasLength(2)); | 235 unittest.expect(o, unittest.hasLength(2)); |
| 236 checkAccountPermissionGroup(o[0]); | 236 checkAccountPermissionGroup(o[0]); |
| 237 checkAccountPermissionGroup(o[1]); | 237 checkAccountPermissionGroup(o[1]); |
| 238 } | 238 } |
| 239 | 239 |
| 240 core.int buildCounterAccountPermissionGroupsListResponse = 0; | 240 core.int buildCounterAccountPermissionGroupsListResponse = 0; |
| 241 buildAccountPermissionGroupsListResponse() { | 241 buildAccountPermissionGroupsListResponse() { |
| 242 var o = new api.AccountPermissionGroupsListResponse(); | 242 var o = new api.AccountPermissionGroupsListResponse(); |
| 243 buildCounterAccountPermissionGroupsListResponse++; | 243 buildCounterAccountPermissionGroupsListResponse++; |
| 244 if (buildCounterAccountPermissionGroupsListResponse < 3) { | 244 if (buildCounterAccountPermissionGroupsListResponse < 3) { |
| 245 o.accountPermissionGroups = buildUnnamed261(); | 245 o.accountPermissionGroups = buildUnnamed1307(); |
| 246 o.kind = "foo"; | 246 o.kind = "foo"; |
| 247 } | 247 } |
| 248 buildCounterAccountPermissionGroupsListResponse--; | 248 buildCounterAccountPermissionGroupsListResponse--; |
| 249 return o; | 249 return o; |
| 250 } | 250 } |
| 251 | 251 |
| 252 checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse
o) { | 252 checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse
o) { |
| 253 buildCounterAccountPermissionGroupsListResponse++; | 253 buildCounterAccountPermissionGroupsListResponse++; |
| 254 if (buildCounterAccountPermissionGroupsListResponse < 3) { | 254 if (buildCounterAccountPermissionGroupsListResponse < 3) { |
| 255 checkUnnamed261(o.accountPermissionGroups); | 255 checkUnnamed1307(o.accountPermissionGroups); |
| 256 unittest.expect(o.kind, unittest.equals('foo')); | 256 unittest.expect(o.kind, unittest.equals('foo')); |
| 257 } | 257 } |
| 258 buildCounterAccountPermissionGroupsListResponse--; | 258 buildCounterAccountPermissionGroupsListResponse--; |
| 259 } | 259 } |
| 260 | 260 |
| 261 buildUnnamed262() { | 261 buildUnnamed1308() { |
| 262 var o = new core.List<api.AccountPermission>(); | 262 var o = new core.List<api.AccountPermission>(); |
| 263 o.add(buildAccountPermission()); | 263 o.add(buildAccountPermission()); |
| 264 o.add(buildAccountPermission()); | 264 o.add(buildAccountPermission()); |
| 265 return o; | 265 return o; |
| 266 } | 266 } |
| 267 | 267 |
| 268 checkUnnamed262(core.List<api.AccountPermission> o) { | 268 checkUnnamed1308(core.List<api.AccountPermission> o) { |
| 269 unittest.expect(o, unittest.hasLength(2)); | 269 unittest.expect(o, unittest.hasLength(2)); |
| 270 checkAccountPermission(o[0]); | 270 checkAccountPermission(o[0]); |
| 271 checkAccountPermission(o[1]); | 271 checkAccountPermission(o[1]); |
| 272 } | 272 } |
| 273 | 273 |
| 274 core.int buildCounterAccountPermissionsListResponse = 0; | 274 core.int buildCounterAccountPermissionsListResponse = 0; |
| 275 buildAccountPermissionsListResponse() { | 275 buildAccountPermissionsListResponse() { |
| 276 var o = new api.AccountPermissionsListResponse(); | 276 var o = new api.AccountPermissionsListResponse(); |
| 277 buildCounterAccountPermissionsListResponse++; | 277 buildCounterAccountPermissionsListResponse++; |
| 278 if (buildCounterAccountPermissionsListResponse < 3) { | 278 if (buildCounterAccountPermissionsListResponse < 3) { |
| 279 o.accountPermissions = buildUnnamed262(); | 279 o.accountPermissions = buildUnnamed1308(); |
| 280 o.kind = "foo"; | 280 o.kind = "foo"; |
| 281 } | 281 } |
| 282 buildCounterAccountPermissionsListResponse--; | 282 buildCounterAccountPermissionsListResponse--; |
| 283 return o; | 283 return o; |
| 284 } | 284 } |
| 285 | 285 |
| 286 checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { | 286 checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { |
| 287 buildCounterAccountPermissionsListResponse++; | 287 buildCounterAccountPermissionsListResponse++; |
| 288 if (buildCounterAccountPermissionsListResponse < 3) { | 288 if (buildCounterAccountPermissionsListResponse < 3) { |
| 289 checkUnnamed262(o.accountPermissions); | 289 checkUnnamed1308(o.accountPermissions); |
| 290 unittest.expect(o.kind, unittest.equals('foo')); | 290 unittest.expect(o.kind, unittest.equals('foo')); |
| 291 } | 291 } |
| 292 buildCounterAccountPermissionsListResponse--; | 292 buildCounterAccountPermissionsListResponse--; |
| 293 } | 293 } |
| 294 | 294 |
| 295 core.int buildCounterAccountUserProfile = 0; | 295 core.int buildCounterAccountUserProfile = 0; |
| 296 buildAccountUserProfile() { | 296 buildAccountUserProfile() { |
| 297 var o = new api.AccountUserProfile(); | 297 var o = new api.AccountUserProfile(); |
| 298 buildCounterAccountUserProfile++; | 298 buildCounterAccountUserProfile++; |
| 299 if (buildCounterAccountUserProfile < 3) { | 299 if (buildCounterAccountUserProfile < 3) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 checkObjectFilter(o.siteFilter); | 334 checkObjectFilter(o.siteFilter); |
| 335 unittest.expect(o.subaccountId, unittest.equals('foo')); | 335 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 336 unittest.expect(o.traffickerType, unittest.equals('foo')); | 336 unittest.expect(o.traffickerType, unittest.equals('foo')); |
| 337 unittest.expect(o.userAccessType, unittest.equals('foo')); | 337 unittest.expect(o.userAccessType, unittest.equals('foo')); |
| 338 checkObjectFilter(o.userRoleFilter); | 338 checkObjectFilter(o.userRoleFilter); |
| 339 unittest.expect(o.userRoleId, unittest.equals('foo')); | 339 unittest.expect(o.userRoleId, unittest.equals('foo')); |
| 340 } | 340 } |
| 341 buildCounterAccountUserProfile--; | 341 buildCounterAccountUserProfile--; |
| 342 } | 342 } |
| 343 | 343 |
| 344 buildUnnamed263() { | 344 buildUnnamed1309() { |
| 345 var o = new core.List<api.AccountUserProfile>(); | 345 var o = new core.List<api.AccountUserProfile>(); |
| 346 o.add(buildAccountUserProfile()); | 346 o.add(buildAccountUserProfile()); |
| 347 o.add(buildAccountUserProfile()); | 347 o.add(buildAccountUserProfile()); |
| 348 return o; | 348 return o; |
| 349 } | 349 } |
| 350 | 350 |
| 351 checkUnnamed263(core.List<api.AccountUserProfile> o) { | 351 checkUnnamed1309(core.List<api.AccountUserProfile> o) { |
| 352 unittest.expect(o, unittest.hasLength(2)); | 352 unittest.expect(o, unittest.hasLength(2)); |
| 353 checkAccountUserProfile(o[0]); | 353 checkAccountUserProfile(o[0]); |
| 354 checkAccountUserProfile(o[1]); | 354 checkAccountUserProfile(o[1]); |
| 355 } | 355 } |
| 356 | 356 |
| 357 core.int buildCounterAccountUserProfilesListResponse = 0; | 357 core.int buildCounterAccountUserProfilesListResponse = 0; |
| 358 buildAccountUserProfilesListResponse() { | 358 buildAccountUserProfilesListResponse() { |
| 359 var o = new api.AccountUserProfilesListResponse(); | 359 var o = new api.AccountUserProfilesListResponse(); |
| 360 buildCounterAccountUserProfilesListResponse++; | 360 buildCounterAccountUserProfilesListResponse++; |
| 361 if (buildCounterAccountUserProfilesListResponse < 3) { | 361 if (buildCounterAccountUserProfilesListResponse < 3) { |
| 362 o.accountUserProfiles = buildUnnamed263(); | 362 o.accountUserProfiles = buildUnnamed1309(); |
| 363 o.kind = "foo"; | 363 o.kind = "foo"; |
| 364 o.nextPageToken = "foo"; | 364 o.nextPageToken = "foo"; |
| 365 } | 365 } |
| 366 buildCounterAccountUserProfilesListResponse--; | 366 buildCounterAccountUserProfilesListResponse--; |
| 367 return o; | 367 return o; |
| 368 } | 368 } |
| 369 | 369 |
| 370 checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { | 370 checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { |
| 371 buildCounterAccountUserProfilesListResponse++; | 371 buildCounterAccountUserProfilesListResponse++; |
| 372 if (buildCounterAccountUserProfilesListResponse < 3) { | 372 if (buildCounterAccountUserProfilesListResponse < 3) { |
| 373 checkUnnamed263(o.accountUserProfiles); | 373 checkUnnamed1309(o.accountUserProfiles); |
| 374 unittest.expect(o.kind, unittest.equals('foo')); | 374 unittest.expect(o.kind, unittest.equals('foo')); |
| 375 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 375 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 376 } | 376 } |
| 377 buildCounterAccountUserProfilesListResponse--; | 377 buildCounterAccountUserProfilesListResponse--; |
| 378 } | 378 } |
| 379 | 379 |
| 380 buildUnnamed264() { | 380 buildUnnamed1310() { |
| 381 var o = new core.List<api.Account>(); | 381 var o = new core.List<api.Account>(); |
| 382 o.add(buildAccount()); | 382 o.add(buildAccount()); |
| 383 o.add(buildAccount()); | 383 o.add(buildAccount()); |
| 384 return o; | 384 return o; |
| 385 } | 385 } |
| 386 | 386 |
| 387 checkUnnamed264(core.List<api.Account> o) { | 387 checkUnnamed1310(core.List<api.Account> o) { |
| 388 unittest.expect(o, unittest.hasLength(2)); | 388 unittest.expect(o, unittest.hasLength(2)); |
| 389 checkAccount(o[0]); | 389 checkAccount(o[0]); |
| 390 checkAccount(o[1]); | 390 checkAccount(o[1]); |
| 391 } | 391 } |
| 392 | 392 |
| 393 core.int buildCounterAccountsListResponse = 0; | 393 core.int buildCounterAccountsListResponse = 0; |
| 394 buildAccountsListResponse() { | 394 buildAccountsListResponse() { |
| 395 var o = new api.AccountsListResponse(); | 395 var o = new api.AccountsListResponse(); |
| 396 buildCounterAccountsListResponse++; | 396 buildCounterAccountsListResponse++; |
| 397 if (buildCounterAccountsListResponse < 3) { | 397 if (buildCounterAccountsListResponse < 3) { |
| 398 o.accounts = buildUnnamed264(); | 398 o.accounts = buildUnnamed1310(); |
| 399 o.kind = "foo"; | 399 o.kind = "foo"; |
| 400 o.nextPageToken = "foo"; | 400 o.nextPageToken = "foo"; |
| 401 } | 401 } |
| 402 buildCounterAccountsListResponse--; | 402 buildCounterAccountsListResponse--; |
| 403 return o; | 403 return o; |
| 404 } | 404 } |
| 405 | 405 |
| 406 checkAccountsListResponse(api.AccountsListResponse o) { | 406 checkAccountsListResponse(api.AccountsListResponse o) { |
| 407 buildCounterAccountsListResponse++; | 407 buildCounterAccountsListResponse++; |
| 408 if (buildCounterAccountsListResponse < 3) { | 408 if (buildCounterAccountsListResponse < 3) { |
| 409 checkUnnamed264(o.accounts); | 409 checkUnnamed1310(o.accounts); |
| 410 unittest.expect(o.kind, unittest.equals('foo')); | 410 unittest.expect(o.kind, unittest.equals('foo')); |
| 411 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 411 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 412 } | 412 } |
| 413 buildCounterAccountsListResponse--; | 413 buildCounterAccountsListResponse--; |
| 414 } | 414 } |
| 415 | 415 |
| 416 buildUnnamed265() { | 416 buildUnnamed1311() { |
| 417 var o = new core.List<api.DimensionValue>(); | 417 var o = new core.List<api.DimensionValue>(); |
| 418 o.add(buildDimensionValue()); | 418 o.add(buildDimensionValue()); |
| 419 o.add(buildDimensionValue()); | 419 o.add(buildDimensionValue()); |
| 420 return o; | 420 return o; |
| 421 } | 421 } |
| 422 | 422 |
| 423 checkUnnamed265(core.List<api.DimensionValue> o) { | 423 checkUnnamed1311(core.List<api.DimensionValue> o) { |
| 424 unittest.expect(o, unittest.hasLength(2)); | 424 unittest.expect(o, unittest.hasLength(2)); |
| 425 checkDimensionValue(o[0]); | 425 checkDimensionValue(o[0]); |
| 426 checkDimensionValue(o[1]); | 426 checkDimensionValue(o[1]); |
| 427 } | 427 } |
| 428 | 428 |
| 429 buildUnnamed266() { | 429 buildUnnamed1312() { |
| 430 var o = new core.List<core.String>(); | 430 var o = new core.List<core.String>(); |
| 431 o.add("foo"); | 431 o.add("foo"); |
| 432 o.add("foo"); | 432 o.add("foo"); |
| 433 return o; | 433 return o; |
| 434 } | 434 } |
| 435 | 435 |
| 436 checkUnnamed266(core.List<core.String> o) { | 436 checkUnnamed1312(core.List<core.String> o) { |
| 437 unittest.expect(o, unittest.hasLength(2)); | 437 unittest.expect(o, unittest.hasLength(2)); |
| 438 unittest.expect(o[0], unittest.equals('foo')); | 438 unittest.expect(o[0], unittest.equals('foo')); |
| 439 unittest.expect(o[1], unittest.equals('foo')); | 439 unittest.expect(o[1], unittest.equals('foo')); |
| 440 } | 440 } |
| 441 | 441 |
| 442 core.int buildCounterActivities = 0; | 442 core.int buildCounterActivities = 0; |
| 443 buildActivities() { | 443 buildActivities() { |
| 444 var o = new api.Activities(); | 444 var o = new api.Activities(); |
| 445 buildCounterActivities++; | 445 buildCounterActivities++; |
| 446 if (buildCounterActivities < 3) { | 446 if (buildCounterActivities < 3) { |
| 447 o.filters = buildUnnamed265(); | 447 o.filters = buildUnnamed1311(); |
| 448 o.kind = "foo"; | 448 o.kind = "foo"; |
| 449 o.metricNames = buildUnnamed266(); | 449 o.metricNames = buildUnnamed1312(); |
| 450 } | 450 } |
| 451 buildCounterActivities--; | 451 buildCounterActivities--; |
| 452 return o; | 452 return o; |
| 453 } | 453 } |
| 454 | 454 |
| 455 checkActivities(api.Activities o) { | 455 checkActivities(api.Activities o) { |
| 456 buildCounterActivities++; | 456 buildCounterActivities++; |
| 457 if (buildCounterActivities < 3) { | 457 if (buildCounterActivities < 3) { |
| 458 checkUnnamed265(o.filters); | 458 checkUnnamed1311(o.filters); |
| 459 unittest.expect(o.kind, unittest.equals('foo')); | 459 unittest.expect(o.kind, unittest.equals('foo')); |
| 460 checkUnnamed266(o.metricNames); | 460 checkUnnamed1312(o.metricNames); |
| 461 } | 461 } |
| 462 buildCounterActivities--; | 462 buildCounterActivities--; |
| 463 } | 463 } |
| 464 | 464 |
| 465 buildUnnamed267() { | 465 buildUnnamed1313() { |
| 466 var o = new core.List<api.CreativeGroupAssignment>(); | 466 var o = new core.List<api.CreativeGroupAssignment>(); |
| 467 o.add(buildCreativeGroupAssignment()); | 467 o.add(buildCreativeGroupAssignment()); |
| 468 o.add(buildCreativeGroupAssignment()); | 468 o.add(buildCreativeGroupAssignment()); |
| 469 return o; | 469 return o; |
| 470 } | 470 } |
| 471 | 471 |
| 472 checkUnnamed267(core.List<api.CreativeGroupAssignment> o) { | 472 checkUnnamed1313(core.List<api.CreativeGroupAssignment> o) { |
| 473 unittest.expect(o, unittest.hasLength(2)); | 473 unittest.expect(o, unittest.hasLength(2)); |
| 474 checkCreativeGroupAssignment(o[0]); | 474 checkCreativeGroupAssignment(o[0]); |
| 475 checkCreativeGroupAssignment(o[1]); | 475 checkCreativeGroupAssignment(o[1]); |
| 476 } | 476 } |
| 477 | 477 |
| 478 buildUnnamed268() { | 478 buildUnnamed1314() { |
| 479 var o = new core.List<api.EventTagOverride>(); | 479 var o = new core.List<api.EventTagOverride>(); |
| 480 o.add(buildEventTagOverride()); | 480 o.add(buildEventTagOverride()); |
| 481 o.add(buildEventTagOverride()); | 481 o.add(buildEventTagOverride()); |
| 482 return o; | 482 return o; |
| 483 } | 483 } |
| 484 | 484 |
| 485 checkUnnamed268(core.List<api.EventTagOverride> o) { | 485 checkUnnamed1314(core.List<api.EventTagOverride> o) { |
| 486 unittest.expect(o, unittest.hasLength(2)); | 486 unittest.expect(o, unittest.hasLength(2)); |
| 487 checkEventTagOverride(o[0]); | 487 checkEventTagOverride(o[0]); |
| 488 checkEventTagOverride(o[1]); | 488 checkEventTagOverride(o[1]); |
| 489 } | 489 } |
| 490 | 490 |
| 491 buildUnnamed269() { | 491 buildUnnamed1315() { |
| 492 var o = new core.List<api.PlacementAssignment>(); | 492 var o = new core.List<api.PlacementAssignment>(); |
| 493 o.add(buildPlacementAssignment()); | 493 o.add(buildPlacementAssignment()); |
| 494 o.add(buildPlacementAssignment()); | 494 o.add(buildPlacementAssignment()); |
| 495 return o; | 495 return o; |
| 496 } | 496 } |
| 497 | 497 |
| 498 checkUnnamed269(core.List<api.PlacementAssignment> o) { | 498 checkUnnamed1315(core.List<api.PlacementAssignment> o) { |
| 499 unittest.expect(o, unittest.hasLength(2)); | 499 unittest.expect(o, unittest.hasLength(2)); |
| 500 checkPlacementAssignment(o[0]); | 500 checkPlacementAssignment(o[0]); |
| 501 checkPlacementAssignment(o[1]); | 501 checkPlacementAssignment(o[1]); |
| 502 } | 502 } |
| 503 | 503 |
| 504 core.int buildCounterAd = 0; | 504 core.int buildCounterAd = 0; |
| 505 buildAd() { | 505 buildAd() { |
| 506 var o = new api.Ad(); | 506 var o = new api.Ad(); |
| 507 buildCounterAd++; | 507 buildCounterAd++; |
| 508 if (buildCounterAd < 3) { | 508 if (buildCounterAd < 3) { |
| 509 o.accountId = "foo"; | 509 o.accountId = "foo"; |
| 510 o.active = true; | 510 o.active = true; |
| 511 o.advertiserId = "foo"; | 511 o.advertiserId = "foo"; |
| 512 o.advertiserIdDimensionValue = buildDimensionValue(); | 512 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 513 o.archived = true; | 513 o.archived = true; |
| 514 o.audienceSegmentId = "foo"; | 514 o.audienceSegmentId = "foo"; |
| 515 o.campaignId = "foo"; | 515 o.campaignId = "foo"; |
| 516 o.campaignIdDimensionValue = buildDimensionValue(); | 516 o.campaignIdDimensionValue = buildDimensionValue(); |
| 517 o.clickThroughUrl = buildClickThroughUrl(); | 517 o.clickThroughUrl = buildClickThroughUrl(); |
| 518 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); | 518 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); |
| 519 o.comments = "foo"; | 519 o.comments = "foo"; |
| 520 o.compatibility = "foo"; | 520 o.compatibility = "foo"; |
| 521 o.createInfo = buildLastModifiedInfo(); | 521 o.createInfo = buildLastModifiedInfo(); |
| 522 o.creativeGroupAssignments = buildUnnamed267(); | 522 o.creativeGroupAssignments = buildUnnamed1313(); |
| 523 o.creativeRotation = buildCreativeRotation(); | 523 o.creativeRotation = buildCreativeRotation(); |
| 524 o.dayPartTargeting = buildDayPartTargeting(); | 524 o.dayPartTargeting = buildDayPartTargeting(); |
| 525 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr
operties(); | 525 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr
operties(); |
| 526 o.deliverySchedule = buildDeliverySchedule(); | 526 o.deliverySchedule = buildDeliverySchedule(); |
| 527 o.dynamicClickTracker = true; | 527 o.dynamicClickTracker = true; |
| 528 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 528 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 529 o.eventTagOverrides = buildUnnamed268(); | 529 o.eventTagOverrides = buildUnnamed1314(); |
| 530 o.geoTargeting = buildGeoTargeting(); | 530 o.geoTargeting = buildGeoTargeting(); |
| 531 o.id = "foo"; | 531 o.id = "foo"; |
| 532 o.idDimensionValue = buildDimensionValue(); | 532 o.idDimensionValue = buildDimensionValue(); |
| 533 o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); | 533 o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); |
| 534 o.kind = "foo"; | 534 o.kind = "foo"; |
| 535 o.lastModifiedInfo = buildLastModifiedInfo(); | 535 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 536 o.name = "foo"; | 536 o.name = "foo"; |
| 537 o.placementAssignments = buildUnnamed269(); | 537 o.placementAssignments = buildUnnamed1315(); |
| 538 o.remarketingListExpression = buildListTargetingExpression(); | 538 o.remarketingListExpression = buildListTargetingExpression(); |
| 539 o.size = buildSize(); | 539 o.size = buildSize(); |
| 540 o.sslCompliant = true; | 540 o.sslCompliant = true; |
| 541 o.sslRequired = true; | 541 o.sslRequired = true; |
| 542 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 542 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 543 o.subaccountId = "foo"; | 543 o.subaccountId = "foo"; |
| 544 o.technologyTargeting = buildTechnologyTargeting(); | 544 o.technologyTargeting = buildTechnologyTargeting(); |
| 545 o.type = "foo"; | 545 o.type = "foo"; |
| 546 } | 546 } |
| 547 buildCounterAd--; | 547 buildCounterAd--; |
| 548 return o; | 548 return o; |
| 549 } | 549 } |
| 550 | 550 |
| 551 checkAd(api.Ad o) { | 551 checkAd(api.Ad o) { |
| 552 buildCounterAd++; | 552 buildCounterAd++; |
| 553 if (buildCounterAd < 3) { | 553 if (buildCounterAd < 3) { |
| 554 unittest.expect(o.accountId, unittest.equals('foo')); | 554 unittest.expect(o.accountId, unittest.equals('foo')); |
| 555 unittest.expect(o.active, unittest.isTrue); | 555 unittest.expect(o.active, unittest.isTrue); |
| 556 unittest.expect(o.advertiserId, unittest.equals('foo')); | 556 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 557 checkDimensionValue(o.advertiserIdDimensionValue); | 557 checkDimensionValue(o.advertiserIdDimensionValue); |
| 558 unittest.expect(o.archived, unittest.isTrue); | 558 unittest.expect(o.archived, unittest.isTrue); |
| 559 unittest.expect(o.audienceSegmentId, unittest.equals('foo')); | 559 unittest.expect(o.audienceSegmentId, unittest.equals('foo')); |
| 560 unittest.expect(o.campaignId, unittest.equals('foo')); | 560 unittest.expect(o.campaignId, unittest.equals('foo')); |
| 561 checkDimensionValue(o.campaignIdDimensionValue); | 561 checkDimensionValue(o.campaignIdDimensionValue); |
| 562 checkClickThroughUrl(o.clickThroughUrl); | 562 checkClickThroughUrl(o.clickThroughUrl); |
| 563 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); | 563 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); |
| 564 unittest.expect(o.comments, unittest.equals('foo')); | 564 unittest.expect(o.comments, unittest.equals('foo')); |
| 565 unittest.expect(o.compatibility, unittest.equals('foo')); | 565 unittest.expect(o.compatibility, unittest.equals('foo')); |
| 566 checkLastModifiedInfo(o.createInfo); | 566 checkLastModifiedInfo(o.createInfo); |
| 567 checkUnnamed267(o.creativeGroupAssignments); | 567 checkUnnamed1313(o.creativeGroupAssignments); |
| 568 checkCreativeRotation(o.creativeRotation); | 568 checkCreativeRotation(o.creativeRotation); |
| 569 checkDayPartTargeting(o.dayPartTargeting); | 569 checkDayPartTargeting(o.dayPartTargeting); |
| 570 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp
erties); | 570 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp
erties); |
| 571 checkDeliverySchedule(o.deliverySchedule); | 571 checkDeliverySchedule(o.deliverySchedule); |
| 572 unittest.expect(o.dynamicClickTracker, unittest.isTrue); | 572 unittest.expect(o.dynamicClickTracker, unittest.isTrue); |
| 573 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 573 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 574 checkUnnamed268(o.eventTagOverrides); | 574 checkUnnamed1314(o.eventTagOverrides); |
| 575 checkGeoTargeting(o.geoTargeting); | 575 checkGeoTargeting(o.geoTargeting); |
| 576 unittest.expect(o.id, unittest.equals('foo')); | 576 unittest.expect(o.id, unittest.equals('foo')); |
| 577 checkDimensionValue(o.idDimensionValue); | 577 checkDimensionValue(o.idDimensionValue); |
| 578 checkKeyValueTargetingExpression(o.keyValueTargetingExpression); | 578 checkKeyValueTargetingExpression(o.keyValueTargetingExpression); |
| 579 unittest.expect(o.kind, unittest.equals('foo')); | 579 unittest.expect(o.kind, unittest.equals('foo')); |
| 580 checkLastModifiedInfo(o.lastModifiedInfo); | 580 checkLastModifiedInfo(o.lastModifiedInfo); |
| 581 unittest.expect(o.name, unittest.equals('foo')); | 581 unittest.expect(o.name, unittest.equals('foo')); |
| 582 checkUnnamed269(o.placementAssignments); | 582 checkUnnamed1315(o.placementAssignments); |
| 583 checkListTargetingExpression(o.remarketingListExpression); | 583 checkListTargetingExpression(o.remarketingListExpression); |
| 584 checkSize(o.size); | 584 checkSize(o.size); |
| 585 unittest.expect(o.sslCompliant, unittest.isTrue); | 585 unittest.expect(o.sslCompliant, unittest.isTrue); |
| 586 unittest.expect(o.sslRequired, unittest.isTrue); | 586 unittest.expect(o.sslRequired, unittest.isTrue); |
| 587 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 587 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 588 unittest.expect(o.subaccountId, unittest.equals('foo')); | 588 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 589 checkTechnologyTargeting(o.technologyTargeting); | 589 checkTechnologyTargeting(o.technologyTargeting); |
| 590 unittest.expect(o.type, unittest.equals('foo')); | 590 unittest.expect(o.type, unittest.equals('foo')); |
| 591 } | 591 } |
| 592 buildCounterAd--; | 592 buildCounterAd--; |
| 593 } | 593 } |
| 594 | 594 |
| 595 buildUnnamed270() { | 595 core.int buildCounterAdSlot = 0; |
| 596 buildAdSlot() { |
| 597 var o = new api.AdSlot(); |
| 598 buildCounterAdSlot++; |
| 599 if (buildCounterAdSlot < 3) { |
| 600 o.comment = "foo"; |
| 601 o.compatibility = "foo"; |
| 602 o.height = "foo"; |
| 603 o.linkedPlacementId = "foo"; |
| 604 o.name = "foo"; |
| 605 o.paymentSourceType = "foo"; |
| 606 o.primary = true; |
| 607 o.width = "foo"; |
| 608 } |
| 609 buildCounterAdSlot--; |
| 610 return o; |
| 611 } |
| 612 |
| 613 checkAdSlot(api.AdSlot o) { |
| 614 buildCounterAdSlot++; |
| 615 if (buildCounterAdSlot < 3) { |
| 616 unittest.expect(o.comment, unittest.equals('foo')); |
| 617 unittest.expect(o.compatibility, unittest.equals('foo')); |
| 618 unittest.expect(o.height, unittest.equals('foo')); |
| 619 unittest.expect(o.linkedPlacementId, unittest.equals('foo')); |
| 620 unittest.expect(o.name, unittest.equals('foo')); |
| 621 unittest.expect(o.paymentSourceType, unittest.equals('foo')); |
| 622 unittest.expect(o.primary, unittest.isTrue); |
| 623 unittest.expect(o.width, unittest.equals('foo')); |
| 624 } |
| 625 buildCounterAdSlot--; |
| 626 } |
| 627 |
| 628 buildUnnamed1316() { |
| 596 var o = new core.List<api.Ad>(); | 629 var o = new core.List<api.Ad>(); |
| 597 o.add(buildAd()); | 630 o.add(buildAd()); |
| 598 o.add(buildAd()); | 631 o.add(buildAd()); |
| 599 return o; | 632 return o; |
| 600 } | 633 } |
| 601 | 634 |
| 602 checkUnnamed270(core.List<api.Ad> o) { | 635 checkUnnamed1316(core.List<api.Ad> o) { |
| 603 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
| 604 checkAd(o[0]); | 637 checkAd(o[0]); |
| 605 checkAd(o[1]); | 638 checkAd(o[1]); |
| 606 } | 639 } |
| 607 | 640 |
| 608 core.int buildCounterAdsListResponse = 0; | 641 core.int buildCounterAdsListResponse = 0; |
| 609 buildAdsListResponse() { | 642 buildAdsListResponse() { |
| 610 var o = new api.AdsListResponse(); | 643 var o = new api.AdsListResponse(); |
| 611 buildCounterAdsListResponse++; | 644 buildCounterAdsListResponse++; |
| 612 if (buildCounterAdsListResponse < 3) { | 645 if (buildCounterAdsListResponse < 3) { |
| 613 o.ads = buildUnnamed270(); | 646 o.ads = buildUnnamed1316(); |
| 614 o.kind = "foo"; | 647 o.kind = "foo"; |
| 615 o.nextPageToken = "foo"; | 648 o.nextPageToken = "foo"; |
| 616 } | 649 } |
| 617 buildCounterAdsListResponse--; | 650 buildCounterAdsListResponse--; |
| 618 return o; | 651 return o; |
| 619 } | 652 } |
| 620 | 653 |
| 621 checkAdsListResponse(api.AdsListResponse o) { | 654 checkAdsListResponse(api.AdsListResponse o) { |
| 622 buildCounterAdsListResponse++; | 655 buildCounterAdsListResponse++; |
| 623 if (buildCounterAdsListResponse < 3) { | 656 if (buildCounterAdsListResponse < 3) { |
| 624 checkUnnamed270(o.ads); | 657 checkUnnamed1316(o.ads); |
| 625 unittest.expect(o.kind, unittest.equals('foo')); | 658 unittest.expect(o.kind, unittest.equals('foo')); |
| 626 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 659 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 627 } | 660 } |
| 628 buildCounterAdsListResponse--; | 661 buildCounterAdsListResponse--; |
| 629 } | 662 } |
| 630 | 663 |
| 631 core.int buildCounterAdvertiser = 0; | 664 core.int buildCounterAdvertiser = 0; |
| 632 buildAdvertiser() { | 665 buildAdvertiser() { |
| 633 var o = new api.Advertiser(); | 666 var o = new api.Advertiser(); |
| 634 buildCounterAdvertiser++; | 667 buildCounterAdvertiser++; |
| 635 if (buildCounterAdvertiser < 3) { | 668 if (buildCounterAdvertiser < 3) { |
| 636 o.accountId = "foo"; | 669 o.accountId = "foo"; |
| 637 o.advertiserGroupId = "foo"; | 670 o.advertiserGroupId = "foo"; |
| 638 o.clickThroughUrlSuffix = "foo"; | 671 o.clickThroughUrlSuffix = "foo"; |
| 639 o.defaultClickThroughEventTagId = "foo"; | 672 o.defaultClickThroughEventTagId = "foo"; |
| 640 o.defaultEmail = "foo"; | 673 o.defaultEmail = "foo"; |
| 641 o.floodlightConfigurationId = "foo"; | 674 o.floodlightConfigurationId = "foo"; |
| 642 o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); | 675 o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); |
| 643 o.id = "foo"; | 676 o.id = "foo"; |
| 644 o.idDimensionValue = buildDimensionValue(); | 677 o.idDimensionValue = buildDimensionValue(); |
| 645 o.kind = "foo"; | 678 o.kind = "foo"; |
| 646 o.name = "foo"; | 679 o.name = "foo"; |
| 680 o.originalFloodlightConfigurationId = "foo"; |
| 647 o.status = "foo"; | 681 o.status = "foo"; |
| 648 o.subaccountId = "foo"; | 682 o.subaccountId = "foo"; |
| 683 o.suspended = true; |
| 649 } | 684 } |
| 650 buildCounterAdvertiser--; | 685 buildCounterAdvertiser--; |
| 651 return o; | 686 return o; |
| 652 } | 687 } |
| 653 | 688 |
| 654 checkAdvertiser(api.Advertiser o) { | 689 checkAdvertiser(api.Advertiser o) { |
| 655 buildCounterAdvertiser++; | 690 buildCounterAdvertiser++; |
| 656 if (buildCounterAdvertiser < 3) { | 691 if (buildCounterAdvertiser < 3) { |
| 657 unittest.expect(o.accountId, unittest.equals('foo')); | 692 unittest.expect(o.accountId, unittest.equals('foo')); |
| 658 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); | 693 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); |
| 659 unittest.expect(o.clickThroughUrlSuffix, unittest.equals('foo')); | 694 unittest.expect(o.clickThroughUrlSuffix, unittest.equals('foo')); |
| 660 unittest.expect(o.defaultClickThroughEventTagId, unittest.equals('foo')); | 695 unittest.expect(o.defaultClickThroughEventTagId, unittest.equals('foo')); |
| 661 unittest.expect(o.defaultEmail, unittest.equals('foo')); | 696 unittest.expect(o.defaultEmail, unittest.equals('foo')); |
| 662 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); | 697 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); |
| 663 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); | 698 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); |
| 664 unittest.expect(o.id, unittest.equals('foo')); | 699 unittest.expect(o.id, unittest.equals('foo')); |
| 665 checkDimensionValue(o.idDimensionValue); | 700 checkDimensionValue(o.idDimensionValue); |
| 666 unittest.expect(o.kind, unittest.equals('foo')); | 701 unittest.expect(o.kind, unittest.equals('foo')); |
| 667 unittest.expect(o.name, unittest.equals('foo')); | 702 unittest.expect(o.name, unittest.equals('foo')); |
| 703 unittest.expect(o.originalFloodlightConfigurationId, unittest.equals('foo'))
; |
| 668 unittest.expect(o.status, unittest.equals('foo')); | 704 unittest.expect(o.status, unittest.equals('foo')); |
| 669 unittest.expect(o.subaccountId, unittest.equals('foo')); | 705 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 706 unittest.expect(o.suspended, unittest.isTrue); |
| 670 } | 707 } |
| 671 buildCounterAdvertiser--; | 708 buildCounterAdvertiser--; |
| 672 } | 709 } |
| 673 | 710 |
| 674 core.int buildCounterAdvertiserGroup = 0; | 711 core.int buildCounterAdvertiserGroup = 0; |
| 675 buildAdvertiserGroup() { | 712 buildAdvertiserGroup() { |
| 676 var o = new api.AdvertiserGroup(); | 713 var o = new api.AdvertiserGroup(); |
| 677 buildCounterAdvertiserGroup++; | 714 buildCounterAdvertiserGroup++; |
| 678 if (buildCounterAdvertiserGroup < 3) { | 715 if (buildCounterAdvertiserGroup < 3) { |
| 679 o.accountId = "foo"; | 716 o.accountId = "foo"; |
| 680 o.id = "foo"; | 717 o.id = "foo"; |
| 681 o.kind = "foo"; | 718 o.kind = "foo"; |
| 682 o.name = "foo"; | 719 o.name = "foo"; |
| 683 } | 720 } |
| 684 buildCounterAdvertiserGroup--; | 721 buildCounterAdvertiserGroup--; |
| 685 return o; | 722 return o; |
| 686 } | 723 } |
| 687 | 724 |
| 688 checkAdvertiserGroup(api.AdvertiserGroup o) { | 725 checkAdvertiserGroup(api.AdvertiserGroup o) { |
| 689 buildCounterAdvertiserGroup++; | 726 buildCounterAdvertiserGroup++; |
| 690 if (buildCounterAdvertiserGroup < 3) { | 727 if (buildCounterAdvertiserGroup < 3) { |
| 691 unittest.expect(o.accountId, unittest.equals('foo')); | 728 unittest.expect(o.accountId, unittest.equals('foo')); |
| 692 unittest.expect(o.id, unittest.equals('foo')); | 729 unittest.expect(o.id, unittest.equals('foo')); |
| 693 unittest.expect(o.kind, unittest.equals('foo')); | 730 unittest.expect(o.kind, unittest.equals('foo')); |
| 694 unittest.expect(o.name, unittest.equals('foo')); | 731 unittest.expect(o.name, unittest.equals('foo')); |
| 695 } | 732 } |
| 696 buildCounterAdvertiserGroup--; | 733 buildCounterAdvertiserGroup--; |
| 697 } | 734 } |
| 698 | 735 |
| 699 buildUnnamed271() { | 736 buildUnnamed1317() { |
| 700 var o = new core.List<api.AdvertiserGroup>(); | 737 var o = new core.List<api.AdvertiserGroup>(); |
| 701 o.add(buildAdvertiserGroup()); | 738 o.add(buildAdvertiserGroup()); |
| 702 o.add(buildAdvertiserGroup()); | 739 o.add(buildAdvertiserGroup()); |
| 703 return o; | 740 return o; |
| 704 } | 741 } |
| 705 | 742 |
| 706 checkUnnamed271(core.List<api.AdvertiserGroup> o) { | 743 checkUnnamed1317(core.List<api.AdvertiserGroup> o) { |
| 707 unittest.expect(o, unittest.hasLength(2)); | 744 unittest.expect(o, unittest.hasLength(2)); |
| 708 checkAdvertiserGroup(o[0]); | 745 checkAdvertiserGroup(o[0]); |
| 709 checkAdvertiserGroup(o[1]); | 746 checkAdvertiserGroup(o[1]); |
| 710 } | 747 } |
| 711 | 748 |
| 712 core.int buildCounterAdvertiserGroupsListResponse = 0; | 749 core.int buildCounterAdvertiserGroupsListResponse = 0; |
| 713 buildAdvertiserGroupsListResponse() { | 750 buildAdvertiserGroupsListResponse() { |
| 714 var o = new api.AdvertiserGroupsListResponse(); | 751 var o = new api.AdvertiserGroupsListResponse(); |
| 715 buildCounterAdvertiserGroupsListResponse++; | 752 buildCounterAdvertiserGroupsListResponse++; |
| 716 if (buildCounterAdvertiserGroupsListResponse < 3) { | 753 if (buildCounterAdvertiserGroupsListResponse < 3) { |
| 717 o.advertiserGroups = buildUnnamed271(); | 754 o.advertiserGroups = buildUnnamed1317(); |
| 718 o.kind = "foo"; | 755 o.kind = "foo"; |
| 719 o.nextPageToken = "foo"; | 756 o.nextPageToken = "foo"; |
| 720 } | 757 } |
| 721 buildCounterAdvertiserGroupsListResponse--; | 758 buildCounterAdvertiserGroupsListResponse--; |
| 722 return o; | 759 return o; |
| 723 } | 760 } |
| 724 | 761 |
| 725 checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { | 762 checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { |
| 726 buildCounterAdvertiserGroupsListResponse++; | 763 buildCounterAdvertiserGroupsListResponse++; |
| 727 if (buildCounterAdvertiserGroupsListResponse < 3) { | 764 if (buildCounterAdvertiserGroupsListResponse < 3) { |
| 728 checkUnnamed271(o.advertiserGroups); | 765 checkUnnamed1317(o.advertiserGroups); |
| 729 unittest.expect(o.kind, unittest.equals('foo')); | 766 unittest.expect(o.kind, unittest.equals('foo')); |
| 730 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 767 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 731 } | 768 } |
| 732 buildCounterAdvertiserGroupsListResponse--; | 769 buildCounterAdvertiserGroupsListResponse--; |
| 733 } | 770 } |
| 734 | 771 |
| 735 buildUnnamed272() { | 772 buildUnnamed1318() { |
| 736 var o = new core.List<api.Advertiser>(); | 773 var o = new core.List<api.Advertiser>(); |
| 737 o.add(buildAdvertiser()); | 774 o.add(buildAdvertiser()); |
| 738 o.add(buildAdvertiser()); | 775 o.add(buildAdvertiser()); |
| 739 return o; | 776 return o; |
| 740 } | 777 } |
| 741 | 778 |
| 742 checkUnnamed272(core.List<api.Advertiser> o) { | 779 checkUnnamed1318(core.List<api.Advertiser> o) { |
| 743 unittest.expect(o, unittest.hasLength(2)); | 780 unittest.expect(o, unittest.hasLength(2)); |
| 744 checkAdvertiser(o[0]); | 781 checkAdvertiser(o[0]); |
| 745 checkAdvertiser(o[1]); | 782 checkAdvertiser(o[1]); |
| 746 } | 783 } |
| 747 | 784 |
| 748 core.int buildCounterAdvertisersListResponse = 0; | 785 core.int buildCounterAdvertisersListResponse = 0; |
| 749 buildAdvertisersListResponse() { | 786 buildAdvertisersListResponse() { |
| 750 var o = new api.AdvertisersListResponse(); | 787 var o = new api.AdvertisersListResponse(); |
| 751 buildCounterAdvertisersListResponse++; | 788 buildCounterAdvertisersListResponse++; |
| 752 if (buildCounterAdvertisersListResponse < 3) { | 789 if (buildCounterAdvertisersListResponse < 3) { |
| 753 o.advertisers = buildUnnamed272(); | 790 o.advertisers = buildUnnamed1318(); |
| 754 o.kind = "foo"; | 791 o.kind = "foo"; |
| 755 o.nextPageToken = "foo"; | 792 o.nextPageToken = "foo"; |
| 756 } | 793 } |
| 757 buildCounterAdvertisersListResponse--; | 794 buildCounterAdvertisersListResponse--; |
| 758 return o; | 795 return o; |
| 759 } | 796 } |
| 760 | 797 |
| 761 checkAdvertisersListResponse(api.AdvertisersListResponse o) { | 798 checkAdvertisersListResponse(api.AdvertisersListResponse o) { |
| 762 buildCounterAdvertisersListResponse++; | 799 buildCounterAdvertisersListResponse++; |
| 763 if (buildCounterAdvertisersListResponse < 3) { | 800 if (buildCounterAdvertisersListResponse < 3) { |
| 764 checkUnnamed272(o.advertisers); | 801 checkUnnamed1318(o.advertisers); |
| 765 unittest.expect(o.kind, unittest.equals('foo')); | 802 unittest.expect(o.kind, unittest.equals('foo')); |
| 766 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 803 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 767 } | 804 } |
| 768 buildCounterAdvertisersListResponse--; | 805 buildCounterAdvertisersListResponse--; |
| 769 } | 806 } |
| 770 | 807 |
| 771 core.int buildCounterAudienceSegment = 0; | 808 core.int buildCounterAudienceSegment = 0; |
| 772 buildAudienceSegment() { | 809 buildAudienceSegment() { |
| 773 var o = new api.AudienceSegment(); | 810 var o = new api.AudienceSegment(); |
| 774 buildCounterAudienceSegment++; | 811 buildCounterAudienceSegment++; |
| 775 if (buildCounterAudienceSegment < 3) { | 812 if (buildCounterAudienceSegment < 3) { |
| 776 o.allocation = 42; | 813 o.allocation = 42; |
| 777 o.id = "foo"; | 814 o.id = "foo"; |
| 778 o.name = "foo"; | 815 o.name = "foo"; |
| 779 } | 816 } |
| 780 buildCounterAudienceSegment--; | 817 buildCounterAudienceSegment--; |
| 781 return o; | 818 return o; |
| 782 } | 819 } |
| 783 | 820 |
| 784 checkAudienceSegment(api.AudienceSegment o) { | 821 checkAudienceSegment(api.AudienceSegment o) { |
| 785 buildCounterAudienceSegment++; | 822 buildCounterAudienceSegment++; |
| 786 if (buildCounterAudienceSegment < 3) { | 823 if (buildCounterAudienceSegment < 3) { |
| 787 unittest.expect(o.allocation, unittest.equals(42)); | 824 unittest.expect(o.allocation, unittest.equals(42)); |
| 788 unittest.expect(o.id, unittest.equals('foo')); | 825 unittest.expect(o.id, unittest.equals('foo')); |
| 789 unittest.expect(o.name, unittest.equals('foo')); | 826 unittest.expect(o.name, unittest.equals('foo')); |
| 790 } | 827 } |
| 791 buildCounterAudienceSegment--; | 828 buildCounterAudienceSegment--; |
| 792 } | 829 } |
| 793 | 830 |
| 794 buildUnnamed273() { | 831 buildUnnamed1319() { |
| 795 var o = new core.List<api.AudienceSegment>(); | 832 var o = new core.List<api.AudienceSegment>(); |
| 796 o.add(buildAudienceSegment()); | 833 o.add(buildAudienceSegment()); |
| 797 o.add(buildAudienceSegment()); | 834 o.add(buildAudienceSegment()); |
| 798 return o; | 835 return o; |
| 799 } | 836 } |
| 800 | 837 |
| 801 checkUnnamed273(core.List<api.AudienceSegment> o) { | 838 checkUnnamed1319(core.List<api.AudienceSegment> o) { |
| 802 unittest.expect(o, unittest.hasLength(2)); | 839 unittest.expect(o, unittest.hasLength(2)); |
| 803 checkAudienceSegment(o[0]); | 840 checkAudienceSegment(o[0]); |
| 804 checkAudienceSegment(o[1]); | 841 checkAudienceSegment(o[1]); |
| 805 } | 842 } |
| 806 | 843 |
| 807 core.int buildCounterAudienceSegmentGroup = 0; | 844 core.int buildCounterAudienceSegmentGroup = 0; |
| 808 buildAudienceSegmentGroup() { | 845 buildAudienceSegmentGroup() { |
| 809 var o = new api.AudienceSegmentGroup(); | 846 var o = new api.AudienceSegmentGroup(); |
| 810 buildCounterAudienceSegmentGroup++; | 847 buildCounterAudienceSegmentGroup++; |
| 811 if (buildCounterAudienceSegmentGroup < 3) { | 848 if (buildCounterAudienceSegmentGroup < 3) { |
| 812 o.audienceSegments = buildUnnamed273(); | 849 o.audienceSegments = buildUnnamed1319(); |
| 813 o.id = "foo"; | 850 o.id = "foo"; |
| 814 o.name = "foo"; | 851 o.name = "foo"; |
| 815 } | 852 } |
| 816 buildCounterAudienceSegmentGroup--; | 853 buildCounterAudienceSegmentGroup--; |
| 817 return o; | 854 return o; |
| 818 } | 855 } |
| 819 | 856 |
| 820 checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { | 857 checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { |
| 821 buildCounterAudienceSegmentGroup++; | 858 buildCounterAudienceSegmentGroup++; |
| 822 if (buildCounterAudienceSegmentGroup < 3) { | 859 if (buildCounterAudienceSegmentGroup < 3) { |
| 823 checkUnnamed273(o.audienceSegments); | 860 checkUnnamed1319(o.audienceSegments); |
| 824 unittest.expect(o.id, unittest.equals('foo')); | 861 unittest.expect(o.id, unittest.equals('foo')); |
| 825 unittest.expect(o.name, unittest.equals('foo')); | 862 unittest.expect(o.name, unittest.equals('foo')); |
| 826 } | 863 } |
| 827 buildCounterAudienceSegmentGroup--; | 864 buildCounterAudienceSegmentGroup--; |
| 828 } | 865 } |
| 829 | 866 |
| 830 core.int buildCounterBrowser = 0; | 867 core.int buildCounterBrowser = 0; |
| 831 buildBrowser() { | 868 buildBrowser() { |
| 832 var o = new api.Browser(); | 869 var o = new api.Browser(); |
| 833 buildCounterBrowser++; | 870 buildCounterBrowser++; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 849 unittest.expect(o.browserVersionId, unittest.equals('foo')); | 886 unittest.expect(o.browserVersionId, unittest.equals('foo')); |
| 850 unittest.expect(o.dartId, unittest.equals('foo')); | 887 unittest.expect(o.dartId, unittest.equals('foo')); |
| 851 unittest.expect(o.kind, unittest.equals('foo')); | 888 unittest.expect(o.kind, unittest.equals('foo')); |
| 852 unittest.expect(o.majorVersion, unittest.equals('foo')); | 889 unittest.expect(o.majorVersion, unittest.equals('foo')); |
| 853 unittest.expect(o.minorVersion, unittest.equals('foo')); | 890 unittest.expect(o.minorVersion, unittest.equals('foo')); |
| 854 unittest.expect(o.name, unittest.equals('foo')); | 891 unittest.expect(o.name, unittest.equals('foo')); |
| 855 } | 892 } |
| 856 buildCounterBrowser--; | 893 buildCounterBrowser--; |
| 857 } | 894 } |
| 858 | 895 |
| 859 buildUnnamed274() { | 896 buildUnnamed1320() { |
| 860 var o = new core.List<api.Browser>(); | 897 var o = new core.List<api.Browser>(); |
| 861 o.add(buildBrowser()); | 898 o.add(buildBrowser()); |
| 862 o.add(buildBrowser()); | 899 o.add(buildBrowser()); |
| 863 return o; | 900 return o; |
| 864 } | 901 } |
| 865 | 902 |
| 866 checkUnnamed274(core.List<api.Browser> o) { | 903 checkUnnamed1320(core.List<api.Browser> o) { |
| 867 unittest.expect(o, unittest.hasLength(2)); | 904 unittest.expect(o, unittest.hasLength(2)); |
| 868 checkBrowser(o[0]); | 905 checkBrowser(o[0]); |
| 869 checkBrowser(o[1]); | 906 checkBrowser(o[1]); |
| 870 } | 907 } |
| 871 | 908 |
| 872 core.int buildCounterBrowsersListResponse = 0; | 909 core.int buildCounterBrowsersListResponse = 0; |
| 873 buildBrowsersListResponse() { | 910 buildBrowsersListResponse() { |
| 874 var o = new api.BrowsersListResponse(); | 911 var o = new api.BrowsersListResponse(); |
| 875 buildCounterBrowsersListResponse++; | 912 buildCounterBrowsersListResponse++; |
| 876 if (buildCounterBrowsersListResponse < 3) { | 913 if (buildCounterBrowsersListResponse < 3) { |
| 877 o.browsers = buildUnnamed274(); | 914 o.browsers = buildUnnamed1320(); |
| 878 o.kind = "foo"; | 915 o.kind = "foo"; |
| 879 } | 916 } |
| 880 buildCounterBrowsersListResponse--; | 917 buildCounterBrowsersListResponse--; |
| 881 return o; | 918 return o; |
| 882 } | 919 } |
| 883 | 920 |
| 884 checkBrowsersListResponse(api.BrowsersListResponse o) { | 921 checkBrowsersListResponse(api.BrowsersListResponse o) { |
| 885 buildCounterBrowsersListResponse++; | 922 buildCounterBrowsersListResponse++; |
| 886 if (buildCounterBrowsersListResponse < 3) { | 923 if (buildCounterBrowsersListResponse < 3) { |
| 887 checkUnnamed274(o.browsers); | 924 checkUnnamed1320(o.browsers); |
| 888 unittest.expect(o.kind, unittest.equals('foo')); | 925 unittest.expect(o.kind, unittest.equals('foo')); |
| 889 } | 926 } |
| 890 buildCounterBrowsersListResponse--; | 927 buildCounterBrowsersListResponse--; |
| 891 } | 928 } |
| 892 | 929 |
| 893 buildUnnamed275() { | 930 buildUnnamed1321() { |
| 894 var o = new core.List<api.CreativeOptimizationConfiguration>(); | 931 var o = new core.List<api.CreativeOptimizationConfiguration>(); |
| 895 o.add(buildCreativeOptimizationConfiguration()); | 932 o.add(buildCreativeOptimizationConfiguration()); |
| 896 o.add(buildCreativeOptimizationConfiguration()); | 933 o.add(buildCreativeOptimizationConfiguration()); |
| 897 return o; | 934 return o; |
| 898 } | 935 } |
| 899 | 936 |
| 900 checkUnnamed275(core.List<api.CreativeOptimizationConfiguration> o) { | 937 checkUnnamed1321(core.List<api.CreativeOptimizationConfiguration> o) { |
| 901 unittest.expect(o, unittest.hasLength(2)); | 938 unittest.expect(o, unittest.hasLength(2)); |
| 902 checkCreativeOptimizationConfiguration(o[0]); | 939 checkCreativeOptimizationConfiguration(o[0]); |
| 903 checkCreativeOptimizationConfiguration(o[1]); | 940 checkCreativeOptimizationConfiguration(o[1]); |
| 904 } | 941 } |
| 905 | 942 |
| 906 buildUnnamed276() { | 943 buildUnnamed1322() { |
| 907 var o = new core.List<api.AudienceSegmentGroup>(); | 944 var o = new core.List<api.AudienceSegmentGroup>(); |
| 908 o.add(buildAudienceSegmentGroup()); | 945 o.add(buildAudienceSegmentGroup()); |
| 909 o.add(buildAudienceSegmentGroup()); | 946 o.add(buildAudienceSegmentGroup()); |
| 910 return o; | 947 return o; |
| 911 } | 948 } |
| 912 | 949 |
| 913 checkUnnamed276(core.List<api.AudienceSegmentGroup> o) { | 950 checkUnnamed1322(core.List<api.AudienceSegmentGroup> o) { |
| 914 unittest.expect(o, unittest.hasLength(2)); | 951 unittest.expect(o, unittest.hasLength(2)); |
| 915 checkAudienceSegmentGroup(o[0]); | 952 checkAudienceSegmentGroup(o[0]); |
| 916 checkAudienceSegmentGroup(o[1]); | 953 checkAudienceSegmentGroup(o[1]); |
| 917 } | 954 } |
| 918 | 955 |
| 919 buildUnnamed277() { | 956 buildUnnamed1323() { |
| 920 var o = new core.List<core.String>(); | 957 var o = new core.List<core.String>(); |
| 921 o.add("foo"); | 958 o.add("foo"); |
| 922 o.add("foo"); | 959 o.add("foo"); |
| 923 return o; | 960 return o; |
| 924 } | 961 } |
| 925 | 962 |
| 926 checkUnnamed277(core.List<core.String> o) { | 963 checkUnnamed1323(core.List<core.String> o) { |
| 927 unittest.expect(o, unittest.hasLength(2)); | 964 unittest.expect(o, unittest.hasLength(2)); |
| 928 unittest.expect(o[0], unittest.equals('foo')); | 965 unittest.expect(o[0], unittest.equals('foo')); |
| 929 unittest.expect(o[1], unittest.equals('foo')); | 966 unittest.expect(o[1], unittest.equals('foo')); |
| 930 } | 967 } |
| 931 | 968 |
| 932 buildUnnamed278() { | 969 buildUnnamed1324() { |
| 933 var o = new core.List<api.EventTagOverride>(); | 970 var o = new core.List<api.EventTagOverride>(); |
| 934 o.add(buildEventTagOverride()); | 971 o.add(buildEventTagOverride()); |
| 935 o.add(buildEventTagOverride()); | 972 o.add(buildEventTagOverride()); |
| 936 return o; | 973 return o; |
| 937 } | 974 } |
| 938 | 975 |
| 939 checkUnnamed278(core.List<api.EventTagOverride> o) { | 976 checkUnnamed1324(core.List<api.EventTagOverride> o) { |
| 940 unittest.expect(o, unittest.hasLength(2)); | 977 unittest.expect(o, unittest.hasLength(2)); |
| 941 checkEventTagOverride(o[0]); | 978 checkEventTagOverride(o[0]); |
| 942 checkEventTagOverride(o[1]); | 979 checkEventTagOverride(o[1]); |
| 943 } | 980 } |
| 944 | 981 |
| 945 buildUnnamed279() { | 982 buildUnnamed1325() { |
| 946 var o = new core.List<core.String>(); | 983 var o = new core.List<core.String>(); |
| 947 o.add("foo"); | 984 o.add("foo"); |
| 948 o.add("foo"); | 985 o.add("foo"); |
| 949 return o; | 986 return o; |
| 950 } | 987 } |
| 951 | 988 |
| 952 checkUnnamed279(core.List<core.String> o) { | 989 checkUnnamed1325(core.List<core.String> o) { |
| 953 unittest.expect(o, unittest.hasLength(2)); | 990 unittest.expect(o, unittest.hasLength(2)); |
| 954 unittest.expect(o[0], unittest.equals('foo')); | 991 unittest.expect(o[0], unittest.equals('foo')); |
| 955 unittest.expect(o[1], unittest.equals('foo')); | 992 unittest.expect(o[1], unittest.equals('foo')); |
| 956 } | 993 } |
| 957 | 994 |
| 958 core.int buildCounterCampaign = 0; | 995 core.int buildCounterCampaign = 0; |
| 959 buildCampaign() { | 996 buildCampaign() { |
| 960 var o = new api.Campaign(); | 997 var o = new api.Campaign(); |
| 961 buildCounterCampaign++; | 998 buildCounterCampaign++; |
| 962 if (buildCounterCampaign < 3) { | 999 if (buildCounterCampaign < 3) { |
| 963 o.accountId = "foo"; | 1000 o.accountId = "foo"; |
| 964 o.additionalCreativeOptimizationConfigurations = buildUnnamed275(); | 1001 o.additionalCreativeOptimizationConfigurations = buildUnnamed1321(); |
| 965 o.advertiserGroupId = "foo"; | 1002 o.advertiserGroupId = "foo"; |
| 966 o.advertiserId = "foo"; | 1003 o.advertiserId = "foo"; |
| 967 o.advertiserIdDimensionValue = buildDimensionValue(); | 1004 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 968 o.archived = true; | 1005 o.archived = true; |
| 969 o.audienceSegmentGroups = buildUnnamed276(); | 1006 o.audienceSegmentGroups = buildUnnamed1322(); |
| 970 o.billingInvoiceCode = "foo"; | 1007 o.billingInvoiceCode = "foo"; |
| 971 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); | 1008 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); |
| 972 o.comment = "foo"; | 1009 o.comment = "foo"; |
| 973 o.comscoreVceEnabled = true; | 1010 o.comscoreVceEnabled = true; |
| 974 o.createInfo = buildLastModifiedInfo(); | 1011 o.createInfo = buildLastModifiedInfo(); |
| 975 o.creativeGroupIds = buildUnnamed277(); | 1012 o.creativeGroupIds = buildUnnamed1323(); |
| 976 o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration
(); | 1013 o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration
(); |
| 977 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr
operties(); | 1014 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr
operties(); |
| 978 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 1015 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 979 o.eventTagOverrides = buildUnnamed278(); | 1016 o.eventTagOverrides = buildUnnamed1324(); |
| 980 o.externalId = "foo"; | 1017 o.externalId = "foo"; |
| 981 o.id = "foo"; | 1018 o.id = "foo"; |
| 982 o.idDimensionValue = buildDimensionValue(); | 1019 o.idDimensionValue = buildDimensionValue(); |
| 983 o.kind = "foo"; | 1020 o.kind = "foo"; |
| 984 o.lastModifiedInfo = buildLastModifiedInfo(); | 1021 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 985 o.lookbackConfiguration = buildLookbackConfiguration(); | 1022 o.lookbackConfiguration = buildLookbackConfiguration(); |
| 986 o.name = "foo"; | 1023 o.name = "foo"; |
| 987 o.nielsenOcrEnabled = true; | 1024 o.nielsenOcrEnabled = true; |
| 988 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 1025 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 989 o.subaccountId = "foo"; | 1026 o.subaccountId = "foo"; |
| 990 o.traffickerEmails = buildUnnamed279(); | 1027 o.traffickerEmails = buildUnnamed1325(); |
| 991 } | 1028 } |
| 992 buildCounterCampaign--; | 1029 buildCounterCampaign--; |
| 993 return o; | 1030 return o; |
| 994 } | 1031 } |
| 995 | 1032 |
| 996 checkCampaign(api.Campaign o) { | 1033 checkCampaign(api.Campaign o) { |
| 997 buildCounterCampaign++; | 1034 buildCounterCampaign++; |
| 998 if (buildCounterCampaign < 3) { | 1035 if (buildCounterCampaign < 3) { |
| 999 unittest.expect(o.accountId, unittest.equals('foo')); | 1036 unittest.expect(o.accountId, unittest.equals('foo')); |
| 1000 checkUnnamed275(o.additionalCreativeOptimizationConfigurations); | 1037 checkUnnamed1321(o.additionalCreativeOptimizationConfigurations); |
| 1001 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); | 1038 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); |
| 1002 unittest.expect(o.advertiserId, unittest.equals('foo')); | 1039 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 1003 checkDimensionValue(o.advertiserIdDimensionValue); | 1040 checkDimensionValue(o.advertiserIdDimensionValue); |
| 1004 unittest.expect(o.archived, unittest.isTrue); | 1041 unittest.expect(o.archived, unittest.isTrue); |
| 1005 checkUnnamed276(o.audienceSegmentGroups); | 1042 checkUnnamed1322(o.audienceSegmentGroups); |
| 1006 unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); | 1043 unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); |
| 1007 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); | 1044 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); |
| 1008 unittest.expect(o.comment, unittest.equals('foo')); | 1045 unittest.expect(o.comment, unittest.equals('foo')); |
| 1009 unittest.expect(o.comscoreVceEnabled, unittest.isTrue); | 1046 unittest.expect(o.comscoreVceEnabled, unittest.isTrue); |
| 1010 checkLastModifiedInfo(o.createInfo); | 1047 checkLastModifiedInfo(o.createInfo); |
| 1011 checkUnnamed277(o.creativeGroupIds); | 1048 checkUnnamed1323(o.creativeGroupIds); |
| 1012 checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); | 1049 checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); |
| 1013 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp
erties); | 1050 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp
erties); |
| 1014 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 1051 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 1015 checkUnnamed278(o.eventTagOverrides); | 1052 checkUnnamed1324(o.eventTagOverrides); |
| 1016 unittest.expect(o.externalId, unittest.equals('foo')); | 1053 unittest.expect(o.externalId, unittest.equals('foo')); |
| 1017 unittest.expect(o.id, unittest.equals('foo')); | 1054 unittest.expect(o.id, unittest.equals('foo')); |
| 1018 checkDimensionValue(o.idDimensionValue); | 1055 checkDimensionValue(o.idDimensionValue); |
| 1019 unittest.expect(o.kind, unittest.equals('foo')); | 1056 unittest.expect(o.kind, unittest.equals('foo')); |
| 1020 checkLastModifiedInfo(o.lastModifiedInfo); | 1057 checkLastModifiedInfo(o.lastModifiedInfo); |
| 1021 checkLookbackConfiguration(o.lookbackConfiguration); | 1058 checkLookbackConfiguration(o.lookbackConfiguration); |
| 1022 unittest.expect(o.name, unittest.equals('foo')); | 1059 unittest.expect(o.name, unittest.equals('foo')); |
| 1023 unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); | 1060 unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); |
| 1024 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 1061 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 1025 unittest.expect(o.subaccountId, unittest.equals('foo')); | 1062 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 1026 checkUnnamed279(o.traffickerEmails); | 1063 checkUnnamed1325(o.traffickerEmails); |
| 1027 } | 1064 } |
| 1028 buildCounterCampaign--; | 1065 buildCounterCampaign--; |
| 1029 } | 1066 } |
| 1030 | 1067 |
| 1031 core.int buildCounterCampaignCreativeAssociation = 0; | 1068 core.int buildCounterCampaignCreativeAssociation = 0; |
| 1032 buildCampaignCreativeAssociation() { | 1069 buildCampaignCreativeAssociation() { |
| 1033 var o = new api.CampaignCreativeAssociation(); | 1070 var o = new api.CampaignCreativeAssociation(); |
| 1034 buildCounterCampaignCreativeAssociation++; | 1071 buildCounterCampaignCreativeAssociation++; |
| 1035 if (buildCounterCampaignCreativeAssociation < 3) { | 1072 if (buildCounterCampaignCreativeAssociation < 3) { |
| 1036 o.creativeId = "foo"; | 1073 o.creativeId = "foo"; |
| 1037 o.kind = "foo"; | 1074 o.kind = "foo"; |
| 1038 } | 1075 } |
| 1039 buildCounterCampaignCreativeAssociation--; | 1076 buildCounterCampaignCreativeAssociation--; |
| 1040 return o; | 1077 return o; |
| 1041 } | 1078 } |
| 1042 | 1079 |
| 1043 checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) { | 1080 checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) { |
| 1044 buildCounterCampaignCreativeAssociation++; | 1081 buildCounterCampaignCreativeAssociation++; |
| 1045 if (buildCounterCampaignCreativeAssociation < 3) { | 1082 if (buildCounterCampaignCreativeAssociation < 3) { |
| 1046 unittest.expect(o.creativeId, unittest.equals('foo')); | 1083 unittest.expect(o.creativeId, unittest.equals('foo')); |
| 1047 unittest.expect(o.kind, unittest.equals('foo')); | 1084 unittest.expect(o.kind, unittest.equals('foo')); |
| 1048 } | 1085 } |
| 1049 buildCounterCampaignCreativeAssociation--; | 1086 buildCounterCampaignCreativeAssociation--; |
| 1050 } | 1087 } |
| 1051 | 1088 |
| 1052 buildUnnamed280() { | 1089 buildUnnamed1326() { |
| 1053 var o = new core.List<api.CampaignCreativeAssociation>(); | 1090 var o = new core.List<api.CampaignCreativeAssociation>(); |
| 1054 o.add(buildCampaignCreativeAssociation()); | 1091 o.add(buildCampaignCreativeAssociation()); |
| 1055 o.add(buildCampaignCreativeAssociation()); | 1092 o.add(buildCampaignCreativeAssociation()); |
| 1056 return o; | 1093 return o; |
| 1057 } | 1094 } |
| 1058 | 1095 |
| 1059 checkUnnamed280(core.List<api.CampaignCreativeAssociation> o) { | 1096 checkUnnamed1326(core.List<api.CampaignCreativeAssociation> o) { |
| 1060 unittest.expect(o, unittest.hasLength(2)); | 1097 unittest.expect(o, unittest.hasLength(2)); |
| 1061 checkCampaignCreativeAssociation(o[0]); | 1098 checkCampaignCreativeAssociation(o[0]); |
| 1062 checkCampaignCreativeAssociation(o[1]); | 1099 checkCampaignCreativeAssociation(o[1]); |
| 1063 } | 1100 } |
| 1064 | 1101 |
| 1065 core.int buildCounterCampaignCreativeAssociationsListResponse = 0; | 1102 core.int buildCounterCampaignCreativeAssociationsListResponse = 0; |
| 1066 buildCampaignCreativeAssociationsListResponse() { | 1103 buildCampaignCreativeAssociationsListResponse() { |
| 1067 var o = new api.CampaignCreativeAssociationsListResponse(); | 1104 var o = new api.CampaignCreativeAssociationsListResponse(); |
| 1068 buildCounterCampaignCreativeAssociationsListResponse++; | 1105 buildCounterCampaignCreativeAssociationsListResponse++; |
| 1069 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { | 1106 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { |
| 1070 o.campaignCreativeAssociations = buildUnnamed280(); | 1107 o.campaignCreativeAssociations = buildUnnamed1326(); |
| 1071 o.kind = "foo"; | 1108 o.kind = "foo"; |
| 1072 o.nextPageToken = "foo"; | 1109 o.nextPageToken = "foo"; |
| 1073 } | 1110 } |
| 1074 buildCounterCampaignCreativeAssociationsListResponse--; | 1111 buildCounterCampaignCreativeAssociationsListResponse--; |
| 1075 return o; | 1112 return o; |
| 1076 } | 1113 } |
| 1077 | 1114 |
| 1078 checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsLi
stResponse o) { | 1115 checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsLi
stResponse o) { |
| 1079 buildCounterCampaignCreativeAssociationsListResponse++; | 1116 buildCounterCampaignCreativeAssociationsListResponse++; |
| 1080 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { | 1117 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { |
| 1081 checkUnnamed280(o.campaignCreativeAssociations); | 1118 checkUnnamed1326(o.campaignCreativeAssociations); |
| 1082 unittest.expect(o.kind, unittest.equals('foo')); | 1119 unittest.expect(o.kind, unittest.equals('foo')); |
| 1083 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1120 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1084 } | 1121 } |
| 1085 buildCounterCampaignCreativeAssociationsListResponse--; | 1122 buildCounterCampaignCreativeAssociationsListResponse--; |
| 1086 } | 1123 } |
| 1087 | 1124 |
| 1088 buildUnnamed281() { | 1125 buildUnnamed1327() { |
| 1089 var o = new core.List<api.Campaign>(); | 1126 var o = new core.List<api.Campaign>(); |
| 1090 o.add(buildCampaign()); | 1127 o.add(buildCampaign()); |
| 1091 o.add(buildCampaign()); | 1128 o.add(buildCampaign()); |
| 1092 return o; | 1129 return o; |
| 1093 } | 1130 } |
| 1094 | 1131 |
| 1095 checkUnnamed281(core.List<api.Campaign> o) { | 1132 checkUnnamed1327(core.List<api.Campaign> o) { |
| 1096 unittest.expect(o, unittest.hasLength(2)); | 1133 unittest.expect(o, unittest.hasLength(2)); |
| 1097 checkCampaign(o[0]); | 1134 checkCampaign(o[0]); |
| 1098 checkCampaign(o[1]); | 1135 checkCampaign(o[1]); |
| 1099 } | 1136 } |
| 1100 | 1137 |
| 1101 core.int buildCounterCampaignsListResponse = 0; | 1138 core.int buildCounterCampaignsListResponse = 0; |
| 1102 buildCampaignsListResponse() { | 1139 buildCampaignsListResponse() { |
| 1103 var o = new api.CampaignsListResponse(); | 1140 var o = new api.CampaignsListResponse(); |
| 1104 buildCounterCampaignsListResponse++; | 1141 buildCounterCampaignsListResponse++; |
| 1105 if (buildCounterCampaignsListResponse < 3) { | 1142 if (buildCounterCampaignsListResponse < 3) { |
| 1106 o.campaigns = buildUnnamed281(); | 1143 o.campaigns = buildUnnamed1327(); |
| 1107 o.kind = "foo"; | 1144 o.kind = "foo"; |
| 1108 o.nextPageToken = "foo"; | 1145 o.nextPageToken = "foo"; |
| 1109 } | 1146 } |
| 1110 buildCounterCampaignsListResponse--; | 1147 buildCounterCampaignsListResponse--; |
| 1111 return o; | 1148 return o; |
| 1112 } | 1149 } |
| 1113 | 1150 |
| 1114 checkCampaignsListResponse(api.CampaignsListResponse o) { | 1151 checkCampaignsListResponse(api.CampaignsListResponse o) { |
| 1115 buildCounterCampaignsListResponse++; | 1152 buildCounterCampaignsListResponse++; |
| 1116 if (buildCounterCampaignsListResponse < 3) { | 1153 if (buildCounterCampaignsListResponse < 3) { |
| 1117 checkUnnamed281(o.campaigns); | 1154 checkUnnamed1327(o.campaigns); |
| 1118 unittest.expect(o.kind, unittest.equals('foo')); | 1155 unittest.expect(o.kind, unittest.equals('foo')); |
| 1119 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1156 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1120 } | 1157 } |
| 1121 buildCounterCampaignsListResponse--; | 1158 buildCounterCampaignsListResponse--; |
| 1122 } | 1159 } |
| 1123 | 1160 |
| 1124 core.int buildCounterChangeLog = 0; | 1161 core.int buildCounterChangeLog = 0; |
| 1125 buildChangeLog() { | 1162 buildChangeLog() { |
| 1126 var o = new api.ChangeLog(); | 1163 var o = new api.ChangeLog(); |
| 1127 buildCounterChangeLog++; | 1164 buildCounterChangeLog++; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 unittest.expect(o.objectType, unittest.equals('foo')); | 1196 unittest.expect(o.objectType, unittest.equals('foo')); |
| 1160 unittest.expect(o.oldValue, unittest.equals('foo')); | 1197 unittest.expect(o.oldValue, unittest.equals('foo')); |
| 1161 unittest.expect(o.subaccountId, unittest.equals('foo')); | 1198 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 1162 unittest.expect(o.transactionId, unittest.equals('foo')); | 1199 unittest.expect(o.transactionId, unittest.equals('foo')); |
| 1163 unittest.expect(o.userProfileId, unittest.equals('foo')); | 1200 unittest.expect(o.userProfileId, unittest.equals('foo')); |
| 1164 unittest.expect(o.userProfileName, unittest.equals('foo')); | 1201 unittest.expect(o.userProfileName, unittest.equals('foo')); |
| 1165 } | 1202 } |
| 1166 buildCounterChangeLog--; | 1203 buildCounterChangeLog--; |
| 1167 } | 1204 } |
| 1168 | 1205 |
| 1169 buildUnnamed282() { | 1206 buildUnnamed1328() { |
| 1170 var o = new core.List<api.ChangeLog>(); | 1207 var o = new core.List<api.ChangeLog>(); |
| 1171 o.add(buildChangeLog()); | 1208 o.add(buildChangeLog()); |
| 1172 o.add(buildChangeLog()); | 1209 o.add(buildChangeLog()); |
| 1173 return o; | 1210 return o; |
| 1174 } | 1211 } |
| 1175 | 1212 |
| 1176 checkUnnamed282(core.List<api.ChangeLog> o) { | 1213 checkUnnamed1328(core.List<api.ChangeLog> o) { |
| 1177 unittest.expect(o, unittest.hasLength(2)); | 1214 unittest.expect(o, unittest.hasLength(2)); |
| 1178 checkChangeLog(o[0]); | 1215 checkChangeLog(o[0]); |
| 1179 checkChangeLog(o[1]); | 1216 checkChangeLog(o[1]); |
| 1180 } | 1217 } |
| 1181 | 1218 |
| 1182 core.int buildCounterChangeLogsListResponse = 0; | 1219 core.int buildCounterChangeLogsListResponse = 0; |
| 1183 buildChangeLogsListResponse() { | 1220 buildChangeLogsListResponse() { |
| 1184 var o = new api.ChangeLogsListResponse(); | 1221 var o = new api.ChangeLogsListResponse(); |
| 1185 buildCounterChangeLogsListResponse++; | 1222 buildCounterChangeLogsListResponse++; |
| 1186 if (buildCounterChangeLogsListResponse < 3) { | 1223 if (buildCounterChangeLogsListResponse < 3) { |
| 1187 o.changeLogs = buildUnnamed282(); | 1224 o.changeLogs = buildUnnamed1328(); |
| 1188 o.kind = "foo"; | 1225 o.kind = "foo"; |
| 1189 o.nextPageToken = "foo"; | 1226 o.nextPageToken = "foo"; |
| 1190 } | 1227 } |
| 1191 buildCounterChangeLogsListResponse--; | 1228 buildCounterChangeLogsListResponse--; |
| 1192 return o; | 1229 return o; |
| 1193 } | 1230 } |
| 1194 | 1231 |
| 1195 checkChangeLogsListResponse(api.ChangeLogsListResponse o) { | 1232 checkChangeLogsListResponse(api.ChangeLogsListResponse o) { |
| 1196 buildCounterChangeLogsListResponse++; | 1233 buildCounterChangeLogsListResponse++; |
| 1197 if (buildCounterChangeLogsListResponse < 3) { | 1234 if (buildCounterChangeLogsListResponse < 3) { |
| 1198 checkUnnamed282(o.changeLogs); | 1235 checkUnnamed1328(o.changeLogs); |
| 1199 unittest.expect(o.kind, unittest.equals('foo')); | 1236 unittest.expect(o.kind, unittest.equals('foo')); |
| 1200 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1237 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1201 } | 1238 } |
| 1202 buildCounterChangeLogsListResponse--; | 1239 buildCounterChangeLogsListResponse--; |
| 1203 } | 1240 } |
| 1204 | 1241 |
| 1205 buildUnnamed283() { | 1242 buildUnnamed1329() { |
| 1206 var o = new core.List<api.City>(); | 1243 var o = new core.List<api.City>(); |
| 1207 o.add(buildCity()); | 1244 o.add(buildCity()); |
| 1208 o.add(buildCity()); | 1245 o.add(buildCity()); |
| 1209 return o; | 1246 return o; |
| 1210 } | 1247 } |
| 1211 | 1248 |
| 1212 checkUnnamed283(core.List<api.City> o) { | 1249 checkUnnamed1329(core.List<api.City> o) { |
| 1213 unittest.expect(o, unittest.hasLength(2)); | 1250 unittest.expect(o, unittest.hasLength(2)); |
| 1214 checkCity(o[0]); | 1251 checkCity(o[0]); |
| 1215 checkCity(o[1]); | 1252 checkCity(o[1]); |
| 1216 } | 1253 } |
| 1217 | 1254 |
| 1218 core.int buildCounterCitiesListResponse = 0; | 1255 core.int buildCounterCitiesListResponse = 0; |
| 1219 buildCitiesListResponse() { | 1256 buildCitiesListResponse() { |
| 1220 var o = new api.CitiesListResponse(); | 1257 var o = new api.CitiesListResponse(); |
| 1221 buildCounterCitiesListResponse++; | 1258 buildCounterCitiesListResponse++; |
| 1222 if (buildCounterCitiesListResponse < 3) { | 1259 if (buildCounterCitiesListResponse < 3) { |
| 1223 o.cities = buildUnnamed283(); | 1260 o.cities = buildUnnamed1329(); |
| 1224 o.kind = "foo"; | 1261 o.kind = "foo"; |
| 1225 } | 1262 } |
| 1226 buildCounterCitiesListResponse--; | 1263 buildCounterCitiesListResponse--; |
| 1227 return o; | 1264 return o; |
| 1228 } | 1265 } |
| 1229 | 1266 |
| 1230 checkCitiesListResponse(api.CitiesListResponse o) { | 1267 checkCitiesListResponse(api.CitiesListResponse o) { |
| 1231 buildCounterCitiesListResponse++; | 1268 buildCounterCitiesListResponse++; |
| 1232 if (buildCounterCitiesListResponse < 3) { | 1269 if (buildCounterCitiesListResponse < 3) { |
| 1233 checkUnnamed283(o.cities); | 1270 checkUnnamed1329(o.cities); |
| 1234 unittest.expect(o.kind, unittest.equals('foo')); | 1271 unittest.expect(o.kind, unittest.equals('foo')); |
| 1235 } | 1272 } |
| 1236 buildCounterCitiesListResponse--; | 1273 buildCounterCitiesListResponse--; |
| 1237 } | 1274 } |
| 1238 | 1275 |
| 1239 core.int buildCounterCity = 0; | 1276 core.int buildCounterCity = 0; |
| 1240 buildCity() { | 1277 buildCity() { |
| 1241 var o = new api.City(); | 1278 var o = new api.City(); |
| 1242 buildCounterCity++; | 1279 buildCounterCity++; |
| 1243 if (buildCounterCity < 3) { | 1280 if (buildCounterCity < 3) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 unittest.expect(o.value, unittest.equals('foo')); | 1329 unittest.expect(o.value, unittest.equals('foo')); |
| 1293 } | 1330 } |
| 1294 buildCounterClickTag--; | 1331 buildCounterClickTag--; |
| 1295 } | 1332 } |
| 1296 | 1333 |
| 1297 core.int buildCounterClickThroughUrl = 0; | 1334 core.int buildCounterClickThroughUrl = 0; |
| 1298 buildClickThroughUrl() { | 1335 buildClickThroughUrl() { |
| 1299 var o = new api.ClickThroughUrl(); | 1336 var o = new api.ClickThroughUrl(); |
| 1300 buildCounterClickThroughUrl++; | 1337 buildCounterClickThroughUrl++; |
| 1301 if (buildCounterClickThroughUrl < 3) { | 1338 if (buildCounterClickThroughUrl < 3) { |
| 1339 o.computedClickThroughUrl = "foo"; |
| 1302 o.customClickThroughUrl = "foo"; | 1340 o.customClickThroughUrl = "foo"; |
| 1303 o.defaultLandingPage = true; | 1341 o.defaultLandingPage = true; |
| 1304 o.landingPageId = "foo"; | 1342 o.landingPageId = "foo"; |
| 1305 } | 1343 } |
| 1306 buildCounterClickThroughUrl--; | 1344 buildCounterClickThroughUrl--; |
| 1307 return o; | 1345 return o; |
| 1308 } | 1346 } |
| 1309 | 1347 |
| 1310 checkClickThroughUrl(api.ClickThroughUrl o) { | 1348 checkClickThroughUrl(api.ClickThroughUrl o) { |
| 1311 buildCounterClickThroughUrl++; | 1349 buildCounterClickThroughUrl++; |
| 1312 if (buildCounterClickThroughUrl < 3) { | 1350 if (buildCounterClickThroughUrl < 3) { |
| 1351 unittest.expect(o.computedClickThroughUrl, unittest.equals('foo')); |
| 1313 unittest.expect(o.customClickThroughUrl, unittest.equals('foo')); | 1352 unittest.expect(o.customClickThroughUrl, unittest.equals('foo')); |
| 1314 unittest.expect(o.defaultLandingPage, unittest.isTrue); | 1353 unittest.expect(o.defaultLandingPage, unittest.isTrue); |
| 1315 unittest.expect(o.landingPageId, unittest.equals('foo')); | 1354 unittest.expect(o.landingPageId, unittest.equals('foo')); |
| 1316 } | 1355 } |
| 1317 buildCounterClickThroughUrl--; | 1356 buildCounterClickThroughUrl--; |
| 1318 } | 1357 } |
| 1319 | 1358 |
| 1320 core.int buildCounterClickThroughUrlSuffixProperties = 0; | 1359 core.int buildCounterClickThroughUrlSuffixProperties = 0; |
| 1321 buildClickThroughUrlSuffixProperties() { | 1360 buildClickThroughUrlSuffixProperties() { |
| 1322 var o = new api.ClickThroughUrlSuffixProperties(); | 1361 var o = new api.ClickThroughUrlSuffixProperties(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1404 checkConnectionType(api.ConnectionType o) { | 1443 checkConnectionType(api.ConnectionType o) { |
| 1405 buildCounterConnectionType++; | 1444 buildCounterConnectionType++; |
| 1406 if (buildCounterConnectionType < 3) { | 1445 if (buildCounterConnectionType < 3) { |
| 1407 unittest.expect(o.id, unittest.equals('foo')); | 1446 unittest.expect(o.id, unittest.equals('foo')); |
| 1408 unittest.expect(o.kind, unittest.equals('foo')); | 1447 unittest.expect(o.kind, unittest.equals('foo')); |
| 1409 unittest.expect(o.name, unittest.equals('foo')); | 1448 unittest.expect(o.name, unittest.equals('foo')); |
| 1410 } | 1449 } |
| 1411 buildCounterConnectionType--; | 1450 buildCounterConnectionType--; |
| 1412 } | 1451 } |
| 1413 | 1452 |
| 1414 buildUnnamed284() { | 1453 buildUnnamed1330() { |
| 1415 var o = new core.List<api.ConnectionType>(); | 1454 var o = new core.List<api.ConnectionType>(); |
| 1416 o.add(buildConnectionType()); | 1455 o.add(buildConnectionType()); |
| 1417 o.add(buildConnectionType()); | 1456 o.add(buildConnectionType()); |
| 1418 return o; | 1457 return o; |
| 1419 } | 1458 } |
| 1420 | 1459 |
| 1421 checkUnnamed284(core.List<api.ConnectionType> o) { | 1460 checkUnnamed1330(core.List<api.ConnectionType> o) { |
| 1422 unittest.expect(o, unittest.hasLength(2)); | 1461 unittest.expect(o, unittest.hasLength(2)); |
| 1423 checkConnectionType(o[0]); | 1462 checkConnectionType(o[0]); |
| 1424 checkConnectionType(o[1]); | 1463 checkConnectionType(o[1]); |
| 1425 } | 1464 } |
| 1426 | 1465 |
| 1427 core.int buildCounterConnectionTypesListResponse = 0; | 1466 core.int buildCounterConnectionTypesListResponse = 0; |
| 1428 buildConnectionTypesListResponse() { | 1467 buildConnectionTypesListResponse() { |
| 1429 var o = new api.ConnectionTypesListResponse(); | 1468 var o = new api.ConnectionTypesListResponse(); |
| 1430 buildCounterConnectionTypesListResponse++; | 1469 buildCounterConnectionTypesListResponse++; |
| 1431 if (buildCounterConnectionTypesListResponse < 3) { | 1470 if (buildCounterConnectionTypesListResponse < 3) { |
| 1432 o.connectionTypes = buildUnnamed284(); | 1471 o.connectionTypes = buildUnnamed1330(); |
| 1433 o.kind = "foo"; | 1472 o.kind = "foo"; |
| 1434 } | 1473 } |
| 1435 buildCounterConnectionTypesListResponse--; | 1474 buildCounterConnectionTypesListResponse--; |
| 1436 return o; | 1475 return o; |
| 1437 } | 1476 } |
| 1438 | 1477 |
| 1439 checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { | 1478 checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { |
| 1440 buildCounterConnectionTypesListResponse++; | 1479 buildCounterConnectionTypesListResponse++; |
| 1441 if (buildCounterConnectionTypesListResponse < 3) { | 1480 if (buildCounterConnectionTypesListResponse < 3) { |
| 1442 checkUnnamed284(o.connectionTypes); | 1481 checkUnnamed1330(o.connectionTypes); |
| 1443 unittest.expect(o.kind, unittest.equals('foo')); | 1482 unittest.expect(o.kind, unittest.equals('foo')); |
| 1444 } | 1483 } |
| 1445 buildCounterConnectionTypesListResponse--; | 1484 buildCounterConnectionTypesListResponse--; |
| 1446 } | 1485 } |
| 1447 | 1486 |
| 1448 buildUnnamed285() { | 1487 buildUnnamed1331() { |
| 1449 var o = new core.List<api.ContentCategory>(); | 1488 var o = new core.List<api.ContentCategory>(); |
| 1450 o.add(buildContentCategory()); | 1489 o.add(buildContentCategory()); |
| 1451 o.add(buildContentCategory()); | 1490 o.add(buildContentCategory()); |
| 1452 return o; | 1491 return o; |
| 1453 } | 1492 } |
| 1454 | 1493 |
| 1455 checkUnnamed285(core.List<api.ContentCategory> o) { | 1494 checkUnnamed1331(core.List<api.ContentCategory> o) { |
| 1456 unittest.expect(o, unittest.hasLength(2)); | 1495 unittest.expect(o, unittest.hasLength(2)); |
| 1457 checkContentCategory(o[0]); | 1496 checkContentCategory(o[0]); |
| 1458 checkContentCategory(o[1]); | 1497 checkContentCategory(o[1]); |
| 1459 } | 1498 } |
| 1460 | 1499 |
| 1461 core.int buildCounterContentCategoriesListResponse = 0; | 1500 core.int buildCounterContentCategoriesListResponse = 0; |
| 1462 buildContentCategoriesListResponse() { | 1501 buildContentCategoriesListResponse() { |
| 1463 var o = new api.ContentCategoriesListResponse(); | 1502 var o = new api.ContentCategoriesListResponse(); |
| 1464 buildCounterContentCategoriesListResponse++; | 1503 buildCounterContentCategoriesListResponse++; |
| 1465 if (buildCounterContentCategoriesListResponse < 3) { | 1504 if (buildCounterContentCategoriesListResponse < 3) { |
| 1466 o.contentCategories = buildUnnamed285(); | 1505 o.contentCategories = buildUnnamed1331(); |
| 1467 o.kind = "foo"; | 1506 o.kind = "foo"; |
| 1468 o.nextPageToken = "foo"; | 1507 o.nextPageToken = "foo"; |
| 1469 } | 1508 } |
| 1470 buildCounterContentCategoriesListResponse--; | 1509 buildCounterContentCategoriesListResponse--; |
| 1471 return o; | 1510 return o; |
| 1472 } | 1511 } |
| 1473 | 1512 |
| 1474 checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { | 1513 checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { |
| 1475 buildCounterContentCategoriesListResponse++; | 1514 buildCounterContentCategoriesListResponse++; |
| 1476 if (buildCounterContentCategoriesListResponse < 3) { | 1515 if (buildCounterContentCategoriesListResponse < 3) { |
| 1477 checkUnnamed285(o.contentCategories); | 1516 checkUnnamed1331(o.contentCategories); |
| 1478 unittest.expect(o.kind, unittest.equals('foo')); | 1517 unittest.expect(o.kind, unittest.equals('foo')); |
| 1479 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1518 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1480 } | 1519 } |
| 1481 buildCounterContentCategoriesListResponse--; | 1520 buildCounterContentCategoriesListResponse--; |
| 1482 } | 1521 } |
| 1483 | 1522 |
| 1484 core.int buildCounterContentCategory = 0; | 1523 core.int buildCounterContentCategory = 0; |
| 1485 buildContentCategory() { | 1524 buildContentCategory() { |
| 1486 var o = new api.ContentCategory(); | 1525 var o = new api.ContentCategory(); |
| 1487 buildCounterContentCategory++; | 1526 buildCounterContentCategory++; |
| 1488 if (buildCounterContentCategory < 3) { | 1527 if (buildCounterContentCategory < 3) { |
| 1489 o.accountId = "foo"; | 1528 o.accountId = "foo"; |
| 1490 o.description = "foo"; | |
| 1491 o.id = "foo"; | 1529 o.id = "foo"; |
| 1492 o.kind = "foo"; | 1530 o.kind = "foo"; |
| 1493 o.name = "foo"; | 1531 o.name = "foo"; |
| 1494 } | 1532 } |
| 1495 buildCounterContentCategory--; | 1533 buildCounterContentCategory--; |
| 1496 return o; | 1534 return o; |
| 1497 } | 1535 } |
| 1498 | 1536 |
| 1499 checkContentCategory(api.ContentCategory o) { | 1537 checkContentCategory(api.ContentCategory o) { |
| 1500 buildCounterContentCategory++; | 1538 buildCounterContentCategory++; |
| 1501 if (buildCounterContentCategory < 3) { | 1539 if (buildCounterContentCategory < 3) { |
| 1502 unittest.expect(o.accountId, unittest.equals('foo')); | 1540 unittest.expect(o.accountId, unittest.equals('foo')); |
| 1503 unittest.expect(o.description, unittest.equals('foo')); | |
| 1504 unittest.expect(o.id, unittest.equals('foo')); | 1541 unittest.expect(o.id, unittest.equals('foo')); |
| 1505 unittest.expect(o.kind, unittest.equals('foo')); | 1542 unittest.expect(o.kind, unittest.equals('foo')); |
| 1506 unittest.expect(o.name, unittest.equals('foo')); | 1543 unittest.expect(o.name, unittest.equals('foo')); |
| 1507 } | 1544 } |
| 1508 buildCounterContentCategory--; | 1545 buildCounterContentCategory--; |
| 1509 } | 1546 } |
| 1510 | 1547 |
| 1511 buildUnnamed286() { | 1548 buildUnnamed1332() { |
| 1512 var o = new core.List<api.Country>(); | 1549 var o = new core.List<api.Country>(); |
| 1513 o.add(buildCountry()); | 1550 o.add(buildCountry()); |
| 1514 o.add(buildCountry()); | 1551 o.add(buildCountry()); |
| 1515 return o; | 1552 return o; |
| 1516 } | 1553 } |
| 1517 | 1554 |
| 1518 checkUnnamed286(core.List<api.Country> o) { | 1555 checkUnnamed1332(core.List<api.Country> o) { |
| 1519 unittest.expect(o, unittest.hasLength(2)); | 1556 unittest.expect(o, unittest.hasLength(2)); |
| 1520 checkCountry(o[0]); | 1557 checkCountry(o[0]); |
| 1521 checkCountry(o[1]); | 1558 checkCountry(o[1]); |
| 1522 } | 1559 } |
| 1523 | 1560 |
| 1524 core.int buildCounterCountriesListResponse = 0; | 1561 core.int buildCounterCountriesListResponse = 0; |
| 1525 buildCountriesListResponse() { | 1562 buildCountriesListResponse() { |
| 1526 var o = new api.CountriesListResponse(); | 1563 var o = new api.CountriesListResponse(); |
| 1527 buildCounterCountriesListResponse++; | 1564 buildCounterCountriesListResponse++; |
| 1528 if (buildCounterCountriesListResponse < 3) { | 1565 if (buildCounterCountriesListResponse < 3) { |
| 1529 o.countries = buildUnnamed286(); | 1566 o.countries = buildUnnamed1332(); |
| 1530 o.kind = "foo"; | 1567 o.kind = "foo"; |
| 1531 } | 1568 } |
| 1532 buildCounterCountriesListResponse--; | 1569 buildCounterCountriesListResponse--; |
| 1533 return o; | 1570 return o; |
| 1534 } | 1571 } |
| 1535 | 1572 |
| 1536 checkCountriesListResponse(api.CountriesListResponse o) { | 1573 checkCountriesListResponse(api.CountriesListResponse o) { |
| 1537 buildCounterCountriesListResponse++; | 1574 buildCounterCountriesListResponse++; |
| 1538 if (buildCounterCountriesListResponse < 3) { | 1575 if (buildCounterCountriesListResponse < 3) { |
| 1539 checkUnnamed286(o.countries); | 1576 checkUnnamed1332(o.countries); |
| 1540 unittest.expect(o.kind, unittest.equals('foo')); | 1577 unittest.expect(o.kind, unittest.equals('foo')); |
| 1541 } | 1578 } |
| 1542 buildCounterCountriesListResponse--; | 1579 buildCounterCountriesListResponse--; |
| 1543 } | 1580 } |
| 1544 | 1581 |
| 1545 core.int buildCounterCountry = 0; | 1582 core.int buildCounterCountry = 0; |
| 1546 buildCountry() { | 1583 buildCountry() { |
| 1547 var o = new api.Country(); | 1584 var o = new api.Country(); |
| 1548 buildCounterCountry++; | 1585 buildCounterCountry++; |
| 1549 if (buildCounterCountry < 3) { | 1586 if (buildCounterCountry < 3) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1562 if (buildCounterCountry < 3) { | 1599 if (buildCounterCountry < 3) { |
| 1563 unittest.expect(o.countryCode, unittest.equals('foo')); | 1600 unittest.expect(o.countryCode, unittest.equals('foo')); |
| 1564 unittest.expect(o.dartId, unittest.equals('foo')); | 1601 unittest.expect(o.dartId, unittest.equals('foo')); |
| 1565 unittest.expect(o.kind, unittest.equals('foo')); | 1602 unittest.expect(o.kind, unittest.equals('foo')); |
| 1566 unittest.expect(o.name, unittest.equals('foo')); | 1603 unittest.expect(o.name, unittest.equals('foo')); |
| 1567 unittest.expect(o.sslEnabled, unittest.isTrue); | 1604 unittest.expect(o.sslEnabled, unittest.isTrue); |
| 1568 } | 1605 } |
| 1569 buildCounterCountry--; | 1606 buildCounterCountry--; |
| 1570 } | 1607 } |
| 1571 | 1608 |
| 1572 buildUnnamed287() { | 1609 buildUnnamed1333() { |
| 1573 var o = new core.List<core.String>(); | 1610 var o = new core.List<core.String>(); |
| 1574 o.add("foo"); | 1611 o.add("foo"); |
| 1575 o.add("foo"); | 1612 o.add("foo"); |
| 1576 return o; | 1613 return o; |
| 1577 } | 1614 } |
| 1578 | 1615 |
| 1579 checkUnnamed287(core.List<core.String> o) { | 1616 checkUnnamed1333(core.List<core.String> o) { |
| 1580 unittest.expect(o, unittest.hasLength(2)); | 1617 unittest.expect(o, unittest.hasLength(2)); |
| 1581 unittest.expect(o[0], unittest.equals('foo')); | 1618 unittest.expect(o[0], unittest.equals('foo')); |
| 1582 unittest.expect(o[1], unittest.equals('foo')); | 1619 unittest.expect(o[1], unittest.equals('foo')); |
| 1583 } | 1620 } |
| 1584 | 1621 |
| 1585 buildUnnamed288() { | 1622 buildUnnamed1334() { |
| 1586 var o = new core.List<core.String>(); | 1623 var o = new core.List<core.String>(); |
| 1587 o.add("foo"); | 1624 o.add("foo"); |
| 1588 o.add("foo"); | 1625 o.add("foo"); |
| 1589 return o; | 1626 return o; |
| 1590 } | 1627 } |
| 1591 | 1628 |
| 1592 checkUnnamed288(core.List<core.String> o) { | 1629 checkUnnamed1334(core.List<core.String> o) { |
| 1593 unittest.expect(o, unittest.hasLength(2)); | 1630 unittest.expect(o, unittest.hasLength(2)); |
| 1594 unittest.expect(o[0], unittest.equals('foo')); | 1631 unittest.expect(o[0], unittest.equals('foo')); |
| 1595 unittest.expect(o[1], unittest.equals('foo')); | 1632 unittest.expect(o[1], unittest.equals('foo')); |
| 1596 } | 1633 } |
| 1597 | 1634 |
| 1598 buildUnnamed289() { | 1635 buildUnnamed1335() { |
| 1599 var o = new core.List<api.ClickTag>(); | 1636 var o = new core.List<api.ClickTag>(); |
| 1600 o.add(buildClickTag()); | 1637 o.add(buildClickTag()); |
| 1601 o.add(buildClickTag()); | 1638 o.add(buildClickTag()); |
| 1602 return o; | 1639 return o; |
| 1603 } | 1640 } |
| 1604 | 1641 |
| 1605 checkUnnamed289(core.List<api.ClickTag> o) { | 1642 checkUnnamed1335(core.List<api.ClickTag> o) { |
| 1606 unittest.expect(o, unittest.hasLength(2)); | 1643 unittest.expect(o, unittest.hasLength(2)); |
| 1607 checkClickTag(o[0]); | 1644 checkClickTag(o[0]); |
| 1608 checkClickTag(o[1]); | 1645 checkClickTag(o[1]); |
| 1609 } | 1646 } |
| 1610 | 1647 |
| 1611 buildUnnamed290() { | 1648 buildUnnamed1336() { |
| 1612 var o = new core.List<core.String>(); | 1649 var o = new core.List<core.String>(); |
| 1613 o.add("foo"); | 1650 o.add("foo"); |
| 1614 o.add("foo"); | 1651 o.add("foo"); |
| 1615 return o; | 1652 return o; |
| 1616 } | 1653 } |
| 1617 | 1654 |
| 1618 checkUnnamed290(core.List<core.String> o) { | 1655 checkUnnamed1336(core.List<core.String> o) { |
| 1619 unittest.expect(o, unittest.hasLength(2)); | 1656 unittest.expect(o, unittest.hasLength(2)); |
| 1620 unittest.expect(o[0], unittest.equals('foo')); | 1657 unittest.expect(o[0], unittest.equals('foo')); |
| 1621 unittest.expect(o[1], unittest.equals('foo')); | 1658 unittest.expect(o[1], unittest.equals('foo')); |
| 1622 } | 1659 } |
| 1623 | 1660 |
| 1624 buildUnnamed291() { | 1661 buildUnnamed1337() { |
| 1625 var o = new core.List<core.String>(); | 1662 var o = new core.List<core.String>(); |
| 1626 o.add("foo"); | 1663 o.add("foo"); |
| 1627 o.add("foo"); | 1664 o.add("foo"); |
| 1628 return o; | 1665 return o; |
| 1629 } | 1666 } |
| 1630 | 1667 |
| 1631 checkUnnamed291(core.List<core.String> o) { | 1668 checkUnnamed1337(core.List<core.String> o) { |
| 1632 unittest.expect(o, unittest.hasLength(2)); | 1669 unittest.expect(o, unittest.hasLength(2)); |
| 1633 unittest.expect(o[0], unittest.equals('foo')); | 1670 unittest.expect(o[0], unittest.equals('foo')); |
| 1634 unittest.expect(o[1], unittest.equals('foo')); | 1671 unittest.expect(o[1], unittest.equals('foo')); |
| 1635 } | 1672 } |
| 1636 | 1673 |
| 1637 buildUnnamed292() { | 1674 buildUnnamed1338() { |
| 1638 var o = new core.List<api.CreativeCustomEvent>(); | 1675 var o = new core.List<api.CreativeCustomEvent>(); |
| 1639 o.add(buildCreativeCustomEvent()); | 1676 o.add(buildCreativeCustomEvent()); |
| 1640 o.add(buildCreativeCustomEvent()); | 1677 o.add(buildCreativeCustomEvent()); |
| 1641 return o; | 1678 return o; |
| 1642 } | 1679 } |
| 1643 | 1680 |
| 1644 checkUnnamed292(core.List<api.CreativeCustomEvent> o) { | 1681 checkUnnamed1338(core.List<api.CreativeCustomEvent> o) { |
| 1645 unittest.expect(o, unittest.hasLength(2)); | 1682 unittest.expect(o, unittest.hasLength(2)); |
| 1646 checkCreativeCustomEvent(o[0]); | 1683 checkCreativeCustomEvent(o[0]); |
| 1647 checkCreativeCustomEvent(o[1]); | 1684 checkCreativeCustomEvent(o[1]); |
| 1648 } | 1685 } |
| 1649 | 1686 |
| 1650 buildUnnamed293() { | 1687 buildUnnamed1339() { |
| 1651 var o = new core.List<api.CreativeAsset>(); | 1688 var o = new core.List<api.CreativeAsset>(); |
| 1652 o.add(buildCreativeAsset()); | 1689 o.add(buildCreativeAsset()); |
| 1653 o.add(buildCreativeAsset()); | 1690 o.add(buildCreativeAsset()); |
| 1654 return o; | 1691 return o; |
| 1655 } | 1692 } |
| 1656 | 1693 |
| 1657 checkUnnamed293(core.List<api.CreativeAsset> o) { | 1694 checkUnnamed1339(core.List<api.CreativeAsset> o) { |
| 1658 unittest.expect(o, unittest.hasLength(2)); | 1695 unittest.expect(o, unittest.hasLength(2)); |
| 1659 checkCreativeAsset(o[0]); | 1696 checkCreativeAsset(o[0]); |
| 1660 checkCreativeAsset(o[1]); | 1697 checkCreativeAsset(o[1]); |
| 1661 } | 1698 } |
| 1662 | 1699 |
| 1663 buildUnnamed294() { | 1700 buildUnnamed1340() { |
| 1664 var o = new core.List<api.CreativeFieldAssignment>(); | 1701 var o = new core.List<api.CreativeFieldAssignment>(); |
| 1665 o.add(buildCreativeFieldAssignment()); | 1702 o.add(buildCreativeFieldAssignment()); |
| 1666 o.add(buildCreativeFieldAssignment()); | 1703 o.add(buildCreativeFieldAssignment()); |
| 1667 return o; | 1704 return o; |
| 1668 } | 1705 } |
| 1669 | 1706 |
| 1670 checkUnnamed294(core.List<api.CreativeFieldAssignment> o) { | 1707 checkUnnamed1340(core.List<api.CreativeFieldAssignment> o) { |
| 1671 unittest.expect(o, unittest.hasLength(2)); | 1708 unittest.expect(o, unittest.hasLength(2)); |
| 1672 checkCreativeFieldAssignment(o[0]); | 1709 checkCreativeFieldAssignment(o[0]); |
| 1673 checkCreativeFieldAssignment(o[1]); | 1710 checkCreativeFieldAssignment(o[1]); |
| 1674 } | 1711 } |
| 1675 | 1712 |
| 1676 buildUnnamed295() { | 1713 buildUnnamed1341() { |
| 1677 var o = new core.List<core.String>(); | 1714 var o = new core.List<core.String>(); |
| 1678 o.add("foo"); | 1715 o.add("foo"); |
| 1679 o.add("foo"); | 1716 o.add("foo"); |
| 1680 return o; | 1717 return o; |
| 1681 } | 1718 } |
| 1682 | 1719 |
| 1683 checkUnnamed295(core.List<core.String> o) { | 1720 checkUnnamed1341(core.List<core.String> o) { |
| 1684 unittest.expect(o, unittest.hasLength(2)); | 1721 unittest.expect(o, unittest.hasLength(2)); |
| 1685 unittest.expect(o[0], unittest.equals('foo')); | 1722 unittest.expect(o[0], unittest.equals('foo')); |
| 1686 unittest.expect(o[1], unittest.equals('foo')); | 1723 unittest.expect(o[1], unittest.equals('foo')); |
| 1687 } | 1724 } |
| 1688 | 1725 |
| 1689 buildUnnamed296() { | 1726 buildUnnamed1342() { |
| 1690 var o = new core.List<api.CreativeCustomEvent>(); | 1727 var o = new core.List<api.CreativeCustomEvent>(); |
| 1691 o.add(buildCreativeCustomEvent()); | 1728 o.add(buildCreativeCustomEvent()); |
| 1692 o.add(buildCreativeCustomEvent()); | 1729 o.add(buildCreativeCustomEvent()); |
| 1693 return o; | 1730 return o; |
| 1694 } | 1731 } |
| 1695 | 1732 |
| 1696 checkUnnamed296(core.List<api.CreativeCustomEvent> o) { | 1733 checkUnnamed1342(core.List<api.CreativeCustomEvent> o) { |
| 1697 unittest.expect(o, unittest.hasLength(2)); | 1734 unittest.expect(o, unittest.hasLength(2)); |
| 1698 checkCreativeCustomEvent(o[0]); | 1735 checkCreativeCustomEvent(o[0]); |
| 1699 checkCreativeCustomEvent(o[1]); | 1736 checkCreativeCustomEvent(o[1]); |
| 1700 } | 1737 } |
| 1701 | 1738 |
| 1702 buildUnnamed297() { | 1739 buildUnnamed1343() { |
| 1703 var o = new core.List<api.ThirdPartyTrackingUrl>(); | 1740 var o = new core.List<api.ThirdPartyTrackingUrl>(); |
| 1704 o.add(buildThirdPartyTrackingUrl()); | 1741 o.add(buildThirdPartyTrackingUrl()); |
| 1705 o.add(buildThirdPartyTrackingUrl()); | 1742 o.add(buildThirdPartyTrackingUrl()); |
| 1706 return o; | 1743 return o; |
| 1707 } | 1744 } |
| 1708 | 1745 |
| 1709 checkUnnamed297(core.List<api.ThirdPartyTrackingUrl> o) { | 1746 checkUnnamed1343(core.List<api.ThirdPartyTrackingUrl> o) { |
| 1710 unittest.expect(o, unittest.hasLength(2)); | 1747 unittest.expect(o, unittest.hasLength(2)); |
| 1711 checkThirdPartyTrackingUrl(o[0]); | 1748 checkThirdPartyTrackingUrl(o[0]); |
| 1712 checkThirdPartyTrackingUrl(o[1]); | 1749 checkThirdPartyTrackingUrl(o[1]); |
| 1713 } | 1750 } |
| 1714 | 1751 |
| 1715 buildUnnamed298() { | 1752 buildUnnamed1344() { |
| 1716 var o = new core.List<api.CreativeCustomEvent>(); | 1753 var o = new core.List<api.CreativeCustomEvent>(); |
| 1717 o.add(buildCreativeCustomEvent()); | 1754 o.add(buildCreativeCustomEvent()); |
| 1718 o.add(buildCreativeCustomEvent()); | 1755 o.add(buildCreativeCustomEvent()); |
| 1719 return o; | 1756 return o; |
| 1720 } | 1757 } |
| 1721 | 1758 |
| 1722 checkUnnamed298(core.List<api.CreativeCustomEvent> o) { | 1759 checkUnnamed1344(core.List<api.CreativeCustomEvent> o) { |
| 1723 unittest.expect(o, unittest.hasLength(2)); | 1760 unittest.expect(o, unittest.hasLength(2)); |
| 1724 checkCreativeCustomEvent(o[0]); | 1761 checkCreativeCustomEvent(o[0]); |
| 1725 checkCreativeCustomEvent(o[1]); | 1762 checkCreativeCustomEvent(o[1]); |
| 1726 } | 1763 } |
| 1727 | 1764 |
| 1728 core.int buildCounterCreative = 0; | 1765 core.int buildCounterCreative = 0; |
| 1729 buildCreative() { | 1766 buildCreative() { |
| 1730 var o = new api.Creative(); | 1767 var o = new api.Creative(); |
| 1731 buildCounterCreative++; | 1768 buildCounterCreative++; |
| 1732 if (buildCounterCreative < 3) { | 1769 if (buildCounterCreative < 3) { |
| 1733 o.accountId = "foo"; | 1770 o.accountId = "foo"; |
| 1734 o.active = true; | 1771 o.active = true; |
| 1735 o.adParameters = "foo"; | 1772 o.adParameters = "foo"; |
| 1736 o.adTagKeys = buildUnnamed287(); | 1773 o.adTagKeys = buildUnnamed1333(); |
| 1737 o.advertiserId = "foo"; | 1774 o.advertiserId = "foo"; |
| 1738 o.allowScriptAccess = true; | 1775 o.allowScriptAccess = true; |
| 1739 o.archived = true; | 1776 o.archived = true; |
| 1740 o.artworkType = "foo"; | 1777 o.artworkType = "foo"; |
| 1741 o.authoringTool = "foo"; | 1778 o.authoringTool = "foo"; |
| 1742 o.autoAdvanceImages = true; | 1779 o.autoAdvanceImages = true; |
| 1743 o.backgroundColor = "foo"; | 1780 o.backgroundColor = "foo"; |
| 1744 o.backupImageClickThroughUrl = "foo"; | 1781 o.backupImageClickThroughUrl = "foo"; |
| 1745 o.backupImageFeatures = buildUnnamed288(); | 1782 o.backupImageFeatures = buildUnnamed1334(); |
| 1746 o.backupImageReportingLabel = "foo"; | 1783 o.backupImageReportingLabel = "foo"; |
| 1747 o.backupImageTargetWindow = buildTargetWindow(); | 1784 o.backupImageTargetWindow = buildTargetWindow(); |
| 1748 o.clickTags = buildUnnamed289(); | 1785 o.clickTags = buildUnnamed1335(); |
| 1749 o.commercialId = "foo"; | 1786 o.commercialId = "foo"; |
| 1750 o.companionCreatives = buildUnnamed290(); | 1787 o.companionCreatives = buildUnnamed1336(); |
| 1751 o.compatibility = buildUnnamed291(); | 1788 o.compatibility = buildUnnamed1337(); |
| 1752 o.counterCustomEvents = buildUnnamed292(); | 1789 o.convertFlashToHtml5 = true; |
| 1753 o.creativeAssets = buildUnnamed293(); | 1790 o.counterCustomEvents = buildUnnamed1338(); |
| 1754 o.creativeFieldAssignments = buildUnnamed294(); | 1791 o.creativeAssets = buildUnnamed1339(); |
| 1755 o.customKeyValues = buildUnnamed295(); | 1792 o.creativeFieldAssignments = buildUnnamed1340(); |
| 1756 o.exitCustomEvents = buildUnnamed296(); | 1793 o.customKeyValues = buildUnnamed1341(); |
| 1794 o.exitCustomEvents = buildUnnamed1342(); |
| 1757 o.fsCommand = buildFsCommand(); | 1795 o.fsCommand = buildFsCommand(); |
| 1758 o.htmlCode = "foo"; | 1796 o.htmlCode = "foo"; |
| 1759 o.htmlCodeLocked = true; | 1797 o.htmlCodeLocked = true; |
| 1760 o.id = "foo"; | 1798 o.id = "foo"; |
| 1761 o.idDimensionValue = buildDimensionValue(); | 1799 o.idDimensionValue = buildDimensionValue(); |
| 1762 o.kind = "foo"; | 1800 o.kind = "foo"; |
| 1763 o.lastModifiedInfo = buildLastModifiedInfo(); | 1801 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 1764 o.latestTraffickedCreativeId = "foo"; | 1802 o.latestTraffickedCreativeId = "foo"; |
| 1765 o.name = "foo"; | 1803 o.name = "foo"; |
| 1766 o.overrideCss = "foo"; | 1804 o.overrideCss = "foo"; |
| 1767 o.redirectUrl = "foo"; | 1805 o.redirectUrl = "foo"; |
| 1768 o.renderingId = "foo"; | 1806 o.renderingId = "foo"; |
| 1769 o.renderingIdDimensionValue = buildDimensionValue(); | 1807 o.renderingIdDimensionValue = buildDimensionValue(); |
| 1770 o.requiredFlashPluginVersion = "foo"; | 1808 o.requiredFlashPluginVersion = "foo"; |
| 1771 o.requiredFlashVersion = 42; | 1809 o.requiredFlashVersion = 42; |
| 1772 o.size = buildSize(); | 1810 o.size = buildSize(); |
| 1773 o.skippable = true; | 1811 o.skippable = true; |
| 1774 o.sslCompliant = true; | 1812 o.sslCompliant = true; |
| 1813 o.sslOverride = true; |
| 1775 o.studioAdvertiserId = "foo"; | 1814 o.studioAdvertiserId = "foo"; |
| 1776 o.studioCreativeId = "foo"; | 1815 o.studioCreativeId = "foo"; |
| 1777 o.studioTraffickedCreativeId = "foo"; | 1816 o.studioTraffickedCreativeId = "foo"; |
| 1778 o.subaccountId = "foo"; | 1817 o.subaccountId = "foo"; |
| 1779 o.thirdPartyBackupImageImpressionsUrl = "foo"; | 1818 o.thirdPartyBackupImageImpressionsUrl = "foo"; |
| 1780 o.thirdPartyRichMediaImpressionsUrl = "foo"; | 1819 o.thirdPartyRichMediaImpressionsUrl = "foo"; |
| 1781 o.thirdPartyUrls = buildUnnamed297(); | 1820 o.thirdPartyUrls = buildUnnamed1343(); |
| 1782 o.timerCustomEvents = buildUnnamed298(); | 1821 o.timerCustomEvents = buildUnnamed1344(); |
| 1783 o.totalFileSize = "foo"; | 1822 o.totalFileSize = "foo"; |
| 1784 o.type = "foo"; | 1823 o.type = "foo"; |
| 1785 o.version = 42; | 1824 o.version = 42; |
| 1786 o.videoDescription = "foo"; | 1825 o.videoDescription = "foo"; |
| 1787 o.videoDuration = 42.0; | 1826 o.videoDuration = 42.0; |
| 1788 } | 1827 } |
| 1789 buildCounterCreative--; | 1828 buildCounterCreative--; |
| 1790 return o; | 1829 return o; |
| 1791 } | 1830 } |
| 1792 | 1831 |
| 1793 checkCreative(api.Creative o) { | 1832 checkCreative(api.Creative o) { |
| 1794 buildCounterCreative++; | 1833 buildCounterCreative++; |
| 1795 if (buildCounterCreative < 3) { | 1834 if (buildCounterCreative < 3) { |
| 1796 unittest.expect(o.accountId, unittest.equals('foo')); | 1835 unittest.expect(o.accountId, unittest.equals('foo')); |
| 1797 unittest.expect(o.active, unittest.isTrue); | 1836 unittest.expect(o.active, unittest.isTrue); |
| 1798 unittest.expect(o.adParameters, unittest.equals('foo')); | 1837 unittest.expect(o.adParameters, unittest.equals('foo')); |
| 1799 checkUnnamed287(o.adTagKeys); | 1838 checkUnnamed1333(o.adTagKeys); |
| 1800 unittest.expect(o.advertiserId, unittest.equals('foo')); | 1839 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 1801 unittest.expect(o.allowScriptAccess, unittest.isTrue); | 1840 unittest.expect(o.allowScriptAccess, unittest.isTrue); |
| 1802 unittest.expect(o.archived, unittest.isTrue); | 1841 unittest.expect(o.archived, unittest.isTrue); |
| 1803 unittest.expect(o.artworkType, unittest.equals('foo')); | 1842 unittest.expect(o.artworkType, unittest.equals('foo')); |
| 1804 unittest.expect(o.authoringTool, unittest.equals('foo')); | 1843 unittest.expect(o.authoringTool, unittest.equals('foo')); |
| 1805 unittest.expect(o.autoAdvanceImages, unittest.isTrue); | 1844 unittest.expect(o.autoAdvanceImages, unittest.isTrue); |
| 1806 unittest.expect(o.backgroundColor, unittest.equals('foo')); | 1845 unittest.expect(o.backgroundColor, unittest.equals('foo')); |
| 1807 unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); | 1846 unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); |
| 1808 checkUnnamed288(o.backupImageFeatures); | 1847 checkUnnamed1334(o.backupImageFeatures); |
| 1809 unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); | 1848 unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); |
| 1810 checkTargetWindow(o.backupImageTargetWindow); | 1849 checkTargetWindow(o.backupImageTargetWindow); |
| 1811 checkUnnamed289(o.clickTags); | 1850 checkUnnamed1335(o.clickTags); |
| 1812 unittest.expect(o.commercialId, unittest.equals('foo')); | 1851 unittest.expect(o.commercialId, unittest.equals('foo')); |
| 1813 checkUnnamed290(o.companionCreatives); | 1852 checkUnnamed1336(o.companionCreatives); |
| 1814 checkUnnamed291(o.compatibility); | 1853 checkUnnamed1337(o.compatibility); |
| 1815 checkUnnamed292(o.counterCustomEvents); | 1854 unittest.expect(o.convertFlashToHtml5, unittest.isTrue); |
| 1816 checkUnnamed293(o.creativeAssets); | 1855 checkUnnamed1338(o.counterCustomEvents); |
| 1817 checkUnnamed294(o.creativeFieldAssignments); | 1856 checkUnnamed1339(o.creativeAssets); |
| 1818 checkUnnamed295(o.customKeyValues); | 1857 checkUnnamed1340(o.creativeFieldAssignments); |
| 1819 checkUnnamed296(o.exitCustomEvents); | 1858 checkUnnamed1341(o.customKeyValues); |
| 1859 checkUnnamed1342(o.exitCustomEvents); |
| 1820 checkFsCommand(o.fsCommand); | 1860 checkFsCommand(o.fsCommand); |
| 1821 unittest.expect(o.htmlCode, unittest.equals('foo')); | 1861 unittest.expect(o.htmlCode, unittest.equals('foo')); |
| 1822 unittest.expect(o.htmlCodeLocked, unittest.isTrue); | 1862 unittest.expect(o.htmlCodeLocked, unittest.isTrue); |
| 1823 unittest.expect(o.id, unittest.equals('foo')); | 1863 unittest.expect(o.id, unittest.equals('foo')); |
| 1824 checkDimensionValue(o.idDimensionValue); | 1864 checkDimensionValue(o.idDimensionValue); |
| 1825 unittest.expect(o.kind, unittest.equals('foo')); | 1865 unittest.expect(o.kind, unittest.equals('foo')); |
| 1826 checkLastModifiedInfo(o.lastModifiedInfo); | 1866 checkLastModifiedInfo(o.lastModifiedInfo); |
| 1827 unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); | 1867 unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); |
| 1828 unittest.expect(o.name, unittest.equals('foo')); | 1868 unittest.expect(o.name, unittest.equals('foo')); |
| 1829 unittest.expect(o.overrideCss, unittest.equals('foo')); | 1869 unittest.expect(o.overrideCss, unittest.equals('foo')); |
| 1830 unittest.expect(o.redirectUrl, unittest.equals('foo')); | 1870 unittest.expect(o.redirectUrl, unittest.equals('foo')); |
| 1831 unittest.expect(o.renderingId, unittest.equals('foo')); | 1871 unittest.expect(o.renderingId, unittest.equals('foo')); |
| 1832 checkDimensionValue(o.renderingIdDimensionValue); | 1872 checkDimensionValue(o.renderingIdDimensionValue); |
| 1833 unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo')); | 1873 unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo')); |
| 1834 unittest.expect(o.requiredFlashVersion, unittest.equals(42)); | 1874 unittest.expect(o.requiredFlashVersion, unittest.equals(42)); |
| 1835 checkSize(o.size); | 1875 checkSize(o.size); |
| 1836 unittest.expect(o.skippable, unittest.isTrue); | 1876 unittest.expect(o.skippable, unittest.isTrue); |
| 1837 unittest.expect(o.sslCompliant, unittest.isTrue); | 1877 unittest.expect(o.sslCompliant, unittest.isTrue); |
| 1878 unittest.expect(o.sslOverride, unittest.isTrue); |
| 1838 unittest.expect(o.studioAdvertiserId, unittest.equals('foo')); | 1879 unittest.expect(o.studioAdvertiserId, unittest.equals('foo')); |
| 1839 unittest.expect(o.studioCreativeId, unittest.equals('foo')); | 1880 unittest.expect(o.studioCreativeId, unittest.equals('foo')); |
| 1840 unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo')); | 1881 unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo')); |
| 1841 unittest.expect(o.subaccountId, unittest.equals('foo')); | 1882 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 1842 unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo'
)); | 1883 unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo'
)); |
| 1843 unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo'))
; | 1884 unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo'))
; |
| 1844 checkUnnamed297(o.thirdPartyUrls); | 1885 checkUnnamed1343(o.thirdPartyUrls); |
| 1845 checkUnnamed298(o.timerCustomEvents); | 1886 checkUnnamed1344(o.timerCustomEvents); |
| 1846 unittest.expect(o.totalFileSize, unittest.equals('foo')); | 1887 unittest.expect(o.totalFileSize, unittest.equals('foo')); |
| 1847 unittest.expect(o.type, unittest.equals('foo')); | 1888 unittest.expect(o.type, unittest.equals('foo')); |
| 1848 unittest.expect(o.version, unittest.equals(42)); | 1889 unittest.expect(o.version, unittest.equals(42)); |
| 1849 unittest.expect(o.videoDescription, unittest.equals('foo')); | 1890 unittest.expect(o.videoDescription, unittest.equals('foo')); |
| 1850 unittest.expect(o.videoDuration, unittest.equals(42.0)); | 1891 unittest.expect(o.videoDuration, unittest.equals(42.0)); |
| 1851 } | 1892 } |
| 1852 buildCounterCreative--; | 1893 buildCounterCreative--; |
| 1853 } | 1894 } |
| 1854 | 1895 |
| 1855 buildUnnamed299() { | 1896 buildUnnamed1345() { |
| 1856 var o = new core.List<core.String>(); | 1897 var o = new core.List<core.String>(); |
| 1857 o.add("foo"); | 1898 o.add("foo"); |
| 1858 o.add("foo"); | 1899 o.add("foo"); |
| 1859 return o; | 1900 return o; |
| 1860 } | 1901 } |
| 1861 | 1902 |
| 1862 checkUnnamed299(core.List<core.String> o) { | 1903 checkUnnamed1345(core.List<core.String> o) { |
| 1863 unittest.expect(o, unittest.hasLength(2)); | 1904 unittest.expect(o, unittest.hasLength(2)); |
| 1864 unittest.expect(o[0], unittest.equals('foo')); | 1905 unittest.expect(o[0], unittest.equals('foo')); |
| 1865 unittest.expect(o[1], unittest.equals('foo')); | 1906 unittest.expect(o[1], unittest.equals('foo')); |
| 1866 } | 1907 } |
| 1867 | 1908 |
| 1868 core.int buildCounterCreativeAsset = 0; | 1909 core.int buildCounterCreativeAsset = 0; |
| 1869 buildCreativeAsset() { | 1910 buildCreativeAsset() { |
| 1870 var o = new api.CreativeAsset(); | 1911 var o = new api.CreativeAsset(); |
| 1871 buildCounterCreativeAsset++; | 1912 buildCounterCreativeAsset++; |
| 1872 if (buildCounterCreativeAsset < 3) { | 1913 if (buildCounterCreativeAsset < 3) { |
| 1873 o.actionScript3 = true; | 1914 o.actionScript3 = true; |
| 1874 o.active = true; | 1915 o.active = true; |
| 1875 o.alignment = "foo"; | 1916 o.alignment = "foo"; |
| 1876 o.artworkType = "foo"; | 1917 o.artworkType = "foo"; |
| 1877 o.assetIdentifier = buildCreativeAssetId(); | 1918 o.assetIdentifier = buildCreativeAssetId(); |
| 1878 o.backupImageExit = buildCreativeCustomEvent(); | 1919 o.backupImageExit = buildCreativeCustomEvent(); |
| 1879 o.bitRate = 42; | 1920 o.bitRate = 42; |
| 1880 o.childAssetType = "foo"; | 1921 o.childAssetType = "foo"; |
| 1881 o.collapsedSize = buildSize(); | 1922 o.collapsedSize = buildSize(); |
| 1882 o.customStartTimeValue = 42; | 1923 o.customStartTimeValue = 42; |
| 1883 o.detectedFeatures = buildUnnamed299(); | 1924 o.detectedFeatures = buildUnnamed1345(); |
| 1884 o.displayType = "foo"; | 1925 o.displayType = "foo"; |
| 1885 o.duration = 42; | 1926 o.duration = 42; |
| 1886 o.durationType = "foo"; | 1927 o.durationType = "foo"; |
| 1887 o.expandedDimension = buildSize(); | 1928 o.expandedDimension = buildSize(); |
| 1888 o.fileSize = "foo"; | 1929 o.fileSize = "foo"; |
| 1889 o.flashVersion = 42; | 1930 o.flashVersion = 42; |
| 1890 o.hideFlashObjects = true; | 1931 o.hideFlashObjects = true; |
| 1891 o.hideSelectionBoxes = true; | 1932 o.hideSelectionBoxes = true; |
| 1892 o.horizontallyLocked = true; | 1933 o.horizontallyLocked = true; |
| 1893 o.id = "foo"; | 1934 o.id = "foo"; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1923 unittest.expect(o.actionScript3, unittest.isTrue); | 1964 unittest.expect(o.actionScript3, unittest.isTrue); |
| 1924 unittest.expect(o.active, unittest.isTrue); | 1965 unittest.expect(o.active, unittest.isTrue); |
| 1925 unittest.expect(o.alignment, unittest.equals('foo')); | 1966 unittest.expect(o.alignment, unittest.equals('foo')); |
| 1926 unittest.expect(o.artworkType, unittest.equals('foo')); | 1967 unittest.expect(o.artworkType, unittest.equals('foo')); |
| 1927 checkCreativeAssetId(o.assetIdentifier); | 1968 checkCreativeAssetId(o.assetIdentifier); |
| 1928 checkCreativeCustomEvent(o.backupImageExit); | 1969 checkCreativeCustomEvent(o.backupImageExit); |
| 1929 unittest.expect(o.bitRate, unittest.equals(42)); | 1970 unittest.expect(o.bitRate, unittest.equals(42)); |
| 1930 unittest.expect(o.childAssetType, unittest.equals('foo')); | 1971 unittest.expect(o.childAssetType, unittest.equals('foo')); |
| 1931 checkSize(o.collapsedSize); | 1972 checkSize(o.collapsedSize); |
| 1932 unittest.expect(o.customStartTimeValue, unittest.equals(42)); | 1973 unittest.expect(o.customStartTimeValue, unittest.equals(42)); |
| 1933 checkUnnamed299(o.detectedFeatures); | 1974 checkUnnamed1345(o.detectedFeatures); |
| 1934 unittest.expect(o.displayType, unittest.equals('foo')); | 1975 unittest.expect(o.displayType, unittest.equals('foo')); |
| 1935 unittest.expect(o.duration, unittest.equals(42)); | 1976 unittest.expect(o.duration, unittest.equals(42)); |
| 1936 unittest.expect(o.durationType, unittest.equals('foo')); | 1977 unittest.expect(o.durationType, unittest.equals('foo')); |
| 1937 checkSize(o.expandedDimension); | 1978 checkSize(o.expandedDimension); |
| 1938 unittest.expect(o.fileSize, unittest.equals('foo')); | 1979 unittest.expect(o.fileSize, unittest.equals('foo')); |
| 1939 unittest.expect(o.flashVersion, unittest.equals(42)); | 1980 unittest.expect(o.flashVersion, unittest.equals(42)); |
| 1940 unittest.expect(o.hideFlashObjects, unittest.isTrue); | 1981 unittest.expect(o.hideFlashObjects, unittest.isTrue); |
| 1941 unittest.expect(o.hideSelectionBoxes, unittest.isTrue); | 1982 unittest.expect(o.hideSelectionBoxes, unittest.isTrue); |
| 1942 unittest.expect(o.horizontallyLocked, unittest.isTrue); | 1983 unittest.expect(o.horizontallyLocked, unittest.isTrue); |
| 1943 unittest.expect(o.id, unittest.equals('foo')); | 1984 unittest.expect(o.id, unittest.equals('foo')); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1980 | 2021 |
| 1981 checkCreativeAssetId(api.CreativeAssetId o) { | 2022 checkCreativeAssetId(api.CreativeAssetId o) { |
| 1982 buildCounterCreativeAssetId++; | 2023 buildCounterCreativeAssetId++; |
| 1983 if (buildCounterCreativeAssetId < 3) { | 2024 if (buildCounterCreativeAssetId < 3) { |
| 1984 unittest.expect(o.name, unittest.equals('foo')); | 2025 unittest.expect(o.name, unittest.equals('foo')); |
| 1985 unittest.expect(o.type, unittest.equals('foo')); | 2026 unittest.expect(o.type, unittest.equals('foo')); |
| 1986 } | 2027 } |
| 1987 buildCounterCreativeAssetId--; | 2028 buildCounterCreativeAssetId--; |
| 1988 } | 2029 } |
| 1989 | 2030 |
| 1990 buildUnnamed300() { | 2031 buildUnnamed1346() { |
| 1991 var o = new core.List<api.ClickTag>(); | 2032 var o = new core.List<api.ClickTag>(); |
| 1992 o.add(buildClickTag()); | 2033 o.add(buildClickTag()); |
| 1993 o.add(buildClickTag()); | 2034 o.add(buildClickTag()); |
| 1994 return o; | 2035 return o; |
| 1995 } | 2036 } |
| 1996 | 2037 |
| 1997 checkUnnamed300(core.List<api.ClickTag> o) { | 2038 checkUnnamed1346(core.List<api.ClickTag> o) { |
| 1998 unittest.expect(o, unittest.hasLength(2)); | 2039 unittest.expect(o, unittest.hasLength(2)); |
| 1999 checkClickTag(o[0]); | 2040 checkClickTag(o[0]); |
| 2000 checkClickTag(o[1]); | 2041 checkClickTag(o[1]); |
| 2001 } | 2042 } |
| 2002 | 2043 |
| 2003 buildUnnamed301() { | 2044 buildUnnamed1347() { |
| 2004 var o = new core.List<core.String>(); | 2045 var o = new core.List<core.String>(); |
| 2005 o.add("foo"); | 2046 o.add("foo"); |
| 2006 o.add("foo"); | 2047 o.add("foo"); |
| 2007 return o; | 2048 return o; |
| 2008 } | 2049 } |
| 2009 | 2050 |
| 2010 checkUnnamed301(core.List<core.String> o) { | 2051 checkUnnamed1347(core.List<core.String> o) { |
| 2011 unittest.expect(o, unittest.hasLength(2)); | 2052 unittest.expect(o, unittest.hasLength(2)); |
| 2012 unittest.expect(o[0], unittest.equals('foo')); | 2053 unittest.expect(o[0], unittest.equals('foo')); |
| 2013 unittest.expect(o[1], unittest.equals('foo')); | 2054 unittest.expect(o[1], unittest.equals('foo')); |
| 2014 } | 2055 } |
| 2015 | 2056 |
| 2016 buildUnnamed302() { | 2057 buildUnnamed1348() { |
| 2017 var o = new core.List<core.String>(); | 2058 var o = new core.List<core.String>(); |
| 2018 o.add("foo"); | 2059 o.add("foo"); |
| 2019 o.add("foo"); | 2060 o.add("foo"); |
| 2020 return o; | 2061 return o; |
| 2021 } | 2062 } |
| 2022 | 2063 |
| 2023 checkUnnamed302(core.List<core.String> o) { | 2064 checkUnnamed1348(core.List<core.String> o) { |
| 2024 unittest.expect(o, unittest.hasLength(2)); | 2065 unittest.expect(o, unittest.hasLength(2)); |
| 2025 unittest.expect(o[0], unittest.equals('foo')); | 2066 unittest.expect(o[0], unittest.equals('foo')); |
| 2026 unittest.expect(o[1], unittest.equals('foo')); | 2067 unittest.expect(o[1], unittest.equals('foo')); |
| 2027 } | 2068 } |
| 2028 | 2069 |
| 2029 core.int buildCounterCreativeAssetMetadata = 0; | 2070 core.int buildCounterCreativeAssetMetadata = 0; |
| 2030 buildCreativeAssetMetadata() { | 2071 buildCreativeAssetMetadata() { |
| 2031 var o = new api.CreativeAssetMetadata(); | 2072 var o = new api.CreativeAssetMetadata(); |
| 2032 buildCounterCreativeAssetMetadata++; | 2073 buildCounterCreativeAssetMetadata++; |
| 2033 if (buildCounterCreativeAssetMetadata < 3) { | 2074 if (buildCounterCreativeAssetMetadata < 3) { |
| 2034 o.assetIdentifier = buildCreativeAssetId(); | 2075 o.assetIdentifier = buildCreativeAssetId(); |
| 2035 o.clickTags = buildUnnamed300(); | 2076 o.clickTags = buildUnnamed1346(); |
| 2036 o.detectedFeatures = buildUnnamed301(); | 2077 o.detectedFeatures = buildUnnamed1347(); |
| 2037 o.kind = "foo"; | 2078 o.kind = "foo"; |
| 2038 o.warnedValidationRules = buildUnnamed302(); | 2079 o.warnedValidationRules = buildUnnamed1348(); |
| 2039 } | 2080 } |
| 2040 buildCounterCreativeAssetMetadata--; | 2081 buildCounterCreativeAssetMetadata--; |
| 2041 return o; | 2082 return o; |
| 2042 } | 2083 } |
| 2043 | 2084 |
| 2044 checkCreativeAssetMetadata(api.CreativeAssetMetadata o) { | 2085 checkCreativeAssetMetadata(api.CreativeAssetMetadata o) { |
| 2045 buildCounterCreativeAssetMetadata++; | 2086 buildCounterCreativeAssetMetadata++; |
| 2046 if (buildCounterCreativeAssetMetadata < 3) { | 2087 if (buildCounterCreativeAssetMetadata < 3) { |
| 2047 checkCreativeAssetId(o.assetIdentifier); | 2088 checkCreativeAssetId(o.assetIdentifier); |
| 2048 checkUnnamed300(o.clickTags); | 2089 checkUnnamed1346(o.clickTags); |
| 2049 checkUnnamed301(o.detectedFeatures); | 2090 checkUnnamed1347(o.detectedFeatures); |
| 2050 unittest.expect(o.kind, unittest.equals('foo')); | 2091 unittest.expect(o.kind, unittest.equals('foo')); |
| 2051 checkUnnamed302(o.warnedValidationRules); | 2092 checkUnnamed1348(o.warnedValidationRules); |
| 2052 } | 2093 } |
| 2053 buildCounterCreativeAssetMetadata--; | 2094 buildCounterCreativeAssetMetadata--; |
| 2054 } | 2095 } |
| 2055 | 2096 |
| 2056 buildUnnamed303() { | 2097 buildUnnamed1349() { |
| 2057 var o = new core.List<api.CompanionClickThroughOverride>(); | 2098 var o = new core.List<api.CompanionClickThroughOverride>(); |
| 2058 o.add(buildCompanionClickThroughOverride()); | 2099 o.add(buildCompanionClickThroughOverride()); |
| 2059 o.add(buildCompanionClickThroughOverride()); | 2100 o.add(buildCompanionClickThroughOverride()); |
| 2060 return o; | 2101 return o; |
| 2061 } | 2102 } |
| 2062 | 2103 |
| 2063 checkUnnamed303(core.List<api.CompanionClickThroughOverride> o) { | 2104 checkUnnamed1349(core.List<api.CompanionClickThroughOverride> o) { |
| 2064 unittest.expect(o, unittest.hasLength(2)); | 2105 unittest.expect(o, unittest.hasLength(2)); |
| 2065 checkCompanionClickThroughOverride(o[0]); | 2106 checkCompanionClickThroughOverride(o[0]); |
| 2066 checkCompanionClickThroughOverride(o[1]); | 2107 checkCompanionClickThroughOverride(o[1]); |
| 2067 } | 2108 } |
| 2068 | 2109 |
| 2069 buildUnnamed304() { | 2110 buildUnnamed1350() { |
| 2070 var o = new core.List<api.CreativeGroupAssignment>(); | 2111 var o = new core.List<api.CreativeGroupAssignment>(); |
| 2071 o.add(buildCreativeGroupAssignment()); | 2112 o.add(buildCreativeGroupAssignment()); |
| 2072 o.add(buildCreativeGroupAssignment()); | 2113 o.add(buildCreativeGroupAssignment()); |
| 2073 return o; | 2114 return o; |
| 2074 } | 2115 } |
| 2075 | 2116 |
| 2076 checkUnnamed304(core.List<api.CreativeGroupAssignment> o) { | 2117 checkUnnamed1350(core.List<api.CreativeGroupAssignment> o) { |
| 2077 unittest.expect(o, unittest.hasLength(2)); | 2118 unittest.expect(o, unittest.hasLength(2)); |
| 2078 checkCreativeGroupAssignment(o[0]); | 2119 checkCreativeGroupAssignment(o[0]); |
| 2079 checkCreativeGroupAssignment(o[1]); | 2120 checkCreativeGroupAssignment(o[1]); |
| 2080 } | 2121 } |
| 2081 | 2122 |
| 2082 buildUnnamed305() { | 2123 buildUnnamed1351() { |
| 2083 var o = new core.List<api.RichMediaExitOverride>(); | 2124 var o = new core.List<api.RichMediaExitOverride>(); |
| 2084 o.add(buildRichMediaExitOverride()); | 2125 o.add(buildRichMediaExitOverride()); |
| 2085 o.add(buildRichMediaExitOverride()); | 2126 o.add(buildRichMediaExitOverride()); |
| 2086 return o; | 2127 return o; |
| 2087 } | 2128 } |
| 2088 | 2129 |
| 2089 checkUnnamed305(core.List<api.RichMediaExitOverride> o) { | 2130 checkUnnamed1351(core.List<api.RichMediaExitOverride> o) { |
| 2090 unittest.expect(o, unittest.hasLength(2)); | 2131 unittest.expect(o, unittest.hasLength(2)); |
| 2091 checkRichMediaExitOverride(o[0]); | 2132 checkRichMediaExitOverride(o[0]); |
| 2092 checkRichMediaExitOverride(o[1]); | 2133 checkRichMediaExitOverride(o[1]); |
| 2093 } | 2134 } |
| 2094 | 2135 |
| 2095 core.int buildCounterCreativeAssignment = 0; | 2136 core.int buildCounterCreativeAssignment = 0; |
| 2096 buildCreativeAssignment() { | 2137 buildCreativeAssignment() { |
| 2097 var o = new api.CreativeAssignment(); | 2138 var o = new api.CreativeAssignment(); |
| 2098 buildCounterCreativeAssignment++; | 2139 buildCounterCreativeAssignment++; |
| 2099 if (buildCounterCreativeAssignment < 3) { | 2140 if (buildCounterCreativeAssignment < 3) { |
| 2100 o.active = true; | 2141 o.active = true; |
| 2101 o.applyEventTags = true; | 2142 o.applyEventTags = true; |
| 2102 o.clickThroughUrl = buildClickThroughUrl(); | 2143 o.clickThroughUrl = buildClickThroughUrl(); |
| 2103 o.companionCreativeOverrides = buildUnnamed303(); | 2144 o.companionCreativeOverrides = buildUnnamed1349(); |
| 2104 o.creativeGroupAssignments = buildUnnamed304(); | 2145 o.creativeGroupAssignments = buildUnnamed1350(); |
| 2105 o.creativeId = "foo"; | 2146 o.creativeId = "foo"; |
| 2106 o.creativeIdDimensionValue = buildDimensionValue(); | 2147 o.creativeIdDimensionValue = buildDimensionValue(); |
| 2107 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 2148 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 2108 o.richMediaExitOverrides = buildUnnamed305(); | 2149 o.richMediaExitOverrides = buildUnnamed1351(); |
| 2109 o.sequence = 42; | 2150 o.sequence = 42; |
| 2110 o.sslCompliant = true; | 2151 o.sslCompliant = true; |
| 2111 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 2152 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 2112 o.weight = 42; | 2153 o.weight = 42; |
| 2113 } | 2154 } |
| 2114 buildCounterCreativeAssignment--; | 2155 buildCounterCreativeAssignment--; |
| 2115 return o; | 2156 return o; |
| 2116 } | 2157 } |
| 2117 | 2158 |
| 2118 checkCreativeAssignment(api.CreativeAssignment o) { | 2159 checkCreativeAssignment(api.CreativeAssignment o) { |
| 2119 buildCounterCreativeAssignment++; | 2160 buildCounterCreativeAssignment++; |
| 2120 if (buildCounterCreativeAssignment < 3) { | 2161 if (buildCounterCreativeAssignment < 3) { |
| 2121 unittest.expect(o.active, unittest.isTrue); | 2162 unittest.expect(o.active, unittest.isTrue); |
| 2122 unittest.expect(o.applyEventTags, unittest.isTrue); | 2163 unittest.expect(o.applyEventTags, unittest.isTrue); |
| 2123 checkClickThroughUrl(o.clickThroughUrl); | 2164 checkClickThroughUrl(o.clickThroughUrl); |
| 2124 checkUnnamed303(o.companionCreativeOverrides); | 2165 checkUnnamed1349(o.companionCreativeOverrides); |
| 2125 checkUnnamed304(o.creativeGroupAssignments); | 2166 checkUnnamed1350(o.creativeGroupAssignments); |
| 2126 unittest.expect(o.creativeId, unittest.equals('foo')); | 2167 unittest.expect(o.creativeId, unittest.equals('foo')); |
| 2127 checkDimensionValue(o.creativeIdDimensionValue); | 2168 checkDimensionValue(o.creativeIdDimensionValue); |
| 2128 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2169 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 2129 checkUnnamed305(o.richMediaExitOverrides); | 2170 checkUnnamed1351(o.richMediaExitOverrides); |
| 2130 unittest.expect(o.sequence, unittest.equals(42)); | 2171 unittest.expect(o.sequence, unittest.equals(42)); |
| 2131 unittest.expect(o.sslCompliant, unittest.isTrue); | 2172 unittest.expect(o.sslCompliant, unittest.isTrue); |
| 2132 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 2173 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 2133 unittest.expect(o.weight, unittest.equals(42)); | 2174 unittest.expect(o.weight, unittest.equals(42)); |
| 2134 } | 2175 } |
| 2135 buildCounterCreativeAssignment--; | 2176 buildCounterCreativeAssignment--; |
| 2136 } | 2177 } |
| 2137 | 2178 |
| 2138 core.int buildCounterCreativeCustomEvent = 0; | 2179 core.int buildCounterCreativeCustomEvent = 0; |
| 2139 buildCreativeCustomEvent() { | 2180 buildCreativeCustomEvent() { |
| 2140 var o = new api.CreativeCustomEvent(); | 2181 var o = new api.CreativeCustomEvent(); |
| 2141 buildCounterCreativeCustomEvent++; | 2182 buildCounterCreativeCustomEvent++; |
| 2142 if (buildCounterCreativeCustomEvent < 3) { | 2183 if (buildCounterCreativeCustomEvent < 3) { |
| 2143 o.active = true; | |
| 2144 o.advertiserCustomEventName = "foo"; | 2184 o.advertiserCustomEventName = "foo"; |
| 2145 o.advertiserCustomEventType = "foo"; | 2185 o.advertiserCustomEventType = "foo"; |
| 2146 o.artworkLabel = "foo"; | 2186 o.artworkLabel = "foo"; |
| 2147 o.artworkType = "foo"; | 2187 o.artworkType = "foo"; |
| 2148 o.exitUrl = "foo"; | 2188 o.exitUrl = "foo"; |
| 2149 o.id = "foo"; | 2189 o.id = "foo"; |
| 2150 o.popupWindowProperties = buildPopupWindowProperties(); | 2190 o.popupWindowProperties = buildPopupWindowProperties(); |
| 2151 o.targetType = "foo"; | 2191 o.targetType = "foo"; |
| 2152 o.videoReportingId = "foo"; | 2192 o.videoReportingId = "foo"; |
| 2153 } | 2193 } |
| 2154 buildCounterCreativeCustomEvent--; | 2194 buildCounterCreativeCustomEvent--; |
| 2155 return o; | 2195 return o; |
| 2156 } | 2196 } |
| 2157 | 2197 |
| 2158 checkCreativeCustomEvent(api.CreativeCustomEvent o) { | 2198 checkCreativeCustomEvent(api.CreativeCustomEvent o) { |
| 2159 buildCounterCreativeCustomEvent++; | 2199 buildCounterCreativeCustomEvent++; |
| 2160 if (buildCounterCreativeCustomEvent < 3) { | 2200 if (buildCounterCreativeCustomEvent < 3) { |
| 2161 unittest.expect(o.active, unittest.isTrue); | |
| 2162 unittest.expect(o.advertiserCustomEventName, unittest.equals('foo')); | 2201 unittest.expect(o.advertiserCustomEventName, unittest.equals('foo')); |
| 2163 unittest.expect(o.advertiserCustomEventType, unittest.equals('foo')); | 2202 unittest.expect(o.advertiserCustomEventType, unittest.equals('foo')); |
| 2164 unittest.expect(o.artworkLabel, unittest.equals('foo')); | 2203 unittest.expect(o.artworkLabel, unittest.equals('foo')); |
| 2165 unittest.expect(o.artworkType, unittest.equals('foo')); | 2204 unittest.expect(o.artworkType, unittest.equals('foo')); |
| 2166 unittest.expect(o.exitUrl, unittest.equals('foo')); | 2205 unittest.expect(o.exitUrl, unittest.equals('foo')); |
| 2167 unittest.expect(o.id, unittest.equals('foo')); | 2206 unittest.expect(o.id, unittest.equals('foo')); |
| 2168 checkPopupWindowProperties(o.popupWindowProperties); | 2207 checkPopupWindowProperties(o.popupWindowProperties); |
| 2169 unittest.expect(o.targetType, unittest.equals('foo')); | 2208 unittest.expect(o.targetType, unittest.equals('foo')); |
| 2170 unittest.expect(o.videoReportingId, unittest.equals('foo')); | 2209 unittest.expect(o.videoReportingId, unittest.equals('foo')); |
| 2171 } | 2210 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 checkCreativeFieldValue(api.CreativeFieldValue o) { | 2279 checkCreativeFieldValue(api.CreativeFieldValue o) { |
| 2241 buildCounterCreativeFieldValue++; | 2280 buildCounterCreativeFieldValue++; |
| 2242 if (buildCounterCreativeFieldValue < 3) { | 2281 if (buildCounterCreativeFieldValue < 3) { |
| 2243 unittest.expect(o.id, unittest.equals('foo')); | 2282 unittest.expect(o.id, unittest.equals('foo')); |
| 2244 unittest.expect(o.kind, unittest.equals('foo')); | 2283 unittest.expect(o.kind, unittest.equals('foo')); |
| 2245 unittest.expect(o.value, unittest.equals('foo')); | 2284 unittest.expect(o.value, unittest.equals('foo')); |
| 2246 } | 2285 } |
| 2247 buildCounterCreativeFieldValue--; | 2286 buildCounterCreativeFieldValue--; |
| 2248 } | 2287 } |
| 2249 | 2288 |
| 2250 buildUnnamed306() { | 2289 buildUnnamed1352() { |
| 2251 var o = new core.List<api.CreativeFieldValue>(); | 2290 var o = new core.List<api.CreativeFieldValue>(); |
| 2252 o.add(buildCreativeFieldValue()); | 2291 o.add(buildCreativeFieldValue()); |
| 2253 o.add(buildCreativeFieldValue()); | 2292 o.add(buildCreativeFieldValue()); |
| 2254 return o; | 2293 return o; |
| 2255 } | 2294 } |
| 2256 | 2295 |
| 2257 checkUnnamed306(core.List<api.CreativeFieldValue> o) { | 2296 checkUnnamed1352(core.List<api.CreativeFieldValue> o) { |
| 2258 unittest.expect(o, unittest.hasLength(2)); | 2297 unittest.expect(o, unittest.hasLength(2)); |
| 2259 checkCreativeFieldValue(o[0]); | 2298 checkCreativeFieldValue(o[0]); |
| 2260 checkCreativeFieldValue(o[1]); | 2299 checkCreativeFieldValue(o[1]); |
| 2261 } | 2300 } |
| 2262 | 2301 |
| 2263 core.int buildCounterCreativeFieldValuesListResponse = 0; | 2302 core.int buildCounterCreativeFieldValuesListResponse = 0; |
| 2264 buildCreativeFieldValuesListResponse() { | 2303 buildCreativeFieldValuesListResponse() { |
| 2265 var o = new api.CreativeFieldValuesListResponse(); | 2304 var o = new api.CreativeFieldValuesListResponse(); |
| 2266 buildCounterCreativeFieldValuesListResponse++; | 2305 buildCounterCreativeFieldValuesListResponse++; |
| 2267 if (buildCounterCreativeFieldValuesListResponse < 3) { | 2306 if (buildCounterCreativeFieldValuesListResponse < 3) { |
| 2268 o.creativeFieldValues = buildUnnamed306(); | 2307 o.creativeFieldValues = buildUnnamed1352(); |
| 2269 o.kind = "foo"; | 2308 o.kind = "foo"; |
| 2270 o.nextPageToken = "foo"; | 2309 o.nextPageToken = "foo"; |
| 2271 } | 2310 } |
| 2272 buildCounterCreativeFieldValuesListResponse--; | 2311 buildCounterCreativeFieldValuesListResponse--; |
| 2273 return o; | 2312 return o; |
| 2274 } | 2313 } |
| 2275 | 2314 |
| 2276 checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { | 2315 checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { |
| 2277 buildCounterCreativeFieldValuesListResponse++; | 2316 buildCounterCreativeFieldValuesListResponse++; |
| 2278 if (buildCounterCreativeFieldValuesListResponse < 3) { | 2317 if (buildCounterCreativeFieldValuesListResponse < 3) { |
| 2279 checkUnnamed306(o.creativeFieldValues); | 2318 checkUnnamed1352(o.creativeFieldValues); |
| 2280 unittest.expect(o.kind, unittest.equals('foo')); | 2319 unittest.expect(o.kind, unittest.equals('foo')); |
| 2281 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2320 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2282 } | 2321 } |
| 2283 buildCounterCreativeFieldValuesListResponse--; | 2322 buildCounterCreativeFieldValuesListResponse--; |
| 2284 } | 2323 } |
| 2285 | 2324 |
| 2286 buildUnnamed307() { | 2325 buildUnnamed1353() { |
| 2287 var o = new core.List<api.CreativeField>(); | 2326 var o = new core.List<api.CreativeField>(); |
| 2288 o.add(buildCreativeField()); | 2327 o.add(buildCreativeField()); |
| 2289 o.add(buildCreativeField()); | 2328 o.add(buildCreativeField()); |
| 2290 return o; | 2329 return o; |
| 2291 } | 2330 } |
| 2292 | 2331 |
| 2293 checkUnnamed307(core.List<api.CreativeField> o) { | 2332 checkUnnamed1353(core.List<api.CreativeField> o) { |
| 2294 unittest.expect(o, unittest.hasLength(2)); | 2333 unittest.expect(o, unittest.hasLength(2)); |
| 2295 checkCreativeField(o[0]); | 2334 checkCreativeField(o[0]); |
| 2296 checkCreativeField(o[1]); | 2335 checkCreativeField(o[1]); |
| 2297 } | 2336 } |
| 2298 | 2337 |
| 2299 core.int buildCounterCreativeFieldsListResponse = 0; | 2338 core.int buildCounterCreativeFieldsListResponse = 0; |
| 2300 buildCreativeFieldsListResponse() { | 2339 buildCreativeFieldsListResponse() { |
| 2301 var o = new api.CreativeFieldsListResponse(); | 2340 var o = new api.CreativeFieldsListResponse(); |
| 2302 buildCounterCreativeFieldsListResponse++; | 2341 buildCounterCreativeFieldsListResponse++; |
| 2303 if (buildCounterCreativeFieldsListResponse < 3) { | 2342 if (buildCounterCreativeFieldsListResponse < 3) { |
| 2304 o.creativeFields = buildUnnamed307(); | 2343 o.creativeFields = buildUnnamed1353(); |
| 2305 o.kind = "foo"; | 2344 o.kind = "foo"; |
| 2306 o.nextPageToken = "foo"; | 2345 o.nextPageToken = "foo"; |
| 2307 } | 2346 } |
| 2308 buildCounterCreativeFieldsListResponse--; | 2347 buildCounterCreativeFieldsListResponse--; |
| 2309 return o; | 2348 return o; |
| 2310 } | 2349 } |
| 2311 | 2350 |
| 2312 checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { | 2351 checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { |
| 2313 buildCounterCreativeFieldsListResponse++; | 2352 buildCounterCreativeFieldsListResponse++; |
| 2314 if (buildCounterCreativeFieldsListResponse < 3) { | 2353 if (buildCounterCreativeFieldsListResponse < 3) { |
| 2315 checkUnnamed307(o.creativeFields); | 2354 checkUnnamed1353(o.creativeFields); |
| 2316 unittest.expect(o.kind, unittest.equals('foo')); | 2355 unittest.expect(o.kind, unittest.equals('foo')); |
| 2317 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2356 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2318 } | 2357 } |
| 2319 buildCounterCreativeFieldsListResponse--; | 2358 buildCounterCreativeFieldsListResponse--; |
| 2320 } | 2359 } |
| 2321 | 2360 |
| 2322 core.int buildCounterCreativeGroup = 0; | 2361 core.int buildCounterCreativeGroup = 0; |
| 2323 buildCreativeGroup() { | 2362 buildCreativeGroup() { |
| 2324 var o = new api.CreativeGroup(); | 2363 var o = new api.CreativeGroup(); |
| 2325 buildCounterCreativeGroup++; | 2364 buildCounterCreativeGroup++; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2366 | 2405 |
| 2367 checkCreativeGroupAssignment(api.CreativeGroupAssignment o) { | 2406 checkCreativeGroupAssignment(api.CreativeGroupAssignment o) { |
| 2368 buildCounterCreativeGroupAssignment++; | 2407 buildCounterCreativeGroupAssignment++; |
| 2369 if (buildCounterCreativeGroupAssignment < 3) { | 2408 if (buildCounterCreativeGroupAssignment < 3) { |
| 2370 unittest.expect(o.creativeGroupId, unittest.equals('foo')); | 2409 unittest.expect(o.creativeGroupId, unittest.equals('foo')); |
| 2371 unittest.expect(o.creativeGroupNumber, unittest.equals('foo')); | 2410 unittest.expect(o.creativeGroupNumber, unittest.equals('foo')); |
| 2372 } | 2411 } |
| 2373 buildCounterCreativeGroupAssignment--; | 2412 buildCounterCreativeGroupAssignment--; |
| 2374 } | 2413 } |
| 2375 | 2414 |
| 2376 buildUnnamed308() { | 2415 buildUnnamed1354() { |
| 2377 var o = new core.List<api.CreativeGroup>(); | 2416 var o = new core.List<api.CreativeGroup>(); |
| 2378 o.add(buildCreativeGroup()); | 2417 o.add(buildCreativeGroup()); |
| 2379 o.add(buildCreativeGroup()); | 2418 o.add(buildCreativeGroup()); |
| 2380 return o; | 2419 return o; |
| 2381 } | 2420 } |
| 2382 | 2421 |
| 2383 checkUnnamed308(core.List<api.CreativeGroup> o) { | 2422 checkUnnamed1354(core.List<api.CreativeGroup> o) { |
| 2384 unittest.expect(o, unittest.hasLength(2)); | 2423 unittest.expect(o, unittest.hasLength(2)); |
| 2385 checkCreativeGroup(o[0]); | 2424 checkCreativeGroup(o[0]); |
| 2386 checkCreativeGroup(o[1]); | 2425 checkCreativeGroup(o[1]); |
| 2387 } | 2426 } |
| 2388 | 2427 |
| 2389 core.int buildCounterCreativeGroupsListResponse = 0; | 2428 core.int buildCounterCreativeGroupsListResponse = 0; |
| 2390 buildCreativeGroupsListResponse() { | 2429 buildCreativeGroupsListResponse() { |
| 2391 var o = new api.CreativeGroupsListResponse(); | 2430 var o = new api.CreativeGroupsListResponse(); |
| 2392 buildCounterCreativeGroupsListResponse++; | 2431 buildCounterCreativeGroupsListResponse++; |
| 2393 if (buildCounterCreativeGroupsListResponse < 3) { | 2432 if (buildCounterCreativeGroupsListResponse < 3) { |
| 2394 o.creativeGroups = buildUnnamed308(); | 2433 o.creativeGroups = buildUnnamed1354(); |
| 2395 o.kind = "foo"; | 2434 o.kind = "foo"; |
| 2396 o.nextPageToken = "foo"; | 2435 o.nextPageToken = "foo"; |
| 2397 } | 2436 } |
| 2398 buildCounterCreativeGroupsListResponse--; | 2437 buildCounterCreativeGroupsListResponse--; |
| 2399 return o; | 2438 return o; |
| 2400 } | 2439 } |
| 2401 | 2440 |
| 2402 checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { | 2441 checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { |
| 2403 buildCounterCreativeGroupsListResponse++; | 2442 buildCounterCreativeGroupsListResponse++; |
| 2404 if (buildCounterCreativeGroupsListResponse < 3) { | 2443 if (buildCounterCreativeGroupsListResponse < 3) { |
| 2405 checkUnnamed308(o.creativeGroups); | 2444 checkUnnamed1354(o.creativeGroups); |
| 2406 unittest.expect(o.kind, unittest.equals('foo')); | 2445 unittest.expect(o.kind, unittest.equals('foo')); |
| 2407 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2446 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2408 } | 2447 } |
| 2409 buildCounterCreativeGroupsListResponse--; | 2448 buildCounterCreativeGroupsListResponse--; |
| 2410 } | 2449 } |
| 2411 | 2450 |
| 2412 buildUnnamed309() { | 2451 buildUnnamed1355() { |
| 2413 var o = new core.List<api.OptimizationActivity>(); | 2452 var o = new core.List<api.OptimizationActivity>(); |
| 2414 o.add(buildOptimizationActivity()); | 2453 o.add(buildOptimizationActivity()); |
| 2415 o.add(buildOptimizationActivity()); | 2454 o.add(buildOptimizationActivity()); |
| 2416 return o; | 2455 return o; |
| 2417 } | 2456 } |
| 2418 | 2457 |
| 2419 checkUnnamed309(core.List<api.OptimizationActivity> o) { | 2458 checkUnnamed1355(core.List<api.OptimizationActivity> o) { |
| 2420 unittest.expect(o, unittest.hasLength(2)); | 2459 unittest.expect(o, unittest.hasLength(2)); |
| 2421 checkOptimizationActivity(o[0]); | 2460 checkOptimizationActivity(o[0]); |
| 2422 checkOptimizationActivity(o[1]); | 2461 checkOptimizationActivity(o[1]); |
| 2423 } | 2462 } |
| 2424 | 2463 |
| 2425 core.int buildCounterCreativeOptimizationConfiguration = 0; | 2464 core.int buildCounterCreativeOptimizationConfiguration = 0; |
| 2426 buildCreativeOptimizationConfiguration() { | 2465 buildCreativeOptimizationConfiguration() { |
| 2427 var o = new api.CreativeOptimizationConfiguration(); | 2466 var o = new api.CreativeOptimizationConfiguration(); |
| 2428 buildCounterCreativeOptimizationConfiguration++; | 2467 buildCounterCreativeOptimizationConfiguration++; |
| 2429 if (buildCounterCreativeOptimizationConfiguration < 3) { | 2468 if (buildCounterCreativeOptimizationConfiguration < 3) { |
| 2430 o.id = "foo"; | 2469 o.id = "foo"; |
| 2431 o.name = "foo"; | 2470 o.name = "foo"; |
| 2432 o.optimizationActivitys = buildUnnamed309(); | 2471 o.optimizationActivitys = buildUnnamed1355(); |
| 2433 o.optimizationModel = "foo"; | 2472 o.optimizationModel = "foo"; |
| 2434 } | 2473 } |
| 2435 buildCounterCreativeOptimizationConfiguration--; | 2474 buildCounterCreativeOptimizationConfiguration--; |
| 2436 return o; | 2475 return o; |
| 2437 } | 2476 } |
| 2438 | 2477 |
| 2439 checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o)
{ | 2478 checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o)
{ |
| 2440 buildCounterCreativeOptimizationConfiguration++; | 2479 buildCounterCreativeOptimizationConfiguration++; |
| 2441 if (buildCounterCreativeOptimizationConfiguration < 3) { | 2480 if (buildCounterCreativeOptimizationConfiguration < 3) { |
| 2442 unittest.expect(o.id, unittest.equals('foo')); | 2481 unittest.expect(o.id, unittest.equals('foo')); |
| 2443 unittest.expect(o.name, unittest.equals('foo')); | 2482 unittest.expect(o.name, unittest.equals('foo')); |
| 2444 checkUnnamed309(o.optimizationActivitys); | 2483 checkUnnamed1355(o.optimizationActivitys); |
| 2445 unittest.expect(o.optimizationModel, unittest.equals('foo')); | 2484 unittest.expect(o.optimizationModel, unittest.equals('foo')); |
| 2446 } | 2485 } |
| 2447 buildCounterCreativeOptimizationConfiguration--; | 2486 buildCounterCreativeOptimizationConfiguration--; |
| 2448 } | 2487 } |
| 2449 | 2488 |
| 2450 buildUnnamed310() { | 2489 buildUnnamed1356() { |
| 2451 var o = new core.List<api.CreativeAssignment>(); | 2490 var o = new core.List<api.CreativeAssignment>(); |
| 2452 o.add(buildCreativeAssignment()); | 2491 o.add(buildCreativeAssignment()); |
| 2453 o.add(buildCreativeAssignment()); | 2492 o.add(buildCreativeAssignment()); |
| 2454 return o; | 2493 return o; |
| 2455 } | 2494 } |
| 2456 | 2495 |
| 2457 checkUnnamed310(core.List<api.CreativeAssignment> o) { | 2496 checkUnnamed1356(core.List<api.CreativeAssignment> o) { |
| 2458 unittest.expect(o, unittest.hasLength(2)); | 2497 unittest.expect(o, unittest.hasLength(2)); |
| 2459 checkCreativeAssignment(o[0]); | 2498 checkCreativeAssignment(o[0]); |
| 2460 checkCreativeAssignment(o[1]); | 2499 checkCreativeAssignment(o[1]); |
| 2461 } | 2500 } |
| 2462 | 2501 |
| 2463 core.int buildCounterCreativeRotation = 0; | 2502 core.int buildCounterCreativeRotation = 0; |
| 2464 buildCreativeRotation() { | 2503 buildCreativeRotation() { |
| 2465 var o = new api.CreativeRotation(); | 2504 var o = new api.CreativeRotation(); |
| 2466 buildCounterCreativeRotation++; | 2505 buildCounterCreativeRotation++; |
| 2467 if (buildCounterCreativeRotation < 3) { | 2506 if (buildCounterCreativeRotation < 3) { |
| 2468 o.creativeAssignments = buildUnnamed310(); | 2507 o.creativeAssignments = buildUnnamed1356(); |
| 2469 o.creativeOptimizationConfigurationId = "foo"; | 2508 o.creativeOptimizationConfigurationId = "foo"; |
| 2470 o.type = "foo"; | 2509 o.type = "foo"; |
| 2471 o.weightCalculationStrategy = "foo"; | 2510 o.weightCalculationStrategy = "foo"; |
| 2472 } | 2511 } |
| 2473 buildCounterCreativeRotation--; | 2512 buildCounterCreativeRotation--; |
| 2474 return o; | 2513 return o; |
| 2475 } | 2514 } |
| 2476 | 2515 |
| 2477 checkCreativeRotation(api.CreativeRotation o) { | 2516 checkCreativeRotation(api.CreativeRotation o) { |
| 2478 buildCounterCreativeRotation++; | 2517 buildCounterCreativeRotation++; |
| 2479 if (buildCounterCreativeRotation < 3) { | 2518 if (buildCounterCreativeRotation < 3) { |
| 2480 checkUnnamed310(o.creativeAssignments); | 2519 checkUnnamed1356(o.creativeAssignments); |
| 2481 unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo'
)); | 2520 unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo'
)); |
| 2482 unittest.expect(o.type, unittest.equals('foo')); | 2521 unittest.expect(o.type, unittest.equals('foo')); |
| 2483 unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); | 2522 unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); |
| 2484 } | 2523 } |
| 2485 buildCounterCreativeRotation--; | 2524 buildCounterCreativeRotation--; |
| 2486 } | 2525 } |
| 2487 | 2526 |
| 2488 core.int buildCounterCreativeSettings = 0; | 2527 core.int buildCounterCreativeSettings = 0; |
| 2489 buildCreativeSettings() { | 2528 buildCreativeSettings() { |
| 2490 var o = new api.CreativeSettings(); | 2529 var o = new api.CreativeSettings(); |
| 2491 buildCounterCreativeSettings++; | 2530 buildCounterCreativeSettings++; |
| 2492 if (buildCounterCreativeSettings < 3) { | 2531 if (buildCounterCreativeSettings < 3) { |
| 2493 o.iFrameFooter = "foo"; | 2532 o.iFrameFooter = "foo"; |
| 2494 o.iFrameHeader = "foo"; | 2533 o.iFrameHeader = "foo"; |
| 2495 } | 2534 } |
| 2496 buildCounterCreativeSettings--; | 2535 buildCounterCreativeSettings--; |
| 2497 return o; | 2536 return o; |
| 2498 } | 2537 } |
| 2499 | 2538 |
| 2500 checkCreativeSettings(api.CreativeSettings o) { | 2539 checkCreativeSettings(api.CreativeSettings o) { |
| 2501 buildCounterCreativeSettings++; | 2540 buildCounterCreativeSettings++; |
| 2502 if (buildCounterCreativeSettings < 3) { | 2541 if (buildCounterCreativeSettings < 3) { |
| 2503 unittest.expect(o.iFrameFooter, unittest.equals('foo')); | 2542 unittest.expect(o.iFrameFooter, unittest.equals('foo')); |
| 2504 unittest.expect(o.iFrameHeader, unittest.equals('foo')); | 2543 unittest.expect(o.iFrameHeader, unittest.equals('foo')); |
| 2505 } | 2544 } |
| 2506 buildCounterCreativeSettings--; | 2545 buildCounterCreativeSettings--; |
| 2507 } | 2546 } |
| 2508 | 2547 |
| 2509 buildUnnamed311() { | 2548 buildUnnamed1357() { |
| 2510 var o = new core.List<api.Creative>(); | 2549 var o = new core.List<api.Creative>(); |
| 2511 o.add(buildCreative()); | 2550 o.add(buildCreative()); |
| 2512 o.add(buildCreative()); | 2551 o.add(buildCreative()); |
| 2513 return o; | 2552 return o; |
| 2514 } | 2553 } |
| 2515 | 2554 |
| 2516 checkUnnamed311(core.List<api.Creative> o) { | 2555 checkUnnamed1357(core.List<api.Creative> o) { |
| 2517 unittest.expect(o, unittest.hasLength(2)); | 2556 unittest.expect(o, unittest.hasLength(2)); |
| 2518 checkCreative(o[0]); | 2557 checkCreative(o[0]); |
| 2519 checkCreative(o[1]); | 2558 checkCreative(o[1]); |
| 2520 } | 2559 } |
| 2521 | 2560 |
| 2522 core.int buildCounterCreativesListResponse = 0; | 2561 core.int buildCounterCreativesListResponse = 0; |
| 2523 buildCreativesListResponse() { | 2562 buildCreativesListResponse() { |
| 2524 var o = new api.CreativesListResponse(); | 2563 var o = new api.CreativesListResponse(); |
| 2525 buildCounterCreativesListResponse++; | 2564 buildCounterCreativesListResponse++; |
| 2526 if (buildCounterCreativesListResponse < 3) { | 2565 if (buildCounterCreativesListResponse < 3) { |
| 2527 o.creatives = buildUnnamed311(); | 2566 o.creatives = buildUnnamed1357(); |
| 2528 o.kind = "foo"; | 2567 o.kind = "foo"; |
| 2529 o.nextPageToken = "foo"; | 2568 o.nextPageToken = "foo"; |
| 2530 } | 2569 } |
| 2531 buildCounterCreativesListResponse--; | 2570 buildCounterCreativesListResponse--; |
| 2532 return o; | 2571 return o; |
| 2533 } | 2572 } |
| 2534 | 2573 |
| 2535 checkCreativesListResponse(api.CreativesListResponse o) { | 2574 checkCreativesListResponse(api.CreativesListResponse o) { |
| 2536 buildCounterCreativesListResponse++; | 2575 buildCounterCreativesListResponse++; |
| 2537 if (buildCounterCreativesListResponse < 3) { | 2576 if (buildCounterCreativesListResponse < 3) { |
| 2538 checkUnnamed311(o.creatives); | 2577 checkUnnamed1357(o.creatives); |
| 2539 unittest.expect(o.kind, unittest.equals('foo')); | 2578 unittest.expect(o.kind, unittest.equals('foo')); |
| 2540 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2579 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2541 } | 2580 } |
| 2542 buildCounterCreativesListResponse--; | 2581 buildCounterCreativesListResponse--; |
| 2543 } | 2582 } |
| 2544 | 2583 |
| 2545 buildUnnamed312() { | 2584 buildUnnamed1358() { |
| 2546 var o = new core.List<api.Dimension>(); | 2585 var o = new core.List<api.Dimension>(); |
| 2547 o.add(buildDimension()); | 2586 o.add(buildDimension()); |
| 2548 o.add(buildDimension()); | 2587 o.add(buildDimension()); |
| 2549 return o; | 2588 return o; |
| 2550 } | 2589 } |
| 2551 | 2590 |
| 2552 checkUnnamed312(core.List<api.Dimension> o) { | 2591 checkUnnamed1358(core.List<api.Dimension> o) { |
| 2553 unittest.expect(o, unittest.hasLength(2)); | 2592 unittest.expect(o, unittest.hasLength(2)); |
| 2554 checkDimension(o[0]); | 2593 checkDimension(o[0]); |
| 2555 checkDimension(o[1]); | 2594 checkDimension(o[1]); |
| 2556 } | 2595 } |
| 2557 | 2596 |
| 2558 buildUnnamed313() { | 2597 buildUnnamed1359() { |
| 2559 var o = new core.List<api.Dimension>(); | 2598 var o = new core.List<api.Dimension>(); |
| 2560 o.add(buildDimension()); | 2599 o.add(buildDimension()); |
| 2561 o.add(buildDimension()); | 2600 o.add(buildDimension()); |
| 2562 return o; | 2601 return o; |
| 2563 } | 2602 } |
| 2564 | 2603 |
| 2565 checkUnnamed313(core.List<api.Dimension> o) { | 2604 checkUnnamed1359(core.List<api.Dimension> o) { |
| 2566 unittest.expect(o, unittest.hasLength(2)); | 2605 unittest.expect(o, unittest.hasLength(2)); |
| 2567 checkDimension(o[0]); | 2606 checkDimension(o[0]); |
| 2568 checkDimension(o[1]); | 2607 checkDimension(o[1]); |
| 2569 } | 2608 } |
| 2570 | 2609 |
| 2571 buildUnnamed314() { | 2610 buildUnnamed1360() { |
| 2572 var o = new core.List<api.Metric>(); | 2611 var o = new core.List<api.Metric>(); |
| 2573 o.add(buildMetric()); | 2612 o.add(buildMetric()); |
| 2574 o.add(buildMetric()); | 2613 o.add(buildMetric()); |
| 2575 return o; | 2614 return o; |
| 2576 } | 2615 } |
| 2577 | 2616 |
| 2578 checkUnnamed314(core.List<api.Metric> o) { | 2617 checkUnnamed1360(core.List<api.Metric> o) { |
| 2579 unittest.expect(o, unittest.hasLength(2)); | 2618 unittest.expect(o, unittest.hasLength(2)); |
| 2580 checkMetric(o[0]); | 2619 checkMetric(o[0]); |
| 2581 checkMetric(o[1]); | 2620 checkMetric(o[1]); |
| 2582 } | 2621 } |
| 2583 | 2622 |
| 2584 buildUnnamed315() { | 2623 buildUnnamed1361() { |
| 2585 var o = new core.List<api.Metric>(); | 2624 var o = new core.List<api.Metric>(); |
| 2586 o.add(buildMetric()); | 2625 o.add(buildMetric()); |
| 2587 o.add(buildMetric()); | 2626 o.add(buildMetric()); |
| 2588 return o; | 2627 return o; |
| 2589 } | 2628 } |
| 2590 | 2629 |
| 2591 checkUnnamed315(core.List<api.Metric> o) { | 2630 checkUnnamed1361(core.List<api.Metric> o) { |
| 2592 unittest.expect(o, unittest.hasLength(2)); | 2631 unittest.expect(o, unittest.hasLength(2)); |
| 2593 checkMetric(o[0]); | 2632 checkMetric(o[0]); |
| 2594 checkMetric(o[1]); | 2633 checkMetric(o[1]); |
| 2595 } | 2634 } |
| 2596 | 2635 |
| 2597 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; | 2636 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; |
| 2598 buildCrossDimensionReachReportCompatibleFields() { | 2637 buildCrossDimensionReachReportCompatibleFields() { |
| 2599 var o = new api.CrossDimensionReachReportCompatibleFields(); | 2638 var o = new api.CrossDimensionReachReportCompatibleFields(); |
| 2600 buildCounterCrossDimensionReachReportCompatibleFields++; | 2639 buildCounterCrossDimensionReachReportCompatibleFields++; |
| 2601 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { | 2640 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { |
| 2602 o.breakdown = buildUnnamed312(); | 2641 o.breakdown = buildUnnamed1358(); |
| 2603 o.dimensionFilters = buildUnnamed313(); | 2642 o.dimensionFilters = buildUnnamed1359(); |
| 2604 o.kind = "foo"; | 2643 o.kind = "foo"; |
| 2605 o.metrics = buildUnnamed314(); | 2644 o.metrics = buildUnnamed1360(); |
| 2606 o.overlapMetrics = buildUnnamed315(); | 2645 o.overlapMetrics = buildUnnamed1361(); |
| 2607 } | 2646 } |
| 2608 buildCounterCrossDimensionReachReportCompatibleFields--; | 2647 buildCounterCrossDimensionReachReportCompatibleFields--; |
| 2609 return o; | 2648 return o; |
| 2610 } | 2649 } |
| 2611 | 2650 |
| 2612 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp
atibleFields o) { | 2651 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp
atibleFields o) { |
| 2613 buildCounterCrossDimensionReachReportCompatibleFields++; | 2652 buildCounterCrossDimensionReachReportCompatibleFields++; |
| 2614 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { | 2653 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { |
| 2615 checkUnnamed312(o.breakdown); | 2654 checkUnnamed1358(o.breakdown); |
| 2616 checkUnnamed313(o.dimensionFilters); | 2655 checkUnnamed1359(o.dimensionFilters); |
| 2617 unittest.expect(o.kind, unittest.equals('foo')); | 2656 unittest.expect(o.kind, unittest.equals('foo')); |
| 2618 checkUnnamed314(o.metrics); | 2657 checkUnnamed1360(o.metrics); |
| 2619 checkUnnamed315(o.overlapMetrics); | 2658 checkUnnamed1361(o.overlapMetrics); |
| 2620 } | 2659 } |
| 2621 buildCounterCrossDimensionReachReportCompatibleFields--; | 2660 buildCounterCrossDimensionReachReportCompatibleFields--; |
| 2622 } | 2661 } |
| 2623 | 2662 |
| 2624 buildUnnamed316() { | 2663 buildUnnamed1362() { |
| 2625 var o = new core.List<api.DimensionValue>(); | 2664 var o = new core.List<api.DimensionValue>(); |
| 2626 o.add(buildDimensionValue()); | 2665 o.add(buildDimensionValue()); |
| 2627 o.add(buildDimensionValue()); | 2666 o.add(buildDimensionValue()); |
| 2628 return o; | 2667 return o; |
| 2629 } | 2668 } |
| 2630 | 2669 |
| 2631 checkUnnamed316(core.List<api.DimensionValue> o) { | 2670 checkUnnamed1362(core.List<api.DimensionValue> o) { |
| 2632 unittest.expect(o, unittest.hasLength(2)); | 2671 unittest.expect(o, unittest.hasLength(2)); |
| 2633 checkDimensionValue(o[0]); | 2672 checkDimensionValue(o[0]); |
| 2634 checkDimensionValue(o[1]); | 2673 checkDimensionValue(o[1]); |
| 2635 } | 2674 } |
| 2636 | 2675 |
| 2637 core.int buildCounterCustomRichMediaEvents = 0; | 2676 core.int buildCounterCustomRichMediaEvents = 0; |
| 2638 buildCustomRichMediaEvents() { | 2677 buildCustomRichMediaEvents() { |
| 2639 var o = new api.CustomRichMediaEvents(); | 2678 var o = new api.CustomRichMediaEvents(); |
| 2640 buildCounterCustomRichMediaEvents++; | 2679 buildCounterCustomRichMediaEvents++; |
| 2641 if (buildCounterCustomRichMediaEvents < 3) { | 2680 if (buildCounterCustomRichMediaEvents < 3) { |
| 2642 o.filteredEventIds = buildUnnamed316(); | 2681 o.filteredEventIds = buildUnnamed1362(); |
| 2643 o.kind = "foo"; | 2682 o.kind = "foo"; |
| 2644 } | 2683 } |
| 2645 buildCounterCustomRichMediaEvents--; | 2684 buildCounterCustomRichMediaEvents--; |
| 2646 return o; | 2685 return o; |
| 2647 } | 2686 } |
| 2648 | 2687 |
| 2649 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { | 2688 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { |
| 2650 buildCounterCustomRichMediaEvents++; | 2689 buildCounterCustomRichMediaEvents++; |
| 2651 if (buildCounterCustomRichMediaEvents < 3) { | 2690 if (buildCounterCustomRichMediaEvents < 3) { |
| 2652 checkUnnamed316(o.filteredEventIds); | 2691 checkUnnamed1362(o.filteredEventIds); |
| 2653 unittest.expect(o.kind, unittest.equals('foo')); | 2692 unittest.expect(o.kind, unittest.equals('foo')); |
| 2654 } | 2693 } |
| 2655 buildCounterCustomRichMediaEvents--; | 2694 buildCounterCustomRichMediaEvents--; |
| 2656 } | 2695 } |
| 2657 | 2696 |
| 2658 core.int buildCounterDateRange = 0; | 2697 core.int buildCounterDateRange = 0; |
| 2659 buildDateRange() { | 2698 buildDateRange() { |
| 2660 var o = new api.DateRange(); | 2699 var o = new api.DateRange(); |
| 2661 buildCounterDateRange++; | 2700 buildCounterDateRange++; |
| 2662 if (buildCounterDateRange < 3) { | 2701 if (buildCounterDateRange < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2673 buildCounterDateRange++; | 2712 buildCounterDateRange++; |
| 2674 if (buildCounterDateRange < 3) { | 2713 if (buildCounterDateRange < 3) { |
| 2675 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 2714 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 2676 unittest.expect(o.kind, unittest.equals('foo')); | 2715 unittest.expect(o.kind, unittest.equals('foo')); |
| 2677 unittest.expect(o.relativeDateRange, unittest.equals('foo')); | 2716 unittest.expect(o.relativeDateRange, unittest.equals('foo')); |
| 2678 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 2717 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 2679 } | 2718 } |
| 2680 buildCounterDateRange--; | 2719 buildCounterDateRange--; |
| 2681 } | 2720 } |
| 2682 | 2721 |
| 2683 buildUnnamed317() { | 2722 buildUnnamed1363() { |
| 2684 var o = new core.List<core.String>(); | 2723 var o = new core.List<core.String>(); |
| 2685 o.add("foo"); | 2724 o.add("foo"); |
| 2686 o.add("foo"); | 2725 o.add("foo"); |
| 2687 return o; | 2726 return o; |
| 2688 } | 2727 } |
| 2689 | 2728 |
| 2690 checkUnnamed317(core.List<core.String> o) { | 2729 checkUnnamed1363(core.List<core.String> o) { |
| 2691 unittest.expect(o, unittest.hasLength(2)); | 2730 unittest.expect(o, unittest.hasLength(2)); |
| 2692 unittest.expect(o[0], unittest.equals('foo')); | 2731 unittest.expect(o[0], unittest.equals('foo')); |
| 2693 unittest.expect(o[1], unittest.equals('foo')); | 2732 unittest.expect(o[1], unittest.equals('foo')); |
| 2694 } | 2733 } |
| 2695 | 2734 |
| 2696 buildUnnamed318() { | 2735 buildUnnamed1364() { |
| 2697 var o = new core.List<core.int>(); | 2736 var o = new core.List<core.int>(); |
| 2698 o.add(42); | 2737 o.add(42); |
| 2699 o.add(42); | 2738 o.add(42); |
| 2700 return o; | 2739 return o; |
| 2701 } | 2740 } |
| 2702 | 2741 |
| 2703 checkUnnamed318(core.List<core.int> o) { | 2742 checkUnnamed1364(core.List<core.int> o) { |
| 2704 unittest.expect(o, unittest.hasLength(2)); | 2743 unittest.expect(o, unittest.hasLength(2)); |
| 2705 unittest.expect(o[0], unittest.equals(42)); | 2744 unittest.expect(o[0], unittest.equals(42)); |
| 2706 unittest.expect(o[1], unittest.equals(42)); | 2745 unittest.expect(o[1], unittest.equals(42)); |
| 2707 } | 2746 } |
| 2708 | 2747 |
| 2709 core.int buildCounterDayPartTargeting = 0; | 2748 core.int buildCounterDayPartTargeting = 0; |
| 2710 buildDayPartTargeting() { | 2749 buildDayPartTargeting() { |
| 2711 var o = new api.DayPartTargeting(); | 2750 var o = new api.DayPartTargeting(); |
| 2712 buildCounterDayPartTargeting++; | 2751 buildCounterDayPartTargeting++; |
| 2713 if (buildCounterDayPartTargeting < 3) { | 2752 if (buildCounterDayPartTargeting < 3) { |
| 2714 o.daysOfWeek = buildUnnamed317(); | 2753 o.daysOfWeek = buildUnnamed1363(); |
| 2715 o.hoursOfDay = buildUnnamed318(); | 2754 o.hoursOfDay = buildUnnamed1364(); |
| 2716 o.userLocalTime = true; | 2755 o.userLocalTime = true; |
| 2717 } | 2756 } |
| 2718 buildCounterDayPartTargeting--; | 2757 buildCounterDayPartTargeting--; |
| 2719 return o; | 2758 return o; |
| 2720 } | 2759 } |
| 2721 | 2760 |
| 2722 checkDayPartTargeting(api.DayPartTargeting o) { | 2761 checkDayPartTargeting(api.DayPartTargeting o) { |
| 2723 buildCounterDayPartTargeting++; | 2762 buildCounterDayPartTargeting++; |
| 2724 if (buildCounterDayPartTargeting < 3) { | 2763 if (buildCounterDayPartTargeting < 3) { |
| 2725 checkUnnamed317(o.daysOfWeek); | 2764 checkUnnamed1363(o.daysOfWeek); |
| 2726 checkUnnamed318(o.hoursOfDay); | 2765 checkUnnamed1364(o.hoursOfDay); |
| 2727 unittest.expect(o.userLocalTime, unittest.isTrue); | 2766 unittest.expect(o.userLocalTime, unittest.isTrue); |
| 2728 } | 2767 } |
| 2729 buildCounterDayPartTargeting--; | 2768 buildCounterDayPartTargeting--; |
| 2730 } | 2769 } |
| 2731 | 2770 |
| 2732 core.int buildCounterDefaultClickThroughEventTagProperties = 0; | 2771 core.int buildCounterDefaultClickThroughEventTagProperties = 0; |
| 2733 buildDefaultClickThroughEventTagProperties() { | 2772 buildDefaultClickThroughEventTagProperties() { |
| 2734 var o = new api.DefaultClickThroughEventTagProperties(); | 2773 var o = new api.DefaultClickThroughEventTagProperties(); |
| 2735 buildCounterDefaultClickThroughEventTagProperties++; | 2774 buildCounterDefaultClickThroughEventTagProperties++; |
| 2736 if (buildCounterDefaultClickThroughEventTagProperties < 3) { | 2775 if (buildCounterDefaultClickThroughEventTagProperties < 3) { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2868 unittest.expect(o.dimensionName, unittest.equals('foo')); | 2907 unittest.expect(o.dimensionName, unittest.equals('foo')); |
| 2869 unittest.expect(o.etag, unittest.equals('foo')); | 2908 unittest.expect(o.etag, unittest.equals('foo')); |
| 2870 unittest.expect(o.id, unittest.equals('foo')); | 2909 unittest.expect(o.id, unittest.equals('foo')); |
| 2871 unittest.expect(o.kind, unittest.equals('foo')); | 2910 unittest.expect(o.kind, unittest.equals('foo')); |
| 2872 unittest.expect(o.matchType, unittest.equals('foo')); | 2911 unittest.expect(o.matchType, unittest.equals('foo')); |
| 2873 unittest.expect(o.value, unittest.equals('foo')); | 2912 unittest.expect(o.value, unittest.equals('foo')); |
| 2874 } | 2913 } |
| 2875 buildCounterDimensionValue--; | 2914 buildCounterDimensionValue--; |
| 2876 } | 2915 } |
| 2877 | 2916 |
| 2878 buildUnnamed319() { | 2917 buildUnnamed1365() { |
| 2879 var o = new core.List<api.DimensionValue>(); | 2918 var o = new core.List<api.DimensionValue>(); |
| 2880 o.add(buildDimensionValue()); | 2919 o.add(buildDimensionValue()); |
| 2881 o.add(buildDimensionValue()); | 2920 o.add(buildDimensionValue()); |
| 2882 return o; | 2921 return o; |
| 2883 } | 2922 } |
| 2884 | 2923 |
| 2885 checkUnnamed319(core.List<api.DimensionValue> o) { | 2924 checkUnnamed1365(core.List<api.DimensionValue> o) { |
| 2886 unittest.expect(o, unittest.hasLength(2)); | 2925 unittest.expect(o, unittest.hasLength(2)); |
| 2887 checkDimensionValue(o[0]); | 2926 checkDimensionValue(o[0]); |
| 2888 checkDimensionValue(o[1]); | 2927 checkDimensionValue(o[1]); |
| 2889 } | 2928 } |
| 2890 | 2929 |
| 2891 core.int buildCounterDimensionValueList = 0; | 2930 core.int buildCounterDimensionValueList = 0; |
| 2892 buildDimensionValueList() { | 2931 buildDimensionValueList() { |
| 2893 var o = new api.DimensionValueList(); | 2932 var o = new api.DimensionValueList(); |
| 2894 buildCounterDimensionValueList++; | 2933 buildCounterDimensionValueList++; |
| 2895 if (buildCounterDimensionValueList < 3) { | 2934 if (buildCounterDimensionValueList < 3) { |
| 2896 o.etag = "foo"; | 2935 o.etag = "foo"; |
| 2897 o.items = buildUnnamed319(); | 2936 o.items = buildUnnamed1365(); |
| 2898 o.kind = "foo"; | 2937 o.kind = "foo"; |
| 2899 o.nextPageToken = "foo"; | 2938 o.nextPageToken = "foo"; |
| 2900 } | 2939 } |
| 2901 buildCounterDimensionValueList--; | 2940 buildCounterDimensionValueList--; |
| 2902 return o; | 2941 return o; |
| 2903 } | 2942 } |
| 2904 | 2943 |
| 2905 checkDimensionValueList(api.DimensionValueList o) { | 2944 checkDimensionValueList(api.DimensionValueList o) { |
| 2906 buildCounterDimensionValueList++; | 2945 buildCounterDimensionValueList++; |
| 2907 if (buildCounterDimensionValueList < 3) { | 2946 if (buildCounterDimensionValueList < 3) { |
| 2908 unittest.expect(o.etag, unittest.equals('foo')); | 2947 unittest.expect(o.etag, unittest.equals('foo')); |
| 2909 checkUnnamed319(o.items); | 2948 checkUnnamed1365(o.items); |
| 2910 unittest.expect(o.kind, unittest.equals('foo')); | 2949 unittest.expect(o.kind, unittest.equals('foo')); |
| 2911 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2950 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2912 } | 2951 } |
| 2913 buildCounterDimensionValueList--; | 2952 buildCounterDimensionValueList--; |
| 2914 } | 2953 } |
| 2915 | 2954 |
| 2916 buildUnnamed320() { | 2955 buildUnnamed1366() { |
| 2917 var o = new core.List<api.DimensionFilter>(); | 2956 var o = new core.List<api.DimensionFilter>(); |
| 2918 o.add(buildDimensionFilter()); | 2957 o.add(buildDimensionFilter()); |
| 2919 o.add(buildDimensionFilter()); | 2958 o.add(buildDimensionFilter()); |
| 2920 return o; | 2959 return o; |
| 2921 } | 2960 } |
| 2922 | 2961 |
| 2923 checkUnnamed320(core.List<api.DimensionFilter> o) { | 2962 checkUnnamed1366(core.List<api.DimensionFilter> o) { |
| 2924 unittest.expect(o, unittest.hasLength(2)); | 2963 unittest.expect(o, unittest.hasLength(2)); |
| 2925 checkDimensionFilter(o[0]); | 2964 checkDimensionFilter(o[0]); |
| 2926 checkDimensionFilter(o[1]); | 2965 checkDimensionFilter(o[1]); |
| 2927 } | 2966 } |
| 2928 | 2967 |
| 2929 core.int buildCounterDimensionValueRequest = 0; | 2968 core.int buildCounterDimensionValueRequest = 0; |
| 2930 buildDimensionValueRequest() { | 2969 buildDimensionValueRequest() { |
| 2931 var o = new api.DimensionValueRequest(); | 2970 var o = new api.DimensionValueRequest(); |
| 2932 buildCounterDimensionValueRequest++; | 2971 buildCounterDimensionValueRequest++; |
| 2933 if (buildCounterDimensionValueRequest < 3) { | 2972 if (buildCounterDimensionValueRequest < 3) { |
| 2934 o.dimensionName = "foo"; | 2973 o.dimensionName = "foo"; |
| 2935 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 2974 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 2936 o.filters = buildUnnamed320(); | 2975 o.filters = buildUnnamed1366(); |
| 2937 o.kind = "foo"; | 2976 o.kind = "foo"; |
| 2938 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 2977 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 2939 } | 2978 } |
| 2940 buildCounterDimensionValueRequest--; | 2979 buildCounterDimensionValueRequest--; |
| 2941 return o; | 2980 return o; |
| 2942 } | 2981 } |
| 2943 | 2982 |
| 2944 checkDimensionValueRequest(api.DimensionValueRequest o) { | 2983 checkDimensionValueRequest(api.DimensionValueRequest o) { |
| 2945 buildCounterDimensionValueRequest++; | 2984 buildCounterDimensionValueRequest++; |
| 2946 if (buildCounterDimensionValueRequest < 3) { | 2985 if (buildCounterDimensionValueRequest < 3) { |
| 2947 unittest.expect(o.dimensionName, unittest.equals('foo')); | 2986 unittest.expect(o.dimensionName, unittest.equals('foo')); |
| 2948 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 2987 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 2949 checkUnnamed320(o.filters); | 2988 checkUnnamed1366(o.filters); |
| 2950 unittest.expect(o.kind, unittest.equals('foo')); | 2989 unittest.expect(o.kind, unittest.equals('foo')); |
| 2951 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 2990 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 2952 } | 2991 } |
| 2953 buildCounterDimensionValueRequest--; | 2992 buildCounterDimensionValueRequest--; |
| 2954 } | 2993 } |
| 2955 | 2994 |
| 2956 buildUnnamed321() { | 2995 buildUnnamed1367() { |
| 2957 var o = new core.List<api.DirectorySiteContactAssignment>(); | 2996 var o = new core.List<api.DirectorySiteContactAssignment>(); |
| 2958 o.add(buildDirectorySiteContactAssignment()); | 2997 o.add(buildDirectorySiteContactAssignment()); |
| 2959 o.add(buildDirectorySiteContactAssignment()); | 2998 o.add(buildDirectorySiteContactAssignment()); |
| 2960 return o; | 2999 return o; |
| 2961 } | 3000 } |
| 2962 | 3001 |
| 2963 checkUnnamed321(core.List<api.DirectorySiteContactAssignment> o) { | 3002 checkUnnamed1367(core.List<api.DirectorySiteContactAssignment> o) { |
| 2964 unittest.expect(o, unittest.hasLength(2)); | 3003 unittest.expect(o, unittest.hasLength(2)); |
| 2965 checkDirectorySiteContactAssignment(o[0]); | 3004 checkDirectorySiteContactAssignment(o[0]); |
| 2966 checkDirectorySiteContactAssignment(o[1]); | 3005 checkDirectorySiteContactAssignment(o[1]); |
| 2967 } | 3006 } |
| 2968 | 3007 |
| 2969 buildUnnamed322() { | 3008 buildUnnamed1368() { |
| 2970 var o = new core.List<core.String>(); | 3009 var o = new core.List<core.String>(); |
| 2971 o.add("foo"); | 3010 o.add("foo"); |
| 2972 o.add("foo"); | 3011 o.add("foo"); |
| 2973 return o; | 3012 return o; |
| 2974 } | 3013 } |
| 2975 | 3014 |
| 2976 checkUnnamed322(core.List<core.String> o) { | 3015 checkUnnamed1368(core.List<core.String> o) { |
| 2977 unittest.expect(o, unittest.hasLength(2)); | 3016 unittest.expect(o, unittest.hasLength(2)); |
| 2978 unittest.expect(o[0], unittest.equals('foo')); | 3017 unittest.expect(o[0], unittest.equals('foo')); |
| 2979 unittest.expect(o[1], unittest.equals('foo')); | 3018 unittest.expect(o[1], unittest.equals('foo')); |
| 2980 } | 3019 } |
| 2981 | 3020 |
| 2982 buildUnnamed323() { | 3021 buildUnnamed1369() { |
| 2983 var o = new core.List<core.String>(); | 3022 var o = new core.List<core.String>(); |
| 2984 o.add("foo"); | 3023 o.add("foo"); |
| 2985 o.add("foo"); | 3024 o.add("foo"); |
| 2986 return o; | 3025 return o; |
| 2987 } | 3026 } |
| 2988 | 3027 |
| 2989 checkUnnamed323(core.List<core.String> o) { | 3028 checkUnnamed1369(core.List<core.String> o) { |
| 2990 unittest.expect(o, unittest.hasLength(2)); | 3029 unittest.expect(o, unittest.hasLength(2)); |
| 2991 unittest.expect(o[0], unittest.equals('foo')); | 3030 unittest.expect(o[0], unittest.equals('foo')); |
| 2992 unittest.expect(o[1], unittest.equals('foo')); | 3031 unittest.expect(o[1], unittest.equals('foo')); |
| 2993 } | 3032 } |
| 2994 | 3033 |
| 2995 core.int buildCounterDirectorySite = 0; | 3034 core.int buildCounterDirectorySite = 0; |
| 2996 buildDirectorySite() { | 3035 buildDirectorySite() { |
| 2997 var o = new api.DirectorySite(); | 3036 var o = new api.DirectorySite(); |
| 2998 buildCounterDirectorySite++; | 3037 buildCounterDirectorySite++; |
| 2999 if (buildCounterDirectorySite < 3) { | 3038 if (buildCounterDirectorySite < 3) { |
| 3000 o.active = true; | 3039 o.active = true; |
| 3001 o.contactAssignments = buildUnnamed321(); | 3040 o.contactAssignments = buildUnnamed1367(); |
| 3002 o.countryId = "foo"; | 3041 o.countryId = "foo"; |
| 3003 o.currencyId = "foo"; | 3042 o.currencyId = "foo"; |
| 3004 o.description = "foo"; | 3043 o.description = "foo"; |
| 3005 o.id = "foo"; | 3044 o.id = "foo"; |
| 3006 o.idDimensionValue = buildDimensionValue(); | 3045 o.idDimensionValue = buildDimensionValue(); |
| 3007 o.inpageTagFormats = buildUnnamed322(); | 3046 o.inpageTagFormats = buildUnnamed1368(); |
| 3008 o.interstitialTagFormats = buildUnnamed323(); | 3047 o.interstitialTagFormats = buildUnnamed1369(); |
| 3009 o.kind = "foo"; | 3048 o.kind = "foo"; |
| 3010 o.name = "foo"; | 3049 o.name = "foo"; |
| 3011 o.parentId = "foo"; | 3050 o.parentId = "foo"; |
| 3012 o.settings = buildDirectorySiteSettings(); | 3051 o.settings = buildDirectorySiteSettings(); |
| 3013 o.url = "foo"; | 3052 o.url = "foo"; |
| 3014 } | 3053 } |
| 3015 buildCounterDirectorySite--; | 3054 buildCounterDirectorySite--; |
| 3016 return o; | 3055 return o; |
| 3017 } | 3056 } |
| 3018 | 3057 |
| 3019 checkDirectorySite(api.DirectorySite o) { | 3058 checkDirectorySite(api.DirectorySite o) { |
| 3020 buildCounterDirectorySite++; | 3059 buildCounterDirectorySite++; |
| 3021 if (buildCounterDirectorySite < 3) { | 3060 if (buildCounterDirectorySite < 3) { |
| 3022 unittest.expect(o.active, unittest.isTrue); | 3061 unittest.expect(o.active, unittest.isTrue); |
| 3023 checkUnnamed321(o.contactAssignments); | 3062 checkUnnamed1367(o.contactAssignments); |
| 3024 unittest.expect(o.countryId, unittest.equals('foo')); | 3063 unittest.expect(o.countryId, unittest.equals('foo')); |
| 3025 unittest.expect(o.currencyId, unittest.equals('foo')); | 3064 unittest.expect(o.currencyId, unittest.equals('foo')); |
| 3026 unittest.expect(o.description, unittest.equals('foo')); | 3065 unittest.expect(o.description, unittest.equals('foo')); |
| 3027 unittest.expect(o.id, unittest.equals('foo')); | 3066 unittest.expect(o.id, unittest.equals('foo')); |
| 3028 checkDimensionValue(o.idDimensionValue); | 3067 checkDimensionValue(o.idDimensionValue); |
| 3029 checkUnnamed322(o.inpageTagFormats); | 3068 checkUnnamed1368(o.inpageTagFormats); |
| 3030 checkUnnamed323(o.interstitialTagFormats); | 3069 checkUnnamed1369(o.interstitialTagFormats); |
| 3031 unittest.expect(o.kind, unittest.equals('foo')); | 3070 unittest.expect(o.kind, unittest.equals('foo')); |
| 3032 unittest.expect(o.name, unittest.equals('foo')); | 3071 unittest.expect(o.name, unittest.equals('foo')); |
| 3033 unittest.expect(o.parentId, unittest.equals('foo')); | 3072 unittest.expect(o.parentId, unittest.equals('foo')); |
| 3034 checkDirectorySiteSettings(o.settings); | 3073 checkDirectorySiteSettings(o.settings); |
| 3035 unittest.expect(o.url, unittest.equals('foo')); | 3074 unittest.expect(o.url, unittest.equals('foo')); |
| 3036 } | 3075 } |
| 3037 buildCounterDirectorySite--; | 3076 buildCounterDirectorySite--; |
| 3038 } | 3077 } |
| 3039 | 3078 |
| 3040 core.int buildCounterDirectorySiteContact = 0; | 3079 core.int buildCounterDirectorySiteContact = 0; |
| 3041 buildDirectorySiteContact() { | 3080 buildDirectorySiteContact() { |
| 3042 var o = new api.DirectorySiteContact(); | 3081 var o = new api.DirectorySiteContact(); |
| 3043 buildCounterDirectorySiteContact++; | 3082 buildCounterDirectorySiteContact++; |
| 3044 if (buildCounterDirectorySiteContact < 3) { | 3083 if (buildCounterDirectorySiteContact < 3) { |
| 3084 o.address = "foo"; |
| 3045 o.email = "foo"; | 3085 o.email = "foo"; |
| 3046 o.firstName = "foo"; | 3086 o.firstName = "foo"; |
| 3047 o.id = "foo"; | 3087 o.id = "foo"; |
| 3048 o.kind = "foo"; | 3088 o.kind = "foo"; |
| 3049 o.lastName = "foo"; | 3089 o.lastName = "foo"; |
| 3090 o.phone = "foo"; |
| 3050 o.role = "foo"; | 3091 o.role = "foo"; |
| 3092 o.title = "foo"; |
| 3051 o.type = "foo"; | 3093 o.type = "foo"; |
| 3052 } | 3094 } |
| 3053 buildCounterDirectorySiteContact--; | 3095 buildCounterDirectorySiteContact--; |
| 3054 return o; | 3096 return o; |
| 3055 } | 3097 } |
| 3056 | 3098 |
| 3057 checkDirectorySiteContact(api.DirectorySiteContact o) { | 3099 checkDirectorySiteContact(api.DirectorySiteContact o) { |
| 3058 buildCounterDirectorySiteContact++; | 3100 buildCounterDirectorySiteContact++; |
| 3059 if (buildCounterDirectorySiteContact < 3) { | 3101 if (buildCounterDirectorySiteContact < 3) { |
| 3102 unittest.expect(o.address, unittest.equals('foo')); |
| 3060 unittest.expect(o.email, unittest.equals('foo')); | 3103 unittest.expect(o.email, unittest.equals('foo')); |
| 3061 unittest.expect(o.firstName, unittest.equals('foo')); | 3104 unittest.expect(o.firstName, unittest.equals('foo')); |
| 3062 unittest.expect(o.id, unittest.equals('foo')); | 3105 unittest.expect(o.id, unittest.equals('foo')); |
| 3063 unittest.expect(o.kind, unittest.equals('foo')); | 3106 unittest.expect(o.kind, unittest.equals('foo')); |
| 3064 unittest.expect(o.lastName, unittest.equals('foo')); | 3107 unittest.expect(o.lastName, unittest.equals('foo')); |
| 3108 unittest.expect(o.phone, unittest.equals('foo')); |
| 3065 unittest.expect(o.role, unittest.equals('foo')); | 3109 unittest.expect(o.role, unittest.equals('foo')); |
| 3110 unittest.expect(o.title, unittest.equals('foo')); |
| 3066 unittest.expect(o.type, unittest.equals('foo')); | 3111 unittest.expect(o.type, unittest.equals('foo')); |
| 3067 } | 3112 } |
| 3068 buildCounterDirectorySiteContact--; | 3113 buildCounterDirectorySiteContact--; |
| 3069 } | 3114 } |
| 3070 | 3115 |
| 3071 core.int buildCounterDirectorySiteContactAssignment = 0; | 3116 core.int buildCounterDirectorySiteContactAssignment = 0; |
| 3072 buildDirectorySiteContactAssignment() { | 3117 buildDirectorySiteContactAssignment() { |
| 3073 var o = new api.DirectorySiteContactAssignment(); | 3118 var o = new api.DirectorySiteContactAssignment(); |
| 3074 buildCounterDirectorySiteContactAssignment++; | 3119 buildCounterDirectorySiteContactAssignment++; |
| 3075 if (buildCounterDirectorySiteContactAssignment < 3) { | 3120 if (buildCounterDirectorySiteContactAssignment < 3) { |
| 3076 o.contactId = "foo"; | 3121 o.contactId = "foo"; |
| 3077 o.visibility = "foo"; | 3122 o.visibility = "foo"; |
| 3078 } | 3123 } |
| 3079 buildCounterDirectorySiteContactAssignment--; | 3124 buildCounterDirectorySiteContactAssignment--; |
| 3080 return o; | 3125 return o; |
| 3081 } | 3126 } |
| 3082 | 3127 |
| 3083 checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) { | 3128 checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) { |
| 3084 buildCounterDirectorySiteContactAssignment++; | 3129 buildCounterDirectorySiteContactAssignment++; |
| 3085 if (buildCounterDirectorySiteContactAssignment < 3) { | 3130 if (buildCounterDirectorySiteContactAssignment < 3) { |
| 3086 unittest.expect(o.contactId, unittest.equals('foo')); | 3131 unittest.expect(o.contactId, unittest.equals('foo')); |
| 3087 unittest.expect(o.visibility, unittest.equals('foo')); | 3132 unittest.expect(o.visibility, unittest.equals('foo')); |
| 3088 } | 3133 } |
| 3089 buildCounterDirectorySiteContactAssignment--; | 3134 buildCounterDirectorySiteContactAssignment--; |
| 3090 } | 3135 } |
| 3091 | 3136 |
| 3092 buildUnnamed324() { | 3137 buildUnnamed1370() { |
| 3093 var o = new core.List<api.DirectorySiteContact>(); | 3138 var o = new core.List<api.DirectorySiteContact>(); |
| 3094 o.add(buildDirectorySiteContact()); | 3139 o.add(buildDirectorySiteContact()); |
| 3095 o.add(buildDirectorySiteContact()); | 3140 o.add(buildDirectorySiteContact()); |
| 3096 return o; | 3141 return o; |
| 3097 } | 3142 } |
| 3098 | 3143 |
| 3099 checkUnnamed324(core.List<api.DirectorySiteContact> o) { | 3144 checkUnnamed1370(core.List<api.DirectorySiteContact> o) { |
| 3100 unittest.expect(o, unittest.hasLength(2)); | 3145 unittest.expect(o, unittest.hasLength(2)); |
| 3101 checkDirectorySiteContact(o[0]); | 3146 checkDirectorySiteContact(o[0]); |
| 3102 checkDirectorySiteContact(o[1]); | 3147 checkDirectorySiteContact(o[1]); |
| 3103 } | 3148 } |
| 3104 | 3149 |
| 3105 core.int buildCounterDirectorySiteContactsListResponse = 0; | 3150 core.int buildCounterDirectorySiteContactsListResponse = 0; |
| 3106 buildDirectorySiteContactsListResponse() { | 3151 buildDirectorySiteContactsListResponse() { |
| 3107 var o = new api.DirectorySiteContactsListResponse(); | 3152 var o = new api.DirectorySiteContactsListResponse(); |
| 3108 buildCounterDirectorySiteContactsListResponse++; | 3153 buildCounterDirectorySiteContactsListResponse++; |
| 3109 if (buildCounterDirectorySiteContactsListResponse < 3) { | 3154 if (buildCounterDirectorySiteContactsListResponse < 3) { |
| 3110 o.directorySiteContacts = buildUnnamed324(); | 3155 o.directorySiteContacts = buildUnnamed1370(); |
| 3111 o.kind = "foo"; | 3156 o.kind = "foo"; |
| 3112 o.nextPageToken = "foo"; | 3157 o.nextPageToken = "foo"; |
| 3113 } | 3158 } |
| 3114 buildCounterDirectorySiteContactsListResponse--; | 3159 buildCounterDirectorySiteContactsListResponse--; |
| 3115 return o; | 3160 return o; |
| 3116 } | 3161 } |
| 3117 | 3162 |
| 3118 checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o)
{ | 3163 checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o)
{ |
| 3119 buildCounterDirectorySiteContactsListResponse++; | 3164 buildCounterDirectorySiteContactsListResponse++; |
| 3120 if (buildCounterDirectorySiteContactsListResponse < 3) { | 3165 if (buildCounterDirectorySiteContactsListResponse < 3) { |
| 3121 checkUnnamed324(o.directorySiteContacts); | 3166 checkUnnamed1370(o.directorySiteContacts); |
| 3122 unittest.expect(o.kind, unittest.equals('foo')); | 3167 unittest.expect(o.kind, unittest.equals('foo')); |
| 3123 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3168 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3124 } | 3169 } |
| 3125 buildCounterDirectorySiteContactsListResponse--; | 3170 buildCounterDirectorySiteContactsListResponse--; |
| 3126 } | 3171 } |
| 3127 | 3172 |
| 3128 core.int buildCounterDirectorySiteSettings = 0; | 3173 core.int buildCounterDirectorySiteSettings = 0; |
| 3129 buildDirectorySiteSettings() { | 3174 buildDirectorySiteSettings() { |
| 3130 var o = new api.DirectorySiteSettings(); | 3175 var o = new api.DirectorySiteSettings(); |
| 3131 buildCounterDirectorySiteSettings++; | 3176 buildCounterDirectorySiteSettings++; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3149 checkDfpSettings(o.dfpSettings); | 3194 checkDfpSettings(o.dfpSettings); |
| 3150 unittest.expect(o.instreamVideoPlacementAccepted, unittest.isTrue); | 3195 unittest.expect(o.instreamVideoPlacementAccepted, unittest.isTrue); |
| 3151 unittest.expect(o.interstitialPlacementAccepted, unittest.isTrue); | 3196 unittest.expect(o.interstitialPlacementAccepted, unittest.isTrue); |
| 3152 unittest.expect(o.nielsenOcrOptOut, unittest.isTrue); | 3197 unittest.expect(o.nielsenOcrOptOut, unittest.isTrue); |
| 3153 unittest.expect(o.verificationTagOptOut, unittest.isTrue); | 3198 unittest.expect(o.verificationTagOptOut, unittest.isTrue); |
| 3154 unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); | 3199 unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); |
| 3155 } | 3200 } |
| 3156 buildCounterDirectorySiteSettings--; | 3201 buildCounterDirectorySiteSettings--; |
| 3157 } | 3202 } |
| 3158 | 3203 |
| 3159 buildUnnamed325() { | 3204 buildUnnamed1371() { |
| 3160 var o = new core.List<api.DirectorySite>(); | 3205 var o = new core.List<api.DirectorySite>(); |
| 3161 o.add(buildDirectorySite()); | 3206 o.add(buildDirectorySite()); |
| 3162 o.add(buildDirectorySite()); | 3207 o.add(buildDirectorySite()); |
| 3163 return o; | 3208 return o; |
| 3164 } | 3209 } |
| 3165 | 3210 |
| 3166 checkUnnamed325(core.List<api.DirectorySite> o) { | 3211 checkUnnamed1371(core.List<api.DirectorySite> o) { |
| 3167 unittest.expect(o, unittest.hasLength(2)); | 3212 unittest.expect(o, unittest.hasLength(2)); |
| 3168 checkDirectorySite(o[0]); | 3213 checkDirectorySite(o[0]); |
| 3169 checkDirectorySite(o[1]); | 3214 checkDirectorySite(o[1]); |
| 3170 } | 3215 } |
| 3171 | 3216 |
| 3172 core.int buildCounterDirectorySitesListResponse = 0; | 3217 core.int buildCounterDirectorySitesListResponse = 0; |
| 3173 buildDirectorySitesListResponse() { | 3218 buildDirectorySitesListResponse() { |
| 3174 var o = new api.DirectorySitesListResponse(); | 3219 var o = new api.DirectorySitesListResponse(); |
| 3175 buildCounterDirectorySitesListResponse++; | 3220 buildCounterDirectorySitesListResponse++; |
| 3176 if (buildCounterDirectorySitesListResponse < 3) { | 3221 if (buildCounterDirectorySitesListResponse < 3) { |
| 3177 o.directorySites = buildUnnamed325(); | 3222 o.directorySites = buildUnnamed1371(); |
| 3178 o.kind = "foo"; | 3223 o.kind = "foo"; |
| 3179 o.nextPageToken = "foo"; | 3224 o.nextPageToken = "foo"; |
| 3180 } | 3225 } |
| 3181 buildCounterDirectorySitesListResponse--; | 3226 buildCounterDirectorySitesListResponse--; |
| 3182 return o; | 3227 return o; |
| 3183 } | 3228 } |
| 3184 | 3229 |
| 3185 checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { | 3230 checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { |
| 3186 buildCounterDirectorySitesListResponse++; | 3231 buildCounterDirectorySitesListResponse++; |
| 3187 if (buildCounterDirectorySitesListResponse < 3) { | 3232 if (buildCounterDirectorySitesListResponse < 3) { |
| 3188 checkUnnamed325(o.directorySites); | 3233 checkUnnamed1371(o.directorySites); |
| 3189 unittest.expect(o.kind, unittest.equals('foo')); | 3234 unittest.expect(o.kind, unittest.equals('foo')); |
| 3190 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3235 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3191 } | 3236 } |
| 3192 buildCounterDirectorySitesListResponse--; | 3237 buildCounterDirectorySitesListResponse--; |
| 3193 } | 3238 } |
| 3194 | 3239 |
| 3195 buildUnnamed326() { | 3240 buildUnnamed1372() { |
| 3196 var o = new core.List<core.String>(); | 3241 var o = new core.List<core.String>(); |
| 3197 o.add("foo"); | 3242 o.add("foo"); |
| 3198 o.add("foo"); | 3243 o.add("foo"); |
| 3199 return o; | 3244 return o; |
| 3200 } | 3245 } |
| 3201 | 3246 |
| 3202 checkUnnamed326(core.List<core.String> o) { | 3247 checkUnnamed1372(core.List<core.String> o) { |
| 3203 unittest.expect(o, unittest.hasLength(2)); | 3248 unittest.expect(o, unittest.hasLength(2)); |
| 3204 unittest.expect(o[0], unittest.equals('foo')); | 3249 unittest.expect(o[0], unittest.equals('foo')); |
| 3205 unittest.expect(o[1], unittest.equals('foo')); | 3250 unittest.expect(o[1], unittest.equals('foo')); |
| 3206 } | 3251 } |
| 3207 | 3252 |
| 3208 core.int buildCounterEventTag = 0; | 3253 core.int buildCounterEventTag = 0; |
| 3209 buildEventTag() { | 3254 buildEventTag() { |
| 3210 var o = new api.EventTag(); | 3255 var o = new api.EventTag(); |
| 3211 buildCounterEventTag++; | 3256 buildCounterEventTag++; |
| 3212 if (buildCounterEventTag < 3) { | 3257 if (buildCounterEventTag < 3) { |
| 3213 o.accountId = "foo"; | 3258 o.accountId = "foo"; |
| 3214 o.advertiserId = "foo"; | 3259 o.advertiserId = "foo"; |
| 3215 o.advertiserIdDimensionValue = buildDimensionValue(); | 3260 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 3216 o.campaignId = "foo"; | 3261 o.campaignId = "foo"; |
| 3217 o.campaignIdDimensionValue = buildDimensionValue(); | 3262 o.campaignIdDimensionValue = buildDimensionValue(); |
| 3218 o.enabledByDefault = true; | 3263 o.enabledByDefault = true; |
| 3264 o.excludeFromAdxRequests = true; |
| 3219 o.id = "foo"; | 3265 o.id = "foo"; |
| 3220 o.kind = "foo"; | 3266 o.kind = "foo"; |
| 3221 o.name = "foo"; | 3267 o.name = "foo"; |
| 3222 o.siteFilterType = "foo"; | 3268 o.siteFilterType = "foo"; |
| 3223 o.siteIds = buildUnnamed326(); | 3269 o.siteIds = buildUnnamed1372(); |
| 3224 o.sslCompliant = true; | 3270 o.sslCompliant = true; |
| 3225 o.status = "foo"; | 3271 o.status = "foo"; |
| 3226 o.subaccountId = "foo"; | 3272 o.subaccountId = "foo"; |
| 3227 o.type = "foo"; | 3273 o.type = "foo"; |
| 3228 o.url = "foo"; | 3274 o.url = "foo"; |
| 3229 o.urlEscapeLevels = 42; | 3275 o.urlEscapeLevels = 42; |
| 3230 } | 3276 } |
| 3231 buildCounterEventTag--; | 3277 buildCounterEventTag--; |
| 3232 return o; | 3278 return o; |
| 3233 } | 3279 } |
| 3234 | 3280 |
| 3235 checkEventTag(api.EventTag o) { | 3281 checkEventTag(api.EventTag o) { |
| 3236 buildCounterEventTag++; | 3282 buildCounterEventTag++; |
| 3237 if (buildCounterEventTag < 3) { | 3283 if (buildCounterEventTag < 3) { |
| 3238 unittest.expect(o.accountId, unittest.equals('foo')); | 3284 unittest.expect(o.accountId, unittest.equals('foo')); |
| 3239 unittest.expect(o.advertiserId, unittest.equals('foo')); | 3285 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 3240 checkDimensionValue(o.advertiserIdDimensionValue); | 3286 checkDimensionValue(o.advertiserIdDimensionValue); |
| 3241 unittest.expect(o.campaignId, unittest.equals('foo')); | 3287 unittest.expect(o.campaignId, unittest.equals('foo')); |
| 3242 checkDimensionValue(o.campaignIdDimensionValue); | 3288 checkDimensionValue(o.campaignIdDimensionValue); |
| 3243 unittest.expect(o.enabledByDefault, unittest.isTrue); | 3289 unittest.expect(o.enabledByDefault, unittest.isTrue); |
| 3290 unittest.expect(o.excludeFromAdxRequests, unittest.isTrue); |
| 3244 unittest.expect(o.id, unittest.equals('foo')); | 3291 unittest.expect(o.id, unittest.equals('foo')); |
| 3245 unittest.expect(o.kind, unittest.equals('foo')); | 3292 unittest.expect(o.kind, unittest.equals('foo')); |
| 3246 unittest.expect(o.name, unittest.equals('foo')); | 3293 unittest.expect(o.name, unittest.equals('foo')); |
| 3247 unittest.expect(o.siteFilterType, unittest.equals('foo')); | 3294 unittest.expect(o.siteFilterType, unittest.equals('foo')); |
| 3248 checkUnnamed326(o.siteIds); | 3295 checkUnnamed1372(o.siteIds); |
| 3249 unittest.expect(o.sslCompliant, unittest.isTrue); | 3296 unittest.expect(o.sslCompliant, unittest.isTrue); |
| 3250 unittest.expect(o.status, unittest.equals('foo')); | 3297 unittest.expect(o.status, unittest.equals('foo')); |
| 3251 unittest.expect(o.subaccountId, unittest.equals('foo')); | 3298 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 3252 unittest.expect(o.type, unittest.equals('foo')); | 3299 unittest.expect(o.type, unittest.equals('foo')); |
| 3253 unittest.expect(o.url, unittest.equals('foo')); | 3300 unittest.expect(o.url, unittest.equals('foo')); |
| 3254 unittest.expect(o.urlEscapeLevels, unittest.equals(42)); | 3301 unittest.expect(o.urlEscapeLevels, unittest.equals(42)); |
| 3255 } | 3302 } |
| 3256 buildCounterEventTag--; | 3303 buildCounterEventTag--; |
| 3257 } | 3304 } |
| 3258 | 3305 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3270 | 3317 |
| 3271 checkEventTagOverride(api.EventTagOverride o) { | 3318 checkEventTagOverride(api.EventTagOverride o) { |
| 3272 buildCounterEventTagOverride++; | 3319 buildCounterEventTagOverride++; |
| 3273 if (buildCounterEventTagOverride < 3) { | 3320 if (buildCounterEventTagOverride < 3) { |
| 3274 unittest.expect(o.enabled, unittest.isTrue); | 3321 unittest.expect(o.enabled, unittest.isTrue); |
| 3275 unittest.expect(o.id, unittest.equals('foo')); | 3322 unittest.expect(o.id, unittest.equals('foo')); |
| 3276 } | 3323 } |
| 3277 buildCounterEventTagOverride--; | 3324 buildCounterEventTagOverride--; |
| 3278 } | 3325 } |
| 3279 | 3326 |
| 3280 buildUnnamed327() { | 3327 buildUnnamed1373() { |
| 3281 var o = new core.List<api.EventTag>(); | 3328 var o = new core.List<api.EventTag>(); |
| 3282 o.add(buildEventTag()); | 3329 o.add(buildEventTag()); |
| 3283 o.add(buildEventTag()); | 3330 o.add(buildEventTag()); |
| 3284 return o; | 3331 return o; |
| 3285 } | 3332 } |
| 3286 | 3333 |
| 3287 checkUnnamed327(core.List<api.EventTag> o) { | 3334 checkUnnamed1373(core.List<api.EventTag> o) { |
| 3288 unittest.expect(o, unittest.hasLength(2)); | 3335 unittest.expect(o, unittest.hasLength(2)); |
| 3289 checkEventTag(o[0]); | 3336 checkEventTag(o[0]); |
| 3290 checkEventTag(o[1]); | 3337 checkEventTag(o[1]); |
| 3291 } | 3338 } |
| 3292 | 3339 |
| 3293 core.int buildCounterEventTagsListResponse = 0; | 3340 core.int buildCounterEventTagsListResponse = 0; |
| 3294 buildEventTagsListResponse() { | 3341 buildEventTagsListResponse() { |
| 3295 var o = new api.EventTagsListResponse(); | 3342 var o = new api.EventTagsListResponse(); |
| 3296 buildCounterEventTagsListResponse++; | 3343 buildCounterEventTagsListResponse++; |
| 3297 if (buildCounterEventTagsListResponse < 3) { | 3344 if (buildCounterEventTagsListResponse < 3) { |
| 3298 o.eventTags = buildUnnamed327(); | 3345 o.eventTags = buildUnnamed1373(); |
| 3299 o.kind = "foo"; | 3346 o.kind = "foo"; |
| 3300 } | 3347 } |
| 3301 buildCounterEventTagsListResponse--; | 3348 buildCounterEventTagsListResponse--; |
| 3302 return o; | 3349 return o; |
| 3303 } | 3350 } |
| 3304 | 3351 |
| 3305 checkEventTagsListResponse(api.EventTagsListResponse o) { | 3352 checkEventTagsListResponse(api.EventTagsListResponse o) { |
| 3306 buildCounterEventTagsListResponse++; | 3353 buildCounterEventTagsListResponse++; |
| 3307 if (buildCounterEventTagsListResponse < 3) { | 3354 if (buildCounterEventTagsListResponse < 3) { |
| 3308 checkUnnamed327(o.eventTags); | 3355 checkUnnamed1373(o.eventTags); |
| 3309 unittest.expect(o.kind, unittest.equals('foo')); | 3356 unittest.expect(o.kind, unittest.equals('foo')); |
| 3310 } | 3357 } |
| 3311 buildCounterEventTagsListResponse--; | 3358 buildCounterEventTagsListResponse--; |
| 3312 } | 3359 } |
| 3313 | 3360 |
| 3314 core.int buildCounterFileUrls = 0; | 3361 core.int buildCounterFileUrls = 0; |
| 3315 buildFileUrls() { | 3362 buildFileUrls() { |
| 3316 var o = new api.FileUrls(); | 3363 var o = new api.FileUrls(); |
| 3317 buildCounterFileUrls++; | 3364 buildCounterFileUrls++; |
| 3318 if (buildCounterFileUrls < 3) { | 3365 if (buildCounterFileUrls < 3) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3362 unittest.expect(o.id, unittest.equals('foo')); | 3409 unittest.expect(o.id, unittest.equals('foo')); |
| 3363 unittest.expect(o.kind, unittest.equals('foo')); | 3410 unittest.expect(o.kind, unittest.equals('foo')); |
| 3364 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 3411 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
| 3365 unittest.expect(o.reportId, unittest.equals('foo')); | 3412 unittest.expect(o.reportId, unittest.equals('foo')); |
| 3366 unittest.expect(o.status, unittest.equals('foo')); | 3413 unittest.expect(o.status, unittest.equals('foo')); |
| 3367 checkFileUrls(o.urls); | 3414 checkFileUrls(o.urls); |
| 3368 } | 3415 } |
| 3369 buildCounterFile--; | 3416 buildCounterFile--; |
| 3370 } | 3417 } |
| 3371 | 3418 |
| 3372 buildUnnamed328() { | 3419 buildUnnamed1374() { |
| 3373 var o = new core.List<api.File>(); | 3420 var o = new core.List<api.File>(); |
| 3374 o.add(buildFile()); | 3421 o.add(buildFile()); |
| 3375 o.add(buildFile()); | 3422 o.add(buildFile()); |
| 3376 return o; | 3423 return o; |
| 3377 } | 3424 } |
| 3378 | 3425 |
| 3379 checkUnnamed328(core.List<api.File> o) { | 3426 checkUnnamed1374(core.List<api.File> o) { |
| 3380 unittest.expect(o, unittest.hasLength(2)); | 3427 unittest.expect(o, unittest.hasLength(2)); |
| 3381 checkFile(o[0]); | 3428 checkFile(o[0]); |
| 3382 checkFile(o[1]); | 3429 checkFile(o[1]); |
| 3383 } | 3430 } |
| 3384 | 3431 |
| 3385 core.int buildCounterFileList = 0; | 3432 core.int buildCounterFileList = 0; |
| 3386 buildFileList() { | 3433 buildFileList() { |
| 3387 var o = new api.FileList(); | 3434 var o = new api.FileList(); |
| 3388 buildCounterFileList++; | 3435 buildCounterFileList++; |
| 3389 if (buildCounterFileList < 3) { | 3436 if (buildCounterFileList < 3) { |
| 3390 o.etag = "foo"; | 3437 o.etag = "foo"; |
| 3391 o.items = buildUnnamed328(); | 3438 o.items = buildUnnamed1374(); |
| 3392 o.kind = "foo"; | 3439 o.kind = "foo"; |
| 3393 o.nextPageToken = "foo"; | 3440 o.nextPageToken = "foo"; |
| 3394 } | 3441 } |
| 3395 buildCounterFileList--; | 3442 buildCounterFileList--; |
| 3396 return o; | 3443 return o; |
| 3397 } | 3444 } |
| 3398 | 3445 |
| 3399 checkFileList(api.FileList o) { | 3446 checkFileList(api.FileList o) { |
| 3400 buildCounterFileList++; | 3447 buildCounterFileList++; |
| 3401 if (buildCounterFileList < 3) { | 3448 if (buildCounterFileList < 3) { |
| 3402 unittest.expect(o.etag, unittest.equals('foo')); | 3449 unittest.expect(o.etag, unittest.equals('foo')); |
| 3403 checkUnnamed328(o.items); | 3450 checkUnnamed1374(o.items); |
| 3404 unittest.expect(o.kind, unittest.equals('foo')); | 3451 unittest.expect(o.kind, unittest.equals('foo')); |
| 3405 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3452 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3406 } | 3453 } |
| 3407 buildCounterFileList--; | 3454 buildCounterFileList--; |
| 3408 } | 3455 } |
| 3409 | 3456 |
| 3457 core.int buildCounterFlight = 0; |
| 3458 buildFlight() { |
| 3459 var o = new api.Flight(); |
| 3460 buildCounterFlight++; |
| 3461 if (buildCounterFlight < 3) { |
| 3462 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 3463 o.rateOrCost = "foo"; |
| 3464 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 3465 o.units = "foo"; |
| 3466 } |
| 3467 buildCounterFlight--; |
| 3468 return o; |
| 3469 } |
| 3470 |
| 3471 checkFlight(api.Flight o) { |
| 3472 buildCounterFlight++; |
| 3473 if (buildCounterFlight < 3) { |
| 3474 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 3475 unittest.expect(o.rateOrCost, unittest.equals('foo')); |
| 3476 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 3477 unittest.expect(o.units, unittest.equals('foo')); |
| 3478 } |
| 3479 buildCounterFlight--; |
| 3480 } |
| 3481 |
| 3410 core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0; | 3482 core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0; |
| 3411 buildFloodlightActivitiesGenerateTagResponse() { | 3483 buildFloodlightActivitiesGenerateTagResponse() { |
| 3412 var o = new api.FloodlightActivitiesGenerateTagResponse(); | 3484 var o = new api.FloodlightActivitiesGenerateTagResponse(); |
| 3413 buildCounterFloodlightActivitiesGenerateTagResponse++; | 3485 buildCounterFloodlightActivitiesGenerateTagResponse++; |
| 3414 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { | 3486 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { |
| 3415 o.floodlightActivityTag = "foo"; | 3487 o.floodlightActivityTag = "foo"; |
| 3416 o.kind = "foo"; | 3488 o.kind = "foo"; |
| 3417 } | 3489 } |
| 3418 buildCounterFloodlightActivitiesGenerateTagResponse--; | 3490 buildCounterFloodlightActivitiesGenerateTagResponse--; |
| 3419 return o; | 3491 return o; |
| 3420 } | 3492 } |
| 3421 | 3493 |
| 3422 checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTag
Response o) { | 3494 checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTag
Response o) { |
| 3423 buildCounterFloodlightActivitiesGenerateTagResponse++; | 3495 buildCounterFloodlightActivitiesGenerateTagResponse++; |
| 3424 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { | 3496 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { |
| 3425 unittest.expect(o.floodlightActivityTag, unittest.equals('foo')); | 3497 unittest.expect(o.floodlightActivityTag, unittest.equals('foo')); |
| 3426 unittest.expect(o.kind, unittest.equals('foo')); | 3498 unittest.expect(o.kind, unittest.equals('foo')); |
| 3427 } | 3499 } |
| 3428 buildCounterFloodlightActivitiesGenerateTagResponse--; | 3500 buildCounterFloodlightActivitiesGenerateTagResponse--; |
| 3429 } | 3501 } |
| 3430 | 3502 |
| 3431 buildUnnamed329() { | 3503 buildUnnamed1375() { |
| 3432 var o = new core.List<api.FloodlightActivity>(); | 3504 var o = new core.List<api.FloodlightActivity>(); |
| 3433 o.add(buildFloodlightActivity()); | 3505 o.add(buildFloodlightActivity()); |
| 3434 o.add(buildFloodlightActivity()); | 3506 o.add(buildFloodlightActivity()); |
| 3435 return o; | 3507 return o; |
| 3436 } | 3508 } |
| 3437 | 3509 |
| 3438 checkUnnamed329(core.List<api.FloodlightActivity> o) { | 3510 checkUnnamed1375(core.List<api.FloodlightActivity> o) { |
| 3439 unittest.expect(o, unittest.hasLength(2)); | 3511 unittest.expect(o, unittest.hasLength(2)); |
| 3440 checkFloodlightActivity(o[0]); | 3512 checkFloodlightActivity(o[0]); |
| 3441 checkFloodlightActivity(o[1]); | 3513 checkFloodlightActivity(o[1]); |
| 3442 } | 3514 } |
| 3443 | 3515 |
| 3444 core.int buildCounterFloodlightActivitiesListResponse = 0; | 3516 core.int buildCounterFloodlightActivitiesListResponse = 0; |
| 3445 buildFloodlightActivitiesListResponse() { | 3517 buildFloodlightActivitiesListResponse() { |
| 3446 var o = new api.FloodlightActivitiesListResponse(); | 3518 var o = new api.FloodlightActivitiesListResponse(); |
| 3447 buildCounterFloodlightActivitiesListResponse++; | 3519 buildCounterFloodlightActivitiesListResponse++; |
| 3448 if (buildCounterFloodlightActivitiesListResponse < 3) { | 3520 if (buildCounterFloodlightActivitiesListResponse < 3) { |
| 3449 o.floodlightActivities = buildUnnamed329(); | 3521 o.floodlightActivities = buildUnnamed1375(); |
| 3450 o.kind = "foo"; | 3522 o.kind = "foo"; |
| 3451 o.nextPageToken = "foo"; | 3523 o.nextPageToken = "foo"; |
| 3452 } | 3524 } |
| 3453 buildCounterFloodlightActivitiesListResponse--; | 3525 buildCounterFloodlightActivitiesListResponse--; |
| 3454 return o; | 3526 return o; |
| 3455 } | 3527 } |
| 3456 | 3528 |
| 3457 checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { | 3529 checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { |
| 3458 buildCounterFloodlightActivitiesListResponse++; | 3530 buildCounterFloodlightActivitiesListResponse++; |
| 3459 if (buildCounterFloodlightActivitiesListResponse < 3) { | 3531 if (buildCounterFloodlightActivitiesListResponse < 3) { |
| 3460 checkUnnamed329(o.floodlightActivities); | 3532 checkUnnamed1375(o.floodlightActivities); |
| 3461 unittest.expect(o.kind, unittest.equals('foo')); | 3533 unittest.expect(o.kind, unittest.equals('foo')); |
| 3462 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3534 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3463 } | 3535 } |
| 3464 buildCounterFloodlightActivitiesListResponse--; | 3536 buildCounterFloodlightActivitiesListResponse--; |
| 3465 } | 3537 } |
| 3466 | 3538 |
| 3467 buildUnnamed330() { | 3539 buildUnnamed1376() { |
| 3468 var o = new core.List<api.FloodlightActivityDynamicTag>(); | 3540 var o = new core.List<api.FloodlightActivityDynamicTag>(); |
| 3469 o.add(buildFloodlightActivityDynamicTag()); | 3541 o.add(buildFloodlightActivityDynamicTag()); |
| 3470 o.add(buildFloodlightActivityDynamicTag()); | 3542 o.add(buildFloodlightActivityDynamicTag()); |
| 3471 return o; | 3543 return o; |
| 3472 } | 3544 } |
| 3473 | 3545 |
| 3474 checkUnnamed330(core.List<api.FloodlightActivityDynamicTag> o) { | 3546 checkUnnamed1376(core.List<api.FloodlightActivityDynamicTag> o) { |
| 3475 unittest.expect(o, unittest.hasLength(2)); | 3547 unittest.expect(o, unittest.hasLength(2)); |
| 3476 checkFloodlightActivityDynamicTag(o[0]); | 3548 checkFloodlightActivityDynamicTag(o[0]); |
| 3477 checkFloodlightActivityDynamicTag(o[1]); | 3549 checkFloodlightActivityDynamicTag(o[1]); |
| 3478 } | 3550 } |
| 3479 | 3551 |
| 3480 buildUnnamed331() { | 3552 buildUnnamed1377() { |
| 3481 var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); | 3553 var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); |
| 3482 o.add(buildFloodlightActivityPublisherDynamicTag()); | 3554 o.add(buildFloodlightActivityPublisherDynamicTag()); |
| 3483 o.add(buildFloodlightActivityPublisherDynamicTag()); | 3555 o.add(buildFloodlightActivityPublisherDynamicTag()); |
| 3484 return o; | 3556 return o; |
| 3485 } | 3557 } |
| 3486 | 3558 |
| 3487 checkUnnamed331(core.List<api.FloodlightActivityPublisherDynamicTag> o) { | 3559 checkUnnamed1377(core.List<api.FloodlightActivityPublisherDynamicTag> o) { |
| 3488 unittest.expect(o, unittest.hasLength(2)); | 3560 unittest.expect(o, unittest.hasLength(2)); |
| 3489 checkFloodlightActivityPublisherDynamicTag(o[0]); | 3561 checkFloodlightActivityPublisherDynamicTag(o[0]); |
| 3490 checkFloodlightActivityPublisherDynamicTag(o[1]); | 3562 checkFloodlightActivityPublisherDynamicTag(o[1]); |
| 3491 } | 3563 } |
| 3492 | 3564 |
| 3493 buildUnnamed332() { | 3565 buildUnnamed1378() { |
| 3494 var o = new core.List<core.String>(); | 3566 var o = new core.List<core.String>(); |
| 3495 o.add("foo"); | 3567 o.add("foo"); |
| 3496 o.add("foo"); | 3568 o.add("foo"); |
| 3497 return o; | 3569 return o; |
| 3498 } | 3570 } |
| 3499 | 3571 |
| 3500 checkUnnamed332(core.List<core.String> o) { | 3572 checkUnnamed1378(core.List<core.String> o) { |
| 3501 unittest.expect(o, unittest.hasLength(2)); | 3573 unittest.expect(o, unittest.hasLength(2)); |
| 3502 unittest.expect(o[0], unittest.equals('foo')); | 3574 unittest.expect(o[0], unittest.equals('foo')); |
| 3503 unittest.expect(o[1], unittest.equals('foo')); | 3575 unittest.expect(o[1], unittest.equals('foo')); |
| 3504 } | 3576 } |
| 3505 | 3577 |
| 3506 core.int buildCounterFloodlightActivity = 0; | 3578 core.int buildCounterFloodlightActivity = 0; |
| 3507 buildFloodlightActivity() { | 3579 buildFloodlightActivity() { |
| 3508 var o = new api.FloodlightActivity(); | 3580 var o = new api.FloodlightActivity(); |
| 3509 buildCounterFloodlightActivity++; | 3581 buildCounterFloodlightActivity++; |
| 3510 if (buildCounterFloodlightActivity < 3) { | 3582 if (buildCounterFloodlightActivity < 3) { |
| 3511 o.accountId = "foo"; | 3583 o.accountId = "foo"; |
| 3512 o.advertiserId = "foo"; | 3584 o.advertiserId = "foo"; |
| 3513 o.advertiserIdDimensionValue = buildDimensionValue(); | 3585 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 3514 o.cacheBustingType = "foo"; | 3586 o.cacheBustingType = "foo"; |
| 3515 o.countingMethod = "foo"; | 3587 o.countingMethod = "foo"; |
| 3516 o.defaultTags = buildUnnamed330(); | 3588 o.defaultTags = buildUnnamed1376(); |
| 3517 o.expectedUrl = "foo"; | 3589 o.expectedUrl = "foo"; |
| 3518 o.floodlightActivityGroupId = "foo"; | 3590 o.floodlightActivityGroupId = "foo"; |
| 3519 o.floodlightActivityGroupName = "foo"; | 3591 o.floodlightActivityGroupName = "foo"; |
| 3520 o.floodlightActivityGroupTagString = "foo"; | 3592 o.floodlightActivityGroupTagString = "foo"; |
| 3521 o.floodlightActivityGroupType = "foo"; | 3593 o.floodlightActivityGroupType = "foo"; |
| 3522 o.floodlightConfigurationId = "foo"; | 3594 o.floodlightConfigurationId = "foo"; |
| 3523 o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); | 3595 o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); |
| 3524 o.hidden = true; | 3596 o.hidden = true; |
| 3525 o.id = "foo"; | 3597 o.id = "foo"; |
| 3526 o.idDimensionValue = buildDimensionValue(); | 3598 o.idDimensionValue = buildDimensionValue(); |
| 3527 o.imageTagEnabled = true; | 3599 o.imageTagEnabled = true; |
| 3528 o.kind = "foo"; | 3600 o.kind = "foo"; |
| 3529 o.name = "foo"; | 3601 o.name = "foo"; |
| 3530 o.notes = "foo"; | 3602 o.notes = "foo"; |
| 3531 o.publisherTags = buildUnnamed331(); | 3603 o.publisherTags = buildUnnamed1377(); |
| 3532 o.secure = true; | 3604 o.secure = true; |
| 3533 o.sslCompliant = true; | 3605 o.sslCompliant = true; |
| 3534 o.sslRequired = true; | 3606 o.sslRequired = true; |
| 3535 o.subaccountId = "foo"; | 3607 o.subaccountId = "foo"; |
| 3536 o.tagFormat = "foo"; | 3608 o.tagFormat = "foo"; |
| 3537 o.tagString = "foo"; | 3609 o.tagString = "foo"; |
| 3538 o.userDefinedVariableTypes = buildUnnamed332(); | 3610 o.userDefinedVariableTypes = buildUnnamed1378(); |
| 3539 } | 3611 } |
| 3540 buildCounterFloodlightActivity--; | 3612 buildCounterFloodlightActivity--; |
| 3541 return o; | 3613 return o; |
| 3542 } | 3614 } |
| 3543 | 3615 |
| 3544 checkFloodlightActivity(api.FloodlightActivity o) { | 3616 checkFloodlightActivity(api.FloodlightActivity o) { |
| 3545 buildCounterFloodlightActivity++; | 3617 buildCounterFloodlightActivity++; |
| 3546 if (buildCounterFloodlightActivity < 3) { | 3618 if (buildCounterFloodlightActivity < 3) { |
| 3547 unittest.expect(o.accountId, unittest.equals('foo')); | 3619 unittest.expect(o.accountId, unittest.equals('foo')); |
| 3548 unittest.expect(o.advertiserId, unittest.equals('foo')); | 3620 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 3549 checkDimensionValue(o.advertiserIdDimensionValue); | 3621 checkDimensionValue(o.advertiserIdDimensionValue); |
| 3550 unittest.expect(o.cacheBustingType, unittest.equals('foo')); | 3622 unittest.expect(o.cacheBustingType, unittest.equals('foo')); |
| 3551 unittest.expect(o.countingMethod, unittest.equals('foo')); | 3623 unittest.expect(o.countingMethod, unittest.equals('foo')); |
| 3552 checkUnnamed330(o.defaultTags); | 3624 checkUnnamed1376(o.defaultTags); |
| 3553 unittest.expect(o.expectedUrl, unittest.equals('foo')); | 3625 unittest.expect(o.expectedUrl, unittest.equals('foo')); |
| 3554 unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); | 3626 unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); |
| 3555 unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); | 3627 unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); |
| 3556 unittest.expect(o.floodlightActivityGroupTagString, unittest.equals('foo')); | 3628 unittest.expect(o.floodlightActivityGroupTagString, unittest.equals('foo')); |
| 3557 unittest.expect(o.floodlightActivityGroupType, unittest.equals('foo')); | 3629 unittest.expect(o.floodlightActivityGroupType, unittest.equals('foo')); |
| 3558 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); | 3630 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); |
| 3559 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); | 3631 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); |
| 3560 unittest.expect(o.hidden, unittest.isTrue); | 3632 unittest.expect(o.hidden, unittest.isTrue); |
| 3561 unittest.expect(o.id, unittest.equals('foo')); | 3633 unittest.expect(o.id, unittest.equals('foo')); |
| 3562 checkDimensionValue(o.idDimensionValue); | 3634 checkDimensionValue(o.idDimensionValue); |
| 3563 unittest.expect(o.imageTagEnabled, unittest.isTrue); | 3635 unittest.expect(o.imageTagEnabled, unittest.isTrue); |
| 3564 unittest.expect(o.kind, unittest.equals('foo')); | 3636 unittest.expect(o.kind, unittest.equals('foo')); |
| 3565 unittest.expect(o.name, unittest.equals('foo')); | 3637 unittest.expect(o.name, unittest.equals('foo')); |
| 3566 unittest.expect(o.notes, unittest.equals('foo')); | 3638 unittest.expect(o.notes, unittest.equals('foo')); |
| 3567 checkUnnamed331(o.publisherTags); | 3639 checkUnnamed1377(o.publisherTags); |
| 3568 unittest.expect(o.secure, unittest.isTrue); | 3640 unittest.expect(o.secure, unittest.isTrue); |
| 3569 unittest.expect(o.sslCompliant, unittest.isTrue); | 3641 unittest.expect(o.sslCompliant, unittest.isTrue); |
| 3570 unittest.expect(o.sslRequired, unittest.isTrue); | 3642 unittest.expect(o.sslRequired, unittest.isTrue); |
| 3571 unittest.expect(o.subaccountId, unittest.equals('foo')); | 3643 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 3572 unittest.expect(o.tagFormat, unittest.equals('foo')); | 3644 unittest.expect(o.tagFormat, unittest.equals('foo')); |
| 3573 unittest.expect(o.tagString, unittest.equals('foo')); | 3645 unittest.expect(o.tagString, unittest.equals('foo')); |
| 3574 checkUnnamed332(o.userDefinedVariableTypes); | 3646 checkUnnamed1378(o.userDefinedVariableTypes); |
| 3575 } | 3647 } |
| 3576 buildCounterFloodlightActivity--; | 3648 buildCounterFloodlightActivity--; |
| 3577 } | 3649 } |
| 3578 | 3650 |
| 3579 core.int buildCounterFloodlightActivityDynamicTag = 0; | 3651 core.int buildCounterFloodlightActivityDynamicTag = 0; |
| 3580 buildFloodlightActivityDynamicTag() { | 3652 buildFloodlightActivityDynamicTag() { |
| 3581 var o = new api.FloodlightActivityDynamicTag(); | 3653 var o = new api.FloodlightActivityDynamicTag(); |
| 3582 buildCounterFloodlightActivityDynamicTag++; | 3654 buildCounterFloodlightActivityDynamicTag++; |
| 3583 if (buildCounterFloodlightActivityDynamicTag < 3) { | 3655 if (buildCounterFloodlightActivityDynamicTag < 3) { |
| 3584 o.id = "foo"; | 3656 o.id = "foo"; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3633 checkDimensionValue(o.idDimensionValue); | 3705 checkDimensionValue(o.idDimensionValue); |
| 3634 unittest.expect(o.kind, unittest.equals('foo')); | 3706 unittest.expect(o.kind, unittest.equals('foo')); |
| 3635 unittest.expect(o.name, unittest.equals('foo')); | 3707 unittest.expect(o.name, unittest.equals('foo')); |
| 3636 unittest.expect(o.subaccountId, unittest.equals('foo')); | 3708 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 3637 unittest.expect(o.tagString, unittest.equals('foo')); | 3709 unittest.expect(o.tagString, unittest.equals('foo')); |
| 3638 unittest.expect(o.type, unittest.equals('foo')); | 3710 unittest.expect(o.type, unittest.equals('foo')); |
| 3639 } | 3711 } |
| 3640 buildCounterFloodlightActivityGroup--; | 3712 buildCounterFloodlightActivityGroup--; |
| 3641 } | 3713 } |
| 3642 | 3714 |
| 3643 buildUnnamed333() { | 3715 buildUnnamed1379() { |
| 3644 var o = new core.List<api.FloodlightActivityGroup>(); | 3716 var o = new core.List<api.FloodlightActivityGroup>(); |
| 3645 o.add(buildFloodlightActivityGroup()); | 3717 o.add(buildFloodlightActivityGroup()); |
| 3646 o.add(buildFloodlightActivityGroup()); | 3718 o.add(buildFloodlightActivityGroup()); |
| 3647 return o; | 3719 return o; |
| 3648 } | 3720 } |
| 3649 | 3721 |
| 3650 checkUnnamed333(core.List<api.FloodlightActivityGroup> o) { | 3722 checkUnnamed1379(core.List<api.FloodlightActivityGroup> o) { |
| 3651 unittest.expect(o, unittest.hasLength(2)); | 3723 unittest.expect(o, unittest.hasLength(2)); |
| 3652 checkFloodlightActivityGroup(o[0]); | 3724 checkFloodlightActivityGroup(o[0]); |
| 3653 checkFloodlightActivityGroup(o[1]); | 3725 checkFloodlightActivityGroup(o[1]); |
| 3654 } | 3726 } |
| 3655 | 3727 |
| 3656 core.int buildCounterFloodlightActivityGroupsListResponse = 0; | 3728 core.int buildCounterFloodlightActivityGroupsListResponse = 0; |
| 3657 buildFloodlightActivityGroupsListResponse() { | 3729 buildFloodlightActivityGroupsListResponse() { |
| 3658 var o = new api.FloodlightActivityGroupsListResponse(); | 3730 var o = new api.FloodlightActivityGroupsListResponse(); |
| 3659 buildCounterFloodlightActivityGroupsListResponse++; | 3731 buildCounterFloodlightActivityGroupsListResponse++; |
| 3660 if (buildCounterFloodlightActivityGroupsListResponse < 3) { | 3732 if (buildCounterFloodlightActivityGroupsListResponse < 3) { |
| 3661 o.floodlightActivityGroups = buildUnnamed333(); | 3733 o.floodlightActivityGroups = buildUnnamed1379(); |
| 3662 o.kind = "foo"; | 3734 o.kind = "foo"; |
| 3663 o.nextPageToken = "foo"; | 3735 o.nextPageToken = "foo"; |
| 3664 } | 3736 } |
| 3665 buildCounterFloodlightActivityGroupsListResponse--; | 3737 buildCounterFloodlightActivityGroupsListResponse--; |
| 3666 return o; | 3738 return o; |
| 3667 } | 3739 } |
| 3668 | 3740 |
| 3669 checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListRespon
se o) { | 3741 checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListRespon
se o) { |
| 3670 buildCounterFloodlightActivityGroupsListResponse++; | 3742 buildCounterFloodlightActivityGroupsListResponse++; |
| 3671 if (buildCounterFloodlightActivityGroupsListResponse < 3) { | 3743 if (buildCounterFloodlightActivityGroupsListResponse < 3) { |
| 3672 checkUnnamed333(o.floodlightActivityGroups); | 3744 checkUnnamed1379(o.floodlightActivityGroups); |
| 3673 unittest.expect(o.kind, unittest.equals('foo')); | 3745 unittest.expect(o.kind, unittest.equals('foo')); |
| 3674 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3746 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3675 } | 3747 } |
| 3676 buildCounterFloodlightActivityGroupsListResponse--; | 3748 buildCounterFloodlightActivityGroupsListResponse--; |
| 3677 } | 3749 } |
| 3678 | 3750 |
| 3679 core.int buildCounterFloodlightActivityPublisherDynamicTag = 0; | 3751 core.int buildCounterFloodlightActivityPublisherDynamicTag = 0; |
| 3680 buildFloodlightActivityPublisherDynamicTag() { | 3752 buildFloodlightActivityPublisherDynamicTag() { |
| 3681 var o = new api.FloodlightActivityPublisherDynamicTag(); | 3753 var o = new api.FloodlightActivityPublisherDynamicTag(); |
| 3682 buildCounterFloodlightActivityPublisherDynamicTag++; | 3754 buildCounterFloodlightActivityPublisherDynamicTag++; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3698 unittest.expect(o.clickThrough, unittest.isTrue); | 3770 unittest.expect(o.clickThrough, unittest.isTrue); |
| 3699 unittest.expect(o.directorySiteId, unittest.equals('foo')); | 3771 unittest.expect(o.directorySiteId, unittest.equals('foo')); |
| 3700 checkFloodlightActivityDynamicTag(o.dynamicTag); | 3772 checkFloodlightActivityDynamicTag(o.dynamicTag); |
| 3701 unittest.expect(o.siteId, unittest.equals('foo')); | 3773 unittest.expect(o.siteId, unittest.equals('foo')); |
| 3702 checkDimensionValue(o.siteIdDimensionValue); | 3774 checkDimensionValue(o.siteIdDimensionValue); |
| 3703 unittest.expect(o.viewThrough, unittest.isTrue); | 3775 unittest.expect(o.viewThrough, unittest.isTrue); |
| 3704 } | 3776 } |
| 3705 buildCounterFloodlightActivityPublisherDynamicTag--; | 3777 buildCounterFloodlightActivityPublisherDynamicTag--; |
| 3706 } | 3778 } |
| 3707 | 3779 |
| 3708 buildUnnamed334() { | 3780 buildUnnamed1380() { |
| 3709 var o = new core.List<core.String>(); | 3781 var o = new core.List<core.String>(); |
| 3710 o.add("foo"); | 3782 o.add("foo"); |
| 3711 o.add("foo"); | 3783 o.add("foo"); |
| 3712 return o; | 3784 return o; |
| 3713 } | 3785 } |
| 3714 | 3786 |
| 3715 checkUnnamed334(core.List<core.String> o) { | 3787 checkUnnamed1380(core.List<core.String> o) { |
| 3716 unittest.expect(o, unittest.hasLength(2)); | 3788 unittest.expect(o, unittest.hasLength(2)); |
| 3717 unittest.expect(o[0], unittest.equals('foo')); | 3789 unittest.expect(o[0], unittest.equals('foo')); |
| 3718 unittest.expect(o[1], unittest.equals('foo')); | 3790 unittest.expect(o[1], unittest.equals('foo')); |
| 3719 } | 3791 } |
| 3720 | 3792 |
| 3721 buildUnnamed335() { | 3793 buildUnnamed1381() { |
| 3794 var o = new core.List<api.ThirdPartyAuthenticationToken>(); |
| 3795 o.add(buildThirdPartyAuthenticationToken()); |
| 3796 o.add(buildThirdPartyAuthenticationToken()); |
| 3797 return o; |
| 3798 } |
| 3799 |
| 3800 checkUnnamed1381(core.List<api.ThirdPartyAuthenticationToken> o) { |
| 3801 unittest.expect(o, unittest.hasLength(2)); |
| 3802 checkThirdPartyAuthenticationToken(o[0]); |
| 3803 checkThirdPartyAuthenticationToken(o[1]); |
| 3804 } |
| 3805 |
| 3806 buildUnnamed1382() { |
| 3722 var o = new core.List<api.UserDefinedVariableConfiguration>(); | 3807 var o = new core.List<api.UserDefinedVariableConfiguration>(); |
| 3723 o.add(buildUserDefinedVariableConfiguration()); | 3808 o.add(buildUserDefinedVariableConfiguration()); |
| 3724 o.add(buildUserDefinedVariableConfiguration()); | 3809 o.add(buildUserDefinedVariableConfiguration()); |
| 3725 return o; | 3810 return o; |
| 3726 } | 3811 } |
| 3727 | 3812 |
| 3728 checkUnnamed335(core.List<api.UserDefinedVariableConfiguration> o) { | 3813 checkUnnamed1382(core.List<api.UserDefinedVariableConfiguration> o) { |
| 3729 unittest.expect(o, unittest.hasLength(2)); | 3814 unittest.expect(o, unittest.hasLength(2)); |
| 3730 checkUserDefinedVariableConfiguration(o[0]); | 3815 checkUserDefinedVariableConfiguration(o[0]); |
| 3731 checkUserDefinedVariableConfiguration(o[1]); | 3816 checkUserDefinedVariableConfiguration(o[1]); |
| 3732 } | 3817 } |
| 3733 | 3818 |
| 3734 core.int buildCounterFloodlightConfiguration = 0; | 3819 core.int buildCounterFloodlightConfiguration = 0; |
| 3735 buildFloodlightConfiguration() { | 3820 buildFloodlightConfiguration() { |
| 3736 var o = new api.FloodlightConfiguration(); | 3821 var o = new api.FloodlightConfiguration(); |
| 3737 buildCounterFloodlightConfiguration++; | 3822 buildCounterFloodlightConfiguration++; |
| 3738 if (buildCounterFloodlightConfiguration < 3) { | 3823 if (buildCounterFloodlightConfiguration < 3) { |
| 3739 o.accountId = "foo"; | 3824 o.accountId = "foo"; |
| 3740 o.advertiserId = "foo"; | 3825 o.advertiserId = "foo"; |
| 3741 o.advertiserIdDimensionValue = buildDimensionValue(); | 3826 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 3742 o.analyticsDataSharingEnabled = true; | 3827 o.analyticsDataSharingEnabled = true; |
| 3743 o.exposureToConversionEnabled = true; | 3828 o.exposureToConversionEnabled = true; |
| 3744 o.firstDayOfWeek = "foo"; | 3829 o.firstDayOfWeek = "foo"; |
| 3745 o.id = "foo"; | 3830 o.id = "foo"; |
| 3746 o.idDimensionValue = buildDimensionValue(); | 3831 o.idDimensionValue = buildDimensionValue(); |
| 3832 o.inAppAttributionTrackingEnabled = true; |
| 3747 o.kind = "foo"; | 3833 o.kind = "foo"; |
| 3748 o.lookbackConfiguration = buildLookbackConfiguration(); | 3834 o.lookbackConfiguration = buildLookbackConfiguration(); |
| 3749 o.naturalSearchConversionAttributionOption = "foo"; | 3835 o.naturalSearchConversionAttributionOption = "foo"; |
| 3750 o.omnitureSettings = buildOmnitureSettings(); | 3836 o.omnitureSettings = buildOmnitureSettings(); |
| 3751 o.sslRequired = true; | 3837 o.sslRequired = true; |
| 3752 o.standardVariableTypes = buildUnnamed334(); | 3838 o.standardVariableTypes = buildUnnamed1380(); |
| 3753 o.subaccountId = "foo"; | 3839 o.subaccountId = "foo"; |
| 3754 o.tagSettings = buildTagSettings(); | 3840 o.tagSettings = buildTagSettings(); |
| 3755 o.userDefinedVariableConfigurations = buildUnnamed335(); | 3841 o.thirdPartyAuthenticationTokens = buildUnnamed1381(); |
| 3842 o.userDefinedVariableConfigurations = buildUnnamed1382(); |
| 3756 } | 3843 } |
| 3757 buildCounterFloodlightConfiguration--; | 3844 buildCounterFloodlightConfiguration--; |
| 3758 return o; | 3845 return o; |
| 3759 } | 3846 } |
| 3760 | 3847 |
| 3761 checkFloodlightConfiguration(api.FloodlightConfiguration o) { | 3848 checkFloodlightConfiguration(api.FloodlightConfiguration o) { |
| 3762 buildCounterFloodlightConfiguration++; | 3849 buildCounterFloodlightConfiguration++; |
| 3763 if (buildCounterFloodlightConfiguration < 3) { | 3850 if (buildCounterFloodlightConfiguration < 3) { |
| 3764 unittest.expect(o.accountId, unittest.equals('foo')); | 3851 unittest.expect(o.accountId, unittest.equals('foo')); |
| 3765 unittest.expect(o.advertiserId, unittest.equals('foo')); | 3852 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 3766 checkDimensionValue(o.advertiserIdDimensionValue); | 3853 checkDimensionValue(o.advertiserIdDimensionValue); |
| 3767 unittest.expect(o.analyticsDataSharingEnabled, unittest.isTrue); | 3854 unittest.expect(o.analyticsDataSharingEnabled, unittest.isTrue); |
| 3768 unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); | 3855 unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); |
| 3769 unittest.expect(o.firstDayOfWeek, unittest.equals('foo')); | 3856 unittest.expect(o.firstDayOfWeek, unittest.equals('foo')); |
| 3770 unittest.expect(o.id, unittest.equals('foo')); | 3857 unittest.expect(o.id, unittest.equals('foo')); |
| 3771 checkDimensionValue(o.idDimensionValue); | 3858 checkDimensionValue(o.idDimensionValue); |
| 3859 unittest.expect(o.inAppAttributionTrackingEnabled, unittest.isTrue); |
| 3772 unittest.expect(o.kind, unittest.equals('foo')); | 3860 unittest.expect(o.kind, unittest.equals('foo')); |
| 3773 checkLookbackConfiguration(o.lookbackConfiguration); | 3861 checkLookbackConfiguration(o.lookbackConfiguration); |
| 3774 unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals(
'foo')); | 3862 unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals(
'foo')); |
| 3775 checkOmnitureSettings(o.omnitureSettings); | 3863 checkOmnitureSettings(o.omnitureSettings); |
| 3776 unittest.expect(o.sslRequired, unittest.isTrue); | 3864 unittest.expect(o.sslRequired, unittest.isTrue); |
| 3777 checkUnnamed334(o.standardVariableTypes); | 3865 checkUnnamed1380(o.standardVariableTypes); |
| 3778 unittest.expect(o.subaccountId, unittest.equals('foo')); | 3866 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 3779 checkTagSettings(o.tagSettings); | 3867 checkTagSettings(o.tagSettings); |
| 3780 checkUnnamed335(o.userDefinedVariableConfigurations); | 3868 checkUnnamed1381(o.thirdPartyAuthenticationTokens); |
| 3869 checkUnnamed1382(o.userDefinedVariableConfigurations); |
| 3781 } | 3870 } |
| 3782 buildCounterFloodlightConfiguration--; | 3871 buildCounterFloodlightConfiguration--; |
| 3783 } | 3872 } |
| 3784 | 3873 |
| 3785 buildUnnamed336() { | 3874 buildUnnamed1383() { |
| 3786 var o = new core.List<api.FloodlightConfiguration>(); | 3875 var o = new core.List<api.FloodlightConfiguration>(); |
| 3787 o.add(buildFloodlightConfiguration()); | 3876 o.add(buildFloodlightConfiguration()); |
| 3788 o.add(buildFloodlightConfiguration()); | 3877 o.add(buildFloodlightConfiguration()); |
| 3789 return o; | 3878 return o; |
| 3790 } | 3879 } |
| 3791 | 3880 |
| 3792 checkUnnamed336(core.List<api.FloodlightConfiguration> o) { | 3881 checkUnnamed1383(core.List<api.FloodlightConfiguration> o) { |
| 3793 unittest.expect(o, unittest.hasLength(2)); | 3882 unittest.expect(o, unittest.hasLength(2)); |
| 3794 checkFloodlightConfiguration(o[0]); | 3883 checkFloodlightConfiguration(o[0]); |
| 3795 checkFloodlightConfiguration(o[1]); | 3884 checkFloodlightConfiguration(o[1]); |
| 3796 } | 3885 } |
| 3797 | 3886 |
| 3798 core.int buildCounterFloodlightConfigurationsListResponse = 0; | 3887 core.int buildCounterFloodlightConfigurationsListResponse = 0; |
| 3799 buildFloodlightConfigurationsListResponse() { | 3888 buildFloodlightConfigurationsListResponse() { |
| 3800 var o = new api.FloodlightConfigurationsListResponse(); | 3889 var o = new api.FloodlightConfigurationsListResponse(); |
| 3801 buildCounterFloodlightConfigurationsListResponse++; | 3890 buildCounterFloodlightConfigurationsListResponse++; |
| 3802 if (buildCounterFloodlightConfigurationsListResponse < 3) { | 3891 if (buildCounterFloodlightConfigurationsListResponse < 3) { |
| 3803 o.floodlightConfigurations = buildUnnamed336(); | 3892 o.floodlightConfigurations = buildUnnamed1383(); |
| 3804 o.kind = "foo"; | 3893 o.kind = "foo"; |
| 3805 } | 3894 } |
| 3806 buildCounterFloodlightConfigurationsListResponse--; | 3895 buildCounterFloodlightConfigurationsListResponse--; |
| 3807 return o; | 3896 return o; |
| 3808 } | 3897 } |
| 3809 | 3898 |
| 3810 checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListRespon
se o) { | 3899 checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListRespon
se o) { |
| 3811 buildCounterFloodlightConfigurationsListResponse++; | 3900 buildCounterFloodlightConfigurationsListResponse++; |
| 3812 if (buildCounterFloodlightConfigurationsListResponse < 3) { | 3901 if (buildCounterFloodlightConfigurationsListResponse < 3) { |
| 3813 checkUnnamed336(o.floodlightConfigurations); | 3902 checkUnnamed1383(o.floodlightConfigurations); |
| 3814 unittest.expect(o.kind, unittest.equals('foo')); | 3903 unittest.expect(o.kind, unittest.equals('foo')); |
| 3815 } | 3904 } |
| 3816 buildCounterFloodlightConfigurationsListResponse--; | 3905 buildCounterFloodlightConfigurationsListResponse--; |
| 3817 } | 3906 } |
| 3818 | 3907 |
| 3819 buildUnnamed337() { | 3908 buildUnnamed1384() { |
| 3820 var o = new core.List<api.Dimension>(); | 3909 var o = new core.List<api.Dimension>(); |
| 3821 o.add(buildDimension()); | 3910 o.add(buildDimension()); |
| 3822 o.add(buildDimension()); | 3911 o.add(buildDimension()); |
| 3823 return o; | 3912 return o; |
| 3824 } | 3913 } |
| 3825 | 3914 |
| 3826 checkUnnamed337(core.List<api.Dimension> o) { | 3915 checkUnnamed1384(core.List<api.Dimension> o) { |
| 3827 unittest.expect(o, unittest.hasLength(2)); | 3916 unittest.expect(o, unittest.hasLength(2)); |
| 3828 checkDimension(o[0]); | 3917 checkDimension(o[0]); |
| 3829 checkDimension(o[1]); | 3918 checkDimension(o[1]); |
| 3830 } | 3919 } |
| 3831 | 3920 |
| 3832 buildUnnamed338() { | 3921 buildUnnamed1385() { |
| 3833 var o = new core.List<api.Dimension>(); | 3922 var o = new core.List<api.Dimension>(); |
| 3834 o.add(buildDimension()); | 3923 o.add(buildDimension()); |
| 3835 o.add(buildDimension()); | 3924 o.add(buildDimension()); |
| 3836 return o; | 3925 return o; |
| 3837 } | 3926 } |
| 3838 | 3927 |
| 3839 checkUnnamed338(core.List<api.Dimension> o) { | 3928 checkUnnamed1385(core.List<api.Dimension> o) { |
| 3840 unittest.expect(o, unittest.hasLength(2)); | 3929 unittest.expect(o, unittest.hasLength(2)); |
| 3841 checkDimension(o[0]); | 3930 checkDimension(o[0]); |
| 3842 checkDimension(o[1]); | 3931 checkDimension(o[1]); |
| 3843 } | 3932 } |
| 3844 | 3933 |
| 3845 buildUnnamed339() { | 3934 buildUnnamed1386() { |
| 3846 var o = new core.List<api.Metric>(); | 3935 var o = new core.List<api.Metric>(); |
| 3847 o.add(buildMetric()); | 3936 o.add(buildMetric()); |
| 3848 o.add(buildMetric()); | 3937 o.add(buildMetric()); |
| 3849 return o; | 3938 return o; |
| 3850 } | 3939 } |
| 3851 | 3940 |
| 3852 checkUnnamed339(core.List<api.Metric> o) { | 3941 checkUnnamed1386(core.List<api.Metric> o) { |
| 3853 unittest.expect(o, unittest.hasLength(2)); | 3942 unittest.expect(o, unittest.hasLength(2)); |
| 3854 checkMetric(o[0]); | 3943 checkMetric(o[0]); |
| 3855 checkMetric(o[1]); | 3944 checkMetric(o[1]); |
| 3856 } | 3945 } |
| 3857 | 3946 |
| 3858 core.int buildCounterFloodlightReportCompatibleFields = 0; | 3947 core.int buildCounterFloodlightReportCompatibleFields = 0; |
| 3859 buildFloodlightReportCompatibleFields() { | 3948 buildFloodlightReportCompatibleFields() { |
| 3860 var o = new api.FloodlightReportCompatibleFields(); | 3949 var o = new api.FloodlightReportCompatibleFields(); |
| 3861 buildCounterFloodlightReportCompatibleFields++; | 3950 buildCounterFloodlightReportCompatibleFields++; |
| 3862 if (buildCounterFloodlightReportCompatibleFields < 3) { | 3951 if (buildCounterFloodlightReportCompatibleFields < 3) { |
| 3863 o.dimensionFilters = buildUnnamed337(); | 3952 o.dimensionFilters = buildUnnamed1384(); |
| 3864 o.dimensions = buildUnnamed338(); | 3953 o.dimensions = buildUnnamed1385(); |
| 3865 o.kind = "foo"; | 3954 o.kind = "foo"; |
| 3866 o.metrics = buildUnnamed339(); | 3955 o.metrics = buildUnnamed1386(); |
| 3867 } | 3956 } |
| 3868 buildCounterFloodlightReportCompatibleFields--; | 3957 buildCounterFloodlightReportCompatibleFields--; |
| 3869 return o; | 3958 return o; |
| 3870 } | 3959 } |
| 3871 | 3960 |
| 3872 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { | 3961 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { |
| 3873 buildCounterFloodlightReportCompatibleFields++; | 3962 buildCounterFloodlightReportCompatibleFields++; |
| 3874 if (buildCounterFloodlightReportCompatibleFields < 3) { | 3963 if (buildCounterFloodlightReportCompatibleFields < 3) { |
| 3875 checkUnnamed337(o.dimensionFilters); | 3964 checkUnnamed1384(o.dimensionFilters); |
| 3876 checkUnnamed338(o.dimensions); | 3965 checkUnnamed1385(o.dimensions); |
| 3877 unittest.expect(o.kind, unittest.equals('foo')); | 3966 unittest.expect(o.kind, unittest.equals('foo')); |
| 3878 checkUnnamed339(o.metrics); | 3967 checkUnnamed1386(o.metrics); |
| 3879 } | 3968 } |
| 3880 buildCounterFloodlightReportCompatibleFields--; | 3969 buildCounterFloodlightReportCompatibleFields--; |
| 3881 } | 3970 } |
| 3882 | 3971 |
| 3883 core.int buildCounterFrequencyCap = 0; | 3972 core.int buildCounterFrequencyCap = 0; |
| 3884 buildFrequencyCap() { | 3973 buildFrequencyCap() { |
| 3885 var o = new api.FrequencyCap(); | 3974 var o = new api.FrequencyCap(); |
| 3886 buildCounterFrequencyCap++; | 3975 buildCounterFrequencyCap++; |
| 3887 if (buildCounterFrequencyCap < 3) { | 3976 if (buildCounterFrequencyCap < 3) { |
| 3888 o.duration = "foo"; | 3977 o.duration = "foo"; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3921 if (buildCounterFsCommand < 3) { | 4010 if (buildCounterFsCommand < 3) { |
| 3922 unittest.expect(o.left, unittest.equals(42)); | 4011 unittest.expect(o.left, unittest.equals(42)); |
| 3923 unittest.expect(o.positionOption, unittest.equals('foo')); | 4012 unittest.expect(o.positionOption, unittest.equals('foo')); |
| 3924 unittest.expect(o.top, unittest.equals(42)); | 4013 unittest.expect(o.top, unittest.equals(42)); |
| 3925 unittest.expect(o.windowHeight, unittest.equals(42)); | 4014 unittest.expect(o.windowHeight, unittest.equals(42)); |
| 3926 unittest.expect(o.windowWidth, unittest.equals(42)); | 4015 unittest.expect(o.windowWidth, unittest.equals(42)); |
| 3927 } | 4016 } |
| 3928 buildCounterFsCommand--; | 4017 buildCounterFsCommand--; |
| 3929 } | 4018 } |
| 3930 | 4019 |
| 3931 buildUnnamed340() { | 4020 buildUnnamed1387() { |
| 3932 var o = new core.List<api.City>(); | 4021 var o = new core.List<api.City>(); |
| 3933 o.add(buildCity()); | 4022 o.add(buildCity()); |
| 3934 o.add(buildCity()); | 4023 o.add(buildCity()); |
| 3935 return o; | 4024 return o; |
| 3936 } | 4025 } |
| 3937 | 4026 |
| 3938 checkUnnamed340(core.List<api.City> o) { | 4027 checkUnnamed1387(core.List<api.City> o) { |
| 3939 unittest.expect(o, unittest.hasLength(2)); | 4028 unittest.expect(o, unittest.hasLength(2)); |
| 3940 checkCity(o[0]); | 4029 checkCity(o[0]); |
| 3941 checkCity(o[1]); | 4030 checkCity(o[1]); |
| 3942 } | 4031 } |
| 3943 | 4032 |
| 3944 buildUnnamed341() { | 4033 buildUnnamed1388() { |
| 3945 var o = new core.List<api.Country>(); | 4034 var o = new core.List<api.Country>(); |
| 3946 o.add(buildCountry()); | 4035 o.add(buildCountry()); |
| 3947 o.add(buildCountry()); | 4036 o.add(buildCountry()); |
| 3948 return o; | 4037 return o; |
| 3949 } | 4038 } |
| 3950 | 4039 |
| 3951 checkUnnamed341(core.List<api.Country> o) { | 4040 checkUnnamed1388(core.List<api.Country> o) { |
| 3952 unittest.expect(o, unittest.hasLength(2)); | 4041 unittest.expect(o, unittest.hasLength(2)); |
| 3953 checkCountry(o[0]); | 4042 checkCountry(o[0]); |
| 3954 checkCountry(o[1]); | 4043 checkCountry(o[1]); |
| 3955 } | 4044 } |
| 3956 | 4045 |
| 3957 buildUnnamed342() { | 4046 buildUnnamed1389() { |
| 3958 var o = new core.List<api.Metro>(); | 4047 var o = new core.List<api.Metro>(); |
| 3959 o.add(buildMetro()); | 4048 o.add(buildMetro()); |
| 3960 o.add(buildMetro()); | 4049 o.add(buildMetro()); |
| 3961 return o; | 4050 return o; |
| 3962 } | 4051 } |
| 3963 | 4052 |
| 3964 checkUnnamed342(core.List<api.Metro> o) { | 4053 checkUnnamed1389(core.List<api.Metro> o) { |
| 3965 unittest.expect(o, unittest.hasLength(2)); | 4054 unittest.expect(o, unittest.hasLength(2)); |
| 3966 checkMetro(o[0]); | 4055 checkMetro(o[0]); |
| 3967 checkMetro(o[1]); | 4056 checkMetro(o[1]); |
| 3968 } | 4057 } |
| 3969 | 4058 |
| 3970 buildUnnamed343() { | 4059 buildUnnamed1390() { |
| 3971 var o = new core.List<api.PostalCode>(); | 4060 var o = new core.List<api.PostalCode>(); |
| 3972 o.add(buildPostalCode()); | 4061 o.add(buildPostalCode()); |
| 3973 o.add(buildPostalCode()); | 4062 o.add(buildPostalCode()); |
| 3974 return o; | 4063 return o; |
| 3975 } | 4064 } |
| 3976 | 4065 |
| 3977 checkUnnamed343(core.List<api.PostalCode> o) { | 4066 checkUnnamed1390(core.List<api.PostalCode> o) { |
| 3978 unittest.expect(o, unittest.hasLength(2)); | 4067 unittest.expect(o, unittest.hasLength(2)); |
| 3979 checkPostalCode(o[0]); | 4068 checkPostalCode(o[0]); |
| 3980 checkPostalCode(o[1]); | 4069 checkPostalCode(o[1]); |
| 3981 } | 4070 } |
| 3982 | 4071 |
| 3983 buildUnnamed344() { | 4072 buildUnnamed1391() { |
| 3984 var o = new core.List<api.Region>(); | 4073 var o = new core.List<api.Region>(); |
| 3985 o.add(buildRegion()); | 4074 o.add(buildRegion()); |
| 3986 o.add(buildRegion()); | 4075 o.add(buildRegion()); |
| 3987 return o; | 4076 return o; |
| 3988 } | 4077 } |
| 3989 | 4078 |
| 3990 checkUnnamed344(core.List<api.Region> o) { | 4079 checkUnnamed1391(core.List<api.Region> o) { |
| 3991 unittest.expect(o, unittest.hasLength(2)); | 4080 unittest.expect(o, unittest.hasLength(2)); |
| 3992 checkRegion(o[0]); | 4081 checkRegion(o[0]); |
| 3993 checkRegion(o[1]); | 4082 checkRegion(o[1]); |
| 3994 } | 4083 } |
| 3995 | 4084 |
| 3996 core.int buildCounterGeoTargeting = 0; | 4085 core.int buildCounterGeoTargeting = 0; |
| 3997 buildGeoTargeting() { | 4086 buildGeoTargeting() { |
| 3998 var o = new api.GeoTargeting(); | 4087 var o = new api.GeoTargeting(); |
| 3999 buildCounterGeoTargeting++; | 4088 buildCounterGeoTargeting++; |
| 4000 if (buildCounterGeoTargeting < 3) { | 4089 if (buildCounterGeoTargeting < 3) { |
| 4001 o.cities = buildUnnamed340(); | 4090 o.cities = buildUnnamed1387(); |
| 4002 o.countries = buildUnnamed341(); | 4091 o.countries = buildUnnamed1388(); |
| 4003 o.excludeCountries = true; | 4092 o.excludeCountries = true; |
| 4004 o.metros = buildUnnamed342(); | 4093 o.metros = buildUnnamed1389(); |
| 4005 o.postalCodes = buildUnnamed343(); | 4094 o.postalCodes = buildUnnamed1390(); |
| 4006 o.regions = buildUnnamed344(); | 4095 o.regions = buildUnnamed1391(); |
| 4007 } | 4096 } |
| 4008 buildCounterGeoTargeting--; | 4097 buildCounterGeoTargeting--; |
| 4009 return o; | 4098 return o; |
| 4010 } | 4099 } |
| 4011 | 4100 |
| 4012 checkGeoTargeting(api.GeoTargeting o) { | 4101 checkGeoTargeting(api.GeoTargeting o) { |
| 4013 buildCounterGeoTargeting++; | 4102 buildCounterGeoTargeting++; |
| 4014 if (buildCounterGeoTargeting < 3) { | 4103 if (buildCounterGeoTargeting < 3) { |
| 4015 checkUnnamed340(o.cities); | 4104 checkUnnamed1387(o.cities); |
| 4016 checkUnnamed341(o.countries); | 4105 checkUnnamed1388(o.countries); |
| 4017 unittest.expect(o.excludeCountries, unittest.isTrue); | 4106 unittest.expect(o.excludeCountries, unittest.isTrue); |
| 4018 checkUnnamed342(o.metros); | 4107 checkUnnamed1389(o.metros); |
| 4019 checkUnnamed343(o.postalCodes); | 4108 checkUnnamed1390(o.postalCodes); |
| 4020 checkUnnamed344(o.regions); | 4109 checkUnnamed1391(o.regions); |
| 4021 } | 4110 } |
| 4022 buildCounterGeoTargeting--; | 4111 buildCounterGeoTargeting--; |
| 4023 } | 4112 } |
| 4024 | 4113 |
| 4114 buildUnnamed1392() { |
| 4115 var o = new core.List<api.AdSlot>(); |
| 4116 o.add(buildAdSlot()); |
| 4117 o.add(buildAdSlot()); |
| 4118 return o; |
| 4119 } |
| 4120 |
| 4121 checkUnnamed1392(core.List<api.AdSlot> o) { |
| 4122 unittest.expect(o, unittest.hasLength(2)); |
| 4123 checkAdSlot(o[0]); |
| 4124 checkAdSlot(o[1]); |
| 4125 } |
| 4126 |
| 4127 core.int buildCounterInventoryItem = 0; |
| 4128 buildInventoryItem() { |
| 4129 var o = new api.InventoryItem(); |
| 4130 buildCounterInventoryItem++; |
| 4131 if (buildCounterInventoryItem < 3) { |
| 4132 o.accountId = "foo"; |
| 4133 o.adSlots = buildUnnamed1392(); |
| 4134 o.advertiserId = "foo"; |
| 4135 o.contentCategoryId = "foo"; |
| 4136 o.estimatedClickThroughRate = "foo"; |
| 4137 o.estimatedConversionRate = "foo"; |
| 4138 o.id = "foo"; |
| 4139 o.inPlan = true; |
| 4140 o.kind = "foo"; |
| 4141 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 4142 o.name = "foo"; |
| 4143 o.negotiationChannelId = "foo"; |
| 4144 o.orderId = "foo"; |
| 4145 o.placementStrategyId = "foo"; |
| 4146 o.pricing = buildPricing(); |
| 4147 o.projectId = "foo"; |
| 4148 o.rfpId = "foo"; |
| 4149 o.siteId = "foo"; |
| 4150 o.subaccountId = "foo"; |
| 4151 } |
| 4152 buildCounterInventoryItem--; |
| 4153 return o; |
| 4154 } |
| 4155 |
| 4156 checkInventoryItem(api.InventoryItem o) { |
| 4157 buildCounterInventoryItem++; |
| 4158 if (buildCounterInventoryItem < 3) { |
| 4159 unittest.expect(o.accountId, unittest.equals('foo')); |
| 4160 checkUnnamed1392(o.adSlots); |
| 4161 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 4162 unittest.expect(o.contentCategoryId, unittest.equals('foo')); |
| 4163 unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); |
| 4164 unittest.expect(o.estimatedConversionRate, unittest.equals('foo')); |
| 4165 unittest.expect(o.id, unittest.equals('foo')); |
| 4166 unittest.expect(o.inPlan, unittest.isTrue); |
| 4167 unittest.expect(o.kind, unittest.equals('foo')); |
| 4168 checkLastModifiedInfo(o.lastModifiedInfo); |
| 4169 unittest.expect(o.name, unittest.equals('foo')); |
| 4170 unittest.expect(o.negotiationChannelId, unittest.equals('foo')); |
| 4171 unittest.expect(o.orderId, unittest.equals('foo')); |
| 4172 unittest.expect(o.placementStrategyId, unittest.equals('foo')); |
| 4173 checkPricing(o.pricing); |
| 4174 unittest.expect(o.projectId, unittest.equals('foo')); |
| 4175 unittest.expect(o.rfpId, unittest.equals('foo')); |
| 4176 unittest.expect(o.siteId, unittest.equals('foo')); |
| 4177 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 4178 } |
| 4179 buildCounterInventoryItem--; |
| 4180 } |
| 4181 |
| 4182 buildUnnamed1393() { |
| 4183 var o = new core.List<api.InventoryItem>(); |
| 4184 o.add(buildInventoryItem()); |
| 4185 o.add(buildInventoryItem()); |
| 4186 return o; |
| 4187 } |
| 4188 |
| 4189 checkUnnamed1393(core.List<api.InventoryItem> o) { |
| 4190 unittest.expect(o, unittest.hasLength(2)); |
| 4191 checkInventoryItem(o[0]); |
| 4192 checkInventoryItem(o[1]); |
| 4193 } |
| 4194 |
| 4195 core.int buildCounterInventoryItemsListResponse = 0; |
| 4196 buildInventoryItemsListResponse() { |
| 4197 var o = new api.InventoryItemsListResponse(); |
| 4198 buildCounterInventoryItemsListResponse++; |
| 4199 if (buildCounterInventoryItemsListResponse < 3) { |
| 4200 o.inventoryItems = buildUnnamed1393(); |
| 4201 o.kind = "foo"; |
| 4202 o.nextPageToken = "foo"; |
| 4203 } |
| 4204 buildCounterInventoryItemsListResponse--; |
| 4205 return o; |
| 4206 } |
| 4207 |
| 4208 checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { |
| 4209 buildCounterInventoryItemsListResponse++; |
| 4210 if (buildCounterInventoryItemsListResponse < 3) { |
| 4211 checkUnnamed1393(o.inventoryItems); |
| 4212 unittest.expect(o.kind, unittest.equals('foo')); |
| 4213 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4214 } |
| 4215 buildCounterInventoryItemsListResponse--; |
| 4216 } |
| 4217 |
| 4025 core.int buildCounterKeyValueTargetingExpression = 0; | 4218 core.int buildCounterKeyValueTargetingExpression = 0; |
| 4026 buildKeyValueTargetingExpression() { | 4219 buildKeyValueTargetingExpression() { |
| 4027 var o = new api.KeyValueTargetingExpression(); | 4220 var o = new api.KeyValueTargetingExpression(); |
| 4028 buildCounterKeyValueTargetingExpression++; | 4221 buildCounterKeyValueTargetingExpression++; |
| 4029 if (buildCounterKeyValueTargetingExpression < 3) { | 4222 if (buildCounterKeyValueTargetingExpression < 3) { |
| 4030 o.expression = "foo"; | 4223 o.expression = "foo"; |
| 4031 } | 4224 } |
| 4032 buildCounterKeyValueTargetingExpression--; | 4225 buildCounterKeyValueTargetingExpression--; |
| 4033 return o; | 4226 return o; |
| 4034 } | 4227 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 4061 if (buildCounterLandingPage < 3) { | 4254 if (buildCounterLandingPage < 3) { |
| 4062 unittest.expect(o.default_, unittest.isTrue); | 4255 unittest.expect(o.default_, unittest.isTrue); |
| 4063 unittest.expect(o.id, unittest.equals('foo')); | 4256 unittest.expect(o.id, unittest.equals('foo')); |
| 4064 unittest.expect(o.kind, unittest.equals('foo')); | 4257 unittest.expect(o.kind, unittest.equals('foo')); |
| 4065 unittest.expect(o.name, unittest.equals('foo')); | 4258 unittest.expect(o.name, unittest.equals('foo')); |
| 4066 unittest.expect(o.url, unittest.equals('foo')); | 4259 unittest.expect(o.url, unittest.equals('foo')); |
| 4067 } | 4260 } |
| 4068 buildCounterLandingPage--; | 4261 buildCounterLandingPage--; |
| 4069 } | 4262 } |
| 4070 | 4263 |
| 4071 buildUnnamed345() { | 4264 buildUnnamed1394() { |
| 4072 var o = new core.List<api.LandingPage>(); | 4265 var o = new core.List<api.LandingPage>(); |
| 4073 o.add(buildLandingPage()); | 4266 o.add(buildLandingPage()); |
| 4074 o.add(buildLandingPage()); | 4267 o.add(buildLandingPage()); |
| 4075 return o; | 4268 return o; |
| 4076 } | 4269 } |
| 4077 | 4270 |
| 4078 checkUnnamed345(core.List<api.LandingPage> o) { | 4271 checkUnnamed1394(core.List<api.LandingPage> o) { |
| 4079 unittest.expect(o, unittest.hasLength(2)); | 4272 unittest.expect(o, unittest.hasLength(2)); |
| 4080 checkLandingPage(o[0]); | 4273 checkLandingPage(o[0]); |
| 4081 checkLandingPage(o[1]); | 4274 checkLandingPage(o[1]); |
| 4082 } | 4275 } |
| 4083 | 4276 |
| 4084 core.int buildCounterLandingPagesListResponse = 0; | 4277 core.int buildCounterLandingPagesListResponse = 0; |
| 4085 buildLandingPagesListResponse() { | 4278 buildLandingPagesListResponse() { |
| 4086 var o = new api.LandingPagesListResponse(); | 4279 var o = new api.LandingPagesListResponse(); |
| 4087 buildCounterLandingPagesListResponse++; | 4280 buildCounterLandingPagesListResponse++; |
| 4088 if (buildCounterLandingPagesListResponse < 3) { | 4281 if (buildCounterLandingPagesListResponse < 3) { |
| 4089 o.kind = "foo"; | 4282 o.kind = "foo"; |
| 4090 o.landingPages = buildUnnamed345(); | 4283 o.landingPages = buildUnnamed1394(); |
| 4091 } | 4284 } |
| 4092 buildCounterLandingPagesListResponse--; | 4285 buildCounterLandingPagesListResponse--; |
| 4093 return o; | 4286 return o; |
| 4094 } | 4287 } |
| 4095 | 4288 |
| 4096 checkLandingPagesListResponse(api.LandingPagesListResponse o) { | 4289 checkLandingPagesListResponse(api.LandingPagesListResponse o) { |
| 4097 buildCounterLandingPagesListResponse++; | 4290 buildCounterLandingPagesListResponse++; |
| 4098 if (buildCounterLandingPagesListResponse < 3) { | 4291 if (buildCounterLandingPagesListResponse < 3) { |
| 4099 unittest.expect(o.kind, unittest.equals('foo')); | 4292 unittest.expect(o.kind, unittest.equals('foo')); |
| 4100 checkUnnamed345(o.landingPages); | 4293 checkUnnamed1394(o.landingPages); |
| 4101 } | 4294 } |
| 4102 buildCounterLandingPagesListResponse--; | 4295 buildCounterLandingPagesListResponse--; |
| 4103 } | 4296 } |
| 4104 | 4297 |
| 4105 core.int buildCounterLastModifiedInfo = 0; | 4298 core.int buildCounterLastModifiedInfo = 0; |
| 4106 buildLastModifiedInfo() { | 4299 buildLastModifiedInfo() { |
| 4107 var o = new api.LastModifiedInfo(); | 4300 var o = new api.LastModifiedInfo(); |
| 4108 buildCounterLastModifiedInfo++; | 4301 buildCounterLastModifiedInfo++; |
| 4109 if (buildCounterLastModifiedInfo < 3) { | 4302 if (buildCounterLastModifiedInfo < 3) { |
| 4110 o.time = "foo"; | 4303 o.time = "foo"; |
| 4111 } | 4304 } |
| 4112 buildCounterLastModifiedInfo--; | 4305 buildCounterLastModifiedInfo--; |
| 4113 return o; | 4306 return o; |
| 4114 } | 4307 } |
| 4115 | 4308 |
| 4116 checkLastModifiedInfo(api.LastModifiedInfo o) { | 4309 checkLastModifiedInfo(api.LastModifiedInfo o) { |
| 4117 buildCounterLastModifiedInfo++; | 4310 buildCounterLastModifiedInfo++; |
| 4118 if (buildCounterLastModifiedInfo < 3) { | 4311 if (buildCounterLastModifiedInfo < 3) { |
| 4119 unittest.expect(o.time, unittest.equals('foo')); | 4312 unittest.expect(o.time, unittest.equals('foo')); |
| 4120 } | 4313 } |
| 4121 buildCounterLastModifiedInfo--; | 4314 buildCounterLastModifiedInfo--; |
| 4122 } | 4315 } |
| 4123 | 4316 |
| 4317 buildUnnamed1395() { |
| 4318 var o = new core.List<api.ListPopulationTerm>(); |
| 4319 o.add(buildListPopulationTerm()); |
| 4320 o.add(buildListPopulationTerm()); |
| 4321 return o; |
| 4322 } |
| 4323 |
| 4324 checkUnnamed1395(core.List<api.ListPopulationTerm> o) { |
| 4325 unittest.expect(o, unittest.hasLength(2)); |
| 4326 checkListPopulationTerm(o[0]); |
| 4327 checkListPopulationTerm(o[1]); |
| 4328 } |
| 4329 |
| 4330 core.int buildCounterListPopulationClause = 0; |
| 4331 buildListPopulationClause() { |
| 4332 var o = new api.ListPopulationClause(); |
| 4333 buildCounterListPopulationClause++; |
| 4334 if (buildCounterListPopulationClause < 3) { |
| 4335 o.terms = buildUnnamed1395(); |
| 4336 } |
| 4337 buildCounterListPopulationClause--; |
| 4338 return o; |
| 4339 } |
| 4340 |
| 4341 checkListPopulationClause(api.ListPopulationClause o) { |
| 4342 buildCounterListPopulationClause++; |
| 4343 if (buildCounterListPopulationClause < 3) { |
| 4344 checkUnnamed1395(o.terms); |
| 4345 } |
| 4346 buildCounterListPopulationClause--; |
| 4347 } |
| 4348 |
| 4349 buildUnnamed1396() { |
| 4350 var o = new core.List<api.ListPopulationClause>(); |
| 4351 o.add(buildListPopulationClause()); |
| 4352 o.add(buildListPopulationClause()); |
| 4353 return o; |
| 4354 } |
| 4355 |
| 4356 checkUnnamed1396(core.List<api.ListPopulationClause> o) { |
| 4357 unittest.expect(o, unittest.hasLength(2)); |
| 4358 checkListPopulationClause(o[0]); |
| 4359 checkListPopulationClause(o[1]); |
| 4360 } |
| 4361 |
| 4362 core.int buildCounterListPopulationRule = 0; |
| 4363 buildListPopulationRule() { |
| 4364 var o = new api.ListPopulationRule(); |
| 4365 buildCounterListPopulationRule++; |
| 4366 if (buildCounterListPopulationRule < 3) { |
| 4367 o.floodlightActivityId = "foo"; |
| 4368 o.floodlightActivityName = "foo"; |
| 4369 o.listPopulationClauses = buildUnnamed1396(); |
| 4370 } |
| 4371 buildCounterListPopulationRule--; |
| 4372 return o; |
| 4373 } |
| 4374 |
| 4375 checkListPopulationRule(api.ListPopulationRule o) { |
| 4376 buildCounterListPopulationRule++; |
| 4377 if (buildCounterListPopulationRule < 3) { |
| 4378 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); |
| 4379 unittest.expect(o.floodlightActivityName, unittest.equals('foo')); |
| 4380 checkUnnamed1396(o.listPopulationClauses); |
| 4381 } |
| 4382 buildCounterListPopulationRule--; |
| 4383 } |
| 4384 |
| 4385 core.int buildCounterListPopulationTerm = 0; |
| 4386 buildListPopulationTerm() { |
| 4387 var o = new api.ListPopulationTerm(); |
| 4388 buildCounterListPopulationTerm++; |
| 4389 if (buildCounterListPopulationTerm < 3) { |
| 4390 o.contains = true; |
| 4391 o.negation = true; |
| 4392 o.operator = "foo"; |
| 4393 o.remarketingListId = "foo"; |
| 4394 o.type = "foo"; |
| 4395 o.value = "foo"; |
| 4396 o.variableFriendlyName = "foo"; |
| 4397 o.variableName = "foo"; |
| 4398 } |
| 4399 buildCounterListPopulationTerm--; |
| 4400 return o; |
| 4401 } |
| 4402 |
| 4403 checkListPopulationTerm(api.ListPopulationTerm o) { |
| 4404 buildCounterListPopulationTerm++; |
| 4405 if (buildCounterListPopulationTerm < 3) { |
| 4406 unittest.expect(o.contains, unittest.isTrue); |
| 4407 unittest.expect(o.negation, unittest.isTrue); |
| 4408 unittest.expect(o.operator, unittest.equals('foo')); |
| 4409 unittest.expect(o.remarketingListId, unittest.equals('foo')); |
| 4410 unittest.expect(o.type, unittest.equals('foo')); |
| 4411 unittest.expect(o.value, unittest.equals('foo')); |
| 4412 unittest.expect(o.variableFriendlyName, unittest.equals('foo')); |
| 4413 unittest.expect(o.variableName, unittest.equals('foo')); |
| 4414 } |
| 4415 buildCounterListPopulationTerm--; |
| 4416 } |
| 4417 |
| 4124 core.int buildCounterListTargetingExpression = 0; | 4418 core.int buildCounterListTargetingExpression = 0; |
| 4125 buildListTargetingExpression() { | 4419 buildListTargetingExpression() { |
| 4126 var o = new api.ListTargetingExpression(); | 4420 var o = new api.ListTargetingExpression(); |
| 4127 buildCounterListTargetingExpression++; | 4421 buildCounterListTargetingExpression++; |
| 4128 if (buildCounterListTargetingExpression < 3) { | 4422 if (buildCounterListTargetingExpression < 3) { |
| 4129 o.expression = "foo"; | 4423 o.expression = "foo"; |
| 4130 } | 4424 } |
| 4131 buildCounterListTargetingExpression--; | 4425 buildCounterListTargetingExpression--; |
| 4132 return o; | 4426 return o; |
| 4133 } | 4427 } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4206 unittest.expect(o.countryDartId, unittest.equals('foo')); | 4500 unittest.expect(o.countryDartId, unittest.equals('foo')); |
| 4207 unittest.expect(o.dartId, unittest.equals('foo')); | 4501 unittest.expect(o.dartId, unittest.equals('foo')); |
| 4208 unittest.expect(o.dmaId, unittest.equals('foo')); | 4502 unittest.expect(o.dmaId, unittest.equals('foo')); |
| 4209 unittest.expect(o.kind, unittest.equals('foo')); | 4503 unittest.expect(o.kind, unittest.equals('foo')); |
| 4210 unittest.expect(o.metroCode, unittest.equals('foo')); | 4504 unittest.expect(o.metroCode, unittest.equals('foo')); |
| 4211 unittest.expect(o.name, unittest.equals('foo')); | 4505 unittest.expect(o.name, unittest.equals('foo')); |
| 4212 } | 4506 } |
| 4213 buildCounterMetro--; | 4507 buildCounterMetro--; |
| 4214 } | 4508 } |
| 4215 | 4509 |
| 4216 buildUnnamed346() { | 4510 buildUnnamed1397() { |
| 4217 var o = new core.List<api.Metro>(); | 4511 var o = new core.List<api.Metro>(); |
| 4218 o.add(buildMetro()); | 4512 o.add(buildMetro()); |
| 4219 o.add(buildMetro()); | 4513 o.add(buildMetro()); |
| 4220 return o; | 4514 return o; |
| 4221 } | 4515 } |
| 4222 | 4516 |
| 4223 checkUnnamed346(core.List<api.Metro> o) { | 4517 checkUnnamed1397(core.List<api.Metro> o) { |
| 4224 unittest.expect(o, unittest.hasLength(2)); | 4518 unittest.expect(o, unittest.hasLength(2)); |
| 4225 checkMetro(o[0]); | 4519 checkMetro(o[0]); |
| 4226 checkMetro(o[1]); | 4520 checkMetro(o[1]); |
| 4227 } | 4521 } |
| 4228 | 4522 |
| 4229 core.int buildCounterMetrosListResponse = 0; | 4523 core.int buildCounterMetrosListResponse = 0; |
| 4230 buildMetrosListResponse() { | 4524 buildMetrosListResponse() { |
| 4231 var o = new api.MetrosListResponse(); | 4525 var o = new api.MetrosListResponse(); |
| 4232 buildCounterMetrosListResponse++; | 4526 buildCounterMetrosListResponse++; |
| 4233 if (buildCounterMetrosListResponse < 3) { | 4527 if (buildCounterMetrosListResponse < 3) { |
| 4234 o.kind = "foo"; | 4528 o.kind = "foo"; |
| 4235 o.metros = buildUnnamed346(); | 4529 o.metros = buildUnnamed1397(); |
| 4236 } | 4530 } |
| 4237 buildCounterMetrosListResponse--; | 4531 buildCounterMetrosListResponse--; |
| 4238 return o; | 4532 return o; |
| 4239 } | 4533 } |
| 4240 | 4534 |
| 4241 checkMetrosListResponse(api.MetrosListResponse o) { | 4535 checkMetrosListResponse(api.MetrosListResponse o) { |
| 4242 buildCounterMetrosListResponse++; | 4536 buildCounterMetrosListResponse++; |
| 4243 if (buildCounterMetrosListResponse < 3) { | 4537 if (buildCounterMetrosListResponse < 3) { |
| 4244 unittest.expect(o.kind, unittest.equals('foo')); | 4538 unittest.expect(o.kind, unittest.equals('foo')); |
| 4245 checkUnnamed346(o.metros); | 4539 checkUnnamed1397(o.metros); |
| 4246 } | 4540 } |
| 4247 buildCounterMetrosListResponse--; | 4541 buildCounterMetrosListResponse--; |
| 4248 } | 4542 } |
| 4249 | 4543 |
| 4250 core.int buildCounterMobileCarrier = 0; | 4544 core.int buildCounterMobileCarrier = 0; |
| 4251 buildMobileCarrier() { | 4545 buildMobileCarrier() { |
| 4252 var o = new api.MobileCarrier(); | 4546 var o = new api.MobileCarrier(); |
| 4253 buildCounterMobileCarrier++; | 4547 buildCounterMobileCarrier++; |
| 4254 if (buildCounterMobileCarrier < 3) { | 4548 if (buildCounterMobileCarrier < 3) { |
| 4255 o.countryCode = "foo"; | 4549 o.countryCode = "foo"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4267 if (buildCounterMobileCarrier < 3) { | 4561 if (buildCounterMobileCarrier < 3) { |
| 4268 unittest.expect(o.countryCode, unittest.equals('foo')); | 4562 unittest.expect(o.countryCode, unittest.equals('foo')); |
| 4269 unittest.expect(o.countryDartId, unittest.equals('foo')); | 4563 unittest.expect(o.countryDartId, unittest.equals('foo')); |
| 4270 unittest.expect(o.id, unittest.equals('foo')); | 4564 unittest.expect(o.id, unittest.equals('foo')); |
| 4271 unittest.expect(o.kind, unittest.equals('foo')); | 4565 unittest.expect(o.kind, unittest.equals('foo')); |
| 4272 unittest.expect(o.name, unittest.equals('foo')); | 4566 unittest.expect(o.name, unittest.equals('foo')); |
| 4273 } | 4567 } |
| 4274 buildCounterMobileCarrier--; | 4568 buildCounterMobileCarrier--; |
| 4275 } | 4569 } |
| 4276 | 4570 |
| 4277 buildUnnamed347() { | 4571 buildUnnamed1398() { |
| 4278 var o = new core.List<api.MobileCarrier>(); | 4572 var o = new core.List<api.MobileCarrier>(); |
| 4279 o.add(buildMobileCarrier()); | 4573 o.add(buildMobileCarrier()); |
| 4280 o.add(buildMobileCarrier()); | 4574 o.add(buildMobileCarrier()); |
| 4281 return o; | 4575 return o; |
| 4282 } | 4576 } |
| 4283 | 4577 |
| 4284 checkUnnamed347(core.List<api.MobileCarrier> o) { | 4578 checkUnnamed1398(core.List<api.MobileCarrier> o) { |
| 4285 unittest.expect(o, unittest.hasLength(2)); | 4579 unittest.expect(o, unittest.hasLength(2)); |
| 4286 checkMobileCarrier(o[0]); | 4580 checkMobileCarrier(o[0]); |
| 4287 checkMobileCarrier(o[1]); | 4581 checkMobileCarrier(o[1]); |
| 4288 } | 4582 } |
| 4289 | 4583 |
| 4290 core.int buildCounterMobileCarriersListResponse = 0; | 4584 core.int buildCounterMobileCarriersListResponse = 0; |
| 4291 buildMobileCarriersListResponse() { | 4585 buildMobileCarriersListResponse() { |
| 4292 var o = new api.MobileCarriersListResponse(); | 4586 var o = new api.MobileCarriersListResponse(); |
| 4293 buildCounterMobileCarriersListResponse++; | 4587 buildCounterMobileCarriersListResponse++; |
| 4294 if (buildCounterMobileCarriersListResponse < 3) { | 4588 if (buildCounterMobileCarriersListResponse < 3) { |
| 4295 o.kind = "foo"; | 4589 o.kind = "foo"; |
| 4296 o.mobileCarriers = buildUnnamed347(); | 4590 o.mobileCarriers = buildUnnamed1398(); |
| 4297 } | 4591 } |
| 4298 buildCounterMobileCarriersListResponse--; | 4592 buildCounterMobileCarriersListResponse--; |
| 4299 return o; | 4593 return o; |
| 4300 } | 4594 } |
| 4301 | 4595 |
| 4302 checkMobileCarriersListResponse(api.MobileCarriersListResponse o) { | 4596 checkMobileCarriersListResponse(api.MobileCarriersListResponse o) { |
| 4303 buildCounterMobileCarriersListResponse++; | 4597 buildCounterMobileCarriersListResponse++; |
| 4304 if (buildCounterMobileCarriersListResponse < 3) { | 4598 if (buildCounterMobileCarriersListResponse < 3) { |
| 4305 unittest.expect(o.kind, unittest.equals('foo')); | 4599 unittest.expect(o.kind, unittest.equals('foo')); |
| 4306 checkUnnamed347(o.mobileCarriers); | 4600 checkUnnamed1398(o.mobileCarriers); |
| 4307 } | 4601 } |
| 4308 buildCounterMobileCarriersListResponse--; | 4602 buildCounterMobileCarriersListResponse--; |
| 4309 } | 4603 } |
| 4310 | 4604 |
| 4311 buildUnnamed348() { | 4605 buildUnnamed1399() { |
| 4312 var o = new core.List<core.String>(); | 4606 var o = new core.List<core.String>(); |
| 4313 o.add("foo"); | 4607 o.add("foo"); |
| 4314 o.add("foo"); | 4608 o.add("foo"); |
| 4315 return o; | 4609 return o; |
| 4316 } | 4610 } |
| 4317 | 4611 |
| 4318 checkUnnamed348(core.List<core.String> o) { | 4612 checkUnnamed1399(core.List<core.String> o) { |
| 4319 unittest.expect(o, unittest.hasLength(2)); | 4613 unittest.expect(o, unittest.hasLength(2)); |
| 4320 unittest.expect(o[0], unittest.equals('foo')); | 4614 unittest.expect(o[0], unittest.equals('foo')); |
| 4321 unittest.expect(o[1], unittest.equals('foo')); | 4615 unittest.expect(o[1], unittest.equals('foo')); |
| 4322 } | 4616 } |
| 4323 | 4617 |
| 4324 core.int buildCounterObjectFilter = 0; | 4618 core.int buildCounterObjectFilter = 0; |
| 4325 buildObjectFilter() { | 4619 buildObjectFilter() { |
| 4326 var o = new api.ObjectFilter(); | 4620 var o = new api.ObjectFilter(); |
| 4327 buildCounterObjectFilter++; | 4621 buildCounterObjectFilter++; |
| 4328 if (buildCounterObjectFilter < 3) { | 4622 if (buildCounterObjectFilter < 3) { |
| 4329 o.kind = "foo"; | 4623 o.kind = "foo"; |
| 4330 o.objectIds = buildUnnamed348(); | 4624 o.objectIds = buildUnnamed1399(); |
| 4331 o.status = "foo"; | 4625 o.status = "foo"; |
| 4332 } | 4626 } |
| 4333 buildCounterObjectFilter--; | 4627 buildCounterObjectFilter--; |
| 4334 return o; | 4628 return o; |
| 4335 } | 4629 } |
| 4336 | 4630 |
| 4337 checkObjectFilter(api.ObjectFilter o) { | 4631 checkObjectFilter(api.ObjectFilter o) { |
| 4338 buildCounterObjectFilter++; | 4632 buildCounterObjectFilter++; |
| 4339 if (buildCounterObjectFilter < 3) { | 4633 if (buildCounterObjectFilter < 3) { |
| 4340 unittest.expect(o.kind, unittest.equals('foo')); | 4634 unittest.expect(o.kind, unittest.equals('foo')); |
| 4341 checkUnnamed348(o.objectIds); | 4635 checkUnnamed1399(o.objectIds); |
| 4342 unittest.expect(o.status, unittest.equals('foo')); | 4636 unittest.expect(o.status, unittest.equals('foo')); |
| 4343 } | 4637 } |
| 4344 buildCounterObjectFilter--; | 4638 buildCounterObjectFilter--; |
| 4345 } | 4639 } |
| 4346 | 4640 |
| 4347 core.int buildCounterOffsetPosition = 0; | 4641 core.int buildCounterOffsetPosition = 0; |
| 4348 buildOffsetPosition() { | 4642 buildOffsetPosition() { |
| 4349 var o = new api.OffsetPosition(); | 4643 var o = new api.OffsetPosition(); |
| 4350 buildCounterOffsetPosition++; | 4644 buildCounterOffsetPosition++; |
| 4351 if (buildCounterOffsetPosition < 3) { | 4645 if (buildCounterOffsetPosition < 3) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4435 unittest.expect(o.id, unittest.equals('foo')); | 4729 unittest.expect(o.id, unittest.equals('foo')); |
| 4436 unittest.expect(o.kind, unittest.equals('foo')); | 4730 unittest.expect(o.kind, unittest.equals('foo')); |
| 4437 unittest.expect(o.majorVersion, unittest.equals('foo')); | 4731 unittest.expect(o.majorVersion, unittest.equals('foo')); |
| 4438 unittest.expect(o.minorVersion, unittest.equals('foo')); | 4732 unittest.expect(o.minorVersion, unittest.equals('foo')); |
| 4439 unittest.expect(o.name, unittest.equals('foo')); | 4733 unittest.expect(o.name, unittest.equals('foo')); |
| 4440 checkOperatingSystem(o.operatingSystem); | 4734 checkOperatingSystem(o.operatingSystem); |
| 4441 } | 4735 } |
| 4442 buildCounterOperatingSystemVersion--; | 4736 buildCounterOperatingSystemVersion--; |
| 4443 } | 4737 } |
| 4444 | 4738 |
| 4445 buildUnnamed349() { | 4739 buildUnnamed1400() { |
| 4446 var o = new core.List<api.OperatingSystemVersion>(); | 4740 var o = new core.List<api.OperatingSystemVersion>(); |
| 4447 o.add(buildOperatingSystemVersion()); | 4741 o.add(buildOperatingSystemVersion()); |
| 4448 o.add(buildOperatingSystemVersion()); | 4742 o.add(buildOperatingSystemVersion()); |
| 4449 return o; | 4743 return o; |
| 4450 } | 4744 } |
| 4451 | 4745 |
| 4452 checkUnnamed349(core.List<api.OperatingSystemVersion> o) { | 4746 checkUnnamed1400(core.List<api.OperatingSystemVersion> o) { |
| 4453 unittest.expect(o, unittest.hasLength(2)); | 4747 unittest.expect(o, unittest.hasLength(2)); |
| 4454 checkOperatingSystemVersion(o[0]); | 4748 checkOperatingSystemVersion(o[0]); |
| 4455 checkOperatingSystemVersion(o[1]); | 4749 checkOperatingSystemVersion(o[1]); |
| 4456 } | 4750 } |
| 4457 | 4751 |
| 4458 core.int buildCounterOperatingSystemVersionsListResponse = 0; | 4752 core.int buildCounterOperatingSystemVersionsListResponse = 0; |
| 4459 buildOperatingSystemVersionsListResponse() { | 4753 buildOperatingSystemVersionsListResponse() { |
| 4460 var o = new api.OperatingSystemVersionsListResponse(); | 4754 var o = new api.OperatingSystemVersionsListResponse(); |
| 4461 buildCounterOperatingSystemVersionsListResponse++; | 4755 buildCounterOperatingSystemVersionsListResponse++; |
| 4462 if (buildCounterOperatingSystemVersionsListResponse < 3) { | 4756 if (buildCounterOperatingSystemVersionsListResponse < 3) { |
| 4463 o.kind = "foo"; | 4757 o.kind = "foo"; |
| 4464 o.operatingSystemVersions = buildUnnamed349(); | 4758 o.operatingSystemVersions = buildUnnamed1400(); |
| 4465 } | 4759 } |
| 4466 buildCounterOperatingSystemVersionsListResponse--; | 4760 buildCounterOperatingSystemVersionsListResponse--; |
| 4467 return o; | 4761 return o; |
| 4468 } | 4762 } |
| 4469 | 4763 |
| 4470 checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse
o) { | 4764 checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse
o) { |
| 4471 buildCounterOperatingSystemVersionsListResponse++; | 4765 buildCounterOperatingSystemVersionsListResponse++; |
| 4472 if (buildCounterOperatingSystemVersionsListResponse < 3) { | 4766 if (buildCounterOperatingSystemVersionsListResponse < 3) { |
| 4473 unittest.expect(o.kind, unittest.equals('foo')); | 4767 unittest.expect(o.kind, unittest.equals('foo')); |
| 4474 checkUnnamed349(o.operatingSystemVersions); | 4768 checkUnnamed1400(o.operatingSystemVersions); |
| 4475 } | 4769 } |
| 4476 buildCounterOperatingSystemVersionsListResponse--; | 4770 buildCounterOperatingSystemVersionsListResponse--; |
| 4477 } | 4771 } |
| 4478 | 4772 |
| 4479 buildUnnamed350() { | 4773 buildUnnamed1401() { |
| 4480 var o = new core.List<api.OperatingSystem>(); | 4774 var o = new core.List<api.OperatingSystem>(); |
| 4481 o.add(buildOperatingSystem()); | 4775 o.add(buildOperatingSystem()); |
| 4482 o.add(buildOperatingSystem()); | 4776 o.add(buildOperatingSystem()); |
| 4483 return o; | 4777 return o; |
| 4484 } | 4778 } |
| 4485 | 4779 |
| 4486 checkUnnamed350(core.List<api.OperatingSystem> o) { | 4780 checkUnnamed1401(core.List<api.OperatingSystem> o) { |
| 4487 unittest.expect(o, unittest.hasLength(2)); | 4781 unittest.expect(o, unittest.hasLength(2)); |
| 4488 checkOperatingSystem(o[0]); | 4782 checkOperatingSystem(o[0]); |
| 4489 checkOperatingSystem(o[1]); | 4783 checkOperatingSystem(o[1]); |
| 4490 } | 4784 } |
| 4491 | 4785 |
| 4492 core.int buildCounterOperatingSystemsListResponse = 0; | 4786 core.int buildCounterOperatingSystemsListResponse = 0; |
| 4493 buildOperatingSystemsListResponse() { | 4787 buildOperatingSystemsListResponse() { |
| 4494 var o = new api.OperatingSystemsListResponse(); | 4788 var o = new api.OperatingSystemsListResponse(); |
| 4495 buildCounterOperatingSystemsListResponse++; | 4789 buildCounterOperatingSystemsListResponse++; |
| 4496 if (buildCounterOperatingSystemsListResponse < 3) { | 4790 if (buildCounterOperatingSystemsListResponse < 3) { |
| 4497 o.kind = "foo"; | 4791 o.kind = "foo"; |
| 4498 o.operatingSystems = buildUnnamed350(); | 4792 o.operatingSystems = buildUnnamed1401(); |
| 4499 } | 4793 } |
| 4500 buildCounterOperatingSystemsListResponse--; | 4794 buildCounterOperatingSystemsListResponse--; |
| 4501 return o; | 4795 return o; |
| 4502 } | 4796 } |
| 4503 | 4797 |
| 4504 checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) { | 4798 checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) { |
| 4505 buildCounterOperatingSystemsListResponse++; | 4799 buildCounterOperatingSystemsListResponse++; |
| 4506 if (buildCounterOperatingSystemsListResponse < 3) { | 4800 if (buildCounterOperatingSystemsListResponse < 3) { |
| 4507 unittest.expect(o.kind, unittest.equals('foo')); | 4801 unittest.expect(o.kind, unittest.equals('foo')); |
| 4508 checkUnnamed350(o.operatingSystems); | 4802 checkUnnamed1401(o.operatingSystems); |
| 4509 } | 4803 } |
| 4510 buildCounterOperatingSystemsListResponse--; | 4804 buildCounterOperatingSystemsListResponse--; |
| 4511 } | 4805 } |
| 4512 | 4806 |
| 4513 core.int buildCounterOptimizationActivity = 0; | 4807 core.int buildCounterOptimizationActivity = 0; |
| 4514 buildOptimizationActivity() { | 4808 buildOptimizationActivity() { |
| 4515 var o = new api.OptimizationActivity(); | 4809 var o = new api.OptimizationActivity(); |
| 4516 buildCounterOptimizationActivity++; | 4810 buildCounterOptimizationActivity++; |
| 4517 if (buildCounterOptimizationActivity < 3) { | 4811 if (buildCounterOptimizationActivity < 3) { |
| 4518 o.floodlightActivityId = "foo"; | 4812 o.floodlightActivityId = "foo"; |
| 4519 o.floodlightActivityIdDimensionValue = buildDimensionValue(); | 4813 o.floodlightActivityIdDimensionValue = buildDimensionValue(); |
| 4520 o.weight = 42; | 4814 o.weight = 42; |
| 4521 } | 4815 } |
| 4522 buildCounterOptimizationActivity--; | 4816 buildCounterOptimizationActivity--; |
| 4523 return o; | 4817 return o; |
| 4524 } | 4818 } |
| 4525 | 4819 |
| 4526 checkOptimizationActivity(api.OptimizationActivity o) { | 4820 checkOptimizationActivity(api.OptimizationActivity o) { |
| 4527 buildCounterOptimizationActivity++; | 4821 buildCounterOptimizationActivity++; |
| 4528 if (buildCounterOptimizationActivity < 3) { | 4822 if (buildCounterOptimizationActivity < 3) { |
| 4529 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); | 4823 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); |
| 4530 checkDimensionValue(o.floodlightActivityIdDimensionValue); | 4824 checkDimensionValue(o.floodlightActivityIdDimensionValue); |
| 4531 unittest.expect(o.weight, unittest.equals(42)); | 4825 unittest.expect(o.weight, unittest.equals(42)); |
| 4532 } | 4826 } |
| 4533 buildCounterOptimizationActivity--; | 4827 buildCounterOptimizationActivity--; |
| 4534 } | 4828 } |
| 4535 | 4829 |
| 4536 buildUnnamed351() { | 4830 buildUnnamed1402() { |
| 4831 var o = new core.List<core.String>(); |
| 4832 o.add("foo"); |
| 4833 o.add("foo"); |
| 4834 return o; |
| 4835 } |
| 4836 |
| 4837 checkUnnamed1402(core.List<core.String> o) { |
| 4838 unittest.expect(o, unittest.hasLength(2)); |
| 4839 unittest.expect(o[0], unittest.equals('foo')); |
| 4840 unittest.expect(o[1], unittest.equals('foo')); |
| 4841 } |
| 4842 |
| 4843 buildUnnamed1403() { |
| 4844 var o = new core.List<api.OrderContact>(); |
| 4845 o.add(buildOrderContact()); |
| 4846 o.add(buildOrderContact()); |
| 4847 return o; |
| 4848 } |
| 4849 |
| 4850 checkUnnamed1403(core.List<api.OrderContact> o) { |
| 4851 unittest.expect(o, unittest.hasLength(2)); |
| 4852 checkOrderContact(o[0]); |
| 4853 checkOrderContact(o[1]); |
| 4854 } |
| 4855 |
| 4856 buildUnnamed1404() { |
| 4857 var o = new core.List<core.String>(); |
| 4858 o.add("foo"); |
| 4859 o.add("foo"); |
| 4860 return o; |
| 4861 } |
| 4862 |
| 4863 checkUnnamed1404(core.List<core.String> o) { |
| 4864 unittest.expect(o, unittest.hasLength(2)); |
| 4865 unittest.expect(o[0], unittest.equals('foo')); |
| 4866 unittest.expect(o[1], unittest.equals('foo')); |
| 4867 } |
| 4868 |
| 4869 buildUnnamed1405() { |
| 4870 var o = new core.List<core.String>(); |
| 4871 o.add("foo"); |
| 4872 o.add("foo"); |
| 4873 return o; |
| 4874 } |
| 4875 |
| 4876 checkUnnamed1405(core.List<core.String> o) { |
| 4877 unittest.expect(o, unittest.hasLength(2)); |
| 4878 unittest.expect(o[0], unittest.equals('foo')); |
| 4879 unittest.expect(o[1], unittest.equals('foo')); |
| 4880 } |
| 4881 |
| 4882 core.int buildCounterOrder = 0; |
| 4883 buildOrder() { |
| 4884 var o = new api.Order(); |
| 4885 buildCounterOrder++; |
| 4886 if (buildCounterOrder < 3) { |
| 4887 o.accountId = "foo"; |
| 4888 o.advertiserId = "foo"; |
| 4889 o.approverUserProfileIds = buildUnnamed1402(); |
| 4890 o.buyerInvoiceId = "foo"; |
| 4891 o.buyerOrganizationName = "foo"; |
| 4892 o.comments = "foo"; |
| 4893 o.contacts = buildUnnamed1403(); |
| 4894 o.id = "foo"; |
| 4895 o.kind = "foo"; |
| 4896 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 4897 o.name = "foo"; |
| 4898 o.notes = "foo"; |
| 4899 o.planningTermId = "foo"; |
| 4900 o.projectId = "foo"; |
| 4901 o.sellerOrderId = "foo"; |
| 4902 o.sellerOrganizationName = "foo"; |
| 4903 o.siteId = buildUnnamed1404(); |
| 4904 o.siteNames = buildUnnamed1405(); |
| 4905 o.subaccountId = "foo"; |
| 4906 o.termsAndConditions = "foo"; |
| 4907 } |
| 4908 buildCounterOrder--; |
| 4909 return o; |
| 4910 } |
| 4911 |
| 4912 checkOrder(api.Order o) { |
| 4913 buildCounterOrder++; |
| 4914 if (buildCounterOrder < 3) { |
| 4915 unittest.expect(o.accountId, unittest.equals('foo')); |
| 4916 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 4917 checkUnnamed1402(o.approverUserProfileIds); |
| 4918 unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); |
| 4919 unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); |
| 4920 unittest.expect(o.comments, unittest.equals('foo')); |
| 4921 checkUnnamed1403(o.contacts); |
| 4922 unittest.expect(o.id, unittest.equals('foo')); |
| 4923 unittest.expect(o.kind, unittest.equals('foo')); |
| 4924 checkLastModifiedInfo(o.lastModifiedInfo); |
| 4925 unittest.expect(o.name, unittest.equals('foo')); |
| 4926 unittest.expect(o.notes, unittest.equals('foo')); |
| 4927 unittest.expect(o.planningTermId, unittest.equals('foo')); |
| 4928 unittest.expect(o.projectId, unittest.equals('foo')); |
| 4929 unittest.expect(o.sellerOrderId, unittest.equals('foo')); |
| 4930 unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); |
| 4931 checkUnnamed1404(o.siteId); |
| 4932 checkUnnamed1405(o.siteNames); |
| 4933 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 4934 unittest.expect(o.termsAndConditions, unittest.equals('foo')); |
| 4935 } |
| 4936 buildCounterOrder--; |
| 4937 } |
| 4938 |
| 4939 core.int buildCounterOrderContact = 0; |
| 4940 buildOrderContact() { |
| 4941 var o = new api.OrderContact(); |
| 4942 buildCounterOrderContact++; |
| 4943 if (buildCounterOrderContact < 3) { |
| 4944 o.contactInfo = "foo"; |
| 4945 o.contactName = "foo"; |
| 4946 o.contactTitle = "foo"; |
| 4947 o.contactType = "foo"; |
| 4948 o.signatureUserProfileId = "foo"; |
| 4949 } |
| 4950 buildCounterOrderContact--; |
| 4951 return o; |
| 4952 } |
| 4953 |
| 4954 checkOrderContact(api.OrderContact o) { |
| 4955 buildCounterOrderContact++; |
| 4956 if (buildCounterOrderContact < 3) { |
| 4957 unittest.expect(o.contactInfo, unittest.equals('foo')); |
| 4958 unittest.expect(o.contactName, unittest.equals('foo')); |
| 4959 unittest.expect(o.contactTitle, unittest.equals('foo')); |
| 4960 unittest.expect(o.contactType, unittest.equals('foo')); |
| 4961 unittest.expect(o.signatureUserProfileId, unittest.equals('foo')); |
| 4962 } |
| 4963 buildCounterOrderContact--; |
| 4964 } |
| 4965 |
| 4966 buildUnnamed1406() { |
| 4967 var o = new core.List<core.String>(); |
| 4968 o.add("foo"); |
| 4969 o.add("foo"); |
| 4970 return o; |
| 4971 } |
| 4972 |
| 4973 checkUnnamed1406(core.List<core.String> o) { |
| 4974 unittest.expect(o, unittest.hasLength(2)); |
| 4975 unittest.expect(o[0], unittest.equals('foo')); |
| 4976 unittest.expect(o[1], unittest.equals('foo')); |
| 4977 } |
| 4978 |
| 4979 buildUnnamed1407() { |
| 4980 var o = new core.List<core.String>(); |
| 4981 o.add("foo"); |
| 4982 o.add("foo"); |
| 4983 return o; |
| 4984 } |
| 4985 |
| 4986 checkUnnamed1407(core.List<core.String> o) { |
| 4987 unittest.expect(o, unittest.hasLength(2)); |
| 4988 unittest.expect(o[0], unittest.equals('foo')); |
| 4989 unittest.expect(o[1], unittest.equals('foo')); |
| 4990 } |
| 4991 |
| 4992 core.int buildCounterOrderDocument = 0; |
| 4993 buildOrderDocument() { |
| 4994 var o = new api.OrderDocument(); |
| 4995 buildCounterOrderDocument++; |
| 4996 if (buildCounterOrderDocument < 3) { |
| 4997 o.accountId = "foo"; |
| 4998 o.advertiserId = "foo"; |
| 4999 o.amendedOrderDocumentId = "foo"; |
| 5000 o.approvedByUserProfileIds = buildUnnamed1406(); |
| 5001 o.cancelled = true; |
| 5002 o.createdInfo = buildLastModifiedInfo(); |
| 5003 o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5004 o.id = "foo"; |
| 5005 o.kind = "foo"; |
| 5006 o.lastSentRecipients = buildUnnamed1407(); |
| 5007 o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 5008 o.orderId = "foo"; |
| 5009 o.projectId = "foo"; |
| 5010 o.signed = true; |
| 5011 o.subaccountId = "foo"; |
| 5012 o.title = "foo"; |
| 5013 o.type = "foo"; |
| 5014 } |
| 5015 buildCounterOrderDocument--; |
| 5016 return o; |
| 5017 } |
| 5018 |
| 5019 checkOrderDocument(api.OrderDocument o) { |
| 5020 buildCounterOrderDocument++; |
| 5021 if (buildCounterOrderDocument < 3) { |
| 5022 unittest.expect(o.accountId, unittest.equals('foo')); |
| 5023 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 5024 unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); |
| 5025 checkUnnamed1406(o.approvedByUserProfileIds); |
| 5026 unittest.expect(o.cancelled, unittest.isTrue); |
| 5027 checkLastModifiedInfo(o.createdInfo); |
| 5028 unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-0
2-27T00:00:00"))); |
| 5029 unittest.expect(o.id, unittest.equals('foo')); |
| 5030 unittest.expect(o.kind, unittest.equals('foo')); |
| 5031 checkUnnamed1407(o.lastSentRecipients); |
| 5032 unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 5033 unittest.expect(o.orderId, unittest.equals('foo')); |
| 5034 unittest.expect(o.projectId, unittest.equals('foo')); |
| 5035 unittest.expect(o.signed, unittest.isTrue); |
| 5036 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 5037 unittest.expect(o.title, unittest.equals('foo')); |
| 5038 unittest.expect(o.type, unittest.equals('foo')); |
| 5039 } |
| 5040 buildCounterOrderDocument--; |
| 5041 } |
| 5042 |
| 5043 buildUnnamed1408() { |
| 5044 var o = new core.List<api.OrderDocument>(); |
| 5045 o.add(buildOrderDocument()); |
| 5046 o.add(buildOrderDocument()); |
| 5047 return o; |
| 5048 } |
| 5049 |
| 5050 checkUnnamed1408(core.List<api.OrderDocument> o) { |
| 5051 unittest.expect(o, unittest.hasLength(2)); |
| 5052 checkOrderDocument(o[0]); |
| 5053 checkOrderDocument(o[1]); |
| 5054 } |
| 5055 |
| 5056 core.int buildCounterOrderDocumentsListResponse = 0; |
| 5057 buildOrderDocumentsListResponse() { |
| 5058 var o = new api.OrderDocumentsListResponse(); |
| 5059 buildCounterOrderDocumentsListResponse++; |
| 5060 if (buildCounterOrderDocumentsListResponse < 3) { |
| 5061 o.kind = "foo"; |
| 5062 o.nextPageToken = "foo"; |
| 5063 o.orderDocuments = buildUnnamed1408(); |
| 5064 } |
| 5065 buildCounterOrderDocumentsListResponse--; |
| 5066 return o; |
| 5067 } |
| 5068 |
| 5069 checkOrderDocumentsListResponse(api.OrderDocumentsListResponse o) { |
| 5070 buildCounterOrderDocumentsListResponse++; |
| 5071 if (buildCounterOrderDocumentsListResponse < 3) { |
| 5072 unittest.expect(o.kind, unittest.equals('foo')); |
| 5073 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5074 checkUnnamed1408(o.orderDocuments); |
| 5075 } |
| 5076 buildCounterOrderDocumentsListResponse--; |
| 5077 } |
| 5078 |
| 5079 buildUnnamed1409() { |
| 5080 var o = new core.List<api.Order>(); |
| 5081 o.add(buildOrder()); |
| 5082 o.add(buildOrder()); |
| 5083 return o; |
| 5084 } |
| 5085 |
| 5086 checkUnnamed1409(core.List<api.Order> o) { |
| 5087 unittest.expect(o, unittest.hasLength(2)); |
| 5088 checkOrder(o[0]); |
| 5089 checkOrder(o[1]); |
| 5090 } |
| 5091 |
| 5092 core.int buildCounterOrdersListResponse = 0; |
| 5093 buildOrdersListResponse() { |
| 5094 var o = new api.OrdersListResponse(); |
| 5095 buildCounterOrdersListResponse++; |
| 5096 if (buildCounterOrdersListResponse < 3) { |
| 5097 o.kind = "foo"; |
| 5098 o.nextPageToken = "foo"; |
| 5099 o.orders = buildUnnamed1409(); |
| 5100 } |
| 5101 buildCounterOrdersListResponse--; |
| 5102 return o; |
| 5103 } |
| 5104 |
| 5105 checkOrdersListResponse(api.OrdersListResponse o) { |
| 5106 buildCounterOrdersListResponse++; |
| 5107 if (buildCounterOrdersListResponse < 3) { |
| 5108 unittest.expect(o.kind, unittest.equals('foo')); |
| 5109 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5110 checkUnnamed1409(o.orders); |
| 5111 } |
| 5112 buildCounterOrdersListResponse--; |
| 5113 } |
| 5114 |
| 5115 buildUnnamed1410() { |
| 4537 var o = new core.List<api.Dimension>(); | 5116 var o = new core.List<api.Dimension>(); |
| 4538 o.add(buildDimension()); | 5117 o.add(buildDimension()); |
| 4539 o.add(buildDimension()); | 5118 o.add(buildDimension()); |
| 4540 return o; | 5119 return o; |
| 4541 } | 5120 } |
| 4542 | 5121 |
| 4543 checkUnnamed351(core.List<api.Dimension> o) { | 5122 checkUnnamed1410(core.List<api.Dimension> o) { |
| 4544 unittest.expect(o, unittest.hasLength(2)); | 5123 unittest.expect(o, unittest.hasLength(2)); |
| 4545 checkDimension(o[0]); | 5124 checkDimension(o[0]); |
| 4546 checkDimension(o[1]); | 5125 checkDimension(o[1]); |
| 4547 } | 5126 } |
| 4548 | 5127 |
| 4549 buildUnnamed352() { | 5128 buildUnnamed1411() { |
| 4550 var o = new core.List<api.Dimension>(); | 5129 var o = new core.List<api.Dimension>(); |
| 4551 o.add(buildDimension()); | 5130 o.add(buildDimension()); |
| 4552 o.add(buildDimension()); | 5131 o.add(buildDimension()); |
| 4553 return o; | 5132 return o; |
| 4554 } | 5133 } |
| 4555 | 5134 |
| 4556 checkUnnamed352(core.List<api.Dimension> o) { | 5135 checkUnnamed1411(core.List<api.Dimension> o) { |
| 4557 unittest.expect(o, unittest.hasLength(2)); | 5136 unittest.expect(o, unittest.hasLength(2)); |
| 4558 checkDimension(o[0]); | 5137 checkDimension(o[0]); |
| 4559 checkDimension(o[1]); | 5138 checkDimension(o[1]); |
| 4560 } | 5139 } |
| 4561 | 5140 |
| 4562 buildUnnamed353() { | 5141 buildUnnamed1412() { |
| 4563 var o = new core.List<api.Metric>(); | 5142 var o = new core.List<api.Metric>(); |
| 4564 o.add(buildMetric()); | 5143 o.add(buildMetric()); |
| 4565 o.add(buildMetric()); | 5144 o.add(buildMetric()); |
| 4566 return o; | 5145 return o; |
| 4567 } | 5146 } |
| 4568 | 5147 |
| 4569 checkUnnamed353(core.List<api.Metric> o) { | 5148 checkUnnamed1412(core.List<api.Metric> o) { |
| 4570 unittest.expect(o, unittest.hasLength(2)); | 5149 unittest.expect(o, unittest.hasLength(2)); |
| 4571 checkMetric(o[0]); | 5150 checkMetric(o[0]); |
| 4572 checkMetric(o[1]); | 5151 checkMetric(o[1]); |
| 4573 } | 5152 } |
| 4574 | 5153 |
| 4575 buildUnnamed354() { | 5154 buildUnnamed1413() { |
| 4576 var o = new core.List<api.Dimension>(); | 5155 var o = new core.List<api.Dimension>(); |
| 4577 o.add(buildDimension()); | 5156 o.add(buildDimension()); |
| 4578 o.add(buildDimension()); | 5157 o.add(buildDimension()); |
| 4579 return o; | 5158 return o; |
| 4580 } | 5159 } |
| 4581 | 5160 |
| 4582 checkUnnamed354(core.List<api.Dimension> o) { | 5161 checkUnnamed1413(core.List<api.Dimension> o) { |
| 4583 unittest.expect(o, unittest.hasLength(2)); | 5162 unittest.expect(o, unittest.hasLength(2)); |
| 4584 checkDimension(o[0]); | 5163 checkDimension(o[0]); |
| 4585 checkDimension(o[1]); | 5164 checkDimension(o[1]); |
| 4586 } | 5165 } |
| 4587 | 5166 |
| 4588 core.int buildCounterPathToConversionReportCompatibleFields = 0; | 5167 core.int buildCounterPathToConversionReportCompatibleFields = 0; |
| 4589 buildPathToConversionReportCompatibleFields() { | 5168 buildPathToConversionReportCompatibleFields() { |
| 4590 var o = new api.PathToConversionReportCompatibleFields(); | 5169 var o = new api.PathToConversionReportCompatibleFields(); |
| 4591 buildCounterPathToConversionReportCompatibleFields++; | 5170 buildCounterPathToConversionReportCompatibleFields++; |
| 4592 if (buildCounterPathToConversionReportCompatibleFields < 3) { | 5171 if (buildCounterPathToConversionReportCompatibleFields < 3) { |
| 4593 o.conversionDimensions = buildUnnamed351(); | 5172 o.conversionDimensions = buildUnnamed1410(); |
| 4594 o.customFloodlightVariables = buildUnnamed352(); | 5173 o.customFloodlightVariables = buildUnnamed1411(); |
| 4595 o.kind = "foo"; | 5174 o.kind = "foo"; |
| 4596 o.metrics = buildUnnamed353(); | 5175 o.metrics = buildUnnamed1412(); |
| 4597 o.perInteractionDimensions = buildUnnamed354(); | 5176 o.perInteractionDimensions = buildUnnamed1413(); |
| 4598 } | 5177 } |
| 4599 buildCounterPathToConversionReportCompatibleFields--; | 5178 buildCounterPathToConversionReportCompatibleFields--; |
| 4600 return o; | 5179 return o; |
| 4601 } | 5180 } |
| 4602 | 5181 |
| 4603 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible
Fields o) { | 5182 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible
Fields o) { |
| 4604 buildCounterPathToConversionReportCompatibleFields++; | 5183 buildCounterPathToConversionReportCompatibleFields++; |
| 4605 if (buildCounterPathToConversionReportCompatibleFields < 3) { | 5184 if (buildCounterPathToConversionReportCompatibleFields < 3) { |
| 4606 checkUnnamed351(o.conversionDimensions); | 5185 checkUnnamed1410(o.conversionDimensions); |
| 4607 checkUnnamed352(o.customFloodlightVariables); | 5186 checkUnnamed1411(o.customFloodlightVariables); |
| 4608 unittest.expect(o.kind, unittest.equals('foo')); | 5187 unittest.expect(o.kind, unittest.equals('foo')); |
| 4609 checkUnnamed353(o.metrics); | 5188 checkUnnamed1412(o.metrics); |
| 4610 checkUnnamed354(o.perInteractionDimensions); | 5189 checkUnnamed1413(o.perInteractionDimensions); |
| 4611 } | 5190 } |
| 4612 buildCounterPathToConversionReportCompatibleFields--; | 5191 buildCounterPathToConversionReportCompatibleFields--; |
| 4613 } | 5192 } |
| 4614 | 5193 |
| 4615 buildUnnamed355() { | 5194 buildUnnamed1414() { |
| 4616 var o = new core.List<core.String>(); | 5195 var o = new core.List<core.String>(); |
| 4617 o.add("foo"); | 5196 o.add("foo"); |
| 4618 o.add("foo"); | 5197 o.add("foo"); |
| 4619 return o; | 5198 return o; |
| 4620 } | 5199 } |
| 4621 | 5200 |
| 4622 checkUnnamed355(core.List<core.String> o) { | 5201 checkUnnamed1414(core.List<core.String> o) { |
| 4623 unittest.expect(o, unittest.hasLength(2)); | 5202 unittest.expect(o, unittest.hasLength(2)); |
| 4624 unittest.expect(o[0], unittest.equals('foo')); | 5203 unittest.expect(o[0], unittest.equals('foo')); |
| 4625 unittest.expect(o[1], unittest.equals('foo')); | 5204 unittest.expect(o[1], unittest.equals('foo')); |
| 4626 } | 5205 } |
| 4627 | 5206 |
| 4628 core.int buildCounterPlacement = 0; | 5207 core.int buildCounterPlacement = 0; |
| 4629 buildPlacement() { | 5208 buildPlacement() { |
| 4630 var o = new api.Placement(); | 5209 var o = new api.Placement(); |
| 4631 buildCounterPlacement++; | 5210 buildCounterPlacement++; |
| 4632 if (buildCounterPlacement < 3) { | 5211 if (buildCounterPlacement < 3) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 4657 o.placementStrategyId = "foo"; | 5236 o.placementStrategyId = "foo"; |
| 4658 o.pricingSchedule = buildPricingSchedule(); | 5237 o.pricingSchedule = buildPricingSchedule(); |
| 4659 o.primary = true; | 5238 o.primary = true; |
| 4660 o.publisherUpdateInfo = buildLastModifiedInfo(); | 5239 o.publisherUpdateInfo = buildLastModifiedInfo(); |
| 4661 o.siteId = "foo"; | 5240 o.siteId = "foo"; |
| 4662 o.siteIdDimensionValue = buildDimensionValue(); | 5241 o.siteIdDimensionValue = buildDimensionValue(); |
| 4663 o.size = buildSize(); | 5242 o.size = buildSize(); |
| 4664 o.sslRequired = true; | 5243 o.sslRequired = true; |
| 4665 o.status = "foo"; | 5244 o.status = "foo"; |
| 4666 o.subaccountId = "foo"; | 5245 o.subaccountId = "foo"; |
| 4667 o.tagFormats = buildUnnamed355(); | 5246 o.tagFormats = buildUnnamed1414(); |
| 4668 o.tagSetting = buildTagSetting(); | 5247 o.tagSetting = buildTagSetting(); |
| 4669 } | 5248 } |
| 4670 buildCounterPlacement--; | 5249 buildCounterPlacement--; |
| 4671 return o; | 5250 return o; |
| 4672 } | 5251 } |
| 4673 | 5252 |
| 4674 checkPlacement(api.Placement o) { | 5253 checkPlacement(api.Placement o) { |
| 4675 buildCounterPlacement++; | 5254 buildCounterPlacement++; |
| 4676 if (buildCounterPlacement < 3) { | 5255 if (buildCounterPlacement < 3) { |
| 4677 unittest.expect(o.accountId, unittest.equals('foo')); | 5256 unittest.expect(o.accountId, unittest.equals('foo')); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4701 unittest.expect(o.placementStrategyId, unittest.equals('foo')); | 5280 unittest.expect(o.placementStrategyId, unittest.equals('foo')); |
| 4702 checkPricingSchedule(o.pricingSchedule); | 5281 checkPricingSchedule(o.pricingSchedule); |
| 4703 unittest.expect(o.primary, unittest.isTrue); | 5282 unittest.expect(o.primary, unittest.isTrue); |
| 4704 checkLastModifiedInfo(o.publisherUpdateInfo); | 5283 checkLastModifiedInfo(o.publisherUpdateInfo); |
| 4705 unittest.expect(o.siteId, unittest.equals('foo')); | 5284 unittest.expect(o.siteId, unittest.equals('foo')); |
| 4706 checkDimensionValue(o.siteIdDimensionValue); | 5285 checkDimensionValue(o.siteIdDimensionValue); |
| 4707 checkSize(o.size); | 5286 checkSize(o.size); |
| 4708 unittest.expect(o.sslRequired, unittest.isTrue); | 5287 unittest.expect(o.sslRequired, unittest.isTrue); |
| 4709 unittest.expect(o.status, unittest.equals('foo')); | 5288 unittest.expect(o.status, unittest.equals('foo')); |
| 4710 unittest.expect(o.subaccountId, unittest.equals('foo')); | 5289 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 4711 checkUnnamed355(o.tagFormats); | 5290 checkUnnamed1414(o.tagFormats); |
| 4712 checkTagSetting(o.tagSetting); | 5291 checkTagSetting(o.tagSetting); |
| 4713 } | 5292 } |
| 4714 buildCounterPlacement--; | 5293 buildCounterPlacement--; |
| 4715 } | 5294 } |
| 4716 | 5295 |
| 4717 core.int buildCounterPlacementAssignment = 0; | 5296 core.int buildCounterPlacementAssignment = 0; |
| 4718 buildPlacementAssignment() { | 5297 buildPlacementAssignment() { |
| 4719 var o = new api.PlacementAssignment(); | 5298 var o = new api.PlacementAssignment(); |
| 4720 buildCounterPlacementAssignment++; | 5299 buildCounterPlacementAssignment++; |
| 4721 if (buildCounterPlacementAssignment < 3) { | 5300 if (buildCounterPlacementAssignment < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4732 buildCounterPlacementAssignment++; | 5311 buildCounterPlacementAssignment++; |
| 4733 if (buildCounterPlacementAssignment < 3) { | 5312 if (buildCounterPlacementAssignment < 3) { |
| 4734 unittest.expect(o.active, unittest.isTrue); | 5313 unittest.expect(o.active, unittest.isTrue); |
| 4735 unittest.expect(o.placementId, unittest.equals('foo')); | 5314 unittest.expect(o.placementId, unittest.equals('foo')); |
| 4736 checkDimensionValue(o.placementIdDimensionValue); | 5315 checkDimensionValue(o.placementIdDimensionValue); |
| 4737 unittest.expect(o.sslRequired, unittest.isTrue); | 5316 unittest.expect(o.sslRequired, unittest.isTrue); |
| 4738 } | 5317 } |
| 4739 buildCounterPlacementAssignment--; | 5318 buildCounterPlacementAssignment--; |
| 4740 } | 5319 } |
| 4741 | 5320 |
| 4742 buildUnnamed356() { | 5321 buildUnnamed1415() { |
| 4743 var o = new core.List<core.String>(); | 5322 var o = new core.List<core.String>(); |
| 4744 o.add("foo"); | 5323 o.add("foo"); |
| 4745 o.add("foo"); | 5324 o.add("foo"); |
| 4746 return o; | 5325 return o; |
| 4747 } | 5326 } |
| 4748 | 5327 |
| 4749 checkUnnamed356(core.List<core.String> o) { | 5328 checkUnnamed1415(core.List<core.String> o) { |
| 4750 unittest.expect(o, unittest.hasLength(2)); | 5329 unittest.expect(o, unittest.hasLength(2)); |
| 4751 unittest.expect(o[0], unittest.equals('foo')); | 5330 unittest.expect(o[0], unittest.equals('foo')); |
| 4752 unittest.expect(o[1], unittest.equals('foo')); | 5331 unittest.expect(o[1], unittest.equals('foo')); |
| 4753 } | 5332 } |
| 4754 | 5333 |
| 4755 core.int buildCounterPlacementGroup = 0; | 5334 core.int buildCounterPlacementGroup = 0; |
| 4756 buildPlacementGroup() { | 5335 buildPlacementGroup() { |
| 4757 var o = new api.PlacementGroup(); | 5336 var o = new api.PlacementGroup(); |
| 4758 buildCounterPlacementGroup++; | 5337 buildCounterPlacementGroup++; |
| 4759 if (buildCounterPlacementGroup < 3) { | 5338 if (buildCounterPlacementGroup < 3) { |
| 4760 o.accountId = "foo"; | 5339 o.accountId = "foo"; |
| 4761 o.advertiserId = "foo"; | 5340 o.advertiserId = "foo"; |
| 4762 o.advertiserIdDimensionValue = buildDimensionValue(); | 5341 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 4763 o.archived = true; | 5342 o.archived = true; |
| 4764 o.campaignId = "foo"; | 5343 o.campaignId = "foo"; |
| 4765 o.campaignIdDimensionValue = buildDimensionValue(); | 5344 o.campaignIdDimensionValue = buildDimensionValue(); |
| 4766 o.childPlacementIds = buildUnnamed356(); | 5345 o.childPlacementIds = buildUnnamed1415(); |
| 4767 o.comment = "foo"; | 5346 o.comment = "foo"; |
| 4768 o.contentCategoryId = "foo"; | 5347 o.contentCategoryId = "foo"; |
| 4769 o.createInfo = buildLastModifiedInfo(); | 5348 o.createInfo = buildLastModifiedInfo(); |
| 4770 o.directorySiteId = "foo"; | 5349 o.directorySiteId = "foo"; |
| 4771 o.directorySiteIdDimensionValue = buildDimensionValue(); | 5350 o.directorySiteIdDimensionValue = buildDimensionValue(); |
| 4772 o.externalId = "foo"; | 5351 o.externalId = "foo"; |
| 4773 o.id = "foo"; | 5352 o.id = "foo"; |
| 4774 o.idDimensionValue = buildDimensionValue(); | 5353 o.idDimensionValue = buildDimensionValue(); |
| 4775 o.kind = "foo"; | 5354 o.kind = "foo"; |
| 4776 o.lastModifiedInfo = buildLastModifiedInfo(); | 5355 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 4777 o.name = "foo"; | 5356 o.name = "foo"; |
| 4778 o.placementGroupType = "foo"; | 5357 o.placementGroupType = "foo"; |
| 4779 o.placementStrategyId = "foo"; | 5358 o.placementStrategyId = "foo"; |
| 4780 o.pricingSchedule = buildPricingSchedule(); | 5359 o.pricingSchedule = buildPricingSchedule(); |
| 4781 o.primaryPlacementId = "foo"; | 5360 o.primaryPlacementId = "foo"; |
| 4782 o.primaryPlacementIdDimensionValue = buildDimensionValue(); | 5361 o.primaryPlacementIdDimensionValue = buildDimensionValue(); |
| 4783 o.programmaticSetting = buildProgrammaticSetting(); | |
| 4784 o.siteId = "foo"; | 5362 o.siteId = "foo"; |
| 4785 o.siteIdDimensionValue = buildDimensionValue(); | 5363 o.siteIdDimensionValue = buildDimensionValue(); |
| 4786 o.subaccountId = "foo"; | 5364 o.subaccountId = "foo"; |
| 4787 } | 5365 } |
| 4788 buildCounterPlacementGroup--; | 5366 buildCounterPlacementGroup--; |
| 4789 return o; | 5367 return o; |
| 4790 } | 5368 } |
| 4791 | 5369 |
| 4792 checkPlacementGroup(api.PlacementGroup o) { | 5370 checkPlacementGroup(api.PlacementGroup o) { |
| 4793 buildCounterPlacementGroup++; | 5371 buildCounterPlacementGroup++; |
| 4794 if (buildCounterPlacementGroup < 3) { | 5372 if (buildCounterPlacementGroup < 3) { |
| 4795 unittest.expect(o.accountId, unittest.equals('foo')); | 5373 unittest.expect(o.accountId, unittest.equals('foo')); |
| 4796 unittest.expect(o.advertiserId, unittest.equals('foo')); | 5374 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 4797 checkDimensionValue(o.advertiserIdDimensionValue); | 5375 checkDimensionValue(o.advertiserIdDimensionValue); |
| 4798 unittest.expect(o.archived, unittest.isTrue); | 5376 unittest.expect(o.archived, unittest.isTrue); |
| 4799 unittest.expect(o.campaignId, unittest.equals('foo')); | 5377 unittest.expect(o.campaignId, unittest.equals('foo')); |
| 4800 checkDimensionValue(o.campaignIdDimensionValue); | 5378 checkDimensionValue(o.campaignIdDimensionValue); |
| 4801 checkUnnamed356(o.childPlacementIds); | 5379 checkUnnamed1415(o.childPlacementIds); |
| 4802 unittest.expect(o.comment, unittest.equals('foo')); | 5380 unittest.expect(o.comment, unittest.equals('foo')); |
| 4803 unittest.expect(o.contentCategoryId, unittest.equals('foo')); | 5381 unittest.expect(o.contentCategoryId, unittest.equals('foo')); |
| 4804 checkLastModifiedInfo(o.createInfo); | 5382 checkLastModifiedInfo(o.createInfo); |
| 4805 unittest.expect(o.directorySiteId, unittest.equals('foo')); | 5383 unittest.expect(o.directorySiteId, unittest.equals('foo')); |
| 4806 checkDimensionValue(o.directorySiteIdDimensionValue); | 5384 checkDimensionValue(o.directorySiteIdDimensionValue); |
| 4807 unittest.expect(o.externalId, unittest.equals('foo')); | 5385 unittest.expect(o.externalId, unittest.equals('foo')); |
| 4808 unittest.expect(o.id, unittest.equals('foo')); | 5386 unittest.expect(o.id, unittest.equals('foo')); |
| 4809 checkDimensionValue(o.idDimensionValue); | 5387 checkDimensionValue(o.idDimensionValue); |
| 4810 unittest.expect(o.kind, unittest.equals('foo')); | 5388 unittest.expect(o.kind, unittest.equals('foo')); |
| 4811 checkLastModifiedInfo(o.lastModifiedInfo); | 5389 checkLastModifiedInfo(o.lastModifiedInfo); |
| 4812 unittest.expect(o.name, unittest.equals('foo')); | 5390 unittest.expect(o.name, unittest.equals('foo')); |
| 4813 unittest.expect(o.placementGroupType, unittest.equals('foo')); | 5391 unittest.expect(o.placementGroupType, unittest.equals('foo')); |
| 4814 unittest.expect(o.placementStrategyId, unittest.equals('foo')); | 5392 unittest.expect(o.placementStrategyId, unittest.equals('foo')); |
| 4815 checkPricingSchedule(o.pricingSchedule); | 5393 checkPricingSchedule(o.pricingSchedule); |
| 4816 unittest.expect(o.primaryPlacementId, unittest.equals('foo')); | 5394 unittest.expect(o.primaryPlacementId, unittest.equals('foo')); |
| 4817 checkDimensionValue(o.primaryPlacementIdDimensionValue); | 5395 checkDimensionValue(o.primaryPlacementIdDimensionValue); |
| 4818 checkProgrammaticSetting(o.programmaticSetting); | |
| 4819 unittest.expect(o.siteId, unittest.equals('foo')); | 5396 unittest.expect(o.siteId, unittest.equals('foo')); |
| 4820 checkDimensionValue(o.siteIdDimensionValue); | 5397 checkDimensionValue(o.siteIdDimensionValue); |
| 4821 unittest.expect(o.subaccountId, unittest.equals('foo')); | 5398 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 4822 } | 5399 } |
| 4823 buildCounterPlacementGroup--; | 5400 buildCounterPlacementGroup--; |
| 4824 } | 5401 } |
| 4825 | 5402 |
| 4826 buildUnnamed357() { | 5403 buildUnnamed1416() { |
| 4827 var o = new core.List<api.PlacementGroup>(); | 5404 var o = new core.List<api.PlacementGroup>(); |
| 4828 o.add(buildPlacementGroup()); | 5405 o.add(buildPlacementGroup()); |
| 4829 o.add(buildPlacementGroup()); | 5406 o.add(buildPlacementGroup()); |
| 4830 return o; | 5407 return o; |
| 4831 } | 5408 } |
| 4832 | 5409 |
| 4833 checkUnnamed357(core.List<api.PlacementGroup> o) { | 5410 checkUnnamed1416(core.List<api.PlacementGroup> o) { |
| 4834 unittest.expect(o, unittest.hasLength(2)); | 5411 unittest.expect(o, unittest.hasLength(2)); |
| 4835 checkPlacementGroup(o[0]); | 5412 checkPlacementGroup(o[0]); |
| 4836 checkPlacementGroup(o[1]); | 5413 checkPlacementGroup(o[1]); |
| 4837 } | 5414 } |
| 4838 | 5415 |
| 4839 core.int buildCounterPlacementGroupsListResponse = 0; | 5416 core.int buildCounterPlacementGroupsListResponse = 0; |
| 4840 buildPlacementGroupsListResponse() { | 5417 buildPlacementGroupsListResponse() { |
| 4841 var o = new api.PlacementGroupsListResponse(); | 5418 var o = new api.PlacementGroupsListResponse(); |
| 4842 buildCounterPlacementGroupsListResponse++; | 5419 buildCounterPlacementGroupsListResponse++; |
| 4843 if (buildCounterPlacementGroupsListResponse < 3) { | 5420 if (buildCounterPlacementGroupsListResponse < 3) { |
| 4844 o.kind = "foo"; | 5421 o.kind = "foo"; |
| 4845 o.nextPageToken = "foo"; | 5422 o.nextPageToken = "foo"; |
| 4846 o.placementGroups = buildUnnamed357(); | 5423 o.placementGroups = buildUnnamed1416(); |
| 4847 } | 5424 } |
| 4848 buildCounterPlacementGroupsListResponse--; | 5425 buildCounterPlacementGroupsListResponse--; |
| 4849 return o; | 5426 return o; |
| 4850 } | 5427 } |
| 4851 | 5428 |
| 4852 checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) { | 5429 checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) { |
| 4853 buildCounterPlacementGroupsListResponse++; | 5430 buildCounterPlacementGroupsListResponse++; |
| 4854 if (buildCounterPlacementGroupsListResponse < 3) { | 5431 if (buildCounterPlacementGroupsListResponse < 3) { |
| 4855 unittest.expect(o.kind, unittest.equals('foo')); | 5432 unittest.expect(o.kind, unittest.equals('foo')); |
| 4856 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5433 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4857 checkUnnamed357(o.placementGroups); | 5434 checkUnnamed1416(o.placementGroups); |
| 4858 } | 5435 } |
| 4859 buildCounterPlacementGroupsListResponse--; | 5436 buildCounterPlacementGroupsListResponse--; |
| 4860 } | 5437 } |
| 4861 | 5438 |
| 4862 buildUnnamed358() { | 5439 buildUnnamed1417() { |
| 4863 var o = new core.List<api.PlacementStrategy>(); | 5440 var o = new core.List<api.PlacementStrategy>(); |
| 4864 o.add(buildPlacementStrategy()); | 5441 o.add(buildPlacementStrategy()); |
| 4865 o.add(buildPlacementStrategy()); | 5442 o.add(buildPlacementStrategy()); |
| 4866 return o; | 5443 return o; |
| 4867 } | 5444 } |
| 4868 | 5445 |
| 4869 checkUnnamed358(core.List<api.PlacementStrategy> o) { | 5446 checkUnnamed1417(core.List<api.PlacementStrategy> o) { |
| 4870 unittest.expect(o, unittest.hasLength(2)); | 5447 unittest.expect(o, unittest.hasLength(2)); |
| 4871 checkPlacementStrategy(o[0]); | 5448 checkPlacementStrategy(o[0]); |
| 4872 checkPlacementStrategy(o[1]); | 5449 checkPlacementStrategy(o[1]); |
| 4873 } | 5450 } |
| 4874 | 5451 |
| 4875 core.int buildCounterPlacementStrategiesListResponse = 0; | 5452 core.int buildCounterPlacementStrategiesListResponse = 0; |
| 4876 buildPlacementStrategiesListResponse() { | 5453 buildPlacementStrategiesListResponse() { |
| 4877 var o = new api.PlacementStrategiesListResponse(); | 5454 var o = new api.PlacementStrategiesListResponse(); |
| 4878 buildCounterPlacementStrategiesListResponse++; | 5455 buildCounterPlacementStrategiesListResponse++; |
| 4879 if (buildCounterPlacementStrategiesListResponse < 3) { | 5456 if (buildCounterPlacementStrategiesListResponse < 3) { |
| 4880 o.kind = "foo"; | 5457 o.kind = "foo"; |
| 4881 o.nextPageToken = "foo"; | 5458 o.nextPageToken = "foo"; |
| 4882 o.placementStrategies = buildUnnamed358(); | 5459 o.placementStrategies = buildUnnamed1417(); |
| 4883 } | 5460 } |
| 4884 buildCounterPlacementStrategiesListResponse--; | 5461 buildCounterPlacementStrategiesListResponse--; |
| 4885 return o; | 5462 return o; |
| 4886 } | 5463 } |
| 4887 | 5464 |
| 4888 checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) { | 5465 checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) { |
| 4889 buildCounterPlacementStrategiesListResponse++; | 5466 buildCounterPlacementStrategiesListResponse++; |
| 4890 if (buildCounterPlacementStrategiesListResponse < 3) { | 5467 if (buildCounterPlacementStrategiesListResponse < 3) { |
| 4891 unittest.expect(o.kind, unittest.equals('foo')); | 5468 unittest.expect(o.kind, unittest.equals('foo')); |
| 4892 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5469 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4893 checkUnnamed358(o.placementStrategies); | 5470 checkUnnamed1417(o.placementStrategies); |
| 4894 } | 5471 } |
| 4895 buildCounterPlacementStrategiesListResponse--; | 5472 buildCounterPlacementStrategiesListResponse--; |
| 4896 } | 5473 } |
| 4897 | 5474 |
| 4898 core.int buildCounterPlacementStrategy = 0; | 5475 core.int buildCounterPlacementStrategy = 0; |
| 4899 buildPlacementStrategy() { | 5476 buildPlacementStrategy() { |
| 4900 var o = new api.PlacementStrategy(); | 5477 var o = new api.PlacementStrategy(); |
| 4901 buildCounterPlacementStrategy++; | 5478 buildCounterPlacementStrategy++; |
| 4902 if (buildCounterPlacementStrategy < 3) { | 5479 if (buildCounterPlacementStrategy < 3) { |
| 4903 o.accountId = "foo"; | 5480 o.accountId = "foo"; |
| 4904 o.id = "foo"; | 5481 o.id = "foo"; |
| 4905 o.kind = "foo"; | 5482 o.kind = "foo"; |
| 4906 o.name = "foo"; | 5483 o.name = "foo"; |
| 4907 } | 5484 } |
| 4908 buildCounterPlacementStrategy--; | 5485 buildCounterPlacementStrategy--; |
| 4909 return o; | 5486 return o; |
| 4910 } | 5487 } |
| 4911 | 5488 |
| 4912 checkPlacementStrategy(api.PlacementStrategy o) { | 5489 checkPlacementStrategy(api.PlacementStrategy o) { |
| 4913 buildCounterPlacementStrategy++; | 5490 buildCounterPlacementStrategy++; |
| 4914 if (buildCounterPlacementStrategy < 3) { | 5491 if (buildCounterPlacementStrategy < 3) { |
| 4915 unittest.expect(o.accountId, unittest.equals('foo')); | 5492 unittest.expect(o.accountId, unittest.equals('foo')); |
| 4916 unittest.expect(o.id, unittest.equals('foo')); | 5493 unittest.expect(o.id, unittest.equals('foo')); |
| 4917 unittest.expect(o.kind, unittest.equals('foo')); | 5494 unittest.expect(o.kind, unittest.equals('foo')); |
| 4918 unittest.expect(o.name, unittest.equals('foo')); | 5495 unittest.expect(o.name, unittest.equals('foo')); |
| 4919 } | 5496 } |
| 4920 buildCounterPlacementStrategy--; | 5497 buildCounterPlacementStrategy--; |
| 4921 } | 5498 } |
| 4922 | 5499 |
| 4923 buildUnnamed359() { | 5500 buildUnnamed1418() { |
| 4924 var o = new core.List<api.TagData>(); | 5501 var o = new core.List<api.TagData>(); |
| 4925 o.add(buildTagData()); | 5502 o.add(buildTagData()); |
| 4926 o.add(buildTagData()); | 5503 o.add(buildTagData()); |
| 4927 return o; | 5504 return o; |
| 4928 } | 5505 } |
| 4929 | 5506 |
| 4930 checkUnnamed359(core.List<api.TagData> o) { | 5507 checkUnnamed1418(core.List<api.TagData> o) { |
| 4931 unittest.expect(o, unittest.hasLength(2)); | 5508 unittest.expect(o, unittest.hasLength(2)); |
| 4932 checkTagData(o[0]); | 5509 checkTagData(o[0]); |
| 4933 checkTagData(o[1]); | 5510 checkTagData(o[1]); |
| 4934 } | 5511 } |
| 4935 | 5512 |
| 4936 core.int buildCounterPlacementTag = 0; | 5513 core.int buildCounterPlacementTag = 0; |
| 4937 buildPlacementTag() { | 5514 buildPlacementTag() { |
| 4938 var o = new api.PlacementTag(); | 5515 var o = new api.PlacementTag(); |
| 4939 buildCounterPlacementTag++; | 5516 buildCounterPlacementTag++; |
| 4940 if (buildCounterPlacementTag < 3) { | 5517 if (buildCounterPlacementTag < 3) { |
| 4941 o.placementId = "foo"; | 5518 o.placementId = "foo"; |
| 4942 o.tagDatas = buildUnnamed359(); | 5519 o.tagDatas = buildUnnamed1418(); |
| 4943 } | 5520 } |
| 4944 buildCounterPlacementTag--; | 5521 buildCounterPlacementTag--; |
| 4945 return o; | 5522 return o; |
| 4946 } | 5523 } |
| 4947 | 5524 |
| 4948 checkPlacementTag(api.PlacementTag o) { | 5525 checkPlacementTag(api.PlacementTag o) { |
| 4949 buildCounterPlacementTag++; | 5526 buildCounterPlacementTag++; |
| 4950 if (buildCounterPlacementTag < 3) { | 5527 if (buildCounterPlacementTag < 3) { |
| 4951 unittest.expect(o.placementId, unittest.equals('foo')); | 5528 unittest.expect(o.placementId, unittest.equals('foo')); |
| 4952 checkUnnamed359(o.tagDatas); | 5529 checkUnnamed1418(o.tagDatas); |
| 4953 } | 5530 } |
| 4954 buildCounterPlacementTag--; | 5531 buildCounterPlacementTag--; |
| 4955 } | 5532 } |
| 4956 | 5533 |
| 4957 buildUnnamed360() { | 5534 buildUnnamed1419() { |
| 4958 var o = new core.List<api.PlacementTag>(); | 5535 var o = new core.List<api.PlacementTag>(); |
| 4959 o.add(buildPlacementTag()); | 5536 o.add(buildPlacementTag()); |
| 4960 o.add(buildPlacementTag()); | 5537 o.add(buildPlacementTag()); |
| 4961 return o; | 5538 return o; |
| 4962 } | 5539 } |
| 4963 | 5540 |
| 4964 checkUnnamed360(core.List<api.PlacementTag> o) { | 5541 checkUnnamed1419(core.List<api.PlacementTag> o) { |
| 4965 unittest.expect(o, unittest.hasLength(2)); | 5542 unittest.expect(o, unittest.hasLength(2)); |
| 4966 checkPlacementTag(o[0]); | 5543 checkPlacementTag(o[0]); |
| 4967 checkPlacementTag(o[1]); | 5544 checkPlacementTag(o[1]); |
| 4968 } | 5545 } |
| 4969 | 5546 |
| 4970 core.int buildCounterPlacementsGenerateTagsResponse = 0; | 5547 core.int buildCounterPlacementsGenerateTagsResponse = 0; |
| 4971 buildPlacementsGenerateTagsResponse() { | 5548 buildPlacementsGenerateTagsResponse() { |
| 4972 var o = new api.PlacementsGenerateTagsResponse(); | 5549 var o = new api.PlacementsGenerateTagsResponse(); |
| 4973 buildCounterPlacementsGenerateTagsResponse++; | 5550 buildCounterPlacementsGenerateTagsResponse++; |
| 4974 if (buildCounterPlacementsGenerateTagsResponse < 3) { | 5551 if (buildCounterPlacementsGenerateTagsResponse < 3) { |
| 4975 o.kind = "foo"; | 5552 o.kind = "foo"; |
| 4976 o.placementTags = buildUnnamed360(); | 5553 o.placementTags = buildUnnamed1419(); |
| 4977 } | 5554 } |
| 4978 buildCounterPlacementsGenerateTagsResponse--; | 5555 buildCounterPlacementsGenerateTagsResponse--; |
| 4979 return o; | 5556 return o; |
| 4980 } | 5557 } |
| 4981 | 5558 |
| 4982 checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) { | 5559 checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) { |
| 4983 buildCounterPlacementsGenerateTagsResponse++; | 5560 buildCounterPlacementsGenerateTagsResponse++; |
| 4984 if (buildCounterPlacementsGenerateTagsResponse < 3) { | 5561 if (buildCounterPlacementsGenerateTagsResponse < 3) { |
| 4985 unittest.expect(o.kind, unittest.equals('foo')); | 5562 unittest.expect(o.kind, unittest.equals('foo')); |
| 4986 checkUnnamed360(o.placementTags); | 5563 checkUnnamed1419(o.placementTags); |
| 4987 } | 5564 } |
| 4988 buildCounterPlacementsGenerateTagsResponse--; | 5565 buildCounterPlacementsGenerateTagsResponse--; |
| 4989 } | 5566 } |
| 4990 | 5567 |
| 4991 buildUnnamed361() { | 5568 buildUnnamed1420() { |
| 4992 var o = new core.List<api.Placement>(); | 5569 var o = new core.List<api.Placement>(); |
| 4993 o.add(buildPlacement()); | 5570 o.add(buildPlacement()); |
| 4994 o.add(buildPlacement()); | 5571 o.add(buildPlacement()); |
| 4995 return o; | 5572 return o; |
| 4996 } | 5573 } |
| 4997 | 5574 |
| 4998 checkUnnamed361(core.List<api.Placement> o) { | 5575 checkUnnamed1420(core.List<api.Placement> o) { |
| 4999 unittest.expect(o, unittest.hasLength(2)); | 5576 unittest.expect(o, unittest.hasLength(2)); |
| 5000 checkPlacement(o[0]); | 5577 checkPlacement(o[0]); |
| 5001 checkPlacement(o[1]); | 5578 checkPlacement(o[1]); |
| 5002 } | 5579 } |
| 5003 | 5580 |
| 5004 core.int buildCounterPlacementsListResponse = 0; | 5581 core.int buildCounterPlacementsListResponse = 0; |
| 5005 buildPlacementsListResponse() { | 5582 buildPlacementsListResponse() { |
| 5006 var o = new api.PlacementsListResponse(); | 5583 var o = new api.PlacementsListResponse(); |
| 5007 buildCounterPlacementsListResponse++; | 5584 buildCounterPlacementsListResponse++; |
| 5008 if (buildCounterPlacementsListResponse < 3) { | 5585 if (buildCounterPlacementsListResponse < 3) { |
| 5009 o.kind = "foo"; | 5586 o.kind = "foo"; |
| 5010 o.nextPageToken = "foo"; | 5587 o.nextPageToken = "foo"; |
| 5011 o.placements = buildUnnamed361(); | 5588 o.placements = buildUnnamed1420(); |
| 5012 } | 5589 } |
| 5013 buildCounterPlacementsListResponse--; | 5590 buildCounterPlacementsListResponse--; |
| 5014 return o; | 5591 return o; |
| 5015 } | 5592 } |
| 5016 | 5593 |
| 5017 checkPlacementsListResponse(api.PlacementsListResponse o) { | 5594 checkPlacementsListResponse(api.PlacementsListResponse o) { |
| 5018 buildCounterPlacementsListResponse++; | 5595 buildCounterPlacementsListResponse++; |
| 5019 if (buildCounterPlacementsListResponse < 3) { | 5596 if (buildCounterPlacementsListResponse < 3) { |
| 5020 unittest.expect(o.kind, unittest.equals('foo')); | 5597 unittest.expect(o.kind, unittest.equals('foo')); |
| 5021 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5598 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5022 checkUnnamed361(o.placements); | 5599 checkUnnamed1420(o.placements); |
| 5023 } | 5600 } |
| 5024 buildCounterPlacementsListResponse--; | 5601 buildCounterPlacementsListResponse--; |
| 5025 } | 5602 } |
| 5026 | 5603 |
| 5027 core.int buildCounterPlatformType = 0; | 5604 core.int buildCounterPlatformType = 0; |
| 5028 buildPlatformType() { | 5605 buildPlatformType() { |
| 5029 var o = new api.PlatformType(); | 5606 var o = new api.PlatformType(); |
| 5030 buildCounterPlatformType++; | 5607 buildCounterPlatformType++; |
| 5031 if (buildCounterPlatformType < 3) { | 5608 if (buildCounterPlatformType < 3) { |
| 5032 o.id = "foo"; | 5609 o.id = "foo"; |
| 5033 o.kind = "foo"; | 5610 o.kind = "foo"; |
| 5034 o.name = "foo"; | 5611 o.name = "foo"; |
| 5035 } | 5612 } |
| 5036 buildCounterPlatformType--; | 5613 buildCounterPlatformType--; |
| 5037 return o; | 5614 return o; |
| 5038 } | 5615 } |
| 5039 | 5616 |
| 5040 checkPlatformType(api.PlatformType o) { | 5617 checkPlatformType(api.PlatformType o) { |
| 5041 buildCounterPlatformType++; | 5618 buildCounterPlatformType++; |
| 5042 if (buildCounterPlatformType < 3) { | 5619 if (buildCounterPlatformType < 3) { |
| 5043 unittest.expect(o.id, unittest.equals('foo')); | 5620 unittest.expect(o.id, unittest.equals('foo')); |
| 5044 unittest.expect(o.kind, unittest.equals('foo')); | 5621 unittest.expect(o.kind, unittest.equals('foo')); |
| 5045 unittest.expect(o.name, unittest.equals('foo')); | 5622 unittest.expect(o.name, unittest.equals('foo')); |
| 5046 } | 5623 } |
| 5047 buildCounterPlatformType--; | 5624 buildCounterPlatformType--; |
| 5048 } | 5625 } |
| 5049 | 5626 |
| 5050 buildUnnamed362() { | 5627 buildUnnamed1421() { |
| 5051 var o = new core.List<api.PlatformType>(); | 5628 var o = new core.List<api.PlatformType>(); |
| 5052 o.add(buildPlatformType()); | 5629 o.add(buildPlatformType()); |
| 5053 o.add(buildPlatformType()); | 5630 o.add(buildPlatformType()); |
| 5054 return o; | 5631 return o; |
| 5055 } | 5632 } |
| 5056 | 5633 |
| 5057 checkUnnamed362(core.List<api.PlatformType> o) { | 5634 checkUnnamed1421(core.List<api.PlatformType> o) { |
| 5058 unittest.expect(o, unittest.hasLength(2)); | 5635 unittest.expect(o, unittest.hasLength(2)); |
| 5059 checkPlatformType(o[0]); | 5636 checkPlatformType(o[0]); |
| 5060 checkPlatformType(o[1]); | 5637 checkPlatformType(o[1]); |
| 5061 } | 5638 } |
| 5062 | 5639 |
| 5063 core.int buildCounterPlatformTypesListResponse = 0; | 5640 core.int buildCounterPlatformTypesListResponse = 0; |
| 5064 buildPlatformTypesListResponse() { | 5641 buildPlatformTypesListResponse() { |
| 5065 var o = new api.PlatformTypesListResponse(); | 5642 var o = new api.PlatformTypesListResponse(); |
| 5066 buildCounterPlatformTypesListResponse++; | 5643 buildCounterPlatformTypesListResponse++; |
| 5067 if (buildCounterPlatformTypesListResponse < 3) { | 5644 if (buildCounterPlatformTypesListResponse < 3) { |
| 5068 o.kind = "foo"; | 5645 o.kind = "foo"; |
| 5069 o.platformTypes = buildUnnamed362(); | 5646 o.platformTypes = buildUnnamed1421(); |
| 5070 } | 5647 } |
| 5071 buildCounterPlatformTypesListResponse--; | 5648 buildCounterPlatformTypesListResponse--; |
| 5072 return o; | 5649 return o; |
| 5073 } | 5650 } |
| 5074 | 5651 |
| 5075 checkPlatformTypesListResponse(api.PlatformTypesListResponse o) { | 5652 checkPlatformTypesListResponse(api.PlatformTypesListResponse o) { |
| 5076 buildCounterPlatformTypesListResponse++; | 5653 buildCounterPlatformTypesListResponse++; |
| 5077 if (buildCounterPlatformTypesListResponse < 3) { | 5654 if (buildCounterPlatformTypesListResponse < 3) { |
| 5078 unittest.expect(o.kind, unittest.equals('foo')); | 5655 unittest.expect(o.kind, unittest.equals('foo')); |
| 5079 checkUnnamed362(o.platformTypes); | 5656 checkUnnamed1421(o.platformTypes); |
| 5080 } | 5657 } |
| 5081 buildCounterPlatformTypesListResponse--; | 5658 buildCounterPlatformTypesListResponse--; |
| 5082 } | 5659 } |
| 5083 | 5660 |
| 5084 core.int buildCounterPopupWindowProperties = 0; | 5661 core.int buildCounterPopupWindowProperties = 0; |
| 5085 buildPopupWindowProperties() { | 5662 buildPopupWindowProperties() { |
| 5086 var o = new api.PopupWindowProperties(); | 5663 var o = new api.PopupWindowProperties(); |
| 5087 buildCounterPopupWindowProperties++; | 5664 buildCounterPopupWindowProperties++; |
| 5088 if (buildCounterPopupWindowProperties < 3) { | 5665 if (buildCounterPopupWindowProperties < 3) { |
| 5089 o.dimension = buildSize(); | 5666 o.dimension = buildSize(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5114 unittest.expect(o.title, unittest.equals('foo')); | 5691 unittest.expect(o.title, unittest.equals('foo')); |
| 5115 } | 5692 } |
| 5116 buildCounterPopupWindowProperties--; | 5693 buildCounterPopupWindowProperties--; |
| 5117 } | 5694 } |
| 5118 | 5695 |
| 5119 core.int buildCounterPostalCode = 0; | 5696 core.int buildCounterPostalCode = 0; |
| 5120 buildPostalCode() { | 5697 buildPostalCode() { |
| 5121 var o = new api.PostalCode(); | 5698 var o = new api.PostalCode(); |
| 5122 buildCounterPostalCode++; | 5699 buildCounterPostalCode++; |
| 5123 if (buildCounterPostalCode < 3) { | 5700 if (buildCounterPostalCode < 3) { |
| 5701 o.code = "foo"; |
| 5124 o.countryCode = "foo"; | 5702 o.countryCode = "foo"; |
| 5125 o.countryDartId = "foo"; | 5703 o.countryDartId = "foo"; |
| 5126 o.id = "foo"; | 5704 o.id = "foo"; |
| 5127 o.kind = "foo"; | 5705 o.kind = "foo"; |
| 5128 } | 5706 } |
| 5129 buildCounterPostalCode--; | 5707 buildCounterPostalCode--; |
| 5130 return o; | 5708 return o; |
| 5131 } | 5709 } |
| 5132 | 5710 |
| 5133 checkPostalCode(api.PostalCode o) { | 5711 checkPostalCode(api.PostalCode o) { |
| 5134 buildCounterPostalCode++; | 5712 buildCounterPostalCode++; |
| 5135 if (buildCounterPostalCode < 3) { | 5713 if (buildCounterPostalCode < 3) { |
| 5714 unittest.expect(o.code, unittest.equals('foo')); |
| 5136 unittest.expect(o.countryCode, unittest.equals('foo')); | 5715 unittest.expect(o.countryCode, unittest.equals('foo')); |
| 5137 unittest.expect(o.countryDartId, unittest.equals('foo')); | 5716 unittest.expect(o.countryDartId, unittest.equals('foo')); |
| 5138 unittest.expect(o.id, unittest.equals('foo')); | 5717 unittest.expect(o.id, unittest.equals('foo')); |
| 5139 unittest.expect(o.kind, unittest.equals('foo')); | 5718 unittest.expect(o.kind, unittest.equals('foo')); |
| 5140 } | 5719 } |
| 5141 buildCounterPostalCode--; | 5720 buildCounterPostalCode--; |
| 5142 } | 5721 } |
| 5143 | 5722 |
| 5144 buildUnnamed363() { | 5723 buildUnnamed1422() { |
| 5145 var o = new core.List<api.PostalCode>(); | 5724 var o = new core.List<api.PostalCode>(); |
| 5146 o.add(buildPostalCode()); | 5725 o.add(buildPostalCode()); |
| 5147 o.add(buildPostalCode()); | 5726 o.add(buildPostalCode()); |
| 5148 return o; | 5727 return o; |
| 5149 } | 5728 } |
| 5150 | 5729 |
| 5151 checkUnnamed363(core.List<api.PostalCode> o) { | 5730 checkUnnamed1422(core.List<api.PostalCode> o) { |
| 5152 unittest.expect(o, unittest.hasLength(2)); | 5731 unittest.expect(o, unittest.hasLength(2)); |
| 5153 checkPostalCode(o[0]); | 5732 checkPostalCode(o[0]); |
| 5154 checkPostalCode(o[1]); | 5733 checkPostalCode(o[1]); |
| 5155 } | 5734 } |
| 5156 | 5735 |
| 5157 core.int buildCounterPostalCodesListResponse = 0; | 5736 core.int buildCounterPostalCodesListResponse = 0; |
| 5158 buildPostalCodesListResponse() { | 5737 buildPostalCodesListResponse() { |
| 5159 var o = new api.PostalCodesListResponse(); | 5738 var o = new api.PostalCodesListResponse(); |
| 5160 buildCounterPostalCodesListResponse++; | 5739 buildCounterPostalCodesListResponse++; |
| 5161 if (buildCounterPostalCodesListResponse < 3) { | 5740 if (buildCounterPostalCodesListResponse < 3) { |
| 5162 o.kind = "foo"; | 5741 o.kind = "foo"; |
| 5163 o.postalCodes = buildUnnamed363(); | 5742 o.postalCodes = buildUnnamed1422(); |
| 5164 } | 5743 } |
| 5165 buildCounterPostalCodesListResponse--; | 5744 buildCounterPostalCodesListResponse--; |
| 5166 return o; | 5745 return o; |
| 5167 } | 5746 } |
| 5168 | 5747 |
| 5169 checkPostalCodesListResponse(api.PostalCodesListResponse o) { | 5748 checkPostalCodesListResponse(api.PostalCodesListResponse o) { |
| 5170 buildCounterPostalCodesListResponse++; | 5749 buildCounterPostalCodesListResponse++; |
| 5171 if (buildCounterPostalCodesListResponse < 3) { | 5750 if (buildCounterPostalCodesListResponse < 3) { |
| 5172 unittest.expect(o.kind, unittest.equals('foo')); | 5751 unittest.expect(o.kind, unittest.equals('foo')); |
| 5173 checkUnnamed363(o.postalCodes); | 5752 checkUnnamed1422(o.postalCodes); |
| 5174 } | 5753 } |
| 5175 buildCounterPostalCodesListResponse--; | 5754 buildCounterPostalCodesListResponse--; |
| 5176 } | 5755 } |
| 5177 | 5756 |
| 5178 buildUnnamed364() { | 5757 buildUnnamed1423() { |
| 5758 var o = new core.List<api.Flight>(); |
| 5759 o.add(buildFlight()); |
| 5760 o.add(buildFlight()); |
| 5761 return o; |
| 5762 } |
| 5763 |
| 5764 checkUnnamed1423(core.List<api.Flight> o) { |
| 5765 unittest.expect(o, unittest.hasLength(2)); |
| 5766 checkFlight(o[0]); |
| 5767 checkFlight(o[1]); |
| 5768 } |
| 5769 |
| 5770 core.int buildCounterPricing = 0; |
| 5771 buildPricing() { |
| 5772 var o = new api.Pricing(); |
| 5773 buildCounterPricing++; |
| 5774 if (buildCounterPricing < 3) { |
| 5775 o.capCostType = "foo"; |
| 5776 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5777 o.flights = buildUnnamed1423(); |
| 5778 o.groupType = "foo"; |
| 5779 o.pricingType = "foo"; |
| 5780 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5781 } |
| 5782 buildCounterPricing--; |
| 5783 return o; |
| 5784 } |
| 5785 |
| 5786 checkPricing(api.Pricing o) { |
| 5787 buildCounterPricing++; |
| 5788 if (buildCounterPricing < 3) { |
| 5789 unittest.expect(o.capCostType, unittest.equals('foo')); |
| 5790 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 5791 checkUnnamed1423(o.flights); |
| 5792 unittest.expect(o.groupType, unittest.equals('foo')); |
| 5793 unittest.expect(o.pricingType, unittest.equals('foo')); |
| 5794 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 5795 } |
| 5796 buildCounterPricing--; |
| 5797 } |
| 5798 |
| 5799 buildUnnamed1424() { |
| 5179 var o = new core.List<api.PricingSchedulePricingPeriod>(); | 5800 var o = new core.List<api.PricingSchedulePricingPeriod>(); |
| 5180 o.add(buildPricingSchedulePricingPeriod()); | 5801 o.add(buildPricingSchedulePricingPeriod()); |
| 5181 o.add(buildPricingSchedulePricingPeriod()); | 5802 o.add(buildPricingSchedulePricingPeriod()); |
| 5182 return o; | 5803 return o; |
| 5183 } | 5804 } |
| 5184 | 5805 |
| 5185 checkUnnamed364(core.List<api.PricingSchedulePricingPeriod> o) { | 5806 checkUnnamed1424(core.List<api.PricingSchedulePricingPeriod> o) { |
| 5186 unittest.expect(o, unittest.hasLength(2)); | 5807 unittest.expect(o, unittest.hasLength(2)); |
| 5187 checkPricingSchedulePricingPeriod(o[0]); | 5808 checkPricingSchedulePricingPeriod(o[0]); |
| 5188 checkPricingSchedulePricingPeriod(o[1]); | 5809 checkPricingSchedulePricingPeriod(o[1]); |
| 5189 } | 5810 } |
| 5190 | 5811 |
| 5191 core.int buildCounterPricingSchedule = 0; | 5812 core.int buildCounterPricingSchedule = 0; |
| 5192 buildPricingSchedule() { | 5813 buildPricingSchedule() { |
| 5193 var o = new api.PricingSchedule(); | 5814 var o = new api.PricingSchedule(); |
| 5194 buildCounterPricingSchedule++; | 5815 buildCounterPricingSchedule++; |
| 5195 if (buildCounterPricingSchedule < 3) { | 5816 if (buildCounterPricingSchedule < 3) { |
| 5196 o.capCostOption = "foo"; | 5817 o.capCostOption = "foo"; |
| 5197 o.disregardOverdelivery = true; | 5818 o.disregardOverdelivery = true; |
| 5198 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 5819 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5199 o.flighted = true; | 5820 o.flighted = true; |
| 5200 o.floodlightActivityId = "foo"; | 5821 o.floodlightActivityId = "foo"; |
| 5201 o.pricingPeriods = buildUnnamed364(); | 5822 o.pricingPeriods = buildUnnamed1424(); |
| 5202 o.pricingType = "foo"; | 5823 o.pricingType = "foo"; |
| 5203 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 5824 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5204 o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 5825 o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5205 } | 5826 } |
| 5206 buildCounterPricingSchedule--; | 5827 buildCounterPricingSchedule--; |
| 5207 return o; | 5828 return o; |
| 5208 } | 5829 } |
| 5209 | 5830 |
| 5210 checkPricingSchedule(api.PricingSchedule o) { | 5831 checkPricingSchedule(api.PricingSchedule o) { |
| 5211 buildCounterPricingSchedule++; | 5832 buildCounterPricingSchedule++; |
| 5212 if (buildCounterPricingSchedule < 3) { | 5833 if (buildCounterPricingSchedule < 3) { |
| 5213 unittest.expect(o.capCostOption, unittest.equals('foo')); | 5834 unittest.expect(o.capCostOption, unittest.equals('foo')); |
| 5214 unittest.expect(o.disregardOverdelivery, unittest.isTrue); | 5835 unittest.expect(o.disregardOverdelivery, unittest.isTrue); |
| 5215 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 5836 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 5216 unittest.expect(o.flighted, unittest.isTrue); | 5837 unittest.expect(o.flighted, unittest.isTrue); |
| 5217 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); | 5838 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); |
| 5218 checkUnnamed364(o.pricingPeriods); | 5839 checkUnnamed1424(o.pricingPeriods); |
| 5219 unittest.expect(o.pricingType, unittest.equals('foo')); | 5840 unittest.expect(o.pricingType, unittest.equals('foo')); |
| 5220 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 5841 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 5221 unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("200
2-02-27T00:00:00"))); | 5842 unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("200
2-02-27T00:00:00"))); |
| 5222 } | 5843 } |
| 5223 buildCounterPricingSchedule--; | 5844 buildCounterPricingSchedule--; |
| 5224 } | 5845 } |
| 5225 | 5846 |
| 5226 core.int buildCounterPricingSchedulePricingPeriod = 0; | 5847 core.int buildCounterPricingSchedulePricingPeriod = 0; |
| 5227 buildPricingSchedulePricingPeriod() { | 5848 buildPricingSchedulePricingPeriod() { |
| 5228 var o = new api.PricingSchedulePricingPeriod(); | 5849 var o = new api.PricingSchedulePricingPeriod(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 5243 if (buildCounterPricingSchedulePricingPeriod < 3) { | 5864 if (buildCounterPricingSchedulePricingPeriod < 3) { |
| 5244 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 5865 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 5245 unittest.expect(o.pricingComment, unittest.equals('foo')); | 5866 unittest.expect(o.pricingComment, unittest.equals('foo')); |
| 5246 unittest.expect(o.rateOrCostNanos, unittest.equals('foo')); | 5867 unittest.expect(o.rateOrCostNanos, unittest.equals('foo')); |
| 5247 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 5868 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 5248 unittest.expect(o.units, unittest.equals('foo')); | 5869 unittest.expect(o.units, unittest.equals('foo')); |
| 5249 } | 5870 } |
| 5250 buildCounterPricingSchedulePricingPeriod--; | 5871 buildCounterPricingSchedulePricingPeriod--; |
| 5251 } | 5872 } |
| 5252 | 5873 |
| 5253 buildUnnamed365() { | 5874 core.int buildCounterProject = 0; |
| 5254 var o = new core.List<core.String>(); | 5875 buildProject() { |
| 5255 o.add("foo"); | 5876 var o = new api.Project(); |
| 5256 o.add("foo"); | 5877 buildCounterProject++; |
| 5878 if (buildCounterProject < 3) { |
| 5879 o.accountId = "foo"; |
| 5880 o.advertiserId = "foo"; |
| 5881 o.audienceAgeGroup = "foo"; |
| 5882 o.audienceGender = "foo"; |
| 5883 o.budget = "foo"; |
| 5884 o.clientBillingCode = "foo"; |
| 5885 o.clientName = "foo"; |
| 5886 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5887 o.id = "foo"; |
| 5888 o.kind = "foo"; |
| 5889 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 5890 o.name = "foo"; |
| 5891 o.overview = "foo"; |
| 5892 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5893 o.subaccountId = "foo"; |
| 5894 o.targetClicks = "foo"; |
| 5895 o.targetConversions = "foo"; |
| 5896 o.targetCpaNanos = "foo"; |
| 5897 o.targetCpcNanos = "foo"; |
| 5898 o.targetCpmNanos = "foo"; |
| 5899 o.targetImpressions = "foo"; |
| 5900 } |
| 5901 buildCounterProject--; |
| 5257 return o; | 5902 return o; |
| 5258 } | 5903 } |
| 5259 | 5904 |
| 5260 checkUnnamed365(core.List<core.String> o) { | 5905 checkProject(api.Project o) { |
| 5261 unittest.expect(o, unittest.hasLength(2)); | 5906 buildCounterProject++; |
| 5262 unittest.expect(o[0], unittest.equals('foo')); | 5907 if (buildCounterProject < 3) { |
| 5263 unittest.expect(o[1], unittest.equals('foo')); | 5908 unittest.expect(o.accountId, unittest.equals('foo')); |
| 5909 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 5910 unittest.expect(o.audienceAgeGroup, unittest.equals('foo')); |
| 5911 unittest.expect(o.audienceGender, unittest.equals('foo')); |
| 5912 unittest.expect(o.budget, unittest.equals('foo')); |
| 5913 unittest.expect(o.clientBillingCode, unittest.equals('foo')); |
| 5914 unittest.expect(o.clientName, unittest.equals('foo')); |
| 5915 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 5916 unittest.expect(o.id, unittest.equals('foo')); |
| 5917 unittest.expect(o.kind, unittest.equals('foo')); |
| 5918 checkLastModifiedInfo(o.lastModifiedInfo); |
| 5919 unittest.expect(o.name, unittest.equals('foo')); |
| 5920 unittest.expect(o.overview, unittest.equals('foo')); |
| 5921 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 5922 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 5923 unittest.expect(o.targetClicks, unittest.equals('foo')); |
| 5924 unittest.expect(o.targetConversions, unittest.equals('foo')); |
| 5925 unittest.expect(o.targetCpaNanos, unittest.equals('foo')); |
| 5926 unittest.expect(o.targetCpcNanos, unittest.equals('foo')); |
| 5927 unittest.expect(o.targetCpmNanos, unittest.equals('foo')); |
| 5928 unittest.expect(o.targetImpressions, unittest.equals('foo')); |
| 5929 } |
| 5930 buildCounterProject--; |
| 5264 } | 5931 } |
| 5265 | 5932 |
| 5266 buildUnnamed366() { | 5933 buildUnnamed1425() { |
| 5267 var o = new core.List<core.String>(); | 5934 var o = new core.List<api.Project>(); |
| 5268 o.add("foo"); | 5935 o.add(buildProject()); |
| 5269 o.add("foo"); | 5936 o.add(buildProject()); |
| 5270 return o; | 5937 return o; |
| 5271 } | 5938 } |
| 5272 | 5939 |
| 5273 checkUnnamed366(core.List<core.String> o) { | 5940 checkUnnamed1425(core.List<api.Project> o) { |
| 5274 unittest.expect(o, unittest.hasLength(2)); | 5941 unittest.expect(o, unittest.hasLength(2)); |
| 5275 unittest.expect(o[0], unittest.equals('foo')); | 5942 checkProject(o[0]); |
| 5276 unittest.expect(o[1], unittest.equals('foo')); | 5943 checkProject(o[1]); |
| 5277 } | 5944 } |
| 5278 | 5945 |
| 5279 core.int buildCounterProgrammaticSetting = 0; | 5946 core.int buildCounterProjectsListResponse = 0; |
| 5280 buildProgrammaticSetting() { | 5947 buildProjectsListResponse() { |
| 5281 var o = new api.ProgrammaticSetting(); | 5948 var o = new api.ProjectsListResponse(); |
| 5282 buildCounterProgrammaticSetting++; | 5949 buildCounterProjectsListResponse++; |
| 5283 if (buildCounterProgrammaticSetting < 3) { | 5950 if (buildCounterProjectsListResponse < 3) { |
| 5284 o.adxDealIds = buildUnnamed365(); | 5951 o.kind = "foo"; |
| 5285 o.insertionOrderId = "foo"; | 5952 o.nextPageToken = "foo"; |
| 5286 o.insertionOrderIdStatus = true; | 5953 o.projects = buildUnnamed1425(); |
| 5287 o.mediaCostNanos = "foo"; | |
| 5288 o.programmatic = true; | |
| 5289 o.traffickerEmails = buildUnnamed366(); | |
| 5290 } | 5954 } |
| 5291 buildCounterProgrammaticSetting--; | 5955 buildCounterProjectsListResponse--; |
| 5292 return o; | 5956 return o; |
| 5293 } | 5957 } |
| 5294 | 5958 |
| 5295 checkProgrammaticSetting(api.ProgrammaticSetting o) { | 5959 checkProjectsListResponse(api.ProjectsListResponse o) { |
| 5296 buildCounterProgrammaticSetting++; | 5960 buildCounterProjectsListResponse++; |
| 5297 if (buildCounterProgrammaticSetting < 3) { | 5961 if (buildCounterProjectsListResponse < 3) { |
| 5298 checkUnnamed365(o.adxDealIds); | 5962 unittest.expect(o.kind, unittest.equals('foo')); |
| 5299 unittest.expect(o.insertionOrderId, unittest.equals('foo')); | 5963 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5300 unittest.expect(o.insertionOrderIdStatus, unittest.isTrue); | 5964 checkUnnamed1425(o.projects); |
| 5301 unittest.expect(o.mediaCostNanos, unittest.equals('foo')); | |
| 5302 unittest.expect(o.programmatic, unittest.isTrue); | |
| 5303 checkUnnamed366(o.traffickerEmails); | |
| 5304 } | 5965 } |
| 5305 buildCounterProgrammaticSetting--; | 5966 buildCounterProjectsListResponse--; |
| 5306 } | 5967 } |
| 5307 | 5968 |
| 5308 buildUnnamed367() { | 5969 buildUnnamed1426() { |
| 5309 var o = new core.List<api.Dimension>(); | 5970 var o = new core.List<api.Dimension>(); |
| 5310 o.add(buildDimension()); | 5971 o.add(buildDimension()); |
| 5311 o.add(buildDimension()); | 5972 o.add(buildDimension()); |
| 5312 return o; | 5973 return o; |
| 5313 } | 5974 } |
| 5314 | 5975 |
| 5315 checkUnnamed367(core.List<api.Dimension> o) { | 5976 checkUnnamed1426(core.List<api.Dimension> o) { |
| 5316 unittest.expect(o, unittest.hasLength(2)); | 5977 unittest.expect(o, unittest.hasLength(2)); |
| 5317 checkDimension(o[0]); | 5978 checkDimension(o[0]); |
| 5318 checkDimension(o[1]); | 5979 checkDimension(o[1]); |
| 5319 } | 5980 } |
| 5320 | 5981 |
| 5321 buildUnnamed368() { | 5982 buildUnnamed1427() { |
| 5322 var o = new core.List<api.Dimension>(); | 5983 var o = new core.List<api.Dimension>(); |
| 5323 o.add(buildDimension()); | 5984 o.add(buildDimension()); |
| 5324 o.add(buildDimension()); | 5985 o.add(buildDimension()); |
| 5325 return o; | 5986 return o; |
| 5326 } | 5987 } |
| 5327 | 5988 |
| 5328 checkUnnamed368(core.List<api.Dimension> o) { | 5989 checkUnnamed1427(core.List<api.Dimension> o) { |
| 5329 unittest.expect(o, unittest.hasLength(2)); | 5990 unittest.expect(o, unittest.hasLength(2)); |
| 5330 checkDimension(o[0]); | 5991 checkDimension(o[0]); |
| 5331 checkDimension(o[1]); | 5992 checkDimension(o[1]); |
| 5332 } | 5993 } |
| 5333 | 5994 |
| 5334 buildUnnamed369() { | 5995 buildUnnamed1428() { |
| 5335 var o = new core.List<api.Metric>(); | 5996 var o = new core.List<api.Metric>(); |
| 5336 o.add(buildMetric()); | 5997 o.add(buildMetric()); |
| 5337 o.add(buildMetric()); | 5998 o.add(buildMetric()); |
| 5338 return o; | 5999 return o; |
| 5339 } | 6000 } |
| 5340 | 6001 |
| 5341 checkUnnamed369(core.List<api.Metric> o) { | 6002 checkUnnamed1428(core.List<api.Metric> o) { |
| 5342 unittest.expect(o, unittest.hasLength(2)); | 6003 unittest.expect(o, unittest.hasLength(2)); |
| 5343 checkMetric(o[0]); | 6004 checkMetric(o[0]); |
| 5344 checkMetric(o[1]); | 6005 checkMetric(o[1]); |
| 5345 } | 6006 } |
| 5346 | 6007 |
| 5347 buildUnnamed370() { | 6008 buildUnnamed1429() { |
| 5348 var o = new core.List<api.Metric>(); | 6009 var o = new core.List<api.Metric>(); |
| 5349 o.add(buildMetric()); | 6010 o.add(buildMetric()); |
| 5350 o.add(buildMetric()); | 6011 o.add(buildMetric()); |
| 5351 return o; | 6012 return o; |
| 5352 } | 6013 } |
| 5353 | 6014 |
| 5354 checkUnnamed370(core.List<api.Metric> o) { | 6015 checkUnnamed1429(core.List<api.Metric> o) { |
| 5355 unittest.expect(o, unittest.hasLength(2)); | 6016 unittest.expect(o, unittest.hasLength(2)); |
| 5356 checkMetric(o[0]); | 6017 checkMetric(o[0]); |
| 5357 checkMetric(o[1]); | 6018 checkMetric(o[1]); |
| 5358 } | 6019 } |
| 5359 | 6020 |
| 5360 buildUnnamed371() { | 6021 buildUnnamed1430() { |
| 5361 var o = new core.List<api.Metric>(); | 6022 var o = new core.List<api.Metric>(); |
| 5362 o.add(buildMetric()); | 6023 o.add(buildMetric()); |
| 5363 o.add(buildMetric()); | 6024 o.add(buildMetric()); |
| 5364 return o; | 6025 return o; |
| 5365 } | 6026 } |
| 5366 | 6027 |
| 5367 checkUnnamed371(core.List<api.Metric> o) { | 6028 checkUnnamed1430(core.List<api.Metric> o) { |
| 5368 unittest.expect(o, unittest.hasLength(2)); | 6029 unittest.expect(o, unittest.hasLength(2)); |
| 5369 checkMetric(o[0]); | 6030 checkMetric(o[0]); |
| 5370 checkMetric(o[1]); | 6031 checkMetric(o[1]); |
| 5371 } | 6032 } |
| 5372 | 6033 |
| 5373 core.int buildCounterReachReportCompatibleFields = 0; | 6034 core.int buildCounterReachReportCompatibleFields = 0; |
| 5374 buildReachReportCompatibleFields() { | 6035 buildReachReportCompatibleFields() { |
| 5375 var o = new api.ReachReportCompatibleFields(); | 6036 var o = new api.ReachReportCompatibleFields(); |
| 5376 buildCounterReachReportCompatibleFields++; | 6037 buildCounterReachReportCompatibleFields++; |
| 5377 if (buildCounterReachReportCompatibleFields < 3) { | 6038 if (buildCounterReachReportCompatibleFields < 3) { |
| 5378 o.dimensionFilters = buildUnnamed367(); | 6039 o.dimensionFilters = buildUnnamed1426(); |
| 5379 o.dimensions = buildUnnamed368(); | 6040 o.dimensions = buildUnnamed1427(); |
| 5380 o.kind = "foo"; | 6041 o.kind = "foo"; |
| 5381 o.metrics = buildUnnamed369(); | 6042 o.metrics = buildUnnamed1428(); |
| 5382 o.pivotedActivityMetrics = buildUnnamed370(); | 6043 o.pivotedActivityMetrics = buildUnnamed1429(); |
| 5383 o.reachByFrequencyMetrics = buildUnnamed371(); | 6044 o.reachByFrequencyMetrics = buildUnnamed1430(); |
| 5384 } | 6045 } |
| 5385 buildCounterReachReportCompatibleFields--; | 6046 buildCounterReachReportCompatibleFields--; |
| 5386 return o; | 6047 return o; |
| 5387 } | 6048 } |
| 5388 | 6049 |
| 5389 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { | 6050 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { |
| 5390 buildCounterReachReportCompatibleFields++; | 6051 buildCounterReachReportCompatibleFields++; |
| 5391 if (buildCounterReachReportCompatibleFields < 3) { | 6052 if (buildCounterReachReportCompatibleFields < 3) { |
| 5392 checkUnnamed367(o.dimensionFilters); | 6053 checkUnnamed1426(o.dimensionFilters); |
| 5393 checkUnnamed368(o.dimensions); | 6054 checkUnnamed1427(o.dimensions); |
| 5394 unittest.expect(o.kind, unittest.equals('foo')); | 6055 unittest.expect(o.kind, unittest.equals('foo')); |
| 5395 checkUnnamed369(o.metrics); | 6056 checkUnnamed1428(o.metrics); |
| 5396 checkUnnamed370(o.pivotedActivityMetrics); | 6057 checkUnnamed1429(o.pivotedActivityMetrics); |
| 5397 checkUnnamed371(o.reachByFrequencyMetrics); | 6058 checkUnnamed1430(o.reachByFrequencyMetrics); |
| 5398 } | 6059 } |
| 5399 buildCounterReachReportCompatibleFields--; | 6060 buildCounterReachReportCompatibleFields--; |
| 5400 } | 6061 } |
| 5401 | 6062 |
| 5402 core.int buildCounterRecipient = 0; | 6063 core.int buildCounterRecipient = 0; |
| 5403 buildRecipient() { | 6064 buildRecipient() { |
| 5404 var o = new api.Recipient(); | 6065 var o = new api.Recipient(); |
| 5405 buildCounterRecipient++; | 6066 buildCounterRecipient++; |
| 5406 if (buildCounterRecipient < 3) { | 6067 if (buildCounterRecipient < 3) { |
| 5407 o.deliveryType = "foo"; | 6068 o.deliveryType = "foo"; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5444 unittest.expect(o.countryCode, unittest.equals('foo')); | 6105 unittest.expect(o.countryCode, unittest.equals('foo')); |
| 5445 unittest.expect(o.countryDartId, unittest.equals('foo')); | 6106 unittest.expect(o.countryDartId, unittest.equals('foo')); |
| 5446 unittest.expect(o.dartId, unittest.equals('foo')); | 6107 unittest.expect(o.dartId, unittest.equals('foo')); |
| 5447 unittest.expect(o.kind, unittest.equals('foo')); | 6108 unittest.expect(o.kind, unittest.equals('foo')); |
| 5448 unittest.expect(o.name, unittest.equals('foo')); | 6109 unittest.expect(o.name, unittest.equals('foo')); |
| 5449 unittest.expect(o.regionCode, unittest.equals('foo')); | 6110 unittest.expect(o.regionCode, unittest.equals('foo')); |
| 5450 } | 6111 } |
| 5451 buildCounterRegion--; | 6112 buildCounterRegion--; |
| 5452 } | 6113 } |
| 5453 | 6114 |
| 5454 buildUnnamed372() { | 6115 buildUnnamed1431() { |
| 5455 var o = new core.List<api.Region>(); | 6116 var o = new core.List<api.Region>(); |
| 5456 o.add(buildRegion()); | 6117 o.add(buildRegion()); |
| 5457 o.add(buildRegion()); | 6118 o.add(buildRegion()); |
| 5458 return o; | 6119 return o; |
| 5459 } | 6120 } |
| 5460 | 6121 |
| 5461 checkUnnamed372(core.List<api.Region> o) { | 6122 checkUnnamed1431(core.List<api.Region> o) { |
| 5462 unittest.expect(o, unittest.hasLength(2)); | 6123 unittest.expect(o, unittest.hasLength(2)); |
| 5463 checkRegion(o[0]); | 6124 checkRegion(o[0]); |
| 5464 checkRegion(o[1]); | 6125 checkRegion(o[1]); |
| 5465 } | 6126 } |
| 5466 | 6127 |
| 5467 core.int buildCounterRegionsListResponse = 0; | 6128 core.int buildCounterRegionsListResponse = 0; |
| 5468 buildRegionsListResponse() { | 6129 buildRegionsListResponse() { |
| 5469 var o = new api.RegionsListResponse(); | 6130 var o = new api.RegionsListResponse(); |
| 5470 buildCounterRegionsListResponse++; | 6131 buildCounterRegionsListResponse++; |
| 5471 if (buildCounterRegionsListResponse < 3) { | 6132 if (buildCounterRegionsListResponse < 3) { |
| 5472 o.kind = "foo"; | 6133 o.kind = "foo"; |
| 5473 o.regions = buildUnnamed372(); | 6134 o.regions = buildUnnamed1431(); |
| 5474 } | 6135 } |
| 5475 buildCounterRegionsListResponse--; | 6136 buildCounterRegionsListResponse--; |
| 5476 return o; | 6137 return o; |
| 5477 } | 6138 } |
| 5478 | 6139 |
| 5479 checkRegionsListResponse(api.RegionsListResponse o) { | 6140 checkRegionsListResponse(api.RegionsListResponse o) { |
| 5480 buildCounterRegionsListResponse++; | 6141 buildCounterRegionsListResponse++; |
| 5481 if (buildCounterRegionsListResponse < 3) { | 6142 if (buildCounterRegionsListResponse < 3) { |
| 5482 unittest.expect(o.kind, unittest.equals('foo')); | 6143 unittest.expect(o.kind, unittest.equals('foo')); |
| 5483 checkUnnamed372(o.regions); | 6144 checkUnnamed1431(o.regions); |
| 5484 } | 6145 } |
| 5485 buildCounterRegionsListResponse--; | 6146 buildCounterRegionsListResponse--; |
| 5486 } | 6147 } |
| 5487 | 6148 |
| 5488 buildUnnamed373() { | 6149 core.int buildCounterRemarketingList = 0; |
| 6150 buildRemarketingList() { |
| 6151 var o = new api.RemarketingList(); |
| 6152 buildCounterRemarketingList++; |
| 6153 if (buildCounterRemarketingList < 3) { |
| 6154 o.accountId = "foo"; |
| 6155 o.active = true; |
| 6156 o.advertiserId = "foo"; |
| 6157 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 6158 o.description = "foo"; |
| 6159 o.id = "foo"; |
| 6160 o.kind = "foo"; |
| 6161 o.lifeSpan = "foo"; |
| 6162 o.listPopulationRule = buildListPopulationRule(); |
| 6163 o.listSize = "foo"; |
| 6164 o.listSource = "foo"; |
| 6165 o.name = "foo"; |
| 6166 o.subaccountId = "foo"; |
| 6167 } |
| 6168 buildCounterRemarketingList--; |
| 6169 return o; |
| 6170 } |
| 6171 |
| 6172 checkRemarketingList(api.RemarketingList o) { |
| 6173 buildCounterRemarketingList++; |
| 6174 if (buildCounterRemarketingList < 3) { |
| 6175 unittest.expect(o.accountId, unittest.equals('foo')); |
| 6176 unittest.expect(o.active, unittest.isTrue); |
| 6177 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 6178 checkDimensionValue(o.advertiserIdDimensionValue); |
| 6179 unittest.expect(o.description, unittest.equals('foo')); |
| 6180 unittest.expect(o.id, unittest.equals('foo')); |
| 6181 unittest.expect(o.kind, unittest.equals('foo')); |
| 6182 unittest.expect(o.lifeSpan, unittest.equals('foo')); |
| 6183 checkListPopulationRule(o.listPopulationRule); |
| 6184 unittest.expect(o.listSize, unittest.equals('foo')); |
| 6185 unittest.expect(o.listSource, unittest.equals('foo')); |
| 6186 unittest.expect(o.name, unittest.equals('foo')); |
| 6187 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 6188 } |
| 6189 buildCounterRemarketingList--; |
| 6190 } |
| 6191 |
| 6192 buildUnnamed1432() { |
| 6193 var o = new core.List<core.String>(); |
| 6194 o.add("foo"); |
| 6195 o.add("foo"); |
| 6196 return o; |
| 6197 } |
| 6198 |
| 6199 checkUnnamed1432(core.List<core.String> o) { |
| 6200 unittest.expect(o, unittest.hasLength(2)); |
| 6201 unittest.expect(o[0], unittest.equals('foo')); |
| 6202 unittest.expect(o[1], unittest.equals('foo')); |
| 6203 } |
| 6204 |
| 6205 buildUnnamed1433() { |
| 6206 var o = new core.List<core.String>(); |
| 6207 o.add("foo"); |
| 6208 o.add("foo"); |
| 6209 return o; |
| 6210 } |
| 6211 |
| 6212 checkUnnamed1433(core.List<core.String> o) { |
| 6213 unittest.expect(o, unittest.hasLength(2)); |
| 6214 unittest.expect(o[0], unittest.equals('foo')); |
| 6215 unittest.expect(o[1], unittest.equals('foo')); |
| 6216 } |
| 6217 |
| 6218 core.int buildCounterRemarketingListShare = 0; |
| 6219 buildRemarketingListShare() { |
| 6220 var o = new api.RemarketingListShare(); |
| 6221 buildCounterRemarketingListShare++; |
| 6222 if (buildCounterRemarketingListShare < 3) { |
| 6223 o.kind = "foo"; |
| 6224 o.remarketingListId = "foo"; |
| 6225 o.sharedAccountIds = buildUnnamed1432(); |
| 6226 o.sharedAdvertiserIds = buildUnnamed1433(); |
| 6227 } |
| 6228 buildCounterRemarketingListShare--; |
| 6229 return o; |
| 6230 } |
| 6231 |
| 6232 checkRemarketingListShare(api.RemarketingListShare o) { |
| 6233 buildCounterRemarketingListShare++; |
| 6234 if (buildCounterRemarketingListShare < 3) { |
| 6235 unittest.expect(o.kind, unittest.equals('foo')); |
| 6236 unittest.expect(o.remarketingListId, unittest.equals('foo')); |
| 6237 checkUnnamed1432(o.sharedAccountIds); |
| 6238 checkUnnamed1433(o.sharedAdvertiserIds); |
| 6239 } |
| 6240 buildCounterRemarketingListShare--; |
| 6241 } |
| 6242 |
| 6243 buildUnnamed1434() { |
| 6244 var o = new core.List<api.RemarketingList>(); |
| 6245 o.add(buildRemarketingList()); |
| 6246 o.add(buildRemarketingList()); |
| 6247 return o; |
| 6248 } |
| 6249 |
| 6250 checkUnnamed1434(core.List<api.RemarketingList> o) { |
| 6251 unittest.expect(o, unittest.hasLength(2)); |
| 6252 checkRemarketingList(o[0]); |
| 6253 checkRemarketingList(o[1]); |
| 6254 } |
| 6255 |
| 6256 core.int buildCounterRemarketingListsListResponse = 0; |
| 6257 buildRemarketingListsListResponse() { |
| 6258 var o = new api.RemarketingListsListResponse(); |
| 6259 buildCounterRemarketingListsListResponse++; |
| 6260 if (buildCounterRemarketingListsListResponse < 3) { |
| 6261 o.kind = "foo"; |
| 6262 o.nextPageToken = "foo"; |
| 6263 o.remarketingLists = buildUnnamed1434(); |
| 6264 } |
| 6265 buildCounterRemarketingListsListResponse--; |
| 6266 return o; |
| 6267 } |
| 6268 |
| 6269 checkRemarketingListsListResponse(api.RemarketingListsListResponse o) { |
| 6270 buildCounterRemarketingListsListResponse++; |
| 6271 if (buildCounterRemarketingListsListResponse < 3) { |
| 6272 unittest.expect(o.kind, unittest.equals('foo')); |
| 6273 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6274 checkUnnamed1434(o.remarketingLists); |
| 6275 } |
| 6276 buildCounterRemarketingListsListResponse--; |
| 6277 } |
| 6278 |
| 6279 buildUnnamed1435() { |
| 5489 var o = new core.List<api.DimensionValue>(); | 6280 var o = new core.List<api.DimensionValue>(); |
| 5490 o.add(buildDimensionValue()); | 6281 o.add(buildDimensionValue()); |
| 5491 o.add(buildDimensionValue()); | 6282 o.add(buildDimensionValue()); |
| 5492 return o; | 6283 return o; |
| 5493 } | 6284 } |
| 5494 | 6285 |
| 5495 checkUnnamed373(core.List<api.DimensionValue> o) { | 6286 checkUnnamed1435(core.List<api.DimensionValue> o) { |
| 5496 unittest.expect(o, unittest.hasLength(2)); | 6287 unittest.expect(o, unittest.hasLength(2)); |
| 5497 checkDimensionValue(o[0]); | 6288 checkDimensionValue(o[0]); |
| 5498 checkDimensionValue(o[1]); | 6289 checkDimensionValue(o[1]); |
| 5499 } | 6290 } |
| 5500 | 6291 |
| 5501 buildUnnamed374() { | 6292 buildUnnamed1436() { |
| 5502 var o = new core.List<api.SortedDimension>(); | 6293 var o = new core.List<api.SortedDimension>(); |
| 5503 o.add(buildSortedDimension()); | 6294 o.add(buildSortedDimension()); |
| 5504 o.add(buildSortedDimension()); | 6295 o.add(buildSortedDimension()); |
| 5505 return o; | 6296 return o; |
| 5506 } | 6297 } |
| 5507 | 6298 |
| 5508 checkUnnamed374(core.List<api.SortedDimension> o) { | 6299 checkUnnamed1436(core.List<api.SortedDimension> o) { |
| 5509 unittest.expect(o, unittest.hasLength(2)); | 6300 unittest.expect(o, unittest.hasLength(2)); |
| 5510 checkSortedDimension(o[0]); | 6301 checkSortedDimension(o[0]); |
| 5511 checkSortedDimension(o[1]); | 6302 checkSortedDimension(o[1]); |
| 5512 } | 6303 } |
| 5513 | 6304 |
| 5514 buildUnnamed375() { | 6305 buildUnnamed1437() { |
| 5515 var o = new core.List<core.String>(); | 6306 var o = new core.List<core.String>(); |
| 5516 o.add("foo"); | 6307 o.add("foo"); |
| 5517 o.add("foo"); | 6308 o.add("foo"); |
| 5518 return o; | 6309 return o; |
| 5519 } | 6310 } |
| 5520 | 6311 |
| 5521 checkUnnamed375(core.List<core.String> o) { | 6312 checkUnnamed1437(core.List<core.String> o) { |
| 5522 unittest.expect(o, unittest.hasLength(2)); | 6313 unittest.expect(o, unittest.hasLength(2)); |
| 5523 unittest.expect(o[0], unittest.equals('foo')); | 6314 unittest.expect(o[0], unittest.equals('foo')); |
| 5524 unittest.expect(o[1], unittest.equals('foo')); | 6315 unittest.expect(o[1], unittest.equals('foo')); |
| 5525 } | 6316 } |
| 5526 | 6317 |
| 5527 core.int buildCounterReportCriteria = 0; | 6318 core.int buildCounterReportCriteria = 0; |
| 5528 buildReportCriteria() { | 6319 buildReportCriteria() { |
| 5529 var o = new api.ReportCriteria(); | 6320 var o = new api.ReportCriteria(); |
| 5530 buildCounterReportCriteria++; | 6321 buildCounterReportCriteria++; |
| 5531 if (buildCounterReportCriteria < 3) { | 6322 if (buildCounterReportCriteria < 3) { |
| 5532 o.activities = buildActivities(); | 6323 o.activities = buildActivities(); |
| 5533 o.customRichMediaEvents = buildCustomRichMediaEvents(); | 6324 o.customRichMediaEvents = buildCustomRichMediaEvents(); |
| 5534 o.dateRange = buildDateRange(); | 6325 o.dateRange = buildDateRange(); |
| 5535 o.dimensionFilters = buildUnnamed373(); | 6326 o.dimensionFilters = buildUnnamed1435(); |
| 5536 o.dimensions = buildUnnamed374(); | 6327 o.dimensions = buildUnnamed1436(); |
| 5537 o.metricNames = buildUnnamed375(); | 6328 o.metricNames = buildUnnamed1437(); |
| 5538 } | 6329 } |
| 5539 buildCounterReportCriteria--; | 6330 buildCounterReportCriteria--; |
| 5540 return o; | 6331 return o; |
| 5541 } | 6332 } |
| 5542 | 6333 |
| 5543 checkReportCriteria(api.ReportCriteria o) { | 6334 checkReportCriteria(api.ReportCriteria o) { |
| 5544 buildCounterReportCriteria++; | 6335 buildCounterReportCriteria++; |
| 5545 if (buildCounterReportCriteria < 3) { | 6336 if (buildCounterReportCriteria < 3) { |
| 5546 checkActivities(o.activities); | 6337 checkActivities(o.activities); |
| 5547 checkCustomRichMediaEvents(o.customRichMediaEvents); | 6338 checkCustomRichMediaEvents(o.customRichMediaEvents); |
| 5548 checkDateRange(o.dateRange); | 6339 checkDateRange(o.dateRange); |
| 5549 checkUnnamed373(o.dimensionFilters); | 6340 checkUnnamed1435(o.dimensionFilters); |
| 5550 checkUnnamed374(o.dimensions); | 6341 checkUnnamed1436(o.dimensions); |
| 5551 checkUnnamed375(o.metricNames); | 6342 checkUnnamed1437(o.metricNames); |
| 5552 } | 6343 } |
| 5553 buildCounterReportCriteria--; | 6344 buildCounterReportCriteria--; |
| 5554 } | 6345 } |
| 5555 | 6346 |
| 5556 buildUnnamed376() { | 6347 buildUnnamed1438() { |
| 5557 var o = new core.List<api.SortedDimension>(); | 6348 var o = new core.List<api.SortedDimension>(); |
| 5558 o.add(buildSortedDimension()); | 6349 o.add(buildSortedDimension()); |
| 5559 o.add(buildSortedDimension()); | 6350 o.add(buildSortedDimension()); |
| 5560 return o; | 6351 return o; |
| 5561 } | 6352 } |
| 5562 | 6353 |
| 5563 checkUnnamed376(core.List<api.SortedDimension> o) { | 6354 checkUnnamed1438(core.List<api.SortedDimension> o) { |
| 5564 unittest.expect(o, unittest.hasLength(2)); | 6355 unittest.expect(o, unittest.hasLength(2)); |
| 5565 checkSortedDimension(o[0]); | 6356 checkSortedDimension(o[0]); |
| 5566 checkSortedDimension(o[1]); | 6357 checkSortedDimension(o[1]); |
| 5567 } | 6358 } |
| 5568 | 6359 |
| 5569 buildUnnamed377() { | 6360 buildUnnamed1439() { |
| 5570 var o = new core.List<api.DimensionValue>(); | 6361 var o = new core.List<api.DimensionValue>(); |
| 5571 o.add(buildDimensionValue()); | 6362 o.add(buildDimensionValue()); |
| 5572 o.add(buildDimensionValue()); | 6363 o.add(buildDimensionValue()); |
| 5573 return o; | 6364 return o; |
| 5574 } | 6365 } |
| 5575 | 6366 |
| 5576 checkUnnamed377(core.List<api.DimensionValue> o) { | 6367 checkUnnamed1439(core.List<api.DimensionValue> o) { |
| 5577 unittest.expect(o, unittest.hasLength(2)); | 6368 unittest.expect(o, unittest.hasLength(2)); |
| 5578 checkDimensionValue(o[0]); | 6369 checkDimensionValue(o[0]); |
| 5579 checkDimensionValue(o[1]); | 6370 checkDimensionValue(o[1]); |
| 5580 } | 6371 } |
| 5581 | 6372 |
| 5582 buildUnnamed378() { | 6373 buildUnnamed1440() { |
| 5583 var o = new core.List<core.String>(); | 6374 var o = new core.List<core.String>(); |
| 5584 o.add("foo"); | 6375 o.add("foo"); |
| 5585 o.add("foo"); | 6376 o.add("foo"); |
| 5586 return o; | 6377 return o; |
| 5587 } | 6378 } |
| 5588 | 6379 |
| 5589 checkUnnamed378(core.List<core.String> o) { | 6380 checkUnnamed1440(core.List<core.String> o) { |
| 5590 unittest.expect(o, unittest.hasLength(2)); | 6381 unittest.expect(o, unittest.hasLength(2)); |
| 5591 unittest.expect(o[0], unittest.equals('foo')); | 6382 unittest.expect(o[0], unittest.equals('foo')); |
| 5592 unittest.expect(o[1], unittest.equals('foo')); | 6383 unittest.expect(o[1], unittest.equals('foo')); |
| 5593 } | 6384 } |
| 5594 | 6385 |
| 5595 buildUnnamed379() { | 6386 buildUnnamed1441() { |
| 5596 var o = new core.List<core.String>(); | 6387 var o = new core.List<core.String>(); |
| 5597 o.add("foo"); | 6388 o.add("foo"); |
| 5598 o.add("foo"); | 6389 o.add("foo"); |
| 5599 return o; | 6390 return o; |
| 5600 } | 6391 } |
| 5601 | 6392 |
| 5602 checkUnnamed379(core.List<core.String> o) { | 6393 checkUnnamed1441(core.List<core.String> o) { |
| 5603 unittest.expect(o, unittest.hasLength(2)); | 6394 unittest.expect(o, unittest.hasLength(2)); |
| 5604 unittest.expect(o[0], unittest.equals('foo')); | 6395 unittest.expect(o[0], unittest.equals('foo')); |
| 5605 unittest.expect(o[1], unittest.equals('foo')); | 6396 unittest.expect(o[1], unittest.equals('foo')); |
| 5606 } | 6397 } |
| 5607 | 6398 |
| 5608 core.int buildCounterReportCrossDimensionReachCriteria = 0; | 6399 core.int buildCounterReportCrossDimensionReachCriteria = 0; |
| 5609 buildReportCrossDimensionReachCriteria() { | 6400 buildReportCrossDimensionReachCriteria() { |
| 5610 var o = new api.ReportCrossDimensionReachCriteria(); | 6401 var o = new api.ReportCrossDimensionReachCriteria(); |
| 5611 buildCounterReportCrossDimensionReachCriteria++; | 6402 buildCounterReportCrossDimensionReachCriteria++; |
| 5612 if (buildCounterReportCrossDimensionReachCriteria < 3) { | 6403 if (buildCounterReportCrossDimensionReachCriteria < 3) { |
| 5613 o.breakdown = buildUnnamed376(); | 6404 o.breakdown = buildUnnamed1438(); |
| 5614 o.dateRange = buildDateRange(); | 6405 o.dateRange = buildDateRange(); |
| 5615 o.dimension = "foo"; | 6406 o.dimension = "foo"; |
| 5616 o.dimensionFilters = buildUnnamed377(); | 6407 o.dimensionFilters = buildUnnamed1439(); |
| 5617 o.metricNames = buildUnnamed378(); | 6408 o.metricNames = buildUnnamed1440(); |
| 5618 o.overlapMetricNames = buildUnnamed379(); | 6409 o.overlapMetricNames = buildUnnamed1441(); |
| 5619 o.pivoted = true; | 6410 o.pivoted = true; |
| 5620 } | 6411 } |
| 5621 buildCounterReportCrossDimensionReachCriteria--; | 6412 buildCounterReportCrossDimensionReachCriteria--; |
| 5622 return o; | 6413 return o; |
| 5623 } | 6414 } |
| 5624 | 6415 |
| 5625 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o)
{ | 6416 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o)
{ |
| 5626 buildCounterReportCrossDimensionReachCriteria++; | 6417 buildCounterReportCrossDimensionReachCriteria++; |
| 5627 if (buildCounterReportCrossDimensionReachCriteria < 3) { | 6418 if (buildCounterReportCrossDimensionReachCriteria < 3) { |
| 5628 checkUnnamed376(o.breakdown); | 6419 checkUnnamed1438(o.breakdown); |
| 5629 checkDateRange(o.dateRange); | 6420 checkDateRange(o.dateRange); |
| 5630 unittest.expect(o.dimension, unittest.equals('foo')); | 6421 unittest.expect(o.dimension, unittest.equals('foo')); |
| 5631 checkUnnamed377(o.dimensionFilters); | 6422 checkUnnamed1439(o.dimensionFilters); |
| 5632 checkUnnamed378(o.metricNames); | 6423 checkUnnamed1440(o.metricNames); |
| 5633 checkUnnamed379(o.overlapMetricNames); | 6424 checkUnnamed1441(o.overlapMetricNames); |
| 5634 unittest.expect(o.pivoted, unittest.isTrue); | 6425 unittest.expect(o.pivoted, unittest.isTrue); |
| 5635 } | 6426 } |
| 5636 buildCounterReportCrossDimensionReachCriteria--; | 6427 buildCounterReportCrossDimensionReachCriteria--; |
| 5637 } | 6428 } |
| 5638 | 6429 |
| 5639 buildUnnamed380() { | 6430 buildUnnamed1442() { |
| 5640 var o = new core.List<api.Recipient>(); | 6431 var o = new core.List<api.Recipient>(); |
| 5641 o.add(buildRecipient()); | 6432 o.add(buildRecipient()); |
| 5642 o.add(buildRecipient()); | 6433 o.add(buildRecipient()); |
| 5643 return o; | 6434 return o; |
| 5644 } | 6435 } |
| 5645 | 6436 |
| 5646 checkUnnamed380(core.List<api.Recipient> o) { | 6437 checkUnnamed1442(core.List<api.Recipient> o) { |
| 5647 unittest.expect(o, unittest.hasLength(2)); | 6438 unittest.expect(o, unittest.hasLength(2)); |
| 5648 checkRecipient(o[0]); | 6439 checkRecipient(o[0]); |
| 5649 checkRecipient(o[1]); | 6440 checkRecipient(o[1]); |
| 5650 } | 6441 } |
| 5651 | 6442 |
| 5652 core.int buildCounterReportDelivery = 0; | 6443 core.int buildCounterReportDelivery = 0; |
| 5653 buildReportDelivery() { | 6444 buildReportDelivery() { |
| 5654 var o = new api.ReportDelivery(); | 6445 var o = new api.ReportDelivery(); |
| 5655 buildCounterReportDelivery++; | 6446 buildCounterReportDelivery++; |
| 5656 if (buildCounterReportDelivery < 3) { | 6447 if (buildCounterReportDelivery < 3) { |
| 5657 o.emailOwner = true; | 6448 o.emailOwner = true; |
| 5658 o.emailOwnerDeliveryType = "foo"; | 6449 o.emailOwnerDeliveryType = "foo"; |
| 5659 o.message = "foo"; | 6450 o.message = "foo"; |
| 5660 o.recipients = buildUnnamed380(); | 6451 o.recipients = buildUnnamed1442(); |
| 5661 } | 6452 } |
| 5662 buildCounterReportDelivery--; | 6453 buildCounterReportDelivery--; |
| 5663 return o; | 6454 return o; |
| 5664 } | 6455 } |
| 5665 | 6456 |
| 5666 checkReportDelivery(api.ReportDelivery o) { | 6457 checkReportDelivery(api.ReportDelivery o) { |
| 5667 buildCounterReportDelivery++; | 6458 buildCounterReportDelivery++; |
| 5668 if (buildCounterReportDelivery < 3) { | 6459 if (buildCounterReportDelivery < 3) { |
| 5669 unittest.expect(o.emailOwner, unittest.isTrue); | 6460 unittest.expect(o.emailOwner, unittest.isTrue); |
| 5670 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); | 6461 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); |
| 5671 unittest.expect(o.message, unittest.equals('foo')); | 6462 unittest.expect(o.message, unittest.equals('foo')); |
| 5672 checkUnnamed380(o.recipients); | 6463 checkUnnamed1442(o.recipients); |
| 5673 } | 6464 } |
| 5674 buildCounterReportDelivery--; | 6465 buildCounterReportDelivery--; |
| 5675 } | 6466 } |
| 5676 | 6467 |
| 5677 buildUnnamed381() { | 6468 buildUnnamed1443() { |
| 5678 var o = new core.List<api.DimensionValue>(); | 6469 var o = new core.List<api.DimensionValue>(); |
| 5679 o.add(buildDimensionValue()); | 6470 o.add(buildDimensionValue()); |
| 5680 o.add(buildDimensionValue()); | 6471 o.add(buildDimensionValue()); |
| 5681 return o; | 6472 return o; |
| 5682 } | 6473 } |
| 5683 | 6474 |
| 5684 checkUnnamed381(core.List<api.DimensionValue> o) { | 6475 checkUnnamed1443(core.List<api.DimensionValue> o) { |
| 5685 unittest.expect(o, unittest.hasLength(2)); | 6476 unittest.expect(o, unittest.hasLength(2)); |
| 5686 checkDimensionValue(o[0]); | 6477 checkDimensionValue(o[0]); |
| 5687 checkDimensionValue(o[1]); | 6478 checkDimensionValue(o[1]); |
| 5688 } | 6479 } |
| 5689 | 6480 |
| 5690 buildUnnamed382() { | 6481 buildUnnamed1444() { |
| 5691 var o = new core.List<api.DimensionValue>(); | 6482 var o = new core.List<api.DimensionValue>(); |
| 5692 o.add(buildDimensionValue()); | 6483 o.add(buildDimensionValue()); |
| 5693 o.add(buildDimensionValue()); | 6484 o.add(buildDimensionValue()); |
| 5694 return o; | 6485 return o; |
| 5695 } | 6486 } |
| 5696 | 6487 |
| 5697 checkUnnamed382(core.List<api.DimensionValue> o) { | 6488 checkUnnamed1444(core.List<api.DimensionValue> o) { |
| 5698 unittest.expect(o, unittest.hasLength(2)); | 6489 unittest.expect(o, unittest.hasLength(2)); |
| 5699 checkDimensionValue(o[0]); | 6490 checkDimensionValue(o[0]); |
| 5700 checkDimensionValue(o[1]); | 6491 checkDimensionValue(o[1]); |
| 5701 } | 6492 } |
| 5702 | 6493 |
| 5703 buildUnnamed383() { | 6494 buildUnnamed1445() { |
| 5704 var o = new core.List<api.SortedDimension>(); | 6495 var o = new core.List<api.SortedDimension>(); |
| 5705 o.add(buildSortedDimension()); | 6496 o.add(buildSortedDimension()); |
| 5706 o.add(buildSortedDimension()); | 6497 o.add(buildSortedDimension()); |
| 5707 return o; | 6498 return o; |
| 5708 } | 6499 } |
| 5709 | 6500 |
| 5710 checkUnnamed383(core.List<api.SortedDimension> o) { | 6501 checkUnnamed1445(core.List<api.SortedDimension> o) { |
| 5711 unittest.expect(o, unittest.hasLength(2)); | 6502 unittest.expect(o, unittest.hasLength(2)); |
| 5712 checkSortedDimension(o[0]); | 6503 checkSortedDimension(o[0]); |
| 5713 checkSortedDimension(o[1]); | 6504 checkSortedDimension(o[1]); |
| 5714 } | 6505 } |
| 5715 | 6506 |
| 5716 buildUnnamed384() { | 6507 buildUnnamed1446() { |
| 5717 var o = new core.List<core.String>(); | 6508 var o = new core.List<core.String>(); |
| 5718 o.add("foo"); | 6509 o.add("foo"); |
| 5719 o.add("foo"); | 6510 o.add("foo"); |
| 5720 return o; | 6511 return o; |
| 5721 } | 6512 } |
| 5722 | 6513 |
| 5723 checkUnnamed384(core.List<core.String> o) { | 6514 checkUnnamed1446(core.List<core.String> o) { |
| 5724 unittest.expect(o, unittest.hasLength(2)); | 6515 unittest.expect(o, unittest.hasLength(2)); |
| 5725 unittest.expect(o[0], unittest.equals('foo')); | 6516 unittest.expect(o[0], unittest.equals('foo')); |
| 5726 unittest.expect(o[1], unittest.equals('foo')); | 6517 unittest.expect(o[1], unittest.equals('foo')); |
| 5727 } | 6518 } |
| 5728 | 6519 |
| 5729 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; | 6520 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; |
| 5730 buildReportFloodlightCriteriaReportProperties() { | 6521 buildReportFloodlightCriteriaReportProperties() { |
| 5731 var o = new api.ReportFloodlightCriteriaReportProperties(); | 6522 var o = new api.ReportFloodlightCriteriaReportProperties(); |
| 5732 buildCounterReportFloodlightCriteriaReportProperties++; | 6523 buildCounterReportFloodlightCriteriaReportProperties++; |
| 5733 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { | 6524 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 5747 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); | 6538 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); |
| 5748 } | 6539 } |
| 5749 buildCounterReportFloodlightCriteriaReportProperties--; | 6540 buildCounterReportFloodlightCriteriaReportProperties--; |
| 5750 } | 6541 } |
| 5751 | 6542 |
| 5752 core.int buildCounterReportFloodlightCriteria = 0; | 6543 core.int buildCounterReportFloodlightCriteria = 0; |
| 5753 buildReportFloodlightCriteria() { | 6544 buildReportFloodlightCriteria() { |
| 5754 var o = new api.ReportFloodlightCriteria(); | 6545 var o = new api.ReportFloodlightCriteria(); |
| 5755 buildCounterReportFloodlightCriteria++; | 6546 buildCounterReportFloodlightCriteria++; |
| 5756 if (buildCounterReportFloodlightCriteria < 3) { | 6547 if (buildCounterReportFloodlightCriteria < 3) { |
| 5757 o.customRichMediaEvents = buildUnnamed381(); | 6548 o.customRichMediaEvents = buildUnnamed1443(); |
| 5758 o.dateRange = buildDateRange(); | 6549 o.dateRange = buildDateRange(); |
| 5759 o.dimensionFilters = buildUnnamed382(); | 6550 o.dimensionFilters = buildUnnamed1444(); |
| 5760 o.dimensions = buildUnnamed383(); | 6551 o.dimensions = buildUnnamed1445(); |
| 5761 o.floodlightConfigId = buildDimensionValue(); | 6552 o.floodlightConfigId = buildDimensionValue(); |
| 5762 o.metricNames = buildUnnamed384(); | 6553 o.metricNames = buildUnnamed1446(); |
| 5763 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); | 6554 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); |
| 5764 } | 6555 } |
| 5765 buildCounterReportFloodlightCriteria--; | 6556 buildCounterReportFloodlightCriteria--; |
| 5766 return o; | 6557 return o; |
| 5767 } | 6558 } |
| 5768 | 6559 |
| 5769 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { | 6560 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { |
| 5770 buildCounterReportFloodlightCriteria++; | 6561 buildCounterReportFloodlightCriteria++; |
| 5771 if (buildCounterReportFloodlightCriteria < 3) { | 6562 if (buildCounterReportFloodlightCriteria < 3) { |
| 5772 checkUnnamed381(o.customRichMediaEvents); | 6563 checkUnnamed1443(o.customRichMediaEvents); |
| 5773 checkDateRange(o.dateRange); | 6564 checkDateRange(o.dateRange); |
| 5774 checkUnnamed382(o.dimensionFilters); | 6565 checkUnnamed1444(o.dimensionFilters); |
| 5775 checkUnnamed383(o.dimensions); | 6566 checkUnnamed1445(o.dimensions); |
| 5776 checkDimensionValue(o.floodlightConfigId); | 6567 checkDimensionValue(o.floodlightConfigId); |
| 5777 checkUnnamed384(o.metricNames); | 6568 checkUnnamed1446(o.metricNames); |
| 5778 checkReportFloodlightCriteriaReportProperties(o.reportProperties); | 6569 checkReportFloodlightCriteriaReportProperties(o.reportProperties); |
| 5779 } | 6570 } |
| 5780 buildCounterReportFloodlightCriteria--; | 6571 buildCounterReportFloodlightCriteria--; |
| 5781 } | 6572 } |
| 5782 | 6573 |
| 5783 buildUnnamed385() { | 6574 buildUnnamed1447() { |
| 5784 var o = new core.List<api.DimensionValue>(); | 6575 var o = new core.List<api.DimensionValue>(); |
| 5785 o.add(buildDimensionValue()); | 6576 o.add(buildDimensionValue()); |
| 5786 o.add(buildDimensionValue()); | 6577 o.add(buildDimensionValue()); |
| 5787 return o; | 6578 return o; |
| 5788 } | 6579 } |
| 5789 | 6580 |
| 5790 checkUnnamed385(core.List<api.DimensionValue> o) { | 6581 checkUnnamed1447(core.List<api.DimensionValue> o) { |
| 5791 unittest.expect(o, unittest.hasLength(2)); | 6582 unittest.expect(o, unittest.hasLength(2)); |
| 5792 checkDimensionValue(o[0]); | 6583 checkDimensionValue(o[0]); |
| 5793 checkDimensionValue(o[1]); | 6584 checkDimensionValue(o[1]); |
| 5794 } | 6585 } |
| 5795 | 6586 |
| 5796 buildUnnamed386() { | 6587 buildUnnamed1448() { |
| 5797 var o = new core.List<api.SortedDimension>(); | 6588 var o = new core.List<api.SortedDimension>(); |
| 5798 o.add(buildSortedDimension()); | 6589 o.add(buildSortedDimension()); |
| 5799 o.add(buildSortedDimension()); | 6590 o.add(buildSortedDimension()); |
| 5800 return o; | 6591 return o; |
| 5801 } | 6592 } |
| 5802 | 6593 |
| 5803 checkUnnamed386(core.List<api.SortedDimension> o) { | 6594 checkUnnamed1448(core.List<api.SortedDimension> o) { |
| 5804 unittest.expect(o, unittest.hasLength(2)); | 6595 unittest.expect(o, unittest.hasLength(2)); |
| 5805 checkSortedDimension(o[0]); | 6596 checkSortedDimension(o[0]); |
| 5806 checkSortedDimension(o[1]); | 6597 checkSortedDimension(o[1]); |
| 5807 } | 6598 } |
| 5808 | 6599 |
| 5809 buildUnnamed387() { | 6600 buildUnnamed1449() { |
| 5810 var o = new core.List<api.SortedDimension>(); | 6601 var o = new core.List<api.SortedDimension>(); |
| 5811 o.add(buildSortedDimension()); | 6602 o.add(buildSortedDimension()); |
| 5812 o.add(buildSortedDimension()); | 6603 o.add(buildSortedDimension()); |
| 5813 return o; | 6604 return o; |
| 5814 } | 6605 } |
| 5815 | 6606 |
| 5816 checkUnnamed387(core.List<api.SortedDimension> o) { | 6607 checkUnnamed1449(core.List<api.SortedDimension> o) { |
| 5817 unittest.expect(o, unittest.hasLength(2)); | 6608 unittest.expect(o, unittest.hasLength(2)); |
| 5818 checkSortedDimension(o[0]); | 6609 checkSortedDimension(o[0]); |
| 5819 checkSortedDimension(o[1]); | 6610 checkSortedDimension(o[1]); |
| 5820 } | 6611 } |
| 5821 | 6612 |
| 5822 buildUnnamed388() { | 6613 buildUnnamed1450() { |
| 5823 var o = new core.List<api.DimensionValue>(); | 6614 var o = new core.List<api.DimensionValue>(); |
| 5824 o.add(buildDimensionValue()); | 6615 o.add(buildDimensionValue()); |
| 5825 o.add(buildDimensionValue()); | 6616 o.add(buildDimensionValue()); |
| 5826 return o; | 6617 return o; |
| 5827 } | 6618 } |
| 5828 | 6619 |
| 5829 checkUnnamed388(core.List<api.DimensionValue> o) { | 6620 checkUnnamed1450(core.List<api.DimensionValue> o) { |
| 5830 unittest.expect(o, unittest.hasLength(2)); | 6621 unittest.expect(o, unittest.hasLength(2)); |
| 5831 checkDimensionValue(o[0]); | 6622 checkDimensionValue(o[0]); |
| 5832 checkDimensionValue(o[1]); | 6623 checkDimensionValue(o[1]); |
| 5833 } | 6624 } |
| 5834 | 6625 |
| 5835 buildUnnamed389() { | 6626 buildUnnamed1451() { |
| 5836 var o = new core.List<core.String>(); | 6627 var o = new core.List<core.String>(); |
| 5837 o.add("foo"); | 6628 o.add("foo"); |
| 5838 o.add("foo"); | 6629 o.add("foo"); |
| 5839 return o; | 6630 return o; |
| 5840 } | 6631 } |
| 5841 | 6632 |
| 5842 checkUnnamed389(core.List<core.String> o) { | 6633 checkUnnamed1451(core.List<core.String> o) { |
| 5843 unittest.expect(o, unittest.hasLength(2)); | 6634 unittest.expect(o, unittest.hasLength(2)); |
| 5844 unittest.expect(o[0], unittest.equals('foo')); | 6635 unittest.expect(o[0], unittest.equals('foo')); |
| 5845 unittest.expect(o[1], unittest.equals('foo')); | 6636 unittest.expect(o[1], unittest.equals('foo')); |
| 5846 } | 6637 } |
| 5847 | 6638 |
| 5848 buildUnnamed390() { | 6639 buildUnnamed1452() { |
| 5849 var o = new core.List<api.SortedDimension>(); | 6640 var o = new core.List<api.SortedDimension>(); |
| 5850 o.add(buildSortedDimension()); | 6641 o.add(buildSortedDimension()); |
| 5851 o.add(buildSortedDimension()); | 6642 o.add(buildSortedDimension()); |
| 5852 return o; | 6643 return o; |
| 5853 } | 6644 } |
| 5854 | 6645 |
| 5855 checkUnnamed390(core.List<api.SortedDimension> o) { | 6646 checkUnnamed1452(core.List<api.SortedDimension> o) { |
| 5856 unittest.expect(o, unittest.hasLength(2)); | 6647 unittest.expect(o, unittest.hasLength(2)); |
| 5857 checkSortedDimension(o[0]); | 6648 checkSortedDimension(o[0]); |
| 5858 checkSortedDimension(o[1]); | 6649 checkSortedDimension(o[1]); |
| 5859 } | 6650 } |
| 5860 | 6651 |
| 5861 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; | 6652 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; |
| 5862 buildReportPathToConversionCriteriaReportProperties() { | 6653 buildReportPathToConversionCriteriaReportProperties() { |
| 5863 var o = new api.ReportPathToConversionCriteriaReportProperties(); | 6654 var o = new api.ReportPathToConversionCriteriaReportProperties(); |
| 5864 buildCounterReportPathToConversionCriteriaReportProperties++; | 6655 buildCounterReportPathToConversionCriteriaReportProperties++; |
| 5865 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { | 6656 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5891 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); | 6682 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); |
| 5892 } | 6683 } |
| 5893 buildCounterReportPathToConversionCriteriaReportProperties--; | 6684 buildCounterReportPathToConversionCriteriaReportProperties--; |
| 5894 } | 6685 } |
| 5895 | 6686 |
| 5896 core.int buildCounterReportPathToConversionCriteria = 0; | 6687 core.int buildCounterReportPathToConversionCriteria = 0; |
| 5897 buildReportPathToConversionCriteria() { | 6688 buildReportPathToConversionCriteria() { |
| 5898 var o = new api.ReportPathToConversionCriteria(); | 6689 var o = new api.ReportPathToConversionCriteria(); |
| 5899 buildCounterReportPathToConversionCriteria++; | 6690 buildCounterReportPathToConversionCriteria++; |
| 5900 if (buildCounterReportPathToConversionCriteria < 3) { | 6691 if (buildCounterReportPathToConversionCriteria < 3) { |
| 5901 o.activityFilters = buildUnnamed385(); | 6692 o.activityFilters = buildUnnamed1447(); |
| 5902 o.conversionDimensions = buildUnnamed386(); | 6693 o.conversionDimensions = buildUnnamed1448(); |
| 5903 o.customFloodlightVariables = buildUnnamed387(); | 6694 o.customFloodlightVariables = buildUnnamed1449(); |
| 5904 o.customRichMediaEvents = buildUnnamed388(); | 6695 o.customRichMediaEvents = buildUnnamed1450(); |
| 5905 o.dateRange = buildDateRange(); | 6696 o.dateRange = buildDateRange(); |
| 5906 o.floodlightConfigId = buildDimensionValue(); | 6697 o.floodlightConfigId = buildDimensionValue(); |
| 5907 o.metricNames = buildUnnamed389(); | 6698 o.metricNames = buildUnnamed1451(); |
| 5908 o.perInteractionDimensions = buildUnnamed390(); | 6699 o.perInteractionDimensions = buildUnnamed1452(); |
| 5909 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); | 6700 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); |
| 5910 } | 6701 } |
| 5911 buildCounterReportPathToConversionCriteria--; | 6702 buildCounterReportPathToConversionCriteria--; |
| 5912 return o; | 6703 return o; |
| 5913 } | 6704 } |
| 5914 | 6705 |
| 5915 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { | 6706 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { |
| 5916 buildCounterReportPathToConversionCriteria++; | 6707 buildCounterReportPathToConversionCriteria++; |
| 5917 if (buildCounterReportPathToConversionCriteria < 3) { | 6708 if (buildCounterReportPathToConversionCriteria < 3) { |
| 5918 checkUnnamed385(o.activityFilters); | 6709 checkUnnamed1447(o.activityFilters); |
| 5919 checkUnnamed386(o.conversionDimensions); | 6710 checkUnnamed1448(o.conversionDimensions); |
| 5920 checkUnnamed387(o.customFloodlightVariables); | 6711 checkUnnamed1449(o.customFloodlightVariables); |
| 5921 checkUnnamed388(o.customRichMediaEvents); | 6712 checkUnnamed1450(o.customRichMediaEvents); |
| 5922 checkDateRange(o.dateRange); | 6713 checkDateRange(o.dateRange); |
| 5923 checkDimensionValue(o.floodlightConfigId); | 6714 checkDimensionValue(o.floodlightConfigId); |
| 5924 checkUnnamed389(o.metricNames); | 6715 checkUnnamed1451(o.metricNames); |
| 5925 checkUnnamed390(o.perInteractionDimensions); | 6716 checkUnnamed1452(o.perInteractionDimensions); |
| 5926 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); | 6717 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); |
| 5927 } | 6718 } |
| 5928 buildCounterReportPathToConversionCriteria--; | 6719 buildCounterReportPathToConversionCriteria--; |
| 5929 } | 6720 } |
| 5930 | 6721 |
| 5931 buildUnnamed391() { | 6722 buildUnnamed1453() { |
| 5932 var o = new core.List<api.DimensionValue>(); | 6723 var o = new core.List<api.DimensionValue>(); |
| 5933 o.add(buildDimensionValue()); | 6724 o.add(buildDimensionValue()); |
| 5934 o.add(buildDimensionValue()); | 6725 o.add(buildDimensionValue()); |
| 5935 return o; | 6726 return o; |
| 5936 } | 6727 } |
| 5937 | 6728 |
| 5938 checkUnnamed391(core.List<api.DimensionValue> o) { | 6729 checkUnnamed1453(core.List<api.DimensionValue> o) { |
| 5939 unittest.expect(o, unittest.hasLength(2)); | 6730 unittest.expect(o, unittest.hasLength(2)); |
| 5940 checkDimensionValue(o[0]); | 6731 checkDimensionValue(o[0]); |
| 5941 checkDimensionValue(o[1]); | 6732 checkDimensionValue(o[1]); |
| 5942 } | 6733 } |
| 5943 | 6734 |
| 5944 buildUnnamed392() { | 6735 buildUnnamed1454() { |
| 5945 var o = new core.List<api.SortedDimension>(); | 6736 var o = new core.List<api.SortedDimension>(); |
| 5946 o.add(buildSortedDimension()); | 6737 o.add(buildSortedDimension()); |
| 5947 o.add(buildSortedDimension()); | 6738 o.add(buildSortedDimension()); |
| 5948 return o; | 6739 return o; |
| 5949 } | 6740 } |
| 5950 | 6741 |
| 5951 checkUnnamed392(core.List<api.SortedDimension> o) { | 6742 checkUnnamed1454(core.List<api.SortedDimension> o) { |
| 5952 unittest.expect(o, unittest.hasLength(2)); | 6743 unittest.expect(o, unittest.hasLength(2)); |
| 5953 checkSortedDimension(o[0]); | 6744 checkSortedDimension(o[0]); |
| 5954 checkSortedDimension(o[1]); | 6745 checkSortedDimension(o[1]); |
| 5955 } | 6746 } |
| 5956 | 6747 |
| 5957 buildUnnamed393() { | 6748 buildUnnamed1455() { |
| 5958 var o = new core.List<core.String>(); | 6749 var o = new core.List<core.String>(); |
| 5959 o.add("foo"); | 6750 o.add("foo"); |
| 5960 o.add("foo"); | 6751 o.add("foo"); |
| 5961 return o; | 6752 return o; |
| 5962 } | 6753 } |
| 5963 | 6754 |
| 5964 checkUnnamed393(core.List<core.String> o) { | 6755 checkUnnamed1455(core.List<core.String> o) { |
| 5965 unittest.expect(o, unittest.hasLength(2)); | 6756 unittest.expect(o, unittest.hasLength(2)); |
| 5966 unittest.expect(o[0], unittest.equals('foo')); | 6757 unittest.expect(o[0], unittest.equals('foo')); |
| 5967 unittest.expect(o[1], unittest.equals('foo')); | 6758 unittest.expect(o[1], unittest.equals('foo')); |
| 5968 } | 6759 } |
| 5969 | 6760 |
| 5970 buildUnnamed394() { | 6761 buildUnnamed1456() { |
| 5971 var o = new core.List<core.String>(); | 6762 var o = new core.List<core.String>(); |
| 5972 o.add("foo"); | 6763 o.add("foo"); |
| 5973 o.add("foo"); | 6764 o.add("foo"); |
| 5974 return o; | 6765 return o; |
| 5975 } | 6766 } |
| 5976 | 6767 |
| 5977 checkUnnamed394(core.List<core.String> o) { | 6768 checkUnnamed1456(core.List<core.String> o) { |
| 5978 unittest.expect(o, unittest.hasLength(2)); | 6769 unittest.expect(o, unittest.hasLength(2)); |
| 5979 unittest.expect(o[0], unittest.equals('foo')); | 6770 unittest.expect(o[0], unittest.equals('foo')); |
| 5980 unittest.expect(o[1], unittest.equals('foo')); | 6771 unittest.expect(o[1], unittest.equals('foo')); |
| 5981 } | 6772 } |
| 5982 | 6773 |
| 5983 core.int buildCounterReportReachCriteria = 0; | 6774 core.int buildCounterReportReachCriteria = 0; |
| 5984 buildReportReachCriteria() { | 6775 buildReportReachCriteria() { |
| 5985 var o = new api.ReportReachCriteria(); | 6776 var o = new api.ReportReachCriteria(); |
| 5986 buildCounterReportReachCriteria++; | 6777 buildCounterReportReachCriteria++; |
| 5987 if (buildCounterReportReachCriteria < 3) { | 6778 if (buildCounterReportReachCriteria < 3) { |
| 5988 o.activities = buildActivities(); | 6779 o.activities = buildActivities(); |
| 5989 o.customRichMediaEvents = buildCustomRichMediaEvents(); | 6780 o.customRichMediaEvents = buildCustomRichMediaEvents(); |
| 5990 o.dateRange = buildDateRange(); | 6781 o.dateRange = buildDateRange(); |
| 5991 o.dimensionFilters = buildUnnamed391(); | 6782 o.dimensionFilters = buildUnnamed1453(); |
| 5992 o.dimensions = buildUnnamed392(); | 6783 o.dimensions = buildUnnamed1454(); |
| 5993 o.enableAllDimensionCombinations = true; | 6784 o.enableAllDimensionCombinations = true; |
| 5994 o.metricNames = buildUnnamed393(); | 6785 o.metricNames = buildUnnamed1455(); |
| 5995 o.reachByFrequencyMetricNames = buildUnnamed394(); | 6786 o.reachByFrequencyMetricNames = buildUnnamed1456(); |
| 5996 } | 6787 } |
| 5997 buildCounterReportReachCriteria--; | 6788 buildCounterReportReachCriteria--; |
| 5998 return o; | 6789 return o; |
| 5999 } | 6790 } |
| 6000 | 6791 |
| 6001 checkReportReachCriteria(api.ReportReachCriteria o) { | 6792 checkReportReachCriteria(api.ReportReachCriteria o) { |
| 6002 buildCounterReportReachCriteria++; | 6793 buildCounterReportReachCriteria++; |
| 6003 if (buildCounterReportReachCriteria < 3) { | 6794 if (buildCounterReportReachCriteria < 3) { |
| 6004 checkActivities(o.activities); | 6795 checkActivities(o.activities); |
| 6005 checkCustomRichMediaEvents(o.customRichMediaEvents); | 6796 checkCustomRichMediaEvents(o.customRichMediaEvents); |
| 6006 checkDateRange(o.dateRange); | 6797 checkDateRange(o.dateRange); |
| 6007 checkUnnamed391(o.dimensionFilters); | 6798 checkUnnamed1453(o.dimensionFilters); |
| 6008 checkUnnamed392(o.dimensions); | 6799 checkUnnamed1454(o.dimensions); |
| 6009 unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); | 6800 unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); |
| 6010 checkUnnamed393(o.metricNames); | 6801 checkUnnamed1455(o.metricNames); |
| 6011 checkUnnamed394(o.reachByFrequencyMetricNames); | 6802 checkUnnamed1456(o.reachByFrequencyMetricNames); |
| 6012 } | 6803 } |
| 6013 buildCounterReportReachCriteria--; | 6804 buildCounterReportReachCriteria--; |
| 6014 } | 6805 } |
| 6015 | 6806 |
| 6016 buildUnnamed395() { | 6807 buildUnnamed1457() { |
| 6017 var o = new core.List<core.String>(); | 6808 var o = new core.List<core.String>(); |
| 6018 o.add("foo"); | 6809 o.add("foo"); |
| 6019 o.add("foo"); | 6810 o.add("foo"); |
| 6020 return o; | 6811 return o; |
| 6021 } | 6812 } |
| 6022 | 6813 |
| 6023 checkUnnamed395(core.List<core.String> o) { | 6814 checkUnnamed1457(core.List<core.String> o) { |
| 6024 unittest.expect(o, unittest.hasLength(2)); | 6815 unittest.expect(o, unittest.hasLength(2)); |
| 6025 unittest.expect(o[0], unittest.equals('foo')); | 6816 unittest.expect(o[0], unittest.equals('foo')); |
| 6026 unittest.expect(o[1], unittest.equals('foo')); | 6817 unittest.expect(o[1], unittest.equals('foo')); |
| 6027 } | 6818 } |
| 6028 | 6819 |
| 6029 core.int buildCounterReportSchedule = 0; | 6820 core.int buildCounterReportSchedule = 0; |
| 6030 buildReportSchedule() { | 6821 buildReportSchedule() { |
| 6031 var o = new api.ReportSchedule(); | 6822 var o = new api.ReportSchedule(); |
| 6032 buildCounterReportSchedule++; | 6823 buildCounterReportSchedule++; |
| 6033 if (buildCounterReportSchedule < 3) { | 6824 if (buildCounterReportSchedule < 3) { |
| 6034 o.active = true; | 6825 o.active = true; |
| 6035 o.every = 42; | 6826 o.every = 42; |
| 6036 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 6827 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 6037 o.repeats = "foo"; | 6828 o.repeats = "foo"; |
| 6038 o.repeatsOnWeekDays = buildUnnamed395(); | 6829 o.repeatsOnWeekDays = buildUnnamed1457(); |
| 6039 o.runsOnDayOfMonth = "foo"; | 6830 o.runsOnDayOfMonth = "foo"; |
| 6040 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 6831 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 6041 } | 6832 } |
| 6042 buildCounterReportSchedule--; | 6833 buildCounterReportSchedule--; |
| 6043 return o; | 6834 return o; |
| 6044 } | 6835 } |
| 6045 | 6836 |
| 6046 checkReportSchedule(api.ReportSchedule o) { | 6837 checkReportSchedule(api.ReportSchedule o) { |
| 6047 buildCounterReportSchedule++; | 6838 buildCounterReportSchedule++; |
| 6048 if (buildCounterReportSchedule < 3) { | 6839 if (buildCounterReportSchedule < 3) { |
| 6049 unittest.expect(o.active, unittest.isTrue); | 6840 unittest.expect(o.active, unittest.isTrue); |
| 6050 unittest.expect(o.every, unittest.equals(42)); | 6841 unittest.expect(o.every, unittest.equals(42)); |
| 6051 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-
02-27T00:00:00"))); | 6842 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-
02-27T00:00:00"))); |
| 6052 unittest.expect(o.repeats, unittest.equals('foo')); | 6843 unittest.expect(o.repeats, unittest.equals('foo')); |
| 6053 checkUnnamed395(o.repeatsOnWeekDays); | 6844 checkUnnamed1457(o.repeatsOnWeekDays); |
| 6054 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); | 6845 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); |
| 6055 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 6846 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 6056 } | 6847 } |
| 6057 buildCounterReportSchedule--; | 6848 buildCounterReportSchedule--; |
| 6058 } | 6849 } |
| 6059 | 6850 |
| 6060 core.int buildCounterReport = 0; | 6851 core.int buildCounterReport = 0; |
| 6061 buildReport() { | 6852 buildReport() { |
| 6062 var o = new api.Report(); | 6853 var o = new api.Report(); |
| 6063 buildCounterReport++; | 6854 buildCounterReport++; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6103 unittest.expect(o.ownerProfileId, unittest.equals('foo')); | 6894 unittest.expect(o.ownerProfileId, unittest.equals('foo')); |
| 6104 checkReportPathToConversionCriteria(o.pathToConversionCriteria); | 6895 checkReportPathToConversionCriteria(o.pathToConversionCriteria); |
| 6105 checkReportReachCriteria(o.reachCriteria); | 6896 checkReportReachCriteria(o.reachCriteria); |
| 6106 checkReportSchedule(o.schedule); | 6897 checkReportSchedule(o.schedule); |
| 6107 unittest.expect(o.subAccountId, unittest.equals('foo')); | 6898 unittest.expect(o.subAccountId, unittest.equals('foo')); |
| 6108 unittest.expect(o.type, unittest.equals('foo')); | 6899 unittest.expect(o.type, unittest.equals('foo')); |
| 6109 } | 6900 } |
| 6110 buildCounterReport--; | 6901 buildCounterReport--; |
| 6111 } | 6902 } |
| 6112 | 6903 |
| 6113 buildUnnamed396() { | 6904 buildUnnamed1458() { |
| 6114 var o = new core.List<api.Dimension>(); | 6905 var o = new core.List<api.Dimension>(); |
| 6115 o.add(buildDimension()); | 6906 o.add(buildDimension()); |
| 6116 o.add(buildDimension()); | 6907 o.add(buildDimension()); |
| 6117 return o; | 6908 return o; |
| 6118 } | 6909 } |
| 6119 | 6910 |
| 6120 checkUnnamed396(core.List<api.Dimension> o) { | 6911 checkUnnamed1458(core.List<api.Dimension> o) { |
| 6121 unittest.expect(o, unittest.hasLength(2)); | 6912 unittest.expect(o, unittest.hasLength(2)); |
| 6122 checkDimension(o[0]); | 6913 checkDimension(o[0]); |
| 6123 checkDimension(o[1]); | 6914 checkDimension(o[1]); |
| 6124 } | 6915 } |
| 6125 | 6916 |
| 6126 buildUnnamed397() { | 6917 buildUnnamed1459() { |
| 6127 var o = new core.List<api.Dimension>(); | 6918 var o = new core.List<api.Dimension>(); |
| 6128 o.add(buildDimension()); | 6919 o.add(buildDimension()); |
| 6129 o.add(buildDimension()); | 6920 o.add(buildDimension()); |
| 6130 return o; | 6921 return o; |
| 6131 } | 6922 } |
| 6132 | 6923 |
| 6133 checkUnnamed397(core.List<api.Dimension> o) { | 6924 checkUnnamed1459(core.List<api.Dimension> o) { |
| 6134 unittest.expect(o, unittest.hasLength(2)); | 6925 unittest.expect(o, unittest.hasLength(2)); |
| 6135 checkDimension(o[0]); | 6926 checkDimension(o[0]); |
| 6136 checkDimension(o[1]); | 6927 checkDimension(o[1]); |
| 6137 } | 6928 } |
| 6138 | 6929 |
| 6139 buildUnnamed398() { | 6930 buildUnnamed1460() { |
| 6140 var o = new core.List<api.Metric>(); | 6931 var o = new core.List<api.Metric>(); |
| 6141 o.add(buildMetric()); | 6932 o.add(buildMetric()); |
| 6142 o.add(buildMetric()); | 6933 o.add(buildMetric()); |
| 6143 return o; | 6934 return o; |
| 6144 } | 6935 } |
| 6145 | 6936 |
| 6146 checkUnnamed398(core.List<api.Metric> o) { | 6937 checkUnnamed1460(core.List<api.Metric> o) { |
| 6147 unittest.expect(o, unittest.hasLength(2)); | 6938 unittest.expect(o, unittest.hasLength(2)); |
| 6148 checkMetric(o[0]); | 6939 checkMetric(o[0]); |
| 6149 checkMetric(o[1]); | 6940 checkMetric(o[1]); |
| 6150 } | 6941 } |
| 6151 | 6942 |
| 6152 buildUnnamed399() { | 6943 buildUnnamed1461() { |
| 6153 var o = new core.List<api.Metric>(); | 6944 var o = new core.List<api.Metric>(); |
| 6154 o.add(buildMetric()); | 6945 o.add(buildMetric()); |
| 6155 o.add(buildMetric()); | 6946 o.add(buildMetric()); |
| 6156 return o; | 6947 return o; |
| 6157 } | 6948 } |
| 6158 | 6949 |
| 6159 checkUnnamed399(core.List<api.Metric> o) { | 6950 checkUnnamed1461(core.List<api.Metric> o) { |
| 6160 unittest.expect(o, unittest.hasLength(2)); | 6951 unittest.expect(o, unittest.hasLength(2)); |
| 6161 checkMetric(o[0]); | 6952 checkMetric(o[0]); |
| 6162 checkMetric(o[1]); | 6953 checkMetric(o[1]); |
| 6163 } | 6954 } |
| 6164 | 6955 |
| 6165 core.int buildCounterReportCompatibleFields = 0; | 6956 core.int buildCounterReportCompatibleFields = 0; |
| 6166 buildReportCompatibleFields() { | 6957 buildReportCompatibleFields() { |
| 6167 var o = new api.ReportCompatibleFields(); | 6958 var o = new api.ReportCompatibleFields(); |
| 6168 buildCounterReportCompatibleFields++; | 6959 buildCounterReportCompatibleFields++; |
| 6169 if (buildCounterReportCompatibleFields < 3) { | 6960 if (buildCounterReportCompatibleFields < 3) { |
| 6170 o.dimensionFilters = buildUnnamed396(); | 6961 o.dimensionFilters = buildUnnamed1458(); |
| 6171 o.dimensions = buildUnnamed397(); | 6962 o.dimensions = buildUnnamed1459(); |
| 6172 o.kind = "foo"; | 6963 o.kind = "foo"; |
| 6173 o.metrics = buildUnnamed398(); | 6964 o.metrics = buildUnnamed1460(); |
| 6174 o.pivotedActivityMetrics = buildUnnamed399(); | 6965 o.pivotedActivityMetrics = buildUnnamed1461(); |
| 6175 } | 6966 } |
| 6176 buildCounterReportCompatibleFields--; | 6967 buildCounterReportCompatibleFields--; |
| 6177 return o; | 6968 return o; |
| 6178 } | 6969 } |
| 6179 | 6970 |
| 6180 checkReportCompatibleFields(api.ReportCompatibleFields o) { | 6971 checkReportCompatibleFields(api.ReportCompatibleFields o) { |
| 6181 buildCounterReportCompatibleFields++; | 6972 buildCounterReportCompatibleFields++; |
| 6182 if (buildCounterReportCompatibleFields < 3) { | 6973 if (buildCounterReportCompatibleFields < 3) { |
| 6183 checkUnnamed396(o.dimensionFilters); | 6974 checkUnnamed1458(o.dimensionFilters); |
| 6184 checkUnnamed397(o.dimensions); | 6975 checkUnnamed1459(o.dimensions); |
| 6185 unittest.expect(o.kind, unittest.equals('foo')); | 6976 unittest.expect(o.kind, unittest.equals('foo')); |
| 6186 checkUnnamed398(o.metrics); | 6977 checkUnnamed1460(o.metrics); |
| 6187 checkUnnamed399(o.pivotedActivityMetrics); | 6978 checkUnnamed1461(o.pivotedActivityMetrics); |
| 6188 } | 6979 } |
| 6189 buildCounterReportCompatibleFields--; | 6980 buildCounterReportCompatibleFields--; |
| 6190 } | 6981 } |
| 6191 | 6982 |
| 6192 buildUnnamed400() { | 6983 buildUnnamed1462() { |
| 6193 var o = new core.List<api.Report>(); | 6984 var o = new core.List<api.Report>(); |
| 6194 o.add(buildReport()); | 6985 o.add(buildReport()); |
| 6195 o.add(buildReport()); | 6986 o.add(buildReport()); |
| 6196 return o; | 6987 return o; |
| 6197 } | 6988 } |
| 6198 | 6989 |
| 6199 checkUnnamed400(core.List<api.Report> o) { | 6990 checkUnnamed1462(core.List<api.Report> o) { |
| 6200 unittest.expect(o, unittest.hasLength(2)); | 6991 unittest.expect(o, unittest.hasLength(2)); |
| 6201 checkReport(o[0]); | 6992 checkReport(o[0]); |
| 6202 checkReport(o[1]); | 6993 checkReport(o[1]); |
| 6203 } | 6994 } |
| 6204 | 6995 |
| 6205 core.int buildCounterReportList = 0; | 6996 core.int buildCounterReportList = 0; |
| 6206 buildReportList() { | 6997 buildReportList() { |
| 6207 var o = new api.ReportList(); | 6998 var o = new api.ReportList(); |
| 6208 buildCounterReportList++; | 6999 buildCounterReportList++; |
| 6209 if (buildCounterReportList < 3) { | 7000 if (buildCounterReportList < 3) { |
| 6210 o.etag = "foo"; | 7001 o.etag = "foo"; |
| 6211 o.items = buildUnnamed400(); | 7002 o.items = buildUnnamed1462(); |
| 6212 o.kind = "foo"; | 7003 o.kind = "foo"; |
| 6213 o.nextPageToken = "foo"; | 7004 o.nextPageToken = "foo"; |
| 6214 } | 7005 } |
| 6215 buildCounterReportList--; | 7006 buildCounterReportList--; |
| 6216 return o; | 7007 return o; |
| 6217 } | 7008 } |
| 6218 | 7009 |
| 6219 checkReportList(api.ReportList o) { | 7010 checkReportList(api.ReportList o) { |
| 6220 buildCounterReportList++; | 7011 buildCounterReportList++; |
| 6221 if (buildCounterReportList < 3) { | 7012 if (buildCounterReportList < 3) { |
| 6222 unittest.expect(o.etag, unittest.equals('foo')); | 7013 unittest.expect(o.etag, unittest.equals('foo')); |
| 6223 checkUnnamed400(o.items); | 7014 checkUnnamed1462(o.items); |
| 6224 unittest.expect(o.kind, unittest.equals('foo')); | 7015 unittest.expect(o.kind, unittest.equals('foo')); |
| 6225 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7016 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6226 } | 7017 } |
| 6227 buildCounterReportList--; | 7018 buildCounterReportList--; |
| 6228 } | 7019 } |
| 6229 | 7020 |
| 6230 core.int buildCounterReportsConfiguration = 0; | 7021 core.int buildCounterReportsConfiguration = 0; |
| 6231 buildReportsConfiguration() { | 7022 buildReportsConfiguration() { |
| 6232 var o = new api.ReportsConfiguration(); | 7023 var o = new api.ReportsConfiguration(); |
| 6233 buildCounterReportsConfiguration++; | 7024 buildCounterReportsConfiguration++; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6266 checkRichMediaExitOverride(api.RichMediaExitOverride o) { | 7057 checkRichMediaExitOverride(api.RichMediaExitOverride o) { |
| 6267 buildCounterRichMediaExitOverride++; | 7058 buildCounterRichMediaExitOverride++; |
| 6268 if (buildCounterRichMediaExitOverride < 3) { | 7059 if (buildCounterRichMediaExitOverride < 3) { |
| 6269 unittest.expect(o.customExitUrl, unittest.equals('foo')); | 7060 unittest.expect(o.customExitUrl, unittest.equals('foo')); |
| 6270 unittest.expect(o.exitId, unittest.equals('foo')); | 7061 unittest.expect(o.exitId, unittest.equals('foo')); |
| 6271 unittest.expect(o.useCustomExitUrl, unittest.isTrue); | 7062 unittest.expect(o.useCustomExitUrl, unittest.isTrue); |
| 6272 } | 7063 } |
| 6273 buildCounterRichMediaExitOverride--; | 7064 buildCounterRichMediaExitOverride--; |
| 6274 } | 7065 } |
| 6275 | 7066 |
| 6276 buildUnnamed401() { | 7067 buildUnnamed1463() { |
| 6277 var o = new core.List<api.SiteContact>(); | 7068 var o = new core.List<api.SiteContact>(); |
| 6278 o.add(buildSiteContact()); | 7069 o.add(buildSiteContact()); |
| 6279 o.add(buildSiteContact()); | 7070 o.add(buildSiteContact()); |
| 6280 return o; | 7071 return o; |
| 6281 } | 7072 } |
| 6282 | 7073 |
| 6283 checkUnnamed401(core.List<api.SiteContact> o) { | 7074 checkUnnamed1463(core.List<api.SiteContact> o) { |
| 6284 unittest.expect(o, unittest.hasLength(2)); | 7075 unittest.expect(o, unittest.hasLength(2)); |
| 6285 checkSiteContact(o[0]); | 7076 checkSiteContact(o[0]); |
| 6286 checkSiteContact(o[1]); | 7077 checkSiteContact(o[1]); |
| 6287 } | 7078 } |
| 6288 | 7079 |
| 6289 core.int buildCounterSite = 0; | 7080 core.int buildCounterSite = 0; |
| 6290 buildSite() { | 7081 buildSite() { |
| 6291 var o = new api.Site(); | 7082 var o = new api.Site(); |
| 6292 buildCounterSite++; | 7083 buildCounterSite++; |
| 6293 if (buildCounterSite < 3) { | 7084 if (buildCounterSite < 3) { |
| 6294 o.accountId = "foo"; | 7085 o.accountId = "foo"; |
| 6295 o.approved = true; | 7086 o.approved = true; |
| 6296 o.directorySiteId = "foo"; | 7087 o.directorySiteId = "foo"; |
| 6297 o.directorySiteIdDimensionValue = buildDimensionValue(); | 7088 o.directorySiteIdDimensionValue = buildDimensionValue(); |
| 6298 o.id = "foo"; | 7089 o.id = "foo"; |
| 6299 o.idDimensionValue = buildDimensionValue(); | 7090 o.idDimensionValue = buildDimensionValue(); |
| 6300 o.keyName = "foo"; | 7091 o.keyName = "foo"; |
| 6301 o.kind = "foo"; | 7092 o.kind = "foo"; |
| 6302 o.name = "foo"; | 7093 o.name = "foo"; |
| 6303 o.siteContacts = buildUnnamed401(); | 7094 o.siteContacts = buildUnnamed1463(); |
| 6304 o.siteSettings = buildSiteSettings(); | 7095 o.siteSettings = buildSiteSettings(); |
| 6305 o.subaccountId = "foo"; | 7096 o.subaccountId = "foo"; |
| 6306 } | 7097 } |
| 6307 buildCounterSite--; | 7098 buildCounterSite--; |
| 6308 return o; | 7099 return o; |
| 6309 } | 7100 } |
| 6310 | 7101 |
| 6311 checkSite(api.Site o) { | 7102 checkSite(api.Site o) { |
| 6312 buildCounterSite++; | 7103 buildCounterSite++; |
| 6313 if (buildCounterSite < 3) { | 7104 if (buildCounterSite < 3) { |
| 6314 unittest.expect(o.accountId, unittest.equals('foo')); | 7105 unittest.expect(o.accountId, unittest.equals('foo')); |
| 6315 unittest.expect(o.approved, unittest.isTrue); | 7106 unittest.expect(o.approved, unittest.isTrue); |
| 6316 unittest.expect(o.directorySiteId, unittest.equals('foo')); | 7107 unittest.expect(o.directorySiteId, unittest.equals('foo')); |
| 6317 checkDimensionValue(o.directorySiteIdDimensionValue); | 7108 checkDimensionValue(o.directorySiteIdDimensionValue); |
| 6318 unittest.expect(o.id, unittest.equals('foo')); | 7109 unittest.expect(o.id, unittest.equals('foo')); |
| 6319 checkDimensionValue(o.idDimensionValue); | 7110 checkDimensionValue(o.idDimensionValue); |
| 6320 unittest.expect(o.keyName, unittest.equals('foo')); | 7111 unittest.expect(o.keyName, unittest.equals('foo')); |
| 6321 unittest.expect(o.kind, unittest.equals('foo')); | 7112 unittest.expect(o.kind, unittest.equals('foo')); |
| 6322 unittest.expect(o.name, unittest.equals('foo')); | 7113 unittest.expect(o.name, unittest.equals('foo')); |
| 6323 checkUnnamed401(o.siteContacts); | 7114 checkUnnamed1463(o.siteContacts); |
| 6324 checkSiteSettings(o.siteSettings); | 7115 checkSiteSettings(o.siteSettings); |
| 6325 unittest.expect(o.subaccountId, unittest.equals('foo')); | 7116 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 6326 } | 7117 } |
| 6327 buildCounterSite--; | 7118 buildCounterSite--; |
| 6328 } | 7119 } |
| 6329 | 7120 |
| 6330 core.int buildCounterSiteContact = 0; | 7121 core.int buildCounterSiteContact = 0; |
| 6331 buildSiteContact() { | 7122 buildSiteContact() { |
| 6332 var o = new api.SiteContact(); | 7123 var o = new api.SiteContact(); |
| 6333 buildCounterSiteContact++; | 7124 buildCounterSiteContact++; |
| 6334 if (buildCounterSiteContact < 3) { | 7125 if (buildCounterSiteContact < 3) { |
| 7126 o.address = "foo"; |
| 6335 o.contactType = "foo"; | 7127 o.contactType = "foo"; |
| 6336 o.email = "foo"; | 7128 o.email = "foo"; |
| 6337 o.firstName = "foo"; | 7129 o.firstName = "foo"; |
| 6338 o.id = "foo"; | 7130 o.id = "foo"; |
| 6339 o.lastName = "foo"; | 7131 o.lastName = "foo"; |
| 7132 o.phone = "foo"; |
| 7133 o.title = "foo"; |
| 6340 } | 7134 } |
| 6341 buildCounterSiteContact--; | 7135 buildCounterSiteContact--; |
| 6342 return o; | 7136 return o; |
| 6343 } | 7137 } |
| 6344 | 7138 |
| 6345 checkSiteContact(api.SiteContact o) { | 7139 checkSiteContact(api.SiteContact o) { |
| 6346 buildCounterSiteContact++; | 7140 buildCounterSiteContact++; |
| 6347 if (buildCounterSiteContact < 3) { | 7141 if (buildCounterSiteContact < 3) { |
| 7142 unittest.expect(o.address, unittest.equals('foo')); |
| 6348 unittest.expect(o.contactType, unittest.equals('foo')); | 7143 unittest.expect(o.contactType, unittest.equals('foo')); |
| 6349 unittest.expect(o.email, unittest.equals('foo')); | 7144 unittest.expect(o.email, unittest.equals('foo')); |
| 6350 unittest.expect(o.firstName, unittest.equals('foo')); | 7145 unittest.expect(o.firstName, unittest.equals('foo')); |
| 6351 unittest.expect(o.id, unittest.equals('foo')); | 7146 unittest.expect(o.id, unittest.equals('foo')); |
| 6352 unittest.expect(o.lastName, unittest.equals('foo')); | 7147 unittest.expect(o.lastName, unittest.equals('foo')); |
| 7148 unittest.expect(o.phone, unittest.equals('foo')); |
| 7149 unittest.expect(o.title, unittest.equals('foo')); |
| 6353 } | 7150 } |
| 6354 buildCounterSiteContact--; | 7151 buildCounterSiteContact--; |
| 6355 } | 7152 } |
| 6356 | 7153 |
| 6357 core.int buildCounterSiteSettings = 0; | 7154 core.int buildCounterSiteSettings = 0; |
| 6358 buildSiteSettings() { | 7155 buildSiteSettings() { |
| 6359 var o = new api.SiteSettings(); | 7156 var o = new api.SiteSettings(); |
| 6360 buildCounterSiteSettings++; | 7157 buildCounterSiteSettings++; |
| 6361 if (buildCounterSiteSettings < 3) { | 7158 if (buildCounterSiteSettings < 3) { |
| 6362 o.activeViewOptOut = true; | 7159 o.activeViewOptOut = true; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 6376 unittest.expect(o.activeViewOptOut, unittest.isTrue); | 7173 unittest.expect(o.activeViewOptOut, unittest.isTrue); |
| 6377 checkCreativeSettings(o.creativeSettings); | 7174 checkCreativeSettings(o.creativeSettings); |
| 6378 unittest.expect(o.disableBrandSafeAds, unittest.isTrue); | 7175 unittest.expect(o.disableBrandSafeAds, unittest.isTrue); |
| 6379 unittest.expect(o.disableNewCookie, unittest.isTrue); | 7176 unittest.expect(o.disableNewCookie, unittest.isTrue); |
| 6380 checkLookbackConfiguration(o.lookbackConfiguration); | 7177 checkLookbackConfiguration(o.lookbackConfiguration); |
| 6381 checkTagSetting(o.tagSetting); | 7178 checkTagSetting(o.tagSetting); |
| 6382 } | 7179 } |
| 6383 buildCounterSiteSettings--; | 7180 buildCounterSiteSettings--; |
| 6384 } | 7181 } |
| 6385 | 7182 |
| 6386 buildUnnamed402() { | 7183 buildUnnamed1464() { |
| 6387 var o = new core.List<api.Site>(); | 7184 var o = new core.List<api.Site>(); |
| 6388 o.add(buildSite()); | 7185 o.add(buildSite()); |
| 6389 o.add(buildSite()); | 7186 o.add(buildSite()); |
| 6390 return o; | 7187 return o; |
| 6391 } | 7188 } |
| 6392 | 7189 |
| 6393 checkUnnamed402(core.List<api.Site> o) { | 7190 checkUnnamed1464(core.List<api.Site> o) { |
| 6394 unittest.expect(o, unittest.hasLength(2)); | 7191 unittest.expect(o, unittest.hasLength(2)); |
| 6395 checkSite(o[0]); | 7192 checkSite(o[0]); |
| 6396 checkSite(o[1]); | 7193 checkSite(o[1]); |
| 6397 } | 7194 } |
| 6398 | 7195 |
| 6399 core.int buildCounterSitesListResponse = 0; | 7196 core.int buildCounterSitesListResponse = 0; |
| 6400 buildSitesListResponse() { | 7197 buildSitesListResponse() { |
| 6401 var o = new api.SitesListResponse(); | 7198 var o = new api.SitesListResponse(); |
| 6402 buildCounterSitesListResponse++; | 7199 buildCounterSitesListResponse++; |
| 6403 if (buildCounterSitesListResponse < 3) { | 7200 if (buildCounterSitesListResponse < 3) { |
| 6404 o.kind = "foo"; | 7201 o.kind = "foo"; |
| 6405 o.nextPageToken = "foo"; | 7202 o.nextPageToken = "foo"; |
| 6406 o.sites = buildUnnamed402(); | 7203 o.sites = buildUnnamed1464(); |
| 6407 } | 7204 } |
| 6408 buildCounterSitesListResponse--; | 7205 buildCounterSitesListResponse--; |
| 6409 return o; | 7206 return o; |
| 6410 } | 7207 } |
| 6411 | 7208 |
| 6412 checkSitesListResponse(api.SitesListResponse o) { | 7209 checkSitesListResponse(api.SitesListResponse o) { |
| 6413 buildCounterSitesListResponse++; | 7210 buildCounterSitesListResponse++; |
| 6414 if (buildCounterSitesListResponse < 3) { | 7211 if (buildCounterSitesListResponse < 3) { |
| 6415 unittest.expect(o.kind, unittest.equals('foo')); | 7212 unittest.expect(o.kind, unittest.equals('foo')); |
| 6416 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7213 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6417 checkUnnamed402(o.sites); | 7214 checkUnnamed1464(o.sites); |
| 6418 } | 7215 } |
| 6419 buildCounterSitesListResponse--; | 7216 buildCounterSitesListResponse--; |
| 6420 } | 7217 } |
| 6421 | 7218 |
| 6422 core.int buildCounterSize = 0; | 7219 core.int buildCounterSize = 0; |
| 6423 buildSize() { | 7220 buildSize() { |
| 6424 var o = new api.Size(); | 7221 var o = new api.Size(); |
| 6425 buildCounterSize++; | 7222 buildCounterSize++; |
| 6426 if (buildCounterSize < 3) { | 7223 if (buildCounterSize < 3) { |
| 6427 o.height = 42; | 7224 o.height = 42; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 6439 if (buildCounterSize < 3) { | 7236 if (buildCounterSize < 3) { |
| 6440 unittest.expect(o.height, unittest.equals(42)); | 7237 unittest.expect(o.height, unittest.equals(42)); |
| 6441 unittest.expect(o.iab, unittest.isTrue); | 7238 unittest.expect(o.iab, unittest.isTrue); |
| 6442 unittest.expect(o.id, unittest.equals('foo')); | 7239 unittest.expect(o.id, unittest.equals('foo')); |
| 6443 unittest.expect(o.kind, unittest.equals('foo')); | 7240 unittest.expect(o.kind, unittest.equals('foo')); |
| 6444 unittest.expect(o.width, unittest.equals(42)); | 7241 unittest.expect(o.width, unittest.equals(42)); |
| 6445 } | 7242 } |
| 6446 buildCounterSize--; | 7243 buildCounterSize--; |
| 6447 } | 7244 } |
| 6448 | 7245 |
| 6449 buildUnnamed403() { | 7246 buildUnnamed1465() { |
| 6450 var o = new core.List<api.Size>(); | 7247 var o = new core.List<api.Size>(); |
| 6451 o.add(buildSize()); | 7248 o.add(buildSize()); |
| 6452 o.add(buildSize()); | 7249 o.add(buildSize()); |
| 6453 return o; | 7250 return o; |
| 6454 } | 7251 } |
| 6455 | 7252 |
| 6456 checkUnnamed403(core.List<api.Size> o) { | 7253 checkUnnamed1465(core.List<api.Size> o) { |
| 6457 unittest.expect(o, unittest.hasLength(2)); | 7254 unittest.expect(o, unittest.hasLength(2)); |
| 6458 checkSize(o[0]); | 7255 checkSize(o[0]); |
| 6459 checkSize(o[1]); | 7256 checkSize(o[1]); |
| 6460 } | 7257 } |
| 6461 | 7258 |
| 6462 core.int buildCounterSizesListResponse = 0; | 7259 core.int buildCounterSizesListResponse = 0; |
| 6463 buildSizesListResponse() { | 7260 buildSizesListResponse() { |
| 6464 var o = new api.SizesListResponse(); | 7261 var o = new api.SizesListResponse(); |
| 6465 buildCounterSizesListResponse++; | 7262 buildCounterSizesListResponse++; |
| 6466 if (buildCounterSizesListResponse < 3) { | 7263 if (buildCounterSizesListResponse < 3) { |
| 6467 o.kind = "foo"; | 7264 o.kind = "foo"; |
| 6468 o.sizes = buildUnnamed403(); | 7265 o.sizes = buildUnnamed1465(); |
| 6469 } | 7266 } |
| 6470 buildCounterSizesListResponse--; | 7267 buildCounterSizesListResponse--; |
| 6471 return o; | 7268 return o; |
| 6472 } | 7269 } |
| 6473 | 7270 |
| 6474 checkSizesListResponse(api.SizesListResponse o) { | 7271 checkSizesListResponse(api.SizesListResponse o) { |
| 6475 buildCounterSizesListResponse++; | 7272 buildCounterSizesListResponse++; |
| 6476 if (buildCounterSizesListResponse < 3) { | 7273 if (buildCounterSizesListResponse < 3) { |
| 6477 unittest.expect(o.kind, unittest.equals('foo')); | 7274 unittest.expect(o.kind, unittest.equals('foo')); |
| 6478 checkUnnamed403(o.sizes); | 7275 checkUnnamed1465(o.sizes); |
| 6479 } | 7276 } |
| 6480 buildCounterSizesListResponse--; | 7277 buildCounterSizesListResponse--; |
| 6481 } | 7278 } |
| 6482 | 7279 |
| 6483 core.int buildCounterSortedDimension = 0; | 7280 core.int buildCounterSortedDimension = 0; |
| 6484 buildSortedDimension() { | 7281 buildSortedDimension() { |
| 6485 var o = new api.SortedDimension(); | 7282 var o = new api.SortedDimension(); |
| 6486 buildCounterSortedDimension++; | 7283 buildCounterSortedDimension++; |
| 6487 if (buildCounterSortedDimension < 3) { | 7284 if (buildCounterSortedDimension < 3) { |
| 6488 o.kind = "foo"; | 7285 o.kind = "foo"; |
| 6489 o.name = "foo"; | 7286 o.name = "foo"; |
| 6490 o.sortOrder = "foo"; | 7287 o.sortOrder = "foo"; |
| 6491 } | 7288 } |
| 6492 buildCounterSortedDimension--; | 7289 buildCounterSortedDimension--; |
| 6493 return o; | 7290 return o; |
| 6494 } | 7291 } |
| 6495 | 7292 |
| 6496 checkSortedDimension(api.SortedDimension o) { | 7293 checkSortedDimension(api.SortedDimension o) { |
| 6497 buildCounterSortedDimension++; | 7294 buildCounterSortedDimension++; |
| 6498 if (buildCounterSortedDimension < 3) { | 7295 if (buildCounterSortedDimension < 3) { |
| 6499 unittest.expect(o.kind, unittest.equals('foo')); | 7296 unittest.expect(o.kind, unittest.equals('foo')); |
| 6500 unittest.expect(o.name, unittest.equals('foo')); | 7297 unittest.expect(o.name, unittest.equals('foo')); |
| 6501 unittest.expect(o.sortOrder, unittest.equals('foo')); | 7298 unittest.expect(o.sortOrder, unittest.equals('foo')); |
| 6502 } | 7299 } |
| 6503 buildCounterSortedDimension--; | 7300 buildCounterSortedDimension--; |
| 6504 } | 7301 } |
| 6505 | 7302 |
| 6506 buildUnnamed404() { | 7303 buildUnnamed1466() { |
| 6507 var o = new core.List<core.String>(); | 7304 var o = new core.List<core.String>(); |
| 6508 o.add("foo"); | 7305 o.add("foo"); |
| 6509 o.add("foo"); | 7306 o.add("foo"); |
| 6510 return o; | 7307 return o; |
| 6511 } | 7308 } |
| 6512 | 7309 |
| 6513 checkUnnamed404(core.List<core.String> o) { | 7310 checkUnnamed1466(core.List<core.String> o) { |
| 6514 unittest.expect(o, unittest.hasLength(2)); | 7311 unittest.expect(o, unittest.hasLength(2)); |
| 6515 unittest.expect(o[0], unittest.equals('foo')); | 7312 unittest.expect(o[0], unittest.equals('foo')); |
| 6516 unittest.expect(o[1], unittest.equals('foo')); | 7313 unittest.expect(o[1], unittest.equals('foo')); |
| 6517 } | 7314 } |
| 6518 | 7315 |
| 6519 core.int buildCounterSubaccount = 0; | 7316 core.int buildCounterSubaccount = 0; |
| 6520 buildSubaccount() { | 7317 buildSubaccount() { |
| 6521 var o = new api.Subaccount(); | 7318 var o = new api.Subaccount(); |
| 6522 buildCounterSubaccount++; | 7319 buildCounterSubaccount++; |
| 6523 if (buildCounterSubaccount < 3) { | 7320 if (buildCounterSubaccount < 3) { |
| 6524 o.accountId = "foo"; | 7321 o.accountId = "foo"; |
| 6525 o.availablePermissionIds = buildUnnamed404(); | 7322 o.availablePermissionIds = buildUnnamed1466(); |
| 6526 o.id = "foo"; | 7323 o.id = "foo"; |
| 6527 o.kind = "foo"; | 7324 o.kind = "foo"; |
| 6528 o.name = "foo"; | 7325 o.name = "foo"; |
| 6529 } | 7326 } |
| 6530 buildCounterSubaccount--; | 7327 buildCounterSubaccount--; |
| 6531 return o; | 7328 return o; |
| 6532 } | 7329 } |
| 6533 | 7330 |
| 6534 checkSubaccount(api.Subaccount o) { | 7331 checkSubaccount(api.Subaccount o) { |
| 6535 buildCounterSubaccount++; | 7332 buildCounterSubaccount++; |
| 6536 if (buildCounterSubaccount < 3) { | 7333 if (buildCounterSubaccount < 3) { |
| 6537 unittest.expect(o.accountId, unittest.equals('foo')); | 7334 unittest.expect(o.accountId, unittest.equals('foo')); |
| 6538 checkUnnamed404(o.availablePermissionIds); | 7335 checkUnnamed1466(o.availablePermissionIds); |
| 6539 unittest.expect(o.id, unittest.equals('foo')); | 7336 unittest.expect(o.id, unittest.equals('foo')); |
| 6540 unittest.expect(o.kind, unittest.equals('foo')); | 7337 unittest.expect(o.kind, unittest.equals('foo')); |
| 6541 unittest.expect(o.name, unittest.equals('foo')); | 7338 unittest.expect(o.name, unittest.equals('foo')); |
| 6542 } | 7339 } |
| 6543 buildCounterSubaccount--; | 7340 buildCounterSubaccount--; |
| 6544 } | 7341 } |
| 6545 | 7342 |
| 6546 buildUnnamed405() { | 7343 buildUnnamed1467() { |
| 6547 var o = new core.List<api.Subaccount>(); | 7344 var o = new core.List<api.Subaccount>(); |
| 6548 o.add(buildSubaccount()); | 7345 o.add(buildSubaccount()); |
| 6549 o.add(buildSubaccount()); | 7346 o.add(buildSubaccount()); |
| 6550 return o; | 7347 return o; |
| 6551 } | 7348 } |
| 6552 | 7349 |
| 6553 checkUnnamed405(core.List<api.Subaccount> o) { | 7350 checkUnnamed1467(core.List<api.Subaccount> o) { |
| 6554 unittest.expect(o, unittest.hasLength(2)); | 7351 unittest.expect(o, unittest.hasLength(2)); |
| 6555 checkSubaccount(o[0]); | 7352 checkSubaccount(o[0]); |
| 6556 checkSubaccount(o[1]); | 7353 checkSubaccount(o[1]); |
| 6557 } | 7354 } |
| 6558 | 7355 |
| 6559 core.int buildCounterSubaccountsListResponse = 0; | 7356 core.int buildCounterSubaccountsListResponse = 0; |
| 6560 buildSubaccountsListResponse() { | 7357 buildSubaccountsListResponse() { |
| 6561 var o = new api.SubaccountsListResponse(); | 7358 var o = new api.SubaccountsListResponse(); |
| 6562 buildCounterSubaccountsListResponse++; | 7359 buildCounterSubaccountsListResponse++; |
| 6563 if (buildCounterSubaccountsListResponse < 3) { | 7360 if (buildCounterSubaccountsListResponse < 3) { |
| 6564 o.kind = "foo"; | 7361 o.kind = "foo"; |
| 6565 o.nextPageToken = "foo"; | 7362 o.nextPageToken = "foo"; |
| 6566 o.subaccounts = buildUnnamed405(); | 7363 o.subaccounts = buildUnnamed1467(); |
| 6567 } | 7364 } |
| 6568 buildCounterSubaccountsListResponse--; | 7365 buildCounterSubaccountsListResponse--; |
| 6569 return o; | 7366 return o; |
| 6570 } | 7367 } |
| 6571 | 7368 |
| 6572 checkSubaccountsListResponse(api.SubaccountsListResponse o) { | 7369 checkSubaccountsListResponse(api.SubaccountsListResponse o) { |
| 6573 buildCounterSubaccountsListResponse++; | 7370 buildCounterSubaccountsListResponse++; |
| 6574 if (buildCounterSubaccountsListResponse < 3) { | 7371 if (buildCounterSubaccountsListResponse < 3) { |
| 6575 unittest.expect(o.kind, unittest.equals('foo')); | 7372 unittest.expect(o.kind, unittest.equals('foo')); |
| 6576 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7373 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6577 checkUnnamed405(o.subaccounts); | 7374 checkUnnamed1467(o.subaccounts); |
| 6578 } | 7375 } |
| 6579 buildCounterSubaccountsListResponse--; | 7376 buildCounterSubaccountsListResponse--; |
| 6580 } | 7377 } |
| 6581 | 7378 |
| 6582 core.int buildCounterTagData = 0; | 7379 core.int buildCounterTagData = 0; |
| 6583 buildTagData() { | 7380 buildTagData() { |
| 6584 var o = new api.TagData(); | 7381 var o = new api.TagData(); |
| 6585 buildCounterTagData++; | 7382 buildCounterTagData++; |
| 6586 if (buildCounterTagData < 3) { | 7383 if (buildCounterTagData < 3) { |
| 6587 o.adId = "foo"; | 7384 o.adId = "foo"; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6666 | 7463 |
| 6667 checkTargetWindow(api.TargetWindow o) { | 7464 checkTargetWindow(api.TargetWindow o) { |
| 6668 buildCounterTargetWindow++; | 7465 buildCounterTargetWindow++; |
| 6669 if (buildCounterTargetWindow < 3) { | 7466 if (buildCounterTargetWindow < 3) { |
| 6670 unittest.expect(o.customHtml, unittest.equals('foo')); | 7467 unittest.expect(o.customHtml, unittest.equals('foo')); |
| 6671 unittest.expect(o.targetWindowOption, unittest.equals('foo')); | 7468 unittest.expect(o.targetWindowOption, unittest.equals('foo')); |
| 6672 } | 7469 } |
| 6673 buildCounterTargetWindow--; | 7470 buildCounterTargetWindow--; |
| 6674 } | 7471 } |
| 6675 | 7472 |
| 6676 buildUnnamed406() { | 7473 core.int buildCounterTargetableRemarketingList = 0; |
| 7474 buildTargetableRemarketingList() { |
| 7475 var o = new api.TargetableRemarketingList(); |
| 7476 buildCounterTargetableRemarketingList++; |
| 7477 if (buildCounterTargetableRemarketingList < 3) { |
| 7478 o.accountId = "foo"; |
| 7479 o.active = true; |
| 7480 o.advertiserId = "foo"; |
| 7481 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 7482 o.description = "foo"; |
| 7483 o.id = "foo"; |
| 7484 o.kind = "foo"; |
| 7485 o.lifeSpan = "foo"; |
| 7486 o.listSize = "foo"; |
| 7487 o.listSource = "foo"; |
| 7488 o.name = "foo"; |
| 7489 o.subaccountId = "foo"; |
| 7490 } |
| 7491 buildCounterTargetableRemarketingList--; |
| 7492 return o; |
| 7493 } |
| 7494 |
| 7495 checkTargetableRemarketingList(api.TargetableRemarketingList o) { |
| 7496 buildCounterTargetableRemarketingList++; |
| 7497 if (buildCounterTargetableRemarketingList < 3) { |
| 7498 unittest.expect(o.accountId, unittest.equals('foo')); |
| 7499 unittest.expect(o.active, unittest.isTrue); |
| 7500 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 7501 checkDimensionValue(o.advertiserIdDimensionValue); |
| 7502 unittest.expect(o.description, unittest.equals('foo')); |
| 7503 unittest.expect(o.id, unittest.equals('foo')); |
| 7504 unittest.expect(o.kind, unittest.equals('foo')); |
| 7505 unittest.expect(o.lifeSpan, unittest.equals('foo')); |
| 7506 unittest.expect(o.listSize, unittest.equals('foo')); |
| 7507 unittest.expect(o.listSource, unittest.equals('foo')); |
| 7508 unittest.expect(o.name, unittest.equals('foo')); |
| 7509 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 7510 } |
| 7511 buildCounterTargetableRemarketingList--; |
| 7512 } |
| 7513 |
| 7514 buildUnnamed1468() { |
| 7515 var o = new core.List<api.TargetableRemarketingList>(); |
| 7516 o.add(buildTargetableRemarketingList()); |
| 7517 o.add(buildTargetableRemarketingList()); |
| 7518 return o; |
| 7519 } |
| 7520 |
| 7521 checkUnnamed1468(core.List<api.TargetableRemarketingList> o) { |
| 7522 unittest.expect(o, unittest.hasLength(2)); |
| 7523 checkTargetableRemarketingList(o[0]); |
| 7524 checkTargetableRemarketingList(o[1]); |
| 7525 } |
| 7526 |
| 7527 core.int buildCounterTargetableRemarketingListsListResponse = 0; |
| 7528 buildTargetableRemarketingListsListResponse() { |
| 7529 var o = new api.TargetableRemarketingListsListResponse(); |
| 7530 buildCounterTargetableRemarketingListsListResponse++; |
| 7531 if (buildCounterTargetableRemarketingListsListResponse < 3) { |
| 7532 o.kind = "foo"; |
| 7533 o.nextPageToken = "foo"; |
| 7534 o.targetableRemarketingLists = buildUnnamed1468(); |
| 7535 } |
| 7536 buildCounterTargetableRemarketingListsListResponse--; |
| 7537 return o; |
| 7538 } |
| 7539 |
| 7540 checkTargetableRemarketingListsListResponse(api.TargetableRemarketingListsListRe
sponse o) { |
| 7541 buildCounterTargetableRemarketingListsListResponse++; |
| 7542 if (buildCounterTargetableRemarketingListsListResponse < 3) { |
| 7543 unittest.expect(o.kind, unittest.equals('foo')); |
| 7544 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 7545 checkUnnamed1468(o.targetableRemarketingLists); |
| 7546 } |
| 7547 buildCounterTargetableRemarketingListsListResponse--; |
| 7548 } |
| 7549 |
| 7550 buildUnnamed1469() { |
| 6677 var o = new core.List<api.Browser>(); | 7551 var o = new core.List<api.Browser>(); |
| 6678 o.add(buildBrowser()); | 7552 o.add(buildBrowser()); |
| 6679 o.add(buildBrowser()); | 7553 o.add(buildBrowser()); |
| 6680 return o; | 7554 return o; |
| 6681 } | 7555 } |
| 6682 | 7556 |
| 6683 checkUnnamed406(core.List<api.Browser> o) { | 7557 checkUnnamed1469(core.List<api.Browser> o) { |
| 6684 unittest.expect(o, unittest.hasLength(2)); | 7558 unittest.expect(o, unittest.hasLength(2)); |
| 6685 checkBrowser(o[0]); | 7559 checkBrowser(o[0]); |
| 6686 checkBrowser(o[1]); | 7560 checkBrowser(o[1]); |
| 6687 } | 7561 } |
| 6688 | 7562 |
| 6689 buildUnnamed407() { | 7563 buildUnnamed1470() { |
| 6690 var o = new core.List<api.ConnectionType>(); | 7564 var o = new core.List<api.ConnectionType>(); |
| 6691 o.add(buildConnectionType()); | 7565 o.add(buildConnectionType()); |
| 6692 o.add(buildConnectionType()); | 7566 o.add(buildConnectionType()); |
| 6693 return o; | 7567 return o; |
| 6694 } | 7568 } |
| 6695 | 7569 |
| 6696 checkUnnamed407(core.List<api.ConnectionType> o) { | 7570 checkUnnamed1470(core.List<api.ConnectionType> o) { |
| 6697 unittest.expect(o, unittest.hasLength(2)); | 7571 unittest.expect(o, unittest.hasLength(2)); |
| 6698 checkConnectionType(o[0]); | 7572 checkConnectionType(o[0]); |
| 6699 checkConnectionType(o[1]); | 7573 checkConnectionType(o[1]); |
| 6700 } | 7574 } |
| 6701 | 7575 |
| 6702 buildUnnamed408() { | 7576 buildUnnamed1471() { |
| 6703 var o = new core.List<api.MobileCarrier>(); | 7577 var o = new core.List<api.MobileCarrier>(); |
| 6704 o.add(buildMobileCarrier()); | 7578 o.add(buildMobileCarrier()); |
| 6705 o.add(buildMobileCarrier()); | 7579 o.add(buildMobileCarrier()); |
| 6706 return o; | 7580 return o; |
| 6707 } | 7581 } |
| 6708 | 7582 |
| 6709 checkUnnamed408(core.List<api.MobileCarrier> o) { | 7583 checkUnnamed1471(core.List<api.MobileCarrier> o) { |
| 6710 unittest.expect(o, unittest.hasLength(2)); | 7584 unittest.expect(o, unittest.hasLength(2)); |
| 6711 checkMobileCarrier(o[0]); | 7585 checkMobileCarrier(o[0]); |
| 6712 checkMobileCarrier(o[1]); | 7586 checkMobileCarrier(o[1]); |
| 6713 } | 7587 } |
| 6714 | 7588 |
| 6715 buildUnnamed409() { | 7589 buildUnnamed1472() { |
| 6716 var o = new core.List<api.OperatingSystemVersion>(); | 7590 var o = new core.List<api.OperatingSystemVersion>(); |
| 6717 o.add(buildOperatingSystemVersion()); | 7591 o.add(buildOperatingSystemVersion()); |
| 6718 o.add(buildOperatingSystemVersion()); | 7592 o.add(buildOperatingSystemVersion()); |
| 6719 return o; | 7593 return o; |
| 6720 } | 7594 } |
| 6721 | 7595 |
| 6722 checkUnnamed409(core.List<api.OperatingSystemVersion> o) { | 7596 checkUnnamed1472(core.List<api.OperatingSystemVersion> o) { |
| 6723 unittest.expect(o, unittest.hasLength(2)); | 7597 unittest.expect(o, unittest.hasLength(2)); |
| 6724 checkOperatingSystemVersion(o[0]); | 7598 checkOperatingSystemVersion(o[0]); |
| 6725 checkOperatingSystemVersion(o[1]); | 7599 checkOperatingSystemVersion(o[1]); |
| 6726 } | 7600 } |
| 6727 | 7601 |
| 6728 buildUnnamed410() { | 7602 buildUnnamed1473() { |
| 6729 var o = new core.List<api.OperatingSystem>(); | 7603 var o = new core.List<api.OperatingSystem>(); |
| 6730 o.add(buildOperatingSystem()); | 7604 o.add(buildOperatingSystem()); |
| 6731 o.add(buildOperatingSystem()); | 7605 o.add(buildOperatingSystem()); |
| 6732 return o; | 7606 return o; |
| 6733 } | 7607 } |
| 6734 | 7608 |
| 6735 checkUnnamed410(core.List<api.OperatingSystem> o) { | 7609 checkUnnamed1473(core.List<api.OperatingSystem> o) { |
| 6736 unittest.expect(o, unittest.hasLength(2)); | 7610 unittest.expect(o, unittest.hasLength(2)); |
| 6737 checkOperatingSystem(o[0]); | 7611 checkOperatingSystem(o[0]); |
| 6738 checkOperatingSystem(o[1]); | 7612 checkOperatingSystem(o[1]); |
| 6739 } | 7613 } |
| 6740 | 7614 |
| 6741 buildUnnamed411() { | 7615 buildUnnamed1474() { |
| 6742 var o = new core.List<api.PlatformType>(); | 7616 var o = new core.List<api.PlatformType>(); |
| 6743 o.add(buildPlatformType()); | 7617 o.add(buildPlatformType()); |
| 6744 o.add(buildPlatformType()); | 7618 o.add(buildPlatformType()); |
| 6745 return o; | 7619 return o; |
| 6746 } | 7620 } |
| 6747 | 7621 |
| 6748 checkUnnamed411(core.List<api.PlatformType> o) { | 7622 checkUnnamed1474(core.List<api.PlatformType> o) { |
| 6749 unittest.expect(o, unittest.hasLength(2)); | 7623 unittest.expect(o, unittest.hasLength(2)); |
| 6750 checkPlatformType(o[0]); | 7624 checkPlatformType(o[0]); |
| 6751 checkPlatformType(o[1]); | 7625 checkPlatformType(o[1]); |
| 6752 } | 7626 } |
| 6753 | 7627 |
| 6754 core.int buildCounterTechnologyTargeting = 0; | 7628 core.int buildCounterTechnologyTargeting = 0; |
| 6755 buildTechnologyTargeting() { | 7629 buildTechnologyTargeting() { |
| 6756 var o = new api.TechnologyTargeting(); | 7630 var o = new api.TechnologyTargeting(); |
| 6757 buildCounterTechnologyTargeting++; | 7631 buildCounterTechnologyTargeting++; |
| 6758 if (buildCounterTechnologyTargeting < 3) { | 7632 if (buildCounterTechnologyTargeting < 3) { |
| 6759 o.browsers = buildUnnamed406(); | 7633 o.browsers = buildUnnamed1469(); |
| 6760 o.connectionTypes = buildUnnamed407(); | 7634 o.connectionTypes = buildUnnamed1470(); |
| 6761 o.mobileCarriers = buildUnnamed408(); | 7635 o.mobileCarriers = buildUnnamed1471(); |
| 6762 o.operatingSystemVersions = buildUnnamed409(); | 7636 o.operatingSystemVersions = buildUnnamed1472(); |
| 6763 o.operatingSystems = buildUnnamed410(); | 7637 o.operatingSystems = buildUnnamed1473(); |
| 6764 o.platformTypes = buildUnnamed411(); | 7638 o.platformTypes = buildUnnamed1474(); |
| 6765 } | 7639 } |
| 6766 buildCounterTechnologyTargeting--; | 7640 buildCounterTechnologyTargeting--; |
| 6767 return o; | 7641 return o; |
| 6768 } | 7642 } |
| 6769 | 7643 |
| 6770 checkTechnologyTargeting(api.TechnologyTargeting o) { | 7644 checkTechnologyTargeting(api.TechnologyTargeting o) { |
| 6771 buildCounterTechnologyTargeting++; | 7645 buildCounterTechnologyTargeting++; |
| 6772 if (buildCounterTechnologyTargeting < 3) { | 7646 if (buildCounterTechnologyTargeting < 3) { |
| 6773 checkUnnamed406(o.browsers); | 7647 checkUnnamed1469(o.browsers); |
| 6774 checkUnnamed407(o.connectionTypes); | 7648 checkUnnamed1470(o.connectionTypes); |
| 6775 checkUnnamed408(o.mobileCarriers); | 7649 checkUnnamed1471(o.mobileCarriers); |
| 6776 checkUnnamed409(o.operatingSystemVersions); | 7650 checkUnnamed1472(o.operatingSystemVersions); |
| 6777 checkUnnamed410(o.operatingSystems); | 7651 checkUnnamed1473(o.operatingSystems); |
| 6778 checkUnnamed411(o.platformTypes); | 7652 checkUnnamed1474(o.platformTypes); |
| 6779 } | 7653 } |
| 6780 buildCounterTechnologyTargeting--; | 7654 buildCounterTechnologyTargeting--; |
| 6781 } | 7655 } |
| 6782 | 7656 |
| 7657 core.int buildCounterThirdPartyAuthenticationToken = 0; |
| 7658 buildThirdPartyAuthenticationToken() { |
| 7659 var o = new api.ThirdPartyAuthenticationToken(); |
| 7660 buildCounterThirdPartyAuthenticationToken++; |
| 7661 if (buildCounterThirdPartyAuthenticationToken < 3) { |
| 7662 o.name = "foo"; |
| 7663 o.value = "foo"; |
| 7664 } |
| 7665 buildCounterThirdPartyAuthenticationToken--; |
| 7666 return o; |
| 7667 } |
| 7668 |
| 7669 checkThirdPartyAuthenticationToken(api.ThirdPartyAuthenticationToken o) { |
| 7670 buildCounterThirdPartyAuthenticationToken++; |
| 7671 if (buildCounterThirdPartyAuthenticationToken < 3) { |
| 7672 unittest.expect(o.name, unittest.equals('foo')); |
| 7673 unittest.expect(o.value, unittest.equals('foo')); |
| 7674 } |
| 7675 buildCounterThirdPartyAuthenticationToken--; |
| 7676 } |
| 7677 |
| 6783 core.int buildCounterThirdPartyTrackingUrl = 0; | 7678 core.int buildCounterThirdPartyTrackingUrl = 0; |
| 6784 buildThirdPartyTrackingUrl() { | 7679 buildThirdPartyTrackingUrl() { |
| 6785 var o = new api.ThirdPartyTrackingUrl(); | 7680 var o = new api.ThirdPartyTrackingUrl(); |
| 6786 buildCounterThirdPartyTrackingUrl++; | 7681 buildCounterThirdPartyTrackingUrl++; |
| 6787 if (buildCounterThirdPartyTrackingUrl < 3) { | 7682 if (buildCounterThirdPartyTrackingUrl < 3) { |
| 6788 o.thirdPartyUrlType = "foo"; | 7683 o.thirdPartyUrlType = "foo"; |
| 6789 o.url = "foo"; | 7684 o.url = "foo"; |
| 6790 } | 7685 } |
| 6791 buildCounterThirdPartyTrackingUrl--; | 7686 buildCounterThirdPartyTrackingUrl--; |
| 6792 return o; | 7687 return o; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6850 unittest.expect(o.etag, unittest.equals('foo')); | 7745 unittest.expect(o.etag, unittest.equals('foo')); |
| 6851 unittest.expect(o.kind, unittest.equals('foo')); | 7746 unittest.expect(o.kind, unittest.equals('foo')); |
| 6852 unittest.expect(o.profileId, unittest.equals('foo')); | 7747 unittest.expect(o.profileId, unittest.equals('foo')); |
| 6853 unittest.expect(o.subAccountId, unittest.equals('foo')); | 7748 unittest.expect(o.subAccountId, unittest.equals('foo')); |
| 6854 unittest.expect(o.subAccountName, unittest.equals('foo')); | 7749 unittest.expect(o.subAccountName, unittest.equals('foo')); |
| 6855 unittest.expect(o.userName, unittest.equals('foo')); | 7750 unittest.expect(o.userName, unittest.equals('foo')); |
| 6856 } | 7751 } |
| 6857 buildCounterUserProfile--; | 7752 buildCounterUserProfile--; |
| 6858 } | 7753 } |
| 6859 | 7754 |
| 6860 buildUnnamed412() { | 7755 buildUnnamed1475() { |
| 6861 var o = new core.List<api.UserProfile>(); | 7756 var o = new core.List<api.UserProfile>(); |
| 6862 o.add(buildUserProfile()); | 7757 o.add(buildUserProfile()); |
| 6863 o.add(buildUserProfile()); | 7758 o.add(buildUserProfile()); |
| 6864 return o; | 7759 return o; |
| 6865 } | 7760 } |
| 6866 | 7761 |
| 6867 checkUnnamed412(core.List<api.UserProfile> o) { | 7762 checkUnnamed1475(core.List<api.UserProfile> o) { |
| 6868 unittest.expect(o, unittest.hasLength(2)); | 7763 unittest.expect(o, unittest.hasLength(2)); |
| 6869 checkUserProfile(o[0]); | 7764 checkUserProfile(o[0]); |
| 6870 checkUserProfile(o[1]); | 7765 checkUserProfile(o[1]); |
| 6871 } | 7766 } |
| 6872 | 7767 |
| 6873 core.int buildCounterUserProfileList = 0; | 7768 core.int buildCounterUserProfileList = 0; |
| 6874 buildUserProfileList() { | 7769 buildUserProfileList() { |
| 6875 var o = new api.UserProfileList(); | 7770 var o = new api.UserProfileList(); |
| 6876 buildCounterUserProfileList++; | 7771 buildCounterUserProfileList++; |
| 6877 if (buildCounterUserProfileList < 3) { | 7772 if (buildCounterUserProfileList < 3) { |
| 6878 o.etag = "foo"; | 7773 o.etag = "foo"; |
| 6879 o.items = buildUnnamed412(); | 7774 o.items = buildUnnamed1475(); |
| 6880 o.kind = "foo"; | 7775 o.kind = "foo"; |
| 6881 } | 7776 } |
| 6882 buildCounterUserProfileList--; | 7777 buildCounterUserProfileList--; |
| 6883 return o; | 7778 return o; |
| 6884 } | 7779 } |
| 6885 | 7780 |
| 6886 checkUserProfileList(api.UserProfileList o) { | 7781 checkUserProfileList(api.UserProfileList o) { |
| 6887 buildCounterUserProfileList++; | 7782 buildCounterUserProfileList++; |
| 6888 if (buildCounterUserProfileList < 3) { | 7783 if (buildCounterUserProfileList < 3) { |
| 6889 unittest.expect(o.etag, unittest.equals('foo')); | 7784 unittest.expect(o.etag, unittest.equals('foo')); |
| 6890 checkUnnamed412(o.items); | 7785 checkUnnamed1475(o.items); |
| 6891 unittest.expect(o.kind, unittest.equals('foo')); | 7786 unittest.expect(o.kind, unittest.equals('foo')); |
| 6892 } | 7787 } |
| 6893 buildCounterUserProfileList--; | 7788 buildCounterUserProfileList--; |
| 6894 } | 7789 } |
| 6895 | 7790 |
| 6896 buildUnnamed413() { | 7791 buildUnnamed1476() { |
| 6897 var o = new core.List<api.UserRolePermission>(); | 7792 var o = new core.List<api.UserRolePermission>(); |
| 6898 o.add(buildUserRolePermission()); | 7793 o.add(buildUserRolePermission()); |
| 6899 o.add(buildUserRolePermission()); | 7794 o.add(buildUserRolePermission()); |
| 6900 return o; | 7795 return o; |
| 6901 } | 7796 } |
| 6902 | 7797 |
| 6903 checkUnnamed413(core.List<api.UserRolePermission> o) { | 7798 checkUnnamed1476(core.List<api.UserRolePermission> o) { |
| 6904 unittest.expect(o, unittest.hasLength(2)); | 7799 unittest.expect(o, unittest.hasLength(2)); |
| 6905 checkUserRolePermission(o[0]); | 7800 checkUserRolePermission(o[0]); |
| 6906 checkUserRolePermission(o[1]); | 7801 checkUserRolePermission(o[1]); |
| 6907 } | 7802 } |
| 6908 | 7803 |
| 6909 core.int buildCounterUserRole = 0; | 7804 core.int buildCounterUserRole = 0; |
| 6910 buildUserRole() { | 7805 buildUserRole() { |
| 6911 var o = new api.UserRole(); | 7806 var o = new api.UserRole(); |
| 6912 buildCounterUserRole++; | 7807 buildCounterUserRole++; |
| 6913 if (buildCounterUserRole < 3) { | 7808 if (buildCounterUserRole < 3) { |
| 6914 o.accountId = "foo"; | 7809 o.accountId = "foo"; |
| 6915 o.defaultUserRole = true; | 7810 o.defaultUserRole = true; |
| 6916 o.id = "foo"; | 7811 o.id = "foo"; |
| 6917 o.kind = "foo"; | 7812 o.kind = "foo"; |
| 6918 o.name = "foo"; | 7813 o.name = "foo"; |
| 6919 o.parentUserRoleId = "foo"; | 7814 o.parentUserRoleId = "foo"; |
| 6920 o.permissions = buildUnnamed413(); | 7815 o.permissions = buildUnnamed1476(); |
| 6921 o.subaccountId = "foo"; | 7816 o.subaccountId = "foo"; |
| 6922 } | 7817 } |
| 6923 buildCounterUserRole--; | 7818 buildCounterUserRole--; |
| 6924 return o; | 7819 return o; |
| 6925 } | 7820 } |
| 6926 | 7821 |
| 6927 checkUserRole(api.UserRole o) { | 7822 checkUserRole(api.UserRole o) { |
| 6928 buildCounterUserRole++; | 7823 buildCounterUserRole++; |
| 6929 if (buildCounterUserRole < 3) { | 7824 if (buildCounterUserRole < 3) { |
| 6930 unittest.expect(o.accountId, unittest.equals('foo')); | 7825 unittest.expect(o.accountId, unittest.equals('foo')); |
| 6931 unittest.expect(o.defaultUserRole, unittest.isTrue); | 7826 unittest.expect(o.defaultUserRole, unittest.isTrue); |
| 6932 unittest.expect(o.id, unittest.equals('foo')); | 7827 unittest.expect(o.id, unittest.equals('foo')); |
| 6933 unittest.expect(o.kind, unittest.equals('foo')); | 7828 unittest.expect(o.kind, unittest.equals('foo')); |
| 6934 unittest.expect(o.name, unittest.equals('foo')); | 7829 unittest.expect(o.name, unittest.equals('foo')); |
| 6935 unittest.expect(o.parentUserRoleId, unittest.equals('foo')); | 7830 unittest.expect(o.parentUserRoleId, unittest.equals('foo')); |
| 6936 checkUnnamed413(o.permissions); | 7831 checkUnnamed1476(o.permissions); |
| 6937 unittest.expect(o.subaccountId, unittest.equals('foo')); | 7832 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 6938 } | 7833 } |
| 6939 buildCounterUserRole--; | 7834 buildCounterUserRole--; |
| 6940 } | 7835 } |
| 6941 | 7836 |
| 6942 core.int buildCounterUserRolePermission = 0; | 7837 core.int buildCounterUserRolePermission = 0; |
| 6943 buildUserRolePermission() { | 7838 buildUserRolePermission() { |
| 6944 var o = new api.UserRolePermission(); | 7839 var o = new api.UserRolePermission(); |
| 6945 buildCounterUserRolePermission++; | 7840 buildCounterUserRolePermission++; |
| 6946 if (buildCounterUserRolePermission < 3) { | 7841 if (buildCounterUserRolePermission < 3) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6982 checkUserRolePermissionGroup(api.UserRolePermissionGroup o) { | 7877 checkUserRolePermissionGroup(api.UserRolePermissionGroup o) { |
| 6983 buildCounterUserRolePermissionGroup++; | 7878 buildCounterUserRolePermissionGroup++; |
| 6984 if (buildCounterUserRolePermissionGroup < 3) { | 7879 if (buildCounterUserRolePermissionGroup < 3) { |
| 6985 unittest.expect(o.id, unittest.equals('foo')); | 7880 unittest.expect(o.id, unittest.equals('foo')); |
| 6986 unittest.expect(o.kind, unittest.equals('foo')); | 7881 unittest.expect(o.kind, unittest.equals('foo')); |
| 6987 unittest.expect(o.name, unittest.equals('foo')); | 7882 unittest.expect(o.name, unittest.equals('foo')); |
| 6988 } | 7883 } |
| 6989 buildCounterUserRolePermissionGroup--; | 7884 buildCounterUserRolePermissionGroup--; |
| 6990 } | 7885 } |
| 6991 | 7886 |
| 6992 buildUnnamed414() { | 7887 buildUnnamed1477() { |
| 6993 var o = new core.List<api.UserRolePermissionGroup>(); | 7888 var o = new core.List<api.UserRolePermissionGroup>(); |
| 6994 o.add(buildUserRolePermissionGroup()); | 7889 o.add(buildUserRolePermissionGroup()); |
| 6995 o.add(buildUserRolePermissionGroup()); | 7890 o.add(buildUserRolePermissionGroup()); |
| 6996 return o; | 7891 return o; |
| 6997 } | 7892 } |
| 6998 | 7893 |
| 6999 checkUnnamed414(core.List<api.UserRolePermissionGroup> o) { | 7894 checkUnnamed1477(core.List<api.UserRolePermissionGroup> o) { |
| 7000 unittest.expect(o, unittest.hasLength(2)); | 7895 unittest.expect(o, unittest.hasLength(2)); |
| 7001 checkUserRolePermissionGroup(o[0]); | 7896 checkUserRolePermissionGroup(o[0]); |
| 7002 checkUserRolePermissionGroup(o[1]); | 7897 checkUserRolePermissionGroup(o[1]); |
| 7003 } | 7898 } |
| 7004 | 7899 |
| 7005 core.int buildCounterUserRolePermissionGroupsListResponse = 0; | 7900 core.int buildCounterUserRolePermissionGroupsListResponse = 0; |
| 7006 buildUserRolePermissionGroupsListResponse() { | 7901 buildUserRolePermissionGroupsListResponse() { |
| 7007 var o = new api.UserRolePermissionGroupsListResponse(); | 7902 var o = new api.UserRolePermissionGroupsListResponse(); |
| 7008 buildCounterUserRolePermissionGroupsListResponse++; | 7903 buildCounterUserRolePermissionGroupsListResponse++; |
| 7009 if (buildCounterUserRolePermissionGroupsListResponse < 3) { | 7904 if (buildCounterUserRolePermissionGroupsListResponse < 3) { |
| 7010 o.kind = "foo"; | 7905 o.kind = "foo"; |
| 7011 o.userRolePermissionGroups = buildUnnamed414(); | 7906 o.userRolePermissionGroups = buildUnnamed1477(); |
| 7012 } | 7907 } |
| 7013 buildCounterUserRolePermissionGroupsListResponse--; | 7908 buildCounterUserRolePermissionGroupsListResponse--; |
| 7014 return o; | 7909 return o; |
| 7015 } | 7910 } |
| 7016 | 7911 |
| 7017 checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListRespon
se o) { | 7912 checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListRespon
se o) { |
| 7018 buildCounterUserRolePermissionGroupsListResponse++; | 7913 buildCounterUserRolePermissionGroupsListResponse++; |
| 7019 if (buildCounterUserRolePermissionGroupsListResponse < 3) { | 7914 if (buildCounterUserRolePermissionGroupsListResponse < 3) { |
| 7020 unittest.expect(o.kind, unittest.equals('foo')); | 7915 unittest.expect(o.kind, unittest.equals('foo')); |
| 7021 checkUnnamed414(o.userRolePermissionGroups); | 7916 checkUnnamed1477(o.userRolePermissionGroups); |
| 7022 } | 7917 } |
| 7023 buildCounterUserRolePermissionGroupsListResponse--; | 7918 buildCounterUserRolePermissionGroupsListResponse--; |
| 7024 } | 7919 } |
| 7025 | 7920 |
| 7026 buildUnnamed415() { | 7921 buildUnnamed1478() { |
| 7027 var o = new core.List<api.UserRolePermission>(); | 7922 var o = new core.List<api.UserRolePermission>(); |
| 7028 o.add(buildUserRolePermission()); | 7923 o.add(buildUserRolePermission()); |
| 7029 o.add(buildUserRolePermission()); | 7924 o.add(buildUserRolePermission()); |
| 7030 return o; | 7925 return o; |
| 7031 } | 7926 } |
| 7032 | 7927 |
| 7033 checkUnnamed415(core.List<api.UserRolePermission> o) { | 7928 checkUnnamed1478(core.List<api.UserRolePermission> o) { |
| 7034 unittest.expect(o, unittest.hasLength(2)); | 7929 unittest.expect(o, unittest.hasLength(2)); |
| 7035 checkUserRolePermission(o[0]); | 7930 checkUserRolePermission(o[0]); |
| 7036 checkUserRolePermission(o[1]); | 7931 checkUserRolePermission(o[1]); |
| 7037 } | 7932 } |
| 7038 | 7933 |
| 7039 core.int buildCounterUserRolePermissionsListResponse = 0; | 7934 core.int buildCounterUserRolePermissionsListResponse = 0; |
| 7040 buildUserRolePermissionsListResponse() { | 7935 buildUserRolePermissionsListResponse() { |
| 7041 var o = new api.UserRolePermissionsListResponse(); | 7936 var o = new api.UserRolePermissionsListResponse(); |
| 7042 buildCounterUserRolePermissionsListResponse++; | 7937 buildCounterUserRolePermissionsListResponse++; |
| 7043 if (buildCounterUserRolePermissionsListResponse < 3) { | 7938 if (buildCounterUserRolePermissionsListResponse < 3) { |
| 7044 o.kind = "foo"; | 7939 o.kind = "foo"; |
| 7045 o.userRolePermissions = buildUnnamed415(); | 7940 o.userRolePermissions = buildUnnamed1478(); |
| 7046 } | 7941 } |
| 7047 buildCounterUserRolePermissionsListResponse--; | 7942 buildCounterUserRolePermissionsListResponse--; |
| 7048 return o; | 7943 return o; |
| 7049 } | 7944 } |
| 7050 | 7945 |
| 7051 checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) { | 7946 checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) { |
| 7052 buildCounterUserRolePermissionsListResponse++; | 7947 buildCounterUserRolePermissionsListResponse++; |
| 7053 if (buildCounterUserRolePermissionsListResponse < 3) { | 7948 if (buildCounterUserRolePermissionsListResponse < 3) { |
| 7054 unittest.expect(o.kind, unittest.equals('foo')); | 7949 unittest.expect(o.kind, unittest.equals('foo')); |
| 7055 checkUnnamed415(o.userRolePermissions); | 7950 checkUnnamed1478(o.userRolePermissions); |
| 7056 } | 7951 } |
| 7057 buildCounterUserRolePermissionsListResponse--; | 7952 buildCounterUserRolePermissionsListResponse--; |
| 7058 } | 7953 } |
| 7059 | 7954 |
| 7060 buildUnnamed416() { | 7955 buildUnnamed1479() { |
| 7061 var o = new core.List<api.UserRole>(); | 7956 var o = new core.List<api.UserRole>(); |
| 7062 o.add(buildUserRole()); | 7957 o.add(buildUserRole()); |
| 7063 o.add(buildUserRole()); | 7958 o.add(buildUserRole()); |
| 7064 return o; | 7959 return o; |
| 7065 } | 7960 } |
| 7066 | 7961 |
| 7067 checkUnnamed416(core.List<api.UserRole> o) { | 7962 checkUnnamed1479(core.List<api.UserRole> o) { |
| 7068 unittest.expect(o, unittest.hasLength(2)); | 7963 unittest.expect(o, unittest.hasLength(2)); |
| 7069 checkUserRole(o[0]); | 7964 checkUserRole(o[0]); |
| 7070 checkUserRole(o[1]); | 7965 checkUserRole(o[1]); |
| 7071 } | 7966 } |
| 7072 | 7967 |
| 7073 core.int buildCounterUserRolesListResponse = 0; | 7968 core.int buildCounterUserRolesListResponse = 0; |
| 7074 buildUserRolesListResponse() { | 7969 buildUserRolesListResponse() { |
| 7075 var o = new api.UserRolesListResponse(); | 7970 var o = new api.UserRolesListResponse(); |
| 7076 buildCounterUserRolesListResponse++; | 7971 buildCounterUserRolesListResponse++; |
| 7077 if (buildCounterUserRolesListResponse < 3) { | 7972 if (buildCounterUserRolesListResponse < 3) { |
| 7078 o.kind = "foo"; | 7973 o.kind = "foo"; |
| 7079 o.nextPageToken = "foo"; | 7974 o.nextPageToken = "foo"; |
| 7080 o.userRoles = buildUnnamed416(); | 7975 o.userRoles = buildUnnamed1479(); |
| 7081 } | 7976 } |
| 7082 buildCounterUserRolesListResponse--; | 7977 buildCounterUserRolesListResponse--; |
| 7083 return o; | 7978 return o; |
| 7084 } | 7979 } |
| 7085 | 7980 |
| 7086 checkUserRolesListResponse(api.UserRolesListResponse o) { | 7981 checkUserRolesListResponse(api.UserRolesListResponse o) { |
| 7087 buildCounterUserRolesListResponse++; | 7982 buildCounterUserRolesListResponse++; |
| 7088 if (buildCounterUserRolesListResponse < 3) { | 7983 if (buildCounterUserRolesListResponse < 3) { |
| 7089 unittest.expect(o.kind, unittest.equals('foo')); | 7984 unittest.expect(o.kind, unittest.equals('foo')); |
| 7090 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7985 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 7091 checkUnnamed416(o.userRoles); | 7986 checkUnnamed1479(o.userRoles); |
| 7092 } | 7987 } |
| 7093 buildCounterUserRolesListResponse--; | 7988 buildCounterUserRolesListResponse--; |
| 7094 } | 7989 } |
| 7095 | 7990 |
| 7096 buildUnnamed417() { | 7991 buildUnnamed1480() { |
| 7097 var o = new core.List<core.String>(); | 7992 var o = new core.List<core.String>(); |
| 7098 o.add("foo"); | 7993 o.add("foo"); |
| 7099 o.add("foo"); | 7994 o.add("foo"); |
| 7100 return o; | 7995 return o; |
| 7101 } | 7996 } |
| 7102 | 7997 |
| 7103 checkUnnamed417(core.List<core.String> o) { | 7998 checkUnnamed1480(core.List<core.String> o) { |
| 7104 unittest.expect(o, unittest.hasLength(2)); | 7999 unittest.expect(o, unittest.hasLength(2)); |
| 7105 unittest.expect(o[0], unittest.equals('foo')); | 8000 unittest.expect(o[0], unittest.equals('foo')); |
| 7106 unittest.expect(o[1], unittest.equals('foo')); | 8001 unittest.expect(o[1], unittest.equals('foo')); |
| 7107 } | 8002 } |
| 7108 | 8003 |
| 7109 buildUnnamed418() { | 8004 buildUnnamed1481() { |
| 7110 var o = new core.List<core.String>(); | 8005 var o = new core.List<core.String>(); |
| 7111 o.add("foo"); | 8006 o.add("foo"); |
| 7112 o.add("foo"); | 8007 o.add("foo"); |
| 7113 return o; | 8008 return o; |
| 7114 } | 8009 } |
| 7115 | 8010 |
| 7116 checkUnnamed418(core.List<core.String> o) { | 8011 checkUnnamed1481(core.List<core.String> o) { |
| 7117 unittest.expect(o, unittest.hasLength(2)); | 8012 unittest.expect(o, unittest.hasLength(2)); |
| 7118 unittest.expect(o[0], unittest.equals('foo')); | 8013 unittest.expect(o[0], unittest.equals('foo')); |
| 7119 unittest.expect(o[1], unittest.equals('foo')); | 8014 unittest.expect(o[1], unittest.equals('foo')); |
| 7120 } | 8015 } |
| 7121 | 8016 |
| 7122 buildUnnamed419() { | 8017 buildUnnamed1482() { |
| 7123 var o = new core.List<core.String>(); | 8018 var o = new core.List<core.String>(); |
| 7124 o.add("foo"); | 8019 o.add("foo"); |
| 7125 o.add("foo"); | 8020 o.add("foo"); |
| 7126 return o; | 8021 return o; |
| 7127 } | 8022 } |
| 7128 | 8023 |
| 7129 checkUnnamed419(core.List<core.String> o) { | 8024 checkUnnamed1482(core.List<core.String> o) { |
| 7130 unittest.expect(o, unittest.hasLength(2)); | 8025 unittest.expect(o, unittest.hasLength(2)); |
| 7131 unittest.expect(o[0], unittest.equals('foo')); | 8026 unittest.expect(o[0], unittest.equals('foo')); |
| 7132 unittest.expect(o[1], unittest.equals('foo')); | 8027 unittest.expect(o[1], unittest.equals('foo')); |
| 7133 } | 8028 } |
| 7134 | 8029 |
| 7135 buildUnnamed420() { | 8030 buildUnnamed1483() { |
| 7136 var o = new core.List<core.String>(); | 8031 var o = new core.List<core.String>(); |
| 7137 o.add("foo"); | 8032 o.add("foo"); |
| 7138 o.add("foo"); | 8033 o.add("foo"); |
| 7139 return o; | 8034 return o; |
| 7140 } | 8035 } |
| 7141 | 8036 |
| 7142 checkUnnamed420(core.List<core.String> o) { | 8037 checkUnnamed1483(core.List<core.String> o) { |
| 7143 unittest.expect(o, unittest.hasLength(2)); | 8038 unittest.expect(o, unittest.hasLength(2)); |
| 7144 unittest.expect(o[0], unittest.equals('foo')); | 8039 unittest.expect(o[0], unittest.equals('foo')); |
| 7145 unittest.expect(o[1], unittest.equals('foo')); | 8040 unittest.expect(o[1], unittest.equals('foo')); |
| 7146 } | 8041 } |
| 7147 | 8042 |
| 7148 buildUnnamed421() { | 8043 buildUnnamed1484() { |
| 7149 var o = new core.List<core.String>(); | 8044 var o = new core.List<core.String>(); |
| 7150 o.add("foo"); | 8045 o.add("foo"); |
| 7151 o.add("foo"); | 8046 o.add("foo"); |
| 7152 return o; | 8047 return o; |
| 7153 } | 8048 } |
| 7154 | 8049 |
| 7155 checkUnnamed421(core.List<core.String> o) { | 8050 checkUnnamed1484(core.List<core.String> o) { |
| 7156 unittest.expect(o, unittest.hasLength(2)); | 8051 unittest.expect(o, unittest.hasLength(2)); |
| 7157 unittest.expect(o[0], unittest.equals('foo')); | 8052 unittest.expect(o[0], unittest.equals('foo')); |
| 7158 unittest.expect(o[1], unittest.equals('foo')); | 8053 unittest.expect(o[1], unittest.equals('foo')); |
| 7159 } | 8054 } |
| 7160 | 8055 |
| 7161 buildUnnamed422() { | 8056 buildUnnamed1485() { |
| 7162 var o = new core.List<core.String>(); | 8057 var o = new core.List<core.String>(); |
| 7163 o.add("foo"); | 8058 o.add("foo"); |
| 7164 o.add("foo"); | 8059 o.add("foo"); |
| 7165 return o; | 8060 return o; |
| 7166 } | 8061 } |
| 7167 | 8062 |
| 7168 checkUnnamed422(core.List<core.String> o) { | 8063 checkUnnamed1485(core.List<core.String> o) { |
| 7169 unittest.expect(o, unittest.hasLength(2)); | 8064 unittest.expect(o, unittest.hasLength(2)); |
| 7170 unittest.expect(o[0], unittest.equals('foo')); | 8065 unittest.expect(o[0], unittest.equals('foo')); |
| 7171 unittest.expect(o[1], unittest.equals('foo')); | 8066 unittest.expect(o[1], unittest.equals('foo')); |
| 7172 } | 8067 } |
| 7173 | 8068 |
| 7174 buildUnnamed423() { | 8069 buildUnnamed1486() { |
| 7175 var o = new core.List<core.String>(); | 8070 var o = new core.List<core.String>(); |
| 7176 o.add("foo"); | 8071 o.add("foo"); |
| 7177 o.add("foo"); | 8072 o.add("foo"); |
| 7178 return o; | 8073 return o; |
| 7179 } | 8074 } |
| 7180 | 8075 |
| 7181 checkUnnamed423(core.List<core.String> o) { | 8076 checkUnnamed1486(core.List<core.String> o) { |
| 7182 unittest.expect(o, unittest.hasLength(2)); | 8077 unittest.expect(o, unittest.hasLength(2)); |
| 7183 unittest.expect(o[0], unittest.equals('foo')); | 8078 unittest.expect(o[0], unittest.equals('foo')); |
| 7184 unittest.expect(o[1], unittest.equals('foo')); | 8079 unittest.expect(o[1], unittest.equals('foo')); |
| 7185 } | 8080 } |
| 7186 | 8081 |
| 7187 buildUnnamed424() { | 8082 buildUnnamed1487() { |
| 7188 var o = new core.List<core.String>(); | 8083 var o = new core.List<core.String>(); |
| 7189 o.add("foo"); | 8084 o.add("foo"); |
| 7190 o.add("foo"); | 8085 o.add("foo"); |
| 7191 return o; | 8086 return o; |
| 7192 } | 8087 } |
| 7193 | 8088 |
| 7194 checkUnnamed424(core.List<core.String> o) { | 8089 checkUnnamed1487(core.List<core.String> o) { |
| 7195 unittest.expect(o, unittest.hasLength(2)); | 8090 unittest.expect(o, unittest.hasLength(2)); |
| 7196 unittest.expect(o[0], unittest.equals('foo')); | 8091 unittest.expect(o[0], unittest.equals('foo')); |
| 7197 unittest.expect(o[1], unittest.equals('foo')); | 8092 unittest.expect(o[1], unittest.equals('foo')); |
| 7198 } | 8093 } |
| 7199 | 8094 |
| 7200 buildUnnamed425() { | 8095 buildUnnamed1488() { |
| 7201 var o = new core.List<core.String>(); | 8096 var o = new core.List<core.String>(); |
| 7202 o.add("foo"); | 8097 o.add("foo"); |
| 7203 o.add("foo"); | 8098 o.add("foo"); |
| 7204 return o; | 8099 return o; |
| 7205 } | 8100 } |
| 7206 | 8101 |
| 7207 checkUnnamed425(core.List<core.String> o) { | 8102 checkUnnamed1488(core.List<core.String> o) { |
| 7208 unittest.expect(o, unittest.hasLength(2)); | 8103 unittest.expect(o, unittest.hasLength(2)); |
| 7209 unittest.expect(o[0], unittest.equals('foo')); | 8104 unittest.expect(o[0], unittest.equals('foo')); |
| 7210 unittest.expect(o[1], unittest.equals('foo')); | 8105 unittest.expect(o[1], unittest.equals('foo')); |
| 7211 } | 8106 } |
| 7212 | 8107 |
| 7213 buildUnnamed426() { | 8108 buildUnnamed1489() { |
| 7214 var o = new core.List<core.String>(); | 8109 var o = new core.List<core.String>(); |
| 7215 o.add("foo"); | 8110 o.add("foo"); |
| 7216 o.add("foo"); | 8111 o.add("foo"); |
| 7217 return o; | 8112 return o; |
| 7218 } | 8113 } |
| 7219 | 8114 |
| 7220 checkUnnamed426(core.List<core.String> o) { | 8115 checkUnnamed1489(core.List<core.String> o) { |
| 7221 unittest.expect(o, unittest.hasLength(2)); | 8116 unittest.expect(o, unittest.hasLength(2)); |
| 7222 unittest.expect(o[0], unittest.equals('foo')); | 8117 unittest.expect(o[0], unittest.equals('foo')); |
| 7223 unittest.expect(o[1], unittest.equals('foo')); | 8118 unittest.expect(o[1], unittest.equals('foo')); |
| 7224 } | 8119 } |
| 7225 | 8120 |
| 7226 buildUnnamed427() { | 8121 buildUnnamed1490() { |
| 7227 var o = new core.List<core.String>(); | 8122 var o = new core.List<core.String>(); |
| 7228 o.add("foo"); | 8123 o.add("foo"); |
| 7229 o.add("foo"); | 8124 o.add("foo"); |
| 7230 return o; | 8125 return o; |
| 7231 } | 8126 } |
| 7232 | 8127 |
| 7233 checkUnnamed427(core.List<core.String> o) { | 8128 checkUnnamed1490(core.List<core.String> o) { |
| 7234 unittest.expect(o, unittest.hasLength(2)); | 8129 unittest.expect(o, unittest.hasLength(2)); |
| 7235 unittest.expect(o[0], unittest.equals('foo')); | 8130 unittest.expect(o[0], unittest.equals('foo')); |
| 7236 unittest.expect(o[1], unittest.equals('foo')); | 8131 unittest.expect(o[1], unittest.equals('foo')); |
| 7237 } | 8132 } |
| 7238 | 8133 |
| 7239 buildUnnamed428() { | 8134 buildUnnamed1491() { |
| 7240 var o = new core.List<core.String>(); | 8135 var o = new core.List<core.String>(); |
| 7241 o.add("foo"); | 8136 o.add("foo"); |
| 7242 o.add("foo"); | 8137 o.add("foo"); |
| 7243 return o; | 8138 return o; |
| 7244 } | 8139 } |
| 7245 | 8140 |
| 7246 checkUnnamed428(core.List<core.String> o) { | 8141 checkUnnamed1491(core.List<core.String> o) { |
| 7247 unittest.expect(o, unittest.hasLength(2)); | 8142 unittest.expect(o, unittest.hasLength(2)); |
| 7248 unittest.expect(o[0], unittest.equals('foo')); | 8143 unittest.expect(o[0], unittest.equals('foo')); |
| 7249 unittest.expect(o[1], unittest.equals('foo')); | 8144 unittest.expect(o[1], unittest.equals('foo')); |
| 7250 } | 8145 } |
| 7251 | 8146 |
| 7252 buildUnnamed429() { | 8147 buildUnnamed1492() { |
| 7253 var o = new core.List<core.String>(); | 8148 var o = new core.List<core.String>(); |
| 7254 o.add("foo"); | 8149 o.add("foo"); |
| 7255 o.add("foo"); | 8150 o.add("foo"); |
| 7256 return o; | 8151 return o; |
| 7257 } | 8152 } |
| 7258 | 8153 |
| 7259 checkUnnamed429(core.List<core.String> o) { | 8154 checkUnnamed1492(core.List<core.String> o) { |
| 7260 unittest.expect(o, unittest.hasLength(2)); | 8155 unittest.expect(o, unittest.hasLength(2)); |
| 7261 unittest.expect(o[0], unittest.equals('foo')); | 8156 unittest.expect(o[0], unittest.equals('foo')); |
| 7262 unittest.expect(o[1], unittest.equals('foo')); | 8157 unittest.expect(o[1], unittest.equals('foo')); |
| 7263 } | 8158 } |
| 7264 | 8159 |
| 7265 buildUnnamed430() { | 8160 buildUnnamed1493() { |
| 7266 var o = new core.List<core.String>(); | 8161 var o = new core.List<core.String>(); |
| 7267 o.add("foo"); | 8162 o.add("foo"); |
| 7268 o.add("foo"); | 8163 o.add("foo"); |
| 7269 return o; | 8164 return o; |
| 7270 } | 8165 } |
| 7271 | 8166 |
| 7272 checkUnnamed430(core.List<core.String> o) { | 8167 checkUnnamed1493(core.List<core.String> o) { |
| 7273 unittest.expect(o, unittest.hasLength(2)); | 8168 unittest.expect(o, unittest.hasLength(2)); |
| 7274 unittest.expect(o[0], unittest.equals('foo')); | 8169 unittest.expect(o[0], unittest.equals('foo')); |
| 7275 unittest.expect(o[1], unittest.equals('foo')); | 8170 unittest.expect(o[1], unittest.equals('foo')); |
| 7276 } | 8171 } |
| 7277 | 8172 |
| 7278 buildUnnamed431() { | 8173 buildUnnamed1494() { |
| 7279 var o = new core.List<core.String>(); | 8174 var o = new core.List<core.String>(); |
| 7280 o.add("foo"); | 8175 o.add("foo"); |
| 7281 o.add("foo"); | 8176 o.add("foo"); |
| 7282 return o; | 8177 return o; |
| 7283 } | 8178 } |
| 7284 | 8179 |
| 7285 checkUnnamed431(core.List<core.String> o) { | 8180 checkUnnamed1494(core.List<core.String> o) { |
| 7286 unittest.expect(o, unittest.hasLength(2)); | 8181 unittest.expect(o, unittest.hasLength(2)); |
| 7287 unittest.expect(o[0], unittest.equals('foo')); | 8182 unittest.expect(o[0], unittest.equals('foo')); |
| 7288 unittest.expect(o[1], unittest.equals('foo')); | 8183 unittest.expect(o[1], unittest.equals('foo')); |
| 7289 } | 8184 } |
| 7290 | 8185 |
| 7291 buildUnnamed432() { | 8186 buildUnnamed1495() { |
| 7292 var o = new core.List<core.String>(); | 8187 var o = new core.List<core.String>(); |
| 7293 o.add("foo"); | 8188 o.add("foo"); |
| 7294 o.add("foo"); | 8189 o.add("foo"); |
| 7295 return o; | 8190 return o; |
| 7296 } | 8191 } |
| 7297 | 8192 |
| 7298 checkUnnamed432(core.List<core.String> o) { | 8193 checkUnnamed1495(core.List<core.String> o) { |
| 7299 unittest.expect(o, unittest.hasLength(2)); | 8194 unittest.expect(o, unittest.hasLength(2)); |
| 7300 unittest.expect(o[0], unittest.equals('foo')); | 8195 unittest.expect(o[0], unittest.equals('foo')); |
| 7301 unittest.expect(o[1], unittest.equals('foo')); | 8196 unittest.expect(o[1], unittest.equals('foo')); |
| 7302 } | 8197 } |
| 7303 | 8198 |
| 7304 buildUnnamed433() { | 8199 buildUnnamed1496() { |
| 7305 var o = new core.List<core.String>(); | 8200 var o = new core.List<core.String>(); |
| 7306 o.add("foo"); | 8201 o.add("foo"); |
| 7307 o.add("foo"); | 8202 o.add("foo"); |
| 7308 return o; | 8203 return o; |
| 7309 } | 8204 } |
| 7310 | 8205 |
| 7311 checkUnnamed433(core.List<core.String> o) { | 8206 checkUnnamed1496(core.List<core.String> o) { |
| 7312 unittest.expect(o, unittest.hasLength(2)); | 8207 unittest.expect(o, unittest.hasLength(2)); |
| 7313 unittest.expect(o[0], unittest.equals('foo')); | 8208 unittest.expect(o[0], unittest.equals('foo')); |
| 7314 unittest.expect(o[1], unittest.equals('foo')); | 8209 unittest.expect(o[1], unittest.equals('foo')); |
| 7315 } | 8210 } |
| 7316 | 8211 |
| 7317 buildUnnamed434() { | 8212 buildUnnamed1497() { |
| 7318 var o = new core.List<core.String>(); | 8213 var o = new core.List<core.String>(); |
| 7319 o.add("foo"); | 8214 o.add("foo"); |
| 7320 o.add("foo"); | 8215 o.add("foo"); |
| 7321 return o; | 8216 return o; |
| 7322 } | 8217 } |
| 7323 | 8218 |
| 7324 checkUnnamed434(core.List<core.String> o) { | 8219 checkUnnamed1497(core.List<core.String> o) { |
| 7325 unittest.expect(o, unittest.hasLength(2)); | 8220 unittest.expect(o, unittest.hasLength(2)); |
| 7326 unittest.expect(o[0], unittest.equals('foo')); | 8221 unittest.expect(o[0], unittest.equals('foo')); |
| 7327 unittest.expect(o[1], unittest.equals('foo')); | 8222 unittest.expect(o[1], unittest.equals('foo')); |
| 7328 } | 8223 } |
| 7329 | 8224 |
| 7330 buildUnnamed435() { | 8225 buildUnnamed1498() { |
| 7331 var o = new core.List<core.String>(); | 8226 var o = new core.List<core.String>(); |
| 7332 o.add("foo"); | 8227 o.add("foo"); |
| 7333 o.add("foo"); | 8228 o.add("foo"); |
| 7334 return o; | 8229 return o; |
| 7335 } | 8230 } |
| 7336 | 8231 |
| 7337 checkUnnamed435(core.List<core.String> o) { | 8232 checkUnnamed1498(core.List<core.String> o) { |
| 7338 unittest.expect(o, unittest.hasLength(2)); | 8233 unittest.expect(o, unittest.hasLength(2)); |
| 7339 unittest.expect(o[0], unittest.equals('foo')); | 8234 unittest.expect(o[0], unittest.equals('foo')); |
| 7340 unittest.expect(o[1], unittest.equals('foo')); | 8235 unittest.expect(o[1], unittest.equals('foo')); |
| 7341 } | 8236 } |
| 7342 | 8237 |
| 7343 buildUnnamed436() { | 8238 buildUnnamed1499() { |
| 7344 var o = new core.List<core.String>(); | 8239 var o = new core.List<core.String>(); |
| 7345 o.add("foo"); | 8240 o.add("foo"); |
| 7346 o.add("foo"); | 8241 o.add("foo"); |
| 7347 return o; | 8242 return o; |
| 7348 } | 8243 } |
| 7349 | 8244 |
| 7350 checkUnnamed436(core.List<core.String> o) { | 8245 checkUnnamed1499(core.List<core.String> o) { |
| 7351 unittest.expect(o, unittest.hasLength(2)); | 8246 unittest.expect(o, unittest.hasLength(2)); |
| 7352 unittest.expect(o[0], unittest.equals('foo')); | 8247 unittest.expect(o[0], unittest.equals('foo')); |
| 7353 unittest.expect(o[1], unittest.equals('foo')); | 8248 unittest.expect(o[1], unittest.equals('foo')); |
| 7354 } | 8249 } |
| 7355 | 8250 |
| 7356 buildUnnamed437() { | 8251 buildUnnamed1500() { |
| 7357 var o = new core.List<core.String>(); | 8252 var o = new core.List<core.String>(); |
| 7358 o.add("foo"); | 8253 o.add("foo"); |
| 7359 o.add("foo"); | 8254 o.add("foo"); |
| 7360 return o; | 8255 return o; |
| 7361 } | 8256 } |
| 7362 | 8257 |
| 7363 checkUnnamed437(core.List<core.String> o) { | 8258 checkUnnamed1500(core.List<core.String> o) { |
| 7364 unittest.expect(o, unittest.hasLength(2)); | 8259 unittest.expect(o, unittest.hasLength(2)); |
| 7365 unittest.expect(o[0], unittest.equals('foo')); | 8260 unittest.expect(o[0], unittest.equals('foo')); |
| 7366 unittest.expect(o[1], unittest.equals('foo')); | 8261 unittest.expect(o[1], unittest.equals('foo')); |
| 7367 } | 8262 } |
| 7368 | 8263 |
| 7369 buildUnnamed438() { | 8264 buildUnnamed1501() { |
| 7370 var o = new core.List<core.String>(); | 8265 var o = new core.List<core.String>(); |
| 7371 o.add("foo"); | 8266 o.add("foo"); |
| 7372 o.add("foo"); | 8267 o.add("foo"); |
| 7373 return o; | 8268 return o; |
| 7374 } | 8269 } |
| 7375 | 8270 |
| 7376 checkUnnamed438(core.List<core.String> o) { | 8271 checkUnnamed1501(core.List<core.String> o) { |
| 7377 unittest.expect(o, unittest.hasLength(2)); | 8272 unittest.expect(o, unittest.hasLength(2)); |
| 7378 unittest.expect(o[0], unittest.equals('foo')); | 8273 unittest.expect(o[0], unittest.equals('foo')); |
| 7379 unittest.expect(o[1], unittest.equals('foo')); | 8274 unittest.expect(o[1], unittest.equals('foo')); |
| 7380 } | 8275 } |
| 7381 | 8276 |
| 7382 buildUnnamed439() { | 8277 buildUnnamed1502() { |
| 7383 var o = new core.List<core.String>(); | 8278 var o = new core.List<core.String>(); |
| 7384 o.add("foo"); | 8279 o.add("foo"); |
| 7385 o.add("foo"); | 8280 o.add("foo"); |
| 7386 return o; | 8281 return o; |
| 7387 } | 8282 } |
| 7388 | 8283 |
| 7389 checkUnnamed439(core.List<core.String> o) { | 8284 checkUnnamed1502(core.List<core.String> o) { |
| 7390 unittest.expect(o, unittest.hasLength(2)); | 8285 unittest.expect(o, unittest.hasLength(2)); |
| 7391 unittest.expect(o[0], unittest.equals('foo')); | 8286 unittest.expect(o[0], unittest.equals('foo')); |
| 7392 unittest.expect(o[1], unittest.equals('foo')); | 8287 unittest.expect(o[1], unittest.equals('foo')); |
| 7393 } | 8288 } |
| 7394 | 8289 |
| 7395 buildUnnamed440() { | 8290 buildUnnamed1503() { |
| 7396 var o = new core.List<core.String>(); | 8291 var o = new core.List<core.String>(); |
| 7397 o.add("foo"); | 8292 o.add("foo"); |
| 7398 o.add("foo"); | 8293 o.add("foo"); |
| 7399 return o; | 8294 return o; |
| 7400 } | 8295 } |
| 7401 | 8296 |
| 7402 checkUnnamed440(core.List<core.String> o) { | 8297 checkUnnamed1503(core.List<core.String> o) { |
| 7403 unittest.expect(o, unittest.hasLength(2)); | 8298 unittest.expect(o, unittest.hasLength(2)); |
| 7404 unittest.expect(o[0], unittest.equals('foo')); | 8299 unittest.expect(o[0], unittest.equals('foo')); |
| 7405 unittest.expect(o[1], unittest.equals('foo')); | 8300 unittest.expect(o[1], unittest.equals('foo')); |
| 7406 } | 8301 } |
| 7407 | 8302 |
| 7408 buildUnnamed441() { | 8303 buildUnnamed1504() { |
| 7409 var o = new core.List<core.String>(); | 8304 var o = new core.List<core.String>(); |
| 7410 o.add("foo"); | 8305 o.add("foo"); |
| 7411 o.add("foo"); | 8306 o.add("foo"); |
| 7412 return o; | 8307 return o; |
| 7413 } | 8308 } |
| 7414 | 8309 |
| 7415 checkUnnamed441(core.List<core.String> o) { | 8310 checkUnnamed1504(core.List<core.String> o) { |
| 7416 unittest.expect(o, unittest.hasLength(2)); | 8311 unittest.expect(o, unittest.hasLength(2)); |
| 7417 unittest.expect(o[0], unittest.equals('foo')); | 8312 unittest.expect(o[0], unittest.equals('foo')); |
| 7418 unittest.expect(o[1], unittest.equals('foo')); | 8313 unittest.expect(o[1], unittest.equals('foo')); |
| 7419 } | 8314 } |
| 7420 | 8315 |
| 7421 buildUnnamed442() { | 8316 buildUnnamed1505() { |
| 7422 var o = new core.List<core.String>(); | 8317 var o = new core.List<core.String>(); |
| 7423 o.add("foo"); | 8318 o.add("foo"); |
| 7424 o.add("foo"); | 8319 o.add("foo"); |
| 7425 return o; | 8320 return o; |
| 7426 } | 8321 } |
| 7427 | 8322 |
| 7428 checkUnnamed442(core.List<core.String> o) { | 8323 checkUnnamed1505(core.List<core.String> o) { |
| 7429 unittest.expect(o, unittest.hasLength(2)); | 8324 unittest.expect(o, unittest.hasLength(2)); |
| 7430 unittest.expect(o[0], unittest.equals('foo')); | 8325 unittest.expect(o[0], unittest.equals('foo')); |
| 7431 unittest.expect(o[1], unittest.equals('foo')); | 8326 unittest.expect(o[1], unittest.equals('foo')); |
| 7432 } | 8327 } |
| 7433 | 8328 |
| 7434 buildUnnamed443() { | 8329 buildUnnamed1506() { |
| 7435 var o = new core.List<core.String>(); | 8330 var o = new core.List<core.String>(); |
| 7436 o.add("foo"); | 8331 o.add("foo"); |
| 7437 o.add("foo"); | 8332 o.add("foo"); |
| 7438 return o; | 8333 return o; |
| 7439 } | 8334 } |
| 7440 | 8335 |
| 7441 checkUnnamed443(core.List<core.String> o) { | 8336 checkUnnamed1506(core.List<core.String> o) { |
| 7442 unittest.expect(o, unittest.hasLength(2)); | 8337 unittest.expect(o, unittest.hasLength(2)); |
| 7443 unittest.expect(o[0], unittest.equals('foo')); | 8338 unittest.expect(o[0], unittest.equals('foo')); |
| 7444 unittest.expect(o[1], unittest.equals('foo')); | 8339 unittest.expect(o[1], unittest.equals('foo')); |
| 7445 } | 8340 } |
| 7446 | 8341 |
| 7447 buildUnnamed444() { | 8342 buildUnnamed1507() { |
| 7448 var o = new core.List<core.String>(); | 8343 var o = new core.List<core.String>(); |
| 7449 o.add("foo"); | 8344 o.add("foo"); |
| 7450 o.add("foo"); | 8345 o.add("foo"); |
| 7451 return o; | 8346 return o; |
| 7452 } | 8347 } |
| 7453 | 8348 |
| 7454 checkUnnamed444(core.List<core.String> o) { | 8349 checkUnnamed1507(core.List<core.String> o) { |
| 7455 unittest.expect(o, unittest.hasLength(2)); | 8350 unittest.expect(o, unittest.hasLength(2)); |
| 7456 unittest.expect(o[0], unittest.equals('foo')); | 8351 unittest.expect(o[0], unittest.equals('foo')); |
| 7457 unittest.expect(o[1], unittest.equals('foo')); | 8352 unittest.expect(o[1], unittest.equals('foo')); |
| 7458 } | 8353 } |
| 7459 | 8354 |
| 7460 buildUnnamed445() { | 8355 buildUnnamed1508() { |
| 7461 var o = new core.List<core.String>(); | 8356 var o = new core.List<core.String>(); |
| 7462 o.add("foo"); | 8357 o.add("foo"); |
| 7463 o.add("foo"); | 8358 o.add("foo"); |
| 7464 return o; | 8359 return o; |
| 7465 } | 8360 } |
| 7466 | 8361 |
| 7467 checkUnnamed445(core.List<core.String> o) { | 8362 checkUnnamed1508(core.List<core.String> o) { |
| 7468 unittest.expect(o, unittest.hasLength(2)); | 8363 unittest.expect(o, unittest.hasLength(2)); |
| 7469 unittest.expect(o[0], unittest.equals('foo')); | 8364 unittest.expect(o[0], unittest.equals('foo')); |
| 7470 unittest.expect(o[1], unittest.equals('foo')); | 8365 unittest.expect(o[1], unittest.equals('foo')); |
| 7471 } | 8366 } |
| 7472 | 8367 |
| 7473 buildUnnamed446() { | 8368 buildUnnamed1509() { |
| 7474 var o = new core.List<core.String>(); | 8369 var o = new core.List<core.String>(); |
| 7475 o.add("foo"); | 8370 o.add("foo"); |
| 7476 o.add("foo"); | 8371 o.add("foo"); |
| 7477 return o; | 8372 return o; |
| 7478 } | 8373 } |
| 7479 | 8374 |
| 7480 checkUnnamed446(core.List<core.String> o) { | 8375 checkUnnamed1509(core.List<core.String> o) { |
| 7481 unittest.expect(o, unittest.hasLength(2)); | 8376 unittest.expect(o, unittest.hasLength(2)); |
| 7482 unittest.expect(o[0], unittest.equals('foo')); | 8377 unittest.expect(o[0], unittest.equals('foo')); |
| 7483 unittest.expect(o[1], unittest.equals('foo')); | 8378 unittest.expect(o[1], unittest.equals('foo')); |
| 7484 } | 8379 } |
| 7485 | 8380 |
| 7486 buildUnnamed447() { | 8381 buildUnnamed1510() { |
| 7487 var o = new core.List<core.String>(); | 8382 var o = new core.List<core.String>(); |
| 7488 o.add("foo"); | 8383 o.add("foo"); |
| 7489 o.add("foo"); | 8384 o.add("foo"); |
| 7490 return o; | 8385 return o; |
| 7491 } | 8386 } |
| 7492 | 8387 |
| 7493 checkUnnamed447(core.List<core.String> o) { | 8388 checkUnnamed1510(core.List<core.String> o) { |
| 7494 unittest.expect(o, unittest.hasLength(2)); | 8389 unittest.expect(o, unittest.hasLength(2)); |
| 7495 unittest.expect(o[0], unittest.equals('foo')); | 8390 unittest.expect(o[0], unittest.equals('foo')); |
| 7496 unittest.expect(o[1], unittest.equals('foo')); | 8391 unittest.expect(o[1], unittest.equals('foo')); |
| 7497 } | 8392 } |
| 7498 | 8393 |
| 7499 buildUnnamed448() { | 8394 buildUnnamed1511() { |
| 7500 var o = new core.List<core.String>(); | 8395 var o = new core.List<core.String>(); |
| 7501 o.add("foo"); | 8396 o.add("foo"); |
| 7502 o.add("foo"); | 8397 o.add("foo"); |
| 7503 return o; | 8398 return o; |
| 7504 } | 8399 } |
| 7505 | 8400 |
| 7506 checkUnnamed448(core.List<core.String> o) { | 8401 checkUnnamed1511(core.List<core.String> o) { |
| 7507 unittest.expect(o, unittest.hasLength(2)); | 8402 unittest.expect(o, unittest.hasLength(2)); |
| 7508 unittest.expect(o[0], unittest.equals('foo')); | 8403 unittest.expect(o[0], unittest.equals('foo')); |
| 7509 unittest.expect(o[1], unittest.equals('foo')); | 8404 unittest.expect(o[1], unittest.equals('foo')); |
| 7510 } | 8405 } |
| 7511 | 8406 |
| 7512 buildUnnamed449() { | 8407 buildUnnamed1512() { |
| 7513 var o = new core.List<core.String>(); | 8408 var o = new core.List<core.String>(); |
| 7514 o.add("foo"); | 8409 o.add("foo"); |
| 7515 o.add("foo"); | 8410 o.add("foo"); |
| 7516 return o; | 8411 return o; |
| 7517 } | 8412 } |
| 7518 | 8413 |
| 7519 checkUnnamed449(core.List<core.String> o) { | 8414 checkUnnamed1512(core.List<core.String> o) { |
| 7520 unittest.expect(o, unittest.hasLength(2)); | 8415 unittest.expect(o, unittest.hasLength(2)); |
| 7521 unittest.expect(o[0], unittest.equals('foo')); | 8416 unittest.expect(o[0], unittest.equals('foo')); |
| 7522 unittest.expect(o[1], unittest.equals('foo')); | 8417 unittest.expect(o[1], unittest.equals('foo')); |
| 7523 } | 8418 } |
| 7524 | 8419 |
| 7525 buildUnnamed450() { | 8420 buildUnnamed1513() { |
| 7526 var o = new core.List<core.String>(); | 8421 var o = new core.List<core.String>(); |
| 7527 o.add("foo"); | 8422 o.add("foo"); |
| 7528 o.add("foo"); | 8423 o.add("foo"); |
| 7529 return o; | 8424 return o; |
| 7530 } | 8425 } |
| 7531 | 8426 |
| 7532 checkUnnamed450(core.List<core.String> o) { | 8427 checkUnnamed1513(core.List<core.String> o) { |
| 7533 unittest.expect(o, unittest.hasLength(2)); | 8428 unittest.expect(o, unittest.hasLength(2)); |
| 7534 unittest.expect(o[0], unittest.equals('foo')); | 8429 unittest.expect(o[0], unittest.equals('foo')); |
| 7535 unittest.expect(o[1], unittest.equals('foo')); | 8430 unittest.expect(o[1], unittest.equals('foo')); |
| 7536 } | 8431 } |
| 7537 | 8432 |
| 7538 buildUnnamed451() { | 8433 buildUnnamed1514() { |
| 7539 var o = new core.List<core.String>(); | 8434 var o = new core.List<core.String>(); |
| 7540 o.add("foo"); | 8435 o.add("foo"); |
| 7541 o.add("foo"); | 8436 o.add("foo"); |
| 7542 return o; | 8437 return o; |
| 7543 } | 8438 } |
| 7544 | 8439 |
| 7545 checkUnnamed451(core.List<core.String> o) { | 8440 checkUnnamed1514(core.List<core.String> o) { |
| 7546 unittest.expect(o, unittest.hasLength(2)); | 8441 unittest.expect(o, unittest.hasLength(2)); |
| 7547 unittest.expect(o[0], unittest.equals('foo')); | 8442 unittest.expect(o[0], unittest.equals('foo')); |
| 7548 unittest.expect(o[1], unittest.equals('foo')); | 8443 unittest.expect(o[1], unittest.equals('foo')); |
| 7549 } | 8444 } |
| 7550 | 8445 |
| 7551 buildUnnamed452() { | 8446 buildUnnamed1515() { |
| 7552 var o = new core.List<core.String>(); | 8447 var o = new core.List<core.String>(); |
| 7553 o.add("foo"); | 8448 o.add("foo"); |
| 7554 o.add("foo"); | 8449 o.add("foo"); |
| 7555 return o; | 8450 return o; |
| 7556 } | 8451 } |
| 7557 | 8452 |
| 7558 checkUnnamed452(core.List<core.String> o) { | 8453 checkUnnamed1515(core.List<core.String> o) { |
| 7559 unittest.expect(o, unittest.hasLength(2)); | 8454 unittest.expect(o, unittest.hasLength(2)); |
| 7560 unittest.expect(o[0], unittest.equals('foo')); | 8455 unittest.expect(o[0], unittest.equals('foo')); |
| 7561 unittest.expect(o[1], unittest.equals('foo')); | 8456 unittest.expect(o[1], unittest.equals('foo')); |
| 7562 } | 8457 } |
| 7563 | 8458 |
| 7564 buildUnnamed453() { | 8459 buildUnnamed1516() { |
| 7565 var o = new core.List<core.String>(); | 8460 var o = new core.List<core.String>(); |
| 7566 o.add("foo"); | 8461 o.add("foo"); |
| 7567 o.add("foo"); | 8462 o.add("foo"); |
| 7568 return o; | 8463 return o; |
| 7569 } | 8464 } |
| 7570 | 8465 |
| 7571 checkUnnamed453(core.List<core.String> o) { | 8466 checkUnnamed1516(core.List<core.String> o) { |
| 7572 unittest.expect(o, unittest.hasLength(2)); | 8467 unittest.expect(o, unittest.hasLength(2)); |
| 7573 unittest.expect(o[0], unittest.equals('foo')); | 8468 unittest.expect(o[0], unittest.equals('foo')); |
| 7574 unittest.expect(o[1], unittest.equals('foo')); | 8469 unittest.expect(o[1], unittest.equals('foo')); |
| 7575 } | 8470 } |
| 7576 | 8471 |
| 7577 buildUnnamed454() { | 8472 buildUnnamed1517() { |
| 7578 var o = new core.List<core.String>(); | 8473 var o = new core.List<core.String>(); |
| 7579 o.add("foo"); | 8474 o.add("foo"); |
| 7580 o.add("foo"); | 8475 o.add("foo"); |
| 7581 return o; | 8476 return o; |
| 7582 } | 8477 } |
| 7583 | 8478 |
| 7584 checkUnnamed454(core.List<core.String> o) { | 8479 checkUnnamed1517(core.List<core.String> o) { |
| 7585 unittest.expect(o, unittest.hasLength(2)); | 8480 unittest.expect(o, unittest.hasLength(2)); |
| 7586 unittest.expect(o[0], unittest.equals('foo')); | 8481 unittest.expect(o[0], unittest.equals('foo')); |
| 7587 unittest.expect(o[1], unittest.equals('foo')); | 8482 unittest.expect(o[1], unittest.equals('foo')); |
| 7588 } | 8483 } |
| 7589 | 8484 |
| 7590 buildUnnamed455() { | 8485 buildUnnamed1518() { |
| 7591 var o = new core.List<core.String>(); | 8486 var o = new core.List<core.String>(); |
| 7592 o.add("foo"); | 8487 o.add("foo"); |
| 7593 o.add("foo"); | 8488 o.add("foo"); |
| 7594 return o; | 8489 return o; |
| 7595 } | 8490 } |
| 7596 | 8491 |
| 7597 checkUnnamed455(core.List<core.String> o) { | 8492 checkUnnamed1518(core.List<core.String> o) { |
| 7598 unittest.expect(o, unittest.hasLength(2)); | 8493 unittest.expect(o, unittest.hasLength(2)); |
| 7599 unittest.expect(o[0], unittest.equals('foo')); | 8494 unittest.expect(o[0], unittest.equals('foo')); |
| 7600 unittest.expect(o[1], unittest.equals('foo')); | 8495 unittest.expect(o[1], unittest.equals('foo')); |
| 7601 } | 8496 } |
| 7602 | 8497 |
| 7603 buildUnnamed456() { | 8498 buildUnnamed1519() { |
| 7604 var o = new core.List<core.String>(); | 8499 var o = new core.List<core.String>(); |
| 7605 o.add("foo"); | 8500 o.add("foo"); |
| 7606 o.add("foo"); | 8501 o.add("foo"); |
| 7607 return o; | 8502 return o; |
| 7608 } | 8503 } |
| 7609 | 8504 |
| 7610 checkUnnamed456(core.List<core.String> o) { | 8505 checkUnnamed1519(core.List<core.String> o) { |
| 7611 unittest.expect(o, unittest.hasLength(2)); | 8506 unittest.expect(o, unittest.hasLength(2)); |
| 7612 unittest.expect(o[0], unittest.equals('foo')); | 8507 unittest.expect(o[0], unittest.equals('foo')); |
| 7613 unittest.expect(o[1], unittest.equals('foo')); | 8508 unittest.expect(o[1], unittest.equals('foo')); |
| 7614 } | 8509 } |
| 7615 | 8510 |
| 7616 buildUnnamed457() { | 8511 buildUnnamed1520() { |
| 7617 var o = new core.List<core.String>(); | 8512 var o = new core.List<core.String>(); |
| 7618 o.add("foo"); | 8513 o.add("foo"); |
| 7619 o.add("foo"); | 8514 o.add("foo"); |
| 7620 return o; | 8515 return o; |
| 7621 } | 8516 } |
| 7622 | 8517 |
| 7623 checkUnnamed457(core.List<core.String> o) { | 8518 checkUnnamed1520(core.List<core.String> o) { |
| 7624 unittest.expect(o, unittest.hasLength(2)); | 8519 unittest.expect(o, unittest.hasLength(2)); |
| 7625 unittest.expect(o[0], unittest.equals('foo')); | 8520 unittest.expect(o[0], unittest.equals('foo')); |
| 7626 unittest.expect(o[1], unittest.equals('foo')); | 8521 unittest.expect(o[1], unittest.equals('foo')); |
| 7627 } | 8522 } |
| 7628 | 8523 |
| 7629 buildUnnamed458() { | 8524 buildUnnamed1521() { |
| 7630 var o = new core.List<core.String>(); | 8525 var o = new core.List<core.String>(); |
| 7631 o.add("foo"); | 8526 o.add("foo"); |
| 7632 o.add("foo"); | 8527 o.add("foo"); |
| 7633 return o; | 8528 return o; |
| 7634 } | 8529 } |
| 7635 | 8530 |
| 7636 checkUnnamed458(core.List<core.String> o) { | 8531 checkUnnamed1521(core.List<core.String> o) { |
| 7637 unittest.expect(o, unittest.hasLength(2)); | 8532 unittest.expect(o, unittest.hasLength(2)); |
| 7638 unittest.expect(o[0], unittest.equals('foo')); | 8533 unittest.expect(o[0], unittest.equals('foo')); |
| 7639 unittest.expect(o[1], unittest.equals('foo')); | 8534 unittest.expect(o[1], unittest.equals('foo')); |
| 7640 } | 8535 } |
| 7641 | 8536 |
| 7642 buildUnnamed459() { | 8537 buildUnnamed1522() { |
| 7643 var o = new core.List<core.String>(); | 8538 var o = new core.List<core.String>(); |
| 7644 o.add("foo"); | 8539 o.add("foo"); |
| 7645 o.add("foo"); | 8540 o.add("foo"); |
| 7646 return o; | 8541 return o; |
| 7647 } | 8542 } |
| 7648 | 8543 |
| 7649 checkUnnamed459(core.List<core.String> o) { | 8544 checkUnnamed1522(core.List<core.String> o) { |
| 7650 unittest.expect(o, unittest.hasLength(2)); | 8545 unittest.expect(o, unittest.hasLength(2)); |
| 7651 unittest.expect(o[0], unittest.equals('foo')); | 8546 unittest.expect(o[0], unittest.equals('foo')); |
| 7652 unittest.expect(o[1], unittest.equals('foo')); | 8547 unittest.expect(o[1], unittest.equals('foo')); |
| 7653 } | 8548 } |
| 7654 | 8549 |
| 7655 buildUnnamed460() { | 8550 buildUnnamed1523() { |
| 7656 var o = new core.List<core.String>(); | 8551 var o = new core.List<core.String>(); |
| 7657 o.add("foo"); | 8552 o.add("foo"); |
| 7658 o.add("foo"); | 8553 o.add("foo"); |
| 7659 return o; | 8554 return o; |
| 7660 } | 8555 } |
| 7661 | 8556 |
| 7662 checkUnnamed460(core.List<core.String> o) { | 8557 checkUnnamed1523(core.List<core.String> o) { |
| 7663 unittest.expect(o, unittest.hasLength(2)); | 8558 unittest.expect(o, unittest.hasLength(2)); |
| 7664 unittest.expect(o[0], unittest.equals('foo')); | 8559 unittest.expect(o[0], unittest.equals('foo')); |
| 7665 unittest.expect(o[1], unittest.equals('foo')); | 8560 unittest.expect(o[1], unittest.equals('foo')); |
| 7666 } | 8561 } |
| 7667 | 8562 |
| 7668 buildUnnamed461() { | 8563 buildUnnamed1524() { |
| 7669 var o = new core.List<core.String>(); | 8564 var o = new core.List<core.String>(); |
| 7670 o.add("foo"); | 8565 o.add("foo"); |
| 7671 o.add("foo"); | 8566 o.add("foo"); |
| 7672 return o; | 8567 return o; |
| 7673 } | 8568 } |
| 7674 | 8569 |
| 7675 checkUnnamed461(core.List<core.String> o) { | 8570 checkUnnamed1524(core.List<core.String> o) { |
| 7676 unittest.expect(o, unittest.hasLength(2)); | 8571 unittest.expect(o, unittest.hasLength(2)); |
| 7677 unittest.expect(o[0], unittest.equals('foo')); | 8572 unittest.expect(o[0], unittest.equals('foo')); |
| 7678 unittest.expect(o[1], unittest.equals('foo')); | 8573 unittest.expect(o[1], unittest.equals('foo')); |
| 7679 } | 8574 } |
| 7680 | 8575 |
| 7681 buildUnnamed462() { | 8576 buildUnnamed1525() { |
| 7682 var o = new core.List<core.String>(); | 8577 var o = new core.List<core.String>(); |
| 7683 o.add("foo"); | 8578 o.add("foo"); |
| 7684 o.add("foo"); | 8579 o.add("foo"); |
| 7685 return o; | 8580 return o; |
| 7686 } | 8581 } |
| 7687 | 8582 |
| 7688 checkUnnamed462(core.List<core.String> o) { | 8583 checkUnnamed1525(core.List<core.String> o) { |
| 7689 unittest.expect(o, unittest.hasLength(2)); | 8584 unittest.expect(o, unittest.hasLength(2)); |
| 7690 unittest.expect(o[0], unittest.equals('foo')); | 8585 unittest.expect(o[0], unittest.equals('foo')); |
| 7691 unittest.expect(o[1], unittest.equals('foo')); | 8586 unittest.expect(o[1], unittest.equals('foo')); |
| 7692 } | 8587 } |
| 7693 | 8588 |
| 7694 buildUnnamed463() { | 8589 buildUnnamed1526() { |
| 7695 var o = new core.List<core.String>(); | 8590 var o = new core.List<core.String>(); |
| 7696 o.add("foo"); | 8591 o.add("foo"); |
| 7697 o.add("foo"); | 8592 o.add("foo"); |
| 7698 return o; | 8593 return o; |
| 7699 } | 8594 } |
| 7700 | 8595 |
| 7701 checkUnnamed463(core.List<core.String> o) { | 8596 checkUnnamed1526(core.List<core.String> o) { |
| 7702 unittest.expect(o, unittest.hasLength(2)); | 8597 unittest.expect(o, unittest.hasLength(2)); |
| 7703 unittest.expect(o[0], unittest.equals('foo')); | 8598 unittest.expect(o[0], unittest.equals('foo')); |
| 7704 unittest.expect(o[1], unittest.equals('foo')); | 8599 unittest.expect(o[1], unittest.equals('foo')); |
| 7705 } | 8600 } |
| 7706 | 8601 |
| 7707 buildUnnamed464() { | 8602 buildUnnamed1527() { |
| 7708 var o = new core.List<core.String>(); | 8603 var o = new core.List<core.String>(); |
| 7709 o.add("foo"); | 8604 o.add("foo"); |
| 7710 o.add("foo"); | 8605 o.add("foo"); |
| 7711 return o; | 8606 return o; |
| 7712 } | 8607 } |
| 7713 | 8608 |
| 7714 checkUnnamed464(core.List<core.String> o) { | 8609 checkUnnamed1527(core.List<core.String> o) { |
| 7715 unittest.expect(o, unittest.hasLength(2)); | 8610 unittest.expect(o, unittest.hasLength(2)); |
| 7716 unittest.expect(o[0], unittest.equals('foo')); | 8611 unittest.expect(o[0], unittest.equals('foo')); |
| 7717 unittest.expect(o[1], unittest.equals('foo')); | 8612 unittest.expect(o[1], unittest.equals('foo')); |
| 7718 } | 8613 } |
| 7719 | 8614 |
| 7720 buildUnnamed465() { | 8615 buildUnnamed1528() { |
| 7721 var o = new core.List<core.String>(); | 8616 var o = new core.List<core.String>(); |
| 7722 o.add("foo"); | 8617 o.add("foo"); |
| 7723 o.add("foo"); | 8618 o.add("foo"); |
| 7724 return o; | 8619 return o; |
| 7725 } | 8620 } |
| 7726 | 8621 |
| 7727 checkUnnamed465(core.List<core.String> o) { | 8622 checkUnnamed1528(core.List<core.String> o) { |
| 7728 unittest.expect(o, unittest.hasLength(2)); | 8623 unittest.expect(o, unittest.hasLength(2)); |
| 7729 unittest.expect(o[0], unittest.equals('foo')); | 8624 unittest.expect(o[0], unittest.equals('foo')); |
| 7730 unittest.expect(o[1], unittest.equals('foo')); | 8625 unittest.expect(o[1], unittest.equals('foo')); |
| 7731 } | 8626 } |
| 7732 | 8627 |
| 7733 buildUnnamed466() { | 8628 buildUnnamed1529() { |
| 7734 var o = new core.List<core.String>(); | 8629 var o = new core.List<core.String>(); |
| 7735 o.add("foo"); | 8630 o.add("foo"); |
| 7736 o.add("foo"); | 8631 o.add("foo"); |
| 7737 return o; | 8632 return o; |
| 7738 } | 8633 } |
| 7739 | 8634 |
| 7740 checkUnnamed466(core.List<core.String> o) { | 8635 checkUnnamed1529(core.List<core.String> o) { |
| 7741 unittest.expect(o, unittest.hasLength(2)); | 8636 unittest.expect(o, unittest.hasLength(2)); |
| 7742 unittest.expect(o[0], unittest.equals('foo')); | 8637 unittest.expect(o[0], unittest.equals('foo')); |
| 7743 unittest.expect(o[1], unittest.equals('foo')); | 8638 unittest.expect(o[1], unittest.equals('foo')); |
| 7744 } | 8639 } |
| 7745 | 8640 |
| 7746 buildUnnamed467() { | 8641 buildUnnamed1530() { |
| 7747 var o = new core.List<core.String>(); | 8642 var o = new core.List<core.String>(); |
| 7748 o.add("foo"); | 8643 o.add("foo"); |
| 7749 o.add("foo"); | 8644 o.add("foo"); |
| 7750 return o; | 8645 return o; |
| 7751 } | 8646 } |
| 7752 | 8647 |
| 7753 checkUnnamed467(core.List<core.String> o) { | 8648 checkUnnamed1530(core.List<core.String> o) { |
| 7754 unittest.expect(o, unittest.hasLength(2)); | 8649 unittest.expect(o, unittest.hasLength(2)); |
| 7755 unittest.expect(o[0], unittest.equals('foo')); | 8650 unittest.expect(o[0], unittest.equals('foo')); |
| 7756 unittest.expect(o[1], unittest.equals('foo')); | 8651 unittest.expect(o[1], unittest.equals('foo')); |
| 7757 } | 8652 } |
| 7758 | 8653 |
| 7759 buildUnnamed468() { | 8654 buildUnnamed1531() { |
| 7760 var o = new core.List<core.String>(); | 8655 var o = new core.List<core.String>(); |
| 7761 o.add("foo"); | 8656 o.add("foo"); |
| 7762 o.add("foo"); | 8657 o.add("foo"); |
| 7763 return o; | 8658 return o; |
| 7764 } | 8659 } |
| 7765 | 8660 |
| 7766 checkUnnamed468(core.List<core.String> o) { | 8661 checkUnnamed1531(core.List<core.String> o) { |
| 7767 unittest.expect(o, unittest.hasLength(2)); | 8662 unittest.expect(o, unittest.hasLength(2)); |
| 7768 unittest.expect(o[0], unittest.equals('foo')); | 8663 unittest.expect(o[0], unittest.equals('foo')); |
| 7769 unittest.expect(o[1], unittest.equals('foo')); | 8664 unittest.expect(o[1], unittest.equals('foo')); |
| 7770 } | 8665 } |
| 7771 | 8666 |
| 7772 buildUnnamed469() { | 8667 buildUnnamed1532() { |
| 7773 var o = new core.List<core.String>(); | 8668 var o = new core.List<core.String>(); |
| 7774 o.add("foo"); | 8669 o.add("foo"); |
| 7775 o.add("foo"); | 8670 o.add("foo"); |
| 7776 return o; | 8671 return o; |
| 7777 } | 8672 } |
| 7778 | 8673 |
| 7779 checkUnnamed469(core.List<core.String> o) { | 8674 checkUnnamed1532(core.List<core.String> o) { |
| 7780 unittest.expect(o, unittest.hasLength(2)); | 8675 unittest.expect(o, unittest.hasLength(2)); |
| 7781 unittest.expect(o[0], unittest.equals('foo')); | 8676 unittest.expect(o[0], unittest.equals('foo')); |
| 7782 unittest.expect(o[1], unittest.equals('foo')); | 8677 unittest.expect(o[1], unittest.equals('foo')); |
| 7783 } | 8678 } |
| 7784 | 8679 |
| 7785 buildUnnamed470() { | 8680 buildUnnamed1533() { |
| 7786 var o = new core.List<core.String>(); | 8681 var o = new core.List<core.String>(); |
| 7787 o.add("foo"); | 8682 o.add("foo"); |
| 7788 o.add("foo"); | 8683 o.add("foo"); |
| 7789 return o; | 8684 return o; |
| 7790 } | 8685 } |
| 7791 | 8686 |
| 7792 checkUnnamed470(core.List<core.String> o) { | 8687 checkUnnamed1533(core.List<core.String> o) { |
| 7793 unittest.expect(o, unittest.hasLength(2)); | 8688 unittest.expect(o, unittest.hasLength(2)); |
| 7794 unittest.expect(o[0], unittest.equals('foo')); | 8689 unittest.expect(o[0], unittest.equals('foo')); |
| 7795 unittest.expect(o[1], unittest.equals('foo')); | 8690 unittest.expect(o[1], unittest.equals('foo')); |
| 7796 } | 8691 } |
| 7797 | 8692 |
| 7798 buildUnnamed471() { | 8693 buildUnnamed1534() { |
| 7799 var o = new core.List<core.String>(); | 8694 var o = new core.List<core.String>(); |
| 7800 o.add("foo"); | 8695 o.add("foo"); |
| 7801 o.add("foo"); | 8696 o.add("foo"); |
| 7802 return o; | 8697 return o; |
| 7803 } | 8698 } |
| 7804 | 8699 |
| 7805 checkUnnamed471(core.List<core.String> o) { | 8700 checkUnnamed1534(core.List<core.String> o) { |
| 7806 unittest.expect(o, unittest.hasLength(2)); | 8701 unittest.expect(o, unittest.hasLength(2)); |
| 7807 unittest.expect(o[0], unittest.equals('foo')); | 8702 unittest.expect(o[0], unittest.equals('foo')); |
| 7808 unittest.expect(o[1], unittest.equals('foo')); | 8703 unittest.expect(o[1], unittest.equals('foo')); |
| 7809 } | 8704 } |
| 7810 | 8705 |
| 7811 buildUnnamed472() { | 8706 buildUnnamed1535() { |
| 7812 var o = new core.List<core.String>(); | 8707 var o = new core.List<core.String>(); |
| 7813 o.add("foo"); | 8708 o.add("foo"); |
| 7814 o.add("foo"); | 8709 o.add("foo"); |
| 7815 return o; | 8710 return o; |
| 7816 } | 8711 } |
| 7817 | 8712 |
| 7818 checkUnnamed472(core.List<core.String> o) { | 8713 checkUnnamed1535(core.List<core.String> o) { |
| 7819 unittest.expect(o, unittest.hasLength(2)); | 8714 unittest.expect(o, unittest.hasLength(2)); |
| 7820 unittest.expect(o[0], unittest.equals('foo')); | 8715 unittest.expect(o[0], unittest.equals('foo')); |
| 7821 unittest.expect(o[1], unittest.equals('foo')); | 8716 unittest.expect(o[1], unittest.equals('foo')); |
| 7822 } | 8717 } |
| 7823 | 8718 |
| 7824 buildUnnamed473() { | 8719 buildUnnamed1536() { |
| 7825 var o = new core.List<core.String>(); | 8720 var o = new core.List<core.String>(); |
| 7826 o.add("foo"); | 8721 o.add("foo"); |
| 7827 o.add("foo"); | 8722 o.add("foo"); |
| 7828 return o; | 8723 return o; |
| 7829 } | 8724 } |
| 7830 | 8725 |
| 7831 checkUnnamed473(core.List<core.String> o) { | 8726 checkUnnamed1536(core.List<core.String> o) { |
| 7832 unittest.expect(o, unittest.hasLength(2)); | 8727 unittest.expect(o, unittest.hasLength(2)); |
| 7833 unittest.expect(o[0], unittest.equals('foo')); | 8728 unittest.expect(o[0], unittest.equals('foo')); |
| 7834 unittest.expect(o[1], unittest.equals('foo')); | 8729 unittest.expect(o[1], unittest.equals('foo')); |
| 7835 } | 8730 } |
| 7836 | 8731 |
| 7837 buildUnnamed474() { | 8732 buildUnnamed1537() { |
| 7838 var o = new core.List<core.String>(); | 8733 var o = new core.List<core.String>(); |
| 7839 o.add("foo"); | 8734 o.add("foo"); |
| 7840 o.add("foo"); | 8735 o.add("foo"); |
| 7841 return o; | 8736 return o; |
| 7842 } | 8737 } |
| 7843 | 8738 |
| 7844 checkUnnamed474(core.List<core.String> o) { | 8739 checkUnnamed1537(core.List<core.String> o) { |
| 7845 unittest.expect(o, unittest.hasLength(2)); | 8740 unittest.expect(o, unittest.hasLength(2)); |
| 7846 unittest.expect(o[0], unittest.equals('foo')); | 8741 unittest.expect(o[0], unittest.equals('foo')); |
| 7847 unittest.expect(o[1], unittest.equals('foo')); | 8742 unittest.expect(o[1], unittest.equals('foo')); |
| 7848 } | 8743 } |
| 7849 | 8744 |
| 7850 buildUnnamed475() { | 8745 buildUnnamed1538() { |
| 7851 var o = new core.List<core.String>(); | 8746 var o = new core.List<core.String>(); |
| 7852 o.add("foo"); | 8747 o.add("foo"); |
| 7853 o.add("foo"); | 8748 o.add("foo"); |
| 7854 return o; | 8749 return o; |
| 7855 } | 8750 } |
| 7856 | 8751 |
| 7857 checkUnnamed475(core.List<core.String> o) { | 8752 checkUnnamed1538(core.List<core.String> o) { |
| 7858 unittest.expect(o, unittest.hasLength(2)); | 8753 unittest.expect(o, unittest.hasLength(2)); |
| 7859 unittest.expect(o[0], unittest.equals('foo')); | 8754 unittest.expect(o[0], unittest.equals('foo')); |
| 7860 unittest.expect(o[1], unittest.equals('foo')); | 8755 unittest.expect(o[1], unittest.equals('foo')); |
| 7861 } | 8756 } |
| 7862 | 8757 |
| 7863 buildUnnamed476() { | 8758 buildUnnamed1539() { |
| 7864 var o = new core.List<core.String>(); | 8759 var o = new core.List<core.String>(); |
| 7865 o.add("foo"); | 8760 o.add("foo"); |
| 7866 o.add("foo"); | 8761 o.add("foo"); |
| 7867 return o; | 8762 return o; |
| 7868 } | 8763 } |
| 7869 | 8764 |
| 7870 checkUnnamed476(core.List<core.String> o) { | 8765 checkUnnamed1539(core.List<core.String> o) { |
| 7871 unittest.expect(o, unittest.hasLength(2)); | 8766 unittest.expect(o, unittest.hasLength(2)); |
| 7872 unittest.expect(o[0], unittest.equals('foo')); | 8767 unittest.expect(o[0], unittest.equals('foo')); |
| 7873 unittest.expect(o[1], unittest.equals('foo')); | 8768 unittest.expect(o[1], unittest.equals('foo')); |
| 7874 } | 8769 } |
| 7875 | 8770 |
| 7876 buildUnnamed477() { | 8771 buildUnnamed1540() { |
| 7877 var o = new core.List<core.String>(); | 8772 var o = new core.List<core.String>(); |
| 7878 o.add("foo"); | 8773 o.add("foo"); |
| 7879 o.add("foo"); | 8774 o.add("foo"); |
| 7880 return o; | 8775 return o; |
| 7881 } | 8776 } |
| 7882 | 8777 |
| 7883 checkUnnamed477(core.List<core.String> o) { | 8778 checkUnnamed1540(core.List<core.String> o) { |
| 7884 unittest.expect(o, unittest.hasLength(2)); | 8779 unittest.expect(o, unittest.hasLength(2)); |
| 7885 unittest.expect(o[0], unittest.equals('foo')); | 8780 unittest.expect(o[0], unittest.equals('foo')); |
| 7886 unittest.expect(o[1], unittest.equals('foo')); | 8781 unittest.expect(o[1], unittest.equals('foo')); |
| 7887 } | 8782 } |
| 7888 | 8783 |
| 7889 buildUnnamed478() { | 8784 buildUnnamed1541() { |
| 7890 var o = new core.List<core.String>(); | 8785 var o = new core.List<core.String>(); |
| 7891 o.add("foo"); | 8786 o.add("foo"); |
| 7892 o.add("foo"); | 8787 o.add("foo"); |
| 7893 return o; | 8788 return o; |
| 7894 } | 8789 } |
| 7895 | 8790 |
| 7896 checkUnnamed478(core.List<core.String> o) { | 8791 checkUnnamed1541(core.List<core.String> o) { |
| 7897 unittest.expect(o, unittest.hasLength(2)); | 8792 unittest.expect(o, unittest.hasLength(2)); |
| 7898 unittest.expect(o[0], unittest.equals('foo')); | 8793 unittest.expect(o[0], unittest.equals('foo')); |
| 7899 unittest.expect(o[1], unittest.equals('foo')); | 8794 unittest.expect(o[1], unittest.equals('foo')); |
| 7900 } | 8795 } |
| 7901 | 8796 |
| 7902 buildUnnamed479() { | 8797 buildUnnamed1542() { |
| 7903 var o = new core.List<core.String>(); | 8798 var o = new core.List<core.String>(); |
| 7904 o.add("foo"); | 8799 o.add("foo"); |
| 7905 o.add("foo"); | 8800 o.add("foo"); |
| 7906 return o; | 8801 return o; |
| 7907 } | 8802 } |
| 7908 | 8803 |
| 7909 checkUnnamed479(core.List<core.String> o) { | 8804 checkUnnamed1542(core.List<core.String> o) { |
| 7910 unittest.expect(o, unittest.hasLength(2)); | 8805 unittest.expect(o, unittest.hasLength(2)); |
| 7911 unittest.expect(o[0], unittest.equals('foo')); | 8806 unittest.expect(o[0], unittest.equals('foo')); |
| 7912 unittest.expect(o[1], unittest.equals('foo')); | 8807 unittest.expect(o[1], unittest.equals('foo')); |
| 7913 } | 8808 } |
| 7914 | 8809 |
| 7915 buildUnnamed480() { | 8810 buildUnnamed1543() { |
| 7916 var o = new core.List<core.String>(); | 8811 var o = new core.List<core.String>(); |
| 7917 o.add("foo"); | 8812 o.add("foo"); |
| 7918 o.add("foo"); | 8813 o.add("foo"); |
| 7919 return o; | 8814 return o; |
| 7920 } | 8815 } |
| 7921 | 8816 |
| 7922 checkUnnamed480(core.List<core.String> o) { | 8817 checkUnnamed1543(core.List<core.String> o) { |
| 7923 unittest.expect(o, unittest.hasLength(2)); | 8818 unittest.expect(o, unittest.hasLength(2)); |
| 7924 unittest.expect(o[0], unittest.equals('foo')); | 8819 unittest.expect(o[0], unittest.equals('foo')); |
| 7925 unittest.expect(o[1], unittest.equals('foo')); | 8820 unittest.expect(o[1], unittest.equals('foo')); |
| 7926 } | 8821 } |
| 7927 | 8822 |
| 7928 buildUnnamed481() { | 8823 buildUnnamed1544() { |
| 7929 var o = new core.List<core.String>(); | 8824 var o = new core.List<core.String>(); |
| 7930 o.add("foo"); | 8825 o.add("foo"); |
| 7931 o.add("foo"); | 8826 o.add("foo"); |
| 7932 return o; | 8827 return o; |
| 7933 } | 8828 } |
| 7934 | 8829 |
| 7935 checkUnnamed481(core.List<core.String> o) { | 8830 checkUnnamed1544(core.List<core.String> o) { |
| 7936 unittest.expect(o, unittest.hasLength(2)); | 8831 unittest.expect(o, unittest.hasLength(2)); |
| 7937 unittest.expect(o[0], unittest.equals('foo')); | 8832 unittest.expect(o[0], unittest.equals('foo')); |
| 7938 unittest.expect(o[1], unittest.equals('foo')); | 8833 unittest.expect(o[1], unittest.equals('foo')); |
| 7939 } | 8834 } |
| 7940 | 8835 |
| 7941 buildUnnamed482() { | 8836 buildUnnamed1545() { |
| 7942 var o = new core.List<core.String>(); | 8837 var o = new core.List<core.String>(); |
| 7943 o.add("foo"); | 8838 o.add("foo"); |
| 7944 o.add("foo"); | 8839 o.add("foo"); |
| 7945 return o; | 8840 return o; |
| 7946 } | 8841 } |
| 7947 | 8842 |
| 7948 checkUnnamed482(core.List<core.String> o) { | 8843 checkUnnamed1545(core.List<core.String> o) { |
| 7949 unittest.expect(o, unittest.hasLength(2)); | 8844 unittest.expect(o, unittest.hasLength(2)); |
| 7950 unittest.expect(o[0], unittest.equals('foo')); | 8845 unittest.expect(o[0], unittest.equals('foo')); |
| 7951 unittest.expect(o[1], unittest.equals('foo')); | 8846 unittest.expect(o[1], unittest.equals('foo')); |
| 7952 } | 8847 } |
| 7953 | 8848 |
| 7954 buildUnnamed483() { | 8849 buildUnnamed1546() { |
| 7955 var o = new core.List<core.String>(); | 8850 var o = new core.List<core.String>(); |
| 7956 o.add("foo"); | 8851 o.add("foo"); |
| 7957 o.add("foo"); | 8852 o.add("foo"); |
| 7958 return o; | 8853 return o; |
| 7959 } | 8854 } |
| 7960 | 8855 |
| 7961 checkUnnamed483(core.List<core.String> o) { | 8856 checkUnnamed1546(core.List<core.String> o) { |
| 7962 unittest.expect(o, unittest.hasLength(2)); | 8857 unittest.expect(o, unittest.hasLength(2)); |
| 7963 unittest.expect(o[0], unittest.equals('foo')); | 8858 unittest.expect(o[0], unittest.equals('foo')); |
| 7964 unittest.expect(o[1], unittest.equals('foo')); | 8859 unittest.expect(o[1], unittest.equals('foo')); |
| 7965 } | 8860 } |
| 7966 | 8861 |
| 7967 buildUnnamed484() { | 8862 buildUnnamed1547() { |
| 7968 var o = new core.List<core.String>(); | 8863 var o = new core.List<core.String>(); |
| 7969 o.add("foo"); | 8864 o.add("foo"); |
| 7970 o.add("foo"); | 8865 o.add("foo"); |
| 7971 return o; | 8866 return o; |
| 7972 } | 8867 } |
| 7973 | 8868 |
| 7974 checkUnnamed484(core.List<core.String> o) { | 8869 checkUnnamed1547(core.List<core.String> o) { |
| 7975 unittest.expect(o, unittest.hasLength(2)); | 8870 unittest.expect(o, unittest.hasLength(2)); |
| 7976 unittest.expect(o[0], unittest.equals('foo')); | 8871 unittest.expect(o[0], unittest.equals('foo')); |
| 7977 unittest.expect(o[1], unittest.equals('foo')); | 8872 unittest.expect(o[1], unittest.equals('foo')); |
| 7978 } | 8873 } |
| 7979 | 8874 |
| 7980 buildUnnamed485() { | 8875 buildUnnamed1548() { |
| 7981 var o = new core.List<core.String>(); | 8876 var o = new core.List<core.String>(); |
| 7982 o.add("foo"); | 8877 o.add("foo"); |
| 7983 o.add("foo"); | 8878 o.add("foo"); |
| 7984 return o; | 8879 return o; |
| 7985 } | 8880 } |
| 7986 | 8881 |
| 7987 checkUnnamed485(core.List<core.String> o) { | 8882 checkUnnamed1548(core.List<core.String> o) { |
| 7988 unittest.expect(o, unittest.hasLength(2)); | 8883 unittest.expect(o, unittest.hasLength(2)); |
| 7989 unittest.expect(o[0], unittest.equals('foo')); | 8884 unittest.expect(o[0], unittest.equals('foo')); |
| 7990 unittest.expect(o[1], unittest.equals('foo')); | 8885 unittest.expect(o[1], unittest.equals('foo')); |
| 7991 } | 8886 } |
| 7992 | 8887 |
| 7993 buildUnnamed486() { | 8888 buildUnnamed1549() { |
| 7994 var o = new core.List<core.String>(); | 8889 var o = new core.List<core.String>(); |
| 7995 o.add("foo"); | 8890 o.add("foo"); |
| 7996 o.add("foo"); | 8891 o.add("foo"); |
| 7997 return o; | 8892 return o; |
| 7998 } | 8893 } |
| 7999 | 8894 |
| 8000 checkUnnamed486(core.List<core.String> o) { | 8895 checkUnnamed1549(core.List<core.String> o) { |
| 8001 unittest.expect(o, unittest.hasLength(2)); | 8896 unittest.expect(o, unittest.hasLength(2)); |
| 8002 unittest.expect(o[0], unittest.equals('foo')); | 8897 unittest.expect(o[0], unittest.equals('foo')); |
| 8003 unittest.expect(o[1], unittest.equals('foo')); | 8898 unittest.expect(o[1], unittest.equals('foo')); |
| 8004 } | 8899 } |
| 8005 | 8900 |
| 8006 buildUnnamed487() { | 8901 buildUnnamed1550() { |
| 8007 var o = new core.List<core.String>(); | 8902 var o = new core.List<core.String>(); |
| 8008 o.add("foo"); | 8903 o.add("foo"); |
| 8009 o.add("foo"); | 8904 o.add("foo"); |
| 8010 return o; | 8905 return o; |
| 8011 } | 8906 } |
| 8012 | 8907 |
| 8013 checkUnnamed487(core.List<core.String> o) { | 8908 checkUnnamed1550(core.List<core.String> o) { |
| 8014 unittest.expect(o, unittest.hasLength(2)); | 8909 unittest.expect(o, unittest.hasLength(2)); |
| 8015 unittest.expect(o[0], unittest.equals('foo')); | 8910 unittest.expect(o[0], unittest.equals('foo')); |
| 8016 unittest.expect(o[1], unittest.equals('foo')); | 8911 unittest.expect(o[1], unittest.equals('foo')); |
| 8017 } | 8912 } |
| 8018 | 8913 |
| 8019 buildUnnamed488() { | 8914 buildUnnamed1551() { |
| 8020 var o = new core.List<core.String>(); | 8915 var o = new core.List<core.String>(); |
| 8021 o.add("foo"); | 8916 o.add("foo"); |
| 8022 o.add("foo"); | 8917 o.add("foo"); |
| 8023 return o; | 8918 return o; |
| 8024 } | 8919 } |
| 8025 | 8920 |
| 8026 checkUnnamed488(core.List<core.String> o) { | 8921 checkUnnamed1551(core.List<core.String> o) { |
| 8027 unittest.expect(o, unittest.hasLength(2)); | 8922 unittest.expect(o, unittest.hasLength(2)); |
| 8028 unittest.expect(o[0], unittest.equals('foo')); | 8923 unittest.expect(o[0], unittest.equals('foo')); |
| 8029 unittest.expect(o[1], unittest.equals('foo')); | 8924 unittest.expect(o[1], unittest.equals('foo')); |
| 8030 } | 8925 } |
| 8031 | 8926 |
| 8032 buildUnnamed489() { | 8927 buildUnnamed1552() { |
| 8033 var o = new core.List<core.String>(); | 8928 var o = new core.List<core.String>(); |
| 8034 o.add("foo"); | 8929 o.add("foo"); |
| 8035 o.add("foo"); | 8930 o.add("foo"); |
| 8036 return o; | 8931 return o; |
| 8037 } | 8932 } |
| 8038 | 8933 |
| 8039 checkUnnamed489(core.List<core.String> o) { | 8934 checkUnnamed1552(core.List<core.String> o) { |
| 8040 unittest.expect(o, unittest.hasLength(2)); | 8935 unittest.expect(o, unittest.hasLength(2)); |
| 8041 unittest.expect(o[0], unittest.equals('foo')); | 8936 unittest.expect(o[0], unittest.equals('foo')); |
| 8042 unittest.expect(o[1], unittest.equals('foo')); | 8937 unittest.expect(o[1], unittest.equals('foo')); |
| 8043 } | 8938 } |
| 8044 | 8939 |
| 8045 buildUnnamed490() { | 8940 buildUnnamed1553() { |
| 8046 var o = new core.List<core.String>(); | 8941 var o = new core.List<core.String>(); |
| 8047 o.add("foo"); | 8942 o.add("foo"); |
| 8048 o.add("foo"); | 8943 o.add("foo"); |
| 8049 return o; | 8944 return o; |
| 8050 } | 8945 } |
| 8051 | 8946 |
| 8052 checkUnnamed490(core.List<core.String> o) { | 8947 checkUnnamed1553(core.List<core.String> o) { |
| 8053 unittest.expect(o, unittest.hasLength(2)); | 8948 unittest.expect(o, unittest.hasLength(2)); |
| 8054 unittest.expect(o[0], unittest.equals('foo')); | 8949 unittest.expect(o[0], unittest.equals('foo')); |
| 8055 unittest.expect(o[1], unittest.equals('foo')); | 8950 unittest.expect(o[1], unittest.equals('foo')); |
| 8056 } | 8951 } |
| 8057 | 8952 |
| 8058 buildUnnamed491() { | 8953 buildUnnamed1554() { |
| 8059 var o = new core.List<core.String>(); | 8954 var o = new core.List<core.String>(); |
| 8060 o.add("foo"); | 8955 o.add("foo"); |
| 8061 o.add("foo"); | 8956 o.add("foo"); |
| 8062 return o; | 8957 return o; |
| 8063 } | 8958 } |
| 8064 | 8959 |
| 8065 checkUnnamed491(core.List<core.String> o) { | 8960 checkUnnamed1554(core.List<core.String> o) { |
| 8066 unittest.expect(o, unittest.hasLength(2)); | 8961 unittest.expect(o, unittest.hasLength(2)); |
| 8067 unittest.expect(o[0], unittest.equals('foo')); | 8962 unittest.expect(o[0], unittest.equals('foo')); |
| 8068 unittest.expect(o[1], unittest.equals('foo')); | 8963 unittest.expect(o[1], unittest.equals('foo')); |
| 8069 } | 8964 } |
| 8070 | 8965 |
| 8071 buildUnnamed492() { | 8966 buildUnnamed1555() { |
| 8072 var o = new core.List<core.String>(); | 8967 var o = new core.List<core.String>(); |
| 8073 o.add("foo"); | 8968 o.add("foo"); |
| 8074 o.add("foo"); | 8969 o.add("foo"); |
| 8075 return o; | 8970 return o; |
| 8076 } | 8971 } |
| 8077 | 8972 |
| 8078 checkUnnamed492(core.List<core.String> o) { | 8973 checkUnnamed1555(core.List<core.String> o) { |
| 8079 unittest.expect(o, unittest.hasLength(2)); | 8974 unittest.expect(o, unittest.hasLength(2)); |
| 8080 unittest.expect(o[0], unittest.equals('foo')); | 8975 unittest.expect(o[0], unittest.equals('foo')); |
| 8081 unittest.expect(o[1], unittest.equals('foo')); | 8976 unittest.expect(o[1], unittest.equals('foo')); |
| 8977 } |
| 8978 |
| 8979 buildUnnamed1556() { |
| 8980 var o = new core.List<core.String>(); |
| 8981 o.add("foo"); |
| 8982 o.add("foo"); |
| 8983 return o; |
| 8984 } |
| 8985 |
| 8986 checkUnnamed1556(core.List<core.String> o) { |
| 8987 unittest.expect(o, unittest.hasLength(2)); |
| 8988 unittest.expect(o[0], unittest.equals('foo')); |
| 8989 unittest.expect(o[1], unittest.equals('foo')); |
| 8990 } |
| 8991 |
| 8992 buildUnnamed1557() { |
| 8993 var o = new core.List<core.String>(); |
| 8994 o.add("foo"); |
| 8995 o.add("foo"); |
| 8996 return o; |
| 8997 } |
| 8998 |
| 8999 checkUnnamed1557(core.List<core.String> o) { |
| 9000 unittest.expect(o, unittest.hasLength(2)); |
| 9001 unittest.expect(o[0], unittest.equals('foo')); |
| 9002 unittest.expect(o[1], unittest.equals('foo')); |
| 9003 } |
| 9004 |
| 9005 buildUnnamed1558() { |
| 9006 var o = new core.List<core.String>(); |
| 9007 o.add("foo"); |
| 9008 o.add("foo"); |
| 9009 return o; |
| 9010 } |
| 9011 |
| 9012 checkUnnamed1558(core.List<core.String> o) { |
| 9013 unittest.expect(o, unittest.hasLength(2)); |
| 9014 unittest.expect(o[0], unittest.equals('foo')); |
| 9015 unittest.expect(o[1], unittest.equals('foo')); |
| 9016 } |
| 9017 |
| 9018 buildUnnamed1559() { |
| 9019 var o = new core.List<core.String>(); |
| 9020 o.add("foo"); |
| 9021 o.add("foo"); |
| 9022 return o; |
| 9023 } |
| 9024 |
| 9025 checkUnnamed1559(core.List<core.String> o) { |
| 9026 unittest.expect(o, unittest.hasLength(2)); |
| 9027 unittest.expect(o[0], unittest.equals('foo')); |
| 9028 unittest.expect(o[1], unittest.equals('foo')); |
| 9029 } |
| 9030 |
| 9031 buildUnnamed1560() { |
| 9032 var o = new core.List<core.String>(); |
| 9033 o.add("foo"); |
| 9034 o.add("foo"); |
| 9035 return o; |
| 9036 } |
| 9037 |
| 9038 checkUnnamed1560(core.List<core.String> o) { |
| 9039 unittest.expect(o, unittest.hasLength(2)); |
| 9040 unittest.expect(o[0], unittest.equals('foo')); |
| 9041 unittest.expect(o[1], unittest.equals('foo')); |
| 9042 } |
| 9043 |
| 9044 buildUnnamed1561() { |
| 9045 var o = new core.List<core.String>(); |
| 9046 o.add("foo"); |
| 9047 o.add("foo"); |
| 9048 return o; |
| 9049 } |
| 9050 |
| 9051 checkUnnamed1561(core.List<core.String> o) { |
| 9052 unittest.expect(o, unittest.hasLength(2)); |
| 9053 unittest.expect(o[0], unittest.equals('foo')); |
| 9054 unittest.expect(o[1], unittest.equals('foo')); |
| 9055 } |
| 9056 |
| 9057 buildUnnamed1562() { |
| 9058 var o = new core.List<core.String>(); |
| 9059 o.add("foo"); |
| 9060 o.add("foo"); |
| 9061 return o; |
| 9062 } |
| 9063 |
| 9064 checkUnnamed1562(core.List<core.String> o) { |
| 9065 unittest.expect(o, unittest.hasLength(2)); |
| 9066 unittest.expect(o[0], unittest.equals('foo')); |
| 9067 unittest.expect(o[1], unittest.equals('foo')); |
| 9068 } |
| 9069 |
| 9070 buildUnnamed1563() { |
| 9071 var o = new core.List<core.String>(); |
| 9072 o.add("foo"); |
| 9073 o.add("foo"); |
| 9074 return o; |
| 9075 } |
| 9076 |
| 9077 checkUnnamed1563(core.List<core.String> o) { |
| 9078 unittest.expect(o, unittest.hasLength(2)); |
| 9079 unittest.expect(o[0], unittest.equals('foo')); |
| 9080 unittest.expect(o[1], unittest.equals('foo')); |
| 9081 } |
| 9082 |
| 9083 buildUnnamed1564() { |
| 9084 var o = new core.List<core.String>(); |
| 9085 o.add("foo"); |
| 9086 o.add("foo"); |
| 9087 return o; |
| 9088 } |
| 9089 |
| 9090 checkUnnamed1564(core.List<core.String> o) { |
| 9091 unittest.expect(o, unittest.hasLength(2)); |
| 9092 unittest.expect(o[0], unittest.equals('foo')); |
| 9093 unittest.expect(o[1], unittest.equals('foo')); |
| 9094 } |
| 9095 |
| 9096 buildUnnamed1565() { |
| 9097 var o = new core.List<core.String>(); |
| 9098 o.add("foo"); |
| 9099 o.add("foo"); |
| 9100 return o; |
| 9101 } |
| 9102 |
| 9103 checkUnnamed1565(core.List<core.String> o) { |
| 9104 unittest.expect(o, unittest.hasLength(2)); |
| 9105 unittest.expect(o[0], unittest.equals('foo')); |
| 9106 unittest.expect(o[1], unittest.equals('foo')); |
| 8082 } | 9107 } |
| 8083 | 9108 |
| 8084 | 9109 |
| 8085 main() { | 9110 main() { |
| 8086 unittest.group("obj-schema-Account", () { | 9111 unittest.group("obj-schema-Account", () { |
| 8087 unittest.test("to-json--from-json", () { | 9112 unittest.test("to-json--from-json", () { |
| 8088 var o = buildAccount(); | 9113 var o = buildAccount(); |
| 8089 var od = new api.Account.fromJson(o.toJson()); | 9114 var od = new api.Account.fromJson(o.toJson()); |
| 8090 checkAccount(od); | 9115 checkAccount(od); |
| 8091 }); | 9116 }); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8175 | 9200 |
| 8176 unittest.group("obj-schema-Ad", () { | 9201 unittest.group("obj-schema-Ad", () { |
| 8177 unittest.test("to-json--from-json", () { | 9202 unittest.test("to-json--from-json", () { |
| 8178 var o = buildAd(); | 9203 var o = buildAd(); |
| 8179 var od = new api.Ad.fromJson(o.toJson()); | 9204 var od = new api.Ad.fromJson(o.toJson()); |
| 8180 checkAd(od); | 9205 checkAd(od); |
| 8181 }); | 9206 }); |
| 8182 }); | 9207 }); |
| 8183 | 9208 |
| 8184 | 9209 |
| 9210 unittest.group("obj-schema-AdSlot", () { |
| 9211 unittest.test("to-json--from-json", () { |
| 9212 var o = buildAdSlot(); |
| 9213 var od = new api.AdSlot.fromJson(o.toJson()); |
| 9214 checkAdSlot(od); |
| 9215 }); |
| 9216 }); |
| 9217 |
| 9218 |
| 8185 unittest.group("obj-schema-AdsListResponse", () { | 9219 unittest.group("obj-schema-AdsListResponse", () { |
| 8186 unittest.test("to-json--from-json", () { | 9220 unittest.test("to-json--from-json", () { |
| 8187 var o = buildAdsListResponse(); | 9221 var o = buildAdsListResponse(); |
| 8188 var od = new api.AdsListResponse.fromJson(o.toJson()); | 9222 var od = new api.AdsListResponse.fromJson(o.toJson()); |
| 8189 checkAdsListResponse(od); | 9223 checkAdsListResponse(od); |
| 8190 }); | 9224 }); |
| 8191 }); | 9225 }); |
| 8192 | 9226 |
| 8193 | 9227 |
| 8194 unittest.group("obj-schema-Advertiser", () { | 9228 unittest.group("obj-schema-Advertiser", () { |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8805 | 9839 |
| 8806 unittest.group("obj-schema-FileList", () { | 9840 unittest.group("obj-schema-FileList", () { |
| 8807 unittest.test("to-json--from-json", () { | 9841 unittest.test("to-json--from-json", () { |
| 8808 var o = buildFileList(); | 9842 var o = buildFileList(); |
| 8809 var od = new api.FileList.fromJson(o.toJson()); | 9843 var od = new api.FileList.fromJson(o.toJson()); |
| 8810 checkFileList(od); | 9844 checkFileList(od); |
| 8811 }); | 9845 }); |
| 8812 }); | 9846 }); |
| 8813 | 9847 |
| 8814 | 9848 |
| 9849 unittest.group("obj-schema-Flight", () { |
| 9850 unittest.test("to-json--from-json", () { |
| 9851 var o = buildFlight(); |
| 9852 var od = new api.Flight.fromJson(o.toJson()); |
| 9853 checkFlight(od); |
| 9854 }); |
| 9855 }); |
| 9856 |
| 9857 |
| 8815 unittest.group("obj-schema-FloodlightActivitiesGenerateTagResponse", () { | 9858 unittest.group("obj-schema-FloodlightActivitiesGenerateTagResponse", () { |
| 8816 unittest.test("to-json--from-json", () { | 9859 unittest.test("to-json--from-json", () { |
| 8817 var o = buildFloodlightActivitiesGenerateTagResponse(); | 9860 var o = buildFloodlightActivitiesGenerateTagResponse(); |
| 8818 var od = new api.FloodlightActivitiesGenerateTagResponse.fromJson(o.toJson
()); | 9861 var od = new api.FloodlightActivitiesGenerateTagResponse.fromJson(o.toJson
()); |
| 8819 checkFloodlightActivitiesGenerateTagResponse(od); | 9862 checkFloodlightActivitiesGenerateTagResponse(od); |
| 8820 }); | 9863 }); |
| 8821 }); | 9864 }); |
| 8822 | 9865 |
| 8823 | 9866 |
| 8824 unittest.group("obj-schema-FloodlightActivitiesListResponse", () { | 9867 unittest.group("obj-schema-FloodlightActivitiesListResponse", () { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8922 | 9965 |
| 8923 unittest.group("obj-schema-GeoTargeting", () { | 9966 unittest.group("obj-schema-GeoTargeting", () { |
| 8924 unittest.test("to-json--from-json", () { | 9967 unittest.test("to-json--from-json", () { |
| 8925 var o = buildGeoTargeting(); | 9968 var o = buildGeoTargeting(); |
| 8926 var od = new api.GeoTargeting.fromJson(o.toJson()); | 9969 var od = new api.GeoTargeting.fromJson(o.toJson()); |
| 8927 checkGeoTargeting(od); | 9970 checkGeoTargeting(od); |
| 8928 }); | 9971 }); |
| 8929 }); | 9972 }); |
| 8930 | 9973 |
| 8931 | 9974 |
| 9975 unittest.group("obj-schema-InventoryItem", () { |
| 9976 unittest.test("to-json--from-json", () { |
| 9977 var o = buildInventoryItem(); |
| 9978 var od = new api.InventoryItem.fromJson(o.toJson()); |
| 9979 checkInventoryItem(od); |
| 9980 }); |
| 9981 }); |
| 9982 |
| 9983 |
| 9984 unittest.group("obj-schema-InventoryItemsListResponse", () { |
| 9985 unittest.test("to-json--from-json", () { |
| 9986 var o = buildInventoryItemsListResponse(); |
| 9987 var od = new api.InventoryItemsListResponse.fromJson(o.toJson()); |
| 9988 checkInventoryItemsListResponse(od); |
| 9989 }); |
| 9990 }); |
| 9991 |
| 9992 |
| 8932 unittest.group("obj-schema-KeyValueTargetingExpression", () { | 9993 unittest.group("obj-schema-KeyValueTargetingExpression", () { |
| 8933 unittest.test("to-json--from-json", () { | 9994 unittest.test("to-json--from-json", () { |
| 8934 var o = buildKeyValueTargetingExpression(); | 9995 var o = buildKeyValueTargetingExpression(); |
| 8935 var od = new api.KeyValueTargetingExpression.fromJson(o.toJson()); | 9996 var od = new api.KeyValueTargetingExpression.fromJson(o.toJson()); |
| 8936 checkKeyValueTargetingExpression(od); | 9997 checkKeyValueTargetingExpression(od); |
| 8937 }); | 9998 }); |
| 8938 }); | 9999 }); |
| 8939 | 10000 |
| 8940 | 10001 |
| 8941 unittest.group("obj-schema-LandingPage", () { | 10002 unittest.group("obj-schema-LandingPage", () { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 8958 | 10019 |
| 8959 unittest.group("obj-schema-LastModifiedInfo", () { | 10020 unittest.group("obj-schema-LastModifiedInfo", () { |
| 8960 unittest.test("to-json--from-json", () { | 10021 unittest.test("to-json--from-json", () { |
| 8961 var o = buildLastModifiedInfo(); | 10022 var o = buildLastModifiedInfo(); |
| 8962 var od = new api.LastModifiedInfo.fromJson(o.toJson()); | 10023 var od = new api.LastModifiedInfo.fromJson(o.toJson()); |
| 8963 checkLastModifiedInfo(od); | 10024 checkLastModifiedInfo(od); |
| 8964 }); | 10025 }); |
| 8965 }); | 10026 }); |
| 8966 | 10027 |
| 8967 | 10028 |
| 10029 unittest.group("obj-schema-ListPopulationClause", () { |
| 10030 unittest.test("to-json--from-json", () { |
| 10031 var o = buildListPopulationClause(); |
| 10032 var od = new api.ListPopulationClause.fromJson(o.toJson()); |
| 10033 checkListPopulationClause(od); |
| 10034 }); |
| 10035 }); |
| 10036 |
| 10037 |
| 10038 unittest.group("obj-schema-ListPopulationRule", () { |
| 10039 unittest.test("to-json--from-json", () { |
| 10040 var o = buildListPopulationRule(); |
| 10041 var od = new api.ListPopulationRule.fromJson(o.toJson()); |
| 10042 checkListPopulationRule(od); |
| 10043 }); |
| 10044 }); |
| 10045 |
| 10046 |
| 10047 unittest.group("obj-schema-ListPopulationTerm", () { |
| 10048 unittest.test("to-json--from-json", () { |
| 10049 var o = buildListPopulationTerm(); |
| 10050 var od = new api.ListPopulationTerm.fromJson(o.toJson()); |
| 10051 checkListPopulationTerm(od); |
| 10052 }); |
| 10053 }); |
| 10054 |
| 10055 |
| 8968 unittest.group("obj-schema-ListTargetingExpression", () { | 10056 unittest.group("obj-schema-ListTargetingExpression", () { |
| 8969 unittest.test("to-json--from-json", () { | 10057 unittest.test("to-json--from-json", () { |
| 8970 var o = buildListTargetingExpression(); | 10058 var o = buildListTargetingExpression(); |
| 8971 var od = new api.ListTargetingExpression.fromJson(o.toJson()); | 10059 var od = new api.ListTargetingExpression.fromJson(o.toJson()); |
| 8972 checkListTargetingExpression(od); | 10060 checkListTargetingExpression(od); |
| 8973 }); | 10061 }); |
| 8974 }); | 10062 }); |
| 8975 | 10063 |
| 8976 | 10064 |
| 8977 unittest.group("obj-schema-LookbackConfiguration", () { | 10065 unittest.group("obj-schema-LookbackConfiguration", () { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9093 | 10181 |
| 9094 unittest.group("obj-schema-OptimizationActivity", () { | 10182 unittest.group("obj-schema-OptimizationActivity", () { |
| 9095 unittest.test("to-json--from-json", () { | 10183 unittest.test("to-json--from-json", () { |
| 9096 var o = buildOptimizationActivity(); | 10184 var o = buildOptimizationActivity(); |
| 9097 var od = new api.OptimizationActivity.fromJson(o.toJson()); | 10185 var od = new api.OptimizationActivity.fromJson(o.toJson()); |
| 9098 checkOptimizationActivity(od); | 10186 checkOptimizationActivity(od); |
| 9099 }); | 10187 }); |
| 9100 }); | 10188 }); |
| 9101 | 10189 |
| 9102 | 10190 |
| 10191 unittest.group("obj-schema-Order", () { |
| 10192 unittest.test("to-json--from-json", () { |
| 10193 var o = buildOrder(); |
| 10194 var od = new api.Order.fromJson(o.toJson()); |
| 10195 checkOrder(od); |
| 10196 }); |
| 10197 }); |
| 10198 |
| 10199 |
| 10200 unittest.group("obj-schema-OrderContact", () { |
| 10201 unittest.test("to-json--from-json", () { |
| 10202 var o = buildOrderContact(); |
| 10203 var od = new api.OrderContact.fromJson(o.toJson()); |
| 10204 checkOrderContact(od); |
| 10205 }); |
| 10206 }); |
| 10207 |
| 10208 |
| 10209 unittest.group("obj-schema-OrderDocument", () { |
| 10210 unittest.test("to-json--from-json", () { |
| 10211 var o = buildOrderDocument(); |
| 10212 var od = new api.OrderDocument.fromJson(o.toJson()); |
| 10213 checkOrderDocument(od); |
| 10214 }); |
| 10215 }); |
| 10216 |
| 10217 |
| 10218 unittest.group("obj-schema-OrderDocumentsListResponse", () { |
| 10219 unittest.test("to-json--from-json", () { |
| 10220 var o = buildOrderDocumentsListResponse(); |
| 10221 var od = new api.OrderDocumentsListResponse.fromJson(o.toJson()); |
| 10222 checkOrderDocumentsListResponse(od); |
| 10223 }); |
| 10224 }); |
| 10225 |
| 10226 |
| 10227 unittest.group("obj-schema-OrdersListResponse", () { |
| 10228 unittest.test("to-json--from-json", () { |
| 10229 var o = buildOrdersListResponse(); |
| 10230 var od = new api.OrdersListResponse.fromJson(o.toJson()); |
| 10231 checkOrdersListResponse(od); |
| 10232 }); |
| 10233 }); |
| 10234 |
| 10235 |
| 9103 unittest.group("obj-schema-PathToConversionReportCompatibleFields", () { | 10236 unittest.group("obj-schema-PathToConversionReportCompatibleFields", () { |
| 9104 unittest.test("to-json--from-json", () { | 10237 unittest.test("to-json--from-json", () { |
| 9105 var o = buildPathToConversionReportCompatibleFields(); | 10238 var o = buildPathToConversionReportCompatibleFields(); |
| 9106 var od = new api.PathToConversionReportCompatibleFields.fromJson(o.toJson(
)); | 10239 var od = new api.PathToConversionReportCompatibleFields.fromJson(o.toJson(
)); |
| 9107 checkPathToConversionReportCompatibleFields(od); | 10240 checkPathToConversionReportCompatibleFields(od); |
| 9108 }); | 10241 }); |
| 9109 }); | 10242 }); |
| 9110 | 10243 |
| 9111 | 10244 |
| 9112 unittest.group("obj-schema-Placement", () { | 10245 unittest.group("obj-schema-Placement", () { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9228 | 10361 |
| 9229 unittest.group("obj-schema-PostalCodesListResponse", () { | 10362 unittest.group("obj-schema-PostalCodesListResponse", () { |
| 9230 unittest.test("to-json--from-json", () { | 10363 unittest.test("to-json--from-json", () { |
| 9231 var o = buildPostalCodesListResponse(); | 10364 var o = buildPostalCodesListResponse(); |
| 9232 var od = new api.PostalCodesListResponse.fromJson(o.toJson()); | 10365 var od = new api.PostalCodesListResponse.fromJson(o.toJson()); |
| 9233 checkPostalCodesListResponse(od); | 10366 checkPostalCodesListResponse(od); |
| 9234 }); | 10367 }); |
| 9235 }); | 10368 }); |
| 9236 | 10369 |
| 9237 | 10370 |
| 10371 unittest.group("obj-schema-Pricing", () { |
| 10372 unittest.test("to-json--from-json", () { |
| 10373 var o = buildPricing(); |
| 10374 var od = new api.Pricing.fromJson(o.toJson()); |
| 10375 checkPricing(od); |
| 10376 }); |
| 10377 }); |
| 10378 |
| 10379 |
| 9238 unittest.group("obj-schema-PricingSchedule", () { | 10380 unittest.group("obj-schema-PricingSchedule", () { |
| 9239 unittest.test("to-json--from-json", () { | 10381 unittest.test("to-json--from-json", () { |
| 9240 var o = buildPricingSchedule(); | 10382 var o = buildPricingSchedule(); |
| 9241 var od = new api.PricingSchedule.fromJson(o.toJson()); | 10383 var od = new api.PricingSchedule.fromJson(o.toJson()); |
| 9242 checkPricingSchedule(od); | 10384 checkPricingSchedule(od); |
| 9243 }); | 10385 }); |
| 9244 }); | 10386 }); |
| 9245 | 10387 |
| 9246 | 10388 |
| 9247 unittest.group("obj-schema-PricingSchedulePricingPeriod", () { | 10389 unittest.group("obj-schema-PricingSchedulePricingPeriod", () { |
| 9248 unittest.test("to-json--from-json", () { | 10390 unittest.test("to-json--from-json", () { |
| 9249 var o = buildPricingSchedulePricingPeriod(); | 10391 var o = buildPricingSchedulePricingPeriod(); |
| 9250 var od = new api.PricingSchedulePricingPeriod.fromJson(o.toJson()); | 10392 var od = new api.PricingSchedulePricingPeriod.fromJson(o.toJson()); |
| 9251 checkPricingSchedulePricingPeriod(od); | 10393 checkPricingSchedulePricingPeriod(od); |
| 9252 }); | 10394 }); |
| 9253 }); | 10395 }); |
| 9254 | 10396 |
| 9255 | 10397 |
| 9256 unittest.group("obj-schema-ProgrammaticSetting", () { | 10398 unittest.group("obj-schema-Project", () { |
| 9257 unittest.test("to-json--from-json", () { | 10399 unittest.test("to-json--from-json", () { |
| 9258 var o = buildProgrammaticSetting(); | 10400 var o = buildProject(); |
| 9259 var od = new api.ProgrammaticSetting.fromJson(o.toJson()); | 10401 var od = new api.Project.fromJson(o.toJson()); |
| 9260 checkProgrammaticSetting(od); | 10402 checkProject(od); |
| 9261 }); | 10403 }); |
| 9262 }); | 10404 }); |
| 9263 | 10405 |
| 10406 |
| 10407 unittest.group("obj-schema-ProjectsListResponse", () { |
| 10408 unittest.test("to-json--from-json", () { |
| 10409 var o = buildProjectsListResponse(); |
| 10410 var od = new api.ProjectsListResponse.fromJson(o.toJson()); |
| 10411 checkProjectsListResponse(od); |
| 10412 }); |
| 10413 }); |
| 10414 |
| 9264 | 10415 |
| 9265 unittest.group("obj-schema-ReachReportCompatibleFields", () { | 10416 unittest.group("obj-schema-ReachReportCompatibleFields", () { |
| 9266 unittest.test("to-json--from-json", () { | 10417 unittest.test("to-json--from-json", () { |
| 9267 var o = buildReachReportCompatibleFields(); | 10418 var o = buildReachReportCompatibleFields(); |
| 9268 var od = new api.ReachReportCompatibleFields.fromJson(o.toJson()); | 10419 var od = new api.ReachReportCompatibleFields.fromJson(o.toJson()); |
| 9269 checkReachReportCompatibleFields(od); | 10420 checkReachReportCompatibleFields(od); |
| 9270 }); | 10421 }); |
| 9271 }); | 10422 }); |
| 9272 | 10423 |
| 9273 | 10424 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 9291 | 10442 |
| 9292 unittest.group("obj-schema-RegionsListResponse", () { | 10443 unittest.group("obj-schema-RegionsListResponse", () { |
| 9293 unittest.test("to-json--from-json", () { | 10444 unittest.test("to-json--from-json", () { |
| 9294 var o = buildRegionsListResponse(); | 10445 var o = buildRegionsListResponse(); |
| 9295 var od = new api.RegionsListResponse.fromJson(o.toJson()); | 10446 var od = new api.RegionsListResponse.fromJson(o.toJson()); |
| 9296 checkRegionsListResponse(od); | 10447 checkRegionsListResponse(od); |
| 9297 }); | 10448 }); |
| 9298 }); | 10449 }); |
| 9299 | 10450 |
| 9300 | 10451 |
| 10452 unittest.group("obj-schema-RemarketingList", () { |
| 10453 unittest.test("to-json--from-json", () { |
| 10454 var o = buildRemarketingList(); |
| 10455 var od = new api.RemarketingList.fromJson(o.toJson()); |
| 10456 checkRemarketingList(od); |
| 10457 }); |
| 10458 }); |
| 10459 |
| 10460 |
| 10461 unittest.group("obj-schema-RemarketingListShare", () { |
| 10462 unittest.test("to-json--from-json", () { |
| 10463 var o = buildRemarketingListShare(); |
| 10464 var od = new api.RemarketingListShare.fromJson(o.toJson()); |
| 10465 checkRemarketingListShare(od); |
| 10466 }); |
| 10467 }); |
| 10468 |
| 10469 |
| 10470 unittest.group("obj-schema-RemarketingListsListResponse", () { |
| 10471 unittest.test("to-json--from-json", () { |
| 10472 var o = buildRemarketingListsListResponse(); |
| 10473 var od = new api.RemarketingListsListResponse.fromJson(o.toJson()); |
| 10474 checkRemarketingListsListResponse(od); |
| 10475 }); |
| 10476 }); |
| 10477 |
| 10478 |
| 9301 unittest.group("obj-schema-ReportCriteria", () { | 10479 unittest.group("obj-schema-ReportCriteria", () { |
| 9302 unittest.test("to-json--from-json", () { | 10480 unittest.test("to-json--from-json", () { |
| 9303 var o = buildReportCriteria(); | 10481 var o = buildReportCriteria(); |
| 9304 var od = new api.ReportCriteria.fromJson(o.toJson()); | 10482 var od = new api.ReportCriteria.fromJson(o.toJson()); |
| 9305 checkReportCriteria(od); | 10483 checkReportCriteria(od); |
| 9306 }); | 10484 }); |
| 9307 }); | 10485 }); |
| 9308 | 10486 |
| 9309 | 10487 |
| 9310 unittest.group("obj-schema-ReportCrossDimensionReachCriteria", () { | 10488 unittest.group("obj-schema-ReportCrossDimensionReachCriteria", () { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9534 | 10712 |
| 9535 unittest.group("obj-schema-TargetWindow", () { | 10713 unittest.group("obj-schema-TargetWindow", () { |
| 9536 unittest.test("to-json--from-json", () { | 10714 unittest.test("to-json--from-json", () { |
| 9537 var o = buildTargetWindow(); | 10715 var o = buildTargetWindow(); |
| 9538 var od = new api.TargetWindow.fromJson(o.toJson()); | 10716 var od = new api.TargetWindow.fromJson(o.toJson()); |
| 9539 checkTargetWindow(od); | 10717 checkTargetWindow(od); |
| 9540 }); | 10718 }); |
| 9541 }); | 10719 }); |
| 9542 | 10720 |
| 9543 | 10721 |
| 10722 unittest.group("obj-schema-TargetableRemarketingList", () { |
| 10723 unittest.test("to-json--from-json", () { |
| 10724 var o = buildTargetableRemarketingList(); |
| 10725 var od = new api.TargetableRemarketingList.fromJson(o.toJson()); |
| 10726 checkTargetableRemarketingList(od); |
| 10727 }); |
| 10728 }); |
| 10729 |
| 10730 |
| 10731 unittest.group("obj-schema-TargetableRemarketingListsListResponse", () { |
| 10732 unittest.test("to-json--from-json", () { |
| 10733 var o = buildTargetableRemarketingListsListResponse(); |
| 10734 var od = new api.TargetableRemarketingListsListResponse.fromJson(o.toJson(
)); |
| 10735 checkTargetableRemarketingListsListResponse(od); |
| 10736 }); |
| 10737 }); |
| 10738 |
| 10739 |
| 9544 unittest.group("obj-schema-TechnologyTargeting", () { | 10740 unittest.group("obj-schema-TechnologyTargeting", () { |
| 9545 unittest.test("to-json--from-json", () { | 10741 unittest.test("to-json--from-json", () { |
| 9546 var o = buildTechnologyTargeting(); | 10742 var o = buildTechnologyTargeting(); |
| 9547 var od = new api.TechnologyTargeting.fromJson(o.toJson()); | 10743 var od = new api.TechnologyTargeting.fromJson(o.toJson()); |
| 9548 checkTechnologyTargeting(od); | 10744 checkTechnologyTargeting(od); |
| 9549 }); | 10745 }); |
| 9550 }); | 10746 }); |
| 9551 | 10747 |
| 9552 | 10748 |
| 10749 unittest.group("obj-schema-ThirdPartyAuthenticationToken", () { |
| 10750 unittest.test("to-json--from-json", () { |
| 10751 var o = buildThirdPartyAuthenticationToken(); |
| 10752 var od = new api.ThirdPartyAuthenticationToken.fromJson(o.toJson()); |
| 10753 checkThirdPartyAuthenticationToken(od); |
| 10754 }); |
| 10755 }); |
| 10756 |
| 10757 |
| 9553 unittest.group("obj-schema-ThirdPartyTrackingUrl", () { | 10758 unittest.group("obj-schema-ThirdPartyTrackingUrl", () { |
| 9554 unittest.test("to-json--from-json", () { | 10759 unittest.test("to-json--from-json", () { |
| 9555 var o = buildThirdPartyTrackingUrl(); | 10760 var o = buildThirdPartyTrackingUrl(); |
| 9556 var od = new api.ThirdPartyTrackingUrl.fromJson(o.toJson()); | 10761 var od = new api.ThirdPartyTrackingUrl.fromJson(o.toJson()); |
| 9557 checkThirdPartyTrackingUrl(od); | 10762 checkThirdPartyTrackingUrl(od); |
| 9558 }); | 10763 }); |
| 9559 }); | 10764 }); |
| 9560 | 10765 |
| 9561 | 10766 |
| 9562 unittest.group("obj-schema-UserDefinedVariableConfiguration", () { | 10767 unittest.group("obj-schema-UserDefinedVariableConfiguration", () { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9647 api.AccountActiveAdSummariesResourceApi res = new api.DfareportingApi(mock
).accountActiveAdSummaries; | 10852 api.AccountActiveAdSummariesResourceApi res = new api.DfareportingApi(mock
).accountActiveAdSummaries; |
| 9648 var arg_profileId = "foo"; | 10853 var arg_profileId = "foo"; |
| 9649 var arg_summaryAccountId = "foo"; | 10854 var arg_summaryAccountId = "foo"; |
| 9650 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10855 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9651 var path = (req.url).path; | 10856 var path = (req.url).path; |
| 9652 var pathOffset = 0; | 10857 var pathOffset = 0; |
| 9653 var index; | 10858 var index; |
| 9654 var subPart; | 10859 var subPart; |
| 9655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10860 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9656 pathOffset += 1; | 10861 pathOffset += 1; |
| 9657 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 10862 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 9658 pathOffset += 18; | 10863 pathOffset += 18; |
| 9659 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 10864 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 9660 pathOffset += 13; | 10865 pathOffset += 13; |
| 9661 index = path.indexOf("/accountActiveAdSummaries/", pathOffset); | 10866 index = path.indexOf("/accountActiveAdSummaries/", pathOffset); |
| 9662 unittest.expect(index >= 0, unittest.isTrue); | 10867 unittest.expect(index >= 0, unittest.isTrue); |
| 9663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 10868 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 9664 pathOffset = index; | 10869 pathOffset = index; |
| 9665 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 10870 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 9666 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/accountActiveAdSummaries/")); | 10871 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/accountActiveAdSummaries/")); |
| 9667 pathOffset += 26; | 10872 pathOffset += 26; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9708 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock)
.accountPermissionGroups; | 10913 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock)
.accountPermissionGroups; |
| 9709 var arg_profileId = "foo"; | 10914 var arg_profileId = "foo"; |
| 9710 var arg_id = "foo"; | 10915 var arg_id = "foo"; |
| 9711 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10916 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9712 var path = (req.url).path; | 10917 var path = (req.url).path; |
| 9713 var pathOffset = 0; | 10918 var pathOffset = 0; |
| 9714 var index; | 10919 var index; |
| 9715 var subPart; | 10920 var subPart; |
| 9716 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10921 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9717 pathOffset += 1; | 10922 pathOffset += 1; |
| 9718 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 10923 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 9719 pathOffset += 18; | 10924 pathOffset += 18; |
| 9720 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 10925 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 9721 pathOffset += 13; | 10926 pathOffset += 13; |
| 9722 index = path.indexOf("/accountPermissionGroups/", pathOffset); | 10927 index = path.indexOf("/accountPermissionGroups/", pathOffset); |
| 9723 unittest.expect(index >= 0, unittest.isTrue); | 10928 unittest.expect(index >= 0, unittest.isTrue); |
| 9724 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 10929 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 9725 pathOffset = index; | 10930 pathOffset = index; |
| 9726 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 10931 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 9727 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/accountPermissionGroups/")); | 10932 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/accountPermissionGroups/")); |
| 9728 pathOffset += 25; | 10933 pathOffset += 25; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9764 var mock = new HttpServerMock(); | 10969 var mock = new HttpServerMock(); |
| 9765 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock)
.accountPermissionGroups; | 10970 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock)
.accountPermissionGroups; |
| 9766 var arg_profileId = "foo"; | 10971 var arg_profileId = "foo"; |
| 9767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10972 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9768 var path = (req.url).path; | 10973 var path = (req.url).path; |
| 9769 var pathOffset = 0; | 10974 var pathOffset = 0; |
| 9770 var index; | 10975 var index; |
| 9771 var subPart; | 10976 var subPart; |
| 9772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10977 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9773 pathOffset += 1; | 10978 pathOffset += 1; |
| 9774 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 10979 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 9775 pathOffset += 18; | 10980 pathOffset += 18; |
| 9776 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 10981 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 9777 pathOffset += 13; | 10982 pathOffset += 13; |
| 9778 index = path.indexOf("/accountPermissionGroups", pathOffset); | 10983 index = path.indexOf("/accountPermissionGroups", pathOffset); |
| 9779 unittest.expect(index >= 0, unittest.isTrue); | 10984 unittest.expect(index >= 0, unittest.isTrue); |
| 9780 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 10985 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 9781 pathOffset = index; | 10986 pathOffset = index; |
| 9782 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 10987 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 9783 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/accountPermissionGroups")); | 10988 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/accountPermissionGroups")); |
| 9784 pathOffset += 24; | 10989 pathOffset += 24; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9822 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco
untPermissions; | 11027 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco
untPermissions; |
| 9823 var arg_profileId = "foo"; | 11028 var arg_profileId = "foo"; |
| 9824 var arg_id = "foo"; | 11029 var arg_id = "foo"; |
| 9825 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11030 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9826 var path = (req.url).path; | 11031 var path = (req.url).path; |
| 9827 var pathOffset = 0; | 11032 var pathOffset = 0; |
| 9828 var index; | 11033 var index; |
| 9829 var subPart; | 11034 var subPart; |
| 9830 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11035 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9831 pathOffset += 1; | 11036 pathOffset += 1; |
| 9832 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11037 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 9833 pathOffset += 18; | 11038 pathOffset += 18; |
| 9834 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11039 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 9835 pathOffset += 13; | 11040 pathOffset += 13; |
| 9836 index = path.indexOf("/accountPermissions/", pathOffset); | 11041 index = path.indexOf("/accountPermissions/", pathOffset); |
| 9837 unittest.expect(index >= 0, unittest.isTrue); | 11042 unittest.expect(index >= 0, unittest.isTrue); |
| 9838 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11043 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 9839 pathOffset = index; | 11044 pathOffset = index; |
| 9840 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11045 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 9841 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountPermissions/")); | 11046 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountPermissions/")); |
| 9842 pathOffset += 20; | 11047 pathOffset += 20; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9878 var mock = new HttpServerMock(); | 11083 var mock = new HttpServerMock(); |
| 9879 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco
untPermissions; | 11084 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco
untPermissions; |
| 9880 var arg_profileId = "foo"; | 11085 var arg_profileId = "foo"; |
| 9881 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11086 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9882 var path = (req.url).path; | 11087 var path = (req.url).path; |
| 9883 var pathOffset = 0; | 11088 var pathOffset = 0; |
| 9884 var index; | 11089 var index; |
| 9885 var subPart; | 11090 var subPart; |
| 9886 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11091 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9887 pathOffset += 1; | 11092 pathOffset += 1; |
| 9888 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11093 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 9889 pathOffset += 18; | 11094 pathOffset += 18; |
| 9890 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11095 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 9891 pathOffset += 13; | 11096 pathOffset += 13; |
| 9892 index = path.indexOf("/accountPermissions", pathOffset); | 11097 index = path.indexOf("/accountPermissions", pathOffset); |
| 9893 unittest.expect(index >= 0, unittest.isTrue); | 11098 unittest.expect(index >= 0, unittest.isTrue); |
| 9894 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11099 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 9895 pathOffset = index; | 11100 pathOffset = index; |
| 9896 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11101 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 9897 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/accountPermissions")); | 11102 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/accountPermissions")); |
| 9898 pathOffset += 19; | 11103 pathOffset += 19; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9936 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; | 11141 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; |
| 9937 var arg_profileId = "foo"; | 11142 var arg_profileId = "foo"; |
| 9938 var arg_id = "foo"; | 11143 var arg_id = "foo"; |
| 9939 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11144 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9940 var path = (req.url).path; | 11145 var path = (req.url).path; |
| 9941 var pathOffset = 0; | 11146 var pathOffset = 0; |
| 9942 var index; | 11147 var index; |
| 9943 var subPart; | 11148 var subPart; |
| 9944 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11149 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9945 pathOffset += 1; | 11150 pathOffset += 1; |
| 9946 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11151 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 9947 pathOffset += 18; | 11152 pathOffset += 18; |
| 9948 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11153 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 9949 pathOffset += 13; | 11154 pathOffset += 13; |
| 9950 index = path.indexOf("/accountUserProfiles/", pathOffset); | 11155 index = path.indexOf("/accountUserProfiles/", pathOffset); |
| 9951 unittest.expect(index >= 0, unittest.isTrue); | 11156 unittest.expect(index >= 0, unittest.isTrue); |
| 9952 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11157 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 9953 pathOffset = index; | 11158 pathOffset = index; |
| 9954 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11159 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 9955 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/accountUserProfiles/")); | 11160 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/accountUserProfiles/")); |
| 9956 pathOffset += 21; | 11161 pathOffset += 21; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 9980 "content-type" : "application/json; charset=utf-8", | 11185 "content-type" : "application/json; charset=utf-8", |
| 9981 }; | 11186 }; |
| 9982 var resp = convert.JSON.encode(buildAccountUserProfile()); | 11187 var resp = convert.JSON.encode(buildAccountUserProfile()); |
| 9983 return new async.Future.value(stringResponse(200, h, resp)); | 11188 return new async.Future.value(stringResponse(200, h, resp)); |
| 9984 }), true); | 11189 }), true); |
| 9985 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUser
Profile response) { | 11190 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUser
Profile response) { |
| 9986 checkAccountUserProfile(response); | 11191 checkAccountUserProfile(response); |
| 9987 }))); | 11192 }))); |
| 9988 }); | 11193 }); |
| 9989 | 11194 |
| 11195 unittest.test("method--insert", () { |
| 11196 |
| 11197 var mock = new HttpServerMock(); |
| 11198 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; |
| 11199 var arg_request = buildAccountUserProfile(); |
| 11200 var arg_profileId = "foo"; |
| 11201 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11202 var obj = new api.AccountUserProfile.fromJson(json); |
| 11203 checkAccountUserProfile(obj); |
| 11204 |
| 11205 var path = (req.url).path; |
| 11206 var pathOffset = 0; |
| 11207 var index; |
| 11208 var subPart; |
| 11209 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11210 pathOffset += 1; |
| 11211 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11212 pathOffset += 18; |
| 11213 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11214 pathOffset += 13; |
| 11215 index = path.indexOf("/accountUserProfiles", pathOffset); |
| 11216 unittest.expect(index >= 0, unittest.isTrue); |
| 11217 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11218 pathOffset = index; |
| 11219 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11220 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); |
| 11221 pathOffset += 20; |
| 11222 |
| 11223 var query = (req.url).query; |
| 11224 var queryOffset = 0; |
| 11225 var queryMap = {}; |
| 11226 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11227 parseBool(n) { |
| 11228 if (n == "true") return true; |
| 11229 if (n == "false") return false; |
| 11230 if (n == null) return null; |
| 11231 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11232 } |
| 11233 if (query.length > 0) { |
| 11234 for (var part in query.split("&")) { |
| 11235 var keyvalue = part.split("="); |
| 11236 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11237 } |
| 11238 } |
| 11239 |
| 11240 |
| 11241 var h = { |
| 11242 "content-type" : "application/json; charset=utf-8", |
| 11243 }; |
| 11244 var resp = convert.JSON.encode(buildAccountUserProfile()); |
| 11245 return new async.Future.value(stringResponse(200, h, resp)); |
| 11246 }), true); |
| 11247 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Acc
ountUserProfile response) { |
| 11248 checkAccountUserProfile(response); |
| 11249 }))); |
| 11250 }); |
| 11251 |
| 9990 unittest.test("method--list", () { | 11252 unittest.test("method--list", () { |
| 9991 | 11253 |
| 9992 var mock = new HttpServerMock(); | 11254 var mock = new HttpServerMock(); |
| 9993 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; | 11255 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; |
| 9994 var arg_profileId = "foo"; | 11256 var arg_profileId = "foo"; |
| 9995 var arg_active = true; | 11257 var arg_active = true; |
| 9996 var arg_ids = buildUnnamed417(); | 11258 var arg_ids = buildUnnamed1480(); |
| 9997 var arg_maxResults = 42; | 11259 var arg_maxResults = 42; |
| 9998 var arg_pageToken = "foo"; | 11260 var arg_pageToken = "foo"; |
| 9999 var arg_searchString = "foo"; | 11261 var arg_searchString = "foo"; |
| 10000 var arg_sortField = "foo"; | 11262 var arg_sortField = "foo"; |
| 10001 var arg_sortOrder = "foo"; | 11263 var arg_sortOrder = "foo"; |
| 10002 var arg_subaccountId = "foo"; | 11264 var arg_subaccountId = "foo"; |
| 10003 var arg_userRoleId = "foo"; | 11265 var arg_userRoleId = "foo"; |
| 10004 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11266 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10005 var path = (req.url).path; | 11267 var path = (req.url).path; |
| 10006 var pathOffset = 0; | 11268 var pathOffset = 0; |
| 10007 var index; | 11269 var index; |
| 10008 var subPart; | 11270 var subPart; |
| 10009 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11271 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10010 pathOffset += 1; | 11272 pathOffset += 1; |
| 10011 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11273 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10012 pathOffset += 18; | 11274 pathOffset += 18; |
| 10013 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11275 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10014 pathOffset += 13; | 11276 pathOffset += 13; |
| 10015 index = path.indexOf("/accountUserProfiles", pathOffset); | 11277 index = path.indexOf("/accountUserProfiles", pathOffset); |
| 10016 unittest.expect(index >= 0, unittest.isTrue); | 11278 unittest.expect(index >= 0, unittest.isTrue); |
| 10017 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11279 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10018 pathOffset = index; | 11280 pathOffset = index; |
| 10019 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11281 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10020 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); | 11282 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); |
| 10021 pathOffset += 20; | 11283 pathOffset += 20; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10068 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11330 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10069 var obj = new api.AccountUserProfile.fromJson(json); | 11331 var obj = new api.AccountUserProfile.fromJson(json); |
| 10070 checkAccountUserProfile(obj); | 11332 checkAccountUserProfile(obj); |
| 10071 | 11333 |
| 10072 var path = (req.url).path; | 11334 var path = (req.url).path; |
| 10073 var pathOffset = 0; | 11335 var pathOffset = 0; |
| 10074 var index; | 11336 var index; |
| 10075 var subPart; | 11337 var subPart; |
| 10076 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11338 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10077 pathOffset += 1; | 11339 pathOffset += 1; |
| 10078 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11340 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10079 pathOffset += 18; | 11341 pathOffset += 18; |
| 10080 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11342 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10081 pathOffset += 13; | 11343 pathOffset += 13; |
| 10082 index = path.indexOf("/accountUserProfiles", pathOffset); | 11344 index = path.indexOf("/accountUserProfiles", pathOffset); |
| 10083 unittest.expect(index >= 0, unittest.isTrue); | 11345 unittest.expect(index >= 0, unittest.isTrue); |
| 10084 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11346 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10085 pathOffset = index; | 11347 pathOffset = index; |
| 10086 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11348 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10087 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); | 11349 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); |
| 10088 pathOffset += 20; | 11350 pathOffset += 20; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10126 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11388 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10127 var obj = new api.AccountUserProfile.fromJson(json); | 11389 var obj = new api.AccountUserProfile.fromJson(json); |
| 10128 checkAccountUserProfile(obj); | 11390 checkAccountUserProfile(obj); |
| 10129 | 11391 |
| 10130 var path = (req.url).path; | 11392 var path = (req.url).path; |
| 10131 var pathOffset = 0; | 11393 var pathOffset = 0; |
| 10132 var index; | 11394 var index; |
| 10133 var subPart; | 11395 var subPart; |
| 10134 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11396 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10135 pathOffset += 1; | 11397 pathOffset += 1; |
| 10136 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11398 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10137 pathOffset += 18; | 11399 pathOffset += 18; |
| 10138 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11400 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10139 pathOffset += 13; | 11401 pathOffset += 13; |
| 10140 index = path.indexOf("/accountUserProfiles", pathOffset); | 11402 index = path.indexOf("/accountUserProfiles", pathOffset); |
| 10141 unittest.expect(index >= 0, unittest.isTrue); | 11403 unittest.expect(index >= 0, unittest.isTrue); |
| 10142 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11404 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10143 pathOffset = index; | 11405 pathOffset = index; |
| 10144 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11406 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10145 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); | 11407 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); |
| 10146 pathOffset += 20; | 11408 pathOffset += 20; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10184 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; | 11446 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; |
| 10185 var arg_profileId = "foo"; | 11447 var arg_profileId = "foo"; |
| 10186 var arg_id = "foo"; | 11448 var arg_id = "foo"; |
| 10187 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11449 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10188 var path = (req.url).path; | 11450 var path = (req.url).path; |
| 10189 var pathOffset = 0; | 11451 var pathOffset = 0; |
| 10190 var index; | 11452 var index; |
| 10191 var subPart; | 11453 var subPart; |
| 10192 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11454 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10193 pathOffset += 1; | 11455 pathOffset += 1; |
| 10194 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11456 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10195 pathOffset += 18; | 11457 pathOffset += 18; |
| 10196 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11458 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10197 pathOffset += 13; | 11459 pathOffset += 13; |
| 10198 index = path.indexOf("/accounts/", pathOffset); | 11460 index = path.indexOf("/accounts/", pathOffset); |
| 10199 unittest.expect(index >= 0, unittest.isTrue); | 11461 unittest.expect(index >= 0, unittest.isTrue); |
| 10200 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11462 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10201 pathOffset = index; | 11463 pathOffset = index; |
| 10202 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11464 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10203 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/accounts/")); | 11465 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/accounts/")); |
| 10204 pathOffset += 10; | 11466 pathOffset += 10; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 10234 checkAccount(response); | 11496 checkAccount(response); |
| 10235 }))); | 11497 }))); |
| 10236 }); | 11498 }); |
| 10237 | 11499 |
| 10238 unittest.test("method--list", () { | 11500 unittest.test("method--list", () { |
| 10239 | 11501 |
| 10240 var mock = new HttpServerMock(); | 11502 var mock = new HttpServerMock(); |
| 10241 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; | 11503 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; |
| 10242 var arg_profileId = "foo"; | 11504 var arg_profileId = "foo"; |
| 10243 var arg_active = true; | 11505 var arg_active = true; |
| 10244 var arg_ids = buildUnnamed418(); | 11506 var arg_ids = buildUnnamed1481(); |
| 10245 var arg_maxResults = 42; | 11507 var arg_maxResults = 42; |
| 10246 var arg_pageToken = "foo"; | 11508 var arg_pageToken = "foo"; |
| 10247 var arg_searchString = "foo"; | 11509 var arg_searchString = "foo"; |
| 10248 var arg_sortField = "foo"; | 11510 var arg_sortField = "foo"; |
| 10249 var arg_sortOrder = "foo"; | 11511 var arg_sortOrder = "foo"; |
| 10250 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11512 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10251 var path = (req.url).path; | 11513 var path = (req.url).path; |
| 10252 var pathOffset = 0; | 11514 var pathOffset = 0; |
| 10253 var index; | 11515 var index; |
| 10254 var subPart; | 11516 var subPart; |
| 10255 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10256 pathOffset += 1; | 11518 pathOffset += 1; |
| 10257 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11519 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10258 pathOffset += 18; | 11520 pathOffset += 18; |
| 10259 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11521 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10260 pathOffset += 13; | 11522 pathOffset += 13; |
| 10261 index = path.indexOf("/accounts", pathOffset); | 11523 index = path.indexOf("/accounts", pathOffset); |
| 10262 unittest.expect(index >= 0, unittest.isTrue); | 11524 unittest.expect(index >= 0, unittest.isTrue); |
| 10263 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11525 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10264 pathOffset = index; | 11526 pathOffset = index; |
| 10265 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11527 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10266 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); | 11528 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); |
| 10267 pathOffset += 9; | 11529 pathOffset += 9; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10312 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10313 var obj = new api.Account.fromJson(json); | 11575 var obj = new api.Account.fromJson(json); |
| 10314 checkAccount(obj); | 11576 checkAccount(obj); |
| 10315 | 11577 |
| 10316 var path = (req.url).path; | 11578 var path = (req.url).path; |
| 10317 var pathOffset = 0; | 11579 var pathOffset = 0; |
| 10318 var index; | 11580 var index; |
| 10319 var subPart; | 11581 var subPart; |
| 10320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10321 pathOffset += 1; | 11583 pathOffset += 1; |
| 10322 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11584 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10323 pathOffset += 18; | 11585 pathOffset += 18; |
| 10324 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11586 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10325 pathOffset += 13; | 11587 pathOffset += 13; |
| 10326 index = path.indexOf("/accounts", pathOffset); | 11588 index = path.indexOf("/accounts", pathOffset); |
| 10327 unittest.expect(index >= 0, unittest.isTrue); | 11589 unittest.expect(index >= 0, unittest.isTrue); |
| 10328 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11590 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10329 pathOffset = index; | 11591 pathOffset = index; |
| 10330 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11592 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10331 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); | 11593 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); |
| 10332 pathOffset += 9; | 11594 pathOffset += 9; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11632 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10371 var obj = new api.Account.fromJson(json); | 11633 var obj = new api.Account.fromJson(json); |
| 10372 checkAccount(obj); | 11634 checkAccount(obj); |
| 10373 | 11635 |
| 10374 var path = (req.url).path; | 11636 var path = (req.url).path; |
| 10375 var pathOffset = 0; | 11637 var pathOffset = 0; |
| 10376 var index; | 11638 var index; |
| 10377 var subPart; | 11639 var subPart; |
| 10378 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11640 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10379 pathOffset += 1; | 11641 pathOffset += 1; |
| 10380 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11642 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10381 pathOffset += 18; | 11643 pathOffset += 18; |
| 10382 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11644 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10383 pathOffset += 13; | 11645 pathOffset += 13; |
| 10384 index = path.indexOf("/accounts", pathOffset); | 11646 index = path.indexOf("/accounts", pathOffset); |
| 10385 unittest.expect(index >= 0, unittest.isTrue); | 11647 unittest.expect(index >= 0, unittest.isTrue); |
| 10386 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11648 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10387 pathOffset = index; | 11649 pathOffset = index; |
| 10388 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11650 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10389 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); | 11651 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); |
| 10390 pathOffset += 9; | 11652 pathOffset += 9; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10428 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; | 11690 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; |
| 10429 var arg_profileId = "foo"; | 11691 var arg_profileId = "foo"; |
| 10430 var arg_id = "foo"; | 11692 var arg_id = "foo"; |
| 10431 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11693 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10432 var path = (req.url).path; | 11694 var path = (req.url).path; |
| 10433 var pathOffset = 0; | 11695 var pathOffset = 0; |
| 10434 var index; | 11696 var index; |
| 10435 var subPart; | 11697 var subPart; |
| 10436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11698 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10437 pathOffset += 1; | 11699 pathOffset += 1; |
| 10438 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11700 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10439 pathOffset += 18; | 11701 pathOffset += 18; |
| 10440 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11702 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10441 pathOffset += 13; | 11703 pathOffset += 13; |
| 10442 index = path.indexOf("/ads/", pathOffset); | 11704 index = path.indexOf("/ads/", pathOffset); |
| 10443 unittest.expect(index >= 0, unittest.isTrue); | 11705 unittest.expect(index >= 0, unittest.isTrue); |
| 10444 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11706 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10445 pathOffset = index; | 11707 pathOffset = index; |
| 10446 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11708 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10447 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/ads/")); | 11709 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/ads/")); |
| 10448 pathOffset += 5; | 11710 pathOffset += 5; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10488 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11750 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10489 var obj = new api.Ad.fromJson(json); | 11751 var obj = new api.Ad.fromJson(json); |
| 10490 checkAd(obj); | 11752 checkAd(obj); |
| 10491 | 11753 |
| 10492 var path = (req.url).path; | 11754 var path = (req.url).path; |
| 10493 var pathOffset = 0; | 11755 var pathOffset = 0; |
| 10494 var index; | 11756 var index; |
| 10495 var subPart; | 11757 var subPart; |
| 10496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10497 pathOffset += 1; | 11759 pathOffset += 1; |
| 10498 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11760 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10499 pathOffset += 18; | 11761 pathOffset += 18; |
| 10500 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11762 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10501 pathOffset += 13; | 11763 pathOffset += 13; |
| 10502 index = path.indexOf("/ads", pathOffset); | 11764 index = path.indexOf("/ads", pathOffset); |
| 10503 unittest.expect(index >= 0, unittest.isTrue); | 11765 unittest.expect(index >= 0, unittest.isTrue); |
| 10504 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11766 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10505 pathOffset = index; | 11767 pathOffset = index; |
| 10506 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11768 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10507 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); | 11769 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); |
| 10508 pathOffset += 4; | 11770 pathOffset += 4; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 10537 }); | 11799 }); |
| 10538 | 11800 |
| 10539 unittest.test("method--list", () { | 11801 unittest.test("method--list", () { |
| 10540 | 11802 |
| 10541 var mock = new HttpServerMock(); | 11803 var mock = new HttpServerMock(); |
| 10542 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; | 11804 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; |
| 10543 var arg_profileId = "foo"; | 11805 var arg_profileId = "foo"; |
| 10544 var arg_active = true; | 11806 var arg_active = true; |
| 10545 var arg_advertiserId = "foo"; | 11807 var arg_advertiserId = "foo"; |
| 10546 var arg_archived = true; | 11808 var arg_archived = true; |
| 10547 var arg_audienceSegmentIds = buildUnnamed419(); | 11809 var arg_audienceSegmentIds = buildUnnamed1482(); |
| 10548 var arg_campaignIds = buildUnnamed420(); | 11810 var arg_campaignIds = buildUnnamed1483(); |
| 10549 var arg_compatibility = "foo"; | 11811 var arg_compatibility = "foo"; |
| 10550 var arg_creativeIds = buildUnnamed421(); | 11812 var arg_creativeIds = buildUnnamed1484(); |
| 10551 var arg_creativeOptimizationConfigurationIds = buildUnnamed422(); | 11813 var arg_creativeOptimizationConfigurationIds = buildUnnamed1485(); |
| 10552 var arg_creativeType = "foo"; | 11814 var arg_creativeType = "foo"; |
| 10553 var arg_dynamicClickTracker = true; | 11815 var arg_dynamicClickTracker = true; |
| 10554 var arg_ids = buildUnnamed423(); | 11816 var arg_ids = buildUnnamed1486(); |
| 10555 var arg_landingPageIds = buildUnnamed424(); | 11817 var arg_landingPageIds = buildUnnamed1487(); |
| 10556 var arg_maxResults = 42; | 11818 var arg_maxResults = 42; |
| 10557 var arg_overriddenEventTagId = "foo"; | 11819 var arg_overriddenEventTagId = "foo"; |
| 10558 var arg_pageToken = "foo"; | 11820 var arg_pageToken = "foo"; |
| 10559 var arg_placementIds = buildUnnamed425(); | 11821 var arg_placementIds = buildUnnamed1488(); |
| 10560 var arg_remarketingListIds = buildUnnamed426(); | 11822 var arg_remarketingListIds = buildUnnamed1489(); |
| 10561 var arg_searchString = "foo"; | 11823 var arg_searchString = "foo"; |
| 10562 var arg_sizeIds = buildUnnamed427(); | 11824 var arg_sizeIds = buildUnnamed1490(); |
| 10563 var arg_sortField = "foo"; | 11825 var arg_sortField = "foo"; |
| 10564 var arg_sortOrder = "foo"; | 11826 var arg_sortOrder = "foo"; |
| 10565 var arg_sslCompliant = true; | 11827 var arg_sslCompliant = true; |
| 10566 var arg_sslRequired = true; | 11828 var arg_sslRequired = true; |
| 10567 var arg_type = buildUnnamed428(); | 11829 var arg_type = buildUnnamed1491(); |
| 10568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11830 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10569 var path = (req.url).path; | 11831 var path = (req.url).path; |
| 10570 var pathOffset = 0; | 11832 var pathOffset = 0; |
| 10571 var index; | 11833 var index; |
| 10572 var subPart; | 11834 var subPart; |
| 10573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11835 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10574 pathOffset += 1; | 11836 pathOffset += 1; |
| 10575 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11837 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10576 pathOffset += 18; | 11838 pathOffset += 18; |
| 10577 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11839 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10578 pathOffset += 13; | 11840 pathOffset += 13; |
| 10579 index = path.indexOf("/ads", pathOffset); | 11841 index = path.indexOf("/ads", pathOffset); |
| 10580 unittest.expect(index >= 0, unittest.isTrue); | 11842 unittest.expect(index >= 0, unittest.isTrue); |
| 10581 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11843 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10582 pathOffset = index; | 11844 pathOffset = index; |
| 10583 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11845 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10584 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); | 11846 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); |
| 10585 pathOffset += 4; | 11847 pathOffset += 4; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10647 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11909 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10648 var obj = new api.Ad.fromJson(json); | 11910 var obj = new api.Ad.fromJson(json); |
| 10649 checkAd(obj); | 11911 checkAd(obj); |
| 10650 | 11912 |
| 10651 var path = (req.url).path; | 11913 var path = (req.url).path; |
| 10652 var pathOffset = 0; | 11914 var pathOffset = 0; |
| 10653 var index; | 11915 var index; |
| 10654 var subPart; | 11916 var subPart; |
| 10655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11917 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10656 pathOffset += 1; | 11918 pathOffset += 1; |
| 10657 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11919 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10658 pathOffset += 18; | 11920 pathOffset += 18; |
| 10659 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11921 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10660 pathOffset += 13; | 11922 pathOffset += 13; |
| 10661 index = path.indexOf("/ads", pathOffset); | 11923 index = path.indexOf("/ads", pathOffset); |
| 10662 unittest.expect(index >= 0, unittest.isTrue); | 11924 unittest.expect(index >= 0, unittest.isTrue); |
| 10663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11925 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10664 pathOffset = index; | 11926 pathOffset = index; |
| 10665 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11927 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10666 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); | 11928 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); |
| 10667 pathOffset += 4; | 11929 pathOffset += 4; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10705 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11967 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10706 var obj = new api.Ad.fromJson(json); | 11968 var obj = new api.Ad.fromJson(json); |
| 10707 checkAd(obj); | 11969 checkAd(obj); |
| 10708 | 11970 |
| 10709 var path = (req.url).path; | 11971 var path = (req.url).path; |
| 10710 var pathOffset = 0; | 11972 var pathOffset = 0; |
| 10711 var index; | 11973 var index; |
| 10712 var subPart; | 11974 var subPart; |
| 10713 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11975 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10714 pathOffset += 1; | 11976 pathOffset += 1; |
| 10715 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11977 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10716 pathOffset += 18; | 11978 pathOffset += 18; |
| 10717 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11979 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10718 pathOffset += 13; | 11980 pathOffset += 13; |
| 10719 index = path.indexOf("/ads", pathOffset); | 11981 index = path.indexOf("/ads", pathOffset); |
| 10720 unittest.expect(index >= 0, unittest.isTrue); | 11982 unittest.expect(index >= 0, unittest.isTrue); |
| 10721 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11983 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10722 pathOffset = index; | 11984 pathOffset = index; |
| 10723 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11985 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10724 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); | 11986 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); |
| 10725 pathOffset += 4; | 11987 pathOffset += 4; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10763 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; | 12025 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; |
| 10764 var arg_profileId = "foo"; | 12026 var arg_profileId = "foo"; |
| 10765 var arg_id = "foo"; | 12027 var arg_id = "foo"; |
| 10766 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12028 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10767 var path = (req.url).path; | 12029 var path = (req.url).path; |
| 10768 var pathOffset = 0; | 12030 var pathOffset = 0; |
| 10769 var index; | 12031 var index; |
| 10770 var subPart; | 12032 var subPart; |
| 10771 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10772 pathOffset += 1; | 12034 pathOffset += 1; |
| 10773 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12035 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10774 pathOffset += 18; | 12036 pathOffset += 18; |
| 10775 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12037 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10776 pathOffset += 13; | 12038 pathOffset += 13; |
| 10777 index = path.indexOf("/advertiserGroups/", pathOffset); | 12039 index = path.indexOf("/advertiserGroups/", pathOffset); |
| 10778 unittest.expect(index >= 0, unittest.isTrue); | 12040 unittest.expect(index >= 0, unittest.isTrue); |
| 10779 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12041 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10780 pathOffset = index; | 12042 pathOffset = index; |
| 10781 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12043 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10782 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/advertiserGroups/")); | 12044 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/advertiserGroups/")); |
| 10783 pathOffset += 18; | 12045 pathOffset += 18; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10818 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; | 12080 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; |
| 10819 var arg_profileId = "foo"; | 12081 var arg_profileId = "foo"; |
| 10820 var arg_id = "foo"; | 12082 var arg_id = "foo"; |
| 10821 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12083 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10822 var path = (req.url).path; | 12084 var path = (req.url).path; |
| 10823 var pathOffset = 0; | 12085 var pathOffset = 0; |
| 10824 var index; | 12086 var index; |
| 10825 var subPart; | 12087 var subPart; |
| 10826 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12088 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10827 pathOffset += 1; | 12089 pathOffset += 1; |
| 10828 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12090 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10829 pathOffset += 18; | 12091 pathOffset += 18; |
| 10830 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12092 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10831 pathOffset += 13; | 12093 pathOffset += 13; |
| 10832 index = path.indexOf("/advertiserGroups/", pathOffset); | 12094 index = path.indexOf("/advertiserGroups/", pathOffset); |
| 10833 unittest.expect(index >= 0, unittest.isTrue); | 12095 unittest.expect(index >= 0, unittest.isTrue); |
| 10834 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12096 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10835 pathOffset = index; | 12097 pathOffset = index; |
| 10836 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12098 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10837 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/advertiserGroups/")); | 12099 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/advertiserGroups/")); |
| 10838 pathOffset += 18; | 12100 pathOffset += 18; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10878 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12140 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10879 var obj = new api.AdvertiserGroup.fromJson(json); | 12141 var obj = new api.AdvertiserGroup.fromJson(json); |
| 10880 checkAdvertiserGroup(obj); | 12142 checkAdvertiserGroup(obj); |
| 10881 | 12143 |
| 10882 var path = (req.url).path; | 12144 var path = (req.url).path; |
| 10883 var pathOffset = 0; | 12145 var pathOffset = 0; |
| 10884 var index; | 12146 var index; |
| 10885 var subPart; | 12147 var subPart; |
| 10886 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12148 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10887 pathOffset += 1; | 12149 pathOffset += 1; |
| 10888 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12150 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10889 pathOffset += 18; | 12151 pathOffset += 18; |
| 10890 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12152 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10891 pathOffset += 13; | 12153 pathOffset += 13; |
| 10892 index = path.indexOf("/advertiserGroups", pathOffset); | 12154 index = path.indexOf("/advertiserGroups", pathOffset); |
| 10893 unittest.expect(index >= 0, unittest.isTrue); | 12155 unittest.expect(index >= 0, unittest.isTrue); |
| 10894 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12156 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10895 pathOffset = index; | 12157 pathOffset = index; |
| 10896 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12158 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10897 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); | 12159 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); |
| 10898 pathOffset += 17; | 12160 pathOffset += 17; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 10924 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv
ertiserGroup response) { | 12186 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv
ertiserGroup response) { |
| 10925 checkAdvertiserGroup(response); | 12187 checkAdvertiserGroup(response); |
| 10926 }))); | 12188 }))); |
| 10927 }); | 12189 }); |
| 10928 | 12190 |
| 10929 unittest.test("method--list", () { | 12191 unittest.test("method--list", () { |
| 10930 | 12192 |
| 10931 var mock = new HttpServerMock(); | 12193 var mock = new HttpServerMock(); |
| 10932 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; | 12194 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; |
| 10933 var arg_profileId = "foo"; | 12195 var arg_profileId = "foo"; |
| 10934 var arg_ids = buildUnnamed429(); | 12196 var arg_ids = buildUnnamed1492(); |
| 10935 var arg_maxResults = 42; | 12197 var arg_maxResults = 42; |
| 10936 var arg_pageToken = "foo"; | 12198 var arg_pageToken = "foo"; |
| 10937 var arg_searchString = "foo"; | 12199 var arg_searchString = "foo"; |
| 10938 var arg_sortField = "foo"; | 12200 var arg_sortField = "foo"; |
| 10939 var arg_sortOrder = "foo"; | 12201 var arg_sortOrder = "foo"; |
| 10940 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12202 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10941 var path = (req.url).path; | 12203 var path = (req.url).path; |
| 10942 var pathOffset = 0; | 12204 var pathOffset = 0; |
| 10943 var index; | 12205 var index; |
| 10944 var subPart; | 12206 var subPart; |
| 10945 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12207 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10946 pathOffset += 1; | 12208 pathOffset += 1; |
| 10947 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12209 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 10948 pathOffset += 18; | 12210 pathOffset += 18; |
| 10949 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12211 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 10950 pathOffset += 13; | 12212 pathOffset += 13; |
| 10951 index = path.indexOf("/advertiserGroups", pathOffset); | 12213 index = path.indexOf("/advertiserGroups", pathOffset); |
| 10952 unittest.expect(index >= 0, unittest.isTrue); | 12214 unittest.expect(index >= 0, unittest.isTrue); |
| 10953 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12215 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 10954 pathOffset = index; | 12216 pathOffset = index; |
| 10955 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12217 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 10956 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); | 12218 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); |
| 10957 pathOffset += 17; | 12219 pathOffset += 17; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11001 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12263 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11002 var obj = new api.AdvertiserGroup.fromJson(json); | 12264 var obj = new api.AdvertiserGroup.fromJson(json); |
| 11003 checkAdvertiserGroup(obj); | 12265 checkAdvertiserGroup(obj); |
| 11004 | 12266 |
| 11005 var path = (req.url).path; | 12267 var path = (req.url).path; |
| 11006 var pathOffset = 0; | 12268 var pathOffset = 0; |
| 11007 var index; | 12269 var index; |
| 11008 var subPart; | 12270 var subPart; |
| 11009 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12271 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11010 pathOffset += 1; | 12272 pathOffset += 1; |
| 11011 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12273 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11012 pathOffset += 18; | 12274 pathOffset += 18; |
| 11013 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12275 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11014 pathOffset += 13; | 12276 pathOffset += 13; |
| 11015 index = path.indexOf("/advertiserGroups", pathOffset); | 12277 index = path.indexOf("/advertiserGroups", pathOffset); |
| 11016 unittest.expect(index >= 0, unittest.isTrue); | 12278 unittest.expect(index >= 0, unittest.isTrue); |
| 11017 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12279 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11018 pathOffset = index; | 12280 pathOffset = index; |
| 11019 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12281 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11020 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); | 12282 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); |
| 11021 pathOffset += 17; | 12283 pathOffset += 17; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11059 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12321 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11060 var obj = new api.AdvertiserGroup.fromJson(json); | 12322 var obj = new api.AdvertiserGroup.fromJson(json); |
| 11061 checkAdvertiserGroup(obj); | 12323 checkAdvertiserGroup(obj); |
| 11062 | 12324 |
| 11063 var path = (req.url).path; | 12325 var path = (req.url).path; |
| 11064 var pathOffset = 0; | 12326 var pathOffset = 0; |
| 11065 var index; | 12327 var index; |
| 11066 var subPart; | 12328 var subPart; |
| 11067 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12329 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11068 pathOffset += 1; | 12330 pathOffset += 1; |
| 11069 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12331 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11070 pathOffset += 18; | 12332 pathOffset += 18; |
| 11071 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12333 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11072 pathOffset += 13; | 12334 pathOffset += 13; |
| 11073 index = path.indexOf("/advertiserGroups", pathOffset); | 12335 index = path.indexOf("/advertiserGroups", pathOffset); |
| 11074 unittest.expect(index >= 0, unittest.isTrue); | 12336 unittest.expect(index >= 0, unittest.isTrue); |
| 11075 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12337 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11076 pathOffset = index; | 12338 pathOffset = index; |
| 11077 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12339 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11078 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); | 12340 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); |
| 11079 pathOffset += 17; | 12341 pathOffset += 17; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11117 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers
; | 12379 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers
; |
| 11118 var arg_profileId = "foo"; | 12380 var arg_profileId = "foo"; |
| 11119 var arg_id = "foo"; | 12381 var arg_id = "foo"; |
| 11120 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12382 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11121 var path = (req.url).path; | 12383 var path = (req.url).path; |
| 11122 var pathOffset = 0; | 12384 var pathOffset = 0; |
| 11123 var index; | 12385 var index; |
| 11124 var subPart; | 12386 var subPart; |
| 11125 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12387 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11126 pathOffset += 1; | 12388 pathOffset += 1; |
| 11127 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12389 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11128 pathOffset += 18; | 12390 pathOffset += 18; |
| 11129 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12391 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11130 pathOffset += 13; | 12392 pathOffset += 13; |
| 11131 index = path.indexOf("/advertisers/", pathOffset); | 12393 index = path.indexOf("/advertisers/", pathOffset); |
| 11132 unittest.expect(index >= 0, unittest.isTrue); | 12394 unittest.expect(index >= 0, unittest.isTrue); |
| 11133 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12395 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11134 pathOffset = index; | 12396 pathOffset = index; |
| 11135 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12397 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11136 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/advertisers/")); | 12398 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/advertisers/")); |
| 11137 pathOffset += 13; | 12399 pathOffset += 13; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11177 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12439 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11178 var obj = new api.Advertiser.fromJson(json); | 12440 var obj = new api.Advertiser.fromJson(json); |
| 11179 checkAdvertiser(obj); | 12441 checkAdvertiser(obj); |
| 11180 | 12442 |
| 11181 var path = (req.url).path; | 12443 var path = (req.url).path; |
| 11182 var pathOffset = 0; | 12444 var pathOffset = 0; |
| 11183 var index; | 12445 var index; |
| 11184 var subPart; | 12446 var subPart; |
| 11185 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12447 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11186 pathOffset += 1; | 12448 pathOffset += 1; |
| 11187 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12449 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11188 pathOffset += 18; | 12450 pathOffset += 18; |
| 11189 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12451 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11190 pathOffset += 13; | 12452 pathOffset += 13; |
| 11191 index = path.indexOf("/advertisers", pathOffset); | 12453 index = path.indexOf("/advertisers", pathOffset); |
| 11192 unittest.expect(index >= 0, unittest.isTrue); | 12454 unittest.expect(index >= 0, unittest.isTrue); |
| 11193 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12455 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11194 pathOffset = index; | 12456 pathOffset = index; |
| 11195 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12457 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11196 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); | 12458 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); |
| 11197 pathOffset += 12; | 12459 pathOffset += 12; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 11223 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv
ertiser response) { | 12485 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv
ertiser response) { |
| 11224 checkAdvertiser(response); | 12486 checkAdvertiser(response); |
| 11225 }))); | 12487 }))); |
| 11226 }); | 12488 }); |
| 11227 | 12489 |
| 11228 unittest.test("method--list", () { | 12490 unittest.test("method--list", () { |
| 11229 | 12491 |
| 11230 var mock = new HttpServerMock(); | 12492 var mock = new HttpServerMock(); |
| 11231 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers
; | 12493 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers
; |
| 11232 var arg_profileId = "foo"; | 12494 var arg_profileId = "foo"; |
| 11233 var arg_advertiserGroupIds = buildUnnamed430(); | 12495 var arg_advertiserGroupIds = buildUnnamed1493(); |
| 11234 var arg_floodlightConfigurationIds = buildUnnamed431(); | 12496 var arg_floodlightConfigurationIds = buildUnnamed1494(); |
| 11235 var arg_ids = buildUnnamed432(); | 12497 var arg_ids = buildUnnamed1495(); |
| 11236 var arg_includeAdvertisersWithoutGroupsOnly = true; | 12498 var arg_includeAdvertisersWithoutGroupsOnly = true; |
| 11237 var arg_maxResults = 42; | 12499 var arg_maxResults = 42; |
| 11238 var arg_onlyParent = true; | 12500 var arg_onlyParent = true; |
| 11239 var arg_pageToken = "foo"; | 12501 var arg_pageToken = "foo"; |
| 11240 var arg_searchString = "foo"; | 12502 var arg_searchString = "foo"; |
| 11241 var arg_sortField = "foo"; | 12503 var arg_sortField = "foo"; |
| 11242 var arg_sortOrder = "foo"; | 12504 var arg_sortOrder = "foo"; |
| 11243 var arg_status = "foo"; | 12505 var arg_status = "foo"; |
| 11244 var arg_subaccountId = "foo"; | 12506 var arg_subaccountId = "foo"; |
| 11245 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12507 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11246 var path = (req.url).path; | 12508 var path = (req.url).path; |
| 11247 var pathOffset = 0; | 12509 var pathOffset = 0; |
| 11248 var index; | 12510 var index; |
| 11249 var subPart; | 12511 var subPart; |
| 11250 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12512 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11251 pathOffset += 1; | 12513 pathOffset += 1; |
| 11252 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12514 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11253 pathOffset += 18; | 12515 pathOffset += 18; |
| 11254 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12516 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11255 pathOffset += 13; | 12517 pathOffset += 13; |
| 11256 index = path.indexOf("/advertisers", pathOffset); | 12518 index = path.indexOf("/advertisers", pathOffset); |
| 11257 unittest.expect(index >= 0, unittest.isTrue); | 12519 unittest.expect(index >= 0, unittest.isTrue); |
| 11258 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12520 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11259 pathOffset = index; | 12521 pathOffset = index; |
| 11260 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12522 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11261 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); | 12523 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); |
| 11262 pathOffset += 12; | 12524 pathOffset += 12; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11312 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11313 var obj = new api.Advertiser.fromJson(json); | 12575 var obj = new api.Advertiser.fromJson(json); |
| 11314 checkAdvertiser(obj); | 12576 checkAdvertiser(obj); |
| 11315 | 12577 |
| 11316 var path = (req.url).path; | 12578 var path = (req.url).path; |
| 11317 var pathOffset = 0; | 12579 var pathOffset = 0; |
| 11318 var index; | 12580 var index; |
| 11319 var subPart; | 12581 var subPart; |
| 11320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11321 pathOffset += 1; | 12583 pathOffset += 1; |
| 11322 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12584 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11323 pathOffset += 18; | 12585 pathOffset += 18; |
| 11324 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12586 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11325 pathOffset += 13; | 12587 pathOffset += 13; |
| 11326 index = path.indexOf("/advertisers", pathOffset); | 12588 index = path.indexOf("/advertisers", pathOffset); |
| 11327 unittest.expect(index >= 0, unittest.isTrue); | 12589 unittest.expect(index >= 0, unittest.isTrue); |
| 11328 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12590 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11329 pathOffset = index; | 12591 pathOffset = index; |
| 11330 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12592 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11331 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); | 12593 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); |
| 11332 pathOffset += 12; | 12594 pathOffset += 12; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12632 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11371 var obj = new api.Advertiser.fromJson(json); | 12633 var obj = new api.Advertiser.fromJson(json); |
| 11372 checkAdvertiser(obj); | 12634 checkAdvertiser(obj); |
| 11373 | 12635 |
| 11374 var path = (req.url).path; | 12636 var path = (req.url).path; |
| 11375 var pathOffset = 0; | 12637 var pathOffset = 0; |
| 11376 var index; | 12638 var index; |
| 11377 var subPart; | 12639 var subPart; |
| 11378 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12640 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11379 pathOffset += 1; | 12641 pathOffset += 1; |
| 11380 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12642 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11381 pathOffset += 18; | 12643 pathOffset += 18; |
| 11382 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12644 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11383 pathOffset += 13; | 12645 pathOffset += 13; |
| 11384 index = path.indexOf("/advertisers", pathOffset); | 12646 index = path.indexOf("/advertisers", pathOffset); |
| 11385 unittest.expect(index >= 0, unittest.isTrue); | 12647 unittest.expect(index >= 0, unittest.isTrue); |
| 11386 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12648 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11387 pathOffset = index; | 12649 pathOffset = index; |
| 11388 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12650 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11389 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); | 12651 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); |
| 11390 pathOffset += 12; | 12652 pathOffset += 12; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11427 var mock = new HttpServerMock(); | 12689 var mock = new HttpServerMock(); |
| 11428 api.BrowsersResourceApi res = new api.DfareportingApi(mock).browsers; | 12690 api.BrowsersResourceApi res = new api.DfareportingApi(mock).browsers; |
| 11429 var arg_profileId = "foo"; | 12691 var arg_profileId = "foo"; |
| 11430 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11431 var path = (req.url).path; | 12693 var path = (req.url).path; |
| 11432 var pathOffset = 0; | 12694 var pathOffset = 0; |
| 11433 var index; | 12695 var index; |
| 11434 var subPart; | 12696 var subPart; |
| 11435 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11436 pathOffset += 1; | 12698 pathOffset += 1; |
| 11437 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12699 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11438 pathOffset += 18; | 12700 pathOffset += 18; |
| 11439 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12701 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11440 pathOffset += 13; | 12702 pathOffset += 13; |
| 11441 index = path.indexOf("/browsers", pathOffset); | 12703 index = path.indexOf("/browsers", pathOffset); |
| 11442 unittest.expect(index >= 0, unittest.isTrue); | 12704 unittest.expect(index >= 0, unittest.isTrue); |
| 11443 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12705 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11444 pathOffset = index; | 12706 pathOffset = index; |
| 11445 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12707 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11446 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/browsers")); | 12708 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/browsers")); |
| 11447 pathOffset += 9; | 12709 pathOffset += 9; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11489 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12751 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11490 var obj = new api.CampaignCreativeAssociation.fromJson(json); | 12752 var obj = new api.CampaignCreativeAssociation.fromJson(json); |
| 11491 checkCampaignCreativeAssociation(obj); | 12753 checkCampaignCreativeAssociation(obj); |
| 11492 | 12754 |
| 11493 var path = (req.url).path; | 12755 var path = (req.url).path; |
| 11494 var pathOffset = 0; | 12756 var pathOffset = 0; |
| 11495 var index; | 12757 var index; |
| 11496 var subPart; | 12758 var subPart; |
| 11497 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11498 pathOffset += 1; | 12760 pathOffset += 1; |
| 11499 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12761 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11500 pathOffset += 18; | 12762 pathOffset += 18; |
| 11501 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12763 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11502 pathOffset += 13; | 12764 pathOffset += 13; |
| 11503 index = path.indexOf("/campaigns/", pathOffset); | 12765 index = path.indexOf("/campaigns/", pathOffset); |
| 11504 unittest.expect(index >= 0, unittest.isTrue); | 12766 unittest.expect(index >= 0, unittest.isTrue); |
| 11505 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12767 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11506 pathOffset = index; | 12768 pathOffset = index; |
| 11507 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12769 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11508 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 12770 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 11509 pathOffset += 11; | 12771 pathOffset += 11; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11553 var arg_maxResults = 42; | 12815 var arg_maxResults = 42; |
| 11554 var arg_pageToken = "foo"; | 12816 var arg_pageToken = "foo"; |
| 11555 var arg_sortOrder = "foo"; | 12817 var arg_sortOrder = "foo"; |
| 11556 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12818 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11557 var path = (req.url).path; | 12819 var path = (req.url).path; |
| 11558 var pathOffset = 0; | 12820 var pathOffset = 0; |
| 11559 var index; | 12821 var index; |
| 11560 var subPart; | 12822 var subPart; |
| 11561 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12823 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11562 pathOffset += 1; | 12824 pathOffset += 1; |
| 11563 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12825 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11564 pathOffset += 18; | 12826 pathOffset += 18; |
| 11565 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12827 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11566 pathOffset += 13; | 12828 pathOffset += 13; |
| 11567 index = path.indexOf("/campaigns/", pathOffset); | 12829 index = path.indexOf("/campaigns/", pathOffset); |
| 11568 unittest.expect(index >= 0, unittest.isTrue); | 12830 unittest.expect(index >= 0, unittest.isTrue); |
| 11569 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12831 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11570 pathOffset = index; | 12832 pathOffset = index; |
| 11571 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12833 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11572 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 12834 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 11573 pathOffset += 11; | 12835 pathOffset += 11; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11621 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; | 12883 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; |
| 11622 var arg_profileId = "foo"; | 12884 var arg_profileId = "foo"; |
| 11623 var arg_id = "foo"; | 12885 var arg_id = "foo"; |
| 11624 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12886 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11625 var path = (req.url).path; | 12887 var path = (req.url).path; |
| 11626 var pathOffset = 0; | 12888 var pathOffset = 0; |
| 11627 var index; | 12889 var index; |
| 11628 var subPart; | 12890 var subPart; |
| 11629 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12891 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11630 pathOffset += 1; | 12892 pathOffset += 1; |
| 11631 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12893 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11632 pathOffset += 18; | 12894 pathOffset += 18; |
| 11633 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12895 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11634 pathOffset += 13; | 12896 pathOffset += 13; |
| 11635 index = path.indexOf("/campaigns/", pathOffset); | 12897 index = path.indexOf("/campaigns/", pathOffset); |
| 11636 unittest.expect(index >= 0, unittest.isTrue); | 12898 unittest.expect(index >= 0, unittest.isTrue); |
| 11637 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12899 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11638 pathOffset = index; | 12900 pathOffset = index; |
| 11639 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12901 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11640 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 12902 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 11641 pathOffset += 11; | 12903 pathOffset += 11; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11683 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12945 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11684 var obj = new api.Campaign.fromJson(json); | 12946 var obj = new api.Campaign.fromJson(json); |
| 11685 checkCampaign(obj); | 12947 checkCampaign(obj); |
| 11686 | 12948 |
| 11687 var path = (req.url).path; | 12949 var path = (req.url).path; |
| 11688 var pathOffset = 0; | 12950 var pathOffset = 0; |
| 11689 var index; | 12951 var index; |
| 11690 var subPart; | 12952 var subPart; |
| 11691 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12953 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11692 pathOffset += 1; | 12954 pathOffset += 1; |
| 11693 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12955 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11694 pathOffset += 18; | 12956 pathOffset += 18; |
| 11695 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12957 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11696 pathOffset += 13; | 12958 pathOffset += 13; |
| 11697 index = path.indexOf("/campaigns", pathOffset); | 12959 index = path.indexOf("/campaigns", pathOffset); |
| 11698 unittest.expect(index >= 0, unittest.isTrue); | 12960 unittest.expect(index >= 0, unittest.isTrue); |
| 11699 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12961 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11700 pathOffset = index; | 12962 pathOffset = index; |
| 11701 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12963 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11702 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); | 12964 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); |
| 11703 pathOffset += 10; | 12965 pathOffset += 10; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 11731 res.insert(arg_request, arg_profileId, arg_defaultLandingPageName, arg_def
aultLandingPageUrl).then(unittest.expectAsync(((api.Campaign response) { | 12993 res.insert(arg_request, arg_profileId, arg_defaultLandingPageName, arg_def
aultLandingPageUrl).then(unittest.expectAsync(((api.Campaign response) { |
| 11732 checkCampaign(response); | 12994 checkCampaign(response); |
| 11733 }))); | 12995 }))); |
| 11734 }); | 12996 }); |
| 11735 | 12997 |
| 11736 unittest.test("method--list", () { | 12998 unittest.test("method--list", () { |
| 11737 | 12999 |
| 11738 var mock = new HttpServerMock(); | 13000 var mock = new HttpServerMock(); |
| 11739 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; | 13001 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; |
| 11740 var arg_profileId = "foo"; | 13002 var arg_profileId = "foo"; |
| 11741 var arg_advertiserGroupIds = buildUnnamed433(); | 13003 var arg_advertiserGroupIds = buildUnnamed1496(); |
| 11742 var arg_advertiserIds = buildUnnamed434(); | 13004 var arg_advertiserIds = buildUnnamed1497(); |
| 11743 var arg_archived = true; | 13005 var arg_archived = true; |
| 11744 var arg_atLeastOneOptimizationActivity = true; | 13006 var arg_atLeastOneOptimizationActivity = true; |
| 11745 var arg_excludedIds = buildUnnamed435(); | 13007 var arg_excludedIds = buildUnnamed1498(); |
| 11746 var arg_ids = buildUnnamed436(); | 13008 var arg_ids = buildUnnamed1499(); |
| 11747 var arg_maxResults = 42; | 13009 var arg_maxResults = 42; |
| 11748 var arg_overriddenEventTagId = "foo"; | 13010 var arg_overriddenEventTagId = "foo"; |
| 11749 var arg_pageToken = "foo"; | 13011 var arg_pageToken = "foo"; |
| 11750 var arg_searchString = "foo"; | 13012 var arg_searchString = "foo"; |
| 11751 var arg_sortField = "foo"; | 13013 var arg_sortField = "foo"; |
| 11752 var arg_sortOrder = "foo"; | 13014 var arg_sortOrder = "foo"; |
| 11753 var arg_subaccountId = "foo"; | 13015 var arg_subaccountId = "foo"; |
| 11754 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13016 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11755 var path = (req.url).path; | 13017 var path = (req.url).path; |
| 11756 var pathOffset = 0; | 13018 var pathOffset = 0; |
| 11757 var index; | 13019 var index; |
| 11758 var subPart; | 13020 var subPart; |
| 11759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11760 pathOffset += 1; | 13022 pathOffset += 1; |
| 11761 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13023 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11762 pathOffset += 18; | 13024 pathOffset += 18; |
| 11763 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13025 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11764 pathOffset += 13; | 13026 pathOffset += 13; |
| 11765 index = path.indexOf("/campaigns", pathOffset); | 13027 index = path.indexOf("/campaigns", pathOffset); |
| 11766 unittest.expect(index >= 0, unittest.isTrue); | 13028 unittest.expect(index >= 0, unittest.isTrue); |
| 11767 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13029 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11768 pathOffset = index; | 13030 pathOffset = index; |
| 11769 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13031 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11770 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); | 13032 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); |
| 11771 pathOffset += 10; | 13033 pathOffset += 10; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11822 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13084 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11823 var obj = new api.Campaign.fromJson(json); | 13085 var obj = new api.Campaign.fromJson(json); |
| 11824 checkCampaign(obj); | 13086 checkCampaign(obj); |
| 11825 | 13087 |
| 11826 var path = (req.url).path; | 13088 var path = (req.url).path; |
| 11827 var pathOffset = 0; | 13089 var pathOffset = 0; |
| 11828 var index; | 13090 var index; |
| 11829 var subPart; | 13091 var subPart; |
| 11830 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13092 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11831 pathOffset += 1; | 13093 pathOffset += 1; |
| 11832 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13094 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11833 pathOffset += 18; | 13095 pathOffset += 18; |
| 11834 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13096 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11835 pathOffset += 13; | 13097 pathOffset += 13; |
| 11836 index = path.indexOf("/campaigns", pathOffset); | 13098 index = path.indexOf("/campaigns", pathOffset); |
| 11837 unittest.expect(index >= 0, unittest.isTrue); | 13099 unittest.expect(index >= 0, unittest.isTrue); |
| 11838 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13100 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11839 pathOffset = index; | 13101 pathOffset = index; |
| 11840 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13102 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11841 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); | 13103 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); |
| 11842 pathOffset += 10; | 13104 pathOffset += 10; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11880 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13142 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11881 var obj = new api.Campaign.fromJson(json); | 13143 var obj = new api.Campaign.fromJson(json); |
| 11882 checkCampaign(obj); | 13144 checkCampaign(obj); |
| 11883 | 13145 |
| 11884 var path = (req.url).path; | 13146 var path = (req.url).path; |
| 11885 var pathOffset = 0; | 13147 var pathOffset = 0; |
| 11886 var index; | 13148 var index; |
| 11887 var subPart; | 13149 var subPart; |
| 11888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13150 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11889 pathOffset += 1; | 13151 pathOffset += 1; |
| 11890 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13152 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11891 pathOffset += 18; | 13153 pathOffset += 18; |
| 11892 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13154 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11893 pathOffset += 13; | 13155 pathOffset += 13; |
| 11894 index = path.indexOf("/campaigns", pathOffset); | 13156 index = path.indexOf("/campaigns", pathOffset); |
| 11895 unittest.expect(index >= 0, unittest.isTrue); | 13157 unittest.expect(index >= 0, unittest.isTrue); |
| 11896 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13158 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11897 pathOffset = index; | 13159 pathOffset = index; |
| 11898 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13160 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11899 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); | 13161 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); |
| 11900 pathOffset += 10; | 13162 pathOffset += 10; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11938 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; | 13200 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; |
| 11939 var arg_profileId = "foo"; | 13201 var arg_profileId = "foo"; |
| 11940 var arg_id = "foo"; | 13202 var arg_id = "foo"; |
| 11941 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13203 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11942 var path = (req.url).path; | 13204 var path = (req.url).path; |
| 11943 var pathOffset = 0; | 13205 var pathOffset = 0; |
| 11944 var index; | 13206 var index; |
| 11945 var subPart; | 13207 var subPart; |
| 11946 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13208 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11947 pathOffset += 1; | 13209 pathOffset += 1; |
| 11948 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13210 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 11949 pathOffset += 18; | 13211 pathOffset += 18; |
| 11950 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13212 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11951 pathOffset += 13; | 13213 pathOffset += 13; |
| 11952 index = path.indexOf("/changeLogs/", pathOffset); | 13214 index = path.indexOf("/changeLogs/", pathOffset); |
| 11953 unittest.expect(index >= 0, unittest.isTrue); | 13215 unittest.expect(index >= 0, unittest.isTrue); |
| 11954 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13216 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11955 pathOffset = index; | 13217 pathOffset = index; |
| 11956 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13218 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11957 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/changeLogs/")); | 13219 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/changeLogs/")); |
| 11958 pathOffset += 12; | 13220 pathOffset += 12; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 11988 checkChangeLog(response); | 13250 checkChangeLog(response); |
| 11989 }))); | 13251 }))); |
| 11990 }); | 13252 }); |
| 11991 | 13253 |
| 11992 unittest.test("method--list", () { | 13254 unittest.test("method--list", () { |
| 11993 | 13255 |
| 11994 var mock = new HttpServerMock(); | 13256 var mock = new HttpServerMock(); |
| 11995 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; | 13257 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; |
| 11996 var arg_profileId = "foo"; | 13258 var arg_profileId = "foo"; |
| 11997 var arg_action = "foo"; | 13259 var arg_action = "foo"; |
| 11998 var arg_ids = buildUnnamed437(); | 13260 var arg_ids = buildUnnamed1500(); |
| 11999 var arg_maxChangeTime = "foo"; | 13261 var arg_maxChangeTime = "foo"; |
| 12000 var arg_maxResults = 42; | 13262 var arg_maxResults = 42; |
| 12001 var arg_minChangeTime = "foo"; | 13263 var arg_minChangeTime = "foo"; |
| 12002 var arg_objectIds = buildUnnamed438(); | 13264 var arg_objectIds = buildUnnamed1501(); |
| 12003 var arg_objectType = "foo"; | 13265 var arg_objectType = "foo"; |
| 12004 var arg_pageToken = "foo"; | 13266 var arg_pageToken = "foo"; |
| 12005 var arg_searchString = "foo"; | 13267 var arg_searchString = "foo"; |
| 12006 var arg_userProfileIds = buildUnnamed439(); | 13268 var arg_userProfileIds = buildUnnamed1502(); |
| 12007 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13269 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12008 var path = (req.url).path; | 13270 var path = (req.url).path; |
| 12009 var pathOffset = 0; | 13271 var pathOffset = 0; |
| 12010 var index; | 13272 var index; |
| 12011 var subPart; | 13273 var subPart; |
| 12012 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13274 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12013 pathOffset += 1; | 13275 pathOffset += 1; |
| 12014 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13276 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12015 pathOffset += 18; | 13277 pathOffset += 18; |
| 12016 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13278 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12017 pathOffset += 13; | 13279 pathOffset += 13; |
| 12018 index = path.indexOf("/changeLogs", pathOffset); | 13280 index = path.indexOf("/changeLogs", pathOffset); |
| 12019 unittest.expect(index >= 0, unittest.isTrue); | 13281 unittest.expect(index >= 0, unittest.isTrue); |
| 12020 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13282 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12021 pathOffset = index; | 13283 pathOffset = index; |
| 12022 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13284 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12023 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/changeLogs")); | 13285 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/changeLogs")); |
| 12024 pathOffset += 11; | 13286 pathOffset += 11; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12064 | 13326 |
| 12065 }); | 13327 }); |
| 12066 | 13328 |
| 12067 | 13329 |
| 12068 unittest.group("resource-CitiesResourceApi", () { | 13330 unittest.group("resource-CitiesResourceApi", () { |
| 12069 unittest.test("method--list", () { | 13331 unittest.test("method--list", () { |
| 12070 | 13332 |
| 12071 var mock = new HttpServerMock(); | 13333 var mock = new HttpServerMock(); |
| 12072 api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; | 13334 api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; |
| 12073 var arg_profileId = "foo"; | 13335 var arg_profileId = "foo"; |
| 12074 var arg_countryDartIds = buildUnnamed440(); | 13336 var arg_countryDartIds = buildUnnamed1503(); |
| 12075 var arg_dartIds = buildUnnamed441(); | 13337 var arg_dartIds = buildUnnamed1504(); |
| 12076 var arg_namePrefix = "foo"; | 13338 var arg_namePrefix = "foo"; |
| 12077 var arg_regionDartIds = buildUnnamed442(); | 13339 var arg_regionDartIds = buildUnnamed1505(); |
| 12078 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13340 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12079 var path = (req.url).path; | 13341 var path = (req.url).path; |
| 12080 var pathOffset = 0; | 13342 var pathOffset = 0; |
| 12081 var index; | 13343 var index; |
| 12082 var subPart; | 13344 var subPart; |
| 12083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12084 pathOffset += 1; | 13346 pathOffset += 1; |
| 12085 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13347 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12086 pathOffset += 18; | 13348 pathOffset += 18; |
| 12087 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13349 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12088 pathOffset += 13; | 13350 pathOffset += 13; |
| 12089 index = path.indexOf("/cities", pathOffset); | 13351 index = path.indexOf("/cities", pathOffset); |
| 12090 unittest.expect(index >= 0, unittest.isTrue); | 13352 unittest.expect(index >= 0, unittest.isTrue); |
| 12091 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13353 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12092 pathOffset = index; | 13354 pathOffset = index; |
| 12093 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13355 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12094 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/cities")); | 13356 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/cities")); |
| 12095 pathOffset += 7; | 13357 pathOffset += 7; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 12124 }), true); | 13386 }), true); |
| 12125 res.list(arg_profileId, countryDartIds: arg_countryDartIds, dartIds: arg_d
artIds, namePrefix: arg_namePrefix, regionDartIds: arg_regionDartIds).then(unitt
est.expectAsync(((api.CitiesListResponse response) { | 13387 res.list(arg_profileId, countryDartIds: arg_countryDartIds, dartIds: arg_d
artIds, namePrefix: arg_namePrefix, regionDartIds: arg_regionDartIds).then(unitt
est.expectAsync(((api.CitiesListResponse response) { |
| 12126 checkCitiesListResponse(response); | 13388 checkCitiesListResponse(response); |
| 12127 }))); | 13389 }))); |
| 12128 }); | 13390 }); |
| 12129 | 13391 |
| 12130 }); | 13392 }); |
| 12131 | 13393 |
| 12132 | 13394 |
| 12133 unittest.group("resource-ConnectionTypesResourceApi", () { | 13395 unittest.group("resource-ConnectionTypesResourceApi", () { |
| 13396 unittest.test("method--get", () { |
| 13397 |
| 13398 var mock = new HttpServerMock(); |
| 13399 api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connect
ionTypes; |
| 13400 var arg_profileId = "foo"; |
| 13401 var arg_id = "foo"; |
| 13402 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13403 var path = (req.url).path; |
| 13404 var pathOffset = 0; |
| 13405 var index; |
| 13406 var subPart; |
| 13407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13408 pathOffset += 1; |
| 13409 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13410 pathOffset += 18; |
| 13411 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13412 pathOffset += 13; |
| 13413 index = path.indexOf("/connectionTypes/", pathOffset); |
| 13414 unittest.expect(index >= 0, unittest.isTrue); |
| 13415 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13416 pathOffset = index; |
| 13417 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13418 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/connectionTypes/")); |
| 13419 pathOffset += 17; |
| 13420 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 13421 pathOffset = path.length; |
| 13422 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 13423 |
| 13424 var query = (req.url).query; |
| 13425 var queryOffset = 0; |
| 13426 var queryMap = {}; |
| 13427 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13428 parseBool(n) { |
| 13429 if (n == "true") return true; |
| 13430 if (n == "false") return false; |
| 13431 if (n == null) return null; |
| 13432 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13433 } |
| 13434 if (query.length > 0) { |
| 13435 for (var part in query.split("&")) { |
| 13436 var keyvalue = part.split("="); |
| 13437 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13438 } |
| 13439 } |
| 13440 |
| 13441 |
| 13442 var h = { |
| 13443 "content-type" : "application/json; charset=utf-8", |
| 13444 }; |
| 13445 var resp = convert.JSON.encode(buildConnectionType()); |
| 13446 return new async.Future.value(stringResponse(200, h, resp)); |
| 13447 }), true); |
| 13448 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ConnectionT
ype response) { |
| 13449 checkConnectionType(response); |
| 13450 }))); |
| 13451 }); |
| 13452 |
| 12134 unittest.test("method--list", () { | 13453 unittest.test("method--list", () { |
| 12135 | 13454 |
| 12136 var mock = new HttpServerMock(); | 13455 var mock = new HttpServerMock(); |
| 12137 api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connect
ionTypes; | 13456 api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connect
ionTypes; |
| 12138 var arg_profileId = "foo"; | 13457 var arg_profileId = "foo"; |
| 12139 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12140 var path = (req.url).path; | 13459 var path = (req.url).path; |
| 12141 var pathOffset = 0; | 13460 var pathOffset = 0; |
| 12142 var index; | 13461 var index; |
| 12143 var subPart; | 13462 var subPart; |
| 12144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12145 pathOffset += 1; | 13464 pathOffset += 1; |
| 12146 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13465 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12147 pathOffset += 18; | 13466 pathOffset += 18; |
| 12148 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13467 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12149 pathOffset += 13; | 13468 pathOffset += 13; |
| 12150 index = path.indexOf("/connectionTypes", pathOffset); | 13469 index = path.indexOf("/connectionTypes", pathOffset); |
| 12151 unittest.expect(index >= 0, unittest.isTrue); | 13470 unittest.expect(index >= 0, unittest.isTrue); |
| 12152 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13471 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12153 pathOffset = index; | 13472 pathOffset = index; |
| 12154 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13473 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12155 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/connectionTypes")); | 13474 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/connectionTypes")); |
| 12156 pathOffset += 16; | 13475 pathOffset += 16; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12194 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; | 13513 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; |
| 12195 var arg_profileId = "foo"; | 13514 var arg_profileId = "foo"; |
| 12196 var arg_id = "foo"; | 13515 var arg_id = "foo"; |
| 12197 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13516 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12198 var path = (req.url).path; | 13517 var path = (req.url).path; |
| 12199 var pathOffset = 0; | 13518 var pathOffset = 0; |
| 12200 var index; | 13519 var index; |
| 12201 var subPart; | 13520 var subPart; |
| 12202 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13521 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12203 pathOffset += 1; | 13522 pathOffset += 1; |
| 12204 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13523 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12205 pathOffset += 18; | 13524 pathOffset += 18; |
| 12206 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13525 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12207 pathOffset += 13; | 13526 pathOffset += 13; |
| 12208 index = path.indexOf("/contentCategories/", pathOffset); | 13527 index = path.indexOf("/contentCategories/", pathOffset); |
| 12209 unittest.expect(index >= 0, unittest.isTrue); | 13528 unittest.expect(index >= 0, unittest.isTrue); |
| 12210 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13529 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12211 pathOffset = index; | 13530 pathOffset = index; |
| 12212 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13531 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12213 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/contentCategories/")); | 13532 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/contentCategories/")); |
| 12214 pathOffset += 19; | 13533 pathOffset += 19; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12249 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; | 13568 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; |
| 12250 var arg_profileId = "foo"; | 13569 var arg_profileId = "foo"; |
| 12251 var arg_id = "foo"; | 13570 var arg_id = "foo"; |
| 12252 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13571 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12253 var path = (req.url).path; | 13572 var path = (req.url).path; |
| 12254 var pathOffset = 0; | 13573 var pathOffset = 0; |
| 12255 var index; | 13574 var index; |
| 12256 var subPart; | 13575 var subPart; |
| 12257 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13576 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12258 pathOffset += 1; | 13577 pathOffset += 1; |
| 12259 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13578 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12260 pathOffset += 18; | 13579 pathOffset += 18; |
| 12261 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13580 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12262 pathOffset += 13; | 13581 pathOffset += 13; |
| 12263 index = path.indexOf("/contentCategories/", pathOffset); | 13582 index = path.indexOf("/contentCategories/", pathOffset); |
| 12264 unittest.expect(index >= 0, unittest.isTrue); | 13583 unittest.expect(index >= 0, unittest.isTrue); |
| 12265 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13584 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12266 pathOffset = index; | 13585 pathOffset = index; |
| 12267 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13586 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12268 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/contentCategories/")); | 13587 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/contentCategories/")); |
| 12269 pathOffset += 19; | 13588 pathOffset += 19; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13628 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12310 var obj = new api.ContentCategory.fromJson(json); | 13629 var obj = new api.ContentCategory.fromJson(json); |
| 12311 checkContentCategory(obj); | 13630 checkContentCategory(obj); |
| 12312 | 13631 |
| 12313 var path = (req.url).path; | 13632 var path = (req.url).path; |
| 12314 var pathOffset = 0; | 13633 var pathOffset = 0; |
| 12315 var index; | 13634 var index; |
| 12316 var subPart; | 13635 var subPart; |
| 12317 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13636 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12318 pathOffset += 1; | 13637 pathOffset += 1; |
| 12319 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13638 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12320 pathOffset += 18; | 13639 pathOffset += 18; |
| 12321 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13640 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12322 pathOffset += 13; | 13641 pathOffset += 13; |
| 12323 index = path.indexOf("/contentCategories", pathOffset); | 13642 index = path.indexOf("/contentCategories", pathOffset); |
| 12324 unittest.expect(index >= 0, unittest.isTrue); | 13643 unittest.expect(index >= 0, unittest.isTrue); |
| 12325 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13644 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12326 pathOffset = index; | 13645 pathOffset = index; |
| 12327 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13646 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12328 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); | 13647 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); |
| 12329 pathOffset += 18; | 13648 pathOffset += 18; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 12355 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Con
tentCategory response) { | 13674 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Con
tentCategory response) { |
| 12356 checkContentCategory(response); | 13675 checkContentCategory(response); |
| 12357 }))); | 13676 }))); |
| 12358 }); | 13677 }); |
| 12359 | 13678 |
| 12360 unittest.test("method--list", () { | 13679 unittest.test("method--list", () { |
| 12361 | 13680 |
| 12362 var mock = new HttpServerMock(); | 13681 var mock = new HttpServerMock(); |
| 12363 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; | 13682 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; |
| 12364 var arg_profileId = "foo"; | 13683 var arg_profileId = "foo"; |
| 12365 var arg_ids = buildUnnamed443(); | 13684 var arg_ids = buildUnnamed1506(); |
| 12366 var arg_maxResults = 42; | 13685 var arg_maxResults = 42; |
| 12367 var arg_pageToken = "foo"; | 13686 var arg_pageToken = "foo"; |
| 12368 var arg_searchString = "foo"; | 13687 var arg_searchString = "foo"; |
| 12369 var arg_sortField = "foo"; | 13688 var arg_sortField = "foo"; |
| 12370 var arg_sortOrder = "foo"; | 13689 var arg_sortOrder = "foo"; |
| 12371 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13690 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12372 var path = (req.url).path; | 13691 var path = (req.url).path; |
| 12373 var pathOffset = 0; | 13692 var pathOffset = 0; |
| 12374 var index; | 13693 var index; |
| 12375 var subPart; | 13694 var subPart; |
| 12376 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13695 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12377 pathOffset += 1; | 13696 pathOffset += 1; |
| 12378 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13697 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12379 pathOffset += 18; | 13698 pathOffset += 18; |
| 12380 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13699 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12381 pathOffset += 13; | 13700 pathOffset += 13; |
| 12382 index = path.indexOf("/contentCategories", pathOffset); | 13701 index = path.indexOf("/contentCategories", pathOffset); |
| 12383 unittest.expect(index >= 0, unittest.isTrue); | 13702 unittest.expect(index >= 0, unittest.isTrue); |
| 12384 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13703 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12385 pathOffset = index; | 13704 pathOffset = index; |
| 12386 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13705 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12387 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); | 13706 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); |
| 12388 pathOffset += 18; | 13707 pathOffset += 18; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12432 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13751 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12433 var obj = new api.ContentCategory.fromJson(json); | 13752 var obj = new api.ContentCategory.fromJson(json); |
| 12434 checkContentCategory(obj); | 13753 checkContentCategory(obj); |
| 12435 | 13754 |
| 12436 var path = (req.url).path; | 13755 var path = (req.url).path; |
| 12437 var pathOffset = 0; | 13756 var pathOffset = 0; |
| 12438 var index; | 13757 var index; |
| 12439 var subPart; | 13758 var subPart; |
| 12440 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12441 pathOffset += 1; | 13760 pathOffset += 1; |
| 12442 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13761 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12443 pathOffset += 18; | 13762 pathOffset += 18; |
| 12444 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13763 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12445 pathOffset += 13; | 13764 pathOffset += 13; |
| 12446 index = path.indexOf("/contentCategories", pathOffset); | 13765 index = path.indexOf("/contentCategories", pathOffset); |
| 12447 unittest.expect(index >= 0, unittest.isTrue); | 13766 unittest.expect(index >= 0, unittest.isTrue); |
| 12448 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13767 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12449 pathOffset = index; | 13768 pathOffset = index; |
| 12450 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13769 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12451 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); | 13770 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); |
| 12452 pathOffset += 18; | 13771 pathOffset += 18; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12490 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13809 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12491 var obj = new api.ContentCategory.fromJson(json); | 13810 var obj = new api.ContentCategory.fromJson(json); |
| 12492 checkContentCategory(obj); | 13811 checkContentCategory(obj); |
| 12493 | 13812 |
| 12494 var path = (req.url).path; | 13813 var path = (req.url).path; |
| 12495 var pathOffset = 0; | 13814 var pathOffset = 0; |
| 12496 var index; | 13815 var index; |
| 12497 var subPart; | 13816 var subPart; |
| 12498 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13817 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12499 pathOffset += 1; | 13818 pathOffset += 1; |
| 12500 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13819 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12501 pathOffset += 18; | 13820 pathOffset += 18; |
| 12502 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13821 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12503 pathOffset += 13; | 13822 pathOffset += 13; |
| 12504 index = path.indexOf("/contentCategories", pathOffset); | 13823 index = path.indexOf("/contentCategories", pathOffset); |
| 12505 unittest.expect(index >= 0, unittest.isTrue); | 13824 unittest.expect(index >= 0, unittest.isTrue); |
| 12506 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13825 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12507 pathOffset = index; | 13826 pathOffset = index; |
| 12508 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13827 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12509 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); | 13828 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); |
| 12510 pathOffset += 18; | 13829 pathOffset += 18; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12548 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; | 13867 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; |
| 12549 var arg_profileId = "foo"; | 13868 var arg_profileId = "foo"; |
| 12550 var arg_dartId = "foo"; | 13869 var arg_dartId = "foo"; |
| 12551 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13870 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12552 var path = (req.url).path; | 13871 var path = (req.url).path; |
| 12553 var pathOffset = 0; | 13872 var pathOffset = 0; |
| 12554 var index; | 13873 var index; |
| 12555 var subPart; | 13874 var subPart; |
| 12556 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13875 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12557 pathOffset += 1; | 13876 pathOffset += 1; |
| 12558 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13877 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12559 pathOffset += 18; | 13878 pathOffset += 18; |
| 12560 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13879 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12561 pathOffset += 13; | 13880 pathOffset += 13; |
| 12562 index = path.indexOf("/countries/", pathOffset); | 13881 index = path.indexOf("/countries/", pathOffset); |
| 12563 unittest.expect(index >= 0, unittest.isTrue); | 13882 unittest.expect(index >= 0, unittest.isTrue); |
| 12564 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13883 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12565 pathOffset = index; | 13884 pathOffset = index; |
| 12566 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13885 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12567 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/countries/")); | 13886 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/countries/")); |
| 12568 pathOffset += 11; | 13887 pathOffset += 11; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12604 var mock = new HttpServerMock(); | 13923 var mock = new HttpServerMock(); |
| 12605 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; | 13924 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; |
| 12606 var arg_profileId = "foo"; | 13925 var arg_profileId = "foo"; |
| 12607 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13926 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12608 var path = (req.url).path; | 13927 var path = (req.url).path; |
| 12609 var pathOffset = 0; | 13928 var pathOffset = 0; |
| 12610 var index; | 13929 var index; |
| 12611 var subPart; | 13930 var subPart; |
| 12612 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13931 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12613 pathOffset += 1; | 13932 pathOffset += 1; |
| 12614 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13933 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12615 pathOffset += 18; | 13934 pathOffset += 18; |
| 12616 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13935 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12617 pathOffset += 13; | 13936 pathOffset += 13; |
| 12618 index = path.indexOf("/countries", pathOffset); | 13937 index = path.indexOf("/countries", pathOffset); |
| 12619 unittest.expect(index >= 0, unittest.isTrue); | 13938 unittest.expect(index >= 0, unittest.isTrue); |
| 12620 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13939 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12621 pathOffset = index; | 13940 pathOffset = index; |
| 12622 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13941 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12623 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/countries")); | 13942 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/countries")); |
| 12624 pathOffset += 10; | 13943 pathOffset += 10; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12668 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13987 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12669 var obj = new api.CreativeAssetMetadata.fromJson(json); | 13988 var obj = new api.CreativeAssetMetadata.fromJson(json); |
| 12670 checkCreativeAssetMetadata(obj); | 13989 checkCreativeAssetMetadata(obj); |
| 12671 | 13990 |
| 12672 var path = (req.url).path; | 13991 var path = (req.url).path; |
| 12673 var pathOffset = 0; | 13992 var pathOffset = 0; |
| 12674 var index; | 13993 var index; |
| 12675 var subPart; | 13994 var subPart; |
| 12676 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13995 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12677 pathOffset += 1; | 13996 pathOffset += 1; |
| 12678 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13997 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12679 pathOffset += 18; | 13998 pathOffset += 18; |
| 12680 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13999 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12681 pathOffset += 13; | 14000 pathOffset += 13; |
| 12682 index = path.indexOf("/creativeAssets/", pathOffset); | 14001 index = path.indexOf("/creativeAssets/", pathOffset); |
| 12683 unittest.expect(index >= 0, unittest.isTrue); | 14002 unittest.expect(index >= 0, unittest.isTrue); |
| 12684 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14003 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12685 pathOffset = index; | 14004 pathOffset = index; |
| 12686 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14005 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12687 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeAssets/")); | 14006 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeAssets/")); |
| 12688 pathOffset += 16; | 14007 pathOffset += 16; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12734 var arg_profileId = "foo"; | 14053 var arg_profileId = "foo"; |
| 12735 var arg_creativeFieldId = "foo"; | 14054 var arg_creativeFieldId = "foo"; |
| 12736 var arg_id = "foo"; | 14055 var arg_id = "foo"; |
| 12737 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14056 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12738 var path = (req.url).path; | 14057 var path = (req.url).path; |
| 12739 var pathOffset = 0; | 14058 var pathOffset = 0; |
| 12740 var index; | 14059 var index; |
| 12741 var subPart; | 14060 var subPart; |
| 12742 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14061 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12743 pathOffset += 1; | 14062 pathOffset += 1; |
| 12744 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14063 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12745 pathOffset += 18; | 14064 pathOffset += 18; |
| 12746 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14065 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12747 pathOffset += 13; | 14066 pathOffset += 13; |
| 12748 index = path.indexOf("/creativeFields/", pathOffset); | 14067 index = path.indexOf("/creativeFields/", pathOffset); |
| 12749 unittest.expect(index >= 0, unittest.isTrue); | 14068 unittest.expect(index >= 0, unittest.isTrue); |
| 12750 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14069 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12751 pathOffset = index; | 14070 pathOffset = index; |
| 12752 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14071 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12753 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14072 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
| 12754 pathOffset += 16; | 14073 pathOffset += 16; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12797 var arg_profileId = "foo"; | 14116 var arg_profileId = "foo"; |
| 12798 var arg_creativeFieldId = "foo"; | 14117 var arg_creativeFieldId = "foo"; |
| 12799 var arg_id = "foo"; | 14118 var arg_id = "foo"; |
| 12800 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14119 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12801 var path = (req.url).path; | 14120 var path = (req.url).path; |
| 12802 var pathOffset = 0; | 14121 var pathOffset = 0; |
| 12803 var index; | 14122 var index; |
| 12804 var subPart; | 14123 var subPart; |
| 12805 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14124 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12806 pathOffset += 1; | 14125 pathOffset += 1; |
| 12807 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14126 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12808 pathOffset += 18; | 14127 pathOffset += 18; |
| 12809 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14128 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12810 pathOffset += 13; | 14129 pathOffset += 13; |
| 12811 index = path.indexOf("/creativeFields/", pathOffset); | 14130 index = path.indexOf("/creativeFields/", pathOffset); |
| 12812 unittest.expect(index >= 0, unittest.isTrue); | 14131 unittest.expect(index >= 0, unittest.isTrue); |
| 12813 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14132 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12814 pathOffset = index; | 14133 pathOffset = index; |
| 12815 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14134 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12816 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14135 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
| 12817 pathOffset += 16; | 14136 pathOffset += 16; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12865 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14184 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12866 var obj = new api.CreativeFieldValue.fromJson(json); | 14185 var obj = new api.CreativeFieldValue.fromJson(json); |
| 12867 checkCreativeFieldValue(obj); | 14186 checkCreativeFieldValue(obj); |
| 12868 | 14187 |
| 12869 var path = (req.url).path; | 14188 var path = (req.url).path; |
| 12870 var pathOffset = 0; | 14189 var pathOffset = 0; |
| 12871 var index; | 14190 var index; |
| 12872 var subPart; | 14191 var subPart; |
| 12873 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14192 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12874 pathOffset += 1; | 14193 pathOffset += 1; |
| 12875 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14194 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12876 pathOffset += 18; | 14195 pathOffset += 18; |
| 12877 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14196 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12878 pathOffset += 13; | 14197 pathOffset += 13; |
| 12879 index = path.indexOf("/creativeFields/", pathOffset); | 14198 index = path.indexOf("/creativeFields/", pathOffset); |
| 12880 unittest.expect(index >= 0, unittest.isTrue); | 14199 unittest.expect(index >= 0, unittest.isTrue); |
| 12881 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14200 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12882 pathOffset = index; | 14201 pathOffset = index; |
| 12883 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14202 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12884 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14203 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
| 12885 pathOffset += 16; | 14204 pathOffset += 16; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12919 checkCreativeFieldValue(response); | 14238 checkCreativeFieldValue(response); |
| 12920 }))); | 14239 }))); |
| 12921 }); | 14240 }); |
| 12922 | 14241 |
| 12923 unittest.test("method--list", () { | 14242 unittest.test("method--list", () { |
| 12924 | 14243 |
| 12925 var mock = new HttpServerMock(); | 14244 var mock = new HttpServerMock(); |
| 12926 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre
ativeFieldValues; | 14245 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre
ativeFieldValues; |
| 12927 var arg_profileId = "foo"; | 14246 var arg_profileId = "foo"; |
| 12928 var arg_creativeFieldId = "foo"; | 14247 var arg_creativeFieldId = "foo"; |
| 12929 var arg_ids = buildUnnamed444(); | 14248 var arg_ids = buildUnnamed1507(); |
| 12930 var arg_maxResults = 42; | 14249 var arg_maxResults = 42; |
| 12931 var arg_pageToken = "foo"; | 14250 var arg_pageToken = "foo"; |
| 12932 var arg_searchString = "foo"; | 14251 var arg_searchString = "foo"; |
| 12933 var arg_sortField = "foo"; | 14252 var arg_sortField = "foo"; |
| 12934 var arg_sortOrder = "foo"; | 14253 var arg_sortOrder = "foo"; |
| 12935 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14254 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12936 var path = (req.url).path; | 14255 var path = (req.url).path; |
| 12937 var pathOffset = 0; | 14256 var pathOffset = 0; |
| 12938 var index; | 14257 var index; |
| 12939 var subPart; | 14258 var subPart; |
| 12940 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14259 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12941 pathOffset += 1; | 14260 pathOffset += 1; |
| 12942 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14261 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 12943 pathOffset += 18; | 14262 pathOffset += 18; |
| 12944 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14263 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 12945 pathOffset += 13; | 14264 pathOffset += 13; |
| 12946 index = path.indexOf("/creativeFields/", pathOffset); | 14265 index = path.indexOf("/creativeFields/", pathOffset); |
| 12947 unittest.expect(index >= 0, unittest.isTrue); | 14266 unittest.expect(index >= 0, unittest.isTrue); |
| 12948 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14267 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 12949 pathOffset = index; | 14268 pathOffset = index; |
| 12950 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14269 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 12951 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14270 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
| 12952 pathOffset += 16; | 14271 pathOffset += 16; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13004 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14323 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13005 var obj = new api.CreativeFieldValue.fromJson(json); | 14324 var obj = new api.CreativeFieldValue.fromJson(json); |
| 13006 checkCreativeFieldValue(obj); | 14325 checkCreativeFieldValue(obj); |
| 13007 | 14326 |
| 13008 var path = (req.url).path; | 14327 var path = (req.url).path; |
| 13009 var pathOffset = 0; | 14328 var pathOffset = 0; |
| 13010 var index; | 14329 var index; |
| 13011 var subPart; | 14330 var subPart; |
| 13012 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14331 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13013 pathOffset += 1; | 14332 pathOffset += 1; |
| 13014 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14333 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13015 pathOffset += 18; | 14334 pathOffset += 18; |
| 13016 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14335 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13017 pathOffset += 13; | 14336 pathOffset += 13; |
| 13018 index = path.indexOf("/creativeFields/", pathOffset); | 14337 index = path.indexOf("/creativeFields/", pathOffset); |
| 13019 unittest.expect(index >= 0, unittest.isTrue); | 14338 unittest.expect(index >= 0, unittest.isTrue); |
| 13020 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14339 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13021 pathOffset = index; | 14340 pathOffset = index; |
| 13022 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14341 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13023 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14342 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
| 13024 pathOffset += 16; | 14343 pathOffset += 16; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13070 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14389 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13071 var obj = new api.CreativeFieldValue.fromJson(json); | 14390 var obj = new api.CreativeFieldValue.fromJson(json); |
| 13072 checkCreativeFieldValue(obj); | 14391 checkCreativeFieldValue(obj); |
| 13073 | 14392 |
| 13074 var path = (req.url).path; | 14393 var path = (req.url).path; |
| 13075 var pathOffset = 0; | 14394 var pathOffset = 0; |
| 13076 var index; | 14395 var index; |
| 13077 var subPart; | 14396 var subPart; |
| 13078 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14397 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13079 pathOffset += 1; | 14398 pathOffset += 1; |
| 13080 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14399 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13081 pathOffset += 18; | 14400 pathOffset += 18; |
| 13082 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14401 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13083 pathOffset += 13; | 14402 pathOffset += 13; |
| 13084 index = path.indexOf("/creativeFields/", pathOffset); | 14403 index = path.indexOf("/creativeFields/", pathOffset); |
| 13085 unittest.expect(index >= 0, unittest.isTrue); | 14404 unittest.expect(index >= 0, unittest.isTrue); |
| 13086 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14405 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13087 pathOffset = index; | 14406 pathOffset = index; |
| 13088 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14407 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13089 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14408 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
| 13090 pathOffset += 16; | 14409 pathOffset += 16; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13135 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; | 14454 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; |
| 13136 var arg_profileId = "foo"; | 14455 var arg_profileId = "foo"; |
| 13137 var arg_id = "foo"; | 14456 var arg_id = "foo"; |
| 13138 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14457 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13139 var path = (req.url).path; | 14458 var path = (req.url).path; |
| 13140 var pathOffset = 0; | 14459 var pathOffset = 0; |
| 13141 var index; | 14460 var index; |
| 13142 var subPart; | 14461 var subPart; |
| 13143 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13144 pathOffset += 1; | 14463 pathOffset += 1; |
| 13145 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14464 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13146 pathOffset += 18; | 14465 pathOffset += 18; |
| 13147 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14466 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13148 pathOffset += 13; | 14467 pathOffset += 13; |
| 13149 index = path.indexOf("/creativeFields/", pathOffset); | 14468 index = path.indexOf("/creativeFields/", pathOffset); |
| 13150 unittest.expect(index >= 0, unittest.isTrue); | 14469 unittest.expect(index >= 0, unittest.isTrue); |
| 13151 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14470 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13152 pathOffset = index; | 14471 pathOffset = index; |
| 13153 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14472 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13154 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14473 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
| 13155 pathOffset += 16; | 14474 pathOffset += 16; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13190 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; | 14509 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; |
| 13191 var arg_profileId = "foo"; | 14510 var arg_profileId = "foo"; |
| 13192 var arg_id = "foo"; | 14511 var arg_id = "foo"; |
| 13193 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14512 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13194 var path = (req.url).path; | 14513 var path = (req.url).path; |
| 13195 var pathOffset = 0; | 14514 var pathOffset = 0; |
| 13196 var index; | 14515 var index; |
| 13197 var subPart; | 14516 var subPart; |
| 13198 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13199 pathOffset += 1; | 14518 pathOffset += 1; |
| 13200 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14519 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13201 pathOffset += 18; | 14520 pathOffset += 18; |
| 13202 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14521 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13203 pathOffset += 13; | 14522 pathOffset += 13; |
| 13204 index = path.indexOf("/creativeFields/", pathOffset); | 14523 index = path.indexOf("/creativeFields/", pathOffset); |
| 13205 unittest.expect(index >= 0, unittest.isTrue); | 14524 unittest.expect(index >= 0, unittest.isTrue); |
| 13206 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14525 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13207 pathOffset = index; | 14526 pathOffset = index; |
| 13208 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14527 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13209 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14528 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
| 13210 pathOffset += 16; | 14529 pathOffset += 16; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13250 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14569 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13251 var obj = new api.CreativeField.fromJson(json); | 14570 var obj = new api.CreativeField.fromJson(json); |
| 13252 checkCreativeField(obj); | 14571 checkCreativeField(obj); |
| 13253 | 14572 |
| 13254 var path = (req.url).path; | 14573 var path = (req.url).path; |
| 13255 var pathOffset = 0; | 14574 var pathOffset = 0; |
| 13256 var index; | 14575 var index; |
| 13257 var subPart; | 14576 var subPart; |
| 13258 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14577 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13259 pathOffset += 1; | 14578 pathOffset += 1; |
| 13260 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14579 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13261 pathOffset += 18; | 14580 pathOffset += 18; |
| 13262 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14581 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13263 pathOffset += 13; | 14582 pathOffset += 13; |
| 13264 index = path.indexOf("/creativeFields", pathOffset); | 14583 index = path.indexOf("/creativeFields", pathOffset); |
| 13265 unittest.expect(index >= 0, unittest.isTrue); | 14584 unittest.expect(index >= 0, unittest.isTrue); |
| 13266 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14585 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13267 pathOffset = index; | 14586 pathOffset = index; |
| 13268 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14587 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13269 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); | 14588 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); |
| 13270 pathOffset += 15; | 14589 pathOffset += 15; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 13296 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre
ativeField response) { | 14615 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre
ativeField response) { |
| 13297 checkCreativeField(response); | 14616 checkCreativeField(response); |
| 13298 }))); | 14617 }))); |
| 13299 }); | 14618 }); |
| 13300 | 14619 |
| 13301 unittest.test("method--list", () { | 14620 unittest.test("method--list", () { |
| 13302 | 14621 |
| 13303 var mock = new HttpServerMock(); | 14622 var mock = new HttpServerMock(); |
| 13304 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; | 14623 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; |
| 13305 var arg_profileId = "foo"; | 14624 var arg_profileId = "foo"; |
| 13306 var arg_advertiserIds = buildUnnamed445(); | 14625 var arg_advertiserIds = buildUnnamed1508(); |
| 13307 var arg_ids = buildUnnamed446(); | 14626 var arg_ids = buildUnnamed1509(); |
| 13308 var arg_maxResults = 42; | 14627 var arg_maxResults = 42; |
| 13309 var arg_pageToken = "foo"; | 14628 var arg_pageToken = "foo"; |
| 13310 var arg_searchString = "foo"; | 14629 var arg_searchString = "foo"; |
| 13311 var arg_sortField = "foo"; | 14630 var arg_sortField = "foo"; |
| 13312 var arg_sortOrder = "foo"; | 14631 var arg_sortOrder = "foo"; |
| 13313 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14632 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13314 var path = (req.url).path; | 14633 var path = (req.url).path; |
| 13315 var pathOffset = 0; | 14634 var pathOffset = 0; |
| 13316 var index; | 14635 var index; |
| 13317 var subPart; | 14636 var subPart; |
| 13318 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14637 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13319 pathOffset += 1; | 14638 pathOffset += 1; |
| 13320 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14639 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13321 pathOffset += 18; | 14640 pathOffset += 18; |
| 13322 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14641 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13323 pathOffset += 13; | 14642 pathOffset += 13; |
| 13324 index = path.indexOf("/creativeFields", pathOffset); | 14643 index = path.indexOf("/creativeFields", pathOffset); |
| 13325 unittest.expect(index >= 0, unittest.isTrue); | 14644 unittest.expect(index >= 0, unittest.isTrue); |
| 13326 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14645 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13327 pathOffset = index; | 14646 pathOffset = index; |
| 13328 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14647 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13329 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); | 14648 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); |
| 13330 pathOffset += 15; | 14649 pathOffset += 15; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13375 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14694 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13376 var obj = new api.CreativeField.fromJson(json); | 14695 var obj = new api.CreativeField.fromJson(json); |
| 13377 checkCreativeField(obj); | 14696 checkCreativeField(obj); |
| 13378 | 14697 |
| 13379 var path = (req.url).path; | 14698 var path = (req.url).path; |
| 13380 var pathOffset = 0; | 14699 var pathOffset = 0; |
| 13381 var index; | 14700 var index; |
| 13382 var subPart; | 14701 var subPart; |
| 13383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14702 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13384 pathOffset += 1; | 14703 pathOffset += 1; |
| 13385 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14704 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13386 pathOffset += 18; | 14705 pathOffset += 18; |
| 13387 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14706 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13388 pathOffset += 13; | 14707 pathOffset += 13; |
| 13389 index = path.indexOf("/creativeFields", pathOffset); | 14708 index = path.indexOf("/creativeFields", pathOffset); |
| 13390 unittest.expect(index >= 0, unittest.isTrue); | 14709 unittest.expect(index >= 0, unittest.isTrue); |
| 13391 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14710 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13392 pathOffset = index; | 14711 pathOffset = index; |
| 13393 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14712 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13394 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); | 14713 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); |
| 13395 pathOffset += 15; | 14714 pathOffset += 15; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14752 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13434 var obj = new api.CreativeField.fromJson(json); | 14753 var obj = new api.CreativeField.fromJson(json); |
| 13435 checkCreativeField(obj); | 14754 checkCreativeField(obj); |
| 13436 | 14755 |
| 13437 var path = (req.url).path; | 14756 var path = (req.url).path; |
| 13438 var pathOffset = 0; | 14757 var pathOffset = 0; |
| 13439 var index; | 14758 var index; |
| 13440 var subPart; | 14759 var subPart; |
| 13441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13442 pathOffset += 1; | 14761 pathOffset += 1; |
| 13443 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14762 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13444 pathOffset += 18; | 14763 pathOffset += 18; |
| 13445 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14764 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13446 pathOffset += 13; | 14765 pathOffset += 13; |
| 13447 index = path.indexOf("/creativeFields", pathOffset); | 14766 index = path.indexOf("/creativeFields", pathOffset); |
| 13448 unittest.expect(index >= 0, unittest.isTrue); | 14767 unittest.expect(index >= 0, unittest.isTrue); |
| 13449 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14768 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13450 pathOffset = index; | 14769 pathOffset = index; |
| 13451 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14770 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13452 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); | 14771 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); |
| 13453 pathOffset += 15; | 14772 pathOffset += 15; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13491 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative
Groups; | 14810 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative
Groups; |
| 13492 var arg_profileId = "foo"; | 14811 var arg_profileId = "foo"; |
| 13493 var arg_id = "foo"; | 14812 var arg_id = "foo"; |
| 13494 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14813 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13495 var path = (req.url).path; | 14814 var path = (req.url).path; |
| 13496 var pathOffset = 0; | 14815 var pathOffset = 0; |
| 13497 var index; | 14816 var index; |
| 13498 var subPart; | 14817 var subPart; |
| 13499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14818 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13500 pathOffset += 1; | 14819 pathOffset += 1; |
| 13501 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14820 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13502 pathOffset += 18; | 14821 pathOffset += 18; |
| 13503 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14822 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13504 pathOffset += 13; | 14823 pathOffset += 13; |
| 13505 index = path.indexOf("/creativeGroups/", pathOffset); | 14824 index = path.indexOf("/creativeGroups/", pathOffset); |
| 13506 unittest.expect(index >= 0, unittest.isTrue); | 14825 unittest.expect(index >= 0, unittest.isTrue); |
| 13507 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14826 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13508 pathOffset = index; | 14827 pathOffset = index; |
| 13509 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14828 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13510 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeGroups/")); | 14829 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeGroups/")); |
| 13511 pathOffset += 16; | 14830 pathOffset += 16; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13551 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14870 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13552 var obj = new api.CreativeGroup.fromJson(json); | 14871 var obj = new api.CreativeGroup.fromJson(json); |
| 13553 checkCreativeGroup(obj); | 14872 checkCreativeGroup(obj); |
| 13554 | 14873 |
| 13555 var path = (req.url).path; | 14874 var path = (req.url).path; |
| 13556 var pathOffset = 0; | 14875 var pathOffset = 0; |
| 13557 var index; | 14876 var index; |
| 13558 var subPart; | 14877 var subPart; |
| 13559 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14878 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13560 pathOffset += 1; | 14879 pathOffset += 1; |
| 13561 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14880 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13562 pathOffset += 18; | 14881 pathOffset += 18; |
| 13563 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14882 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13564 pathOffset += 13; | 14883 pathOffset += 13; |
| 13565 index = path.indexOf("/creativeGroups", pathOffset); | 14884 index = path.indexOf("/creativeGroups", pathOffset); |
| 13566 unittest.expect(index >= 0, unittest.isTrue); | 14885 unittest.expect(index >= 0, unittest.isTrue); |
| 13567 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14886 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13568 pathOffset = index; | 14887 pathOffset = index; |
| 13569 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14888 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13570 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); | 14889 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); |
| 13571 pathOffset += 15; | 14890 pathOffset += 15; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 13597 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre
ativeGroup response) { | 14916 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre
ativeGroup response) { |
| 13598 checkCreativeGroup(response); | 14917 checkCreativeGroup(response); |
| 13599 }))); | 14918 }))); |
| 13600 }); | 14919 }); |
| 13601 | 14920 |
| 13602 unittest.test("method--list", () { | 14921 unittest.test("method--list", () { |
| 13603 | 14922 |
| 13604 var mock = new HttpServerMock(); | 14923 var mock = new HttpServerMock(); |
| 13605 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative
Groups; | 14924 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative
Groups; |
| 13606 var arg_profileId = "foo"; | 14925 var arg_profileId = "foo"; |
| 13607 var arg_advertiserIds = buildUnnamed447(); | 14926 var arg_advertiserIds = buildUnnamed1510(); |
| 13608 var arg_groupNumber = 42; | 14927 var arg_groupNumber = 42; |
| 13609 var arg_ids = buildUnnamed448(); | 14928 var arg_ids = buildUnnamed1511(); |
| 13610 var arg_maxResults = 42; | 14929 var arg_maxResults = 42; |
| 13611 var arg_pageToken = "foo"; | 14930 var arg_pageToken = "foo"; |
| 13612 var arg_searchString = "foo"; | 14931 var arg_searchString = "foo"; |
| 13613 var arg_sortField = "foo"; | 14932 var arg_sortField = "foo"; |
| 13614 var arg_sortOrder = "foo"; | 14933 var arg_sortOrder = "foo"; |
| 13615 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14934 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13616 var path = (req.url).path; | 14935 var path = (req.url).path; |
| 13617 var pathOffset = 0; | 14936 var pathOffset = 0; |
| 13618 var index; | 14937 var index; |
| 13619 var subPart; | 14938 var subPart; |
| 13620 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13621 pathOffset += 1; | 14940 pathOffset += 1; |
| 13622 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14941 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13623 pathOffset += 18; | 14942 pathOffset += 18; |
| 13624 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14943 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13625 pathOffset += 13; | 14944 pathOffset += 13; |
| 13626 index = path.indexOf("/creativeGroups", pathOffset); | 14945 index = path.indexOf("/creativeGroups", pathOffset); |
| 13627 unittest.expect(index >= 0, unittest.isTrue); | 14946 unittest.expect(index >= 0, unittest.isTrue); |
| 13628 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14947 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13629 pathOffset = index; | 14948 pathOffset = index; |
| 13630 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14949 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13631 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); | 14950 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); |
| 13632 pathOffset += 15; | 14951 pathOffset += 15; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13678 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14997 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13679 var obj = new api.CreativeGroup.fromJson(json); | 14998 var obj = new api.CreativeGroup.fromJson(json); |
| 13680 checkCreativeGroup(obj); | 14999 checkCreativeGroup(obj); |
| 13681 | 15000 |
| 13682 var path = (req.url).path; | 15001 var path = (req.url).path; |
| 13683 var pathOffset = 0; | 15002 var pathOffset = 0; |
| 13684 var index; | 15003 var index; |
| 13685 var subPart; | 15004 var subPart; |
| 13686 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13687 pathOffset += 1; | 15006 pathOffset += 1; |
| 13688 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15007 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13689 pathOffset += 18; | 15008 pathOffset += 18; |
| 13690 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15009 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13691 pathOffset += 13; | 15010 pathOffset += 13; |
| 13692 index = path.indexOf("/creativeGroups", pathOffset); | 15011 index = path.indexOf("/creativeGroups", pathOffset); |
| 13693 unittest.expect(index >= 0, unittest.isTrue); | 15012 unittest.expect(index >= 0, unittest.isTrue); |
| 13694 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15013 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13695 pathOffset = index; | 15014 pathOffset = index; |
| 13696 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15015 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13697 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); | 15016 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); |
| 13698 pathOffset += 15; | 15017 pathOffset += 15; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13736 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15055 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13737 var obj = new api.CreativeGroup.fromJson(json); | 15056 var obj = new api.CreativeGroup.fromJson(json); |
| 13738 checkCreativeGroup(obj); | 15057 checkCreativeGroup(obj); |
| 13739 | 15058 |
| 13740 var path = (req.url).path; | 15059 var path = (req.url).path; |
| 13741 var pathOffset = 0; | 15060 var pathOffset = 0; |
| 13742 var index; | 15061 var index; |
| 13743 var subPart; | 15062 var subPart; |
| 13744 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15063 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13745 pathOffset += 1; | 15064 pathOffset += 1; |
| 13746 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15065 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13747 pathOffset += 18; | 15066 pathOffset += 18; |
| 13748 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15067 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13749 pathOffset += 13; | 15068 pathOffset += 13; |
| 13750 index = path.indexOf("/creativeGroups", pathOffset); | 15069 index = path.indexOf("/creativeGroups", pathOffset); |
| 13751 unittest.expect(index >= 0, unittest.isTrue); | 15070 unittest.expect(index >= 0, unittest.isTrue); |
| 13752 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15071 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13753 pathOffset = index; | 15072 pathOffset = index; |
| 13754 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15073 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13755 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); | 15074 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); |
| 13756 pathOffset += 15; | 15075 pathOffset += 15; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13794 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; | 15113 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; |
| 13795 var arg_profileId = "foo"; | 15114 var arg_profileId = "foo"; |
| 13796 var arg_id = "foo"; | 15115 var arg_id = "foo"; |
| 13797 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15116 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13798 var path = (req.url).path; | 15117 var path = (req.url).path; |
| 13799 var pathOffset = 0; | 15118 var pathOffset = 0; |
| 13800 var index; | 15119 var index; |
| 13801 var subPart; | 15120 var subPart; |
| 13802 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15121 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13803 pathOffset += 1; | 15122 pathOffset += 1; |
| 13804 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15123 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13805 pathOffset += 18; | 15124 pathOffset += 18; |
| 13806 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15125 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13807 pathOffset += 13; | 15126 pathOffset += 13; |
| 13808 index = path.indexOf("/creatives/", pathOffset); | 15127 index = path.indexOf("/creatives/", pathOffset); |
| 13809 unittest.expect(index >= 0, unittest.isTrue); | 15128 unittest.expect(index >= 0, unittest.isTrue); |
| 13810 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15129 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13811 pathOffset = index; | 15130 pathOffset = index; |
| 13812 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15131 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13813 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/creatives/")); | 15132 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/creatives/")); |
| 13814 pathOffset += 11; | 15133 pathOffset += 11; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13854 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15173 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13855 var obj = new api.Creative.fromJson(json); | 15174 var obj = new api.Creative.fromJson(json); |
| 13856 checkCreative(obj); | 15175 checkCreative(obj); |
| 13857 | 15176 |
| 13858 var path = (req.url).path; | 15177 var path = (req.url).path; |
| 13859 var pathOffset = 0; | 15178 var pathOffset = 0; |
| 13860 var index; | 15179 var index; |
| 13861 var subPart; | 15180 var subPart; |
| 13862 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15181 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13863 pathOffset += 1; | 15182 pathOffset += 1; |
| 13864 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15183 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13865 pathOffset += 18; | 15184 pathOffset += 18; |
| 13866 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15185 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13867 pathOffset += 13; | 15186 pathOffset += 13; |
| 13868 index = path.indexOf("/creatives", pathOffset); | 15187 index = path.indexOf("/creatives", pathOffset); |
| 13869 unittest.expect(index >= 0, unittest.isTrue); | 15188 unittest.expect(index >= 0, unittest.isTrue); |
| 13870 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15189 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13871 pathOffset = index; | 15190 pathOffset = index; |
| 13872 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15191 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13873 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); | 15192 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); |
| 13874 pathOffset += 10; | 15193 pathOffset += 10; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 13904 | 15223 |
| 13905 unittest.test("method--list", () { | 15224 unittest.test("method--list", () { |
| 13906 | 15225 |
| 13907 var mock = new HttpServerMock(); | 15226 var mock = new HttpServerMock(); |
| 13908 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; | 15227 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; |
| 13909 var arg_profileId = "foo"; | 15228 var arg_profileId = "foo"; |
| 13910 var arg_active = true; | 15229 var arg_active = true; |
| 13911 var arg_advertiserId = "foo"; | 15230 var arg_advertiserId = "foo"; |
| 13912 var arg_archived = true; | 15231 var arg_archived = true; |
| 13913 var arg_campaignId = "foo"; | 15232 var arg_campaignId = "foo"; |
| 13914 var arg_companionCreativeIds = buildUnnamed449(); | 15233 var arg_companionCreativeIds = buildUnnamed1512(); |
| 13915 var arg_creativeFieldIds = buildUnnamed450(); | 15234 var arg_creativeFieldIds = buildUnnamed1513(); |
| 13916 var arg_ids = buildUnnamed451(); | 15235 var arg_ids = buildUnnamed1514(); |
| 13917 var arg_maxResults = 42; | 15236 var arg_maxResults = 42; |
| 13918 var arg_pageToken = "foo"; | 15237 var arg_pageToken = "foo"; |
| 13919 var arg_renderingIds = buildUnnamed452(); | 15238 var arg_renderingIds = buildUnnamed1515(); |
| 13920 var arg_searchString = "foo"; | 15239 var arg_searchString = "foo"; |
| 13921 var arg_sizeIds = buildUnnamed453(); | 15240 var arg_sizeIds = buildUnnamed1516(); |
| 13922 var arg_sortField = "foo"; | 15241 var arg_sortField = "foo"; |
| 13923 var arg_sortOrder = "foo"; | 15242 var arg_sortOrder = "foo"; |
| 13924 var arg_studioCreativeId = "foo"; | 15243 var arg_studioCreativeId = "foo"; |
| 13925 var arg_types = buildUnnamed454(); | 15244 var arg_types = buildUnnamed1517(); |
| 13926 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15245 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13927 var path = (req.url).path; | 15246 var path = (req.url).path; |
| 13928 var pathOffset = 0; | 15247 var pathOffset = 0; |
| 13929 var index; | 15248 var index; |
| 13930 var subPart; | 15249 var subPart; |
| 13931 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15250 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13932 pathOffset += 1; | 15251 pathOffset += 1; |
| 13933 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15252 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 13934 pathOffset += 18; | 15253 pathOffset += 18; |
| 13935 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15254 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13936 pathOffset += 13; | 15255 pathOffset += 13; |
| 13937 index = path.indexOf("/creatives", pathOffset); | 15256 index = path.indexOf("/creatives", pathOffset); |
| 13938 unittest.expect(index >= 0, unittest.isTrue); | 15257 unittest.expect(index >= 0, unittest.isTrue); |
| 13939 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15258 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13940 pathOffset = index; | 15259 pathOffset = index; |
| 13941 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15260 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13942 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); | 15261 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); |
| 13943 pathOffset += 10; | 15262 pathOffset += 10; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13997 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15316 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13998 var obj = new api.Creative.fromJson(json); | 15317 var obj = new api.Creative.fromJson(json); |
| 13999 checkCreative(obj); | 15318 checkCreative(obj); |
| 14000 | 15319 |
| 14001 var path = (req.url).path; | 15320 var path = (req.url).path; |
| 14002 var pathOffset = 0; | 15321 var pathOffset = 0; |
| 14003 var index; | 15322 var index; |
| 14004 var subPart; | 15323 var subPart; |
| 14005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15324 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14006 pathOffset += 1; | 15325 pathOffset += 1; |
| 14007 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15326 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14008 pathOffset += 18; | 15327 pathOffset += 18; |
| 14009 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15328 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14010 pathOffset += 13; | 15329 pathOffset += 13; |
| 14011 index = path.indexOf("/creatives", pathOffset); | 15330 index = path.indexOf("/creatives", pathOffset); |
| 14012 unittest.expect(index >= 0, unittest.isTrue); | 15331 unittest.expect(index >= 0, unittest.isTrue); |
| 14013 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15332 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14014 pathOffset = index; | 15333 pathOffset = index; |
| 14015 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15334 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14016 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); | 15335 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); |
| 14017 pathOffset += 10; | 15336 pathOffset += 10; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14055 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15374 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14056 var obj = new api.Creative.fromJson(json); | 15375 var obj = new api.Creative.fromJson(json); |
| 14057 checkCreative(obj); | 15376 checkCreative(obj); |
| 14058 | 15377 |
| 14059 var path = (req.url).path; | 15378 var path = (req.url).path; |
| 14060 var pathOffset = 0; | 15379 var pathOffset = 0; |
| 14061 var index; | 15380 var index; |
| 14062 var subPart; | 15381 var subPart; |
| 14063 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15382 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14064 pathOffset += 1; | 15383 pathOffset += 1; |
| 14065 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15384 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14066 pathOffset += 18; | 15385 pathOffset += 18; |
| 14067 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15386 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14068 pathOffset += 13; | 15387 pathOffset += 13; |
| 14069 index = path.indexOf("/creatives", pathOffset); | 15388 index = path.indexOf("/creatives", pathOffset); |
| 14070 unittest.expect(index >= 0, unittest.isTrue); | 15389 unittest.expect(index >= 0, unittest.isTrue); |
| 14071 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15390 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14072 pathOffset = index; | 15391 pathOffset = index; |
| 14073 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15392 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14074 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); | 15393 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); |
| 14075 pathOffset += 10; | 15394 pathOffset += 10; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14118 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15437 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14119 var obj = new api.DimensionValueRequest.fromJson(json); | 15438 var obj = new api.DimensionValueRequest.fromJson(json); |
| 14120 checkDimensionValueRequest(obj); | 15439 checkDimensionValueRequest(obj); |
| 14121 | 15440 |
| 14122 var path = (req.url).path; | 15441 var path = (req.url).path; |
| 14123 var pathOffset = 0; | 15442 var pathOffset = 0; |
| 14124 var index; | 15443 var index; |
| 14125 var subPart; | 15444 var subPart; |
| 14126 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15445 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14127 pathOffset += 1; | 15446 pathOffset += 1; |
| 14128 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15447 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14129 pathOffset += 18; | 15448 pathOffset += 18; |
| 14130 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15449 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14131 pathOffset += 13; | 15450 pathOffset += 13; |
| 14132 index = path.indexOf("/dimensionvalues/query", pathOffset); | 15451 index = path.indexOf("/dimensionvalues/query", pathOffset); |
| 14133 unittest.expect(index >= 0, unittest.isTrue); | 15452 unittest.expect(index >= 0, unittest.isTrue); |
| 14134 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15453 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14135 pathOffset = index; | 15454 pathOffset = index; |
| 14136 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15455 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14137 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/dimensionvalues/query")); | 15456 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/dimensionvalues/query")); |
| 14138 pathOffset += 22; | 15457 pathOffset += 22; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14178 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d
irectorySiteContacts; | 15497 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d
irectorySiteContacts; |
| 14179 var arg_profileId = "foo"; | 15498 var arg_profileId = "foo"; |
| 14180 var arg_id = "foo"; | 15499 var arg_id = "foo"; |
| 14181 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15500 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14182 var path = (req.url).path; | 15501 var path = (req.url).path; |
| 14183 var pathOffset = 0; | 15502 var pathOffset = 0; |
| 14184 var index; | 15503 var index; |
| 14185 var subPart; | 15504 var subPart; |
| 14186 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15505 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14187 pathOffset += 1; | 15506 pathOffset += 1; |
| 14188 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15507 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14189 pathOffset += 18; | 15508 pathOffset += 18; |
| 14190 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15509 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14191 pathOffset += 13; | 15510 pathOffset += 13; |
| 14192 index = path.indexOf("/directorySiteContacts/", pathOffset); | 15511 index = path.indexOf("/directorySiteContacts/", pathOffset); |
| 14193 unittest.expect(index >= 0, unittest.isTrue); | 15512 unittest.expect(index >= 0, unittest.isTrue); |
| 14194 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15513 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14195 pathOffset = index; | 15514 pathOffset = index; |
| 14196 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15515 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14197 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/directorySiteContacts/")); | 15516 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/directorySiteContacts/")); |
| 14198 pathOffset += 23; | 15517 pathOffset += 23; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 14227 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi
teContact response) { | 15546 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi
teContact response) { |
| 14228 checkDirectorySiteContact(response); | 15547 checkDirectorySiteContact(response); |
| 14229 }))); | 15548 }))); |
| 14230 }); | 15549 }); |
| 14231 | 15550 |
| 14232 unittest.test("method--list", () { | 15551 unittest.test("method--list", () { |
| 14233 | 15552 |
| 14234 var mock = new HttpServerMock(); | 15553 var mock = new HttpServerMock(); |
| 14235 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d
irectorySiteContacts; | 15554 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d
irectorySiteContacts; |
| 14236 var arg_profileId = "foo"; | 15555 var arg_profileId = "foo"; |
| 14237 var arg_directorySiteIds = buildUnnamed455(); | 15556 var arg_directorySiteIds = buildUnnamed1518(); |
| 14238 var arg_ids = buildUnnamed456(); | 15557 var arg_ids = buildUnnamed1519(); |
| 14239 var arg_maxResults = 42; | 15558 var arg_maxResults = 42; |
| 14240 var arg_pageToken = "foo"; | 15559 var arg_pageToken = "foo"; |
| 14241 var arg_searchString = "foo"; | 15560 var arg_searchString = "foo"; |
| 14242 var arg_sortField = "foo"; | 15561 var arg_sortField = "foo"; |
| 14243 var arg_sortOrder = "foo"; | 15562 var arg_sortOrder = "foo"; |
| 14244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15563 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14245 var path = (req.url).path; | 15564 var path = (req.url).path; |
| 14246 var pathOffset = 0; | 15565 var pathOffset = 0; |
| 14247 var index; | 15566 var index; |
| 14248 var subPart; | 15567 var subPart; |
| 14249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15568 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14250 pathOffset += 1; | 15569 pathOffset += 1; |
| 14251 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15570 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14252 pathOffset += 18; | 15571 pathOffset += 18; |
| 14253 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15572 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14254 pathOffset += 13; | 15573 pathOffset += 13; |
| 14255 index = path.indexOf("/directorySiteContacts", pathOffset); | 15574 index = path.indexOf("/directorySiteContacts", pathOffset); |
| 14256 unittest.expect(index >= 0, unittest.isTrue); | 15575 unittest.expect(index >= 0, unittest.isTrue); |
| 14257 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15576 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14258 pathOffset = index; | 15577 pathOffset = index; |
| 14259 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15578 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14260 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/directorySiteContacts")); | 15579 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/directorySiteContacts")); |
| 14261 pathOffset += 22; | 15580 pathOffset += 22; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14306 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; | 15625 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; |
| 14307 var arg_profileId = "foo"; | 15626 var arg_profileId = "foo"; |
| 14308 var arg_id = "foo"; | 15627 var arg_id = "foo"; |
| 14309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15628 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14310 var path = (req.url).path; | 15629 var path = (req.url).path; |
| 14311 var pathOffset = 0; | 15630 var pathOffset = 0; |
| 14312 var index; | 15631 var index; |
| 14313 var subPart; | 15632 var subPart; |
| 14314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15633 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14315 pathOffset += 1; | 15634 pathOffset += 1; |
| 14316 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15635 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14317 pathOffset += 18; | 15636 pathOffset += 18; |
| 14318 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15637 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14319 pathOffset += 13; | 15638 pathOffset += 13; |
| 14320 index = path.indexOf("/directorySites/", pathOffset); | 15639 index = path.indexOf("/directorySites/", pathOffset); |
| 14321 unittest.expect(index >= 0, unittest.isTrue); | 15640 unittest.expect(index >= 0, unittest.isTrue); |
| 14322 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15641 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14323 pathOffset = index; | 15642 pathOffset = index; |
| 14324 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15643 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14325 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/directorySites/")); | 15644 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/directorySites/")); |
| 14326 pathOffset += 16; | 15645 pathOffset += 16; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 14350 "content-type" : "application/json; charset=utf-8", | 15669 "content-type" : "application/json; charset=utf-8", |
| 14351 }; | 15670 }; |
| 14352 var resp = convert.JSON.encode(buildDirectorySite()); | 15671 var resp = convert.JSON.encode(buildDirectorySite()); |
| 14353 return new async.Future.value(stringResponse(200, h, resp)); | 15672 return new async.Future.value(stringResponse(200, h, resp)); |
| 14354 }), true); | 15673 }), true); |
| 14355 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi
te response) { | 15674 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi
te response) { |
| 14356 checkDirectorySite(response); | 15675 checkDirectorySite(response); |
| 14357 }))); | 15676 }))); |
| 14358 }); | 15677 }); |
| 14359 | 15678 |
| 15679 unittest.test("method--insert", () { |
| 15680 |
| 15681 var mock = new HttpServerMock(); |
| 15682 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; |
| 15683 var arg_request = buildDirectorySite(); |
| 15684 var arg_profileId = "foo"; |
| 15685 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15686 var obj = new api.DirectorySite.fromJson(json); |
| 15687 checkDirectorySite(obj); |
| 15688 |
| 15689 var path = (req.url).path; |
| 15690 var pathOffset = 0; |
| 15691 var index; |
| 15692 var subPart; |
| 15693 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15694 pathOffset += 1; |
| 15695 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15696 pathOffset += 18; |
| 15697 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15698 pathOffset += 13; |
| 15699 index = path.indexOf("/directorySites", pathOffset); |
| 15700 unittest.expect(index >= 0, unittest.isTrue); |
| 15701 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15702 pathOffset = index; |
| 15703 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15704 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/directorySites")); |
| 15705 pathOffset += 15; |
| 15706 |
| 15707 var query = (req.url).query; |
| 15708 var queryOffset = 0; |
| 15709 var queryMap = {}; |
| 15710 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15711 parseBool(n) { |
| 15712 if (n == "true") return true; |
| 15713 if (n == "false") return false; |
| 15714 if (n == null) return null; |
| 15715 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15716 } |
| 15717 if (query.length > 0) { |
| 15718 for (var part in query.split("&")) { |
| 15719 var keyvalue = part.split("="); |
| 15720 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15721 } |
| 15722 } |
| 15723 |
| 15724 |
| 15725 var h = { |
| 15726 "content-type" : "application/json; charset=utf-8", |
| 15727 }; |
| 15728 var resp = convert.JSON.encode(buildDirectorySite()); |
| 15729 return new async.Future.value(stringResponse(200, h, resp)); |
| 15730 }), true); |
| 15731 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Dir
ectorySite response) { |
| 15732 checkDirectorySite(response); |
| 15733 }))); |
| 15734 }); |
| 15735 |
| 14360 unittest.test("method--list", () { | 15736 unittest.test("method--list", () { |
| 14361 | 15737 |
| 14362 var mock = new HttpServerMock(); | 15738 var mock = new HttpServerMock(); |
| 14363 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; | 15739 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; |
| 14364 var arg_profileId = "foo"; | 15740 var arg_profileId = "foo"; |
| 14365 var arg_acceptsInStreamVideoPlacements = true; | 15741 var arg_acceptsInStreamVideoPlacements = true; |
| 14366 var arg_acceptsInterstitialPlacements = true; | 15742 var arg_acceptsInterstitialPlacements = true; |
| 14367 var arg_acceptsPublisherPaidPlacements = true; | 15743 var arg_acceptsPublisherPaidPlacements = true; |
| 14368 var arg_active = true; | 15744 var arg_active = true; |
| 14369 var arg_countryId = "foo"; | 15745 var arg_countryId = "foo"; |
| 14370 var arg_dfpNetworkCode = "foo"; | 15746 var arg_dfpNetworkCode = "foo"; |
| 14371 var arg_ids = buildUnnamed457(); | 15747 var arg_ids = buildUnnamed1520(); |
| 14372 var arg_maxResults = 42; | 15748 var arg_maxResults = 42; |
| 14373 var arg_pageToken = "foo"; | 15749 var arg_pageToken = "foo"; |
| 14374 var arg_parentId = "foo"; | 15750 var arg_parentId = "foo"; |
| 14375 var arg_searchString = "foo"; | 15751 var arg_searchString = "foo"; |
| 14376 var arg_sortField = "foo"; | 15752 var arg_sortField = "foo"; |
| 14377 var arg_sortOrder = "foo"; | 15753 var arg_sortOrder = "foo"; |
| 14378 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15754 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14379 var path = (req.url).path; | 15755 var path = (req.url).path; |
| 14380 var pathOffset = 0; | 15756 var pathOffset = 0; |
| 14381 var index; | 15757 var index; |
| 14382 var subPart; | 15758 var subPart; |
| 14383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14384 pathOffset += 1; | 15760 pathOffset += 1; |
| 14385 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15761 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14386 pathOffset += 18; | 15762 pathOffset += 18; |
| 14387 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15763 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14388 pathOffset += 13; | 15764 pathOffset += 13; |
| 14389 index = path.indexOf("/directorySites", pathOffset); | 15765 index = path.indexOf("/directorySites", pathOffset); |
| 14390 unittest.expect(index >= 0, unittest.isTrue); | 15766 unittest.expect(index >= 0, unittest.isTrue); |
| 14391 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15767 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14392 pathOffset = index; | 15768 pathOffset = index; |
| 14393 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15769 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14394 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/directorySites")); | 15770 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/directorySites")); |
| 14395 pathOffset += 15; | 15771 pathOffset += 15; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14446 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; | 15822 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; |
| 14447 var arg_profileId = "foo"; | 15823 var arg_profileId = "foo"; |
| 14448 var arg_id = "foo"; | 15824 var arg_id = "foo"; |
| 14449 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15825 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14450 var path = (req.url).path; | 15826 var path = (req.url).path; |
| 14451 var pathOffset = 0; | 15827 var pathOffset = 0; |
| 14452 var index; | 15828 var index; |
| 14453 var subPart; | 15829 var subPart; |
| 14454 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15830 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14455 pathOffset += 1; | 15831 pathOffset += 1; |
| 14456 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15832 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14457 pathOffset += 18; | 15833 pathOffset += 18; |
| 14458 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15834 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14459 pathOffset += 13; | 15835 pathOffset += 13; |
| 14460 index = path.indexOf("/eventTags/", pathOffset); | 15836 index = path.indexOf("/eventTags/", pathOffset); |
| 14461 unittest.expect(index >= 0, unittest.isTrue); | 15837 unittest.expect(index >= 0, unittest.isTrue); |
| 14462 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15838 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14463 pathOffset = index; | 15839 pathOffset = index; |
| 14464 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15840 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14465 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/eventTags/")); | 15841 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/eventTags/")); |
| 14466 pathOffset += 11; | 15842 pathOffset += 11; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14501 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; | 15877 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; |
| 14502 var arg_profileId = "foo"; | 15878 var arg_profileId = "foo"; |
| 14503 var arg_id = "foo"; | 15879 var arg_id = "foo"; |
| 14504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15880 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14505 var path = (req.url).path; | 15881 var path = (req.url).path; |
| 14506 var pathOffset = 0; | 15882 var pathOffset = 0; |
| 14507 var index; | 15883 var index; |
| 14508 var subPart; | 15884 var subPart; |
| 14509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15885 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14510 pathOffset += 1; | 15886 pathOffset += 1; |
| 14511 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15887 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14512 pathOffset += 18; | 15888 pathOffset += 18; |
| 14513 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15889 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14514 pathOffset += 13; | 15890 pathOffset += 13; |
| 14515 index = path.indexOf("/eventTags/", pathOffset); | 15891 index = path.indexOf("/eventTags/", pathOffset); |
| 14516 unittest.expect(index >= 0, unittest.isTrue); | 15892 unittest.expect(index >= 0, unittest.isTrue); |
| 14517 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15893 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14518 pathOffset = index; | 15894 pathOffset = index; |
| 14519 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15895 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14520 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/eventTags/")); | 15896 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/eventTags/")); |
| 14521 pathOffset += 11; | 15897 pathOffset += 11; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14561 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14562 var obj = new api.EventTag.fromJson(json); | 15938 var obj = new api.EventTag.fromJson(json); |
| 14563 checkEventTag(obj); | 15939 checkEventTag(obj); |
| 14564 | 15940 |
| 14565 var path = (req.url).path; | 15941 var path = (req.url).path; |
| 14566 var pathOffset = 0; | 15942 var pathOffset = 0; |
| 14567 var index; | 15943 var index; |
| 14568 var subPart; | 15944 var subPart; |
| 14569 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15945 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14570 pathOffset += 1; | 15946 pathOffset += 1; |
| 14571 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15947 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14572 pathOffset += 18; | 15948 pathOffset += 18; |
| 14573 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15949 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14574 pathOffset += 13; | 15950 pathOffset += 13; |
| 14575 index = path.indexOf("/eventTags", pathOffset); | 15951 index = path.indexOf("/eventTags", pathOffset); |
| 14576 unittest.expect(index >= 0, unittest.isTrue); | 15952 unittest.expect(index >= 0, unittest.isTrue); |
| 14577 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15953 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14578 pathOffset = index; | 15954 pathOffset = index; |
| 14579 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15955 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14580 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); | 15956 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); |
| 14581 pathOffset += 10; | 15957 pathOffset += 10; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 14612 unittest.test("method--list", () { | 15988 unittest.test("method--list", () { |
| 14613 | 15989 |
| 14614 var mock = new HttpServerMock(); | 15990 var mock = new HttpServerMock(); |
| 14615 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; | 15991 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; |
| 14616 var arg_profileId = "foo"; | 15992 var arg_profileId = "foo"; |
| 14617 var arg_adId = "foo"; | 15993 var arg_adId = "foo"; |
| 14618 var arg_advertiserId = "foo"; | 15994 var arg_advertiserId = "foo"; |
| 14619 var arg_campaignId = "foo"; | 15995 var arg_campaignId = "foo"; |
| 14620 var arg_definitionsOnly = true; | 15996 var arg_definitionsOnly = true; |
| 14621 var arg_enabled = true; | 15997 var arg_enabled = true; |
| 14622 var arg_eventTagTypes = buildUnnamed458(); | 15998 var arg_eventTagTypes = buildUnnamed1521(); |
| 14623 var arg_ids = buildUnnamed459(); | 15999 var arg_ids = buildUnnamed1522(); |
| 14624 var arg_searchString = "foo"; | 16000 var arg_searchString = "foo"; |
| 14625 var arg_sortField = "foo"; | 16001 var arg_sortField = "foo"; |
| 14626 var arg_sortOrder = "foo"; | 16002 var arg_sortOrder = "foo"; |
| 14627 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16003 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14628 var path = (req.url).path; | 16004 var path = (req.url).path; |
| 14629 var pathOffset = 0; | 16005 var pathOffset = 0; |
| 14630 var index; | 16006 var index; |
| 14631 var subPart; | 16007 var subPart; |
| 14632 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16008 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14633 pathOffset += 1; | 16009 pathOffset += 1; |
| 14634 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16010 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14635 pathOffset += 18; | 16011 pathOffset += 18; |
| 14636 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16012 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14637 pathOffset += 13; | 16013 pathOffset += 13; |
| 14638 index = path.indexOf("/eventTags", pathOffset); | 16014 index = path.indexOf("/eventTags", pathOffset); |
| 14639 unittest.expect(index >= 0, unittest.isTrue); | 16015 unittest.expect(index >= 0, unittest.isTrue); |
| 14640 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16016 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14641 pathOffset = index; | 16017 pathOffset = index; |
| 14642 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16018 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14643 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); | 16019 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); |
| 14644 pathOffset += 10; | 16020 pathOffset += 10; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16068 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14693 var obj = new api.EventTag.fromJson(json); | 16069 var obj = new api.EventTag.fromJson(json); |
| 14694 checkEventTag(obj); | 16070 checkEventTag(obj); |
| 14695 | 16071 |
| 14696 var path = (req.url).path; | 16072 var path = (req.url).path; |
| 14697 var pathOffset = 0; | 16073 var pathOffset = 0; |
| 14698 var index; | 16074 var index; |
| 14699 var subPart; | 16075 var subPart; |
| 14700 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16076 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14701 pathOffset += 1; | 16077 pathOffset += 1; |
| 14702 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16078 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14703 pathOffset += 18; | 16079 pathOffset += 18; |
| 14704 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16080 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14705 pathOffset += 13; | 16081 pathOffset += 13; |
| 14706 index = path.indexOf("/eventTags", pathOffset); | 16082 index = path.indexOf("/eventTags", pathOffset); |
| 14707 unittest.expect(index >= 0, unittest.isTrue); | 16083 unittest.expect(index >= 0, unittest.isTrue); |
| 14708 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16084 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14709 pathOffset = index; | 16085 pathOffset = index; |
| 14710 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16086 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14711 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); | 16087 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); |
| 14712 pathOffset += 10; | 16088 pathOffset += 10; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14750 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16126 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14751 var obj = new api.EventTag.fromJson(json); | 16127 var obj = new api.EventTag.fromJson(json); |
| 14752 checkEventTag(obj); | 16128 checkEventTag(obj); |
| 14753 | 16129 |
| 14754 var path = (req.url).path; | 16130 var path = (req.url).path; |
| 14755 var pathOffset = 0; | 16131 var pathOffset = 0; |
| 14756 var index; | 16132 var index; |
| 14757 var subPart; | 16133 var subPart; |
| 14758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16134 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14759 pathOffset += 1; | 16135 pathOffset += 1; |
| 14760 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16136 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14761 pathOffset += 18; | 16137 pathOffset += 18; |
| 14762 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16138 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14763 pathOffset += 13; | 16139 pathOffset += 13; |
| 14764 index = path.indexOf("/eventTags", pathOffset); | 16140 index = path.indexOf("/eventTags", pathOffset); |
| 14765 unittest.expect(index >= 0, unittest.isTrue); | 16141 unittest.expect(index >= 0, unittest.isTrue); |
| 14766 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16142 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14767 pathOffset = index; | 16143 pathOffset = index; |
| 14768 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16144 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14769 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); | 16145 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); |
| 14770 pathOffset += 10; | 16146 pathOffset += 10; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14810 api.FilesResourceApi res = new api.DfareportingApi(mock).files; | 16186 api.FilesResourceApi res = new api.DfareportingApi(mock).files; |
| 14811 var arg_reportId = "foo"; | 16187 var arg_reportId = "foo"; |
| 14812 var arg_fileId = "foo"; | 16188 var arg_fileId = "foo"; |
| 14813 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16189 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14814 var path = (req.url).path; | 16190 var path = (req.url).path; |
| 14815 var pathOffset = 0; | 16191 var pathOffset = 0; |
| 14816 var index; | 16192 var index; |
| 14817 var subPart; | 16193 var subPart; |
| 14818 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16194 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14819 pathOffset += 1; | 16195 pathOffset += 1; |
| 14820 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16196 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14821 pathOffset += 18; | 16197 pathOffset += 18; |
| 14822 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); | 16198 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); |
| 14823 pathOffset += 8; | 16199 pathOffset += 8; |
| 14824 index = path.indexOf("/files/", pathOffset); | 16200 index = path.indexOf("/files/", pathOffset); |
| 14825 unittest.expect(index >= 0, unittest.isTrue); | 16201 unittest.expect(index >= 0, unittest.isTrue); |
| 14826 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16202 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14827 pathOffset = index; | 16203 pathOffset = index; |
| 14828 unittest.expect(subPart, unittest.equals("$arg_reportId")); | 16204 unittest.expect(subPart, unittest.equals("$arg_reportId")); |
| 14829 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/files/")); | 16205 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/files/")); |
| 14830 pathOffset += 7; | 16206 pathOffset += 7; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14871 var arg_scope = "foo"; | 16247 var arg_scope = "foo"; |
| 14872 var arg_sortField = "foo"; | 16248 var arg_sortField = "foo"; |
| 14873 var arg_sortOrder = "foo"; | 16249 var arg_sortOrder = "foo"; |
| 14874 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16250 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14875 var path = (req.url).path; | 16251 var path = (req.url).path; |
| 14876 var pathOffset = 0; | 16252 var pathOffset = 0; |
| 14877 var index; | 16253 var index; |
| 14878 var subPart; | 16254 var subPart; |
| 14879 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16255 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14880 pathOffset += 1; | 16256 pathOffset += 1; |
| 14881 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16257 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14882 pathOffset += 18; | 16258 pathOffset += 18; |
| 14883 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16259 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14884 pathOffset += 13; | 16260 pathOffset += 13; |
| 14885 index = path.indexOf("/files", pathOffset); | 16261 index = path.indexOf("/files", pathOffset); |
| 14886 unittest.expect(index >= 0, unittest.isTrue); | 16262 unittest.expect(index >= 0, unittest.isTrue); |
| 14887 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16263 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14888 pathOffset = index; | 16264 pathOffset = index; |
| 14889 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16265 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14890 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/files")); | 16266 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/files")); |
| 14891 pathOffset += 6; | 16267 pathOffset += 6; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14934 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; | 16310 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; |
| 14935 var arg_profileId = "foo"; | 16311 var arg_profileId = "foo"; |
| 14936 var arg_id = "foo"; | 16312 var arg_id = "foo"; |
| 14937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16313 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14938 var path = (req.url).path; | 16314 var path = (req.url).path; |
| 14939 var pathOffset = 0; | 16315 var pathOffset = 0; |
| 14940 var index; | 16316 var index; |
| 14941 var subPart; | 16317 var subPart; |
| 14942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16318 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14943 pathOffset += 1; | 16319 pathOffset += 1; |
| 14944 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16320 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 14945 pathOffset += 18; | 16321 pathOffset += 18; |
| 14946 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16322 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 14947 pathOffset += 13; | 16323 pathOffset += 13; |
| 14948 index = path.indexOf("/floodlightActivities/", pathOffset); | 16324 index = path.indexOf("/floodlightActivities/", pathOffset); |
| 14949 unittest.expect(index >= 0, unittest.isTrue); | 16325 unittest.expect(index >= 0, unittest.isTrue); |
| 14950 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16326 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 14951 pathOffset = index; | 16327 pathOffset = index; |
| 14952 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16328 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 14953 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/floodlightActivities/")); | 16329 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/floodlightActivities/")); |
| 14954 pathOffset += 22; | 16330 pathOffset += 22; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14989 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; | 16365 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; |
| 14990 var arg_profileId = "foo"; | 16366 var arg_profileId = "foo"; |
| 14991 var arg_floodlightActivityId = "foo"; | 16367 var arg_floodlightActivityId = "foo"; |
| 14992 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16368 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14993 var path = (req.url).path; | 16369 var path = (req.url).path; |
| 14994 var pathOffset = 0; | 16370 var pathOffset = 0; |
| 14995 var index; | 16371 var index; |
| 14996 var subPart; | 16372 var subPart; |
| 14997 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16373 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14998 pathOffset += 1; | 16374 pathOffset += 1; |
| 14999 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16375 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15000 pathOffset += 18; | 16376 pathOffset += 18; |
| 15001 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16377 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15002 pathOffset += 13; | 16378 pathOffset += 13; |
| 15003 index = path.indexOf("/floodlightActivities/generatetag", pathOffset); | 16379 index = path.indexOf("/floodlightActivities/generatetag", pathOffset); |
| 15004 unittest.expect(index >= 0, unittest.isTrue); | 16380 unittest.expect(index >= 0, unittest.isTrue); |
| 15005 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16381 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15006 pathOffset = index; | 16382 pathOffset = index; |
| 15007 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16383 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15008 unittest.expect(path.substring(pathOffset, pathOffset + 33), unittest.eq
uals("/floodlightActivities/generatetag")); | 16384 unittest.expect(path.substring(pathOffset, pathOffset + 33), unittest.eq
uals("/floodlightActivities/generatetag")); |
| 15009 pathOffset += 33; | 16385 pathOffset += 33; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15044 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; | 16420 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; |
| 15045 var arg_profileId = "foo"; | 16421 var arg_profileId = "foo"; |
| 15046 var arg_id = "foo"; | 16422 var arg_id = "foo"; |
| 15047 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16423 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15048 var path = (req.url).path; | 16424 var path = (req.url).path; |
| 15049 var pathOffset = 0; | 16425 var pathOffset = 0; |
| 15050 var index; | 16426 var index; |
| 15051 var subPart; | 16427 var subPart; |
| 15052 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16428 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15053 pathOffset += 1; | 16429 pathOffset += 1; |
| 15054 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16430 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15055 pathOffset += 18; | 16431 pathOffset += 18; |
| 15056 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16432 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15057 pathOffset += 13; | 16433 pathOffset += 13; |
| 15058 index = path.indexOf("/floodlightActivities/", pathOffset); | 16434 index = path.indexOf("/floodlightActivities/", pathOffset); |
| 15059 unittest.expect(index >= 0, unittest.isTrue); | 16435 unittest.expect(index >= 0, unittest.isTrue); |
| 15060 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16436 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15061 pathOffset = index; | 16437 pathOffset = index; |
| 15062 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16438 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15063 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/floodlightActivities/")); | 16439 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/floodlightActivities/")); |
| 15064 pathOffset += 22; | 16440 pathOffset += 22; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15104 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15105 var obj = new api.FloodlightActivity.fromJson(json); | 16481 var obj = new api.FloodlightActivity.fromJson(json); |
| 15106 checkFloodlightActivity(obj); | 16482 checkFloodlightActivity(obj); |
| 15107 | 16483 |
| 15108 var path = (req.url).path; | 16484 var path = (req.url).path; |
| 15109 var pathOffset = 0; | 16485 var pathOffset = 0; |
| 15110 var index; | 16486 var index; |
| 15111 var subPart; | 16487 var subPart; |
| 15112 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15113 pathOffset += 1; | 16489 pathOffset += 1; |
| 15114 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16490 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15115 pathOffset += 18; | 16491 pathOffset += 18; |
| 15116 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16492 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15117 pathOffset += 13; | 16493 pathOffset += 13; |
| 15118 index = path.indexOf("/floodlightActivities", pathOffset); | 16494 index = path.indexOf("/floodlightActivities", pathOffset); |
| 15119 unittest.expect(index >= 0, unittest.isTrue); | 16495 unittest.expect(index >= 0, unittest.isTrue); |
| 15120 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16496 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15121 pathOffset = index; | 16497 pathOffset = index; |
| 15122 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16498 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15123 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); | 16499 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); |
| 15124 pathOffset += 21; | 16500 pathOffset += 21; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 15151 checkFloodlightActivity(response); | 16527 checkFloodlightActivity(response); |
| 15152 }))); | 16528 }))); |
| 15153 }); | 16529 }); |
| 15154 | 16530 |
| 15155 unittest.test("method--list", () { | 16531 unittest.test("method--list", () { |
| 15156 | 16532 |
| 15157 var mock = new HttpServerMock(); | 16533 var mock = new HttpServerMock(); |
| 15158 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; | 16534 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; |
| 15159 var arg_profileId = "foo"; | 16535 var arg_profileId = "foo"; |
| 15160 var arg_advertiserId = "foo"; | 16536 var arg_advertiserId = "foo"; |
| 15161 var arg_floodlightActivityGroupIds = buildUnnamed460(); | 16537 var arg_floodlightActivityGroupIds = buildUnnamed1523(); |
| 15162 var arg_floodlightActivityGroupName = "foo"; | 16538 var arg_floodlightActivityGroupName = "foo"; |
| 15163 var arg_floodlightActivityGroupTagString = "foo"; | 16539 var arg_floodlightActivityGroupTagString = "foo"; |
| 15164 var arg_floodlightActivityGroupType = "foo"; | 16540 var arg_floodlightActivityGroupType = "foo"; |
| 15165 var arg_floodlightConfigurationId = "foo"; | 16541 var arg_floodlightConfigurationId = "foo"; |
| 15166 var arg_ids = buildUnnamed461(); | 16542 var arg_ids = buildUnnamed1524(); |
| 15167 var arg_maxResults = 42; | 16543 var arg_maxResults = 42; |
| 15168 var arg_pageToken = "foo"; | 16544 var arg_pageToken = "foo"; |
| 15169 var arg_searchString = "foo"; | 16545 var arg_searchString = "foo"; |
| 15170 var arg_sortField = "foo"; | 16546 var arg_sortField = "foo"; |
| 15171 var arg_sortOrder = "foo"; | 16547 var arg_sortOrder = "foo"; |
| 15172 var arg_tagString = "foo"; | 16548 var arg_tagString = "foo"; |
| 15173 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16549 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15174 var path = (req.url).path; | 16550 var path = (req.url).path; |
| 15175 var pathOffset = 0; | 16551 var pathOffset = 0; |
| 15176 var index; | 16552 var index; |
| 15177 var subPart; | 16553 var subPart; |
| 15178 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16554 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15179 pathOffset += 1; | 16555 pathOffset += 1; |
| 15180 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16556 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15181 pathOffset += 18; | 16557 pathOffset += 18; |
| 15182 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16558 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15183 pathOffset += 13; | 16559 pathOffset += 13; |
| 15184 index = path.indexOf("/floodlightActivities", pathOffset); | 16560 index = path.indexOf("/floodlightActivities", pathOffset); |
| 15185 unittest.expect(index >= 0, unittest.isTrue); | 16561 unittest.expect(index >= 0, unittest.isTrue); |
| 15186 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16562 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15187 pathOffset = index; | 16563 pathOffset = index; |
| 15188 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16564 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15189 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); | 16565 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); |
| 15190 pathOffset += 21; | 16566 pathOffset += 21; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15241 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16617 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15242 var obj = new api.FloodlightActivity.fromJson(json); | 16618 var obj = new api.FloodlightActivity.fromJson(json); |
| 15243 checkFloodlightActivity(obj); | 16619 checkFloodlightActivity(obj); |
| 15244 | 16620 |
| 15245 var path = (req.url).path; | 16621 var path = (req.url).path; |
| 15246 var pathOffset = 0; | 16622 var pathOffset = 0; |
| 15247 var index; | 16623 var index; |
| 15248 var subPart; | 16624 var subPart; |
| 15249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16625 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15250 pathOffset += 1; | 16626 pathOffset += 1; |
| 15251 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16627 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15252 pathOffset += 18; | 16628 pathOffset += 18; |
| 15253 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16629 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15254 pathOffset += 13; | 16630 pathOffset += 13; |
| 15255 index = path.indexOf("/floodlightActivities", pathOffset); | 16631 index = path.indexOf("/floodlightActivities", pathOffset); |
| 15256 unittest.expect(index >= 0, unittest.isTrue); | 16632 unittest.expect(index >= 0, unittest.isTrue); |
| 15257 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16633 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15258 pathOffset = index; | 16634 pathOffset = index; |
| 15259 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16635 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15260 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); | 16636 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); |
| 15261 pathOffset += 21; | 16637 pathOffset += 21; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15299 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16675 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15300 var obj = new api.FloodlightActivity.fromJson(json); | 16676 var obj = new api.FloodlightActivity.fromJson(json); |
| 15301 checkFloodlightActivity(obj); | 16677 checkFloodlightActivity(obj); |
| 15302 | 16678 |
| 15303 var path = (req.url).path; | 16679 var path = (req.url).path; |
| 15304 var pathOffset = 0; | 16680 var pathOffset = 0; |
| 15305 var index; | 16681 var index; |
| 15306 var subPart; | 16682 var subPart; |
| 15307 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16683 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15308 pathOffset += 1; | 16684 pathOffset += 1; |
| 15309 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16685 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15310 pathOffset += 18; | 16686 pathOffset += 18; |
| 15311 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16687 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15312 pathOffset += 13; | 16688 pathOffset += 13; |
| 15313 index = path.indexOf("/floodlightActivities", pathOffset); | 16689 index = path.indexOf("/floodlightActivities", pathOffset); |
| 15314 unittest.expect(index >= 0, unittest.isTrue); | 16690 unittest.expect(index >= 0, unittest.isTrue); |
| 15315 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16691 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15316 pathOffset = index; | 16692 pathOffset = index; |
| 15317 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16693 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15318 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); | 16694 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); |
| 15319 pathOffset += 21; | 16695 pathOffset += 21; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15357 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; | 16733 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; |
| 15358 var arg_profileId = "foo"; | 16734 var arg_profileId = "foo"; |
| 15359 var arg_id = "foo"; | 16735 var arg_id = "foo"; |
| 15360 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16736 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15361 var path = (req.url).path; | 16737 var path = (req.url).path; |
| 15362 var pathOffset = 0; | 16738 var pathOffset = 0; |
| 15363 var index; | 16739 var index; |
| 15364 var subPart; | 16740 var subPart; |
| 15365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16741 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15366 pathOffset += 1; | 16742 pathOffset += 1; |
| 15367 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16743 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15368 pathOffset += 18; | 16744 pathOffset += 18; |
| 15369 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16745 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15370 pathOffset += 13; | 16746 pathOffset += 13; |
| 15371 index = path.indexOf("/floodlightActivityGroups/", pathOffset); | 16747 index = path.indexOf("/floodlightActivityGroups/", pathOffset); |
| 15372 unittest.expect(index >= 0, unittest.isTrue); | 16748 unittest.expect(index >= 0, unittest.isTrue); |
| 15373 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16749 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15374 pathOffset = index; | 16750 pathOffset = index; |
| 15375 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16751 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15376 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightActivityGroups/")); | 16752 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightActivityGroups/")); |
| 15377 pathOffset += 26; | 16753 pathOffset += 26; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15412 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; | 16788 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; |
| 15413 var arg_profileId = "foo"; | 16789 var arg_profileId = "foo"; |
| 15414 var arg_id = "foo"; | 16790 var arg_id = "foo"; |
| 15415 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16791 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15416 var path = (req.url).path; | 16792 var path = (req.url).path; |
| 15417 var pathOffset = 0; | 16793 var pathOffset = 0; |
| 15418 var index; | 16794 var index; |
| 15419 var subPart; | 16795 var subPart; |
| 15420 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16796 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15421 pathOffset += 1; | 16797 pathOffset += 1; |
| 15422 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16798 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15423 pathOffset += 18; | 16799 pathOffset += 18; |
| 15424 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16800 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15425 pathOffset += 13; | 16801 pathOffset += 13; |
| 15426 index = path.indexOf("/floodlightActivityGroups/", pathOffset); | 16802 index = path.indexOf("/floodlightActivityGroups/", pathOffset); |
| 15427 unittest.expect(index >= 0, unittest.isTrue); | 16803 unittest.expect(index >= 0, unittest.isTrue); |
| 15428 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16804 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15429 pathOffset = index; | 16805 pathOffset = index; |
| 15430 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16806 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15431 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightActivityGroups/")); | 16807 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightActivityGroups/")); |
| 15432 pathOffset += 26; | 16808 pathOffset += 26; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15472 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16848 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15473 var obj = new api.FloodlightActivityGroup.fromJson(json); | 16849 var obj = new api.FloodlightActivityGroup.fromJson(json); |
| 15474 checkFloodlightActivityGroup(obj); | 16850 checkFloodlightActivityGroup(obj); |
| 15475 | 16851 |
| 15476 var path = (req.url).path; | 16852 var path = (req.url).path; |
| 15477 var pathOffset = 0; | 16853 var pathOffset = 0; |
| 15478 var index; | 16854 var index; |
| 15479 var subPart; | 16855 var subPart; |
| 15480 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16856 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15481 pathOffset += 1; | 16857 pathOffset += 1; |
| 15482 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16858 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15483 pathOffset += 18; | 16859 pathOffset += 18; |
| 15484 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16860 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15485 pathOffset += 13; | 16861 pathOffset += 13; |
| 15486 index = path.indexOf("/floodlightActivityGroups", pathOffset); | 16862 index = path.indexOf("/floodlightActivityGroups", pathOffset); |
| 15487 unittest.expect(index >= 0, unittest.isTrue); | 16863 unittest.expect(index >= 0, unittest.isTrue); |
| 15488 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16864 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15489 pathOffset = index; | 16865 pathOffset = index; |
| 15490 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16866 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15491 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); | 16867 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); |
| 15492 pathOffset += 25; | 16868 pathOffset += 25; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 15520 }))); | 16896 }))); |
| 15521 }); | 16897 }); |
| 15522 | 16898 |
| 15523 unittest.test("method--list", () { | 16899 unittest.test("method--list", () { |
| 15524 | 16900 |
| 15525 var mock = new HttpServerMock(); | 16901 var mock = new HttpServerMock(); |
| 15526 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; | 16902 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; |
| 15527 var arg_profileId = "foo"; | 16903 var arg_profileId = "foo"; |
| 15528 var arg_advertiserId = "foo"; | 16904 var arg_advertiserId = "foo"; |
| 15529 var arg_floodlightConfigurationId = "foo"; | 16905 var arg_floodlightConfigurationId = "foo"; |
| 15530 var arg_ids = buildUnnamed462(); | 16906 var arg_ids = buildUnnamed1525(); |
| 15531 var arg_maxResults = 42; | 16907 var arg_maxResults = 42; |
| 15532 var arg_pageToken = "foo"; | 16908 var arg_pageToken = "foo"; |
| 15533 var arg_searchString = "foo"; | 16909 var arg_searchString = "foo"; |
| 15534 var arg_sortField = "foo"; | 16910 var arg_sortField = "foo"; |
| 15535 var arg_sortOrder = "foo"; | 16911 var arg_sortOrder = "foo"; |
| 15536 var arg_type = "foo"; | 16912 var arg_type = "foo"; |
| 15537 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16913 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15538 var path = (req.url).path; | 16914 var path = (req.url).path; |
| 15539 var pathOffset = 0; | 16915 var pathOffset = 0; |
| 15540 var index; | 16916 var index; |
| 15541 var subPart; | 16917 var subPart; |
| 15542 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16918 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15543 pathOffset += 1; | 16919 pathOffset += 1; |
| 15544 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16920 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15545 pathOffset += 18; | 16921 pathOffset += 18; |
| 15546 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16922 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15547 pathOffset += 13; | 16923 pathOffset += 13; |
| 15548 index = path.indexOf("/floodlightActivityGroups", pathOffset); | 16924 index = path.indexOf("/floodlightActivityGroups", pathOffset); |
| 15549 unittest.expect(index >= 0, unittest.isTrue); | 16925 unittest.expect(index >= 0, unittest.isTrue); |
| 15550 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16926 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15551 pathOffset = index; | 16927 pathOffset = index; |
| 15552 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16928 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15553 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); | 16929 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); |
| 15554 pathOffset += 25; | 16930 pathOffset += 25; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15601 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16977 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15602 var obj = new api.FloodlightActivityGroup.fromJson(json); | 16978 var obj = new api.FloodlightActivityGroup.fromJson(json); |
| 15603 checkFloodlightActivityGroup(obj); | 16979 checkFloodlightActivityGroup(obj); |
| 15604 | 16980 |
| 15605 var path = (req.url).path; | 16981 var path = (req.url).path; |
| 15606 var pathOffset = 0; | 16982 var pathOffset = 0; |
| 15607 var index; | 16983 var index; |
| 15608 var subPart; | 16984 var subPart; |
| 15609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16985 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15610 pathOffset += 1; | 16986 pathOffset += 1; |
| 15611 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16987 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15612 pathOffset += 18; | 16988 pathOffset += 18; |
| 15613 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16989 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15614 pathOffset += 13; | 16990 pathOffset += 13; |
| 15615 index = path.indexOf("/floodlightActivityGroups", pathOffset); | 16991 index = path.indexOf("/floodlightActivityGroups", pathOffset); |
| 15616 unittest.expect(index >= 0, unittest.isTrue); | 16992 unittest.expect(index >= 0, unittest.isTrue); |
| 15617 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16993 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15618 pathOffset = index; | 16994 pathOffset = index; |
| 15619 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16995 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15620 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); | 16996 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); |
| 15621 pathOffset += 25; | 16997 pathOffset += 25; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15659 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17035 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15660 var obj = new api.FloodlightActivityGroup.fromJson(json); | 17036 var obj = new api.FloodlightActivityGroup.fromJson(json); |
| 15661 checkFloodlightActivityGroup(obj); | 17037 checkFloodlightActivityGroup(obj); |
| 15662 | 17038 |
| 15663 var path = (req.url).path; | 17039 var path = (req.url).path; |
| 15664 var pathOffset = 0; | 17040 var pathOffset = 0; |
| 15665 var index; | 17041 var index; |
| 15666 var subPart; | 17042 var subPart; |
| 15667 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17043 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15668 pathOffset += 1; | 17044 pathOffset += 1; |
| 15669 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17045 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15670 pathOffset += 18; | 17046 pathOffset += 18; |
| 15671 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17047 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15672 pathOffset += 13; | 17048 pathOffset += 13; |
| 15673 index = path.indexOf("/floodlightActivityGroups", pathOffset); | 17049 index = path.indexOf("/floodlightActivityGroups", pathOffset); |
| 15674 unittest.expect(index >= 0, unittest.isTrue); | 17050 unittest.expect(index >= 0, unittest.isTrue); |
| 15675 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17051 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15676 pathOffset = index; | 17052 pathOffset = index; |
| 15677 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17053 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15678 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); | 17054 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); |
| 15679 pathOffset += 25; | 17055 pathOffset += 25; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15717 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock
).floodlightConfigurations; | 17093 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock
).floodlightConfigurations; |
| 15718 var arg_profileId = "foo"; | 17094 var arg_profileId = "foo"; |
| 15719 var arg_id = "foo"; | 17095 var arg_id = "foo"; |
| 15720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17096 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15721 var path = (req.url).path; | 17097 var path = (req.url).path; |
| 15722 var pathOffset = 0; | 17098 var pathOffset = 0; |
| 15723 var index; | 17099 var index; |
| 15724 var subPart; | 17100 var subPart; |
| 15725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17101 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15726 pathOffset += 1; | 17102 pathOffset += 1; |
| 15727 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17103 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15728 pathOffset += 18; | 17104 pathOffset += 18; |
| 15729 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17105 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15730 pathOffset += 13; | 17106 pathOffset += 13; |
| 15731 index = path.indexOf("/floodlightConfigurations/", pathOffset); | 17107 index = path.indexOf("/floodlightConfigurations/", pathOffset); |
| 15732 unittest.expect(index >= 0, unittest.isTrue); | 17108 unittest.expect(index >= 0, unittest.isTrue); |
| 15733 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17109 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15734 pathOffset = index; | 17110 pathOffset = index; |
| 15735 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17111 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15736 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightConfigurations/")); | 17112 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightConfigurations/")); |
| 15737 pathOffset += 26; | 17113 pathOffset += 26; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 15766 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightC
onfiguration response) { | 17142 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightC
onfiguration response) { |
| 15767 checkFloodlightConfiguration(response); | 17143 checkFloodlightConfiguration(response); |
| 15768 }))); | 17144 }))); |
| 15769 }); | 17145 }); |
| 15770 | 17146 |
| 15771 unittest.test("method--list", () { | 17147 unittest.test("method--list", () { |
| 15772 | 17148 |
| 15773 var mock = new HttpServerMock(); | 17149 var mock = new HttpServerMock(); |
| 15774 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock
).floodlightConfigurations; | 17150 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock
).floodlightConfigurations; |
| 15775 var arg_profileId = "foo"; | 17151 var arg_profileId = "foo"; |
| 15776 var arg_ids = buildUnnamed463(); | 17152 var arg_ids = buildUnnamed1526(); |
| 15777 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17153 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15778 var path = (req.url).path; | 17154 var path = (req.url).path; |
| 15779 var pathOffset = 0; | 17155 var pathOffset = 0; |
| 15780 var index; | 17156 var index; |
| 15781 var subPart; | 17157 var subPart; |
| 15782 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17158 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15783 pathOffset += 1; | 17159 pathOffset += 1; |
| 15784 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17160 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15785 pathOffset += 18; | 17161 pathOffset += 18; |
| 15786 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17162 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15787 pathOffset += 13; | 17163 pathOffset += 13; |
| 15788 index = path.indexOf("/floodlightConfigurations", pathOffset); | 17164 index = path.indexOf("/floodlightConfigurations", pathOffset); |
| 15789 unittest.expect(index >= 0, unittest.isTrue); | 17165 unittest.expect(index >= 0, unittest.isTrue); |
| 15790 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17166 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15791 pathOffset = index; | 17167 pathOffset = index; |
| 15792 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17168 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15793 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); | 17169 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); |
| 15794 pathOffset += 25; | 17170 pathOffset += 25; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15833 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17209 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15834 var obj = new api.FloodlightConfiguration.fromJson(json); | 17210 var obj = new api.FloodlightConfiguration.fromJson(json); |
| 15835 checkFloodlightConfiguration(obj); | 17211 checkFloodlightConfiguration(obj); |
| 15836 | 17212 |
| 15837 var path = (req.url).path; | 17213 var path = (req.url).path; |
| 15838 var pathOffset = 0; | 17214 var pathOffset = 0; |
| 15839 var index; | 17215 var index; |
| 15840 var subPart; | 17216 var subPart; |
| 15841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17217 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15842 pathOffset += 1; | 17218 pathOffset += 1; |
| 15843 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17219 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15844 pathOffset += 18; | 17220 pathOffset += 18; |
| 15845 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17221 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15846 pathOffset += 13; | 17222 pathOffset += 13; |
| 15847 index = path.indexOf("/floodlightConfigurations", pathOffset); | 17223 index = path.indexOf("/floodlightConfigurations", pathOffset); |
| 15848 unittest.expect(index >= 0, unittest.isTrue); | 17224 unittest.expect(index >= 0, unittest.isTrue); |
| 15849 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17225 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15850 pathOffset = index; | 17226 pathOffset = index; |
| 15851 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17227 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15852 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); | 17228 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); |
| 15853 pathOffset += 25; | 17229 pathOffset += 25; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15891 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17267 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15892 var obj = new api.FloodlightConfiguration.fromJson(json); | 17268 var obj = new api.FloodlightConfiguration.fromJson(json); |
| 15893 checkFloodlightConfiguration(obj); | 17269 checkFloodlightConfiguration(obj); |
| 15894 | 17270 |
| 15895 var path = (req.url).path; | 17271 var path = (req.url).path; |
| 15896 var pathOffset = 0; | 17272 var pathOffset = 0; |
| 15897 var index; | 17273 var index; |
| 15898 var subPart; | 17274 var subPart; |
| 15899 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17275 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15900 pathOffset += 1; | 17276 pathOffset += 1; |
| 15901 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17277 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15902 pathOffset += 18; | 17278 pathOffset += 18; |
| 15903 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17279 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15904 pathOffset += 13; | 17280 pathOffset += 13; |
| 15905 index = path.indexOf("/floodlightConfigurations", pathOffset); | 17281 index = path.indexOf("/floodlightConfigurations", pathOffset); |
| 15906 unittest.expect(index >= 0, unittest.isTrue); | 17282 unittest.expect(index >= 0, unittest.isTrue); |
| 15907 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17283 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15908 pathOffset = index; | 17284 pathOffset = index; |
| 15909 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17285 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15910 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); | 17286 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); |
| 15911 pathOffset += 25; | 17287 pathOffset += 25; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 15935 return new async.Future.value(stringResponse(200, h, resp)); | 17311 return new async.Future.value(stringResponse(200, h, resp)); |
| 15936 }), true); | 17312 }), true); |
| 15937 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo
odlightConfiguration response) { | 17313 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo
odlightConfiguration response) { |
| 15938 checkFloodlightConfiguration(response); | 17314 checkFloodlightConfiguration(response); |
| 15939 }))); | 17315 }))); |
| 15940 }); | 17316 }); |
| 15941 | 17317 |
| 15942 }); | 17318 }); |
| 15943 | 17319 |
| 15944 | 17320 |
| 15945 unittest.group("resource-LandingPagesResourceApi", () { | 17321 unittest.group("resource-InventoryItemsResourceApi", () { |
| 15946 unittest.test("method--delete", () { | 17322 unittest.test("method--get", () { |
| 15947 | 17323 |
| 15948 var mock = new HttpServerMock(); | 17324 var mock = new HttpServerMock(); |
| 15949 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag
es; | 17325 api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventor
yItems; |
| 15950 var arg_profileId = "foo"; | 17326 var arg_profileId = "foo"; |
| 15951 var arg_campaignId = "foo"; | 17327 var arg_projectId = "foo"; |
| 15952 var arg_id = "foo"; | 17328 var arg_id = "foo"; |
| 15953 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17329 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15954 var path = (req.url).path; | 17330 var path = (req.url).path; |
| 15955 var pathOffset = 0; | 17331 var pathOffset = 0; |
| 15956 var index; | 17332 var index; |
| 15957 var subPart; | 17333 var subPart; |
| 15958 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17334 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15959 pathOffset += 1; | 17335 pathOffset += 1; |
| 15960 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17336 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17337 pathOffset += 18; |
| 17338 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17339 pathOffset += 13; |
| 17340 index = path.indexOf("/projects/", pathOffset); |
| 17341 unittest.expect(index >= 0, unittest.isTrue); |
| 17342 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17343 pathOffset = index; |
| 17344 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17345 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 17346 pathOffset += 10; |
| 17347 index = path.indexOf("/inventoryItems/", pathOffset); |
| 17348 unittest.expect(index >= 0, unittest.isTrue); |
| 17349 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17350 pathOffset = index; |
| 17351 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 17352 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/inventoryItems/")); |
| 17353 pathOffset += 16; |
| 17354 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 17355 pathOffset = path.length; |
| 17356 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 17357 |
| 17358 var query = (req.url).query; |
| 17359 var queryOffset = 0; |
| 17360 var queryMap = {}; |
| 17361 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17362 parseBool(n) { |
| 17363 if (n == "true") return true; |
| 17364 if (n == "false") return false; |
| 17365 if (n == null) return null; |
| 17366 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17367 } |
| 17368 if (query.length > 0) { |
| 17369 for (var part in query.split("&")) { |
| 17370 var keyvalue = part.split("="); |
| 17371 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17372 } |
| 17373 } |
| 17374 |
| 17375 |
| 17376 var h = { |
| 17377 "content-type" : "application/json; charset=utf-8", |
| 17378 }; |
| 17379 var resp = convert.JSON.encode(buildInventoryItem()); |
| 17380 return new async.Future.value(stringResponse(200, h, resp)); |
| 17381 }), true); |
| 17382 res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((
api.InventoryItem response) { |
| 17383 checkInventoryItem(response); |
| 17384 }))); |
| 17385 }); |
| 17386 |
| 17387 unittest.test("method--list", () { |
| 17388 |
| 17389 var mock = new HttpServerMock(); |
| 17390 api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventor
yItems; |
| 17391 var arg_profileId = "foo"; |
| 17392 var arg_projectId = "foo"; |
| 17393 var arg_ids = buildUnnamed1527(); |
| 17394 var arg_inPlan = true; |
| 17395 var arg_maxResults = 42; |
| 17396 var arg_orderId = buildUnnamed1528(); |
| 17397 var arg_pageToken = "foo"; |
| 17398 var arg_siteId = buildUnnamed1529(); |
| 17399 var arg_sortField = "foo"; |
| 17400 var arg_sortOrder = "foo"; |
| 17401 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17402 var path = (req.url).path; |
| 17403 var pathOffset = 0; |
| 17404 var index; |
| 17405 var subPart; |
| 17406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17407 pathOffset += 1; |
| 17408 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17409 pathOffset += 18; |
| 17410 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17411 pathOffset += 13; |
| 17412 index = path.indexOf("/projects/", pathOffset); |
| 17413 unittest.expect(index >= 0, unittest.isTrue); |
| 17414 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17415 pathOffset = index; |
| 17416 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17417 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 17418 pathOffset += 10; |
| 17419 index = path.indexOf("/inventoryItems", pathOffset); |
| 17420 unittest.expect(index >= 0, unittest.isTrue); |
| 17421 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17422 pathOffset = index; |
| 17423 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 17424 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/inventoryItems")); |
| 17425 pathOffset += 15; |
| 17426 |
| 17427 var query = (req.url).query; |
| 17428 var queryOffset = 0; |
| 17429 var queryMap = {}; |
| 17430 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17431 parseBool(n) { |
| 17432 if (n == "true") return true; |
| 17433 if (n == "false") return false; |
| 17434 if (n == null) return null; |
| 17435 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17436 } |
| 17437 if (query.length > 0) { |
| 17438 for (var part in query.split("&")) { |
| 17439 var keyvalue = part.split("="); |
| 17440 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17441 } |
| 17442 } |
| 17443 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 17444 unittest.expect(queryMap["inPlan"].first, unittest.equals("$arg_inPlan")
); |
| 17445 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 17446 unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); |
| 17447 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 17448 unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); |
| 17449 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 17450 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 17451 |
| 17452 |
| 17453 var h = { |
| 17454 "content-type" : "application/json; charset=utf-8", |
| 17455 }; |
| 17456 var resp = convert.JSON.encode(buildInventoryItemsListResponse()); |
| 17457 return new async.Future.value(stringResponse(200, h, resp)); |
| 17458 }), true); |
| 17459 res.list(arg_profileId, arg_projectId, ids: arg_ids, inPlan: arg_inPlan, m
axResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, siteI
d: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest
.expectAsync(((api.InventoryItemsListResponse response) { |
| 17460 checkInventoryItemsListResponse(response); |
| 17461 }))); |
| 17462 }); |
| 17463 |
| 17464 }); |
| 17465 |
| 17466 |
| 17467 unittest.group("resource-LandingPagesResourceApi", () { |
| 17468 unittest.test("method--delete", () { |
| 17469 |
| 17470 var mock = new HttpServerMock(); |
| 17471 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag
es; |
| 17472 var arg_profileId = "foo"; |
| 17473 var arg_campaignId = "foo"; |
| 17474 var arg_id = "foo"; |
| 17475 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17476 var path = (req.url).path; |
| 17477 var pathOffset = 0; |
| 17478 var index; |
| 17479 var subPart; |
| 17480 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17481 pathOffset += 1; |
| 17482 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 15961 pathOffset += 18; | 17483 pathOffset += 18; |
| 15962 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17484 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15963 pathOffset += 13; | 17485 pathOffset += 13; |
| 15964 index = path.indexOf("/campaigns/", pathOffset); | 17486 index = path.indexOf("/campaigns/", pathOffset); |
| 15965 unittest.expect(index >= 0, unittest.isTrue); | 17487 unittest.expect(index >= 0, unittest.isTrue); |
| 15966 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17488 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15967 pathOffset = index; | 17489 pathOffset = index; |
| 15968 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17490 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15969 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17491 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 15970 pathOffset += 11; | 17492 pathOffset += 11; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16013 var arg_profileId = "foo"; | 17535 var arg_profileId = "foo"; |
| 16014 var arg_campaignId = "foo"; | 17536 var arg_campaignId = "foo"; |
| 16015 var arg_id = "foo"; | 17537 var arg_id = "foo"; |
| 16016 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17538 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16017 var path = (req.url).path; | 17539 var path = (req.url).path; |
| 16018 var pathOffset = 0; | 17540 var pathOffset = 0; |
| 16019 var index; | 17541 var index; |
| 16020 var subPart; | 17542 var subPart; |
| 16021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17543 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16022 pathOffset += 1; | 17544 pathOffset += 1; |
| 16023 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17545 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16024 pathOffset += 18; | 17546 pathOffset += 18; |
| 16025 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17547 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16026 pathOffset += 13; | 17548 pathOffset += 13; |
| 16027 index = path.indexOf("/campaigns/", pathOffset); | 17549 index = path.indexOf("/campaigns/", pathOffset); |
| 16028 unittest.expect(index >= 0, unittest.isTrue); | 17550 unittest.expect(index >= 0, unittest.isTrue); |
| 16029 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17551 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16030 pathOffset = index; | 17552 pathOffset = index; |
| 16031 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17553 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16032 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17554 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 16033 pathOffset += 11; | 17555 pathOffset += 11; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16081 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17603 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16082 var obj = new api.LandingPage.fromJson(json); | 17604 var obj = new api.LandingPage.fromJson(json); |
| 16083 checkLandingPage(obj); | 17605 checkLandingPage(obj); |
| 16084 | 17606 |
| 16085 var path = (req.url).path; | 17607 var path = (req.url).path; |
| 16086 var pathOffset = 0; | 17608 var pathOffset = 0; |
| 16087 var index; | 17609 var index; |
| 16088 var subPart; | 17610 var subPart; |
| 16089 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17611 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16090 pathOffset += 1; | 17612 pathOffset += 1; |
| 16091 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17613 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16092 pathOffset += 18; | 17614 pathOffset += 18; |
| 16093 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17615 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16094 pathOffset += 13; | 17616 pathOffset += 13; |
| 16095 index = path.indexOf("/campaigns/", pathOffset); | 17617 index = path.indexOf("/campaigns/", pathOffset); |
| 16096 unittest.expect(index >= 0, unittest.isTrue); | 17618 unittest.expect(index >= 0, unittest.isTrue); |
| 16097 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17619 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16098 pathOffset = index; | 17620 pathOffset = index; |
| 16099 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17621 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16100 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17622 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 16101 pathOffset += 11; | 17623 pathOffset += 11; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16142 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag
es; | 17664 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag
es; |
| 16143 var arg_profileId = "foo"; | 17665 var arg_profileId = "foo"; |
| 16144 var arg_campaignId = "foo"; | 17666 var arg_campaignId = "foo"; |
| 16145 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17667 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16146 var path = (req.url).path; | 17668 var path = (req.url).path; |
| 16147 var pathOffset = 0; | 17669 var pathOffset = 0; |
| 16148 var index; | 17670 var index; |
| 16149 var subPart; | 17671 var subPart; |
| 16150 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17672 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16151 pathOffset += 1; | 17673 pathOffset += 1; |
| 16152 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17674 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16153 pathOffset += 18; | 17675 pathOffset += 18; |
| 16154 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17676 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16155 pathOffset += 13; | 17677 pathOffset += 13; |
| 16156 index = path.indexOf("/campaigns/", pathOffset); | 17678 index = path.indexOf("/campaigns/", pathOffset); |
| 16157 unittest.expect(index >= 0, unittest.isTrue); | 17679 unittest.expect(index >= 0, unittest.isTrue); |
| 16158 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17680 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16159 pathOffset = index; | 17681 pathOffset = index; |
| 16160 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17682 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16161 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17683 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 16162 pathOffset += 11; | 17684 pathOffset += 11; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16208 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17730 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16209 var obj = new api.LandingPage.fromJson(json); | 17731 var obj = new api.LandingPage.fromJson(json); |
| 16210 checkLandingPage(obj); | 17732 checkLandingPage(obj); |
| 16211 | 17733 |
| 16212 var path = (req.url).path; | 17734 var path = (req.url).path; |
| 16213 var pathOffset = 0; | 17735 var pathOffset = 0; |
| 16214 var index; | 17736 var index; |
| 16215 var subPart; | 17737 var subPart; |
| 16216 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16217 pathOffset += 1; | 17739 pathOffset += 1; |
| 16218 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17740 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16219 pathOffset += 18; | 17741 pathOffset += 18; |
| 16220 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17742 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16221 pathOffset += 13; | 17743 pathOffset += 13; |
| 16222 index = path.indexOf("/campaigns/", pathOffset); | 17744 index = path.indexOf("/campaigns/", pathOffset); |
| 16223 unittest.expect(index >= 0, unittest.isTrue); | 17745 unittest.expect(index >= 0, unittest.isTrue); |
| 16224 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17746 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16225 pathOffset = index; | 17747 pathOffset = index; |
| 16226 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17748 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16227 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17749 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 16228 pathOffset += 11; | 17750 pathOffset += 11; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16275 var obj = new api.LandingPage.fromJson(json); | 17797 var obj = new api.LandingPage.fromJson(json); |
| 16276 checkLandingPage(obj); | 17798 checkLandingPage(obj); |
| 16277 | 17799 |
| 16278 var path = (req.url).path; | 17800 var path = (req.url).path; |
| 16279 var pathOffset = 0; | 17801 var pathOffset = 0; |
| 16280 var index; | 17802 var index; |
| 16281 var subPart; | 17803 var subPart; |
| 16282 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17804 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16283 pathOffset += 1; | 17805 pathOffset += 1; |
| 16284 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17806 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16285 pathOffset += 18; | 17807 pathOffset += 18; |
| 16286 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17808 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16287 pathOffset += 13; | 17809 pathOffset += 13; |
| 16288 index = path.indexOf("/campaigns/", pathOffset); | 17810 index = path.indexOf("/campaigns/", pathOffset); |
| 16289 unittest.expect(index >= 0, unittest.isTrue); | 17811 unittest.expect(index >= 0, unittest.isTrue); |
| 16290 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17812 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16291 pathOffset = index; | 17813 pathOffset = index; |
| 16292 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17814 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16293 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17815 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
| 16294 pathOffset += 11; | 17816 pathOffset += 11; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16338 var mock = new HttpServerMock(); | 17860 var mock = new HttpServerMock(); |
| 16339 api.MetrosResourceApi res = new api.DfareportingApi(mock).metros; | 17861 api.MetrosResourceApi res = new api.DfareportingApi(mock).metros; |
| 16340 var arg_profileId = "foo"; | 17862 var arg_profileId = "foo"; |
| 16341 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17863 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16342 var path = (req.url).path; | 17864 var path = (req.url).path; |
| 16343 var pathOffset = 0; | 17865 var pathOffset = 0; |
| 16344 var index; | 17866 var index; |
| 16345 var subPart; | 17867 var subPart; |
| 16346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17868 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16347 pathOffset += 1; | 17869 pathOffset += 1; |
| 16348 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17870 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16349 pathOffset += 18; | 17871 pathOffset += 18; |
| 16350 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17872 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16351 pathOffset += 13; | 17873 pathOffset += 13; |
| 16352 index = path.indexOf("/metros", pathOffset); | 17874 index = path.indexOf("/metros", pathOffset); |
| 16353 unittest.expect(index >= 0, unittest.isTrue); | 17875 unittest.expect(index >= 0, unittest.isTrue); |
| 16354 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17876 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16355 pathOffset = index; | 17877 pathOffset = index; |
| 16356 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17878 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16357 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/metros")); | 17879 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/metros")); |
| 16358 pathOffset += 7; | 17880 pathOffset += 7; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 16383 }), true); | 17905 }), true); |
| 16384 res.list(arg_profileId).then(unittest.expectAsync(((api.MetrosListResponse
response) { | 17906 res.list(arg_profileId).then(unittest.expectAsync(((api.MetrosListResponse
response) { |
| 16385 checkMetrosListResponse(response); | 17907 checkMetrosListResponse(response); |
| 16386 }))); | 17908 }))); |
| 16387 }); | 17909 }); |
| 16388 | 17910 |
| 16389 }); | 17911 }); |
| 16390 | 17912 |
| 16391 | 17913 |
| 16392 unittest.group("resource-MobileCarriersResourceApi", () { | 17914 unittest.group("resource-MobileCarriersResourceApi", () { |
| 16393 unittest.test("method--list", () { | 17915 unittest.test("method--get", () { |
| 16394 | 17916 |
| 16395 var mock = new HttpServerMock(); | 17917 var mock = new HttpServerMock(); |
| 16396 api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCa
rriers; | 17918 api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCa
rriers; |
| 16397 var arg_profileId = "foo"; | 17919 var arg_profileId = "foo"; |
| 17920 var arg_id = "foo"; |
| 16398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17921 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16399 var path = (req.url).path; | 17922 var path = (req.url).path; |
| 16400 var pathOffset = 0; | 17923 var pathOffset = 0; |
| 16401 var index; | 17924 var index; |
| 16402 var subPart; | 17925 var subPart; |
| 16403 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17926 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16404 pathOffset += 1; | 17927 pathOffset += 1; |
| 16405 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17928 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16406 pathOffset += 18; | 17929 pathOffset += 18; |
| 16407 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17930 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16408 pathOffset += 13; | 17931 pathOffset += 13; |
| 16409 index = path.indexOf("/mobileCarriers", pathOffset); | 17932 index = path.indexOf("/mobileCarriers/", pathOffset); |
| 16410 unittest.expect(index >= 0, unittest.isTrue); | 17933 unittest.expect(index >= 0, unittest.isTrue); |
| 16411 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17934 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16412 pathOffset = index; | 17935 pathOffset = index; |
| 16413 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17936 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16414 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/mobileCarriers")); | 17937 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/mobileCarriers/")); |
| 16415 pathOffset += 15; | 17938 pathOffset += 16; |
| 17939 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 17940 pathOffset = path.length; |
| 17941 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 16416 | 17942 |
| 16417 var query = (req.url).query; | 17943 var query = (req.url).query; |
| 16418 var queryOffset = 0; | 17944 var queryOffset = 0; |
| 16419 var queryMap = {}; | 17945 var queryMap = {}; |
| 16420 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17946 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16421 parseBool(n) { | 17947 parseBool(n) { |
| 16422 if (n == "true") return true; | 17948 if (n == "true") return true; |
| 16423 if (n == "false") return false; | 17949 if (n == "false") return false; |
| 16424 if (n == null) return null; | 17950 if (n == null) return null; |
| 16425 throw new core.ArgumentError("Invalid boolean: $n"); | 17951 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16426 } | 17952 } |
| 16427 if (query.length > 0) { | 17953 if (query.length > 0) { |
| 16428 for (var part in query.split("&")) { | 17954 for (var part in query.split("&")) { |
| 16429 var keyvalue = part.split("="); | 17955 var keyvalue = part.split("="); |
| 16430 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17956 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16431 } | 17957 } |
| 16432 } | 17958 } |
| 16433 | 17959 |
| 16434 | 17960 |
| 16435 var h = { | 17961 var h = { |
| 16436 "content-type" : "application/json; charset=utf-8", | 17962 "content-type" : "application/json; charset=utf-8", |
| 16437 }; | 17963 }; |
| 16438 var resp = convert.JSON.encode(buildMobileCarriersListResponse()); | 17964 var resp = convert.JSON.encode(buildMobileCarrier()); |
| 16439 return new async.Future.value(stringResponse(200, h, resp)); | 17965 return new async.Future.value(stringResponse(200, h, resp)); |
| 16440 }), true); | 17966 }), true); |
| 16441 res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersList
Response response) { | 17967 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.MobileCarri
er response) { |
| 16442 checkMobileCarriersListResponse(response); | 17968 checkMobileCarrier(response); |
| 16443 }))); | 17969 }))); |
| 16444 }); | 17970 }); |
| 16445 | 17971 |
| 16446 }); | |
| 16447 | |
| 16448 | |
| 16449 unittest.group("resource-OperatingSystemVersionsResourceApi", () { | |
| 16450 unittest.test("method--list", () { | 17972 unittest.test("method--list", () { |
| 16451 | 17973 |
| 16452 var mock = new HttpServerMock(); | 17974 var mock = new HttpServerMock(); |
| 16453 api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock)
.operatingSystemVersions; | 17975 api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCa
rriers; |
| 16454 var arg_profileId = "foo"; | 17976 var arg_profileId = "foo"; |
| 16455 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17977 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16456 var path = (req.url).path; | 17978 var path = (req.url).path; |
| 16457 var pathOffset = 0; | 17979 var pathOffset = 0; |
| 16458 var index; | 17980 var index; |
| 16459 var subPart; | 17981 var subPart; |
| 16460 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17982 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16461 pathOffset += 1; | 17983 pathOffset += 1; |
| 16462 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17984 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16463 pathOffset += 18; | 17985 pathOffset += 18; |
| 16464 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17986 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16465 pathOffset += 13; | 17987 pathOffset += 13; |
| 16466 index = path.indexOf("/operatingSystemVersions", pathOffset); | 17988 index = path.indexOf("/mobileCarriers", pathOffset); |
| 16467 unittest.expect(index >= 0, unittest.isTrue); | 17989 unittest.expect(index >= 0, unittest.isTrue); |
| 16468 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17990 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16469 pathOffset = index; | 17991 pathOffset = index; |
| 16470 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17992 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16471 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/operatingSystemVersions")); | 17993 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/mobileCarriers")); |
| 16472 pathOffset += 24; | 17994 pathOffset += 15; |
| 16473 | 17995 |
| 16474 var query = (req.url).query; | 17996 var query = (req.url).query; |
| 16475 var queryOffset = 0; | 17997 var queryOffset = 0; |
| 16476 var queryMap = {}; | 17998 var queryMap = {}; |
| 16477 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17999 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16478 parseBool(n) { | 18000 parseBool(n) { |
| 16479 if (n == "true") return true; | 18001 if (n == "true") return true; |
| 16480 if (n == "false") return false; | 18002 if (n == "false") return false; |
| 16481 if (n == null) return null; | 18003 if (n == null) return null; |
| 16482 throw new core.ArgumentError("Invalid boolean: $n"); | 18004 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16483 } | 18005 } |
| 16484 if (query.length > 0) { | 18006 if (query.length > 0) { |
| 16485 for (var part in query.split("&")) { | 18007 for (var part in query.split("&")) { |
| 16486 var keyvalue = part.split("="); | 18008 var keyvalue = part.split("="); |
| 16487 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18009 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16488 } | 18010 } |
| 16489 } | 18011 } |
| 16490 | 18012 |
| 16491 | 18013 |
| 16492 var h = { | 18014 var h = { |
| 16493 "content-type" : "application/json; charset=utf-8", | 18015 "content-type" : "application/json; charset=utf-8", |
| 16494 }; | 18016 }; |
| 16495 var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse(
)); | 18017 var resp = convert.JSON.encode(buildMobileCarriersListResponse()); |
| 16496 return new async.Future.value(stringResponse(200, h, resp)); | 18018 return new async.Future.value(stringResponse(200, h, resp)); |
| 16497 }), true); | 18019 }), true); |
| 16498 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVer
sionsListResponse response) { | 18020 res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersList
Response response) { |
| 16499 checkOperatingSystemVersionsListResponse(response); | 18021 checkMobileCarriersListResponse(response); |
| 16500 }))); | 18022 }))); |
| 16501 }); | 18023 }); |
| 16502 | 18024 |
| 16503 }); | 18025 }); |
| 16504 | 18026 |
| 16505 | 18027 |
| 16506 unittest.group("resource-OperatingSystemsResourceApi", () { | 18028 unittest.group("resource-OperatingSystemVersionsResourceApi", () { |
| 16507 unittest.test("method--list", () { | 18029 unittest.test("method--get", () { |
| 16508 | 18030 |
| 16509 var mock = new HttpServerMock(); | 18031 var mock = new HttpServerMock(); |
| 16510 api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operat
ingSystems; | 18032 api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock)
.operatingSystemVersions; |
| 16511 var arg_profileId = "foo"; | 18033 var arg_profileId = "foo"; |
| 18034 var arg_id = "foo"; |
| 16512 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18035 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16513 var path = (req.url).path; | 18036 var path = (req.url).path; |
| 16514 var pathOffset = 0; | 18037 var pathOffset = 0; |
| 16515 var index; | 18038 var index; |
| 16516 var subPart; | 18039 var subPart; |
| 16517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18040 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16518 pathOffset += 1; | 18041 pathOffset += 1; |
| 16519 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18042 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16520 pathOffset += 18; | 18043 pathOffset += 18; |
| 16521 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18044 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16522 pathOffset += 13; | 18045 pathOffset += 13; |
| 16523 index = path.indexOf("/operatingSystems", pathOffset); | 18046 index = path.indexOf("/operatingSystemVersions/", pathOffset); |
| 16524 unittest.expect(index >= 0, unittest.isTrue); | 18047 unittest.expect(index >= 0, unittest.isTrue); |
| 16525 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18048 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16526 pathOffset = index; | 18049 pathOffset = index; |
| 16527 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18050 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16528 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/operatingSystems")); | 18051 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/operatingSystemVersions/")); |
| 16529 pathOffset += 17; | 18052 pathOffset += 25; |
| 18053 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18054 pathOffset = path.length; |
| 18055 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 16530 | 18056 |
| 16531 var query = (req.url).query; | 18057 var query = (req.url).query; |
| 16532 var queryOffset = 0; | 18058 var queryOffset = 0; |
| 16533 var queryMap = {}; | 18059 var queryMap = {}; |
| 16534 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18060 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16535 parseBool(n) { | 18061 parseBool(n) { |
| 16536 if (n == "true") return true; | 18062 if (n == "true") return true; |
| 16537 if (n == "false") return false; | 18063 if (n == "false") return false; |
| 16538 if (n == null) return null; | 18064 if (n == null) return null; |
| 16539 throw new core.ArgumentError("Invalid boolean: $n"); | 18065 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16540 } | 18066 } |
| 16541 if (query.length > 0) { | 18067 if (query.length > 0) { |
| 16542 for (var part in query.split("&")) { | 18068 for (var part in query.split("&")) { |
| 16543 var keyvalue = part.split("="); | 18069 var keyvalue = part.split("="); |
| 16544 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18070 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16545 } | 18071 } |
| 16546 } | 18072 } |
| 16547 | 18073 |
| 16548 | 18074 |
| 16549 var h = { | 18075 var h = { |
| 16550 "content-type" : "application/json; charset=utf-8", | 18076 "content-type" : "application/json; charset=utf-8", |
| 16551 }; | 18077 }; |
| 16552 var resp = convert.JSON.encode(buildOperatingSystemsListResponse()); | 18078 var resp = convert.JSON.encode(buildOperatingSystemVersion()); |
| 16553 return new async.Future.value(stringResponse(200, h, resp)); | 18079 return new async.Future.value(stringResponse(200, h, resp)); |
| 16554 }), true); | 18080 }), true); |
| 16555 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsLi
stResponse response) { | 18081 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.OperatingSy
stemVersion response) { |
| 16556 checkOperatingSystemsListResponse(response); | 18082 checkOperatingSystemVersion(response); |
| 16557 }))); | 18083 }))); |
| 16558 }); | 18084 }); |
| 16559 | 18085 |
| 16560 }); | 18086 unittest.test("method--list", () { |
| 16561 | |
| 16562 | |
| 16563 unittest.group("resource-PlacementGroupsResourceApi", () { | |
| 16564 unittest.test("method--get", () { | |
| 16565 | 18087 |
| 16566 var mock = new HttpServerMock(); | 18088 var mock = new HttpServerMock(); |
| 16567 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18089 api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock)
.operatingSystemVersions; |
| 16568 var arg_profileId = "foo"; | 18090 var arg_profileId = "foo"; |
| 16569 var arg_id = "foo"; | |
| 16570 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18091 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16571 var path = (req.url).path; | 18092 var path = (req.url).path; |
| 16572 var pathOffset = 0; | 18093 var pathOffset = 0; |
| 16573 var index; | 18094 var index; |
| 16574 var subPart; | 18095 var subPart; |
| 16575 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18096 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16576 pathOffset += 1; | 18097 pathOffset += 1; |
| 16577 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18098 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16578 pathOffset += 18; | 18099 pathOffset += 18; |
| 16579 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18100 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16580 pathOffset += 13; | 18101 pathOffset += 13; |
| 16581 index = path.indexOf("/placementGroups/", pathOffset); | 18102 index = path.indexOf("/operatingSystemVersions", pathOffset); |
| 16582 unittest.expect(index >= 0, unittest.isTrue); | 18103 unittest.expect(index >= 0, unittest.isTrue); |
| 16583 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18104 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16584 pathOffset = index; | 18105 pathOffset = index; |
| 16585 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18106 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16586 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/placementGroups/")); | 18107 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/operatingSystemVersions")); |
| 16587 pathOffset += 17; | 18108 pathOffset += 24; |
| 16588 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 16589 pathOffset = path.length; | |
| 16590 unittest.expect(subPart, unittest.equals("$arg_id")); | |
| 16591 | 18109 |
| 16592 var query = (req.url).query; | 18110 var query = (req.url).query; |
| 16593 var queryOffset = 0; | 18111 var queryOffset = 0; |
| 16594 var queryMap = {}; | 18112 var queryMap = {}; |
| 16595 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18113 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16596 parseBool(n) { | 18114 parseBool(n) { |
| 16597 if (n == "true") return true; | 18115 if (n == "true") return true; |
| 16598 if (n == "false") return false; | 18116 if (n == "false") return false; |
| 16599 if (n == null) return null; | 18117 if (n == null) return null; |
| 16600 throw new core.ArgumentError("Invalid boolean: $n"); | 18118 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16601 } | 18119 } |
| 16602 if (query.length > 0) { | 18120 if (query.length > 0) { |
| 16603 for (var part in query.split("&")) { | 18121 for (var part in query.split("&")) { |
| 16604 var keyvalue = part.split("="); | 18122 var keyvalue = part.split("="); |
| 16605 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18123 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16606 } | 18124 } |
| 16607 } | 18125 } |
| 16608 | 18126 |
| 16609 | 18127 |
| 16610 var h = { | 18128 var h = { |
| 16611 "content-type" : "application/json; charset=utf-8", | 18129 "content-type" : "application/json; charset=utf-8", |
| 16612 }; | 18130 }; |
| 16613 var resp = convert.JSON.encode(buildPlacementGroup()); | 18131 var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse(
)); |
| 16614 return new async.Future.value(stringResponse(200, h, resp)); | 18132 return new async.Future.value(stringResponse(200, h, resp)); |
| 16615 }), true); | 18133 }), true); |
| 16616 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGr
oup response) { | 18134 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVer
sionsListResponse response) { |
| 16617 checkPlacementGroup(response); | 18135 checkOperatingSystemVersionsListResponse(response); |
| 16618 }))); | 18136 }))); |
| 16619 }); | 18137 }); |
| 16620 | 18138 |
| 16621 unittest.test("method--insert", () { | 18139 }); |
| 18140 |
| 18141 |
| 18142 unittest.group("resource-OperatingSystemsResourceApi", () { |
| 18143 unittest.test("method--get", () { |
| 16622 | 18144 |
| 16623 var mock = new HttpServerMock(); | 18145 var mock = new HttpServerMock(); |
| 16624 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18146 api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operat
ingSystems; |
| 16625 var arg_request = buildPlacementGroup(); | |
| 16626 var arg_profileId = "foo"; | 18147 var arg_profileId = "foo"; |
| 18148 var arg_dartId = "foo"; |
| 16627 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18149 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16628 var obj = new api.PlacementGroup.fromJson(json); | |
| 16629 checkPlacementGroup(obj); | |
| 16630 | |
| 16631 var path = (req.url).path; | 18150 var path = (req.url).path; |
| 16632 var pathOffset = 0; | 18151 var pathOffset = 0; |
| 16633 var index; | 18152 var index; |
| 16634 var subPart; | 18153 var subPart; |
| 16635 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18154 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16636 pathOffset += 1; | 18155 pathOffset += 1; |
| 16637 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18156 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16638 pathOffset += 18; | 18157 pathOffset += 18; |
| 16639 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18158 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16640 pathOffset += 13; | 18159 pathOffset += 13; |
| 16641 index = path.indexOf("/placementGroups", pathOffset); | 18160 index = path.indexOf("/operatingSystems/", pathOffset); |
| 16642 unittest.expect(index >= 0, unittest.isTrue); | 18161 unittest.expect(index >= 0, unittest.isTrue); |
| 16643 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18162 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16644 pathOffset = index; | 18163 pathOffset = index; |
| 16645 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18164 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16646 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); | 18165 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/operatingSystems/")); |
| 16647 pathOffset += 16; | 18166 pathOffset += 18; |
| 18167 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18168 pathOffset = path.length; |
| 18169 unittest.expect(subPart, unittest.equals("$arg_dartId")); |
| 16648 | 18170 |
| 16649 var query = (req.url).query; | 18171 var query = (req.url).query; |
| 16650 var queryOffset = 0; | 18172 var queryOffset = 0; |
| 16651 var queryMap = {}; | 18173 var queryMap = {}; |
| 16652 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18174 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16653 parseBool(n) { | 18175 parseBool(n) { |
| 16654 if (n == "true") return true; | 18176 if (n == "true") return true; |
| 16655 if (n == "false") return false; | 18177 if (n == "false") return false; |
| 16656 if (n == null) return null; | 18178 if (n == null) return null; |
| 16657 throw new core.ArgumentError("Invalid boolean: $n"); | 18179 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16658 } | 18180 } |
| 16659 if (query.length > 0) { | 18181 if (query.length > 0) { |
| 16660 for (var part in query.split("&")) { | 18182 for (var part in query.split("&")) { |
| 16661 var keyvalue = part.split("="); | 18183 var keyvalue = part.split("="); |
| 16662 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18184 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16663 } | 18185 } |
| 16664 } | 18186 } |
| 16665 | 18187 |
| 16666 | 18188 |
| 16667 var h = { | 18189 var h = { |
| 16668 "content-type" : "application/json; charset=utf-8", | 18190 "content-type" : "application/json; charset=utf-8", |
| 16669 }; | 18191 }; |
| 16670 var resp = convert.JSON.encode(buildPlacementGroup()); | 18192 var resp = convert.JSON.encode(buildOperatingSystem()); |
| 16671 return new async.Future.value(stringResponse(200, h, resp)); | 18193 return new async.Future.value(stringResponse(200, h, resp)); |
| 16672 }), true); | 18194 }), true); |
| 16673 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementGroup response) { | 18195 res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.Operati
ngSystem response) { |
| 16674 checkPlacementGroup(response); | 18196 checkOperatingSystem(response); |
| 16675 }))); | 18197 }))); |
| 16676 }); | 18198 }); |
| 16677 | 18199 |
| 16678 unittest.test("method--list", () { | 18200 unittest.test("method--list", () { |
| 16679 | 18201 |
| 16680 var mock = new HttpServerMock(); | 18202 var mock = new HttpServerMock(); |
| 16681 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18203 api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operat
ingSystems; |
| 16682 var arg_profileId = "foo"; | 18204 var arg_profileId = "foo"; |
| 16683 var arg_advertiserIds = buildUnnamed464(); | |
| 16684 var arg_archived = true; | |
| 16685 var arg_campaignIds = buildUnnamed465(); | |
| 16686 var arg_contentCategoryIds = buildUnnamed466(); | |
| 16687 var arg_directorySiteIds = buildUnnamed467(); | |
| 16688 var arg_ids = buildUnnamed468(); | |
| 16689 var arg_maxResults = 42; | |
| 16690 var arg_pageToken = "foo"; | |
| 16691 var arg_placementGroupType = "foo"; | |
| 16692 var arg_placementStrategyIds = buildUnnamed469(); | |
| 16693 var arg_pricingTypes = buildUnnamed470(); | |
| 16694 var arg_searchString = "foo"; | |
| 16695 var arg_siteIds = buildUnnamed471(); | |
| 16696 var arg_sortField = "foo"; | |
| 16697 var arg_sortOrder = "foo"; | |
| 16698 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18205 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16699 var path = (req.url).path; | 18206 var path = (req.url).path; |
| 16700 var pathOffset = 0; | 18207 var pathOffset = 0; |
| 16701 var index; | 18208 var index; |
| 16702 var subPart; | 18209 var subPart; |
| 16703 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18210 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16704 pathOffset += 1; | 18211 pathOffset += 1; |
| 16705 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18212 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16706 pathOffset += 18; | 18213 pathOffset += 18; |
| 16707 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18214 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16708 pathOffset += 13; | 18215 pathOffset += 13; |
| 16709 index = path.indexOf("/placementGroups", pathOffset); | 18216 index = path.indexOf("/operatingSystems", pathOffset); |
| 16710 unittest.expect(index >= 0, unittest.isTrue); | 18217 unittest.expect(index >= 0, unittest.isTrue); |
| 16711 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18218 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16712 pathOffset = index; | 18219 pathOffset = index; |
| 16713 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18220 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16714 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); | 18221 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/operatingSystems")); |
| 16715 pathOffset += 16; | 18222 pathOffset += 17; |
| 16716 | 18223 |
| 16717 var query = (req.url).query; | 18224 var query = (req.url).query; |
| 16718 var queryOffset = 0; | 18225 var queryOffset = 0; |
| 16719 var queryMap = {}; | 18226 var queryMap = {}; |
| 16720 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18227 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16721 parseBool(n) { | 18228 parseBool(n) { |
| 16722 if (n == "true") return true; | 18229 if (n == "true") return true; |
| 16723 if (n == "false") return false; | 18230 if (n == "false") return false; |
| 16724 if (n == null) return null; | 18231 if (n == null) return null; |
| 16725 throw new core.ArgumentError("Invalid boolean: $n"); | 18232 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16726 } | 18233 } |
| 16727 if (query.length > 0) { | 18234 if (query.length > 0) { |
| 16728 for (var part in query.split("&")) { | 18235 for (var part in query.split("&")) { |
| 16729 var keyvalue = part.split("="); | 18236 var keyvalue = part.split("="); |
| 16730 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18237 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16731 } | 18238 } |
| 16732 } | 18239 } |
| 16733 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); | |
| 16734 unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archiv
ed")); | |
| 16735 unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds
)); | |
| 16736 unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_cont
entCategoryIds)); | |
| 16737 unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_direct
orySiteIds)); | |
| 16738 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); | |
| 16739 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
| 16740 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 16741 unittest.expect(queryMap["placementGroupType"].first, unittest.equals(ar
g_placementGroupType)); | |
| 16742 unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_pl
acementStrategyIds)); | |
| 16743 unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTyp
es)); | |
| 16744 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); | |
| 16745 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); | |
| 16746 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); | |
| 16747 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | |
| 16748 | 18240 |
| 16749 | 18241 |
| 16750 var h = { | 18242 var h = { |
| 16751 "content-type" : "application/json; charset=utf-8", | 18243 "content-type" : "application/json; charset=utf-8", |
| 16752 }; | 18244 }; |
| 16753 var resp = convert.JSON.encode(buildPlacementGroupsListResponse()); | 18245 var resp = convert.JSON.encode(buildOperatingSystemsListResponse()); |
| 16754 return new async.Future.value(stringResponse(200, h, resp)); | 18246 return new async.Future.value(stringResponse(200, h, resp)); |
| 16755 }), true); | 18247 }), true); |
| 16756 res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_ar
chived, campaignIds: arg_campaignIds, contentCategoryIds: arg_contentCategoryIds
, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResul
ts, pageToken: arg_pageToken, placementGroupType: arg_placementGroupType, placem
entStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, search
String: arg_searchString, siteIds: arg_siteIds, sortField: arg_sortField, sortOr
der: arg_sortOrder).then(unittest.expectAsync(((api.PlacementGroupsListResponse
response) { | 18248 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsLi
stResponse response) { |
| 16757 checkPlacementGroupsListResponse(response); | 18249 checkOperatingSystemsListResponse(response); |
| 16758 }))); | 18250 }))); |
| 16759 }); | 18251 }); |
| 16760 | 18252 |
| 16761 unittest.test("method--patch", () { | 18253 }); |
| 18254 |
| 18255 |
| 18256 unittest.group("resource-OrderDocumentsResourceApi", () { |
| 18257 unittest.test("method--get", () { |
| 16762 | 18258 |
| 16763 var mock = new HttpServerMock(); | 18259 var mock = new HttpServerMock(); |
| 16764 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18260 api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDoc
uments; |
| 16765 var arg_request = buildPlacementGroup(); | |
| 16766 var arg_profileId = "foo"; | 18261 var arg_profileId = "foo"; |
| 18262 var arg_projectId = "foo"; |
| 16767 var arg_id = "foo"; | 18263 var arg_id = "foo"; |
| 16768 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18264 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16769 var obj = new api.PlacementGroup.fromJson(json); | |
| 16770 checkPlacementGroup(obj); | |
| 16771 | |
| 16772 var path = (req.url).path; | 18265 var path = (req.url).path; |
| 16773 var pathOffset = 0; | 18266 var pathOffset = 0; |
| 16774 var index; | 18267 var index; |
| 16775 var subPart; | 18268 var subPart; |
| 16776 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18269 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16777 pathOffset += 1; | 18270 pathOffset += 1; |
| 16778 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18271 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16779 pathOffset += 18; | 18272 pathOffset += 18; |
| 16780 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18273 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16781 pathOffset += 13; | 18274 pathOffset += 13; |
| 16782 index = path.indexOf("/placementGroups", pathOffset); | 18275 index = path.indexOf("/projects/", pathOffset); |
| 16783 unittest.expect(index >= 0, unittest.isTrue); | 18276 unittest.expect(index >= 0, unittest.isTrue); |
| 16784 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18277 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16785 pathOffset = index; | 18278 pathOffset = index; |
| 16786 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18279 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16787 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); | 18280 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 18281 pathOffset += 10; |
| 18282 index = path.indexOf("/orderDocuments/", pathOffset); |
| 18283 unittest.expect(index >= 0, unittest.isTrue); |
| 18284 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18285 pathOffset = index; |
| 18286 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 18287 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/orderDocuments/")); |
| 16788 pathOffset += 16; | 18288 pathOffset += 16; |
| 18289 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18290 pathOffset = path.length; |
| 18291 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 16789 | 18292 |
| 16790 var query = (req.url).query; | 18293 var query = (req.url).query; |
| 16791 var queryOffset = 0; | 18294 var queryOffset = 0; |
| 16792 var queryMap = {}; | 18295 var queryMap = {}; |
| 16793 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18296 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16794 parseBool(n) { | 18297 parseBool(n) { |
| 16795 if (n == "true") return true; | 18298 if (n == "true") return true; |
| 16796 if (n == "false") return false; | 18299 if (n == "false") return false; |
| 16797 if (n == null) return null; | 18300 if (n == null) return null; |
| 16798 throw new core.ArgumentError("Invalid boolean: $n"); | 18301 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16799 } | 18302 } |
| 16800 if (query.length > 0) { | 18303 if (query.length > 0) { |
| 16801 for (var part in query.split("&")) { | 18304 for (var part in query.split("&")) { |
| 16802 var keyvalue = part.split("="); | 18305 var keyvalue = part.split("="); |
| 16803 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18306 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16804 } | 18307 } |
| 16805 } | 18308 } |
| 16806 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | |
| 16807 | 18309 |
| 16808 | 18310 |
| 16809 var h = { | 18311 var h = { |
| 16810 "content-type" : "application/json; charset=utf-8", | 18312 "content-type" : "application/json; charset=utf-8", |
| 16811 }; | 18313 }; |
| 16812 var resp = convert.JSON.encode(buildPlacementGroup()); | 18314 var resp = convert.JSON.encode(buildOrderDocument()); |
| 16813 return new async.Future.value(stringResponse(200, h, resp)); | 18315 return new async.Future.value(stringResponse(200, h, resp)); |
| 16814 }), true); | 18316 }), true); |
| 16815 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.PlacementGroup response) { | 18317 res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((
api.OrderDocument response) { |
| 16816 checkPlacementGroup(response); | 18318 checkOrderDocument(response); |
| 16817 }))); | 18319 }))); |
| 16818 }); | 18320 }); |
| 16819 | 18321 |
| 16820 unittest.test("method--update", () { | 18322 unittest.test("method--list", () { |
| 16821 | 18323 |
| 16822 var mock = new HttpServerMock(); | 18324 var mock = new HttpServerMock(); |
| 16823 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18325 api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDoc
uments; |
| 16824 var arg_request = buildPlacementGroup(); | |
| 16825 var arg_profileId = "foo"; | 18326 var arg_profileId = "foo"; |
| 18327 var arg_projectId = "foo"; |
| 18328 var arg_approved = true; |
| 18329 var arg_ids = buildUnnamed1530(); |
| 18330 var arg_maxResults = 42; |
| 18331 var arg_orderId = buildUnnamed1531(); |
| 18332 var arg_pageToken = "foo"; |
| 18333 var arg_searchString = "foo"; |
| 18334 var arg_siteId = buildUnnamed1532(); |
| 18335 var arg_sortField = "foo"; |
| 18336 var arg_sortOrder = "foo"; |
| 16826 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18337 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16827 var obj = new api.PlacementGroup.fromJson(json); | |
| 16828 checkPlacementGroup(obj); | |
| 16829 | |
| 16830 var path = (req.url).path; | 18338 var path = (req.url).path; |
| 16831 var pathOffset = 0; | 18339 var pathOffset = 0; |
| 16832 var index; | 18340 var index; |
| 16833 var subPart; | 18341 var subPart; |
| 16834 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18342 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16835 pathOffset += 1; | 18343 pathOffset += 1; |
| 16836 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18344 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16837 pathOffset += 18; | 18345 pathOffset += 18; |
| 16838 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18346 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16839 pathOffset += 13; | 18347 pathOffset += 13; |
| 16840 index = path.indexOf("/placementGroups", pathOffset); | 18348 index = path.indexOf("/projects/", pathOffset); |
| 16841 unittest.expect(index >= 0, unittest.isTrue); | 18349 unittest.expect(index >= 0, unittest.isTrue); |
| 16842 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18350 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16843 pathOffset = index; | 18351 pathOffset = index; |
| 16844 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18352 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16845 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); | 18353 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 16846 pathOffset += 16; | 18354 pathOffset += 10; |
| 18355 index = path.indexOf("/orderDocuments", pathOffset); |
| 18356 unittest.expect(index >= 0, unittest.isTrue); |
| 18357 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18358 pathOffset = index; |
| 18359 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 18360 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/orderDocuments")); |
| 18361 pathOffset += 15; |
| 16847 | 18362 |
| 16848 var query = (req.url).query; | 18363 var query = (req.url).query; |
| 16849 var queryOffset = 0; | 18364 var queryOffset = 0; |
| 16850 var queryMap = {}; | 18365 var queryMap = {}; |
| 16851 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18366 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16852 parseBool(n) { | 18367 parseBool(n) { |
| 16853 if (n == "true") return true; | 18368 if (n == "true") return true; |
| 16854 if (n == "false") return false; | 18369 if (n == "false") return false; |
| 16855 if (n == null) return null; | 18370 if (n == null) return null; |
| 16856 throw new core.ArgumentError("Invalid boolean: $n"); | 18371 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16857 } | 18372 } |
| 16858 if (query.length > 0) { | 18373 if (query.length > 0) { |
| 16859 for (var part in query.split("&")) { | 18374 for (var part in query.split("&")) { |
| 16860 var keyvalue = part.split("="); | 18375 var keyvalue = part.split("="); |
| 16861 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18376 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16862 } | 18377 } |
| 16863 } | 18378 } |
| 18379 unittest.expect(queryMap["approved"].first, unittest.equals("$arg_approv
ed")); |
| 18380 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 18381 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 18382 unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); |
| 18383 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 18384 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 18385 unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); |
| 18386 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 18387 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 16864 | 18388 |
| 16865 | 18389 |
| 16866 var h = { | 18390 var h = { |
| 16867 "content-type" : "application/json; charset=utf-8", | 18391 "content-type" : "application/json; charset=utf-8", |
| 16868 }; | 18392 }; |
| 16869 var resp = convert.JSON.encode(buildPlacementGroup()); | 18393 var resp = convert.JSON.encode(buildOrderDocumentsListResponse()); |
| 16870 return new async.Future.value(stringResponse(200, h, resp)); | 18394 return new async.Future.value(stringResponse(200, h, resp)); |
| 16871 }), true); | 18395 }), true); |
| 16872 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementGroup response) { | 18396 res.list(arg_profileId, arg_projectId, approved: arg_approved, ids: arg_id
s, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, s
earchString: arg_searchString, siteId: arg_siteId, sortField: arg_sortField, sor
tOrder: arg_sortOrder).then(unittest.expectAsync(((api.OrderDocumentsListRespons
e response) { |
| 16873 checkPlacementGroup(response); | 18397 checkOrderDocumentsListResponse(response); |
| 16874 }))); | 18398 }))); |
| 16875 }); | 18399 }); |
| 16876 | 18400 |
| 16877 }); | 18401 }); |
| 16878 | 18402 |
| 16879 | 18403 |
| 16880 unittest.group("resource-PlacementStrategiesResourceApi", () { | 18404 unittest.group("resource-OrdersResourceApi", () { |
| 16881 unittest.test("method--delete", () { | 18405 unittest.test("method--get", () { |
| 16882 | 18406 |
| 16883 var mock = new HttpServerMock(); | 18407 var mock = new HttpServerMock(); |
| 16884 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 18408 api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; |
| 16885 var arg_profileId = "foo"; | 18409 var arg_profileId = "foo"; |
| 18410 var arg_projectId = "foo"; |
| 16886 var arg_id = "foo"; | 18411 var arg_id = "foo"; |
| 16887 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18412 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16888 var path = (req.url).path; | 18413 var path = (req.url).path; |
| 16889 var pathOffset = 0; | 18414 var pathOffset = 0; |
| 16890 var index; | 18415 var index; |
| 16891 var subPart; | 18416 var subPart; |
| 16892 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16893 pathOffset += 1; | 18418 pathOffset += 1; |
| 16894 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18419 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16895 pathOffset += 18; | 18420 pathOffset += 18; |
| 16896 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18421 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16897 pathOffset += 13; | 18422 pathOffset += 13; |
| 16898 index = path.indexOf("/placementStrategies/", pathOffset); | 18423 index = path.indexOf("/projects/", pathOffset); |
| 16899 unittest.expect(index >= 0, unittest.isTrue); | 18424 unittest.expect(index >= 0, unittest.isTrue); |
| 16900 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18425 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16901 pathOffset = index; | 18426 pathOffset = index; |
| 16902 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18427 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16903 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/placementStrategies/")); | 18428 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 16904 pathOffset += 21; | 18429 pathOffset += 10; |
| 18430 index = path.indexOf("/orders/", pathOffset); |
| 18431 unittest.expect(index >= 0, unittest.isTrue); |
| 18432 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18433 pathOffset = index; |
| 18434 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 18435 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/orders/")); |
| 18436 pathOffset += 8; |
| 16905 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 18437 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 16906 pathOffset = path.length; | 18438 pathOffset = path.length; |
| 16907 unittest.expect(subPart, unittest.equals("$arg_id")); | 18439 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 16908 | 18440 |
| 16909 var query = (req.url).query; | 18441 var query = (req.url).query; |
| 16910 var queryOffset = 0; | 18442 var queryOffset = 0; |
| 16911 var queryMap = {}; | 18443 var queryMap = {}; |
| 16912 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18444 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16913 parseBool(n) { | 18445 parseBool(n) { |
| 16914 if (n == "true") return true; | 18446 if (n == "true") return true; |
| 16915 if (n == "false") return false; | 18447 if (n == "false") return false; |
| 16916 if (n == null) return null; | 18448 if (n == null) return null; |
| 16917 throw new core.ArgumentError("Invalid boolean: $n"); | 18449 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16918 } | 18450 } |
| 16919 if (query.length > 0) { | 18451 if (query.length > 0) { |
| 16920 for (var part in query.split("&")) { | 18452 for (var part in query.split("&")) { |
| 16921 var keyvalue = part.split("="); | 18453 var keyvalue = part.split("="); |
| 16922 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18454 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16923 } | 18455 } |
| 16924 } | 18456 } |
| 16925 | 18457 |
| 16926 | 18458 |
| 16927 var h = { | 18459 var h = { |
| 16928 "content-type" : "application/json; charset=utf-8", | 18460 "content-type" : "application/json; charset=utf-8", |
| 16929 }; | 18461 }; |
| 16930 var resp = ""; | 18462 var resp = convert.JSON.encode(buildOrder()); |
| 16931 return new async.Future.value(stringResponse(200, h, resp)); | 18463 return new async.Future.value(stringResponse(200, h, resp)); |
| 16932 }), true); | 18464 }), true); |
| 16933 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); | 18465 res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((
api.Order response) { |
| 18466 checkOrder(response); |
| 18467 }))); |
| 16934 }); | 18468 }); |
| 16935 | 18469 |
| 18470 unittest.test("method--list", () { |
| 18471 |
| 18472 var mock = new HttpServerMock(); |
| 18473 api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; |
| 18474 var arg_profileId = "foo"; |
| 18475 var arg_projectId = "foo"; |
| 18476 var arg_ids = buildUnnamed1533(); |
| 18477 var arg_maxResults = 42; |
| 18478 var arg_pageToken = "foo"; |
| 18479 var arg_searchString = "foo"; |
| 18480 var arg_siteId = buildUnnamed1534(); |
| 18481 var arg_sortField = "foo"; |
| 18482 var arg_sortOrder = "foo"; |
| 18483 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18484 var path = (req.url).path; |
| 18485 var pathOffset = 0; |
| 18486 var index; |
| 18487 var subPart; |
| 18488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18489 pathOffset += 1; |
| 18490 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18491 pathOffset += 18; |
| 18492 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18493 pathOffset += 13; |
| 18494 index = path.indexOf("/projects/", pathOffset); |
| 18495 unittest.expect(index >= 0, unittest.isTrue); |
| 18496 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18497 pathOffset = index; |
| 18498 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18499 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 18500 pathOffset += 10; |
| 18501 index = path.indexOf("/orders", pathOffset); |
| 18502 unittest.expect(index >= 0, unittest.isTrue); |
| 18503 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18504 pathOffset = index; |
| 18505 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 18506 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/orders")); |
| 18507 pathOffset += 7; |
| 18508 |
| 18509 var query = (req.url).query; |
| 18510 var queryOffset = 0; |
| 18511 var queryMap = {}; |
| 18512 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18513 parseBool(n) { |
| 18514 if (n == "true") return true; |
| 18515 if (n == "false") return false; |
| 18516 if (n == null) return null; |
| 18517 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18518 } |
| 18519 if (query.length > 0) { |
| 18520 for (var part in query.split("&")) { |
| 18521 var keyvalue = part.split("="); |
| 18522 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18523 } |
| 18524 } |
| 18525 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 18526 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 18527 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 18528 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 18529 unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); |
| 18530 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 18531 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 18532 |
| 18533 |
| 18534 var h = { |
| 18535 "content-type" : "application/json; charset=utf-8", |
| 18536 }; |
| 18537 var resp = convert.JSON.encode(buildOrdersListResponse()); |
| 18538 return new async.Future.value(stringResponse(200, h, resp)); |
| 18539 }), true); |
| 18540 res.list(arg_profileId, arg_projectId, ids: arg_ids, maxResults: arg_maxRe
sults, pageToken: arg_pageToken, searchString: arg_searchString, siteId: arg_sit
eId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsy
nc(((api.OrdersListResponse response) { |
| 18541 checkOrdersListResponse(response); |
| 18542 }))); |
| 18543 }); |
| 18544 |
| 18545 }); |
| 18546 |
| 18547 |
| 18548 unittest.group("resource-PlacementGroupsResourceApi", () { |
| 16936 unittest.test("method--get", () { | 18549 unittest.test("method--get", () { |
| 16937 | 18550 |
| 16938 var mock = new HttpServerMock(); | 18551 var mock = new HttpServerMock(); |
| 16939 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 18552 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 16940 var arg_profileId = "foo"; | 18553 var arg_profileId = "foo"; |
| 16941 var arg_id = "foo"; | 18554 var arg_id = "foo"; |
| 16942 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18555 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16943 var path = (req.url).path; | 18556 var path = (req.url).path; |
| 16944 var pathOffset = 0; | 18557 var pathOffset = 0; |
| 16945 var index; | 18558 var index; |
| 16946 var subPart; | 18559 var subPart; |
| 16947 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18560 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16948 pathOffset += 1; | 18561 pathOffset += 1; |
| 16949 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18562 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 16950 pathOffset += 18; | 18563 pathOffset += 18; |
| 16951 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18564 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 16952 pathOffset += 13; | 18565 pathOffset += 13; |
| 16953 index = path.indexOf("/placementStrategies/", pathOffset); | 18566 index = path.indexOf("/placementGroups/", pathOffset); |
| 16954 unittest.expect(index >= 0, unittest.isTrue); | 18567 unittest.expect(index >= 0, unittest.isTrue); |
| 16955 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18568 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 16956 pathOffset = index; | 18569 pathOffset = index; |
| 16957 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18570 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 16958 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/placementStrategies/")); | 18571 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/placementGroups/")); |
| 16959 pathOffset += 21; | 18572 pathOffset += 17; |
| 16960 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 18573 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 16961 pathOffset = path.length; | 18574 pathOffset = path.length; |
| 16962 unittest.expect(subPart, unittest.equals("$arg_id")); | 18575 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 16963 | 18576 |
| 16964 var query = (req.url).query; | 18577 var query = (req.url).query; |
| 16965 var queryOffset = 0; | 18578 var queryOffset = 0; |
| 16966 var queryMap = {}; | 18579 var queryMap = {}; |
| 16967 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18580 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16968 parseBool(n) { | 18581 parseBool(n) { |
| 16969 if (n == "true") return true; | 18582 if (n == "true") return true; |
| 16970 if (n == "false") return false; | 18583 if (n == "false") return false; |
| 16971 if (n == null) return null; | 18584 if (n == null) return null; |
| 16972 throw new core.ArgumentError("Invalid boolean: $n"); | 18585 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16973 } | 18586 } |
| 16974 if (query.length > 0) { | 18587 if (query.length > 0) { |
| 16975 for (var part in query.split("&")) { | 18588 for (var part in query.split("&")) { |
| 16976 var keyvalue = part.split("="); | 18589 var keyvalue = part.split("="); |
| 16977 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18590 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16978 } | 18591 } |
| 16979 } | 18592 } |
| 16980 | 18593 |
| 16981 | 18594 |
| 16982 var h = { | 18595 var h = { |
| 16983 "content-type" : "application/json; charset=utf-8", | 18596 "content-type" : "application/json; charset=utf-8", |
| 16984 }; | 18597 }; |
| 16985 var resp = convert.JSON.encode(buildPlacementStrategy()); | 18598 var resp = convert.JSON.encode(buildPlacementGroup()); |
| 16986 return new async.Future.value(stringResponse(200, h, resp)); | 18599 return new async.Future.value(stringResponse(200, h, resp)); |
| 16987 }), true); | 18600 }), true); |
| 16988 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementSt
rategy response) { | 18601 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGr
oup response) { |
| 16989 checkPlacementStrategy(response); | 18602 checkPlacementGroup(response); |
| 16990 }))); | 18603 }))); |
| 16991 }); | 18604 }); |
| 16992 | 18605 |
| 16993 unittest.test("method--insert", () { | 18606 unittest.test("method--insert", () { |
| 16994 | 18607 |
| 16995 var mock = new HttpServerMock(); | 18608 var mock = new HttpServerMock(); |
| 16996 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 18609 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 16997 var arg_request = buildPlacementStrategy(); | 18610 var arg_request = buildPlacementGroup(); |
| 16998 var arg_profileId = "foo"; | 18611 var arg_profileId = "foo"; |
| 16999 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18612 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17000 var obj = new api.PlacementStrategy.fromJson(json); | 18613 var obj = new api.PlacementGroup.fromJson(json); |
| 17001 checkPlacementStrategy(obj); | 18614 checkPlacementGroup(obj); |
| 17002 | 18615 |
| 17003 var path = (req.url).path; | 18616 var path = (req.url).path; |
| 17004 var pathOffset = 0; | 18617 var pathOffset = 0; |
| 17005 var index; | 18618 var index; |
| 17006 var subPart; | 18619 var subPart; |
| 17007 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18620 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17008 pathOffset += 1; | 18621 pathOffset += 1; |
| 17009 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18622 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17010 pathOffset += 18; | 18623 pathOffset += 18; |
| 17011 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18624 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17012 pathOffset += 13; | 18625 pathOffset += 13; |
| 17013 index = path.indexOf("/placementStrategies", pathOffset); | 18626 index = path.indexOf("/placementGroups", pathOffset); |
| 17014 unittest.expect(index >= 0, unittest.isTrue); | 18627 unittest.expect(index >= 0, unittest.isTrue); |
| 17015 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18628 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17016 pathOffset = index; | 18629 pathOffset = index; |
| 17017 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18630 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17018 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); | 18631 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); |
| 17019 pathOffset += 20; | 18632 pathOffset += 16; |
| 17020 | 18633 |
| 17021 var query = (req.url).query; | 18634 var query = (req.url).query; |
| 17022 var queryOffset = 0; | 18635 var queryOffset = 0; |
| 17023 var queryMap = {}; | 18636 var queryMap = {}; |
| 17024 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18637 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17025 parseBool(n) { | 18638 parseBool(n) { |
| 17026 if (n == "true") return true; | 18639 if (n == "true") return true; |
| 17027 if (n == "false") return false; | 18640 if (n == "false") return false; |
| 17028 if (n == null) return null; | 18641 if (n == null) return null; |
| 17029 throw new core.ArgumentError("Invalid boolean: $n"); | 18642 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17030 } | 18643 } |
| 17031 if (query.length > 0) { | 18644 if (query.length > 0) { |
| 17032 for (var part in query.split("&")) { | 18645 for (var part in query.split("&")) { |
| 17033 var keyvalue = part.split("="); | 18646 var keyvalue = part.split("="); |
| 17034 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18647 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17035 } | 18648 } |
| 17036 } | 18649 } |
| 17037 | 18650 |
| 17038 | 18651 |
| 17039 var h = { | 18652 var h = { |
| 17040 "content-type" : "application/json; charset=utf-8", | 18653 "content-type" : "application/json; charset=utf-8", |
| 17041 }; | 18654 }; |
| 17042 var resp = convert.JSON.encode(buildPlacementStrategy()); | 18655 var resp = convert.JSON.encode(buildPlacementGroup()); |
| 17043 return new async.Future.value(stringResponse(200, h, resp)); | 18656 return new async.Future.value(stringResponse(200, h, resp)); |
| 17044 }), true); | 18657 }), true); |
| 17045 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementStrategy response) { | 18658 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementGroup response) { |
| 17046 checkPlacementStrategy(response); | 18659 checkPlacementGroup(response); |
| 17047 }))); | 18660 }))); |
| 17048 }); | 18661 }); |
| 17049 | 18662 |
| 17050 unittest.test("method--list", () { | 18663 unittest.test("method--list", () { |
| 17051 | 18664 |
| 17052 var mock = new HttpServerMock(); | 18665 var mock = new HttpServerMock(); |
| 17053 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 18666 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 17054 var arg_profileId = "foo"; | 18667 var arg_profileId = "foo"; |
| 17055 var arg_ids = buildUnnamed472(); | 18668 var arg_advertiserIds = buildUnnamed1535(); |
| 18669 var arg_archived = true; |
| 18670 var arg_campaignIds = buildUnnamed1536(); |
| 18671 var arg_contentCategoryIds = buildUnnamed1537(); |
| 18672 var arg_directorySiteIds = buildUnnamed1538(); |
| 18673 var arg_ids = buildUnnamed1539(); |
| 18674 var arg_maxEndDate = "foo"; |
| 17056 var arg_maxResults = 42; | 18675 var arg_maxResults = 42; |
| 18676 var arg_maxStartDate = "foo"; |
| 18677 var arg_minEndDate = "foo"; |
| 18678 var arg_minStartDate = "foo"; |
| 17057 var arg_pageToken = "foo"; | 18679 var arg_pageToken = "foo"; |
| 18680 var arg_placementGroupType = "foo"; |
| 18681 var arg_placementStrategyIds = buildUnnamed1540(); |
| 18682 var arg_pricingTypes = buildUnnamed1541(); |
| 17058 var arg_searchString = "foo"; | 18683 var arg_searchString = "foo"; |
| 18684 var arg_siteIds = buildUnnamed1542(); |
| 17059 var arg_sortField = "foo"; | 18685 var arg_sortField = "foo"; |
| 17060 var arg_sortOrder = "foo"; | 18686 var arg_sortOrder = "foo"; |
| 17061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18687 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17062 var path = (req.url).path; | 18688 var path = (req.url).path; |
| 17063 var pathOffset = 0; | 18689 var pathOffset = 0; |
| 17064 var index; | 18690 var index; |
| 17065 var subPart; | 18691 var subPart; |
| 17066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18692 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17067 pathOffset += 1; | 18693 pathOffset += 1; |
| 17068 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18694 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17069 pathOffset += 18; | 18695 pathOffset += 18; |
| 17070 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18696 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17071 pathOffset += 13; | 18697 pathOffset += 13; |
| 17072 index = path.indexOf("/placementStrategies", pathOffset); | 18698 index = path.indexOf("/placementGroups", pathOffset); |
| 17073 unittest.expect(index >= 0, unittest.isTrue); | 18699 unittest.expect(index >= 0, unittest.isTrue); |
| 17074 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18700 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17075 pathOffset = index; | 18701 pathOffset = index; |
| 17076 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18702 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17077 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); | 18703 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); |
| 17078 pathOffset += 20; | 18704 pathOffset += 16; |
| 17079 | 18705 |
| 17080 var query = (req.url).query; | 18706 var query = (req.url).query; |
| 17081 var queryOffset = 0; | 18707 var queryOffset = 0; |
| 17082 var queryMap = {}; | 18708 var queryMap = {}; |
| 17083 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18709 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17084 parseBool(n) { | 18710 parseBool(n) { |
| 17085 if (n == "true") return true; | 18711 if (n == "true") return true; |
| 17086 if (n == "false") return false; | 18712 if (n == "false") return false; |
| 17087 if (n == null) return null; | 18713 if (n == null) return null; |
| 17088 throw new core.ArgumentError("Invalid boolean: $n"); | 18714 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17089 } | 18715 } |
| 17090 if (query.length > 0) { | 18716 if (query.length > 0) { |
| 17091 for (var part in query.split("&")) { | 18717 for (var part in query.split("&")) { |
| 17092 var keyvalue = part.split("="); | 18718 var keyvalue = part.split("="); |
| 17093 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18719 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17094 } | 18720 } |
| 17095 } | 18721 } |
| 18722 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); |
| 18723 unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archiv
ed")); |
| 18724 unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds
)); |
| 18725 unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_cont
entCategoryIds)); |
| 18726 unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_direct
orySiteIds)); |
| 17096 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); | 18727 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 18728 unittest.expect(queryMap["maxEndDate"].first, unittest.equals(arg_maxEnd
Date)); |
| 17097 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 18729 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 18730 unittest.expect(queryMap["maxStartDate"].first, unittest.equals(arg_maxS
tartDate)); |
| 18731 unittest.expect(queryMap["minEndDate"].first, unittest.equals(arg_minEnd
Date)); |
| 18732 unittest.expect(queryMap["minStartDate"].first, unittest.equals(arg_minS
tartDate)); |
| 17098 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 18733 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 18734 unittest.expect(queryMap["placementGroupType"].first, unittest.equals(ar
g_placementGroupType)); |
| 18735 unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_pl
acementStrategyIds)); |
| 18736 unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTyp
es)); |
| 17099 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); | 18737 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 18738 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); |
| 17100 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); | 18739 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 17101 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 18740 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 17102 | 18741 |
| 17103 | 18742 |
| 17104 var h = { | 18743 var h = { |
| 17105 "content-type" : "application/json; charset=utf-8", | 18744 "content-type" : "application/json; charset=utf-8", |
| 17106 }; | 18745 }; |
| 17107 var resp = convert.JSON.encode(buildPlacementStrategiesListResponse()); | 18746 var resp = convert.JSON.encode(buildPlacementGroupsListResponse()); |
| 17108 return new async.Future.value(stringResponse(200, h, resp)); | 18747 return new async.Future.value(stringResponse(200, h, resp)); |
| 17109 }), true); | 18748 }), true); |
| 17110 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke
n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort
Order: arg_sortOrder).then(unittest.expectAsync(((api.PlacementStrategiesListRes
ponse response) { | 18749 res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_ar
chived, campaignIds: arg_campaignIds, contentCategoryIds: arg_contentCategoryIds
, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxEndDate: arg_maxEndDa
te, maxResults: arg_maxResults, maxStartDate: arg_maxStartDate, minEndDate: arg_
minEndDate, minStartDate: arg_minStartDate, pageToken: arg_pageToken, placementG
roupType: arg_placementGroupType, placementStrategyIds: arg_placementStrategyIds
, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_s
iteIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expect
Async(((api.PlacementGroupsListResponse response) { |
| 17111 checkPlacementStrategiesListResponse(response); | 18750 checkPlacementGroupsListResponse(response); |
| 17112 }))); | 18751 }))); |
| 17113 }); | 18752 }); |
| 17114 | 18753 |
| 17115 unittest.test("method--patch", () { | 18754 unittest.test("method--patch", () { |
| 17116 | 18755 |
| 17117 var mock = new HttpServerMock(); | 18756 var mock = new HttpServerMock(); |
| 17118 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 18757 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 17119 var arg_request = buildPlacementStrategy(); | 18758 var arg_request = buildPlacementGroup(); |
| 17120 var arg_profileId = "foo"; | 18759 var arg_profileId = "foo"; |
| 17121 var arg_id = "foo"; | 18760 var arg_id = "foo"; |
| 17122 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17123 var obj = new api.PlacementStrategy.fromJson(json); | 18762 var obj = new api.PlacementGroup.fromJson(json); |
| 17124 checkPlacementStrategy(obj); | 18763 checkPlacementGroup(obj); |
| 17125 | 18764 |
| 17126 var path = (req.url).path; | 18765 var path = (req.url).path; |
| 17127 var pathOffset = 0; | 18766 var pathOffset = 0; |
| 17128 var index; | 18767 var index; |
| 17129 var subPart; | 18768 var subPart; |
| 17130 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18769 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17131 pathOffset += 1; | 18770 pathOffset += 1; |
| 17132 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18771 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17133 pathOffset += 18; | 18772 pathOffset += 18; |
| 17134 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18773 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17135 pathOffset += 13; | 18774 pathOffset += 13; |
| 17136 index = path.indexOf("/placementStrategies", pathOffset); | 18775 index = path.indexOf("/placementGroups", pathOffset); |
| 17137 unittest.expect(index >= 0, unittest.isTrue); | 18776 unittest.expect(index >= 0, unittest.isTrue); |
| 17138 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18777 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17139 pathOffset = index; | 18778 pathOffset = index; |
| 17140 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18779 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17141 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); | 18780 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); |
| 17142 pathOffset += 20; | 18781 pathOffset += 16; |
| 17143 | 18782 |
| 17144 var query = (req.url).query; | 18783 var query = (req.url).query; |
| 17145 var queryOffset = 0; | 18784 var queryOffset = 0; |
| 17146 var queryMap = {}; | 18785 var queryMap = {}; |
| 17147 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18786 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17148 parseBool(n) { | 18787 parseBool(n) { |
| 17149 if (n == "true") return true; | 18788 if (n == "true") return true; |
| 17150 if (n == "false") return false; | 18789 if (n == "false") return false; |
| 17151 if (n == null) return null; | 18790 if (n == null) return null; |
| 17152 throw new core.ArgumentError("Invalid boolean: $n"); | 18791 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17153 } | 18792 } |
| 17154 if (query.length > 0) { | 18793 if (query.length > 0) { |
| 17155 for (var part in query.split("&")) { | 18794 for (var part in query.split("&")) { |
| 17156 var keyvalue = part.split("="); | 18795 var keyvalue = part.split("="); |
| 17157 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18796 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17158 } | 18797 } |
| 17159 } | 18798 } |
| 17160 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 18799 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
| 17161 | 18800 |
| 17162 | 18801 |
| 17163 var h = { | 18802 var h = { |
| 17164 "content-type" : "application/json; charset=utf-8", | 18803 "content-type" : "application/json; charset=utf-8", |
| 17165 }; | 18804 }; |
| 17166 var resp = convert.JSON.encode(buildPlacementStrategy()); | 18805 var resp = convert.JSON.encode(buildPlacementGroup()); |
| 17167 return new async.Future.value(stringResponse(200, h, resp)); | 18806 return new async.Future.value(stringResponse(200, h, resp)); |
| 17168 }), true); | 18807 }), true); |
| 17169 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.PlacementStrategy response) { | 18808 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.PlacementGroup response) { |
| 17170 checkPlacementStrategy(response); | 18809 checkPlacementGroup(response); |
| 17171 }))); | 18810 }))); |
| 17172 }); | 18811 }); |
| 17173 | 18812 |
| 17174 unittest.test("method--update", () { | 18813 unittest.test("method--update", () { |
| 17175 | 18814 |
| 17176 var mock = new HttpServerMock(); | 18815 var mock = new HttpServerMock(); |
| 17177 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 18816 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 17178 var arg_request = buildPlacementStrategy(); | 18817 var arg_request = buildPlacementGroup(); |
| 17179 var arg_profileId = "foo"; | 18818 var arg_profileId = "foo"; |
| 17180 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18819 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17181 var obj = new api.PlacementStrategy.fromJson(json); | 18820 var obj = new api.PlacementGroup.fromJson(json); |
| 17182 checkPlacementStrategy(obj); | 18821 checkPlacementGroup(obj); |
| 17183 | 18822 |
| 17184 var path = (req.url).path; | 18823 var path = (req.url).path; |
| 17185 var pathOffset = 0; | 18824 var pathOffset = 0; |
| 17186 var index; | 18825 var index; |
| 17187 var subPart; | 18826 var subPart; |
| 17188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18827 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17189 pathOffset += 1; | 18828 pathOffset += 1; |
| 17190 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18829 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17191 pathOffset += 18; | 18830 pathOffset += 18; |
| 17192 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18831 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17193 pathOffset += 13; | 18832 pathOffset += 13; |
| 17194 index = path.indexOf("/placementStrategies", pathOffset); | 18833 index = path.indexOf("/placementGroups", pathOffset); |
| 17195 unittest.expect(index >= 0, unittest.isTrue); | 18834 unittest.expect(index >= 0, unittest.isTrue); |
| 17196 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18835 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17197 pathOffset = index; | 18836 pathOffset = index; |
| 17198 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18837 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17199 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); | 18838 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); |
| 17200 pathOffset += 20; | 18839 pathOffset += 16; |
| 17201 | 18840 |
| 17202 var query = (req.url).query; | 18841 var query = (req.url).query; |
| 17203 var queryOffset = 0; | 18842 var queryOffset = 0; |
| 17204 var queryMap = {}; | 18843 var queryMap = {}; |
| 17205 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18844 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17206 parseBool(n) { | 18845 parseBool(n) { |
| 17207 if (n == "true") return true; | 18846 if (n == "true") return true; |
| 17208 if (n == "false") return false; | 18847 if (n == "false") return false; |
| 17209 if (n == null) return null; | 18848 if (n == null) return null; |
| 17210 throw new core.ArgumentError("Invalid boolean: $n"); | 18849 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17211 } | 18850 } |
| 17212 if (query.length > 0) { | 18851 if (query.length > 0) { |
| 17213 for (var part in query.split("&")) { | 18852 for (var part in query.split("&")) { |
| 17214 var keyvalue = part.split("="); | 18853 var keyvalue = part.split("="); |
| 17215 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18854 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17216 } | 18855 } |
| 17217 } | 18856 } |
| 17218 | 18857 |
| 17219 | 18858 |
| 17220 var h = { | 18859 var h = { |
| 17221 "content-type" : "application/json; charset=utf-8", | 18860 "content-type" : "application/json; charset=utf-8", |
| 17222 }; | 18861 }; |
| 17223 var resp = convert.JSON.encode(buildPlacementStrategy()); | 18862 var resp = convert.JSON.encode(buildPlacementGroup()); |
| 17224 return new async.Future.value(stringResponse(200, h, resp)); | 18863 return new async.Future.value(stringResponse(200, h, resp)); |
| 17225 }), true); | 18864 }), true); |
| 17226 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementStrategy response) { | 18865 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementGroup response) { |
| 17227 checkPlacementStrategy(response); | 18866 checkPlacementGroup(response); |
| 17228 }))); | 18867 }))); |
| 17229 }); | 18868 }); |
| 17230 | 18869 |
| 17231 }); | 18870 }); |
| 17232 | 18871 |
| 17233 | 18872 |
| 17234 unittest.group("resource-PlacementsResourceApi", () { | 18873 unittest.group("resource-PlacementStrategiesResourceApi", () { |
| 17235 unittest.test("method--generatetags", () { | 18874 unittest.test("method--delete", () { |
| 17236 | 18875 |
| 17237 var mock = new HttpServerMock(); | 18876 var mock = new HttpServerMock(); |
| 17238 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 18877 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 17239 var arg_profileId = "foo"; | 18878 var arg_profileId = "foo"; |
| 17240 var arg_campaignId = "foo"; | 18879 var arg_id = "foo"; |
| 17241 var arg_placementIds = buildUnnamed473(); | |
| 17242 var arg_tagFormats = buildUnnamed474(); | |
| 17243 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18880 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17244 var path = (req.url).path; | 18881 var path = (req.url).path; |
| 17245 var pathOffset = 0; | 18882 var pathOffset = 0; |
| 17246 var index; | 18883 var index; |
| 17247 var subPart; | 18884 var subPart; |
| 17248 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18885 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17249 pathOffset += 1; | 18886 pathOffset += 1; |
| 17250 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18887 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17251 pathOffset += 18; | 18888 pathOffset += 18; |
| 17252 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18889 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17253 pathOffset += 13; | 18890 pathOffset += 13; |
| 17254 index = path.indexOf("/placements/generatetags", pathOffset); | 18891 index = path.indexOf("/placementStrategies/", pathOffset); |
| 17255 unittest.expect(index >= 0, unittest.isTrue); | 18892 unittest.expect(index >= 0, unittest.isTrue); |
| 17256 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18893 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17257 pathOffset = index; | 18894 pathOffset = index; |
| 17258 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18895 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17259 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/placements/generatetags")); | 18896 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/placementStrategies/")); |
| 17260 pathOffset += 24; | 18897 pathOffset += 21; |
| 18898 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18899 pathOffset = path.length; |
| 18900 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 17261 | 18901 |
| 17262 var query = (req.url).query; | 18902 var query = (req.url).query; |
| 17263 var queryOffset = 0; | 18903 var queryOffset = 0; |
| 17264 var queryMap = {}; | 18904 var queryMap = {}; |
| 17265 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18905 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17266 parseBool(n) { | 18906 parseBool(n) { |
| 17267 if (n == "true") return true; | 18907 if (n == "true") return true; |
| 17268 if (n == "false") return false; | 18908 if (n == "false") return false; |
| 17269 if (n == null) return null; | 18909 if (n == null) return null; |
| 17270 throw new core.ArgumentError("Invalid boolean: $n"); | 18910 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17271 } | 18911 } |
| 17272 if (query.length > 0) { | 18912 if (query.length > 0) { |
| 17273 for (var part in query.split("&")) { | 18913 for (var part in query.split("&")) { |
| 17274 var keyvalue = part.split("="); | 18914 var keyvalue = part.split("="); |
| 17275 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18915 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17276 } | 18916 } |
| 17277 } | 18917 } |
| 18918 |
| 18919 |
| 18920 var h = { |
| 18921 "content-type" : "application/json; charset=utf-8", |
| 18922 }; |
| 18923 var resp = ""; |
| 18924 return new async.Future.value(stringResponse(200, h, resp)); |
| 18925 }), true); |
| 18926 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); |
| 18927 }); |
| 18928 |
| 18929 unittest.test("method--get", () { |
| 18930 |
| 18931 var mock = new HttpServerMock(); |
| 18932 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 18933 var arg_profileId = "foo"; |
| 18934 var arg_id = "foo"; |
| 18935 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18936 var path = (req.url).path; |
| 18937 var pathOffset = 0; |
| 18938 var index; |
| 18939 var subPart; |
| 18940 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18941 pathOffset += 1; |
| 18942 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18943 pathOffset += 18; |
| 18944 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18945 pathOffset += 13; |
| 18946 index = path.indexOf("/placementStrategies/", pathOffset); |
| 18947 unittest.expect(index >= 0, unittest.isTrue); |
| 18948 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18949 pathOffset = index; |
| 18950 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18951 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/placementStrategies/")); |
| 18952 pathOffset += 21; |
| 18953 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18954 pathOffset = path.length; |
| 18955 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 18956 |
| 18957 var query = (req.url).query; |
| 18958 var queryOffset = 0; |
| 18959 var queryMap = {}; |
| 18960 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18961 parseBool(n) { |
| 18962 if (n == "true") return true; |
| 18963 if (n == "false") return false; |
| 18964 if (n == null) return null; |
| 18965 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18966 } |
| 18967 if (query.length > 0) { |
| 18968 for (var part in query.split("&")) { |
| 18969 var keyvalue = part.split("="); |
| 18970 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18971 } |
| 18972 } |
| 18973 |
| 18974 |
| 18975 var h = { |
| 18976 "content-type" : "application/json; charset=utf-8", |
| 18977 }; |
| 18978 var resp = convert.JSON.encode(buildPlacementStrategy()); |
| 18979 return new async.Future.value(stringResponse(200, h, resp)); |
| 18980 }), true); |
| 18981 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementSt
rategy response) { |
| 18982 checkPlacementStrategy(response); |
| 18983 }))); |
| 18984 }); |
| 18985 |
| 18986 unittest.test("method--insert", () { |
| 18987 |
| 18988 var mock = new HttpServerMock(); |
| 18989 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 18990 var arg_request = buildPlacementStrategy(); |
| 18991 var arg_profileId = "foo"; |
| 18992 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18993 var obj = new api.PlacementStrategy.fromJson(json); |
| 18994 checkPlacementStrategy(obj); |
| 18995 |
| 18996 var path = (req.url).path; |
| 18997 var pathOffset = 0; |
| 18998 var index; |
| 18999 var subPart; |
| 19000 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19001 pathOffset += 1; |
| 19002 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19003 pathOffset += 18; |
| 19004 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19005 pathOffset += 13; |
| 19006 index = path.indexOf("/placementStrategies", pathOffset); |
| 19007 unittest.expect(index >= 0, unittest.isTrue); |
| 19008 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19009 pathOffset = index; |
| 19010 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19011 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); |
| 19012 pathOffset += 20; |
| 19013 |
| 19014 var query = (req.url).query; |
| 19015 var queryOffset = 0; |
| 19016 var queryMap = {}; |
| 19017 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19018 parseBool(n) { |
| 19019 if (n == "true") return true; |
| 19020 if (n == "false") return false; |
| 19021 if (n == null) return null; |
| 19022 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19023 } |
| 19024 if (query.length > 0) { |
| 19025 for (var part in query.split("&")) { |
| 19026 var keyvalue = part.split("="); |
| 19027 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19028 } |
| 19029 } |
| 19030 |
| 19031 |
| 19032 var h = { |
| 19033 "content-type" : "application/json; charset=utf-8", |
| 19034 }; |
| 19035 var resp = convert.JSON.encode(buildPlacementStrategy()); |
| 19036 return new async.Future.value(stringResponse(200, h, resp)); |
| 19037 }), true); |
| 19038 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementStrategy response) { |
| 19039 checkPlacementStrategy(response); |
| 19040 }))); |
| 19041 }); |
| 19042 |
| 19043 unittest.test("method--list", () { |
| 19044 |
| 19045 var mock = new HttpServerMock(); |
| 19046 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 19047 var arg_profileId = "foo"; |
| 19048 var arg_ids = buildUnnamed1543(); |
| 19049 var arg_maxResults = 42; |
| 19050 var arg_pageToken = "foo"; |
| 19051 var arg_searchString = "foo"; |
| 19052 var arg_sortField = "foo"; |
| 19053 var arg_sortOrder = "foo"; |
| 19054 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19055 var path = (req.url).path; |
| 19056 var pathOffset = 0; |
| 19057 var index; |
| 19058 var subPart; |
| 19059 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19060 pathOffset += 1; |
| 19061 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19062 pathOffset += 18; |
| 19063 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19064 pathOffset += 13; |
| 19065 index = path.indexOf("/placementStrategies", pathOffset); |
| 19066 unittest.expect(index >= 0, unittest.isTrue); |
| 19067 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19068 pathOffset = index; |
| 19069 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19070 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); |
| 19071 pathOffset += 20; |
| 19072 |
| 19073 var query = (req.url).query; |
| 19074 var queryOffset = 0; |
| 19075 var queryMap = {}; |
| 19076 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19077 parseBool(n) { |
| 19078 if (n == "true") return true; |
| 19079 if (n == "false") return false; |
| 19080 if (n == null) return null; |
| 19081 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19082 } |
| 19083 if (query.length > 0) { |
| 19084 for (var part in query.split("&")) { |
| 19085 var keyvalue = part.split("="); |
| 19086 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19087 } |
| 19088 } |
| 19089 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 19090 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 19091 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 19092 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 19093 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 19094 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 19095 |
| 19096 |
| 19097 var h = { |
| 19098 "content-type" : "application/json; charset=utf-8", |
| 19099 }; |
| 19100 var resp = convert.JSON.encode(buildPlacementStrategiesListResponse()); |
| 19101 return new async.Future.value(stringResponse(200, h, resp)); |
| 19102 }), true); |
| 19103 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke
n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort
Order: arg_sortOrder).then(unittest.expectAsync(((api.PlacementStrategiesListRes
ponse response) { |
| 19104 checkPlacementStrategiesListResponse(response); |
| 19105 }))); |
| 19106 }); |
| 19107 |
| 19108 unittest.test("method--patch", () { |
| 19109 |
| 19110 var mock = new HttpServerMock(); |
| 19111 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 19112 var arg_request = buildPlacementStrategy(); |
| 19113 var arg_profileId = "foo"; |
| 19114 var arg_id = "foo"; |
| 19115 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19116 var obj = new api.PlacementStrategy.fromJson(json); |
| 19117 checkPlacementStrategy(obj); |
| 19118 |
| 19119 var path = (req.url).path; |
| 19120 var pathOffset = 0; |
| 19121 var index; |
| 19122 var subPart; |
| 19123 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19124 pathOffset += 1; |
| 19125 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19126 pathOffset += 18; |
| 19127 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19128 pathOffset += 13; |
| 19129 index = path.indexOf("/placementStrategies", pathOffset); |
| 19130 unittest.expect(index >= 0, unittest.isTrue); |
| 19131 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19132 pathOffset = index; |
| 19133 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19134 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); |
| 19135 pathOffset += 20; |
| 19136 |
| 19137 var query = (req.url).query; |
| 19138 var queryOffset = 0; |
| 19139 var queryMap = {}; |
| 19140 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19141 parseBool(n) { |
| 19142 if (n == "true") return true; |
| 19143 if (n == "false") return false; |
| 19144 if (n == null) return null; |
| 19145 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19146 } |
| 19147 if (query.length > 0) { |
| 19148 for (var part in query.split("&")) { |
| 19149 var keyvalue = part.split("="); |
| 19150 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19151 } |
| 19152 } |
| 19153 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
| 19154 |
| 19155 |
| 19156 var h = { |
| 19157 "content-type" : "application/json; charset=utf-8", |
| 19158 }; |
| 19159 var resp = convert.JSON.encode(buildPlacementStrategy()); |
| 19160 return new async.Future.value(stringResponse(200, h, resp)); |
| 19161 }), true); |
| 19162 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.PlacementStrategy response) { |
| 19163 checkPlacementStrategy(response); |
| 19164 }))); |
| 19165 }); |
| 19166 |
| 19167 unittest.test("method--update", () { |
| 19168 |
| 19169 var mock = new HttpServerMock(); |
| 19170 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 19171 var arg_request = buildPlacementStrategy(); |
| 19172 var arg_profileId = "foo"; |
| 19173 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19174 var obj = new api.PlacementStrategy.fromJson(json); |
| 19175 checkPlacementStrategy(obj); |
| 19176 |
| 19177 var path = (req.url).path; |
| 19178 var pathOffset = 0; |
| 19179 var index; |
| 19180 var subPart; |
| 19181 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19182 pathOffset += 1; |
| 19183 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19184 pathOffset += 18; |
| 19185 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19186 pathOffset += 13; |
| 19187 index = path.indexOf("/placementStrategies", pathOffset); |
| 19188 unittest.expect(index >= 0, unittest.isTrue); |
| 19189 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19190 pathOffset = index; |
| 19191 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19192 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); |
| 19193 pathOffset += 20; |
| 19194 |
| 19195 var query = (req.url).query; |
| 19196 var queryOffset = 0; |
| 19197 var queryMap = {}; |
| 19198 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19199 parseBool(n) { |
| 19200 if (n == "true") return true; |
| 19201 if (n == "false") return false; |
| 19202 if (n == null) return null; |
| 19203 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19204 } |
| 19205 if (query.length > 0) { |
| 19206 for (var part in query.split("&")) { |
| 19207 var keyvalue = part.split("="); |
| 19208 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19209 } |
| 19210 } |
| 19211 |
| 19212 |
| 19213 var h = { |
| 19214 "content-type" : "application/json; charset=utf-8", |
| 19215 }; |
| 19216 var resp = convert.JSON.encode(buildPlacementStrategy()); |
| 19217 return new async.Future.value(stringResponse(200, h, resp)); |
| 19218 }), true); |
| 19219 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementStrategy response) { |
| 19220 checkPlacementStrategy(response); |
| 19221 }))); |
| 19222 }); |
| 19223 |
| 19224 }); |
| 19225 |
| 19226 |
| 19227 unittest.group("resource-PlacementsResourceApi", () { |
| 19228 unittest.test("method--generatetags", () { |
| 19229 |
| 19230 var mock = new HttpServerMock(); |
| 19231 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19232 var arg_profileId = "foo"; |
| 19233 var arg_campaignId = "foo"; |
| 19234 var arg_placementIds = buildUnnamed1544(); |
| 19235 var arg_tagFormats = buildUnnamed1545(); |
| 19236 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19237 var path = (req.url).path; |
| 19238 var pathOffset = 0; |
| 19239 var index; |
| 19240 var subPart; |
| 19241 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19242 pathOffset += 1; |
| 19243 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19244 pathOffset += 18; |
| 19245 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19246 pathOffset += 13; |
| 19247 index = path.indexOf("/placements/generatetags", pathOffset); |
| 19248 unittest.expect(index >= 0, unittest.isTrue); |
| 19249 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19250 pathOffset = index; |
| 19251 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19252 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/placements/generatetags")); |
| 19253 pathOffset += 24; |
| 19254 |
| 19255 var query = (req.url).query; |
| 19256 var queryOffset = 0; |
| 19257 var queryMap = {}; |
| 19258 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19259 parseBool(n) { |
| 19260 if (n == "true") return true; |
| 19261 if (n == "false") return false; |
| 19262 if (n == null) return null; |
| 19263 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19264 } |
| 19265 if (query.length > 0) { |
| 19266 for (var part in query.split("&")) { |
| 19267 var keyvalue = part.split("="); |
| 19268 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19269 } |
| 19270 } |
| 17278 unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campai
gnId)); | 19271 unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campai
gnId)); |
| 17279 unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementI
ds)); | 19272 unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementI
ds)); |
| 17280 unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats))
; | 19273 unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats))
; |
| 17281 | 19274 |
| 17282 | 19275 |
| 17283 var h = { | 19276 var h = { |
| 17284 "content-type" : "application/json; charset=utf-8", | 19277 "content-type" : "application/json; charset=utf-8", |
| 17285 }; | 19278 }; |
| 17286 var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse()); | 19279 var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse()); |
| 17287 return new async.Future.value(stringResponse(200, h, resp)); | 19280 return new async.Future.value(stringResponse(200, h, resp)); |
| 17288 }), true); | 19281 }), true); |
| 17289 res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds:
arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.Pl
acementsGenerateTagsResponse response) { | 19282 res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds:
arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.Pl
acementsGenerateTagsResponse response) { |
| 17290 checkPlacementsGenerateTagsResponse(response); | 19283 checkPlacementsGenerateTagsResponse(response); |
| 17291 }))); | 19284 }))); |
| 17292 }); | 19285 }); |
| 17293 | 19286 |
| 17294 unittest.test("method--get", () { | 19287 unittest.test("method--get", () { |
| 17295 | 19288 |
| 17296 var mock = new HttpServerMock(); | 19289 var mock = new HttpServerMock(); |
| 17297 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 19290 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 17298 var arg_profileId = "foo"; | 19291 var arg_profileId = "foo"; |
| 17299 var arg_id = "foo"; | 19292 var arg_id = "foo"; |
| 17300 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19293 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19294 var path = (req.url).path; |
| 19295 var pathOffset = 0; |
| 19296 var index; |
| 19297 var subPart; |
| 19298 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19299 pathOffset += 1; |
| 19300 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19301 pathOffset += 18; |
| 19302 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19303 pathOffset += 13; |
| 19304 index = path.indexOf("/placements/", pathOffset); |
| 19305 unittest.expect(index >= 0, unittest.isTrue); |
| 19306 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19307 pathOffset = index; |
| 19308 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19309 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/placements/")); |
| 19310 pathOffset += 12; |
| 19311 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 19312 pathOffset = path.length; |
| 19313 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 19314 |
| 19315 var query = (req.url).query; |
| 19316 var queryOffset = 0; |
| 19317 var queryMap = {}; |
| 19318 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19319 parseBool(n) { |
| 19320 if (n == "true") return true; |
| 19321 if (n == "false") return false; |
| 19322 if (n == null) return null; |
| 19323 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19324 } |
| 19325 if (query.length > 0) { |
| 19326 for (var part in query.split("&")) { |
| 19327 var keyvalue = part.split("="); |
| 19328 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19329 } |
| 19330 } |
| 19331 |
| 19332 |
| 19333 var h = { |
| 19334 "content-type" : "application/json; charset=utf-8", |
| 19335 }; |
| 19336 var resp = convert.JSON.encode(buildPlacement()); |
| 19337 return new async.Future.value(stringResponse(200, h, resp)); |
| 19338 }), true); |
| 19339 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement r
esponse) { |
| 19340 checkPlacement(response); |
| 19341 }))); |
| 19342 }); |
| 19343 |
| 19344 unittest.test("method--insert", () { |
| 19345 |
| 19346 var mock = new HttpServerMock(); |
| 19347 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19348 var arg_request = buildPlacement(); |
| 19349 var arg_profileId = "foo"; |
| 19350 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19351 var obj = new api.Placement.fromJson(json); |
| 19352 checkPlacement(obj); |
| 19353 |
| 19354 var path = (req.url).path; |
| 19355 var pathOffset = 0; |
| 19356 var index; |
| 19357 var subPart; |
| 19358 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19359 pathOffset += 1; |
| 19360 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19361 pathOffset += 18; |
| 19362 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19363 pathOffset += 13; |
| 19364 index = path.indexOf("/placements", pathOffset); |
| 19365 unittest.expect(index >= 0, unittest.isTrue); |
| 19366 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19367 pathOffset = index; |
| 19368 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19369 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); |
| 19370 pathOffset += 11; |
| 19371 |
| 19372 var query = (req.url).query; |
| 19373 var queryOffset = 0; |
| 19374 var queryMap = {}; |
| 19375 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19376 parseBool(n) { |
| 19377 if (n == "true") return true; |
| 19378 if (n == "false") return false; |
| 19379 if (n == null) return null; |
| 19380 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19381 } |
| 19382 if (query.length > 0) { |
| 19383 for (var part in query.split("&")) { |
| 19384 var keyvalue = part.split("="); |
| 19385 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19386 } |
| 19387 } |
| 19388 |
| 19389 |
| 19390 var h = { |
| 19391 "content-type" : "application/json; charset=utf-8", |
| 19392 }; |
| 19393 var resp = convert.JSON.encode(buildPlacement()); |
| 19394 return new async.Future.value(stringResponse(200, h, resp)); |
| 19395 }), true); |
| 19396 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cement response) { |
| 19397 checkPlacement(response); |
| 19398 }))); |
| 19399 }); |
| 19400 |
| 19401 unittest.test("method--list", () { |
| 19402 |
| 19403 var mock = new HttpServerMock(); |
| 19404 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19405 var arg_profileId = "foo"; |
| 19406 var arg_advertiserIds = buildUnnamed1546(); |
| 19407 var arg_archived = true; |
| 19408 var arg_campaignIds = buildUnnamed1547(); |
| 19409 var arg_compatibilities = buildUnnamed1548(); |
| 19410 var arg_contentCategoryIds = buildUnnamed1549(); |
| 19411 var arg_directorySiteIds = buildUnnamed1550(); |
| 19412 var arg_groupIds = buildUnnamed1551(); |
| 19413 var arg_ids = buildUnnamed1552(); |
| 19414 var arg_maxEndDate = "foo"; |
| 19415 var arg_maxResults = 42; |
| 19416 var arg_maxStartDate = "foo"; |
| 19417 var arg_minEndDate = "foo"; |
| 19418 var arg_minStartDate = "foo"; |
| 19419 var arg_pageToken = "foo"; |
| 19420 var arg_paymentSource = "foo"; |
| 19421 var arg_placementStrategyIds = buildUnnamed1553(); |
| 19422 var arg_pricingTypes = buildUnnamed1554(); |
| 19423 var arg_searchString = "foo"; |
| 19424 var arg_siteIds = buildUnnamed1555(); |
| 19425 var arg_sizeIds = buildUnnamed1556(); |
| 19426 var arg_sortField = "foo"; |
| 19427 var arg_sortOrder = "foo"; |
| 19428 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19429 var path = (req.url).path; |
| 19430 var pathOffset = 0; |
| 19431 var index; |
| 19432 var subPart; |
| 19433 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19434 pathOffset += 1; |
| 19435 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19436 pathOffset += 18; |
| 19437 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19438 pathOffset += 13; |
| 19439 index = path.indexOf("/placements", pathOffset); |
| 19440 unittest.expect(index >= 0, unittest.isTrue); |
| 19441 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19442 pathOffset = index; |
| 19443 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19444 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); |
| 19445 pathOffset += 11; |
| 19446 |
| 19447 var query = (req.url).query; |
| 19448 var queryOffset = 0; |
| 19449 var queryMap = {}; |
| 19450 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19451 parseBool(n) { |
| 19452 if (n == "true") return true; |
| 19453 if (n == "false") return false; |
| 19454 if (n == null) return null; |
| 19455 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19456 } |
| 19457 if (query.length > 0) { |
| 19458 for (var part in query.split("&")) { |
| 19459 var keyvalue = part.split("="); |
| 19460 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19461 } |
| 19462 } |
| 19463 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); |
| 19464 unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archiv
ed")); |
| 19465 unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds
)); |
| 19466 unittest.expect(queryMap["compatibilities"], unittest.equals(arg_compati
bilities)); |
| 19467 unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_cont
entCategoryIds)); |
| 19468 unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_direct
orySiteIds)); |
| 19469 unittest.expect(queryMap["groupIds"], unittest.equals(arg_groupIds)); |
| 19470 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 19471 unittest.expect(queryMap["maxEndDate"].first, unittest.equals(arg_maxEnd
Date)); |
| 19472 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 19473 unittest.expect(queryMap["maxStartDate"].first, unittest.equals(arg_maxS
tartDate)); |
| 19474 unittest.expect(queryMap["minEndDate"].first, unittest.equals(arg_minEnd
Date)); |
| 19475 unittest.expect(queryMap["minStartDate"].first, unittest.equals(arg_minS
tartDate)); |
| 19476 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 19477 unittest.expect(queryMap["paymentSource"].first, unittest.equals(arg_pay
mentSource)); |
| 19478 unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_pl
acementStrategyIds)); |
| 19479 unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTyp
es)); |
| 19480 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 19481 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); |
| 19482 unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); |
| 19483 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 19484 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 19485 |
| 19486 |
| 19487 var h = { |
| 19488 "content-type" : "application/json; charset=utf-8", |
| 19489 }; |
| 19490 var resp = convert.JSON.encode(buildPlacementsListResponse()); |
| 19491 return new async.Future.value(stringResponse(200, h, resp)); |
| 19492 }), true); |
| 19493 res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_ar
chived, campaignIds: arg_campaignIds, compatibilities: arg_compatibilities, cont
entCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds,
groupIds: arg_groupIds, ids: arg_ids, maxEndDate: arg_maxEndDate, maxResults: ar
g_maxResults, maxStartDate: arg_maxStartDate, minEndDate: arg_minEndDate, minSta
rtDate: arg_minStartDate, pageToken: arg_pageToken, paymentSource: arg_paymentSo
urce, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingT
ypes, searchString: arg_searchString, siteIds: arg_siteIds, sizeIds: arg_sizeIds
, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(
((api.PlacementsListResponse response) { |
| 19494 checkPlacementsListResponse(response); |
| 19495 }))); |
| 19496 }); |
| 19497 |
| 19498 unittest.test("method--patch", () { |
| 19499 |
| 19500 var mock = new HttpServerMock(); |
| 19501 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19502 var arg_request = buildPlacement(); |
| 19503 var arg_profileId = "foo"; |
| 19504 var arg_id = "foo"; |
| 19505 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19506 var obj = new api.Placement.fromJson(json); |
| 19507 checkPlacement(obj); |
| 19508 |
| 19509 var path = (req.url).path; |
| 19510 var pathOffset = 0; |
| 19511 var index; |
| 19512 var subPart; |
| 19513 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19514 pathOffset += 1; |
| 19515 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19516 pathOffset += 18; |
| 19517 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19518 pathOffset += 13; |
| 19519 index = path.indexOf("/placements", pathOffset); |
| 19520 unittest.expect(index >= 0, unittest.isTrue); |
| 19521 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19522 pathOffset = index; |
| 19523 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19524 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); |
| 19525 pathOffset += 11; |
| 19526 |
| 19527 var query = (req.url).query; |
| 19528 var queryOffset = 0; |
| 19529 var queryMap = {}; |
| 19530 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19531 parseBool(n) { |
| 19532 if (n == "true") return true; |
| 19533 if (n == "false") return false; |
| 19534 if (n == null) return null; |
| 19535 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19536 } |
| 19537 if (query.length > 0) { |
| 19538 for (var part in query.split("&")) { |
| 19539 var keyvalue = part.split("="); |
| 19540 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19541 } |
| 19542 } |
| 19543 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
| 19544 |
| 19545 |
| 19546 var h = { |
| 19547 "content-type" : "application/json; charset=utf-8", |
| 19548 }; |
| 19549 var resp = convert.JSON.encode(buildPlacement()); |
| 19550 return new async.Future.value(stringResponse(200, h, resp)); |
| 19551 }), true); |
| 19552 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.Placement response) { |
| 19553 checkPlacement(response); |
| 19554 }))); |
| 19555 }); |
| 19556 |
| 19557 unittest.test("method--update", () { |
| 19558 |
| 19559 var mock = new HttpServerMock(); |
| 19560 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19561 var arg_request = buildPlacement(); |
| 19562 var arg_profileId = "foo"; |
| 19563 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19564 var obj = new api.Placement.fromJson(json); |
| 19565 checkPlacement(obj); |
| 19566 |
| 19567 var path = (req.url).path; |
| 19568 var pathOffset = 0; |
| 19569 var index; |
| 19570 var subPart; |
| 19571 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19572 pathOffset += 1; |
| 19573 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19574 pathOffset += 18; |
| 19575 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19576 pathOffset += 13; |
| 19577 index = path.indexOf("/placements", pathOffset); |
| 19578 unittest.expect(index >= 0, unittest.isTrue); |
| 19579 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19580 pathOffset = index; |
| 19581 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19582 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); |
| 19583 pathOffset += 11; |
| 19584 |
| 19585 var query = (req.url).query; |
| 19586 var queryOffset = 0; |
| 19587 var queryMap = {}; |
| 19588 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19589 parseBool(n) { |
| 19590 if (n == "true") return true; |
| 19591 if (n == "false") return false; |
| 19592 if (n == null) return null; |
| 19593 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19594 } |
| 19595 if (query.length > 0) { |
| 19596 for (var part in query.split("&")) { |
| 19597 var keyvalue = part.split("="); |
| 19598 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19599 } |
| 19600 } |
| 19601 |
| 19602 |
| 19603 var h = { |
| 19604 "content-type" : "application/json; charset=utf-8", |
| 19605 }; |
| 19606 var resp = convert.JSON.encode(buildPlacement()); |
| 19607 return new async.Future.value(stringResponse(200, h, resp)); |
| 19608 }), true); |
| 19609 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cement response) { |
| 19610 checkPlacement(response); |
| 19611 }))); |
| 19612 }); |
| 19613 |
| 19614 }); |
| 19615 |
| 19616 |
| 19617 unittest.group("resource-PlatformTypesResourceApi", () { |
| 19618 unittest.test("method--get", () { |
| 19619 |
| 19620 var mock = new HttpServerMock(); |
| 19621 api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformT
ypes; |
| 19622 var arg_profileId = "foo"; |
| 19623 var arg_id = "foo"; |
| 19624 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19625 var path = (req.url).path; |
| 19626 var pathOffset = 0; |
| 19627 var index; |
| 19628 var subPart; |
| 19629 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19630 pathOffset += 1; |
| 19631 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19632 pathOffset += 18; |
| 19633 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19634 pathOffset += 13; |
| 19635 index = path.indexOf("/platformTypes/", pathOffset); |
| 19636 unittest.expect(index >= 0, unittest.isTrue); |
| 19637 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19638 pathOffset = index; |
| 19639 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19640 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/platformTypes/")); |
| 19641 pathOffset += 15; |
| 19642 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 19643 pathOffset = path.length; |
| 19644 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 19645 |
| 19646 var query = (req.url).query; |
| 19647 var queryOffset = 0; |
| 19648 var queryMap = {}; |
| 19649 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19650 parseBool(n) { |
| 19651 if (n == "true") return true; |
| 19652 if (n == "false") return false; |
| 19653 if (n == null) return null; |
| 19654 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19655 } |
| 19656 if (query.length > 0) { |
| 19657 for (var part in query.split("&")) { |
| 19658 var keyvalue = part.split("="); |
| 19659 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19660 } |
| 19661 } |
| 19662 |
| 19663 |
| 19664 var h = { |
| 19665 "content-type" : "application/json; charset=utf-8", |
| 19666 }; |
| 19667 var resp = convert.JSON.encode(buildPlatformType()); |
| 19668 return new async.Future.value(stringResponse(200, h, resp)); |
| 19669 }), true); |
| 19670 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlatformTyp
e response) { |
| 19671 checkPlatformType(response); |
| 19672 }))); |
| 19673 }); |
| 19674 |
| 19675 unittest.test("method--list", () { |
| 19676 |
| 19677 var mock = new HttpServerMock(); |
| 19678 api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformT
ypes; |
| 19679 var arg_profileId = "foo"; |
| 19680 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19681 var path = (req.url).path; |
| 19682 var pathOffset = 0; |
| 19683 var index; |
| 19684 var subPart; |
| 19685 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19686 pathOffset += 1; |
| 19687 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19688 pathOffset += 18; |
| 19689 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19690 pathOffset += 13; |
| 19691 index = path.indexOf("/platformTypes", pathOffset); |
| 19692 unittest.expect(index >= 0, unittest.isTrue); |
| 19693 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19694 pathOffset = index; |
| 19695 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19696 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/platformTypes")); |
| 19697 pathOffset += 14; |
| 19698 |
| 19699 var query = (req.url).query; |
| 19700 var queryOffset = 0; |
| 19701 var queryMap = {}; |
| 19702 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19703 parseBool(n) { |
| 19704 if (n == "true") return true; |
| 19705 if (n == "false") return false; |
| 19706 if (n == null) return null; |
| 19707 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19708 } |
| 19709 if (query.length > 0) { |
| 19710 for (var part in query.split("&")) { |
| 19711 var keyvalue = part.split("="); |
| 19712 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19713 } |
| 19714 } |
| 19715 |
| 19716 |
| 19717 var h = { |
| 19718 "content-type" : "application/json; charset=utf-8", |
| 19719 }; |
| 19720 var resp = convert.JSON.encode(buildPlatformTypesListResponse()); |
| 19721 return new async.Future.value(stringResponse(200, h, resp)); |
| 19722 }), true); |
| 19723 res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListR
esponse response) { |
| 19724 checkPlatformTypesListResponse(response); |
| 19725 }))); |
| 19726 }); |
| 19727 |
| 19728 }); |
| 19729 |
| 19730 |
| 19731 unittest.group("resource-PostalCodesResourceApi", () { |
| 19732 unittest.test("method--get", () { |
| 19733 |
| 19734 var mock = new HttpServerMock(); |
| 19735 api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes
; |
| 19736 var arg_profileId = "foo"; |
| 19737 var arg_code = "foo"; |
| 19738 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19739 var path = (req.url).path; |
| 19740 var pathOffset = 0; |
| 19741 var index; |
| 19742 var subPart; |
| 19743 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19744 pathOffset += 1; |
| 19745 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19746 pathOffset += 18; |
| 19747 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19748 pathOffset += 13; |
| 19749 index = path.indexOf("/postalCodes/", pathOffset); |
| 19750 unittest.expect(index >= 0, unittest.isTrue); |
| 19751 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19752 pathOffset = index; |
| 19753 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19754 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/postalCodes/")); |
| 19755 pathOffset += 13; |
| 19756 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 19757 pathOffset = path.length; |
| 19758 unittest.expect(subPart, unittest.equals("$arg_code")); |
| 19759 |
| 19760 var query = (req.url).query; |
| 19761 var queryOffset = 0; |
| 19762 var queryMap = {}; |
| 19763 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19764 parseBool(n) { |
| 19765 if (n == "true") return true; |
| 19766 if (n == "false") return false; |
| 19767 if (n == null) return null; |
| 19768 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19769 } |
| 19770 if (query.length > 0) { |
| 19771 for (var part in query.split("&")) { |
| 19772 var keyvalue = part.split("="); |
| 19773 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19774 } |
| 19775 } |
| 19776 |
| 19777 |
| 19778 var h = { |
| 19779 "content-type" : "application/json; charset=utf-8", |
| 19780 }; |
| 19781 var resp = convert.JSON.encode(buildPostalCode()); |
| 19782 return new async.Future.value(stringResponse(200, h, resp)); |
| 19783 }), true); |
| 19784 res.get(arg_profileId, arg_code).then(unittest.expectAsync(((api.PostalCod
e response) { |
| 19785 checkPostalCode(response); |
| 19786 }))); |
| 19787 }); |
| 19788 |
| 19789 unittest.test("method--list", () { |
| 19790 |
| 19791 var mock = new HttpServerMock(); |
| 19792 api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes
; |
| 19793 var arg_profileId = "foo"; |
| 19794 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19795 var path = (req.url).path; |
| 19796 var pathOffset = 0; |
| 19797 var index; |
| 19798 var subPart; |
| 19799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19800 pathOffset += 1; |
| 19801 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19802 pathOffset += 18; |
| 19803 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19804 pathOffset += 13; |
| 19805 index = path.indexOf("/postalCodes", pathOffset); |
| 19806 unittest.expect(index >= 0, unittest.isTrue); |
| 19807 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19808 pathOffset = index; |
| 19809 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19810 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/postalCodes")); |
| 19811 pathOffset += 12; |
| 19812 |
| 19813 var query = (req.url).query; |
| 19814 var queryOffset = 0; |
| 19815 var queryMap = {}; |
| 19816 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19817 parseBool(n) { |
| 19818 if (n == "true") return true; |
| 19819 if (n == "false") return false; |
| 19820 if (n == null) return null; |
| 19821 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19822 } |
| 19823 if (query.length > 0) { |
| 19824 for (var part in query.split("&")) { |
| 19825 var keyvalue = part.split("="); |
| 19826 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19827 } |
| 19828 } |
| 19829 |
| 19830 |
| 19831 var h = { |
| 19832 "content-type" : "application/json; charset=utf-8", |
| 19833 }; |
| 19834 var resp = convert.JSON.encode(buildPostalCodesListResponse()); |
| 19835 return new async.Future.value(stringResponse(200, h, resp)); |
| 19836 }), true); |
| 19837 res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListRes
ponse response) { |
| 19838 checkPostalCodesListResponse(response); |
| 19839 }))); |
| 19840 }); |
| 19841 |
| 19842 }); |
| 19843 |
| 19844 |
| 19845 unittest.group("resource-ProjectsResourceApi", () { |
| 19846 unittest.test("method--get", () { |
| 19847 |
| 19848 var mock = new HttpServerMock(); |
| 19849 api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; |
| 19850 var arg_profileId = "foo"; |
| 19851 var arg_id = "foo"; |
| 19852 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17301 var path = (req.url).path; | 19853 var path = (req.url).path; |
| 17302 var pathOffset = 0; | 19854 var pathOffset = 0; |
| 17303 var index; | 19855 var index; |
| 17304 var subPart; | 19856 var subPart; |
| 17305 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19857 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17306 pathOffset += 1; | 19858 pathOffset += 1; |
| 17307 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19859 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17308 pathOffset += 18; | 19860 pathOffset += 18; |
| 17309 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19861 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17310 pathOffset += 13; | 19862 pathOffset += 13; |
| 17311 index = path.indexOf("/placements/", pathOffset); | 19863 index = path.indexOf("/projects/", pathOffset); |
| 17312 unittest.expect(index >= 0, unittest.isTrue); | 19864 unittest.expect(index >= 0, unittest.isTrue); |
| 17313 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19865 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17314 pathOffset = index; | 19866 pathOffset = index; |
| 17315 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19867 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17316 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/placements/")); | 19868 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 17317 pathOffset += 12; | 19869 pathOffset += 10; |
| 17318 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 19870 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 17319 pathOffset = path.length; | 19871 pathOffset = path.length; |
| 17320 unittest.expect(subPart, unittest.equals("$arg_id")); | 19872 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 17321 | 19873 |
| 17322 var query = (req.url).query; | 19874 var query = (req.url).query; |
| 17323 var queryOffset = 0; | 19875 var queryOffset = 0; |
| 19876 var queryMap = {}; |
| 19877 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19878 parseBool(n) { |
| 19879 if (n == "true") return true; |
| 19880 if (n == "false") return false; |
| 19881 if (n == null) return null; |
| 19882 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19883 } |
| 19884 if (query.length > 0) { |
| 19885 for (var part in query.split("&")) { |
| 19886 var keyvalue = part.split("="); |
| 19887 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19888 } |
| 19889 } |
| 19890 |
| 19891 |
| 19892 var h = { |
| 19893 "content-type" : "application/json; charset=utf-8", |
| 19894 }; |
| 19895 var resp = convert.JSON.encode(buildProject()); |
| 19896 return new async.Future.value(stringResponse(200, h, resp)); |
| 19897 }), true); |
| 19898 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Project res
ponse) { |
| 19899 checkProject(response); |
| 19900 }))); |
| 19901 }); |
| 19902 |
| 19903 unittest.test("method--list", () { |
| 19904 |
| 19905 var mock = new HttpServerMock(); |
| 19906 api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; |
| 19907 var arg_profileId = "foo"; |
| 19908 var arg_advertiserIds = buildUnnamed1557(); |
| 19909 var arg_ids = buildUnnamed1558(); |
| 19910 var arg_maxResults = 42; |
| 19911 var arg_pageToken = "foo"; |
| 19912 var arg_searchString = "foo"; |
| 19913 var arg_sortField = "foo"; |
| 19914 var arg_sortOrder = "foo"; |
| 19915 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19916 var path = (req.url).path; |
| 19917 var pathOffset = 0; |
| 19918 var index; |
| 19919 var subPart; |
| 19920 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19921 pathOffset += 1; |
| 19922 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19923 pathOffset += 18; |
| 19924 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19925 pathOffset += 13; |
| 19926 index = path.indexOf("/projects", pathOffset); |
| 19927 unittest.expect(index >= 0, unittest.isTrue); |
| 19928 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19929 pathOffset = index; |
| 19930 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19931 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/projects")); |
| 19932 pathOffset += 9; |
| 19933 |
| 19934 var query = (req.url).query; |
| 19935 var queryOffset = 0; |
| 19936 var queryMap = {}; |
| 19937 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19938 parseBool(n) { |
| 19939 if (n == "true") return true; |
| 19940 if (n == "false") return false; |
| 19941 if (n == null) return null; |
| 19942 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19943 } |
| 19944 if (query.length > 0) { |
| 19945 for (var part in query.split("&")) { |
| 19946 var keyvalue = part.split("="); |
| 19947 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19948 } |
| 19949 } |
| 19950 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); |
| 19951 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 19952 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 19953 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 19954 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 19955 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 19956 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 19957 |
| 19958 |
| 19959 var h = { |
| 19960 "content-type" : "application/json; charset=utf-8", |
| 19961 }; |
| 19962 var resp = convert.JSON.encode(buildProjectsListResponse()); |
| 19963 return new async.Future.value(stringResponse(200, h, resp)); |
| 19964 }), true); |
| 19965 res.list(arg_profileId, advertiserIds: arg_advertiserIds, ids: arg_ids, ma
xResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchStri
ng, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsyn
c(((api.ProjectsListResponse response) { |
| 19966 checkProjectsListResponse(response); |
| 19967 }))); |
| 19968 }); |
| 19969 |
| 19970 }); |
| 19971 |
| 19972 |
| 19973 unittest.group("resource-RegionsResourceApi", () { |
| 19974 unittest.test("method--list", () { |
| 19975 |
| 19976 var mock = new HttpServerMock(); |
| 19977 api.RegionsResourceApi res = new api.DfareportingApi(mock).regions; |
| 19978 var arg_profileId = "foo"; |
| 19979 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19980 var path = (req.url).path; |
| 19981 var pathOffset = 0; |
| 19982 var index; |
| 19983 var subPart; |
| 19984 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19985 pathOffset += 1; |
| 19986 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19987 pathOffset += 18; |
| 19988 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19989 pathOffset += 13; |
| 19990 index = path.indexOf("/regions", pathOffset); |
| 19991 unittest.expect(index >= 0, unittest.isTrue); |
| 19992 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19993 pathOffset = index; |
| 19994 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19995 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/regions")); |
| 19996 pathOffset += 8; |
| 19997 |
| 19998 var query = (req.url).query; |
| 19999 var queryOffset = 0; |
| 20000 var queryMap = {}; |
| 20001 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20002 parseBool(n) { |
| 20003 if (n == "true") return true; |
| 20004 if (n == "false") return false; |
| 20005 if (n == null) return null; |
| 20006 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20007 } |
| 20008 if (query.length > 0) { |
| 20009 for (var part in query.split("&")) { |
| 20010 var keyvalue = part.split("="); |
| 20011 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20012 } |
| 20013 } |
| 20014 |
| 20015 |
| 20016 var h = { |
| 20017 "content-type" : "application/json; charset=utf-8", |
| 20018 }; |
| 20019 var resp = convert.JSON.encode(buildRegionsListResponse()); |
| 20020 return new async.Future.value(stringResponse(200, h, resp)); |
| 20021 }), true); |
| 20022 res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListRespons
e response) { |
| 20023 checkRegionsListResponse(response); |
| 20024 }))); |
| 20025 }); |
| 20026 |
| 20027 }); |
| 20028 |
| 20029 |
| 20030 unittest.group("resource-RemarketingListSharesResourceApi", () { |
| 20031 unittest.test("method--get", () { |
| 20032 |
| 20033 var mock = new HttpServerMock(); |
| 20034 api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).r
emarketingListShares; |
| 20035 var arg_profileId = "foo"; |
| 20036 var arg_remarketingListId = "foo"; |
| 20037 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 20038 var path = (req.url).path; |
| 20039 var pathOffset = 0; |
| 20040 var index; |
| 20041 var subPart; |
| 20042 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20043 pathOffset += 1; |
| 20044 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 20045 pathOffset += 18; |
| 20046 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 20047 pathOffset += 13; |
| 20048 index = path.indexOf("/remarketingListShares/", pathOffset); |
| 20049 unittest.expect(index >= 0, unittest.isTrue); |
| 20050 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 20051 pathOffset = index; |
| 20052 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 20053 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/remarketingListShares/")); |
| 20054 pathOffset += 23; |
| 20055 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 20056 pathOffset = path.length; |
| 20057 unittest.expect(subPart, unittest.equals("$arg_remarketingListId")); |
| 20058 |
| 20059 var query = (req.url).query; |
| 20060 var queryOffset = 0; |
| 17324 var queryMap = {}; | 20061 var queryMap = {}; |
| 17325 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20062 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17326 parseBool(n) { | 20063 parseBool(n) { |
| 17327 if (n == "true") return true; | 20064 if (n == "true") return true; |
| 17328 if (n == "false") return false; | 20065 if (n == "false") return false; |
| 17329 if (n == null) return null; | 20066 if (n == null) return null; |
| 17330 throw new core.ArgumentError("Invalid boolean: $n"); | 20067 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17331 } | 20068 } |
| 17332 if (query.length > 0) { | 20069 if (query.length > 0) { |
| 17333 for (var part in query.split("&")) { | 20070 for (var part in query.split("&")) { |
| 17334 var keyvalue = part.split("="); | 20071 var keyvalue = part.split("="); |
| 17335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20072 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17336 } | 20073 } |
| 17337 } | 20074 } |
| 17338 | 20075 |
| 17339 | 20076 |
| 17340 var h = { | 20077 var h = { |
| 17341 "content-type" : "application/json; charset=utf-8", | 20078 "content-type" : "application/json; charset=utf-8", |
| 17342 }; | 20079 }; |
| 17343 var resp = convert.JSON.encode(buildPlacement()); | 20080 var resp = convert.JSON.encode(buildRemarketingListShare()); |
| 17344 return new async.Future.value(stringResponse(200, h, resp)); | 20081 return new async.Future.value(stringResponse(200, h, resp)); |
| 17345 }), true); | 20082 }), true); |
| 17346 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement r
esponse) { | 20083 res.get(arg_profileId, arg_remarketingListId).then(unittest.expectAsync(((
api.RemarketingListShare response) { |
| 17347 checkPlacement(response); | 20084 checkRemarketingListShare(response); |
| 17348 }))); | 20085 }))); |
| 17349 }); | 20086 }); |
| 17350 | 20087 |
| 17351 unittest.test("method--insert", () { | 20088 unittest.test("method--patch", () { |
| 17352 | 20089 |
| 17353 var mock = new HttpServerMock(); | 20090 var mock = new HttpServerMock(); |
| 17354 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20091 api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).r
emarketingListShares; |
| 17355 var arg_request = buildPlacement(); | 20092 var arg_request = buildRemarketingListShare(); |
| 17356 var arg_profileId = "foo"; | 20093 var arg_profileId = "foo"; |
| 20094 var arg_remarketingListId = "foo"; |
| 17357 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20095 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17358 var obj = new api.Placement.fromJson(json); | 20096 var obj = new api.RemarketingListShare.fromJson(json); |
| 17359 checkPlacement(obj); | 20097 checkRemarketingListShare(obj); |
| 17360 | 20098 |
| 17361 var path = (req.url).path; | 20099 var path = (req.url).path; |
| 17362 var pathOffset = 0; | 20100 var pathOffset = 0; |
| 17363 var index; | 20101 var index; |
| 17364 var subPart; | 20102 var subPart; |
| 17365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20103 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17366 pathOffset += 1; | 20104 pathOffset += 1; |
| 17367 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20105 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17368 pathOffset += 18; | 20106 pathOffset += 18; |
| 17369 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20107 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17370 pathOffset += 13; | 20108 pathOffset += 13; |
| 17371 index = path.indexOf("/placements", pathOffset); | 20109 index = path.indexOf("/remarketingListShares", pathOffset); |
| 17372 unittest.expect(index >= 0, unittest.isTrue); | 20110 unittest.expect(index >= 0, unittest.isTrue); |
| 17373 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20111 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17374 pathOffset = index; | 20112 pathOffset = index; |
| 17375 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20113 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17376 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); | 20114 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/remarketingListShares")); |
| 17377 pathOffset += 11; | 20115 pathOffset += 22; |
| 17378 | 20116 |
| 17379 var query = (req.url).query; | 20117 var query = (req.url).query; |
| 17380 var queryOffset = 0; | 20118 var queryOffset = 0; |
| 17381 var queryMap = {}; | 20119 var queryMap = {}; |
| 17382 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20120 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17383 parseBool(n) { | 20121 parseBool(n) { |
| 17384 if (n == "true") return true; | 20122 if (n == "true") return true; |
| 17385 if (n == "false") return false; | 20123 if (n == "false") return false; |
| 17386 if (n == null) return null; | 20124 if (n == null) return null; |
| 17387 throw new core.ArgumentError("Invalid boolean: $n"); | 20125 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17388 } | 20126 } |
| 17389 if (query.length > 0) { | 20127 if (query.length > 0) { |
| 17390 for (var part in query.split("&")) { | 20128 for (var part in query.split("&")) { |
| 17391 var keyvalue = part.split("="); | 20129 var keyvalue = part.split("="); |
| 17392 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20130 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17393 } | 20131 } |
| 17394 } | 20132 } |
| 20133 unittest.expect(queryMap["remarketingListId"].first, unittest.equals(arg
_remarketingListId)); |
| 17395 | 20134 |
| 17396 | 20135 |
| 17397 var h = { | 20136 var h = { |
| 17398 "content-type" : "application/json; charset=utf-8", | 20137 "content-type" : "application/json; charset=utf-8", |
| 17399 }; | 20138 }; |
| 17400 var resp = convert.JSON.encode(buildPlacement()); | 20139 var resp = convert.JSON.encode(buildRemarketingListShare()); |
| 17401 return new async.Future.value(stringResponse(200, h, resp)); | 20140 return new async.Future.value(stringResponse(200, h, resp)); |
| 17402 }), true); | 20141 }), true); |
| 17403 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cement response) { | 20142 res.patch(arg_request, arg_profileId, arg_remarketingListId).then(unittest
.expectAsync(((api.RemarketingListShare response) { |
| 17404 checkPlacement(response); | 20143 checkRemarketingListShare(response); |
| 17405 }))); | 20144 }))); |
| 17406 }); | 20145 }); |
| 17407 | 20146 |
| 17408 unittest.test("method--list", () { | 20147 unittest.test("method--update", () { |
| 17409 | 20148 |
| 17410 var mock = new HttpServerMock(); | 20149 var mock = new HttpServerMock(); |
| 17411 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20150 api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).r
emarketingListShares; |
| 20151 var arg_request = buildRemarketingListShare(); |
| 17412 var arg_profileId = "foo"; | 20152 var arg_profileId = "foo"; |
| 17413 var arg_advertiserIds = buildUnnamed475(); | |
| 17414 var arg_archived = true; | |
| 17415 var arg_campaignIds = buildUnnamed476(); | |
| 17416 var arg_compatibilities = buildUnnamed477(); | |
| 17417 var arg_contentCategoryIds = buildUnnamed478(); | |
| 17418 var arg_directorySiteIds = buildUnnamed479(); | |
| 17419 var arg_groupIds = buildUnnamed480(); | |
| 17420 var arg_ids = buildUnnamed481(); | |
| 17421 var arg_maxResults = 42; | |
| 17422 var arg_pageToken = "foo"; | |
| 17423 var arg_paymentSource = "foo"; | |
| 17424 var arg_placementStrategyIds = buildUnnamed482(); | |
| 17425 var arg_pricingTypes = buildUnnamed483(); | |
| 17426 var arg_searchString = "foo"; | |
| 17427 var arg_siteIds = buildUnnamed484(); | |
| 17428 var arg_sizeIds = buildUnnamed485(); | |
| 17429 var arg_sortField = "foo"; | |
| 17430 var arg_sortOrder = "foo"; | |
| 17431 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20153 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 20154 var obj = new api.RemarketingListShare.fromJson(json); |
| 20155 checkRemarketingListShare(obj); |
| 20156 |
| 17432 var path = (req.url).path; | 20157 var path = (req.url).path; |
| 17433 var pathOffset = 0; | 20158 var pathOffset = 0; |
| 17434 var index; | 20159 var index; |
| 17435 var subPart; | 20160 var subPart; |
| 17436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20161 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17437 pathOffset += 1; | 20162 pathOffset += 1; |
| 17438 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20163 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17439 pathOffset += 18; | 20164 pathOffset += 18; |
| 17440 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20165 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17441 pathOffset += 13; | 20166 pathOffset += 13; |
| 17442 index = path.indexOf("/placements", pathOffset); | 20167 index = path.indexOf("/remarketingListShares", pathOffset); |
| 17443 unittest.expect(index >= 0, unittest.isTrue); | 20168 unittest.expect(index >= 0, unittest.isTrue); |
| 17444 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20169 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17445 pathOffset = index; | 20170 pathOffset = index; |
| 17446 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20171 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17447 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); | 20172 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/remarketingListShares")); |
| 17448 pathOffset += 11; | 20173 pathOffset += 22; |
| 17449 | 20174 |
| 17450 var query = (req.url).query; | 20175 var query = (req.url).query; |
| 17451 var queryOffset = 0; | 20176 var queryOffset = 0; |
| 17452 var queryMap = {}; | 20177 var queryMap = {}; |
| 17453 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20178 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17454 parseBool(n) { | 20179 parseBool(n) { |
| 17455 if (n == "true") return true; | 20180 if (n == "true") return true; |
| 17456 if (n == "false") return false; | 20181 if (n == "false") return false; |
| 17457 if (n == null) return null; | 20182 if (n == null) return null; |
| 17458 throw new core.ArgumentError("Invalid boolean: $n"); | 20183 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17459 } | 20184 } |
| 17460 if (query.length > 0) { | 20185 if (query.length > 0) { |
| 17461 for (var part in query.split("&")) { | 20186 for (var part in query.split("&")) { |
| 17462 var keyvalue = part.split("="); | 20187 var keyvalue = part.split("="); |
| 17463 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20188 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17464 } | 20189 } |
| 17465 } | 20190 } |
| 17466 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); | |
| 17467 unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archiv
ed")); | |
| 17468 unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds
)); | |
| 17469 unittest.expect(queryMap["compatibilities"], unittest.equals(arg_compati
bilities)); | |
| 17470 unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_cont
entCategoryIds)); | |
| 17471 unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_direct
orySiteIds)); | |
| 17472 unittest.expect(queryMap["groupIds"], unittest.equals(arg_groupIds)); | |
| 17473 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); | |
| 17474 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
| 17475 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 17476 unittest.expect(queryMap["paymentSource"].first, unittest.equals(arg_pay
mentSource)); | |
| 17477 unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_pl
acementStrategyIds)); | |
| 17478 unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTyp
es)); | |
| 17479 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); | |
| 17480 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); | |
| 17481 unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); | |
| 17482 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); | |
| 17483 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | |
| 17484 | 20191 |
| 17485 | 20192 |
| 17486 var h = { | 20193 var h = { |
| 17487 "content-type" : "application/json; charset=utf-8", | 20194 "content-type" : "application/json; charset=utf-8", |
| 17488 }; | 20195 }; |
| 17489 var resp = convert.JSON.encode(buildPlacementsListResponse()); | 20196 var resp = convert.JSON.encode(buildRemarketingListShare()); |
| 17490 return new async.Future.value(stringResponse(200, h, resp)); | 20197 return new async.Future.value(stringResponse(200, h, resp)); |
| 17491 }), true); | 20198 }), true); |
| 17492 res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_ar
chived, campaignIds: arg_campaignIds, compatibilities: arg_compatibilities, cont
entCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds,
groupIds: arg_groupIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg
_pageToken, paymentSource: arg_paymentSource, placementStrategyIds: arg_placemen
tStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, si
teIds: arg_siteIds, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: a
rg_sortOrder).then(unittest.expectAsync(((api.PlacementsListResponse response) { | 20199 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rem
arketingListShare response) { |
| 17493 checkPlacementsListResponse(response); | 20200 checkRemarketingListShare(response); |
| 17494 }))); | 20201 }))); |
| 17495 }); | 20202 }); |
| 17496 | 20203 |
| 17497 unittest.test("method--patch", () { | 20204 }); |
| 20205 |
| 20206 |
| 20207 unittest.group("resource-RemarketingListsResourceApi", () { |
| 20208 unittest.test("method--get", () { |
| 17498 | 20209 |
| 17499 var mock = new HttpServerMock(); | 20210 var mock = new HttpServerMock(); |
| 17500 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20211 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
| 17501 var arg_request = buildPlacement(); | |
| 17502 var arg_profileId = "foo"; | 20212 var arg_profileId = "foo"; |
| 17503 var arg_id = "foo"; | 20213 var arg_id = "foo"; |
| 17504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20214 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17505 var obj = new api.Placement.fromJson(json); | |
| 17506 checkPlacement(obj); | |
| 17507 | |
| 17508 var path = (req.url).path; | 20215 var path = (req.url).path; |
| 17509 var pathOffset = 0; | 20216 var pathOffset = 0; |
| 17510 var index; | 20217 var index; |
| 17511 var subPart; | 20218 var subPart; |
| 17512 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20219 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17513 pathOffset += 1; | 20220 pathOffset += 1; |
| 17514 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20221 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17515 pathOffset += 18; | 20222 pathOffset += 18; |
| 17516 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20223 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17517 pathOffset += 13; | 20224 pathOffset += 13; |
| 17518 index = path.indexOf("/placements", pathOffset); | 20225 index = path.indexOf("/remarketingLists/", pathOffset); |
| 17519 unittest.expect(index >= 0, unittest.isTrue); | 20226 unittest.expect(index >= 0, unittest.isTrue); |
| 17520 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20227 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17521 pathOffset = index; | 20228 pathOffset = index; |
| 17522 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20229 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17523 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); | 20230 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/remarketingLists/")); |
| 17524 pathOffset += 11; | 20231 pathOffset += 18; |
| 20232 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 20233 pathOffset = path.length; |
| 20234 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 17525 | 20235 |
| 17526 var query = (req.url).query; | 20236 var query = (req.url).query; |
| 17527 var queryOffset = 0; | 20237 var queryOffset = 0; |
| 17528 var queryMap = {}; | 20238 var queryMap = {}; |
| 17529 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20239 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17530 parseBool(n) { | 20240 parseBool(n) { |
| 17531 if (n == "true") return true; | 20241 if (n == "true") return true; |
| 17532 if (n == "false") return false; | 20242 if (n == "false") return false; |
| 17533 if (n == null) return null; | 20243 if (n == null) return null; |
| 17534 throw new core.ArgumentError("Invalid boolean: $n"); | 20244 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17535 } | 20245 } |
| 17536 if (query.length > 0) { | 20246 if (query.length > 0) { |
| 17537 for (var part in query.split("&")) { | 20247 for (var part in query.split("&")) { |
| 17538 var keyvalue = part.split("="); | 20248 var keyvalue = part.split("="); |
| 17539 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20249 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17540 } | 20250 } |
| 17541 } | 20251 } |
| 17542 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | |
| 17543 | 20252 |
| 17544 | 20253 |
| 17545 var h = { | 20254 var h = { |
| 17546 "content-type" : "application/json; charset=utf-8", | 20255 "content-type" : "application/json; charset=utf-8", |
| 17547 }; | 20256 }; |
| 17548 var resp = convert.JSON.encode(buildPlacement()); | 20257 var resp = convert.JSON.encode(buildRemarketingList()); |
| 17549 return new async.Future.value(stringResponse(200, h, resp)); | 20258 return new async.Future.value(stringResponse(200, h, resp)); |
| 17550 }), true); | 20259 }), true); |
| 17551 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.Placement response) { | 20260 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Remarketing
List response) { |
| 17552 checkPlacement(response); | 20261 checkRemarketingList(response); |
| 17553 }))); | 20262 }))); |
| 17554 }); | 20263 }); |
| 17555 | 20264 |
| 17556 unittest.test("method--update", () { | 20265 unittest.test("method--insert", () { |
| 17557 | 20266 |
| 17558 var mock = new HttpServerMock(); | 20267 var mock = new HttpServerMock(); |
| 17559 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20268 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
| 17560 var arg_request = buildPlacement(); | 20269 var arg_request = buildRemarketingList(); |
| 17561 var arg_profileId = "foo"; | 20270 var arg_profileId = "foo"; |
| 17562 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20271 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17563 var obj = new api.Placement.fromJson(json); | 20272 var obj = new api.RemarketingList.fromJson(json); |
| 17564 checkPlacement(obj); | 20273 checkRemarketingList(obj); |
| 17565 | 20274 |
| 17566 var path = (req.url).path; | 20275 var path = (req.url).path; |
| 17567 var pathOffset = 0; | 20276 var pathOffset = 0; |
| 17568 var index; | 20277 var index; |
| 17569 var subPart; | 20278 var subPart; |
| 17570 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17571 pathOffset += 1; | 20280 pathOffset += 1; |
| 17572 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20281 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17573 pathOffset += 18; | 20282 pathOffset += 18; |
| 17574 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20283 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17575 pathOffset += 13; | 20284 pathOffset += 13; |
| 17576 index = path.indexOf("/placements", pathOffset); | 20285 index = path.indexOf("/remarketingLists", pathOffset); |
| 17577 unittest.expect(index >= 0, unittest.isTrue); | 20286 unittest.expect(index >= 0, unittest.isTrue); |
| 17578 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20287 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17579 pathOffset = index; | 20288 pathOffset = index; |
| 17580 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20289 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17581 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); | 20290 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/remarketingLists")); |
| 17582 pathOffset += 11; | 20291 pathOffset += 17; |
| 17583 | 20292 |
| 17584 var query = (req.url).query; | 20293 var query = (req.url).query; |
| 17585 var queryOffset = 0; | 20294 var queryOffset = 0; |
| 17586 var queryMap = {}; | 20295 var queryMap = {}; |
| 17587 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20296 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17588 parseBool(n) { | 20297 parseBool(n) { |
| 17589 if (n == "true") return true; | 20298 if (n == "true") return true; |
| 17590 if (n == "false") return false; | 20299 if (n == "false") return false; |
| 17591 if (n == null) return null; | 20300 if (n == null) return null; |
| 17592 throw new core.ArgumentError("Invalid boolean: $n"); | 20301 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17593 } | 20302 } |
| 17594 if (query.length > 0) { | 20303 if (query.length > 0) { |
| 17595 for (var part in query.split("&")) { | 20304 for (var part in query.split("&")) { |
| 17596 var keyvalue = part.split("="); | 20305 var keyvalue = part.split("="); |
| 17597 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20306 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17598 } | 20307 } |
| 17599 } | 20308 } |
| 17600 | 20309 |
| 17601 | 20310 |
| 17602 var h = { | 20311 var h = { |
| 17603 "content-type" : "application/json; charset=utf-8", | 20312 "content-type" : "application/json; charset=utf-8", |
| 17604 }; | 20313 }; |
| 17605 var resp = convert.JSON.encode(buildPlacement()); | 20314 var resp = convert.JSON.encode(buildRemarketingList()); |
| 17606 return new async.Future.value(stringResponse(200, h, resp)); | 20315 return new async.Future.value(stringResponse(200, h, resp)); |
| 17607 }), true); | 20316 }), true); |
| 17608 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cement response) { | 20317 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rem
arketingList response) { |
| 17609 checkPlacement(response); | 20318 checkRemarketingList(response); |
| 17610 }))); | 20319 }))); |
| 17611 }); | 20320 }); |
| 17612 | 20321 |
| 17613 }); | |
| 17614 | |
| 17615 | |
| 17616 unittest.group("resource-PlatformTypesResourceApi", () { | |
| 17617 unittest.test("method--list", () { | 20322 unittest.test("method--list", () { |
| 17618 | 20323 |
| 17619 var mock = new HttpServerMock(); | 20324 var mock = new HttpServerMock(); |
| 17620 api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformT
ypes; | 20325 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
| 17621 var arg_profileId = "foo"; | 20326 var arg_profileId = "foo"; |
| 20327 var arg_advertiserId = "foo"; |
| 20328 var arg_active = true; |
| 20329 var arg_floodlightActivityId = "foo"; |
| 20330 var arg_maxResults = 42; |
| 20331 var arg_name = "foo"; |
| 20332 var arg_pageToken = "foo"; |
| 20333 var arg_sortField = "foo"; |
| 20334 var arg_sortOrder = "foo"; |
| 17622 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17623 var path = (req.url).path; | 20336 var path = (req.url).path; |
| 17624 var pathOffset = 0; | 20337 var pathOffset = 0; |
| 17625 var index; | 20338 var index; |
| 17626 var subPart; | 20339 var subPart; |
| 17627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20340 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17628 pathOffset += 1; | 20341 pathOffset += 1; |
| 17629 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20342 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17630 pathOffset += 18; | 20343 pathOffset += 18; |
| 17631 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20344 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17632 pathOffset += 13; | 20345 pathOffset += 13; |
| 17633 index = path.indexOf("/platformTypes", pathOffset); | 20346 index = path.indexOf("/remarketingLists", pathOffset); |
| 17634 unittest.expect(index >= 0, unittest.isTrue); | 20347 unittest.expect(index >= 0, unittest.isTrue); |
| 17635 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20348 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17636 pathOffset = index; | 20349 pathOffset = index; |
| 17637 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20350 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17638 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/platformTypes")); | 20351 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/remarketingLists")); |
| 17639 pathOffset += 14; | 20352 pathOffset += 17; |
| 17640 | 20353 |
| 17641 var query = (req.url).query; | 20354 var query = (req.url).query; |
| 17642 var queryOffset = 0; | 20355 var queryOffset = 0; |
| 17643 var queryMap = {}; | 20356 var queryMap = {}; |
| 17644 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20357 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17645 parseBool(n) { | 20358 parseBool(n) { |
| 17646 if (n == "true") return true; | 20359 if (n == "true") return true; |
| 17647 if (n == "false") return false; | 20360 if (n == "false") return false; |
| 17648 if (n == null) return null; | 20361 if (n == null) return null; |
| 17649 throw new core.ArgumentError("Invalid boolean: $n"); | 20362 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17650 } | 20363 } |
| 17651 if (query.length > 0) { | 20364 if (query.length > 0) { |
| 17652 for (var part in query.split("&")) { | 20365 for (var part in query.split("&")) { |
| 17653 var keyvalue = part.split("="); | 20366 var keyvalue = part.split("="); |
| 17654 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20367 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17655 } | 20368 } |
| 17656 } | 20369 } |
| 20370 unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_adve
rtiserId)); |
| 20371 unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")
); |
| 20372 unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals(
arg_floodlightActivityId)); |
| 20373 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 20374 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
| 20375 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 20376 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 20377 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 17657 | 20378 |
| 17658 | 20379 |
| 17659 var h = { | 20380 var h = { |
| 17660 "content-type" : "application/json; charset=utf-8", | 20381 "content-type" : "application/json; charset=utf-8", |
| 17661 }; | 20382 }; |
| 17662 var resp = convert.JSON.encode(buildPlatformTypesListResponse()); | 20383 var resp = convert.JSON.encode(buildRemarketingListsListResponse()); |
| 17663 return new async.Future.value(stringResponse(200, h, resp)); | 20384 return new async.Future.value(stringResponse(200, h, resp)); |
| 17664 }), true); | 20385 }), true); |
| 17665 res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListR
esponse response) { | 20386 res.list(arg_profileId, arg_advertiserId, active: arg_active, floodlightAc
tivityId: arg_floodlightActivityId, maxResults: arg_maxResults, name: arg_name,
pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).th
en(unittest.expectAsync(((api.RemarketingListsListResponse response) { |
| 17666 checkPlatformTypesListResponse(response); | 20387 checkRemarketingListsListResponse(response); |
| 17667 }))); | 20388 }))); |
| 17668 }); | 20389 }); |
| 17669 | 20390 |
| 17670 }); | 20391 unittest.test("method--patch", () { |
| 17671 | |
| 17672 | |
| 17673 unittest.group("resource-PostalCodesResourceApi", () { | |
| 17674 unittest.test("method--list", () { | |
| 17675 | 20392 |
| 17676 var mock = new HttpServerMock(); | 20393 var mock = new HttpServerMock(); |
| 17677 api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes
; | 20394 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
| 20395 var arg_request = buildRemarketingList(); |
| 17678 var arg_profileId = "foo"; | 20396 var arg_profileId = "foo"; |
| 20397 var arg_id = "foo"; |
| 17679 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 20399 var obj = new api.RemarketingList.fromJson(json); |
| 20400 checkRemarketingList(obj); |
| 20401 |
| 17680 var path = (req.url).path; | 20402 var path = (req.url).path; |
| 17681 var pathOffset = 0; | 20403 var pathOffset = 0; |
| 17682 var index; | 20404 var index; |
| 17683 var subPart; | 20405 var subPart; |
| 17684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17685 pathOffset += 1; | 20407 pathOffset += 1; |
| 17686 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20408 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17687 pathOffset += 18; | 20409 pathOffset += 18; |
| 17688 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20410 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17689 pathOffset += 13; | 20411 pathOffset += 13; |
| 17690 index = path.indexOf("/postalCodes", pathOffset); | 20412 index = path.indexOf("/remarketingLists", pathOffset); |
| 17691 unittest.expect(index >= 0, unittest.isTrue); | 20413 unittest.expect(index >= 0, unittest.isTrue); |
| 17692 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20414 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17693 pathOffset = index; | 20415 pathOffset = index; |
| 17694 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20416 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17695 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/postalCodes")); | 20417 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/remarketingLists")); |
| 17696 pathOffset += 12; | 20418 pathOffset += 17; |
| 17697 | 20419 |
| 17698 var query = (req.url).query; | 20420 var query = (req.url).query; |
| 17699 var queryOffset = 0; | 20421 var queryOffset = 0; |
| 17700 var queryMap = {}; | 20422 var queryMap = {}; |
| 17701 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20423 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17702 parseBool(n) { | 20424 parseBool(n) { |
| 17703 if (n == "true") return true; | 20425 if (n == "true") return true; |
| 17704 if (n == "false") return false; | 20426 if (n == "false") return false; |
| 17705 if (n == null) return null; | 20427 if (n == null) return null; |
| 17706 throw new core.ArgumentError("Invalid boolean: $n"); | 20428 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17707 } | 20429 } |
| 17708 if (query.length > 0) { | 20430 if (query.length > 0) { |
| 17709 for (var part in query.split("&")) { | 20431 for (var part in query.split("&")) { |
| 17710 var keyvalue = part.split("="); | 20432 var keyvalue = part.split("="); |
| 17711 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20433 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17712 } | 20434 } |
| 17713 } | 20435 } |
| 20436 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
| 17714 | 20437 |
| 17715 | 20438 |
| 17716 var h = { | 20439 var h = { |
| 17717 "content-type" : "application/json; charset=utf-8", | 20440 "content-type" : "application/json; charset=utf-8", |
| 17718 }; | 20441 }; |
| 17719 var resp = convert.JSON.encode(buildPostalCodesListResponse()); | 20442 var resp = convert.JSON.encode(buildRemarketingList()); |
| 17720 return new async.Future.value(stringResponse(200, h, resp)); | 20443 return new async.Future.value(stringResponse(200, h, resp)); |
| 17721 }), true); | 20444 }), true); |
| 17722 res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListRes
ponse response) { | 20445 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.RemarketingList response) { |
| 17723 checkPostalCodesListResponse(response); | 20446 checkRemarketingList(response); |
| 17724 }))); | 20447 }))); |
| 17725 }); | 20448 }); |
| 17726 | 20449 |
| 17727 }); | 20450 unittest.test("method--update", () { |
| 17728 | |
| 17729 | |
| 17730 unittest.group("resource-RegionsResourceApi", () { | |
| 17731 unittest.test("method--list", () { | |
| 17732 | 20451 |
| 17733 var mock = new HttpServerMock(); | 20452 var mock = new HttpServerMock(); |
| 17734 api.RegionsResourceApi res = new api.DfareportingApi(mock).regions; | 20453 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
| 20454 var arg_request = buildRemarketingList(); |
| 17735 var arg_profileId = "foo"; | 20455 var arg_profileId = "foo"; |
| 17736 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20456 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 20457 var obj = new api.RemarketingList.fromJson(json); |
| 20458 checkRemarketingList(obj); |
| 20459 |
| 17737 var path = (req.url).path; | 20460 var path = (req.url).path; |
| 17738 var pathOffset = 0; | 20461 var pathOffset = 0; |
| 17739 var index; | 20462 var index; |
| 17740 var subPart; | 20463 var subPart; |
| 17741 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20464 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17742 pathOffset += 1; | 20465 pathOffset += 1; |
| 17743 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20466 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17744 pathOffset += 18; | 20467 pathOffset += 18; |
| 17745 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20468 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17746 pathOffset += 13; | 20469 pathOffset += 13; |
| 17747 index = path.indexOf("/regions", pathOffset); | 20470 index = path.indexOf("/remarketingLists", pathOffset); |
| 17748 unittest.expect(index >= 0, unittest.isTrue); | 20471 unittest.expect(index >= 0, unittest.isTrue); |
| 17749 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20472 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17750 pathOffset = index; | 20473 pathOffset = index; |
| 17751 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20474 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17752 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/regions")); | 20475 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/remarketingLists")); |
| 17753 pathOffset += 8; | 20476 pathOffset += 17; |
| 17754 | 20477 |
| 17755 var query = (req.url).query; | 20478 var query = (req.url).query; |
| 17756 var queryOffset = 0; | 20479 var queryOffset = 0; |
| 17757 var queryMap = {}; | 20480 var queryMap = {}; |
| 17758 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20481 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17759 parseBool(n) { | 20482 parseBool(n) { |
| 17760 if (n == "true") return true; | 20483 if (n == "true") return true; |
| 17761 if (n == "false") return false; | 20484 if (n == "false") return false; |
| 17762 if (n == null) return null; | 20485 if (n == null) return null; |
| 17763 throw new core.ArgumentError("Invalid boolean: $n"); | 20486 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17764 } | 20487 } |
| 17765 if (query.length > 0) { | 20488 if (query.length > 0) { |
| 17766 for (var part in query.split("&")) { | 20489 for (var part in query.split("&")) { |
| 17767 var keyvalue = part.split("="); | 20490 var keyvalue = part.split("="); |
| 17768 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20491 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17769 } | 20492 } |
| 17770 } | 20493 } |
| 17771 | 20494 |
| 17772 | 20495 |
| 17773 var h = { | 20496 var h = { |
| 17774 "content-type" : "application/json; charset=utf-8", | 20497 "content-type" : "application/json; charset=utf-8", |
| 17775 }; | 20498 }; |
| 17776 var resp = convert.JSON.encode(buildRegionsListResponse()); | 20499 var resp = convert.JSON.encode(buildRemarketingList()); |
| 17777 return new async.Future.value(stringResponse(200, h, resp)); | 20500 return new async.Future.value(stringResponse(200, h, resp)); |
| 17778 }), true); | 20501 }), true); |
| 17779 res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListRespons
e response) { | 20502 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rem
arketingList response) { |
| 17780 checkRegionsListResponse(response); | 20503 checkRemarketingList(response); |
| 17781 }))); | 20504 }))); |
| 17782 }); | 20505 }); |
| 17783 | 20506 |
| 17784 }); | 20507 }); |
| 17785 | 20508 |
| 17786 | 20509 |
| 17787 unittest.group("resource-ReportsResourceApi", () { | 20510 unittest.group("resource-ReportsResourceApi", () { |
| 17788 unittest.test("method--delete", () { | 20511 unittest.test("method--delete", () { |
| 17789 | 20512 |
| 17790 var mock = new HttpServerMock(); | 20513 var mock = new HttpServerMock(); |
| 17791 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 20514 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 17792 var arg_profileId = "foo"; | 20515 var arg_profileId = "foo"; |
| 17793 var arg_reportId = "foo"; | 20516 var arg_reportId = "foo"; |
| 17794 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20517 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17795 var path = (req.url).path; | 20518 var path = (req.url).path; |
| 17796 var pathOffset = 0; | 20519 var pathOffset = 0; |
| 17797 var index; | 20520 var index; |
| 17798 var subPart; | 20521 var subPart; |
| 17799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20522 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17800 pathOffset += 1; | 20523 pathOffset += 1; |
| 17801 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20524 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17802 pathOffset += 18; | 20525 pathOffset += 18; |
| 17803 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20526 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17804 pathOffset += 13; | 20527 pathOffset += 13; |
| 17805 index = path.indexOf("/reports/", pathOffset); | 20528 index = path.indexOf("/reports/", pathOffset); |
| 17806 unittest.expect(index >= 0, unittest.isTrue); | 20529 unittest.expect(index >= 0, unittest.isTrue); |
| 17807 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20530 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17808 pathOffset = index; | 20531 pathOffset = index; |
| 17809 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20532 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17810 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20533 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
| 17811 pathOffset += 9; | 20534 pathOffset += 9; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17846 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 20569 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
| 17847 var arg_profileId = "foo"; | 20570 var arg_profileId = "foo"; |
| 17848 var arg_reportId = "foo"; | 20571 var arg_reportId = "foo"; |
| 17849 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20572 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17850 var path = (req.url).path; | 20573 var path = (req.url).path; |
| 17851 var pathOffset = 0; | 20574 var pathOffset = 0; |
| 17852 var index; | 20575 var index; |
| 17853 var subPart; | 20576 var subPart; |
| 17854 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20577 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17855 pathOffset += 1; | 20578 pathOffset += 1; |
| 17856 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20579 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17857 pathOffset += 18; | 20580 pathOffset += 18; |
| 17858 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20581 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17859 pathOffset += 13; | 20582 pathOffset += 13; |
| 17860 index = path.indexOf("/reports/", pathOffset); | 20583 index = path.indexOf("/reports/", pathOffset); |
| 17861 unittest.expect(index >= 0, unittest.isTrue); | 20584 unittest.expect(index >= 0, unittest.isTrue); |
| 17862 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20585 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17863 pathOffset = index; | 20586 pathOffset = index; |
| 17864 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20587 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17865 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20588 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
| 17866 pathOffset += 9; | 20589 pathOffset += 9; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17906 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20629 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17907 var obj = new api.Report.fromJson(json); | 20630 var obj = new api.Report.fromJson(json); |
| 17908 checkReport(obj); | 20631 checkReport(obj); |
| 17909 | 20632 |
| 17910 var path = (req.url).path; | 20633 var path = (req.url).path; |
| 17911 var pathOffset = 0; | 20634 var pathOffset = 0; |
| 17912 var index; | 20635 var index; |
| 17913 var subPart; | 20636 var subPart; |
| 17914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20637 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17915 pathOffset += 1; | 20638 pathOffset += 1; |
| 17916 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20639 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17917 pathOffset += 18; | 20640 pathOffset += 18; |
| 17918 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20641 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17919 pathOffset += 13; | 20642 pathOffset += 13; |
| 17920 index = path.indexOf("/reports", pathOffset); | 20643 index = path.indexOf("/reports", pathOffset); |
| 17921 unittest.expect(index >= 0, unittest.isTrue); | 20644 unittest.expect(index >= 0, unittest.isTrue); |
| 17922 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20645 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17923 pathOffset = index; | 20646 pathOffset = index; |
| 17924 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20647 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17925 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); | 20648 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); |
| 17926 pathOffset += 8; | 20649 pathOffset += 8; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17964 var arg_scope = "foo"; | 20687 var arg_scope = "foo"; |
| 17965 var arg_sortField = "foo"; | 20688 var arg_sortField = "foo"; |
| 17966 var arg_sortOrder = "foo"; | 20689 var arg_sortOrder = "foo"; |
| 17967 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20690 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17968 var path = (req.url).path; | 20691 var path = (req.url).path; |
| 17969 var pathOffset = 0; | 20692 var pathOffset = 0; |
| 17970 var index; | 20693 var index; |
| 17971 var subPart; | 20694 var subPart; |
| 17972 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20695 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17973 pathOffset += 1; | 20696 pathOffset += 1; |
| 17974 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20697 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 17975 pathOffset += 18; | 20698 pathOffset += 18; |
| 17976 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20699 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17977 pathOffset += 13; | 20700 pathOffset += 13; |
| 17978 index = path.indexOf("/reports", pathOffset); | 20701 index = path.indexOf("/reports", pathOffset); |
| 17979 unittest.expect(index >= 0, unittest.isTrue); | 20702 unittest.expect(index >= 0, unittest.isTrue); |
| 17980 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20703 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17981 pathOffset = index; | 20704 pathOffset = index; |
| 17982 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20705 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17983 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); | 20706 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); |
| 17984 pathOffset += 8; | 20707 pathOffset += 8; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18027 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20750 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18028 var obj = new api.Report.fromJson(json); | 20751 var obj = new api.Report.fromJson(json); |
| 18029 checkReport(obj); | 20752 checkReport(obj); |
| 18030 | 20753 |
| 18031 var path = (req.url).path; | 20754 var path = (req.url).path; |
| 18032 var pathOffset = 0; | 20755 var pathOffset = 0; |
| 18033 var index; | 20756 var index; |
| 18034 var subPart; | 20757 var subPart; |
| 18035 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18036 pathOffset += 1; | 20759 pathOffset += 1; |
| 18037 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20760 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18038 pathOffset += 18; | 20761 pathOffset += 18; |
| 18039 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20762 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18040 pathOffset += 13; | 20763 pathOffset += 13; |
| 18041 index = path.indexOf("/reports/", pathOffset); | 20764 index = path.indexOf("/reports/", pathOffset); |
| 18042 unittest.expect(index >= 0, unittest.isTrue); | 20765 unittest.expect(index >= 0, unittest.isTrue); |
| 18043 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20766 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18044 pathOffset = index; | 20767 pathOffset = index; |
| 18045 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20768 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18046 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20769 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
| 18047 pathOffset += 9; | 20770 pathOffset += 9; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18085 var arg_profileId = "foo"; | 20808 var arg_profileId = "foo"; |
| 18086 var arg_reportId = "foo"; | 20809 var arg_reportId = "foo"; |
| 18087 var arg_synchronous = true; | 20810 var arg_synchronous = true; |
| 18088 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20811 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18089 var path = (req.url).path; | 20812 var path = (req.url).path; |
| 18090 var pathOffset = 0; | 20813 var pathOffset = 0; |
| 18091 var index; | 20814 var index; |
| 18092 var subPart; | 20815 var subPart; |
| 18093 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20816 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18094 pathOffset += 1; | 20817 pathOffset += 1; |
| 18095 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20818 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18096 pathOffset += 18; | 20819 pathOffset += 18; |
| 18097 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20820 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18098 pathOffset += 13; | 20821 pathOffset += 13; |
| 18099 index = path.indexOf("/reports/", pathOffset); | 20822 index = path.indexOf("/reports/", pathOffset); |
| 18100 unittest.expect(index >= 0, unittest.isTrue); | 20823 unittest.expect(index >= 0, unittest.isTrue); |
| 18101 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20824 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18102 pathOffset = index; | 20825 pathOffset = index; |
| 18103 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20826 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18104 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20827 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
| 18105 pathOffset += 9; | 20828 pathOffset += 9; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20874 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18152 var obj = new api.Report.fromJson(json); | 20875 var obj = new api.Report.fromJson(json); |
| 18153 checkReport(obj); | 20876 checkReport(obj); |
| 18154 | 20877 |
| 18155 var path = (req.url).path; | 20878 var path = (req.url).path; |
| 18156 var pathOffset = 0; | 20879 var pathOffset = 0; |
| 18157 var index; | 20880 var index; |
| 18158 var subPart; | 20881 var subPart; |
| 18159 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20882 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18160 pathOffset += 1; | 20883 pathOffset += 1; |
| 18161 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20884 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18162 pathOffset += 18; | 20885 pathOffset += 18; |
| 18163 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20886 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18164 pathOffset += 13; | 20887 pathOffset += 13; |
| 18165 index = path.indexOf("/reports/", pathOffset); | 20888 index = path.indexOf("/reports/", pathOffset); |
| 18166 unittest.expect(index >= 0, unittest.isTrue); | 20889 unittest.expect(index >= 0, unittest.isTrue); |
| 18167 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20890 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18168 pathOffset = index; | 20891 pathOffset = index; |
| 18169 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20892 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18170 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20893 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
| 18171 pathOffset += 9; | 20894 pathOffset += 9; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18215 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20938 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18216 var obj = new api.Report.fromJson(json); | 20939 var obj = new api.Report.fromJson(json); |
| 18217 checkReport(obj); | 20940 checkReport(obj); |
| 18218 | 20941 |
| 18219 var path = (req.url).path; | 20942 var path = (req.url).path; |
| 18220 var pathOffset = 0; | 20943 var pathOffset = 0; |
| 18221 var index; | 20944 var index; |
| 18222 var subPart; | 20945 var subPart; |
| 18223 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20946 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18224 pathOffset += 1; | 20947 pathOffset += 1; |
| 18225 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20948 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18226 pathOffset += 18; | 20949 pathOffset += 18; |
| 18227 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20950 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18228 pathOffset += 13; | 20951 pathOffset += 13; |
| 18229 index = path.indexOf("/reports/compatiblefields/query", pathOffset); | 20952 index = path.indexOf("/reports/compatiblefields/query", pathOffset); |
| 18230 unittest.expect(index >= 0, unittest.isTrue); | 20953 unittest.expect(index >= 0, unittest.isTrue); |
| 18231 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20954 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18232 pathOffset = index; | 20955 pathOffset = index; |
| 18233 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20956 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18234 unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.eq
uals("/reports/compatiblefields/query")); | 20957 unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.eq
uals("/reports/compatiblefields/query")); |
| 18235 pathOffset += 31; | 20958 pathOffset += 31; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18276 var arg_profileId = "foo"; | 20999 var arg_profileId = "foo"; |
| 18277 var arg_reportId = "foo"; | 21000 var arg_reportId = "foo"; |
| 18278 var arg_fileId = "foo"; | 21001 var arg_fileId = "foo"; |
| 18279 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21002 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18280 var path = (req.url).path; | 21003 var path = (req.url).path; |
| 18281 var pathOffset = 0; | 21004 var pathOffset = 0; |
| 18282 var index; | 21005 var index; |
| 18283 var subPart; | 21006 var subPart; |
| 18284 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21007 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18285 pathOffset += 1; | 21008 pathOffset += 1; |
| 18286 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21009 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18287 pathOffset += 18; | 21010 pathOffset += 18; |
| 18288 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21011 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18289 pathOffset += 13; | 21012 pathOffset += 13; |
| 18290 index = path.indexOf("/reports/", pathOffset); | 21013 index = path.indexOf("/reports/", pathOffset); |
| 18291 unittest.expect(index >= 0, unittest.isTrue); | 21014 unittest.expect(index >= 0, unittest.isTrue); |
| 18292 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21015 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18293 pathOffset = index; | 21016 pathOffset = index; |
| 18294 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21017 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18295 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 21018 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
| 18296 pathOffset += 9; | 21019 pathOffset += 9; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18344 var arg_pageToken = "foo"; | 21067 var arg_pageToken = "foo"; |
| 18345 var arg_sortField = "foo"; | 21068 var arg_sortField = "foo"; |
| 18346 var arg_sortOrder = "foo"; | 21069 var arg_sortOrder = "foo"; |
| 18347 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21070 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18348 var path = (req.url).path; | 21071 var path = (req.url).path; |
| 18349 var pathOffset = 0; | 21072 var pathOffset = 0; |
| 18350 var index; | 21073 var index; |
| 18351 var subPart; | 21074 var subPart; |
| 18352 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21075 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18353 pathOffset += 1; | 21076 pathOffset += 1; |
| 18354 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21077 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18355 pathOffset += 18; | 21078 pathOffset += 18; |
| 18356 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21079 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18357 pathOffset += 13; | 21080 pathOffset += 13; |
| 18358 index = path.indexOf("/reports/", pathOffset); | 21081 index = path.indexOf("/reports/", pathOffset); |
| 18359 unittest.expect(index >= 0, unittest.isTrue); | 21082 unittest.expect(index >= 0, unittest.isTrue); |
| 18360 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21083 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18361 pathOffset = index; | 21084 pathOffset = index; |
| 18362 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21085 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18363 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 21086 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
| 18364 pathOffset += 9; | 21087 pathOffset += 9; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18413 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; | 21136 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; |
| 18414 var arg_profileId = "foo"; | 21137 var arg_profileId = "foo"; |
| 18415 var arg_id = "foo"; | 21138 var arg_id = "foo"; |
| 18416 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21139 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18417 var path = (req.url).path; | 21140 var path = (req.url).path; |
| 18418 var pathOffset = 0; | 21141 var pathOffset = 0; |
| 18419 var index; | 21142 var index; |
| 18420 var subPart; | 21143 var subPart; |
| 18421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18422 pathOffset += 1; | 21145 pathOffset += 1; |
| 18423 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21146 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18424 pathOffset += 18; | 21147 pathOffset += 18; |
| 18425 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21148 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18426 pathOffset += 13; | 21149 pathOffset += 13; |
| 18427 index = path.indexOf("/sites/", pathOffset); | 21150 index = path.indexOf("/sites/", pathOffset); |
| 18428 unittest.expect(index >= 0, unittest.isTrue); | 21151 unittest.expect(index >= 0, unittest.isTrue); |
| 18429 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21152 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18430 pathOffset = index; | 21153 pathOffset = index; |
| 18431 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21154 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18432 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/sites/")); | 21155 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/sites/")); |
| 18433 pathOffset += 7; | 21156 pathOffset += 7; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18473 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21196 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18474 var obj = new api.Site.fromJson(json); | 21197 var obj = new api.Site.fromJson(json); |
| 18475 checkSite(obj); | 21198 checkSite(obj); |
| 18476 | 21199 |
| 18477 var path = (req.url).path; | 21200 var path = (req.url).path; |
| 18478 var pathOffset = 0; | 21201 var pathOffset = 0; |
| 18479 var index; | 21202 var index; |
| 18480 var subPart; | 21203 var subPart; |
| 18481 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21204 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18482 pathOffset += 1; | 21205 pathOffset += 1; |
| 18483 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21206 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18484 pathOffset += 18; | 21207 pathOffset += 18; |
| 18485 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21208 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18486 pathOffset += 13; | 21209 pathOffset += 13; |
| 18487 index = path.indexOf("/sites", pathOffset); | 21210 index = path.indexOf("/sites", pathOffset); |
| 18488 unittest.expect(index >= 0, unittest.isTrue); | 21211 unittest.expect(index >= 0, unittest.isTrue); |
| 18489 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21212 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18490 pathOffset = index; | 21213 pathOffset = index; |
| 18491 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21214 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18492 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); | 21215 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); |
| 18493 pathOffset += 6; | 21216 pathOffset += 6; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 18524 unittest.test("method--list", () { | 21247 unittest.test("method--list", () { |
| 18525 | 21248 |
| 18526 var mock = new HttpServerMock(); | 21249 var mock = new HttpServerMock(); |
| 18527 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; | 21250 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; |
| 18528 var arg_profileId = "foo"; | 21251 var arg_profileId = "foo"; |
| 18529 var arg_acceptsInStreamVideoPlacements = true; | 21252 var arg_acceptsInStreamVideoPlacements = true; |
| 18530 var arg_acceptsInterstitialPlacements = true; | 21253 var arg_acceptsInterstitialPlacements = true; |
| 18531 var arg_acceptsPublisherPaidPlacements = true; | 21254 var arg_acceptsPublisherPaidPlacements = true; |
| 18532 var arg_adWordsSite = true; | 21255 var arg_adWordsSite = true; |
| 18533 var arg_approved = true; | 21256 var arg_approved = true; |
| 18534 var arg_campaignIds = buildUnnamed486(); | 21257 var arg_campaignIds = buildUnnamed1559(); |
| 18535 var arg_directorySiteIds = buildUnnamed487(); | 21258 var arg_directorySiteIds = buildUnnamed1560(); |
| 18536 var arg_ids = buildUnnamed488(); | 21259 var arg_ids = buildUnnamed1561(); |
| 18537 var arg_maxResults = 42; | 21260 var arg_maxResults = 42; |
| 18538 var arg_pageToken = "foo"; | 21261 var arg_pageToken = "foo"; |
| 18539 var arg_searchString = "foo"; | 21262 var arg_searchString = "foo"; |
| 18540 var arg_sortField = "foo"; | 21263 var arg_sortField = "foo"; |
| 18541 var arg_sortOrder = "foo"; | 21264 var arg_sortOrder = "foo"; |
| 18542 var arg_subaccountId = "foo"; | 21265 var arg_subaccountId = "foo"; |
| 18543 var arg_unmappedSite = true; | 21266 var arg_unmappedSite = true; |
| 18544 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21267 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18545 var path = (req.url).path; | 21268 var path = (req.url).path; |
| 18546 var pathOffset = 0; | 21269 var pathOffset = 0; |
| 18547 var index; | 21270 var index; |
| 18548 var subPart; | 21271 var subPart; |
| 18549 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21272 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18550 pathOffset += 1; | 21273 pathOffset += 1; |
| 18551 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21274 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18552 pathOffset += 18; | 21275 pathOffset += 18; |
| 18553 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21276 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18554 pathOffset += 13; | 21277 pathOffset += 13; |
| 18555 index = path.indexOf("/sites", pathOffset); | 21278 index = path.indexOf("/sites", pathOffset); |
| 18556 unittest.expect(index >= 0, unittest.isTrue); | 21279 unittest.expect(index >= 0, unittest.isTrue); |
| 18557 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21280 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18558 pathOffset = index; | 21281 pathOffset = index; |
| 18559 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21282 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18560 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); | 21283 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); |
| 18561 pathOffset += 6; | 21284 pathOffset += 6; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18614 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21337 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18615 var obj = new api.Site.fromJson(json); | 21338 var obj = new api.Site.fromJson(json); |
| 18616 checkSite(obj); | 21339 checkSite(obj); |
| 18617 | 21340 |
| 18618 var path = (req.url).path; | 21341 var path = (req.url).path; |
| 18619 var pathOffset = 0; | 21342 var pathOffset = 0; |
| 18620 var index; | 21343 var index; |
| 18621 var subPart; | 21344 var subPart; |
| 18622 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18623 pathOffset += 1; | 21346 pathOffset += 1; |
| 18624 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21347 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18625 pathOffset += 18; | 21348 pathOffset += 18; |
| 18626 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21349 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18627 pathOffset += 13; | 21350 pathOffset += 13; |
| 18628 index = path.indexOf("/sites", pathOffset); | 21351 index = path.indexOf("/sites", pathOffset); |
| 18629 unittest.expect(index >= 0, unittest.isTrue); | 21352 unittest.expect(index >= 0, unittest.isTrue); |
| 18630 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21353 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18631 pathOffset = index; | 21354 pathOffset = index; |
| 18632 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21355 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18633 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); | 21356 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); |
| 18634 pathOffset += 6; | 21357 pathOffset += 6; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18672 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21395 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18673 var obj = new api.Site.fromJson(json); | 21396 var obj = new api.Site.fromJson(json); |
| 18674 checkSite(obj); | 21397 checkSite(obj); |
| 18675 | 21398 |
| 18676 var path = (req.url).path; | 21399 var path = (req.url).path; |
| 18677 var pathOffset = 0; | 21400 var pathOffset = 0; |
| 18678 var index; | 21401 var index; |
| 18679 var subPart; | 21402 var subPart; |
| 18680 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21403 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18681 pathOffset += 1; | 21404 pathOffset += 1; |
| 18682 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21405 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18683 pathOffset += 18; | 21406 pathOffset += 18; |
| 18684 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21407 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18685 pathOffset += 13; | 21408 pathOffset += 13; |
| 18686 index = path.indexOf("/sites", pathOffset); | 21409 index = path.indexOf("/sites", pathOffset); |
| 18687 unittest.expect(index >= 0, unittest.isTrue); | 21410 unittest.expect(index >= 0, unittest.isTrue); |
| 18688 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21411 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18689 pathOffset = index; | 21412 pathOffset = index; |
| 18690 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21413 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18691 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); | 21414 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); |
| 18692 pathOffset += 6; | 21415 pathOffset += 6; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18730 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; | 21453 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; |
| 18731 var arg_profileId = "foo"; | 21454 var arg_profileId = "foo"; |
| 18732 var arg_id = "foo"; | 21455 var arg_id = "foo"; |
| 18733 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21456 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18734 var path = (req.url).path; | 21457 var path = (req.url).path; |
| 18735 var pathOffset = 0; | 21458 var pathOffset = 0; |
| 18736 var index; | 21459 var index; |
| 18737 var subPart; | 21460 var subPart; |
| 18738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21461 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18739 pathOffset += 1; | 21462 pathOffset += 1; |
| 18740 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21463 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18741 pathOffset += 18; | 21464 pathOffset += 18; |
| 18742 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21465 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18743 pathOffset += 13; | 21466 pathOffset += 13; |
| 18744 index = path.indexOf("/sizes/", pathOffset); | 21467 index = path.indexOf("/sizes/", pathOffset); |
| 18745 unittest.expect(index >= 0, unittest.isTrue); | 21468 unittest.expect(index >= 0, unittest.isTrue); |
| 18746 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21469 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18747 pathOffset = index; | 21470 pathOffset = index; |
| 18748 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21471 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18749 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/sizes/")); | 21472 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/sizes/")); |
| 18750 pathOffset += 7; | 21473 pathOffset += 7; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21513 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18791 var obj = new api.Size.fromJson(json); | 21514 var obj = new api.Size.fromJson(json); |
| 18792 checkSize(obj); | 21515 checkSize(obj); |
| 18793 | 21516 |
| 18794 var path = (req.url).path; | 21517 var path = (req.url).path; |
| 18795 var pathOffset = 0; | 21518 var pathOffset = 0; |
| 18796 var index; | 21519 var index; |
| 18797 var subPart; | 21520 var subPart; |
| 18798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21521 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18799 pathOffset += 1; | 21522 pathOffset += 1; |
| 18800 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21523 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18801 pathOffset += 18; | 21524 pathOffset += 18; |
| 18802 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21525 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18803 pathOffset += 13; | 21526 pathOffset += 13; |
| 18804 index = path.indexOf("/sizes", pathOffset); | 21527 index = path.indexOf("/sizes", pathOffset); |
| 18805 unittest.expect(index >= 0, unittest.isTrue); | 21528 unittest.expect(index >= 0, unittest.isTrue); |
| 18806 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21529 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18807 pathOffset = index; | 21530 pathOffset = index; |
| 18808 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21531 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18809 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sizes")); | 21532 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sizes")); |
| 18810 pathOffset += 6; | 21533 pathOffset += 6; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 18838 }))); | 21561 }))); |
| 18839 }); | 21562 }); |
| 18840 | 21563 |
| 18841 unittest.test("method--list", () { | 21564 unittest.test("method--list", () { |
| 18842 | 21565 |
| 18843 var mock = new HttpServerMock(); | 21566 var mock = new HttpServerMock(); |
| 18844 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; | 21567 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; |
| 18845 var arg_profileId = "foo"; | 21568 var arg_profileId = "foo"; |
| 18846 var arg_height = 42; | 21569 var arg_height = 42; |
| 18847 var arg_iabStandard = true; | 21570 var arg_iabStandard = true; |
| 18848 var arg_ids = buildUnnamed489(); | 21571 var arg_ids = buildUnnamed1562(); |
| 18849 var arg_width = 42; | 21572 var arg_width = 42; |
| 18850 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21573 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18851 var path = (req.url).path; | 21574 var path = (req.url).path; |
| 18852 var pathOffset = 0; | 21575 var pathOffset = 0; |
| 18853 var index; | 21576 var index; |
| 18854 var subPart; | 21577 var subPart; |
| 18855 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21578 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18856 pathOffset += 1; | 21579 pathOffset += 1; |
| 18857 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21580 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18858 pathOffset += 18; | 21581 pathOffset += 18; |
| 18859 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21582 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18860 pathOffset += 13; | 21583 pathOffset += 13; |
| 18861 index = path.indexOf("/sizes", pathOffset); | 21584 index = path.indexOf("/sizes", pathOffset); |
| 18862 unittest.expect(index >= 0, unittest.isTrue); | 21585 unittest.expect(index >= 0, unittest.isTrue); |
| 18863 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21586 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18864 pathOffset = index; | 21587 pathOffset = index; |
| 18865 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21588 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18866 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sizes")); | 21589 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sizes")); |
| 18867 pathOffset += 6; | 21590 pathOffset += 6; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18909 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts
; | 21632 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts
; |
| 18910 var arg_profileId = "foo"; | 21633 var arg_profileId = "foo"; |
| 18911 var arg_id = "foo"; | 21634 var arg_id = "foo"; |
| 18912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21635 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18913 var path = (req.url).path; | 21636 var path = (req.url).path; |
| 18914 var pathOffset = 0; | 21637 var pathOffset = 0; |
| 18915 var index; | 21638 var index; |
| 18916 var subPart; | 21639 var subPart; |
| 18917 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21640 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18918 pathOffset += 1; | 21641 pathOffset += 1; |
| 18919 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21642 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18920 pathOffset += 18; | 21643 pathOffset += 18; |
| 18921 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21644 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18922 pathOffset += 13; | 21645 pathOffset += 13; |
| 18923 index = path.indexOf("/subaccounts/", pathOffset); | 21646 index = path.indexOf("/subaccounts/", pathOffset); |
| 18924 unittest.expect(index >= 0, unittest.isTrue); | 21647 unittest.expect(index >= 0, unittest.isTrue); |
| 18925 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21648 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18926 pathOffset = index; | 21649 pathOffset = index; |
| 18927 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21650 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18928 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/subaccounts/")); | 21651 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/subaccounts/")); |
| 18929 pathOffset += 13; | 21652 pathOffset += 13; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18969 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18970 var obj = new api.Subaccount.fromJson(json); | 21693 var obj = new api.Subaccount.fromJson(json); |
| 18971 checkSubaccount(obj); | 21694 checkSubaccount(obj); |
| 18972 | 21695 |
| 18973 var path = (req.url).path; | 21696 var path = (req.url).path; |
| 18974 var pathOffset = 0; | 21697 var pathOffset = 0; |
| 18975 var index; | 21698 var index; |
| 18976 var subPart; | 21699 var subPart; |
| 18977 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21700 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18978 pathOffset += 1; | 21701 pathOffset += 1; |
| 18979 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21702 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 18980 pathOffset += 18; | 21703 pathOffset += 18; |
| 18981 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21704 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18982 pathOffset += 13; | 21705 pathOffset += 13; |
| 18983 index = path.indexOf("/subaccounts", pathOffset); | 21706 index = path.indexOf("/subaccounts", pathOffset); |
| 18984 unittest.expect(index >= 0, unittest.isTrue); | 21707 unittest.expect(index >= 0, unittest.isTrue); |
| 18985 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21708 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18986 pathOffset = index; | 21709 pathOffset = index; |
| 18987 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21710 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18988 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); | 21711 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); |
| 18989 pathOffset += 12; | 21712 pathOffset += 12; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 19015 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub
account response) { | 21738 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub
account response) { |
| 19016 checkSubaccount(response); | 21739 checkSubaccount(response); |
| 19017 }))); | 21740 }))); |
| 19018 }); | 21741 }); |
| 19019 | 21742 |
| 19020 unittest.test("method--list", () { | 21743 unittest.test("method--list", () { |
| 19021 | 21744 |
| 19022 var mock = new HttpServerMock(); | 21745 var mock = new HttpServerMock(); |
| 19023 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts
; | 21746 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts
; |
| 19024 var arg_profileId = "foo"; | 21747 var arg_profileId = "foo"; |
| 19025 var arg_ids = buildUnnamed490(); | 21748 var arg_ids = buildUnnamed1563(); |
| 19026 var arg_maxResults = 42; | 21749 var arg_maxResults = 42; |
| 19027 var arg_pageToken = "foo"; | 21750 var arg_pageToken = "foo"; |
| 19028 var arg_searchString = "foo"; | 21751 var arg_searchString = "foo"; |
| 19029 var arg_sortField = "foo"; | 21752 var arg_sortField = "foo"; |
| 19030 var arg_sortOrder = "foo"; | 21753 var arg_sortOrder = "foo"; |
| 19031 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21754 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19032 var path = (req.url).path; | 21755 var path = (req.url).path; |
| 19033 var pathOffset = 0; | 21756 var pathOffset = 0; |
| 19034 var index; | 21757 var index; |
| 19035 var subPart; | 21758 var subPart; |
| 19036 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19037 pathOffset += 1; | 21760 pathOffset += 1; |
| 19038 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21761 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19039 pathOffset += 18; | 21762 pathOffset += 18; |
| 19040 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21763 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19041 pathOffset += 13; | 21764 pathOffset += 13; |
| 19042 index = path.indexOf("/subaccounts", pathOffset); | 21765 index = path.indexOf("/subaccounts", pathOffset); |
| 19043 unittest.expect(index >= 0, unittest.isTrue); | 21766 unittest.expect(index >= 0, unittest.isTrue); |
| 19044 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21767 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19045 pathOffset = index; | 21768 pathOffset = index; |
| 19046 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21769 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19047 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); | 21770 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); |
| 19048 pathOffset += 12; | 21771 pathOffset += 12; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19092 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21815 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19093 var obj = new api.Subaccount.fromJson(json); | 21816 var obj = new api.Subaccount.fromJson(json); |
| 19094 checkSubaccount(obj); | 21817 checkSubaccount(obj); |
| 19095 | 21818 |
| 19096 var path = (req.url).path; | 21819 var path = (req.url).path; |
| 19097 var pathOffset = 0; | 21820 var pathOffset = 0; |
| 19098 var index; | 21821 var index; |
| 19099 var subPart; | 21822 var subPart; |
| 19100 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21823 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19101 pathOffset += 1; | 21824 pathOffset += 1; |
| 19102 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21825 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19103 pathOffset += 18; | 21826 pathOffset += 18; |
| 19104 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21827 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19105 pathOffset += 13; | 21828 pathOffset += 13; |
| 19106 index = path.indexOf("/subaccounts", pathOffset); | 21829 index = path.indexOf("/subaccounts", pathOffset); |
| 19107 unittest.expect(index >= 0, unittest.isTrue); | 21830 unittest.expect(index >= 0, unittest.isTrue); |
| 19108 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21831 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19109 pathOffset = index; | 21832 pathOffset = index; |
| 19110 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21833 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19111 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); | 21834 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); |
| 19112 pathOffset += 12; | 21835 pathOffset += 12; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19150 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21873 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19151 var obj = new api.Subaccount.fromJson(json); | 21874 var obj = new api.Subaccount.fromJson(json); |
| 19152 checkSubaccount(obj); | 21875 checkSubaccount(obj); |
| 19153 | 21876 |
| 19154 var path = (req.url).path; | 21877 var path = (req.url).path; |
| 19155 var pathOffset = 0; | 21878 var pathOffset = 0; |
| 19156 var index; | 21879 var index; |
| 19157 var subPart; | 21880 var subPart; |
| 19158 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21881 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19159 pathOffset += 1; | 21882 pathOffset += 1; |
| 19160 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21883 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19161 pathOffset += 18; | 21884 pathOffset += 18; |
| 19162 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21885 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19163 pathOffset += 13; | 21886 pathOffset += 13; |
| 19164 index = path.indexOf("/subaccounts", pathOffset); | 21887 index = path.indexOf("/subaccounts", pathOffset); |
| 19165 unittest.expect(index >= 0, unittest.isTrue); | 21888 unittest.expect(index >= 0, unittest.isTrue); |
| 19166 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21889 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19167 pathOffset = index; | 21890 pathOffset = index; |
| 19168 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21891 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19169 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); | 21892 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); |
| 19170 pathOffset += 12; | 21893 pathOffset += 12; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 19194 return new async.Future.value(stringResponse(200, h, resp)); | 21917 return new async.Future.value(stringResponse(200, h, resp)); |
| 19195 }), true); | 21918 }), true); |
| 19196 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub
account response) { | 21919 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub
account response) { |
| 19197 checkSubaccount(response); | 21920 checkSubaccount(response); |
| 19198 }))); | 21921 }))); |
| 19199 }); | 21922 }); |
| 19200 | 21923 |
| 19201 }); | 21924 }); |
| 19202 | 21925 |
| 19203 | 21926 |
| 21927 unittest.group("resource-TargetableRemarketingListsResourceApi", () { |
| 21928 unittest.test("method--get", () { |
| 21929 |
| 21930 var mock = new HttpServerMock(); |
| 21931 api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mo
ck).targetableRemarketingLists; |
| 21932 var arg_profileId = "foo"; |
| 21933 var arg_id = "foo"; |
| 21934 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 21935 var path = (req.url).path; |
| 21936 var pathOffset = 0; |
| 21937 var index; |
| 21938 var subPart; |
| 21939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21940 pathOffset += 1; |
| 21941 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 21942 pathOffset += 18; |
| 21943 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 21944 pathOffset += 13; |
| 21945 index = path.indexOf("/targetableRemarketingLists/", pathOffset); |
| 21946 unittest.expect(index >= 0, unittest.isTrue); |
| 21947 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 21948 pathOffset = index; |
| 21949 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 21950 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq
uals("/targetableRemarketingLists/")); |
| 21951 pathOffset += 28; |
| 21952 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 21953 pathOffset = path.length; |
| 21954 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 21955 |
| 21956 var query = (req.url).query; |
| 21957 var queryOffset = 0; |
| 21958 var queryMap = {}; |
| 21959 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21960 parseBool(n) { |
| 21961 if (n == "true") return true; |
| 21962 if (n == "false") return false; |
| 21963 if (n == null) return null; |
| 21964 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21965 } |
| 21966 if (query.length > 0) { |
| 21967 for (var part in query.split("&")) { |
| 21968 var keyvalue = part.split("="); |
| 21969 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21970 } |
| 21971 } |
| 21972 |
| 21973 |
| 21974 var h = { |
| 21975 "content-type" : "application/json; charset=utf-8", |
| 21976 }; |
| 21977 var resp = convert.JSON.encode(buildTargetableRemarketingList()); |
| 21978 return new async.Future.value(stringResponse(200, h, resp)); |
| 21979 }), true); |
| 21980 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetableR
emarketingList response) { |
| 21981 checkTargetableRemarketingList(response); |
| 21982 }))); |
| 21983 }); |
| 21984 |
| 21985 unittest.test("method--list", () { |
| 21986 |
| 21987 var mock = new HttpServerMock(); |
| 21988 api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mo
ck).targetableRemarketingLists; |
| 21989 var arg_profileId = "foo"; |
| 21990 var arg_advertiserId = "foo"; |
| 21991 var arg_active = true; |
| 21992 var arg_maxResults = 42; |
| 21993 var arg_name = "foo"; |
| 21994 var arg_pageToken = "foo"; |
| 21995 var arg_sortField = "foo"; |
| 21996 var arg_sortOrder = "foo"; |
| 21997 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 21998 var path = (req.url).path; |
| 21999 var pathOffset = 0; |
| 22000 var index; |
| 22001 var subPart; |
| 22002 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22003 pathOffset += 1; |
| 22004 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 22005 pathOffset += 18; |
| 22006 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 22007 pathOffset += 13; |
| 22008 index = path.indexOf("/targetableRemarketingLists", pathOffset); |
| 22009 unittest.expect(index >= 0, unittest.isTrue); |
| 22010 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 22011 pathOffset = index; |
| 22012 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 22013 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("/targetableRemarketingLists")); |
| 22014 pathOffset += 27; |
| 22015 |
| 22016 var query = (req.url).query; |
| 22017 var queryOffset = 0; |
| 22018 var queryMap = {}; |
| 22019 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22020 parseBool(n) { |
| 22021 if (n == "true") return true; |
| 22022 if (n == "false") return false; |
| 22023 if (n == null) return null; |
| 22024 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22025 } |
| 22026 if (query.length > 0) { |
| 22027 for (var part in query.split("&")) { |
| 22028 var keyvalue = part.split("="); |
| 22029 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22030 } |
| 22031 } |
| 22032 unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_adve
rtiserId)); |
| 22033 unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")
); |
| 22034 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 22035 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
| 22036 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 22037 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 22038 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 22039 |
| 22040 |
| 22041 var h = { |
| 22042 "content-type" : "application/json; charset=utf-8", |
| 22043 }; |
| 22044 var resp = convert.JSON.encode(buildTargetableRemarketingListsListRespon
se()); |
| 22045 return new async.Future.value(stringResponse(200, h, resp)); |
| 22046 }), true); |
| 22047 res.list(arg_profileId, arg_advertiserId, active: arg_active, maxResults:
arg_maxResults, name: arg_name, pageToken: arg_pageToken, sortField: arg_sortFie
ld, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.TargetableRemarket
ingListsListResponse response) { |
| 22048 checkTargetableRemarketingListsListResponse(response); |
| 22049 }))); |
| 22050 }); |
| 22051 |
| 22052 }); |
| 22053 |
| 22054 |
| 19204 unittest.group("resource-UserProfilesResourceApi", () { | 22055 unittest.group("resource-UserProfilesResourceApi", () { |
| 19205 unittest.test("method--get", () { | 22056 unittest.test("method--get", () { |
| 19206 | 22057 |
| 19207 var mock = new HttpServerMock(); | 22058 var mock = new HttpServerMock(); |
| 19208 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; | 22059 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; |
| 19209 var arg_profileId = "foo"; | 22060 var arg_profileId = "foo"; |
| 19210 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19211 var path = (req.url).path; | 22062 var path = (req.url).path; |
| 19212 var pathOffset = 0; | 22063 var pathOffset = 0; |
| 19213 var index; | 22064 var index; |
| 19214 var subPart; | 22065 var subPart; |
| 19215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19216 pathOffset += 1; | 22067 pathOffset += 1; |
| 19217 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22068 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19218 pathOffset += 18; | 22069 pathOffset += 18; |
| 19219 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22070 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19220 pathOffset += 13; | 22071 pathOffset += 13; |
| 19221 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 22072 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 19222 pathOffset = path.length; | 22073 pathOffset = path.length; |
| 19223 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22074 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19224 | 22075 |
| 19225 var query = (req.url).query; | 22076 var query = (req.url).query; |
| 19226 var queryOffset = 0; | 22077 var queryOffset = 0; |
| 19227 var queryMap = {}; | 22078 var queryMap = {}; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 19255 | 22106 |
| 19256 var mock = new HttpServerMock(); | 22107 var mock = new HttpServerMock(); |
| 19257 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; | 22108 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; |
| 19258 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22109 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19259 var path = (req.url).path; | 22110 var path = (req.url).path; |
| 19260 var pathOffset = 0; | 22111 var pathOffset = 0; |
| 19261 var index; | 22112 var index; |
| 19262 var subPart; | 22113 var subPart; |
| 19263 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22114 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19264 pathOffset += 1; | 22115 pathOffset += 1; |
| 19265 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22116 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19266 pathOffset += 18; | 22117 pathOffset += 18; |
| 19267 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("userprofiles")); | 22118 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("userprofiles")); |
| 19268 pathOffset += 12; | 22119 pathOffset += 12; |
| 19269 | 22120 |
| 19270 var query = (req.url).query; | 22121 var query = (req.url).query; |
| 19271 var queryOffset = 0; | 22122 var queryOffset = 0; |
| 19272 var queryMap = {}; | 22123 var queryMap = {}; |
| 19273 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22124 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19274 parseBool(n) { | 22125 parseBool(n) { |
| 19275 if (n == "true") return true; | 22126 if (n == "true") return true; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 19306 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock
).userRolePermissionGroups; | 22157 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock
).userRolePermissionGroups; |
| 19307 var arg_profileId = "foo"; | 22158 var arg_profileId = "foo"; |
| 19308 var arg_id = "foo"; | 22159 var arg_id = "foo"; |
| 19309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22160 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19310 var path = (req.url).path; | 22161 var path = (req.url).path; |
| 19311 var pathOffset = 0; | 22162 var pathOffset = 0; |
| 19312 var index; | 22163 var index; |
| 19313 var subPart; | 22164 var subPart; |
| 19314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22165 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19315 pathOffset += 1; | 22166 pathOffset += 1; |
| 19316 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22167 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19317 pathOffset += 18; | 22168 pathOffset += 18; |
| 19318 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22169 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19319 pathOffset += 13; | 22170 pathOffset += 13; |
| 19320 index = path.indexOf("/userRolePermissionGroups/", pathOffset); | 22171 index = path.indexOf("/userRolePermissionGroups/", pathOffset); |
| 19321 unittest.expect(index >= 0, unittest.isTrue); | 22172 unittest.expect(index >= 0, unittest.isTrue); |
| 19322 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22173 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19323 pathOffset = index; | 22174 pathOffset = index; |
| 19324 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22175 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19325 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/userRolePermissionGroups/")); | 22176 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/userRolePermissionGroups/")); |
| 19326 pathOffset += 26; | 22177 pathOffset += 26; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19362 var mock = new HttpServerMock(); | 22213 var mock = new HttpServerMock(); |
| 19363 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock
).userRolePermissionGroups; | 22214 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock
).userRolePermissionGroups; |
| 19364 var arg_profileId = "foo"; | 22215 var arg_profileId = "foo"; |
| 19365 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22216 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19366 var path = (req.url).path; | 22217 var path = (req.url).path; |
| 19367 var pathOffset = 0; | 22218 var pathOffset = 0; |
| 19368 var index; | 22219 var index; |
| 19369 var subPart; | 22220 var subPart; |
| 19370 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22221 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19371 pathOffset += 1; | 22222 pathOffset += 1; |
| 19372 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22223 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19373 pathOffset += 18; | 22224 pathOffset += 18; |
| 19374 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22225 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19375 pathOffset += 13; | 22226 pathOffset += 13; |
| 19376 index = path.indexOf("/userRolePermissionGroups", pathOffset); | 22227 index = path.indexOf("/userRolePermissionGroups", pathOffset); |
| 19377 unittest.expect(index >= 0, unittest.isTrue); | 22228 unittest.expect(index >= 0, unittest.isTrue); |
| 19378 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22229 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19379 pathOffset = index; | 22230 pathOffset = index; |
| 19380 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22231 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19381 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/userRolePermissionGroups")); | 22232 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/userRolePermissionGroups")); |
| 19382 pathOffset += 25; | 22233 pathOffset += 25; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19420 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use
rRolePermissions; | 22271 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use
rRolePermissions; |
| 19421 var arg_profileId = "foo"; | 22272 var arg_profileId = "foo"; |
| 19422 var arg_id = "foo"; | 22273 var arg_id = "foo"; |
| 19423 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19424 var path = (req.url).path; | 22275 var path = (req.url).path; |
| 19425 var pathOffset = 0; | 22276 var pathOffset = 0; |
| 19426 var index; | 22277 var index; |
| 19427 var subPart; | 22278 var subPart; |
| 19428 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19429 pathOffset += 1; | 22280 pathOffset += 1; |
| 19430 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22281 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19431 pathOffset += 18; | 22282 pathOffset += 18; |
| 19432 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22283 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19433 pathOffset += 13; | 22284 pathOffset += 13; |
| 19434 index = path.indexOf("/userRolePermissions/", pathOffset); | 22285 index = path.indexOf("/userRolePermissions/", pathOffset); |
| 19435 unittest.expect(index >= 0, unittest.isTrue); | 22286 unittest.expect(index >= 0, unittest.isTrue); |
| 19436 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22287 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19437 pathOffset = index; | 22288 pathOffset = index; |
| 19438 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22289 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19439 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/userRolePermissions/")); | 22290 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/userRolePermissions/")); |
| 19440 pathOffset += 21; | 22291 pathOffset += 21; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 19469 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePer
mission response) { | 22320 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePer
mission response) { |
| 19470 checkUserRolePermission(response); | 22321 checkUserRolePermission(response); |
| 19471 }))); | 22322 }))); |
| 19472 }); | 22323 }); |
| 19473 | 22324 |
| 19474 unittest.test("method--list", () { | 22325 unittest.test("method--list", () { |
| 19475 | 22326 |
| 19476 var mock = new HttpServerMock(); | 22327 var mock = new HttpServerMock(); |
| 19477 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use
rRolePermissions; | 22328 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use
rRolePermissions; |
| 19478 var arg_profileId = "foo"; | 22329 var arg_profileId = "foo"; |
| 19479 var arg_ids = buildUnnamed491(); | 22330 var arg_ids = buildUnnamed1564(); |
| 19480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22331 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19481 var path = (req.url).path; | 22332 var path = (req.url).path; |
| 19482 var pathOffset = 0; | 22333 var pathOffset = 0; |
| 19483 var index; | 22334 var index; |
| 19484 var subPart; | 22335 var subPart; |
| 19485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22336 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19486 pathOffset += 1; | 22337 pathOffset += 1; |
| 19487 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22338 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19488 pathOffset += 18; | 22339 pathOffset += 18; |
| 19489 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22340 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19490 pathOffset += 13; | 22341 pathOffset += 13; |
| 19491 index = path.indexOf("/userRolePermissions", pathOffset); | 22342 index = path.indexOf("/userRolePermissions", pathOffset); |
| 19492 unittest.expect(index >= 0, unittest.isTrue); | 22343 unittest.expect(index >= 0, unittest.isTrue); |
| 19493 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22344 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19494 pathOffset = index; | 22345 pathOffset = index; |
| 19495 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22346 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19496 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/userRolePermissions")); | 22347 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/userRolePermissions")); |
| 19497 pathOffset += 20; | 22348 pathOffset += 20; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19536 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; | 22387 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; |
| 19537 var arg_profileId = "foo"; | 22388 var arg_profileId = "foo"; |
| 19538 var arg_id = "foo"; | 22389 var arg_id = "foo"; |
| 19539 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22390 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19540 var path = (req.url).path; | 22391 var path = (req.url).path; |
| 19541 var pathOffset = 0; | 22392 var pathOffset = 0; |
| 19542 var index; | 22393 var index; |
| 19543 var subPart; | 22394 var subPart; |
| 19544 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22395 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19545 pathOffset += 1; | 22396 pathOffset += 1; |
| 19546 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22397 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19547 pathOffset += 18; | 22398 pathOffset += 18; |
| 19548 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22399 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19549 pathOffset += 13; | 22400 pathOffset += 13; |
| 19550 index = path.indexOf("/userRoles/", pathOffset); | 22401 index = path.indexOf("/userRoles/", pathOffset); |
| 19551 unittest.expect(index >= 0, unittest.isTrue); | 22402 unittest.expect(index >= 0, unittest.isTrue); |
| 19552 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22403 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19553 pathOffset = index; | 22404 pathOffset = index; |
| 19554 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22405 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19555 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/userRoles/")); | 22406 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/userRoles/")); |
| 19556 pathOffset += 11; | 22407 pathOffset += 11; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19591 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; | 22442 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; |
| 19592 var arg_profileId = "foo"; | 22443 var arg_profileId = "foo"; |
| 19593 var arg_id = "foo"; | 22444 var arg_id = "foo"; |
| 19594 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22445 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19595 var path = (req.url).path; | 22446 var path = (req.url).path; |
| 19596 var pathOffset = 0; | 22447 var pathOffset = 0; |
| 19597 var index; | 22448 var index; |
| 19598 var subPart; | 22449 var subPart; |
| 19599 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22450 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19600 pathOffset += 1; | 22451 pathOffset += 1; |
| 19601 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22452 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19602 pathOffset += 18; | 22453 pathOffset += 18; |
| 19603 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22454 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19604 pathOffset += 13; | 22455 pathOffset += 13; |
| 19605 index = path.indexOf("/userRoles/", pathOffset); | 22456 index = path.indexOf("/userRoles/", pathOffset); |
| 19606 unittest.expect(index >= 0, unittest.isTrue); | 22457 unittest.expect(index >= 0, unittest.isTrue); |
| 19607 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22458 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19608 pathOffset = index; | 22459 pathOffset = index; |
| 19609 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22460 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19610 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/userRoles/")); | 22461 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/userRoles/")); |
| 19611 pathOffset += 11; | 22462 pathOffset += 11; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19651 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22502 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19652 var obj = new api.UserRole.fromJson(json); | 22503 var obj = new api.UserRole.fromJson(json); |
| 19653 checkUserRole(obj); | 22504 checkUserRole(obj); |
| 19654 | 22505 |
| 19655 var path = (req.url).path; | 22506 var path = (req.url).path; |
| 19656 var pathOffset = 0; | 22507 var pathOffset = 0; |
| 19657 var index; | 22508 var index; |
| 19658 var subPart; | 22509 var subPart; |
| 19659 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19660 pathOffset += 1; | 22511 pathOffset += 1; |
| 19661 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22512 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19662 pathOffset += 18; | 22513 pathOffset += 18; |
| 19663 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22514 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19664 pathOffset += 13; | 22515 pathOffset += 13; |
| 19665 index = path.indexOf("/userRoles", pathOffset); | 22516 index = path.indexOf("/userRoles", pathOffset); |
| 19666 unittest.expect(index >= 0, unittest.isTrue); | 22517 unittest.expect(index >= 0, unittest.isTrue); |
| 19667 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22518 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19668 pathOffset = index; | 22519 pathOffset = index; |
| 19669 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22520 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19670 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); | 22521 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); |
| 19671 pathOffset += 10; | 22522 pathOffset += 10; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 19698 checkUserRole(response); | 22549 checkUserRole(response); |
| 19699 }))); | 22550 }))); |
| 19700 }); | 22551 }); |
| 19701 | 22552 |
| 19702 unittest.test("method--list", () { | 22553 unittest.test("method--list", () { |
| 19703 | 22554 |
| 19704 var mock = new HttpServerMock(); | 22555 var mock = new HttpServerMock(); |
| 19705 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; | 22556 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; |
| 19706 var arg_profileId = "foo"; | 22557 var arg_profileId = "foo"; |
| 19707 var arg_accountUserRoleOnly = true; | 22558 var arg_accountUserRoleOnly = true; |
| 19708 var arg_ids = buildUnnamed492(); | 22559 var arg_ids = buildUnnamed1565(); |
| 19709 var arg_maxResults = 42; | 22560 var arg_maxResults = 42; |
| 19710 var arg_pageToken = "foo"; | 22561 var arg_pageToken = "foo"; |
| 19711 var arg_searchString = "foo"; | 22562 var arg_searchString = "foo"; |
| 19712 var arg_sortField = "foo"; | 22563 var arg_sortField = "foo"; |
| 19713 var arg_sortOrder = "foo"; | 22564 var arg_sortOrder = "foo"; |
| 19714 var arg_subaccountId = "foo"; | 22565 var arg_subaccountId = "foo"; |
| 19715 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22566 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19716 var path = (req.url).path; | 22567 var path = (req.url).path; |
| 19717 var pathOffset = 0; | 22568 var pathOffset = 0; |
| 19718 var index; | 22569 var index; |
| 19719 var subPart; | 22570 var subPart; |
| 19720 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22571 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19721 pathOffset += 1; | 22572 pathOffset += 1; |
| 19722 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22573 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19723 pathOffset += 18; | 22574 pathOffset += 18; |
| 19724 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22575 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19725 pathOffset += 13; | 22576 pathOffset += 13; |
| 19726 index = path.indexOf("/userRoles", pathOffset); | 22577 index = path.indexOf("/userRoles", pathOffset); |
| 19727 unittest.expect(index >= 0, unittest.isTrue); | 22578 unittest.expect(index >= 0, unittest.isTrue); |
| 19728 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22579 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19729 pathOffset = index; | 22580 pathOffset = index; |
| 19730 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22581 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19731 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); | 22582 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); |
| 19732 pathOffset += 10; | 22583 pathOffset += 10; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19778 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22629 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19779 var obj = new api.UserRole.fromJson(json); | 22630 var obj = new api.UserRole.fromJson(json); |
| 19780 checkUserRole(obj); | 22631 checkUserRole(obj); |
| 19781 | 22632 |
| 19782 var path = (req.url).path; | 22633 var path = (req.url).path; |
| 19783 var pathOffset = 0; | 22634 var pathOffset = 0; |
| 19784 var index; | 22635 var index; |
| 19785 var subPart; | 22636 var subPart; |
| 19786 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22637 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19787 pathOffset += 1; | 22638 pathOffset += 1; |
| 19788 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22639 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19789 pathOffset += 18; | 22640 pathOffset += 18; |
| 19790 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22641 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19791 pathOffset += 13; | 22642 pathOffset += 13; |
| 19792 index = path.indexOf("/userRoles", pathOffset); | 22643 index = path.indexOf("/userRoles", pathOffset); |
| 19793 unittest.expect(index >= 0, unittest.isTrue); | 22644 unittest.expect(index >= 0, unittest.isTrue); |
| 19794 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22645 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19795 pathOffset = index; | 22646 pathOffset = index; |
| 19796 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22647 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19797 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); | 22648 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); |
| 19798 pathOffset += 10; | 22649 pathOffset += 10; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19836 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22687 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19837 var obj = new api.UserRole.fromJson(json); | 22688 var obj = new api.UserRole.fromJson(json); |
| 19838 checkUserRole(obj); | 22689 checkUserRole(obj); |
| 19839 | 22690 |
| 19840 var path = (req.url).path; | 22691 var path = (req.url).path; |
| 19841 var pathOffset = 0; | 22692 var pathOffset = 0; |
| 19842 var index; | 22693 var index; |
| 19843 var subPart; | 22694 var subPart; |
| 19844 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22695 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19845 pathOffset += 1; | 22696 pathOffset += 1; |
| 19846 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22697 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.2/")); |
| 19847 pathOffset += 18; | 22698 pathOffset += 18; |
| 19848 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22699 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19849 pathOffset += 13; | 22700 pathOffset += 13; |
| 19850 index = path.indexOf("/userRoles", pathOffset); | 22701 index = path.indexOf("/userRoles", pathOffset); |
| 19851 unittest.expect(index >= 0, unittest.isTrue); | 22702 unittest.expect(index >= 0, unittest.isTrue); |
| 19852 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22703 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19853 pathOffset = index; | 22704 pathOffset = index; |
| 19854 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22705 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19855 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); | 22706 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); |
| 19856 pathOffset += 10; | 22707 pathOffset += 10; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 19882 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Use
rRole response) { | 22733 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Use
rRole response) { |
| 19883 checkUserRole(response); | 22734 checkUserRole(response); |
| 19884 }))); | 22735 }))); |
| 19885 }); | 22736 }); |
| 19886 | 22737 |
| 19887 }); | 22738 }); |
| 19888 | 22739 |
| 19889 | 22740 |
| 19890 } | 22741 } |
| 19891 | 22742 |
| OLD | NEW |