OLD | NEW |
1 library googleapis.dfareporting.v2_0.test; | 1 library googleapis.dfareporting.v2_1.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_1.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 buildUnnamed1042() { |
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 checkUnnamed1042(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 buildUnnamed1043() { |
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 checkUnnamed1043(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 = buildUnnamed1042(); |
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 = buildUnnamed1043(); |
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 checkUnnamed1042(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 checkUnnamed1043(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 buildUnnamed1044() { |
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 checkUnnamed1044(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 = buildUnnamed1044(); |
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 checkUnnamed1044(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 buildUnnamed1045() { |
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 checkUnnamed1045(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 = buildUnnamed1045(); |
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 checkUnnamed1045(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 buildUnnamed1046() { |
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 checkUnnamed1046(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 = buildUnnamed1046(); |
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 checkUnnamed1046(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 buildUnnamed1047() { |
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 checkUnnamed1047(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 = buildUnnamed1047(); |
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 checkUnnamed1047(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 buildUnnamed1048() { |
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 checkUnnamed1048(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 = buildUnnamed1048(); |
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 checkUnnamed1048(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 buildUnnamed1049() { |
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 checkUnnamed1049(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 buildUnnamed1050() { |
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 checkUnnamed1050(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 = buildUnnamed1049(); |
448 o.kind = "foo"; | 448 o.kind = "foo"; |
449 o.metricNames = buildUnnamed266(); | 449 o.metricNames = buildUnnamed1050(); |
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 checkUnnamed1049(o.filters); |
459 unittest.expect(o.kind, unittest.equals('foo')); | 459 unittest.expect(o.kind, unittest.equals('foo')); |
460 checkUnnamed266(o.metricNames); | 460 checkUnnamed1050(o.metricNames); |
461 } | 461 } |
462 buildCounterActivities--; | 462 buildCounterActivities--; |
463 } | 463 } |
464 | 464 |
465 buildUnnamed267() { | 465 buildUnnamed1051() { |
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 checkUnnamed1051(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 buildUnnamed1052() { |
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 checkUnnamed1052(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 buildUnnamed1053() { |
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 checkUnnamed1053(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 = buildUnnamed1051(); |
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 = buildUnnamed1052(); |
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 = buildUnnamed1053(); |
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 checkUnnamed1051(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 checkUnnamed1052(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 checkUnnamed1053(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 buildUnnamed1054() { |
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 checkUnnamed1054(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 = buildUnnamed1054(); |
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 checkUnnamed1054(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"; |
649 } | 683 } |
650 buildCounterAdvertiser--; | 684 buildCounterAdvertiser--; |
651 return o; | 685 return o; |
652 } | 686 } |
653 | 687 |
654 checkAdvertiser(api.Advertiser o) { | 688 checkAdvertiser(api.Advertiser o) { |
655 buildCounterAdvertiser++; | 689 buildCounterAdvertiser++; |
656 if (buildCounterAdvertiser < 3) { | 690 if (buildCounterAdvertiser < 3) { |
657 unittest.expect(o.accountId, unittest.equals('foo')); | 691 unittest.expect(o.accountId, unittest.equals('foo')); |
658 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); | 692 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); |
659 unittest.expect(o.clickThroughUrlSuffix, unittest.equals('foo')); | 693 unittest.expect(o.clickThroughUrlSuffix, unittest.equals('foo')); |
660 unittest.expect(o.defaultClickThroughEventTagId, unittest.equals('foo')); | 694 unittest.expect(o.defaultClickThroughEventTagId, unittest.equals('foo')); |
661 unittest.expect(o.defaultEmail, unittest.equals('foo')); | 695 unittest.expect(o.defaultEmail, unittest.equals('foo')); |
662 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); | 696 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); |
663 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); | 697 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); |
664 unittest.expect(o.id, unittest.equals('foo')); | 698 unittest.expect(o.id, unittest.equals('foo')); |
665 checkDimensionValue(o.idDimensionValue); | 699 checkDimensionValue(o.idDimensionValue); |
666 unittest.expect(o.kind, unittest.equals('foo')); | 700 unittest.expect(o.kind, unittest.equals('foo')); |
667 unittest.expect(o.name, unittest.equals('foo')); | 701 unittest.expect(o.name, unittest.equals('foo')); |
| 702 unittest.expect(o.originalFloodlightConfigurationId, unittest.equals('foo'))
; |
668 unittest.expect(o.status, unittest.equals('foo')); | 703 unittest.expect(o.status, unittest.equals('foo')); |
669 unittest.expect(o.subaccountId, unittest.equals('foo')); | 704 unittest.expect(o.subaccountId, unittest.equals('foo')); |
670 } | 705 } |
671 buildCounterAdvertiser--; | 706 buildCounterAdvertiser--; |
672 } | 707 } |
673 | 708 |
674 core.int buildCounterAdvertiserGroup = 0; | 709 core.int buildCounterAdvertiserGroup = 0; |
675 buildAdvertiserGroup() { | 710 buildAdvertiserGroup() { |
676 var o = new api.AdvertiserGroup(); | 711 var o = new api.AdvertiserGroup(); |
677 buildCounterAdvertiserGroup++; | 712 buildCounterAdvertiserGroup++; |
(...skipping 11 matching lines...) Expand all Loading... |
689 buildCounterAdvertiserGroup++; | 724 buildCounterAdvertiserGroup++; |
690 if (buildCounterAdvertiserGroup < 3) { | 725 if (buildCounterAdvertiserGroup < 3) { |
691 unittest.expect(o.accountId, unittest.equals('foo')); | 726 unittest.expect(o.accountId, unittest.equals('foo')); |
692 unittest.expect(o.id, unittest.equals('foo')); | 727 unittest.expect(o.id, unittest.equals('foo')); |
693 unittest.expect(o.kind, unittest.equals('foo')); | 728 unittest.expect(o.kind, unittest.equals('foo')); |
694 unittest.expect(o.name, unittest.equals('foo')); | 729 unittest.expect(o.name, unittest.equals('foo')); |
695 } | 730 } |
696 buildCounterAdvertiserGroup--; | 731 buildCounterAdvertiserGroup--; |
697 } | 732 } |
698 | 733 |
699 buildUnnamed271() { | 734 buildUnnamed1055() { |
700 var o = new core.List<api.AdvertiserGroup>(); | 735 var o = new core.List<api.AdvertiserGroup>(); |
701 o.add(buildAdvertiserGroup()); | 736 o.add(buildAdvertiserGroup()); |
702 o.add(buildAdvertiserGroup()); | 737 o.add(buildAdvertiserGroup()); |
703 return o; | 738 return o; |
704 } | 739 } |
705 | 740 |
706 checkUnnamed271(core.List<api.AdvertiserGroup> o) { | 741 checkUnnamed1055(core.List<api.AdvertiserGroup> o) { |
707 unittest.expect(o, unittest.hasLength(2)); | 742 unittest.expect(o, unittest.hasLength(2)); |
708 checkAdvertiserGroup(o[0]); | 743 checkAdvertiserGroup(o[0]); |
709 checkAdvertiserGroup(o[1]); | 744 checkAdvertiserGroup(o[1]); |
710 } | 745 } |
711 | 746 |
712 core.int buildCounterAdvertiserGroupsListResponse = 0; | 747 core.int buildCounterAdvertiserGroupsListResponse = 0; |
713 buildAdvertiserGroupsListResponse() { | 748 buildAdvertiserGroupsListResponse() { |
714 var o = new api.AdvertiserGroupsListResponse(); | 749 var o = new api.AdvertiserGroupsListResponse(); |
715 buildCounterAdvertiserGroupsListResponse++; | 750 buildCounterAdvertiserGroupsListResponse++; |
716 if (buildCounterAdvertiserGroupsListResponse < 3) { | 751 if (buildCounterAdvertiserGroupsListResponse < 3) { |
717 o.advertiserGroups = buildUnnamed271(); | 752 o.advertiserGroups = buildUnnamed1055(); |
718 o.kind = "foo"; | 753 o.kind = "foo"; |
719 o.nextPageToken = "foo"; | 754 o.nextPageToken = "foo"; |
720 } | 755 } |
721 buildCounterAdvertiserGroupsListResponse--; | 756 buildCounterAdvertiserGroupsListResponse--; |
722 return o; | 757 return o; |
723 } | 758 } |
724 | 759 |
725 checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { | 760 checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { |
726 buildCounterAdvertiserGroupsListResponse++; | 761 buildCounterAdvertiserGroupsListResponse++; |
727 if (buildCounterAdvertiserGroupsListResponse < 3) { | 762 if (buildCounterAdvertiserGroupsListResponse < 3) { |
728 checkUnnamed271(o.advertiserGroups); | 763 checkUnnamed1055(o.advertiserGroups); |
729 unittest.expect(o.kind, unittest.equals('foo')); | 764 unittest.expect(o.kind, unittest.equals('foo')); |
730 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 765 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
731 } | 766 } |
732 buildCounterAdvertiserGroupsListResponse--; | 767 buildCounterAdvertiserGroupsListResponse--; |
733 } | 768 } |
734 | 769 |
735 buildUnnamed272() { | 770 buildUnnamed1056() { |
736 var o = new core.List<api.Advertiser>(); | 771 var o = new core.List<api.Advertiser>(); |
737 o.add(buildAdvertiser()); | 772 o.add(buildAdvertiser()); |
738 o.add(buildAdvertiser()); | 773 o.add(buildAdvertiser()); |
739 return o; | 774 return o; |
740 } | 775 } |
741 | 776 |
742 checkUnnamed272(core.List<api.Advertiser> o) { | 777 checkUnnamed1056(core.List<api.Advertiser> o) { |
743 unittest.expect(o, unittest.hasLength(2)); | 778 unittest.expect(o, unittest.hasLength(2)); |
744 checkAdvertiser(o[0]); | 779 checkAdvertiser(o[0]); |
745 checkAdvertiser(o[1]); | 780 checkAdvertiser(o[1]); |
746 } | 781 } |
747 | 782 |
748 core.int buildCounterAdvertisersListResponse = 0; | 783 core.int buildCounterAdvertisersListResponse = 0; |
749 buildAdvertisersListResponse() { | 784 buildAdvertisersListResponse() { |
750 var o = new api.AdvertisersListResponse(); | 785 var o = new api.AdvertisersListResponse(); |
751 buildCounterAdvertisersListResponse++; | 786 buildCounterAdvertisersListResponse++; |
752 if (buildCounterAdvertisersListResponse < 3) { | 787 if (buildCounterAdvertisersListResponse < 3) { |
753 o.advertisers = buildUnnamed272(); | 788 o.advertisers = buildUnnamed1056(); |
754 o.kind = "foo"; | 789 o.kind = "foo"; |
755 o.nextPageToken = "foo"; | 790 o.nextPageToken = "foo"; |
756 } | 791 } |
757 buildCounterAdvertisersListResponse--; | 792 buildCounterAdvertisersListResponse--; |
758 return o; | 793 return o; |
759 } | 794 } |
760 | 795 |
761 checkAdvertisersListResponse(api.AdvertisersListResponse o) { | 796 checkAdvertisersListResponse(api.AdvertisersListResponse o) { |
762 buildCounterAdvertisersListResponse++; | 797 buildCounterAdvertisersListResponse++; |
763 if (buildCounterAdvertisersListResponse < 3) { | 798 if (buildCounterAdvertisersListResponse < 3) { |
764 checkUnnamed272(o.advertisers); | 799 checkUnnamed1056(o.advertisers); |
765 unittest.expect(o.kind, unittest.equals('foo')); | 800 unittest.expect(o.kind, unittest.equals('foo')); |
766 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 801 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
767 } | 802 } |
768 buildCounterAdvertisersListResponse--; | 803 buildCounterAdvertisersListResponse--; |
769 } | 804 } |
770 | 805 |
771 core.int buildCounterAudienceSegment = 0; | 806 core.int buildCounterAudienceSegment = 0; |
772 buildAudienceSegment() { | 807 buildAudienceSegment() { |
773 var o = new api.AudienceSegment(); | 808 var o = new api.AudienceSegment(); |
774 buildCounterAudienceSegment++; | 809 buildCounterAudienceSegment++; |
775 if (buildCounterAudienceSegment < 3) { | 810 if (buildCounterAudienceSegment < 3) { |
776 o.allocation = 42; | 811 o.allocation = 42; |
777 o.id = "foo"; | 812 o.id = "foo"; |
778 o.name = "foo"; | 813 o.name = "foo"; |
779 } | 814 } |
780 buildCounterAudienceSegment--; | 815 buildCounterAudienceSegment--; |
781 return o; | 816 return o; |
782 } | 817 } |
783 | 818 |
784 checkAudienceSegment(api.AudienceSegment o) { | 819 checkAudienceSegment(api.AudienceSegment o) { |
785 buildCounterAudienceSegment++; | 820 buildCounterAudienceSegment++; |
786 if (buildCounterAudienceSegment < 3) { | 821 if (buildCounterAudienceSegment < 3) { |
787 unittest.expect(o.allocation, unittest.equals(42)); | 822 unittest.expect(o.allocation, unittest.equals(42)); |
788 unittest.expect(o.id, unittest.equals('foo')); | 823 unittest.expect(o.id, unittest.equals('foo')); |
789 unittest.expect(o.name, unittest.equals('foo')); | 824 unittest.expect(o.name, unittest.equals('foo')); |
790 } | 825 } |
791 buildCounterAudienceSegment--; | 826 buildCounterAudienceSegment--; |
792 } | 827 } |
793 | 828 |
794 buildUnnamed273() { | 829 buildUnnamed1057() { |
795 var o = new core.List<api.AudienceSegment>(); | 830 var o = new core.List<api.AudienceSegment>(); |
796 o.add(buildAudienceSegment()); | 831 o.add(buildAudienceSegment()); |
797 o.add(buildAudienceSegment()); | 832 o.add(buildAudienceSegment()); |
798 return o; | 833 return o; |
799 } | 834 } |
800 | 835 |
801 checkUnnamed273(core.List<api.AudienceSegment> o) { | 836 checkUnnamed1057(core.List<api.AudienceSegment> o) { |
802 unittest.expect(o, unittest.hasLength(2)); | 837 unittest.expect(o, unittest.hasLength(2)); |
803 checkAudienceSegment(o[0]); | 838 checkAudienceSegment(o[0]); |
804 checkAudienceSegment(o[1]); | 839 checkAudienceSegment(o[1]); |
805 } | 840 } |
806 | 841 |
807 core.int buildCounterAudienceSegmentGroup = 0; | 842 core.int buildCounterAudienceSegmentGroup = 0; |
808 buildAudienceSegmentGroup() { | 843 buildAudienceSegmentGroup() { |
809 var o = new api.AudienceSegmentGroup(); | 844 var o = new api.AudienceSegmentGroup(); |
810 buildCounterAudienceSegmentGroup++; | 845 buildCounterAudienceSegmentGroup++; |
811 if (buildCounterAudienceSegmentGroup < 3) { | 846 if (buildCounterAudienceSegmentGroup < 3) { |
812 o.audienceSegments = buildUnnamed273(); | 847 o.audienceSegments = buildUnnamed1057(); |
813 o.id = "foo"; | 848 o.id = "foo"; |
814 o.name = "foo"; | 849 o.name = "foo"; |
815 } | 850 } |
816 buildCounterAudienceSegmentGroup--; | 851 buildCounterAudienceSegmentGroup--; |
817 return o; | 852 return o; |
818 } | 853 } |
819 | 854 |
820 checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { | 855 checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { |
821 buildCounterAudienceSegmentGroup++; | 856 buildCounterAudienceSegmentGroup++; |
822 if (buildCounterAudienceSegmentGroup < 3) { | 857 if (buildCounterAudienceSegmentGroup < 3) { |
823 checkUnnamed273(o.audienceSegments); | 858 checkUnnamed1057(o.audienceSegments); |
824 unittest.expect(o.id, unittest.equals('foo')); | 859 unittest.expect(o.id, unittest.equals('foo')); |
825 unittest.expect(o.name, unittest.equals('foo')); | 860 unittest.expect(o.name, unittest.equals('foo')); |
826 } | 861 } |
827 buildCounterAudienceSegmentGroup--; | 862 buildCounterAudienceSegmentGroup--; |
828 } | 863 } |
829 | 864 |
830 core.int buildCounterBrowser = 0; | 865 core.int buildCounterBrowser = 0; |
831 buildBrowser() { | 866 buildBrowser() { |
832 var o = new api.Browser(); | 867 var o = new api.Browser(); |
833 buildCounterBrowser++; | 868 buildCounterBrowser++; |
(...skipping 15 matching lines...) Expand all Loading... |
849 unittest.expect(o.browserVersionId, unittest.equals('foo')); | 884 unittest.expect(o.browserVersionId, unittest.equals('foo')); |
850 unittest.expect(o.dartId, unittest.equals('foo')); | 885 unittest.expect(o.dartId, unittest.equals('foo')); |
851 unittest.expect(o.kind, unittest.equals('foo')); | 886 unittest.expect(o.kind, unittest.equals('foo')); |
852 unittest.expect(o.majorVersion, unittest.equals('foo')); | 887 unittest.expect(o.majorVersion, unittest.equals('foo')); |
853 unittest.expect(o.minorVersion, unittest.equals('foo')); | 888 unittest.expect(o.minorVersion, unittest.equals('foo')); |
854 unittest.expect(o.name, unittest.equals('foo')); | 889 unittest.expect(o.name, unittest.equals('foo')); |
855 } | 890 } |
856 buildCounterBrowser--; | 891 buildCounterBrowser--; |
857 } | 892 } |
858 | 893 |
859 buildUnnamed274() { | 894 buildUnnamed1058() { |
860 var o = new core.List<api.Browser>(); | 895 var o = new core.List<api.Browser>(); |
861 o.add(buildBrowser()); | 896 o.add(buildBrowser()); |
862 o.add(buildBrowser()); | 897 o.add(buildBrowser()); |
863 return o; | 898 return o; |
864 } | 899 } |
865 | 900 |
866 checkUnnamed274(core.List<api.Browser> o) { | 901 checkUnnamed1058(core.List<api.Browser> o) { |
867 unittest.expect(o, unittest.hasLength(2)); | 902 unittest.expect(o, unittest.hasLength(2)); |
868 checkBrowser(o[0]); | 903 checkBrowser(o[0]); |
869 checkBrowser(o[1]); | 904 checkBrowser(o[1]); |
870 } | 905 } |
871 | 906 |
872 core.int buildCounterBrowsersListResponse = 0; | 907 core.int buildCounterBrowsersListResponse = 0; |
873 buildBrowsersListResponse() { | 908 buildBrowsersListResponse() { |
874 var o = new api.BrowsersListResponse(); | 909 var o = new api.BrowsersListResponse(); |
875 buildCounterBrowsersListResponse++; | 910 buildCounterBrowsersListResponse++; |
876 if (buildCounterBrowsersListResponse < 3) { | 911 if (buildCounterBrowsersListResponse < 3) { |
877 o.browsers = buildUnnamed274(); | 912 o.browsers = buildUnnamed1058(); |
878 o.kind = "foo"; | 913 o.kind = "foo"; |
879 } | 914 } |
880 buildCounterBrowsersListResponse--; | 915 buildCounterBrowsersListResponse--; |
881 return o; | 916 return o; |
882 } | 917 } |
883 | 918 |
884 checkBrowsersListResponse(api.BrowsersListResponse o) { | 919 checkBrowsersListResponse(api.BrowsersListResponse o) { |
885 buildCounterBrowsersListResponse++; | 920 buildCounterBrowsersListResponse++; |
886 if (buildCounterBrowsersListResponse < 3) { | 921 if (buildCounterBrowsersListResponse < 3) { |
887 checkUnnamed274(o.browsers); | 922 checkUnnamed1058(o.browsers); |
888 unittest.expect(o.kind, unittest.equals('foo')); | 923 unittest.expect(o.kind, unittest.equals('foo')); |
889 } | 924 } |
890 buildCounterBrowsersListResponse--; | 925 buildCounterBrowsersListResponse--; |
891 } | 926 } |
892 | 927 |
893 buildUnnamed275() { | 928 buildUnnamed1059() { |
894 var o = new core.List<api.CreativeOptimizationConfiguration>(); | 929 var o = new core.List<api.CreativeOptimizationConfiguration>(); |
895 o.add(buildCreativeOptimizationConfiguration()); | 930 o.add(buildCreativeOptimizationConfiguration()); |
896 o.add(buildCreativeOptimizationConfiguration()); | 931 o.add(buildCreativeOptimizationConfiguration()); |
897 return o; | 932 return o; |
898 } | 933 } |
899 | 934 |
900 checkUnnamed275(core.List<api.CreativeOptimizationConfiguration> o) { | 935 checkUnnamed1059(core.List<api.CreativeOptimizationConfiguration> o) { |
901 unittest.expect(o, unittest.hasLength(2)); | 936 unittest.expect(o, unittest.hasLength(2)); |
902 checkCreativeOptimizationConfiguration(o[0]); | 937 checkCreativeOptimizationConfiguration(o[0]); |
903 checkCreativeOptimizationConfiguration(o[1]); | 938 checkCreativeOptimizationConfiguration(o[1]); |
904 } | 939 } |
905 | 940 |
906 buildUnnamed276() { | 941 buildUnnamed1060() { |
907 var o = new core.List<api.AudienceSegmentGroup>(); | 942 var o = new core.List<api.AudienceSegmentGroup>(); |
908 o.add(buildAudienceSegmentGroup()); | 943 o.add(buildAudienceSegmentGroup()); |
909 o.add(buildAudienceSegmentGroup()); | 944 o.add(buildAudienceSegmentGroup()); |
910 return o; | 945 return o; |
911 } | 946 } |
912 | 947 |
913 checkUnnamed276(core.List<api.AudienceSegmentGroup> o) { | 948 checkUnnamed1060(core.List<api.AudienceSegmentGroup> o) { |
914 unittest.expect(o, unittest.hasLength(2)); | 949 unittest.expect(o, unittest.hasLength(2)); |
915 checkAudienceSegmentGroup(o[0]); | 950 checkAudienceSegmentGroup(o[0]); |
916 checkAudienceSegmentGroup(o[1]); | 951 checkAudienceSegmentGroup(o[1]); |
917 } | 952 } |
918 | 953 |
919 buildUnnamed277() { | 954 buildUnnamed1061() { |
920 var o = new core.List<core.String>(); | 955 var o = new core.List<core.String>(); |
921 o.add("foo"); | 956 o.add("foo"); |
922 o.add("foo"); | 957 o.add("foo"); |
923 return o; | 958 return o; |
924 } | 959 } |
925 | 960 |
926 checkUnnamed277(core.List<core.String> o) { | 961 checkUnnamed1061(core.List<core.String> o) { |
927 unittest.expect(o, unittest.hasLength(2)); | 962 unittest.expect(o, unittest.hasLength(2)); |
928 unittest.expect(o[0], unittest.equals('foo')); | 963 unittest.expect(o[0], unittest.equals('foo')); |
929 unittest.expect(o[1], unittest.equals('foo')); | 964 unittest.expect(o[1], unittest.equals('foo')); |
930 } | 965 } |
931 | 966 |
932 buildUnnamed278() { | 967 buildUnnamed1062() { |
933 var o = new core.List<api.EventTagOverride>(); | 968 var o = new core.List<api.EventTagOverride>(); |
934 o.add(buildEventTagOverride()); | 969 o.add(buildEventTagOverride()); |
935 o.add(buildEventTagOverride()); | 970 o.add(buildEventTagOverride()); |
936 return o; | 971 return o; |
937 } | 972 } |
938 | 973 |
939 checkUnnamed278(core.List<api.EventTagOverride> o) { | 974 checkUnnamed1062(core.List<api.EventTagOverride> o) { |
940 unittest.expect(o, unittest.hasLength(2)); | 975 unittest.expect(o, unittest.hasLength(2)); |
941 checkEventTagOverride(o[0]); | 976 checkEventTagOverride(o[0]); |
942 checkEventTagOverride(o[1]); | 977 checkEventTagOverride(o[1]); |
943 } | 978 } |
944 | 979 |
945 buildUnnamed279() { | 980 buildUnnamed1063() { |
946 var o = new core.List<core.String>(); | 981 var o = new core.List<core.String>(); |
947 o.add("foo"); | 982 o.add("foo"); |
948 o.add("foo"); | 983 o.add("foo"); |
949 return o; | 984 return o; |
950 } | 985 } |
951 | 986 |
952 checkUnnamed279(core.List<core.String> o) { | 987 checkUnnamed1063(core.List<core.String> o) { |
953 unittest.expect(o, unittest.hasLength(2)); | 988 unittest.expect(o, unittest.hasLength(2)); |
954 unittest.expect(o[0], unittest.equals('foo')); | 989 unittest.expect(o[0], unittest.equals('foo')); |
955 unittest.expect(o[1], unittest.equals('foo')); | 990 unittest.expect(o[1], unittest.equals('foo')); |
956 } | 991 } |
957 | 992 |
958 core.int buildCounterCampaign = 0; | 993 core.int buildCounterCampaign = 0; |
959 buildCampaign() { | 994 buildCampaign() { |
960 var o = new api.Campaign(); | 995 var o = new api.Campaign(); |
961 buildCounterCampaign++; | 996 buildCounterCampaign++; |
962 if (buildCounterCampaign < 3) { | 997 if (buildCounterCampaign < 3) { |
963 o.accountId = "foo"; | 998 o.accountId = "foo"; |
964 o.additionalCreativeOptimizationConfigurations = buildUnnamed275(); | 999 o.additionalCreativeOptimizationConfigurations = buildUnnamed1059(); |
965 o.advertiserGroupId = "foo"; | 1000 o.advertiserGroupId = "foo"; |
966 o.advertiserId = "foo"; | 1001 o.advertiserId = "foo"; |
967 o.advertiserIdDimensionValue = buildDimensionValue(); | 1002 o.advertiserIdDimensionValue = buildDimensionValue(); |
968 o.archived = true; | 1003 o.archived = true; |
969 o.audienceSegmentGroups = buildUnnamed276(); | 1004 o.audienceSegmentGroups = buildUnnamed1060(); |
970 o.billingInvoiceCode = "foo"; | 1005 o.billingInvoiceCode = "foo"; |
971 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); | 1006 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); |
972 o.comment = "foo"; | 1007 o.comment = "foo"; |
973 o.comscoreVceEnabled = true; | 1008 o.comscoreVceEnabled = true; |
974 o.createInfo = buildLastModifiedInfo(); | 1009 o.createInfo = buildLastModifiedInfo(); |
975 o.creativeGroupIds = buildUnnamed277(); | 1010 o.creativeGroupIds = buildUnnamed1061(); |
976 o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration
(); | 1011 o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration
(); |
977 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr
operties(); | 1012 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr
operties(); |
978 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 1013 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
979 o.eventTagOverrides = buildUnnamed278(); | 1014 o.eventTagOverrides = buildUnnamed1062(); |
980 o.externalId = "foo"; | 1015 o.externalId = "foo"; |
981 o.id = "foo"; | 1016 o.id = "foo"; |
982 o.idDimensionValue = buildDimensionValue(); | 1017 o.idDimensionValue = buildDimensionValue(); |
983 o.kind = "foo"; | 1018 o.kind = "foo"; |
984 o.lastModifiedInfo = buildLastModifiedInfo(); | 1019 o.lastModifiedInfo = buildLastModifiedInfo(); |
985 o.lookbackConfiguration = buildLookbackConfiguration(); | 1020 o.lookbackConfiguration = buildLookbackConfiguration(); |
986 o.name = "foo"; | 1021 o.name = "foo"; |
987 o.nielsenOcrEnabled = true; | 1022 o.nielsenOcrEnabled = true; |
988 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 1023 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
989 o.subaccountId = "foo"; | 1024 o.subaccountId = "foo"; |
990 o.traffickerEmails = buildUnnamed279(); | 1025 o.traffickerEmails = buildUnnamed1063(); |
991 } | 1026 } |
992 buildCounterCampaign--; | 1027 buildCounterCampaign--; |
993 return o; | 1028 return o; |
994 } | 1029 } |
995 | 1030 |
996 checkCampaign(api.Campaign o) { | 1031 checkCampaign(api.Campaign o) { |
997 buildCounterCampaign++; | 1032 buildCounterCampaign++; |
998 if (buildCounterCampaign < 3) { | 1033 if (buildCounterCampaign < 3) { |
999 unittest.expect(o.accountId, unittest.equals('foo')); | 1034 unittest.expect(o.accountId, unittest.equals('foo')); |
1000 checkUnnamed275(o.additionalCreativeOptimizationConfigurations); | 1035 checkUnnamed1059(o.additionalCreativeOptimizationConfigurations); |
1001 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); | 1036 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); |
1002 unittest.expect(o.advertiserId, unittest.equals('foo')); | 1037 unittest.expect(o.advertiserId, unittest.equals('foo')); |
1003 checkDimensionValue(o.advertiserIdDimensionValue); | 1038 checkDimensionValue(o.advertiserIdDimensionValue); |
1004 unittest.expect(o.archived, unittest.isTrue); | 1039 unittest.expect(o.archived, unittest.isTrue); |
1005 checkUnnamed276(o.audienceSegmentGroups); | 1040 checkUnnamed1060(o.audienceSegmentGroups); |
1006 unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); | 1041 unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); |
1007 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); | 1042 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); |
1008 unittest.expect(o.comment, unittest.equals('foo')); | 1043 unittest.expect(o.comment, unittest.equals('foo')); |
1009 unittest.expect(o.comscoreVceEnabled, unittest.isTrue); | 1044 unittest.expect(o.comscoreVceEnabled, unittest.isTrue); |
1010 checkLastModifiedInfo(o.createInfo); | 1045 checkLastModifiedInfo(o.createInfo); |
1011 checkUnnamed277(o.creativeGroupIds); | 1046 checkUnnamed1061(o.creativeGroupIds); |
1012 checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); | 1047 checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); |
1013 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp
erties); | 1048 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp
erties); |
1014 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 1049 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
1015 checkUnnamed278(o.eventTagOverrides); | 1050 checkUnnamed1062(o.eventTagOverrides); |
1016 unittest.expect(o.externalId, unittest.equals('foo')); | 1051 unittest.expect(o.externalId, unittest.equals('foo')); |
1017 unittest.expect(o.id, unittest.equals('foo')); | 1052 unittest.expect(o.id, unittest.equals('foo')); |
1018 checkDimensionValue(o.idDimensionValue); | 1053 checkDimensionValue(o.idDimensionValue); |
1019 unittest.expect(o.kind, unittest.equals('foo')); | 1054 unittest.expect(o.kind, unittest.equals('foo')); |
1020 checkLastModifiedInfo(o.lastModifiedInfo); | 1055 checkLastModifiedInfo(o.lastModifiedInfo); |
1021 checkLookbackConfiguration(o.lookbackConfiguration); | 1056 checkLookbackConfiguration(o.lookbackConfiguration); |
1022 unittest.expect(o.name, unittest.equals('foo')); | 1057 unittest.expect(o.name, unittest.equals('foo')); |
1023 unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); | 1058 unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); |
1024 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 1059 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
1025 unittest.expect(o.subaccountId, unittest.equals('foo')); | 1060 unittest.expect(o.subaccountId, unittest.equals('foo')); |
1026 checkUnnamed279(o.traffickerEmails); | 1061 checkUnnamed1063(o.traffickerEmails); |
1027 } | 1062 } |
1028 buildCounterCampaign--; | 1063 buildCounterCampaign--; |
1029 } | 1064 } |
1030 | 1065 |
1031 core.int buildCounterCampaignCreativeAssociation = 0; | 1066 core.int buildCounterCampaignCreativeAssociation = 0; |
1032 buildCampaignCreativeAssociation() { | 1067 buildCampaignCreativeAssociation() { |
1033 var o = new api.CampaignCreativeAssociation(); | 1068 var o = new api.CampaignCreativeAssociation(); |
1034 buildCounterCampaignCreativeAssociation++; | 1069 buildCounterCampaignCreativeAssociation++; |
1035 if (buildCounterCampaignCreativeAssociation < 3) { | 1070 if (buildCounterCampaignCreativeAssociation < 3) { |
1036 o.creativeId = "foo"; | 1071 o.creativeId = "foo"; |
1037 o.kind = "foo"; | 1072 o.kind = "foo"; |
1038 } | 1073 } |
1039 buildCounterCampaignCreativeAssociation--; | 1074 buildCounterCampaignCreativeAssociation--; |
1040 return o; | 1075 return o; |
1041 } | 1076 } |
1042 | 1077 |
1043 checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) { | 1078 checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) { |
1044 buildCounterCampaignCreativeAssociation++; | 1079 buildCounterCampaignCreativeAssociation++; |
1045 if (buildCounterCampaignCreativeAssociation < 3) { | 1080 if (buildCounterCampaignCreativeAssociation < 3) { |
1046 unittest.expect(o.creativeId, unittest.equals('foo')); | 1081 unittest.expect(o.creativeId, unittest.equals('foo')); |
1047 unittest.expect(o.kind, unittest.equals('foo')); | 1082 unittest.expect(o.kind, unittest.equals('foo')); |
1048 } | 1083 } |
1049 buildCounterCampaignCreativeAssociation--; | 1084 buildCounterCampaignCreativeAssociation--; |
1050 } | 1085 } |
1051 | 1086 |
1052 buildUnnamed280() { | 1087 buildUnnamed1064() { |
1053 var o = new core.List<api.CampaignCreativeAssociation>(); | 1088 var o = new core.List<api.CampaignCreativeAssociation>(); |
1054 o.add(buildCampaignCreativeAssociation()); | 1089 o.add(buildCampaignCreativeAssociation()); |
1055 o.add(buildCampaignCreativeAssociation()); | 1090 o.add(buildCampaignCreativeAssociation()); |
1056 return o; | 1091 return o; |
1057 } | 1092 } |
1058 | 1093 |
1059 checkUnnamed280(core.List<api.CampaignCreativeAssociation> o) { | 1094 checkUnnamed1064(core.List<api.CampaignCreativeAssociation> o) { |
1060 unittest.expect(o, unittest.hasLength(2)); | 1095 unittest.expect(o, unittest.hasLength(2)); |
1061 checkCampaignCreativeAssociation(o[0]); | 1096 checkCampaignCreativeAssociation(o[0]); |
1062 checkCampaignCreativeAssociation(o[1]); | 1097 checkCampaignCreativeAssociation(o[1]); |
1063 } | 1098 } |
1064 | 1099 |
1065 core.int buildCounterCampaignCreativeAssociationsListResponse = 0; | 1100 core.int buildCounterCampaignCreativeAssociationsListResponse = 0; |
1066 buildCampaignCreativeAssociationsListResponse() { | 1101 buildCampaignCreativeAssociationsListResponse() { |
1067 var o = new api.CampaignCreativeAssociationsListResponse(); | 1102 var o = new api.CampaignCreativeAssociationsListResponse(); |
1068 buildCounterCampaignCreativeAssociationsListResponse++; | 1103 buildCounterCampaignCreativeAssociationsListResponse++; |
1069 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { | 1104 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { |
1070 o.campaignCreativeAssociations = buildUnnamed280(); | 1105 o.campaignCreativeAssociations = buildUnnamed1064(); |
1071 o.kind = "foo"; | 1106 o.kind = "foo"; |
1072 o.nextPageToken = "foo"; | 1107 o.nextPageToken = "foo"; |
1073 } | 1108 } |
1074 buildCounterCampaignCreativeAssociationsListResponse--; | 1109 buildCounterCampaignCreativeAssociationsListResponse--; |
1075 return o; | 1110 return o; |
1076 } | 1111 } |
1077 | 1112 |
1078 checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsLi
stResponse o) { | 1113 checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsLi
stResponse o) { |
1079 buildCounterCampaignCreativeAssociationsListResponse++; | 1114 buildCounterCampaignCreativeAssociationsListResponse++; |
1080 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { | 1115 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { |
1081 checkUnnamed280(o.campaignCreativeAssociations); | 1116 checkUnnamed1064(o.campaignCreativeAssociations); |
1082 unittest.expect(o.kind, unittest.equals('foo')); | 1117 unittest.expect(o.kind, unittest.equals('foo')); |
1083 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1118 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1084 } | 1119 } |
1085 buildCounterCampaignCreativeAssociationsListResponse--; | 1120 buildCounterCampaignCreativeAssociationsListResponse--; |
1086 } | 1121 } |
1087 | 1122 |
1088 buildUnnamed281() { | 1123 buildUnnamed1065() { |
1089 var o = new core.List<api.Campaign>(); | 1124 var o = new core.List<api.Campaign>(); |
1090 o.add(buildCampaign()); | 1125 o.add(buildCampaign()); |
1091 o.add(buildCampaign()); | 1126 o.add(buildCampaign()); |
1092 return o; | 1127 return o; |
1093 } | 1128 } |
1094 | 1129 |
1095 checkUnnamed281(core.List<api.Campaign> o) { | 1130 checkUnnamed1065(core.List<api.Campaign> o) { |
1096 unittest.expect(o, unittest.hasLength(2)); | 1131 unittest.expect(o, unittest.hasLength(2)); |
1097 checkCampaign(o[0]); | 1132 checkCampaign(o[0]); |
1098 checkCampaign(o[1]); | 1133 checkCampaign(o[1]); |
1099 } | 1134 } |
1100 | 1135 |
1101 core.int buildCounterCampaignsListResponse = 0; | 1136 core.int buildCounterCampaignsListResponse = 0; |
1102 buildCampaignsListResponse() { | 1137 buildCampaignsListResponse() { |
1103 var o = new api.CampaignsListResponse(); | 1138 var o = new api.CampaignsListResponse(); |
1104 buildCounterCampaignsListResponse++; | 1139 buildCounterCampaignsListResponse++; |
1105 if (buildCounterCampaignsListResponse < 3) { | 1140 if (buildCounterCampaignsListResponse < 3) { |
1106 o.campaigns = buildUnnamed281(); | 1141 o.campaigns = buildUnnamed1065(); |
1107 o.kind = "foo"; | 1142 o.kind = "foo"; |
1108 o.nextPageToken = "foo"; | 1143 o.nextPageToken = "foo"; |
1109 } | 1144 } |
1110 buildCounterCampaignsListResponse--; | 1145 buildCounterCampaignsListResponse--; |
1111 return o; | 1146 return o; |
1112 } | 1147 } |
1113 | 1148 |
1114 checkCampaignsListResponse(api.CampaignsListResponse o) { | 1149 checkCampaignsListResponse(api.CampaignsListResponse o) { |
1115 buildCounterCampaignsListResponse++; | 1150 buildCounterCampaignsListResponse++; |
1116 if (buildCounterCampaignsListResponse < 3) { | 1151 if (buildCounterCampaignsListResponse < 3) { |
1117 checkUnnamed281(o.campaigns); | 1152 checkUnnamed1065(o.campaigns); |
1118 unittest.expect(o.kind, unittest.equals('foo')); | 1153 unittest.expect(o.kind, unittest.equals('foo')); |
1119 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1154 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1120 } | 1155 } |
1121 buildCounterCampaignsListResponse--; | 1156 buildCounterCampaignsListResponse--; |
1122 } | 1157 } |
1123 | 1158 |
1124 core.int buildCounterChangeLog = 0; | 1159 core.int buildCounterChangeLog = 0; |
1125 buildChangeLog() { | 1160 buildChangeLog() { |
1126 var o = new api.ChangeLog(); | 1161 var o = new api.ChangeLog(); |
1127 buildCounterChangeLog++; | 1162 buildCounterChangeLog++; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 unittest.expect(o.objectType, unittest.equals('foo')); | 1194 unittest.expect(o.objectType, unittest.equals('foo')); |
1160 unittest.expect(o.oldValue, unittest.equals('foo')); | 1195 unittest.expect(o.oldValue, unittest.equals('foo')); |
1161 unittest.expect(o.subaccountId, unittest.equals('foo')); | 1196 unittest.expect(o.subaccountId, unittest.equals('foo')); |
1162 unittest.expect(o.transactionId, unittest.equals('foo')); | 1197 unittest.expect(o.transactionId, unittest.equals('foo')); |
1163 unittest.expect(o.userProfileId, unittest.equals('foo')); | 1198 unittest.expect(o.userProfileId, unittest.equals('foo')); |
1164 unittest.expect(o.userProfileName, unittest.equals('foo')); | 1199 unittest.expect(o.userProfileName, unittest.equals('foo')); |
1165 } | 1200 } |
1166 buildCounterChangeLog--; | 1201 buildCounterChangeLog--; |
1167 } | 1202 } |
1168 | 1203 |
1169 buildUnnamed282() { | 1204 buildUnnamed1066() { |
1170 var o = new core.List<api.ChangeLog>(); | 1205 var o = new core.List<api.ChangeLog>(); |
1171 o.add(buildChangeLog()); | 1206 o.add(buildChangeLog()); |
1172 o.add(buildChangeLog()); | 1207 o.add(buildChangeLog()); |
1173 return o; | 1208 return o; |
1174 } | 1209 } |
1175 | 1210 |
1176 checkUnnamed282(core.List<api.ChangeLog> o) { | 1211 checkUnnamed1066(core.List<api.ChangeLog> o) { |
1177 unittest.expect(o, unittest.hasLength(2)); | 1212 unittest.expect(o, unittest.hasLength(2)); |
1178 checkChangeLog(o[0]); | 1213 checkChangeLog(o[0]); |
1179 checkChangeLog(o[1]); | 1214 checkChangeLog(o[1]); |
1180 } | 1215 } |
1181 | 1216 |
1182 core.int buildCounterChangeLogsListResponse = 0; | 1217 core.int buildCounterChangeLogsListResponse = 0; |
1183 buildChangeLogsListResponse() { | 1218 buildChangeLogsListResponse() { |
1184 var o = new api.ChangeLogsListResponse(); | 1219 var o = new api.ChangeLogsListResponse(); |
1185 buildCounterChangeLogsListResponse++; | 1220 buildCounterChangeLogsListResponse++; |
1186 if (buildCounterChangeLogsListResponse < 3) { | 1221 if (buildCounterChangeLogsListResponse < 3) { |
1187 o.changeLogs = buildUnnamed282(); | 1222 o.changeLogs = buildUnnamed1066(); |
1188 o.kind = "foo"; | 1223 o.kind = "foo"; |
1189 o.nextPageToken = "foo"; | 1224 o.nextPageToken = "foo"; |
1190 } | 1225 } |
1191 buildCounterChangeLogsListResponse--; | 1226 buildCounterChangeLogsListResponse--; |
1192 return o; | 1227 return o; |
1193 } | 1228 } |
1194 | 1229 |
1195 checkChangeLogsListResponse(api.ChangeLogsListResponse o) { | 1230 checkChangeLogsListResponse(api.ChangeLogsListResponse o) { |
1196 buildCounterChangeLogsListResponse++; | 1231 buildCounterChangeLogsListResponse++; |
1197 if (buildCounterChangeLogsListResponse < 3) { | 1232 if (buildCounterChangeLogsListResponse < 3) { |
1198 checkUnnamed282(o.changeLogs); | 1233 checkUnnamed1066(o.changeLogs); |
1199 unittest.expect(o.kind, unittest.equals('foo')); | 1234 unittest.expect(o.kind, unittest.equals('foo')); |
1200 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1235 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1201 } | 1236 } |
1202 buildCounterChangeLogsListResponse--; | 1237 buildCounterChangeLogsListResponse--; |
1203 } | 1238 } |
1204 | 1239 |
1205 buildUnnamed283() { | 1240 buildUnnamed1067() { |
1206 var o = new core.List<api.City>(); | 1241 var o = new core.List<api.City>(); |
1207 o.add(buildCity()); | 1242 o.add(buildCity()); |
1208 o.add(buildCity()); | 1243 o.add(buildCity()); |
1209 return o; | 1244 return o; |
1210 } | 1245 } |
1211 | 1246 |
1212 checkUnnamed283(core.List<api.City> o) { | 1247 checkUnnamed1067(core.List<api.City> o) { |
1213 unittest.expect(o, unittest.hasLength(2)); | 1248 unittest.expect(o, unittest.hasLength(2)); |
1214 checkCity(o[0]); | 1249 checkCity(o[0]); |
1215 checkCity(o[1]); | 1250 checkCity(o[1]); |
1216 } | 1251 } |
1217 | 1252 |
1218 core.int buildCounterCitiesListResponse = 0; | 1253 core.int buildCounterCitiesListResponse = 0; |
1219 buildCitiesListResponse() { | 1254 buildCitiesListResponse() { |
1220 var o = new api.CitiesListResponse(); | 1255 var o = new api.CitiesListResponse(); |
1221 buildCounterCitiesListResponse++; | 1256 buildCounterCitiesListResponse++; |
1222 if (buildCounterCitiesListResponse < 3) { | 1257 if (buildCounterCitiesListResponse < 3) { |
1223 o.cities = buildUnnamed283(); | 1258 o.cities = buildUnnamed1067(); |
1224 o.kind = "foo"; | 1259 o.kind = "foo"; |
1225 } | 1260 } |
1226 buildCounterCitiesListResponse--; | 1261 buildCounterCitiesListResponse--; |
1227 return o; | 1262 return o; |
1228 } | 1263 } |
1229 | 1264 |
1230 checkCitiesListResponse(api.CitiesListResponse o) { | 1265 checkCitiesListResponse(api.CitiesListResponse o) { |
1231 buildCounterCitiesListResponse++; | 1266 buildCounterCitiesListResponse++; |
1232 if (buildCounterCitiesListResponse < 3) { | 1267 if (buildCounterCitiesListResponse < 3) { |
1233 checkUnnamed283(o.cities); | 1268 checkUnnamed1067(o.cities); |
1234 unittest.expect(o.kind, unittest.equals('foo')); | 1269 unittest.expect(o.kind, unittest.equals('foo')); |
1235 } | 1270 } |
1236 buildCounterCitiesListResponse--; | 1271 buildCounterCitiesListResponse--; |
1237 } | 1272 } |
1238 | 1273 |
1239 core.int buildCounterCity = 0; | 1274 core.int buildCounterCity = 0; |
1240 buildCity() { | 1275 buildCity() { |
1241 var o = new api.City(); | 1276 var o = new api.City(); |
1242 buildCounterCity++; | 1277 buildCounterCity++; |
1243 if (buildCounterCity < 3) { | 1278 if (buildCounterCity < 3) { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 checkConnectionType(api.ConnectionType o) { | 1439 checkConnectionType(api.ConnectionType o) { |
1405 buildCounterConnectionType++; | 1440 buildCounterConnectionType++; |
1406 if (buildCounterConnectionType < 3) { | 1441 if (buildCounterConnectionType < 3) { |
1407 unittest.expect(o.id, unittest.equals('foo')); | 1442 unittest.expect(o.id, unittest.equals('foo')); |
1408 unittest.expect(o.kind, unittest.equals('foo')); | 1443 unittest.expect(o.kind, unittest.equals('foo')); |
1409 unittest.expect(o.name, unittest.equals('foo')); | 1444 unittest.expect(o.name, unittest.equals('foo')); |
1410 } | 1445 } |
1411 buildCounterConnectionType--; | 1446 buildCounterConnectionType--; |
1412 } | 1447 } |
1413 | 1448 |
1414 buildUnnamed284() { | 1449 buildUnnamed1068() { |
1415 var o = new core.List<api.ConnectionType>(); | 1450 var o = new core.List<api.ConnectionType>(); |
1416 o.add(buildConnectionType()); | 1451 o.add(buildConnectionType()); |
1417 o.add(buildConnectionType()); | 1452 o.add(buildConnectionType()); |
1418 return o; | 1453 return o; |
1419 } | 1454 } |
1420 | 1455 |
1421 checkUnnamed284(core.List<api.ConnectionType> o) { | 1456 checkUnnamed1068(core.List<api.ConnectionType> o) { |
1422 unittest.expect(o, unittest.hasLength(2)); | 1457 unittest.expect(o, unittest.hasLength(2)); |
1423 checkConnectionType(o[0]); | 1458 checkConnectionType(o[0]); |
1424 checkConnectionType(o[1]); | 1459 checkConnectionType(o[1]); |
1425 } | 1460 } |
1426 | 1461 |
1427 core.int buildCounterConnectionTypesListResponse = 0; | 1462 core.int buildCounterConnectionTypesListResponse = 0; |
1428 buildConnectionTypesListResponse() { | 1463 buildConnectionTypesListResponse() { |
1429 var o = new api.ConnectionTypesListResponse(); | 1464 var o = new api.ConnectionTypesListResponse(); |
1430 buildCounterConnectionTypesListResponse++; | 1465 buildCounterConnectionTypesListResponse++; |
1431 if (buildCounterConnectionTypesListResponse < 3) { | 1466 if (buildCounterConnectionTypesListResponse < 3) { |
1432 o.connectionTypes = buildUnnamed284(); | 1467 o.connectionTypes = buildUnnamed1068(); |
1433 o.kind = "foo"; | 1468 o.kind = "foo"; |
1434 } | 1469 } |
1435 buildCounterConnectionTypesListResponse--; | 1470 buildCounterConnectionTypesListResponse--; |
1436 return o; | 1471 return o; |
1437 } | 1472 } |
1438 | 1473 |
1439 checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { | 1474 checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { |
1440 buildCounterConnectionTypesListResponse++; | 1475 buildCounterConnectionTypesListResponse++; |
1441 if (buildCounterConnectionTypesListResponse < 3) { | 1476 if (buildCounterConnectionTypesListResponse < 3) { |
1442 checkUnnamed284(o.connectionTypes); | 1477 checkUnnamed1068(o.connectionTypes); |
1443 unittest.expect(o.kind, unittest.equals('foo')); | 1478 unittest.expect(o.kind, unittest.equals('foo')); |
1444 } | 1479 } |
1445 buildCounterConnectionTypesListResponse--; | 1480 buildCounterConnectionTypesListResponse--; |
1446 } | 1481 } |
1447 | 1482 |
1448 buildUnnamed285() { | 1483 buildUnnamed1069() { |
1449 var o = new core.List<api.ContentCategory>(); | 1484 var o = new core.List<api.ContentCategory>(); |
1450 o.add(buildContentCategory()); | 1485 o.add(buildContentCategory()); |
1451 o.add(buildContentCategory()); | 1486 o.add(buildContentCategory()); |
1452 return o; | 1487 return o; |
1453 } | 1488 } |
1454 | 1489 |
1455 checkUnnamed285(core.List<api.ContentCategory> o) { | 1490 checkUnnamed1069(core.List<api.ContentCategory> o) { |
1456 unittest.expect(o, unittest.hasLength(2)); | 1491 unittest.expect(o, unittest.hasLength(2)); |
1457 checkContentCategory(o[0]); | 1492 checkContentCategory(o[0]); |
1458 checkContentCategory(o[1]); | 1493 checkContentCategory(o[1]); |
1459 } | 1494 } |
1460 | 1495 |
1461 core.int buildCounterContentCategoriesListResponse = 0; | 1496 core.int buildCounterContentCategoriesListResponse = 0; |
1462 buildContentCategoriesListResponse() { | 1497 buildContentCategoriesListResponse() { |
1463 var o = new api.ContentCategoriesListResponse(); | 1498 var o = new api.ContentCategoriesListResponse(); |
1464 buildCounterContentCategoriesListResponse++; | 1499 buildCounterContentCategoriesListResponse++; |
1465 if (buildCounterContentCategoriesListResponse < 3) { | 1500 if (buildCounterContentCategoriesListResponse < 3) { |
1466 o.contentCategories = buildUnnamed285(); | 1501 o.contentCategories = buildUnnamed1069(); |
1467 o.kind = "foo"; | 1502 o.kind = "foo"; |
1468 o.nextPageToken = "foo"; | 1503 o.nextPageToken = "foo"; |
1469 } | 1504 } |
1470 buildCounterContentCategoriesListResponse--; | 1505 buildCounterContentCategoriesListResponse--; |
1471 return o; | 1506 return o; |
1472 } | 1507 } |
1473 | 1508 |
1474 checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { | 1509 checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { |
1475 buildCounterContentCategoriesListResponse++; | 1510 buildCounterContentCategoriesListResponse++; |
1476 if (buildCounterContentCategoriesListResponse < 3) { | 1511 if (buildCounterContentCategoriesListResponse < 3) { |
1477 checkUnnamed285(o.contentCategories); | 1512 checkUnnamed1069(o.contentCategories); |
1478 unittest.expect(o.kind, unittest.equals('foo')); | 1513 unittest.expect(o.kind, unittest.equals('foo')); |
1479 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1514 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1480 } | 1515 } |
1481 buildCounterContentCategoriesListResponse--; | 1516 buildCounterContentCategoriesListResponse--; |
1482 } | 1517 } |
1483 | 1518 |
1484 core.int buildCounterContentCategory = 0; | 1519 core.int buildCounterContentCategory = 0; |
1485 buildContentCategory() { | 1520 buildContentCategory() { |
1486 var o = new api.ContentCategory(); | 1521 var o = new api.ContentCategory(); |
1487 buildCounterContentCategory++; | 1522 buildCounterContentCategory++; |
1488 if (buildCounterContentCategory < 3) { | 1523 if (buildCounterContentCategory < 3) { |
1489 o.accountId = "foo"; | 1524 o.accountId = "foo"; |
1490 o.description = "foo"; | |
1491 o.id = "foo"; | 1525 o.id = "foo"; |
1492 o.kind = "foo"; | 1526 o.kind = "foo"; |
1493 o.name = "foo"; | 1527 o.name = "foo"; |
1494 } | 1528 } |
1495 buildCounterContentCategory--; | 1529 buildCounterContentCategory--; |
1496 return o; | 1530 return o; |
1497 } | 1531 } |
1498 | 1532 |
1499 checkContentCategory(api.ContentCategory o) { | 1533 checkContentCategory(api.ContentCategory o) { |
1500 buildCounterContentCategory++; | 1534 buildCounterContentCategory++; |
1501 if (buildCounterContentCategory < 3) { | 1535 if (buildCounterContentCategory < 3) { |
1502 unittest.expect(o.accountId, unittest.equals('foo')); | 1536 unittest.expect(o.accountId, unittest.equals('foo')); |
1503 unittest.expect(o.description, unittest.equals('foo')); | |
1504 unittest.expect(o.id, unittest.equals('foo')); | 1537 unittest.expect(o.id, unittest.equals('foo')); |
1505 unittest.expect(o.kind, unittest.equals('foo')); | 1538 unittest.expect(o.kind, unittest.equals('foo')); |
1506 unittest.expect(o.name, unittest.equals('foo')); | 1539 unittest.expect(o.name, unittest.equals('foo')); |
1507 } | 1540 } |
1508 buildCounterContentCategory--; | 1541 buildCounterContentCategory--; |
1509 } | 1542 } |
1510 | 1543 |
1511 buildUnnamed286() { | 1544 buildUnnamed1070() { |
1512 var o = new core.List<api.Country>(); | 1545 var o = new core.List<api.Country>(); |
1513 o.add(buildCountry()); | 1546 o.add(buildCountry()); |
1514 o.add(buildCountry()); | 1547 o.add(buildCountry()); |
1515 return o; | 1548 return o; |
1516 } | 1549 } |
1517 | 1550 |
1518 checkUnnamed286(core.List<api.Country> o) { | 1551 checkUnnamed1070(core.List<api.Country> o) { |
1519 unittest.expect(o, unittest.hasLength(2)); | 1552 unittest.expect(o, unittest.hasLength(2)); |
1520 checkCountry(o[0]); | 1553 checkCountry(o[0]); |
1521 checkCountry(o[1]); | 1554 checkCountry(o[1]); |
1522 } | 1555 } |
1523 | 1556 |
1524 core.int buildCounterCountriesListResponse = 0; | 1557 core.int buildCounterCountriesListResponse = 0; |
1525 buildCountriesListResponse() { | 1558 buildCountriesListResponse() { |
1526 var o = new api.CountriesListResponse(); | 1559 var o = new api.CountriesListResponse(); |
1527 buildCounterCountriesListResponse++; | 1560 buildCounterCountriesListResponse++; |
1528 if (buildCounterCountriesListResponse < 3) { | 1561 if (buildCounterCountriesListResponse < 3) { |
1529 o.countries = buildUnnamed286(); | 1562 o.countries = buildUnnamed1070(); |
1530 o.kind = "foo"; | 1563 o.kind = "foo"; |
1531 } | 1564 } |
1532 buildCounterCountriesListResponse--; | 1565 buildCounterCountriesListResponse--; |
1533 return o; | 1566 return o; |
1534 } | 1567 } |
1535 | 1568 |
1536 checkCountriesListResponse(api.CountriesListResponse o) { | 1569 checkCountriesListResponse(api.CountriesListResponse o) { |
1537 buildCounterCountriesListResponse++; | 1570 buildCounterCountriesListResponse++; |
1538 if (buildCounterCountriesListResponse < 3) { | 1571 if (buildCounterCountriesListResponse < 3) { |
1539 checkUnnamed286(o.countries); | 1572 checkUnnamed1070(o.countries); |
1540 unittest.expect(o.kind, unittest.equals('foo')); | 1573 unittest.expect(o.kind, unittest.equals('foo')); |
1541 } | 1574 } |
1542 buildCounterCountriesListResponse--; | 1575 buildCounterCountriesListResponse--; |
1543 } | 1576 } |
1544 | 1577 |
1545 core.int buildCounterCountry = 0; | 1578 core.int buildCounterCountry = 0; |
1546 buildCountry() { | 1579 buildCountry() { |
1547 var o = new api.Country(); | 1580 var o = new api.Country(); |
1548 buildCounterCountry++; | 1581 buildCounterCountry++; |
1549 if (buildCounterCountry < 3) { | 1582 if (buildCounterCountry < 3) { |
(...skipping 12 matching lines...) Expand all Loading... |
1562 if (buildCounterCountry < 3) { | 1595 if (buildCounterCountry < 3) { |
1563 unittest.expect(o.countryCode, unittest.equals('foo')); | 1596 unittest.expect(o.countryCode, unittest.equals('foo')); |
1564 unittest.expect(o.dartId, unittest.equals('foo')); | 1597 unittest.expect(o.dartId, unittest.equals('foo')); |
1565 unittest.expect(o.kind, unittest.equals('foo')); | 1598 unittest.expect(o.kind, unittest.equals('foo')); |
1566 unittest.expect(o.name, unittest.equals('foo')); | 1599 unittest.expect(o.name, unittest.equals('foo')); |
1567 unittest.expect(o.sslEnabled, unittest.isTrue); | 1600 unittest.expect(o.sslEnabled, unittest.isTrue); |
1568 } | 1601 } |
1569 buildCounterCountry--; | 1602 buildCounterCountry--; |
1570 } | 1603 } |
1571 | 1604 |
1572 buildUnnamed287() { | 1605 buildUnnamed1071() { |
1573 var o = new core.List<core.String>(); | 1606 var o = new core.List<core.String>(); |
1574 o.add("foo"); | 1607 o.add("foo"); |
1575 o.add("foo"); | 1608 o.add("foo"); |
1576 return o; | 1609 return o; |
1577 } | 1610 } |
1578 | 1611 |
1579 checkUnnamed287(core.List<core.String> o) { | 1612 checkUnnamed1071(core.List<core.String> o) { |
1580 unittest.expect(o, unittest.hasLength(2)); | 1613 unittest.expect(o, unittest.hasLength(2)); |
1581 unittest.expect(o[0], unittest.equals('foo')); | 1614 unittest.expect(o[0], unittest.equals('foo')); |
1582 unittest.expect(o[1], unittest.equals('foo')); | 1615 unittest.expect(o[1], unittest.equals('foo')); |
1583 } | 1616 } |
1584 | 1617 |
1585 buildUnnamed288() { | 1618 buildUnnamed1072() { |
1586 var o = new core.List<core.String>(); | 1619 var o = new core.List<core.String>(); |
1587 o.add("foo"); | 1620 o.add("foo"); |
1588 o.add("foo"); | 1621 o.add("foo"); |
1589 return o; | 1622 return o; |
1590 } | 1623 } |
1591 | 1624 |
1592 checkUnnamed288(core.List<core.String> o) { | 1625 checkUnnamed1072(core.List<core.String> o) { |
1593 unittest.expect(o, unittest.hasLength(2)); | 1626 unittest.expect(o, unittest.hasLength(2)); |
1594 unittest.expect(o[0], unittest.equals('foo')); | 1627 unittest.expect(o[0], unittest.equals('foo')); |
1595 unittest.expect(o[1], unittest.equals('foo')); | 1628 unittest.expect(o[1], unittest.equals('foo')); |
1596 } | 1629 } |
1597 | 1630 |
1598 buildUnnamed289() { | 1631 buildUnnamed1073() { |
1599 var o = new core.List<api.ClickTag>(); | 1632 var o = new core.List<api.ClickTag>(); |
1600 o.add(buildClickTag()); | 1633 o.add(buildClickTag()); |
1601 o.add(buildClickTag()); | 1634 o.add(buildClickTag()); |
1602 return o; | 1635 return o; |
1603 } | 1636 } |
1604 | 1637 |
1605 checkUnnamed289(core.List<api.ClickTag> o) { | 1638 checkUnnamed1073(core.List<api.ClickTag> o) { |
1606 unittest.expect(o, unittest.hasLength(2)); | 1639 unittest.expect(o, unittest.hasLength(2)); |
1607 checkClickTag(o[0]); | 1640 checkClickTag(o[0]); |
1608 checkClickTag(o[1]); | 1641 checkClickTag(o[1]); |
1609 } | 1642 } |
1610 | 1643 |
1611 buildUnnamed290() { | 1644 buildUnnamed1074() { |
1612 var o = new core.List<core.String>(); | 1645 var o = new core.List<core.String>(); |
1613 o.add("foo"); | 1646 o.add("foo"); |
1614 o.add("foo"); | 1647 o.add("foo"); |
1615 return o; | 1648 return o; |
1616 } | 1649 } |
1617 | 1650 |
1618 checkUnnamed290(core.List<core.String> o) { | 1651 checkUnnamed1074(core.List<core.String> o) { |
1619 unittest.expect(o, unittest.hasLength(2)); | 1652 unittest.expect(o, unittest.hasLength(2)); |
1620 unittest.expect(o[0], unittest.equals('foo')); | 1653 unittest.expect(o[0], unittest.equals('foo')); |
1621 unittest.expect(o[1], unittest.equals('foo')); | 1654 unittest.expect(o[1], unittest.equals('foo')); |
1622 } | 1655 } |
1623 | 1656 |
1624 buildUnnamed291() { | 1657 buildUnnamed1075() { |
1625 var o = new core.List<core.String>(); | 1658 var o = new core.List<core.String>(); |
1626 o.add("foo"); | 1659 o.add("foo"); |
1627 o.add("foo"); | 1660 o.add("foo"); |
1628 return o; | 1661 return o; |
1629 } | 1662 } |
1630 | 1663 |
1631 checkUnnamed291(core.List<core.String> o) { | 1664 checkUnnamed1075(core.List<core.String> o) { |
1632 unittest.expect(o, unittest.hasLength(2)); | 1665 unittest.expect(o, unittest.hasLength(2)); |
1633 unittest.expect(o[0], unittest.equals('foo')); | 1666 unittest.expect(o[0], unittest.equals('foo')); |
1634 unittest.expect(o[1], unittest.equals('foo')); | 1667 unittest.expect(o[1], unittest.equals('foo')); |
1635 } | 1668 } |
1636 | 1669 |
1637 buildUnnamed292() { | 1670 buildUnnamed1076() { |
1638 var o = new core.List<api.CreativeCustomEvent>(); | 1671 var o = new core.List<api.CreativeCustomEvent>(); |
1639 o.add(buildCreativeCustomEvent()); | 1672 o.add(buildCreativeCustomEvent()); |
1640 o.add(buildCreativeCustomEvent()); | 1673 o.add(buildCreativeCustomEvent()); |
1641 return o; | 1674 return o; |
1642 } | 1675 } |
1643 | 1676 |
1644 checkUnnamed292(core.List<api.CreativeCustomEvent> o) { | 1677 checkUnnamed1076(core.List<api.CreativeCustomEvent> o) { |
1645 unittest.expect(o, unittest.hasLength(2)); | 1678 unittest.expect(o, unittest.hasLength(2)); |
1646 checkCreativeCustomEvent(o[0]); | 1679 checkCreativeCustomEvent(o[0]); |
1647 checkCreativeCustomEvent(o[1]); | 1680 checkCreativeCustomEvent(o[1]); |
1648 } | 1681 } |
1649 | 1682 |
1650 buildUnnamed293() { | 1683 buildUnnamed1077() { |
1651 var o = new core.List<api.CreativeAsset>(); | 1684 var o = new core.List<api.CreativeAsset>(); |
1652 o.add(buildCreativeAsset()); | 1685 o.add(buildCreativeAsset()); |
1653 o.add(buildCreativeAsset()); | 1686 o.add(buildCreativeAsset()); |
1654 return o; | 1687 return o; |
1655 } | 1688 } |
1656 | 1689 |
1657 checkUnnamed293(core.List<api.CreativeAsset> o) { | 1690 checkUnnamed1077(core.List<api.CreativeAsset> o) { |
1658 unittest.expect(o, unittest.hasLength(2)); | 1691 unittest.expect(o, unittest.hasLength(2)); |
1659 checkCreativeAsset(o[0]); | 1692 checkCreativeAsset(o[0]); |
1660 checkCreativeAsset(o[1]); | 1693 checkCreativeAsset(o[1]); |
1661 } | 1694 } |
1662 | 1695 |
1663 buildUnnamed294() { | 1696 buildUnnamed1078() { |
1664 var o = new core.List<api.CreativeFieldAssignment>(); | 1697 var o = new core.List<api.CreativeFieldAssignment>(); |
1665 o.add(buildCreativeFieldAssignment()); | 1698 o.add(buildCreativeFieldAssignment()); |
1666 o.add(buildCreativeFieldAssignment()); | 1699 o.add(buildCreativeFieldAssignment()); |
1667 return o; | 1700 return o; |
1668 } | 1701 } |
1669 | 1702 |
1670 checkUnnamed294(core.List<api.CreativeFieldAssignment> o) { | 1703 checkUnnamed1078(core.List<api.CreativeFieldAssignment> o) { |
1671 unittest.expect(o, unittest.hasLength(2)); | 1704 unittest.expect(o, unittest.hasLength(2)); |
1672 checkCreativeFieldAssignment(o[0]); | 1705 checkCreativeFieldAssignment(o[0]); |
1673 checkCreativeFieldAssignment(o[1]); | 1706 checkCreativeFieldAssignment(o[1]); |
1674 } | 1707 } |
1675 | 1708 |
1676 buildUnnamed295() { | 1709 buildUnnamed1079() { |
1677 var o = new core.List<core.String>(); | 1710 var o = new core.List<core.String>(); |
1678 o.add("foo"); | 1711 o.add("foo"); |
1679 o.add("foo"); | 1712 o.add("foo"); |
1680 return o; | 1713 return o; |
1681 } | 1714 } |
1682 | 1715 |
1683 checkUnnamed295(core.List<core.String> o) { | 1716 checkUnnamed1079(core.List<core.String> o) { |
1684 unittest.expect(o, unittest.hasLength(2)); | 1717 unittest.expect(o, unittest.hasLength(2)); |
1685 unittest.expect(o[0], unittest.equals('foo')); | 1718 unittest.expect(o[0], unittest.equals('foo')); |
1686 unittest.expect(o[1], unittest.equals('foo')); | 1719 unittest.expect(o[1], unittest.equals('foo')); |
1687 } | 1720 } |
1688 | 1721 |
1689 buildUnnamed296() { | 1722 buildUnnamed1080() { |
1690 var o = new core.List<api.CreativeCustomEvent>(); | 1723 var o = new core.List<api.CreativeCustomEvent>(); |
1691 o.add(buildCreativeCustomEvent()); | 1724 o.add(buildCreativeCustomEvent()); |
1692 o.add(buildCreativeCustomEvent()); | 1725 o.add(buildCreativeCustomEvent()); |
1693 return o; | 1726 return o; |
1694 } | 1727 } |
1695 | 1728 |
1696 checkUnnamed296(core.List<api.CreativeCustomEvent> o) { | 1729 checkUnnamed1080(core.List<api.CreativeCustomEvent> o) { |
1697 unittest.expect(o, unittest.hasLength(2)); | 1730 unittest.expect(o, unittest.hasLength(2)); |
1698 checkCreativeCustomEvent(o[0]); | 1731 checkCreativeCustomEvent(o[0]); |
1699 checkCreativeCustomEvent(o[1]); | 1732 checkCreativeCustomEvent(o[1]); |
1700 } | 1733 } |
1701 | 1734 |
1702 buildUnnamed297() { | 1735 buildUnnamed1081() { |
1703 var o = new core.List<api.ThirdPartyTrackingUrl>(); | 1736 var o = new core.List<api.ThirdPartyTrackingUrl>(); |
1704 o.add(buildThirdPartyTrackingUrl()); | 1737 o.add(buildThirdPartyTrackingUrl()); |
1705 o.add(buildThirdPartyTrackingUrl()); | 1738 o.add(buildThirdPartyTrackingUrl()); |
1706 return o; | 1739 return o; |
1707 } | 1740 } |
1708 | 1741 |
1709 checkUnnamed297(core.List<api.ThirdPartyTrackingUrl> o) { | 1742 checkUnnamed1081(core.List<api.ThirdPartyTrackingUrl> o) { |
1710 unittest.expect(o, unittest.hasLength(2)); | 1743 unittest.expect(o, unittest.hasLength(2)); |
1711 checkThirdPartyTrackingUrl(o[0]); | 1744 checkThirdPartyTrackingUrl(o[0]); |
1712 checkThirdPartyTrackingUrl(o[1]); | 1745 checkThirdPartyTrackingUrl(o[1]); |
1713 } | 1746 } |
1714 | 1747 |
1715 buildUnnamed298() { | 1748 buildUnnamed1082() { |
1716 var o = new core.List<api.CreativeCustomEvent>(); | 1749 var o = new core.List<api.CreativeCustomEvent>(); |
1717 o.add(buildCreativeCustomEvent()); | 1750 o.add(buildCreativeCustomEvent()); |
1718 o.add(buildCreativeCustomEvent()); | 1751 o.add(buildCreativeCustomEvent()); |
1719 return o; | 1752 return o; |
1720 } | 1753 } |
1721 | 1754 |
1722 checkUnnamed298(core.List<api.CreativeCustomEvent> o) { | 1755 checkUnnamed1082(core.List<api.CreativeCustomEvent> o) { |
1723 unittest.expect(o, unittest.hasLength(2)); | 1756 unittest.expect(o, unittest.hasLength(2)); |
1724 checkCreativeCustomEvent(o[0]); | 1757 checkCreativeCustomEvent(o[0]); |
1725 checkCreativeCustomEvent(o[1]); | 1758 checkCreativeCustomEvent(o[1]); |
1726 } | 1759 } |
1727 | 1760 |
1728 core.int buildCounterCreative = 0; | 1761 core.int buildCounterCreative = 0; |
1729 buildCreative() { | 1762 buildCreative() { |
1730 var o = new api.Creative(); | 1763 var o = new api.Creative(); |
1731 buildCounterCreative++; | 1764 buildCounterCreative++; |
1732 if (buildCounterCreative < 3) { | 1765 if (buildCounterCreative < 3) { |
1733 o.accountId = "foo"; | 1766 o.accountId = "foo"; |
1734 o.active = true; | 1767 o.active = true; |
1735 o.adParameters = "foo"; | 1768 o.adParameters = "foo"; |
1736 o.adTagKeys = buildUnnamed287(); | 1769 o.adTagKeys = buildUnnamed1071(); |
1737 o.advertiserId = "foo"; | 1770 o.advertiserId = "foo"; |
1738 o.allowScriptAccess = true; | 1771 o.allowScriptAccess = true; |
1739 o.archived = true; | 1772 o.archived = true; |
1740 o.artworkType = "foo"; | 1773 o.artworkType = "foo"; |
1741 o.authoringTool = "foo"; | 1774 o.authoringTool = "foo"; |
1742 o.autoAdvanceImages = true; | 1775 o.autoAdvanceImages = true; |
1743 o.backgroundColor = "foo"; | 1776 o.backgroundColor = "foo"; |
1744 o.backupImageClickThroughUrl = "foo"; | 1777 o.backupImageClickThroughUrl = "foo"; |
1745 o.backupImageFeatures = buildUnnamed288(); | 1778 o.backupImageFeatures = buildUnnamed1072(); |
1746 o.backupImageReportingLabel = "foo"; | 1779 o.backupImageReportingLabel = "foo"; |
1747 o.backupImageTargetWindow = buildTargetWindow(); | 1780 o.backupImageTargetWindow = buildTargetWindow(); |
1748 o.clickTags = buildUnnamed289(); | 1781 o.clickTags = buildUnnamed1073(); |
1749 o.commercialId = "foo"; | 1782 o.commercialId = "foo"; |
1750 o.companionCreatives = buildUnnamed290(); | 1783 o.companionCreatives = buildUnnamed1074(); |
1751 o.compatibility = buildUnnamed291(); | 1784 o.compatibility = buildUnnamed1075(); |
1752 o.counterCustomEvents = buildUnnamed292(); | 1785 o.convertFlashToHtml5 = true; |
1753 o.creativeAssets = buildUnnamed293(); | 1786 o.counterCustomEvents = buildUnnamed1076(); |
1754 o.creativeFieldAssignments = buildUnnamed294(); | 1787 o.creativeAssets = buildUnnamed1077(); |
1755 o.customKeyValues = buildUnnamed295(); | 1788 o.creativeFieldAssignments = buildUnnamed1078(); |
1756 o.exitCustomEvents = buildUnnamed296(); | 1789 o.customKeyValues = buildUnnamed1079(); |
| 1790 o.exitCustomEvents = buildUnnamed1080(); |
1757 o.fsCommand = buildFsCommand(); | 1791 o.fsCommand = buildFsCommand(); |
1758 o.htmlCode = "foo"; | 1792 o.htmlCode = "foo"; |
1759 o.htmlCodeLocked = true; | 1793 o.htmlCodeLocked = true; |
1760 o.id = "foo"; | 1794 o.id = "foo"; |
1761 o.idDimensionValue = buildDimensionValue(); | 1795 o.idDimensionValue = buildDimensionValue(); |
1762 o.kind = "foo"; | 1796 o.kind = "foo"; |
1763 o.lastModifiedInfo = buildLastModifiedInfo(); | 1797 o.lastModifiedInfo = buildLastModifiedInfo(); |
1764 o.latestTraffickedCreativeId = "foo"; | 1798 o.latestTraffickedCreativeId = "foo"; |
1765 o.name = "foo"; | 1799 o.name = "foo"; |
1766 o.overrideCss = "foo"; | 1800 o.overrideCss = "foo"; |
1767 o.redirectUrl = "foo"; | 1801 o.redirectUrl = "foo"; |
1768 o.renderingId = "foo"; | 1802 o.renderingId = "foo"; |
1769 o.renderingIdDimensionValue = buildDimensionValue(); | 1803 o.renderingIdDimensionValue = buildDimensionValue(); |
1770 o.requiredFlashPluginVersion = "foo"; | 1804 o.requiredFlashPluginVersion = "foo"; |
1771 o.requiredFlashVersion = 42; | 1805 o.requiredFlashVersion = 42; |
1772 o.size = buildSize(); | 1806 o.size = buildSize(); |
1773 o.skippable = true; | 1807 o.skippable = true; |
1774 o.sslCompliant = true; | 1808 o.sslCompliant = true; |
1775 o.studioAdvertiserId = "foo"; | 1809 o.studioAdvertiserId = "foo"; |
1776 o.studioCreativeId = "foo"; | 1810 o.studioCreativeId = "foo"; |
1777 o.studioTraffickedCreativeId = "foo"; | 1811 o.studioTraffickedCreativeId = "foo"; |
1778 o.subaccountId = "foo"; | 1812 o.subaccountId = "foo"; |
1779 o.thirdPartyBackupImageImpressionsUrl = "foo"; | 1813 o.thirdPartyBackupImageImpressionsUrl = "foo"; |
1780 o.thirdPartyRichMediaImpressionsUrl = "foo"; | 1814 o.thirdPartyRichMediaImpressionsUrl = "foo"; |
1781 o.thirdPartyUrls = buildUnnamed297(); | 1815 o.thirdPartyUrls = buildUnnamed1081(); |
1782 o.timerCustomEvents = buildUnnamed298(); | 1816 o.timerCustomEvents = buildUnnamed1082(); |
1783 o.totalFileSize = "foo"; | 1817 o.totalFileSize = "foo"; |
1784 o.type = "foo"; | 1818 o.type = "foo"; |
1785 o.version = 42; | 1819 o.version = 42; |
1786 o.videoDescription = "foo"; | 1820 o.videoDescription = "foo"; |
1787 o.videoDuration = 42.0; | 1821 o.videoDuration = 42.0; |
1788 } | 1822 } |
1789 buildCounterCreative--; | 1823 buildCounterCreative--; |
1790 return o; | 1824 return o; |
1791 } | 1825 } |
1792 | 1826 |
1793 checkCreative(api.Creative o) { | 1827 checkCreative(api.Creative o) { |
1794 buildCounterCreative++; | 1828 buildCounterCreative++; |
1795 if (buildCounterCreative < 3) { | 1829 if (buildCounterCreative < 3) { |
1796 unittest.expect(o.accountId, unittest.equals('foo')); | 1830 unittest.expect(o.accountId, unittest.equals('foo')); |
1797 unittest.expect(o.active, unittest.isTrue); | 1831 unittest.expect(o.active, unittest.isTrue); |
1798 unittest.expect(o.adParameters, unittest.equals('foo')); | 1832 unittest.expect(o.adParameters, unittest.equals('foo')); |
1799 checkUnnamed287(o.adTagKeys); | 1833 checkUnnamed1071(o.adTagKeys); |
1800 unittest.expect(o.advertiserId, unittest.equals('foo')); | 1834 unittest.expect(o.advertiserId, unittest.equals('foo')); |
1801 unittest.expect(o.allowScriptAccess, unittest.isTrue); | 1835 unittest.expect(o.allowScriptAccess, unittest.isTrue); |
1802 unittest.expect(o.archived, unittest.isTrue); | 1836 unittest.expect(o.archived, unittest.isTrue); |
1803 unittest.expect(o.artworkType, unittest.equals('foo')); | 1837 unittest.expect(o.artworkType, unittest.equals('foo')); |
1804 unittest.expect(o.authoringTool, unittest.equals('foo')); | 1838 unittest.expect(o.authoringTool, unittest.equals('foo')); |
1805 unittest.expect(o.autoAdvanceImages, unittest.isTrue); | 1839 unittest.expect(o.autoAdvanceImages, unittest.isTrue); |
1806 unittest.expect(o.backgroundColor, unittest.equals('foo')); | 1840 unittest.expect(o.backgroundColor, unittest.equals('foo')); |
1807 unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); | 1841 unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); |
1808 checkUnnamed288(o.backupImageFeatures); | 1842 checkUnnamed1072(o.backupImageFeatures); |
1809 unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); | 1843 unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); |
1810 checkTargetWindow(o.backupImageTargetWindow); | 1844 checkTargetWindow(o.backupImageTargetWindow); |
1811 checkUnnamed289(o.clickTags); | 1845 checkUnnamed1073(o.clickTags); |
1812 unittest.expect(o.commercialId, unittest.equals('foo')); | 1846 unittest.expect(o.commercialId, unittest.equals('foo')); |
1813 checkUnnamed290(o.companionCreatives); | 1847 checkUnnamed1074(o.companionCreatives); |
1814 checkUnnamed291(o.compatibility); | 1848 checkUnnamed1075(o.compatibility); |
1815 checkUnnamed292(o.counterCustomEvents); | 1849 unittest.expect(o.convertFlashToHtml5, unittest.isTrue); |
1816 checkUnnamed293(o.creativeAssets); | 1850 checkUnnamed1076(o.counterCustomEvents); |
1817 checkUnnamed294(o.creativeFieldAssignments); | 1851 checkUnnamed1077(o.creativeAssets); |
1818 checkUnnamed295(o.customKeyValues); | 1852 checkUnnamed1078(o.creativeFieldAssignments); |
1819 checkUnnamed296(o.exitCustomEvents); | 1853 checkUnnamed1079(o.customKeyValues); |
| 1854 checkUnnamed1080(o.exitCustomEvents); |
1820 checkFsCommand(o.fsCommand); | 1855 checkFsCommand(o.fsCommand); |
1821 unittest.expect(o.htmlCode, unittest.equals('foo')); | 1856 unittest.expect(o.htmlCode, unittest.equals('foo')); |
1822 unittest.expect(o.htmlCodeLocked, unittest.isTrue); | 1857 unittest.expect(o.htmlCodeLocked, unittest.isTrue); |
1823 unittest.expect(o.id, unittest.equals('foo')); | 1858 unittest.expect(o.id, unittest.equals('foo')); |
1824 checkDimensionValue(o.idDimensionValue); | 1859 checkDimensionValue(o.idDimensionValue); |
1825 unittest.expect(o.kind, unittest.equals('foo')); | 1860 unittest.expect(o.kind, unittest.equals('foo')); |
1826 checkLastModifiedInfo(o.lastModifiedInfo); | 1861 checkLastModifiedInfo(o.lastModifiedInfo); |
1827 unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); | 1862 unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); |
1828 unittest.expect(o.name, unittest.equals('foo')); | 1863 unittest.expect(o.name, unittest.equals('foo')); |
1829 unittest.expect(o.overrideCss, unittest.equals('foo')); | 1864 unittest.expect(o.overrideCss, unittest.equals('foo')); |
1830 unittest.expect(o.redirectUrl, unittest.equals('foo')); | 1865 unittest.expect(o.redirectUrl, unittest.equals('foo')); |
1831 unittest.expect(o.renderingId, unittest.equals('foo')); | 1866 unittest.expect(o.renderingId, unittest.equals('foo')); |
1832 checkDimensionValue(o.renderingIdDimensionValue); | 1867 checkDimensionValue(o.renderingIdDimensionValue); |
1833 unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo')); | 1868 unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo')); |
1834 unittest.expect(o.requiredFlashVersion, unittest.equals(42)); | 1869 unittest.expect(o.requiredFlashVersion, unittest.equals(42)); |
1835 checkSize(o.size); | 1870 checkSize(o.size); |
1836 unittest.expect(o.skippable, unittest.isTrue); | 1871 unittest.expect(o.skippable, unittest.isTrue); |
1837 unittest.expect(o.sslCompliant, unittest.isTrue); | 1872 unittest.expect(o.sslCompliant, unittest.isTrue); |
1838 unittest.expect(o.studioAdvertiserId, unittest.equals('foo')); | 1873 unittest.expect(o.studioAdvertiserId, unittest.equals('foo')); |
1839 unittest.expect(o.studioCreativeId, unittest.equals('foo')); | 1874 unittest.expect(o.studioCreativeId, unittest.equals('foo')); |
1840 unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo')); | 1875 unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo')); |
1841 unittest.expect(o.subaccountId, unittest.equals('foo')); | 1876 unittest.expect(o.subaccountId, unittest.equals('foo')); |
1842 unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo'
)); | 1877 unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo'
)); |
1843 unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo'))
; | 1878 unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo'))
; |
1844 checkUnnamed297(o.thirdPartyUrls); | 1879 checkUnnamed1081(o.thirdPartyUrls); |
1845 checkUnnamed298(o.timerCustomEvents); | 1880 checkUnnamed1082(o.timerCustomEvents); |
1846 unittest.expect(o.totalFileSize, unittest.equals('foo')); | 1881 unittest.expect(o.totalFileSize, unittest.equals('foo')); |
1847 unittest.expect(o.type, unittest.equals('foo')); | 1882 unittest.expect(o.type, unittest.equals('foo')); |
1848 unittest.expect(o.version, unittest.equals(42)); | 1883 unittest.expect(o.version, unittest.equals(42)); |
1849 unittest.expect(o.videoDescription, unittest.equals('foo')); | 1884 unittest.expect(o.videoDescription, unittest.equals('foo')); |
1850 unittest.expect(o.videoDuration, unittest.equals(42.0)); | 1885 unittest.expect(o.videoDuration, unittest.equals(42.0)); |
1851 } | 1886 } |
1852 buildCounterCreative--; | 1887 buildCounterCreative--; |
1853 } | 1888 } |
1854 | 1889 |
1855 buildUnnamed299() { | 1890 buildUnnamed1083() { |
1856 var o = new core.List<core.String>(); | 1891 var o = new core.List<core.String>(); |
1857 o.add("foo"); | 1892 o.add("foo"); |
1858 o.add("foo"); | 1893 o.add("foo"); |
1859 return o; | 1894 return o; |
1860 } | 1895 } |
1861 | 1896 |
1862 checkUnnamed299(core.List<core.String> o) { | 1897 checkUnnamed1083(core.List<core.String> o) { |
1863 unittest.expect(o, unittest.hasLength(2)); | 1898 unittest.expect(o, unittest.hasLength(2)); |
1864 unittest.expect(o[0], unittest.equals('foo')); | 1899 unittest.expect(o[0], unittest.equals('foo')); |
1865 unittest.expect(o[1], unittest.equals('foo')); | 1900 unittest.expect(o[1], unittest.equals('foo')); |
1866 } | 1901 } |
1867 | 1902 |
1868 core.int buildCounterCreativeAsset = 0; | 1903 core.int buildCounterCreativeAsset = 0; |
1869 buildCreativeAsset() { | 1904 buildCreativeAsset() { |
1870 var o = new api.CreativeAsset(); | 1905 var o = new api.CreativeAsset(); |
1871 buildCounterCreativeAsset++; | 1906 buildCounterCreativeAsset++; |
1872 if (buildCounterCreativeAsset < 3) { | 1907 if (buildCounterCreativeAsset < 3) { |
1873 o.actionScript3 = true; | 1908 o.actionScript3 = true; |
1874 o.active = true; | 1909 o.active = true; |
1875 o.alignment = "foo"; | 1910 o.alignment = "foo"; |
1876 o.artworkType = "foo"; | 1911 o.artworkType = "foo"; |
1877 o.assetIdentifier = buildCreativeAssetId(); | 1912 o.assetIdentifier = buildCreativeAssetId(); |
1878 o.backupImageExit = buildCreativeCustomEvent(); | 1913 o.backupImageExit = buildCreativeCustomEvent(); |
1879 o.bitRate = 42; | 1914 o.bitRate = 42; |
1880 o.childAssetType = "foo"; | 1915 o.childAssetType = "foo"; |
1881 o.collapsedSize = buildSize(); | 1916 o.collapsedSize = buildSize(); |
1882 o.customStartTimeValue = 42; | 1917 o.customStartTimeValue = 42; |
1883 o.detectedFeatures = buildUnnamed299(); | 1918 o.detectedFeatures = buildUnnamed1083(); |
1884 o.displayType = "foo"; | 1919 o.displayType = "foo"; |
1885 o.duration = 42; | 1920 o.duration = 42; |
1886 o.durationType = "foo"; | 1921 o.durationType = "foo"; |
1887 o.expandedDimension = buildSize(); | 1922 o.expandedDimension = buildSize(); |
1888 o.fileSize = "foo"; | 1923 o.fileSize = "foo"; |
1889 o.flashVersion = 42; | 1924 o.flashVersion = 42; |
1890 o.hideFlashObjects = true; | 1925 o.hideFlashObjects = true; |
1891 o.hideSelectionBoxes = true; | 1926 o.hideSelectionBoxes = true; |
1892 o.horizontallyLocked = true; | 1927 o.horizontallyLocked = true; |
1893 o.id = "foo"; | 1928 o.id = "foo"; |
(...skipping 29 matching lines...) Expand all Loading... |
1923 unittest.expect(o.actionScript3, unittest.isTrue); | 1958 unittest.expect(o.actionScript3, unittest.isTrue); |
1924 unittest.expect(o.active, unittest.isTrue); | 1959 unittest.expect(o.active, unittest.isTrue); |
1925 unittest.expect(o.alignment, unittest.equals('foo')); | 1960 unittest.expect(o.alignment, unittest.equals('foo')); |
1926 unittest.expect(o.artworkType, unittest.equals('foo')); | 1961 unittest.expect(o.artworkType, unittest.equals('foo')); |
1927 checkCreativeAssetId(o.assetIdentifier); | 1962 checkCreativeAssetId(o.assetIdentifier); |
1928 checkCreativeCustomEvent(o.backupImageExit); | 1963 checkCreativeCustomEvent(o.backupImageExit); |
1929 unittest.expect(o.bitRate, unittest.equals(42)); | 1964 unittest.expect(o.bitRate, unittest.equals(42)); |
1930 unittest.expect(o.childAssetType, unittest.equals('foo')); | 1965 unittest.expect(o.childAssetType, unittest.equals('foo')); |
1931 checkSize(o.collapsedSize); | 1966 checkSize(o.collapsedSize); |
1932 unittest.expect(o.customStartTimeValue, unittest.equals(42)); | 1967 unittest.expect(o.customStartTimeValue, unittest.equals(42)); |
1933 checkUnnamed299(o.detectedFeatures); | 1968 checkUnnamed1083(o.detectedFeatures); |
1934 unittest.expect(o.displayType, unittest.equals('foo')); | 1969 unittest.expect(o.displayType, unittest.equals('foo')); |
1935 unittest.expect(o.duration, unittest.equals(42)); | 1970 unittest.expect(o.duration, unittest.equals(42)); |
1936 unittest.expect(o.durationType, unittest.equals('foo')); | 1971 unittest.expect(o.durationType, unittest.equals('foo')); |
1937 checkSize(o.expandedDimension); | 1972 checkSize(o.expandedDimension); |
1938 unittest.expect(o.fileSize, unittest.equals('foo')); | 1973 unittest.expect(o.fileSize, unittest.equals('foo')); |
1939 unittest.expect(o.flashVersion, unittest.equals(42)); | 1974 unittest.expect(o.flashVersion, unittest.equals(42)); |
1940 unittest.expect(o.hideFlashObjects, unittest.isTrue); | 1975 unittest.expect(o.hideFlashObjects, unittest.isTrue); |
1941 unittest.expect(o.hideSelectionBoxes, unittest.isTrue); | 1976 unittest.expect(o.hideSelectionBoxes, unittest.isTrue); |
1942 unittest.expect(o.horizontallyLocked, unittest.isTrue); | 1977 unittest.expect(o.horizontallyLocked, unittest.isTrue); |
1943 unittest.expect(o.id, unittest.equals('foo')); | 1978 unittest.expect(o.id, unittest.equals('foo')); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1980 | 2015 |
1981 checkCreativeAssetId(api.CreativeAssetId o) { | 2016 checkCreativeAssetId(api.CreativeAssetId o) { |
1982 buildCounterCreativeAssetId++; | 2017 buildCounterCreativeAssetId++; |
1983 if (buildCounterCreativeAssetId < 3) { | 2018 if (buildCounterCreativeAssetId < 3) { |
1984 unittest.expect(o.name, unittest.equals('foo')); | 2019 unittest.expect(o.name, unittest.equals('foo')); |
1985 unittest.expect(o.type, unittest.equals('foo')); | 2020 unittest.expect(o.type, unittest.equals('foo')); |
1986 } | 2021 } |
1987 buildCounterCreativeAssetId--; | 2022 buildCounterCreativeAssetId--; |
1988 } | 2023 } |
1989 | 2024 |
1990 buildUnnamed300() { | 2025 buildUnnamed1084() { |
1991 var o = new core.List<api.ClickTag>(); | 2026 var o = new core.List<api.ClickTag>(); |
1992 o.add(buildClickTag()); | 2027 o.add(buildClickTag()); |
1993 o.add(buildClickTag()); | 2028 o.add(buildClickTag()); |
1994 return o; | 2029 return o; |
1995 } | 2030 } |
1996 | 2031 |
1997 checkUnnamed300(core.List<api.ClickTag> o) { | 2032 checkUnnamed1084(core.List<api.ClickTag> o) { |
1998 unittest.expect(o, unittest.hasLength(2)); | 2033 unittest.expect(o, unittest.hasLength(2)); |
1999 checkClickTag(o[0]); | 2034 checkClickTag(o[0]); |
2000 checkClickTag(o[1]); | 2035 checkClickTag(o[1]); |
2001 } | 2036 } |
2002 | 2037 |
2003 buildUnnamed301() { | 2038 buildUnnamed1085() { |
2004 var o = new core.List<core.String>(); | 2039 var o = new core.List<core.String>(); |
2005 o.add("foo"); | 2040 o.add("foo"); |
2006 o.add("foo"); | 2041 o.add("foo"); |
2007 return o; | 2042 return o; |
2008 } | 2043 } |
2009 | 2044 |
2010 checkUnnamed301(core.List<core.String> o) { | 2045 checkUnnamed1085(core.List<core.String> o) { |
2011 unittest.expect(o, unittest.hasLength(2)); | 2046 unittest.expect(o, unittest.hasLength(2)); |
2012 unittest.expect(o[0], unittest.equals('foo')); | 2047 unittest.expect(o[0], unittest.equals('foo')); |
2013 unittest.expect(o[1], unittest.equals('foo')); | 2048 unittest.expect(o[1], unittest.equals('foo')); |
2014 } | 2049 } |
2015 | 2050 |
2016 buildUnnamed302() { | 2051 buildUnnamed1086() { |
2017 var o = new core.List<core.String>(); | 2052 var o = new core.List<core.String>(); |
2018 o.add("foo"); | 2053 o.add("foo"); |
2019 o.add("foo"); | 2054 o.add("foo"); |
2020 return o; | 2055 return o; |
2021 } | 2056 } |
2022 | 2057 |
2023 checkUnnamed302(core.List<core.String> o) { | 2058 checkUnnamed1086(core.List<core.String> o) { |
2024 unittest.expect(o, unittest.hasLength(2)); | 2059 unittest.expect(o, unittest.hasLength(2)); |
2025 unittest.expect(o[0], unittest.equals('foo')); | 2060 unittest.expect(o[0], unittest.equals('foo')); |
2026 unittest.expect(o[1], unittest.equals('foo')); | 2061 unittest.expect(o[1], unittest.equals('foo')); |
2027 } | 2062 } |
2028 | 2063 |
2029 core.int buildCounterCreativeAssetMetadata = 0; | 2064 core.int buildCounterCreativeAssetMetadata = 0; |
2030 buildCreativeAssetMetadata() { | 2065 buildCreativeAssetMetadata() { |
2031 var o = new api.CreativeAssetMetadata(); | 2066 var o = new api.CreativeAssetMetadata(); |
2032 buildCounterCreativeAssetMetadata++; | 2067 buildCounterCreativeAssetMetadata++; |
2033 if (buildCounterCreativeAssetMetadata < 3) { | 2068 if (buildCounterCreativeAssetMetadata < 3) { |
2034 o.assetIdentifier = buildCreativeAssetId(); | 2069 o.assetIdentifier = buildCreativeAssetId(); |
2035 o.clickTags = buildUnnamed300(); | 2070 o.clickTags = buildUnnamed1084(); |
2036 o.detectedFeatures = buildUnnamed301(); | 2071 o.detectedFeatures = buildUnnamed1085(); |
2037 o.kind = "foo"; | 2072 o.kind = "foo"; |
2038 o.warnedValidationRules = buildUnnamed302(); | 2073 o.warnedValidationRules = buildUnnamed1086(); |
2039 } | 2074 } |
2040 buildCounterCreativeAssetMetadata--; | 2075 buildCounterCreativeAssetMetadata--; |
2041 return o; | 2076 return o; |
2042 } | 2077 } |
2043 | 2078 |
2044 checkCreativeAssetMetadata(api.CreativeAssetMetadata o) { | 2079 checkCreativeAssetMetadata(api.CreativeAssetMetadata o) { |
2045 buildCounterCreativeAssetMetadata++; | 2080 buildCounterCreativeAssetMetadata++; |
2046 if (buildCounterCreativeAssetMetadata < 3) { | 2081 if (buildCounterCreativeAssetMetadata < 3) { |
2047 checkCreativeAssetId(o.assetIdentifier); | 2082 checkCreativeAssetId(o.assetIdentifier); |
2048 checkUnnamed300(o.clickTags); | 2083 checkUnnamed1084(o.clickTags); |
2049 checkUnnamed301(o.detectedFeatures); | 2084 checkUnnamed1085(o.detectedFeatures); |
2050 unittest.expect(o.kind, unittest.equals('foo')); | 2085 unittest.expect(o.kind, unittest.equals('foo')); |
2051 checkUnnamed302(o.warnedValidationRules); | 2086 checkUnnamed1086(o.warnedValidationRules); |
2052 } | 2087 } |
2053 buildCounterCreativeAssetMetadata--; | 2088 buildCounterCreativeAssetMetadata--; |
2054 } | 2089 } |
2055 | 2090 |
2056 buildUnnamed303() { | 2091 buildUnnamed1087() { |
2057 var o = new core.List<api.CompanionClickThroughOverride>(); | 2092 var o = new core.List<api.CompanionClickThroughOverride>(); |
2058 o.add(buildCompanionClickThroughOverride()); | 2093 o.add(buildCompanionClickThroughOverride()); |
2059 o.add(buildCompanionClickThroughOverride()); | 2094 o.add(buildCompanionClickThroughOverride()); |
2060 return o; | 2095 return o; |
2061 } | 2096 } |
2062 | 2097 |
2063 checkUnnamed303(core.List<api.CompanionClickThroughOverride> o) { | 2098 checkUnnamed1087(core.List<api.CompanionClickThroughOverride> o) { |
2064 unittest.expect(o, unittest.hasLength(2)); | 2099 unittest.expect(o, unittest.hasLength(2)); |
2065 checkCompanionClickThroughOverride(o[0]); | 2100 checkCompanionClickThroughOverride(o[0]); |
2066 checkCompanionClickThroughOverride(o[1]); | 2101 checkCompanionClickThroughOverride(o[1]); |
2067 } | 2102 } |
2068 | 2103 |
2069 buildUnnamed304() { | 2104 buildUnnamed1088() { |
2070 var o = new core.List<api.CreativeGroupAssignment>(); | 2105 var o = new core.List<api.CreativeGroupAssignment>(); |
2071 o.add(buildCreativeGroupAssignment()); | 2106 o.add(buildCreativeGroupAssignment()); |
2072 o.add(buildCreativeGroupAssignment()); | 2107 o.add(buildCreativeGroupAssignment()); |
2073 return o; | 2108 return o; |
2074 } | 2109 } |
2075 | 2110 |
2076 checkUnnamed304(core.List<api.CreativeGroupAssignment> o) { | 2111 checkUnnamed1088(core.List<api.CreativeGroupAssignment> o) { |
2077 unittest.expect(o, unittest.hasLength(2)); | 2112 unittest.expect(o, unittest.hasLength(2)); |
2078 checkCreativeGroupAssignment(o[0]); | 2113 checkCreativeGroupAssignment(o[0]); |
2079 checkCreativeGroupAssignment(o[1]); | 2114 checkCreativeGroupAssignment(o[1]); |
2080 } | 2115 } |
2081 | 2116 |
2082 buildUnnamed305() { | 2117 buildUnnamed1089() { |
2083 var o = new core.List<api.RichMediaExitOverride>(); | 2118 var o = new core.List<api.RichMediaExitOverride>(); |
2084 o.add(buildRichMediaExitOverride()); | 2119 o.add(buildRichMediaExitOverride()); |
2085 o.add(buildRichMediaExitOverride()); | 2120 o.add(buildRichMediaExitOverride()); |
2086 return o; | 2121 return o; |
2087 } | 2122 } |
2088 | 2123 |
2089 checkUnnamed305(core.List<api.RichMediaExitOverride> o) { | 2124 checkUnnamed1089(core.List<api.RichMediaExitOverride> o) { |
2090 unittest.expect(o, unittest.hasLength(2)); | 2125 unittest.expect(o, unittest.hasLength(2)); |
2091 checkRichMediaExitOverride(o[0]); | 2126 checkRichMediaExitOverride(o[0]); |
2092 checkRichMediaExitOverride(o[1]); | 2127 checkRichMediaExitOverride(o[1]); |
2093 } | 2128 } |
2094 | 2129 |
2095 core.int buildCounterCreativeAssignment = 0; | 2130 core.int buildCounterCreativeAssignment = 0; |
2096 buildCreativeAssignment() { | 2131 buildCreativeAssignment() { |
2097 var o = new api.CreativeAssignment(); | 2132 var o = new api.CreativeAssignment(); |
2098 buildCounterCreativeAssignment++; | 2133 buildCounterCreativeAssignment++; |
2099 if (buildCounterCreativeAssignment < 3) { | 2134 if (buildCounterCreativeAssignment < 3) { |
2100 o.active = true; | 2135 o.active = true; |
2101 o.applyEventTags = true; | 2136 o.applyEventTags = true; |
2102 o.clickThroughUrl = buildClickThroughUrl(); | 2137 o.clickThroughUrl = buildClickThroughUrl(); |
2103 o.companionCreativeOverrides = buildUnnamed303(); | 2138 o.companionCreativeOverrides = buildUnnamed1087(); |
2104 o.creativeGroupAssignments = buildUnnamed304(); | 2139 o.creativeGroupAssignments = buildUnnamed1088(); |
2105 o.creativeId = "foo"; | 2140 o.creativeId = "foo"; |
2106 o.creativeIdDimensionValue = buildDimensionValue(); | 2141 o.creativeIdDimensionValue = buildDimensionValue(); |
2107 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 2142 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
2108 o.richMediaExitOverrides = buildUnnamed305(); | 2143 o.richMediaExitOverrides = buildUnnamed1089(); |
2109 o.sequence = 42; | 2144 o.sequence = 42; |
2110 o.sslCompliant = true; | 2145 o.sslCompliant = true; |
2111 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 2146 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
2112 o.weight = 42; | 2147 o.weight = 42; |
2113 } | 2148 } |
2114 buildCounterCreativeAssignment--; | 2149 buildCounterCreativeAssignment--; |
2115 return o; | 2150 return o; |
2116 } | 2151 } |
2117 | 2152 |
2118 checkCreativeAssignment(api.CreativeAssignment o) { | 2153 checkCreativeAssignment(api.CreativeAssignment o) { |
2119 buildCounterCreativeAssignment++; | 2154 buildCounterCreativeAssignment++; |
2120 if (buildCounterCreativeAssignment < 3) { | 2155 if (buildCounterCreativeAssignment < 3) { |
2121 unittest.expect(o.active, unittest.isTrue); | 2156 unittest.expect(o.active, unittest.isTrue); |
2122 unittest.expect(o.applyEventTags, unittest.isTrue); | 2157 unittest.expect(o.applyEventTags, unittest.isTrue); |
2123 checkClickThroughUrl(o.clickThroughUrl); | 2158 checkClickThroughUrl(o.clickThroughUrl); |
2124 checkUnnamed303(o.companionCreativeOverrides); | 2159 checkUnnamed1087(o.companionCreativeOverrides); |
2125 checkUnnamed304(o.creativeGroupAssignments); | 2160 checkUnnamed1088(o.creativeGroupAssignments); |
2126 unittest.expect(o.creativeId, unittest.equals('foo')); | 2161 unittest.expect(o.creativeId, unittest.equals('foo')); |
2127 checkDimensionValue(o.creativeIdDimensionValue); | 2162 checkDimensionValue(o.creativeIdDimensionValue); |
2128 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2163 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
2129 checkUnnamed305(o.richMediaExitOverrides); | 2164 checkUnnamed1089(o.richMediaExitOverrides); |
2130 unittest.expect(o.sequence, unittest.equals(42)); | 2165 unittest.expect(o.sequence, unittest.equals(42)); |
2131 unittest.expect(o.sslCompliant, unittest.isTrue); | 2166 unittest.expect(o.sslCompliant, unittest.isTrue); |
2132 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 2167 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
2133 unittest.expect(o.weight, unittest.equals(42)); | 2168 unittest.expect(o.weight, unittest.equals(42)); |
2134 } | 2169 } |
2135 buildCounterCreativeAssignment--; | 2170 buildCounterCreativeAssignment--; |
2136 } | 2171 } |
2137 | 2172 |
2138 core.int buildCounterCreativeCustomEvent = 0; | 2173 core.int buildCounterCreativeCustomEvent = 0; |
2139 buildCreativeCustomEvent() { | 2174 buildCreativeCustomEvent() { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2240 checkCreativeFieldValue(api.CreativeFieldValue o) { | 2275 checkCreativeFieldValue(api.CreativeFieldValue o) { |
2241 buildCounterCreativeFieldValue++; | 2276 buildCounterCreativeFieldValue++; |
2242 if (buildCounterCreativeFieldValue < 3) { | 2277 if (buildCounterCreativeFieldValue < 3) { |
2243 unittest.expect(o.id, unittest.equals('foo')); | 2278 unittest.expect(o.id, unittest.equals('foo')); |
2244 unittest.expect(o.kind, unittest.equals('foo')); | 2279 unittest.expect(o.kind, unittest.equals('foo')); |
2245 unittest.expect(o.value, unittest.equals('foo')); | 2280 unittest.expect(o.value, unittest.equals('foo')); |
2246 } | 2281 } |
2247 buildCounterCreativeFieldValue--; | 2282 buildCounterCreativeFieldValue--; |
2248 } | 2283 } |
2249 | 2284 |
2250 buildUnnamed306() { | 2285 buildUnnamed1090() { |
2251 var o = new core.List<api.CreativeFieldValue>(); | 2286 var o = new core.List<api.CreativeFieldValue>(); |
2252 o.add(buildCreativeFieldValue()); | 2287 o.add(buildCreativeFieldValue()); |
2253 o.add(buildCreativeFieldValue()); | 2288 o.add(buildCreativeFieldValue()); |
2254 return o; | 2289 return o; |
2255 } | 2290 } |
2256 | 2291 |
2257 checkUnnamed306(core.List<api.CreativeFieldValue> o) { | 2292 checkUnnamed1090(core.List<api.CreativeFieldValue> o) { |
2258 unittest.expect(o, unittest.hasLength(2)); | 2293 unittest.expect(o, unittest.hasLength(2)); |
2259 checkCreativeFieldValue(o[0]); | 2294 checkCreativeFieldValue(o[0]); |
2260 checkCreativeFieldValue(o[1]); | 2295 checkCreativeFieldValue(o[1]); |
2261 } | 2296 } |
2262 | 2297 |
2263 core.int buildCounterCreativeFieldValuesListResponse = 0; | 2298 core.int buildCounterCreativeFieldValuesListResponse = 0; |
2264 buildCreativeFieldValuesListResponse() { | 2299 buildCreativeFieldValuesListResponse() { |
2265 var o = new api.CreativeFieldValuesListResponse(); | 2300 var o = new api.CreativeFieldValuesListResponse(); |
2266 buildCounterCreativeFieldValuesListResponse++; | 2301 buildCounterCreativeFieldValuesListResponse++; |
2267 if (buildCounterCreativeFieldValuesListResponse < 3) { | 2302 if (buildCounterCreativeFieldValuesListResponse < 3) { |
2268 o.creativeFieldValues = buildUnnamed306(); | 2303 o.creativeFieldValues = buildUnnamed1090(); |
2269 o.kind = "foo"; | 2304 o.kind = "foo"; |
2270 o.nextPageToken = "foo"; | 2305 o.nextPageToken = "foo"; |
2271 } | 2306 } |
2272 buildCounterCreativeFieldValuesListResponse--; | 2307 buildCounterCreativeFieldValuesListResponse--; |
2273 return o; | 2308 return o; |
2274 } | 2309 } |
2275 | 2310 |
2276 checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { | 2311 checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { |
2277 buildCounterCreativeFieldValuesListResponse++; | 2312 buildCounterCreativeFieldValuesListResponse++; |
2278 if (buildCounterCreativeFieldValuesListResponse < 3) { | 2313 if (buildCounterCreativeFieldValuesListResponse < 3) { |
2279 checkUnnamed306(o.creativeFieldValues); | 2314 checkUnnamed1090(o.creativeFieldValues); |
2280 unittest.expect(o.kind, unittest.equals('foo')); | 2315 unittest.expect(o.kind, unittest.equals('foo')); |
2281 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2316 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2282 } | 2317 } |
2283 buildCounterCreativeFieldValuesListResponse--; | 2318 buildCounterCreativeFieldValuesListResponse--; |
2284 } | 2319 } |
2285 | 2320 |
2286 buildUnnamed307() { | 2321 buildUnnamed1091() { |
2287 var o = new core.List<api.CreativeField>(); | 2322 var o = new core.List<api.CreativeField>(); |
2288 o.add(buildCreativeField()); | 2323 o.add(buildCreativeField()); |
2289 o.add(buildCreativeField()); | 2324 o.add(buildCreativeField()); |
2290 return o; | 2325 return o; |
2291 } | 2326 } |
2292 | 2327 |
2293 checkUnnamed307(core.List<api.CreativeField> o) { | 2328 checkUnnamed1091(core.List<api.CreativeField> o) { |
2294 unittest.expect(o, unittest.hasLength(2)); | 2329 unittest.expect(o, unittest.hasLength(2)); |
2295 checkCreativeField(o[0]); | 2330 checkCreativeField(o[0]); |
2296 checkCreativeField(o[1]); | 2331 checkCreativeField(o[1]); |
2297 } | 2332 } |
2298 | 2333 |
2299 core.int buildCounterCreativeFieldsListResponse = 0; | 2334 core.int buildCounterCreativeFieldsListResponse = 0; |
2300 buildCreativeFieldsListResponse() { | 2335 buildCreativeFieldsListResponse() { |
2301 var o = new api.CreativeFieldsListResponse(); | 2336 var o = new api.CreativeFieldsListResponse(); |
2302 buildCounterCreativeFieldsListResponse++; | 2337 buildCounterCreativeFieldsListResponse++; |
2303 if (buildCounterCreativeFieldsListResponse < 3) { | 2338 if (buildCounterCreativeFieldsListResponse < 3) { |
2304 o.creativeFields = buildUnnamed307(); | 2339 o.creativeFields = buildUnnamed1091(); |
2305 o.kind = "foo"; | 2340 o.kind = "foo"; |
2306 o.nextPageToken = "foo"; | 2341 o.nextPageToken = "foo"; |
2307 } | 2342 } |
2308 buildCounterCreativeFieldsListResponse--; | 2343 buildCounterCreativeFieldsListResponse--; |
2309 return o; | 2344 return o; |
2310 } | 2345 } |
2311 | 2346 |
2312 checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { | 2347 checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { |
2313 buildCounterCreativeFieldsListResponse++; | 2348 buildCounterCreativeFieldsListResponse++; |
2314 if (buildCounterCreativeFieldsListResponse < 3) { | 2349 if (buildCounterCreativeFieldsListResponse < 3) { |
2315 checkUnnamed307(o.creativeFields); | 2350 checkUnnamed1091(o.creativeFields); |
2316 unittest.expect(o.kind, unittest.equals('foo')); | 2351 unittest.expect(o.kind, unittest.equals('foo')); |
2317 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2352 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2318 } | 2353 } |
2319 buildCounterCreativeFieldsListResponse--; | 2354 buildCounterCreativeFieldsListResponse--; |
2320 } | 2355 } |
2321 | 2356 |
2322 core.int buildCounterCreativeGroup = 0; | 2357 core.int buildCounterCreativeGroup = 0; |
2323 buildCreativeGroup() { | 2358 buildCreativeGroup() { |
2324 var o = new api.CreativeGroup(); | 2359 var o = new api.CreativeGroup(); |
2325 buildCounterCreativeGroup++; | 2360 buildCounterCreativeGroup++; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2366 | 2401 |
2367 checkCreativeGroupAssignment(api.CreativeGroupAssignment o) { | 2402 checkCreativeGroupAssignment(api.CreativeGroupAssignment o) { |
2368 buildCounterCreativeGroupAssignment++; | 2403 buildCounterCreativeGroupAssignment++; |
2369 if (buildCounterCreativeGroupAssignment < 3) { | 2404 if (buildCounterCreativeGroupAssignment < 3) { |
2370 unittest.expect(o.creativeGroupId, unittest.equals('foo')); | 2405 unittest.expect(o.creativeGroupId, unittest.equals('foo')); |
2371 unittest.expect(o.creativeGroupNumber, unittest.equals('foo')); | 2406 unittest.expect(o.creativeGroupNumber, unittest.equals('foo')); |
2372 } | 2407 } |
2373 buildCounterCreativeGroupAssignment--; | 2408 buildCounterCreativeGroupAssignment--; |
2374 } | 2409 } |
2375 | 2410 |
2376 buildUnnamed308() { | 2411 buildUnnamed1092() { |
2377 var o = new core.List<api.CreativeGroup>(); | 2412 var o = new core.List<api.CreativeGroup>(); |
2378 o.add(buildCreativeGroup()); | 2413 o.add(buildCreativeGroup()); |
2379 o.add(buildCreativeGroup()); | 2414 o.add(buildCreativeGroup()); |
2380 return o; | 2415 return o; |
2381 } | 2416 } |
2382 | 2417 |
2383 checkUnnamed308(core.List<api.CreativeGroup> o) { | 2418 checkUnnamed1092(core.List<api.CreativeGroup> o) { |
2384 unittest.expect(o, unittest.hasLength(2)); | 2419 unittest.expect(o, unittest.hasLength(2)); |
2385 checkCreativeGroup(o[0]); | 2420 checkCreativeGroup(o[0]); |
2386 checkCreativeGroup(o[1]); | 2421 checkCreativeGroup(o[1]); |
2387 } | 2422 } |
2388 | 2423 |
2389 core.int buildCounterCreativeGroupsListResponse = 0; | 2424 core.int buildCounterCreativeGroupsListResponse = 0; |
2390 buildCreativeGroupsListResponse() { | 2425 buildCreativeGroupsListResponse() { |
2391 var o = new api.CreativeGroupsListResponse(); | 2426 var o = new api.CreativeGroupsListResponse(); |
2392 buildCounterCreativeGroupsListResponse++; | 2427 buildCounterCreativeGroupsListResponse++; |
2393 if (buildCounterCreativeGroupsListResponse < 3) { | 2428 if (buildCounterCreativeGroupsListResponse < 3) { |
2394 o.creativeGroups = buildUnnamed308(); | 2429 o.creativeGroups = buildUnnamed1092(); |
2395 o.kind = "foo"; | 2430 o.kind = "foo"; |
2396 o.nextPageToken = "foo"; | 2431 o.nextPageToken = "foo"; |
2397 } | 2432 } |
2398 buildCounterCreativeGroupsListResponse--; | 2433 buildCounterCreativeGroupsListResponse--; |
2399 return o; | 2434 return o; |
2400 } | 2435 } |
2401 | 2436 |
2402 checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { | 2437 checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { |
2403 buildCounterCreativeGroupsListResponse++; | 2438 buildCounterCreativeGroupsListResponse++; |
2404 if (buildCounterCreativeGroupsListResponse < 3) { | 2439 if (buildCounterCreativeGroupsListResponse < 3) { |
2405 checkUnnamed308(o.creativeGroups); | 2440 checkUnnamed1092(o.creativeGroups); |
2406 unittest.expect(o.kind, unittest.equals('foo')); | 2441 unittest.expect(o.kind, unittest.equals('foo')); |
2407 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2442 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2408 } | 2443 } |
2409 buildCounterCreativeGroupsListResponse--; | 2444 buildCounterCreativeGroupsListResponse--; |
2410 } | 2445 } |
2411 | 2446 |
2412 buildUnnamed309() { | 2447 buildUnnamed1093() { |
2413 var o = new core.List<api.OptimizationActivity>(); | 2448 var o = new core.List<api.OptimizationActivity>(); |
2414 o.add(buildOptimizationActivity()); | 2449 o.add(buildOptimizationActivity()); |
2415 o.add(buildOptimizationActivity()); | 2450 o.add(buildOptimizationActivity()); |
2416 return o; | 2451 return o; |
2417 } | 2452 } |
2418 | 2453 |
2419 checkUnnamed309(core.List<api.OptimizationActivity> o) { | 2454 checkUnnamed1093(core.List<api.OptimizationActivity> o) { |
2420 unittest.expect(o, unittest.hasLength(2)); | 2455 unittest.expect(o, unittest.hasLength(2)); |
2421 checkOptimizationActivity(o[0]); | 2456 checkOptimizationActivity(o[0]); |
2422 checkOptimizationActivity(o[1]); | 2457 checkOptimizationActivity(o[1]); |
2423 } | 2458 } |
2424 | 2459 |
2425 core.int buildCounterCreativeOptimizationConfiguration = 0; | 2460 core.int buildCounterCreativeOptimizationConfiguration = 0; |
2426 buildCreativeOptimizationConfiguration() { | 2461 buildCreativeOptimizationConfiguration() { |
2427 var o = new api.CreativeOptimizationConfiguration(); | 2462 var o = new api.CreativeOptimizationConfiguration(); |
2428 buildCounterCreativeOptimizationConfiguration++; | 2463 buildCounterCreativeOptimizationConfiguration++; |
2429 if (buildCounterCreativeOptimizationConfiguration < 3) { | 2464 if (buildCounterCreativeOptimizationConfiguration < 3) { |
2430 o.id = "foo"; | 2465 o.id = "foo"; |
2431 o.name = "foo"; | 2466 o.name = "foo"; |
2432 o.optimizationActivitys = buildUnnamed309(); | 2467 o.optimizationActivitys = buildUnnamed1093(); |
2433 o.optimizationModel = "foo"; | 2468 o.optimizationModel = "foo"; |
2434 } | 2469 } |
2435 buildCounterCreativeOptimizationConfiguration--; | 2470 buildCounterCreativeOptimizationConfiguration--; |
2436 return o; | 2471 return o; |
2437 } | 2472 } |
2438 | 2473 |
2439 checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o)
{ | 2474 checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o)
{ |
2440 buildCounterCreativeOptimizationConfiguration++; | 2475 buildCounterCreativeOptimizationConfiguration++; |
2441 if (buildCounterCreativeOptimizationConfiguration < 3) { | 2476 if (buildCounterCreativeOptimizationConfiguration < 3) { |
2442 unittest.expect(o.id, unittest.equals('foo')); | 2477 unittest.expect(o.id, unittest.equals('foo')); |
2443 unittest.expect(o.name, unittest.equals('foo')); | 2478 unittest.expect(o.name, unittest.equals('foo')); |
2444 checkUnnamed309(o.optimizationActivitys); | 2479 checkUnnamed1093(o.optimizationActivitys); |
2445 unittest.expect(o.optimizationModel, unittest.equals('foo')); | 2480 unittest.expect(o.optimizationModel, unittest.equals('foo')); |
2446 } | 2481 } |
2447 buildCounterCreativeOptimizationConfiguration--; | 2482 buildCounterCreativeOptimizationConfiguration--; |
2448 } | 2483 } |
2449 | 2484 |
2450 buildUnnamed310() { | 2485 buildUnnamed1094() { |
2451 var o = new core.List<api.CreativeAssignment>(); | 2486 var o = new core.List<api.CreativeAssignment>(); |
2452 o.add(buildCreativeAssignment()); | 2487 o.add(buildCreativeAssignment()); |
2453 o.add(buildCreativeAssignment()); | 2488 o.add(buildCreativeAssignment()); |
2454 return o; | 2489 return o; |
2455 } | 2490 } |
2456 | 2491 |
2457 checkUnnamed310(core.List<api.CreativeAssignment> o) { | 2492 checkUnnamed1094(core.List<api.CreativeAssignment> o) { |
2458 unittest.expect(o, unittest.hasLength(2)); | 2493 unittest.expect(o, unittest.hasLength(2)); |
2459 checkCreativeAssignment(o[0]); | 2494 checkCreativeAssignment(o[0]); |
2460 checkCreativeAssignment(o[1]); | 2495 checkCreativeAssignment(o[1]); |
2461 } | 2496 } |
2462 | 2497 |
2463 core.int buildCounterCreativeRotation = 0; | 2498 core.int buildCounterCreativeRotation = 0; |
2464 buildCreativeRotation() { | 2499 buildCreativeRotation() { |
2465 var o = new api.CreativeRotation(); | 2500 var o = new api.CreativeRotation(); |
2466 buildCounterCreativeRotation++; | 2501 buildCounterCreativeRotation++; |
2467 if (buildCounterCreativeRotation < 3) { | 2502 if (buildCounterCreativeRotation < 3) { |
2468 o.creativeAssignments = buildUnnamed310(); | 2503 o.creativeAssignments = buildUnnamed1094(); |
2469 o.creativeOptimizationConfigurationId = "foo"; | 2504 o.creativeOptimizationConfigurationId = "foo"; |
2470 o.type = "foo"; | 2505 o.type = "foo"; |
2471 o.weightCalculationStrategy = "foo"; | 2506 o.weightCalculationStrategy = "foo"; |
2472 } | 2507 } |
2473 buildCounterCreativeRotation--; | 2508 buildCounterCreativeRotation--; |
2474 return o; | 2509 return o; |
2475 } | 2510 } |
2476 | 2511 |
2477 checkCreativeRotation(api.CreativeRotation o) { | 2512 checkCreativeRotation(api.CreativeRotation o) { |
2478 buildCounterCreativeRotation++; | 2513 buildCounterCreativeRotation++; |
2479 if (buildCounterCreativeRotation < 3) { | 2514 if (buildCounterCreativeRotation < 3) { |
2480 checkUnnamed310(o.creativeAssignments); | 2515 checkUnnamed1094(o.creativeAssignments); |
2481 unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo'
)); | 2516 unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo'
)); |
2482 unittest.expect(o.type, unittest.equals('foo')); | 2517 unittest.expect(o.type, unittest.equals('foo')); |
2483 unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); | 2518 unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); |
2484 } | 2519 } |
2485 buildCounterCreativeRotation--; | 2520 buildCounterCreativeRotation--; |
2486 } | 2521 } |
2487 | 2522 |
2488 core.int buildCounterCreativeSettings = 0; | 2523 core.int buildCounterCreativeSettings = 0; |
2489 buildCreativeSettings() { | 2524 buildCreativeSettings() { |
2490 var o = new api.CreativeSettings(); | 2525 var o = new api.CreativeSettings(); |
2491 buildCounterCreativeSettings++; | 2526 buildCounterCreativeSettings++; |
2492 if (buildCounterCreativeSettings < 3) { | 2527 if (buildCounterCreativeSettings < 3) { |
2493 o.iFrameFooter = "foo"; | 2528 o.iFrameFooter = "foo"; |
2494 o.iFrameHeader = "foo"; | 2529 o.iFrameHeader = "foo"; |
2495 } | 2530 } |
2496 buildCounterCreativeSettings--; | 2531 buildCounterCreativeSettings--; |
2497 return o; | 2532 return o; |
2498 } | 2533 } |
2499 | 2534 |
2500 checkCreativeSettings(api.CreativeSettings o) { | 2535 checkCreativeSettings(api.CreativeSettings o) { |
2501 buildCounterCreativeSettings++; | 2536 buildCounterCreativeSettings++; |
2502 if (buildCounterCreativeSettings < 3) { | 2537 if (buildCounterCreativeSettings < 3) { |
2503 unittest.expect(o.iFrameFooter, unittest.equals('foo')); | 2538 unittest.expect(o.iFrameFooter, unittest.equals('foo')); |
2504 unittest.expect(o.iFrameHeader, unittest.equals('foo')); | 2539 unittest.expect(o.iFrameHeader, unittest.equals('foo')); |
2505 } | 2540 } |
2506 buildCounterCreativeSettings--; | 2541 buildCounterCreativeSettings--; |
2507 } | 2542 } |
2508 | 2543 |
2509 buildUnnamed311() { | 2544 buildUnnamed1095() { |
2510 var o = new core.List<api.Creative>(); | 2545 var o = new core.List<api.Creative>(); |
2511 o.add(buildCreative()); | 2546 o.add(buildCreative()); |
2512 o.add(buildCreative()); | 2547 o.add(buildCreative()); |
2513 return o; | 2548 return o; |
2514 } | 2549 } |
2515 | 2550 |
2516 checkUnnamed311(core.List<api.Creative> o) { | 2551 checkUnnamed1095(core.List<api.Creative> o) { |
2517 unittest.expect(o, unittest.hasLength(2)); | 2552 unittest.expect(o, unittest.hasLength(2)); |
2518 checkCreative(o[0]); | 2553 checkCreative(o[0]); |
2519 checkCreative(o[1]); | 2554 checkCreative(o[1]); |
2520 } | 2555 } |
2521 | 2556 |
2522 core.int buildCounterCreativesListResponse = 0; | 2557 core.int buildCounterCreativesListResponse = 0; |
2523 buildCreativesListResponse() { | 2558 buildCreativesListResponse() { |
2524 var o = new api.CreativesListResponse(); | 2559 var o = new api.CreativesListResponse(); |
2525 buildCounterCreativesListResponse++; | 2560 buildCounterCreativesListResponse++; |
2526 if (buildCounterCreativesListResponse < 3) { | 2561 if (buildCounterCreativesListResponse < 3) { |
2527 o.creatives = buildUnnamed311(); | 2562 o.creatives = buildUnnamed1095(); |
2528 o.kind = "foo"; | 2563 o.kind = "foo"; |
2529 o.nextPageToken = "foo"; | 2564 o.nextPageToken = "foo"; |
2530 } | 2565 } |
2531 buildCounterCreativesListResponse--; | 2566 buildCounterCreativesListResponse--; |
2532 return o; | 2567 return o; |
2533 } | 2568 } |
2534 | 2569 |
2535 checkCreativesListResponse(api.CreativesListResponse o) { | 2570 checkCreativesListResponse(api.CreativesListResponse o) { |
2536 buildCounterCreativesListResponse++; | 2571 buildCounterCreativesListResponse++; |
2537 if (buildCounterCreativesListResponse < 3) { | 2572 if (buildCounterCreativesListResponse < 3) { |
2538 checkUnnamed311(o.creatives); | 2573 checkUnnamed1095(o.creatives); |
2539 unittest.expect(o.kind, unittest.equals('foo')); | 2574 unittest.expect(o.kind, unittest.equals('foo')); |
2540 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2575 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2541 } | 2576 } |
2542 buildCounterCreativesListResponse--; | 2577 buildCounterCreativesListResponse--; |
2543 } | 2578 } |
2544 | 2579 |
2545 buildUnnamed312() { | 2580 buildUnnamed1096() { |
2546 var o = new core.List<api.Dimension>(); | 2581 var o = new core.List<api.Dimension>(); |
2547 o.add(buildDimension()); | 2582 o.add(buildDimension()); |
2548 o.add(buildDimension()); | 2583 o.add(buildDimension()); |
2549 return o; | 2584 return o; |
2550 } | 2585 } |
2551 | 2586 |
2552 checkUnnamed312(core.List<api.Dimension> o) { | 2587 checkUnnamed1096(core.List<api.Dimension> o) { |
2553 unittest.expect(o, unittest.hasLength(2)); | 2588 unittest.expect(o, unittest.hasLength(2)); |
2554 checkDimension(o[0]); | 2589 checkDimension(o[0]); |
2555 checkDimension(o[1]); | 2590 checkDimension(o[1]); |
2556 } | 2591 } |
2557 | 2592 |
2558 buildUnnamed313() { | 2593 buildUnnamed1097() { |
2559 var o = new core.List<api.Dimension>(); | 2594 var o = new core.List<api.Dimension>(); |
2560 o.add(buildDimension()); | 2595 o.add(buildDimension()); |
2561 o.add(buildDimension()); | 2596 o.add(buildDimension()); |
2562 return o; | 2597 return o; |
2563 } | 2598 } |
2564 | 2599 |
2565 checkUnnamed313(core.List<api.Dimension> o) { | 2600 checkUnnamed1097(core.List<api.Dimension> o) { |
2566 unittest.expect(o, unittest.hasLength(2)); | 2601 unittest.expect(o, unittest.hasLength(2)); |
2567 checkDimension(o[0]); | 2602 checkDimension(o[0]); |
2568 checkDimension(o[1]); | 2603 checkDimension(o[1]); |
2569 } | 2604 } |
2570 | 2605 |
2571 buildUnnamed314() { | 2606 buildUnnamed1098() { |
2572 var o = new core.List<api.Metric>(); | 2607 var o = new core.List<api.Metric>(); |
2573 o.add(buildMetric()); | 2608 o.add(buildMetric()); |
2574 o.add(buildMetric()); | 2609 o.add(buildMetric()); |
2575 return o; | 2610 return o; |
2576 } | 2611 } |
2577 | 2612 |
2578 checkUnnamed314(core.List<api.Metric> o) { | 2613 checkUnnamed1098(core.List<api.Metric> o) { |
2579 unittest.expect(o, unittest.hasLength(2)); | 2614 unittest.expect(o, unittest.hasLength(2)); |
2580 checkMetric(o[0]); | 2615 checkMetric(o[0]); |
2581 checkMetric(o[1]); | 2616 checkMetric(o[1]); |
2582 } | 2617 } |
2583 | 2618 |
2584 buildUnnamed315() { | 2619 buildUnnamed1099() { |
2585 var o = new core.List<api.Metric>(); | 2620 var o = new core.List<api.Metric>(); |
2586 o.add(buildMetric()); | 2621 o.add(buildMetric()); |
2587 o.add(buildMetric()); | 2622 o.add(buildMetric()); |
2588 return o; | 2623 return o; |
2589 } | 2624 } |
2590 | 2625 |
2591 checkUnnamed315(core.List<api.Metric> o) { | 2626 checkUnnamed1099(core.List<api.Metric> o) { |
2592 unittest.expect(o, unittest.hasLength(2)); | 2627 unittest.expect(o, unittest.hasLength(2)); |
2593 checkMetric(o[0]); | 2628 checkMetric(o[0]); |
2594 checkMetric(o[1]); | 2629 checkMetric(o[1]); |
2595 } | 2630 } |
2596 | 2631 |
2597 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; | 2632 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; |
2598 buildCrossDimensionReachReportCompatibleFields() { | 2633 buildCrossDimensionReachReportCompatibleFields() { |
2599 var o = new api.CrossDimensionReachReportCompatibleFields(); | 2634 var o = new api.CrossDimensionReachReportCompatibleFields(); |
2600 buildCounterCrossDimensionReachReportCompatibleFields++; | 2635 buildCounterCrossDimensionReachReportCompatibleFields++; |
2601 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { | 2636 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { |
2602 o.breakdown = buildUnnamed312(); | 2637 o.breakdown = buildUnnamed1096(); |
2603 o.dimensionFilters = buildUnnamed313(); | 2638 o.dimensionFilters = buildUnnamed1097(); |
2604 o.kind = "foo"; | 2639 o.kind = "foo"; |
2605 o.metrics = buildUnnamed314(); | 2640 o.metrics = buildUnnamed1098(); |
2606 o.overlapMetrics = buildUnnamed315(); | 2641 o.overlapMetrics = buildUnnamed1099(); |
2607 } | 2642 } |
2608 buildCounterCrossDimensionReachReportCompatibleFields--; | 2643 buildCounterCrossDimensionReachReportCompatibleFields--; |
2609 return o; | 2644 return o; |
2610 } | 2645 } |
2611 | 2646 |
2612 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp
atibleFields o) { | 2647 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp
atibleFields o) { |
2613 buildCounterCrossDimensionReachReportCompatibleFields++; | 2648 buildCounterCrossDimensionReachReportCompatibleFields++; |
2614 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { | 2649 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { |
2615 checkUnnamed312(o.breakdown); | 2650 checkUnnamed1096(o.breakdown); |
2616 checkUnnamed313(o.dimensionFilters); | 2651 checkUnnamed1097(o.dimensionFilters); |
2617 unittest.expect(o.kind, unittest.equals('foo')); | 2652 unittest.expect(o.kind, unittest.equals('foo')); |
2618 checkUnnamed314(o.metrics); | 2653 checkUnnamed1098(o.metrics); |
2619 checkUnnamed315(o.overlapMetrics); | 2654 checkUnnamed1099(o.overlapMetrics); |
2620 } | 2655 } |
2621 buildCounterCrossDimensionReachReportCompatibleFields--; | 2656 buildCounterCrossDimensionReachReportCompatibleFields--; |
2622 } | 2657 } |
2623 | 2658 |
2624 buildUnnamed316() { | 2659 buildUnnamed1100() { |
2625 var o = new core.List<api.DimensionValue>(); | 2660 var o = new core.List<api.DimensionValue>(); |
2626 o.add(buildDimensionValue()); | 2661 o.add(buildDimensionValue()); |
2627 o.add(buildDimensionValue()); | 2662 o.add(buildDimensionValue()); |
2628 return o; | 2663 return o; |
2629 } | 2664 } |
2630 | 2665 |
2631 checkUnnamed316(core.List<api.DimensionValue> o) { | 2666 checkUnnamed1100(core.List<api.DimensionValue> o) { |
2632 unittest.expect(o, unittest.hasLength(2)); | 2667 unittest.expect(o, unittest.hasLength(2)); |
2633 checkDimensionValue(o[0]); | 2668 checkDimensionValue(o[0]); |
2634 checkDimensionValue(o[1]); | 2669 checkDimensionValue(o[1]); |
2635 } | 2670 } |
2636 | 2671 |
2637 core.int buildCounterCustomRichMediaEvents = 0; | 2672 core.int buildCounterCustomRichMediaEvents = 0; |
2638 buildCustomRichMediaEvents() { | 2673 buildCustomRichMediaEvents() { |
2639 var o = new api.CustomRichMediaEvents(); | 2674 var o = new api.CustomRichMediaEvents(); |
2640 buildCounterCustomRichMediaEvents++; | 2675 buildCounterCustomRichMediaEvents++; |
2641 if (buildCounterCustomRichMediaEvents < 3) { | 2676 if (buildCounterCustomRichMediaEvents < 3) { |
2642 o.filteredEventIds = buildUnnamed316(); | 2677 o.filteredEventIds = buildUnnamed1100(); |
2643 o.kind = "foo"; | 2678 o.kind = "foo"; |
2644 } | 2679 } |
2645 buildCounterCustomRichMediaEvents--; | 2680 buildCounterCustomRichMediaEvents--; |
2646 return o; | 2681 return o; |
2647 } | 2682 } |
2648 | 2683 |
2649 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { | 2684 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { |
2650 buildCounterCustomRichMediaEvents++; | 2685 buildCounterCustomRichMediaEvents++; |
2651 if (buildCounterCustomRichMediaEvents < 3) { | 2686 if (buildCounterCustomRichMediaEvents < 3) { |
2652 checkUnnamed316(o.filteredEventIds); | 2687 checkUnnamed1100(o.filteredEventIds); |
2653 unittest.expect(o.kind, unittest.equals('foo')); | 2688 unittest.expect(o.kind, unittest.equals('foo')); |
2654 } | 2689 } |
2655 buildCounterCustomRichMediaEvents--; | 2690 buildCounterCustomRichMediaEvents--; |
2656 } | 2691 } |
2657 | 2692 |
2658 core.int buildCounterDateRange = 0; | 2693 core.int buildCounterDateRange = 0; |
2659 buildDateRange() { | 2694 buildDateRange() { |
2660 var o = new api.DateRange(); | 2695 var o = new api.DateRange(); |
2661 buildCounterDateRange++; | 2696 buildCounterDateRange++; |
2662 if (buildCounterDateRange < 3) { | 2697 if (buildCounterDateRange < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
2673 buildCounterDateRange++; | 2708 buildCounterDateRange++; |
2674 if (buildCounterDateRange < 3) { | 2709 if (buildCounterDateRange < 3) { |
2675 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 2710 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
2676 unittest.expect(o.kind, unittest.equals('foo')); | 2711 unittest.expect(o.kind, unittest.equals('foo')); |
2677 unittest.expect(o.relativeDateRange, unittest.equals('foo')); | 2712 unittest.expect(o.relativeDateRange, unittest.equals('foo')); |
2678 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 2713 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
2679 } | 2714 } |
2680 buildCounterDateRange--; | 2715 buildCounterDateRange--; |
2681 } | 2716 } |
2682 | 2717 |
2683 buildUnnamed317() { | 2718 buildUnnamed1101() { |
2684 var o = new core.List<core.String>(); | 2719 var o = new core.List<core.String>(); |
2685 o.add("foo"); | 2720 o.add("foo"); |
2686 o.add("foo"); | 2721 o.add("foo"); |
2687 return o; | 2722 return o; |
2688 } | 2723 } |
2689 | 2724 |
2690 checkUnnamed317(core.List<core.String> o) { | 2725 checkUnnamed1101(core.List<core.String> o) { |
2691 unittest.expect(o, unittest.hasLength(2)); | 2726 unittest.expect(o, unittest.hasLength(2)); |
2692 unittest.expect(o[0], unittest.equals('foo')); | 2727 unittest.expect(o[0], unittest.equals('foo')); |
2693 unittest.expect(o[1], unittest.equals('foo')); | 2728 unittest.expect(o[1], unittest.equals('foo')); |
2694 } | 2729 } |
2695 | 2730 |
2696 buildUnnamed318() { | 2731 buildUnnamed1102() { |
2697 var o = new core.List<core.int>(); | 2732 var o = new core.List<core.int>(); |
2698 o.add(42); | 2733 o.add(42); |
2699 o.add(42); | 2734 o.add(42); |
2700 return o; | 2735 return o; |
2701 } | 2736 } |
2702 | 2737 |
2703 checkUnnamed318(core.List<core.int> o) { | 2738 checkUnnamed1102(core.List<core.int> o) { |
2704 unittest.expect(o, unittest.hasLength(2)); | 2739 unittest.expect(o, unittest.hasLength(2)); |
2705 unittest.expect(o[0], unittest.equals(42)); | 2740 unittest.expect(o[0], unittest.equals(42)); |
2706 unittest.expect(o[1], unittest.equals(42)); | 2741 unittest.expect(o[1], unittest.equals(42)); |
2707 } | 2742 } |
2708 | 2743 |
2709 core.int buildCounterDayPartTargeting = 0; | 2744 core.int buildCounterDayPartTargeting = 0; |
2710 buildDayPartTargeting() { | 2745 buildDayPartTargeting() { |
2711 var o = new api.DayPartTargeting(); | 2746 var o = new api.DayPartTargeting(); |
2712 buildCounterDayPartTargeting++; | 2747 buildCounterDayPartTargeting++; |
2713 if (buildCounterDayPartTargeting < 3) { | 2748 if (buildCounterDayPartTargeting < 3) { |
2714 o.daysOfWeek = buildUnnamed317(); | 2749 o.daysOfWeek = buildUnnamed1101(); |
2715 o.hoursOfDay = buildUnnamed318(); | 2750 o.hoursOfDay = buildUnnamed1102(); |
2716 o.userLocalTime = true; | 2751 o.userLocalTime = true; |
2717 } | 2752 } |
2718 buildCounterDayPartTargeting--; | 2753 buildCounterDayPartTargeting--; |
2719 return o; | 2754 return o; |
2720 } | 2755 } |
2721 | 2756 |
2722 checkDayPartTargeting(api.DayPartTargeting o) { | 2757 checkDayPartTargeting(api.DayPartTargeting o) { |
2723 buildCounterDayPartTargeting++; | 2758 buildCounterDayPartTargeting++; |
2724 if (buildCounterDayPartTargeting < 3) { | 2759 if (buildCounterDayPartTargeting < 3) { |
2725 checkUnnamed317(o.daysOfWeek); | 2760 checkUnnamed1101(o.daysOfWeek); |
2726 checkUnnamed318(o.hoursOfDay); | 2761 checkUnnamed1102(o.hoursOfDay); |
2727 unittest.expect(o.userLocalTime, unittest.isTrue); | 2762 unittest.expect(o.userLocalTime, unittest.isTrue); |
2728 } | 2763 } |
2729 buildCounterDayPartTargeting--; | 2764 buildCounterDayPartTargeting--; |
2730 } | 2765 } |
2731 | 2766 |
2732 core.int buildCounterDefaultClickThroughEventTagProperties = 0; | 2767 core.int buildCounterDefaultClickThroughEventTagProperties = 0; |
2733 buildDefaultClickThroughEventTagProperties() { | 2768 buildDefaultClickThroughEventTagProperties() { |
2734 var o = new api.DefaultClickThroughEventTagProperties(); | 2769 var o = new api.DefaultClickThroughEventTagProperties(); |
2735 buildCounterDefaultClickThroughEventTagProperties++; | 2770 buildCounterDefaultClickThroughEventTagProperties++; |
2736 if (buildCounterDefaultClickThroughEventTagProperties < 3) { | 2771 if (buildCounterDefaultClickThroughEventTagProperties < 3) { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2868 unittest.expect(o.dimensionName, unittest.equals('foo')); | 2903 unittest.expect(o.dimensionName, unittest.equals('foo')); |
2869 unittest.expect(o.etag, unittest.equals('foo')); | 2904 unittest.expect(o.etag, unittest.equals('foo')); |
2870 unittest.expect(o.id, unittest.equals('foo')); | 2905 unittest.expect(o.id, unittest.equals('foo')); |
2871 unittest.expect(o.kind, unittest.equals('foo')); | 2906 unittest.expect(o.kind, unittest.equals('foo')); |
2872 unittest.expect(o.matchType, unittest.equals('foo')); | 2907 unittest.expect(o.matchType, unittest.equals('foo')); |
2873 unittest.expect(o.value, unittest.equals('foo')); | 2908 unittest.expect(o.value, unittest.equals('foo')); |
2874 } | 2909 } |
2875 buildCounterDimensionValue--; | 2910 buildCounterDimensionValue--; |
2876 } | 2911 } |
2877 | 2912 |
2878 buildUnnamed319() { | 2913 buildUnnamed1103() { |
2879 var o = new core.List<api.DimensionValue>(); | 2914 var o = new core.List<api.DimensionValue>(); |
2880 o.add(buildDimensionValue()); | 2915 o.add(buildDimensionValue()); |
2881 o.add(buildDimensionValue()); | 2916 o.add(buildDimensionValue()); |
2882 return o; | 2917 return o; |
2883 } | 2918 } |
2884 | 2919 |
2885 checkUnnamed319(core.List<api.DimensionValue> o) { | 2920 checkUnnamed1103(core.List<api.DimensionValue> o) { |
2886 unittest.expect(o, unittest.hasLength(2)); | 2921 unittest.expect(o, unittest.hasLength(2)); |
2887 checkDimensionValue(o[0]); | 2922 checkDimensionValue(o[0]); |
2888 checkDimensionValue(o[1]); | 2923 checkDimensionValue(o[1]); |
2889 } | 2924 } |
2890 | 2925 |
2891 core.int buildCounterDimensionValueList = 0; | 2926 core.int buildCounterDimensionValueList = 0; |
2892 buildDimensionValueList() { | 2927 buildDimensionValueList() { |
2893 var o = new api.DimensionValueList(); | 2928 var o = new api.DimensionValueList(); |
2894 buildCounterDimensionValueList++; | 2929 buildCounterDimensionValueList++; |
2895 if (buildCounterDimensionValueList < 3) { | 2930 if (buildCounterDimensionValueList < 3) { |
2896 o.etag = "foo"; | 2931 o.etag = "foo"; |
2897 o.items = buildUnnamed319(); | 2932 o.items = buildUnnamed1103(); |
2898 o.kind = "foo"; | 2933 o.kind = "foo"; |
2899 o.nextPageToken = "foo"; | 2934 o.nextPageToken = "foo"; |
2900 } | 2935 } |
2901 buildCounterDimensionValueList--; | 2936 buildCounterDimensionValueList--; |
2902 return o; | 2937 return o; |
2903 } | 2938 } |
2904 | 2939 |
2905 checkDimensionValueList(api.DimensionValueList o) { | 2940 checkDimensionValueList(api.DimensionValueList o) { |
2906 buildCounterDimensionValueList++; | 2941 buildCounterDimensionValueList++; |
2907 if (buildCounterDimensionValueList < 3) { | 2942 if (buildCounterDimensionValueList < 3) { |
2908 unittest.expect(o.etag, unittest.equals('foo')); | 2943 unittest.expect(o.etag, unittest.equals('foo')); |
2909 checkUnnamed319(o.items); | 2944 checkUnnamed1103(o.items); |
2910 unittest.expect(o.kind, unittest.equals('foo')); | 2945 unittest.expect(o.kind, unittest.equals('foo')); |
2911 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2946 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2912 } | 2947 } |
2913 buildCounterDimensionValueList--; | 2948 buildCounterDimensionValueList--; |
2914 } | 2949 } |
2915 | 2950 |
2916 buildUnnamed320() { | 2951 buildUnnamed1104() { |
2917 var o = new core.List<api.DimensionFilter>(); | 2952 var o = new core.List<api.DimensionFilter>(); |
2918 o.add(buildDimensionFilter()); | 2953 o.add(buildDimensionFilter()); |
2919 o.add(buildDimensionFilter()); | 2954 o.add(buildDimensionFilter()); |
2920 return o; | 2955 return o; |
2921 } | 2956 } |
2922 | 2957 |
2923 checkUnnamed320(core.List<api.DimensionFilter> o) { | 2958 checkUnnamed1104(core.List<api.DimensionFilter> o) { |
2924 unittest.expect(o, unittest.hasLength(2)); | 2959 unittest.expect(o, unittest.hasLength(2)); |
2925 checkDimensionFilter(o[0]); | 2960 checkDimensionFilter(o[0]); |
2926 checkDimensionFilter(o[1]); | 2961 checkDimensionFilter(o[1]); |
2927 } | 2962 } |
2928 | 2963 |
2929 core.int buildCounterDimensionValueRequest = 0; | 2964 core.int buildCounterDimensionValueRequest = 0; |
2930 buildDimensionValueRequest() { | 2965 buildDimensionValueRequest() { |
2931 var o = new api.DimensionValueRequest(); | 2966 var o = new api.DimensionValueRequest(); |
2932 buildCounterDimensionValueRequest++; | 2967 buildCounterDimensionValueRequest++; |
2933 if (buildCounterDimensionValueRequest < 3) { | 2968 if (buildCounterDimensionValueRequest < 3) { |
2934 o.dimensionName = "foo"; | 2969 o.dimensionName = "foo"; |
2935 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 2970 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
2936 o.filters = buildUnnamed320(); | 2971 o.filters = buildUnnamed1104(); |
2937 o.kind = "foo"; | 2972 o.kind = "foo"; |
2938 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 2973 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
2939 } | 2974 } |
2940 buildCounterDimensionValueRequest--; | 2975 buildCounterDimensionValueRequest--; |
2941 return o; | 2976 return o; |
2942 } | 2977 } |
2943 | 2978 |
2944 checkDimensionValueRequest(api.DimensionValueRequest o) { | 2979 checkDimensionValueRequest(api.DimensionValueRequest o) { |
2945 buildCounterDimensionValueRequest++; | 2980 buildCounterDimensionValueRequest++; |
2946 if (buildCounterDimensionValueRequest < 3) { | 2981 if (buildCounterDimensionValueRequest < 3) { |
2947 unittest.expect(o.dimensionName, unittest.equals('foo')); | 2982 unittest.expect(o.dimensionName, unittest.equals('foo')); |
2948 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 2983 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
2949 checkUnnamed320(o.filters); | 2984 checkUnnamed1104(o.filters); |
2950 unittest.expect(o.kind, unittest.equals('foo')); | 2985 unittest.expect(o.kind, unittest.equals('foo')); |
2951 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 2986 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
2952 } | 2987 } |
2953 buildCounterDimensionValueRequest--; | 2988 buildCounterDimensionValueRequest--; |
2954 } | 2989 } |
2955 | 2990 |
2956 buildUnnamed321() { | 2991 buildUnnamed1105() { |
2957 var o = new core.List<api.DirectorySiteContactAssignment>(); | 2992 var o = new core.List<api.DirectorySiteContactAssignment>(); |
2958 o.add(buildDirectorySiteContactAssignment()); | 2993 o.add(buildDirectorySiteContactAssignment()); |
2959 o.add(buildDirectorySiteContactAssignment()); | 2994 o.add(buildDirectorySiteContactAssignment()); |
2960 return o; | 2995 return o; |
2961 } | 2996 } |
2962 | 2997 |
2963 checkUnnamed321(core.List<api.DirectorySiteContactAssignment> o) { | 2998 checkUnnamed1105(core.List<api.DirectorySiteContactAssignment> o) { |
2964 unittest.expect(o, unittest.hasLength(2)); | 2999 unittest.expect(o, unittest.hasLength(2)); |
2965 checkDirectorySiteContactAssignment(o[0]); | 3000 checkDirectorySiteContactAssignment(o[0]); |
2966 checkDirectorySiteContactAssignment(o[1]); | 3001 checkDirectorySiteContactAssignment(o[1]); |
2967 } | 3002 } |
2968 | 3003 |
2969 buildUnnamed322() { | 3004 buildUnnamed1106() { |
2970 var o = new core.List<core.String>(); | 3005 var o = new core.List<core.String>(); |
2971 o.add("foo"); | 3006 o.add("foo"); |
2972 o.add("foo"); | 3007 o.add("foo"); |
2973 return o; | 3008 return o; |
2974 } | 3009 } |
2975 | 3010 |
2976 checkUnnamed322(core.List<core.String> o) { | 3011 checkUnnamed1106(core.List<core.String> o) { |
2977 unittest.expect(o, unittest.hasLength(2)); | 3012 unittest.expect(o, unittest.hasLength(2)); |
2978 unittest.expect(o[0], unittest.equals('foo')); | 3013 unittest.expect(o[0], unittest.equals('foo')); |
2979 unittest.expect(o[1], unittest.equals('foo')); | 3014 unittest.expect(o[1], unittest.equals('foo')); |
2980 } | 3015 } |
2981 | 3016 |
2982 buildUnnamed323() { | 3017 buildUnnamed1107() { |
2983 var o = new core.List<core.String>(); | 3018 var o = new core.List<core.String>(); |
2984 o.add("foo"); | 3019 o.add("foo"); |
2985 o.add("foo"); | 3020 o.add("foo"); |
2986 return o; | 3021 return o; |
2987 } | 3022 } |
2988 | 3023 |
2989 checkUnnamed323(core.List<core.String> o) { | 3024 checkUnnamed1107(core.List<core.String> o) { |
2990 unittest.expect(o, unittest.hasLength(2)); | 3025 unittest.expect(o, unittest.hasLength(2)); |
2991 unittest.expect(o[0], unittest.equals('foo')); | 3026 unittest.expect(o[0], unittest.equals('foo')); |
2992 unittest.expect(o[1], unittest.equals('foo')); | 3027 unittest.expect(o[1], unittest.equals('foo')); |
2993 } | 3028 } |
2994 | 3029 |
2995 core.int buildCounterDirectorySite = 0; | 3030 core.int buildCounterDirectorySite = 0; |
2996 buildDirectorySite() { | 3031 buildDirectorySite() { |
2997 var o = new api.DirectorySite(); | 3032 var o = new api.DirectorySite(); |
2998 buildCounterDirectorySite++; | 3033 buildCounterDirectorySite++; |
2999 if (buildCounterDirectorySite < 3) { | 3034 if (buildCounterDirectorySite < 3) { |
3000 o.active = true; | 3035 o.active = true; |
3001 o.contactAssignments = buildUnnamed321(); | 3036 o.contactAssignments = buildUnnamed1105(); |
3002 o.countryId = "foo"; | 3037 o.countryId = "foo"; |
3003 o.currencyId = "foo"; | 3038 o.currencyId = "foo"; |
3004 o.description = "foo"; | 3039 o.description = "foo"; |
3005 o.id = "foo"; | 3040 o.id = "foo"; |
3006 o.idDimensionValue = buildDimensionValue(); | 3041 o.idDimensionValue = buildDimensionValue(); |
3007 o.inpageTagFormats = buildUnnamed322(); | 3042 o.inpageTagFormats = buildUnnamed1106(); |
3008 o.interstitialTagFormats = buildUnnamed323(); | 3043 o.interstitialTagFormats = buildUnnamed1107(); |
3009 o.kind = "foo"; | 3044 o.kind = "foo"; |
3010 o.name = "foo"; | 3045 o.name = "foo"; |
3011 o.parentId = "foo"; | 3046 o.parentId = "foo"; |
3012 o.settings = buildDirectorySiteSettings(); | 3047 o.settings = buildDirectorySiteSettings(); |
3013 o.url = "foo"; | 3048 o.url = "foo"; |
3014 } | 3049 } |
3015 buildCounterDirectorySite--; | 3050 buildCounterDirectorySite--; |
3016 return o; | 3051 return o; |
3017 } | 3052 } |
3018 | 3053 |
3019 checkDirectorySite(api.DirectorySite o) { | 3054 checkDirectorySite(api.DirectorySite o) { |
3020 buildCounterDirectorySite++; | 3055 buildCounterDirectorySite++; |
3021 if (buildCounterDirectorySite < 3) { | 3056 if (buildCounterDirectorySite < 3) { |
3022 unittest.expect(o.active, unittest.isTrue); | 3057 unittest.expect(o.active, unittest.isTrue); |
3023 checkUnnamed321(o.contactAssignments); | 3058 checkUnnamed1105(o.contactAssignments); |
3024 unittest.expect(o.countryId, unittest.equals('foo')); | 3059 unittest.expect(o.countryId, unittest.equals('foo')); |
3025 unittest.expect(o.currencyId, unittest.equals('foo')); | 3060 unittest.expect(o.currencyId, unittest.equals('foo')); |
3026 unittest.expect(o.description, unittest.equals('foo')); | 3061 unittest.expect(o.description, unittest.equals('foo')); |
3027 unittest.expect(o.id, unittest.equals('foo')); | 3062 unittest.expect(o.id, unittest.equals('foo')); |
3028 checkDimensionValue(o.idDimensionValue); | 3063 checkDimensionValue(o.idDimensionValue); |
3029 checkUnnamed322(o.inpageTagFormats); | 3064 checkUnnamed1106(o.inpageTagFormats); |
3030 checkUnnamed323(o.interstitialTagFormats); | 3065 checkUnnamed1107(o.interstitialTagFormats); |
3031 unittest.expect(o.kind, unittest.equals('foo')); | 3066 unittest.expect(o.kind, unittest.equals('foo')); |
3032 unittest.expect(o.name, unittest.equals('foo')); | 3067 unittest.expect(o.name, unittest.equals('foo')); |
3033 unittest.expect(o.parentId, unittest.equals('foo')); | 3068 unittest.expect(o.parentId, unittest.equals('foo')); |
3034 checkDirectorySiteSettings(o.settings); | 3069 checkDirectorySiteSettings(o.settings); |
3035 unittest.expect(o.url, unittest.equals('foo')); | 3070 unittest.expect(o.url, unittest.equals('foo')); |
3036 } | 3071 } |
3037 buildCounterDirectorySite--; | 3072 buildCounterDirectorySite--; |
3038 } | 3073 } |
3039 | 3074 |
3040 core.int buildCounterDirectorySiteContact = 0; | 3075 core.int buildCounterDirectorySiteContact = 0; |
3041 buildDirectorySiteContact() { | 3076 buildDirectorySiteContact() { |
3042 var o = new api.DirectorySiteContact(); | 3077 var o = new api.DirectorySiteContact(); |
3043 buildCounterDirectorySiteContact++; | 3078 buildCounterDirectorySiteContact++; |
3044 if (buildCounterDirectorySiteContact < 3) { | 3079 if (buildCounterDirectorySiteContact < 3) { |
| 3080 o.address = "foo"; |
3045 o.email = "foo"; | 3081 o.email = "foo"; |
3046 o.firstName = "foo"; | 3082 o.firstName = "foo"; |
3047 o.id = "foo"; | 3083 o.id = "foo"; |
3048 o.kind = "foo"; | 3084 o.kind = "foo"; |
3049 o.lastName = "foo"; | 3085 o.lastName = "foo"; |
| 3086 o.phone = "foo"; |
3050 o.role = "foo"; | 3087 o.role = "foo"; |
| 3088 o.title = "foo"; |
3051 o.type = "foo"; | 3089 o.type = "foo"; |
3052 } | 3090 } |
3053 buildCounterDirectorySiteContact--; | 3091 buildCounterDirectorySiteContact--; |
3054 return o; | 3092 return o; |
3055 } | 3093 } |
3056 | 3094 |
3057 checkDirectorySiteContact(api.DirectorySiteContact o) { | 3095 checkDirectorySiteContact(api.DirectorySiteContact o) { |
3058 buildCounterDirectorySiteContact++; | 3096 buildCounterDirectorySiteContact++; |
3059 if (buildCounterDirectorySiteContact < 3) { | 3097 if (buildCounterDirectorySiteContact < 3) { |
| 3098 unittest.expect(o.address, unittest.equals('foo')); |
3060 unittest.expect(o.email, unittest.equals('foo')); | 3099 unittest.expect(o.email, unittest.equals('foo')); |
3061 unittest.expect(o.firstName, unittest.equals('foo')); | 3100 unittest.expect(o.firstName, unittest.equals('foo')); |
3062 unittest.expect(o.id, unittest.equals('foo')); | 3101 unittest.expect(o.id, unittest.equals('foo')); |
3063 unittest.expect(o.kind, unittest.equals('foo')); | 3102 unittest.expect(o.kind, unittest.equals('foo')); |
3064 unittest.expect(o.lastName, unittest.equals('foo')); | 3103 unittest.expect(o.lastName, unittest.equals('foo')); |
| 3104 unittest.expect(o.phone, unittest.equals('foo')); |
3065 unittest.expect(o.role, unittest.equals('foo')); | 3105 unittest.expect(o.role, unittest.equals('foo')); |
| 3106 unittest.expect(o.title, unittest.equals('foo')); |
3066 unittest.expect(o.type, unittest.equals('foo')); | 3107 unittest.expect(o.type, unittest.equals('foo')); |
3067 } | 3108 } |
3068 buildCounterDirectorySiteContact--; | 3109 buildCounterDirectorySiteContact--; |
3069 } | 3110 } |
3070 | 3111 |
3071 core.int buildCounterDirectorySiteContactAssignment = 0; | 3112 core.int buildCounterDirectorySiteContactAssignment = 0; |
3072 buildDirectorySiteContactAssignment() { | 3113 buildDirectorySiteContactAssignment() { |
3073 var o = new api.DirectorySiteContactAssignment(); | 3114 var o = new api.DirectorySiteContactAssignment(); |
3074 buildCounterDirectorySiteContactAssignment++; | 3115 buildCounterDirectorySiteContactAssignment++; |
3075 if (buildCounterDirectorySiteContactAssignment < 3) { | 3116 if (buildCounterDirectorySiteContactAssignment < 3) { |
3076 o.contactId = "foo"; | 3117 o.contactId = "foo"; |
3077 o.visibility = "foo"; | 3118 o.visibility = "foo"; |
3078 } | 3119 } |
3079 buildCounterDirectorySiteContactAssignment--; | 3120 buildCounterDirectorySiteContactAssignment--; |
3080 return o; | 3121 return o; |
3081 } | 3122 } |
3082 | 3123 |
3083 checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) { | 3124 checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) { |
3084 buildCounterDirectorySiteContactAssignment++; | 3125 buildCounterDirectorySiteContactAssignment++; |
3085 if (buildCounterDirectorySiteContactAssignment < 3) { | 3126 if (buildCounterDirectorySiteContactAssignment < 3) { |
3086 unittest.expect(o.contactId, unittest.equals('foo')); | 3127 unittest.expect(o.contactId, unittest.equals('foo')); |
3087 unittest.expect(o.visibility, unittest.equals('foo')); | 3128 unittest.expect(o.visibility, unittest.equals('foo')); |
3088 } | 3129 } |
3089 buildCounterDirectorySiteContactAssignment--; | 3130 buildCounterDirectorySiteContactAssignment--; |
3090 } | 3131 } |
3091 | 3132 |
3092 buildUnnamed324() { | 3133 buildUnnamed1108() { |
3093 var o = new core.List<api.DirectorySiteContact>(); | 3134 var o = new core.List<api.DirectorySiteContact>(); |
3094 o.add(buildDirectorySiteContact()); | 3135 o.add(buildDirectorySiteContact()); |
3095 o.add(buildDirectorySiteContact()); | 3136 o.add(buildDirectorySiteContact()); |
3096 return o; | 3137 return o; |
3097 } | 3138 } |
3098 | 3139 |
3099 checkUnnamed324(core.List<api.DirectorySiteContact> o) { | 3140 checkUnnamed1108(core.List<api.DirectorySiteContact> o) { |
3100 unittest.expect(o, unittest.hasLength(2)); | 3141 unittest.expect(o, unittest.hasLength(2)); |
3101 checkDirectorySiteContact(o[0]); | 3142 checkDirectorySiteContact(o[0]); |
3102 checkDirectorySiteContact(o[1]); | 3143 checkDirectorySiteContact(o[1]); |
3103 } | 3144 } |
3104 | 3145 |
3105 core.int buildCounterDirectorySiteContactsListResponse = 0; | 3146 core.int buildCounterDirectorySiteContactsListResponse = 0; |
3106 buildDirectorySiteContactsListResponse() { | 3147 buildDirectorySiteContactsListResponse() { |
3107 var o = new api.DirectorySiteContactsListResponse(); | 3148 var o = new api.DirectorySiteContactsListResponse(); |
3108 buildCounterDirectorySiteContactsListResponse++; | 3149 buildCounterDirectorySiteContactsListResponse++; |
3109 if (buildCounterDirectorySiteContactsListResponse < 3) { | 3150 if (buildCounterDirectorySiteContactsListResponse < 3) { |
3110 o.directorySiteContacts = buildUnnamed324(); | 3151 o.directorySiteContacts = buildUnnamed1108(); |
3111 o.kind = "foo"; | 3152 o.kind = "foo"; |
3112 o.nextPageToken = "foo"; | 3153 o.nextPageToken = "foo"; |
3113 } | 3154 } |
3114 buildCounterDirectorySiteContactsListResponse--; | 3155 buildCounterDirectorySiteContactsListResponse--; |
3115 return o; | 3156 return o; |
3116 } | 3157 } |
3117 | 3158 |
3118 checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o)
{ | 3159 checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o)
{ |
3119 buildCounterDirectorySiteContactsListResponse++; | 3160 buildCounterDirectorySiteContactsListResponse++; |
3120 if (buildCounterDirectorySiteContactsListResponse < 3) { | 3161 if (buildCounterDirectorySiteContactsListResponse < 3) { |
3121 checkUnnamed324(o.directorySiteContacts); | 3162 checkUnnamed1108(o.directorySiteContacts); |
3122 unittest.expect(o.kind, unittest.equals('foo')); | 3163 unittest.expect(o.kind, unittest.equals('foo')); |
3123 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3164 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3124 } | 3165 } |
3125 buildCounterDirectorySiteContactsListResponse--; | 3166 buildCounterDirectorySiteContactsListResponse--; |
3126 } | 3167 } |
3127 | 3168 |
3128 core.int buildCounterDirectorySiteSettings = 0; | 3169 core.int buildCounterDirectorySiteSettings = 0; |
3129 buildDirectorySiteSettings() { | 3170 buildDirectorySiteSettings() { |
3130 var o = new api.DirectorySiteSettings(); | 3171 var o = new api.DirectorySiteSettings(); |
3131 buildCounterDirectorySiteSettings++; | 3172 buildCounterDirectorySiteSettings++; |
(...skipping 17 matching lines...) Expand all Loading... |
3149 checkDfpSettings(o.dfpSettings); | 3190 checkDfpSettings(o.dfpSettings); |
3150 unittest.expect(o.instreamVideoPlacementAccepted, unittest.isTrue); | 3191 unittest.expect(o.instreamVideoPlacementAccepted, unittest.isTrue); |
3151 unittest.expect(o.interstitialPlacementAccepted, unittest.isTrue); | 3192 unittest.expect(o.interstitialPlacementAccepted, unittest.isTrue); |
3152 unittest.expect(o.nielsenOcrOptOut, unittest.isTrue); | 3193 unittest.expect(o.nielsenOcrOptOut, unittest.isTrue); |
3153 unittest.expect(o.verificationTagOptOut, unittest.isTrue); | 3194 unittest.expect(o.verificationTagOptOut, unittest.isTrue); |
3154 unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); | 3195 unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); |
3155 } | 3196 } |
3156 buildCounterDirectorySiteSettings--; | 3197 buildCounterDirectorySiteSettings--; |
3157 } | 3198 } |
3158 | 3199 |
3159 buildUnnamed325() { | 3200 buildUnnamed1109() { |
3160 var o = new core.List<api.DirectorySite>(); | 3201 var o = new core.List<api.DirectorySite>(); |
3161 o.add(buildDirectorySite()); | 3202 o.add(buildDirectorySite()); |
3162 o.add(buildDirectorySite()); | 3203 o.add(buildDirectorySite()); |
3163 return o; | 3204 return o; |
3164 } | 3205 } |
3165 | 3206 |
3166 checkUnnamed325(core.List<api.DirectorySite> o) { | 3207 checkUnnamed1109(core.List<api.DirectorySite> o) { |
3167 unittest.expect(o, unittest.hasLength(2)); | 3208 unittest.expect(o, unittest.hasLength(2)); |
3168 checkDirectorySite(o[0]); | 3209 checkDirectorySite(o[0]); |
3169 checkDirectorySite(o[1]); | 3210 checkDirectorySite(o[1]); |
3170 } | 3211 } |
3171 | 3212 |
3172 core.int buildCounterDirectorySitesListResponse = 0; | 3213 core.int buildCounterDirectorySitesListResponse = 0; |
3173 buildDirectorySitesListResponse() { | 3214 buildDirectorySitesListResponse() { |
3174 var o = new api.DirectorySitesListResponse(); | 3215 var o = new api.DirectorySitesListResponse(); |
3175 buildCounterDirectorySitesListResponse++; | 3216 buildCounterDirectorySitesListResponse++; |
3176 if (buildCounterDirectorySitesListResponse < 3) { | 3217 if (buildCounterDirectorySitesListResponse < 3) { |
3177 o.directorySites = buildUnnamed325(); | 3218 o.directorySites = buildUnnamed1109(); |
3178 o.kind = "foo"; | 3219 o.kind = "foo"; |
3179 o.nextPageToken = "foo"; | 3220 o.nextPageToken = "foo"; |
3180 } | 3221 } |
3181 buildCounterDirectorySitesListResponse--; | 3222 buildCounterDirectorySitesListResponse--; |
3182 return o; | 3223 return o; |
3183 } | 3224 } |
3184 | 3225 |
3185 checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { | 3226 checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { |
3186 buildCounterDirectorySitesListResponse++; | 3227 buildCounterDirectorySitesListResponse++; |
3187 if (buildCounterDirectorySitesListResponse < 3) { | 3228 if (buildCounterDirectorySitesListResponse < 3) { |
3188 checkUnnamed325(o.directorySites); | 3229 checkUnnamed1109(o.directorySites); |
3189 unittest.expect(o.kind, unittest.equals('foo')); | 3230 unittest.expect(o.kind, unittest.equals('foo')); |
3190 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3231 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3191 } | 3232 } |
3192 buildCounterDirectorySitesListResponse--; | 3233 buildCounterDirectorySitesListResponse--; |
3193 } | 3234 } |
3194 | 3235 |
3195 buildUnnamed326() { | 3236 buildUnnamed1110() { |
3196 var o = new core.List<core.String>(); | 3237 var o = new core.List<core.String>(); |
3197 o.add("foo"); | 3238 o.add("foo"); |
3198 o.add("foo"); | 3239 o.add("foo"); |
3199 return o; | 3240 return o; |
3200 } | 3241 } |
3201 | 3242 |
3202 checkUnnamed326(core.List<core.String> o) { | 3243 checkUnnamed1110(core.List<core.String> o) { |
3203 unittest.expect(o, unittest.hasLength(2)); | 3244 unittest.expect(o, unittest.hasLength(2)); |
3204 unittest.expect(o[0], unittest.equals('foo')); | 3245 unittest.expect(o[0], unittest.equals('foo')); |
3205 unittest.expect(o[1], unittest.equals('foo')); | 3246 unittest.expect(o[1], unittest.equals('foo')); |
3206 } | 3247 } |
3207 | 3248 |
3208 core.int buildCounterEventTag = 0; | 3249 core.int buildCounterEventTag = 0; |
3209 buildEventTag() { | 3250 buildEventTag() { |
3210 var o = new api.EventTag(); | 3251 var o = new api.EventTag(); |
3211 buildCounterEventTag++; | 3252 buildCounterEventTag++; |
3212 if (buildCounterEventTag < 3) { | 3253 if (buildCounterEventTag < 3) { |
3213 o.accountId = "foo"; | 3254 o.accountId = "foo"; |
3214 o.advertiserId = "foo"; | 3255 o.advertiserId = "foo"; |
3215 o.advertiserIdDimensionValue = buildDimensionValue(); | 3256 o.advertiserIdDimensionValue = buildDimensionValue(); |
3216 o.campaignId = "foo"; | 3257 o.campaignId = "foo"; |
3217 o.campaignIdDimensionValue = buildDimensionValue(); | 3258 o.campaignIdDimensionValue = buildDimensionValue(); |
3218 o.enabledByDefault = true; | 3259 o.enabledByDefault = true; |
3219 o.id = "foo"; | 3260 o.id = "foo"; |
3220 o.kind = "foo"; | 3261 o.kind = "foo"; |
3221 o.name = "foo"; | 3262 o.name = "foo"; |
3222 o.siteFilterType = "foo"; | 3263 o.siteFilterType = "foo"; |
3223 o.siteIds = buildUnnamed326(); | 3264 o.siteIds = buildUnnamed1110(); |
3224 o.sslCompliant = true; | 3265 o.sslCompliant = true; |
3225 o.status = "foo"; | 3266 o.status = "foo"; |
3226 o.subaccountId = "foo"; | 3267 o.subaccountId = "foo"; |
3227 o.type = "foo"; | 3268 o.type = "foo"; |
3228 o.url = "foo"; | 3269 o.url = "foo"; |
3229 o.urlEscapeLevels = 42; | 3270 o.urlEscapeLevels = 42; |
3230 } | 3271 } |
3231 buildCounterEventTag--; | 3272 buildCounterEventTag--; |
3232 return o; | 3273 return o; |
3233 } | 3274 } |
3234 | 3275 |
3235 checkEventTag(api.EventTag o) { | 3276 checkEventTag(api.EventTag o) { |
3236 buildCounterEventTag++; | 3277 buildCounterEventTag++; |
3237 if (buildCounterEventTag < 3) { | 3278 if (buildCounterEventTag < 3) { |
3238 unittest.expect(o.accountId, unittest.equals('foo')); | 3279 unittest.expect(o.accountId, unittest.equals('foo')); |
3239 unittest.expect(o.advertiserId, unittest.equals('foo')); | 3280 unittest.expect(o.advertiserId, unittest.equals('foo')); |
3240 checkDimensionValue(o.advertiserIdDimensionValue); | 3281 checkDimensionValue(o.advertiserIdDimensionValue); |
3241 unittest.expect(o.campaignId, unittest.equals('foo')); | 3282 unittest.expect(o.campaignId, unittest.equals('foo')); |
3242 checkDimensionValue(o.campaignIdDimensionValue); | 3283 checkDimensionValue(o.campaignIdDimensionValue); |
3243 unittest.expect(o.enabledByDefault, unittest.isTrue); | 3284 unittest.expect(o.enabledByDefault, unittest.isTrue); |
3244 unittest.expect(o.id, unittest.equals('foo')); | 3285 unittest.expect(o.id, unittest.equals('foo')); |
3245 unittest.expect(o.kind, unittest.equals('foo')); | 3286 unittest.expect(o.kind, unittest.equals('foo')); |
3246 unittest.expect(o.name, unittest.equals('foo')); | 3287 unittest.expect(o.name, unittest.equals('foo')); |
3247 unittest.expect(o.siteFilterType, unittest.equals('foo')); | 3288 unittest.expect(o.siteFilterType, unittest.equals('foo')); |
3248 checkUnnamed326(o.siteIds); | 3289 checkUnnamed1110(o.siteIds); |
3249 unittest.expect(o.sslCompliant, unittest.isTrue); | 3290 unittest.expect(o.sslCompliant, unittest.isTrue); |
3250 unittest.expect(o.status, unittest.equals('foo')); | 3291 unittest.expect(o.status, unittest.equals('foo')); |
3251 unittest.expect(o.subaccountId, unittest.equals('foo')); | 3292 unittest.expect(o.subaccountId, unittest.equals('foo')); |
3252 unittest.expect(o.type, unittest.equals('foo')); | 3293 unittest.expect(o.type, unittest.equals('foo')); |
3253 unittest.expect(o.url, unittest.equals('foo')); | 3294 unittest.expect(o.url, unittest.equals('foo')); |
3254 unittest.expect(o.urlEscapeLevels, unittest.equals(42)); | 3295 unittest.expect(o.urlEscapeLevels, unittest.equals(42)); |
3255 } | 3296 } |
3256 buildCounterEventTag--; | 3297 buildCounterEventTag--; |
3257 } | 3298 } |
3258 | 3299 |
(...skipping 11 matching lines...) Expand all Loading... |
3270 | 3311 |
3271 checkEventTagOverride(api.EventTagOverride o) { | 3312 checkEventTagOverride(api.EventTagOverride o) { |
3272 buildCounterEventTagOverride++; | 3313 buildCounterEventTagOverride++; |
3273 if (buildCounterEventTagOverride < 3) { | 3314 if (buildCounterEventTagOverride < 3) { |
3274 unittest.expect(o.enabled, unittest.isTrue); | 3315 unittest.expect(o.enabled, unittest.isTrue); |
3275 unittest.expect(o.id, unittest.equals('foo')); | 3316 unittest.expect(o.id, unittest.equals('foo')); |
3276 } | 3317 } |
3277 buildCounterEventTagOverride--; | 3318 buildCounterEventTagOverride--; |
3278 } | 3319 } |
3279 | 3320 |
3280 buildUnnamed327() { | 3321 buildUnnamed1111() { |
3281 var o = new core.List<api.EventTag>(); | 3322 var o = new core.List<api.EventTag>(); |
3282 o.add(buildEventTag()); | 3323 o.add(buildEventTag()); |
3283 o.add(buildEventTag()); | 3324 o.add(buildEventTag()); |
3284 return o; | 3325 return o; |
3285 } | 3326 } |
3286 | 3327 |
3287 checkUnnamed327(core.List<api.EventTag> o) { | 3328 checkUnnamed1111(core.List<api.EventTag> o) { |
3288 unittest.expect(o, unittest.hasLength(2)); | 3329 unittest.expect(o, unittest.hasLength(2)); |
3289 checkEventTag(o[0]); | 3330 checkEventTag(o[0]); |
3290 checkEventTag(o[1]); | 3331 checkEventTag(o[1]); |
3291 } | 3332 } |
3292 | 3333 |
3293 core.int buildCounterEventTagsListResponse = 0; | 3334 core.int buildCounterEventTagsListResponse = 0; |
3294 buildEventTagsListResponse() { | 3335 buildEventTagsListResponse() { |
3295 var o = new api.EventTagsListResponse(); | 3336 var o = new api.EventTagsListResponse(); |
3296 buildCounterEventTagsListResponse++; | 3337 buildCounterEventTagsListResponse++; |
3297 if (buildCounterEventTagsListResponse < 3) { | 3338 if (buildCounterEventTagsListResponse < 3) { |
3298 o.eventTags = buildUnnamed327(); | 3339 o.eventTags = buildUnnamed1111(); |
3299 o.kind = "foo"; | 3340 o.kind = "foo"; |
3300 } | 3341 } |
3301 buildCounterEventTagsListResponse--; | 3342 buildCounterEventTagsListResponse--; |
3302 return o; | 3343 return o; |
3303 } | 3344 } |
3304 | 3345 |
3305 checkEventTagsListResponse(api.EventTagsListResponse o) { | 3346 checkEventTagsListResponse(api.EventTagsListResponse o) { |
3306 buildCounterEventTagsListResponse++; | 3347 buildCounterEventTagsListResponse++; |
3307 if (buildCounterEventTagsListResponse < 3) { | 3348 if (buildCounterEventTagsListResponse < 3) { |
3308 checkUnnamed327(o.eventTags); | 3349 checkUnnamed1111(o.eventTags); |
3309 unittest.expect(o.kind, unittest.equals('foo')); | 3350 unittest.expect(o.kind, unittest.equals('foo')); |
3310 } | 3351 } |
3311 buildCounterEventTagsListResponse--; | 3352 buildCounterEventTagsListResponse--; |
3312 } | 3353 } |
3313 | 3354 |
3314 core.int buildCounterFileUrls = 0; | 3355 core.int buildCounterFileUrls = 0; |
3315 buildFileUrls() { | 3356 buildFileUrls() { |
3316 var o = new api.FileUrls(); | 3357 var o = new api.FileUrls(); |
3317 buildCounterFileUrls++; | 3358 buildCounterFileUrls++; |
3318 if (buildCounterFileUrls < 3) { | 3359 if (buildCounterFileUrls < 3) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3362 unittest.expect(o.id, unittest.equals('foo')); | 3403 unittest.expect(o.id, unittest.equals('foo')); |
3363 unittest.expect(o.kind, unittest.equals('foo')); | 3404 unittest.expect(o.kind, unittest.equals('foo')); |
3364 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 3405 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
3365 unittest.expect(o.reportId, unittest.equals('foo')); | 3406 unittest.expect(o.reportId, unittest.equals('foo')); |
3366 unittest.expect(o.status, unittest.equals('foo')); | 3407 unittest.expect(o.status, unittest.equals('foo')); |
3367 checkFileUrls(o.urls); | 3408 checkFileUrls(o.urls); |
3368 } | 3409 } |
3369 buildCounterFile--; | 3410 buildCounterFile--; |
3370 } | 3411 } |
3371 | 3412 |
3372 buildUnnamed328() { | 3413 buildUnnamed1112() { |
3373 var o = new core.List<api.File>(); | 3414 var o = new core.List<api.File>(); |
3374 o.add(buildFile()); | 3415 o.add(buildFile()); |
3375 o.add(buildFile()); | 3416 o.add(buildFile()); |
3376 return o; | 3417 return o; |
3377 } | 3418 } |
3378 | 3419 |
3379 checkUnnamed328(core.List<api.File> o) { | 3420 checkUnnamed1112(core.List<api.File> o) { |
3380 unittest.expect(o, unittest.hasLength(2)); | 3421 unittest.expect(o, unittest.hasLength(2)); |
3381 checkFile(o[0]); | 3422 checkFile(o[0]); |
3382 checkFile(o[1]); | 3423 checkFile(o[1]); |
3383 } | 3424 } |
3384 | 3425 |
3385 core.int buildCounterFileList = 0; | 3426 core.int buildCounterFileList = 0; |
3386 buildFileList() { | 3427 buildFileList() { |
3387 var o = new api.FileList(); | 3428 var o = new api.FileList(); |
3388 buildCounterFileList++; | 3429 buildCounterFileList++; |
3389 if (buildCounterFileList < 3) { | 3430 if (buildCounterFileList < 3) { |
3390 o.etag = "foo"; | 3431 o.etag = "foo"; |
3391 o.items = buildUnnamed328(); | 3432 o.items = buildUnnamed1112(); |
3392 o.kind = "foo"; | 3433 o.kind = "foo"; |
3393 o.nextPageToken = "foo"; | 3434 o.nextPageToken = "foo"; |
3394 } | 3435 } |
3395 buildCounterFileList--; | 3436 buildCounterFileList--; |
3396 return o; | 3437 return o; |
3397 } | 3438 } |
3398 | 3439 |
3399 checkFileList(api.FileList o) { | 3440 checkFileList(api.FileList o) { |
3400 buildCounterFileList++; | 3441 buildCounterFileList++; |
3401 if (buildCounterFileList < 3) { | 3442 if (buildCounterFileList < 3) { |
3402 unittest.expect(o.etag, unittest.equals('foo')); | 3443 unittest.expect(o.etag, unittest.equals('foo')); |
3403 checkUnnamed328(o.items); | 3444 checkUnnamed1112(o.items); |
3404 unittest.expect(o.kind, unittest.equals('foo')); | 3445 unittest.expect(o.kind, unittest.equals('foo')); |
3405 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3446 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3406 } | 3447 } |
3407 buildCounterFileList--; | 3448 buildCounterFileList--; |
3408 } | 3449 } |
3409 | 3450 |
| 3451 core.int buildCounterFlight = 0; |
| 3452 buildFlight() { |
| 3453 var o = new api.Flight(); |
| 3454 buildCounterFlight++; |
| 3455 if (buildCounterFlight < 3) { |
| 3456 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 3457 o.rateOrCost = "foo"; |
| 3458 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 3459 o.units = "foo"; |
| 3460 } |
| 3461 buildCounterFlight--; |
| 3462 return o; |
| 3463 } |
| 3464 |
| 3465 checkFlight(api.Flight o) { |
| 3466 buildCounterFlight++; |
| 3467 if (buildCounterFlight < 3) { |
| 3468 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 3469 unittest.expect(o.rateOrCost, unittest.equals('foo')); |
| 3470 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 3471 unittest.expect(o.units, unittest.equals('foo')); |
| 3472 } |
| 3473 buildCounterFlight--; |
| 3474 } |
| 3475 |
3410 core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0; | 3476 core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0; |
3411 buildFloodlightActivitiesGenerateTagResponse() { | 3477 buildFloodlightActivitiesGenerateTagResponse() { |
3412 var o = new api.FloodlightActivitiesGenerateTagResponse(); | 3478 var o = new api.FloodlightActivitiesGenerateTagResponse(); |
3413 buildCounterFloodlightActivitiesGenerateTagResponse++; | 3479 buildCounterFloodlightActivitiesGenerateTagResponse++; |
3414 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { | 3480 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { |
3415 o.floodlightActivityTag = "foo"; | 3481 o.floodlightActivityTag = "foo"; |
3416 o.kind = "foo"; | 3482 o.kind = "foo"; |
3417 } | 3483 } |
3418 buildCounterFloodlightActivitiesGenerateTagResponse--; | 3484 buildCounterFloodlightActivitiesGenerateTagResponse--; |
3419 return o; | 3485 return o; |
3420 } | 3486 } |
3421 | 3487 |
3422 checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTag
Response o) { | 3488 checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTag
Response o) { |
3423 buildCounterFloodlightActivitiesGenerateTagResponse++; | 3489 buildCounterFloodlightActivitiesGenerateTagResponse++; |
3424 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { | 3490 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { |
3425 unittest.expect(o.floodlightActivityTag, unittest.equals('foo')); | 3491 unittest.expect(o.floodlightActivityTag, unittest.equals('foo')); |
3426 unittest.expect(o.kind, unittest.equals('foo')); | 3492 unittest.expect(o.kind, unittest.equals('foo')); |
3427 } | 3493 } |
3428 buildCounterFloodlightActivitiesGenerateTagResponse--; | 3494 buildCounterFloodlightActivitiesGenerateTagResponse--; |
3429 } | 3495 } |
3430 | 3496 |
3431 buildUnnamed329() { | 3497 buildUnnamed1113() { |
3432 var o = new core.List<api.FloodlightActivity>(); | 3498 var o = new core.List<api.FloodlightActivity>(); |
3433 o.add(buildFloodlightActivity()); | 3499 o.add(buildFloodlightActivity()); |
3434 o.add(buildFloodlightActivity()); | 3500 o.add(buildFloodlightActivity()); |
3435 return o; | 3501 return o; |
3436 } | 3502 } |
3437 | 3503 |
3438 checkUnnamed329(core.List<api.FloodlightActivity> o) { | 3504 checkUnnamed1113(core.List<api.FloodlightActivity> o) { |
3439 unittest.expect(o, unittest.hasLength(2)); | 3505 unittest.expect(o, unittest.hasLength(2)); |
3440 checkFloodlightActivity(o[0]); | 3506 checkFloodlightActivity(o[0]); |
3441 checkFloodlightActivity(o[1]); | 3507 checkFloodlightActivity(o[1]); |
3442 } | 3508 } |
3443 | 3509 |
3444 core.int buildCounterFloodlightActivitiesListResponse = 0; | 3510 core.int buildCounterFloodlightActivitiesListResponse = 0; |
3445 buildFloodlightActivitiesListResponse() { | 3511 buildFloodlightActivitiesListResponse() { |
3446 var o = new api.FloodlightActivitiesListResponse(); | 3512 var o = new api.FloodlightActivitiesListResponse(); |
3447 buildCounterFloodlightActivitiesListResponse++; | 3513 buildCounterFloodlightActivitiesListResponse++; |
3448 if (buildCounterFloodlightActivitiesListResponse < 3) { | 3514 if (buildCounterFloodlightActivitiesListResponse < 3) { |
3449 o.floodlightActivities = buildUnnamed329(); | 3515 o.floodlightActivities = buildUnnamed1113(); |
3450 o.kind = "foo"; | 3516 o.kind = "foo"; |
3451 o.nextPageToken = "foo"; | 3517 o.nextPageToken = "foo"; |
3452 } | 3518 } |
3453 buildCounterFloodlightActivitiesListResponse--; | 3519 buildCounterFloodlightActivitiesListResponse--; |
3454 return o; | 3520 return o; |
3455 } | 3521 } |
3456 | 3522 |
3457 checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { | 3523 checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { |
3458 buildCounterFloodlightActivitiesListResponse++; | 3524 buildCounterFloodlightActivitiesListResponse++; |
3459 if (buildCounterFloodlightActivitiesListResponse < 3) { | 3525 if (buildCounterFloodlightActivitiesListResponse < 3) { |
3460 checkUnnamed329(o.floodlightActivities); | 3526 checkUnnamed1113(o.floodlightActivities); |
3461 unittest.expect(o.kind, unittest.equals('foo')); | 3527 unittest.expect(o.kind, unittest.equals('foo')); |
3462 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3528 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3463 } | 3529 } |
3464 buildCounterFloodlightActivitiesListResponse--; | 3530 buildCounterFloodlightActivitiesListResponse--; |
3465 } | 3531 } |
3466 | 3532 |
3467 buildUnnamed330() { | 3533 buildUnnamed1114() { |
3468 var o = new core.List<api.FloodlightActivityDynamicTag>(); | 3534 var o = new core.List<api.FloodlightActivityDynamicTag>(); |
3469 o.add(buildFloodlightActivityDynamicTag()); | 3535 o.add(buildFloodlightActivityDynamicTag()); |
3470 o.add(buildFloodlightActivityDynamicTag()); | 3536 o.add(buildFloodlightActivityDynamicTag()); |
3471 return o; | 3537 return o; |
3472 } | 3538 } |
3473 | 3539 |
3474 checkUnnamed330(core.List<api.FloodlightActivityDynamicTag> o) { | 3540 checkUnnamed1114(core.List<api.FloodlightActivityDynamicTag> o) { |
3475 unittest.expect(o, unittest.hasLength(2)); | 3541 unittest.expect(o, unittest.hasLength(2)); |
3476 checkFloodlightActivityDynamicTag(o[0]); | 3542 checkFloodlightActivityDynamicTag(o[0]); |
3477 checkFloodlightActivityDynamicTag(o[1]); | 3543 checkFloodlightActivityDynamicTag(o[1]); |
3478 } | 3544 } |
3479 | 3545 |
3480 buildUnnamed331() { | 3546 buildUnnamed1115() { |
3481 var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); | 3547 var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); |
3482 o.add(buildFloodlightActivityPublisherDynamicTag()); | 3548 o.add(buildFloodlightActivityPublisherDynamicTag()); |
3483 o.add(buildFloodlightActivityPublisherDynamicTag()); | 3549 o.add(buildFloodlightActivityPublisherDynamicTag()); |
3484 return o; | 3550 return o; |
3485 } | 3551 } |
3486 | 3552 |
3487 checkUnnamed331(core.List<api.FloodlightActivityPublisherDynamicTag> o) { | 3553 checkUnnamed1115(core.List<api.FloodlightActivityPublisherDynamicTag> o) { |
3488 unittest.expect(o, unittest.hasLength(2)); | 3554 unittest.expect(o, unittest.hasLength(2)); |
3489 checkFloodlightActivityPublisherDynamicTag(o[0]); | 3555 checkFloodlightActivityPublisherDynamicTag(o[0]); |
3490 checkFloodlightActivityPublisherDynamicTag(o[1]); | 3556 checkFloodlightActivityPublisherDynamicTag(o[1]); |
3491 } | 3557 } |
3492 | 3558 |
3493 buildUnnamed332() { | 3559 buildUnnamed1116() { |
3494 var o = new core.List<core.String>(); | 3560 var o = new core.List<core.String>(); |
3495 o.add("foo"); | 3561 o.add("foo"); |
3496 o.add("foo"); | 3562 o.add("foo"); |
3497 return o; | 3563 return o; |
3498 } | 3564 } |
3499 | 3565 |
3500 checkUnnamed332(core.List<core.String> o) { | 3566 checkUnnamed1116(core.List<core.String> o) { |
3501 unittest.expect(o, unittest.hasLength(2)); | 3567 unittest.expect(o, unittest.hasLength(2)); |
3502 unittest.expect(o[0], unittest.equals('foo')); | 3568 unittest.expect(o[0], unittest.equals('foo')); |
3503 unittest.expect(o[1], unittest.equals('foo')); | 3569 unittest.expect(o[1], unittest.equals('foo')); |
3504 } | 3570 } |
3505 | 3571 |
3506 core.int buildCounterFloodlightActivity = 0; | 3572 core.int buildCounterFloodlightActivity = 0; |
3507 buildFloodlightActivity() { | 3573 buildFloodlightActivity() { |
3508 var o = new api.FloodlightActivity(); | 3574 var o = new api.FloodlightActivity(); |
3509 buildCounterFloodlightActivity++; | 3575 buildCounterFloodlightActivity++; |
3510 if (buildCounterFloodlightActivity < 3) { | 3576 if (buildCounterFloodlightActivity < 3) { |
3511 o.accountId = "foo"; | 3577 o.accountId = "foo"; |
3512 o.advertiserId = "foo"; | 3578 o.advertiserId = "foo"; |
3513 o.advertiserIdDimensionValue = buildDimensionValue(); | 3579 o.advertiserIdDimensionValue = buildDimensionValue(); |
3514 o.cacheBustingType = "foo"; | 3580 o.cacheBustingType = "foo"; |
3515 o.countingMethod = "foo"; | 3581 o.countingMethod = "foo"; |
3516 o.defaultTags = buildUnnamed330(); | 3582 o.defaultTags = buildUnnamed1114(); |
3517 o.expectedUrl = "foo"; | 3583 o.expectedUrl = "foo"; |
3518 o.floodlightActivityGroupId = "foo"; | 3584 o.floodlightActivityGroupId = "foo"; |
3519 o.floodlightActivityGroupName = "foo"; | 3585 o.floodlightActivityGroupName = "foo"; |
3520 o.floodlightActivityGroupTagString = "foo"; | 3586 o.floodlightActivityGroupTagString = "foo"; |
3521 o.floodlightActivityGroupType = "foo"; | 3587 o.floodlightActivityGroupType = "foo"; |
3522 o.floodlightConfigurationId = "foo"; | 3588 o.floodlightConfigurationId = "foo"; |
3523 o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); | 3589 o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); |
3524 o.hidden = true; | 3590 o.hidden = true; |
3525 o.id = "foo"; | 3591 o.id = "foo"; |
3526 o.idDimensionValue = buildDimensionValue(); | 3592 o.idDimensionValue = buildDimensionValue(); |
3527 o.imageTagEnabled = true; | 3593 o.imageTagEnabled = true; |
3528 o.kind = "foo"; | 3594 o.kind = "foo"; |
3529 o.name = "foo"; | 3595 o.name = "foo"; |
3530 o.notes = "foo"; | 3596 o.notes = "foo"; |
3531 o.publisherTags = buildUnnamed331(); | 3597 o.publisherTags = buildUnnamed1115(); |
3532 o.secure = true; | 3598 o.secure = true; |
3533 o.sslCompliant = true; | 3599 o.sslCompliant = true; |
3534 o.sslRequired = true; | 3600 o.sslRequired = true; |
3535 o.subaccountId = "foo"; | 3601 o.subaccountId = "foo"; |
3536 o.tagFormat = "foo"; | 3602 o.tagFormat = "foo"; |
3537 o.tagString = "foo"; | 3603 o.tagString = "foo"; |
3538 o.userDefinedVariableTypes = buildUnnamed332(); | 3604 o.userDefinedVariableTypes = buildUnnamed1116(); |
3539 } | 3605 } |
3540 buildCounterFloodlightActivity--; | 3606 buildCounterFloodlightActivity--; |
3541 return o; | 3607 return o; |
3542 } | 3608 } |
3543 | 3609 |
3544 checkFloodlightActivity(api.FloodlightActivity o) { | 3610 checkFloodlightActivity(api.FloodlightActivity o) { |
3545 buildCounterFloodlightActivity++; | 3611 buildCounterFloodlightActivity++; |
3546 if (buildCounterFloodlightActivity < 3) { | 3612 if (buildCounterFloodlightActivity < 3) { |
3547 unittest.expect(o.accountId, unittest.equals('foo')); | 3613 unittest.expect(o.accountId, unittest.equals('foo')); |
3548 unittest.expect(o.advertiserId, unittest.equals('foo')); | 3614 unittest.expect(o.advertiserId, unittest.equals('foo')); |
3549 checkDimensionValue(o.advertiserIdDimensionValue); | 3615 checkDimensionValue(o.advertiserIdDimensionValue); |
3550 unittest.expect(o.cacheBustingType, unittest.equals('foo')); | 3616 unittest.expect(o.cacheBustingType, unittest.equals('foo')); |
3551 unittest.expect(o.countingMethod, unittest.equals('foo')); | 3617 unittest.expect(o.countingMethod, unittest.equals('foo')); |
3552 checkUnnamed330(o.defaultTags); | 3618 checkUnnamed1114(o.defaultTags); |
3553 unittest.expect(o.expectedUrl, unittest.equals('foo')); | 3619 unittest.expect(o.expectedUrl, unittest.equals('foo')); |
3554 unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); | 3620 unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); |
3555 unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); | 3621 unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); |
3556 unittest.expect(o.floodlightActivityGroupTagString, unittest.equals('foo')); | 3622 unittest.expect(o.floodlightActivityGroupTagString, unittest.equals('foo')); |
3557 unittest.expect(o.floodlightActivityGroupType, unittest.equals('foo')); | 3623 unittest.expect(o.floodlightActivityGroupType, unittest.equals('foo')); |
3558 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); | 3624 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); |
3559 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); | 3625 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); |
3560 unittest.expect(o.hidden, unittest.isTrue); | 3626 unittest.expect(o.hidden, unittest.isTrue); |
3561 unittest.expect(o.id, unittest.equals('foo')); | 3627 unittest.expect(o.id, unittest.equals('foo')); |
3562 checkDimensionValue(o.idDimensionValue); | 3628 checkDimensionValue(o.idDimensionValue); |
3563 unittest.expect(o.imageTagEnabled, unittest.isTrue); | 3629 unittest.expect(o.imageTagEnabled, unittest.isTrue); |
3564 unittest.expect(o.kind, unittest.equals('foo')); | 3630 unittest.expect(o.kind, unittest.equals('foo')); |
3565 unittest.expect(o.name, unittest.equals('foo')); | 3631 unittest.expect(o.name, unittest.equals('foo')); |
3566 unittest.expect(o.notes, unittest.equals('foo')); | 3632 unittest.expect(o.notes, unittest.equals('foo')); |
3567 checkUnnamed331(o.publisherTags); | 3633 checkUnnamed1115(o.publisherTags); |
3568 unittest.expect(o.secure, unittest.isTrue); | 3634 unittest.expect(o.secure, unittest.isTrue); |
3569 unittest.expect(o.sslCompliant, unittest.isTrue); | 3635 unittest.expect(o.sslCompliant, unittest.isTrue); |
3570 unittest.expect(o.sslRequired, unittest.isTrue); | 3636 unittest.expect(o.sslRequired, unittest.isTrue); |
3571 unittest.expect(o.subaccountId, unittest.equals('foo')); | 3637 unittest.expect(o.subaccountId, unittest.equals('foo')); |
3572 unittest.expect(o.tagFormat, unittest.equals('foo')); | 3638 unittest.expect(o.tagFormat, unittest.equals('foo')); |
3573 unittest.expect(o.tagString, unittest.equals('foo')); | 3639 unittest.expect(o.tagString, unittest.equals('foo')); |
3574 checkUnnamed332(o.userDefinedVariableTypes); | 3640 checkUnnamed1116(o.userDefinedVariableTypes); |
3575 } | 3641 } |
3576 buildCounterFloodlightActivity--; | 3642 buildCounterFloodlightActivity--; |
3577 } | 3643 } |
3578 | 3644 |
3579 core.int buildCounterFloodlightActivityDynamicTag = 0; | 3645 core.int buildCounterFloodlightActivityDynamicTag = 0; |
3580 buildFloodlightActivityDynamicTag() { | 3646 buildFloodlightActivityDynamicTag() { |
3581 var o = new api.FloodlightActivityDynamicTag(); | 3647 var o = new api.FloodlightActivityDynamicTag(); |
3582 buildCounterFloodlightActivityDynamicTag++; | 3648 buildCounterFloodlightActivityDynamicTag++; |
3583 if (buildCounterFloodlightActivityDynamicTag < 3) { | 3649 if (buildCounterFloodlightActivityDynamicTag < 3) { |
3584 o.id = "foo"; | 3650 o.id = "foo"; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3633 checkDimensionValue(o.idDimensionValue); | 3699 checkDimensionValue(o.idDimensionValue); |
3634 unittest.expect(o.kind, unittest.equals('foo')); | 3700 unittest.expect(o.kind, unittest.equals('foo')); |
3635 unittest.expect(o.name, unittest.equals('foo')); | 3701 unittest.expect(o.name, unittest.equals('foo')); |
3636 unittest.expect(o.subaccountId, unittest.equals('foo')); | 3702 unittest.expect(o.subaccountId, unittest.equals('foo')); |
3637 unittest.expect(o.tagString, unittest.equals('foo')); | 3703 unittest.expect(o.tagString, unittest.equals('foo')); |
3638 unittest.expect(o.type, unittest.equals('foo')); | 3704 unittest.expect(o.type, unittest.equals('foo')); |
3639 } | 3705 } |
3640 buildCounterFloodlightActivityGroup--; | 3706 buildCounterFloodlightActivityGroup--; |
3641 } | 3707 } |
3642 | 3708 |
3643 buildUnnamed333() { | 3709 buildUnnamed1117() { |
3644 var o = new core.List<api.FloodlightActivityGroup>(); | 3710 var o = new core.List<api.FloodlightActivityGroup>(); |
3645 o.add(buildFloodlightActivityGroup()); | 3711 o.add(buildFloodlightActivityGroup()); |
3646 o.add(buildFloodlightActivityGroup()); | 3712 o.add(buildFloodlightActivityGroup()); |
3647 return o; | 3713 return o; |
3648 } | 3714 } |
3649 | 3715 |
3650 checkUnnamed333(core.List<api.FloodlightActivityGroup> o) { | 3716 checkUnnamed1117(core.List<api.FloodlightActivityGroup> o) { |
3651 unittest.expect(o, unittest.hasLength(2)); | 3717 unittest.expect(o, unittest.hasLength(2)); |
3652 checkFloodlightActivityGroup(o[0]); | 3718 checkFloodlightActivityGroup(o[0]); |
3653 checkFloodlightActivityGroup(o[1]); | 3719 checkFloodlightActivityGroup(o[1]); |
3654 } | 3720 } |
3655 | 3721 |
3656 core.int buildCounterFloodlightActivityGroupsListResponse = 0; | 3722 core.int buildCounterFloodlightActivityGroupsListResponse = 0; |
3657 buildFloodlightActivityGroupsListResponse() { | 3723 buildFloodlightActivityGroupsListResponse() { |
3658 var o = new api.FloodlightActivityGroupsListResponse(); | 3724 var o = new api.FloodlightActivityGroupsListResponse(); |
3659 buildCounterFloodlightActivityGroupsListResponse++; | 3725 buildCounterFloodlightActivityGroupsListResponse++; |
3660 if (buildCounterFloodlightActivityGroupsListResponse < 3) { | 3726 if (buildCounterFloodlightActivityGroupsListResponse < 3) { |
3661 o.floodlightActivityGroups = buildUnnamed333(); | 3727 o.floodlightActivityGroups = buildUnnamed1117(); |
3662 o.kind = "foo"; | 3728 o.kind = "foo"; |
3663 o.nextPageToken = "foo"; | 3729 o.nextPageToken = "foo"; |
3664 } | 3730 } |
3665 buildCounterFloodlightActivityGroupsListResponse--; | 3731 buildCounterFloodlightActivityGroupsListResponse--; |
3666 return o; | 3732 return o; |
3667 } | 3733 } |
3668 | 3734 |
3669 checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListRespon
se o) { | 3735 checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListRespon
se o) { |
3670 buildCounterFloodlightActivityGroupsListResponse++; | 3736 buildCounterFloodlightActivityGroupsListResponse++; |
3671 if (buildCounterFloodlightActivityGroupsListResponse < 3) { | 3737 if (buildCounterFloodlightActivityGroupsListResponse < 3) { |
3672 checkUnnamed333(o.floodlightActivityGroups); | 3738 checkUnnamed1117(o.floodlightActivityGroups); |
3673 unittest.expect(o.kind, unittest.equals('foo')); | 3739 unittest.expect(o.kind, unittest.equals('foo')); |
3674 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3740 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3675 } | 3741 } |
3676 buildCounterFloodlightActivityGroupsListResponse--; | 3742 buildCounterFloodlightActivityGroupsListResponse--; |
3677 } | 3743 } |
3678 | 3744 |
3679 core.int buildCounterFloodlightActivityPublisherDynamicTag = 0; | 3745 core.int buildCounterFloodlightActivityPublisherDynamicTag = 0; |
3680 buildFloodlightActivityPublisherDynamicTag() { | 3746 buildFloodlightActivityPublisherDynamicTag() { |
3681 var o = new api.FloodlightActivityPublisherDynamicTag(); | 3747 var o = new api.FloodlightActivityPublisherDynamicTag(); |
3682 buildCounterFloodlightActivityPublisherDynamicTag++; | 3748 buildCounterFloodlightActivityPublisherDynamicTag++; |
(...skipping 15 matching lines...) Expand all Loading... |
3698 unittest.expect(o.clickThrough, unittest.isTrue); | 3764 unittest.expect(o.clickThrough, unittest.isTrue); |
3699 unittest.expect(o.directorySiteId, unittest.equals('foo')); | 3765 unittest.expect(o.directorySiteId, unittest.equals('foo')); |
3700 checkFloodlightActivityDynamicTag(o.dynamicTag); | 3766 checkFloodlightActivityDynamicTag(o.dynamicTag); |
3701 unittest.expect(o.siteId, unittest.equals('foo')); | 3767 unittest.expect(o.siteId, unittest.equals('foo')); |
3702 checkDimensionValue(o.siteIdDimensionValue); | 3768 checkDimensionValue(o.siteIdDimensionValue); |
3703 unittest.expect(o.viewThrough, unittest.isTrue); | 3769 unittest.expect(o.viewThrough, unittest.isTrue); |
3704 } | 3770 } |
3705 buildCounterFloodlightActivityPublisherDynamicTag--; | 3771 buildCounterFloodlightActivityPublisherDynamicTag--; |
3706 } | 3772 } |
3707 | 3773 |
3708 buildUnnamed334() { | 3774 buildUnnamed1118() { |
3709 var o = new core.List<core.String>(); | 3775 var o = new core.List<core.String>(); |
3710 o.add("foo"); | 3776 o.add("foo"); |
3711 o.add("foo"); | 3777 o.add("foo"); |
3712 return o; | 3778 return o; |
3713 } | 3779 } |
3714 | 3780 |
3715 checkUnnamed334(core.List<core.String> o) { | 3781 checkUnnamed1118(core.List<core.String> o) { |
3716 unittest.expect(o, unittest.hasLength(2)); | 3782 unittest.expect(o, unittest.hasLength(2)); |
3717 unittest.expect(o[0], unittest.equals('foo')); | 3783 unittest.expect(o[0], unittest.equals('foo')); |
3718 unittest.expect(o[1], unittest.equals('foo')); | 3784 unittest.expect(o[1], unittest.equals('foo')); |
3719 } | 3785 } |
3720 | 3786 |
3721 buildUnnamed335() { | 3787 buildUnnamed1119() { |
3722 var o = new core.List<api.UserDefinedVariableConfiguration>(); | 3788 var o = new core.List<api.UserDefinedVariableConfiguration>(); |
3723 o.add(buildUserDefinedVariableConfiguration()); | 3789 o.add(buildUserDefinedVariableConfiguration()); |
3724 o.add(buildUserDefinedVariableConfiguration()); | 3790 o.add(buildUserDefinedVariableConfiguration()); |
3725 return o; | 3791 return o; |
3726 } | 3792 } |
3727 | 3793 |
3728 checkUnnamed335(core.List<api.UserDefinedVariableConfiguration> o) { | 3794 checkUnnamed1119(core.List<api.UserDefinedVariableConfiguration> o) { |
3729 unittest.expect(o, unittest.hasLength(2)); | 3795 unittest.expect(o, unittest.hasLength(2)); |
3730 checkUserDefinedVariableConfiguration(o[0]); | 3796 checkUserDefinedVariableConfiguration(o[0]); |
3731 checkUserDefinedVariableConfiguration(o[1]); | 3797 checkUserDefinedVariableConfiguration(o[1]); |
3732 } | 3798 } |
3733 | 3799 |
3734 core.int buildCounterFloodlightConfiguration = 0; | 3800 core.int buildCounterFloodlightConfiguration = 0; |
3735 buildFloodlightConfiguration() { | 3801 buildFloodlightConfiguration() { |
3736 var o = new api.FloodlightConfiguration(); | 3802 var o = new api.FloodlightConfiguration(); |
3737 buildCounterFloodlightConfiguration++; | 3803 buildCounterFloodlightConfiguration++; |
3738 if (buildCounterFloodlightConfiguration < 3) { | 3804 if (buildCounterFloodlightConfiguration < 3) { |
3739 o.accountId = "foo"; | 3805 o.accountId = "foo"; |
3740 o.advertiserId = "foo"; | 3806 o.advertiserId = "foo"; |
3741 o.advertiserIdDimensionValue = buildDimensionValue(); | 3807 o.advertiserIdDimensionValue = buildDimensionValue(); |
3742 o.analyticsDataSharingEnabled = true; | 3808 o.analyticsDataSharingEnabled = true; |
3743 o.exposureToConversionEnabled = true; | 3809 o.exposureToConversionEnabled = true; |
3744 o.firstDayOfWeek = "foo"; | 3810 o.firstDayOfWeek = "foo"; |
3745 o.id = "foo"; | 3811 o.id = "foo"; |
3746 o.idDimensionValue = buildDimensionValue(); | 3812 o.idDimensionValue = buildDimensionValue(); |
3747 o.kind = "foo"; | 3813 o.kind = "foo"; |
3748 o.lookbackConfiguration = buildLookbackConfiguration(); | 3814 o.lookbackConfiguration = buildLookbackConfiguration(); |
3749 o.naturalSearchConversionAttributionOption = "foo"; | 3815 o.naturalSearchConversionAttributionOption = "foo"; |
3750 o.omnitureSettings = buildOmnitureSettings(); | 3816 o.omnitureSettings = buildOmnitureSettings(); |
3751 o.sslRequired = true; | 3817 o.sslRequired = true; |
3752 o.standardVariableTypes = buildUnnamed334(); | 3818 o.standardVariableTypes = buildUnnamed1118(); |
3753 o.subaccountId = "foo"; | 3819 o.subaccountId = "foo"; |
3754 o.tagSettings = buildTagSettings(); | 3820 o.tagSettings = buildTagSettings(); |
3755 o.userDefinedVariableConfigurations = buildUnnamed335(); | 3821 o.userDefinedVariableConfigurations = buildUnnamed1119(); |
3756 } | 3822 } |
3757 buildCounterFloodlightConfiguration--; | 3823 buildCounterFloodlightConfiguration--; |
3758 return o; | 3824 return o; |
3759 } | 3825 } |
3760 | 3826 |
3761 checkFloodlightConfiguration(api.FloodlightConfiguration o) { | 3827 checkFloodlightConfiguration(api.FloodlightConfiguration o) { |
3762 buildCounterFloodlightConfiguration++; | 3828 buildCounterFloodlightConfiguration++; |
3763 if (buildCounterFloodlightConfiguration < 3) { | 3829 if (buildCounterFloodlightConfiguration < 3) { |
3764 unittest.expect(o.accountId, unittest.equals('foo')); | 3830 unittest.expect(o.accountId, unittest.equals('foo')); |
3765 unittest.expect(o.advertiserId, unittest.equals('foo')); | 3831 unittest.expect(o.advertiserId, unittest.equals('foo')); |
3766 checkDimensionValue(o.advertiserIdDimensionValue); | 3832 checkDimensionValue(o.advertiserIdDimensionValue); |
3767 unittest.expect(o.analyticsDataSharingEnabled, unittest.isTrue); | 3833 unittest.expect(o.analyticsDataSharingEnabled, unittest.isTrue); |
3768 unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); | 3834 unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); |
3769 unittest.expect(o.firstDayOfWeek, unittest.equals('foo')); | 3835 unittest.expect(o.firstDayOfWeek, unittest.equals('foo')); |
3770 unittest.expect(o.id, unittest.equals('foo')); | 3836 unittest.expect(o.id, unittest.equals('foo')); |
3771 checkDimensionValue(o.idDimensionValue); | 3837 checkDimensionValue(o.idDimensionValue); |
3772 unittest.expect(o.kind, unittest.equals('foo')); | 3838 unittest.expect(o.kind, unittest.equals('foo')); |
3773 checkLookbackConfiguration(o.lookbackConfiguration); | 3839 checkLookbackConfiguration(o.lookbackConfiguration); |
3774 unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals(
'foo')); | 3840 unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals(
'foo')); |
3775 checkOmnitureSettings(o.omnitureSettings); | 3841 checkOmnitureSettings(o.omnitureSettings); |
3776 unittest.expect(o.sslRequired, unittest.isTrue); | 3842 unittest.expect(o.sslRequired, unittest.isTrue); |
3777 checkUnnamed334(o.standardVariableTypes); | 3843 checkUnnamed1118(o.standardVariableTypes); |
3778 unittest.expect(o.subaccountId, unittest.equals('foo')); | 3844 unittest.expect(o.subaccountId, unittest.equals('foo')); |
3779 checkTagSettings(o.tagSettings); | 3845 checkTagSettings(o.tagSettings); |
3780 checkUnnamed335(o.userDefinedVariableConfigurations); | 3846 checkUnnamed1119(o.userDefinedVariableConfigurations); |
3781 } | 3847 } |
3782 buildCounterFloodlightConfiguration--; | 3848 buildCounterFloodlightConfiguration--; |
3783 } | 3849 } |
3784 | 3850 |
3785 buildUnnamed336() { | 3851 buildUnnamed1120() { |
3786 var o = new core.List<api.FloodlightConfiguration>(); | 3852 var o = new core.List<api.FloodlightConfiguration>(); |
3787 o.add(buildFloodlightConfiguration()); | 3853 o.add(buildFloodlightConfiguration()); |
3788 o.add(buildFloodlightConfiguration()); | 3854 o.add(buildFloodlightConfiguration()); |
3789 return o; | 3855 return o; |
3790 } | 3856 } |
3791 | 3857 |
3792 checkUnnamed336(core.List<api.FloodlightConfiguration> o) { | 3858 checkUnnamed1120(core.List<api.FloodlightConfiguration> o) { |
3793 unittest.expect(o, unittest.hasLength(2)); | 3859 unittest.expect(o, unittest.hasLength(2)); |
3794 checkFloodlightConfiguration(o[0]); | 3860 checkFloodlightConfiguration(o[0]); |
3795 checkFloodlightConfiguration(o[1]); | 3861 checkFloodlightConfiguration(o[1]); |
3796 } | 3862 } |
3797 | 3863 |
3798 core.int buildCounterFloodlightConfigurationsListResponse = 0; | 3864 core.int buildCounterFloodlightConfigurationsListResponse = 0; |
3799 buildFloodlightConfigurationsListResponse() { | 3865 buildFloodlightConfigurationsListResponse() { |
3800 var o = new api.FloodlightConfigurationsListResponse(); | 3866 var o = new api.FloodlightConfigurationsListResponse(); |
3801 buildCounterFloodlightConfigurationsListResponse++; | 3867 buildCounterFloodlightConfigurationsListResponse++; |
3802 if (buildCounterFloodlightConfigurationsListResponse < 3) { | 3868 if (buildCounterFloodlightConfigurationsListResponse < 3) { |
3803 o.floodlightConfigurations = buildUnnamed336(); | 3869 o.floodlightConfigurations = buildUnnamed1120(); |
3804 o.kind = "foo"; | 3870 o.kind = "foo"; |
3805 } | 3871 } |
3806 buildCounterFloodlightConfigurationsListResponse--; | 3872 buildCounterFloodlightConfigurationsListResponse--; |
3807 return o; | 3873 return o; |
3808 } | 3874 } |
3809 | 3875 |
3810 checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListRespon
se o) { | 3876 checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListRespon
se o) { |
3811 buildCounterFloodlightConfigurationsListResponse++; | 3877 buildCounterFloodlightConfigurationsListResponse++; |
3812 if (buildCounterFloodlightConfigurationsListResponse < 3) { | 3878 if (buildCounterFloodlightConfigurationsListResponse < 3) { |
3813 checkUnnamed336(o.floodlightConfigurations); | 3879 checkUnnamed1120(o.floodlightConfigurations); |
3814 unittest.expect(o.kind, unittest.equals('foo')); | 3880 unittest.expect(o.kind, unittest.equals('foo')); |
3815 } | 3881 } |
3816 buildCounterFloodlightConfigurationsListResponse--; | 3882 buildCounterFloodlightConfigurationsListResponse--; |
3817 } | 3883 } |
3818 | 3884 |
3819 buildUnnamed337() { | 3885 buildUnnamed1121() { |
3820 var o = new core.List<api.Dimension>(); | 3886 var o = new core.List<api.Dimension>(); |
3821 o.add(buildDimension()); | 3887 o.add(buildDimension()); |
3822 o.add(buildDimension()); | 3888 o.add(buildDimension()); |
3823 return o; | 3889 return o; |
3824 } | 3890 } |
3825 | 3891 |
3826 checkUnnamed337(core.List<api.Dimension> o) { | 3892 checkUnnamed1121(core.List<api.Dimension> o) { |
3827 unittest.expect(o, unittest.hasLength(2)); | 3893 unittest.expect(o, unittest.hasLength(2)); |
3828 checkDimension(o[0]); | 3894 checkDimension(o[0]); |
3829 checkDimension(o[1]); | 3895 checkDimension(o[1]); |
3830 } | 3896 } |
3831 | 3897 |
3832 buildUnnamed338() { | 3898 buildUnnamed1122() { |
3833 var o = new core.List<api.Dimension>(); | 3899 var o = new core.List<api.Dimension>(); |
3834 o.add(buildDimension()); | 3900 o.add(buildDimension()); |
3835 o.add(buildDimension()); | 3901 o.add(buildDimension()); |
3836 return o; | 3902 return o; |
3837 } | 3903 } |
3838 | 3904 |
3839 checkUnnamed338(core.List<api.Dimension> o) { | 3905 checkUnnamed1122(core.List<api.Dimension> o) { |
3840 unittest.expect(o, unittest.hasLength(2)); | 3906 unittest.expect(o, unittest.hasLength(2)); |
3841 checkDimension(o[0]); | 3907 checkDimension(o[0]); |
3842 checkDimension(o[1]); | 3908 checkDimension(o[1]); |
3843 } | 3909 } |
3844 | 3910 |
3845 buildUnnamed339() { | 3911 buildUnnamed1123() { |
3846 var o = new core.List<api.Metric>(); | 3912 var o = new core.List<api.Metric>(); |
3847 o.add(buildMetric()); | 3913 o.add(buildMetric()); |
3848 o.add(buildMetric()); | 3914 o.add(buildMetric()); |
3849 return o; | 3915 return o; |
3850 } | 3916 } |
3851 | 3917 |
3852 checkUnnamed339(core.List<api.Metric> o) { | 3918 checkUnnamed1123(core.List<api.Metric> o) { |
3853 unittest.expect(o, unittest.hasLength(2)); | 3919 unittest.expect(o, unittest.hasLength(2)); |
3854 checkMetric(o[0]); | 3920 checkMetric(o[0]); |
3855 checkMetric(o[1]); | 3921 checkMetric(o[1]); |
3856 } | 3922 } |
3857 | 3923 |
3858 core.int buildCounterFloodlightReportCompatibleFields = 0; | 3924 core.int buildCounterFloodlightReportCompatibleFields = 0; |
3859 buildFloodlightReportCompatibleFields() { | 3925 buildFloodlightReportCompatibleFields() { |
3860 var o = new api.FloodlightReportCompatibleFields(); | 3926 var o = new api.FloodlightReportCompatibleFields(); |
3861 buildCounterFloodlightReportCompatibleFields++; | 3927 buildCounterFloodlightReportCompatibleFields++; |
3862 if (buildCounterFloodlightReportCompatibleFields < 3) { | 3928 if (buildCounterFloodlightReportCompatibleFields < 3) { |
3863 o.dimensionFilters = buildUnnamed337(); | 3929 o.dimensionFilters = buildUnnamed1121(); |
3864 o.dimensions = buildUnnamed338(); | 3930 o.dimensions = buildUnnamed1122(); |
3865 o.kind = "foo"; | 3931 o.kind = "foo"; |
3866 o.metrics = buildUnnamed339(); | 3932 o.metrics = buildUnnamed1123(); |
3867 } | 3933 } |
3868 buildCounterFloodlightReportCompatibleFields--; | 3934 buildCounterFloodlightReportCompatibleFields--; |
3869 return o; | 3935 return o; |
3870 } | 3936 } |
3871 | 3937 |
3872 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { | 3938 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { |
3873 buildCounterFloodlightReportCompatibleFields++; | 3939 buildCounterFloodlightReportCompatibleFields++; |
3874 if (buildCounterFloodlightReportCompatibleFields < 3) { | 3940 if (buildCounterFloodlightReportCompatibleFields < 3) { |
3875 checkUnnamed337(o.dimensionFilters); | 3941 checkUnnamed1121(o.dimensionFilters); |
3876 checkUnnamed338(o.dimensions); | 3942 checkUnnamed1122(o.dimensions); |
3877 unittest.expect(o.kind, unittest.equals('foo')); | 3943 unittest.expect(o.kind, unittest.equals('foo')); |
3878 checkUnnamed339(o.metrics); | 3944 checkUnnamed1123(o.metrics); |
3879 } | 3945 } |
3880 buildCounterFloodlightReportCompatibleFields--; | 3946 buildCounterFloodlightReportCompatibleFields--; |
3881 } | 3947 } |
3882 | 3948 |
3883 core.int buildCounterFrequencyCap = 0; | 3949 core.int buildCounterFrequencyCap = 0; |
3884 buildFrequencyCap() { | 3950 buildFrequencyCap() { |
3885 var o = new api.FrequencyCap(); | 3951 var o = new api.FrequencyCap(); |
3886 buildCounterFrequencyCap++; | 3952 buildCounterFrequencyCap++; |
3887 if (buildCounterFrequencyCap < 3) { | 3953 if (buildCounterFrequencyCap < 3) { |
3888 o.duration = "foo"; | 3954 o.duration = "foo"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3921 if (buildCounterFsCommand < 3) { | 3987 if (buildCounterFsCommand < 3) { |
3922 unittest.expect(o.left, unittest.equals(42)); | 3988 unittest.expect(o.left, unittest.equals(42)); |
3923 unittest.expect(o.positionOption, unittest.equals('foo')); | 3989 unittest.expect(o.positionOption, unittest.equals('foo')); |
3924 unittest.expect(o.top, unittest.equals(42)); | 3990 unittest.expect(o.top, unittest.equals(42)); |
3925 unittest.expect(o.windowHeight, unittest.equals(42)); | 3991 unittest.expect(o.windowHeight, unittest.equals(42)); |
3926 unittest.expect(o.windowWidth, unittest.equals(42)); | 3992 unittest.expect(o.windowWidth, unittest.equals(42)); |
3927 } | 3993 } |
3928 buildCounterFsCommand--; | 3994 buildCounterFsCommand--; |
3929 } | 3995 } |
3930 | 3996 |
3931 buildUnnamed340() { | 3997 buildUnnamed1124() { |
3932 var o = new core.List<api.City>(); | 3998 var o = new core.List<api.City>(); |
3933 o.add(buildCity()); | 3999 o.add(buildCity()); |
3934 o.add(buildCity()); | 4000 o.add(buildCity()); |
3935 return o; | 4001 return o; |
3936 } | 4002 } |
3937 | 4003 |
3938 checkUnnamed340(core.List<api.City> o) { | 4004 checkUnnamed1124(core.List<api.City> o) { |
3939 unittest.expect(o, unittest.hasLength(2)); | 4005 unittest.expect(o, unittest.hasLength(2)); |
3940 checkCity(o[0]); | 4006 checkCity(o[0]); |
3941 checkCity(o[1]); | 4007 checkCity(o[1]); |
3942 } | 4008 } |
3943 | 4009 |
3944 buildUnnamed341() { | 4010 buildUnnamed1125() { |
3945 var o = new core.List<api.Country>(); | 4011 var o = new core.List<api.Country>(); |
3946 o.add(buildCountry()); | 4012 o.add(buildCountry()); |
3947 o.add(buildCountry()); | 4013 o.add(buildCountry()); |
3948 return o; | 4014 return o; |
3949 } | 4015 } |
3950 | 4016 |
3951 checkUnnamed341(core.List<api.Country> o) { | 4017 checkUnnamed1125(core.List<api.Country> o) { |
3952 unittest.expect(o, unittest.hasLength(2)); | 4018 unittest.expect(o, unittest.hasLength(2)); |
3953 checkCountry(o[0]); | 4019 checkCountry(o[0]); |
3954 checkCountry(o[1]); | 4020 checkCountry(o[1]); |
3955 } | 4021 } |
3956 | 4022 |
3957 buildUnnamed342() { | 4023 buildUnnamed1126() { |
3958 var o = new core.List<api.Metro>(); | 4024 var o = new core.List<api.Metro>(); |
3959 o.add(buildMetro()); | 4025 o.add(buildMetro()); |
3960 o.add(buildMetro()); | 4026 o.add(buildMetro()); |
3961 return o; | 4027 return o; |
3962 } | 4028 } |
3963 | 4029 |
3964 checkUnnamed342(core.List<api.Metro> o) { | 4030 checkUnnamed1126(core.List<api.Metro> o) { |
3965 unittest.expect(o, unittest.hasLength(2)); | 4031 unittest.expect(o, unittest.hasLength(2)); |
3966 checkMetro(o[0]); | 4032 checkMetro(o[0]); |
3967 checkMetro(o[1]); | 4033 checkMetro(o[1]); |
3968 } | 4034 } |
3969 | 4035 |
3970 buildUnnamed343() { | 4036 buildUnnamed1127() { |
3971 var o = new core.List<api.PostalCode>(); | 4037 var o = new core.List<api.PostalCode>(); |
3972 o.add(buildPostalCode()); | 4038 o.add(buildPostalCode()); |
3973 o.add(buildPostalCode()); | 4039 o.add(buildPostalCode()); |
3974 return o; | 4040 return o; |
3975 } | 4041 } |
3976 | 4042 |
3977 checkUnnamed343(core.List<api.PostalCode> o) { | 4043 checkUnnamed1127(core.List<api.PostalCode> o) { |
3978 unittest.expect(o, unittest.hasLength(2)); | 4044 unittest.expect(o, unittest.hasLength(2)); |
3979 checkPostalCode(o[0]); | 4045 checkPostalCode(o[0]); |
3980 checkPostalCode(o[1]); | 4046 checkPostalCode(o[1]); |
3981 } | 4047 } |
3982 | 4048 |
3983 buildUnnamed344() { | 4049 buildUnnamed1128() { |
3984 var o = new core.List<api.Region>(); | 4050 var o = new core.List<api.Region>(); |
3985 o.add(buildRegion()); | 4051 o.add(buildRegion()); |
3986 o.add(buildRegion()); | 4052 o.add(buildRegion()); |
3987 return o; | 4053 return o; |
3988 } | 4054 } |
3989 | 4055 |
3990 checkUnnamed344(core.List<api.Region> o) { | 4056 checkUnnamed1128(core.List<api.Region> o) { |
3991 unittest.expect(o, unittest.hasLength(2)); | 4057 unittest.expect(o, unittest.hasLength(2)); |
3992 checkRegion(o[0]); | 4058 checkRegion(o[0]); |
3993 checkRegion(o[1]); | 4059 checkRegion(o[1]); |
3994 } | 4060 } |
3995 | 4061 |
3996 core.int buildCounterGeoTargeting = 0; | 4062 core.int buildCounterGeoTargeting = 0; |
3997 buildGeoTargeting() { | 4063 buildGeoTargeting() { |
3998 var o = new api.GeoTargeting(); | 4064 var o = new api.GeoTargeting(); |
3999 buildCounterGeoTargeting++; | 4065 buildCounterGeoTargeting++; |
4000 if (buildCounterGeoTargeting < 3) { | 4066 if (buildCounterGeoTargeting < 3) { |
4001 o.cities = buildUnnamed340(); | 4067 o.cities = buildUnnamed1124(); |
4002 o.countries = buildUnnamed341(); | 4068 o.countries = buildUnnamed1125(); |
4003 o.excludeCountries = true; | 4069 o.excludeCountries = true; |
4004 o.metros = buildUnnamed342(); | 4070 o.metros = buildUnnamed1126(); |
4005 o.postalCodes = buildUnnamed343(); | 4071 o.postalCodes = buildUnnamed1127(); |
4006 o.regions = buildUnnamed344(); | 4072 o.regions = buildUnnamed1128(); |
4007 } | 4073 } |
4008 buildCounterGeoTargeting--; | 4074 buildCounterGeoTargeting--; |
4009 return o; | 4075 return o; |
4010 } | 4076 } |
4011 | 4077 |
4012 checkGeoTargeting(api.GeoTargeting o) { | 4078 checkGeoTargeting(api.GeoTargeting o) { |
4013 buildCounterGeoTargeting++; | 4079 buildCounterGeoTargeting++; |
4014 if (buildCounterGeoTargeting < 3) { | 4080 if (buildCounterGeoTargeting < 3) { |
4015 checkUnnamed340(o.cities); | 4081 checkUnnamed1124(o.cities); |
4016 checkUnnamed341(o.countries); | 4082 checkUnnamed1125(o.countries); |
4017 unittest.expect(o.excludeCountries, unittest.isTrue); | 4083 unittest.expect(o.excludeCountries, unittest.isTrue); |
4018 checkUnnamed342(o.metros); | 4084 checkUnnamed1126(o.metros); |
4019 checkUnnamed343(o.postalCodes); | 4085 checkUnnamed1127(o.postalCodes); |
4020 checkUnnamed344(o.regions); | 4086 checkUnnamed1128(o.regions); |
4021 } | 4087 } |
4022 buildCounterGeoTargeting--; | 4088 buildCounterGeoTargeting--; |
4023 } | 4089 } |
4024 | 4090 |
| 4091 buildUnnamed1129() { |
| 4092 var o = new core.List<api.AdSlot>(); |
| 4093 o.add(buildAdSlot()); |
| 4094 o.add(buildAdSlot()); |
| 4095 return o; |
| 4096 } |
| 4097 |
| 4098 checkUnnamed1129(core.List<api.AdSlot> o) { |
| 4099 unittest.expect(o, unittest.hasLength(2)); |
| 4100 checkAdSlot(o[0]); |
| 4101 checkAdSlot(o[1]); |
| 4102 } |
| 4103 |
| 4104 core.int buildCounterInventoryItem = 0; |
| 4105 buildInventoryItem() { |
| 4106 var o = new api.InventoryItem(); |
| 4107 buildCounterInventoryItem++; |
| 4108 if (buildCounterInventoryItem < 3) { |
| 4109 o.accountId = "foo"; |
| 4110 o.adSlots = buildUnnamed1129(); |
| 4111 o.advertiserId = "foo"; |
| 4112 o.contentCategoryId = "foo"; |
| 4113 o.estimatedClickThroughRate = "foo"; |
| 4114 o.estimatedConversionRate = "foo"; |
| 4115 o.id = "foo"; |
| 4116 o.inPlan = true; |
| 4117 o.kind = "foo"; |
| 4118 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 4119 o.name = "foo"; |
| 4120 o.negotiationChannelId = "foo"; |
| 4121 o.orderId = "foo"; |
| 4122 o.placementStrategyId = "foo"; |
| 4123 o.pricing = buildPricing(); |
| 4124 o.projectId = "foo"; |
| 4125 o.rfpId = "foo"; |
| 4126 o.siteId = "foo"; |
| 4127 o.subaccountId = "foo"; |
| 4128 } |
| 4129 buildCounterInventoryItem--; |
| 4130 return o; |
| 4131 } |
| 4132 |
| 4133 checkInventoryItem(api.InventoryItem o) { |
| 4134 buildCounterInventoryItem++; |
| 4135 if (buildCounterInventoryItem < 3) { |
| 4136 unittest.expect(o.accountId, unittest.equals('foo')); |
| 4137 checkUnnamed1129(o.adSlots); |
| 4138 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 4139 unittest.expect(o.contentCategoryId, unittest.equals('foo')); |
| 4140 unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); |
| 4141 unittest.expect(o.estimatedConversionRate, unittest.equals('foo')); |
| 4142 unittest.expect(o.id, unittest.equals('foo')); |
| 4143 unittest.expect(o.inPlan, unittest.isTrue); |
| 4144 unittest.expect(o.kind, unittest.equals('foo')); |
| 4145 checkLastModifiedInfo(o.lastModifiedInfo); |
| 4146 unittest.expect(o.name, unittest.equals('foo')); |
| 4147 unittest.expect(o.negotiationChannelId, unittest.equals('foo')); |
| 4148 unittest.expect(o.orderId, unittest.equals('foo')); |
| 4149 unittest.expect(o.placementStrategyId, unittest.equals('foo')); |
| 4150 checkPricing(o.pricing); |
| 4151 unittest.expect(o.projectId, unittest.equals('foo')); |
| 4152 unittest.expect(o.rfpId, unittest.equals('foo')); |
| 4153 unittest.expect(o.siteId, unittest.equals('foo')); |
| 4154 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 4155 } |
| 4156 buildCounterInventoryItem--; |
| 4157 } |
| 4158 |
| 4159 buildUnnamed1130() { |
| 4160 var o = new core.List<api.InventoryItem>(); |
| 4161 o.add(buildInventoryItem()); |
| 4162 o.add(buildInventoryItem()); |
| 4163 return o; |
| 4164 } |
| 4165 |
| 4166 checkUnnamed1130(core.List<api.InventoryItem> o) { |
| 4167 unittest.expect(o, unittest.hasLength(2)); |
| 4168 checkInventoryItem(o[0]); |
| 4169 checkInventoryItem(o[1]); |
| 4170 } |
| 4171 |
| 4172 core.int buildCounterInventoryItemsListResponse = 0; |
| 4173 buildInventoryItemsListResponse() { |
| 4174 var o = new api.InventoryItemsListResponse(); |
| 4175 buildCounterInventoryItemsListResponse++; |
| 4176 if (buildCounterInventoryItemsListResponse < 3) { |
| 4177 o.inventoryItems = buildUnnamed1130(); |
| 4178 o.kind = "foo"; |
| 4179 o.nextPageToken = "foo"; |
| 4180 } |
| 4181 buildCounterInventoryItemsListResponse--; |
| 4182 return o; |
| 4183 } |
| 4184 |
| 4185 checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { |
| 4186 buildCounterInventoryItemsListResponse++; |
| 4187 if (buildCounterInventoryItemsListResponse < 3) { |
| 4188 checkUnnamed1130(o.inventoryItems); |
| 4189 unittest.expect(o.kind, unittest.equals('foo')); |
| 4190 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4191 } |
| 4192 buildCounterInventoryItemsListResponse--; |
| 4193 } |
| 4194 |
4025 core.int buildCounterKeyValueTargetingExpression = 0; | 4195 core.int buildCounterKeyValueTargetingExpression = 0; |
4026 buildKeyValueTargetingExpression() { | 4196 buildKeyValueTargetingExpression() { |
4027 var o = new api.KeyValueTargetingExpression(); | 4197 var o = new api.KeyValueTargetingExpression(); |
4028 buildCounterKeyValueTargetingExpression++; | 4198 buildCounterKeyValueTargetingExpression++; |
4029 if (buildCounterKeyValueTargetingExpression < 3) { | 4199 if (buildCounterKeyValueTargetingExpression < 3) { |
4030 o.expression = "foo"; | 4200 o.expression = "foo"; |
4031 } | 4201 } |
4032 buildCounterKeyValueTargetingExpression--; | 4202 buildCounterKeyValueTargetingExpression--; |
4033 return o; | 4203 return o; |
4034 } | 4204 } |
(...skipping 26 matching lines...) Expand all Loading... |
4061 if (buildCounterLandingPage < 3) { | 4231 if (buildCounterLandingPage < 3) { |
4062 unittest.expect(o.default_, unittest.isTrue); | 4232 unittest.expect(o.default_, unittest.isTrue); |
4063 unittest.expect(o.id, unittest.equals('foo')); | 4233 unittest.expect(o.id, unittest.equals('foo')); |
4064 unittest.expect(o.kind, unittest.equals('foo')); | 4234 unittest.expect(o.kind, unittest.equals('foo')); |
4065 unittest.expect(o.name, unittest.equals('foo')); | 4235 unittest.expect(o.name, unittest.equals('foo')); |
4066 unittest.expect(o.url, unittest.equals('foo')); | 4236 unittest.expect(o.url, unittest.equals('foo')); |
4067 } | 4237 } |
4068 buildCounterLandingPage--; | 4238 buildCounterLandingPage--; |
4069 } | 4239 } |
4070 | 4240 |
4071 buildUnnamed345() { | 4241 buildUnnamed1131() { |
4072 var o = new core.List<api.LandingPage>(); | 4242 var o = new core.List<api.LandingPage>(); |
4073 o.add(buildLandingPage()); | 4243 o.add(buildLandingPage()); |
4074 o.add(buildLandingPage()); | 4244 o.add(buildLandingPage()); |
4075 return o; | 4245 return o; |
4076 } | 4246 } |
4077 | 4247 |
4078 checkUnnamed345(core.List<api.LandingPage> o) { | 4248 checkUnnamed1131(core.List<api.LandingPage> o) { |
4079 unittest.expect(o, unittest.hasLength(2)); | 4249 unittest.expect(o, unittest.hasLength(2)); |
4080 checkLandingPage(o[0]); | 4250 checkLandingPage(o[0]); |
4081 checkLandingPage(o[1]); | 4251 checkLandingPage(o[1]); |
4082 } | 4252 } |
4083 | 4253 |
4084 core.int buildCounterLandingPagesListResponse = 0; | 4254 core.int buildCounterLandingPagesListResponse = 0; |
4085 buildLandingPagesListResponse() { | 4255 buildLandingPagesListResponse() { |
4086 var o = new api.LandingPagesListResponse(); | 4256 var o = new api.LandingPagesListResponse(); |
4087 buildCounterLandingPagesListResponse++; | 4257 buildCounterLandingPagesListResponse++; |
4088 if (buildCounterLandingPagesListResponse < 3) { | 4258 if (buildCounterLandingPagesListResponse < 3) { |
4089 o.kind = "foo"; | 4259 o.kind = "foo"; |
4090 o.landingPages = buildUnnamed345(); | 4260 o.landingPages = buildUnnamed1131(); |
4091 } | 4261 } |
4092 buildCounterLandingPagesListResponse--; | 4262 buildCounterLandingPagesListResponse--; |
4093 return o; | 4263 return o; |
4094 } | 4264 } |
4095 | 4265 |
4096 checkLandingPagesListResponse(api.LandingPagesListResponse o) { | 4266 checkLandingPagesListResponse(api.LandingPagesListResponse o) { |
4097 buildCounterLandingPagesListResponse++; | 4267 buildCounterLandingPagesListResponse++; |
4098 if (buildCounterLandingPagesListResponse < 3) { | 4268 if (buildCounterLandingPagesListResponse < 3) { |
4099 unittest.expect(o.kind, unittest.equals('foo')); | 4269 unittest.expect(o.kind, unittest.equals('foo')); |
4100 checkUnnamed345(o.landingPages); | 4270 checkUnnamed1131(o.landingPages); |
4101 } | 4271 } |
4102 buildCounterLandingPagesListResponse--; | 4272 buildCounterLandingPagesListResponse--; |
4103 } | 4273 } |
4104 | 4274 |
4105 core.int buildCounterLastModifiedInfo = 0; | 4275 core.int buildCounterLastModifiedInfo = 0; |
4106 buildLastModifiedInfo() { | 4276 buildLastModifiedInfo() { |
4107 var o = new api.LastModifiedInfo(); | 4277 var o = new api.LastModifiedInfo(); |
4108 buildCounterLastModifiedInfo++; | 4278 buildCounterLastModifiedInfo++; |
4109 if (buildCounterLastModifiedInfo < 3) { | 4279 if (buildCounterLastModifiedInfo < 3) { |
4110 o.time = "foo"; | 4280 o.time = "foo"; |
4111 } | 4281 } |
4112 buildCounterLastModifiedInfo--; | 4282 buildCounterLastModifiedInfo--; |
4113 return o; | 4283 return o; |
4114 } | 4284 } |
4115 | 4285 |
4116 checkLastModifiedInfo(api.LastModifiedInfo o) { | 4286 checkLastModifiedInfo(api.LastModifiedInfo o) { |
4117 buildCounterLastModifiedInfo++; | 4287 buildCounterLastModifiedInfo++; |
4118 if (buildCounterLastModifiedInfo < 3) { | 4288 if (buildCounterLastModifiedInfo < 3) { |
4119 unittest.expect(o.time, unittest.equals('foo')); | 4289 unittest.expect(o.time, unittest.equals('foo')); |
4120 } | 4290 } |
4121 buildCounterLastModifiedInfo--; | 4291 buildCounterLastModifiedInfo--; |
4122 } | 4292 } |
4123 | 4293 |
| 4294 buildUnnamed1132() { |
| 4295 var o = new core.List<api.ListPopulationTerm>(); |
| 4296 o.add(buildListPopulationTerm()); |
| 4297 o.add(buildListPopulationTerm()); |
| 4298 return o; |
| 4299 } |
| 4300 |
| 4301 checkUnnamed1132(core.List<api.ListPopulationTerm> o) { |
| 4302 unittest.expect(o, unittest.hasLength(2)); |
| 4303 checkListPopulationTerm(o[0]); |
| 4304 checkListPopulationTerm(o[1]); |
| 4305 } |
| 4306 |
| 4307 core.int buildCounterListPopulationClause = 0; |
| 4308 buildListPopulationClause() { |
| 4309 var o = new api.ListPopulationClause(); |
| 4310 buildCounterListPopulationClause++; |
| 4311 if (buildCounterListPopulationClause < 3) { |
| 4312 o.terms = buildUnnamed1132(); |
| 4313 } |
| 4314 buildCounterListPopulationClause--; |
| 4315 return o; |
| 4316 } |
| 4317 |
| 4318 checkListPopulationClause(api.ListPopulationClause o) { |
| 4319 buildCounterListPopulationClause++; |
| 4320 if (buildCounterListPopulationClause < 3) { |
| 4321 checkUnnamed1132(o.terms); |
| 4322 } |
| 4323 buildCounterListPopulationClause--; |
| 4324 } |
| 4325 |
| 4326 buildUnnamed1133() { |
| 4327 var o = new core.List<api.ListPopulationClause>(); |
| 4328 o.add(buildListPopulationClause()); |
| 4329 o.add(buildListPopulationClause()); |
| 4330 return o; |
| 4331 } |
| 4332 |
| 4333 checkUnnamed1133(core.List<api.ListPopulationClause> o) { |
| 4334 unittest.expect(o, unittest.hasLength(2)); |
| 4335 checkListPopulationClause(o[0]); |
| 4336 checkListPopulationClause(o[1]); |
| 4337 } |
| 4338 |
| 4339 core.int buildCounterListPopulationRule = 0; |
| 4340 buildListPopulationRule() { |
| 4341 var o = new api.ListPopulationRule(); |
| 4342 buildCounterListPopulationRule++; |
| 4343 if (buildCounterListPopulationRule < 3) { |
| 4344 o.floodlightActivityId = "foo"; |
| 4345 o.floodlightActivityName = "foo"; |
| 4346 o.listPopulationClauses = buildUnnamed1133(); |
| 4347 } |
| 4348 buildCounterListPopulationRule--; |
| 4349 return o; |
| 4350 } |
| 4351 |
| 4352 checkListPopulationRule(api.ListPopulationRule o) { |
| 4353 buildCounterListPopulationRule++; |
| 4354 if (buildCounterListPopulationRule < 3) { |
| 4355 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); |
| 4356 unittest.expect(o.floodlightActivityName, unittest.equals('foo')); |
| 4357 checkUnnamed1133(o.listPopulationClauses); |
| 4358 } |
| 4359 buildCounterListPopulationRule--; |
| 4360 } |
| 4361 |
| 4362 core.int buildCounterListPopulationTerm = 0; |
| 4363 buildListPopulationTerm() { |
| 4364 var o = new api.ListPopulationTerm(); |
| 4365 buildCounterListPopulationTerm++; |
| 4366 if (buildCounterListPopulationTerm < 3) { |
| 4367 o.contains = true; |
| 4368 o.negation = true; |
| 4369 o.operator = "foo"; |
| 4370 o.remarketingListId = "foo"; |
| 4371 o.type = "foo"; |
| 4372 o.value = "foo"; |
| 4373 o.variableFriendlyName = "foo"; |
| 4374 o.variableName = "foo"; |
| 4375 } |
| 4376 buildCounterListPopulationTerm--; |
| 4377 return o; |
| 4378 } |
| 4379 |
| 4380 checkListPopulationTerm(api.ListPopulationTerm o) { |
| 4381 buildCounterListPopulationTerm++; |
| 4382 if (buildCounterListPopulationTerm < 3) { |
| 4383 unittest.expect(o.contains, unittest.isTrue); |
| 4384 unittest.expect(o.negation, unittest.isTrue); |
| 4385 unittest.expect(o.operator, unittest.equals('foo')); |
| 4386 unittest.expect(o.remarketingListId, unittest.equals('foo')); |
| 4387 unittest.expect(o.type, unittest.equals('foo')); |
| 4388 unittest.expect(o.value, unittest.equals('foo')); |
| 4389 unittest.expect(o.variableFriendlyName, unittest.equals('foo')); |
| 4390 unittest.expect(o.variableName, unittest.equals('foo')); |
| 4391 } |
| 4392 buildCounterListPopulationTerm--; |
| 4393 } |
| 4394 |
4124 core.int buildCounterListTargetingExpression = 0; | 4395 core.int buildCounterListTargetingExpression = 0; |
4125 buildListTargetingExpression() { | 4396 buildListTargetingExpression() { |
4126 var o = new api.ListTargetingExpression(); | 4397 var o = new api.ListTargetingExpression(); |
4127 buildCounterListTargetingExpression++; | 4398 buildCounterListTargetingExpression++; |
4128 if (buildCounterListTargetingExpression < 3) { | 4399 if (buildCounterListTargetingExpression < 3) { |
4129 o.expression = "foo"; | 4400 o.expression = "foo"; |
4130 } | 4401 } |
4131 buildCounterListTargetingExpression--; | 4402 buildCounterListTargetingExpression--; |
4132 return o; | 4403 return o; |
4133 } | 4404 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4206 unittest.expect(o.countryDartId, unittest.equals('foo')); | 4477 unittest.expect(o.countryDartId, unittest.equals('foo')); |
4207 unittest.expect(o.dartId, unittest.equals('foo')); | 4478 unittest.expect(o.dartId, unittest.equals('foo')); |
4208 unittest.expect(o.dmaId, unittest.equals('foo')); | 4479 unittest.expect(o.dmaId, unittest.equals('foo')); |
4209 unittest.expect(o.kind, unittest.equals('foo')); | 4480 unittest.expect(o.kind, unittest.equals('foo')); |
4210 unittest.expect(o.metroCode, unittest.equals('foo')); | 4481 unittest.expect(o.metroCode, unittest.equals('foo')); |
4211 unittest.expect(o.name, unittest.equals('foo')); | 4482 unittest.expect(o.name, unittest.equals('foo')); |
4212 } | 4483 } |
4213 buildCounterMetro--; | 4484 buildCounterMetro--; |
4214 } | 4485 } |
4215 | 4486 |
4216 buildUnnamed346() { | 4487 buildUnnamed1134() { |
4217 var o = new core.List<api.Metro>(); | 4488 var o = new core.List<api.Metro>(); |
4218 o.add(buildMetro()); | 4489 o.add(buildMetro()); |
4219 o.add(buildMetro()); | 4490 o.add(buildMetro()); |
4220 return o; | 4491 return o; |
4221 } | 4492 } |
4222 | 4493 |
4223 checkUnnamed346(core.List<api.Metro> o) { | 4494 checkUnnamed1134(core.List<api.Metro> o) { |
4224 unittest.expect(o, unittest.hasLength(2)); | 4495 unittest.expect(o, unittest.hasLength(2)); |
4225 checkMetro(o[0]); | 4496 checkMetro(o[0]); |
4226 checkMetro(o[1]); | 4497 checkMetro(o[1]); |
4227 } | 4498 } |
4228 | 4499 |
4229 core.int buildCounterMetrosListResponse = 0; | 4500 core.int buildCounterMetrosListResponse = 0; |
4230 buildMetrosListResponse() { | 4501 buildMetrosListResponse() { |
4231 var o = new api.MetrosListResponse(); | 4502 var o = new api.MetrosListResponse(); |
4232 buildCounterMetrosListResponse++; | 4503 buildCounterMetrosListResponse++; |
4233 if (buildCounterMetrosListResponse < 3) { | 4504 if (buildCounterMetrosListResponse < 3) { |
4234 o.kind = "foo"; | 4505 o.kind = "foo"; |
4235 o.metros = buildUnnamed346(); | 4506 o.metros = buildUnnamed1134(); |
4236 } | 4507 } |
4237 buildCounterMetrosListResponse--; | 4508 buildCounterMetrosListResponse--; |
4238 return o; | 4509 return o; |
4239 } | 4510 } |
4240 | 4511 |
4241 checkMetrosListResponse(api.MetrosListResponse o) { | 4512 checkMetrosListResponse(api.MetrosListResponse o) { |
4242 buildCounterMetrosListResponse++; | 4513 buildCounterMetrosListResponse++; |
4243 if (buildCounterMetrosListResponse < 3) { | 4514 if (buildCounterMetrosListResponse < 3) { |
4244 unittest.expect(o.kind, unittest.equals('foo')); | 4515 unittest.expect(o.kind, unittest.equals('foo')); |
4245 checkUnnamed346(o.metros); | 4516 checkUnnamed1134(o.metros); |
4246 } | 4517 } |
4247 buildCounterMetrosListResponse--; | 4518 buildCounterMetrosListResponse--; |
4248 } | 4519 } |
4249 | 4520 |
4250 core.int buildCounterMobileCarrier = 0; | 4521 core.int buildCounterMobileCarrier = 0; |
4251 buildMobileCarrier() { | 4522 buildMobileCarrier() { |
4252 var o = new api.MobileCarrier(); | 4523 var o = new api.MobileCarrier(); |
4253 buildCounterMobileCarrier++; | 4524 buildCounterMobileCarrier++; |
4254 if (buildCounterMobileCarrier < 3) { | 4525 if (buildCounterMobileCarrier < 3) { |
4255 o.countryCode = "foo"; | 4526 o.countryCode = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
4267 if (buildCounterMobileCarrier < 3) { | 4538 if (buildCounterMobileCarrier < 3) { |
4268 unittest.expect(o.countryCode, unittest.equals('foo')); | 4539 unittest.expect(o.countryCode, unittest.equals('foo')); |
4269 unittest.expect(o.countryDartId, unittest.equals('foo')); | 4540 unittest.expect(o.countryDartId, unittest.equals('foo')); |
4270 unittest.expect(o.id, unittest.equals('foo')); | 4541 unittest.expect(o.id, unittest.equals('foo')); |
4271 unittest.expect(o.kind, unittest.equals('foo')); | 4542 unittest.expect(o.kind, unittest.equals('foo')); |
4272 unittest.expect(o.name, unittest.equals('foo')); | 4543 unittest.expect(o.name, unittest.equals('foo')); |
4273 } | 4544 } |
4274 buildCounterMobileCarrier--; | 4545 buildCounterMobileCarrier--; |
4275 } | 4546 } |
4276 | 4547 |
4277 buildUnnamed347() { | 4548 buildUnnamed1135() { |
4278 var o = new core.List<api.MobileCarrier>(); | 4549 var o = new core.List<api.MobileCarrier>(); |
4279 o.add(buildMobileCarrier()); | 4550 o.add(buildMobileCarrier()); |
4280 o.add(buildMobileCarrier()); | 4551 o.add(buildMobileCarrier()); |
4281 return o; | 4552 return o; |
4282 } | 4553 } |
4283 | 4554 |
4284 checkUnnamed347(core.List<api.MobileCarrier> o) { | 4555 checkUnnamed1135(core.List<api.MobileCarrier> o) { |
4285 unittest.expect(o, unittest.hasLength(2)); | 4556 unittest.expect(o, unittest.hasLength(2)); |
4286 checkMobileCarrier(o[0]); | 4557 checkMobileCarrier(o[0]); |
4287 checkMobileCarrier(o[1]); | 4558 checkMobileCarrier(o[1]); |
4288 } | 4559 } |
4289 | 4560 |
4290 core.int buildCounterMobileCarriersListResponse = 0; | 4561 core.int buildCounterMobileCarriersListResponse = 0; |
4291 buildMobileCarriersListResponse() { | 4562 buildMobileCarriersListResponse() { |
4292 var o = new api.MobileCarriersListResponse(); | 4563 var o = new api.MobileCarriersListResponse(); |
4293 buildCounterMobileCarriersListResponse++; | 4564 buildCounterMobileCarriersListResponse++; |
4294 if (buildCounterMobileCarriersListResponse < 3) { | 4565 if (buildCounterMobileCarriersListResponse < 3) { |
4295 o.kind = "foo"; | 4566 o.kind = "foo"; |
4296 o.mobileCarriers = buildUnnamed347(); | 4567 o.mobileCarriers = buildUnnamed1135(); |
4297 } | 4568 } |
4298 buildCounterMobileCarriersListResponse--; | 4569 buildCounterMobileCarriersListResponse--; |
4299 return o; | 4570 return o; |
4300 } | 4571 } |
4301 | 4572 |
4302 checkMobileCarriersListResponse(api.MobileCarriersListResponse o) { | 4573 checkMobileCarriersListResponse(api.MobileCarriersListResponse o) { |
4303 buildCounterMobileCarriersListResponse++; | 4574 buildCounterMobileCarriersListResponse++; |
4304 if (buildCounterMobileCarriersListResponse < 3) { | 4575 if (buildCounterMobileCarriersListResponse < 3) { |
4305 unittest.expect(o.kind, unittest.equals('foo')); | 4576 unittest.expect(o.kind, unittest.equals('foo')); |
4306 checkUnnamed347(o.mobileCarriers); | 4577 checkUnnamed1135(o.mobileCarriers); |
4307 } | 4578 } |
4308 buildCounterMobileCarriersListResponse--; | 4579 buildCounterMobileCarriersListResponse--; |
4309 } | 4580 } |
4310 | 4581 |
4311 buildUnnamed348() { | 4582 buildUnnamed1136() { |
4312 var o = new core.List<core.String>(); | 4583 var o = new core.List<core.String>(); |
4313 o.add("foo"); | 4584 o.add("foo"); |
4314 o.add("foo"); | 4585 o.add("foo"); |
4315 return o; | 4586 return o; |
4316 } | 4587 } |
4317 | 4588 |
4318 checkUnnamed348(core.List<core.String> o) { | 4589 checkUnnamed1136(core.List<core.String> o) { |
4319 unittest.expect(o, unittest.hasLength(2)); | 4590 unittest.expect(o, unittest.hasLength(2)); |
4320 unittest.expect(o[0], unittest.equals('foo')); | 4591 unittest.expect(o[0], unittest.equals('foo')); |
4321 unittest.expect(o[1], unittest.equals('foo')); | 4592 unittest.expect(o[1], unittest.equals('foo')); |
4322 } | 4593 } |
4323 | 4594 |
4324 core.int buildCounterObjectFilter = 0; | 4595 core.int buildCounterObjectFilter = 0; |
4325 buildObjectFilter() { | 4596 buildObjectFilter() { |
4326 var o = new api.ObjectFilter(); | 4597 var o = new api.ObjectFilter(); |
4327 buildCounterObjectFilter++; | 4598 buildCounterObjectFilter++; |
4328 if (buildCounterObjectFilter < 3) { | 4599 if (buildCounterObjectFilter < 3) { |
4329 o.kind = "foo"; | 4600 o.kind = "foo"; |
4330 o.objectIds = buildUnnamed348(); | 4601 o.objectIds = buildUnnamed1136(); |
4331 o.status = "foo"; | 4602 o.status = "foo"; |
4332 } | 4603 } |
4333 buildCounterObjectFilter--; | 4604 buildCounterObjectFilter--; |
4334 return o; | 4605 return o; |
4335 } | 4606 } |
4336 | 4607 |
4337 checkObjectFilter(api.ObjectFilter o) { | 4608 checkObjectFilter(api.ObjectFilter o) { |
4338 buildCounterObjectFilter++; | 4609 buildCounterObjectFilter++; |
4339 if (buildCounterObjectFilter < 3) { | 4610 if (buildCounterObjectFilter < 3) { |
4340 unittest.expect(o.kind, unittest.equals('foo')); | 4611 unittest.expect(o.kind, unittest.equals('foo')); |
4341 checkUnnamed348(o.objectIds); | 4612 checkUnnamed1136(o.objectIds); |
4342 unittest.expect(o.status, unittest.equals('foo')); | 4613 unittest.expect(o.status, unittest.equals('foo')); |
4343 } | 4614 } |
4344 buildCounterObjectFilter--; | 4615 buildCounterObjectFilter--; |
4345 } | 4616 } |
4346 | 4617 |
4347 core.int buildCounterOffsetPosition = 0; | 4618 core.int buildCounterOffsetPosition = 0; |
4348 buildOffsetPosition() { | 4619 buildOffsetPosition() { |
4349 var o = new api.OffsetPosition(); | 4620 var o = new api.OffsetPosition(); |
4350 buildCounterOffsetPosition++; | 4621 buildCounterOffsetPosition++; |
4351 if (buildCounterOffsetPosition < 3) { | 4622 if (buildCounterOffsetPosition < 3) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4435 unittest.expect(o.id, unittest.equals('foo')); | 4706 unittest.expect(o.id, unittest.equals('foo')); |
4436 unittest.expect(o.kind, unittest.equals('foo')); | 4707 unittest.expect(o.kind, unittest.equals('foo')); |
4437 unittest.expect(o.majorVersion, unittest.equals('foo')); | 4708 unittest.expect(o.majorVersion, unittest.equals('foo')); |
4438 unittest.expect(o.minorVersion, unittest.equals('foo')); | 4709 unittest.expect(o.minorVersion, unittest.equals('foo')); |
4439 unittest.expect(o.name, unittest.equals('foo')); | 4710 unittest.expect(o.name, unittest.equals('foo')); |
4440 checkOperatingSystem(o.operatingSystem); | 4711 checkOperatingSystem(o.operatingSystem); |
4441 } | 4712 } |
4442 buildCounterOperatingSystemVersion--; | 4713 buildCounterOperatingSystemVersion--; |
4443 } | 4714 } |
4444 | 4715 |
4445 buildUnnamed349() { | 4716 buildUnnamed1137() { |
4446 var o = new core.List<api.OperatingSystemVersion>(); | 4717 var o = new core.List<api.OperatingSystemVersion>(); |
4447 o.add(buildOperatingSystemVersion()); | 4718 o.add(buildOperatingSystemVersion()); |
4448 o.add(buildOperatingSystemVersion()); | 4719 o.add(buildOperatingSystemVersion()); |
4449 return o; | 4720 return o; |
4450 } | 4721 } |
4451 | 4722 |
4452 checkUnnamed349(core.List<api.OperatingSystemVersion> o) { | 4723 checkUnnamed1137(core.List<api.OperatingSystemVersion> o) { |
4453 unittest.expect(o, unittest.hasLength(2)); | 4724 unittest.expect(o, unittest.hasLength(2)); |
4454 checkOperatingSystemVersion(o[0]); | 4725 checkOperatingSystemVersion(o[0]); |
4455 checkOperatingSystemVersion(o[1]); | 4726 checkOperatingSystemVersion(o[1]); |
4456 } | 4727 } |
4457 | 4728 |
4458 core.int buildCounterOperatingSystemVersionsListResponse = 0; | 4729 core.int buildCounterOperatingSystemVersionsListResponse = 0; |
4459 buildOperatingSystemVersionsListResponse() { | 4730 buildOperatingSystemVersionsListResponse() { |
4460 var o = new api.OperatingSystemVersionsListResponse(); | 4731 var o = new api.OperatingSystemVersionsListResponse(); |
4461 buildCounterOperatingSystemVersionsListResponse++; | 4732 buildCounterOperatingSystemVersionsListResponse++; |
4462 if (buildCounterOperatingSystemVersionsListResponse < 3) { | 4733 if (buildCounterOperatingSystemVersionsListResponse < 3) { |
4463 o.kind = "foo"; | 4734 o.kind = "foo"; |
4464 o.operatingSystemVersions = buildUnnamed349(); | 4735 o.operatingSystemVersions = buildUnnamed1137(); |
4465 } | 4736 } |
4466 buildCounterOperatingSystemVersionsListResponse--; | 4737 buildCounterOperatingSystemVersionsListResponse--; |
4467 return o; | 4738 return o; |
4468 } | 4739 } |
4469 | 4740 |
4470 checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse
o) { | 4741 checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse
o) { |
4471 buildCounterOperatingSystemVersionsListResponse++; | 4742 buildCounterOperatingSystemVersionsListResponse++; |
4472 if (buildCounterOperatingSystemVersionsListResponse < 3) { | 4743 if (buildCounterOperatingSystemVersionsListResponse < 3) { |
4473 unittest.expect(o.kind, unittest.equals('foo')); | 4744 unittest.expect(o.kind, unittest.equals('foo')); |
4474 checkUnnamed349(o.operatingSystemVersions); | 4745 checkUnnamed1137(o.operatingSystemVersions); |
4475 } | 4746 } |
4476 buildCounterOperatingSystemVersionsListResponse--; | 4747 buildCounterOperatingSystemVersionsListResponse--; |
4477 } | 4748 } |
4478 | 4749 |
4479 buildUnnamed350() { | 4750 buildUnnamed1138() { |
4480 var o = new core.List<api.OperatingSystem>(); | 4751 var o = new core.List<api.OperatingSystem>(); |
4481 o.add(buildOperatingSystem()); | 4752 o.add(buildOperatingSystem()); |
4482 o.add(buildOperatingSystem()); | 4753 o.add(buildOperatingSystem()); |
4483 return o; | 4754 return o; |
4484 } | 4755 } |
4485 | 4756 |
4486 checkUnnamed350(core.List<api.OperatingSystem> o) { | 4757 checkUnnamed1138(core.List<api.OperatingSystem> o) { |
4487 unittest.expect(o, unittest.hasLength(2)); | 4758 unittest.expect(o, unittest.hasLength(2)); |
4488 checkOperatingSystem(o[0]); | 4759 checkOperatingSystem(o[0]); |
4489 checkOperatingSystem(o[1]); | 4760 checkOperatingSystem(o[1]); |
4490 } | 4761 } |
4491 | 4762 |
4492 core.int buildCounterOperatingSystemsListResponse = 0; | 4763 core.int buildCounterOperatingSystemsListResponse = 0; |
4493 buildOperatingSystemsListResponse() { | 4764 buildOperatingSystemsListResponse() { |
4494 var o = new api.OperatingSystemsListResponse(); | 4765 var o = new api.OperatingSystemsListResponse(); |
4495 buildCounterOperatingSystemsListResponse++; | 4766 buildCounterOperatingSystemsListResponse++; |
4496 if (buildCounterOperatingSystemsListResponse < 3) { | 4767 if (buildCounterOperatingSystemsListResponse < 3) { |
4497 o.kind = "foo"; | 4768 o.kind = "foo"; |
4498 o.operatingSystems = buildUnnamed350(); | 4769 o.operatingSystems = buildUnnamed1138(); |
4499 } | 4770 } |
4500 buildCounterOperatingSystemsListResponse--; | 4771 buildCounterOperatingSystemsListResponse--; |
4501 return o; | 4772 return o; |
4502 } | 4773 } |
4503 | 4774 |
4504 checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) { | 4775 checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) { |
4505 buildCounterOperatingSystemsListResponse++; | 4776 buildCounterOperatingSystemsListResponse++; |
4506 if (buildCounterOperatingSystemsListResponse < 3) { | 4777 if (buildCounterOperatingSystemsListResponse < 3) { |
4507 unittest.expect(o.kind, unittest.equals('foo')); | 4778 unittest.expect(o.kind, unittest.equals('foo')); |
4508 checkUnnamed350(o.operatingSystems); | 4779 checkUnnamed1138(o.operatingSystems); |
4509 } | 4780 } |
4510 buildCounterOperatingSystemsListResponse--; | 4781 buildCounterOperatingSystemsListResponse--; |
4511 } | 4782 } |
4512 | 4783 |
4513 core.int buildCounterOptimizationActivity = 0; | 4784 core.int buildCounterOptimizationActivity = 0; |
4514 buildOptimizationActivity() { | 4785 buildOptimizationActivity() { |
4515 var o = new api.OptimizationActivity(); | 4786 var o = new api.OptimizationActivity(); |
4516 buildCounterOptimizationActivity++; | 4787 buildCounterOptimizationActivity++; |
4517 if (buildCounterOptimizationActivity < 3) { | 4788 if (buildCounterOptimizationActivity < 3) { |
4518 o.floodlightActivityId = "foo"; | 4789 o.floodlightActivityId = "foo"; |
4519 o.floodlightActivityIdDimensionValue = buildDimensionValue(); | 4790 o.floodlightActivityIdDimensionValue = buildDimensionValue(); |
4520 o.weight = 42; | 4791 o.weight = 42; |
4521 } | 4792 } |
4522 buildCounterOptimizationActivity--; | 4793 buildCounterOptimizationActivity--; |
4523 return o; | 4794 return o; |
4524 } | 4795 } |
4525 | 4796 |
4526 checkOptimizationActivity(api.OptimizationActivity o) { | 4797 checkOptimizationActivity(api.OptimizationActivity o) { |
4527 buildCounterOptimizationActivity++; | 4798 buildCounterOptimizationActivity++; |
4528 if (buildCounterOptimizationActivity < 3) { | 4799 if (buildCounterOptimizationActivity < 3) { |
4529 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); | 4800 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); |
4530 checkDimensionValue(o.floodlightActivityIdDimensionValue); | 4801 checkDimensionValue(o.floodlightActivityIdDimensionValue); |
4531 unittest.expect(o.weight, unittest.equals(42)); | 4802 unittest.expect(o.weight, unittest.equals(42)); |
4532 } | 4803 } |
4533 buildCounterOptimizationActivity--; | 4804 buildCounterOptimizationActivity--; |
4534 } | 4805 } |
4535 | 4806 |
4536 buildUnnamed351() { | 4807 buildUnnamed1139() { |
| 4808 var o = new core.List<core.String>(); |
| 4809 o.add("foo"); |
| 4810 o.add("foo"); |
| 4811 return o; |
| 4812 } |
| 4813 |
| 4814 checkUnnamed1139(core.List<core.String> o) { |
| 4815 unittest.expect(o, unittest.hasLength(2)); |
| 4816 unittest.expect(o[0], unittest.equals('foo')); |
| 4817 unittest.expect(o[1], unittest.equals('foo')); |
| 4818 } |
| 4819 |
| 4820 buildUnnamed1140() { |
| 4821 var o = new core.List<api.OrderContact>(); |
| 4822 o.add(buildOrderContact()); |
| 4823 o.add(buildOrderContact()); |
| 4824 return o; |
| 4825 } |
| 4826 |
| 4827 checkUnnamed1140(core.List<api.OrderContact> o) { |
| 4828 unittest.expect(o, unittest.hasLength(2)); |
| 4829 checkOrderContact(o[0]); |
| 4830 checkOrderContact(o[1]); |
| 4831 } |
| 4832 |
| 4833 buildUnnamed1141() { |
| 4834 var o = new core.List<core.String>(); |
| 4835 o.add("foo"); |
| 4836 o.add("foo"); |
| 4837 return o; |
| 4838 } |
| 4839 |
| 4840 checkUnnamed1141(core.List<core.String> o) { |
| 4841 unittest.expect(o, unittest.hasLength(2)); |
| 4842 unittest.expect(o[0], unittest.equals('foo')); |
| 4843 unittest.expect(o[1], unittest.equals('foo')); |
| 4844 } |
| 4845 |
| 4846 buildUnnamed1142() { |
| 4847 var o = new core.List<core.String>(); |
| 4848 o.add("foo"); |
| 4849 o.add("foo"); |
| 4850 return o; |
| 4851 } |
| 4852 |
| 4853 checkUnnamed1142(core.List<core.String> o) { |
| 4854 unittest.expect(o, unittest.hasLength(2)); |
| 4855 unittest.expect(o[0], unittest.equals('foo')); |
| 4856 unittest.expect(o[1], unittest.equals('foo')); |
| 4857 } |
| 4858 |
| 4859 core.int buildCounterOrder = 0; |
| 4860 buildOrder() { |
| 4861 var o = new api.Order(); |
| 4862 buildCounterOrder++; |
| 4863 if (buildCounterOrder < 3) { |
| 4864 o.accountId = "foo"; |
| 4865 o.advertiserId = "foo"; |
| 4866 o.approverUserProfileIds = buildUnnamed1139(); |
| 4867 o.buyerInvoiceId = "foo"; |
| 4868 o.buyerOrganizationName = "foo"; |
| 4869 o.comments = "foo"; |
| 4870 o.contacts = buildUnnamed1140(); |
| 4871 o.id = "foo"; |
| 4872 o.kind = "foo"; |
| 4873 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 4874 o.name = "foo"; |
| 4875 o.notes = "foo"; |
| 4876 o.planningTermId = "foo"; |
| 4877 o.projectId = "foo"; |
| 4878 o.sellerOrderId = "foo"; |
| 4879 o.sellerOrganizationName = "foo"; |
| 4880 o.siteId = buildUnnamed1141(); |
| 4881 o.siteNames = buildUnnamed1142(); |
| 4882 o.subaccountId = "foo"; |
| 4883 o.termsAndConditions = "foo"; |
| 4884 } |
| 4885 buildCounterOrder--; |
| 4886 return o; |
| 4887 } |
| 4888 |
| 4889 checkOrder(api.Order o) { |
| 4890 buildCounterOrder++; |
| 4891 if (buildCounterOrder < 3) { |
| 4892 unittest.expect(o.accountId, unittest.equals('foo')); |
| 4893 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 4894 checkUnnamed1139(o.approverUserProfileIds); |
| 4895 unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); |
| 4896 unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); |
| 4897 unittest.expect(o.comments, unittest.equals('foo')); |
| 4898 checkUnnamed1140(o.contacts); |
| 4899 unittest.expect(o.id, unittest.equals('foo')); |
| 4900 unittest.expect(o.kind, unittest.equals('foo')); |
| 4901 checkLastModifiedInfo(o.lastModifiedInfo); |
| 4902 unittest.expect(o.name, unittest.equals('foo')); |
| 4903 unittest.expect(o.notes, unittest.equals('foo')); |
| 4904 unittest.expect(o.planningTermId, unittest.equals('foo')); |
| 4905 unittest.expect(o.projectId, unittest.equals('foo')); |
| 4906 unittest.expect(o.sellerOrderId, unittest.equals('foo')); |
| 4907 unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); |
| 4908 checkUnnamed1141(o.siteId); |
| 4909 checkUnnamed1142(o.siteNames); |
| 4910 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 4911 unittest.expect(o.termsAndConditions, unittest.equals('foo')); |
| 4912 } |
| 4913 buildCounterOrder--; |
| 4914 } |
| 4915 |
| 4916 core.int buildCounterOrderContact = 0; |
| 4917 buildOrderContact() { |
| 4918 var o = new api.OrderContact(); |
| 4919 buildCounterOrderContact++; |
| 4920 if (buildCounterOrderContact < 3) { |
| 4921 o.contactInfo = "foo"; |
| 4922 o.contactName = "foo"; |
| 4923 o.contactTitle = "foo"; |
| 4924 o.contactType = "foo"; |
| 4925 o.signatureUserProfileId = "foo"; |
| 4926 } |
| 4927 buildCounterOrderContact--; |
| 4928 return o; |
| 4929 } |
| 4930 |
| 4931 checkOrderContact(api.OrderContact o) { |
| 4932 buildCounterOrderContact++; |
| 4933 if (buildCounterOrderContact < 3) { |
| 4934 unittest.expect(o.contactInfo, unittest.equals('foo')); |
| 4935 unittest.expect(o.contactName, unittest.equals('foo')); |
| 4936 unittest.expect(o.contactTitle, unittest.equals('foo')); |
| 4937 unittest.expect(o.contactType, unittest.equals('foo')); |
| 4938 unittest.expect(o.signatureUserProfileId, unittest.equals('foo')); |
| 4939 } |
| 4940 buildCounterOrderContact--; |
| 4941 } |
| 4942 |
| 4943 buildUnnamed1143() { |
| 4944 var o = new core.List<core.String>(); |
| 4945 o.add("foo"); |
| 4946 o.add("foo"); |
| 4947 return o; |
| 4948 } |
| 4949 |
| 4950 checkUnnamed1143(core.List<core.String> o) { |
| 4951 unittest.expect(o, unittest.hasLength(2)); |
| 4952 unittest.expect(o[0], unittest.equals('foo')); |
| 4953 unittest.expect(o[1], unittest.equals('foo')); |
| 4954 } |
| 4955 |
| 4956 core.int buildCounterOrderDocument = 0; |
| 4957 buildOrderDocument() { |
| 4958 var o = new api.OrderDocument(); |
| 4959 buildCounterOrderDocument++; |
| 4960 if (buildCounterOrderDocument < 3) { |
| 4961 o.accountId = "foo"; |
| 4962 o.advertiserId = "foo"; |
| 4963 o.amendedOrderDocumentId = "foo"; |
| 4964 o.approvedByUserProfileIds = buildUnnamed1143(); |
| 4965 o.cancelled = true; |
| 4966 o.createdInfo = buildLastModifiedInfo(); |
| 4967 o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 4968 o.id = "foo"; |
| 4969 o.kind = "foo"; |
| 4970 o.orderId = "foo"; |
| 4971 o.projectId = "foo"; |
| 4972 o.signed = true; |
| 4973 o.subaccountId = "foo"; |
| 4974 o.title = "foo"; |
| 4975 o.type = "foo"; |
| 4976 } |
| 4977 buildCounterOrderDocument--; |
| 4978 return o; |
| 4979 } |
| 4980 |
| 4981 checkOrderDocument(api.OrderDocument o) { |
| 4982 buildCounterOrderDocument++; |
| 4983 if (buildCounterOrderDocument < 3) { |
| 4984 unittest.expect(o.accountId, unittest.equals('foo')); |
| 4985 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 4986 unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); |
| 4987 checkUnnamed1143(o.approvedByUserProfileIds); |
| 4988 unittest.expect(o.cancelled, unittest.isTrue); |
| 4989 checkLastModifiedInfo(o.createdInfo); |
| 4990 unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-0
2-27T00:00:00"))); |
| 4991 unittest.expect(o.id, unittest.equals('foo')); |
| 4992 unittest.expect(o.kind, unittest.equals('foo')); |
| 4993 unittest.expect(o.orderId, unittest.equals('foo')); |
| 4994 unittest.expect(o.projectId, unittest.equals('foo')); |
| 4995 unittest.expect(o.signed, unittest.isTrue); |
| 4996 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 4997 unittest.expect(o.title, unittest.equals('foo')); |
| 4998 unittest.expect(o.type, unittest.equals('foo')); |
| 4999 } |
| 5000 buildCounterOrderDocument--; |
| 5001 } |
| 5002 |
| 5003 buildUnnamed1144() { |
| 5004 var o = new core.List<api.OrderDocument>(); |
| 5005 o.add(buildOrderDocument()); |
| 5006 o.add(buildOrderDocument()); |
| 5007 return o; |
| 5008 } |
| 5009 |
| 5010 checkUnnamed1144(core.List<api.OrderDocument> o) { |
| 5011 unittest.expect(o, unittest.hasLength(2)); |
| 5012 checkOrderDocument(o[0]); |
| 5013 checkOrderDocument(o[1]); |
| 5014 } |
| 5015 |
| 5016 core.int buildCounterOrderDocumentsListResponse = 0; |
| 5017 buildOrderDocumentsListResponse() { |
| 5018 var o = new api.OrderDocumentsListResponse(); |
| 5019 buildCounterOrderDocumentsListResponse++; |
| 5020 if (buildCounterOrderDocumentsListResponse < 3) { |
| 5021 o.kind = "foo"; |
| 5022 o.nextPageToken = "foo"; |
| 5023 o.orderDocuments = buildUnnamed1144(); |
| 5024 } |
| 5025 buildCounterOrderDocumentsListResponse--; |
| 5026 return o; |
| 5027 } |
| 5028 |
| 5029 checkOrderDocumentsListResponse(api.OrderDocumentsListResponse o) { |
| 5030 buildCounterOrderDocumentsListResponse++; |
| 5031 if (buildCounterOrderDocumentsListResponse < 3) { |
| 5032 unittest.expect(o.kind, unittest.equals('foo')); |
| 5033 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5034 checkUnnamed1144(o.orderDocuments); |
| 5035 } |
| 5036 buildCounterOrderDocumentsListResponse--; |
| 5037 } |
| 5038 |
| 5039 buildUnnamed1145() { |
| 5040 var o = new core.List<api.Order>(); |
| 5041 o.add(buildOrder()); |
| 5042 o.add(buildOrder()); |
| 5043 return o; |
| 5044 } |
| 5045 |
| 5046 checkUnnamed1145(core.List<api.Order> o) { |
| 5047 unittest.expect(o, unittest.hasLength(2)); |
| 5048 checkOrder(o[0]); |
| 5049 checkOrder(o[1]); |
| 5050 } |
| 5051 |
| 5052 core.int buildCounterOrdersListResponse = 0; |
| 5053 buildOrdersListResponse() { |
| 5054 var o = new api.OrdersListResponse(); |
| 5055 buildCounterOrdersListResponse++; |
| 5056 if (buildCounterOrdersListResponse < 3) { |
| 5057 o.kind = "foo"; |
| 5058 o.nextPageToken = "foo"; |
| 5059 o.orders = buildUnnamed1145(); |
| 5060 } |
| 5061 buildCounterOrdersListResponse--; |
| 5062 return o; |
| 5063 } |
| 5064 |
| 5065 checkOrdersListResponse(api.OrdersListResponse o) { |
| 5066 buildCounterOrdersListResponse++; |
| 5067 if (buildCounterOrdersListResponse < 3) { |
| 5068 unittest.expect(o.kind, unittest.equals('foo')); |
| 5069 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5070 checkUnnamed1145(o.orders); |
| 5071 } |
| 5072 buildCounterOrdersListResponse--; |
| 5073 } |
| 5074 |
| 5075 buildUnnamed1146() { |
4537 var o = new core.List<api.Dimension>(); | 5076 var o = new core.List<api.Dimension>(); |
4538 o.add(buildDimension()); | 5077 o.add(buildDimension()); |
4539 o.add(buildDimension()); | 5078 o.add(buildDimension()); |
4540 return o; | 5079 return o; |
4541 } | 5080 } |
4542 | 5081 |
4543 checkUnnamed351(core.List<api.Dimension> o) { | 5082 checkUnnamed1146(core.List<api.Dimension> o) { |
4544 unittest.expect(o, unittest.hasLength(2)); | 5083 unittest.expect(o, unittest.hasLength(2)); |
4545 checkDimension(o[0]); | 5084 checkDimension(o[0]); |
4546 checkDimension(o[1]); | 5085 checkDimension(o[1]); |
4547 } | 5086 } |
4548 | 5087 |
4549 buildUnnamed352() { | 5088 buildUnnamed1147() { |
4550 var o = new core.List<api.Dimension>(); | 5089 var o = new core.List<api.Dimension>(); |
4551 o.add(buildDimension()); | 5090 o.add(buildDimension()); |
4552 o.add(buildDimension()); | 5091 o.add(buildDimension()); |
4553 return o; | 5092 return o; |
4554 } | 5093 } |
4555 | 5094 |
4556 checkUnnamed352(core.List<api.Dimension> o) { | 5095 checkUnnamed1147(core.List<api.Dimension> o) { |
4557 unittest.expect(o, unittest.hasLength(2)); | 5096 unittest.expect(o, unittest.hasLength(2)); |
4558 checkDimension(o[0]); | 5097 checkDimension(o[0]); |
4559 checkDimension(o[1]); | 5098 checkDimension(o[1]); |
4560 } | 5099 } |
4561 | 5100 |
4562 buildUnnamed353() { | 5101 buildUnnamed1148() { |
4563 var o = new core.List<api.Metric>(); | 5102 var o = new core.List<api.Metric>(); |
4564 o.add(buildMetric()); | 5103 o.add(buildMetric()); |
4565 o.add(buildMetric()); | 5104 o.add(buildMetric()); |
4566 return o; | 5105 return o; |
4567 } | 5106 } |
4568 | 5107 |
4569 checkUnnamed353(core.List<api.Metric> o) { | 5108 checkUnnamed1148(core.List<api.Metric> o) { |
4570 unittest.expect(o, unittest.hasLength(2)); | 5109 unittest.expect(o, unittest.hasLength(2)); |
4571 checkMetric(o[0]); | 5110 checkMetric(o[0]); |
4572 checkMetric(o[1]); | 5111 checkMetric(o[1]); |
4573 } | 5112 } |
4574 | 5113 |
4575 buildUnnamed354() { | 5114 buildUnnamed1149() { |
4576 var o = new core.List<api.Dimension>(); | 5115 var o = new core.List<api.Dimension>(); |
4577 o.add(buildDimension()); | 5116 o.add(buildDimension()); |
4578 o.add(buildDimension()); | 5117 o.add(buildDimension()); |
4579 return o; | 5118 return o; |
4580 } | 5119 } |
4581 | 5120 |
4582 checkUnnamed354(core.List<api.Dimension> o) { | 5121 checkUnnamed1149(core.List<api.Dimension> o) { |
4583 unittest.expect(o, unittest.hasLength(2)); | 5122 unittest.expect(o, unittest.hasLength(2)); |
4584 checkDimension(o[0]); | 5123 checkDimension(o[0]); |
4585 checkDimension(o[1]); | 5124 checkDimension(o[1]); |
4586 } | 5125 } |
4587 | 5126 |
4588 core.int buildCounterPathToConversionReportCompatibleFields = 0; | 5127 core.int buildCounterPathToConversionReportCompatibleFields = 0; |
4589 buildPathToConversionReportCompatibleFields() { | 5128 buildPathToConversionReportCompatibleFields() { |
4590 var o = new api.PathToConversionReportCompatibleFields(); | 5129 var o = new api.PathToConversionReportCompatibleFields(); |
4591 buildCounterPathToConversionReportCompatibleFields++; | 5130 buildCounterPathToConversionReportCompatibleFields++; |
4592 if (buildCounterPathToConversionReportCompatibleFields < 3) { | 5131 if (buildCounterPathToConversionReportCompatibleFields < 3) { |
4593 o.conversionDimensions = buildUnnamed351(); | 5132 o.conversionDimensions = buildUnnamed1146(); |
4594 o.customFloodlightVariables = buildUnnamed352(); | 5133 o.customFloodlightVariables = buildUnnamed1147(); |
4595 o.kind = "foo"; | 5134 o.kind = "foo"; |
4596 o.metrics = buildUnnamed353(); | 5135 o.metrics = buildUnnamed1148(); |
4597 o.perInteractionDimensions = buildUnnamed354(); | 5136 o.perInteractionDimensions = buildUnnamed1149(); |
4598 } | 5137 } |
4599 buildCounterPathToConversionReportCompatibleFields--; | 5138 buildCounterPathToConversionReportCompatibleFields--; |
4600 return o; | 5139 return o; |
4601 } | 5140 } |
4602 | 5141 |
4603 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible
Fields o) { | 5142 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible
Fields o) { |
4604 buildCounterPathToConversionReportCompatibleFields++; | 5143 buildCounterPathToConversionReportCompatibleFields++; |
4605 if (buildCounterPathToConversionReportCompatibleFields < 3) { | 5144 if (buildCounterPathToConversionReportCompatibleFields < 3) { |
4606 checkUnnamed351(o.conversionDimensions); | 5145 checkUnnamed1146(o.conversionDimensions); |
4607 checkUnnamed352(o.customFloodlightVariables); | 5146 checkUnnamed1147(o.customFloodlightVariables); |
4608 unittest.expect(o.kind, unittest.equals('foo')); | 5147 unittest.expect(o.kind, unittest.equals('foo')); |
4609 checkUnnamed353(o.metrics); | 5148 checkUnnamed1148(o.metrics); |
4610 checkUnnamed354(o.perInteractionDimensions); | 5149 checkUnnamed1149(o.perInteractionDimensions); |
4611 } | 5150 } |
4612 buildCounterPathToConversionReportCompatibleFields--; | 5151 buildCounterPathToConversionReportCompatibleFields--; |
4613 } | 5152 } |
4614 | 5153 |
4615 buildUnnamed355() { | 5154 buildUnnamed1150() { |
4616 var o = new core.List<core.String>(); | 5155 var o = new core.List<core.String>(); |
4617 o.add("foo"); | 5156 o.add("foo"); |
4618 o.add("foo"); | 5157 o.add("foo"); |
4619 return o; | 5158 return o; |
4620 } | 5159 } |
4621 | 5160 |
4622 checkUnnamed355(core.List<core.String> o) { | 5161 checkUnnamed1150(core.List<core.String> o) { |
4623 unittest.expect(o, unittest.hasLength(2)); | 5162 unittest.expect(o, unittest.hasLength(2)); |
4624 unittest.expect(o[0], unittest.equals('foo')); | 5163 unittest.expect(o[0], unittest.equals('foo')); |
4625 unittest.expect(o[1], unittest.equals('foo')); | 5164 unittest.expect(o[1], unittest.equals('foo')); |
4626 } | 5165 } |
4627 | 5166 |
4628 core.int buildCounterPlacement = 0; | 5167 core.int buildCounterPlacement = 0; |
4629 buildPlacement() { | 5168 buildPlacement() { |
4630 var o = new api.Placement(); | 5169 var o = new api.Placement(); |
4631 buildCounterPlacement++; | 5170 buildCounterPlacement++; |
4632 if (buildCounterPlacement < 3) { | 5171 if (buildCounterPlacement < 3) { |
(...skipping 24 matching lines...) Expand all Loading... |
4657 o.placementStrategyId = "foo"; | 5196 o.placementStrategyId = "foo"; |
4658 o.pricingSchedule = buildPricingSchedule(); | 5197 o.pricingSchedule = buildPricingSchedule(); |
4659 o.primary = true; | 5198 o.primary = true; |
4660 o.publisherUpdateInfo = buildLastModifiedInfo(); | 5199 o.publisherUpdateInfo = buildLastModifiedInfo(); |
4661 o.siteId = "foo"; | 5200 o.siteId = "foo"; |
4662 o.siteIdDimensionValue = buildDimensionValue(); | 5201 o.siteIdDimensionValue = buildDimensionValue(); |
4663 o.size = buildSize(); | 5202 o.size = buildSize(); |
4664 o.sslRequired = true; | 5203 o.sslRequired = true; |
4665 o.status = "foo"; | 5204 o.status = "foo"; |
4666 o.subaccountId = "foo"; | 5205 o.subaccountId = "foo"; |
4667 o.tagFormats = buildUnnamed355(); | 5206 o.tagFormats = buildUnnamed1150(); |
4668 o.tagSetting = buildTagSetting(); | 5207 o.tagSetting = buildTagSetting(); |
4669 } | 5208 } |
4670 buildCounterPlacement--; | 5209 buildCounterPlacement--; |
4671 return o; | 5210 return o; |
4672 } | 5211 } |
4673 | 5212 |
4674 checkPlacement(api.Placement o) { | 5213 checkPlacement(api.Placement o) { |
4675 buildCounterPlacement++; | 5214 buildCounterPlacement++; |
4676 if (buildCounterPlacement < 3) { | 5215 if (buildCounterPlacement < 3) { |
4677 unittest.expect(o.accountId, unittest.equals('foo')); | 5216 unittest.expect(o.accountId, unittest.equals('foo')); |
(...skipping 23 matching lines...) Expand all Loading... |
4701 unittest.expect(o.placementStrategyId, unittest.equals('foo')); | 5240 unittest.expect(o.placementStrategyId, unittest.equals('foo')); |
4702 checkPricingSchedule(o.pricingSchedule); | 5241 checkPricingSchedule(o.pricingSchedule); |
4703 unittest.expect(o.primary, unittest.isTrue); | 5242 unittest.expect(o.primary, unittest.isTrue); |
4704 checkLastModifiedInfo(o.publisherUpdateInfo); | 5243 checkLastModifiedInfo(o.publisherUpdateInfo); |
4705 unittest.expect(o.siteId, unittest.equals('foo')); | 5244 unittest.expect(o.siteId, unittest.equals('foo')); |
4706 checkDimensionValue(o.siteIdDimensionValue); | 5245 checkDimensionValue(o.siteIdDimensionValue); |
4707 checkSize(o.size); | 5246 checkSize(o.size); |
4708 unittest.expect(o.sslRequired, unittest.isTrue); | 5247 unittest.expect(o.sslRequired, unittest.isTrue); |
4709 unittest.expect(o.status, unittest.equals('foo')); | 5248 unittest.expect(o.status, unittest.equals('foo')); |
4710 unittest.expect(o.subaccountId, unittest.equals('foo')); | 5249 unittest.expect(o.subaccountId, unittest.equals('foo')); |
4711 checkUnnamed355(o.tagFormats); | 5250 checkUnnamed1150(o.tagFormats); |
4712 checkTagSetting(o.tagSetting); | 5251 checkTagSetting(o.tagSetting); |
4713 } | 5252 } |
4714 buildCounterPlacement--; | 5253 buildCounterPlacement--; |
4715 } | 5254 } |
4716 | 5255 |
4717 core.int buildCounterPlacementAssignment = 0; | 5256 core.int buildCounterPlacementAssignment = 0; |
4718 buildPlacementAssignment() { | 5257 buildPlacementAssignment() { |
4719 var o = new api.PlacementAssignment(); | 5258 var o = new api.PlacementAssignment(); |
4720 buildCounterPlacementAssignment++; | 5259 buildCounterPlacementAssignment++; |
4721 if (buildCounterPlacementAssignment < 3) { | 5260 if (buildCounterPlacementAssignment < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
4732 buildCounterPlacementAssignment++; | 5271 buildCounterPlacementAssignment++; |
4733 if (buildCounterPlacementAssignment < 3) { | 5272 if (buildCounterPlacementAssignment < 3) { |
4734 unittest.expect(o.active, unittest.isTrue); | 5273 unittest.expect(o.active, unittest.isTrue); |
4735 unittest.expect(o.placementId, unittest.equals('foo')); | 5274 unittest.expect(o.placementId, unittest.equals('foo')); |
4736 checkDimensionValue(o.placementIdDimensionValue); | 5275 checkDimensionValue(o.placementIdDimensionValue); |
4737 unittest.expect(o.sslRequired, unittest.isTrue); | 5276 unittest.expect(o.sslRequired, unittest.isTrue); |
4738 } | 5277 } |
4739 buildCounterPlacementAssignment--; | 5278 buildCounterPlacementAssignment--; |
4740 } | 5279 } |
4741 | 5280 |
4742 buildUnnamed356() { | 5281 buildUnnamed1151() { |
4743 var o = new core.List<core.String>(); | 5282 var o = new core.List<core.String>(); |
4744 o.add("foo"); | 5283 o.add("foo"); |
4745 o.add("foo"); | 5284 o.add("foo"); |
4746 return o; | 5285 return o; |
4747 } | 5286 } |
4748 | 5287 |
4749 checkUnnamed356(core.List<core.String> o) { | 5288 checkUnnamed1151(core.List<core.String> o) { |
4750 unittest.expect(o, unittest.hasLength(2)); | 5289 unittest.expect(o, unittest.hasLength(2)); |
4751 unittest.expect(o[0], unittest.equals('foo')); | 5290 unittest.expect(o[0], unittest.equals('foo')); |
4752 unittest.expect(o[1], unittest.equals('foo')); | 5291 unittest.expect(o[1], unittest.equals('foo')); |
4753 } | 5292 } |
4754 | 5293 |
4755 core.int buildCounterPlacementGroup = 0; | 5294 core.int buildCounterPlacementGroup = 0; |
4756 buildPlacementGroup() { | 5295 buildPlacementGroup() { |
4757 var o = new api.PlacementGroup(); | 5296 var o = new api.PlacementGroup(); |
4758 buildCounterPlacementGroup++; | 5297 buildCounterPlacementGroup++; |
4759 if (buildCounterPlacementGroup < 3) { | 5298 if (buildCounterPlacementGroup < 3) { |
4760 o.accountId = "foo"; | 5299 o.accountId = "foo"; |
4761 o.advertiserId = "foo"; | 5300 o.advertiserId = "foo"; |
4762 o.advertiserIdDimensionValue = buildDimensionValue(); | 5301 o.advertiserIdDimensionValue = buildDimensionValue(); |
4763 o.archived = true; | 5302 o.archived = true; |
4764 o.campaignId = "foo"; | 5303 o.campaignId = "foo"; |
4765 o.campaignIdDimensionValue = buildDimensionValue(); | 5304 o.campaignIdDimensionValue = buildDimensionValue(); |
4766 o.childPlacementIds = buildUnnamed356(); | 5305 o.childPlacementIds = buildUnnamed1151(); |
4767 o.comment = "foo"; | 5306 o.comment = "foo"; |
4768 o.contentCategoryId = "foo"; | 5307 o.contentCategoryId = "foo"; |
4769 o.createInfo = buildLastModifiedInfo(); | 5308 o.createInfo = buildLastModifiedInfo(); |
4770 o.directorySiteId = "foo"; | 5309 o.directorySiteId = "foo"; |
4771 o.directorySiteIdDimensionValue = buildDimensionValue(); | 5310 o.directorySiteIdDimensionValue = buildDimensionValue(); |
4772 o.externalId = "foo"; | 5311 o.externalId = "foo"; |
4773 o.id = "foo"; | 5312 o.id = "foo"; |
4774 o.idDimensionValue = buildDimensionValue(); | 5313 o.idDimensionValue = buildDimensionValue(); |
4775 o.kind = "foo"; | 5314 o.kind = "foo"; |
4776 o.lastModifiedInfo = buildLastModifiedInfo(); | 5315 o.lastModifiedInfo = buildLastModifiedInfo(); |
(...skipping 14 matching lines...) Expand all Loading... |
4791 | 5330 |
4792 checkPlacementGroup(api.PlacementGroup o) { | 5331 checkPlacementGroup(api.PlacementGroup o) { |
4793 buildCounterPlacementGroup++; | 5332 buildCounterPlacementGroup++; |
4794 if (buildCounterPlacementGroup < 3) { | 5333 if (buildCounterPlacementGroup < 3) { |
4795 unittest.expect(o.accountId, unittest.equals('foo')); | 5334 unittest.expect(o.accountId, unittest.equals('foo')); |
4796 unittest.expect(o.advertiserId, unittest.equals('foo')); | 5335 unittest.expect(o.advertiserId, unittest.equals('foo')); |
4797 checkDimensionValue(o.advertiserIdDimensionValue); | 5336 checkDimensionValue(o.advertiserIdDimensionValue); |
4798 unittest.expect(o.archived, unittest.isTrue); | 5337 unittest.expect(o.archived, unittest.isTrue); |
4799 unittest.expect(o.campaignId, unittest.equals('foo')); | 5338 unittest.expect(o.campaignId, unittest.equals('foo')); |
4800 checkDimensionValue(o.campaignIdDimensionValue); | 5339 checkDimensionValue(o.campaignIdDimensionValue); |
4801 checkUnnamed356(o.childPlacementIds); | 5340 checkUnnamed1151(o.childPlacementIds); |
4802 unittest.expect(o.comment, unittest.equals('foo')); | 5341 unittest.expect(o.comment, unittest.equals('foo')); |
4803 unittest.expect(o.contentCategoryId, unittest.equals('foo')); | 5342 unittest.expect(o.contentCategoryId, unittest.equals('foo')); |
4804 checkLastModifiedInfo(o.createInfo); | 5343 checkLastModifiedInfo(o.createInfo); |
4805 unittest.expect(o.directorySiteId, unittest.equals('foo')); | 5344 unittest.expect(o.directorySiteId, unittest.equals('foo')); |
4806 checkDimensionValue(o.directorySiteIdDimensionValue); | 5345 checkDimensionValue(o.directorySiteIdDimensionValue); |
4807 unittest.expect(o.externalId, unittest.equals('foo')); | 5346 unittest.expect(o.externalId, unittest.equals('foo')); |
4808 unittest.expect(o.id, unittest.equals('foo')); | 5347 unittest.expect(o.id, unittest.equals('foo')); |
4809 checkDimensionValue(o.idDimensionValue); | 5348 checkDimensionValue(o.idDimensionValue); |
4810 unittest.expect(o.kind, unittest.equals('foo')); | 5349 unittest.expect(o.kind, unittest.equals('foo')); |
4811 checkLastModifiedInfo(o.lastModifiedInfo); | 5350 checkLastModifiedInfo(o.lastModifiedInfo); |
4812 unittest.expect(o.name, unittest.equals('foo')); | 5351 unittest.expect(o.name, unittest.equals('foo')); |
4813 unittest.expect(o.placementGroupType, unittest.equals('foo')); | 5352 unittest.expect(o.placementGroupType, unittest.equals('foo')); |
4814 unittest.expect(o.placementStrategyId, unittest.equals('foo')); | 5353 unittest.expect(o.placementStrategyId, unittest.equals('foo')); |
4815 checkPricingSchedule(o.pricingSchedule); | 5354 checkPricingSchedule(o.pricingSchedule); |
4816 unittest.expect(o.primaryPlacementId, unittest.equals('foo')); | 5355 unittest.expect(o.primaryPlacementId, unittest.equals('foo')); |
4817 checkDimensionValue(o.primaryPlacementIdDimensionValue); | 5356 checkDimensionValue(o.primaryPlacementIdDimensionValue); |
4818 checkProgrammaticSetting(o.programmaticSetting); | 5357 checkProgrammaticSetting(o.programmaticSetting); |
4819 unittest.expect(o.siteId, unittest.equals('foo')); | 5358 unittest.expect(o.siteId, unittest.equals('foo')); |
4820 checkDimensionValue(o.siteIdDimensionValue); | 5359 checkDimensionValue(o.siteIdDimensionValue); |
4821 unittest.expect(o.subaccountId, unittest.equals('foo')); | 5360 unittest.expect(o.subaccountId, unittest.equals('foo')); |
4822 } | 5361 } |
4823 buildCounterPlacementGroup--; | 5362 buildCounterPlacementGroup--; |
4824 } | 5363 } |
4825 | 5364 |
4826 buildUnnamed357() { | 5365 buildUnnamed1152() { |
4827 var o = new core.List<api.PlacementGroup>(); | 5366 var o = new core.List<api.PlacementGroup>(); |
4828 o.add(buildPlacementGroup()); | 5367 o.add(buildPlacementGroup()); |
4829 o.add(buildPlacementGroup()); | 5368 o.add(buildPlacementGroup()); |
4830 return o; | 5369 return o; |
4831 } | 5370 } |
4832 | 5371 |
4833 checkUnnamed357(core.List<api.PlacementGroup> o) { | 5372 checkUnnamed1152(core.List<api.PlacementGroup> o) { |
4834 unittest.expect(o, unittest.hasLength(2)); | 5373 unittest.expect(o, unittest.hasLength(2)); |
4835 checkPlacementGroup(o[0]); | 5374 checkPlacementGroup(o[0]); |
4836 checkPlacementGroup(o[1]); | 5375 checkPlacementGroup(o[1]); |
4837 } | 5376 } |
4838 | 5377 |
4839 core.int buildCounterPlacementGroupsListResponse = 0; | 5378 core.int buildCounterPlacementGroupsListResponse = 0; |
4840 buildPlacementGroupsListResponse() { | 5379 buildPlacementGroupsListResponse() { |
4841 var o = new api.PlacementGroupsListResponse(); | 5380 var o = new api.PlacementGroupsListResponse(); |
4842 buildCounterPlacementGroupsListResponse++; | 5381 buildCounterPlacementGroupsListResponse++; |
4843 if (buildCounterPlacementGroupsListResponse < 3) { | 5382 if (buildCounterPlacementGroupsListResponse < 3) { |
4844 o.kind = "foo"; | 5383 o.kind = "foo"; |
4845 o.nextPageToken = "foo"; | 5384 o.nextPageToken = "foo"; |
4846 o.placementGroups = buildUnnamed357(); | 5385 o.placementGroups = buildUnnamed1152(); |
4847 } | 5386 } |
4848 buildCounterPlacementGroupsListResponse--; | 5387 buildCounterPlacementGroupsListResponse--; |
4849 return o; | 5388 return o; |
4850 } | 5389 } |
4851 | 5390 |
4852 checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) { | 5391 checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) { |
4853 buildCounterPlacementGroupsListResponse++; | 5392 buildCounterPlacementGroupsListResponse++; |
4854 if (buildCounterPlacementGroupsListResponse < 3) { | 5393 if (buildCounterPlacementGroupsListResponse < 3) { |
4855 unittest.expect(o.kind, unittest.equals('foo')); | 5394 unittest.expect(o.kind, unittest.equals('foo')); |
4856 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5395 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
4857 checkUnnamed357(o.placementGroups); | 5396 checkUnnamed1152(o.placementGroups); |
4858 } | 5397 } |
4859 buildCounterPlacementGroupsListResponse--; | 5398 buildCounterPlacementGroupsListResponse--; |
4860 } | 5399 } |
4861 | 5400 |
4862 buildUnnamed358() { | 5401 buildUnnamed1153() { |
4863 var o = new core.List<api.PlacementStrategy>(); | 5402 var o = new core.List<api.PlacementStrategy>(); |
4864 o.add(buildPlacementStrategy()); | 5403 o.add(buildPlacementStrategy()); |
4865 o.add(buildPlacementStrategy()); | 5404 o.add(buildPlacementStrategy()); |
4866 return o; | 5405 return o; |
4867 } | 5406 } |
4868 | 5407 |
4869 checkUnnamed358(core.List<api.PlacementStrategy> o) { | 5408 checkUnnamed1153(core.List<api.PlacementStrategy> o) { |
4870 unittest.expect(o, unittest.hasLength(2)); | 5409 unittest.expect(o, unittest.hasLength(2)); |
4871 checkPlacementStrategy(o[0]); | 5410 checkPlacementStrategy(o[0]); |
4872 checkPlacementStrategy(o[1]); | 5411 checkPlacementStrategy(o[1]); |
4873 } | 5412 } |
4874 | 5413 |
4875 core.int buildCounterPlacementStrategiesListResponse = 0; | 5414 core.int buildCounterPlacementStrategiesListResponse = 0; |
4876 buildPlacementStrategiesListResponse() { | 5415 buildPlacementStrategiesListResponse() { |
4877 var o = new api.PlacementStrategiesListResponse(); | 5416 var o = new api.PlacementStrategiesListResponse(); |
4878 buildCounterPlacementStrategiesListResponse++; | 5417 buildCounterPlacementStrategiesListResponse++; |
4879 if (buildCounterPlacementStrategiesListResponse < 3) { | 5418 if (buildCounterPlacementStrategiesListResponse < 3) { |
4880 o.kind = "foo"; | 5419 o.kind = "foo"; |
4881 o.nextPageToken = "foo"; | 5420 o.nextPageToken = "foo"; |
4882 o.placementStrategies = buildUnnamed358(); | 5421 o.placementStrategies = buildUnnamed1153(); |
4883 } | 5422 } |
4884 buildCounterPlacementStrategiesListResponse--; | 5423 buildCounterPlacementStrategiesListResponse--; |
4885 return o; | 5424 return o; |
4886 } | 5425 } |
4887 | 5426 |
4888 checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) { | 5427 checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) { |
4889 buildCounterPlacementStrategiesListResponse++; | 5428 buildCounterPlacementStrategiesListResponse++; |
4890 if (buildCounterPlacementStrategiesListResponse < 3) { | 5429 if (buildCounterPlacementStrategiesListResponse < 3) { |
4891 unittest.expect(o.kind, unittest.equals('foo')); | 5430 unittest.expect(o.kind, unittest.equals('foo')); |
4892 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5431 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
4893 checkUnnamed358(o.placementStrategies); | 5432 checkUnnamed1153(o.placementStrategies); |
4894 } | 5433 } |
4895 buildCounterPlacementStrategiesListResponse--; | 5434 buildCounterPlacementStrategiesListResponse--; |
4896 } | 5435 } |
4897 | 5436 |
4898 core.int buildCounterPlacementStrategy = 0; | 5437 core.int buildCounterPlacementStrategy = 0; |
4899 buildPlacementStrategy() { | 5438 buildPlacementStrategy() { |
4900 var o = new api.PlacementStrategy(); | 5439 var o = new api.PlacementStrategy(); |
4901 buildCounterPlacementStrategy++; | 5440 buildCounterPlacementStrategy++; |
4902 if (buildCounterPlacementStrategy < 3) { | 5441 if (buildCounterPlacementStrategy < 3) { |
4903 o.accountId = "foo"; | 5442 o.accountId = "foo"; |
4904 o.id = "foo"; | 5443 o.id = "foo"; |
4905 o.kind = "foo"; | 5444 o.kind = "foo"; |
4906 o.name = "foo"; | 5445 o.name = "foo"; |
4907 } | 5446 } |
4908 buildCounterPlacementStrategy--; | 5447 buildCounterPlacementStrategy--; |
4909 return o; | 5448 return o; |
4910 } | 5449 } |
4911 | 5450 |
4912 checkPlacementStrategy(api.PlacementStrategy o) { | 5451 checkPlacementStrategy(api.PlacementStrategy o) { |
4913 buildCounterPlacementStrategy++; | 5452 buildCounterPlacementStrategy++; |
4914 if (buildCounterPlacementStrategy < 3) { | 5453 if (buildCounterPlacementStrategy < 3) { |
4915 unittest.expect(o.accountId, unittest.equals('foo')); | 5454 unittest.expect(o.accountId, unittest.equals('foo')); |
4916 unittest.expect(o.id, unittest.equals('foo')); | 5455 unittest.expect(o.id, unittest.equals('foo')); |
4917 unittest.expect(o.kind, unittest.equals('foo')); | 5456 unittest.expect(o.kind, unittest.equals('foo')); |
4918 unittest.expect(o.name, unittest.equals('foo')); | 5457 unittest.expect(o.name, unittest.equals('foo')); |
4919 } | 5458 } |
4920 buildCounterPlacementStrategy--; | 5459 buildCounterPlacementStrategy--; |
4921 } | 5460 } |
4922 | 5461 |
4923 buildUnnamed359() { | 5462 buildUnnamed1154() { |
4924 var o = new core.List<api.TagData>(); | 5463 var o = new core.List<api.TagData>(); |
4925 o.add(buildTagData()); | 5464 o.add(buildTagData()); |
4926 o.add(buildTagData()); | 5465 o.add(buildTagData()); |
4927 return o; | 5466 return o; |
4928 } | 5467 } |
4929 | 5468 |
4930 checkUnnamed359(core.List<api.TagData> o) { | 5469 checkUnnamed1154(core.List<api.TagData> o) { |
4931 unittest.expect(o, unittest.hasLength(2)); | 5470 unittest.expect(o, unittest.hasLength(2)); |
4932 checkTagData(o[0]); | 5471 checkTagData(o[0]); |
4933 checkTagData(o[1]); | 5472 checkTagData(o[1]); |
4934 } | 5473 } |
4935 | 5474 |
4936 core.int buildCounterPlacementTag = 0; | 5475 core.int buildCounterPlacementTag = 0; |
4937 buildPlacementTag() { | 5476 buildPlacementTag() { |
4938 var o = new api.PlacementTag(); | 5477 var o = new api.PlacementTag(); |
4939 buildCounterPlacementTag++; | 5478 buildCounterPlacementTag++; |
4940 if (buildCounterPlacementTag < 3) { | 5479 if (buildCounterPlacementTag < 3) { |
4941 o.placementId = "foo"; | 5480 o.placementId = "foo"; |
4942 o.tagDatas = buildUnnamed359(); | 5481 o.tagDatas = buildUnnamed1154(); |
4943 } | 5482 } |
4944 buildCounterPlacementTag--; | 5483 buildCounterPlacementTag--; |
4945 return o; | 5484 return o; |
4946 } | 5485 } |
4947 | 5486 |
4948 checkPlacementTag(api.PlacementTag o) { | 5487 checkPlacementTag(api.PlacementTag o) { |
4949 buildCounterPlacementTag++; | 5488 buildCounterPlacementTag++; |
4950 if (buildCounterPlacementTag < 3) { | 5489 if (buildCounterPlacementTag < 3) { |
4951 unittest.expect(o.placementId, unittest.equals('foo')); | 5490 unittest.expect(o.placementId, unittest.equals('foo')); |
4952 checkUnnamed359(o.tagDatas); | 5491 checkUnnamed1154(o.tagDatas); |
4953 } | 5492 } |
4954 buildCounterPlacementTag--; | 5493 buildCounterPlacementTag--; |
4955 } | 5494 } |
4956 | 5495 |
4957 buildUnnamed360() { | 5496 buildUnnamed1155() { |
4958 var o = new core.List<api.PlacementTag>(); | 5497 var o = new core.List<api.PlacementTag>(); |
4959 o.add(buildPlacementTag()); | 5498 o.add(buildPlacementTag()); |
4960 o.add(buildPlacementTag()); | 5499 o.add(buildPlacementTag()); |
4961 return o; | 5500 return o; |
4962 } | 5501 } |
4963 | 5502 |
4964 checkUnnamed360(core.List<api.PlacementTag> o) { | 5503 checkUnnamed1155(core.List<api.PlacementTag> o) { |
4965 unittest.expect(o, unittest.hasLength(2)); | 5504 unittest.expect(o, unittest.hasLength(2)); |
4966 checkPlacementTag(o[0]); | 5505 checkPlacementTag(o[0]); |
4967 checkPlacementTag(o[1]); | 5506 checkPlacementTag(o[1]); |
4968 } | 5507 } |
4969 | 5508 |
4970 core.int buildCounterPlacementsGenerateTagsResponse = 0; | 5509 core.int buildCounterPlacementsGenerateTagsResponse = 0; |
4971 buildPlacementsGenerateTagsResponse() { | 5510 buildPlacementsGenerateTagsResponse() { |
4972 var o = new api.PlacementsGenerateTagsResponse(); | 5511 var o = new api.PlacementsGenerateTagsResponse(); |
4973 buildCounterPlacementsGenerateTagsResponse++; | 5512 buildCounterPlacementsGenerateTagsResponse++; |
4974 if (buildCounterPlacementsGenerateTagsResponse < 3) { | 5513 if (buildCounterPlacementsGenerateTagsResponse < 3) { |
4975 o.kind = "foo"; | 5514 o.kind = "foo"; |
4976 o.placementTags = buildUnnamed360(); | 5515 o.placementTags = buildUnnamed1155(); |
4977 } | 5516 } |
4978 buildCounterPlacementsGenerateTagsResponse--; | 5517 buildCounterPlacementsGenerateTagsResponse--; |
4979 return o; | 5518 return o; |
4980 } | 5519 } |
4981 | 5520 |
4982 checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) { | 5521 checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) { |
4983 buildCounterPlacementsGenerateTagsResponse++; | 5522 buildCounterPlacementsGenerateTagsResponse++; |
4984 if (buildCounterPlacementsGenerateTagsResponse < 3) { | 5523 if (buildCounterPlacementsGenerateTagsResponse < 3) { |
4985 unittest.expect(o.kind, unittest.equals('foo')); | 5524 unittest.expect(o.kind, unittest.equals('foo')); |
4986 checkUnnamed360(o.placementTags); | 5525 checkUnnamed1155(o.placementTags); |
4987 } | 5526 } |
4988 buildCounterPlacementsGenerateTagsResponse--; | 5527 buildCounterPlacementsGenerateTagsResponse--; |
4989 } | 5528 } |
4990 | 5529 |
4991 buildUnnamed361() { | 5530 buildUnnamed1156() { |
4992 var o = new core.List<api.Placement>(); | 5531 var o = new core.List<api.Placement>(); |
4993 o.add(buildPlacement()); | 5532 o.add(buildPlacement()); |
4994 o.add(buildPlacement()); | 5533 o.add(buildPlacement()); |
4995 return o; | 5534 return o; |
4996 } | 5535 } |
4997 | 5536 |
4998 checkUnnamed361(core.List<api.Placement> o) { | 5537 checkUnnamed1156(core.List<api.Placement> o) { |
4999 unittest.expect(o, unittest.hasLength(2)); | 5538 unittest.expect(o, unittest.hasLength(2)); |
5000 checkPlacement(o[0]); | 5539 checkPlacement(o[0]); |
5001 checkPlacement(o[1]); | 5540 checkPlacement(o[1]); |
5002 } | 5541 } |
5003 | 5542 |
5004 core.int buildCounterPlacementsListResponse = 0; | 5543 core.int buildCounterPlacementsListResponse = 0; |
5005 buildPlacementsListResponse() { | 5544 buildPlacementsListResponse() { |
5006 var o = new api.PlacementsListResponse(); | 5545 var o = new api.PlacementsListResponse(); |
5007 buildCounterPlacementsListResponse++; | 5546 buildCounterPlacementsListResponse++; |
5008 if (buildCounterPlacementsListResponse < 3) { | 5547 if (buildCounterPlacementsListResponse < 3) { |
5009 o.kind = "foo"; | 5548 o.kind = "foo"; |
5010 o.nextPageToken = "foo"; | 5549 o.nextPageToken = "foo"; |
5011 o.placements = buildUnnamed361(); | 5550 o.placements = buildUnnamed1156(); |
5012 } | 5551 } |
5013 buildCounterPlacementsListResponse--; | 5552 buildCounterPlacementsListResponse--; |
5014 return o; | 5553 return o; |
5015 } | 5554 } |
5016 | 5555 |
5017 checkPlacementsListResponse(api.PlacementsListResponse o) { | 5556 checkPlacementsListResponse(api.PlacementsListResponse o) { |
5018 buildCounterPlacementsListResponse++; | 5557 buildCounterPlacementsListResponse++; |
5019 if (buildCounterPlacementsListResponse < 3) { | 5558 if (buildCounterPlacementsListResponse < 3) { |
5020 unittest.expect(o.kind, unittest.equals('foo')); | 5559 unittest.expect(o.kind, unittest.equals('foo')); |
5021 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5560 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
5022 checkUnnamed361(o.placements); | 5561 checkUnnamed1156(o.placements); |
5023 } | 5562 } |
5024 buildCounterPlacementsListResponse--; | 5563 buildCounterPlacementsListResponse--; |
5025 } | 5564 } |
5026 | 5565 |
5027 core.int buildCounterPlatformType = 0; | 5566 core.int buildCounterPlatformType = 0; |
5028 buildPlatformType() { | 5567 buildPlatformType() { |
5029 var o = new api.PlatformType(); | 5568 var o = new api.PlatformType(); |
5030 buildCounterPlatformType++; | 5569 buildCounterPlatformType++; |
5031 if (buildCounterPlatformType < 3) { | 5570 if (buildCounterPlatformType < 3) { |
5032 o.id = "foo"; | 5571 o.id = "foo"; |
5033 o.kind = "foo"; | 5572 o.kind = "foo"; |
5034 o.name = "foo"; | 5573 o.name = "foo"; |
5035 } | 5574 } |
5036 buildCounterPlatformType--; | 5575 buildCounterPlatformType--; |
5037 return o; | 5576 return o; |
5038 } | 5577 } |
5039 | 5578 |
5040 checkPlatformType(api.PlatformType o) { | 5579 checkPlatformType(api.PlatformType o) { |
5041 buildCounterPlatformType++; | 5580 buildCounterPlatformType++; |
5042 if (buildCounterPlatformType < 3) { | 5581 if (buildCounterPlatformType < 3) { |
5043 unittest.expect(o.id, unittest.equals('foo')); | 5582 unittest.expect(o.id, unittest.equals('foo')); |
5044 unittest.expect(o.kind, unittest.equals('foo')); | 5583 unittest.expect(o.kind, unittest.equals('foo')); |
5045 unittest.expect(o.name, unittest.equals('foo')); | 5584 unittest.expect(o.name, unittest.equals('foo')); |
5046 } | 5585 } |
5047 buildCounterPlatformType--; | 5586 buildCounterPlatformType--; |
5048 } | 5587 } |
5049 | 5588 |
5050 buildUnnamed362() { | 5589 buildUnnamed1157() { |
5051 var o = new core.List<api.PlatformType>(); | 5590 var o = new core.List<api.PlatformType>(); |
5052 o.add(buildPlatformType()); | 5591 o.add(buildPlatformType()); |
5053 o.add(buildPlatformType()); | 5592 o.add(buildPlatformType()); |
5054 return o; | 5593 return o; |
5055 } | 5594 } |
5056 | 5595 |
5057 checkUnnamed362(core.List<api.PlatformType> o) { | 5596 checkUnnamed1157(core.List<api.PlatformType> o) { |
5058 unittest.expect(o, unittest.hasLength(2)); | 5597 unittest.expect(o, unittest.hasLength(2)); |
5059 checkPlatformType(o[0]); | 5598 checkPlatformType(o[0]); |
5060 checkPlatformType(o[1]); | 5599 checkPlatformType(o[1]); |
5061 } | 5600 } |
5062 | 5601 |
5063 core.int buildCounterPlatformTypesListResponse = 0; | 5602 core.int buildCounterPlatformTypesListResponse = 0; |
5064 buildPlatformTypesListResponse() { | 5603 buildPlatformTypesListResponse() { |
5065 var o = new api.PlatformTypesListResponse(); | 5604 var o = new api.PlatformTypesListResponse(); |
5066 buildCounterPlatformTypesListResponse++; | 5605 buildCounterPlatformTypesListResponse++; |
5067 if (buildCounterPlatformTypesListResponse < 3) { | 5606 if (buildCounterPlatformTypesListResponse < 3) { |
5068 o.kind = "foo"; | 5607 o.kind = "foo"; |
5069 o.platformTypes = buildUnnamed362(); | 5608 o.platformTypes = buildUnnamed1157(); |
5070 } | 5609 } |
5071 buildCounterPlatformTypesListResponse--; | 5610 buildCounterPlatformTypesListResponse--; |
5072 return o; | 5611 return o; |
5073 } | 5612 } |
5074 | 5613 |
5075 checkPlatformTypesListResponse(api.PlatformTypesListResponse o) { | 5614 checkPlatformTypesListResponse(api.PlatformTypesListResponse o) { |
5076 buildCounterPlatformTypesListResponse++; | 5615 buildCounterPlatformTypesListResponse++; |
5077 if (buildCounterPlatformTypesListResponse < 3) { | 5616 if (buildCounterPlatformTypesListResponse < 3) { |
5078 unittest.expect(o.kind, unittest.equals('foo')); | 5617 unittest.expect(o.kind, unittest.equals('foo')); |
5079 checkUnnamed362(o.platformTypes); | 5618 checkUnnamed1157(o.platformTypes); |
5080 } | 5619 } |
5081 buildCounterPlatformTypesListResponse--; | 5620 buildCounterPlatformTypesListResponse--; |
5082 } | 5621 } |
5083 | 5622 |
5084 core.int buildCounterPopupWindowProperties = 0; | 5623 core.int buildCounterPopupWindowProperties = 0; |
5085 buildPopupWindowProperties() { | 5624 buildPopupWindowProperties() { |
5086 var o = new api.PopupWindowProperties(); | 5625 var o = new api.PopupWindowProperties(); |
5087 buildCounterPopupWindowProperties++; | 5626 buildCounterPopupWindowProperties++; |
5088 if (buildCounterPopupWindowProperties < 3) { | 5627 if (buildCounterPopupWindowProperties < 3) { |
5089 o.dimension = buildSize(); | 5628 o.dimension = buildSize(); |
(...skipping 24 matching lines...) Expand all Loading... |
5114 unittest.expect(o.title, unittest.equals('foo')); | 5653 unittest.expect(o.title, unittest.equals('foo')); |
5115 } | 5654 } |
5116 buildCounterPopupWindowProperties--; | 5655 buildCounterPopupWindowProperties--; |
5117 } | 5656 } |
5118 | 5657 |
5119 core.int buildCounterPostalCode = 0; | 5658 core.int buildCounterPostalCode = 0; |
5120 buildPostalCode() { | 5659 buildPostalCode() { |
5121 var o = new api.PostalCode(); | 5660 var o = new api.PostalCode(); |
5122 buildCounterPostalCode++; | 5661 buildCounterPostalCode++; |
5123 if (buildCounterPostalCode < 3) { | 5662 if (buildCounterPostalCode < 3) { |
| 5663 o.code = "foo"; |
5124 o.countryCode = "foo"; | 5664 o.countryCode = "foo"; |
5125 o.countryDartId = "foo"; | 5665 o.countryDartId = "foo"; |
5126 o.id = "foo"; | 5666 o.id = "foo"; |
5127 o.kind = "foo"; | 5667 o.kind = "foo"; |
5128 } | 5668 } |
5129 buildCounterPostalCode--; | 5669 buildCounterPostalCode--; |
5130 return o; | 5670 return o; |
5131 } | 5671 } |
5132 | 5672 |
5133 checkPostalCode(api.PostalCode o) { | 5673 checkPostalCode(api.PostalCode o) { |
5134 buildCounterPostalCode++; | 5674 buildCounterPostalCode++; |
5135 if (buildCounterPostalCode < 3) { | 5675 if (buildCounterPostalCode < 3) { |
| 5676 unittest.expect(o.code, unittest.equals('foo')); |
5136 unittest.expect(o.countryCode, unittest.equals('foo')); | 5677 unittest.expect(o.countryCode, unittest.equals('foo')); |
5137 unittest.expect(o.countryDartId, unittest.equals('foo')); | 5678 unittest.expect(o.countryDartId, unittest.equals('foo')); |
5138 unittest.expect(o.id, unittest.equals('foo')); | 5679 unittest.expect(o.id, unittest.equals('foo')); |
5139 unittest.expect(o.kind, unittest.equals('foo')); | 5680 unittest.expect(o.kind, unittest.equals('foo')); |
5140 } | 5681 } |
5141 buildCounterPostalCode--; | 5682 buildCounterPostalCode--; |
5142 } | 5683 } |
5143 | 5684 |
5144 buildUnnamed363() { | 5685 buildUnnamed1158() { |
5145 var o = new core.List<api.PostalCode>(); | 5686 var o = new core.List<api.PostalCode>(); |
5146 o.add(buildPostalCode()); | 5687 o.add(buildPostalCode()); |
5147 o.add(buildPostalCode()); | 5688 o.add(buildPostalCode()); |
5148 return o; | 5689 return o; |
5149 } | 5690 } |
5150 | 5691 |
5151 checkUnnamed363(core.List<api.PostalCode> o) { | 5692 checkUnnamed1158(core.List<api.PostalCode> o) { |
5152 unittest.expect(o, unittest.hasLength(2)); | 5693 unittest.expect(o, unittest.hasLength(2)); |
5153 checkPostalCode(o[0]); | 5694 checkPostalCode(o[0]); |
5154 checkPostalCode(o[1]); | 5695 checkPostalCode(o[1]); |
5155 } | 5696 } |
5156 | 5697 |
5157 core.int buildCounterPostalCodesListResponse = 0; | 5698 core.int buildCounterPostalCodesListResponse = 0; |
5158 buildPostalCodesListResponse() { | 5699 buildPostalCodesListResponse() { |
5159 var o = new api.PostalCodesListResponse(); | 5700 var o = new api.PostalCodesListResponse(); |
5160 buildCounterPostalCodesListResponse++; | 5701 buildCounterPostalCodesListResponse++; |
5161 if (buildCounterPostalCodesListResponse < 3) { | 5702 if (buildCounterPostalCodesListResponse < 3) { |
5162 o.kind = "foo"; | 5703 o.kind = "foo"; |
5163 o.postalCodes = buildUnnamed363(); | 5704 o.postalCodes = buildUnnamed1158(); |
5164 } | 5705 } |
5165 buildCounterPostalCodesListResponse--; | 5706 buildCounterPostalCodesListResponse--; |
5166 return o; | 5707 return o; |
5167 } | 5708 } |
5168 | 5709 |
5169 checkPostalCodesListResponse(api.PostalCodesListResponse o) { | 5710 checkPostalCodesListResponse(api.PostalCodesListResponse o) { |
5170 buildCounterPostalCodesListResponse++; | 5711 buildCounterPostalCodesListResponse++; |
5171 if (buildCounterPostalCodesListResponse < 3) { | 5712 if (buildCounterPostalCodesListResponse < 3) { |
5172 unittest.expect(o.kind, unittest.equals('foo')); | 5713 unittest.expect(o.kind, unittest.equals('foo')); |
5173 checkUnnamed363(o.postalCodes); | 5714 checkUnnamed1158(o.postalCodes); |
5174 } | 5715 } |
5175 buildCounterPostalCodesListResponse--; | 5716 buildCounterPostalCodesListResponse--; |
5176 } | 5717 } |
5177 | 5718 |
5178 buildUnnamed364() { | 5719 buildUnnamed1159() { |
| 5720 var o = new core.List<api.Flight>(); |
| 5721 o.add(buildFlight()); |
| 5722 o.add(buildFlight()); |
| 5723 return o; |
| 5724 } |
| 5725 |
| 5726 checkUnnamed1159(core.List<api.Flight> o) { |
| 5727 unittest.expect(o, unittest.hasLength(2)); |
| 5728 checkFlight(o[0]); |
| 5729 checkFlight(o[1]); |
| 5730 } |
| 5731 |
| 5732 core.int buildCounterPricing = 0; |
| 5733 buildPricing() { |
| 5734 var o = new api.Pricing(); |
| 5735 buildCounterPricing++; |
| 5736 if (buildCounterPricing < 3) { |
| 5737 o.capCostType = "foo"; |
| 5738 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5739 o.flights = buildUnnamed1159(); |
| 5740 o.groupType = "foo"; |
| 5741 o.pricingType = "foo"; |
| 5742 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5743 } |
| 5744 buildCounterPricing--; |
| 5745 return o; |
| 5746 } |
| 5747 |
| 5748 checkPricing(api.Pricing o) { |
| 5749 buildCounterPricing++; |
| 5750 if (buildCounterPricing < 3) { |
| 5751 unittest.expect(o.capCostType, unittest.equals('foo')); |
| 5752 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 5753 checkUnnamed1159(o.flights); |
| 5754 unittest.expect(o.groupType, unittest.equals('foo')); |
| 5755 unittest.expect(o.pricingType, unittest.equals('foo')); |
| 5756 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 5757 } |
| 5758 buildCounterPricing--; |
| 5759 } |
| 5760 |
| 5761 buildUnnamed1160() { |
5179 var o = new core.List<api.PricingSchedulePricingPeriod>(); | 5762 var o = new core.List<api.PricingSchedulePricingPeriod>(); |
5180 o.add(buildPricingSchedulePricingPeriod()); | 5763 o.add(buildPricingSchedulePricingPeriod()); |
5181 o.add(buildPricingSchedulePricingPeriod()); | 5764 o.add(buildPricingSchedulePricingPeriod()); |
5182 return o; | 5765 return o; |
5183 } | 5766 } |
5184 | 5767 |
5185 checkUnnamed364(core.List<api.PricingSchedulePricingPeriod> o) { | 5768 checkUnnamed1160(core.List<api.PricingSchedulePricingPeriod> o) { |
5186 unittest.expect(o, unittest.hasLength(2)); | 5769 unittest.expect(o, unittest.hasLength(2)); |
5187 checkPricingSchedulePricingPeriod(o[0]); | 5770 checkPricingSchedulePricingPeriod(o[0]); |
5188 checkPricingSchedulePricingPeriod(o[1]); | 5771 checkPricingSchedulePricingPeriod(o[1]); |
5189 } | 5772 } |
5190 | 5773 |
5191 core.int buildCounterPricingSchedule = 0; | 5774 core.int buildCounterPricingSchedule = 0; |
5192 buildPricingSchedule() { | 5775 buildPricingSchedule() { |
5193 var o = new api.PricingSchedule(); | 5776 var o = new api.PricingSchedule(); |
5194 buildCounterPricingSchedule++; | 5777 buildCounterPricingSchedule++; |
5195 if (buildCounterPricingSchedule < 3) { | 5778 if (buildCounterPricingSchedule < 3) { |
5196 o.capCostOption = "foo"; | 5779 o.capCostOption = "foo"; |
5197 o.disregardOverdelivery = true; | 5780 o.disregardOverdelivery = true; |
5198 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 5781 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
5199 o.flighted = true; | 5782 o.flighted = true; |
5200 o.floodlightActivityId = "foo"; | 5783 o.floodlightActivityId = "foo"; |
5201 o.pricingPeriods = buildUnnamed364(); | 5784 o.pricingPeriods = buildUnnamed1160(); |
5202 o.pricingType = "foo"; | 5785 o.pricingType = "foo"; |
5203 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 5786 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
5204 o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 5787 o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
5205 } | 5788 } |
5206 buildCounterPricingSchedule--; | 5789 buildCounterPricingSchedule--; |
5207 return o; | 5790 return o; |
5208 } | 5791 } |
5209 | 5792 |
5210 checkPricingSchedule(api.PricingSchedule o) { | 5793 checkPricingSchedule(api.PricingSchedule o) { |
5211 buildCounterPricingSchedule++; | 5794 buildCounterPricingSchedule++; |
5212 if (buildCounterPricingSchedule < 3) { | 5795 if (buildCounterPricingSchedule < 3) { |
5213 unittest.expect(o.capCostOption, unittest.equals('foo')); | 5796 unittest.expect(o.capCostOption, unittest.equals('foo')); |
5214 unittest.expect(o.disregardOverdelivery, unittest.isTrue); | 5797 unittest.expect(o.disregardOverdelivery, unittest.isTrue); |
5215 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 5798 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
5216 unittest.expect(o.flighted, unittest.isTrue); | 5799 unittest.expect(o.flighted, unittest.isTrue); |
5217 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); | 5800 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); |
5218 checkUnnamed364(o.pricingPeriods); | 5801 checkUnnamed1160(o.pricingPeriods); |
5219 unittest.expect(o.pricingType, unittest.equals('foo')); | 5802 unittest.expect(o.pricingType, unittest.equals('foo')); |
5220 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 5803 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"))); | 5804 unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("200
2-02-27T00:00:00"))); |
5222 } | 5805 } |
5223 buildCounterPricingSchedule--; | 5806 buildCounterPricingSchedule--; |
5224 } | 5807 } |
5225 | 5808 |
5226 core.int buildCounterPricingSchedulePricingPeriod = 0; | 5809 core.int buildCounterPricingSchedulePricingPeriod = 0; |
5227 buildPricingSchedulePricingPeriod() { | 5810 buildPricingSchedulePricingPeriod() { |
5228 var o = new api.PricingSchedulePricingPeriod(); | 5811 var o = new api.PricingSchedulePricingPeriod(); |
(...skipping 14 matching lines...) Expand all Loading... |
5243 if (buildCounterPricingSchedulePricingPeriod < 3) { | 5826 if (buildCounterPricingSchedulePricingPeriod < 3) { |
5244 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); | 5827 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
5245 unittest.expect(o.pricingComment, unittest.equals('foo')); | 5828 unittest.expect(o.pricingComment, unittest.equals('foo')); |
5246 unittest.expect(o.rateOrCostNanos, unittest.equals('foo')); | 5829 unittest.expect(o.rateOrCostNanos, unittest.equals('foo')); |
5247 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 5830 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
5248 unittest.expect(o.units, unittest.equals('foo')); | 5831 unittest.expect(o.units, unittest.equals('foo')); |
5249 } | 5832 } |
5250 buildCounterPricingSchedulePricingPeriod--; | 5833 buildCounterPricingSchedulePricingPeriod--; |
5251 } | 5834 } |
5252 | 5835 |
5253 buildUnnamed365() { | 5836 buildUnnamed1161() { |
5254 var o = new core.List<core.String>(); | 5837 var o = new core.List<core.String>(); |
5255 o.add("foo"); | 5838 o.add("foo"); |
5256 o.add("foo"); | 5839 o.add("foo"); |
5257 return o; | 5840 return o; |
5258 } | 5841 } |
5259 | 5842 |
5260 checkUnnamed365(core.List<core.String> o) { | 5843 checkUnnamed1161(core.List<core.String> o) { |
5261 unittest.expect(o, unittest.hasLength(2)); | 5844 unittest.expect(o, unittest.hasLength(2)); |
5262 unittest.expect(o[0], unittest.equals('foo')); | 5845 unittest.expect(o[0], unittest.equals('foo')); |
5263 unittest.expect(o[1], unittest.equals('foo')); | 5846 unittest.expect(o[1], unittest.equals('foo')); |
5264 } | 5847 } |
5265 | 5848 |
5266 buildUnnamed366() { | 5849 buildUnnamed1162() { |
5267 var o = new core.List<core.String>(); | 5850 var o = new core.List<core.String>(); |
5268 o.add("foo"); | 5851 o.add("foo"); |
5269 o.add("foo"); | 5852 o.add("foo"); |
5270 return o; | 5853 return o; |
5271 } | 5854 } |
5272 | 5855 |
5273 checkUnnamed366(core.List<core.String> o) { | 5856 checkUnnamed1162(core.List<core.String> o) { |
5274 unittest.expect(o, unittest.hasLength(2)); | 5857 unittest.expect(o, unittest.hasLength(2)); |
5275 unittest.expect(o[0], unittest.equals('foo')); | 5858 unittest.expect(o[0], unittest.equals('foo')); |
5276 unittest.expect(o[1], unittest.equals('foo')); | 5859 unittest.expect(o[1], unittest.equals('foo')); |
5277 } | 5860 } |
5278 | 5861 |
5279 core.int buildCounterProgrammaticSetting = 0; | 5862 core.int buildCounterProgrammaticSetting = 0; |
5280 buildProgrammaticSetting() { | 5863 buildProgrammaticSetting() { |
5281 var o = new api.ProgrammaticSetting(); | 5864 var o = new api.ProgrammaticSetting(); |
5282 buildCounterProgrammaticSetting++; | 5865 buildCounterProgrammaticSetting++; |
5283 if (buildCounterProgrammaticSetting < 3) { | 5866 if (buildCounterProgrammaticSetting < 3) { |
5284 o.adxDealIds = buildUnnamed365(); | 5867 o.adxDealIds = buildUnnamed1161(); |
5285 o.insertionOrderId = "foo"; | 5868 o.insertionOrderId = "foo"; |
5286 o.insertionOrderIdStatus = true; | 5869 o.insertionOrderIdStatus = true; |
5287 o.mediaCostNanos = "foo"; | 5870 o.mediaCostNanos = "foo"; |
5288 o.programmatic = true; | 5871 o.programmatic = true; |
5289 o.traffickerEmails = buildUnnamed366(); | 5872 o.traffickerEmails = buildUnnamed1162(); |
5290 } | 5873 } |
5291 buildCounterProgrammaticSetting--; | 5874 buildCounterProgrammaticSetting--; |
5292 return o; | 5875 return o; |
5293 } | 5876 } |
5294 | 5877 |
5295 checkProgrammaticSetting(api.ProgrammaticSetting o) { | 5878 checkProgrammaticSetting(api.ProgrammaticSetting o) { |
5296 buildCounterProgrammaticSetting++; | 5879 buildCounterProgrammaticSetting++; |
5297 if (buildCounterProgrammaticSetting < 3) { | 5880 if (buildCounterProgrammaticSetting < 3) { |
5298 checkUnnamed365(o.adxDealIds); | 5881 checkUnnamed1161(o.adxDealIds); |
5299 unittest.expect(o.insertionOrderId, unittest.equals('foo')); | 5882 unittest.expect(o.insertionOrderId, unittest.equals('foo')); |
5300 unittest.expect(o.insertionOrderIdStatus, unittest.isTrue); | 5883 unittest.expect(o.insertionOrderIdStatus, unittest.isTrue); |
5301 unittest.expect(o.mediaCostNanos, unittest.equals('foo')); | 5884 unittest.expect(o.mediaCostNanos, unittest.equals('foo')); |
5302 unittest.expect(o.programmatic, unittest.isTrue); | 5885 unittest.expect(o.programmatic, unittest.isTrue); |
5303 checkUnnamed366(o.traffickerEmails); | 5886 checkUnnamed1162(o.traffickerEmails); |
5304 } | 5887 } |
5305 buildCounterProgrammaticSetting--; | 5888 buildCounterProgrammaticSetting--; |
5306 } | 5889 } |
5307 | 5890 |
5308 buildUnnamed367() { | 5891 core.int buildCounterProject = 0; |
| 5892 buildProject() { |
| 5893 var o = new api.Project(); |
| 5894 buildCounterProject++; |
| 5895 if (buildCounterProject < 3) { |
| 5896 o.accountId = "foo"; |
| 5897 o.advertiserId = "foo"; |
| 5898 o.audienceAgeGroup = "foo"; |
| 5899 o.audienceGender = "foo"; |
| 5900 o.budget = "foo"; |
| 5901 o.clientBillingCode = "foo"; |
| 5902 o.clientName = "foo"; |
| 5903 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5904 o.id = "foo"; |
| 5905 o.kind = "foo"; |
| 5906 o.lastModifiedInfo = buildLastModifiedInfo(); |
| 5907 o.name = "foo"; |
| 5908 o.overview = "foo"; |
| 5909 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 5910 o.subaccountId = "foo"; |
| 5911 o.targetClicks = "foo"; |
| 5912 o.targetConversions = "foo"; |
| 5913 o.targetCpaNanos = "foo"; |
| 5914 o.targetCpcNanos = "foo"; |
| 5915 o.targetCpmNanos = "foo"; |
| 5916 o.targetImpressions = "foo"; |
| 5917 } |
| 5918 buildCounterProject--; |
| 5919 return o; |
| 5920 } |
| 5921 |
| 5922 checkProject(api.Project o) { |
| 5923 buildCounterProject++; |
| 5924 if (buildCounterProject < 3) { |
| 5925 unittest.expect(o.accountId, unittest.equals('foo')); |
| 5926 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 5927 unittest.expect(o.audienceAgeGroup, unittest.equals('foo')); |
| 5928 unittest.expect(o.audienceGender, unittest.equals('foo')); |
| 5929 unittest.expect(o.budget, unittest.equals('foo')); |
| 5930 unittest.expect(o.clientBillingCode, unittest.equals('foo')); |
| 5931 unittest.expect(o.clientName, unittest.equals('foo')); |
| 5932 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0
0:00:00"))); |
| 5933 unittest.expect(o.id, unittest.equals('foo')); |
| 5934 unittest.expect(o.kind, unittest.equals('foo')); |
| 5935 checkLastModifiedInfo(o.lastModifiedInfo); |
| 5936 unittest.expect(o.name, unittest.equals('foo')); |
| 5937 unittest.expect(o.overview, unittest.equals('foo')); |
| 5938 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
| 5939 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 5940 unittest.expect(o.targetClicks, unittest.equals('foo')); |
| 5941 unittest.expect(o.targetConversions, unittest.equals('foo')); |
| 5942 unittest.expect(o.targetCpaNanos, unittest.equals('foo')); |
| 5943 unittest.expect(o.targetCpcNanos, unittest.equals('foo')); |
| 5944 unittest.expect(o.targetCpmNanos, unittest.equals('foo')); |
| 5945 unittest.expect(o.targetImpressions, unittest.equals('foo')); |
| 5946 } |
| 5947 buildCounterProject--; |
| 5948 } |
| 5949 |
| 5950 buildUnnamed1163() { |
| 5951 var o = new core.List<api.Project>(); |
| 5952 o.add(buildProject()); |
| 5953 o.add(buildProject()); |
| 5954 return o; |
| 5955 } |
| 5956 |
| 5957 checkUnnamed1163(core.List<api.Project> o) { |
| 5958 unittest.expect(o, unittest.hasLength(2)); |
| 5959 checkProject(o[0]); |
| 5960 checkProject(o[1]); |
| 5961 } |
| 5962 |
| 5963 core.int buildCounterProjectsListResponse = 0; |
| 5964 buildProjectsListResponse() { |
| 5965 var o = new api.ProjectsListResponse(); |
| 5966 buildCounterProjectsListResponse++; |
| 5967 if (buildCounterProjectsListResponse < 3) { |
| 5968 o.kind = "foo"; |
| 5969 o.nextPageToken = "foo"; |
| 5970 o.projects = buildUnnamed1163(); |
| 5971 } |
| 5972 buildCounterProjectsListResponse--; |
| 5973 return o; |
| 5974 } |
| 5975 |
| 5976 checkProjectsListResponse(api.ProjectsListResponse o) { |
| 5977 buildCounterProjectsListResponse++; |
| 5978 if (buildCounterProjectsListResponse < 3) { |
| 5979 unittest.expect(o.kind, unittest.equals('foo')); |
| 5980 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5981 checkUnnamed1163(o.projects); |
| 5982 } |
| 5983 buildCounterProjectsListResponse--; |
| 5984 } |
| 5985 |
| 5986 buildUnnamed1164() { |
5309 var o = new core.List<api.Dimension>(); | 5987 var o = new core.List<api.Dimension>(); |
5310 o.add(buildDimension()); | 5988 o.add(buildDimension()); |
5311 o.add(buildDimension()); | 5989 o.add(buildDimension()); |
5312 return o; | 5990 return o; |
5313 } | 5991 } |
5314 | 5992 |
5315 checkUnnamed367(core.List<api.Dimension> o) { | 5993 checkUnnamed1164(core.List<api.Dimension> o) { |
5316 unittest.expect(o, unittest.hasLength(2)); | 5994 unittest.expect(o, unittest.hasLength(2)); |
5317 checkDimension(o[0]); | 5995 checkDimension(o[0]); |
5318 checkDimension(o[1]); | 5996 checkDimension(o[1]); |
5319 } | 5997 } |
5320 | 5998 |
5321 buildUnnamed368() { | 5999 buildUnnamed1165() { |
5322 var o = new core.List<api.Dimension>(); | 6000 var o = new core.List<api.Dimension>(); |
5323 o.add(buildDimension()); | 6001 o.add(buildDimension()); |
5324 o.add(buildDimension()); | 6002 o.add(buildDimension()); |
5325 return o; | 6003 return o; |
5326 } | 6004 } |
5327 | 6005 |
5328 checkUnnamed368(core.List<api.Dimension> o) { | 6006 checkUnnamed1165(core.List<api.Dimension> o) { |
5329 unittest.expect(o, unittest.hasLength(2)); | 6007 unittest.expect(o, unittest.hasLength(2)); |
5330 checkDimension(o[0]); | 6008 checkDimension(o[0]); |
5331 checkDimension(o[1]); | 6009 checkDimension(o[1]); |
5332 } | 6010 } |
5333 | 6011 |
5334 buildUnnamed369() { | 6012 buildUnnamed1166() { |
5335 var o = new core.List<api.Metric>(); | 6013 var o = new core.List<api.Metric>(); |
5336 o.add(buildMetric()); | 6014 o.add(buildMetric()); |
5337 o.add(buildMetric()); | 6015 o.add(buildMetric()); |
5338 return o; | 6016 return o; |
5339 } | 6017 } |
5340 | 6018 |
5341 checkUnnamed369(core.List<api.Metric> o) { | 6019 checkUnnamed1166(core.List<api.Metric> o) { |
5342 unittest.expect(o, unittest.hasLength(2)); | 6020 unittest.expect(o, unittest.hasLength(2)); |
5343 checkMetric(o[0]); | 6021 checkMetric(o[0]); |
5344 checkMetric(o[1]); | 6022 checkMetric(o[1]); |
5345 } | 6023 } |
5346 | 6024 |
5347 buildUnnamed370() { | 6025 buildUnnamed1167() { |
5348 var o = new core.List<api.Metric>(); | 6026 var o = new core.List<api.Metric>(); |
5349 o.add(buildMetric()); | 6027 o.add(buildMetric()); |
5350 o.add(buildMetric()); | 6028 o.add(buildMetric()); |
5351 return o; | 6029 return o; |
5352 } | 6030 } |
5353 | 6031 |
5354 checkUnnamed370(core.List<api.Metric> o) { | 6032 checkUnnamed1167(core.List<api.Metric> o) { |
5355 unittest.expect(o, unittest.hasLength(2)); | 6033 unittest.expect(o, unittest.hasLength(2)); |
5356 checkMetric(o[0]); | 6034 checkMetric(o[0]); |
5357 checkMetric(o[1]); | 6035 checkMetric(o[1]); |
5358 } | 6036 } |
5359 | 6037 |
5360 buildUnnamed371() { | 6038 buildUnnamed1168() { |
5361 var o = new core.List<api.Metric>(); | 6039 var o = new core.List<api.Metric>(); |
5362 o.add(buildMetric()); | 6040 o.add(buildMetric()); |
5363 o.add(buildMetric()); | 6041 o.add(buildMetric()); |
5364 return o; | 6042 return o; |
5365 } | 6043 } |
5366 | 6044 |
5367 checkUnnamed371(core.List<api.Metric> o) { | 6045 checkUnnamed1168(core.List<api.Metric> o) { |
5368 unittest.expect(o, unittest.hasLength(2)); | 6046 unittest.expect(o, unittest.hasLength(2)); |
5369 checkMetric(o[0]); | 6047 checkMetric(o[0]); |
5370 checkMetric(o[1]); | 6048 checkMetric(o[1]); |
5371 } | 6049 } |
5372 | 6050 |
5373 core.int buildCounterReachReportCompatibleFields = 0; | 6051 core.int buildCounterReachReportCompatibleFields = 0; |
5374 buildReachReportCompatibleFields() { | 6052 buildReachReportCompatibleFields() { |
5375 var o = new api.ReachReportCompatibleFields(); | 6053 var o = new api.ReachReportCompatibleFields(); |
5376 buildCounterReachReportCompatibleFields++; | 6054 buildCounterReachReportCompatibleFields++; |
5377 if (buildCounterReachReportCompatibleFields < 3) { | 6055 if (buildCounterReachReportCompatibleFields < 3) { |
5378 o.dimensionFilters = buildUnnamed367(); | 6056 o.dimensionFilters = buildUnnamed1164(); |
5379 o.dimensions = buildUnnamed368(); | 6057 o.dimensions = buildUnnamed1165(); |
5380 o.kind = "foo"; | 6058 o.kind = "foo"; |
5381 o.metrics = buildUnnamed369(); | 6059 o.metrics = buildUnnamed1166(); |
5382 o.pivotedActivityMetrics = buildUnnamed370(); | 6060 o.pivotedActivityMetrics = buildUnnamed1167(); |
5383 o.reachByFrequencyMetrics = buildUnnamed371(); | 6061 o.reachByFrequencyMetrics = buildUnnamed1168(); |
5384 } | 6062 } |
5385 buildCounterReachReportCompatibleFields--; | 6063 buildCounterReachReportCompatibleFields--; |
5386 return o; | 6064 return o; |
5387 } | 6065 } |
5388 | 6066 |
5389 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { | 6067 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { |
5390 buildCounterReachReportCompatibleFields++; | 6068 buildCounterReachReportCompatibleFields++; |
5391 if (buildCounterReachReportCompatibleFields < 3) { | 6069 if (buildCounterReachReportCompatibleFields < 3) { |
5392 checkUnnamed367(o.dimensionFilters); | 6070 checkUnnamed1164(o.dimensionFilters); |
5393 checkUnnamed368(o.dimensions); | 6071 checkUnnamed1165(o.dimensions); |
5394 unittest.expect(o.kind, unittest.equals('foo')); | 6072 unittest.expect(o.kind, unittest.equals('foo')); |
5395 checkUnnamed369(o.metrics); | 6073 checkUnnamed1166(o.metrics); |
5396 checkUnnamed370(o.pivotedActivityMetrics); | 6074 checkUnnamed1167(o.pivotedActivityMetrics); |
5397 checkUnnamed371(o.reachByFrequencyMetrics); | 6075 checkUnnamed1168(o.reachByFrequencyMetrics); |
5398 } | 6076 } |
5399 buildCounterReachReportCompatibleFields--; | 6077 buildCounterReachReportCompatibleFields--; |
5400 } | 6078 } |
5401 | 6079 |
5402 core.int buildCounterRecipient = 0; | 6080 core.int buildCounterRecipient = 0; |
5403 buildRecipient() { | 6081 buildRecipient() { |
5404 var o = new api.Recipient(); | 6082 var o = new api.Recipient(); |
5405 buildCounterRecipient++; | 6083 buildCounterRecipient++; |
5406 if (buildCounterRecipient < 3) { | 6084 if (buildCounterRecipient < 3) { |
5407 o.deliveryType = "foo"; | 6085 o.deliveryType = "foo"; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5444 unittest.expect(o.countryCode, unittest.equals('foo')); | 6122 unittest.expect(o.countryCode, unittest.equals('foo')); |
5445 unittest.expect(o.countryDartId, unittest.equals('foo')); | 6123 unittest.expect(o.countryDartId, unittest.equals('foo')); |
5446 unittest.expect(o.dartId, unittest.equals('foo')); | 6124 unittest.expect(o.dartId, unittest.equals('foo')); |
5447 unittest.expect(o.kind, unittest.equals('foo')); | 6125 unittest.expect(o.kind, unittest.equals('foo')); |
5448 unittest.expect(o.name, unittest.equals('foo')); | 6126 unittest.expect(o.name, unittest.equals('foo')); |
5449 unittest.expect(o.regionCode, unittest.equals('foo')); | 6127 unittest.expect(o.regionCode, unittest.equals('foo')); |
5450 } | 6128 } |
5451 buildCounterRegion--; | 6129 buildCounterRegion--; |
5452 } | 6130 } |
5453 | 6131 |
5454 buildUnnamed372() { | 6132 buildUnnamed1169() { |
5455 var o = new core.List<api.Region>(); | 6133 var o = new core.List<api.Region>(); |
5456 o.add(buildRegion()); | 6134 o.add(buildRegion()); |
5457 o.add(buildRegion()); | 6135 o.add(buildRegion()); |
5458 return o; | 6136 return o; |
5459 } | 6137 } |
5460 | 6138 |
5461 checkUnnamed372(core.List<api.Region> o) { | 6139 checkUnnamed1169(core.List<api.Region> o) { |
5462 unittest.expect(o, unittest.hasLength(2)); | 6140 unittest.expect(o, unittest.hasLength(2)); |
5463 checkRegion(o[0]); | 6141 checkRegion(o[0]); |
5464 checkRegion(o[1]); | 6142 checkRegion(o[1]); |
5465 } | 6143 } |
5466 | 6144 |
5467 core.int buildCounterRegionsListResponse = 0; | 6145 core.int buildCounterRegionsListResponse = 0; |
5468 buildRegionsListResponse() { | 6146 buildRegionsListResponse() { |
5469 var o = new api.RegionsListResponse(); | 6147 var o = new api.RegionsListResponse(); |
5470 buildCounterRegionsListResponse++; | 6148 buildCounterRegionsListResponse++; |
5471 if (buildCounterRegionsListResponse < 3) { | 6149 if (buildCounterRegionsListResponse < 3) { |
5472 o.kind = "foo"; | 6150 o.kind = "foo"; |
5473 o.regions = buildUnnamed372(); | 6151 o.regions = buildUnnamed1169(); |
5474 } | 6152 } |
5475 buildCounterRegionsListResponse--; | 6153 buildCounterRegionsListResponse--; |
5476 return o; | 6154 return o; |
5477 } | 6155 } |
5478 | 6156 |
5479 checkRegionsListResponse(api.RegionsListResponse o) { | 6157 checkRegionsListResponse(api.RegionsListResponse o) { |
5480 buildCounterRegionsListResponse++; | 6158 buildCounterRegionsListResponse++; |
5481 if (buildCounterRegionsListResponse < 3) { | 6159 if (buildCounterRegionsListResponse < 3) { |
5482 unittest.expect(o.kind, unittest.equals('foo')); | 6160 unittest.expect(o.kind, unittest.equals('foo')); |
5483 checkUnnamed372(o.regions); | 6161 checkUnnamed1169(o.regions); |
5484 } | 6162 } |
5485 buildCounterRegionsListResponse--; | 6163 buildCounterRegionsListResponse--; |
5486 } | 6164 } |
5487 | 6165 |
5488 buildUnnamed373() { | 6166 core.int buildCounterRemarketingList = 0; |
| 6167 buildRemarketingList() { |
| 6168 var o = new api.RemarketingList(); |
| 6169 buildCounterRemarketingList++; |
| 6170 if (buildCounterRemarketingList < 3) { |
| 6171 o.accountId = "foo"; |
| 6172 o.active = true; |
| 6173 o.advertiserId = "foo"; |
| 6174 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 6175 o.description = "foo"; |
| 6176 o.id = "foo"; |
| 6177 o.kind = "foo"; |
| 6178 o.lifeSpan = "foo"; |
| 6179 o.listPopulationRule = buildListPopulationRule(); |
| 6180 o.listSize = "foo"; |
| 6181 o.listSource = "foo"; |
| 6182 o.name = "foo"; |
| 6183 o.subaccountId = "foo"; |
| 6184 } |
| 6185 buildCounterRemarketingList--; |
| 6186 return o; |
| 6187 } |
| 6188 |
| 6189 checkRemarketingList(api.RemarketingList o) { |
| 6190 buildCounterRemarketingList++; |
| 6191 if (buildCounterRemarketingList < 3) { |
| 6192 unittest.expect(o.accountId, unittest.equals('foo')); |
| 6193 unittest.expect(o.active, unittest.isTrue); |
| 6194 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 6195 checkDimensionValue(o.advertiserIdDimensionValue); |
| 6196 unittest.expect(o.description, unittest.equals('foo')); |
| 6197 unittest.expect(o.id, unittest.equals('foo')); |
| 6198 unittest.expect(o.kind, unittest.equals('foo')); |
| 6199 unittest.expect(o.lifeSpan, unittest.equals('foo')); |
| 6200 checkListPopulationRule(o.listPopulationRule); |
| 6201 unittest.expect(o.listSize, unittest.equals('foo')); |
| 6202 unittest.expect(o.listSource, unittest.equals('foo')); |
| 6203 unittest.expect(o.name, unittest.equals('foo')); |
| 6204 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 6205 } |
| 6206 buildCounterRemarketingList--; |
| 6207 } |
| 6208 |
| 6209 buildUnnamed1170() { |
| 6210 var o = new core.List<core.String>(); |
| 6211 o.add("foo"); |
| 6212 o.add("foo"); |
| 6213 return o; |
| 6214 } |
| 6215 |
| 6216 checkUnnamed1170(core.List<core.String> o) { |
| 6217 unittest.expect(o, unittest.hasLength(2)); |
| 6218 unittest.expect(o[0], unittest.equals('foo')); |
| 6219 unittest.expect(o[1], unittest.equals('foo')); |
| 6220 } |
| 6221 |
| 6222 buildUnnamed1171() { |
| 6223 var o = new core.List<core.String>(); |
| 6224 o.add("foo"); |
| 6225 o.add("foo"); |
| 6226 return o; |
| 6227 } |
| 6228 |
| 6229 checkUnnamed1171(core.List<core.String> o) { |
| 6230 unittest.expect(o, unittest.hasLength(2)); |
| 6231 unittest.expect(o[0], unittest.equals('foo')); |
| 6232 unittest.expect(o[1], unittest.equals('foo')); |
| 6233 } |
| 6234 |
| 6235 core.int buildCounterRemarketingListShare = 0; |
| 6236 buildRemarketingListShare() { |
| 6237 var o = new api.RemarketingListShare(); |
| 6238 buildCounterRemarketingListShare++; |
| 6239 if (buildCounterRemarketingListShare < 3) { |
| 6240 o.kind = "foo"; |
| 6241 o.remarketingListId = "foo"; |
| 6242 o.sharedAccountIds = buildUnnamed1170(); |
| 6243 o.sharedAdvertiserIds = buildUnnamed1171(); |
| 6244 } |
| 6245 buildCounterRemarketingListShare--; |
| 6246 return o; |
| 6247 } |
| 6248 |
| 6249 checkRemarketingListShare(api.RemarketingListShare o) { |
| 6250 buildCounterRemarketingListShare++; |
| 6251 if (buildCounterRemarketingListShare < 3) { |
| 6252 unittest.expect(o.kind, unittest.equals('foo')); |
| 6253 unittest.expect(o.remarketingListId, unittest.equals('foo')); |
| 6254 checkUnnamed1170(o.sharedAccountIds); |
| 6255 checkUnnamed1171(o.sharedAdvertiserIds); |
| 6256 } |
| 6257 buildCounterRemarketingListShare--; |
| 6258 } |
| 6259 |
| 6260 buildUnnamed1172() { |
| 6261 var o = new core.List<api.RemarketingList>(); |
| 6262 o.add(buildRemarketingList()); |
| 6263 o.add(buildRemarketingList()); |
| 6264 return o; |
| 6265 } |
| 6266 |
| 6267 checkUnnamed1172(core.List<api.RemarketingList> o) { |
| 6268 unittest.expect(o, unittest.hasLength(2)); |
| 6269 checkRemarketingList(o[0]); |
| 6270 checkRemarketingList(o[1]); |
| 6271 } |
| 6272 |
| 6273 core.int buildCounterRemarketingListsListResponse = 0; |
| 6274 buildRemarketingListsListResponse() { |
| 6275 var o = new api.RemarketingListsListResponse(); |
| 6276 buildCounterRemarketingListsListResponse++; |
| 6277 if (buildCounterRemarketingListsListResponse < 3) { |
| 6278 o.kind = "foo"; |
| 6279 o.nextPageToken = "foo"; |
| 6280 o.remarketingLists = buildUnnamed1172(); |
| 6281 } |
| 6282 buildCounterRemarketingListsListResponse--; |
| 6283 return o; |
| 6284 } |
| 6285 |
| 6286 checkRemarketingListsListResponse(api.RemarketingListsListResponse o) { |
| 6287 buildCounterRemarketingListsListResponse++; |
| 6288 if (buildCounterRemarketingListsListResponse < 3) { |
| 6289 unittest.expect(o.kind, unittest.equals('foo')); |
| 6290 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6291 checkUnnamed1172(o.remarketingLists); |
| 6292 } |
| 6293 buildCounterRemarketingListsListResponse--; |
| 6294 } |
| 6295 |
| 6296 buildUnnamed1173() { |
5489 var o = new core.List<api.DimensionValue>(); | 6297 var o = new core.List<api.DimensionValue>(); |
5490 o.add(buildDimensionValue()); | 6298 o.add(buildDimensionValue()); |
5491 o.add(buildDimensionValue()); | 6299 o.add(buildDimensionValue()); |
5492 return o; | 6300 return o; |
5493 } | 6301 } |
5494 | 6302 |
5495 checkUnnamed373(core.List<api.DimensionValue> o) { | 6303 checkUnnamed1173(core.List<api.DimensionValue> o) { |
5496 unittest.expect(o, unittest.hasLength(2)); | 6304 unittest.expect(o, unittest.hasLength(2)); |
5497 checkDimensionValue(o[0]); | 6305 checkDimensionValue(o[0]); |
5498 checkDimensionValue(o[1]); | 6306 checkDimensionValue(o[1]); |
5499 } | 6307 } |
5500 | 6308 |
5501 buildUnnamed374() { | 6309 buildUnnamed1174() { |
5502 var o = new core.List<api.SortedDimension>(); | 6310 var o = new core.List<api.SortedDimension>(); |
5503 o.add(buildSortedDimension()); | 6311 o.add(buildSortedDimension()); |
5504 o.add(buildSortedDimension()); | 6312 o.add(buildSortedDimension()); |
5505 return o; | 6313 return o; |
5506 } | 6314 } |
5507 | 6315 |
5508 checkUnnamed374(core.List<api.SortedDimension> o) { | 6316 checkUnnamed1174(core.List<api.SortedDimension> o) { |
5509 unittest.expect(o, unittest.hasLength(2)); | 6317 unittest.expect(o, unittest.hasLength(2)); |
5510 checkSortedDimension(o[0]); | 6318 checkSortedDimension(o[0]); |
5511 checkSortedDimension(o[1]); | 6319 checkSortedDimension(o[1]); |
5512 } | 6320 } |
5513 | 6321 |
5514 buildUnnamed375() { | 6322 buildUnnamed1175() { |
5515 var o = new core.List<core.String>(); | 6323 var o = new core.List<core.String>(); |
5516 o.add("foo"); | 6324 o.add("foo"); |
5517 o.add("foo"); | 6325 o.add("foo"); |
5518 return o; | 6326 return o; |
5519 } | 6327 } |
5520 | 6328 |
5521 checkUnnamed375(core.List<core.String> o) { | 6329 checkUnnamed1175(core.List<core.String> o) { |
5522 unittest.expect(o, unittest.hasLength(2)); | 6330 unittest.expect(o, unittest.hasLength(2)); |
5523 unittest.expect(o[0], unittest.equals('foo')); | 6331 unittest.expect(o[0], unittest.equals('foo')); |
5524 unittest.expect(o[1], unittest.equals('foo')); | 6332 unittest.expect(o[1], unittest.equals('foo')); |
5525 } | 6333 } |
5526 | 6334 |
5527 core.int buildCounterReportCriteria = 0; | 6335 core.int buildCounterReportCriteria = 0; |
5528 buildReportCriteria() { | 6336 buildReportCriteria() { |
5529 var o = new api.ReportCriteria(); | 6337 var o = new api.ReportCriteria(); |
5530 buildCounterReportCriteria++; | 6338 buildCounterReportCriteria++; |
5531 if (buildCounterReportCriteria < 3) { | 6339 if (buildCounterReportCriteria < 3) { |
5532 o.activities = buildActivities(); | 6340 o.activities = buildActivities(); |
5533 o.customRichMediaEvents = buildCustomRichMediaEvents(); | 6341 o.customRichMediaEvents = buildCustomRichMediaEvents(); |
5534 o.dateRange = buildDateRange(); | 6342 o.dateRange = buildDateRange(); |
5535 o.dimensionFilters = buildUnnamed373(); | 6343 o.dimensionFilters = buildUnnamed1173(); |
5536 o.dimensions = buildUnnamed374(); | 6344 o.dimensions = buildUnnamed1174(); |
5537 o.metricNames = buildUnnamed375(); | 6345 o.metricNames = buildUnnamed1175(); |
5538 } | 6346 } |
5539 buildCounterReportCriteria--; | 6347 buildCounterReportCriteria--; |
5540 return o; | 6348 return o; |
5541 } | 6349 } |
5542 | 6350 |
5543 checkReportCriteria(api.ReportCriteria o) { | 6351 checkReportCriteria(api.ReportCriteria o) { |
5544 buildCounterReportCriteria++; | 6352 buildCounterReportCriteria++; |
5545 if (buildCounterReportCriteria < 3) { | 6353 if (buildCounterReportCriteria < 3) { |
5546 checkActivities(o.activities); | 6354 checkActivities(o.activities); |
5547 checkCustomRichMediaEvents(o.customRichMediaEvents); | 6355 checkCustomRichMediaEvents(o.customRichMediaEvents); |
5548 checkDateRange(o.dateRange); | 6356 checkDateRange(o.dateRange); |
5549 checkUnnamed373(o.dimensionFilters); | 6357 checkUnnamed1173(o.dimensionFilters); |
5550 checkUnnamed374(o.dimensions); | 6358 checkUnnamed1174(o.dimensions); |
5551 checkUnnamed375(o.metricNames); | 6359 checkUnnamed1175(o.metricNames); |
5552 } | 6360 } |
5553 buildCounterReportCriteria--; | 6361 buildCounterReportCriteria--; |
5554 } | 6362 } |
5555 | 6363 |
5556 buildUnnamed376() { | 6364 buildUnnamed1176() { |
5557 var o = new core.List<api.SortedDimension>(); | 6365 var o = new core.List<api.SortedDimension>(); |
5558 o.add(buildSortedDimension()); | 6366 o.add(buildSortedDimension()); |
5559 o.add(buildSortedDimension()); | 6367 o.add(buildSortedDimension()); |
5560 return o; | 6368 return o; |
5561 } | 6369 } |
5562 | 6370 |
5563 checkUnnamed376(core.List<api.SortedDimension> o) { | 6371 checkUnnamed1176(core.List<api.SortedDimension> o) { |
5564 unittest.expect(o, unittest.hasLength(2)); | 6372 unittest.expect(o, unittest.hasLength(2)); |
5565 checkSortedDimension(o[0]); | 6373 checkSortedDimension(o[0]); |
5566 checkSortedDimension(o[1]); | 6374 checkSortedDimension(o[1]); |
5567 } | 6375 } |
5568 | 6376 |
5569 buildUnnamed377() { | 6377 buildUnnamed1177() { |
5570 var o = new core.List<api.DimensionValue>(); | 6378 var o = new core.List<api.DimensionValue>(); |
5571 o.add(buildDimensionValue()); | 6379 o.add(buildDimensionValue()); |
5572 o.add(buildDimensionValue()); | 6380 o.add(buildDimensionValue()); |
5573 return o; | 6381 return o; |
5574 } | 6382 } |
5575 | 6383 |
5576 checkUnnamed377(core.List<api.DimensionValue> o) { | 6384 checkUnnamed1177(core.List<api.DimensionValue> o) { |
5577 unittest.expect(o, unittest.hasLength(2)); | 6385 unittest.expect(o, unittest.hasLength(2)); |
5578 checkDimensionValue(o[0]); | 6386 checkDimensionValue(o[0]); |
5579 checkDimensionValue(o[1]); | 6387 checkDimensionValue(o[1]); |
5580 } | 6388 } |
5581 | 6389 |
5582 buildUnnamed378() { | 6390 buildUnnamed1178() { |
5583 var o = new core.List<core.String>(); | 6391 var o = new core.List<core.String>(); |
5584 o.add("foo"); | 6392 o.add("foo"); |
5585 o.add("foo"); | 6393 o.add("foo"); |
5586 return o; | 6394 return o; |
5587 } | 6395 } |
5588 | 6396 |
5589 checkUnnamed378(core.List<core.String> o) { | 6397 checkUnnamed1178(core.List<core.String> o) { |
5590 unittest.expect(o, unittest.hasLength(2)); | 6398 unittest.expect(o, unittest.hasLength(2)); |
5591 unittest.expect(o[0], unittest.equals('foo')); | 6399 unittest.expect(o[0], unittest.equals('foo')); |
5592 unittest.expect(o[1], unittest.equals('foo')); | 6400 unittest.expect(o[1], unittest.equals('foo')); |
5593 } | 6401 } |
5594 | 6402 |
5595 buildUnnamed379() { | 6403 buildUnnamed1179() { |
5596 var o = new core.List<core.String>(); | 6404 var o = new core.List<core.String>(); |
5597 o.add("foo"); | 6405 o.add("foo"); |
5598 o.add("foo"); | 6406 o.add("foo"); |
5599 return o; | 6407 return o; |
5600 } | 6408 } |
5601 | 6409 |
5602 checkUnnamed379(core.List<core.String> o) { | 6410 checkUnnamed1179(core.List<core.String> o) { |
5603 unittest.expect(o, unittest.hasLength(2)); | 6411 unittest.expect(o, unittest.hasLength(2)); |
5604 unittest.expect(o[0], unittest.equals('foo')); | 6412 unittest.expect(o[0], unittest.equals('foo')); |
5605 unittest.expect(o[1], unittest.equals('foo')); | 6413 unittest.expect(o[1], unittest.equals('foo')); |
5606 } | 6414 } |
5607 | 6415 |
5608 core.int buildCounterReportCrossDimensionReachCriteria = 0; | 6416 core.int buildCounterReportCrossDimensionReachCriteria = 0; |
5609 buildReportCrossDimensionReachCriteria() { | 6417 buildReportCrossDimensionReachCriteria() { |
5610 var o = new api.ReportCrossDimensionReachCriteria(); | 6418 var o = new api.ReportCrossDimensionReachCriteria(); |
5611 buildCounterReportCrossDimensionReachCriteria++; | 6419 buildCounterReportCrossDimensionReachCriteria++; |
5612 if (buildCounterReportCrossDimensionReachCriteria < 3) { | 6420 if (buildCounterReportCrossDimensionReachCriteria < 3) { |
5613 o.breakdown = buildUnnamed376(); | 6421 o.breakdown = buildUnnamed1176(); |
5614 o.dateRange = buildDateRange(); | 6422 o.dateRange = buildDateRange(); |
5615 o.dimension = "foo"; | 6423 o.dimension = "foo"; |
5616 o.dimensionFilters = buildUnnamed377(); | 6424 o.dimensionFilters = buildUnnamed1177(); |
5617 o.metricNames = buildUnnamed378(); | 6425 o.metricNames = buildUnnamed1178(); |
5618 o.overlapMetricNames = buildUnnamed379(); | 6426 o.overlapMetricNames = buildUnnamed1179(); |
5619 o.pivoted = true; | 6427 o.pivoted = true; |
5620 } | 6428 } |
5621 buildCounterReportCrossDimensionReachCriteria--; | 6429 buildCounterReportCrossDimensionReachCriteria--; |
5622 return o; | 6430 return o; |
5623 } | 6431 } |
5624 | 6432 |
5625 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o)
{ | 6433 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o)
{ |
5626 buildCounterReportCrossDimensionReachCriteria++; | 6434 buildCounterReportCrossDimensionReachCriteria++; |
5627 if (buildCounterReportCrossDimensionReachCriteria < 3) { | 6435 if (buildCounterReportCrossDimensionReachCriteria < 3) { |
5628 checkUnnamed376(o.breakdown); | 6436 checkUnnamed1176(o.breakdown); |
5629 checkDateRange(o.dateRange); | 6437 checkDateRange(o.dateRange); |
5630 unittest.expect(o.dimension, unittest.equals('foo')); | 6438 unittest.expect(o.dimension, unittest.equals('foo')); |
5631 checkUnnamed377(o.dimensionFilters); | 6439 checkUnnamed1177(o.dimensionFilters); |
5632 checkUnnamed378(o.metricNames); | 6440 checkUnnamed1178(o.metricNames); |
5633 checkUnnamed379(o.overlapMetricNames); | 6441 checkUnnamed1179(o.overlapMetricNames); |
5634 unittest.expect(o.pivoted, unittest.isTrue); | 6442 unittest.expect(o.pivoted, unittest.isTrue); |
5635 } | 6443 } |
5636 buildCounterReportCrossDimensionReachCriteria--; | 6444 buildCounterReportCrossDimensionReachCriteria--; |
5637 } | 6445 } |
5638 | 6446 |
5639 buildUnnamed380() { | 6447 buildUnnamed1180() { |
5640 var o = new core.List<api.Recipient>(); | 6448 var o = new core.List<api.Recipient>(); |
5641 o.add(buildRecipient()); | 6449 o.add(buildRecipient()); |
5642 o.add(buildRecipient()); | 6450 o.add(buildRecipient()); |
5643 return o; | 6451 return o; |
5644 } | 6452 } |
5645 | 6453 |
5646 checkUnnamed380(core.List<api.Recipient> o) { | 6454 checkUnnamed1180(core.List<api.Recipient> o) { |
5647 unittest.expect(o, unittest.hasLength(2)); | 6455 unittest.expect(o, unittest.hasLength(2)); |
5648 checkRecipient(o[0]); | 6456 checkRecipient(o[0]); |
5649 checkRecipient(o[1]); | 6457 checkRecipient(o[1]); |
5650 } | 6458 } |
5651 | 6459 |
5652 core.int buildCounterReportDelivery = 0; | 6460 core.int buildCounterReportDelivery = 0; |
5653 buildReportDelivery() { | 6461 buildReportDelivery() { |
5654 var o = new api.ReportDelivery(); | 6462 var o = new api.ReportDelivery(); |
5655 buildCounterReportDelivery++; | 6463 buildCounterReportDelivery++; |
5656 if (buildCounterReportDelivery < 3) { | 6464 if (buildCounterReportDelivery < 3) { |
5657 o.emailOwner = true; | 6465 o.emailOwner = true; |
5658 o.emailOwnerDeliveryType = "foo"; | 6466 o.emailOwnerDeliveryType = "foo"; |
5659 o.message = "foo"; | 6467 o.message = "foo"; |
5660 o.recipients = buildUnnamed380(); | 6468 o.recipients = buildUnnamed1180(); |
5661 } | 6469 } |
5662 buildCounterReportDelivery--; | 6470 buildCounterReportDelivery--; |
5663 return o; | 6471 return o; |
5664 } | 6472 } |
5665 | 6473 |
5666 checkReportDelivery(api.ReportDelivery o) { | 6474 checkReportDelivery(api.ReportDelivery o) { |
5667 buildCounterReportDelivery++; | 6475 buildCounterReportDelivery++; |
5668 if (buildCounterReportDelivery < 3) { | 6476 if (buildCounterReportDelivery < 3) { |
5669 unittest.expect(o.emailOwner, unittest.isTrue); | 6477 unittest.expect(o.emailOwner, unittest.isTrue); |
5670 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); | 6478 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); |
5671 unittest.expect(o.message, unittest.equals('foo')); | 6479 unittest.expect(o.message, unittest.equals('foo')); |
5672 checkUnnamed380(o.recipients); | 6480 checkUnnamed1180(o.recipients); |
5673 } | 6481 } |
5674 buildCounterReportDelivery--; | 6482 buildCounterReportDelivery--; |
5675 } | 6483 } |
5676 | 6484 |
5677 buildUnnamed381() { | 6485 buildUnnamed1181() { |
5678 var o = new core.List<api.DimensionValue>(); | 6486 var o = new core.List<api.DimensionValue>(); |
5679 o.add(buildDimensionValue()); | 6487 o.add(buildDimensionValue()); |
5680 o.add(buildDimensionValue()); | 6488 o.add(buildDimensionValue()); |
5681 return o; | 6489 return o; |
5682 } | 6490 } |
5683 | 6491 |
5684 checkUnnamed381(core.List<api.DimensionValue> o) { | 6492 checkUnnamed1181(core.List<api.DimensionValue> o) { |
5685 unittest.expect(o, unittest.hasLength(2)); | 6493 unittest.expect(o, unittest.hasLength(2)); |
5686 checkDimensionValue(o[0]); | 6494 checkDimensionValue(o[0]); |
5687 checkDimensionValue(o[1]); | 6495 checkDimensionValue(o[1]); |
5688 } | 6496 } |
5689 | 6497 |
5690 buildUnnamed382() { | 6498 buildUnnamed1182() { |
5691 var o = new core.List<api.DimensionValue>(); | 6499 var o = new core.List<api.DimensionValue>(); |
5692 o.add(buildDimensionValue()); | 6500 o.add(buildDimensionValue()); |
5693 o.add(buildDimensionValue()); | 6501 o.add(buildDimensionValue()); |
5694 return o; | 6502 return o; |
5695 } | 6503 } |
5696 | 6504 |
5697 checkUnnamed382(core.List<api.DimensionValue> o) { | 6505 checkUnnamed1182(core.List<api.DimensionValue> o) { |
5698 unittest.expect(o, unittest.hasLength(2)); | 6506 unittest.expect(o, unittest.hasLength(2)); |
5699 checkDimensionValue(o[0]); | 6507 checkDimensionValue(o[0]); |
5700 checkDimensionValue(o[1]); | 6508 checkDimensionValue(o[1]); |
5701 } | 6509 } |
5702 | 6510 |
5703 buildUnnamed383() { | 6511 buildUnnamed1183() { |
5704 var o = new core.List<api.SortedDimension>(); | 6512 var o = new core.List<api.SortedDimension>(); |
5705 o.add(buildSortedDimension()); | 6513 o.add(buildSortedDimension()); |
5706 o.add(buildSortedDimension()); | 6514 o.add(buildSortedDimension()); |
5707 return o; | 6515 return o; |
5708 } | 6516 } |
5709 | 6517 |
5710 checkUnnamed383(core.List<api.SortedDimension> o) { | 6518 checkUnnamed1183(core.List<api.SortedDimension> o) { |
5711 unittest.expect(o, unittest.hasLength(2)); | 6519 unittest.expect(o, unittest.hasLength(2)); |
5712 checkSortedDimension(o[0]); | 6520 checkSortedDimension(o[0]); |
5713 checkSortedDimension(o[1]); | 6521 checkSortedDimension(o[1]); |
5714 } | 6522 } |
5715 | 6523 |
5716 buildUnnamed384() { | 6524 buildUnnamed1184() { |
5717 var o = new core.List<core.String>(); | 6525 var o = new core.List<core.String>(); |
5718 o.add("foo"); | 6526 o.add("foo"); |
5719 o.add("foo"); | 6527 o.add("foo"); |
5720 return o; | 6528 return o; |
5721 } | 6529 } |
5722 | 6530 |
5723 checkUnnamed384(core.List<core.String> o) { | 6531 checkUnnamed1184(core.List<core.String> o) { |
5724 unittest.expect(o, unittest.hasLength(2)); | 6532 unittest.expect(o, unittest.hasLength(2)); |
5725 unittest.expect(o[0], unittest.equals('foo')); | 6533 unittest.expect(o[0], unittest.equals('foo')); |
5726 unittest.expect(o[1], unittest.equals('foo')); | 6534 unittest.expect(o[1], unittest.equals('foo')); |
5727 } | 6535 } |
5728 | 6536 |
5729 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; | 6537 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; |
5730 buildReportFloodlightCriteriaReportProperties() { | 6538 buildReportFloodlightCriteriaReportProperties() { |
5731 var o = new api.ReportFloodlightCriteriaReportProperties(); | 6539 var o = new api.ReportFloodlightCriteriaReportProperties(); |
5732 buildCounterReportFloodlightCriteriaReportProperties++; | 6540 buildCounterReportFloodlightCriteriaReportProperties++; |
5733 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { | 6541 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { |
(...skipping 13 matching lines...) Expand all Loading... |
5747 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); | 6555 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); |
5748 } | 6556 } |
5749 buildCounterReportFloodlightCriteriaReportProperties--; | 6557 buildCounterReportFloodlightCriteriaReportProperties--; |
5750 } | 6558 } |
5751 | 6559 |
5752 core.int buildCounterReportFloodlightCriteria = 0; | 6560 core.int buildCounterReportFloodlightCriteria = 0; |
5753 buildReportFloodlightCriteria() { | 6561 buildReportFloodlightCriteria() { |
5754 var o = new api.ReportFloodlightCriteria(); | 6562 var o = new api.ReportFloodlightCriteria(); |
5755 buildCounterReportFloodlightCriteria++; | 6563 buildCounterReportFloodlightCriteria++; |
5756 if (buildCounterReportFloodlightCriteria < 3) { | 6564 if (buildCounterReportFloodlightCriteria < 3) { |
5757 o.customRichMediaEvents = buildUnnamed381(); | 6565 o.customRichMediaEvents = buildUnnamed1181(); |
5758 o.dateRange = buildDateRange(); | 6566 o.dateRange = buildDateRange(); |
5759 o.dimensionFilters = buildUnnamed382(); | 6567 o.dimensionFilters = buildUnnamed1182(); |
5760 o.dimensions = buildUnnamed383(); | 6568 o.dimensions = buildUnnamed1183(); |
5761 o.floodlightConfigId = buildDimensionValue(); | 6569 o.floodlightConfigId = buildDimensionValue(); |
5762 o.metricNames = buildUnnamed384(); | 6570 o.metricNames = buildUnnamed1184(); |
5763 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); | 6571 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); |
5764 } | 6572 } |
5765 buildCounterReportFloodlightCriteria--; | 6573 buildCounterReportFloodlightCriteria--; |
5766 return o; | 6574 return o; |
5767 } | 6575 } |
5768 | 6576 |
5769 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { | 6577 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { |
5770 buildCounterReportFloodlightCriteria++; | 6578 buildCounterReportFloodlightCriteria++; |
5771 if (buildCounterReportFloodlightCriteria < 3) { | 6579 if (buildCounterReportFloodlightCriteria < 3) { |
5772 checkUnnamed381(o.customRichMediaEvents); | 6580 checkUnnamed1181(o.customRichMediaEvents); |
5773 checkDateRange(o.dateRange); | 6581 checkDateRange(o.dateRange); |
5774 checkUnnamed382(o.dimensionFilters); | 6582 checkUnnamed1182(o.dimensionFilters); |
5775 checkUnnamed383(o.dimensions); | 6583 checkUnnamed1183(o.dimensions); |
5776 checkDimensionValue(o.floodlightConfigId); | 6584 checkDimensionValue(o.floodlightConfigId); |
5777 checkUnnamed384(o.metricNames); | 6585 checkUnnamed1184(o.metricNames); |
5778 checkReportFloodlightCriteriaReportProperties(o.reportProperties); | 6586 checkReportFloodlightCriteriaReportProperties(o.reportProperties); |
5779 } | 6587 } |
5780 buildCounterReportFloodlightCriteria--; | 6588 buildCounterReportFloodlightCriteria--; |
5781 } | 6589 } |
5782 | 6590 |
5783 buildUnnamed385() { | 6591 buildUnnamed1185() { |
5784 var o = new core.List<api.DimensionValue>(); | 6592 var o = new core.List<api.DimensionValue>(); |
5785 o.add(buildDimensionValue()); | 6593 o.add(buildDimensionValue()); |
5786 o.add(buildDimensionValue()); | 6594 o.add(buildDimensionValue()); |
5787 return o; | 6595 return o; |
5788 } | 6596 } |
5789 | 6597 |
5790 checkUnnamed385(core.List<api.DimensionValue> o) { | 6598 checkUnnamed1185(core.List<api.DimensionValue> o) { |
5791 unittest.expect(o, unittest.hasLength(2)); | 6599 unittest.expect(o, unittest.hasLength(2)); |
5792 checkDimensionValue(o[0]); | 6600 checkDimensionValue(o[0]); |
5793 checkDimensionValue(o[1]); | 6601 checkDimensionValue(o[1]); |
5794 } | 6602 } |
5795 | 6603 |
5796 buildUnnamed386() { | 6604 buildUnnamed1186() { |
5797 var o = new core.List<api.SortedDimension>(); | 6605 var o = new core.List<api.SortedDimension>(); |
5798 o.add(buildSortedDimension()); | 6606 o.add(buildSortedDimension()); |
5799 o.add(buildSortedDimension()); | 6607 o.add(buildSortedDimension()); |
5800 return o; | 6608 return o; |
5801 } | 6609 } |
5802 | 6610 |
5803 checkUnnamed386(core.List<api.SortedDimension> o) { | 6611 checkUnnamed1186(core.List<api.SortedDimension> o) { |
5804 unittest.expect(o, unittest.hasLength(2)); | 6612 unittest.expect(o, unittest.hasLength(2)); |
5805 checkSortedDimension(o[0]); | 6613 checkSortedDimension(o[0]); |
5806 checkSortedDimension(o[1]); | 6614 checkSortedDimension(o[1]); |
5807 } | 6615 } |
5808 | 6616 |
5809 buildUnnamed387() { | 6617 buildUnnamed1187() { |
5810 var o = new core.List<api.SortedDimension>(); | 6618 var o = new core.List<api.SortedDimension>(); |
5811 o.add(buildSortedDimension()); | 6619 o.add(buildSortedDimension()); |
5812 o.add(buildSortedDimension()); | 6620 o.add(buildSortedDimension()); |
5813 return o; | 6621 return o; |
5814 } | 6622 } |
5815 | 6623 |
5816 checkUnnamed387(core.List<api.SortedDimension> o) { | 6624 checkUnnamed1187(core.List<api.SortedDimension> o) { |
5817 unittest.expect(o, unittest.hasLength(2)); | 6625 unittest.expect(o, unittest.hasLength(2)); |
5818 checkSortedDimension(o[0]); | 6626 checkSortedDimension(o[0]); |
5819 checkSortedDimension(o[1]); | 6627 checkSortedDimension(o[1]); |
5820 } | 6628 } |
5821 | 6629 |
5822 buildUnnamed388() { | 6630 buildUnnamed1188() { |
5823 var o = new core.List<api.DimensionValue>(); | 6631 var o = new core.List<api.DimensionValue>(); |
5824 o.add(buildDimensionValue()); | 6632 o.add(buildDimensionValue()); |
5825 o.add(buildDimensionValue()); | 6633 o.add(buildDimensionValue()); |
5826 return o; | 6634 return o; |
5827 } | 6635 } |
5828 | 6636 |
5829 checkUnnamed388(core.List<api.DimensionValue> o) { | 6637 checkUnnamed1188(core.List<api.DimensionValue> o) { |
5830 unittest.expect(o, unittest.hasLength(2)); | 6638 unittest.expect(o, unittest.hasLength(2)); |
5831 checkDimensionValue(o[0]); | 6639 checkDimensionValue(o[0]); |
5832 checkDimensionValue(o[1]); | 6640 checkDimensionValue(o[1]); |
5833 } | 6641 } |
5834 | 6642 |
5835 buildUnnamed389() { | 6643 buildUnnamed1189() { |
5836 var o = new core.List<core.String>(); | 6644 var o = new core.List<core.String>(); |
5837 o.add("foo"); | 6645 o.add("foo"); |
5838 o.add("foo"); | 6646 o.add("foo"); |
5839 return o; | 6647 return o; |
5840 } | 6648 } |
5841 | 6649 |
5842 checkUnnamed389(core.List<core.String> o) { | 6650 checkUnnamed1189(core.List<core.String> o) { |
5843 unittest.expect(o, unittest.hasLength(2)); | 6651 unittest.expect(o, unittest.hasLength(2)); |
5844 unittest.expect(o[0], unittest.equals('foo')); | 6652 unittest.expect(o[0], unittest.equals('foo')); |
5845 unittest.expect(o[1], unittest.equals('foo')); | 6653 unittest.expect(o[1], unittest.equals('foo')); |
5846 } | 6654 } |
5847 | 6655 |
5848 buildUnnamed390() { | 6656 buildUnnamed1190() { |
5849 var o = new core.List<api.SortedDimension>(); | 6657 var o = new core.List<api.SortedDimension>(); |
5850 o.add(buildSortedDimension()); | 6658 o.add(buildSortedDimension()); |
5851 o.add(buildSortedDimension()); | 6659 o.add(buildSortedDimension()); |
5852 return o; | 6660 return o; |
5853 } | 6661 } |
5854 | 6662 |
5855 checkUnnamed390(core.List<api.SortedDimension> o) { | 6663 checkUnnamed1190(core.List<api.SortedDimension> o) { |
5856 unittest.expect(o, unittest.hasLength(2)); | 6664 unittest.expect(o, unittest.hasLength(2)); |
5857 checkSortedDimension(o[0]); | 6665 checkSortedDimension(o[0]); |
5858 checkSortedDimension(o[1]); | 6666 checkSortedDimension(o[1]); |
5859 } | 6667 } |
5860 | 6668 |
5861 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; | 6669 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; |
5862 buildReportPathToConversionCriteriaReportProperties() { | 6670 buildReportPathToConversionCriteriaReportProperties() { |
5863 var o = new api.ReportPathToConversionCriteriaReportProperties(); | 6671 var o = new api.ReportPathToConversionCriteriaReportProperties(); |
5864 buildCounterReportPathToConversionCriteriaReportProperties++; | 6672 buildCounterReportPathToConversionCriteriaReportProperties++; |
5865 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { | 6673 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
5891 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); | 6699 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); |
5892 } | 6700 } |
5893 buildCounterReportPathToConversionCriteriaReportProperties--; | 6701 buildCounterReportPathToConversionCriteriaReportProperties--; |
5894 } | 6702 } |
5895 | 6703 |
5896 core.int buildCounterReportPathToConversionCriteria = 0; | 6704 core.int buildCounterReportPathToConversionCriteria = 0; |
5897 buildReportPathToConversionCriteria() { | 6705 buildReportPathToConversionCriteria() { |
5898 var o = new api.ReportPathToConversionCriteria(); | 6706 var o = new api.ReportPathToConversionCriteria(); |
5899 buildCounterReportPathToConversionCriteria++; | 6707 buildCounterReportPathToConversionCriteria++; |
5900 if (buildCounterReportPathToConversionCriteria < 3) { | 6708 if (buildCounterReportPathToConversionCriteria < 3) { |
5901 o.activityFilters = buildUnnamed385(); | 6709 o.activityFilters = buildUnnamed1185(); |
5902 o.conversionDimensions = buildUnnamed386(); | 6710 o.conversionDimensions = buildUnnamed1186(); |
5903 o.customFloodlightVariables = buildUnnamed387(); | 6711 o.customFloodlightVariables = buildUnnamed1187(); |
5904 o.customRichMediaEvents = buildUnnamed388(); | 6712 o.customRichMediaEvents = buildUnnamed1188(); |
5905 o.dateRange = buildDateRange(); | 6713 o.dateRange = buildDateRange(); |
5906 o.floodlightConfigId = buildDimensionValue(); | 6714 o.floodlightConfigId = buildDimensionValue(); |
5907 o.metricNames = buildUnnamed389(); | 6715 o.metricNames = buildUnnamed1189(); |
5908 o.perInteractionDimensions = buildUnnamed390(); | 6716 o.perInteractionDimensions = buildUnnamed1190(); |
5909 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); | 6717 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); |
5910 } | 6718 } |
5911 buildCounterReportPathToConversionCriteria--; | 6719 buildCounterReportPathToConversionCriteria--; |
5912 return o; | 6720 return o; |
5913 } | 6721 } |
5914 | 6722 |
5915 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { | 6723 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { |
5916 buildCounterReportPathToConversionCriteria++; | 6724 buildCounterReportPathToConversionCriteria++; |
5917 if (buildCounterReportPathToConversionCriteria < 3) { | 6725 if (buildCounterReportPathToConversionCriteria < 3) { |
5918 checkUnnamed385(o.activityFilters); | 6726 checkUnnamed1185(o.activityFilters); |
5919 checkUnnamed386(o.conversionDimensions); | 6727 checkUnnamed1186(o.conversionDimensions); |
5920 checkUnnamed387(o.customFloodlightVariables); | 6728 checkUnnamed1187(o.customFloodlightVariables); |
5921 checkUnnamed388(o.customRichMediaEvents); | 6729 checkUnnamed1188(o.customRichMediaEvents); |
5922 checkDateRange(o.dateRange); | 6730 checkDateRange(o.dateRange); |
5923 checkDimensionValue(o.floodlightConfigId); | 6731 checkDimensionValue(o.floodlightConfigId); |
5924 checkUnnamed389(o.metricNames); | 6732 checkUnnamed1189(o.metricNames); |
5925 checkUnnamed390(o.perInteractionDimensions); | 6733 checkUnnamed1190(o.perInteractionDimensions); |
5926 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); | 6734 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); |
5927 } | 6735 } |
5928 buildCounterReportPathToConversionCriteria--; | 6736 buildCounterReportPathToConversionCriteria--; |
5929 } | 6737 } |
5930 | 6738 |
5931 buildUnnamed391() { | 6739 buildUnnamed1191() { |
5932 var o = new core.List<api.DimensionValue>(); | 6740 var o = new core.List<api.DimensionValue>(); |
5933 o.add(buildDimensionValue()); | 6741 o.add(buildDimensionValue()); |
5934 o.add(buildDimensionValue()); | 6742 o.add(buildDimensionValue()); |
5935 return o; | 6743 return o; |
5936 } | 6744 } |
5937 | 6745 |
5938 checkUnnamed391(core.List<api.DimensionValue> o) { | 6746 checkUnnamed1191(core.List<api.DimensionValue> o) { |
5939 unittest.expect(o, unittest.hasLength(2)); | 6747 unittest.expect(o, unittest.hasLength(2)); |
5940 checkDimensionValue(o[0]); | 6748 checkDimensionValue(o[0]); |
5941 checkDimensionValue(o[1]); | 6749 checkDimensionValue(o[1]); |
5942 } | 6750 } |
5943 | 6751 |
5944 buildUnnamed392() { | 6752 buildUnnamed1192() { |
5945 var o = new core.List<api.SortedDimension>(); | 6753 var o = new core.List<api.SortedDimension>(); |
5946 o.add(buildSortedDimension()); | 6754 o.add(buildSortedDimension()); |
5947 o.add(buildSortedDimension()); | 6755 o.add(buildSortedDimension()); |
5948 return o; | 6756 return o; |
5949 } | 6757 } |
5950 | 6758 |
5951 checkUnnamed392(core.List<api.SortedDimension> o) { | 6759 checkUnnamed1192(core.List<api.SortedDimension> o) { |
5952 unittest.expect(o, unittest.hasLength(2)); | 6760 unittest.expect(o, unittest.hasLength(2)); |
5953 checkSortedDimension(o[0]); | 6761 checkSortedDimension(o[0]); |
5954 checkSortedDimension(o[1]); | 6762 checkSortedDimension(o[1]); |
5955 } | 6763 } |
5956 | 6764 |
5957 buildUnnamed393() { | 6765 buildUnnamed1193() { |
5958 var o = new core.List<core.String>(); | 6766 var o = new core.List<core.String>(); |
5959 o.add("foo"); | 6767 o.add("foo"); |
5960 o.add("foo"); | 6768 o.add("foo"); |
5961 return o; | 6769 return o; |
5962 } | 6770 } |
5963 | 6771 |
5964 checkUnnamed393(core.List<core.String> o) { | 6772 checkUnnamed1193(core.List<core.String> o) { |
5965 unittest.expect(o, unittest.hasLength(2)); | 6773 unittest.expect(o, unittest.hasLength(2)); |
5966 unittest.expect(o[0], unittest.equals('foo')); | 6774 unittest.expect(o[0], unittest.equals('foo')); |
5967 unittest.expect(o[1], unittest.equals('foo')); | 6775 unittest.expect(o[1], unittest.equals('foo')); |
5968 } | 6776 } |
5969 | 6777 |
5970 buildUnnamed394() { | 6778 buildUnnamed1194() { |
5971 var o = new core.List<core.String>(); | 6779 var o = new core.List<core.String>(); |
5972 o.add("foo"); | 6780 o.add("foo"); |
5973 o.add("foo"); | 6781 o.add("foo"); |
5974 return o; | 6782 return o; |
5975 } | 6783 } |
5976 | 6784 |
5977 checkUnnamed394(core.List<core.String> o) { | 6785 checkUnnamed1194(core.List<core.String> o) { |
5978 unittest.expect(o, unittest.hasLength(2)); | 6786 unittest.expect(o, unittest.hasLength(2)); |
5979 unittest.expect(o[0], unittest.equals('foo')); | 6787 unittest.expect(o[0], unittest.equals('foo')); |
5980 unittest.expect(o[1], unittest.equals('foo')); | 6788 unittest.expect(o[1], unittest.equals('foo')); |
5981 } | 6789 } |
5982 | 6790 |
5983 core.int buildCounterReportReachCriteria = 0; | 6791 core.int buildCounterReportReachCriteria = 0; |
5984 buildReportReachCriteria() { | 6792 buildReportReachCriteria() { |
5985 var o = new api.ReportReachCriteria(); | 6793 var o = new api.ReportReachCriteria(); |
5986 buildCounterReportReachCriteria++; | 6794 buildCounterReportReachCriteria++; |
5987 if (buildCounterReportReachCriteria < 3) { | 6795 if (buildCounterReportReachCriteria < 3) { |
5988 o.activities = buildActivities(); | 6796 o.activities = buildActivities(); |
5989 o.customRichMediaEvents = buildCustomRichMediaEvents(); | 6797 o.customRichMediaEvents = buildCustomRichMediaEvents(); |
5990 o.dateRange = buildDateRange(); | 6798 o.dateRange = buildDateRange(); |
5991 o.dimensionFilters = buildUnnamed391(); | 6799 o.dimensionFilters = buildUnnamed1191(); |
5992 o.dimensions = buildUnnamed392(); | 6800 o.dimensions = buildUnnamed1192(); |
5993 o.enableAllDimensionCombinations = true; | 6801 o.enableAllDimensionCombinations = true; |
5994 o.metricNames = buildUnnamed393(); | 6802 o.metricNames = buildUnnamed1193(); |
5995 o.reachByFrequencyMetricNames = buildUnnamed394(); | 6803 o.reachByFrequencyMetricNames = buildUnnamed1194(); |
5996 } | 6804 } |
5997 buildCounterReportReachCriteria--; | 6805 buildCounterReportReachCriteria--; |
5998 return o; | 6806 return o; |
5999 } | 6807 } |
6000 | 6808 |
6001 checkReportReachCriteria(api.ReportReachCriteria o) { | 6809 checkReportReachCriteria(api.ReportReachCriteria o) { |
6002 buildCounterReportReachCriteria++; | 6810 buildCounterReportReachCriteria++; |
6003 if (buildCounterReportReachCriteria < 3) { | 6811 if (buildCounterReportReachCriteria < 3) { |
6004 checkActivities(o.activities); | 6812 checkActivities(o.activities); |
6005 checkCustomRichMediaEvents(o.customRichMediaEvents); | 6813 checkCustomRichMediaEvents(o.customRichMediaEvents); |
6006 checkDateRange(o.dateRange); | 6814 checkDateRange(o.dateRange); |
6007 checkUnnamed391(o.dimensionFilters); | 6815 checkUnnamed1191(o.dimensionFilters); |
6008 checkUnnamed392(o.dimensions); | 6816 checkUnnamed1192(o.dimensions); |
6009 unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); | 6817 unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); |
6010 checkUnnamed393(o.metricNames); | 6818 checkUnnamed1193(o.metricNames); |
6011 checkUnnamed394(o.reachByFrequencyMetricNames); | 6819 checkUnnamed1194(o.reachByFrequencyMetricNames); |
6012 } | 6820 } |
6013 buildCounterReportReachCriteria--; | 6821 buildCounterReportReachCriteria--; |
6014 } | 6822 } |
6015 | 6823 |
6016 buildUnnamed395() { | 6824 buildUnnamed1195() { |
6017 var o = new core.List<core.String>(); | 6825 var o = new core.List<core.String>(); |
6018 o.add("foo"); | 6826 o.add("foo"); |
6019 o.add("foo"); | 6827 o.add("foo"); |
6020 return o; | 6828 return o; |
6021 } | 6829 } |
6022 | 6830 |
6023 checkUnnamed395(core.List<core.String> o) { | 6831 checkUnnamed1195(core.List<core.String> o) { |
6024 unittest.expect(o, unittest.hasLength(2)); | 6832 unittest.expect(o, unittest.hasLength(2)); |
6025 unittest.expect(o[0], unittest.equals('foo')); | 6833 unittest.expect(o[0], unittest.equals('foo')); |
6026 unittest.expect(o[1], unittest.equals('foo')); | 6834 unittest.expect(o[1], unittest.equals('foo')); |
6027 } | 6835 } |
6028 | 6836 |
6029 core.int buildCounterReportSchedule = 0; | 6837 core.int buildCounterReportSchedule = 0; |
6030 buildReportSchedule() { | 6838 buildReportSchedule() { |
6031 var o = new api.ReportSchedule(); | 6839 var o = new api.ReportSchedule(); |
6032 buildCounterReportSchedule++; | 6840 buildCounterReportSchedule++; |
6033 if (buildCounterReportSchedule < 3) { | 6841 if (buildCounterReportSchedule < 3) { |
6034 o.active = true; | 6842 o.active = true; |
6035 o.every = 42; | 6843 o.every = 42; |
6036 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 6844 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
6037 o.repeats = "foo"; | 6845 o.repeats = "foo"; |
6038 o.repeatsOnWeekDays = buildUnnamed395(); | 6846 o.repeatsOnWeekDays = buildUnnamed1195(); |
6039 o.runsOnDayOfMonth = "foo"; | 6847 o.runsOnDayOfMonth = "foo"; |
6040 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); | 6848 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); |
6041 } | 6849 } |
6042 buildCounterReportSchedule--; | 6850 buildCounterReportSchedule--; |
6043 return o; | 6851 return o; |
6044 } | 6852 } |
6045 | 6853 |
6046 checkReportSchedule(api.ReportSchedule o) { | 6854 checkReportSchedule(api.ReportSchedule o) { |
6047 buildCounterReportSchedule++; | 6855 buildCounterReportSchedule++; |
6048 if (buildCounterReportSchedule < 3) { | 6856 if (buildCounterReportSchedule < 3) { |
6049 unittest.expect(o.active, unittest.isTrue); | 6857 unittest.expect(o.active, unittest.isTrue); |
6050 unittest.expect(o.every, unittest.equals(42)); | 6858 unittest.expect(o.every, unittest.equals(42)); |
6051 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-
02-27T00:00:00"))); | 6859 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-
02-27T00:00:00"))); |
6052 unittest.expect(o.repeats, unittest.equals('foo')); | 6860 unittest.expect(o.repeats, unittest.equals('foo')); |
6053 checkUnnamed395(o.repeatsOnWeekDays); | 6861 checkUnnamed1195(o.repeatsOnWeekDays); |
6054 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); | 6862 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); |
6055 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); | 6863 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T00:00:00"))); |
6056 } | 6864 } |
6057 buildCounterReportSchedule--; | 6865 buildCounterReportSchedule--; |
6058 } | 6866 } |
6059 | 6867 |
6060 core.int buildCounterReport = 0; | 6868 core.int buildCounterReport = 0; |
6061 buildReport() { | 6869 buildReport() { |
6062 var o = new api.Report(); | 6870 var o = new api.Report(); |
6063 buildCounterReport++; | 6871 buildCounterReport++; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6103 unittest.expect(o.ownerProfileId, unittest.equals('foo')); | 6911 unittest.expect(o.ownerProfileId, unittest.equals('foo')); |
6104 checkReportPathToConversionCriteria(o.pathToConversionCriteria); | 6912 checkReportPathToConversionCriteria(o.pathToConversionCriteria); |
6105 checkReportReachCriteria(o.reachCriteria); | 6913 checkReportReachCriteria(o.reachCriteria); |
6106 checkReportSchedule(o.schedule); | 6914 checkReportSchedule(o.schedule); |
6107 unittest.expect(o.subAccountId, unittest.equals('foo')); | 6915 unittest.expect(o.subAccountId, unittest.equals('foo')); |
6108 unittest.expect(o.type, unittest.equals('foo')); | 6916 unittest.expect(o.type, unittest.equals('foo')); |
6109 } | 6917 } |
6110 buildCounterReport--; | 6918 buildCounterReport--; |
6111 } | 6919 } |
6112 | 6920 |
6113 buildUnnamed396() { | 6921 buildUnnamed1196() { |
6114 var o = new core.List<api.Dimension>(); | 6922 var o = new core.List<api.Dimension>(); |
6115 o.add(buildDimension()); | 6923 o.add(buildDimension()); |
6116 o.add(buildDimension()); | 6924 o.add(buildDimension()); |
6117 return o; | 6925 return o; |
6118 } | 6926 } |
6119 | 6927 |
6120 checkUnnamed396(core.List<api.Dimension> o) { | 6928 checkUnnamed1196(core.List<api.Dimension> o) { |
6121 unittest.expect(o, unittest.hasLength(2)); | 6929 unittest.expect(o, unittest.hasLength(2)); |
6122 checkDimension(o[0]); | 6930 checkDimension(o[0]); |
6123 checkDimension(o[1]); | 6931 checkDimension(o[1]); |
6124 } | 6932 } |
6125 | 6933 |
6126 buildUnnamed397() { | 6934 buildUnnamed1197() { |
6127 var o = new core.List<api.Dimension>(); | 6935 var o = new core.List<api.Dimension>(); |
6128 o.add(buildDimension()); | 6936 o.add(buildDimension()); |
6129 o.add(buildDimension()); | 6937 o.add(buildDimension()); |
6130 return o; | 6938 return o; |
6131 } | 6939 } |
6132 | 6940 |
6133 checkUnnamed397(core.List<api.Dimension> o) { | 6941 checkUnnamed1197(core.List<api.Dimension> o) { |
6134 unittest.expect(o, unittest.hasLength(2)); | 6942 unittest.expect(o, unittest.hasLength(2)); |
6135 checkDimension(o[0]); | 6943 checkDimension(o[0]); |
6136 checkDimension(o[1]); | 6944 checkDimension(o[1]); |
6137 } | 6945 } |
6138 | 6946 |
6139 buildUnnamed398() { | 6947 buildUnnamed1198() { |
6140 var o = new core.List<api.Metric>(); | 6948 var o = new core.List<api.Metric>(); |
6141 o.add(buildMetric()); | 6949 o.add(buildMetric()); |
6142 o.add(buildMetric()); | 6950 o.add(buildMetric()); |
6143 return o; | 6951 return o; |
6144 } | 6952 } |
6145 | 6953 |
6146 checkUnnamed398(core.List<api.Metric> o) { | 6954 checkUnnamed1198(core.List<api.Metric> o) { |
6147 unittest.expect(o, unittest.hasLength(2)); | 6955 unittest.expect(o, unittest.hasLength(2)); |
6148 checkMetric(o[0]); | 6956 checkMetric(o[0]); |
6149 checkMetric(o[1]); | 6957 checkMetric(o[1]); |
6150 } | 6958 } |
6151 | 6959 |
6152 buildUnnamed399() { | 6960 buildUnnamed1199() { |
6153 var o = new core.List<api.Metric>(); | 6961 var o = new core.List<api.Metric>(); |
6154 o.add(buildMetric()); | 6962 o.add(buildMetric()); |
6155 o.add(buildMetric()); | 6963 o.add(buildMetric()); |
6156 return o; | 6964 return o; |
6157 } | 6965 } |
6158 | 6966 |
6159 checkUnnamed399(core.List<api.Metric> o) { | 6967 checkUnnamed1199(core.List<api.Metric> o) { |
6160 unittest.expect(o, unittest.hasLength(2)); | 6968 unittest.expect(o, unittest.hasLength(2)); |
6161 checkMetric(o[0]); | 6969 checkMetric(o[0]); |
6162 checkMetric(o[1]); | 6970 checkMetric(o[1]); |
6163 } | 6971 } |
6164 | 6972 |
6165 core.int buildCounterReportCompatibleFields = 0; | 6973 core.int buildCounterReportCompatibleFields = 0; |
6166 buildReportCompatibleFields() { | 6974 buildReportCompatibleFields() { |
6167 var o = new api.ReportCompatibleFields(); | 6975 var o = new api.ReportCompatibleFields(); |
6168 buildCounterReportCompatibleFields++; | 6976 buildCounterReportCompatibleFields++; |
6169 if (buildCounterReportCompatibleFields < 3) { | 6977 if (buildCounterReportCompatibleFields < 3) { |
6170 o.dimensionFilters = buildUnnamed396(); | 6978 o.dimensionFilters = buildUnnamed1196(); |
6171 o.dimensions = buildUnnamed397(); | 6979 o.dimensions = buildUnnamed1197(); |
6172 o.kind = "foo"; | 6980 o.kind = "foo"; |
6173 o.metrics = buildUnnamed398(); | 6981 o.metrics = buildUnnamed1198(); |
6174 o.pivotedActivityMetrics = buildUnnamed399(); | 6982 o.pivotedActivityMetrics = buildUnnamed1199(); |
6175 } | 6983 } |
6176 buildCounterReportCompatibleFields--; | 6984 buildCounterReportCompatibleFields--; |
6177 return o; | 6985 return o; |
6178 } | 6986 } |
6179 | 6987 |
6180 checkReportCompatibleFields(api.ReportCompatibleFields o) { | 6988 checkReportCompatibleFields(api.ReportCompatibleFields o) { |
6181 buildCounterReportCompatibleFields++; | 6989 buildCounterReportCompatibleFields++; |
6182 if (buildCounterReportCompatibleFields < 3) { | 6990 if (buildCounterReportCompatibleFields < 3) { |
6183 checkUnnamed396(o.dimensionFilters); | 6991 checkUnnamed1196(o.dimensionFilters); |
6184 checkUnnamed397(o.dimensions); | 6992 checkUnnamed1197(o.dimensions); |
6185 unittest.expect(o.kind, unittest.equals('foo')); | 6993 unittest.expect(o.kind, unittest.equals('foo')); |
6186 checkUnnamed398(o.metrics); | 6994 checkUnnamed1198(o.metrics); |
6187 checkUnnamed399(o.pivotedActivityMetrics); | 6995 checkUnnamed1199(o.pivotedActivityMetrics); |
6188 } | 6996 } |
6189 buildCounterReportCompatibleFields--; | 6997 buildCounterReportCompatibleFields--; |
6190 } | 6998 } |
6191 | 6999 |
6192 buildUnnamed400() { | 7000 buildUnnamed1200() { |
6193 var o = new core.List<api.Report>(); | 7001 var o = new core.List<api.Report>(); |
6194 o.add(buildReport()); | 7002 o.add(buildReport()); |
6195 o.add(buildReport()); | 7003 o.add(buildReport()); |
6196 return o; | 7004 return o; |
6197 } | 7005 } |
6198 | 7006 |
6199 checkUnnamed400(core.List<api.Report> o) { | 7007 checkUnnamed1200(core.List<api.Report> o) { |
6200 unittest.expect(o, unittest.hasLength(2)); | 7008 unittest.expect(o, unittest.hasLength(2)); |
6201 checkReport(o[0]); | 7009 checkReport(o[0]); |
6202 checkReport(o[1]); | 7010 checkReport(o[1]); |
6203 } | 7011 } |
6204 | 7012 |
6205 core.int buildCounterReportList = 0; | 7013 core.int buildCounterReportList = 0; |
6206 buildReportList() { | 7014 buildReportList() { |
6207 var o = new api.ReportList(); | 7015 var o = new api.ReportList(); |
6208 buildCounterReportList++; | 7016 buildCounterReportList++; |
6209 if (buildCounterReportList < 3) { | 7017 if (buildCounterReportList < 3) { |
6210 o.etag = "foo"; | 7018 o.etag = "foo"; |
6211 o.items = buildUnnamed400(); | 7019 o.items = buildUnnamed1200(); |
6212 o.kind = "foo"; | 7020 o.kind = "foo"; |
6213 o.nextPageToken = "foo"; | 7021 o.nextPageToken = "foo"; |
6214 } | 7022 } |
6215 buildCounterReportList--; | 7023 buildCounterReportList--; |
6216 return o; | 7024 return o; |
6217 } | 7025 } |
6218 | 7026 |
6219 checkReportList(api.ReportList o) { | 7027 checkReportList(api.ReportList o) { |
6220 buildCounterReportList++; | 7028 buildCounterReportList++; |
6221 if (buildCounterReportList < 3) { | 7029 if (buildCounterReportList < 3) { |
6222 unittest.expect(o.etag, unittest.equals('foo')); | 7030 unittest.expect(o.etag, unittest.equals('foo')); |
6223 checkUnnamed400(o.items); | 7031 checkUnnamed1200(o.items); |
6224 unittest.expect(o.kind, unittest.equals('foo')); | 7032 unittest.expect(o.kind, unittest.equals('foo')); |
6225 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7033 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6226 } | 7034 } |
6227 buildCounterReportList--; | 7035 buildCounterReportList--; |
6228 } | 7036 } |
6229 | 7037 |
6230 core.int buildCounterReportsConfiguration = 0; | 7038 core.int buildCounterReportsConfiguration = 0; |
6231 buildReportsConfiguration() { | 7039 buildReportsConfiguration() { |
6232 var o = new api.ReportsConfiguration(); | 7040 var o = new api.ReportsConfiguration(); |
6233 buildCounterReportsConfiguration++; | 7041 buildCounterReportsConfiguration++; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6266 checkRichMediaExitOverride(api.RichMediaExitOverride o) { | 7074 checkRichMediaExitOverride(api.RichMediaExitOverride o) { |
6267 buildCounterRichMediaExitOverride++; | 7075 buildCounterRichMediaExitOverride++; |
6268 if (buildCounterRichMediaExitOverride < 3) { | 7076 if (buildCounterRichMediaExitOverride < 3) { |
6269 unittest.expect(o.customExitUrl, unittest.equals('foo')); | 7077 unittest.expect(o.customExitUrl, unittest.equals('foo')); |
6270 unittest.expect(o.exitId, unittest.equals('foo')); | 7078 unittest.expect(o.exitId, unittest.equals('foo')); |
6271 unittest.expect(o.useCustomExitUrl, unittest.isTrue); | 7079 unittest.expect(o.useCustomExitUrl, unittest.isTrue); |
6272 } | 7080 } |
6273 buildCounterRichMediaExitOverride--; | 7081 buildCounterRichMediaExitOverride--; |
6274 } | 7082 } |
6275 | 7083 |
6276 buildUnnamed401() { | 7084 buildUnnamed1201() { |
6277 var o = new core.List<api.SiteContact>(); | 7085 var o = new core.List<api.SiteContact>(); |
6278 o.add(buildSiteContact()); | 7086 o.add(buildSiteContact()); |
6279 o.add(buildSiteContact()); | 7087 o.add(buildSiteContact()); |
6280 return o; | 7088 return o; |
6281 } | 7089 } |
6282 | 7090 |
6283 checkUnnamed401(core.List<api.SiteContact> o) { | 7091 checkUnnamed1201(core.List<api.SiteContact> o) { |
6284 unittest.expect(o, unittest.hasLength(2)); | 7092 unittest.expect(o, unittest.hasLength(2)); |
6285 checkSiteContact(o[0]); | 7093 checkSiteContact(o[0]); |
6286 checkSiteContact(o[1]); | 7094 checkSiteContact(o[1]); |
6287 } | 7095 } |
6288 | 7096 |
6289 core.int buildCounterSite = 0; | 7097 core.int buildCounterSite = 0; |
6290 buildSite() { | 7098 buildSite() { |
6291 var o = new api.Site(); | 7099 var o = new api.Site(); |
6292 buildCounterSite++; | 7100 buildCounterSite++; |
6293 if (buildCounterSite < 3) { | 7101 if (buildCounterSite < 3) { |
6294 o.accountId = "foo"; | 7102 o.accountId = "foo"; |
6295 o.approved = true; | 7103 o.approved = true; |
6296 o.directorySiteId = "foo"; | 7104 o.directorySiteId = "foo"; |
6297 o.directorySiteIdDimensionValue = buildDimensionValue(); | 7105 o.directorySiteIdDimensionValue = buildDimensionValue(); |
6298 o.id = "foo"; | 7106 o.id = "foo"; |
6299 o.idDimensionValue = buildDimensionValue(); | 7107 o.idDimensionValue = buildDimensionValue(); |
6300 o.keyName = "foo"; | 7108 o.keyName = "foo"; |
6301 o.kind = "foo"; | 7109 o.kind = "foo"; |
6302 o.name = "foo"; | 7110 o.name = "foo"; |
6303 o.siteContacts = buildUnnamed401(); | 7111 o.siteContacts = buildUnnamed1201(); |
6304 o.siteSettings = buildSiteSettings(); | 7112 o.siteSettings = buildSiteSettings(); |
6305 o.subaccountId = "foo"; | 7113 o.subaccountId = "foo"; |
6306 } | 7114 } |
6307 buildCounterSite--; | 7115 buildCounterSite--; |
6308 return o; | 7116 return o; |
6309 } | 7117 } |
6310 | 7118 |
6311 checkSite(api.Site o) { | 7119 checkSite(api.Site o) { |
6312 buildCounterSite++; | 7120 buildCounterSite++; |
6313 if (buildCounterSite < 3) { | 7121 if (buildCounterSite < 3) { |
6314 unittest.expect(o.accountId, unittest.equals('foo')); | 7122 unittest.expect(o.accountId, unittest.equals('foo')); |
6315 unittest.expect(o.approved, unittest.isTrue); | 7123 unittest.expect(o.approved, unittest.isTrue); |
6316 unittest.expect(o.directorySiteId, unittest.equals('foo')); | 7124 unittest.expect(o.directorySiteId, unittest.equals('foo')); |
6317 checkDimensionValue(o.directorySiteIdDimensionValue); | 7125 checkDimensionValue(o.directorySiteIdDimensionValue); |
6318 unittest.expect(o.id, unittest.equals('foo')); | 7126 unittest.expect(o.id, unittest.equals('foo')); |
6319 checkDimensionValue(o.idDimensionValue); | 7127 checkDimensionValue(o.idDimensionValue); |
6320 unittest.expect(o.keyName, unittest.equals('foo')); | 7128 unittest.expect(o.keyName, unittest.equals('foo')); |
6321 unittest.expect(o.kind, unittest.equals('foo')); | 7129 unittest.expect(o.kind, unittest.equals('foo')); |
6322 unittest.expect(o.name, unittest.equals('foo')); | 7130 unittest.expect(o.name, unittest.equals('foo')); |
6323 checkUnnamed401(o.siteContacts); | 7131 checkUnnamed1201(o.siteContacts); |
6324 checkSiteSettings(o.siteSettings); | 7132 checkSiteSettings(o.siteSettings); |
6325 unittest.expect(o.subaccountId, unittest.equals('foo')); | 7133 unittest.expect(o.subaccountId, unittest.equals('foo')); |
6326 } | 7134 } |
6327 buildCounterSite--; | 7135 buildCounterSite--; |
6328 } | 7136 } |
6329 | 7137 |
6330 core.int buildCounterSiteContact = 0; | 7138 core.int buildCounterSiteContact = 0; |
6331 buildSiteContact() { | 7139 buildSiteContact() { |
6332 var o = new api.SiteContact(); | 7140 var o = new api.SiteContact(); |
6333 buildCounterSiteContact++; | 7141 buildCounterSiteContact++; |
6334 if (buildCounterSiteContact < 3) { | 7142 if (buildCounterSiteContact < 3) { |
| 7143 o.address = "foo"; |
6335 o.contactType = "foo"; | 7144 o.contactType = "foo"; |
6336 o.email = "foo"; | 7145 o.email = "foo"; |
6337 o.firstName = "foo"; | 7146 o.firstName = "foo"; |
6338 o.id = "foo"; | 7147 o.id = "foo"; |
6339 o.lastName = "foo"; | 7148 o.lastName = "foo"; |
| 7149 o.phone = "foo"; |
| 7150 o.title = "foo"; |
6340 } | 7151 } |
6341 buildCounterSiteContact--; | 7152 buildCounterSiteContact--; |
6342 return o; | 7153 return o; |
6343 } | 7154 } |
6344 | 7155 |
6345 checkSiteContact(api.SiteContact o) { | 7156 checkSiteContact(api.SiteContact o) { |
6346 buildCounterSiteContact++; | 7157 buildCounterSiteContact++; |
6347 if (buildCounterSiteContact < 3) { | 7158 if (buildCounterSiteContact < 3) { |
| 7159 unittest.expect(o.address, unittest.equals('foo')); |
6348 unittest.expect(o.contactType, unittest.equals('foo')); | 7160 unittest.expect(o.contactType, unittest.equals('foo')); |
6349 unittest.expect(o.email, unittest.equals('foo')); | 7161 unittest.expect(o.email, unittest.equals('foo')); |
6350 unittest.expect(o.firstName, unittest.equals('foo')); | 7162 unittest.expect(o.firstName, unittest.equals('foo')); |
6351 unittest.expect(o.id, unittest.equals('foo')); | 7163 unittest.expect(o.id, unittest.equals('foo')); |
6352 unittest.expect(o.lastName, unittest.equals('foo')); | 7164 unittest.expect(o.lastName, unittest.equals('foo')); |
| 7165 unittest.expect(o.phone, unittest.equals('foo')); |
| 7166 unittest.expect(o.title, unittest.equals('foo')); |
6353 } | 7167 } |
6354 buildCounterSiteContact--; | 7168 buildCounterSiteContact--; |
6355 } | 7169 } |
6356 | 7170 |
6357 core.int buildCounterSiteSettings = 0; | 7171 core.int buildCounterSiteSettings = 0; |
6358 buildSiteSettings() { | 7172 buildSiteSettings() { |
6359 var o = new api.SiteSettings(); | 7173 var o = new api.SiteSettings(); |
6360 buildCounterSiteSettings++; | 7174 buildCounterSiteSettings++; |
6361 if (buildCounterSiteSettings < 3) { | 7175 if (buildCounterSiteSettings < 3) { |
6362 o.activeViewOptOut = true; | 7176 o.activeViewOptOut = true; |
(...skipping 13 matching lines...) Expand all Loading... |
6376 unittest.expect(o.activeViewOptOut, unittest.isTrue); | 7190 unittest.expect(o.activeViewOptOut, unittest.isTrue); |
6377 checkCreativeSettings(o.creativeSettings); | 7191 checkCreativeSettings(o.creativeSettings); |
6378 unittest.expect(o.disableBrandSafeAds, unittest.isTrue); | 7192 unittest.expect(o.disableBrandSafeAds, unittest.isTrue); |
6379 unittest.expect(o.disableNewCookie, unittest.isTrue); | 7193 unittest.expect(o.disableNewCookie, unittest.isTrue); |
6380 checkLookbackConfiguration(o.lookbackConfiguration); | 7194 checkLookbackConfiguration(o.lookbackConfiguration); |
6381 checkTagSetting(o.tagSetting); | 7195 checkTagSetting(o.tagSetting); |
6382 } | 7196 } |
6383 buildCounterSiteSettings--; | 7197 buildCounterSiteSettings--; |
6384 } | 7198 } |
6385 | 7199 |
6386 buildUnnamed402() { | 7200 buildUnnamed1202() { |
6387 var o = new core.List<api.Site>(); | 7201 var o = new core.List<api.Site>(); |
6388 o.add(buildSite()); | 7202 o.add(buildSite()); |
6389 o.add(buildSite()); | 7203 o.add(buildSite()); |
6390 return o; | 7204 return o; |
6391 } | 7205 } |
6392 | 7206 |
6393 checkUnnamed402(core.List<api.Site> o) { | 7207 checkUnnamed1202(core.List<api.Site> o) { |
6394 unittest.expect(o, unittest.hasLength(2)); | 7208 unittest.expect(o, unittest.hasLength(2)); |
6395 checkSite(o[0]); | 7209 checkSite(o[0]); |
6396 checkSite(o[1]); | 7210 checkSite(o[1]); |
6397 } | 7211 } |
6398 | 7212 |
6399 core.int buildCounterSitesListResponse = 0; | 7213 core.int buildCounterSitesListResponse = 0; |
6400 buildSitesListResponse() { | 7214 buildSitesListResponse() { |
6401 var o = new api.SitesListResponse(); | 7215 var o = new api.SitesListResponse(); |
6402 buildCounterSitesListResponse++; | 7216 buildCounterSitesListResponse++; |
6403 if (buildCounterSitesListResponse < 3) { | 7217 if (buildCounterSitesListResponse < 3) { |
6404 o.kind = "foo"; | 7218 o.kind = "foo"; |
6405 o.nextPageToken = "foo"; | 7219 o.nextPageToken = "foo"; |
6406 o.sites = buildUnnamed402(); | 7220 o.sites = buildUnnamed1202(); |
6407 } | 7221 } |
6408 buildCounterSitesListResponse--; | 7222 buildCounterSitesListResponse--; |
6409 return o; | 7223 return o; |
6410 } | 7224 } |
6411 | 7225 |
6412 checkSitesListResponse(api.SitesListResponse o) { | 7226 checkSitesListResponse(api.SitesListResponse o) { |
6413 buildCounterSitesListResponse++; | 7227 buildCounterSitesListResponse++; |
6414 if (buildCounterSitesListResponse < 3) { | 7228 if (buildCounterSitesListResponse < 3) { |
6415 unittest.expect(o.kind, unittest.equals('foo')); | 7229 unittest.expect(o.kind, unittest.equals('foo')); |
6416 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7230 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6417 checkUnnamed402(o.sites); | 7231 checkUnnamed1202(o.sites); |
6418 } | 7232 } |
6419 buildCounterSitesListResponse--; | 7233 buildCounterSitesListResponse--; |
6420 } | 7234 } |
6421 | 7235 |
6422 core.int buildCounterSize = 0; | 7236 core.int buildCounterSize = 0; |
6423 buildSize() { | 7237 buildSize() { |
6424 var o = new api.Size(); | 7238 var o = new api.Size(); |
6425 buildCounterSize++; | 7239 buildCounterSize++; |
6426 if (buildCounterSize < 3) { | 7240 if (buildCounterSize < 3) { |
6427 o.height = 42; | 7241 o.height = 42; |
(...skipping 11 matching lines...) Expand all Loading... |
6439 if (buildCounterSize < 3) { | 7253 if (buildCounterSize < 3) { |
6440 unittest.expect(o.height, unittest.equals(42)); | 7254 unittest.expect(o.height, unittest.equals(42)); |
6441 unittest.expect(o.iab, unittest.isTrue); | 7255 unittest.expect(o.iab, unittest.isTrue); |
6442 unittest.expect(o.id, unittest.equals('foo')); | 7256 unittest.expect(o.id, unittest.equals('foo')); |
6443 unittest.expect(o.kind, unittest.equals('foo')); | 7257 unittest.expect(o.kind, unittest.equals('foo')); |
6444 unittest.expect(o.width, unittest.equals(42)); | 7258 unittest.expect(o.width, unittest.equals(42)); |
6445 } | 7259 } |
6446 buildCounterSize--; | 7260 buildCounterSize--; |
6447 } | 7261 } |
6448 | 7262 |
6449 buildUnnamed403() { | 7263 buildUnnamed1203() { |
6450 var o = new core.List<api.Size>(); | 7264 var o = new core.List<api.Size>(); |
6451 o.add(buildSize()); | 7265 o.add(buildSize()); |
6452 o.add(buildSize()); | 7266 o.add(buildSize()); |
6453 return o; | 7267 return o; |
6454 } | 7268 } |
6455 | 7269 |
6456 checkUnnamed403(core.List<api.Size> o) { | 7270 checkUnnamed1203(core.List<api.Size> o) { |
6457 unittest.expect(o, unittest.hasLength(2)); | 7271 unittest.expect(o, unittest.hasLength(2)); |
6458 checkSize(o[0]); | 7272 checkSize(o[0]); |
6459 checkSize(o[1]); | 7273 checkSize(o[1]); |
6460 } | 7274 } |
6461 | 7275 |
6462 core.int buildCounterSizesListResponse = 0; | 7276 core.int buildCounterSizesListResponse = 0; |
6463 buildSizesListResponse() { | 7277 buildSizesListResponse() { |
6464 var o = new api.SizesListResponse(); | 7278 var o = new api.SizesListResponse(); |
6465 buildCounterSizesListResponse++; | 7279 buildCounterSizesListResponse++; |
6466 if (buildCounterSizesListResponse < 3) { | 7280 if (buildCounterSizesListResponse < 3) { |
6467 o.kind = "foo"; | 7281 o.kind = "foo"; |
6468 o.sizes = buildUnnamed403(); | 7282 o.sizes = buildUnnamed1203(); |
6469 } | 7283 } |
6470 buildCounterSizesListResponse--; | 7284 buildCounterSizesListResponse--; |
6471 return o; | 7285 return o; |
6472 } | 7286 } |
6473 | 7287 |
6474 checkSizesListResponse(api.SizesListResponse o) { | 7288 checkSizesListResponse(api.SizesListResponse o) { |
6475 buildCounterSizesListResponse++; | 7289 buildCounterSizesListResponse++; |
6476 if (buildCounterSizesListResponse < 3) { | 7290 if (buildCounterSizesListResponse < 3) { |
6477 unittest.expect(o.kind, unittest.equals('foo')); | 7291 unittest.expect(o.kind, unittest.equals('foo')); |
6478 checkUnnamed403(o.sizes); | 7292 checkUnnamed1203(o.sizes); |
6479 } | 7293 } |
6480 buildCounterSizesListResponse--; | 7294 buildCounterSizesListResponse--; |
6481 } | 7295 } |
6482 | 7296 |
6483 core.int buildCounterSortedDimension = 0; | 7297 core.int buildCounterSortedDimension = 0; |
6484 buildSortedDimension() { | 7298 buildSortedDimension() { |
6485 var o = new api.SortedDimension(); | 7299 var o = new api.SortedDimension(); |
6486 buildCounterSortedDimension++; | 7300 buildCounterSortedDimension++; |
6487 if (buildCounterSortedDimension < 3) { | 7301 if (buildCounterSortedDimension < 3) { |
6488 o.kind = "foo"; | 7302 o.kind = "foo"; |
6489 o.name = "foo"; | 7303 o.name = "foo"; |
6490 o.sortOrder = "foo"; | 7304 o.sortOrder = "foo"; |
6491 } | 7305 } |
6492 buildCounterSortedDimension--; | 7306 buildCounterSortedDimension--; |
6493 return o; | 7307 return o; |
6494 } | 7308 } |
6495 | 7309 |
6496 checkSortedDimension(api.SortedDimension o) { | 7310 checkSortedDimension(api.SortedDimension o) { |
6497 buildCounterSortedDimension++; | 7311 buildCounterSortedDimension++; |
6498 if (buildCounterSortedDimension < 3) { | 7312 if (buildCounterSortedDimension < 3) { |
6499 unittest.expect(o.kind, unittest.equals('foo')); | 7313 unittest.expect(o.kind, unittest.equals('foo')); |
6500 unittest.expect(o.name, unittest.equals('foo')); | 7314 unittest.expect(o.name, unittest.equals('foo')); |
6501 unittest.expect(o.sortOrder, unittest.equals('foo')); | 7315 unittest.expect(o.sortOrder, unittest.equals('foo')); |
6502 } | 7316 } |
6503 buildCounterSortedDimension--; | 7317 buildCounterSortedDimension--; |
6504 } | 7318 } |
6505 | 7319 |
6506 buildUnnamed404() { | 7320 buildUnnamed1204() { |
6507 var o = new core.List<core.String>(); | 7321 var o = new core.List<core.String>(); |
6508 o.add("foo"); | 7322 o.add("foo"); |
6509 o.add("foo"); | 7323 o.add("foo"); |
6510 return o; | 7324 return o; |
6511 } | 7325 } |
6512 | 7326 |
6513 checkUnnamed404(core.List<core.String> o) { | 7327 checkUnnamed1204(core.List<core.String> o) { |
6514 unittest.expect(o, unittest.hasLength(2)); | 7328 unittest.expect(o, unittest.hasLength(2)); |
6515 unittest.expect(o[0], unittest.equals('foo')); | 7329 unittest.expect(o[0], unittest.equals('foo')); |
6516 unittest.expect(o[1], unittest.equals('foo')); | 7330 unittest.expect(o[1], unittest.equals('foo')); |
6517 } | 7331 } |
6518 | 7332 |
6519 core.int buildCounterSubaccount = 0; | 7333 core.int buildCounterSubaccount = 0; |
6520 buildSubaccount() { | 7334 buildSubaccount() { |
6521 var o = new api.Subaccount(); | 7335 var o = new api.Subaccount(); |
6522 buildCounterSubaccount++; | 7336 buildCounterSubaccount++; |
6523 if (buildCounterSubaccount < 3) { | 7337 if (buildCounterSubaccount < 3) { |
6524 o.accountId = "foo"; | 7338 o.accountId = "foo"; |
6525 o.availablePermissionIds = buildUnnamed404(); | 7339 o.availablePermissionIds = buildUnnamed1204(); |
6526 o.id = "foo"; | 7340 o.id = "foo"; |
6527 o.kind = "foo"; | 7341 o.kind = "foo"; |
6528 o.name = "foo"; | 7342 o.name = "foo"; |
6529 } | 7343 } |
6530 buildCounterSubaccount--; | 7344 buildCounterSubaccount--; |
6531 return o; | 7345 return o; |
6532 } | 7346 } |
6533 | 7347 |
6534 checkSubaccount(api.Subaccount o) { | 7348 checkSubaccount(api.Subaccount o) { |
6535 buildCounterSubaccount++; | 7349 buildCounterSubaccount++; |
6536 if (buildCounterSubaccount < 3) { | 7350 if (buildCounterSubaccount < 3) { |
6537 unittest.expect(o.accountId, unittest.equals('foo')); | 7351 unittest.expect(o.accountId, unittest.equals('foo')); |
6538 checkUnnamed404(o.availablePermissionIds); | 7352 checkUnnamed1204(o.availablePermissionIds); |
6539 unittest.expect(o.id, unittest.equals('foo')); | 7353 unittest.expect(o.id, unittest.equals('foo')); |
6540 unittest.expect(o.kind, unittest.equals('foo')); | 7354 unittest.expect(o.kind, unittest.equals('foo')); |
6541 unittest.expect(o.name, unittest.equals('foo')); | 7355 unittest.expect(o.name, unittest.equals('foo')); |
6542 } | 7356 } |
6543 buildCounterSubaccount--; | 7357 buildCounterSubaccount--; |
6544 } | 7358 } |
6545 | 7359 |
6546 buildUnnamed405() { | 7360 buildUnnamed1205() { |
6547 var o = new core.List<api.Subaccount>(); | 7361 var o = new core.List<api.Subaccount>(); |
6548 o.add(buildSubaccount()); | 7362 o.add(buildSubaccount()); |
6549 o.add(buildSubaccount()); | 7363 o.add(buildSubaccount()); |
6550 return o; | 7364 return o; |
6551 } | 7365 } |
6552 | 7366 |
6553 checkUnnamed405(core.List<api.Subaccount> o) { | 7367 checkUnnamed1205(core.List<api.Subaccount> o) { |
6554 unittest.expect(o, unittest.hasLength(2)); | 7368 unittest.expect(o, unittest.hasLength(2)); |
6555 checkSubaccount(o[0]); | 7369 checkSubaccount(o[0]); |
6556 checkSubaccount(o[1]); | 7370 checkSubaccount(o[1]); |
6557 } | 7371 } |
6558 | 7372 |
6559 core.int buildCounterSubaccountsListResponse = 0; | 7373 core.int buildCounterSubaccountsListResponse = 0; |
6560 buildSubaccountsListResponse() { | 7374 buildSubaccountsListResponse() { |
6561 var o = new api.SubaccountsListResponse(); | 7375 var o = new api.SubaccountsListResponse(); |
6562 buildCounterSubaccountsListResponse++; | 7376 buildCounterSubaccountsListResponse++; |
6563 if (buildCounterSubaccountsListResponse < 3) { | 7377 if (buildCounterSubaccountsListResponse < 3) { |
6564 o.kind = "foo"; | 7378 o.kind = "foo"; |
6565 o.nextPageToken = "foo"; | 7379 o.nextPageToken = "foo"; |
6566 o.subaccounts = buildUnnamed405(); | 7380 o.subaccounts = buildUnnamed1205(); |
6567 } | 7381 } |
6568 buildCounterSubaccountsListResponse--; | 7382 buildCounterSubaccountsListResponse--; |
6569 return o; | 7383 return o; |
6570 } | 7384 } |
6571 | 7385 |
6572 checkSubaccountsListResponse(api.SubaccountsListResponse o) { | 7386 checkSubaccountsListResponse(api.SubaccountsListResponse o) { |
6573 buildCounterSubaccountsListResponse++; | 7387 buildCounterSubaccountsListResponse++; |
6574 if (buildCounterSubaccountsListResponse < 3) { | 7388 if (buildCounterSubaccountsListResponse < 3) { |
6575 unittest.expect(o.kind, unittest.equals('foo')); | 7389 unittest.expect(o.kind, unittest.equals('foo')); |
6576 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7390 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6577 checkUnnamed405(o.subaccounts); | 7391 checkUnnamed1205(o.subaccounts); |
6578 } | 7392 } |
6579 buildCounterSubaccountsListResponse--; | 7393 buildCounterSubaccountsListResponse--; |
6580 } | 7394 } |
6581 | 7395 |
6582 core.int buildCounterTagData = 0; | 7396 core.int buildCounterTagData = 0; |
6583 buildTagData() { | 7397 buildTagData() { |
6584 var o = new api.TagData(); | 7398 var o = new api.TagData(); |
6585 buildCounterTagData++; | 7399 buildCounterTagData++; |
6586 if (buildCounterTagData < 3) { | 7400 if (buildCounterTagData < 3) { |
6587 o.adId = "foo"; | 7401 o.adId = "foo"; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6666 | 7480 |
6667 checkTargetWindow(api.TargetWindow o) { | 7481 checkTargetWindow(api.TargetWindow o) { |
6668 buildCounterTargetWindow++; | 7482 buildCounterTargetWindow++; |
6669 if (buildCounterTargetWindow < 3) { | 7483 if (buildCounterTargetWindow < 3) { |
6670 unittest.expect(o.customHtml, unittest.equals('foo')); | 7484 unittest.expect(o.customHtml, unittest.equals('foo')); |
6671 unittest.expect(o.targetWindowOption, unittest.equals('foo')); | 7485 unittest.expect(o.targetWindowOption, unittest.equals('foo')); |
6672 } | 7486 } |
6673 buildCounterTargetWindow--; | 7487 buildCounterTargetWindow--; |
6674 } | 7488 } |
6675 | 7489 |
6676 buildUnnamed406() { | 7490 core.int buildCounterTargetableRemarketingList = 0; |
| 7491 buildTargetableRemarketingList() { |
| 7492 var o = new api.TargetableRemarketingList(); |
| 7493 buildCounterTargetableRemarketingList++; |
| 7494 if (buildCounterTargetableRemarketingList < 3) { |
| 7495 o.accountId = "foo"; |
| 7496 o.active = true; |
| 7497 o.advertiserId = "foo"; |
| 7498 o.advertiserIdDimensionValue = buildDimensionValue(); |
| 7499 o.description = "foo"; |
| 7500 o.id = "foo"; |
| 7501 o.kind = "foo"; |
| 7502 o.lifeSpan = "foo"; |
| 7503 o.listSize = "foo"; |
| 7504 o.listSource = "foo"; |
| 7505 o.name = "foo"; |
| 7506 o.subaccountId = "foo"; |
| 7507 } |
| 7508 buildCounterTargetableRemarketingList--; |
| 7509 return o; |
| 7510 } |
| 7511 |
| 7512 checkTargetableRemarketingList(api.TargetableRemarketingList o) { |
| 7513 buildCounterTargetableRemarketingList++; |
| 7514 if (buildCounterTargetableRemarketingList < 3) { |
| 7515 unittest.expect(o.accountId, unittest.equals('foo')); |
| 7516 unittest.expect(o.active, unittest.isTrue); |
| 7517 unittest.expect(o.advertiserId, unittest.equals('foo')); |
| 7518 checkDimensionValue(o.advertiserIdDimensionValue); |
| 7519 unittest.expect(o.description, unittest.equals('foo')); |
| 7520 unittest.expect(o.id, unittest.equals('foo')); |
| 7521 unittest.expect(o.kind, unittest.equals('foo')); |
| 7522 unittest.expect(o.lifeSpan, unittest.equals('foo')); |
| 7523 unittest.expect(o.listSize, unittest.equals('foo')); |
| 7524 unittest.expect(o.listSource, unittest.equals('foo')); |
| 7525 unittest.expect(o.name, unittest.equals('foo')); |
| 7526 unittest.expect(o.subaccountId, unittest.equals('foo')); |
| 7527 } |
| 7528 buildCounterTargetableRemarketingList--; |
| 7529 } |
| 7530 |
| 7531 buildUnnamed1206() { |
| 7532 var o = new core.List<api.TargetableRemarketingList>(); |
| 7533 o.add(buildTargetableRemarketingList()); |
| 7534 o.add(buildTargetableRemarketingList()); |
| 7535 return o; |
| 7536 } |
| 7537 |
| 7538 checkUnnamed1206(core.List<api.TargetableRemarketingList> o) { |
| 7539 unittest.expect(o, unittest.hasLength(2)); |
| 7540 checkTargetableRemarketingList(o[0]); |
| 7541 checkTargetableRemarketingList(o[1]); |
| 7542 } |
| 7543 |
| 7544 core.int buildCounterTargetableRemarketingListsListResponse = 0; |
| 7545 buildTargetableRemarketingListsListResponse() { |
| 7546 var o = new api.TargetableRemarketingListsListResponse(); |
| 7547 buildCounterTargetableRemarketingListsListResponse++; |
| 7548 if (buildCounterTargetableRemarketingListsListResponse < 3) { |
| 7549 o.kind = "foo"; |
| 7550 o.nextPageToken = "foo"; |
| 7551 o.targetableRemarketingLists = buildUnnamed1206(); |
| 7552 } |
| 7553 buildCounterTargetableRemarketingListsListResponse--; |
| 7554 return o; |
| 7555 } |
| 7556 |
| 7557 checkTargetableRemarketingListsListResponse(api.TargetableRemarketingListsListRe
sponse o) { |
| 7558 buildCounterTargetableRemarketingListsListResponse++; |
| 7559 if (buildCounterTargetableRemarketingListsListResponse < 3) { |
| 7560 unittest.expect(o.kind, unittest.equals('foo')); |
| 7561 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 7562 checkUnnamed1206(o.targetableRemarketingLists); |
| 7563 } |
| 7564 buildCounterTargetableRemarketingListsListResponse--; |
| 7565 } |
| 7566 |
| 7567 buildUnnamed1207() { |
6677 var o = new core.List<api.Browser>(); | 7568 var o = new core.List<api.Browser>(); |
6678 o.add(buildBrowser()); | 7569 o.add(buildBrowser()); |
6679 o.add(buildBrowser()); | 7570 o.add(buildBrowser()); |
6680 return o; | 7571 return o; |
6681 } | 7572 } |
6682 | 7573 |
6683 checkUnnamed406(core.List<api.Browser> o) { | 7574 checkUnnamed1207(core.List<api.Browser> o) { |
6684 unittest.expect(o, unittest.hasLength(2)); | 7575 unittest.expect(o, unittest.hasLength(2)); |
6685 checkBrowser(o[0]); | 7576 checkBrowser(o[0]); |
6686 checkBrowser(o[1]); | 7577 checkBrowser(o[1]); |
6687 } | 7578 } |
6688 | 7579 |
6689 buildUnnamed407() { | 7580 buildUnnamed1208() { |
6690 var o = new core.List<api.ConnectionType>(); | 7581 var o = new core.List<api.ConnectionType>(); |
6691 o.add(buildConnectionType()); | 7582 o.add(buildConnectionType()); |
6692 o.add(buildConnectionType()); | 7583 o.add(buildConnectionType()); |
6693 return o; | 7584 return o; |
6694 } | 7585 } |
6695 | 7586 |
6696 checkUnnamed407(core.List<api.ConnectionType> o) { | 7587 checkUnnamed1208(core.List<api.ConnectionType> o) { |
6697 unittest.expect(o, unittest.hasLength(2)); | 7588 unittest.expect(o, unittest.hasLength(2)); |
6698 checkConnectionType(o[0]); | 7589 checkConnectionType(o[0]); |
6699 checkConnectionType(o[1]); | 7590 checkConnectionType(o[1]); |
6700 } | 7591 } |
6701 | 7592 |
6702 buildUnnamed408() { | 7593 buildUnnamed1209() { |
6703 var o = new core.List<api.MobileCarrier>(); | 7594 var o = new core.List<api.MobileCarrier>(); |
6704 o.add(buildMobileCarrier()); | 7595 o.add(buildMobileCarrier()); |
6705 o.add(buildMobileCarrier()); | 7596 o.add(buildMobileCarrier()); |
6706 return o; | 7597 return o; |
6707 } | 7598 } |
6708 | 7599 |
6709 checkUnnamed408(core.List<api.MobileCarrier> o) { | 7600 checkUnnamed1209(core.List<api.MobileCarrier> o) { |
6710 unittest.expect(o, unittest.hasLength(2)); | 7601 unittest.expect(o, unittest.hasLength(2)); |
6711 checkMobileCarrier(o[0]); | 7602 checkMobileCarrier(o[0]); |
6712 checkMobileCarrier(o[1]); | 7603 checkMobileCarrier(o[1]); |
6713 } | 7604 } |
6714 | 7605 |
6715 buildUnnamed409() { | 7606 buildUnnamed1210() { |
6716 var o = new core.List<api.OperatingSystemVersion>(); | 7607 var o = new core.List<api.OperatingSystemVersion>(); |
6717 o.add(buildOperatingSystemVersion()); | 7608 o.add(buildOperatingSystemVersion()); |
6718 o.add(buildOperatingSystemVersion()); | 7609 o.add(buildOperatingSystemVersion()); |
6719 return o; | 7610 return o; |
6720 } | 7611 } |
6721 | 7612 |
6722 checkUnnamed409(core.List<api.OperatingSystemVersion> o) { | 7613 checkUnnamed1210(core.List<api.OperatingSystemVersion> o) { |
6723 unittest.expect(o, unittest.hasLength(2)); | 7614 unittest.expect(o, unittest.hasLength(2)); |
6724 checkOperatingSystemVersion(o[0]); | 7615 checkOperatingSystemVersion(o[0]); |
6725 checkOperatingSystemVersion(o[1]); | 7616 checkOperatingSystemVersion(o[1]); |
6726 } | 7617 } |
6727 | 7618 |
6728 buildUnnamed410() { | 7619 buildUnnamed1211() { |
6729 var o = new core.List<api.OperatingSystem>(); | 7620 var o = new core.List<api.OperatingSystem>(); |
6730 o.add(buildOperatingSystem()); | 7621 o.add(buildOperatingSystem()); |
6731 o.add(buildOperatingSystem()); | 7622 o.add(buildOperatingSystem()); |
6732 return o; | 7623 return o; |
6733 } | 7624 } |
6734 | 7625 |
6735 checkUnnamed410(core.List<api.OperatingSystem> o) { | 7626 checkUnnamed1211(core.List<api.OperatingSystem> o) { |
6736 unittest.expect(o, unittest.hasLength(2)); | 7627 unittest.expect(o, unittest.hasLength(2)); |
6737 checkOperatingSystem(o[0]); | 7628 checkOperatingSystem(o[0]); |
6738 checkOperatingSystem(o[1]); | 7629 checkOperatingSystem(o[1]); |
6739 } | 7630 } |
6740 | 7631 |
6741 buildUnnamed411() { | 7632 buildUnnamed1212() { |
6742 var o = new core.List<api.PlatformType>(); | 7633 var o = new core.List<api.PlatformType>(); |
6743 o.add(buildPlatformType()); | 7634 o.add(buildPlatformType()); |
6744 o.add(buildPlatformType()); | 7635 o.add(buildPlatformType()); |
6745 return o; | 7636 return o; |
6746 } | 7637 } |
6747 | 7638 |
6748 checkUnnamed411(core.List<api.PlatformType> o) { | 7639 checkUnnamed1212(core.List<api.PlatformType> o) { |
6749 unittest.expect(o, unittest.hasLength(2)); | 7640 unittest.expect(o, unittest.hasLength(2)); |
6750 checkPlatformType(o[0]); | 7641 checkPlatformType(o[0]); |
6751 checkPlatformType(o[1]); | 7642 checkPlatformType(o[1]); |
6752 } | 7643 } |
6753 | 7644 |
6754 core.int buildCounterTechnologyTargeting = 0; | 7645 core.int buildCounterTechnologyTargeting = 0; |
6755 buildTechnologyTargeting() { | 7646 buildTechnologyTargeting() { |
6756 var o = new api.TechnologyTargeting(); | 7647 var o = new api.TechnologyTargeting(); |
6757 buildCounterTechnologyTargeting++; | 7648 buildCounterTechnologyTargeting++; |
6758 if (buildCounterTechnologyTargeting < 3) { | 7649 if (buildCounterTechnologyTargeting < 3) { |
6759 o.browsers = buildUnnamed406(); | 7650 o.browsers = buildUnnamed1207(); |
6760 o.connectionTypes = buildUnnamed407(); | 7651 o.connectionTypes = buildUnnamed1208(); |
6761 o.mobileCarriers = buildUnnamed408(); | 7652 o.mobileCarriers = buildUnnamed1209(); |
6762 o.operatingSystemVersions = buildUnnamed409(); | 7653 o.operatingSystemVersions = buildUnnamed1210(); |
6763 o.operatingSystems = buildUnnamed410(); | 7654 o.operatingSystems = buildUnnamed1211(); |
6764 o.platformTypes = buildUnnamed411(); | 7655 o.platformTypes = buildUnnamed1212(); |
6765 } | 7656 } |
6766 buildCounterTechnologyTargeting--; | 7657 buildCounterTechnologyTargeting--; |
6767 return o; | 7658 return o; |
6768 } | 7659 } |
6769 | 7660 |
6770 checkTechnologyTargeting(api.TechnologyTargeting o) { | 7661 checkTechnologyTargeting(api.TechnologyTargeting o) { |
6771 buildCounterTechnologyTargeting++; | 7662 buildCounterTechnologyTargeting++; |
6772 if (buildCounterTechnologyTargeting < 3) { | 7663 if (buildCounterTechnologyTargeting < 3) { |
6773 checkUnnamed406(o.browsers); | 7664 checkUnnamed1207(o.browsers); |
6774 checkUnnamed407(o.connectionTypes); | 7665 checkUnnamed1208(o.connectionTypes); |
6775 checkUnnamed408(o.mobileCarriers); | 7666 checkUnnamed1209(o.mobileCarriers); |
6776 checkUnnamed409(o.operatingSystemVersions); | 7667 checkUnnamed1210(o.operatingSystemVersions); |
6777 checkUnnamed410(o.operatingSystems); | 7668 checkUnnamed1211(o.operatingSystems); |
6778 checkUnnamed411(o.platformTypes); | 7669 checkUnnamed1212(o.platformTypes); |
6779 } | 7670 } |
6780 buildCounterTechnologyTargeting--; | 7671 buildCounterTechnologyTargeting--; |
6781 } | 7672 } |
6782 | 7673 |
6783 core.int buildCounterThirdPartyTrackingUrl = 0; | 7674 core.int buildCounterThirdPartyTrackingUrl = 0; |
6784 buildThirdPartyTrackingUrl() { | 7675 buildThirdPartyTrackingUrl() { |
6785 var o = new api.ThirdPartyTrackingUrl(); | 7676 var o = new api.ThirdPartyTrackingUrl(); |
6786 buildCounterThirdPartyTrackingUrl++; | 7677 buildCounterThirdPartyTrackingUrl++; |
6787 if (buildCounterThirdPartyTrackingUrl < 3) { | 7678 if (buildCounterThirdPartyTrackingUrl < 3) { |
6788 o.thirdPartyUrlType = "foo"; | 7679 o.thirdPartyUrlType = "foo"; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6850 unittest.expect(o.etag, unittest.equals('foo')); | 7741 unittest.expect(o.etag, unittest.equals('foo')); |
6851 unittest.expect(o.kind, unittest.equals('foo')); | 7742 unittest.expect(o.kind, unittest.equals('foo')); |
6852 unittest.expect(o.profileId, unittest.equals('foo')); | 7743 unittest.expect(o.profileId, unittest.equals('foo')); |
6853 unittest.expect(o.subAccountId, unittest.equals('foo')); | 7744 unittest.expect(o.subAccountId, unittest.equals('foo')); |
6854 unittest.expect(o.subAccountName, unittest.equals('foo')); | 7745 unittest.expect(o.subAccountName, unittest.equals('foo')); |
6855 unittest.expect(o.userName, unittest.equals('foo')); | 7746 unittest.expect(o.userName, unittest.equals('foo')); |
6856 } | 7747 } |
6857 buildCounterUserProfile--; | 7748 buildCounterUserProfile--; |
6858 } | 7749 } |
6859 | 7750 |
6860 buildUnnamed412() { | 7751 buildUnnamed1213() { |
6861 var o = new core.List<api.UserProfile>(); | 7752 var o = new core.List<api.UserProfile>(); |
6862 o.add(buildUserProfile()); | 7753 o.add(buildUserProfile()); |
6863 o.add(buildUserProfile()); | 7754 o.add(buildUserProfile()); |
6864 return o; | 7755 return o; |
6865 } | 7756 } |
6866 | 7757 |
6867 checkUnnamed412(core.List<api.UserProfile> o) { | 7758 checkUnnamed1213(core.List<api.UserProfile> o) { |
6868 unittest.expect(o, unittest.hasLength(2)); | 7759 unittest.expect(o, unittest.hasLength(2)); |
6869 checkUserProfile(o[0]); | 7760 checkUserProfile(o[0]); |
6870 checkUserProfile(o[1]); | 7761 checkUserProfile(o[1]); |
6871 } | 7762 } |
6872 | 7763 |
6873 core.int buildCounterUserProfileList = 0; | 7764 core.int buildCounterUserProfileList = 0; |
6874 buildUserProfileList() { | 7765 buildUserProfileList() { |
6875 var o = new api.UserProfileList(); | 7766 var o = new api.UserProfileList(); |
6876 buildCounterUserProfileList++; | 7767 buildCounterUserProfileList++; |
6877 if (buildCounterUserProfileList < 3) { | 7768 if (buildCounterUserProfileList < 3) { |
6878 o.etag = "foo"; | 7769 o.etag = "foo"; |
6879 o.items = buildUnnamed412(); | 7770 o.items = buildUnnamed1213(); |
6880 o.kind = "foo"; | 7771 o.kind = "foo"; |
6881 } | 7772 } |
6882 buildCounterUserProfileList--; | 7773 buildCounterUserProfileList--; |
6883 return o; | 7774 return o; |
6884 } | 7775 } |
6885 | 7776 |
6886 checkUserProfileList(api.UserProfileList o) { | 7777 checkUserProfileList(api.UserProfileList o) { |
6887 buildCounterUserProfileList++; | 7778 buildCounterUserProfileList++; |
6888 if (buildCounterUserProfileList < 3) { | 7779 if (buildCounterUserProfileList < 3) { |
6889 unittest.expect(o.etag, unittest.equals('foo')); | 7780 unittest.expect(o.etag, unittest.equals('foo')); |
6890 checkUnnamed412(o.items); | 7781 checkUnnamed1213(o.items); |
6891 unittest.expect(o.kind, unittest.equals('foo')); | 7782 unittest.expect(o.kind, unittest.equals('foo')); |
6892 } | 7783 } |
6893 buildCounterUserProfileList--; | 7784 buildCounterUserProfileList--; |
6894 } | 7785 } |
6895 | 7786 |
6896 buildUnnamed413() { | 7787 buildUnnamed1214() { |
6897 var o = new core.List<api.UserRolePermission>(); | 7788 var o = new core.List<api.UserRolePermission>(); |
6898 o.add(buildUserRolePermission()); | 7789 o.add(buildUserRolePermission()); |
6899 o.add(buildUserRolePermission()); | 7790 o.add(buildUserRolePermission()); |
6900 return o; | 7791 return o; |
6901 } | 7792 } |
6902 | 7793 |
6903 checkUnnamed413(core.List<api.UserRolePermission> o) { | 7794 checkUnnamed1214(core.List<api.UserRolePermission> o) { |
6904 unittest.expect(o, unittest.hasLength(2)); | 7795 unittest.expect(o, unittest.hasLength(2)); |
6905 checkUserRolePermission(o[0]); | 7796 checkUserRolePermission(o[0]); |
6906 checkUserRolePermission(o[1]); | 7797 checkUserRolePermission(o[1]); |
6907 } | 7798 } |
6908 | 7799 |
6909 core.int buildCounterUserRole = 0; | 7800 core.int buildCounterUserRole = 0; |
6910 buildUserRole() { | 7801 buildUserRole() { |
6911 var o = new api.UserRole(); | 7802 var o = new api.UserRole(); |
6912 buildCounterUserRole++; | 7803 buildCounterUserRole++; |
6913 if (buildCounterUserRole < 3) { | 7804 if (buildCounterUserRole < 3) { |
6914 o.accountId = "foo"; | 7805 o.accountId = "foo"; |
6915 o.defaultUserRole = true; | 7806 o.defaultUserRole = true; |
6916 o.id = "foo"; | 7807 o.id = "foo"; |
6917 o.kind = "foo"; | 7808 o.kind = "foo"; |
6918 o.name = "foo"; | 7809 o.name = "foo"; |
6919 o.parentUserRoleId = "foo"; | 7810 o.parentUserRoleId = "foo"; |
6920 o.permissions = buildUnnamed413(); | 7811 o.permissions = buildUnnamed1214(); |
6921 o.subaccountId = "foo"; | 7812 o.subaccountId = "foo"; |
6922 } | 7813 } |
6923 buildCounterUserRole--; | 7814 buildCounterUserRole--; |
6924 return o; | 7815 return o; |
6925 } | 7816 } |
6926 | 7817 |
6927 checkUserRole(api.UserRole o) { | 7818 checkUserRole(api.UserRole o) { |
6928 buildCounterUserRole++; | 7819 buildCounterUserRole++; |
6929 if (buildCounterUserRole < 3) { | 7820 if (buildCounterUserRole < 3) { |
6930 unittest.expect(o.accountId, unittest.equals('foo')); | 7821 unittest.expect(o.accountId, unittest.equals('foo')); |
6931 unittest.expect(o.defaultUserRole, unittest.isTrue); | 7822 unittest.expect(o.defaultUserRole, unittest.isTrue); |
6932 unittest.expect(o.id, unittest.equals('foo')); | 7823 unittest.expect(o.id, unittest.equals('foo')); |
6933 unittest.expect(o.kind, unittest.equals('foo')); | 7824 unittest.expect(o.kind, unittest.equals('foo')); |
6934 unittest.expect(o.name, unittest.equals('foo')); | 7825 unittest.expect(o.name, unittest.equals('foo')); |
6935 unittest.expect(o.parentUserRoleId, unittest.equals('foo')); | 7826 unittest.expect(o.parentUserRoleId, unittest.equals('foo')); |
6936 checkUnnamed413(o.permissions); | 7827 checkUnnamed1214(o.permissions); |
6937 unittest.expect(o.subaccountId, unittest.equals('foo')); | 7828 unittest.expect(o.subaccountId, unittest.equals('foo')); |
6938 } | 7829 } |
6939 buildCounterUserRole--; | 7830 buildCounterUserRole--; |
6940 } | 7831 } |
6941 | 7832 |
6942 core.int buildCounterUserRolePermission = 0; | 7833 core.int buildCounterUserRolePermission = 0; |
6943 buildUserRolePermission() { | 7834 buildUserRolePermission() { |
6944 var o = new api.UserRolePermission(); | 7835 var o = new api.UserRolePermission(); |
6945 buildCounterUserRolePermission++; | 7836 buildCounterUserRolePermission++; |
6946 if (buildCounterUserRolePermission < 3) { | 7837 if (buildCounterUserRolePermission < 3) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6982 checkUserRolePermissionGroup(api.UserRolePermissionGroup o) { | 7873 checkUserRolePermissionGroup(api.UserRolePermissionGroup o) { |
6983 buildCounterUserRolePermissionGroup++; | 7874 buildCounterUserRolePermissionGroup++; |
6984 if (buildCounterUserRolePermissionGroup < 3) { | 7875 if (buildCounterUserRolePermissionGroup < 3) { |
6985 unittest.expect(o.id, unittest.equals('foo')); | 7876 unittest.expect(o.id, unittest.equals('foo')); |
6986 unittest.expect(o.kind, unittest.equals('foo')); | 7877 unittest.expect(o.kind, unittest.equals('foo')); |
6987 unittest.expect(o.name, unittest.equals('foo')); | 7878 unittest.expect(o.name, unittest.equals('foo')); |
6988 } | 7879 } |
6989 buildCounterUserRolePermissionGroup--; | 7880 buildCounterUserRolePermissionGroup--; |
6990 } | 7881 } |
6991 | 7882 |
6992 buildUnnamed414() { | 7883 buildUnnamed1215() { |
6993 var o = new core.List<api.UserRolePermissionGroup>(); | 7884 var o = new core.List<api.UserRolePermissionGroup>(); |
6994 o.add(buildUserRolePermissionGroup()); | 7885 o.add(buildUserRolePermissionGroup()); |
6995 o.add(buildUserRolePermissionGroup()); | 7886 o.add(buildUserRolePermissionGroup()); |
6996 return o; | 7887 return o; |
6997 } | 7888 } |
6998 | 7889 |
6999 checkUnnamed414(core.List<api.UserRolePermissionGroup> o) { | 7890 checkUnnamed1215(core.List<api.UserRolePermissionGroup> o) { |
7000 unittest.expect(o, unittest.hasLength(2)); | 7891 unittest.expect(o, unittest.hasLength(2)); |
7001 checkUserRolePermissionGroup(o[0]); | 7892 checkUserRolePermissionGroup(o[0]); |
7002 checkUserRolePermissionGroup(o[1]); | 7893 checkUserRolePermissionGroup(o[1]); |
7003 } | 7894 } |
7004 | 7895 |
7005 core.int buildCounterUserRolePermissionGroupsListResponse = 0; | 7896 core.int buildCounterUserRolePermissionGroupsListResponse = 0; |
7006 buildUserRolePermissionGroupsListResponse() { | 7897 buildUserRolePermissionGroupsListResponse() { |
7007 var o = new api.UserRolePermissionGroupsListResponse(); | 7898 var o = new api.UserRolePermissionGroupsListResponse(); |
7008 buildCounterUserRolePermissionGroupsListResponse++; | 7899 buildCounterUserRolePermissionGroupsListResponse++; |
7009 if (buildCounterUserRolePermissionGroupsListResponse < 3) { | 7900 if (buildCounterUserRolePermissionGroupsListResponse < 3) { |
7010 o.kind = "foo"; | 7901 o.kind = "foo"; |
7011 o.userRolePermissionGroups = buildUnnamed414(); | 7902 o.userRolePermissionGroups = buildUnnamed1215(); |
7012 } | 7903 } |
7013 buildCounterUserRolePermissionGroupsListResponse--; | 7904 buildCounterUserRolePermissionGroupsListResponse--; |
7014 return o; | 7905 return o; |
7015 } | 7906 } |
7016 | 7907 |
7017 checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListRespon
se o) { | 7908 checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListRespon
se o) { |
7018 buildCounterUserRolePermissionGroupsListResponse++; | 7909 buildCounterUserRolePermissionGroupsListResponse++; |
7019 if (buildCounterUserRolePermissionGroupsListResponse < 3) { | 7910 if (buildCounterUserRolePermissionGroupsListResponse < 3) { |
7020 unittest.expect(o.kind, unittest.equals('foo')); | 7911 unittest.expect(o.kind, unittest.equals('foo')); |
7021 checkUnnamed414(o.userRolePermissionGroups); | 7912 checkUnnamed1215(o.userRolePermissionGroups); |
7022 } | 7913 } |
7023 buildCounterUserRolePermissionGroupsListResponse--; | 7914 buildCounterUserRolePermissionGroupsListResponse--; |
7024 } | 7915 } |
7025 | 7916 |
7026 buildUnnamed415() { | 7917 buildUnnamed1216() { |
7027 var o = new core.List<api.UserRolePermission>(); | 7918 var o = new core.List<api.UserRolePermission>(); |
7028 o.add(buildUserRolePermission()); | 7919 o.add(buildUserRolePermission()); |
7029 o.add(buildUserRolePermission()); | 7920 o.add(buildUserRolePermission()); |
7030 return o; | 7921 return o; |
7031 } | 7922 } |
7032 | 7923 |
7033 checkUnnamed415(core.List<api.UserRolePermission> o) { | 7924 checkUnnamed1216(core.List<api.UserRolePermission> o) { |
7034 unittest.expect(o, unittest.hasLength(2)); | 7925 unittest.expect(o, unittest.hasLength(2)); |
7035 checkUserRolePermission(o[0]); | 7926 checkUserRolePermission(o[0]); |
7036 checkUserRolePermission(o[1]); | 7927 checkUserRolePermission(o[1]); |
7037 } | 7928 } |
7038 | 7929 |
7039 core.int buildCounterUserRolePermissionsListResponse = 0; | 7930 core.int buildCounterUserRolePermissionsListResponse = 0; |
7040 buildUserRolePermissionsListResponse() { | 7931 buildUserRolePermissionsListResponse() { |
7041 var o = new api.UserRolePermissionsListResponse(); | 7932 var o = new api.UserRolePermissionsListResponse(); |
7042 buildCounterUserRolePermissionsListResponse++; | 7933 buildCounterUserRolePermissionsListResponse++; |
7043 if (buildCounterUserRolePermissionsListResponse < 3) { | 7934 if (buildCounterUserRolePermissionsListResponse < 3) { |
7044 o.kind = "foo"; | 7935 o.kind = "foo"; |
7045 o.userRolePermissions = buildUnnamed415(); | 7936 o.userRolePermissions = buildUnnamed1216(); |
7046 } | 7937 } |
7047 buildCounterUserRolePermissionsListResponse--; | 7938 buildCounterUserRolePermissionsListResponse--; |
7048 return o; | 7939 return o; |
7049 } | 7940 } |
7050 | 7941 |
7051 checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) { | 7942 checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) { |
7052 buildCounterUserRolePermissionsListResponse++; | 7943 buildCounterUserRolePermissionsListResponse++; |
7053 if (buildCounterUserRolePermissionsListResponse < 3) { | 7944 if (buildCounterUserRolePermissionsListResponse < 3) { |
7054 unittest.expect(o.kind, unittest.equals('foo')); | 7945 unittest.expect(o.kind, unittest.equals('foo')); |
7055 checkUnnamed415(o.userRolePermissions); | 7946 checkUnnamed1216(o.userRolePermissions); |
7056 } | 7947 } |
7057 buildCounterUserRolePermissionsListResponse--; | 7948 buildCounterUserRolePermissionsListResponse--; |
7058 } | 7949 } |
7059 | 7950 |
7060 buildUnnamed416() { | 7951 buildUnnamed1217() { |
7061 var o = new core.List<api.UserRole>(); | 7952 var o = new core.List<api.UserRole>(); |
7062 o.add(buildUserRole()); | 7953 o.add(buildUserRole()); |
7063 o.add(buildUserRole()); | 7954 o.add(buildUserRole()); |
7064 return o; | 7955 return o; |
7065 } | 7956 } |
7066 | 7957 |
7067 checkUnnamed416(core.List<api.UserRole> o) { | 7958 checkUnnamed1217(core.List<api.UserRole> o) { |
7068 unittest.expect(o, unittest.hasLength(2)); | 7959 unittest.expect(o, unittest.hasLength(2)); |
7069 checkUserRole(o[0]); | 7960 checkUserRole(o[0]); |
7070 checkUserRole(o[1]); | 7961 checkUserRole(o[1]); |
7071 } | 7962 } |
7072 | 7963 |
7073 core.int buildCounterUserRolesListResponse = 0; | 7964 core.int buildCounterUserRolesListResponse = 0; |
7074 buildUserRolesListResponse() { | 7965 buildUserRolesListResponse() { |
7075 var o = new api.UserRolesListResponse(); | 7966 var o = new api.UserRolesListResponse(); |
7076 buildCounterUserRolesListResponse++; | 7967 buildCounterUserRolesListResponse++; |
7077 if (buildCounterUserRolesListResponse < 3) { | 7968 if (buildCounterUserRolesListResponse < 3) { |
7078 o.kind = "foo"; | 7969 o.kind = "foo"; |
7079 o.nextPageToken = "foo"; | 7970 o.nextPageToken = "foo"; |
7080 o.userRoles = buildUnnamed416(); | 7971 o.userRoles = buildUnnamed1217(); |
7081 } | 7972 } |
7082 buildCounterUserRolesListResponse--; | 7973 buildCounterUserRolesListResponse--; |
7083 return o; | 7974 return o; |
7084 } | 7975 } |
7085 | 7976 |
7086 checkUserRolesListResponse(api.UserRolesListResponse o) { | 7977 checkUserRolesListResponse(api.UserRolesListResponse o) { |
7087 buildCounterUserRolesListResponse++; | 7978 buildCounterUserRolesListResponse++; |
7088 if (buildCounterUserRolesListResponse < 3) { | 7979 if (buildCounterUserRolesListResponse < 3) { |
7089 unittest.expect(o.kind, unittest.equals('foo')); | 7980 unittest.expect(o.kind, unittest.equals('foo')); |
7090 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7981 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
7091 checkUnnamed416(o.userRoles); | 7982 checkUnnamed1217(o.userRoles); |
7092 } | 7983 } |
7093 buildCounterUserRolesListResponse--; | 7984 buildCounterUserRolesListResponse--; |
7094 } | 7985 } |
7095 | 7986 |
7096 buildUnnamed417() { | 7987 buildUnnamed1218() { |
7097 var o = new core.List<core.String>(); | 7988 var o = new core.List<core.String>(); |
7098 o.add("foo"); | 7989 o.add("foo"); |
7099 o.add("foo"); | 7990 o.add("foo"); |
7100 return o; | 7991 return o; |
7101 } | 7992 } |
7102 | 7993 |
7103 checkUnnamed417(core.List<core.String> o) { | 7994 checkUnnamed1218(core.List<core.String> o) { |
7104 unittest.expect(o, unittest.hasLength(2)); | 7995 unittest.expect(o, unittest.hasLength(2)); |
7105 unittest.expect(o[0], unittest.equals('foo')); | 7996 unittest.expect(o[0], unittest.equals('foo')); |
7106 unittest.expect(o[1], unittest.equals('foo')); | 7997 unittest.expect(o[1], unittest.equals('foo')); |
7107 } | 7998 } |
7108 | 7999 |
7109 buildUnnamed418() { | 8000 buildUnnamed1219() { |
7110 var o = new core.List<core.String>(); | 8001 var o = new core.List<core.String>(); |
7111 o.add("foo"); | 8002 o.add("foo"); |
7112 o.add("foo"); | 8003 o.add("foo"); |
7113 return o; | 8004 return o; |
7114 } | 8005 } |
7115 | 8006 |
7116 checkUnnamed418(core.List<core.String> o) { | 8007 checkUnnamed1219(core.List<core.String> o) { |
7117 unittest.expect(o, unittest.hasLength(2)); | 8008 unittest.expect(o, unittest.hasLength(2)); |
7118 unittest.expect(o[0], unittest.equals('foo')); | 8009 unittest.expect(o[0], unittest.equals('foo')); |
7119 unittest.expect(o[1], unittest.equals('foo')); | 8010 unittest.expect(o[1], unittest.equals('foo')); |
7120 } | 8011 } |
7121 | 8012 |
7122 buildUnnamed419() { | 8013 buildUnnamed1220() { |
7123 var o = new core.List<core.String>(); | 8014 var o = new core.List<core.String>(); |
7124 o.add("foo"); | 8015 o.add("foo"); |
7125 o.add("foo"); | 8016 o.add("foo"); |
7126 return o; | 8017 return o; |
7127 } | 8018 } |
7128 | 8019 |
7129 checkUnnamed419(core.List<core.String> o) { | 8020 checkUnnamed1220(core.List<core.String> o) { |
7130 unittest.expect(o, unittest.hasLength(2)); | 8021 unittest.expect(o, unittest.hasLength(2)); |
7131 unittest.expect(o[0], unittest.equals('foo')); | 8022 unittest.expect(o[0], unittest.equals('foo')); |
7132 unittest.expect(o[1], unittest.equals('foo')); | 8023 unittest.expect(o[1], unittest.equals('foo')); |
7133 } | 8024 } |
7134 | 8025 |
7135 buildUnnamed420() { | 8026 buildUnnamed1221() { |
7136 var o = new core.List<core.String>(); | 8027 var o = new core.List<core.String>(); |
7137 o.add("foo"); | 8028 o.add("foo"); |
7138 o.add("foo"); | 8029 o.add("foo"); |
7139 return o; | 8030 return o; |
7140 } | 8031 } |
7141 | 8032 |
7142 checkUnnamed420(core.List<core.String> o) { | 8033 checkUnnamed1221(core.List<core.String> o) { |
7143 unittest.expect(o, unittest.hasLength(2)); | 8034 unittest.expect(o, unittest.hasLength(2)); |
7144 unittest.expect(o[0], unittest.equals('foo')); | 8035 unittest.expect(o[0], unittest.equals('foo')); |
7145 unittest.expect(o[1], unittest.equals('foo')); | 8036 unittest.expect(o[1], unittest.equals('foo')); |
7146 } | 8037 } |
7147 | 8038 |
7148 buildUnnamed421() { | 8039 buildUnnamed1222() { |
7149 var o = new core.List<core.String>(); | 8040 var o = new core.List<core.String>(); |
7150 o.add("foo"); | 8041 o.add("foo"); |
7151 o.add("foo"); | 8042 o.add("foo"); |
7152 return o; | 8043 return o; |
7153 } | 8044 } |
7154 | 8045 |
7155 checkUnnamed421(core.List<core.String> o) { | 8046 checkUnnamed1222(core.List<core.String> o) { |
7156 unittest.expect(o, unittest.hasLength(2)); | 8047 unittest.expect(o, unittest.hasLength(2)); |
7157 unittest.expect(o[0], unittest.equals('foo')); | 8048 unittest.expect(o[0], unittest.equals('foo')); |
7158 unittest.expect(o[1], unittest.equals('foo')); | 8049 unittest.expect(o[1], unittest.equals('foo')); |
7159 } | 8050 } |
7160 | 8051 |
7161 buildUnnamed422() { | 8052 buildUnnamed1223() { |
7162 var o = new core.List<core.String>(); | 8053 var o = new core.List<core.String>(); |
7163 o.add("foo"); | 8054 o.add("foo"); |
7164 o.add("foo"); | 8055 o.add("foo"); |
7165 return o; | 8056 return o; |
7166 } | 8057 } |
7167 | 8058 |
7168 checkUnnamed422(core.List<core.String> o) { | 8059 checkUnnamed1223(core.List<core.String> o) { |
7169 unittest.expect(o, unittest.hasLength(2)); | 8060 unittest.expect(o, unittest.hasLength(2)); |
7170 unittest.expect(o[0], unittest.equals('foo')); | 8061 unittest.expect(o[0], unittest.equals('foo')); |
7171 unittest.expect(o[1], unittest.equals('foo')); | 8062 unittest.expect(o[1], unittest.equals('foo')); |
7172 } | 8063 } |
7173 | 8064 |
7174 buildUnnamed423() { | 8065 buildUnnamed1224() { |
7175 var o = new core.List<core.String>(); | 8066 var o = new core.List<core.String>(); |
7176 o.add("foo"); | 8067 o.add("foo"); |
7177 o.add("foo"); | 8068 o.add("foo"); |
7178 return o; | 8069 return o; |
7179 } | 8070 } |
7180 | 8071 |
7181 checkUnnamed423(core.List<core.String> o) { | 8072 checkUnnamed1224(core.List<core.String> o) { |
7182 unittest.expect(o, unittest.hasLength(2)); | 8073 unittest.expect(o, unittest.hasLength(2)); |
7183 unittest.expect(o[0], unittest.equals('foo')); | 8074 unittest.expect(o[0], unittest.equals('foo')); |
7184 unittest.expect(o[1], unittest.equals('foo')); | 8075 unittest.expect(o[1], unittest.equals('foo')); |
7185 } | 8076 } |
7186 | 8077 |
7187 buildUnnamed424() { | 8078 buildUnnamed1225() { |
7188 var o = new core.List<core.String>(); | 8079 var o = new core.List<core.String>(); |
7189 o.add("foo"); | 8080 o.add("foo"); |
7190 o.add("foo"); | 8081 o.add("foo"); |
7191 return o; | 8082 return o; |
7192 } | 8083 } |
7193 | 8084 |
7194 checkUnnamed424(core.List<core.String> o) { | 8085 checkUnnamed1225(core.List<core.String> o) { |
7195 unittest.expect(o, unittest.hasLength(2)); | 8086 unittest.expect(o, unittest.hasLength(2)); |
7196 unittest.expect(o[0], unittest.equals('foo')); | 8087 unittest.expect(o[0], unittest.equals('foo')); |
7197 unittest.expect(o[1], unittest.equals('foo')); | 8088 unittest.expect(o[1], unittest.equals('foo')); |
7198 } | 8089 } |
7199 | 8090 |
7200 buildUnnamed425() { | 8091 buildUnnamed1226() { |
7201 var o = new core.List<core.String>(); | 8092 var o = new core.List<core.String>(); |
7202 o.add("foo"); | 8093 o.add("foo"); |
7203 o.add("foo"); | 8094 o.add("foo"); |
7204 return o; | 8095 return o; |
7205 } | 8096 } |
7206 | 8097 |
7207 checkUnnamed425(core.List<core.String> o) { | 8098 checkUnnamed1226(core.List<core.String> o) { |
7208 unittest.expect(o, unittest.hasLength(2)); | 8099 unittest.expect(o, unittest.hasLength(2)); |
7209 unittest.expect(o[0], unittest.equals('foo')); | 8100 unittest.expect(o[0], unittest.equals('foo')); |
7210 unittest.expect(o[1], unittest.equals('foo')); | 8101 unittest.expect(o[1], unittest.equals('foo')); |
7211 } | 8102 } |
7212 | 8103 |
7213 buildUnnamed426() { | 8104 buildUnnamed1227() { |
7214 var o = new core.List<core.String>(); | 8105 var o = new core.List<core.String>(); |
7215 o.add("foo"); | 8106 o.add("foo"); |
7216 o.add("foo"); | 8107 o.add("foo"); |
7217 return o; | 8108 return o; |
7218 } | 8109 } |
7219 | 8110 |
7220 checkUnnamed426(core.List<core.String> o) { | 8111 checkUnnamed1227(core.List<core.String> o) { |
7221 unittest.expect(o, unittest.hasLength(2)); | 8112 unittest.expect(o, unittest.hasLength(2)); |
7222 unittest.expect(o[0], unittest.equals('foo')); | 8113 unittest.expect(o[0], unittest.equals('foo')); |
7223 unittest.expect(o[1], unittest.equals('foo')); | 8114 unittest.expect(o[1], unittest.equals('foo')); |
7224 } | 8115 } |
7225 | 8116 |
7226 buildUnnamed427() { | 8117 buildUnnamed1228() { |
7227 var o = new core.List<core.String>(); | 8118 var o = new core.List<core.String>(); |
7228 o.add("foo"); | 8119 o.add("foo"); |
7229 o.add("foo"); | 8120 o.add("foo"); |
7230 return o; | 8121 return o; |
7231 } | 8122 } |
7232 | 8123 |
7233 checkUnnamed427(core.List<core.String> o) { | 8124 checkUnnamed1228(core.List<core.String> o) { |
7234 unittest.expect(o, unittest.hasLength(2)); | 8125 unittest.expect(o, unittest.hasLength(2)); |
7235 unittest.expect(o[0], unittest.equals('foo')); | 8126 unittest.expect(o[0], unittest.equals('foo')); |
7236 unittest.expect(o[1], unittest.equals('foo')); | 8127 unittest.expect(o[1], unittest.equals('foo')); |
7237 } | 8128 } |
7238 | 8129 |
7239 buildUnnamed428() { | 8130 buildUnnamed1229() { |
7240 var o = new core.List<core.String>(); | 8131 var o = new core.List<core.String>(); |
7241 o.add("foo"); | 8132 o.add("foo"); |
7242 o.add("foo"); | 8133 o.add("foo"); |
7243 return o; | 8134 return o; |
7244 } | 8135 } |
7245 | 8136 |
7246 checkUnnamed428(core.List<core.String> o) { | 8137 checkUnnamed1229(core.List<core.String> o) { |
7247 unittest.expect(o, unittest.hasLength(2)); | 8138 unittest.expect(o, unittest.hasLength(2)); |
7248 unittest.expect(o[0], unittest.equals('foo')); | 8139 unittest.expect(o[0], unittest.equals('foo')); |
7249 unittest.expect(o[1], unittest.equals('foo')); | 8140 unittest.expect(o[1], unittest.equals('foo')); |
7250 } | 8141 } |
7251 | 8142 |
7252 buildUnnamed429() { | 8143 buildUnnamed1230() { |
7253 var o = new core.List<core.String>(); | 8144 var o = new core.List<core.String>(); |
7254 o.add("foo"); | 8145 o.add("foo"); |
7255 o.add("foo"); | 8146 o.add("foo"); |
7256 return o; | 8147 return o; |
7257 } | 8148 } |
7258 | 8149 |
7259 checkUnnamed429(core.List<core.String> o) { | 8150 checkUnnamed1230(core.List<core.String> o) { |
7260 unittest.expect(o, unittest.hasLength(2)); | 8151 unittest.expect(o, unittest.hasLength(2)); |
7261 unittest.expect(o[0], unittest.equals('foo')); | 8152 unittest.expect(o[0], unittest.equals('foo')); |
7262 unittest.expect(o[1], unittest.equals('foo')); | 8153 unittest.expect(o[1], unittest.equals('foo')); |
7263 } | 8154 } |
7264 | 8155 |
7265 buildUnnamed430() { | 8156 buildUnnamed1231() { |
7266 var o = new core.List<core.String>(); | 8157 var o = new core.List<core.String>(); |
7267 o.add("foo"); | 8158 o.add("foo"); |
7268 o.add("foo"); | 8159 o.add("foo"); |
7269 return o; | 8160 return o; |
7270 } | 8161 } |
7271 | 8162 |
7272 checkUnnamed430(core.List<core.String> o) { | 8163 checkUnnamed1231(core.List<core.String> o) { |
7273 unittest.expect(o, unittest.hasLength(2)); | 8164 unittest.expect(o, unittest.hasLength(2)); |
7274 unittest.expect(o[0], unittest.equals('foo')); | 8165 unittest.expect(o[0], unittest.equals('foo')); |
7275 unittest.expect(o[1], unittest.equals('foo')); | 8166 unittest.expect(o[1], unittest.equals('foo')); |
7276 } | 8167 } |
7277 | 8168 |
7278 buildUnnamed431() { | 8169 buildUnnamed1232() { |
7279 var o = new core.List<core.String>(); | 8170 var o = new core.List<core.String>(); |
7280 o.add("foo"); | 8171 o.add("foo"); |
7281 o.add("foo"); | 8172 o.add("foo"); |
7282 return o; | 8173 return o; |
7283 } | 8174 } |
7284 | 8175 |
7285 checkUnnamed431(core.List<core.String> o) { | 8176 checkUnnamed1232(core.List<core.String> o) { |
7286 unittest.expect(o, unittest.hasLength(2)); | 8177 unittest.expect(o, unittest.hasLength(2)); |
7287 unittest.expect(o[0], unittest.equals('foo')); | 8178 unittest.expect(o[0], unittest.equals('foo')); |
7288 unittest.expect(o[1], unittest.equals('foo')); | 8179 unittest.expect(o[1], unittest.equals('foo')); |
7289 } | 8180 } |
7290 | 8181 |
7291 buildUnnamed432() { | 8182 buildUnnamed1233() { |
7292 var o = new core.List<core.String>(); | 8183 var o = new core.List<core.String>(); |
7293 o.add("foo"); | 8184 o.add("foo"); |
7294 o.add("foo"); | 8185 o.add("foo"); |
7295 return o; | 8186 return o; |
7296 } | 8187 } |
7297 | 8188 |
7298 checkUnnamed432(core.List<core.String> o) { | 8189 checkUnnamed1233(core.List<core.String> o) { |
7299 unittest.expect(o, unittest.hasLength(2)); | 8190 unittest.expect(o, unittest.hasLength(2)); |
7300 unittest.expect(o[0], unittest.equals('foo')); | 8191 unittest.expect(o[0], unittest.equals('foo')); |
7301 unittest.expect(o[1], unittest.equals('foo')); | 8192 unittest.expect(o[1], unittest.equals('foo')); |
7302 } | 8193 } |
7303 | 8194 |
7304 buildUnnamed433() { | 8195 buildUnnamed1234() { |
7305 var o = new core.List<core.String>(); | 8196 var o = new core.List<core.String>(); |
7306 o.add("foo"); | 8197 o.add("foo"); |
7307 o.add("foo"); | 8198 o.add("foo"); |
7308 return o; | 8199 return o; |
7309 } | 8200 } |
7310 | 8201 |
7311 checkUnnamed433(core.List<core.String> o) { | 8202 checkUnnamed1234(core.List<core.String> o) { |
7312 unittest.expect(o, unittest.hasLength(2)); | 8203 unittest.expect(o, unittest.hasLength(2)); |
7313 unittest.expect(o[0], unittest.equals('foo')); | 8204 unittest.expect(o[0], unittest.equals('foo')); |
7314 unittest.expect(o[1], unittest.equals('foo')); | 8205 unittest.expect(o[1], unittest.equals('foo')); |
7315 } | 8206 } |
7316 | 8207 |
7317 buildUnnamed434() { | 8208 buildUnnamed1235() { |
7318 var o = new core.List<core.String>(); | 8209 var o = new core.List<core.String>(); |
7319 o.add("foo"); | 8210 o.add("foo"); |
7320 o.add("foo"); | 8211 o.add("foo"); |
7321 return o; | 8212 return o; |
7322 } | 8213 } |
7323 | 8214 |
7324 checkUnnamed434(core.List<core.String> o) { | 8215 checkUnnamed1235(core.List<core.String> o) { |
7325 unittest.expect(o, unittest.hasLength(2)); | 8216 unittest.expect(o, unittest.hasLength(2)); |
7326 unittest.expect(o[0], unittest.equals('foo')); | 8217 unittest.expect(o[0], unittest.equals('foo')); |
7327 unittest.expect(o[1], unittest.equals('foo')); | 8218 unittest.expect(o[1], unittest.equals('foo')); |
7328 } | 8219 } |
7329 | 8220 |
7330 buildUnnamed435() { | 8221 buildUnnamed1236() { |
7331 var o = new core.List<core.String>(); | 8222 var o = new core.List<core.String>(); |
7332 o.add("foo"); | 8223 o.add("foo"); |
7333 o.add("foo"); | 8224 o.add("foo"); |
7334 return o; | 8225 return o; |
7335 } | 8226 } |
7336 | 8227 |
7337 checkUnnamed435(core.List<core.String> o) { | 8228 checkUnnamed1236(core.List<core.String> o) { |
7338 unittest.expect(o, unittest.hasLength(2)); | 8229 unittest.expect(o, unittest.hasLength(2)); |
7339 unittest.expect(o[0], unittest.equals('foo')); | 8230 unittest.expect(o[0], unittest.equals('foo')); |
7340 unittest.expect(o[1], unittest.equals('foo')); | 8231 unittest.expect(o[1], unittest.equals('foo')); |
7341 } | 8232 } |
7342 | 8233 |
7343 buildUnnamed436() { | 8234 buildUnnamed1237() { |
7344 var o = new core.List<core.String>(); | 8235 var o = new core.List<core.String>(); |
7345 o.add("foo"); | 8236 o.add("foo"); |
7346 o.add("foo"); | 8237 o.add("foo"); |
7347 return o; | 8238 return o; |
7348 } | 8239 } |
7349 | 8240 |
7350 checkUnnamed436(core.List<core.String> o) { | 8241 checkUnnamed1237(core.List<core.String> o) { |
7351 unittest.expect(o, unittest.hasLength(2)); | 8242 unittest.expect(o, unittest.hasLength(2)); |
7352 unittest.expect(o[0], unittest.equals('foo')); | 8243 unittest.expect(o[0], unittest.equals('foo')); |
7353 unittest.expect(o[1], unittest.equals('foo')); | 8244 unittest.expect(o[1], unittest.equals('foo')); |
7354 } | 8245 } |
7355 | 8246 |
7356 buildUnnamed437() { | 8247 buildUnnamed1238() { |
7357 var o = new core.List<core.String>(); | 8248 var o = new core.List<core.String>(); |
7358 o.add("foo"); | 8249 o.add("foo"); |
7359 o.add("foo"); | 8250 o.add("foo"); |
7360 return o; | 8251 return o; |
7361 } | 8252 } |
7362 | 8253 |
7363 checkUnnamed437(core.List<core.String> o) { | 8254 checkUnnamed1238(core.List<core.String> o) { |
7364 unittest.expect(o, unittest.hasLength(2)); | 8255 unittest.expect(o, unittest.hasLength(2)); |
7365 unittest.expect(o[0], unittest.equals('foo')); | 8256 unittest.expect(o[0], unittest.equals('foo')); |
7366 unittest.expect(o[1], unittest.equals('foo')); | 8257 unittest.expect(o[1], unittest.equals('foo')); |
7367 } | 8258 } |
7368 | 8259 |
7369 buildUnnamed438() { | 8260 buildUnnamed1239() { |
7370 var o = new core.List<core.String>(); | 8261 var o = new core.List<core.String>(); |
7371 o.add("foo"); | 8262 o.add("foo"); |
7372 o.add("foo"); | 8263 o.add("foo"); |
7373 return o; | 8264 return o; |
7374 } | 8265 } |
7375 | 8266 |
7376 checkUnnamed438(core.List<core.String> o) { | 8267 checkUnnamed1239(core.List<core.String> o) { |
7377 unittest.expect(o, unittest.hasLength(2)); | 8268 unittest.expect(o, unittest.hasLength(2)); |
7378 unittest.expect(o[0], unittest.equals('foo')); | 8269 unittest.expect(o[0], unittest.equals('foo')); |
7379 unittest.expect(o[1], unittest.equals('foo')); | 8270 unittest.expect(o[1], unittest.equals('foo')); |
7380 } | 8271 } |
7381 | 8272 |
7382 buildUnnamed439() { | 8273 buildUnnamed1240() { |
7383 var o = new core.List<core.String>(); | 8274 var o = new core.List<core.String>(); |
7384 o.add("foo"); | 8275 o.add("foo"); |
7385 o.add("foo"); | 8276 o.add("foo"); |
7386 return o; | 8277 return o; |
7387 } | 8278 } |
7388 | 8279 |
7389 checkUnnamed439(core.List<core.String> o) { | 8280 checkUnnamed1240(core.List<core.String> o) { |
7390 unittest.expect(o, unittest.hasLength(2)); | 8281 unittest.expect(o, unittest.hasLength(2)); |
7391 unittest.expect(o[0], unittest.equals('foo')); | 8282 unittest.expect(o[0], unittest.equals('foo')); |
7392 unittest.expect(o[1], unittest.equals('foo')); | 8283 unittest.expect(o[1], unittest.equals('foo')); |
7393 } | 8284 } |
7394 | 8285 |
7395 buildUnnamed440() { | 8286 buildUnnamed1241() { |
7396 var o = new core.List<core.String>(); | 8287 var o = new core.List<core.String>(); |
7397 o.add("foo"); | 8288 o.add("foo"); |
7398 o.add("foo"); | 8289 o.add("foo"); |
7399 return o; | 8290 return o; |
7400 } | 8291 } |
7401 | 8292 |
7402 checkUnnamed440(core.List<core.String> o) { | 8293 checkUnnamed1241(core.List<core.String> o) { |
7403 unittest.expect(o, unittest.hasLength(2)); | 8294 unittest.expect(o, unittest.hasLength(2)); |
7404 unittest.expect(o[0], unittest.equals('foo')); | 8295 unittest.expect(o[0], unittest.equals('foo')); |
7405 unittest.expect(o[1], unittest.equals('foo')); | 8296 unittest.expect(o[1], unittest.equals('foo')); |
7406 } | 8297 } |
7407 | 8298 |
7408 buildUnnamed441() { | 8299 buildUnnamed1242() { |
7409 var o = new core.List<core.String>(); | 8300 var o = new core.List<core.String>(); |
7410 o.add("foo"); | 8301 o.add("foo"); |
7411 o.add("foo"); | 8302 o.add("foo"); |
7412 return o; | 8303 return o; |
7413 } | 8304 } |
7414 | 8305 |
7415 checkUnnamed441(core.List<core.String> o) { | 8306 checkUnnamed1242(core.List<core.String> o) { |
7416 unittest.expect(o, unittest.hasLength(2)); | 8307 unittest.expect(o, unittest.hasLength(2)); |
7417 unittest.expect(o[0], unittest.equals('foo')); | 8308 unittest.expect(o[0], unittest.equals('foo')); |
7418 unittest.expect(o[1], unittest.equals('foo')); | 8309 unittest.expect(o[1], unittest.equals('foo')); |
7419 } | 8310 } |
7420 | 8311 |
7421 buildUnnamed442() { | 8312 buildUnnamed1243() { |
7422 var o = new core.List<core.String>(); | 8313 var o = new core.List<core.String>(); |
7423 o.add("foo"); | 8314 o.add("foo"); |
7424 o.add("foo"); | 8315 o.add("foo"); |
7425 return o; | 8316 return o; |
7426 } | 8317 } |
7427 | 8318 |
7428 checkUnnamed442(core.List<core.String> o) { | 8319 checkUnnamed1243(core.List<core.String> o) { |
7429 unittest.expect(o, unittest.hasLength(2)); | 8320 unittest.expect(o, unittest.hasLength(2)); |
7430 unittest.expect(o[0], unittest.equals('foo')); | 8321 unittest.expect(o[0], unittest.equals('foo')); |
7431 unittest.expect(o[1], unittest.equals('foo')); | 8322 unittest.expect(o[1], unittest.equals('foo')); |
7432 } | 8323 } |
7433 | 8324 |
7434 buildUnnamed443() { | 8325 buildUnnamed1244() { |
7435 var o = new core.List<core.String>(); | 8326 var o = new core.List<core.String>(); |
7436 o.add("foo"); | 8327 o.add("foo"); |
7437 o.add("foo"); | 8328 o.add("foo"); |
7438 return o; | 8329 return o; |
7439 } | 8330 } |
7440 | 8331 |
7441 checkUnnamed443(core.List<core.String> o) { | 8332 checkUnnamed1244(core.List<core.String> o) { |
7442 unittest.expect(o, unittest.hasLength(2)); | 8333 unittest.expect(o, unittest.hasLength(2)); |
7443 unittest.expect(o[0], unittest.equals('foo')); | 8334 unittest.expect(o[0], unittest.equals('foo')); |
7444 unittest.expect(o[1], unittest.equals('foo')); | 8335 unittest.expect(o[1], unittest.equals('foo')); |
7445 } | 8336 } |
7446 | 8337 |
7447 buildUnnamed444() { | 8338 buildUnnamed1245() { |
7448 var o = new core.List<core.String>(); | 8339 var o = new core.List<core.String>(); |
7449 o.add("foo"); | 8340 o.add("foo"); |
7450 o.add("foo"); | 8341 o.add("foo"); |
7451 return o; | 8342 return o; |
7452 } | 8343 } |
7453 | 8344 |
7454 checkUnnamed444(core.List<core.String> o) { | 8345 checkUnnamed1245(core.List<core.String> o) { |
7455 unittest.expect(o, unittest.hasLength(2)); | 8346 unittest.expect(o, unittest.hasLength(2)); |
7456 unittest.expect(o[0], unittest.equals('foo')); | 8347 unittest.expect(o[0], unittest.equals('foo')); |
7457 unittest.expect(o[1], unittest.equals('foo')); | 8348 unittest.expect(o[1], unittest.equals('foo')); |
7458 } | 8349 } |
7459 | 8350 |
7460 buildUnnamed445() { | 8351 buildUnnamed1246() { |
7461 var o = new core.List<core.String>(); | 8352 var o = new core.List<core.String>(); |
7462 o.add("foo"); | 8353 o.add("foo"); |
7463 o.add("foo"); | 8354 o.add("foo"); |
7464 return o; | 8355 return o; |
7465 } | 8356 } |
7466 | 8357 |
7467 checkUnnamed445(core.List<core.String> o) { | 8358 checkUnnamed1246(core.List<core.String> o) { |
7468 unittest.expect(o, unittest.hasLength(2)); | 8359 unittest.expect(o, unittest.hasLength(2)); |
7469 unittest.expect(o[0], unittest.equals('foo')); | 8360 unittest.expect(o[0], unittest.equals('foo')); |
7470 unittest.expect(o[1], unittest.equals('foo')); | 8361 unittest.expect(o[1], unittest.equals('foo')); |
7471 } | 8362 } |
7472 | 8363 |
7473 buildUnnamed446() { | 8364 buildUnnamed1247() { |
7474 var o = new core.List<core.String>(); | 8365 var o = new core.List<core.String>(); |
7475 o.add("foo"); | 8366 o.add("foo"); |
7476 o.add("foo"); | 8367 o.add("foo"); |
7477 return o; | 8368 return o; |
7478 } | 8369 } |
7479 | 8370 |
7480 checkUnnamed446(core.List<core.String> o) { | 8371 checkUnnamed1247(core.List<core.String> o) { |
7481 unittest.expect(o, unittest.hasLength(2)); | 8372 unittest.expect(o, unittest.hasLength(2)); |
7482 unittest.expect(o[0], unittest.equals('foo')); | 8373 unittest.expect(o[0], unittest.equals('foo')); |
7483 unittest.expect(o[1], unittest.equals('foo')); | 8374 unittest.expect(o[1], unittest.equals('foo')); |
7484 } | 8375 } |
7485 | 8376 |
7486 buildUnnamed447() { | 8377 buildUnnamed1248() { |
7487 var o = new core.List<core.String>(); | 8378 var o = new core.List<core.String>(); |
7488 o.add("foo"); | 8379 o.add("foo"); |
7489 o.add("foo"); | 8380 o.add("foo"); |
7490 return o; | 8381 return o; |
7491 } | 8382 } |
7492 | 8383 |
7493 checkUnnamed447(core.List<core.String> o) { | 8384 checkUnnamed1248(core.List<core.String> o) { |
7494 unittest.expect(o, unittest.hasLength(2)); | 8385 unittest.expect(o, unittest.hasLength(2)); |
7495 unittest.expect(o[0], unittest.equals('foo')); | 8386 unittest.expect(o[0], unittest.equals('foo')); |
7496 unittest.expect(o[1], unittest.equals('foo')); | 8387 unittest.expect(o[1], unittest.equals('foo')); |
7497 } | 8388 } |
7498 | 8389 |
7499 buildUnnamed448() { | 8390 buildUnnamed1249() { |
7500 var o = new core.List<core.String>(); | 8391 var o = new core.List<core.String>(); |
7501 o.add("foo"); | 8392 o.add("foo"); |
7502 o.add("foo"); | 8393 o.add("foo"); |
7503 return o; | 8394 return o; |
7504 } | 8395 } |
7505 | 8396 |
7506 checkUnnamed448(core.List<core.String> o) { | 8397 checkUnnamed1249(core.List<core.String> o) { |
7507 unittest.expect(o, unittest.hasLength(2)); | 8398 unittest.expect(o, unittest.hasLength(2)); |
7508 unittest.expect(o[0], unittest.equals('foo')); | 8399 unittest.expect(o[0], unittest.equals('foo')); |
7509 unittest.expect(o[1], unittest.equals('foo')); | 8400 unittest.expect(o[1], unittest.equals('foo')); |
7510 } | 8401 } |
7511 | 8402 |
7512 buildUnnamed449() { | 8403 buildUnnamed1250() { |
7513 var o = new core.List<core.String>(); | 8404 var o = new core.List<core.String>(); |
7514 o.add("foo"); | 8405 o.add("foo"); |
7515 o.add("foo"); | 8406 o.add("foo"); |
7516 return o; | 8407 return o; |
7517 } | 8408 } |
7518 | 8409 |
7519 checkUnnamed449(core.List<core.String> o) { | 8410 checkUnnamed1250(core.List<core.String> o) { |
7520 unittest.expect(o, unittest.hasLength(2)); | 8411 unittest.expect(o, unittest.hasLength(2)); |
7521 unittest.expect(o[0], unittest.equals('foo')); | 8412 unittest.expect(o[0], unittest.equals('foo')); |
7522 unittest.expect(o[1], unittest.equals('foo')); | 8413 unittest.expect(o[1], unittest.equals('foo')); |
7523 } | 8414 } |
7524 | 8415 |
7525 buildUnnamed450() { | 8416 buildUnnamed1251() { |
7526 var o = new core.List<core.String>(); | 8417 var o = new core.List<core.String>(); |
7527 o.add("foo"); | 8418 o.add("foo"); |
7528 o.add("foo"); | 8419 o.add("foo"); |
7529 return o; | 8420 return o; |
7530 } | 8421 } |
7531 | 8422 |
7532 checkUnnamed450(core.List<core.String> o) { | 8423 checkUnnamed1251(core.List<core.String> o) { |
7533 unittest.expect(o, unittest.hasLength(2)); | 8424 unittest.expect(o, unittest.hasLength(2)); |
7534 unittest.expect(o[0], unittest.equals('foo')); | 8425 unittest.expect(o[0], unittest.equals('foo')); |
7535 unittest.expect(o[1], unittest.equals('foo')); | 8426 unittest.expect(o[1], unittest.equals('foo')); |
7536 } | 8427 } |
7537 | 8428 |
7538 buildUnnamed451() { | 8429 buildUnnamed1252() { |
7539 var o = new core.List<core.String>(); | 8430 var o = new core.List<core.String>(); |
7540 o.add("foo"); | 8431 o.add("foo"); |
7541 o.add("foo"); | 8432 o.add("foo"); |
7542 return o; | 8433 return o; |
7543 } | 8434 } |
7544 | 8435 |
7545 checkUnnamed451(core.List<core.String> o) { | 8436 checkUnnamed1252(core.List<core.String> o) { |
7546 unittest.expect(o, unittest.hasLength(2)); | 8437 unittest.expect(o, unittest.hasLength(2)); |
7547 unittest.expect(o[0], unittest.equals('foo')); | 8438 unittest.expect(o[0], unittest.equals('foo')); |
7548 unittest.expect(o[1], unittest.equals('foo')); | 8439 unittest.expect(o[1], unittest.equals('foo')); |
7549 } | 8440 } |
7550 | 8441 |
7551 buildUnnamed452() { | 8442 buildUnnamed1253() { |
7552 var o = new core.List<core.String>(); | 8443 var o = new core.List<core.String>(); |
7553 o.add("foo"); | 8444 o.add("foo"); |
7554 o.add("foo"); | 8445 o.add("foo"); |
7555 return o; | 8446 return o; |
7556 } | 8447 } |
7557 | 8448 |
7558 checkUnnamed452(core.List<core.String> o) { | 8449 checkUnnamed1253(core.List<core.String> o) { |
7559 unittest.expect(o, unittest.hasLength(2)); | 8450 unittest.expect(o, unittest.hasLength(2)); |
7560 unittest.expect(o[0], unittest.equals('foo')); | 8451 unittest.expect(o[0], unittest.equals('foo')); |
7561 unittest.expect(o[1], unittest.equals('foo')); | 8452 unittest.expect(o[1], unittest.equals('foo')); |
7562 } | 8453 } |
7563 | 8454 |
7564 buildUnnamed453() { | 8455 buildUnnamed1254() { |
7565 var o = new core.List<core.String>(); | 8456 var o = new core.List<core.String>(); |
7566 o.add("foo"); | 8457 o.add("foo"); |
7567 o.add("foo"); | 8458 o.add("foo"); |
7568 return o; | 8459 return o; |
7569 } | 8460 } |
7570 | 8461 |
7571 checkUnnamed453(core.List<core.String> o) { | 8462 checkUnnamed1254(core.List<core.String> o) { |
7572 unittest.expect(o, unittest.hasLength(2)); | 8463 unittest.expect(o, unittest.hasLength(2)); |
7573 unittest.expect(o[0], unittest.equals('foo')); | 8464 unittest.expect(o[0], unittest.equals('foo')); |
7574 unittest.expect(o[1], unittest.equals('foo')); | 8465 unittest.expect(o[1], unittest.equals('foo')); |
7575 } | 8466 } |
7576 | 8467 |
7577 buildUnnamed454() { | 8468 buildUnnamed1255() { |
7578 var o = new core.List<core.String>(); | 8469 var o = new core.List<core.String>(); |
7579 o.add("foo"); | 8470 o.add("foo"); |
7580 o.add("foo"); | 8471 o.add("foo"); |
7581 return o; | 8472 return o; |
7582 } | 8473 } |
7583 | 8474 |
7584 checkUnnamed454(core.List<core.String> o) { | 8475 checkUnnamed1255(core.List<core.String> o) { |
7585 unittest.expect(o, unittest.hasLength(2)); | 8476 unittest.expect(o, unittest.hasLength(2)); |
7586 unittest.expect(o[0], unittest.equals('foo')); | 8477 unittest.expect(o[0], unittest.equals('foo')); |
7587 unittest.expect(o[1], unittest.equals('foo')); | 8478 unittest.expect(o[1], unittest.equals('foo')); |
7588 } | 8479 } |
7589 | 8480 |
7590 buildUnnamed455() { | 8481 buildUnnamed1256() { |
7591 var o = new core.List<core.String>(); | 8482 var o = new core.List<core.String>(); |
7592 o.add("foo"); | 8483 o.add("foo"); |
7593 o.add("foo"); | 8484 o.add("foo"); |
7594 return o; | 8485 return o; |
7595 } | 8486 } |
7596 | 8487 |
7597 checkUnnamed455(core.List<core.String> o) { | 8488 checkUnnamed1256(core.List<core.String> o) { |
7598 unittest.expect(o, unittest.hasLength(2)); | 8489 unittest.expect(o, unittest.hasLength(2)); |
7599 unittest.expect(o[0], unittest.equals('foo')); | 8490 unittest.expect(o[0], unittest.equals('foo')); |
7600 unittest.expect(o[1], unittest.equals('foo')); | 8491 unittest.expect(o[1], unittest.equals('foo')); |
7601 } | 8492 } |
7602 | 8493 |
7603 buildUnnamed456() { | 8494 buildUnnamed1257() { |
7604 var o = new core.List<core.String>(); | 8495 var o = new core.List<core.String>(); |
7605 o.add("foo"); | 8496 o.add("foo"); |
7606 o.add("foo"); | 8497 o.add("foo"); |
7607 return o; | 8498 return o; |
7608 } | 8499 } |
7609 | 8500 |
7610 checkUnnamed456(core.List<core.String> o) { | 8501 checkUnnamed1257(core.List<core.String> o) { |
7611 unittest.expect(o, unittest.hasLength(2)); | 8502 unittest.expect(o, unittest.hasLength(2)); |
7612 unittest.expect(o[0], unittest.equals('foo')); | 8503 unittest.expect(o[0], unittest.equals('foo')); |
7613 unittest.expect(o[1], unittest.equals('foo')); | 8504 unittest.expect(o[1], unittest.equals('foo')); |
7614 } | 8505 } |
7615 | 8506 |
7616 buildUnnamed457() { | 8507 buildUnnamed1258() { |
7617 var o = new core.List<core.String>(); | 8508 var o = new core.List<core.String>(); |
7618 o.add("foo"); | 8509 o.add("foo"); |
7619 o.add("foo"); | 8510 o.add("foo"); |
7620 return o; | 8511 return o; |
7621 } | 8512 } |
7622 | 8513 |
7623 checkUnnamed457(core.List<core.String> o) { | 8514 checkUnnamed1258(core.List<core.String> o) { |
7624 unittest.expect(o, unittest.hasLength(2)); | 8515 unittest.expect(o, unittest.hasLength(2)); |
7625 unittest.expect(o[0], unittest.equals('foo')); | 8516 unittest.expect(o[0], unittest.equals('foo')); |
7626 unittest.expect(o[1], unittest.equals('foo')); | 8517 unittest.expect(o[1], unittest.equals('foo')); |
7627 } | 8518 } |
7628 | 8519 |
7629 buildUnnamed458() { | 8520 buildUnnamed1259() { |
7630 var o = new core.List<core.String>(); | 8521 var o = new core.List<core.String>(); |
7631 o.add("foo"); | 8522 o.add("foo"); |
7632 o.add("foo"); | 8523 o.add("foo"); |
7633 return o; | 8524 return o; |
7634 } | 8525 } |
7635 | 8526 |
7636 checkUnnamed458(core.List<core.String> o) { | 8527 checkUnnamed1259(core.List<core.String> o) { |
7637 unittest.expect(o, unittest.hasLength(2)); | 8528 unittest.expect(o, unittest.hasLength(2)); |
7638 unittest.expect(o[0], unittest.equals('foo')); | 8529 unittest.expect(o[0], unittest.equals('foo')); |
7639 unittest.expect(o[1], unittest.equals('foo')); | 8530 unittest.expect(o[1], unittest.equals('foo')); |
7640 } | 8531 } |
7641 | 8532 |
7642 buildUnnamed459() { | 8533 buildUnnamed1260() { |
7643 var o = new core.List<core.String>(); | 8534 var o = new core.List<core.String>(); |
7644 o.add("foo"); | 8535 o.add("foo"); |
7645 o.add("foo"); | 8536 o.add("foo"); |
7646 return o; | 8537 return o; |
7647 } | 8538 } |
7648 | 8539 |
7649 checkUnnamed459(core.List<core.String> o) { | 8540 checkUnnamed1260(core.List<core.String> o) { |
7650 unittest.expect(o, unittest.hasLength(2)); | 8541 unittest.expect(o, unittest.hasLength(2)); |
7651 unittest.expect(o[0], unittest.equals('foo')); | 8542 unittest.expect(o[0], unittest.equals('foo')); |
7652 unittest.expect(o[1], unittest.equals('foo')); | 8543 unittest.expect(o[1], unittest.equals('foo')); |
7653 } | 8544 } |
7654 | 8545 |
7655 buildUnnamed460() { | 8546 buildUnnamed1261() { |
7656 var o = new core.List<core.String>(); | 8547 var o = new core.List<core.String>(); |
7657 o.add("foo"); | 8548 o.add("foo"); |
7658 o.add("foo"); | 8549 o.add("foo"); |
7659 return o; | 8550 return o; |
7660 } | 8551 } |
7661 | 8552 |
7662 checkUnnamed460(core.List<core.String> o) { | 8553 checkUnnamed1261(core.List<core.String> o) { |
7663 unittest.expect(o, unittest.hasLength(2)); | 8554 unittest.expect(o, unittest.hasLength(2)); |
7664 unittest.expect(o[0], unittest.equals('foo')); | 8555 unittest.expect(o[0], unittest.equals('foo')); |
7665 unittest.expect(o[1], unittest.equals('foo')); | 8556 unittest.expect(o[1], unittest.equals('foo')); |
7666 } | 8557 } |
7667 | 8558 |
7668 buildUnnamed461() { | 8559 buildUnnamed1262() { |
7669 var o = new core.List<core.String>(); | 8560 var o = new core.List<core.String>(); |
7670 o.add("foo"); | 8561 o.add("foo"); |
7671 o.add("foo"); | 8562 o.add("foo"); |
7672 return o; | 8563 return o; |
7673 } | 8564 } |
7674 | 8565 |
7675 checkUnnamed461(core.List<core.String> o) { | 8566 checkUnnamed1262(core.List<core.String> o) { |
7676 unittest.expect(o, unittest.hasLength(2)); | 8567 unittest.expect(o, unittest.hasLength(2)); |
7677 unittest.expect(o[0], unittest.equals('foo')); | 8568 unittest.expect(o[0], unittest.equals('foo')); |
7678 unittest.expect(o[1], unittest.equals('foo')); | 8569 unittest.expect(o[1], unittest.equals('foo')); |
7679 } | 8570 } |
7680 | 8571 |
7681 buildUnnamed462() { | 8572 buildUnnamed1263() { |
7682 var o = new core.List<core.String>(); | 8573 var o = new core.List<core.String>(); |
7683 o.add("foo"); | 8574 o.add("foo"); |
7684 o.add("foo"); | 8575 o.add("foo"); |
7685 return o; | 8576 return o; |
7686 } | 8577 } |
7687 | 8578 |
7688 checkUnnamed462(core.List<core.String> o) { | 8579 checkUnnamed1263(core.List<core.String> o) { |
7689 unittest.expect(o, unittest.hasLength(2)); | 8580 unittest.expect(o, unittest.hasLength(2)); |
7690 unittest.expect(o[0], unittest.equals('foo')); | 8581 unittest.expect(o[0], unittest.equals('foo')); |
7691 unittest.expect(o[1], unittest.equals('foo')); | 8582 unittest.expect(o[1], unittest.equals('foo')); |
7692 } | 8583 } |
7693 | 8584 |
7694 buildUnnamed463() { | 8585 buildUnnamed1264() { |
7695 var o = new core.List<core.String>(); | 8586 var o = new core.List<core.String>(); |
7696 o.add("foo"); | 8587 o.add("foo"); |
7697 o.add("foo"); | 8588 o.add("foo"); |
7698 return o; | 8589 return o; |
7699 } | 8590 } |
7700 | 8591 |
7701 checkUnnamed463(core.List<core.String> o) { | 8592 checkUnnamed1264(core.List<core.String> o) { |
7702 unittest.expect(o, unittest.hasLength(2)); | 8593 unittest.expect(o, unittest.hasLength(2)); |
7703 unittest.expect(o[0], unittest.equals('foo')); | 8594 unittest.expect(o[0], unittest.equals('foo')); |
7704 unittest.expect(o[1], unittest.equals('foo')); | 8595 unittest.expect(o[1], unittest.equals('foo')); |
7705 } | 8596 } |
7706 | 8597 |
7707 buildUnnamed464() { | 8598 buildUnnamed1265() { |
7708 var o = new core.List<core.String>(); | 8599 var o = new core.List<core.String>(); |
7709 o.add("foo"); | 8600 o.add("foo"); |
7710 o.add("foo"); | 8601 o.add("foo"); |
7711 return o; | 8602 return o; |
7712 } | 8603 } |
7713 | 8604 |
7714 checkUnnamed464(core.List<core.String> o) { | 8605 checkUnnamed1265(core.List<core.String> o) { |
7715 unittest.expect(o, unittest.hasLength(2)); | 8606 unittest.expect(o, unittest.hasLength(2)); |
7716 unittest.expect(o[0], unittest.equals('foo')); | 8607 unittest.expect(o[0], unittest.equals('foo')); |
7717 unittest.expect(o[1], unittest.equals('foo')); | 8608 unittest.expect(o[1], unittest.equals('foo')); |
7718 } | 8609 } |
7719 | 8610 |
7720 buildUnnamed465() { | 8611 buildUnnamed1266() { |
7721 var o = new core.List<core.String>(); | 8612 var o = new core.List<core.String>(); |
7722 o.add("foo"); | 8613 o.add("foo"); |
7723 o.add("foo"); | 8614 o.add("foo"); |
7724 return o; | 8615 return o; |
7725 } | 8616 } |
7726 | 8617 |
7727 checkUnnamed465(core.List<core.String> o) { | 8618 checkUnnamed1266(core.List<core.String> o) { |
7728 unittest.expect(o, unittest.hasLength(2)); | 8619 unittest.expect(o, unittest.hasLength(2)); |
7729 unittest.expect(o[0], unittest.equals('foo')); | 8620 unittest.expect(o[0], unittest.equals('foo')); |
7730 unittest.expect(o[1], unittest.equals('foo')); | 8621 unittest.expect(o[1], unittest.equals('foo')); |
7731 } | 8622 } |
7732 | 8623 |
7733 buildUnnamed466() { | 8624 buildUnnamed1267() { |
7734 var o = new core.List<core.String>(); | 8625 var o = new core.List<core.String>(); |
7735 o.add("foo"); | 8626 o.add("foo"); |
7736 o.add("foo"); | 8627 o.add("foo"); |
7737 return o; | 8628 return o; |
7738 } | 8629 } |
7739 | 8630 |
7740 checkUnnamed466(core.List<core.String> o) { | 8631 checkUnnamed1267(core.List<core.String> o) { |
7741 unittest.expect(o, unittest.hasLength(2)); | 8632 unittest.expect(o, unittest.hasLength(2)); |
7742 unittest.expect(o[0], unittest.equals('foo')); | 8633 unittest.expect(o[0], unittest.equals('foo')); |
7743 unittest.expect(o[1], unittest.equals('foo')); | 8634 unittest.expect(o[1], unittest.equals('foo')); |
7744 } | 8635 } |
7745 | 8636 |
7746 buildUnnamed467() { | 8637 buildUnnamed1268() { |
7747 var o = new core.List<core.String>(); | 8638 var o = new core.List<core.String>(); |
7748 o.add("foo"); | 8639 o.add("foo"); |
7749 o.add("foo"); | 8640 o.add("foo"); |
7750 return o; | 8641 return o; |
7751 } | 8642 } |
7752 | 8643 |
7753 checkUnnamed467(core.List<core.String> o) { | 8644 checkUnnamed1268(core.List<core.String> o) { |
7754 unittest.expect(o, unittest.hasLength(2)); | 8645 unittest.expect(o, unittest.hasLength(2)); |
7755 unittest.expect(o[0], unittest.equals('foo')); | 8646 unittest.expect(o[0], unittest.equals('foo')); |
7756 unittest.expect(o[1], unittest.equals('foo')); | 8647 unittest.expect(o[1], unittest.equals('foo')); |
7757 } | 8648 } |
7758 | 8649 |
7759 buildUnnamed468() { | 8650 buildUnnamed1269() { |
7760 var o = new core.List<core.String>(); | 8651 var o = new core.List<core.String>(); |
7761 o.add("foo"); | 8652 o.add("foo"); |
7762 o.add("foo"); | 8653 o.add("foo"); |
7763 return o; | 8654 return o; |
7764 } | 8655 } |
7765 | 8656 |
7766 checkUnnamed468(core.List<core.String> o) { | 8657 checkUnnamed1269(core.List<core.String> o) { |
7767 unittest.expect(o, unittest.hasLength(2)); | 8658 unittest.expect(o, unittest.hasLength(2)); |
7768 unittest.expect(o[0], unittest.equals('foo')); | 8659 unittest.expect(o[0], unittest.equals('foo')); |
7769 unittest.expect(o[1], unittest.equals('foo')); | 8660 unittest.expect(o[1], unittest.equals('foo')); |
7770 } | 8661 } |
7771 | 8662 |
7772 buildUnnamed469() { | 8663 buildUnnamed1270() { |
7773 var o = new core.List<core.String>(); | 8664 var o = new core.List<core.String>(); |
7774 o.add("foo"); | 8665 o.add("foo"); |
7775 o.add("foo"); | 8666 o.add("foo"); |
7776 return o; | 8667 return o; |
7777 } | 8668 } |
7778 | 8669 |
7779 checkUnnamed469(core.List<core.String> o) { | 8670 checkUnnamed1270(core.List<core.String> o) { |
7780 unittest.expect(o, unittest.hasLength(2)); | 8671 unittest.expect(o, unittest.hasLength(2)); |
7781 unittest.expect(o[0], unittest.equals('foo')); | 8672 unittest.expect(o[0], unittest.equals('foo')); |
7782 unittest.expect(o[1], unittest.equals('foo')); | 8673 unittest.expect(o[1], unittest.equals('foo')); |
7783 } | 8674 } |
7784 | 8675 |
7785 buildUnnamed470() { | 8676 buildUnnamed1271() { |
7786 var o = new core.List<core.String>(); | 8677 var o = new core.List<core.String>(); |
7787 o.add("foo"); | 8678 o.add("foo"); |
7788 o.add("foo"); | 8679 o.add("foo"); |
7789 return o; | 8680 return o; |
7790 } | 8681 } |
7791 | 8682 |
7792 checkUnnamed470(core.List<core.String> o) { | 8683 checkUnnamed1271(core.List<core.String> o) { |
7793 unittest.expect(o, unittest.hasLength(2)); | 8684 unittest.expect(o, unittest.hasLength(2)); |
7794 unittest.expect(o[0], unittest.equals('foo')); | 8685 unittest.expect(o[0], unittest.equals('foo')); |
7795 unittest.expect(o[1], unittest.equals('foo')); | 8686 unittest.expect(o[1], unittest.equals('foo')); |
7796 } | 8687 } |
7797 | 8688 |
7798 buildUnnamed471() { | 8689 buildUnnamed1272() { |
7799 var o = new core.List<core.String>(); | 8690 var o = new core.List<core.String>(); |
7800 o.add("foo"); | 8691 o.add("foo"); |
7801 o.add("foo"); | 8692 o.add("foo"); |
7802 return o; | 8693 return o; |
7803 } | 8694 } |
7804 | 8695 |
7805 checkUnnamed471(core.List<core.String> o) { | 8696 checkUnnamed1272(core.List<core.String> o) { |
7806 unittest.expect(o, unittest.hasLength(2)); | 8697 unittest.expect(o, unittest.hasLength(2)); |
7807 unittest.expect(o[0], unittest.equals('foo')); | 8698 unittest.expect(o[0], unittest.equals('foo')); |
7808 unittest.expect(o[1], unittest.equals('foo')); | 8699 unittest.expect(o[1], unittest.equals('foo')); |
7809 } | 8700 } |
7810 | 8701 |
7811 buildUnnamed472() { | 8702 buildUnnamed1273() { |
7812 var o = new core.List<core.String>(); | 8703 var o = new core.List<core.String>(); |
7813 o.add("foo"); | 8704 o.add("foo"); |
7814 o.add("foo"); | 8705 o.add("foo"); |
7815 return o; | 8706 return o; |
7816 } | 8707 } |
7817 | 8708 |
7818 checkUnnamed472(core.List<core.String> o) { | 8709 checkUnnamed1273(core.List<core.String> o) { |
7819 unittest.expect(o, unittest.hasLength(2)); | 8710 unittest.expect(o, unittest.hasLength(2)); |
7820 unittest.expect(o[0], unittest.equals('foo')); | 8711 unittest.expect(o[0], unittest.equals('foo')); |
7821 unittest.expect(o[1], unittest.equals('foo')); | 8712 unittest.expect(o[1], unittest.equals('foo')); |
7822 } | 8713 } |
7823 | 8714 |
7824 buildUnnamed473() { | 8715 buildUnnamed1274() { |
7825 var o = new core.List<core.String>(); | 8716 var o = new core.List<core.String>(); |
7826 o.add("foo"); | 8717 o.add("foo"); |
7827 o.add("foo"); | 8718 o.add("foo"); |
7828 return o; | 8719 return o; |
7829 } | 8720 } |
7830 | 8721 |
7831 checkUnnamed473(core.List<core.String> o) { | 8722 checkUnnamed1274(core.List<core.String> o) { |
7832 unittest.expect(o, unittest.hasLength(2)); | 8723 unittest.expect(o, unittest.hasLength(2)); |
7833 unittest.expect(o[0], unittest.equals('foo')); | 8724 unittest.expect(o[0], unittest.equals('foo')); |
7834 unittest.expect(o[1], unittest.equals('foo')); | 8725 unittest.expect(o[1], unittest.equals('foo')); |
7835 } | 8726 } |
7836 | 8727 |
7837 buildUnnamed474() { | 8728 buildUnnamed1275() { |
7838 var o = new core.List<core.String>(); | 8729 var o = new core.List<core.String>(); |
7839 o.add("foo"); | 8730 o.add("foo"); |
7840 o.add("foo"); | 8731 o.add("foo"); |
7841 return o; | 8732 return o; |
7842 } | 8733 } |
7843 | 8734 |
7844 checkUnnamed474(core.List<core.String> o) { | 8735 checkUnnamed1275(core.List<core.String> o) { |
7845 unittest.expect(o, unittest.hasLength(2)); | 8736 unittest.expect(o, unittest.hasLength(2)); |
7846 unittest.expect(o[0], unittest.equals('foo')); | 8737 unittest.expect(o[0], unittest.equals('foo')); |
7847 unittest.expect(o[1], unittest.equals('foo')); | 8738 unittest.expect(o[1], unittest.equals('foo')); |
7848 } | 8739 } |
7849 | 8740 |
7850 buildUnnamed475() { | 8741 buildUnnamed1276() { |
7851 var o = new core.List<core.String>(); | 8742 var o = new core.List<core.String>(); |
7852 o.add("foo"); | 8743 o.add("foo"); |
7853 o.add("foo"); | 8744 o.add("foo"); |
7854 return o; | 8745 return o; |
7855 } | 8746 } |
7856 | 8747 |
7857 checkUnnamed475(core.List<core.String> o) { | 8748 checkUnnamed1276(core.List<core.String> o) { |
7858 unittest.expect(o, unittest.hasLength(2)); | 8749 unittest.expect(o, unittest.hasLength(2)); |
7859 unittest.expect(o[0], unittest.equals('foo')); | 8750 unittest.expect(o[0], unittest.equals('foo')); |
7860 unittest.expect(o[1], unittest.equals('foo')); | 8751 unittest.expect(o[1], unittest.equals('foo')); |
7861 } | 8752 } |
7862 | 8753 |
7863 buildUnnamed476() { | 8754 buildUnnamed1277() { |
7864 var o = new core.List<core.String>(); | 8755 var o = new core.List<core.String>(); |
7865 o.add("foo"); | 8756 o.add("foo"); |
7866 o.add("foo"); | 8757 o.add("foo"); |
7867 return o; | 8758 return o; |
7868 } | 8759 } |
7869 | 8760 |
7870 checkUnnamed476(core.List<core.String> o) { | 8761 checkUnnamed1277(core.List<core.String> o) { |
7871 unittest.expect(o, unittest.hasLength(2)); | 8762 unittest.expect(o, unittest.hasLength(2)); |
7872 unittest.expect(o[0], unittest.equals('foo')); | 8763 unittest.expect(o[0], unittest.equals('foo')); |
7873 unittest.expect(o[1], unittest.equals('foo')); | 8764 unittest.expect(o[1], unittest.equals('foo')); |
7874 } | 8765 } |
7875 | 8766 |
7876 buildUnnamed477() { | 8767 buildUnnamed1278() { |
7877 var o = new core.List<core.String>(); | 8768 var o = new core.List<core.String>(); |
7878 o.add("foo"); | 8769 o.add("foo"); |
7879 o.add("foo"); | 8770 o.add("foo"); |
7880 return o; | 8771 return o; |
7881 } | 8772 } |
7882 | 8773 |
7883 checkUnnamed477(core.List<core.String> o) { | 8774 checkUnnamed1278(core.List<core.String> o) { |
7884 unittest.expect(o, unittest.hasLength(2)); | 8775 unittest.expect(o, unittest.hasLength(2)); |
7885 unittest.expect(o[0], unittest.equals('foo')); | 8776 unittest.expect(o[0], unittest.equals('foo')); |
7886 unittest.expect(o[1], unittest.equals('foo')); | 8777 unittest.expect(o[1], unittest.equals('foo')); |
7887 } | 8778 } |
7888 | 8779 |
7889 buildUnnamed478() { | 8780 buildUnnamed1279() { |
7890 var o = new core.List<core.String>(); | 8781 var o = new core.List<core.String>(); |
7891 o.add("foo"); | 8782 o.add("foo"); |
7892 o.add("foo"); | 8783 o.add("foo"); |
7893 return o; | 8784 return o; |
7894 } | 8785 } |
7895 | 8786 |
7896 checkUnnamed478(core.List<core.String> o) { | 8787 checkUnnamed1279(core.List<core.String> o) { |
7897 unittest.expect(o, unittest.hasLength(2)); | 8788 unittest.expect(o, unittest.hasLength(2)); |
7898 unittest.expect(o[0], unittest.equals('foo')); | 8789 unittest.expect(o[0], unittest.equals('foo')); |
7899 unittest.expect(o[1], unittest.equals('foo')); | 8790 unittest.expect(o[1], unittest.equals('foo')); |
7900 } | 8791 } |
7901 | 8792 |
7902 buildUnnamed479() { | 8793 buildUnnamed1280() { |
7903 var o = new core.List<core.String>(); | 8794 var o = new core.List<core.String>(); |
7904 o.add("foo"); | 8795 o.add("foo"); |
7905 o.add("foo"); | 8796 o.add("foo"); |
7906 return o; | 8797 return o; |
7907 } | 8798 } |
7908 | 8799 |
7909 checkUnnamed479(core.List<core.String> o) { | 8800 checkUnnamed1280(core.List<core.String> o) { |
7910 unittest.expect(o, unittest.hasLength(2)); | 8801 unittest.expect(o, unittest.hasLength(2)); |
7911 unittest.expect(o[0], unittest.equals('foo')); | 8802 unittest.expect(o[0], unittest.equals('foo')); |
7912 unittest.expect(o[1], unittest.equals('foo')); | 8803 unittest.expect(o[1], unittest.equals('foo')); |
7913 } | 8804 } |
7914 | 8805 |
7915 buildUnnamed480() { | 8806 buildUnnamed1281() { |
7916 var o = new core.List<core.String>(); | 8807 var o = new core.List<core.String>(); |
7917 o.add("foo"); | 8808 o.add("foo"); |
7918 o.add("foo"); | 8809 o.add("foo"); |
7919 return o; | 8810 return o; |
7920 } | 8811 } |
7921 | 8812 |
7922 checkUnnamed480(core.List<core.String> o) { | 8813 checkUnnamed1281(core.List<core.String> o) { |
7923 unittest.expect(o, unittest.hasLength(2)); | 8814 unittest.expect(o, unittest.hasLength(2)); |
7924 unittest.expect(o[0], unittest.equals('foo')); | 8815 unittest.expect(o[0], unittest.equals('foo')); |
7925 unittest.expect(o[1], unittest.equals('foo')); | 8816 unittest.expect(o[1], unittest.equals('foo')); |
7926 } | 8817 } |
7927 | 8818 |
7928 buildUnnamed481() { | 8819 buildUnnamed1282() { |
7929 var o = new core.List<core.String>(); | 8820 var o = new core.List<core.String>(); |
7930 o.add("foo"); | 8821 o.add("foo"); |
7931 o.add("foo"); | 8822 o.add("foo"); |
7932 return o; | 8823 return o; |
7933 } | 8824 } |
7934 | 8825 |
7935 checkUnnamed481(core.List<core.String> o) { | 8826 checkUnnamed1282(core.List<core.String> o) { |
7936 unittest.expect(o, unittest.hasLength(2)); | 8827 unittest.expect(o, unittest.hasLength(2)); |
7937 unittest.expect(o[0], unittest.equals('foo')); | 8828 unittest.expect(o[0], unittest.equals('foo')); |
7938 unittest.expect(o[1], unittest.equals('foo')); | 8829 unittest.expect(o[1], unittest.equals('foo')); |
7939 } | 8830 } |
7940 | 8831 |
7941 buildUnnamed482() { | 8832 buildUnnamed1283() { |
7942 var o = new core.List<core.String>(); | 8833 var o = new core.List<core.String>(); |
7943 o.add("foo"); | 8834 o.add("foo"); |
7944 o.add("foo"); | 8835 o.add("foo"); |
7945 return o; | 8836 return o; |
7946 } | 8837 } |
7947 | 8838 |
7948 checkUnnamed482(core.List<core.String> o) { | 8839 checkUnnamed1283(core.List<core.String> o) { |
7949 unittest.expect(o, unittest.hasLength(2)); | 8840 unittest.expect(o, unittest.hasLength(2)); |
7950 unittest.expect(o[0], unittest.equals('foo')); | 8841 unittest.expect(o[0], unittest.equals('foo')); |
7951 unittest.expect(o[1], unittest.equals('foo')); | 8842 unittest.expect(o[1], unittest.equals('foo')); |
7952 } | 8843 } |
7953 | 8844 |
7954 buildUnnamed483() { | 8845 buildUnnamed1284() { |
7955 var o = new core.List<core.String>(); | 8846 var o = new core.List<core.String>(); |
7956 o.add("foo"); | 8847 o.add("foo"); |
7957 o.add("foo"); | 8848 o.add("foo"); |
7958 return o; | 8849 return o; |
7959 } | 8850 } |
7960 | 8851 |
7961 checkUnnamed483(core.List<core.String> o) { | 8852 checkUnnamed1284(core.List<core.String> o) { |
7962 unittest.expect(o, unittest.hasLength(2)); | 8853 unittest.expect(o, unittest.hasLength(2)); |
7963 unittest.expect(o[0], unittest.equals('foo')); | 8854 unittest.expect(o[0], unittest.equals('foo')); |
7964 unittest.expect(o[1], unittest.equals('foo')); | 8855 unittest.expect(o[1], unittest.equals('foo')); |
7965 } | 8856 } |
7966 | 8857 |
7967 buildUnnamed484() { | 8858 buildUnnamed1285() { |
7968 var o = new core.List<core.String>(); | 8859 var o = new core.List<core.String>(); |
7969 o.add("foo"); | 8860 o.add("foo"); |
7970 o.add("foo"); | 8861 o.add("foo"); |
7971 return o; | 8862 return o; |
7972 } | 8863 } |
7973 | 8864 |
7974 checkUnnamed484(core.List<core.String> o) { | 8865 checkUnnamed1285(core.List<core.String> o) { |
7975 unittest.expect(o, unittest.hasLength(2)); | 8866 unittest.expect(o, unittest.hasLength(2)); |
7976 unittest.expect(o[0], unittest.equals('foo')); | 8867 unittest.expect(o[0], unittest.equals('foo')); |
7977 unittest.expect(o[1], unittest.equals('foo')); | 8868 unittest.expect(o[1], unittest.equals('foo')); |
7978 } | 8869 } |
7979 | 8870 |
7980 buildUnnamed485() { | 8871 buildUnnamed1286() { |
7981 var o = new core.List<core.String>(); | 8872 var o = new core.List<core.String>(); |
7982 o.add("foo"); | 8873 o.add("foo"); |
7983 o.add("foo"); | 8874 o.add("foo"); |
7984 return o; | 8875 return o; |
7985 } | 8876 } |
7986 | 8877 |
7987 checkUnnamed485(core.List<core.String> o) { | 8878 checkUnnamed1286(core.List<core.String> o) { |
7988 unittest.expect(o, unittest.hasLength(2)); | 8879 unittest.expect(o, unittest.hasLength(2)); |
7989 unittest.expect(o[0], unittest.equals('foo')); | 8880 unittest.expect(o[0], unittest.equals('foo')); |
7990 unittest.expect(o[1], unittest.equals('foo')); | 8881 unittest.expect(o[1], unittest.equals('foo')); |
7991 } | 8882 } |
7992 | 8883 |
7993 buildUnnamed486() { | 8884 buildUnnamed1287() { |
7994 var o = new core.List<core.String>(); | 8885 var o = new core.List<core.String>(); |
7995 o.add("foo"); | 8886 o.add("foo"); |
7996 o.add("foo"); | 8887 o.add("foo"); |
7997 return o; | 8888 return o; |
7998 } | 8889 } |
7999 | 8890 |
8000 checkUnnamed486(core.List<core.String> o) { | 8891 checkUnnamed1287(core.List<core.String> o) { |
8001 unittest.expect(o, unittest.hasLength(2)); | 8892 unittest.expect(o, unittest.hasLength(2)); |
8002 unittest.expect(o[0], unittest.equals('foo')); | 8893 unittest.expect(o[0], unittest.equals('foo')); |
8003 unittest.expect(o[1], unittest.equals('foo')); | 8894 unittest.expect(o[1], unittest.equals('foo')); |
8004 } | 8895 } |
8005 | 8896 |
8006 buildUnnamed487() { | 8897 buildUnnamed1288() { |
8007 var o = new core.List<core.String>(); | 8898 var o = new core.List<core.String>(); |
8008 o.add("foo"); | 8899 o.add("foo"); |
8009 o.add("foo"); | 8900 o.add("foo"); |
8010 return o; | 8901 return o; |
8011 } | 8902 } |
8012 | 8903 |
8013 checkUnnamed487(core.List<core.String> o) { | 8904 checkUnnamed1288(core.List<core.String> o) { |
8014 unittest.expect(o, unittest.hasLength(2)); | 8905 unittest.expect(o, unittest.hasLength(2)); |
8015 unittest.expect(o[0], unittest.equals('foo')); | 8906 unittest.expect(o[0], unittest.equals('foo')); |
8016 unittest.expect(o[1], unittest.equals('foo')); | 8907 unittest.expect(o[1], unittest.equals('foo')); |
8017 } | 8908 } |
8018 | 8909 |
8019 buildUnnamed488() { | 8910 buildUnnamed1289() { |
8020 var o = new core.List<core.String>(); | 8911 var o = new core.List<core.String>(); |
8021 o.add("foo"); | 8912 o.add("foo"); |
8022 o.add("foo"); | 8913 o.add("foo"); |
8023 return o; | 8914 return o; |
8024 } | 8915 } |
8025 | 8916 |
8026 checkUnnamed488(core.List<core.String> o) { | 8917 checkUnnamed1289(core.List<core.String> o) { |
8027 unittest.expect(o, unittest.hasLength(2)); | 8918 unittest.expect(o, unittest.hasLength(2)); |
8028 unittest.expect(o[0], unittest.equals('foo')); | 8919 unittest.expect(o[0], unittest.equals('foo')); |
8029 unittest.expect(o[1], unittest.equals('foo')); | 8920 unittest.expect(o[1], unittest.equals('foo')); |
8030 } | 8921 } |
8031 | 8922 |
8032 buildUnnamed489() { | 8923 buildUnnamed1290() { |
8033 var o = new core.List<core.String>(); | 8924 var o = new core.List<core.String>(); |
8034 o.add("foo"); | 8925 o.add("foo"); |
8035 o.add("foo"); | 8926 o.add("foo"); |
8036 return o; | 8927 return o; |
8037 } | 8928 } |
8038 | 8929 |
8039 checkUnnamed489(core.List<core.String> o) { | 8930 checkUnnamed1290(core.List<core.String> o) { |
8040 unittest.expect(o, unittest.hasLength(2)); | 8931 unittest.expect(o, unittest.hasLength(2)); |
8041 unittest.expect(o[0], unittest.equals('foo')); | 8932 unittest.expect(o[0], unittest.equals('foo')); |
8042 unittest.expect(o[1], unittest.equals('foo')); | 8933 unittest.expect(o[1], unittest.equals('foo')); |
8043 } | 8934 } |
8044 | 8935 |
8045 buildUnnamed490() { | 8936 buildUnnamed1291() { |
8046 var o = new core.List<core.String>(); | 8937 var o = new core.List<core.String>(); |
8047 o.add("foo"); | 8938 o.add("foo"); |
8048 o.add("foo"); | 8939 o.add("foo"); |
8049 return o; | 8940 return o; |
8050 } | 8941 } |
8051 | 8942 |
8052 checkUnnamed490(core.List<core.String> o) { | 8943 checkUnnamed1291(core.List<core.String> o) { |
8053 unittest.expect(o, unittest.hasLength(2)); | 8944 unittest.expect(o, unittest.hasLength(2)); |
8054 unittest.expect(o[0], unittest.equals('foo')); | 8945 unittest.expect(o[0], unittest.equals('foo')); |
8055 unittest.expect(o[1], unittest.equals('foo')); | 8946 unittest.expect(o[1], unittest.equals('foo')); |
8056 } | 8947 } |
8057 | 8948 |
8058 buildUnnamed491() { | 8949 buildUnnamed1292() { |
8059 var o = new core.List<core.String>(); | 8950 var o = new core.List<core.String>(); |
8060 o.add("foo"); | 8951 o.add("foo"); |
8061 o.add("foo"); | 8952 o.add("foo"); |
8062 return o; | 8953 return o; |
8063 } | 8954 } |
8064 | 8955 |
8065 checkUnnamed491(core.List<core.String> o) { | 8956 checkUnnamed1292(core.List<core.String> o) { |
8066 unittest.expect(o, unittest.hasLength(2)); | 8957 unittest.expect(o, unittest.hasLength(2)); |
8067 unittest.expect(o[0], unittest.equals('foo')); | 8958 unittest.expect(o[0], unittest.equals('foo')); |
8068 unittest.expect(o[1], unittest.equals('foo')); | 8959 unittest.expect(o[1], unittest.equals('foo')); |
8069 } | 8960 } |
8070 | 8961 |
8071 buildUnnamed492() { | 8962 buildUnnamed1293() { |
8072 var o = new core.List<core.String>(); | 8963 var o = new core.List<core.String>(); |
8073 o.add("foo"); | 8964 o.add("foo"); |
8074 o.add("foo"); | 8965 o.add("foo"); |
8075 return o; | 8966 return o; |
8076 } | 8967 } |
8077 | 8968 |
8078 checkUnnamed492(core.List<core.String> o) { | 8969 checkUnnamed1293(core.List<core.String> o) { |
8079 unittest.expect(o, unittest.hasLength(2)); | 8970 unittest.expect(o, unittest.hasLength(2)); |
8080 unittest.expect(o[0], unittest.equals('foo')); | 8971 unittest.expect(o[0], unittest.equals('foo')); |
8081 unittest.expect(o[1], unittest.equals('foo')); | 8972 unittest.expect(o[1], unittest.equals('foo')); |
| 8973 } |
| 8974 |
| 8975 buildUnnamed1294() { |
| 8976 var o = new core.List<core.String>(); |
| 8977 o.add("foo"); |
| 8978 o.add("foo"); |
| 8979 return o; |
| 8980 } |
| 8981 |
| 8982 checkUnnamed1294(core.List<core.String> o) { |
| 8983 unittest.expect(o, unittest.hasLength(2)); |
| 8984 unittest.expect(o[0], unittest.equals('foo')); |
| 8985 unittest.expect(o[1], unittest.equals('foo')); |
| 8986 } |
| 8987 |
| 8988 buildUnnamed1295() { |
| 8989 var o = new core.List<core.String>(); |
| 8990 o.add("foo"); |
| 8991 o.add("foo"); |
| 8992 return o; |
| 8993 } |
| 8994 |
| 8995 checkUnnamed1295(core.List<core.String> o) { |
| 8996 unittest.expect(o, unittest.hasLength(2)); |
| 8997 unittest.expect(o[0], unittest.equals('foo')); |
| 8998 unittest.expect(o[1], unittest.equals('foo')); |
| 8999 } |
| 9000 |
| 9001 buildUnnamed1296() { |
| 9002 var o = new core.List<core.String>(); |
| 9003 o.add("foo"); |
| 9004 o.add("foo"); |
| 9005 return o; |
| 9006 } |
| 9007 |
| 9008 checkUnnamed1296(core.List<core.String> o) { |
| 9009 unittest.expect(o, unittest.hasLength(2)); |
| 9010 unittest.expect(o[0], unittest.equals('foo')); |
| 9011 unittest.expect(o[1], unittest.equals('foo')); |
| 9012 } |
| 9013 |
| 9014 buildUnnamed1297() { |
| 9015 var o = new core.List<core.String>(); |
| 9016 o.add("foo"); |
| 9017 o.add("foo"); |
| 9018 return o; |
| 9019 } |
| 9020 |
| 9021 checkUnnamed1297(core.List<core.String> o) { |
| 9022 unittest.expect(o, unittest.hasLength(2)); |
| 9023 unittest.expect(o[0], unittest.equals('foo')); |
| 9024 unittest.expect(o[1], unittest.equals('foo')); |
| 9025 } |
| 9026 |
| 9027 buildUnnamed1298() { |
| 9028 var o = new core.List<core.String>(); |
| 9029 o.add("foo"); |
| 9030 o.add("foo"); |
| 9031 return o; |
| 9032 } |
| 9033 |
| 9034 checkUnnamed1298(core.List<core.String> o) { |
| 9035 unittest.expect(o, unittest.hasLength(2)); |
| 9036 unittest.expect(o[0], unittest.equals('foo')); |
| 9037 unittest.expect(o[1], unittest.equals('foo')); |
| 9038 } |
| 9039 |
| 9040 buildUnnamed1299() { |
| 9041 var o = new core.List<core.String>(); |
| 9042 o.add("foo"); |
| 9043 o.add("foo"); |
| 9044 return o; |
| 9045 } |
| 9046 |
| 9047 checkUnnamed1299(core.List<core.String> o) { |
| 9048 unittest.expect(o, unittest.hasLength(2)); |
| 9049 unittest.expect(o[0], unittest.equals('foo')); |
| 9050 unittest.expect(o[1], unittest.equals('foo')); |
| 9051 } |
| 9052 |
| 9053 buildUnnamed1300() { |
| 9054 var o = new core.List<core.String>(); |
| 9055 o.add("foo"); |
| 9056 o.add("foo"); |
| 9057 return o; |
| 9058 } |
| 9059 |
| 9060 checkUnnamed1300(core.List<core.String> o) { |
| 9061 unittest.expect(o, unittest.hasLength(2)); |
| 9062 unittest.expect(o[0], unittest.equals('foo')); |
| 9063 unittest.expect(o[1], unittest.equals('foo')); |
| 9064 } |
| 9065 |
| 9066 buildUnnamed1301() { |
| 9067 var o = new core.List<core.String>(); |
| 9068 o.add("foo"); |
| 9069 o.add("foo"); |
| 9070 return o; |
| 9071 } |
| 9072 |
| 9073 checkUnnamed1301(core.List<core.String> o) { |
| 9074 unittest.expect(o, unittest.hasLength(2)); |
| 9075 unittest.expect(o[0], unittest.equals('foo')); |
| 9076 unittest.expect(o[1], unittest.equals('foo')); |
| 9077 } |
| 9078 |
| 9079 buildUnnamed1302() { |
| 9080 var o = new core.List<core.String>(); |
| 9081 o.add("foo"); |
| 9082 o.add("foo"); |
| 9083 return o; |
| 9084 } |
| 9085 |
| 9086 checkUnnamed1302(core.List<core.String> o) { |
| 9087 unittest.expect(o, unittest.hasLength(2)); |
| 9088 unittest.expect(o[0], unittest.equals('foo')); |
| 9089 unittest.expect(o[1], unittest.equals('foo')); |
| 9090 } |
| 9091 |
| 9092 buildUnnamed1303() { |
| 9093 var o = new core.List<core.String>(); |
| 9094 o.add("foo"); |
| 9095 o.add("foo"); |
| 9096 return o; |
| 9097 } |
| 9098 |
| 9099 checkUnnamed1303(core.List<core.String> o) { |
| 9100 unittest.expect(o, unittest.hasLength(2)); |
| 9101 unittest.expect(o[0], unittest.equals('foo')); |
| 9102 unittest.expect(o[1], unittest.equals('foo')); |
8082 } | 9103 } |
8083 | 9104 |
8084 | 9105 |
8085 main() { | 9106 main() { |
8086 unittest.group("obj-schema-Account", () { | 9107 unittest.group("obj-schema-Account", () { |
8087 unittest.test("to-json--from-json", () { | 9108 unittest.test("to-json--from-json", () { |
8088 var o = buildAccount(); | 9109 var o = buildAccount(); |
8089 var od = new api.Account.fromJson(o.toJson()); | 9110 var od = new api.Account.fromJson(o.toJson()); |
8090 checkAccount(od); | 9111 checkAccount(od); |
8091 }); | 9112 }); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8175 | 9196 |
8176 unittest.group("obj-schema-Ad", () { | 9197 unittest.group("obj-schema-Ad", () { |
8177 unittest.test("to-json--from-json", () { | 9198 unittest.test("to-json--from-json", () { |
8178 var o = buildAd(); | 9199 var o = buildAd(); |
8179 var od = new api.Ad.fromJson(o.toJson()); | 9200 var od = new api.Ad.fromJson(o.toJson()); |
8180 checkAd(od); | 9201 checkAd(od); |
8181 }); | 9202 }); |
8182 }); | 9203 }); |
8183 | 9204 |
8184 | 9205 |
| 9206 unittest.group("obj-schema-AdSlot", () { |
| 9207 unittest.test("to-json--from-json", () { |
| 9208 var o = buildAdSlot(); |
| 9209 var od = new api.AdSlot.fromJson(o.toJson()); |
| 9210 checkAdSlot(od); |
| 9211 }); |
| 9212 }); |
| 9213 |
| 9214 |
8185 unittest.group("obj-schema-AdsListResponse", () { | 9215 unittest.group("obj-schema-AdsListResponse", () { |
8186 unittest.test("to-json--from-json", () { | 9216 unittest.test("to-json--from-json", () { |
8187 var o = buildAdsListResponse(); | 9217 var o = buildAdsListResponse(); |
8188 var od = new api.AdsListResponse.fromJson(o.toJson()); | 9218 var od = new api.AdsListResponse.fromJson(o.toJson()); |
8189 checkAdsListResponse(od); | 9219 checkAdsListResponse(od); |
8190 }); | 9220 }); |
8191 }); | 9221 }); |
8192 | 9222 |
8193 | 9223 |
8194 unittest.group("obj-schema-Advertiser", () { | 9224 unittest.group("obj-schema-Advertiser", () { |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8805 | 9835 |
8806 unittest.group("obj-schema-FileList", () { | 9836 unittest.group("obj-schema-FileList", () { |
8807 unittest.test("to-json--from-json", () { | 9837 unittest.test("to-json--from-json", () { |
8808 var o = buildFileList(); | 9838 var o = buildFileList(); |
8809 var od = new api.FileList.fromJson(o.toJson()); | 9839 var od = new api.FileList.fromJson(o.toJson()); |
8810 checkFileList(od); | 9840 checkFileList(od); |
8811 }); | 9841 }); |
8812 }); | 9842 }); |
8813 | 9843 |
8814 | 9844 |
| 9845 unittest.group("obj-schema-Flight", () { |
| 9846 unittest.test("to-json--from-json", () { |
| 9847 var o = buildFlight(); |
| 9848 var od = new api.Flight.fromJson(o.toJson()); |
| 9849 checkFlight(od); |
| 9850 }); |
| 9851 }); |
| 9852 |
| 9853 |
8815 unittest.group("obj-schema-FloodlightActivitiesGenerateTagResponse", () { | 9854 unittest.group("obj-schema-FloodlightActivitiesGenerateTagResponse", () { |
8816 unittest.test("to-json--from-json", () { | 9855 unittest.test("to-json--from-json", () { |
8817 var o = buildFloodlightActivitiesGenerateTagResponse(); | 9856 var o = buildFloodlightActivitiesGenerateTagResponse(); |
8818 var od = new api.FloodlightActivitiesGenerateTagResponse.fromJson(o.toJson
()); | 9857 var od = new api.FloodlightActivitiesGenerateTagResponse.fromJson(o.toJson
()); |
8819 checkFloodlightActivitiesGenerateTagResponse(od); | 9858 checkFloodlightActivitiesGenerateTagResponse(od); |
8820 }); | 9859 }); |
8821 }); | 9860 }); |
8822 | 9861 |
8823 | 9862 |
8824 unittest.group("obj-schema-FloodlightActivitiesListResponse", () { | 9863 unittest.group("obj-schema-FloodlightActivitiesListResponse", () { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8922 | 9961 |
8923 unittest.group("obj-schema-GeoTargeting", () { | 9962 unittest.group("obj-schema-GeoTargeting", () { |
8924 unittest.test("to-json--from-json", () { | 9963 unittest.test("to-json--from-json", () { |
8925 var o = buildGeoTargeting(); | 9964 var o = buildGeoTargeting(); |
8926 var od = new api.GeoTargeting.fromJson(o.toJson()); | 9965 var od = new api.GeoTargeting.fromJson(o.toJson()); |
8927 checkGeoTargeting(od); | 9966 checkGeoTargeting(od); |
8928 }); | 9967 }); |
8929 }); | 9968 }); |
8930 | 9969 |
8931 | 9970 |
| 9971 unittest.group("obj-schema-InventoryItem", () { |
| 9972 unittest.test("to-json--from-json", () { |
| 9973 var o = buildInventoryItem(); |
| 9974 var od = new api.InventoryItem.fromJson(o.toJson()); |
| 9975 checkInventoryItem(od); |
| 9976 }); |
| 9977 }); |
| 9978 |
| 9979 |
| 9980 unittest.group("obj-schema-InventoryItemsListResponse", () { |
| 9981 unittest.test("to-json--from-json", () { |
| 9982 var o = buildInventoryItemsListResponse(); |
| 9983 var od = new api.InventoryItemsListResponse.fromJson(o.toJson()); |
| 9984 checkInventoryItemsListResponse(od); |
| 9985 }); |
| 9986 }); |
| 9987 |
| 9988 |
8932 unittest.group("obj-schema-KeyValueTargetingExpression", () { | 9989 unittest.group("obj-schema-KeyValueTargetingExpression", () { |
8933 unittest.test("to-json--from-json", () { | 9990 unittest.test("to-json--from-json", () { |
8934 var o = buildKeyValueTargetingExpression(); | 9991 var o = buildKeyValueTargetingExpression(); |
8935 var od = new api.KeyValueTargetingExpression.fromJson(o.toJson()); | 9992 var od = new api.KeyValueTargetingExpression.fromJson(o.toJson()); |
8936 checkKeyValueTargetingExpression(od); | 9993 checkKeyValueTargetingExpression(od); |
8937 }); | 9994 }); |
8938 }); | 9995 }); |
8939 | 9996 |
8940 | 9997 |
8941 unittest.group("obj-schema-LandingPage", () { | 9998 unittest.group("obj-schema-LandingPage", () { |
(...skipping 16 matching lines...) Expand all Loading... |
8958 | 10015 |
8959 unittest.group("obj-schema-LastModifiedInfo", () { | 10016 unittest.group("obj-schema-LastModifiedInfo", () { |
8960 unittest.test("to-json--from-json", () { | 10017 unittest.test("to-json--from-json", () { |
8961 var o = buildLastModifiedInfo(); | 10018 var o = buildLastModifiedInfo(); |
8962 var od = new api.LastModifiedInfo.fromJson(o.toJson()); | 10019 var od = new api.LastModifiedInfo.fromJson(o.toJson()); |
8963 checkLastModifiedInfo(od); | 10020 checkLastModifiedInfo(od); |
8964 }); | 10021 }); |
8965 }); | 10022 }); |
8966 | 10023 |
8967 | 10024 |
| 10025 unittest.group("obj-schema-ListPopulationClause", () { |
| 10026 unittest.test("to-json--from-json", () { |
| 10027 var o = buildListPopulationClause(); |
| 10028 var od = new api.ListPopulationClause.fromJson(o.toJson()); |
| 10029 checkListPopulationClause(od); |
| 10030 }); |
| 10031 }); |
| 10032 |
| 10033 |
| 10034 unittest.group("obj-schema-ListPopulationRule", () { |
| 10035 unittest.test("to-json--from-json", () { |
| 10036 var o = buildListPopulationRule(); |
| 10037 var od = new api.ListPopulationRule.fromJson(o.toJson()); |
| 10038 checkListPopulationRule(od); |
| 10039 }); |
| 10040 }); |
| 10041 |
| 10042 |
| 10043 unittest.group("obj-schema-ListPopulationTerm", () { |
| 10044 unittest.test("to-json--from-json", () { |
| 10045 var o = buildListPopulationTerm(); |
| 10046 var od = new api.ListPopulationTerm.fromJson(o.toJson()); |
| 10047 checkListPopulationTerm(od); |
| 10048 }); |
| 10049 }); |
| 10050 |
| 10051 |
8968 unittest.group("obj-schema-ListTargetingExpression", () { | 10052 unittest.group("obj-schema-ListTargetingExpression", () { |
8969 unittest.test("to-json--from-json", () { | 10053 unittest.test("to-json--from-json", () { |
8970 var o = buildListTargetingExpression(); | 10054 var o = buildListTargetingExpression(); |
8971 var od = new api.ListTargetingExpression.fromJson(o.toJson()); | 10055 var od = new api.ListTargetingExpression.fromJson(o.toJson()); |
8972 checkListTargetingExpression(od); | 10056 checkListTargetingExpression(od); |
8973 }); | 10057 }); |
8974 }); | 10058 }); |
8975 | 10059 |
8976 | 10060 |
8977 unittest.group("obj-schema-LookbackConfiguration", () { | 10061 unittest.group("obj-schema-LookbackConfiguration", () { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9093 | 10177 |
9094 unittest.group("obj-schema-OptimizationActivity", () { | 10178 unittest.group("obj-schema-OptimizationActivity", () { |
9095 unittest.test("to-json--from-json", () { | 10179 unittest.test("to-json--from-json", () { |
9096 var o = buildOptimizationActivity(); | 10180 var o = buildOptimizationActivity(); |
9097 var od = new api.OptimizationActivity.fromJson(o.toJson()); | 10181 var od = new api.OptimizationActivity.fromJson(o.toJson()); |
9098 checkOptimizationActivity(od); | 10182 checkOptimizationActivity(od); |
9099 }); | 10183 }); |
9100 }); | 10184 }); |
9101 | 10185 |
9102 | 10186 |
| 10187 unittest.group("obj-schema-Order", () { |
| 10188 unittest.test("to-json--from-json", () { |
| 10189 var o = buildOrder(); |
| 10190 var od = new api.Order.fromJson(o.toJson()); |
| 10191 checkOrder(od); |
| 10192 }); |
| 10193 }); |
| 10194 |
| 10195 |
| 10196 unittest.group("obj-schema-OrderContact", () { |
| 10197 unittest.test("to-json--from-json", () { |
| 10198 var o = buildOrderContact(); |
| 10199 var od = new api.OrderContact.fromJson(o.toJson()); |
| 10200 checkOrderContact(od); |
| 10201 }); |
| 10202 }); |
| 10203 |
| 10204 |
| 10205 unittest.group("obj-schema-OrderDocument", () { |
| 10206 unittest.test("to-json--from-json", () { |
| 10207 var o = buildOrderDocument(); |
| 10208 var od = new api.OrderDocument.fromJson(o.toJson()); |
| 10209 checkOrderDocument(od); |
| 10210 }); |
| 10211 }); |
| 10212 |
| 10213 |
| 10214 unittest.group("obj-schema-OrderDocumentsListResponse", () { |
| 10215 unittest.test("to-json--from-json", () { |
| 10216 var o = buildOrderDocumentsListResponse(); |
| 10217 var od = new api.OrderDocumentsListResponse.fromJson(o.toJson()); |
| 10218 checkOrderDocumentsListResponse(od); |
| 10219 }); |
| 10220 }); |
| 10221 |
| 10222 |
| 10223 unittest.group("obj-schema-OrdersListResponse", () { |
| 10224 unittest.test("to-json--from-json", () { |
| 10225 var o = buildOrdersListResponse(); |
| 10226 var od = new api.OrdersListResponse.fromJson(o.toJson()); |
| 10227 checkOrdersListResponse(od); |
| 10228 }); |
| 10229 }); |
| 10230 |
| 10231 |
9103 unittest.group("obj-schema-PathToConversionReportCompatibleFields", () { | 10232 unittest.group("obj-schema-PathToConversionReportCompatibleFields", () { |
9104 unittest.test("to-json--from-json", () { | 10233 unittest.test("to-json--from-json", () { |
9105 var o = buildPathToConversionReportCompatibleFields(); | 10234 var o = buildPathToConversionReportCompatibleFields(); |
9106 var od = new api.PathToConversionReportCompatibleFields.fromJson(o.toJson(
)); | 10235 var od = new api.PathToConversionReportCompatibleFields.fromJson(o.toJson(
)); |
9107 checkPathToConversionReportCompatibleFields(od); | 10236 checkPathToConversionReportCompatibleFields(od); |
9108 }); | 10237 }); |
9109 }); | 10238 }); |
9110 | 10239 |
9111 | 10240 |
9112 unittest.group("obj-schema-Placement", () { | 10241 unittest.group("obj-schema-Placement", () { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9228 | 10357 |
9229 unittest.group("obj-schema-PostalCodesListResponse", () { | 10358 unittest.group("obj-schema-PostalCodesListResponse", () { |
9230 unittest.test("to-json--from-json", () { | 10359 unittest.test("to-json--from-json", () { |
9231 var o = buildPostalCodesListResponse(); | 10360 var o = buildPostalCodesListResponse(); |
9232 var od = new api.PostalCodesListResponse.fromJson(o.toJson()); | 10361 var od = new api.PostalCodesListResponse.fromJson(o.toJson()); |
9233 checkPostalCodesListResponse(od); | 10362 checkPostalCodesListResponse(od); |
9234 }); | 10363 }); |
9235 }); | 10364 }); |
9236 | 10365 |
9237 | 10366 |
| 10367 unittest.group("obj-schema-Pricing", () { |
| 10368 unittest.test("to-json--from-json", () { |
| 10369 var o = buildPricing(); |
| 10370 var od = new api.Pricing.fromJson(o.toJson()); |
| 10371 checkPricing(od); |
| 10372 }); |
| 10373 }); |
| 10374 |
| 10375 |
9238 unittest.group("obj-schema-PricingSchedule", () { | 10376 unittest.group("obj-schema-PricingSchedule", () { |
9239 unittest.test("to-json--from-json", () { | 10377 unittest.test("to-json--from-json", () { |
9240 var o = buildPricingSchedule(); | 10378 var o = buildPricingSchedule(); |
9241 var od = new api.PricingSchedule.fromJson(o.toJson()); | 10379 var od = new api.PricingSchedule.fromJson(o.toJson()); |
9242 checkPricingSchedule(od); | 10380 checkPricingSchedule(od); |
9243 }); | 10381 }); |
9244 }); | 10382 }); |
9245 | 10383 |
9246 | 10384 |
9247 unittest.group("obj-schema-PricingSchedulePricingPeriod", () { | 10385 unittest.group("obj-schema-PricingSchedulePricingPeriod", () { |
9248 unittest.test("to-json--from-json", () { | 10386 unittest.test("to-json--from-json", () { |
9249 var o = buildPricingSchedulePricingPeriod(); | 10387 var o = buildPricingSchedulePricingPeriod(); |
9250 var od = new api.PricingSchedulePricingPeriod.fromJson(o.toJson()); | 10388 var od = new api.PricingSchedulePricingPeriod.fromJson(o.toJson()); |
9251 checkPricingSchedulePricingPeriod(od); | 10389 checkPricingSchedulePricingPeriod(od); |
9252 }); | 10390 }); |
9253 }); | 10391 }); |
9254 | 10392 |
9255 | 10393 |
9256 unittest.group("obj-schema-ProgrammaticSetting", () { | 10394 unittest.group("obj-schema-ProgrammaticSetting", () { |
9257 unittest.test("to-json--from-json", () { | 10395 unittest.test("to-json--from-json", () { |
9258 var o = buildProgrammaticSetting(); | 10396 var o = buildProgrammaticSetting(); |
9259 var od = new api.ProgrammaticSetting.fromJson(o.toJson()); | 10397 var od = new api.ProgrammaticSetting.fromJson(o.toJson()); |
9260 checkProgrammaticSetting(od); | 10398 checkProgrammaticSetting(od); |
9261 }); | 10399 }); |
9262 }); | 10400 }); |
9263 | 10401 |
9264 | 10402 |
| 10403 unittest.group("obj-schema-Project", () { |
| 10404 unittest.test("to-json--from-json", () { |
| 10405 var o = buildProject(); |
| 10406 var od = new api.Project.fromJson(o.toJson()); |
| 10407 checkProject(od); |
| 10408 }); |
| 10409 }); |
| 10410 |
| 10411 |
| 10412 unittest.group("obj-schema-ProjectsListResponse", () { |
| 10413 unittest.test("to-json--from-json", () { |
| 10414 var o = buildProjectsListResponse(); |
| 10415 var od = new api.ProjectsListResponse.fromJson(o.toJson()); |
| 10416 checkProjectsListResponse(od); |
| 10417 }); |
| 10418 }); |
| 10419 |
| 10420 |
9265 unittest.group("obj-schema-ReachReportCompatibleFields", () { | 10421 unittest.group("obj-schema-ReachReportCompatibleFields", () { |
9266 unittest.test("to-json--from-json", () { | 10422 unittest.test("to-json--from-json", () { |
9267 var o = buildReachReportCompatibleFields(); | 10423 var o = buildReachReportCompatibleFields(); |
9268 var od = new api.ReachReportCompatibleFields.fromJson(o.toJson()); | 10424 var od = new api.ReachReportCompatibleFields.fromJson(o.toJson()); |
9269 checkReachReportCompatibleFields(od); | 10425 checkReachReportCompatibleFields(od); |
9270 }); | 10426 }); |
9271 }); | 10427 }); |
9272 | 10428 |
9273 | 10429 |
9274 unittest.group("obj-schema-Recipient", () { | 10430 unittest.group("obj-schema-Recipient", () { |
(...skipping 16 matching lines...) Expand all Loading... |
9291 | 10447 |
9292 unittest.group("obj-schema-RegionsListResponse", () { | 10448 unittest.group("obj-schema-RegionsListResponse", () { |
9293 unittest.test("to-json--from-json", () { | 10449 unittest.test("to-json--from-json", () { |
9294 var o = buildRegionsListResponse(); | 10450 var o = buildRegionsListResponse(); |
9295 var od = new api.RegionsListResponse.fromJson(o.toJson()); | 10451 var od = new api.RegionsListResponse.fromJson(o.toJson()); |
9296 checkRegionsListResponse(od); | 10452 checkRegionsListResponse(od); |
9297 }); | 10453 }); |
9298 }); | 10454 }); |
9299 | 10455 |
9300 | 10456 |
| 10457 unittest.group("obj-schema-RemarketingList", () { |
| 10458 unittest.test("to-json--from-json", () { |
| 10459 var o = buildRemarketingList(); |
| 10460 var od = new api.RemarketingList.fromJson(o.toJson()); |
| 10461 checkRemarketingList(od); |
| 10462 }); |
| 10463 }); |
| 10464 |
| 10465 |
| 10466 unittest.group("obj-schema-RemarketingListShare", () { |
| 10467 unittest.test("to-json--from-json", () { |
| 10468 var o = buildRemarketingListShare(); |
| 10469 var od = new api.RemarketingListShare.fromJson(o.toJson()); |
| 10470 checkRemarketingListShare(od); |
| 10471 }); |
| 10472 }); |
| 10473 |
| 10474 |
| 10475 unittest.group("obj-schema-RemarketingListsListResponse", () { |
| 10476 unittest.test("to-json--from-json", () { |
| 10477 var o = buildRemarketingListsListResponse(); |
| 10478 var od = new api.RemarketingListsListResponse.fromJson(o.toJson()); |
| 10479 checkRemarketingListsListResponse(od); |
| 10480 }); |
| 10481 }); |
| 10482 |
| 10483 |
9301 unittest.group("obj-schema-ReportCriteria", () { | 10484 unittest.group("obj-schema-ReportCriteria", () { |
9302 unittest.test("to-json--from-json", () { | 10485 unittest.test("to-json--from-json", () { |
9303 var o = buildReportCriteria(); | 10486 var o = buildReportCriteria(); |
9304 var od = new api.ReportCriteria.fromJson(o.toJson()); | 10487 var od = new api.ReportCriteria.fromJson(o.toJson()); |
9305 checkReportCriteria(od); | 10488 checkReportCriteria(od); |
9306 }); | 10489 }); |
9307 }); | 10490 }); |
9308 | 10491 |
9309 | 10492 |
9310 unittest.group("obj-schema-ReportCrossDimensionReachCriteria", () { | 10493 unittest.group("obj-schema-ReportCrossDimensionReachCriteria", () { |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9534 | 10717 |
9535 unittest.group("obj-schema-TargetWindow", () { | 10718 unittest.group("obj-schema-TargetWindow", () { |
9536 unittest.test("to-json--from-json", () { | 10719 unittest.test("to-json--from-json", () { |
9537 var o = buildTargetWindow(); | 10720 var o = buildTargetWindow(); |
9538 var od = new api.TargetWindow.fromJson(o.toJson()); | 10721 var od = new api.TargetWindow.fromJson(o.toJson()); |
9539 checkTargetWindow(od); | 10722 checkTargetWindow(od); |
9540 }); | 10723 }); |
9541 }); | 10724 }); |
9542 | 10725 |
9543 | 10726 |
| 10727 unittest.group("obj-schema-TargetableRemarketingList", () { |
| 10728 unittest.test("to-json--from-json", () { |
| 10729 var o = buildTargetableRemarketingList(); |
| 10730 var od = new api.TargetableRemarketingList.fromJson(o.toJson()); |
| 10731 checkTargetableRemarketingList(od); |
| 10732 }); |
| 10733 }); |
| 10734 |
| 10735 |
| 10736 unittest.group("obj-schema-TargetableRemarketingListsListResponse", () { |
| 10737 unittest.test("to-json--from-json", () { |
| 10738 var o = buildTargetableRemarketingListsListResponse(); |
| 10739 var od = new api.TargetableRemarketingListsListResponse.fromJson(o.toJson(
)); |
| 10740 checkTargetableRemarketingListsListResponse(od); |
| 10741 }); |
| 10742 }); |
| 10743 |
| 10744 |
9544 unittest.group("obj-schema-TechnologyTargeting", () { | 10745 unittest.group("obj-schema-TechnologyTargeting", () { |
9545 unittest.test("to-json--from-json", () { | 10746 unittest.test("to-json--from-json", () { |
9546 var o = buildTechnologyTargeting(); | 10747 var o = buildTechnologyTargeting(); |
9547 var od = new api.TechnologyTargeting.fromJson(o.toJson()); | 10748 var od = new api.TechnologyTargeting.fromJson(o.toJson()); |
9548 checkTechnologyTargeting(od); | 10749 checkTechnologyTargeting(od); |
9549 }); | 10750 }); |
9550 }); | 10751 }); |
9551 | 10752 |
9552 | 10753 |
9553 unittest.group("obj-schema-ThirdPartyTrackingUrl", () { | 10754 unittest.group("obj-schema-ThirdPartyTrackingUrl", () { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9647 api.AccountActiveAdSummariesResourceApi res = new api.DfareportingApi(mock
).accountActiveAdSummaries; | 10848 api.AccountActiveAdSummariesResourceApi res = new api.DfareportingApi(mock
).accountActiveAdSummaries; |
9648 var arg_profileId = "foo"; | 10849 var arg_profileId = "foo"; |
9649 var arg_summaryAccountId = "foo"; | 10850 var arg_summaryAccountId = "foo"; |
9650 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10851 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
9651 var path = (req.url).path; | 10852 var path = (req.url).path; |
9652 var pathOffset = 0; | 10853 var pathOffset = 0; |
9653 var index; | 10854 var index; |
9654 var subPart; | 10855 var subPart; |
9655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10856 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
9656 pathOffset += 1; | 10857 pathOffset += 1; |
9657 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 10858 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
9658 pathOffset += 18; | 10859 pathOffset += 18; |
9659 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 10860 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
9660 pathOffset += 13; | 10861 pathOffset += 13; |
9661 index = path.indexOf("/accountActiveAdSummaries/", pathOffset); | 10862 index = path.indexOf("/accountActiveAdSummaries/", pathOffset); |
9662 unittest.expect(index >= 0, unittest.isTrue); | 10863 unittest.expect(index >= 0, unittest.isTrue); |
9663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 10864 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
9664 pathOffset = index; | 10865 pathOffset = index; |
9665 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 10866 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
9666 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/accountActiveAdSummaries/")); | 10867 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/accountActiveAdSummaries/")); |
9667 pathOffset += 26; | 10868 pathOffset += 26; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9708 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock)
.accountPermissionGroups; | 10909 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock)
.accountPermissionGroups; |
9709 var arg_profileId = "foo"; | 10910 var arg_profileId = "foo"; |
9710 var arg_id = "foo"; | 10911 var arg_id = "foo"; |
9711 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
9712 var path = (req.url).path; | 10913 var path = (req.url).path; |
9713 var pathOffset = 0; | 10914 var pathOffset = 0; |
9714 var index; | 10915 var index; |
9715 var subPart; | 10916 var subPart; |
9716 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10917 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
9717 pathOffset += 1; | 10918 pathOffset += 1; |
9718 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 10919 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
9719 pathOffset += 18; | 10920 pathOffset += 18; |
9720 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 10921 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
9721 pathOffset += 13; | 10922 pathOffset += 13; |
9722 index = path.indexOf("/accountPermissionGroups/", pathOffset); | 10923 index = path.indexOf("/accountPermissionGroups/", pathOffset); |
9723 unittest.expect(index >= 0, unittest.isTrue); | 10924 unittest.expect(index >= 0, unittest.isTrue); |
9724 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 10925 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
9725 pathOffset = index; | 10926 pathOffset = index; |
9726 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 10927 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
9727 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/accountPermissionGroups/")); | 10928 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/accountPermissionGroups/")); |
9728 pathOffset += 25; | 10929 pathOffset += 25; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9764 var mock = new HttpServerMock(); | 10965 var mock = new HttpServerMock(); |
9765 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock)
.accountPermissionGroups; | 10966 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock)
.accountPermissionGroups; |
9766 var arg_profileId = "foo"; | 10967 var arg_profileId = "foo"; |
9767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10968 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
9768 var path = (req.url).path; | 10969 var path = (req.url).path; |
9769 var pathOffset = 0; | 10970 var pathOffset = 0; |
9770 var index; | 10971 var index; |
9771 var subPart; | 10972 var subPart; |
9772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10973 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
9773 pathOffset += 1; | 10974 pathOffset += 1; |
9774 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 10975 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
9775 pathOffset += 18; | 10976 pathOffset += 18; |
9776 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 10977 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
9777 pathOffset += 13; | 10978 pathOffset += 13; |
9778 index = path.indexOf("/accountPermissionGroups", pathOffset); | 10979 index = path.indexOf("/accountPermissionGroups", pathOffset); |
9779 unittest.expect(index >= 0, unittest.isTrue); | 10980 unittest.expect(index >= 0, unittest.isTrue); |
9780 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 10981 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
9781 pathOffset = index; | 10982 pathOffset = index; |
9782 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 10983 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
9783 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/accountPermissionGroups")); | 10984 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/accountPermissionGroups")); |
9784 pathOffset += 24; | 10985 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; | 11023 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco
untPermissions; |
9823 var arg_profileId = "foo"; | 11024 var arg_profileId = "foo"; |
9824 var arg_id = "foo"; | 11025 var arg_id = "foo"; |
9825 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11026 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
9826 var path = (req.url).path; | 11027 var path = (req.url).path; |
9827 var pathOffset = 0; | 11028 var pathOffset = 0; |
9828 var index; | 11029 var index; |
9829 var subPart; | 11030 var subPart; |
9830 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11031 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
9831 pathOffset += 1; | 11032 pathOffset += 1; |
9832 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11033 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
9833 pathOffset += 18; | 11034 pathOffset += 18; |
9834 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11035 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
9835 pathOffset += 13; | 11036 pathOffset += 13; |
9836 index = path.indexOf("/accountPermissions/", pathOffset); | 11037 index = path.indexOf("/accountPermissions/", pathOffset); |
9837 unittest.expect(index >= 0, unittest.isTrue); | 11038 unittest.expect(index >= 0, unittest.isTrue); |
9838 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11039 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
9839 pathOffset = index; | 11040 pathOffset = index; |
9840 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11041 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
9841 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountPermissions/")); | 11042 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountPermissions/")); |
9842 pathOffset += 20; | 11043 pathOffset += 20; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9878 var mock = new HttpServerMock(); | 11079 var mock = new HttpServerMock(); |
9879 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco
untPermissions; | 11080 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco
untPermissions; |
9880 var arg_profileId = "foo"; | 11081 var arg_profileId = "foo"; |
9881 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11082 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
9882 var path = (req.url).path; | 11083 var path = (req.url).path; |
9883 var pathOffset = 0; | 11084 var pathOffset = 0; |
9884 var index; | 11085 var index; |
9885 var subPart; | 11086 var subPart; |
9886 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11087 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
9887 pathOffset += 1; | 11088 pathOffset += 1; |
9888 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11089 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
9889 pathOffset += 18; | 11090 pathOffset += 18; |
9890 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11091 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
9891 pathOffset += 13; | 11092 pathOffset += 13; |
9892 index = path.indexOf("/accountPermissions", pathOffset); | 11093 index = path.indexOf("/accountPermissions", pathOffset); |
9893 unittest.expect(index >= 0, unittest.isTrue); | 11094 unittest.expect(index >= 0, unittest.isTrue); |
9894 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11095 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
9895 pathOffset = index; | 11096 pathOffset = index; |
9896 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11097 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
9897 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/accountPermissions")); | 11098 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/accountPermissions")); |
9898 pathOffset += 19; | 11099 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; | 11137 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; |
9937 var arg_profileId = "foo"; | 11138 var arg_profileId = "foo"; |
9938 var arg_id = "foo"; | 11139 var arg_id = "foo"; |
9939 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11140 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
9940 var path = (req.url).path; | 11141 var path = (req.url).path; |
9941 var pathOffset = 0; | 11142 var pathOffset = 0; |
9942 var index; | 11143 var index; |
9943 var subPart; | 11144 var subPart; |
9944 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11145 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
9945 pathOffset += 1; | 11146 pathOffset += 1; |
9946 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11147 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
9947 pathOffset += 18; | 11148 pathOffset += 18; |
9948 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11149 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
9949 pathOffset += 13; | 11150 pathOffset += 13; |
9950 index = path.indexOf("/accountUserProfiles/", pathOffset); | 11151 index = path.indexOf("/accountUserProfiles/", pathOffset); |
9951 unittest.expect(index >= 0, unittest.isTrue); | 11152 unittest.expect(index >= 0, unittest.isTrue); |
9952 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11153 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
9953 pathOffset = index; | 11154 pathOffset = index; |
9954 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11155 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
9955 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/accountUserProfiles/")); | 11156 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/accountUserProfiles/")); |
9956 pathOffset += 21; | 11157 pathOffset += 21; |
(...skipping 23 matching lines...) Expand all Loading... |
9980 "content-type" : "application/json; charset=utf-8", | 11181 "content-type" : "application/json; charset=utf-8", |
9981 }; | 11182 }; |
9982 var resp = convert.JSON.encode(buildAccountUserProfile()); | 11183 var resp = convert.JSON.encode(buildAccountUserProfile()); |
9983 return new async.Future.value(stringResponse(200, h, resp)); | 11184 return new async.Future.value(stringResponse(200, h, resp)); |
9984 }), true); | 11185 }), true); |
9985 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUser
Profile response) { | 11186 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUser
Profile response) { |
9986 checkAccountUserProfile(response); | 11187 checkAccountUserProfile(response); |
9987 }))); | 11188 }))); |
9988 }); | 11189 }); |
9989 | 11190 |
| 11191 unittest.test("method--insert", () { |
| 11192 |
| 11193 var mock = new HttpServerMock(); |
| 11194 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; |
| 11195 var arg_request = buildAccountUserProfile(); |
| 11196 var arg_profileId = "foo"; |
| 11197 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11198 var obj = new api.AccountUserProfile.fromJson(json); |
| 11199 checkAccountUserProfile(obj); |
| 11200 |
| 11201 var path = (req.url).path; |
| 11202 var pathOffset = 0; |
| 11203 var index; |
| 11204 var subPart; |
| 11205 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11206 pathOffset += 1; |
| 11207 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 11208 pathOffset += 18; |
| 11209 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 11210 pathOffset += 13; |
| 11211 index = path.indexOf("/accountUserProfiles", pathOffset); |
| 11212 unittest.expect(index >= 0, unittest.isTrue); |
| 11213 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 11214 pathOffset = index; |
| 11215 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 11216 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); |
| 11217 pathOffset += 20; |
| 11218 |
| 11219 var query = (req.url).query; |
| 11220 var queryOffset = 0; |
| 11221 var queryMap = {}; |
| 11222 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11223 parseBool(n) { |
| 11224 if (n == "true") return true; |
| 11225 if (n == "false") return false; |
| 11226 if (n == null) return null; |
| 11227 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11228 } |
| 11229 if (query.length > 0) { |
| 11230 for (var part in query.split("&")) { |
| 11231 var keyvalue = part.split("="); |
| 11232 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11233 } |
| 11234 } |
| 11235 |
| 11236 |
| 11237 var h = { |
| 11238 "content-type" : "application/json; charset=utf-8", |
| 11239 }; |
| 11240 var resp = convert.JSON.encode(buildAccountUserProfile()); |
| 11241 return new async.Future.value(stringResponse(200, h, resp)); |
| 11242 }), true); |
| 11243 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Acc
ountUserProfile response) { |
| 11244 checkAccountUserProfile(response); |
| 11245 }))); |
| 11246 }); |
| 11247 |
9990 unittest.test("method--list", () { | 11248 unittest.test("method--list", () { |
9991 | 11249 |
9992 var mock = new HttpServerMock(); | 11250 var mock = new HttpServerMock(); |
9993 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; | 11251 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc
ountUserProfiles; |
9994 var arg_profileId = "foo"; | 11252 var arg_profileId = "foo"; |
9995 var arg_active = true; | 11253 var arg_active = true; |
9996 var arg_ids = buildUnnamed417(); | 11254 var arg_ids = buildUnnamed1218(); |
9997 var arg_maxResults = 42; | 11255 var arg_maxResults = 42; |
9998 var arg_pageToken = "foo"; | 11256 var arg_pageToken = "foo"; |
9999 var arg_searchString = "foo"; | 11257 var arg_searchString = "foo"; |
10000 var arg_sortField = "foo"; | 11258 var arg_sortField = "foo"; |
10001 var arg_sortOrder = "foo"; | 11259 var arg_sortOrder = "foo"; |
10002 var arg_subaccountId = "foo"; | 11260 var arg_subaccountId = "foo"; |
10003 var arg_userRoleId = "foo"; | 11261 var arg_userRoleId = "foo"; |
10004 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11262 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10005 var path = (req.url).path; | 11263 var path = (req.url).path; |
10006 var pathOffset = 0; | 11264 var pathOffset = 0; |
10007 var index; | 11265 var index; |
10008 var subPart; | 11266 var subPart; |
10009 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11267 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10010 pathOffset += 1; | 11268 pathOffset += 1; |
10011 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11269 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10012 pathOffset += 18; | 11270 pathOffset += 18; |
10013 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11271 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10014 pathOffset += 13; | 11272 pathOffset += 13; |
10015 index = path.indexOf("/accountUserProfiles", pathOffset); | 11273 index = path.indexOf("/accountUserProfiles", pathOffset); |
10016 unittest.expect(index >= 0, unittest.isTrue); | 11274 unittest.expect(index >= 0, unittest.isTrue); |
10017 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11275 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10018 pathOffset = index; | 11276 pathOffset = index; |
10019 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11277 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10020 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); | 11278 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); |
10021 pathOffset += 20; | 11279 pathOffset += 20; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10068 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11326 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10069 var obj = new api.AccountUserProfile.fromJson(json); | 11327 var obj = new api.AccountUserProfile.fromJson(json); |
10070 checkAccountUserProfile(obj); | 11328 checkAccountUserProfile(obj); |
10071 | 11329 |
10072 var path = (req.url).path; | 11330 var path = (req.url).path; |
10073 var pathOffset = 0; | 11331 var pathOffset = 0; |
10074 var index; | 11332 var index; |
10075 var subPart; | 11333 var subPart; |
10076 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11334 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10077 pathOffset += 1; | 11335 pathOffset += 1; |
10078 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11336 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10079 pathOffset += 18; | 11337 pathOffset += 18; |
10080 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11338 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10081 pathOffset += 13; | 11339 pathOffset += 13; |
10082 index = path.indexOf("/accountUserProfiles", pathOffset); | 11340 index = path.indexOf("/accountUserProfiles", pathOffset); |
10083 unittest.expect(index >= 0, unittest.isTrue); | 11341 unittest.expect(index >= 0, unittest.isTrue); |
10084 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11342 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10085 pathOffset = index; | 11343 pathOffset = index; |
10086 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11344 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10087 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); | 11345 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); |
10088 pathOffset += 20; | 11346 pathOffset += 20; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10126 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11384 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10127 var obj = new api.AccountUserProfile.fromJson(json); | 11385 var obj = new api.AccountUserProfile.fromJson(json); |
10128 checkAccountUserProfile(obj); | 11386 checkAccountUserProfile(obj); |
10129 | 11387 |
10130 var path = (req.url).path; | 11388 var path = (req.url).path; |
10131 var pathOffset = 0; | 11389 var pathOffset = 0; |
10132 var index; | 11390 var index; |
10133 var subPart; | 11391 var subPart; |
10134 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10135 pathOffset += 1; | 11393 pathOffset += 1; |
10136 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11394 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10137 pathOffset += 18; | 11395 pathOffset += 18; |
10138 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11396 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10139 pathOffset += 13; | 11397 pathOffset += 13; |
10140 index = path.indexOf("/accountUserProfiles", pathOffset); | 11398 index = path.indexOf("/accountUserProfiles", pathOffset); |
10141 unittest.expect(index >= 0, unittest.isTrue); | 11399 unittest.expect(index >= 0, unittest.isTrue); |
10142 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11400 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10143 pathOffset = index; | 11401 pathOffset = index; |
10144 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11402 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10145 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); | 11403 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/accountUserProfiles")); |
10146 pathOffset += 20; | 11404 pathOffset += 20; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10184 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; | 11442 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; |
10185 var arg_profileId = "foo"; | 11443 var arg_profileId = "foo"; |
10186 var arg_id = "foo"; | 11444 var arg_id = "foo"; |
10187 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11445 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10188 var path = (req.url).path; | 11446 var path = (req.url).path; |
10189 var pathOffset = 0; | 11447 var pathOffset = 0; |
10190 var index; | 11448 var index; |
10191 var subPart; | 11449 var subPart; |
10192 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11450 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10193 pathOffset += 1; | 11451 pathOffset += 1; |
10194 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11452 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10195 pathOffset += 18; | 11453 pathOffset += 18; |
10196 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11454 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10197 pathOffset += 13; | 11455 pathOffset += 13; |
10198 index = path.indexOf("/accounts/", pathOffset); | 11456 index = path.indexOf("/accounts/", pathOffset); |
10199 unittest.expect(index >= 0, unittest.isTrue); | 11457 unittest.expect(index >= 0, unittest.isTrue); |
10200 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11458 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10201 pathOffset = index; | 11459 pathOffset = index; |
10202 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11460 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10203 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/accounts/")); | 11461 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/accounts/")); |
10204 pathOffset += 10; | 11462 pathOffset += 10; |
(...skipping 29 matching lines...) Expand all Loading... |
10234 checkAccount(response); | 11492 checkAccount(response); |
10235 }))); | 11493 }))); |
10236 }); | 11494 }); |
10237 | 11495 |
10238 unittest.test("method--list", () { | 11496 unittest.test("method--list", () { |
10239 | 11497 |
10240 var mock = new HttpServerMock(); | 11498 var mock = new HttpServerMock(); |
10241 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; | 11499 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; |
10242 var arg_profileId = "foo"; | 11500 var arg_profileId = "foo"; |
10243 var arg_active = true; | 11501 var arg_active = true; |
10244 var arg_ids = buildUnnamed418(); | 11502 var arg_ids = buildUnnamed1219(); |
10245 var arg_maxResults = 42; | 11503 var arg_maxResults = 42; |
10246 var arg_pageToken = "foo"; | 11504 var arg_pageToken = "foo"; |
10247 var arg_searchString = "foo"; | 11505 var arg_searchString = "foo"; |
10248 var arg_sortField = "foo"; | 11506 var arg_sortField = "foo"; |
10249 var arg_sortOrder = "foo"; | 11507 var arg_sortOrder = "foo"; |
10250 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10251 var path = (req.url).path; | 11509 var path = (req.url).path; |
10252 var pathOffset = 0; | 11510 var pathOffset = 0; |
10253 var index; | 11511 var index; |
10254 var subPart; | 11512 var subPart; |
10255 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11513 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10256 pathOffset += 1; | 11514 pathOffset += 1; |
10257 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11515 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10258 pathOffset += 18; | 11516 pathOffset += 18; |
10259 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11517 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10260 pathOffset += 13; | 11518 pathOffset += 13; |
10261 index = path.indexOf("/accounts", pathOffset); | 11519 index = path.indexOf("/accounts", pathOffset); |
10262 unittest.expect(index >= 0, unittest.isTrue); | 11520 unittest.expect(index >= 0, unittest.isTrue); |
10263 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11521 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10264 pathOffset = index; | 11522 pathOffset = index; |
10265 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11523 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10266 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); | 11524 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); |
10267 pathOffset += 9; | 11525 pathOffset += 9; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10312 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11570 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10313 var obj = new api.Account.fromJson(json); | 11571 var obj = new api.Account.fromJson(json); |
10314 checkAccount(obj); | 11572 checkAccount(obj); |
10315 | 11573 |
10316 var path = (req.url).path; | 11574 var path = (req.url).path; |
10317 var pathOffset = 0; | 11575 var pathOffset = 0; |
10318 var index; | 11576 var index; |
10319 var subPart; | 11577 var subPart; |
10320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11578 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10321 pathOffset += 1; | 11579 pathOffset += 1; |
10322 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11580 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10323 pathOffset += 18; | 11581 pathOffset += 18; |
10324 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11582 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10325 pathOffset += 13; | 11583 pathOffset += 13; |
10326 index = path.indexOf("/accounts", pathOffset); | 11584 index = path.indexOf("/accounts", pathOffset); |
10327 unittest.expect(index >= 0, unittest.isTrue); | 11585 unittest.expect(index >= 0, unittest.isTrue); |
10328 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11586 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10329 pathOffset = index; | 11587 pathOffset = index; |
10330 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11588 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10331 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); | 11589 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); |
10332 pathOffset += 9; | 11590 pathOffset += 9; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11628 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10371 var obj = new api.Account.fromJson(json); | 11629 var obj = new api.Account.fromJson(json); |
10372 checkAccount(obj); | 11630 checkAccount(obj); |
10373 | 11631 |
10374 var path = (req.url).path; | 11632 var path = (req.url).path; |
10375 var pathOffset = 0; | 11633 var pathOffset = 0; |
10376 var index; | 11634 var index; |
10377 var subPart; | 11635 var subPart; |
10378 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11636 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10379 pathOffset += 1; | 11637 pathOffset += 1; |
10380 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11638 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10381 pathOffset += 18; | 11639 pathOffset += 18; |
10382 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11640 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10383 pathOffset += 13; | 11641 pathOffset += 13; |
10384 index = path.indexOf("/accounts", pathOffset); | 11642 index = path.indexOf("/accounts", pathOffset); |
10385 unittest.expect(index >= 0, unittest.isTrue); | 11643 unittest.expect(index >= 0, unittest.isTrue); |
10386 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11644 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10387 pathOffset = index; | 11645 pathOffset = index; |
10388 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11646 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10389 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); | 11647 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/accounts")); |
10390 pathOffset += 9; | 11648 pathOffset += 9; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10428 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; | 11686 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; |
10429 var arg_profileId = "foo"; | 11687 var arg_profileId = "foo"; |
10430 var arg_id = "foo"; | 11688 var arg_id = "foo"; |
10431 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11689 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10432 var path = (req.url).path; | 11690 var path = (req.url).path; |
10433 var pathOffset = 0; | 11691 var pathOffset = 0; |
10434 var index; | 11692 var index; |
10435 var subPart; | 11693 var subPart; |
10436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11694 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10437 pathOffset += 1; | 11695 pathOffset += 1; |
10438 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11696 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10439 pathOffset += 18; | 11697 pathOffset += 18; |
10440 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11698 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10441 pathOffset += 13; | 11699 pathOffset += 13; |
10442 index = path.indexOf("/ads/", pathOffset); | 11700 index = path.indexOf("/ads/", pathOffset); |
10443 unittest.expect(index >= 0, unittest.isTrue); | 11701 unittest.expect(index >= 0, unittest.isTrue); |
10444 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11702 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10445 pathOffset = index; | 11703 pathOffset = index; |
10446 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11704 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10447 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/ads/")); | 11705 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/ads/")); |
10448 pathOffset += 5; | 11706 pathOffset += 5; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10488 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10489 var obj = new api.Ad.fromJson(json); | 11747 var obj = new api.Ad.fromJson(json); |
10490 checkAd(obj); | 11748 checkAd(obj); |
10491 | 11749 |
10492 var path = (req.url).path; | 11750 var path = (req.url).path; |
10493 var pathOffset = 0; | 11751 var pathOffset = 0; |
10494 var index; | 11752 var index; |
10495 var subPart; | 11753 var subPart; |
10496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11754 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10497 pathOffset += 1; | 11755 pathOffset += 1; |
10498 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11756 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10499 pathOffset += 18; | 11757 pathOffset += 18; |
10500 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11758 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10501 pathOffset += 13; | 11759 pathOffset += 13; |
10502 index = path.indexOf("/ads", pathOffset); | 11760 index = path.indexOf("/ads", pathOffset); |
10503 unittest.expect(index >= 0, unittest.isTrue); | 11761 unittest.expect(index >= 0, unittest.isTrue); |
10504 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11762 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10505 pathOffset = index; | 11763 pathOffset = index; |
10506 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11764 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10507 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); | 11765 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); |
10508 pathOffset += 4; | 11766 pathOffset += 4; |
(...skipping 28 matching lines...) Expand all Loading... |
10537 }); | 11795 }); |
10538 | 11796 |
10539 unittest.test("method--list", () { | 11797 unittest.test("method--list", () { |
10540 | 11798 |
10541 var mock = new HttpServerMock(); | 11799 var mock = new HttpServerMock(); |
10542 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; | 11800 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; |
10543 var arg_profileId = "foo"; | 11801 var arg_profileId = "foo"; |
10544 var arg_active = true; | 11802 var arg_active = true; |
10545 var arg_advertiserId = "foo"; | 11803 var arg_advertiserId = "foo"; |
10546 var arg_archived = true; | 11804 var arg_archived = true; |
10547 var arg_audienceSegmentIds = buildUnnamed419(); | 11805 var arg_audienceSegmentIds = buildUnnamed1220(); |
10548 var arg_campaignIds = buildUnnamed420(); | 11806 var arg_campaignIds = buildUnnamed1221(); |
10549 var arg_compatibility = "foo"; | 11807 var arg_compatibility = "foo"; |
10550 var arg_creativeIds = buildUnnamed421(); | 11808 var arg_creativeIds = buildUnnamed1222(); |
10551 var arg_creativeOptimizationConfigurationIds = buildUnnamed422(); | 11809 var arg_creativeOptimizationConfigurationIds = buildUnnamed1223(); |
10552 var arg_creativeType = "foo"; | 11810 var arg_creativeType = "foo"; |
10553 var arg_dynamicClickTracker = true; | 11811 var arg_dynamicClickTracker = true; |
10554 var arg_ids = buildUnnamed423(); | 11812 var arg_ids = buildUnnamed1224(); |
10555 var arg_landingPageIds = buildUnnamed424(); | 11813 var arg_landingPageIds = buildUnnamed1225(); |
10556 var arg_maxResults = 42; | 11814 var arg_maxResults = 42; |
10557 var arg_overriddenEventTagId = "foo"; | 11815 var arg_overriddenEventTagId = "foo"; |
10558 var arg_pageToken = "foo"; | 11816 var arg_pageToken = "foo"; |
10559 var arg_placementIds = buildUnnamed425(); | 11817 var arg_placementIds = buildUnnamed1226(); |
10560 var arg_remarketingListIds = buildUnnamed426(); | 11818 var arg_remarketingListIds = buildUnnamed1227(); |
10561 var arg_searchString = "foo"; | 11819 var arg_searchString = "foo"; |
10562 var arg_sizeIds = buildUnnamed427(); | 11820 var arg_sizeIds = buildUnnamed1228(); |
10563 var arg_sortField = "foo"; | 11821 var arg_sortField = "foo"; |
10564 var arg_sortOrder = "foo"; | 11822 var arg_sortOrder = "foo"; |
10565 var arg_sslCompliant = true; | 11823 var arg_sslCompliant = true; |
10566 var arg_sslRequired = true; | 11824 var arg_sslRequired = true; |
10567 var arg_type = buildUnnamed428(); | 11825 var arg_type = buildUnnamed1229(); |
10568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11826 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10569 var path = (req.url).path; | 11827 var path = (req.url).path; |
10570 var pathOffset = 0; | 11828 var pathOffset = 0; |
10571 var index; | 11829 var index; |
10572 var subPart; | 11830 var subPart; |
10573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11831 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10574 pathOffset += 1; | 11832 pathOffset += 1; |
10575 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11833 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10576 pathOffset += 18; | 11834 pathOffset += 18; |
10577 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11835 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10578 pathOffset += 13; | 11836 pathOffset += 13; |
10579 index = path.indexOf("/ads", pathOffset); | 11837 index = path.indexOf("/ads", pathOffset); |
10580 unittest.expect(index >= 0, unittest.isTrue); | 11838 unittest.expect(index >= 0, unittest.isTrue); |
10581 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11839 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10582 pathOffset = index; | 11840 pathOffset = index; |
10583 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11841 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10584 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); | 11842 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); |
10585 pathOffset += 4; | 11843 pathOffset += 4; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10647 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11905 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10648 var obj = new api.Ad.fromJson(json); | 11906 var obj = new api.Ad.fromJson(json); |
10649 checkAd(obj); | 11907 checkAd(obj); |
10650 | 11908 |
10651 var path = (req.url).path; | 11909 var path = (req.url).path; |
10652 var pathOffset = 0; | 11910 var pathOffset = 0; |
10653 var index; | 11911 var index; |
10654 var subPart; | 11912 var subPart; |
10655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11913 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10656 pathOffset += 1; | 11914 pathOffset += 1; |
10657 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11915 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10658 pathOffset += 18; | 11916 pathOffset += 18; |
10659 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11917 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10660 pathOffset += 13; | 11918 pathOffset += 13; |
10661 index = path.indexOf("/ads", pathOffset); | 11919 index = path.indexOf("/ads", pathOffset); |
10662 unittest.expect(index >= 0, unittest.isTrue); | 11920 unittest.expect(index >= 0, unittest.isTrue); |
10663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11921 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10664 pathOffset = index; | 11922 pathOffset = index; |
10665 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11923 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10666 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); | 11924 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); |
10667 pathOffset += 4; | 11925 pathOffset += 4; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10705 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11963 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10706 var obj = new api.Ad.fromJson(json); | 11964 var obj = new api.Ad.fromJson(json); |
10707 checkAd(obj); | 11965 checkAd(obj); |
10708 | 11966 |
10709 var path = (req.url).path; | 11967 var path = (req.url).path; |
10710 var pathOffset = 0; | 11968 var pathOffset = 0; |
10711 var index; | 11969 var index; |
10712 var subPart; | 11970 var subPart; |
10713 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11971 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10714 pathOffset += 1; | 11972 pathOffset += 1; |
10715 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 11973 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10716 pathOffset += 18; | 11974 pathOffset += 18; |
10717 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 11975 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10718 pathOffset += 13; | 11976 pathOffset += 13; |
10719 index = path.indexOf("/ads", pathOffset); | 11977 index = path.indexOf("/ads", pathOffset); |
10720 unittest.expect(index >= 0, unittest.isTrue); | 11978 unittest.expect(index >= 0, unittest.isTrue); |
10721 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 11979 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10722 pathOffset = index; | 11980 pathOffset = index; |
10723 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 11981 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10724 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); | 11982 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("/ads")); |
10725 pathOffset += 4; | 11983 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; | 12021 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; |
10764 var arg_profileId = "foo"; | 12022 var arg_profileId = "foo"; |
10765 var arg_id = "foo"; | 12023 var arg_id = "foo"; |
10766 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12024 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10767 var path = (req.url).path; | 12025 var path = (req.url).path; |
10768 var pathOffset = 0; | 12026 var pathOffset = 0; |
10769 var index; | 12027 var index; |
10770 var subPart; | 12028 var subPart; |
10771 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12029 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10772 pathOffset += 1; | 12030 pathOffset += 1; |
10773 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12031 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10774 pathOffset += 18; | 12032 pathOffset += 18; |
10775 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12033 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10776 pathOffset += 13; | 12034 pathOffset += 13; |
10777 index = path.indexOf("/advertiserGroups/", pathOffset); | 12035 index = path.indexOf("/advertiserGroups/", pathOffset); |
10778 unittest.expect(index >= 0, unittest.isTrue); | 12036 unittest.expect(index >= 0, unittest.isTrue); |
10779 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12037 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10780 pathOffset = index; | 12038 pathOffset = index; |
10781 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12039 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10782 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/advertiserGroups/")); | 12040 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/advertiserGroups/")); |
10783 pathOffset += 18; | 12041 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; | 12076 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; |
10819 var arg_profileId = "foo"; | 12077 var arg_profileId = "foo"; |
10820 var arg_id = "foo"; | 12078 var arg_id = "foo"; |
10821 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12079 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10822 var path = (req.url).path; | 12080 var path = (req.url).path; |
10823 var pathOffset = 0; | 12081 var pathOffset = 0; |
10824 var index; | 12082 var index; |
10825 var subPart; | 12083 var subPart; |
10826 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12084 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10827 pathOffset += 1; | 12085 pathOffset += 1; |
10828 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12086 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10829 pathOffset += 18; | 12087 pathOffset += 18; |
10830 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12088 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10831 pathOffset += 13; | 12089 pathOffset += 13; |
10832 index = path.indexOf("/advertiserGroups/", pathOffset); | 12090 index = path.indexOf("/advertiserGroups/", pathOffset); |
10833 unittest.expect(index >= 0, unittest.isTrue); | 12091 unittest.expect(index >= 0, unittest.isTrue); |
10834 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12092 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10835 pathOffset = index; | 12093 pathOffset = index; |
10836 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12094 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10837 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/advertiserGroups/")); | 12095 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/advertiserGroups/")); |
10838 pathOffset += 18; | 12096 pathOffset += 18; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10878 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12136 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10879 var obj = new api.AdvertiserGroup.fromJson(json); | 12137 var obj = new api.AdvertiserGroup.fromJson(json); |
10880 checkAdvertiserGroup(obj); | 12138 checkAdvertiserGroup(obj); |
10881 | 12139 |
10882 var path = (req.url).path; | 12140 var path = (req.url).path; |
10883 var pathOffset = 0; | 12141 var pathOffset = 0; |
10884 var index; | 12142 var index; |
10885 var subPart; | 12143 var subPart; |
10886 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10887 pathOffset += 1; | 12145 pathOffset += 1; |
10888 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12146 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10889 pathOffset += 18; | 12147 pathOffset += 18; |
10890 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12148 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10891 pathOffset += 13; | 12149 pathOffset += 13; |
10892 index = path.indexOf("/advertiserGroups", pathOffset); | 12150 index = path.indexOf("/advertiserGroups", pathOffset); |
10893 unittest.expect(index >= 0, unittest.isTrue); | 12151 unittest.expect(index >= 0, unittest.isTrue); |
10894 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12152 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10895 pathOffset = index; | 12153 pathOffset = index; |
10896 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12154 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10897 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); | 12155 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); |
10898 pathOffset += 17; | 12156 pathOffset += 17; |
(...skipping 25 matching lines...) Expand all Loading... |
10924 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv
ertiserGroup response) { | 12182 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv
ertiserGroup response) { |
10925 checkAdvertiserGroup(response); | 12183 checkAdvertiserGroup(response); |
10926 }))); | 12184 }))); |
10927 }); | 12185 }); |
10928 | 12186 |
10929 unittest.test("method--list", () { | 12187 unittest.test("method--list", () { |
10930 | 12188 |
10931 var mock = new HttpServerMock(); | 12189 var mock = new HttpServerMock(); |
10932 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; | 12190 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert
iserGroups; |
10933 var arg_profileId = "foo"; | 12191 var arg_profileId = "foo"; |
10934 var arg_ids = buildUnnamed429(); | 12192 var arg_ids = buildUnnamed1230(); |
10935 var arg_maxResults = 42; | 12193 var arg_maxResults = 42; |
10936 var arg_pageToken = "foo"; | 12194 var arg_pageToken = "foo"; |
10937 var arg_searchString = "foo"; | 12195 var arg_searchString = "foo"; |
10938 var arg_sortField = "foo"; | 12196 var arg_sortField = "foo"; |
10939 var arg_sortOrder = "foo"; | 12197 var arg_sortOrder = "foo"; |
10940 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12198 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10941 var path = (req.url).path; | 12199 var path = (req.url).path; |
10942 var pathOffset = 0; | 12200 var pathOffset = 0; |
10943 var index; | 12201 var index; |
10944 var subPart; | 12202 var subPart; |
10945 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12203 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10946 pathOffset += 1; | 12204 pathOffset += 1; |
10947 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12205 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
10948 pathOffset += 18; | 12206 pathOffset += 18; |
10949 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12207 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
10950 pathOffset += 13; | 12208 pathOffset += 13; |
10951 index = path.indexOf("/advertiserGroups", pathOffset); | 12209 index = path.indexOf("/advertiserGroups", pathOffset); |
10952 unittest.expect(index >= 0, unittest.isTrue); | 12210 unittest.expect(index >= 0, unittest.isTrue); |
10953 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12211 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
10954 pathOffset = index; | 12212 pathOffset = index; |
10955 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12213 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
10956 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); | 12214 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); |
10957 pathOffset += 17; | 12215 pathOffset += 17; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11001 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12259 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11002 var obj = new api.AdvertiserGroup.fromJson(json); | 12260 var obj = new api.AdvertiserGroup.fromJson(json); |
11003 checkAdvertiserGroup(obj); | 12261 checkAdvertiserGroup(obj); |
11004 | 12262 |
11005 var path = (req.url).path; | 12263 var path = (req.url).path; |
11006 var pathOffset = 0; | 12264 var pathOffset = 0; |
11007 var index; | 12265 var index; |
11008 var subPart; | 12266 var subPart; |
11009 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12267 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11010 pathOffset += 1; | 12268 pathOffset += 1; |
11011 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12269 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11012 pathOffset += 18; | 12270 pathOffset += 18; |
11013 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12271 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11014 pathOffset += 13; | 12272 pathOffset += 13; |
11015 index = path.indexOf("/advertiserGroups", pathOffset); | 12273 index = path.indexOf("/advertiserGroups", pathOffset); |
11016 unittest.expect(index >= 0, unittest.isTrue); | 12274 unittest.expect(index >= 0, unittest.isTrue); |
11017 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12275 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11018 pathOffset = index; | 12276 pathOffset = index; |
11019 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12277 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11020 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); | 12278 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); |
11021 pathOffset += 17; | 12279 pathOffset += 17; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11059 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11060 var obj = new api.AdvertiserGroup.fromJson(json); | 12318 var obj = new api.AdvertiserGroup.fromJson(json); |
11061 checkAdvertiserGroup(obj); | 12319 checkAdvertiserGroup(obj); |
11062 | 12320 |
11063 var path = (req.url).path; | 12321 var path = (req.url).path; |
11064 var pathOffset = 0; | 12322 var pathOffset = 0; |
11065 var index; | 12323 var index; |
11066 var subPart; | 12324 var subPart; |
11067 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11068 pathOffset += 1; | 12326 pathOffset += 1; |
11069 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12327 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11070 pathOffset += 18; | 12328 pathOffset += 18; |
11071 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12329 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11072 pathOffset += 13; | 12330 pathOffset += 13; |
11073 index = path.indexOf("/advertiserGroups", pathOffset); | 12331 index = path.indexOf("/advertiserGroups", pathOffset); |
11074 unittest.expect(index >= 0, unittest.isTrue); | 12332 unittest.expect(index >= 0, unittest.isTrue); |
11075 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12333 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11076 pathOffset = index; | 12334 pathOffset = index; |
11077 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12335 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11078 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); | 12336 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/advertiserGroups")); |
11079 pathOffset += 17; | 12337 pathOffset += 17; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11117 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers
; | 12375 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers
; |
11118 var arg_profileId = "foo"; | 12376 var arg_profileId = "foo"; |
11119 var arg_id = "foo"; | 12377 var arg_id = "foo"; |
11120 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12378 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11121 var path = (req.url).path; | 12379 var path = (req.url).path; |
11122 var pathOffset = 0; | 12380 var pathOffset = 0; |
11123 var index; | 12381 var index; |
11124 var subPart; | 12382 var subPart; |
11125 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11126 pathOffset += 1; | 12384 pathOffset += 1; |
11127 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12385 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11128 pathOffset += 18; | 12386 pathOffset += 18; |
11129 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12387 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11130 pathOffset += 13; | 12388 pathOffset += 13; |
11131 index = path.indexOf("/advertisers/", pathOffset); | 12389 index = path.indexOf("/advertisers/", pathOffset); |
11132 unittest.expect(index >= 0, unittest.isTrue); | 12390 unittest.expect(index >= 0, unittest.isTrue); |
11133 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12391 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11134 pathOffset = index; | 12392 pathOffset = index; |
11135 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12393 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11136 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/advertisers/")); | 12394 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/advertisers/")); |
11137 pathOffset += 13; | 12395 pathOffset += 13; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11177 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12435 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11178 var obj = new api.Advertiser.fromJson(json); | 12436 var obj = new api.Advertiser.fromJson(json); |
11179 checkAdvertiser(obj); | 12437 checkAdvertiser(obj); |
11180 | 12438 |
11181 var path = (req.url).path; | 12439 var path = (req.url).path; |
11182 var pathOffset = 0; | 12440 var pathOffset = 0; |
11183 var index; | 12441 var index; |
11184 var subPart; | 12442 var subPart; |
11185 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12443 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11186 pathOffset += 1; | 12444 pathOffset += 1; |
11187 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12445 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11188 pathOffset += 18; | 12446 pathOffset += 18; |
11189 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12447 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11190 pathOffset += 13; | 12448 pathOffset += 13; |
11191 index = path.indexOf("/advertisers", pathOffset); | 12449 index = path.indexOf("/advertisers", pathOffset); |
11192 unittest.expect(index >= 0, unittest.isTrue); | 12450 unittest.expect(index >= 0, unittest.isTrue); |
11193 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12451 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11194 pathOffset = index; | 12452 pathOffset = index; |
11195 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12453 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11196 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); | 12454 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); |
11197 pathOffset += 12; | 12455 pathOffset += 12; |
(...skipping 25 matching lines...) Expand all Loading... |
11223 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv
ertiser response) { | 12481 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv
ertiser response) { |
11224 checkAdvertiser(response); | 12482 checkAdvertiser(response); |
11225 }))); | 12483 }))); |
11226 }); | 12484 }); |
11227 | 12485 |
11228 unittest.test("method--list", () { | 12486 unittest.test("method--list", () { |
11229 | 12487 |
11230 var mock = new HttpServerMock(); | 12488 var mock = new HttpServerMock(); |
11231 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers
; | 12489 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers
; |
11232 var arg_profileId = "foo"; | 12490 var arg_profileId = "foo"; |
11233 var arg_advertiserGroupIds = buildUnnamed430(); | 12491 var arg_advertiserGroupIds = buildUnnamed1231(); |
11234 var arg_floodlightConfigurationIds = buildUnnamed431(); | 12492 var arg_floodlightConfigurationIds = buildUnnamed1232(); |
11235 var arg_ids = buildUnnamed432(); | 12493 var arg_ids = buildUnnamed1233(); |
11236 var arg_includeAdvertisersWithoutGroupsOnly = true; | 12494 var arg_includeAdvertisersWithoutGroupsOnly = true; |
11237 var arg_maxResults = 42; | 12495 var arg_maxResults = 42; |
11238 var arg_onlyParent = true; | 12496 var arg_onlyParent = true; |
11239 var arg_pageToken = "foo"; | 12497 var arg_pageToken = "foo"; |
11240 var arg_searchString = "foo"; | 12498 var arg_searchString = "foo"; |
11241 var arg_sortField = "foo"; | 12499 var arg_sortField = "foo"; |
11242 var arg_sortOrder = "foo"; | 12500 var arg_sortOrder = "foo"; |
11243 var arg_status = "foo"; | 12501 var arg_status = "foo"; |
11244 var arg_subaccountId = "foo"; | 12502 var arg_subaccountId = "foo"; |
11245 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12503 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11246 var path = (req.url).path; | 12504 var path = (req.url).path; |
11247 var pathOffset = 0; | 12505 var pathOffset = 0; |
11248 var index; | 12506 var index; |
11249 var subPart; | 12507 var subPart; |
11250 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12508 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11251 pathOffset += 1; | 12509 pathOffset += 1; |
11252 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12510 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11253 pathOffset += 18; | 12511 pathOffset += 18; |
11254 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12512 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11255 pathOffset += 13; | 12513 pathOffset += 13; |
11256 index = path.indexOf("/advertisers", pathOffset); | 12514 index = path.indexOf("/advertisers", pathOffset); |
11257 unittest.expect(index >= 0, unittest.isTrue); | 12515 unittest.expect(index >= 0, unittest.isTrue); |
11258 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12516 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11259 pathOffset = index; | 12517 pathOffset = index; |
11260 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12518 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11261 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); | 12519 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); |
11262 pathOffset += 12; | 12520 pathOffset += 12; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11312 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12570 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11313 var obj = new api.Advertiser.fromJson(json); | 12571 var obj = new api.Advertiser.fromJson(json); |
11314 checkAdvertiser(obj); | 12572 checkAdvertiser(obj); |
11315 | 12573 |
11316 var path = (req.url).path; | 12574 var path = (req.url).path; |
11317 var pathOffset = 0; | 12575 var pathOffset = 0; |
11318 var index; | 12576 var index; |
11319 var subPart; | 12577 var subPart; |
11320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12578 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11321 pathOffset += 1; | 12579 pathOffset += 1; |
11322 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12580 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11323 pathOffset += 18; | 12581 pathOffset += 18; |
11324 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12582 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11325 pathOffset += 13; | 12583 pathOffset += 13; |
11326 index = path.indexOf("/advertisers", pathOffset); | 12584 index = path.indexOf("/advertisers", pathOffset); |
11327 unittest.expect(index >= 0, unittest.isTrue); | 12585 unittest.expect(index >= 0, unittest.isTrue); |
11328 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12586 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11329 pathOffset = index; | 12587 pathOffset = index; |
11330 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12588 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11331 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); | 12589 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); |
11332 pathOffset += 12; | 12590 pathOffset += 12; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12628 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11371 var obj = new api.Advertiser.fromJson(json); | 12629 var obj = new api.Advertiser.fromJson(json); |
11372 checkAdvertiser(obj); | 12630 checkAdvertiser(obj); |
11373 | 12631 |
11374 var path = (req.url).path; | 12632 var path = (req.url).path; |
11375 var pathOffset = 0; | 12633 var pathOffset = 0; |
11376 var index; | 12634 var index; |
11377 var subPart; | 12635 var subPart; |
11378 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12636 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11379 pathOffset += 1; | 12637 pathOffset += 1; |
11380 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12638 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11381 pathOffset += 18; | 12639 pathOffset += 18; |
11382 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12640 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11383 pathOffset += 13; | 12641 pathOffset += 13; |
11384 index = path.indexOf("/advertisers", pathOffset); | 12642 index = path.indexOf("/advertisers", pathOffset); |
11385 unittest.expect(index >= 0, unittest.isTrue); | 12643 unittest.expect(index >= 0, unittest.isTrue); |
11386 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12644 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11387 pathOffset = index; | 12645 pathOffset = index; |
11388 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12646 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11389 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); | 12647 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/advertisers")); |
11390 pathOffset += 12; | 12648 pathOffset += 12; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11427 var mock = new HttpServerMock(); | 12685 var mock = new HttpServerMock(); |
11428 api.BrowsersResourceApi res = new api.DfareportingApi(mock).browsers; | 12686 api.BrowsersResourceApi res = new api.DfareportingApi(mock).browsers; |
11429 var arg_profileId = "foo"; | 12687 var arg_profileId = "foo"; |
11430 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12688 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11431 var path = (req.url).path; | 12689 var path = (req.url).path; |
11432 var pathOffset = 0; | 12690 var pathOffset = 0; |
11433 var index; | 12691 var index; |
11434 var subPart; | 12692 var subPart; |
11435 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12693 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11436 pathOffset += 1; | 12694 pathOffset += 1; |
11437 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12695 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11438 pathOffset += 18; | 12696 pathOffset += 18; |
11439 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12697 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11440 pathOffset += 13; | 12698 pathOffset += 13; |
11441 index = path.indexOf("/browsers", pathOffset); | 12699 index = path.indexOf("/browsers", pathOffset); |
11442 unittest.expect(index >= 0, unittest.isTrue); | 12700 unittest.expect(index >= 0, unittest.isTrue); |
11443 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12701 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11444 pathOffset = index; | 12702 pathOffset = index; |
11445 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12703 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11446 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/browsers")); | 12704 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/browsers")); |
11447 pathOffset += 9; | 12705 pathOffset += 9; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11489 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12747 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11490 var obj = new api.CampaignCreativeAssociation.fromJson(json); | 12748 var obj = new api.CampaignCreativeAssociation.fromJson(json); |
11491 checkCampaignCreativeAssociation(obj); | 12749 checkCampaignCreativeAssociation(obj); |
11492 | 12750 |
11493 var path = (req.url).path; | 12751 var path = (req.url).path; |
11494 var pathOffset = 0; | 12752 var pathOffset = 0; |
11495 var index; | 12753 var index; |
11496 var subPart; | 12754 var subPart; |
11497 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12755 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11498 pathOffset += 1; | 12756 pathOffset += 1; |
11499 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12757 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11500 pathOffset += 18; | 12758 pathOffset += 18; |
11501 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12759 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11502 pathOffset += 13; | 12760 pathOffset += 13; |
11503 index = path.indexOf("/campaigns/", pathOffset); | 12761 index = path.indexOf("/campaigns/", pathOffset); |
11504 unittest.expect(index >= 0, unittest.isTrue); | 12762 unittest.expect(index >= 0, unittest.isTrue); |
11505 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12763 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11506 pathOffset = index; | 12764 pathOffset = index; |
11507 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12765 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11508 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 12766 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
11509 pathOffset += 11; | 12767 pathOffset += 11; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11553 var arg_maxResults = 42; | 12811 var arg_maxResults = 42; |
11554 var arg_pageToken = "foo"; | 12812 var arg_pageToken = "foo"; |
11555 var arg_sortOrder = "foo"; | 12813 var arg_sortOrder = "foo"; |
11556 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12814 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11557 var path = (req.url).path; | 12815 var path = (req.url).path; |
11558 var pathOffset = 0; | 12816 var pathOffset = 0; |
11559 var index; | 12817 var index; |
11560 var subPart; | 12818 var subPart; |
11561 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12819 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11562 pathOffset += 1; | 12820 pathOffset += 1; |
11563 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12821 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11564 pathOffset += 18; | 12822 pathOffset += 18; |
11565 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12823 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11566 pathOffset += 13; | 12824 pathOffset += 13; |
11567 index = path.indexOf("/campaigns/", pathOffset); | 12825 index = path.indexOf("/campaigns/", pathOffset); |
11568 unittest.expect(index >= 0, unittest.isTrue); | 12826 unittest.expect(index >= 0, unittest.isTrue); |
11569 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12827 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11570 pathOffset = index; | 12828 pathOffset = index; |
11571 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12829 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11572 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 12830 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
11573 pathOffset += 11; | 12831 pathOffset += 11; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11621 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; | 12879 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; |
11622 var arg_profileId = "foo"; | 12880 var arg_profileId = "foo"; |
11623 var arg_id = "foo"; | 12881 var arg_id = "foo"; |
11624 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12882 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11625 var path = (req.url).path; | 12883 var path = (req.url).path; |
11626 var pathOffset = 0; | 12884 var pathOffset = 0; |
11627 var index; | 12885 var index; |
11628 var subPart; | 12886 var subPart; |
11629 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12887 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11630 pathOffset += 1; | 12888 pathOffset += 1; |
11631 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12889 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11632 pathOffset += 18; | 12890 pathOffset += 18; |
11633 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12891 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11634 pathOffset += 13; | 12892 pathOffset += 13; |
11635 index = path.indexOf("/campaigns/", pathOffset); | 12893 index = path.indexOf("/campaigns/", pathOffset); |
11636 unittest.expect(index >= 0, unittest.isTrue); | 12894 unittest.expect(index >= 0, unittest.isTrue); |
11637 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12895 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11638 pathOffset = index; | 12896 pathOffset = index; |
11639 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12897 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11640 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 12898 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
11641 pathOffset += 11; | 12899 pathOffset += 11; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11683 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12941 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11684 var obj = new api.Campaign.fromJson(json); | 12942 var obj = new api.Campaign.fromJson(json); |
11685 checkCampaign(obj); | 12943 checkCampaign(obj); |
11686 | 12944 |
11687 var path = (req.url).path; | 12945 var path = (req.url).path; |
11688 var pathOffset = 0; | 12946 var pathOffset = 0; |
11689 var index; | 12947 var index; |
11690 var subPart; | 12948 var subPart; |
11691 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12949 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11692 pathOffset += 1; | 12950 pathOffset += 1; |
11693 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 12951 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11694 pathOffset += 18; | 12952 pathOffset += 18; |
11695 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 12953 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11696 pathOffset += 13; | 12954 pathOffset += 13; |
11697 index = path.indexOf("/campaigns", pathOffset); | 12955 index = path.indexOf("/campaigns", pathOffset); |
11698 unittest.expect(index >= 0, unittest.isTrue); | 12956 unittest.expect(index >= 0, unittest.isTrue); |
11699 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 12957 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11700 pathOffset = index; | 12958 pathOffset = index; |
11701 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 12959 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11702 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); | 12960 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); |
11703 pathOffset += 10; | 12961 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) { | 12989 res.insert(arg_request, arg_profileId, arg_defaultLandingPageName, arg_def
aultLandingPageUrl).then(unittest.expectAsync(((api.Campaign response) { |
11732 checkCampaign(response); | 12990 checkCampaign(response); |
11733 }))); | 12991 }))); |
11734 }); | 12992 }); |
11735 | 12993 |
11736 unittest.test("method--list", () { | 12994 unittest.test("method--list", () { |
11737 | 12995 |
11738 var mock = new HttpServerMock(); | 12996 var mock = new HttpServerMock(); |
11739 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; | 12997 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; |
11740 var arg_profileId = "foo"; | 12998 var arg_profileId = "foo"; |
11741 var arg_advertiserGroupIds = buildUnnamed433(); | 12999 var arg_advertiserGroupIds = buildUnnamed1234(); |
11742 var arg_advertiserIds = buildUnnamed434(); | 13000 var arg_advertiserIds = buildUnnamed1235(); |
11743 var arg_archived = true; | 13001 var arg_archived = true; |
11744 var arg_atLeastOneOptimizationActivity = true; | 13002 var arg_atLeastOneOptimizationActivity = true; |
11745 var arg_excludedIds = buildUnnamed435(); | 13003 var arg_excludedIds = buildUnnamed1236(); |
11746 var arg_ids = buildUnnamed436(); | 13004 var arg_ids = buildUnnamed1237(); |
11747 var arg_maxResults = 42; | 13005 var arg_maxResults = 42; |
11748 var arg_overriddenEventTagId = "foo"; | 13006 var arg_overriddenEventTagId = "foo"; |
11749 var arg_pageToken = "foo"; | 13007 var arg_pageToken = "foo"; |
11750 var arg_searchString = "foo"; | 13008 var arg_searchString = "foo"; |
11751 var arg_sortField = "foo"; | 13009 var arg_sortField = "foo"; |
11752 var arg_sortOrder = "foo"; | 13010 var arg_sortOrder = "foo"; |
11753 var arg_subaccountId = "foo"; | 13011 var arg_subaccountId = "foo"; |
11754 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13012 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11755 var path = (req.url).path; | 13013 var path = (req.url).path; |
11756 var pathOffset = 0; | 13014 var pathOffset = 0; |
11757 var index; | 13015 var index; |
11758 var subPart; | 13016 var subPart; |
11759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13017 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11760 pathOffset += 1; | 13018 pathOffset += 1; |
11761 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13019 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11762 pathOffset += 18; | 13020 pathOffset += 18; |
11763 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13021 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11764 pathOffset += 13; | 13022 pathOffset += 13; |
11765 index = path.indexOf("/campaigns", pathOffset); | 13023 index = path.indexOf("/campaigns", pathOffset); |
11766 unittest.expect(index >= 0, unittest.isTrue); | 13024 unittest.expect(index >= 0, unittest.isTrue); |
11767 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13025 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11768 pathOffset = index; | 13026 pathOffset = index; |
11769 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13027 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11770 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); | 13028 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); |
11771 pathOffset += 10; | 13029 pathOffset += 10; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11822 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13080 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11823 var obj = new api.Campaign.fromJson(json); | 13081 var obj = new api.Campaign.fromJson(json); |
11824 checkCampaign(obj); | 13082 checkCampaign(obj); |
11825 | 13083 |
11826 var path = (req.url).path; | 13084 var path = (req.url).path; |
11827 var pathOffset = 0; | 13085 var pathOffset = 0; |
11828 var index; | 13086 var index; |
11829 var subPart; | 13087 var subPart; |
11830 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13088 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11831 pathOffset += 1; | 13089 pathOffset += 1; |
11832 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13090 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11833 pathOffset += 18; | 13091 pathOffset += 18; |
11834 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13092 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11835 pathOffset += 13; | 13093 pathOffset += 13; |
11836 index = path.indexOf("/campaigns", pathOffset); | 13094 index = path.indexOf("/campaigns", pathOffset); |
11837 unittest.expect(index >= 0, unittest.isTrue); | 13095 unittest.expect(index >= 0, unittest.isTrue); |
11838 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13096 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11839 pathOffset = index; | 13097 pathOffset = index; |
11840 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13098 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11841 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); | 13099 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); |
11842 pathOffset += 10; | 13100 pathOffset += 10; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11880 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13138 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11881 var obj = new api.Campaign.fromJson(json); | 13139 var obj = new api.Campaign.fromJson(json); |
11882 checkCampaign(obj); | 13140 checkCampaign(obj); |
11883 | 13141 |
11884 var path = (req.url).path; | 13142 var path = (req.url).path; |
11885 var pathOffset = 0; | 13143 var pathOffset = 0; |
11886 var index; | 13144 var index; |
11887 var subPart; | 13145 var subPart; |
11888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13146 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11889 pathOffset += 1; | 13147 pathOffset += 1; |
11890 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13148 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11891 pathOffset += 18; | 13149 pathOffset += 18; |
11892 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13150 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11893 pathOffset += 13; | 13151 pathOffset += 13; |
11894 index = path.indexOf("/campaigns", pathOffset); | 13152 index = path.indexOf("/campaigns", pathOffset); |
11895 unittest.expect(index >= 0, unittest.isTrue); | 13153 unittest.expect(index >= 0, unittest.isTrue); |
11896 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13154 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11897 pathOffset = index; | 13155 pathOffset = index; |
11898 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13156 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11899 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); | 13157 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/campaigns")); |
11900 pathOffset += 10; | 13158 pathOffset += 10; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11938 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; | 13196 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; |
11939 var arg_profileId = "foo"; | 13197 var arg_profileId = "foo"; |
11940 var arg_id = "foo"; | 13198 var arg_id = "foo"; |
11941 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13199 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11942 var path = (req.url).path; | 13200 var path = (req.url).path; |
11943 var pathOffset = 0; | 13201 var pathOffset = 0; |
11944 var index; | 13202 var index; |
11945 var subPart; | 13203 var subPart; |
11946 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13204 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11947 pathOffset += 1; | 13205 pathOffset += 1; |
11948 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13206 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
11949 pathOffset += 18; | 13207 pathOffset += 18; |
11950 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13208 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
11951 pathOffset += 13; | 13209 pathOffset += 13; |
11952 index = path.indexOf("/changeLogs/", pathOffset); | 13210 index = path.indexOf("/changeLogs/", pathOffset); |
11953 unittest.expect(index >= 0, unittest.isTrue); | 13211 unittest.expect(index >= 0, unittest.isTrue); |
11954 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13212 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
11955 pathOffset = index; | 13213 pathOffset = index; |
11956 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13214 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
11957 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/changeLogs/")); | 13215 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/changeLogs/")); |
11958 pathOffset += 12; | 13216 pathOffset += 12; |
(...skipping 29 matching lines...) Expand all Loading... |
11988 checkChangeLog(response); | 13246 checkChangeLog(response); |
11989 }))); | 13247 }))); |
11990 }); | 13248 }); |
11991 | 13249 |
11992 unittest.test("method--list", () { | 13250 unittest.test("method--list", () { |
11993 | 13251 |
11994 var mock = new HttpServerMock(); | 13252 var mock = new HttpServerMock(); |
11995 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; | 13253 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; |
11996 var arg_profileId = "foo"; | 13254 var arg_profileId = "foo"; |
11997 var arg_action = "foo"; | 13255 var arg_action = "foo"; |
11998 var arg_ids = buildUnnamed437(); | 13256 var arg_ids = buildUnnamed1238(); |
11999 var arg_maxChangeTime = "foo"; | 13257 var arg_maxChangeTime = "foo"; |
12000 var arg_maxResults = 42; | 13258 var arg_maxResults = 42; |
12001 var arg_minChangeTime = "foo"; | 13259 var arg_minChangeTime = "foo"; |
12002 var arg_objectIds = buildUnnamed438(); | 13260 var arg_objectIds = buildUnnamed1239(); |
12003 var arg_objectType = "foo"; | 13261 var arg_objectType = "foo"; |
12004 var arg_pageToken = "foo"; | 13262 var arg_pageToken = "foo"; |
12005 var arg_searchString = "foo"; | 13263 var arg_searchString = "foo"; |
12006 var arg_userProfileIds = buildUnnamed439(); | 13264 var arg_userProfileIds = buildUnnamed1240(); |
12007 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13265 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12008 var path = (req.url).path; | 13266 var path = (req.url).path; |
12009 var pathOffset = 0; | 13267 var pathOffset = 0; |
12010 var index; | 13268 var index; |
12011 var subPart; | 13269 var subPart; |
12012 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12013 pathOffset += 1; | 13271 pathOffset += 1; |
12014 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13272 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12015 pathOffset += 18; | 13273 pathOffset += 18; |
12016 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13274 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12017 pathOffset += 13; | 13275 pathOffset += 13; |
12018 index = path.indexOf("/changeLogs", pathOffset); | 13276 index = path.indexOf("/changeLogs", pathOffset); |
12019 unittest.expect(index >= 0, unittest.isTrue); | 13277 unittest.expect(index >= 0, unittest.isTrue); |
12020 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13278 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12021 pathOffset = index; | 13279 pathOffset = index; |
12022 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13280 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12023 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/changeLogs")); | 13281 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/changeLogs")); |
12024 pathOffset += 11; | 13282 pathOffset += 11; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12064 | 13322 |
12065 }); | 13323 }); |
12066 | 13324 |
12067 | 13325 |
12068 unittest.group("resource-CitiesResourceApi", () { | 13326 unittest.group("resource-CitiesResourceApi", () { |
12069 unittest.test("method--list", () { | 13327 unittest.test("method--list", () { |
12070 | 13328 |
12071 var mock = new HttpServerMock(); | 13329 var mock = new HttpServerMock(); |
12072 api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; | 13330 api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; |
12073 var arg_profileId = "foo"; | 13331 var arg_profileId = "foo"; |
12074 var arg_countryDartIds = buildUnnamed440(); | 13332 var arg_countryDartIds = buildUnnamed1241(); |
12075 var arg_dartIds = buildUnnamed441(); | 13333 var arg_dartIds = buildUnnamed1242(); |
12076 var arg_namePrefix = "foo"; | 13334 var arg_namePrefix = "foo"; |
12077 var arg_regionDartIds = buildUnnamed442(); | 13335 var arg_regionDartIds = buildUnnamed1243(); |
12078 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13336 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12079 var path = (req.url).path; | 13337 var path = (req.url).path; |
12080 var pathOffset = 0; | 13338 var pathOffset = 0; |
12081 var index; | 13339 var index; |
12082 var subPart; | 13340 var subPart; |
12083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13341 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12084 pathOffset += 1; | 13342 pathOffset += 1; |
12085 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13343 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12086 pathOffset += 18; | 13344 pathOffset += 18; |
12087 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13345 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12088 pathOffset += 13; | 13346 pathOffset += 13; |
12089 index = path.indexOf("/cities", pathOffset); | 13347 index = path.indexOf("/cities", pathOffset); |
12090 unittest.expect(index >= 0, unittest.isTrue); | 13348 unittest.expect(index >= 0, unittest.isTrue); |
12091 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13349 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12092 pathOffset = index; | 13350 pathOffset = index; |
12093 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13351 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12094 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/cities")); | 13352 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/cities")); |
12095 pathOffset += 7; | 13353 pathOffset += 7; |
(...skipping 28 matching lines...) Expand all Loading... |
12124 }), true); | 13382 }), 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) { | 13383 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); | 13384 checkCitiesListResponse(response); |
12127 }))); | 13385 }))); |
12128 }); | 13386 }); |
12129 | 13387 |
12130 }); | 13388 }); |
12131 | 13389 |
12132 | 13390 |
12133 unittest.group("resource-ConnectionTypesResourceApi", () { | 13391 unittest.group("resource-ConnectionTypesResourceApi", () { |
| 13392 unittest.test("method--get", () { |
| 13393 |
| 13394 var mock = new HttpServerMock(); |
| 13395 api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connect
ionTypes; |
| 13396 var arg_profileId = "foo"; |
| 13397 var arg_id = "foo"; |
| 13398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13399 var path = (req.url).path; |
| 13400 var pathOffset = 0; |
| 13401 var index; |
| 13402 var subPart; |
| 13403 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13404 pathOffset += 1; |
| 13405 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 13406 pathOffset += 18; |
| 13407 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 13408 pathOffset += 13; |
| 13409 index = path.indexOf("/connectionTypes/", pathOffset); |
| 13410 unittest.expect(index >= 0, unittest.isTrue); |
| 13411 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 13412 pathOffset = index; |
| 13413 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 13414 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/connectionTypes/")); |
| 13415 pathOffset += 17; |
| 13416 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 13417 pathOffset = path.length; |
| 13418 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 13419 |
| 13420 var query = (req.url).query; |
| 13421 var queryOffset = 0; |
| 13422 var queryMap = {}; |
| 13423 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13424 parseBool(n) { |
| 13425 if (n == "true") return true; |
| 13426 if (n == "false") return false; |
| 13427 if (n == null) return null; |
| 13428 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13429 } |
| 13430 if (query.length > 0) { |
| 13431 for (var part in query.split("&")) { |
| 13432 var keyvalue = part.split("="); |
| 13433 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13434 } |
| 13435 } |
| 13436 |
| 13437 |
| 13438 var h = { |
| 13439 "content-type" : "application/json; charset=utf-8", |
| 13440 }; |
| 13441 var resp = convert.JSON.encode(buildConnectionType()); |
| 13442 return new async.Future.value(stringResponse(200, h, resp)); |
| 13443 }), true); |
| 13444 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ConnectionT
ype response) { |
| 13445 checkConnectionType(response); |
| 13446 }))); |
| 13447 }); |
| 13448 |
12134 unittest.test("method--list", () { | 13449 unittest.test("method--list", () { |
12135 | 13450 |
12136 var mock = new HttpServerMock(); | 13451 var mock = new HttpServerMock(); |
12137 api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connect
ionTypes; | 13452 api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connect
ionTypes; |
12138 var arg_profileId = "foo"; | 13453 var arg_profileId = "foo"; |
12139 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13454 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12140 var path = (req.url).path; | 13455 var path = (req.url).path; |
12141 var pathOffset = 0; | 13456 var pathOffset = 0; |
12142 var index; | 13457 var index; |
12143 var subPart; | 13458 var subPart; |
12144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13459 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12145 pathOffset += 1; | 13460 pathOffset += 1; |
12146 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13461 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12147 pathOffset += 18; | 13462 pathOffset += 18; |
12148 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13463 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12149 pathOffset += 13; | 13464 pathOffset += 13; |
12150 index = path.indexOf("/connectionTypes", pathOffset); | 13465 index = path.indexOf("/connectionTypes", pathOffset); |
12151 unittest.expect(index >= 0, unittest.isTrue); | 13466 unittest.expect(index >= 0, unittest.isTrue); |
12152 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13467 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12153 pathOffset = index; | 13468 pathOffset = index; |
12154 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13469 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12155 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/connectionTypes")); | 13470 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/connectionTypes")); |
12156 pathOffset += 16; | 13471 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; | 13509 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; |
12195 var arg_profileId = "foo"; | 13510 var arg_profileId = "foo"; |
12196 var arg_id = "foo"; | 13511 var arg_id = "foo"; |
12197 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13512 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12198 var path = (req.url).path; | 13513 var path = (req.url).path; |
12199 var pathOffset = 0; | 13514 var pathOffset = 0; |
12200 var index; | 13515 var index; |
12201 var subPart; | 13516 var subPart; |
12202 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12203 pathOffset += 1; | 13518 pathOffset += 1; |
12204 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13519 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12205 pathOffset += 18; | 13520 pathOffset += 18; |
12206 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13521 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12207 pathOffset += 13; | 13522 pathOffset += 13; |
12208 index = path.indexOf("/contentCategories/", pathOffset); | 13523 index = path.indexOf("/contentCategories/", pathOffset); |
12209 unittest.expect(index >= 0, unittest.isTrue); | 13524 unittest.expect(index >= 0, unittest.isTrue); |
12210 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13525 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12211 pathOffset = index; | 13526 pathOffset = index; |
12212 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13527 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12213 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/contentCategories/")); | 13528 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/contentCategories/")); |
12214 pathOffset += 19; | 13529 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; | 13564 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; |
12250 var arg_profileId = "foo"; | 13565 var arg_profileId = "foo"; |
12251 var arg_id = "foo"; | 13566 var arg_id = "foo"; |
12252 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13567 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12253 var path = (req.url).path; | 13568 var path = (req.url).path; |
12254 var pathOffset = 0; | 13569 var pathOffset = 0; |
12255 var index; | 13570 var index; |
12256 var subPart; | 13571 var subPart; |
12257 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13572 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12258 pathOffset += 1; | 13573 pathOffset += 1; |
12259 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13574 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12260 pathOffset += 18; | 13575 pathOffset += 18; |
12261 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13576 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12262 pathOffset += 13; | 13577 pathOffset += 13; |
12263 index = path.indexOf("/contentCategories/", pathOffset); | 13578 index = path.indexOf("/contentCategories/", pathOffset); |
12264 unittest.expect(index >= 0, unittest.isTrue); | 13579 unittest.expect(index >= 0, unittest.isTrue); |
12265 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13580 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12266 pathOffset = index; | 13581 pathOffset = index; |
12267 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13582 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12268 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/contentCategories/")); | 13583 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/contentCategories/")); |
12269 pathOffset += 19; | 13584 pathOffset += 19; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13624 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12310 var obj = new api.ContentCategory.fromJson(json); | 13625 var obj = new api.ContentCategory.fromJson(json); |
12311 checkContentCategory(obj); | 13626 checkContentCategory(obj); |
12312 | 13627 |
12313 var path = (req.url).path; | 13628 var path = (req.url).path; |
12314 var pathOffset = 0; | 13629 var pathOffset = 0; |
12315 var index; | 13630 var index; |
12316 var subPart; | 13631 var subPart; |
12317 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13632 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12318 pathOffset += 1; | 13633 pathOffset += 1; |
12319 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13634 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12320 pathOffset += 18; | 13635 pathOffset += 18; |
12321 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13636 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12322 pathOffset += 13; | 13637 pathOffset += 13; |
12323 index = path.indexOf("/contentCategories", pathOffset); | 13638 index = path.indexOf("/contentCategories", pathOffset); |
12324 unittest.expect(index >= 0, unittest.isTrue); | 13639 unittest.expect(index >= 0, unittest.isTrue); |
12325 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13640 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12326 pathOffset = index; | 13641 pathOffset = index; |
12327 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13642 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12328 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); | 13643 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); |
12329 pathOffset += 18; | 13644 pathOffset += 18; |
(...skipping 25 matching lines...) Expand all Loading... |
12355 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Con
tentCategory response) { | 13670 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Con
tentCategory response) { |
12356 checkContentCategory(response); | 13671 checkContentCategory(response); |
12357 }))); | 13672 }))); |
12358 }); | 13673 }); |
12359 | 13674 |
12360 unittest.test("method--list", () { | 13675 unittest.test("method--list", () { |
12361 | 13676 |
12362 var mock = new HttpServerMock(); | 13677 var mock = new HttpServerMock(); |
12363 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; | 13678 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte
ntCategories; |
12364 var arg_profileId = "foo"; | 13679 var arg_profileId = "foo"; |
12365 var arg_ids = buildUnnamed443(); | 13680 var arg_ids = buildUnnamed1244(); |
12366 var arg_maxResults = 42; | 13681 var arg_maxResults = 42; |
12367 var arg_pageToken = "foo"; | 13682 var arg_pageToken = "foo"; |
12368 var arg_searchString = "foo"; | 13683 var arg_searchString = "foo"; |
12369 var arg_sortField = "foo"; | 13684 var arg_sortField = "foo"; |
12370 var arg_sortOrder = "foo"; | 13685 var arg_sortOrder = "foo"; |
12371 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13686 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12372 var path = (req.url).path; | 13687 var path = (req.url).path; |
12373 var pathOffset = 0; | 13688 var pathOffset = 0; |
12374 var index; | 13689 var index; |
12375 var subPart; | 13690 var subPart; |
12376 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13691 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12377 pathOffset += 1; | 13692 pathOffset += 1; |
12378 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13693 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12379 pathOffset += 18; | 13694 pathOffset += 18; |
12380 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13695 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12381 pathOffset += 13; | 13696 pathOffset += 13; |
12382 index = path.indexOf("/contentCategories", pathOffset); | 13697 index = path.indexOf("/contentCategories", pathOffset); |
12383 unittest.expect(index >= 0, unittest.isTrue); | 13698 unittest.expect(index >= 0, unittest.isTrue); |
12384 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13699 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12385 pathOffset = index; | 13700 pathOffset = index; |
12386 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13701 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12387 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); | 13702 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); |
12388 pathOffset += 18; | 13703 pathOffset += 18; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12432 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13747 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12433 var obj = new api.ContentCategory.fromJson(json); | 13748 var obj = new api.ContentCategory.fromJson(json); |
12434 checkContentCategory(obj); | 13749 checkContentCategory(obj); |
12435 | 13750 |
12436 var path = (req.url).path; | 13751 var path = (req.url).path; |
12437 var pathOffset = 0; | 13752 var pathOffset = 0; |
12438 var index; | 13753 var index; |
12439 var subPart; | 13754 var subPart; |
12440 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13755 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12441 pathOffset += 1; | 13756 pathOffset += 1; |
12442 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13757 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12443 pathOffset += 18; | 13758 pathOffset += 18; |
12444 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13759 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12445 pathOffset += 13; | 13760 pathOffset += 13; |
12446 index = path.indexOf("/contentCategories", pathOffset); | 13761 index = path.indexOf("/contentCategories", pathOffset); |
12447 unittest.expect(index >= 0, unittest.isTrue); | 13762 unittest.expect(index >= 0, unittest.isTrue); |
12448 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13763 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12449 pathOffset = index; | 13764 pathOffset = index; |
12450 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13765 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12451 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); | 13766 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); |
12452 pathOffset += 18; | 13767 pathOffset += 18; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12490 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13805 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12491 var obj = new api.ContentCategory.fromJson(json); | 13806 var obj = new api.ContentCategory.fromJson(json); |
12492 checkContentCategory(obj); | 13807 checkContentCategory(obj); |
12493 | 13808 |
12494 var path = (req.url).path; | 13809 var path = (req.url).path; |
12495 var pathOffset = 0; | 13810 var pathOffset = 0; |
12496 var index; | 13811 var index; |
12497 var subPart; | 13812 var subPart; |
12498 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13813 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12499 pathOffset += 1; | 13814 pathOffset += 1; |
12500 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13815 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12501 pathOffset += 18; | 13816 pathOffset += 18; |
12502 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13817 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12503 pathOffset += 13; | 13818 pathOffset += 13; |
12504 index = path.indexOf("/contentCategories", pathOffset); | 13819 index = path.indexOf("/contentCategories", pathOffset); |
12505 unittest.expect(index >= 0, unittest.isTrue); | 13820 unittest.expect(index >= 0, unittest.isTrue); |
12506 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13821 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12507 pathOffset = index; | 13822 pathOffset = index; |
12508 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13823 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12509 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); | 13824 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/contentCategories")); |
12510 pathOffset += 18; | 13825 pathOffset += 18; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12548 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; | 13863 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; |
12549 var arg_profileId = "foo"; | 13864 var arg_profileId = "foo"; |
12550 var arg_dartId = "foo"; | 13865 var arg_dartId = "foo"; |
12551 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13866 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12552 var path = (req.url).path; | 13867 var path = (req.url).path; |
12553 var pathOffset = 0; | 13868 var pathOffset = 0; |
12554 var index; | 13869 var index; |
12555 var subPart; | 13870 var subPart; |
12556 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13871 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12557 pathOffset += 1; | 13872 pathOffset += 1; |
12558 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13873 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12559 pathOffset += 18; | 13874 pathOffset += 18; |
12560 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13875 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12561 pathOffset += 13; | 13876 pathOffset += 13; |
12562 index = path.indexOf("/countries/", pathOffset); | 13877 index = path.indexOf("/countries/", pathOffset); |
12563 unittest.expect(index >= 0, unittest.isTrue); | 13878 unittest.expect(index >= 0, unittest.isTrue); |
12564 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13879 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12565 pathOffset = index; | 13880 pathOffset = index; |
12566 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13881 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12567 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/countries/")); | 13882 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/countries/")); |
12568 pathOffset += 11; | 13883 pathOffset += 11; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12604 var mock = new HttpServerMock(); | 13919 var mock = new HttpServerMock(); |
12605 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; | 13920 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; |
12606 var arg_profileId = "foo"; | 13921 var arg_profileId = "foo"; |
12607 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13922 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12608 var path = (req.url).path; | 13923 var path = (req.url).path; |
12609 var pathOffset = 0; | 13924 var pathOffset = 0; |
12610 var index; | 13925 var index; |
12611 var subPart; | 13926 var subPart; |
12612 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13927 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12613 pathOffset += 1; | 13928 pathOffset += 1; |
12614 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13929 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12615 pathOffset += 18; | 13930 pathOffset += 18; |
12616 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13931 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12617 pathOffset += 13; | 13932 pathOffset += 13; |
12618 index = path.indexOf("/countries", pathOffset); | 13933 index = path.indexOf("/countries", pathOffset); |
12619 unittest.expect(index >= 0, unittest.isTrue); | 13934 unittest.expect(index >= 0, unittest.isTrue); |
12620 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13935 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12621 pathOffset = index; | 13936 pathOffset = index; |
12622 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 13937 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12623 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/countries")); | 13938 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/countries")); |
12624 pathOffset += 10; | 13939 pathOffset += 10; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12668 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13983 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12669 var obj = new api.CreativeAssetMetadata.fromJson(json); | 13984 var obj = new api.CreativeAssetMetadata.fromJson(json); |
12670 checkCreativeAssetMetadata(obj); | 13985 checkCreativeAssetMetadata(obj); |
12671 | 13986 |
12672 var path = (req.url).path; | 13987 var path = (req.url).path; |
12673 var pathOffset = 0; | 13988 var pathOffset = 0; |
12674 var index; | 13989 var index; |
12675 var subPart; | 13990 var subPart; |
12676 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13991 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12677 pathOffset += 1; | 13992 pathOffset += 1; |
12678 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 13993 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12679 pathOffset += 18; | 13994 pathOffset += 18; |
12680 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 13995 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12681 pathOffset += 13; | 13996 pathOffset += 13; |
12682 index = path.indexOf("/creativeAssets/", pathOffset); | 13997 index = path.indexOf("/creativeAssets/", pathOffset); |
12683 unittest.expect(index >= 0, unittest.isTrue); | 13998 unittest.expect(index >= 0, unittest.isTrue); |
12684 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 13999 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12685 pathOffset = index; | 14000 pathOffset = index; |
12686 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14001 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12687 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeAssets/")); | 14002 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeAssets/")); |
12688 pathOffset += 16; | 14003 pathOffset += 16; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12734 var arg_profileId = "foo"; | 14049 var arg_profileId = "foo"; |
12735 var arg_creativeFieldId = "foo"; | 14050 var arg_creativeFieldId = "foo"; |
12736 var arg_id = "foo"; | 14051 var arg_id = "foo"; |
12737 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14052 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12738 var path = (req.url).path; | 14053 var path = (req.url).path; |
12739 var pathOffset = 0; | 14054 var pathOffset = 0; |
12740 var index; | 14055 var index; |
12741 var subPart; | 14056 var subPart; |
12742 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14057 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12743 pathOffset += 1; | 14058 pathOffset += 1; |
12744 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14059 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12745 pathOffset += 18; | 14060 pathOffset += 18; |
12746 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14061 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12747 pathOffset += 13; | 14062 pathOffset += 13; |
12748 index = path.indexOf("/creativeFields/", pathOffset); | 14063 index = path.indexOf("/creativeFields/", pathOffset); |
12749 unittest.expect(index >= 0, unittest.isTrue); | 14064 unittest.expect(index >= 0, unittest.isTrue); |
12750 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14065 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12751 pathOffset = index; | 14066 pathOffset = index; |
12752 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14067 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12753 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14068 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
12754 pathOffset += 16; | 14069 pathOffset += 16; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12797 var arg_profileId = "foo"; | 14112 var arg_profileId = "foo"; |
12798 var arg_creativeFieldId = "foo"; | 14113 var arg_creativeFieldId = "foo"; |
12799 var arg_id = "foo"; | 14114 var arg_id = "foo"; |
12800 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14115 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12801 var path = (req.url).path; | 14116 var path = (req.url).path; |
12802 var pathOffset = 0; | 14117 var pathOffset = 0; |
12803 var index; | 14118 var index; |
12804 var subPart; | 14119 var subPart; |
12805 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14120 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12806 pathOffset += 1; | 14121 pathOffset += 1; |
12807 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14122 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12808 pathOffset += 18; | 14123 pathOffset += 18; |
12809 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14124 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12810 pathOffset += 13; | 14125 pathOffset += 13; |
12811 index = path.indexOf("/creativeFields/", pathOffset); | 14126 index = path.indexOf("/creativeFields/", pathOffset); |
12812 unittest.expect(index >= 0, unittest.isTrue); | 14127 unittest.expect(index >= 0, unittest.isTrue); |
12813 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14128 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12814 pathOffset = index; | 14129 pathOffset = index; |
12815 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14130 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12816 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14131 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
12817 pathOffset += 16; | 14132 pathOffset += 16; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12865 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14180 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12866 var obj = new api.CreativeFieldValue.fromJson(json); | 14181 var obj = new api.CreativeFieldValue.fromJson(json); |
12867 checkCreativeFieldValue(obj); | 14182 checkCreativeFieldValue(obj); |
12868 | 14183 |
12869 var path = (req.url).path; | 14184 var path = (req.url).path; |
12870 var pathOffset = 0; | 14185 var pathOffset = 0; |
12871 var index; | 14186 var index; |
12872 var subPart; | 14187 var subPart; |
12873 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12874 pathOffset += 1; | 14189 pathOffset += 1; |
12875 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14190 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12876 pathOffset += 18; | 14191 pathOffset += 18; |
12877 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14192 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12878 pathOffset += 13; | 14193 pathOffset += 13; |
12879 index = path.indexOf("/creativeFields/", pathOffset); | 14194 index = path.indexOf("/creativeFields/", pathOffset); |
12880 unittest.expect(index >= 0, unittest.isTrue); | 14195 unittest.expect(index >= 0, unittest.isTrue); |
12881 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14196 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12882 pathOffset = index; | 14197 pathOffset = index; |
12883 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14198 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12884 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14199 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
12885 pathOffset += 16; | 14200 pathOffset += 16; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12919 checkCreativeFieldValue(response); | 14234 checkCreativeFieldValue(response); |
12920 }))); | 14235 }))); |
12921 }); | 14236 }); |
12922 | 14237 |
12923 unittest.test("method--list", () { | 14238 unittest.test("method--list", () { |
12924 | 14239 |
12925 var mock = new HttpServerMock(); | 14240 var mock = new HttpServerMock(); |
12926 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre
ativeFieldValues; | 14241 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre
ativeFieldValues; |
12927 var arg_profileId = "foo"; | 14242 var arg_profileId = "foo"; |
12928 var arg_creativeFieldId = "foo"; | 14243 var arg_creativeFieldId = "foo"; |
12929 var arg_ids = buildUnnamed444(); | 14244 var arg_ids = buildUnnamed1245(); |
12930 var arg_maxResults = 42; | 14245 var arg_maxResults = 42; |
12931 var arg_pageToken = "foo"; | 14246 var arg_pageToken = "foo"; |
12932 var arg_searchString = "foo"; | 14247 var arg_searchString = "foo"; |
12933 var arg_sortField = "foo"; | 14248 var arg_sortField = "foo"; |
12934 var arg_sortOrder = "foo"; | 14249 var arg_sortOrder = "foo"; |
12935 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14250 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12936 var path = (req.url).path; | 14251 var path = (req.url).path; |
12937 var pathOffset = 0; | 14252 var pathOffset = 0; |
12938 var index; | 14253 var index; |
12939 var subPart; | 14254 var subPart; |
12940 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14255 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12941 pathOffset += 1; | 14256 pathOffset += 1; |
12942 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14257 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
12943 pathOffset += 18; | 14258 pathOffset += 18; |
12944 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14259 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
12945 pathOffset += 13; | 14260 pathOffset += 13; |
12946 index = path.indexOf("/creativeFields/", pathOffset); | 14261 index = path.indexOf("/creativeFields/", pathOffset); |
12947 unittest.expect(index >= 0, unittest.isTrue); | 14262 unittest.expect(index >= 0, unittest.isTrue); |
12948 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14263 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
12949 pathOffset = index; | 14264 pathOffset = index; |
12950 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14265 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
12951 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14266 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
12952 pathOffset += 16; | 14267 pathOffset += 16; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13004 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14319 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13005 var obj = new api.CreativeFieldValue.fromJson(json); | 14320 var obj = new api.CreativeFieldValue.fromJson(json); |
13006 checkCreativeFieldValue(obj); | 14321 checkCreativeFieldValue(obj); |
13007 | 14322 |
13008 var path = (req.url).path; | 14323 var path = (req.url).path; |
13009 var pathOffset = 0; | 14324 var pathOffset = 0; |
13010 var index; | 14325 var index; |
13011 var subPart; | 14326 var subPart; |
13012 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14327 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13013 pathOffset += 1; | 14328 pathOffset += 1; |
13014 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14329 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13015 pathOffset += 18; | 14330 pathOffset += 18; |
13016 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14331 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13017 pathOffset += 13; | 14332 pathOffset += 13; |
13018 index = path.indexOf("/creativeFields/", pathOffset); | 14333 index = path.indexOf("/creativeFields/", pathOffset); |
13019 unittest.expect(index >= 0, unittest.isTrue); | 14334 unittest.expect(index >= 0, unittest.isTrue); |
13020 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14335 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13021 pathOffset = index; | 14336 pathOffset = index; |
13022 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14337 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13023 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14338 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
13024 pathOffset += 16; | 14339 pathOffset += 16; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13070 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14385 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13071 var obj = new api.CreativeFieldValue.fromJson(json); | 14386 var obj = new api.CreativeFieldValue.fromJson(json); |
13072 checkCreativeFieldValue(obj); | 14387 checkCreativeFieldValue(obj); |
13073 | 14388 |
13074 var path = (req.url).path; | 14389 var path = (req.url).path; |
13075 var pathOffset = 0; | 14390 var pathOffset = 0; |
13076 var index; | 14391 var index; |
13077 var subPart; | 14392 var subPart; |
13078 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14393 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13079 pathOffset += 1; | 14394 pathOffset += 1; |
13080 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14395 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13081 pathOffset += 18; | 14396 pathOffset += 18; |
13082 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14397 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13083 pathOffset += 13; | 14398 pathOffset += 13; |
13084 index = path.indexOf("/creativeFields/", pathOffset); | 14399 index = path.indexOf("/creativeFields/", pathOffset); |
13085 unittest.expect(index >= 0, unittest.isTrue); | 14400 unittest.expect(index >= 0, unittest.isTrue); |
13086 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14401 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13087 pathOffset = index; | 14402 pathOffset = index; |
13088 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14403 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13089 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14404 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
13090 pathOffset += 16; | 14405 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; | 14450 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; |
13136 var arg_profileId = "foo"; | 14451 var arg_profileId = "foo"; |
13137 var arg_id = "foo"; | 14452 var arg_id = "foo"; |
13138 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14453 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13139 var path = (req.url).path; | 14454 var path = (req.url).path; |
13140 var pathOffset = 0; | 14455 var pathOffset = 0; |
13141 var index; | 14456 var index; |
13142 var subPart; | 14457 var subPart; |
13143 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14458 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13144 pathOffset += 1; | 14459 pathOffset += 1; |
13145 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14460 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13146 pathOffset += 18; | 14461 pathOffset += 18; |
13147 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14462 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13148 pathOffset += 13; | 14463 pathOffset += 13; |
13149 index = path.indexOf("/creativeFields/", pathOffset); | 14464 index = path.indexOf("/creativeFields/", pathOffset); |
13150 unittest.expect(index >= 0, unittest.isTrue); | 14465 unittest.expect(index >= 0, unittest.isTrue); |
13151 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14466 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13152 pathOffset = index; | 14467 pathOffset = index; |
13153 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14468 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13154 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14469 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
13155 pathOffset += 16; | 14470 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; | 14505 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; |
13191 var arg_profileId = "foo"; | 14506 var arg_profileId = "foo"; |
13192 var arg_id = "foo"; | 14507 var arg_id = "foo"; |
13193 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13194 var path = (req.url).path; | 14509 var path = (req.url).path; |
13195 var pathOffset = 0; | 14510 var pathOffset = 0; |
13196 var index; | 14511 var index; |
13197 var subPart; | 14512 var subPart; |
13198 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14513 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13199 pathOffset += 1; | 14514 pathOffset += 1; |
13200 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14515 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13201 pathOffset += 18; | 14516 pathOffset += 18; |
13202 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14517 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13203 pathOffset += 13; | 14518 pathOffset += 13; |
13204 index = path.indexOf("/creativeFields/", pathOffset); | 14519 index = path.indexOf("/creativeFields/", pathOffset); |
13205 unittest.expect(index >= 0, unittest.isTrue); | 14520 unittest.expect(index >= 0, unittest.isTrue); |
13206 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14521 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13207 pathOffset = index; | 14522 pathOffset = index; |
13208 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14523 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13209 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); | 14524 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeFields/")); |
13210 pathOffset += 16; | 14525 pathOffset += 16; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13250 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14565 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13251 var obj = new api.CreativeField.fromJson(json); | 14566 var obj = new api.CreativeField.fromJson(json); |
13252 checkCreativeField(obj); | 14567 checkCreativeField(obj); |
13253 | 14568 |
13254 var path = (req.url).path; | 14569 var path = (req.url).path; |
13255 var pathOffset = 0; | 14570 var pathOffset = 0; |
13256 var index; | 14571 var index; |
13257 var subPart; | 14572 var subPart; |
13258 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13259 pathOffset += 1; | 14574 pathOffset += 1; |
13260 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14575 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13261 pathOffset += 18; | 14576 pathOffset += 18; |
13262 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14577 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13263 pathOffset += 13; | 14578 pathOffset += 13; |
13264 index = path.indexOf("/creativeFields", pathOffset); | 14579 index = path.indexOf("/creativeFields", pathOffset); |
13265 unittest.expect(index >= 0, unittest.isTrue); | 14580 unittest.expect(index >= 0, unittest.isTrue); |
13266 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14581 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13267 pathOffset = index; | 14582 pathOffset = index; |
13268 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14583 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13269 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); | 14584 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); |
13270 pathOffset += 15; | 14585 pathOffset += 15; |
(...skipping 25 matching lines...) Expand all Loading... |
13296 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre
ativeField response) { | 14611 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre
ativeField response) { |
13297 checkCreativeField(response); | 14612 checkCreativeField(response); |
13298 }))); | 14613 }))); |
13299 }); | 14614 }); |
13300 | 14615 |
13301 unittest.test("method--list", () { | 14616 unittest.test("method--list", () { |
13302 | 14617 |
13303 var mock = new HttpServerMock(); | 14618 var mock = new HttpServerMock(); |
13304 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; | 14619 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative
Fields; |
13305 var arg_profileId = "foo"; | 14620 var arg_profileId = "foo"; |
13306 var arg_advertiserIds = buildUnnamed445(); | 14621 var arg_advertiserIds = buildUnnamed1246(); |
13307 var arg_ids = buildUnnamed446(); | 14622 var arg_ids = buildUnnamed1247(); |
13308 var arg_maxResults = 42; | 14623 var arg_maxResults = 42; |
13309 var arg_pageToken = "foo"; | 14624 var arg_pageToken = "foo"; |
13310 var arg_searchString = "foo"; | 14625 var arg_searchString = "foo"; |
13311 var arg_sortField = "foo"; | 14626 var arg_sortField = "foo"; |
13312 var arg_sortOrder = "foo"; | 14627 var arg_sortOrder = "foo"; |
13313 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14628 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13314 var path = (req.url).path; | 14629 var path = (req.url).path; |
13315 var pathOffset = 0; | 14630 var pathOffset = 0; |
13316 var index; | 14631 var index; |
13317 var subPart; | 14632 var subPart; |
13318 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14633 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13319 pathOffset += 1; | 14634 pathOffset += 1; |
13320 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14635 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13321 pathOffset += 18; | 14636 pathOffset += 18; |
13322 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14637 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13323 pathOffset += 13; | 14638 pathOffset += 13; |
13324 index = path.indexOf("/creativeFields", pathOffset); | 14639 index = path.indexOf("/creativeFields", pathOffset); |
13325 unittest.expect(index >= 0, unittest.isTrue); | 14640 unittest.expect(index >= 0, unittest.isTrue); |
13326 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14641 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13327 pathOffset = index; | 14642 pathOffset = index; |
13328 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14643 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13329 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); | 14644 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); |
13330 pathOffset += 15; | 14645 pathOffset += 15; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13375 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14690 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13376 var obj = new api.CreativeField.fromJson(json); | 14691 var obj = new api.CreativeField.fromJson(json); |
13377 checkCreativeField(obj); | 14692 checkCreativeField(obj); |
13378 | 14693 |
13379 var path = (req.url).path; | 14694 var path = (req.url).path; |
13380 var pathOffset = 0; | 14695 var pathOffset = 0; |
13381 var index; | 14696 var index; |
13382 var subPart; | 14697 var subPart; |
13383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14698 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13384 pathOffset += 1; | 14699 pathOffset += 1; |
13385 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14700 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13386 pathOffset += 18; | 14701 pathOffset += 18; |
13387 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14702 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13388 pathOffset += 13; | 14703 pathOffset += 13; |
13389 index = path.indexOf("/creativeFields", pathOffset); | 14704 index = path.indexOf("/creativeFields", pathOffset); |
13390 unittest.expect(index >= 0, unittest.isTrue); | 14705 unittest.expect(index >= 0, unittest.isTrue); |
13391 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14706 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13392 pathOffset = index; | 14707 pathOffset = index; |
13393 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14708 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13394 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); | 14709 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); |
13395 pathOffset += 15; | 14710 pathOffset += 15; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14748 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13434 var obj = new api.CreativeField.fromJson(json); | 14749 var obj = new api.CreativeField.fromJson(json); |
13435 checkCreativeField(obj); | 14750 checkCreativeField(obj); |
13436 | 14751 |
13437 var path = (req.url).path; | 14752 var path = (req.url).path; |
13438 var pathOffset = 0; | 14753 var pathOffset = 0; |
13439 var index; | 14754 var index; |
13440 var subPart; | 14755 var subPart; |
13441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14756 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13442 pathOffset += 1; | 14757 pathOffset += 1; |
13443 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14758 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13444 pathOffset += 18; | 14759 pathOffset += 18; |
13445 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14760 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13446 pathOffset += 13; | 14761 pathOffset += 13; |
13447 index = path.indexOf("/creativeFields", pathOffset); | 14762 index = path.indexOf("/creativeFields", pathOffset); |
13448 unittest.expect(index >= 0, unittest.isTrue); | 14763 unittest.expect(index >= 0, unittest.isTrue); |
13449 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14764 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13450 pathOffset = index; | 14765 pathOffset = index; |
13451 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14766 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13452 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); | 14767 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeFields")); |
13453 pathOffset += 15; | 14768 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; | 14806 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative
Groups; |
13492 var arg_profileId = "foo"; | 14807 var arg_profileId = "foo"; |
13493 var arg_id = "foo"; | 14808 var arg_id = "foo"; |
13494 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14809 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13495 var path = (req.url).path; | 14810 var path = (req.url).path; |
13496 var pathOffset = 0; | 14811 var pathOffset = 0; |
13497 var index; | 14812 var index; |
13498 var subPart; | 14813 var subPart; |
13499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14814 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13500 pathOffset += 1; | 14815 pathOffset += 1; |
13501 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14816 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13502 pathOffset += 18; | 14817 pathOffset += 18; |
13503 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14818 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13504 pathOffset += 13; | 14819 pathOffset += 13; |
13505 index = path.indexOf("/creativeGroups/", pathOffset); | 14820 index = path.indexOf("/creativeGroups/", pathOffset); |
13506 unittest.expect(index >= 0, unittest.isTrue); | 14821 unittest.expect(index >= 0, unittest.isTrue); |
13507 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14822 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13508 pathOffset = index; | 14823 pathOffset = index; |
13509 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14824 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13510 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeGroups/")); | 14825 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/creativeGroups/")); |
13511 pathOffset += 16; | 14826 pathOffset += 16; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13551 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14866 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13552 var obj = new api.CreativeGroup.fromJson(json); | 14867 var obj = new api.CreativeGroup.fromJson(json); |
13553 checkCreativeGroup(obj); | 14868 checkCreativeGroup(obj); |
13554 | 14869 |
13555 var path = (req.url).path; | 14870 var path = (req.url).path; |
13556 var pathOffset = 0; | 14871 var pathOffset = 0; |
13557 var index; | 14872 var index; |
13558 var subPart; | 14873 var subPart; |
13559 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14874 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13560 pathOffset += 1; | 14875 pathOffset += 1; |
13561 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14876 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13562 pathOffset += 18; | 14877 pathOffset += 18; |
13563 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14878 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13564 pathOffset += 13; | 14879 pathOffset += 13; |
13565 index = path.indexOf("/creativeGroups", pathOffset); | 14880 index = path.indexOf("/creativeGroups", pathOffset); |
13566 unittest.expect(index >= 0, unittest.isTrue); | 14881 unittest.expect(index >= 0, unittest.isTrue); |
13567 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14882 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13568 pathOffset = index; | 14883 pathOffset = index; |
13569 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14884 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13570 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); | 14885 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); |
13571 pathOffset += 15; | 14886 pathOffset += 15; |
(...skipping 25 matching lines...) Expand all Loading... |
13597 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre
ativeGroup response) { | 14912 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre
ativeGroup response) { |
13598 checkCreativeGroup(response); | 14913 checkCreativeGroup(response); |
13599 }))); | 14914 }))); |
13600 }); | 14915 }); |
13601 | 14916 |
13602 unittest.test("method--list", () { | 14917 unittest.test("method--list", () { |
13603 | 14918 |
13604 var mock = new HttpServerMock(); | 14919 var mock = new HttpServerMock(); |
13605 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative
Groups; | 14920 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative
Groups; |
13606 var arg_profileId = "foo"; | 14921 var arg_profileId = "foo"; |
13607 var arg_advertiserIds = buildUnnamed447(); | 14922 var arg_advertiserIds = buildUnnamed1248(); |
13608 var arg_groupNumber = 42; | 14923 var arg_groupNumber = 42; |
13609 var arg_ids = buildUnnamed448(); | 14924 var arg_ids = buildUnnamed1249(); |
13610 var arg_maxResults = 42; | 14925 var arg_maxResults = 42; |
13611 var arg_pageToken = "foo"; | 14926 var arg_pageToken = "foo"; |
13612 var arg_searchString = "foo"; | 14927 var arg_searchString = "foo"; |
13613 var arg_sortField = "foo"; | 14928 var arg_sortField = "foo"; |
13614 var arg_sortOrder = "foo"; | 14929 var arg_sortOrder = "foo"; |
13615 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14930 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13616 var path = (req.url).path; | 14931 var path = (req.url).path; |
13617 var pathOffset = 0; | 14932 var pathOffset = 0; |
13618 var index; | 14933 var index; |
13619 var subPart; | 14934 var subPart; |
13620 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14935 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13621 pathOffset += 1; | 14936 pathOffset += 1; |
13622 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 14937 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13623 pathOffset += 18; | 14938 pathOffset += 18; |
13624 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 14939 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13625 pathOffset += 13; | 14940 pathOffset += 13; |
13626 index = path.indexOf("/creativeGroups", pathOffset); | 14941 index = path.indexOf("/creativeGroups", pathOffset); |
13627 unittest.expect(index >= 0, unittest.isTrue); | 14942 unittest.expect(index >= 0, unittest.isTrue); |
13628 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 14943 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13629 pathOffset = index; | 14944 pathOffset = index; |
13630 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 14945 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13631 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); | 14946 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); |
13632 pathOffset += 15; | 14947 pathOffset += 15; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13678 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14993 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13679 var obj = new api.CreativeGroup.fromJson(json); | 14994 var obj = new api.CreativeGroup.fromJson(json); |
13680 checkCreativeGroup(obj); | 14995 checkCreativeGroup(obj); |
13681 | 14996 |
13682 var path = (req.url).path; | 14997 var path = (req.url).path; |
13683 var pathOffset = 0; | 14998 var pathOffset = 0; |
13684 var index; | 14999 var index; |
13685 var subPart; | 15000 var subPart; |
13686 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15001 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13687 pathOffset += 1; | 15002 pathOffset += 1; |
13688 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15003 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13689 pathOffset += 18; | 15004 pathOffset += 18; |
13690 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15005 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13691 pathOffset += 13; | 15006 pathOffset += 13; |
13692 index = path.indexOf("/creativeGroups", pathOffset); | 15007 index = path.indexOf("/creativeGroups", pathOffset); |
13693 unittest.expect(index >= 0, unittest.isTrue); | 15008 unittest.expect(index >= 0, unittest.isTrue); |
13694 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15009 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13695 pathOffset = index; | 15010 pathOffset = index; |
13696 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15011 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13697 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); | 15012 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); |
13698 pathOffset += 15; | 15013 pathOffset += 15; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13736 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15051 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13737 var obj = new api.CreativeGroup.fromJson(json); | 15052 var obj = new api.CreativeGroup.fromJson(json); |
13738 checkCreativeGroup(obj); | 15053 checkCreativeGroup(obj); |
13739 | 15054 |
13740 var path = (req.url).path; | 15055 var path = (req.url).path; |
13741 var pathOffset = 0; | 15056 var pathOffset = 0; |
13742 var index; | 15057 var index; |
13743 var subPart; | 15058 var subPart; |
13744 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15059 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13745 pathOffset += 1; | 15060 pathOffset += 1; |
13746 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15061 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13747 pathOffset += 18; | 15062 pathOffset += 18; |
13748 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15063 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13749 pathOffset += 13; | 15064 pathOffset += 13; |
13750 index = path.indexOf("/creativeGroups", pathOffset); | 15065 index = path.indexOf("/creativeGroups", pathOffset); |
13751 unittest.expect(index >= 0, unittest.isTrue); | 15066 unittest.expect(index >= 0, unittest.isTrue); |
13752 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15067 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13753 pathOffset = index; | 15068 pathOffset = index; |
13754 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15069 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13755 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); | 15070 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/creativeGroups")); |
13756 pathOffset += 15; | 15071 pathOffset += 15; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13794 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; | 15109 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; |
13795 var arg_profileId = "foo"; | 15110 var arg_profileId = "foo"; |
13796 var arg_id = "foo"; | 15111 var arg_id = "foo"; |
13797 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15112 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13798 var path = (req.url).path; | 15113 var path = (req.url).path; |
13799 var pathOffset = 0; | 15114 var pathOffset = 0; |
13800 var index; | 15115 var index; |
13801 var subPart; | 15116 var subPart; |
13802 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15117 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13803 pathOffset += 1; | 15118 pathOffset += 1; |
13804 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15119 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13805 pathOffset += 18; | 15120 pathOffset += 18; |
13806 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15121 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13807 pathOffset += 13; | 15122 pathOffset += 13; |
13808 index = path.indexOf("/creatives/", pathOffset); | 15123 index = path.indexOf("/creatives/", pathOffset); |
13809 unittest.expect(index >= 0, unittest.isTrue); | 15124 unittest.expect(index >= 0, unittest.isTrue); |
13810 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15125 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13811 pathOffset = index; | 15126 pathOffset = index; |
13812 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15127 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13813 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/creatives/")); | 15128 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/creatives/")); |
13814 pathOffset += 11; | 15129 pathOffset += 11; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13854 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15169 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13855 var obj = new api.Creative.fromJson(json); | 15170 var obj = new api.Creative.fromJson(json); |
13856 checkCreative(obj); | 15171 checkCreative(obj); |
13857 | 15172 |
13858 var path = (req.url).path; | 15173 var path = (req.url).path; |
13859 var pathOffset = 0; | 15174 var pathOffset = 0; |
13860 var index; | 15175 var index; |
13861 var subPart; | 15176 var subPart; |
13862 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15177 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13863 pathOffset += 1; | 15178 pathOffset += 1; |
13864 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15179 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13865 pathOffset += 18; | 15180 pathOffset += 18; |
13866 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15181 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13867 pathOffset += 13; | 15182 pathOffset += 13; |
13868 index = path.indexOf("/creatives", pathOffset); | 15183 index = path.indexOf("/creatives", pathOffset); |
13869 unittest.expect(index >= 0, unittest.isTrue); | 15184 unittest.expect(index >= 0, unittest.isTrue); |
13870 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15185 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13871 pathOffset = index; | 15186 pathOffset = index; |
13872 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15187 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13873 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); | 15188 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); |
13874 pathOffset += 10; | 15189 pathOffset += 10; |
(...skipping 29 matching lines...) Expand all Loading... |
13904 | 15219 |
13905 unittest.test("method--list", () { | 15220 unittest.test("method--list", () { |
13906 | 15221 |
13907 var mock = new HttpServerMock(); | 15222 var mock = new HttpServerMock(); |
13908 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; | 15223 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; |
13909 var arg_profileId = "foo"; | 15224 var arg_profileId = "foo"; |
13910 var arg_active = true; | 15225 var arg_active = true; |
13911 var arg_advertiserId = "foo"; | 15226 var arg_advertiserId = "foo"; |
13912 var arg_archived = true; | 15227 var arg_archived = true; |
13913 var arg_campaignId = "foo"; | 15228 var arg_campaignId = "foo"; |
13914 var arg_companionCreativeIds = buildUnnamed449(); | 15229 var arg_companionCreativeIds = buildUnnamed1250(); |
13915 var arg_creativeFieldIds = buildUnnamed450(); | 15230 var arg_creativeFieldIds = buildUnnamed1251(); |
13916 var arg_ids = buildUnnamed451(); | 15231 var arg_ids = buildUnnamed1252(); |
13917 var arg_maxResults = 42; | 15232 var arg_maxResults = 42; |
13918 var arg_pageToken = "foo"; | 15233 var arg_pageToken = "foo"; |
13919 var arg_renderingIds = buildUnnamed452(); | 15234 var arg_renderingIds = buildUnnamed1253(); |
13920 var arg_searchString = "foo"; | 15235 var arg_searchString = "foo"; |
13921 var arg_sizeIds = buildUnnamed453(); | 15236 var arg_sizeIds = buildUnnamed1254(); |
13922 var arg_sortField = "foo"; | 15237 var arg_sortField = "foo"; |
13923 var arg_sortOrder = "foo"; | 15238 var arg_sortOrder = "foo"; |
13924 var arg_studioCreativeId = "foo"; | 15239 var arg_studioCreativeId = "foo"; |
13925 var arg_types = buildUnnamed454(); | 15240 var arg_types = buildUnnamed1255(); |
13926 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15241 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13927 var path = (req.url).path; | 15242 var path = (req.url).path; |
13928 var pathOffset = 0; | 15243 var pathOffset = 0; |
13929 var index; | 15244 var index; |
13930 var subPart; | 15245 var subPart; |
13931 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15246 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13932 pathOffset += 1; | 15247 pathOffset += 1; |
13933 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15248 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
13934 pathOffset += 18; | 15249 pathOffset += 18; |
13935 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15250 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
13936 pathOffset += 13; | 15251 pathOffset += 13; |
13937 index = path.indexOf("/creatives", pathOffset); | 15252 index = path.indexOf("/creatives", pathOffset); |
13938 unittest.expect(index >= 0, unittest.isTrue); | 15253 unittest.expect(index >= 0, unittest.isTrue); |
13939 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15254 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
13940 pathOffset = index; | 15255 pathOffset = index; |
13941 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15256 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
13942 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); | 15257 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); |
13943 pathOffset += 10; | 15258 pathOffset += 10; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13997 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15312 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13998 var obj = new api.Creative.fromJson(json); | 15313 var obj = new api.Creative.fromJson(json); |
13999 checkCreative(obj); | 15314 checkCreative(obj); |
14000 | 15315 |
14001 var path = (req.url).path; | 15316 var path = (req.url).path; |
14002 var pathOffset = 0; | 15317 var pathOffset = 0; |
14003 var index; | 15318 var index; |
14004 var subPart; | 15319 var subPart; |
14005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14006 pathOffset += 1; | 15321 pathOffset += 1; |
14007 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15322 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14008 pathOffset += 18; | 15323 pathOffset += 18; |
14009 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15324 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14010 pathOffset += 13; | 15325 pathOffset += 13; |
14011 index = path.indexOf("/creatives", pathOffset); | 15326 index = path.indexOf("/creatives", pathOffset); |
14012 unittest.expect(index >= 0, unittest.isTrue); | 15327 unittest.expect(index >= 0, unittest.isTrue); |
14013 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15328 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14014 pathOffset = index; | 15329 pathOffset = index; |
14015 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15330 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14016 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); | 15331 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); |
14017 pathOffset += 10; | 15332 pathOffset += 10; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14055 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14056 var obj = new api.Creative.fromJson(json); | 15371 var obj = new api.Creative.fromJson(json); |
14057 checkCreative(obj); | 15372 checkCreative(obj); |
14058 | 15373 |
14059 var path = (req.url).path; | 15374 var path = (req.url).path; |
14060 var pathOffset = 0; | 15375 var pathOffset = 0; |
14061 var index; | 15376 var index; |
14062 var subPart; | 15377 var subPart; |
14063 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15378 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14064 pathOffset += 1; | 15379 pathOffset += 1; |
14065 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15380 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14066 pathOffset += 18; | 15381 pathOffset += 18; |
14067 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15382 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14068 pathOffset += 13; | 15383 pathOffset += 13; |
14069 index = path.indexOf("/creatives", pathOffset); | 15384 index = path.indexOf("/creatives", pathOffset); |
14070 unittest.expect(index >= 0, unittest.isTrue); | 15385 unittest.expect(index >= 0, unittest.isTrue); |
14071 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15386 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14072 pathOffset = index; | 15387 pathOffset = index; |
14073 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15388 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14074 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); | 15389 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/creatives")); |
14075 pathOffset += 10; | 15390 pathOffset += 10; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14118 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14119 var obj = new api.DimensionValueRequest.fromJson(json); | 15434 var obj = new api.DimensionValueRequest.fromJson(json); |
14120 checkDimensionValueRequest(obj); | 15435 checkDimensionValueRequest(obj); |
14121 | 15436 |
14122 var path = (req.url).path; | 15437 var path = (req.url).path; |
14123 var pathOffset = 0; | 15438 var pathOffset = 0; |
14124 var index; | 15439 var index; |
14125 var subPart; | 15440 var subPart; |
14126 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14127 pathOffset += 1; | 15442 pathOffset += 1; |
14128 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15443 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14129 pathOffset += 18; | 15444 pathOffset += 18; |
14130 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15445 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14131 pathOffset += 13; | 15446 pathOffset += 13; |
14132 index = path.indexOf("/dimensionvalues/query", pathOffset); | 15447 index = path.indexOf("/dimensionvalues/query", pathOffset); |
14133 unittest.expect(index >= 0, unittest.isTrue); | 15448 unittest.expect(index >= 0, unittest.isTrue); |
14134 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15449 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14135 pathOffset = index; | 15450 pathOffset = index; |
14136 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15451 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14137 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/dimensionvalues/query")); | 15452 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/dimensionvalues/query")); |
14138 pathOffset += 22; | 15453 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; | 15493 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d
irectorySiteContacts; |
14179 var arg_profileId = "foo"; | 15494 var arg_profileId = "foo"; |
14180 var arg_id = "foo"; | 15495 var arg_id = "foo"; |
14181 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15496 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14182 var path = (req.url).path; | 15497 var path = (req.url).path; |
14183 var pathOffset = 0; | 15498 var pathOffset = 0; |
14184 var index; | 15499 var index; |
14185 var subPart; | 15500 var subPart; |
14186 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14187 pathOffset += 1; | 15502 pathOffset += 1; |
14188 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15503 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14189 pathOffset += 18; | 15504 pathOffset += 18; |
14190 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15505 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14191 pathOffset += 13; | 15506 pathOffset += 13; |
14192 index = path.indexOf("/directorySiteContacts/", pathOffset); | 15507 index = path.indexOf("/directorySiteContacts/", pathOffset); |
14193 unittest.expect(index >= 0, unittest.isTrue); | 15508 unittest.expect(index >= 0, unittest.isTrue); |
14194 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15509 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14195 pathOffset = index; | 15510 pathOffset = index; |
14196 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15511 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14197 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/directorySiteContacts/")); | 15512 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/directorySiteContacts/")); |
14198 pathOffset += 23; | 15513 pathOffset += 23; |
(...skipping 28 matching lines...) Expand all Loading... |
14227 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi
teContact response) { | 15542 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi
teContact response) { |
14228 checkDirectorySiteContact(response); | 15543 checkDirectorySiteContact(response); |
14229 }))); | 15544 }))); |
14230 }); | 15545 }); |
14231 | 15546 |
14232 unittest.test("method--list", () { | 15547 unittest.test("method--list", () { |
14233 | 15548 |
14234 var mock = new HttpServerMock(); | 15549 var mock = new HttpServerMock(); |
14235 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d
irectorySiteContacts; | 15550 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d
irectorySiteContacts; |
14236 var arg_profileId = "foo"; | 15551 var arg_profileId = "foo"; |
14237 var arg_directorySiteIds = buildUnnamed455(); | 15552 var arg_directorySiteIds = buildUnnamed1256(); |
14238 var arg_ids = buildUnnamed456(); | 15553 var arg_ids = buildUnnamed1257(); |
14239 var arg_maxResults = 42; | 15554 var arg_maxResults = 42; |
14240 var arg_pageToken = "foo"; | 15555 var arg_pageToken = "foo"; |
14241 var arg_searchString = "foo"; | 15556 var arg_searchString = "foo"; |
14242 var arg_sortField = "foo"; | 15557 var arg_sortField = "foo"; |
14243 var arg_sortOrder = "foo"; | 15558 var arg_sortOrder = "foo"; |
14244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14245 var path = (req.url).path; | 15560 var path = (req.url).path; |
14246 var pathOffset = 0; | 15561 var pathOffset = 0; |
14247 var index; | 15562 var index; |
14248 var subPart; | 15563 var subPart; |
14249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14250 pathOffset += 1; | 15565 pathOffset += 1; |
14251 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15566 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14252 pathOffset += 18; | 15567 pathOffset += 18; |
14253 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15568 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14254 pathOffset += 13; | 15569 pathOffset += 13; |
14255 index = path.indexOf("/directorySiteContacts", pathOffset); | 15570 index = path.indexOf("/directorySiteContacts", pathOffset); |
14256 unittest.expect(index >= 0, unittest.isTrue); | 15571 unittest.expect(index >= 0, unittest.isTrue); |
14257 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15572 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14258 pathOffset = index; | 15573 pathOffset = index; |
14259 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15574 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14260 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/directorySiteContacts")); | 15575 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/directorySiteContacts")); |
14261 pathOffset += 22; | 15576 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; | 15621 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; |
14307 var arg_profileId = "foo"; | 15622 var arg_profileId = "foo"; |
14308 var arg_id = "foo"; | 15623 var arg_id = "foo"; |
14309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15624 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14310 var path = (req.url).path; | 15625 var path = (req.url).path; |
14311 var pathOffset = 0; | 15626 var pathOffset = 0; |
14312 var index; | 15627 var index; |
14313 var subPart; | 15628 var subPart; |
14314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15629 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14315 pathOffset += 1; | 15630 pathOffset += 1; |
14316 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15631 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14317 pathOffset += 18; | 15632 pathOffset += 18; |
14318 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15633 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14319 pathOffset += 13; | 15634 pathOffset += 13; |
14320 index = path.indexOf("/directorySites/", pathOffset); | 15635 index = path.indexOf("/directorySites/", pathOffset); |
14321 unittest.expect(index >= 0, unittest.isTrue); | 15636 unittest.expect(index >= 0, unittest.isTrue); |
14322 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15637 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14323 pathOffset = index; | 15638 pathOffset = index; |
14324 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15639 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14325 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/directorySites/")); | 15640 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/directorySites/")); |
14326 pathOffset += 16; | 15641 pathOffset += 16; |
(...skipping 23 matching lines...) Expand all Loading... |
14350 "content-type" : "application/json; charset=utf-8", | 15665 "content-type" : "application/json; charset=utf-8", |
14351 }; | 15666 }; |
14352 var resp = convert.JSON.encode(buildDirectorySite()); | 15667 var resp = convert.JSON.encode(buildDirectorySite()); |
14353 return new async.Future.value(stringResponse(200, h, resp)); | 15668 return new async.Future.value(stringResponse(200, h, resp)); |
14354 }), true); | 15669 }), true); |
14355 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi
te response) { | 15670 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi
te response) { |
14356 checkDirectorySite(response); | 15671 checkDirectorySite(response); |
14357 }))); | 15672 }))); |
14358 }); | 15673 }); |
14359 | 15674 |
| 15675 unittest.test("method--insert", () { |
| 15676 |
| 15677 var mock = new HttpServerMock(); |
| 15678 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; |
| 15679 var arg_request = buildDirectorySite(); |
| 15680 var arg_profileId = "foo"; |
| 15681 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15682 var obj = new api.DirectorySite.fromJson(json); |
| 15683 checkDirectorySite(obj); |
| 15684 |
| 15685 var path = (req.url).path; |
| 15686 var pathOffset = 0; |
| 15687 var index; |
| 15688 var subPart; |
| 15689 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15690 pathOffset += 1; |
| 15691 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 15692 pathOffset += 18; |
| 15693 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 15694 pathOffset += 13; |
| 15695 index = path.indexOf("/directorySites", pathOffset); |
| 15696 unittest.expect(index >= 0, unittest.isTrue); |
| 15697 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 15698 pathOffset = index; |
| 15699 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 15700 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/directorySites")); |
| 15701 pathOffset += 15; |
| 15702 |
| 15703 var query = (req.url).query; |
| 15704 var queryOffset = 0; |
| 15705 var queryMap = {}; |
| 15706 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15707 parseBool(n) { |
| 15708 if (n == "true") return true; |
| 15709 if (n == "false") return false; |
| 15710 if (n == null) return null; |
| 15711 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15712 } |
| 15713 if (query.length > 0) { |
| 15714 for (var part in query.split("&")) { |
| 15715 var keyvalue = part.split("="); |
| 15716 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15717 } |
| 15718 } |
| 15719 |
| 15720 |
| 15721 var h = { |
| 15722 "content-type" : "application/json; charset=utf-8", |
| 15723 }; |
| 15724 var resp = convert.JSON.encode(buildDirectorySite()); |
| 15725 return new async.Future.value(stringResponse(200, h, resp)); |
| 15726 }), true); |
| 15727 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Dir
ectorySite response) { |
| 15728 checkDirectorySite(response); |
| 15729 }))); |
| 15730 }); |
| 15731 |
14360 unittest.test("method--list", () { | 15732 unittest.test("method--list", () { |
14361 | 15733 |
14362 var mock = new HttpServerMock(); | 15734 var mock = new HttpServerMock(); |
14363 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; | 15735 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director
ySites; |
14364 var arg_profileId = "foo"; | 15736 var arg_profileId = "foo"; |
14365 var arg_acceptsInStreamVideoPlacements = true; | 15737 var arg_acceptsInStreamVideoPlacements = true; |
14366 var arg_acceptsInterstitialPlacements = true; | 15738 var arg_acceptsInterstitialPlacements = true; |
14367 var arg_acceptsPublisherPaidPlacements = true; | 15739 var arg_acceptsPublisherPaidPlacements = true; |
14368 var arg_active = true; | 15740 var arg_active = true; |
14369 var arg_countryId = "foo"; | 15741 var arg_countryId = "foo"; |
14370 var arg_dfpNetworkCode = "foo"; | 15742 var arg_dfpNetworkCode = "foo"; |
14371 var arg_ids = buildUnnamed457(); | 15743 var arg_ids = buildUnnamed1258(); |
14372 var arg_maxResults = 42; | 15744 var arg_maxResults = 42; |
14373 var arg_pageToken = "foo"; | 15745 var arg_pageToken = "foo"; |
14374 var arg_parentId = "foo"; | 15746 var arg_parentId = "foo"; |
14375 var arg_searchString = "foo"; | 15747 var arg_searchString = "foo"; |
14376 var arg_sortField = "foo"; | 15748 var arg_sortField = "foo"; |
14377 var arg_sortOrder = "foo"; | 15749 var arg_sortOrder = "foo"; |
14378 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15750 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14379 var path = (req.url).path; | 15751 var path = (req.url).path; |
14380 var pathOffset = 0; | 15752 var pathOffset = 0; |
14381 var index; | 15753 var index; |
14382 var subPart; | 15754 var subPart; |
14383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15755 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14384 pathOffset += 1; | 15756 pathOffset += 1; |
14385 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15757 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14386 pathOffset += 18; | 15758 pathOffset += 18; |
14387 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15759 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14388 pathOffset += 13; | 15760 pathOffset += 13; |
14389 index = path.indexOf("/directorySites", pathOffset); | 15761 index = path.indexOf("/directorySites", pathOffset); |
14390 unittest.expect(index >= 0, unittest.isTrue); | 15762 unittest.expect(index >= 0, unittest.isTrue); |
14391 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15763 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14392 pathOffset = index; | 15764 pathOffset = index; |
14393 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15765 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14394 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/directorySites")); | 15766 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/directorySites")); |
14395 pathOffset += 15; | 15767 pathOffset += 15; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14446 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; | 15818 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; |
14447 var arg_profileId = "foo"; | 15819 var arg_profileId = "foo"; |
14448 var arg_id = "foo"; | 15820 var arg_id = "foo"; |
14449 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15821 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14450 var path = (req.url).path; | 15822 var path = (req.url).path; |
14451 var pathOffset = 0; | 15823 var pathOffset = 0; |
14452 var index; | 15824 var index; |
14453 var subPart; | 15825 var subPart; |
14454 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15826 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14455 pathOffset += 1; | 15827 pathOffset += 1; |
14456 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15828 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14457 pathOffset += 18; | 15829 pathOffset += 18; |
14458 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15830 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14459 pathOffset += 13; | 15831 pathOffset += 13; |
14460 index = path.indexOf("/eventTags/", pathOffset); | 15832 index = path.indexOf("/eventTags/", pathOffset); |
14461 unittest.expect(index >= 0, unittest.isTrue); | 15833 unittest.expect(index >= 0, unittest.isTrue); |
14462 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15834 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14463 pathOffset = index; | 15835 pathOffset = index; |
14464 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15836 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14465 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/eventTags/")); | 15837 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/eventTags/")); |
14466 pathOffset += 11; | 15838 pathOffset += 11; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14501 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; | 15873 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; |
14502 var arg_profileId = "foo"; | 15874 var arg_profileId = "foo"; |
14503 var arg_id = "foo"; | 15875 var arg_id = "foo"; |
14504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15876 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14505 var path = (req.url).path; | 15877 var path = (req.url).path; |
14506 var pathOffset = 0; | 15878 var pathOffset = 0; |
14507 var index; | 15879 var index; |
14508 var subPart; | 15880 var subPart; |
14509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15881 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14510 pathOffset += 1; | 15882 pathOffset += 1; |
14511 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15883 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14512 pathOffset += 18; | 15884 pathOffset += 18; |
14513 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15885 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14514 pathOffset += 13; | 15886 pathOffset += 13; |
14515 index = path.indexOf("/eventTags/", pathOffset); | 15887 index = path.indexOf("/eventTags/", pathOffset); |
14516 unittest.expect(index >= 0, unittest.isTrue); | 15888 unittest.expect(index >= 0, unittest.isTrue); |
14517 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15889 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14518 pathOffset = index; | 15890 pathOffset = index; |
14519 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15891 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14520 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/eventTags/")); | 15892 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/eventTags/")); |
14521 pathOffset += 11; | 15893 pathOffset += 11; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14561 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15933 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14562 var obj = new api.EventTag.fromJson(json); | 15934 var obj = new api.EventTag.fromJson(json); |
14563 checkEventTag(obj); | 15935 checkEventTag(obj); |
14564 | 15936 |
14565 var path = (req.url).path; | 15937 var path = (req.url).path; |
14566 var pathOffset = 0; | 15938 var pathOffset = 0; |
14567 var index; | 15939 var index; |
14568 var subPart; | 15940 var subPart; |
14569 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15941 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14570 pathOffset += 1; | 15942 pathOffset += 1; |
14571 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 15943 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14572 pathOffset += 18; | 15944 pathOffset += 18; |
14573 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 15945 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14574 pathOffset += 13; | 15946 pathOffset += 13; |
14575 index = path.indexOf("/eventTags", pathOffset); | 15947 index = path.indexOf("/eventTags", pathOffset); |
14576 unittest.expect(index >= 0, unittest.isTrue); | 15948 unittest.expect(index >= 0, unittest.isTrue); |
14577 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 15949 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14578 pathOffset = index; | 15950 pathOffset = index; |
14579 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 15951 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14580 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); | 15952 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); |
14581 pathOffset += 10; | 15953 pathOffset += 10; |
(...skipping 30 matching lines...) Expand all Loading... |
14612 unittest.test("method--list", () { | 15984 unittest.test("method--list", () { |
14613 | 15985 |
14614 var mock = new HttpServerMock(); | 15986 var mock = new HttpServerMock(); |
14615 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; | 15987 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; |
14616 var arg_profileId = "foo"; | 15988 var arg_profileId = "foo"; |
14617 var arg_adId = "foo"; | 15989 var arg_adId = "foo"; |
14618 var arg_advertiserId = "foo"; | 15990 var arg_advertiserId = "foo"; |
14619 var arg_campaignId = "foo"; | 15991 var arg_campaignId = "foo"; |
14620 var arg_definitionsOnly = true; | 15992 var arg_definitionsOnly = true; |
14621 var arg_enabled = true; | 15993 var arg_enabled = true; |
14622 var arg_eventTagTypes = buildUnnamed458(); | 15994 var arg_eventTagTypes = buildUnnamed1259(); |
14623 var arg_ids = buildUnnamed459(); | 15995 var arg_ids = buildUnnamed1260(); |
14624 var arg_searchString = "foo"; | 15996 var arg_searchString = "foo"; |
14625 var arg_sortField = "foo"; | 15997 var arg_sortField = "foo"; |
14626 var arg_sortOrder = "foo"; | 15998 var arg_sortOrder = "foo"; |
14627 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15999 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14628 var path = (req.url).path; | 16000 var path = (req.url).path; |
14629 var pathOffset = 0; | 16001 var pathOffset = 0; |
14630 var index; | 16002 var index; |
14631 var subPart; | 16003 var subPart; |
14632 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16004 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14633 pathOffset += 1; | 16005 pathOffset += 1; |
14634 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16006 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14635 pathOffset += 18; | 16007 pathOffset += 18; |
14636 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16008 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14637 pathOffset += 13; | 16009 pathOffset += 13; |
14638 index = path.indexOf("/eventTags", pathOffset); | 16010 index = path.indexOf("/eventTags", pathOffset); |
14639 unittest.expect(index >= 0, unittest.isTrue); | 16011 unittest.expect(index >= 0, unittest.isTrue); |
14640 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16012 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14641 pathOffset = index; | 16013 pathOffset = index; |
14642 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16014 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14643 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); | 16015 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); |
14644 pathOffset += 10; | 16016 pathOffset += 10; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16064 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14693 var obj = new api.EventTag.fromJson(json); | 16065 var obj = new api.EventTag.fromJson(json); |
14694 checkEventTag(obj); | 16066 checkEventTag(obj); |
14695 | 16067 |
14696 var path = (req.url).path; | 16068 var path = (req.url).path; |
14697 var pathOffset = 0; | 16069 var pathOffset = 0; |
14698 var index; | 16070 var index; |
14699 var subPart; | 16071 var subPart; |
14700 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16072 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14701 pathOffset += 1; | 16073 pathOffset += 1; |
14702 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16074 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14703 pathOffset += 18; | 16075 pathOffset += 18; |
14704 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16076 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14705 pathOffset += 13; | 16077 pathOffset += 13; |
14706 index = path.indexOf("/eventTags", pathOffset); | 16078 index = path.indexOf("/eventTags", pathOffset); |
14707 unittest.expect(index >= 0, unittest.isTrue); | 16079 unittest.expect(index >= 0, unittest.isTrue); |
14708 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16080 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14709 pathOffset = index; | 16081 pathOffset = index; |
14710 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16082 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14711 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); | 16083 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); |
14712 pathOffset += 10; | 16084 pathOffset += 10; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14750 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16122 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14751 var obj = new api.EventTag.fromJson(json); | 16123 var obj = new api.EventTag.fromJson(json); |
14752 checkEventTag(obj); | 16124 checkEventTag(obj); |
14753 | 16125 |
14754 var path = (req.url).path; | 16126 var path = (req.url).path; |
14755 var pathOffset = 0; | 16127 var pathOffset = 0; |
14756 var index; | 16128 var index; |
14757 var subPart; | 16129 var subPart; |
14758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16130 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14759 pathOffset += 1; | 16131 pathOffset += 1; |
14760 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16132 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14761 pathOffset += 18; | 16133 pathOffset += 18; |
14762 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16134 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14763 pathOffset += 13; | 16135 pathOffset += 13; |
14764 index = path.indexOf("/eventTags", pathOffset); | 16136 index = path.indexOf("/eventTags", pathOffset); |
14765 unittest.expect(index >= 0, unittest.isTrue); | 16137 unittest.expect(index >= 0, unittest.isTrue); |
14766 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16138 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14767 pathOffset = index; | 16139 pathOffset = index; |
14768 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16140 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14769 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); | 16141 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/eventTags")); |
14770 pathOffset += 10; | 16142 pathOffset += 10; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14810 api.FilesResourceApi res = new api.DfareportingApi(mock).files; | 16182 api.FilesResourceApi res = new api.DfareportingApi(mock).files; |
14811 var arg_reportId = "foo"; | 16183 var arg_reportId = "foo"; |
14812 var arg_fileId = "foo"; | 16184 var arg_fileId = "foo"; |
14813 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16185 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14814 var path = (req.url).path; | 16186 var path = (req.url).path; |
14815 var pathOffset = 0; | 16187 var pathOffset = 0; |
14816 var index; | 16188 var index; |
14817 var subPart; | 16189 var subPart; |
14818 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16190 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14819 pathOffset += 1; | 16191 pathOffset += 1; |
14820 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16192 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14821 pathOffset += 18; | 16193 pathOffset += 18; |
14822 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); | 16194 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("reports/")); |
14823 pathOffset += 8; | 16195 pathOffset += 8; |
14824 index = path.indexOf("/files/", pathOffset); | 16196 index = path.indexOf("/files/", pathOffset); |
14825 unittest.expect(index >= 0, unittest.isTrue); | 16197 unittest.expect(index >= 0, unittest.isTrue); |
14826 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16198 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14827 pathOffset = index; | 16199 pathOffset = index; |
14828 unittest.expect(subPart, unittest.equals("$arg_reportId")); | 16200 unittest.expect(subPart, unittest.equals("$arg_reportId")); |
14829 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/files/")); | 16201 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/files/")); |
14830 pathOffset += 7; | 16202 pathOffset += 7; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14871 var arg_scope = "foo"; | 16243 var arg_scope = "foo"; |
14872 var arg_sortField = "foo"; | 16244 var arg_sortField = "foo"; |
14873 var arg_sortOrder = "foo"; | 16245 var arg_sortOrder = "foo"; |
14874 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16246 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14875 var path = (req.url).path; | 16247 var path = (req.url).path; |
14876 var pathOffset = 0; | 16248 var pathOffset = 0; |
14877 var index; | 16249 var index; |
14878 var subPart; | 16250 var subPart; |
14879 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16251 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14880 pathOffset += 1; | 16252 pathOffset += 1; |
14881 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16253 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14882 pathOffset += 18; | 16254 pathOffset += 18; |
14883 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16255 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14884 pathOffset += 13; | 16256 pathOffset += 13; |
14885 index = path.indexOf("/files", pathOffset); | 16257 index = path.indexOf("/files", pathOffset); |
14886 unittest.expect(index >= 0, unittest.isTrue); | 16258 unittest.expect(index >= 0, unittest.isTrue); |
14887 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16259 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14888 pathOffset = index; | 16260 pathOffset = index; |
14889 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16261 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14890 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/files")); | 16262 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/files")); |
14891 pathOffset += 6; | 16263 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; | 16306 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; |
14935 var arg_profileId = "foo"; | 16307 var arg_profileId = "foo"; |
14936 var arg_id = "foo"; | 16308 var arg_id = "foo"; |
14937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14938 var path = (req.url).path; | 16310 var path = (req.url).path; |
14939 var pathOffset = 0; | 16311 var pathOffset = 0; |
14940 var index; | 16312 var index; |
14941 var subPart; | 16313 var subPart; |
14942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14943 pathOffset += 1; | 16315 pathOffset += 1; |
14944 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16316 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
14945 pathOffset += 18; | 16317 pathOffset += 18; |
14946 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16318 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
14947 pathOffset += 13; | 16319 pathOffset += 13; |
14948 index = path.indexOf("/floodlightActivities/", pathOffset); | 16320 index = path.indexOf("/floodlightActivities/", pathOffset); |
14949 unittest.expect(index >= 0, unittest.isTrue); | 16321 unittest.expect(index >= 0, unittest.isTrue); |
14950 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16322 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
14951 pathOffset = index; | 16323 pathOffset = index; |
14952 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16324 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
14953 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/floodlightActivities/")); | 16325 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/floodlightActivities/")); |
14954 pathOffset += 22; | 16326 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; | 16361 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; |
14990 var arg_profileId = "foo"; | 16362 var arg_profileId = "foo"; |
14991 var arg_floodlightActivityId = "foo"; | 16363 var arg_floodlightActivityId = "foo"; |
14992 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16364 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14993 var path = (req.url).path; | 16365 var path = (req.url).path; |
14994 var pathOffset = 0; | 16366 var pathOffset = 0; |
14995 var index; | 16367 var index; |
14996 var subPart; | 16368 var subPart; |
14997 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14998 pathOffset += 1; | 16370 pathOffset += 1; |
14999 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16371 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15000 pathOffset += 18; | 16372 pathOffset += 18; |
15001 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16373 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15002 pathOffset += 13; | 16374 pathOffset += 13; |
15003 index = path.indexOf("/floodlightActivities/generatetag", pathOffset); | 16375 index = path.indexOf("/floodlightActivities/generatetag", pathOffset); |
15004 unittest.expect(index >= 0, unittest.isTrue); | 16376 unittest.expect(index >= 0, unittest.isTrue); |
15005 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16377 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15006 pathOffset = index; | 16378 pathOffset = index; |
15007 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16379 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15008 unittest.expect(path.substring(pathOffset, pathOffset + 33), unittest.eq
uals("/floodlightActivities/generatetag")); | 16380 unittest.expect(path.substring(pathOffset, pathOffset + 33), unittest.eq
uals("/floodlightActivities/generatetag")); |
15009 pathOffset += 33; | 16381 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; | 16416 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; |
15045 var arg_profileId = "foo"; | 16417 var arg_profileId = "foo"; |
15046 var arg_id = "foo"; | 16418 var arg_id = "foo"; |
15047 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16419 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15048 var path = (req.url).path; | 16420 var path = (req.url).path; |
15049 var pathOffset = 0; | 16421 var pathOffset = 0; |
15050 var index; | 16422 var index; |
15051 var subPart; | 16423 var subPart; |
15052 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15053 pathOffset += 1; | 16425 pathOffset += 1; |
15054 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16426 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15055 pathOffset += 18; | 16427 pathOffset += 18; |
15056 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16428 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15057 pathOffset += 13; | 16429 pathOffset += 13; |
15058 index = path.indexOf("/floodlightActivities/", pathOffset); | 16430 index = path.indexOf("/floodlightActivities/", pathOffset); |
15059 unittest.expect(index >= 0, unittest.isTrue); | 16431 unittest.expect(index >= 0, unittest.isTrue); |
15060 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16432 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15061 pathOffset = index; | 16433 pathOffset = index; |
15062 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16434 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15063 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/floodlightActivities/")); | 16435 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/floodlightActivities/")); |
15064 pathOffset += 22; | 16436 pathOffset += 22; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15104 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16476 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15105 var obj = new api.FloodlightActivity.fromJson(json); | 16477 var obj = new api.FloodlightActivity.fromJson(json); |
15106 checkFloodlightActivity(obj); | 16478 checkFloodlightActivity(obj); |
15107 | 16479 |
15108 var path = (req.url).path; | 16480 var path = (req.url).path; |
15109 var pathOffset = 0; | 16481 var pathOffset = 0; |
15110 var index; | 16482 var index; |
15111 var subPart; | 16483 var subPart; |
15112 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16484 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15113 pathOffset += 1; | 16485 pathOffset += 1; |
15114 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16486 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15115 pathOffset += 18; | 16487 pathOffset += 18; |
15116 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16488 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15117 pathOffset += 13; | 16489 pathOffset += 13; |
15118 index = path.indexOf("/floodlightActivities", pathOffset); | 16490 index = path.indexOf("/floodlightActivities", pathOffset); |
15119 unittest.expect(index >= 0, unittest.isTrue); | 16491 unittest.expect(index >= 0, unittest.isTrue); |
15120 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16492 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15121 pathOffset = index; | 16493 pathOffset = index; |
15122 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16494 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15123 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); | 16495 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); |
15124 pathOffset += 21; | 16496 pathOffset += 21; |
(...skipping 26 matching lines...) Expand all Loading... |
15151 checkFloodlightActivity(response); | 16523 checkFloodlightActivity(response); |
15152 }))); | 16524 }))); |
15153 }); | 16525 }); |
15154 | 16526 |
15155 unittest.test("method--list", () { | 16527 unittest.test("method--list", () { |
15156 | 16528 |
15157 var mock = new HttpServerMock(); | 16529 var mock = new HttpServerMock(); |
15158 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; | 16530 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl
oodlightActivities; |
15159 var arg_profileId = "foo"; | 16531 var arg_profileId = "foo"; |
15160 var arg_advertiserId = "foo"; | 16532 var arg_advertiserId = "foo"; |
15161 var arg_floodlightActivityGroupIds = buildUnnamed460(); | 16533 var arg_floodlightActivityGroupIds = buildUnnamed1261(); |
15162 var arg_floodlightActivityGroupName = "foo"; | 16534 var arg_floodlightActivityGroupName = "foo"; |
15163 var arg_floodlightActivityGroupTagString = "foo"; | 16535 var arg_floodlightActivityGroupTagString = "foo"; |
15164 var arg_floodlightActivityGroupType = "foo"; | 16536 var arg_floodlightActivityGroupType = "foo"; |
15165 var arg_floodlightConfigurationId = "foo"; | 16537 var arg_floodlightConfigurationId = "foo"; |
15166 var arg_ids = buildUnnamed461(); | 16538 var arg_ids = buildUnnamed1262(); |
15167 var arg_maxResults = 42; | 16539 var arg_maxResults = 42; |
15168 var arg_pageToken = "foo"; | 16540 var arg_pageToken = "foo"; |
15169 var arg_searchString = "foo"; | 16541 var arg_searchString = "foo"; |
15170 var arg_sortField = "foo"; | 16542 var arg_sortField = "foo"; |
15171 var arg_sortOrder = "foo"; | 16543 var arg_sortOrder = "foo"; |
15172 var arg_tagString = "foo"; | 16544 var arg_tagString = "foo"; |
15173 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16545 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15174 var path = (req.url).path; | 16546 var path = (req.url).path; |
15175 var pathOffset = 0; | 16547 var pathOffset = 0; |
15176 var index; | 16548 var index; |
15177 var subPart; | 16549 var subPart; |
15178 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16550 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15179 pathOffset += 1; | 16551 pathOffset += 1; |
15180 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16552 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15181 pathOffset += 18; | 16553 pathOffset += 18; |
15182 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16554 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15183 pathOffset += 13; | 16555 pathOffset += 13; |
15184 index = path.indexOf("/floodlightActivities", pathOffset); | 16556 index = path.indexOf("/floodlightActivities", pathOffset); |
15185 unittest.expect(index >= 0, unittest.isTrue); | 16557 unittest.expect(index >= 0, unittest.isTrue); |
15186 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16558 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15187 pathOffset = index; | 16559 pathOffset = index; |
15188 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16560 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15189 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); | 16561 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); |
15190 pathOffset += 21; | 16562 pathOffset += 21; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15241 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16613 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15242 var obj = new api.FloodlightActivity.fromJson(json); | 16614 var obj = new api.FloodlightActivity.fromJson(json); |
15243 checkFloodlightActivity(obj); | 16615 checkFloodlightActivity(obj); |
15244 | 16616 |
15245 var path = (req.url).path; | 16617 var path = (req.url).path; |
15246 var pathOffset = 0; | 16618 var pathOffset = 0; |
15247 var index; | 16619 var index; |
15248 var subPart; | 16620 var subPart; |
15249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16621 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15250 pathOffset += 1; | 16622 pathOffset += 1; |
15251 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16623 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15252 pathOffset += 18; | 16624 pathOffset += 18; |
15253 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16625 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15254 pathOffset += 13; | 16626 pathOffset += 13; |
15255 index = path.indexOf("/floodlightActivities", pathOffset); | 16627 index = path.indexOf("/floodlightActivities", pathOffset); |
15256 unittest.expect(index >= 0, unittest.isTrue); | 16628 unittest.expect(index >= 0, unittest.isTrue); |
15257 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16629 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15258 pathOffset = index; | 16630 pathOffset = index; |
15259 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16631 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15260 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); | 16632 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); |
15261 pathOffset += 21; | 16633 pathOffset += 21; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15299 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16671 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15300 var obj = new api.FloodlightActivity.fromJson(json); | 16672 var obj = new api.FloodlightActivity.fromJson(json); |
15301 checkFloodlightActivity(obj); | 16673 checkFloodlightActivity(obj); |
15302 | 16674 |
15303 var path = (req.url).path; | 16675 var path = (req.url).path; |
15304 var pathOffset = 0; | 16676 var pathOffset = 0; |
15305 var index; | 16677 var index; |
15306 var subPart; | 16678 var subPart; |
15307 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16679 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15308 pathOffset += 1; | 16680 pathOffset += 1; |
15309 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16681 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15310 pathOffset += 18; | 16682 pathOffset += 18; |
15311 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16683 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15312 pathOffset += 13; | 16684 pathOffset += 13; |
15313 index = path.indexOf("/floodlightActivities", pathOffset); | 16685 index = path.indexOf("/floodlightActivities", pathOffset); |
15314 unittest.expect(index >= 0, unittest.isTrue); | 16686 unittest.expect(index >= 0, unittest.isTrue); |
15315 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16687 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15316 pathOffset = index; | 16688 pathOffset = index; |
15317 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16689 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15318 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); | 16690 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/floodlightActivities")); |
15319 pathOffset += 21; | 16691 pathOffset += 21; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15357 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; | 16729 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; |
15358 var arg_profileId = "foo"; | 16730 var arg_profileId = "foo"; |
15359 var arg_id = "foo"; | 16731 var arg_id = "foo"; |
15360 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16732 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15361 var path = (req.url).path; | 16733 var path = (req.url).path; |
15362 var pathOffset = 0; | 16734 var pathOffset = 0; |
15363 var index; | 16735 var index; |
15364 var subPart; | 16736 var subPart; |
15365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16737 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15366 pathOffset += 1; | 16738 pathOffset += 1; |
15367 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16739 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15368 pathOffset += 18; | 16740 pathOffset += 18; |
15369 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16741 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15370 pathOffset += 13; | 16742 pathOffset += 13; |
15371 index = path.indexOf("/floodlightActivityGroups/", pathOffset); | 16743 index = path.indexOf("/floodlightActivityGroups/", pathOffset); |
15372 unittest.expect(index >= 0, unittest.isTrue); | 16744 unittest.expect(index >= 0, unittest.isTrue); |
15373 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16745 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15374 pathOffset = index; | 16746 pathOffset = index; |
15375 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16747 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15376 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightActivityGroups/")); | 16748 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightActivityGroups/")); |
15377 pathOffset += 26; | 16749 pathOffset += 26; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15412 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; | 16784 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; |
15413 var arg_profileId = "foo"; | 16785 var arg_profileId = "foo"; |
15414 var arg_id = "foo"; | 16786 var arg_id = "foo"; |
15415 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16787 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15416 var path = (req.url).path; | 16788 var path = (req.url).path; |
15417 var pathOffset = 0; | 16789 var pathOffset = 0; |
15418 var index; | 16790 var index; |
15419 var subPart; | 16791 var subPart; |
15420 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16792 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15421 pathOffset += 1; | 16793 pathOffset += 1; |
15422 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16794 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15423 pathOffset += 18; | 16795 pathOffset += 18; |
15424 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16796 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15425 pathOffset += 13; | 16797 pathOffset += 13; |
15426 index = path.indexOf("/floodlightActivityGroups/", pathOffset); | 16798 index = path.indexOf("/floodlightActivityGroups/", pathOffset); |
15427 unittest.expect(index >= 0, unittest.isTrue); | 16799 unittest.expect(index >= 0, unittest.isTrue); |
15428 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16800 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15429 pathOffset = index; | 16801 pathOffset = index; |
15430 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16802 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15431 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightActivityGroups/")); | 16803 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightActivityGroups/")); |
15432 pathOffset += 26; | 16804 pathOffset += 26; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15472 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16844 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15473 var obj = new api.FloodlightActivityGroup.fromJson(json); | 16845 var obj = new api.FloodlightActivityGroup.fromJson(json); |
15474 checkFloodlightActivityGroup(obj); | 16846 checkFloodlightActivityGroup(obj); |
15475 | 16847 |
15476 var path = (req.url).path; | 16848 var path = (req.url).path; |
15477 var pathOffset = 0; | 16849 var pathOffset = 0; |
15478 var index; | 16850 var index; |
15479 var subPart; | 16851 var subPart; |
15480 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16852 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15481 pathOffset += 1; | 16853 pathOffset += 1; |
15482 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16854 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15483 pathOffset += 18; | 16855 pathOffset += 18; |
15484 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16856 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15485 pathOffset += 13; | 16857 pathOffset += 13; |
15486 index = path.indexOf("/floodlightActivityGroups", pathOffset); | 16858 index = path.indexOf("/floodlightActivityGroups", pathOffset); |
15487 unittest.expect(index >= 0, unittest.isTrue); | 16859 unittest.expect(index >= 0, unittest.isTrue); |
15488 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16860 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15489 pathOffset = index; | 16861 pathOffset = index; |
15490 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16862 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15491 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); | 16863 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); |
15492 pathOffset += 25; | 16864 pathOffset += 25; |
(...skipping 27 matching lines...) Expand all Loading... |
15520 }))); | 16892 }))); |
15521 }); | 16893 }); |
15522 | 16894 |
15523 unittest.test("method--list", () { | 16895 unittest.test("method--list", () { |
15524 | 16896 |
15525 var mock = new HttpServerMock(); | 16897 var mock = new HttpServerMock(); |
15526 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; | 16898 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock
).floodlightActivityGroups; |
15527 var arg_profileId = "foo"; | 16899 var arg_profileId = "foo"; |
15528 var arg_advertiserId = "foo"; | 16900 var arg_advertiserId = "foo"; |
15529 var arg_floodlightConfigurationId = "foo"; | 16901 var arg_floodlightConfigurationId = "foo"; |
15530 var arg_ids = buildUnnamed462(); | 16902 var arg_ids = buildUnnamed1263(); |
15531 var arg_maxResults = 42; | 16903 var arg_maxResults = 42; |
15532 var arg_pageToken = "foo"; | 16904 var arg_pageToken = "foo"; |
15533 var arg_searchString = "foo"; | 16905 var arg_searchString = "foo"; |
15534 var arg_sortField = "foo"; | 16906 var arg_sortField = "foo"; |
15535 var arg_sortOrder = "foo"; | 16907 var arg_sortOrder = "foo"; |
15536 var arg_type = "foo"; | 16908 var arg_type = "foo"; |
15537 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16909 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15538 var path = (req.url).path; | 16910 var path = (req.url).path; |
15539 var pathOffset = 0; | 16911 var pathOffset = 0; |
15540 var index; | 16912 var index; |
15541 var subPart; | 16913 var subPart; |
15542 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15543 pathOffset += 1; | 16915 pathOffset += 1; |
15544 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16916 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15545 pathOffset += 18; | 16917 pathOffset += 18; |
15546 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16918 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15547 pathOffset += 13; | 16919 pathOffset += 13; |
15548 index = path.indexOf("/floodlightActivityGroups", pathOffset); | 16920 index = path.indexOf("/floodlightActivityGroups", pathOffset); |
15549 unittest.expect(index >= 0, unittest.isTrue); | 16921 unittest.expect(index >= 0, unittest.isTrue); |
15550 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16922 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15551 pathOffset = index; | 16923 pathOffset = index; |
15552 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16924 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15553 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); | 16925 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); |
15554 pathOffset += 25; | 16926 pathOffset += 25; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15601 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16973 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15602 var obj = new api.FloodlightActivityGroup.fromJson(json); | 16974 var obj = new api.FloodlightActivityGroup.fromJson(json); |
15603 checkFloodlightActivityGroup(obj); | 16975 checkFloodlightActivityGroup(obj); |
15604 | 16976 |
15605 var path = (req.url).path; | 16977 var path = (req.url).path; |
15606 var pathOffset = 0; | 16978 var pathOffset = 0; |
15607 var index; | 16979 var index; |
15608 var subPart; | 16980 var subPart; |
15609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16981 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15610 pathOffset += 1; | 16982 pathOffset += 1; |
15611 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 16983 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15612 pathOffset += 18; | 16984 pathOffset += 18; |
15613 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 16985 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15614 pathOffset += 13; | 16986 pathOffset += 13; |
15615 index = path.indexOf("/floodlightActivityGroups", pathOffset); | 16987 index = path.indexOf("/floodlightActivityGroups", pathOffset); |
15616 unittest.expect(index >= 0, unittest.isTrue); | 16988 unittest.expect(index >= 0, unittest.isTrue); |
15617 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 16989 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15618 pathOffset = index; | 16990 pathOffset = index; |
15619 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 16991 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15620 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); | 16992 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); |
15621 pathOffset += 25; | 16993 pathOffset += 25; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15659 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17031 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15660 var obj = new api.FloodlightActivityGroup.fromJson(json); | 17032 var obj = new api.FloodlightActivityGroup.fromJson(json); |
15661 checkFloodlightActivityGroup(obj); | 17033 checkFloodlightActivityGroup(obj); |
15662 | 17034 |
15663 var path = (req.url).path; | 17035 var path = (req.url).path; |
15664 var pathOffset = 0; | 17036 var pathOffset = 0; |
15665 var index; | 17037 var index; |
15666 var subPart; | 17038 var subPart; |
15667 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17039 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15668 pathOffset += 1; | 17040 pathOffset += 1; |
15669 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17041 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15670 pathOffset += 18; | 17042 pathOffset += 18; |
15671 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17043 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15672 pathOffset += 13; | 17044 pathOffset += 13; |
15673 index = path.indexOf("/floodlightActivityGroups", pathOffset); | 17045 index = path.indexOf("/floodlightActivityGroups", pathOffset); |
15674 unittest.expect(index >= 0, unittest.isTrue); | 17046 unittest.expect(index >= 0, unittest.isTrue); |
15675 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17047 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15676 pathOffset = index; | 17048 pathOffset = index; |
15677 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17049 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15678 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); | 17050 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightActivityGroups")); |
15679 pathOffset += 25; | 17051 pathOffset += 25; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15717 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock
).floodlightConfigurations; | 17089 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock
).floodlightConfigurations; |
15718 var arg_profileId = "foo"; | 17090 var arg_profileId = "foo"; |
15719 var arg_id = "foo"; | 17091 var arg_id = "foo"; |
15720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17092 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15721 var path = (req.url).path; | 17093 var path = (req.url).path; |
15722 var pathOffset = 0; | 17094 var pathOffset = 0; |
15723 var index; | 17095 var index; |
15724 var subPart; | 17096 var subPart; |
15725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17097 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15726 pathOffset += 1; | 17098 pathOffset += 1; |
15727 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17099 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15728 pathOffset += 18; | 17100 pathOffset += 18; |
15729 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17101 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15730 pathOffset += 13; | 17102 pathOffset += 13; |
15731 index = path.indexOf("/floodlightConfigurations/", pathOffset); | 17103 index = path.indexOf("/floodlightConfigurations/", pathOffset); |
15732 unittest.expect(index >= 0, unittest.isTrue); | 17104 unittest.expect(index >= 0, unittest.isTrue); |
15733 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17105 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15734 pathOffset = index; | 17106 pathOffset = index; |
15735 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17107 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15736 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightConfigurations/")); | 17108 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/floodlightConfigurations/")); |
15737 pathOffset += 26; | 17109 pathOffset += 26; |
(...skipping 28 matching lines...) Expand all Loading... |
15766 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightC
onfiguration response) { | 17138 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightC
onfiguration response) { |
15767 checkFloodlightConfiguration(response); | 17139 checkFloodlightConfiguration(response); |
15768 }))); | 17140 }))); |
15769 }); | 17141 }); |
15770 | 17142 |
15771 unittest.test("method--list", () { | 17143 unittest.test("method--list", () { |
15772 | 17144 |
15773 var mock = new HttpServerMock(); | 17145 var mock = new HttpServerMock(); |
15774 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock
).floodlightConfigurations; | 17146 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock
).floodlightConfigurations; |
15775 var arg_profileId = "foo"; | 17147 var arg_profileId = "foo"; |
15776 var arg_ids = buildUnnamed463(); | 17148 var arg_ids = buildUnnamed1264(); |
15777 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17149 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15778 var path = (req.url).path; | 17150 var path = (req.url).path; |
15779 var pathOffset = 0; | 17151 var pathOffset = 0; |
15780 var index; | 17152 var index; |
15781 var subPart; | 17153 var subPart; |
15782 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17154 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15783 pathOffset += 1; | 17155 pathOffset += 1; |
15784 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17156 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15785 pathOffset += 18; | 17157 pathOffset += 18; |
15786 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17158 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15787 pathOffset += 13; | 17159 pathOffset += 13; |
15788 index = path.indexOf("/floodlightConfigurations", pathOffset); | 17160 index = path.indexOf("/floodlightConfigurations", pathOffset); |
15789 unittest.expect(index >= 0, unittest.isTrue); | 17161 unittest.expect(index >= 0, unittest.isTrue); |
15790 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17162 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15791 pathOffset = index; | 17163 pathOffset = index; |
15792 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17164 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15793 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); | 17165 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); |
15794 pathOffset += 25; | 17166 pathOffset += 25; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15833 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17205 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15834 var obj = new api.FloodlightConfiguration.fromJson(json); | 17206 var obj = new api.FloodlightConfiguration.fromJson(json); |
15835 checkFloodlightConfiguration(obj); | 17207 checkFloodlightConfiguration(obj); |
15836 | 17208 |
15837 var path = (req.url).path; | 17209 var path = (req.url).path; |
15838 var pathOffset = 0; | 17210 var pathOffset = 0; |
15839 var index; | 17211 var index; |
15840 var subPart; | 17212 var subPart; |
15841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17213 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15842 pathOffset += 1; | 17214 pathOffset += 1; |
15843 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17215 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15844 pathOffset += 18; | 17216 pathOffset += 18; |
15845 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17217 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15846 pathOffset += 13; | 17218 pathOffset += 13; |
15847 index = path.indexOf("/floodlightConfigurations", pathOffset); | 17219 index = path.indexOf("/floodlightConfigurations", pathOffset); |
15848 unittest.expect(index >= 0, unittest.isTrue); | 17220 unittest.expect(index >= 0, unittest.isTrue); |
15849 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17221 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15850 pathOffset = index; | 17222 pathOffset = index; |
15851 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17223 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15852 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); | 17224 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); |
15853 pathOffset += 25; | 17225 pathOffset += 25; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15891 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17263 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15892 var obj = new api.FloodlightConfiguration.fromJson(json); | 17264 var obj = new api.FloodlightConfiguration.fromJson(json); |
15893 checkFloodlightConfiguration(obj); | 17265 checkFloodlightConfiguration(obj); |
15894 | 17266 |
15895 var path = (req.url).path; | 17267 var path = (req.url).path; |
15896 var pathOffset = 0; | 17268 var pathOffset = 0; |
15897 var index; | 17269 var index; |
15898 var subPart; | 17270 var subPart; |
15899 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17271 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15900 pathOffset += 1; | 17272 pathOffset += 1; |
15901 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17273 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15902 pathOffset += 18; | 17274 pathOffset += 18; |
15903 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17275 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15904 pathOffset += 13; | 17276 pathOffset += 13; |
15905 index = path.indexOf("/floodlightConfigurations", pathOffset); | 17277 index = path.indexOf("/floodlightConfigurations", pathOffset); |
15906 unittest.expect(index >= 0, unittest.isTrue); | 17278 unittest.expect(index >= 0, unittest.isTrue); |
15907 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17279 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15908 pathOffset = index; | 17280 pathOffset = index; |
15909 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17281 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15910 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); | 17282 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/floodlightConfigurations")); |
15911 pathOffset += 25; | 17283 pathOffset += 25; |
(...skipping 23 matching lines...) Expand all Loading... |
15935 return new async.Future.value(stringResponse(200, h, resp)); | 17307 return new async.Future.value(stringResponse(200, h, resp)); |
15936 }), true); | 17308 }), true); |
15937 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo
odlightConfiguration response) { | 17309 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo
odlightConfiguration response) { |
15938 checkFloodlightConfiguration(response); | 17310 checkFloodlightConfiguration(response); |
15939 }))); | 17311 }))); |
15940 }); | 17312 }); |
15941 | 17313 |
15942 }); | 17314 }); |
15943 | 17315 |
15944 | 17316 |
15945 unittest.group("resource-LandingPagesResourceApi", () { | 17317 unittest.group("resource-InventoryItemsResourceApi", () { |
15946 unittest.test("method--delete", () { | 17318 unittest.test("method--get", () { |
15947 | 17319 |
15948 var mock = new HttpServerMock(); | 17320 var mock = new HttpServerMock(); |
15949 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag
es; | 17321 api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventor
yItems; |
15950 var arg_profileId = "foo"; | 17322 var arg_profileId = "foo"; |
15951 var arg_campaignId = "foo"; | 17323 var arg_projectId = "foo"; |
15952 var arg_id = "foo"; | 17324 var arg_id = "foo"; |
15953 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17325 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15954 var path = (req.url).path; | 17326 var path = (req.url).path; |
15955 var pathOffset = 0; | 17327 var pathOffset = 0; |
15956 var index; | 17328 var index; |
15957 var subPart; | 17329 var subPart; |
15958 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17330 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15959 pathOffset += 1; | 17331 pathOffset += 1; |
15960 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17332 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 17333 pathOffset += 18; |
| 17334 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17335 pathOffset += 13; |
| 17336 index = path.indexOf("/projects/", pathOffset); |
| 17337 unittest.expect(index >= 0, unittest.isTrue); |
| 17338 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17339 pathOffset = index; |
| 17340 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17341 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 17342 pathOffset += 10; |
| 17343 index = path.indexOf("/inventoryItems/", pathOffset); |
| 17344 unittest.expect(index >= 0, unittest.isTrue); |
| 17345 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17346 pathOffset = index; |
| 17347 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 17348 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/inventoryItems/")); |
| 17349 pathOffset += 16; |
| 17350 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 17351 pathOffset = path.length; |
| 17352 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 17353 |
| 17354 var query = (req.url).query; |
| 17355 var queryOffset = 0; |
| 17356 var queryMap = {}; |
| 17357 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17358 parseBool(n) { |
| 17359 if (n == "true") return true; |
| 17360 if (n == "false") return false; |
| 17361 if (n == null) return null; |
| 17362 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17363 } |
| 17364 if (query.length > 0) { |
| 17365 for (var part in query.split("&")) { |
| 17366 var keyvalue = part.split("="); |
| 17367 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17368 } |
| 17369 } |
| 17370 |
| 17371 |
| 17372 var h = { |
| 17373 "content-type" : "application/json; charset=utf-8", |
| 17374 }; |
| 17375 var resp = convert.JSON.encode(buildInventoryItem()); |
| 17376 return new async.Future.value(stringResponse(200, h, resp)); |
| 17377 }), true); |
| 17378 res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((
api.InventoryItem response) { |
| 17379 checkInventoryItem(response); |
| 17380 }))); |
| 17381 }); |
| 17382 |
| 17383 unittest.test("method--list", () { |
| 17384 |
| 17385 var mock = new HttpServerMock(); |
| 17386 api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventor
yItems; |
| 17387 var arg_profileId = "foo"; |
| 17388 var arg_projectId = "foo"; |
| 17389 var arg_ids = buildUnnamed1265(); |
| 17390 var arg_inPlan = true; |
| 17391 var arg_maxResults = 42; |
| 17392 var arg_orderId = buildUnnamed1266(); |
| 17393 var arg_pageToken = "foo"; |
| 17394 var arg_siteId = buildUnnamed1267(); |
| 17395 var arg_sortField = "foo"; |
| 17396 var arg_sortOrder = "foo"; |
| 17397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17398 var path = (req.url).path; |
| 17399 var pathOffset = 0; |
| 17400 var index; |
| 17401 var subPart; |
| 17402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17403 pathOffset += 1; |
| 17404 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 17405 pathOffset += 18; |
| 17406 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 17407 pathOffset += 13; |
| 17408 index = path.indexOf("/projects/", pathOffset); |
| 17409 unittest.expect(index >= 0, unittest.isTrue); |
| 17410 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17411 pathOffset = index; |
| 17412 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 17413 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 17414 pathOffset += 10; |
| 17415 index = path.indexOf("/inventoryItems", pathOffset); |
| 17416 unittest.expect(index >= 0, unittest.isTrue); |
| 17417 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 17418 pathOffset = index; |
| 17419 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 17420 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/inventoryItems")); |
| 17421 pathOffset += 15; |
| 17422 |
| 17423 var query = (req.url).query; |
| 17424 var queryOffset = 0; |
| 17425 var queryMap = {}; |
| 17426 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17427 parseBool(n) { |
| 17428 if (n == "true") return true; |
| 17429 if (n == "false") return false; |
| 17430 if (n == null) return null; |
| 17431 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17432 } |
| 17433 if (query.length > 0) { |
| 17434 for (var part in query.split("&")) { |
| 17435 var keyvalue = part.split("="); |
| 17436 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17437 } |
| 17438 } |
| 17439 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 17440 unittest.expect(queryMap["inPlan"].first, unittest.equals("$arg_inPlan")
); |
| 17441 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 17442 unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); |
| 17443 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 17444 unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); |
| 17445 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 17446 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 17447 |
| 17448 |
| 17449 var h = { |
| 17450 "content-type" : "application/json; charset=utf-8", |
| 17451 }; |
| 17452 var resp = convert.JSON.encode(buildInventoryItemsListResponse()); |
| 17453 return new async.Future.value(stringResponse(200, h, resp)); |
| 17454 }), true); |
| 17455 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) { |
| 17456 checkInventoryItemsListResponse(response); |
| 17457 }))); |
| 17458 }); |
| 17459 |
| 17460 }); |
| 17461 |
| 17462 |
| 17463 unittest.group("resource-LandingPagesResourceApi", () { |
| 17464 unittest.test("method--delete", () { |
| 17465 |
| 17466 var mock = new HttpServerMock(); |
| 17467 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag
es; |
| 17468 var arg_profileId = "foo"; |
| 17469 var arg_campaignId = "foo"; |
| 17470 var arg_id = "foo"; |
| 17471 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17472 var path = (req.url).path; |
| 17473 var pathOffset = 0; |
| 17474 var index; |
| 17475 var subPart; |
| 17476 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17477 pathOffset += 1; |
| 17478 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
15961 pathOffset += 18; | 17479 pathOffset += 18; |
15962 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17480 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
15963 pathOffset += 13; | 17481 pathOffset += 13; |
15964 index = path.indexOf("/campaigns/", pathOffset); | 17482 index = path.indexOf("/campaigns/", pathOffset); |
15965 unittest.expect(index >= 0, unittest.isTrue); | 17483 unittest.expect(index >= 0, unittest.isTrue); |
15966 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17484 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
15967 pathOffset = index; | 17485 pathOffset = index; |
15968 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17486 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
15969 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17487 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
15970 pathOffset += 11; | 17488 pathOffset += 11; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16013 var arg_profileId = "foo"; | 17531 var arg_profileId = "foo"; |
16014 var arg_campaignId = "foo"; | 17532 var arg_campaignId = "foo"; |
16015 var arg_id = "foo"; | 17533 var arg_id = "foo"; |
16016 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16017 var path = (req.url).path; | 17535 var path = (req.url).path; |
16018 var pathOffset = 0; | 17536 var pathOffset = 0; |
16019 var index; | 17537 var index; |
16020 var subPart; | 17538 var subPart; |
16021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17539 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16022 pathOffset += 1; | 17540 pathOffset += 1; |
16023 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17541 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16024 pathOffset += 18; | 17542 pathOffset += 18; |
16025 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17543 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16026 pathOffset += 13; | 17544 pathOffset += 13; |
16027 index = path.indexOf("/campaigns/", pathOffset); | 17545 index = path.indexOf("/campaigns/", pathOffset); |
16028 unittest.expect(index >= 0, unittest.isTrue); | 17546 unittest.expect(index >= 0, unittest.isTrue); |
16029 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17547 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16030 pathOffset = index; | 17548 pathOffset = index; |
16031 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17549 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16032 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17550 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
16033 pathOffset += 11; | 17551 pathOffset += 11; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16081 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17599 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16082 var obj = new api.LandingPage.fromJson(json); | 17600 var obj = new api.LandingPage.fromJson(json); |
16083 checkLandingPage(obj); | 17601 checkLandingPage(obj); |
16084 | 17602 |
16085 var path = (req.url).path; | 17603 var path = (req.url).path; |
16086 var pathOffset = 0; | 17604 var pathOffset = 0; |
16087 var index; | 17605 var index; |
16088 var subPart; | 17606 var subPart; |
16089 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17607 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16090 pathOffset += 1; | 17608 pathOffset += 1; |
16091 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17609 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16092 pathOffset += 18; | 17610 pathOffset += 18; |
16093 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17611 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16094 pathOffset += 13; | 17612 pathOffset += 13; |
16095 index = path.indexOf("/campaigns/", pathOffset); | 17613 index = path.indexOf("/campaigns/", pathOffset); |
16096 unittest.expect(index >= 0, unittest.isTrue); | 17614 unittest.expect(index >= 0, unittest.isTrue); |
16097 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17615 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16098 pathOffset = index; | 17616 pathOffset = index; |
16099 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17617 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16100 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17618 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
16101 pathOffset += 11; | 17619 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; | 17660 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag
es; |
16143 var arg_profileId = "foo"; | 17661 var arg_profileId = "foo"; |
16144 var arg_campaignId = "foo"; | 17662 var arg_campaignId = "foo"; |
16145 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17663 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16146 var path = (req.url).path; | 17664 var path = (req.url).path; |
16147 var pathOffset = 0; | 17665 var pathOffset = 0; |
16148 var index; | 17666 var index; |
16149 var subPart; | 17667 var subPart; |
16150 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17668 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16151 pathOffset += 1; | 17669 pathOffset += 1; |
16152 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17670 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16153 pathOffset += 18; | 17671 pathOffset += 18; |
16154 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17672 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16155 pathOffset += 13; | 17673 pathOffset += 13; |
16156 index = path.indexOf("/campaigns/", pathOffset); | 17674 index = path.indexOf("/campaigns/", pathOffset); |
16157 unittest.expect(index >= 0, unittest.isTrue); | 17675 unittest.expect(index >= 0, unittest.isTrue); |
16158 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17676 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16159 pathOffset = index; | 17677 pathOffset = index; |
16160 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17678 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16161 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17679 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
16162 pathOffset += 11; | 17680 pathOffset += 11; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16208 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17726 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16209 var obj = new api.LandingPage.fromJson(json); | 17727 var obj = new api.LandingPage.fromJson(json); |
16210 checkLandingPage(obj); | 17728 checkLandingPage(obj); |
16211 | 17729 |
16212 var path = (req.url).path; | 17730 var path = (req.url).path; |
16213 var pathOffset = 0; | 17731 var pathOffset = 0; |
16214 var index; | 17732 var index; |
16215 var subPart; | 17733 var subPart; |
16216 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17734 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16217 pathOffset += 1; | 17735 pathOffset += 1; |
16218 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17736 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16219 pathOffset += 18; | 17737 pathOffset += 18; |
16220 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17738 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16221 pathOffset += 13; | 17739 pathOffset += 13; |
16222 index = path.indexOf("/campaigns/", pathOffset); | 17740 index = path.indexOf("/campaigns/", pathOffset); |
16223 unittest.expect(index >= 0, unittest.isTrue); | 17741 unittest.expect(index >= 0, unittest.isTrue); |
16224 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17742 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16225 pathOffset = index; | 17743 pathOffset = index; |
16226 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17744 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16227 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17745 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
16228 pathOffset += 11; | 17746 pathOffset += 11; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17792 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16275 var obj = new api.LandingPage.fromJson(json); | 17793 var obj = new api.LandingPage.fromJson(json); |
16276 checkLandingPage(obj); | 17794 checkLandingPage(obj); |
16277 | 17795 |
16278 var path = (req.url).path; | 17796 var path = (req.url).path; |
16279 var pathOffset = 0; | 17797 var pathOffset = 0; |
16280 var index; | 17798 var index; |
16281 var subPart; | 17799 var subPart; |
16282 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17800 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16283 pathOffset += 1; | 17801 pathOffset += 1; |
16284 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17802 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16285 pathOffset += 18; | 17803 pathOffset += 18; |
16286 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17804 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16287 pathOffset += 13; | 17805 pathOffset += 13; |
16288 index = path.indexOf("/campaigns/", pathOffset); | 17806 index = path.indexOf("/campaigns/", pathOffset); |
16289 unittest.expect(index >= 0, unittest.isTrue); | 17807 unittest.expect(index >= 0, unittest.isTrue); |
16290 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17808 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16291 pathOffset = index; | 17809 pathOffset = index; |
16292 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17810 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16293 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); | 17811 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/campaigns/")); |
16294 pathOffset += 11; | 17812 pathOffset += 11; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16338 var mock = new HttpServerMock(); | 17856 var mock = new HttpServerMock(); |
16339 api.MetrosResourceApi res = new api.DfareportingApi(mock).metros; | 17857 api.MetrosResourceApi res = new api.DfareportingApi(mock).metros; |
16340 var arg_profileId = "foo"; | 17858 var arg_profileId = "foo"; |
16341 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17859 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16342 var path = (req.url).path; | 17860 var path = (req.url).path; |
16343 var pathOffset = 0; | 17861 var pathOffset = 0; |
16344 var index; | 17862 var index; |
16345 var subPart; | 17863 var subPart; |
16346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17864 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16347 pathOffset += 1; | 17865 pathOffset += 1; |
16348 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17866 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16349 pathOffset += 18; | 17867 pathOffset += 18; |
16350 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17868 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16351 pathOffset += 13; | 17869 pathOffset += 13; |
16352 index = path.indexOf("/metros", pathOffset); | 17870 index = path.indexOf("/metros", pathOffset); |
16353 unittest.expect(index >= 0, unittest.isTrue); | 17871 unittest.expect(index >= 0, unittest.isTrue); |
16354 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17872 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16355 pathOffset = index; | 17873 pathOffset = index; |
16356 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17874 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16357 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/metros")); | 17875 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/metros")); |
16358 pathOffset += 7; | 17876 pathOffset += 7; |
(...skipping 24 matching lines...) Expand all Loading... |
16383 }), true); | 17901 }), true); |
16384 res.list(arg_profileId).then(unittest.expectAsync(((api.MetrosListResponse
response) { | 17902 res.list(arg_profileId).then(unittest.expectAsync(((api.MetrosListResponse
response) { |
16385 checkMetrosListResponse(response); | 17903 checkMetrosListResponse(response); |
16386 }))); | 17904 }))); |
16387 }); | 17905 }); |
16388 | 17906 |
16389 }); | 17907 }); |
16390 | 17908 |
16391 | 17909 |
16392 unittest.group("resource-MobileCarriersResourceApi", () { | 17910 unittest.group("resource-MobileCarriersResourceApi", () { |
16393 unittest.test("method--list", () { | 17911 unittest.test("method--get", () { |
16394 | 17912 |
16395 var mock = new HttpServerMock(); | 17913 var mock = new HttpServerMock(); |
16396 api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCa
rriers; | 17914 api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCa
rriers; |
16397 var arg_profileId = "foo"; | 17915 var arg_profileId = "foo"; |
| 17916 var arg_id = "foo"; |
16398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17917 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16399 var path = (req.url).path; | 17918 var path = (req.url).path; |
16400 var pathOffset = 0; | 17919 var pathOffset = 0; |
16401 var index; | 17920 var index; |
16402 var subPart; | 17921 var subPart; |
16403 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17922 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16404 pathOffset += 1; | 17923 pathOffset += 1; |
16405 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17924 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16406 pathOffset += 18; | 17925 pathOffset += 18; |
16407 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17926 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16408 pathOffset += 13; | 17927 pathOffset += 13; |
16409 index = path.indexOf("/mobileCarriers", pathOffset); | 17928 index = path.indexOf("/mobileCarriers/", pathOffset); |
16410 unittest.expect(index >= 0, unittest.isTrue); | 17929 unittest.expect(index >= 0, unittest.isTrue); |
16411 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17930 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16412 pathOffset = index; | 17931 pathOffset = index; |
16413 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17932 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16414 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/mobileCarriers")); | 17933 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/mobileCarriers/")); |
16415 pathOffset += 15; | 17934 pathOffset += 16; |
| 17935 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 17936 pathOffset = path.length; |
| 17937 unittest.expect(subPart, unittest.equals("$arg_id")); |
16416 | 17938 |
16417 var query = (req.url).query; | 17939 var query = (req.url).query; |
16418 var queryOffset = 0; | 17940 var queryOffset = 0; |
16419 var queryMap = {}; | 17941 var queryMap = {}; |
16420 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17942 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16421 parseBool(n) { | 17943 parseBool(n) { |
16422 if (n == "true") return true; | 17944 if (n == "true") return true; |
16423 if (n == "false") return false; | 17945 if (n == "false") return false; |
16424 if (n == null) return null; | 17946 if (n == null) return null; |
16425 throw new core.ArgumentError("Invalid boolean: $n"); | 17947 throw new core.ArgumentError("Invalid boolean: $n"); |
16426 } | 17948 } |
16427 if (query.length > 0) { | 17949 if (query.length > 0) { |
16428 for (var part in query.split("&")) { | 17950 for (var part in query.split("&")) { |
16429 var keyvalue = part.split("="); | 17951 var keyvalue = part.split("="); |
16430 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17952 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16431 } | 17953 } |
16432 } | 17954 } |
16433 | 17955 |
16434 | 17956 |
16435 var h = { | 17957 var h = { |
16436 "content-type" : "application/json; charset=utf-8", | 17958 "content-type" : "application/json; charset=utf-8", |
16437 }; | 17959 }; |
16438 var resp = convert.JSON.encode(buildMobileCarriersListResponse()); | 17960 var resp = convert.JSON.encode(buildMobileCarrier()); |
16439 return new async.Future.value(stringResponse(200, h, resp)); | 17961 return new async.Future.value(stringResponse(200, h, resp)); |
16440 }), true); | 17962 }), true); |
16441 res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersList
Response response) { | 17963 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.MobileCarri
er response) { |
16442 checkMobileCarriersListResponse(response); | 17964 checkMobileCarrier(response); |
16443 }))); | 17965 }))); |
16444 }); | 17966 }); |
16445 | 17967 |
16446 }); | |
16447 | |
16448 | |
16449 unittest.group("resource-OperatingSystemVersionsResourceApi", () { | |
16450 unittest.test("method--list", () { | 17968 unittest.test("method--list", () { |
16451 | 17969 |
16452 var mock = new HttpServerMock(); | 17970 var mock = new HttpServerMock(); |
16453 api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock)
.operatingSystemVersions; | 17971 api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCa
rriers; |
16454 var arg_profileId = "foo"; | 17972 var arg_profileId = "foo"; |
16455 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17973 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16456 var path = (req.url).path; | 17974 var path = (req.url).path; |
16457 var pathOffset = 0; | 17975 var pathOffset = 0; |
16458 var index; | 17976 var index; |
16459 var subPart; | 17977 var subPart; |
16460 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17978 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16461 pathOffset += 1; | 17979 pathOffset += 1; |
16462 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 17980 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16463 pathOffset += 18; | 17981 pathOffset += 18; |
16464 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 17982 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16465 pathOffset += 13; | 17983 pathOffset += 13; |
16466 index = path.indexOf("/operatingSystemVersions", pathOffset); | 17984 index = path.indexOf("/mobileCarriers", pathOffset); |
16467 unittest.expect(index >= 0, unittest.isTrue); | 17985 unittest.expect(index >= 0, unittest.isTrue); |
16468 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 17986 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16469 pathOffset = index; | 17987 pathOffset = index; |
16470 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 17988 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16471 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/operatingSystemVersions")); | 17989 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/mobileCarriers")); |
16472 pathOffset += 24; | 17990 pathOffset += 15; |
16473 | 17991 |
16474 var query = (req.url).query; | 17992 var query = (req.url).query; |
16475 var queryOffset = 0; | 17993 var queryOffset = 0; |
16476 var queryMap = {}; | 17994 var queryMap = {}; |
16477 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17995 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16478 parseBool(n) { | 17996 parseBool(n) { |
16479 if (n == "true") return true; | 17997 if (n == "true") return true; |
16480 if (n == "false") return false; | 17998 if (n == "false") return false; |
16481 if (n == null) return null; | 17999 if (n == null) return null; |
16482 throw new core.ArgumentError("Invalid boolean: $n"); | 18000 throw new core.ArgumentError("Invalid boolean: $n"); |
16483 } | 18001 } |
16484 if (query.length > 0) { | 18002 if (query.length > 0) { |
16485 for (var part in query.split("&")) { | 18003 for (var part in query.split("&")) { |
16486 var keyvalue = part.split("="); | 18004 var keyvalue = part.split("="); |
16487 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18005 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16488 } | 18006 } |
16489 } | 18007 } |
16490 | 18008 |
16491 | 18009 |
16492 var h = { | 18010 var h = { |
16493 "content-type" : "application/json; charset=utf-8", | 18011 "content-type" : "application/json; charset=utf-8", |
16494 }; | 18012 }; |
16495 var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse(
)); | 18013 var resp = convert.JSON.encode(buildMobileCarriersListResponse()); |
16496 return new async.Future.value(stringResponse(200, h, resp)); | 18014 return new async.Future.value(stringResponse(200, h, resp)); |
16497 }), true); | 18015 }), true); |
16498 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVer
sionsListResponse response) { | 18016 res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersList
Response response) { |
16499 checkOperatingSystemVersionsListResponse(response); | 18017 checkMobileCarriersListResponse(response); |
16500 }))); | 18018 }))); |
16501 }); | 18019 }); |
16502 | 18020 |
16503 }); | 18021 }); |
16504 | 18022 |
16505 | 18023 |
16506 unittest.group("resource-OperatingSystemsResourceApi", () { | 18024 unittest.group("resource-OperatingSystemVersionsResourceApi", () { |
16507 unittest.test("method--list", () { | 18025 unittest.test("method--get", () { |
16508 | 18026 |
16509 var mock = new HttpServerMock(); | 18027 var mock = new HttpServerMock(); |
16510 api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operat
ingSystems; | 18028 api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock)
.operatingSystemVersions; |
16511 var arg_profileId = "foo"; | 18029 var arg_profileId = "foo"; |
| 18030 var arg_id = "foo"; |
16512 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18031 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16513 var path = (req.url).path; | 18032 var path = (req.url).path; |
16514 var pathOffset = 0; | 18033 var pathOffset = 0; |
16515 var index; | 18034 var index; |
16516 var subPart; | 18035 var subPart; |
16517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18036 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16518 pathOffset += 1; | 18037 pathOffset += 1; |
16519 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18038 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16520 pathOffset += 18; | 18039 pathOffset += 18; |
16521 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18040 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16522 pathOffset += 13; | 18041 pathOffset += 13; |
16523 index = path.indexOf("/operatingSystems", pathOffset); | 18042 index = path.indexOf("/operatingSystemVersions/", pathOffset); |
16524 unittest.expect(index >= 0, unittest.isTrue); | 18043 unittest.expect(index >= 0, unittest.isTrue); |
16525 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18044 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16526 pathOffset = index; | 18045 pathOffset = index; |
16527 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18046 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16528 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/operatingSystems")); | 18047 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/operatingSystemVersions/")); |
16529 pathOffset += 17; | 18048 pathOffset += 25; |
| 18049 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18050 pathOffset = path.length; |
| 18051 unittest.expect(subPart, unittest.equals("$arg_id")); |
16530 | 18052 |
16531 var query = (req.url).query; | 18053 var query = (req.url).query; |
16532 var queryOffset = 0; | 18054 var queryOffset = 0; |
16533 var queryMap = {}; | 18055 var queryMap = {}; |
16534 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18056 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16535 parseBool(n) { | 18057 parseBool(n) { |
16536 if (n == "true") return true; | 18058 if (n == "true") return true; |
16537 if (n == "false") return false; | 18059 if (n == "false") return false; |
16538 if (n == null) return null; | 18060 if (n == null) return null; |
16539 throw new core.ArgumentError("Invalid boolean: $n"); | 18061 throw new core.ArgumentError("Invalid boolean: $n"); |
16540 } | 18062 } |
16541 if (query.length > 0) { | 18063 if (query.length > 0) { |
16542 for (var part in query.split("&")) { | 18064 for (var part in query.split("&")) { |
16543 var keyvalue = part.split("="); | 18065 var keyvalue = part.split("="); |
16544 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18066 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16545 } | 18067 } |
16546 } | 18068 } |
16547 | 18069 |
16548 | 18070 |
16549 var h = { | 18071 var h = { |
16550 "content-type" : "application/json; charset=utf-8", | 18072 "content-type" : "application/json; charset=utf-8", |
16551 }; | 18073 }; |
16552 var resp = convert.JSON.encode(buildOperatingSystemsListResponse()); | 18074 var resp = convert.JSON.encode(buildOperatingSystemVersion()); |
16553 return new async.Future.value(stringResponse(200, h, resp)); | 18075 return new async.Future.value(stringResponse(200, h, resp)); |
16554 }), true); | 18076 }), true); |
16555 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsLi
stResponse response) { | 18077 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.OperatingSy
stemVersion response) { |
16556 checkOperatingSystemsListResponse(response); | 18078 checkOperatingSystemVersion(response); |
16557 }))); | 18079 }))); |
16558 }); | 18080 }); |
16559 | 18081 |
16560 }); | 18082 unittest.test("method--list", () { |
16561 | |
16562 | |
16563 unittest.group("resource-PlacementGroupsResourceApi", () { | |
16564 unittest.test("method--get", () { | |
16565 | 18083 |
16566 var mock = new HttpServerMock(); | 18084 var mock = new HttpServerMock(); |
16567 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18085 api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock)
.operatingSystemVersions; |
16568 var arg_profileId = "foo"; | 18086 var arg_profileId = "foo"; |
16569 var arg_id = "foo"; | |
16570 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18087 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16571 var path = (req.url).path; | 18088 var path = (req.url).path; |
16572 var pathOffset = 0; | 18089 var pathOffset = 0; |
16573 var index; | 18090 var index; |
16574 var subPart; | 18091 var subPart; |
16575 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18092 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16576 pathOffset += 1; | 18093 pathOffset += 1; |
16577 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18094 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16578 pathOffset += 18; | 18095 pathOffset += 18; |
16579 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18096 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16580 pathOffset += 13; | 18097 pathOffset += 13; |
16581 index = path.indexOf("/placementGroups/", pathOffset); | 18098 index = path.indexOf("/operatingSystemVersions", pathOffset); |
16582 unittest.expect(index >= 0, unittest.isTrue); | 18099 unittest.expect(index >= 0, unittest.isTrue); |
16583 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18100 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16584 pathOffset = index; | 18101 pathOffset = index; |
16585 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18102 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16586 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/placementGroups/")); | 18103 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/operatingSystemVersions")); |
16587 pathOffset += 17; | 18104 pathOffset += 24; |
16588 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
16589 pathOffset = path.length; | |
16590 unittest.expect(subPart, unittest.equals("$arg_id")); | |
16591 | 18105 |
16592 var query = (req.url).query; | 18106 var query = (req.url).query; |
16593 var queryOffset = 0; | 18107 var queryOffset = 0; |
16594 var queryMap = {}; | 18108 var queryMap = {}; |
16595 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18109 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16596 parseBool(n) { | 18110 parseBool(n) { |
16597 if (n == "true") return true; | 18111 if (n == "true") return true; |
16598 if (n == "false") return false; | 18112 if (n == "false") return false; |
16599 if (n == null) return null; | 18113 if (n == null) return null; |
16600 throw new core.ArgumentError("Invalid boolean: $n"); | 18114 throw new core.ArgumentError("Invalid boolean: $n"); |
16601 } | 18115 } |
16602 if (query.length > 0) { | 18116 if (query.length > 0) { |
16603 for (var part in query.split("&")) { | 18117 for (var part in query.split("&")) { |
16604 var keyvalue = part.split("="); | 18118 var keyvalue = part.split("="); |
16605 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18119 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16606 } | 18120 } |
16607 } | 18121 } |
16608 | 18122 |
16609 | 18123 |
16610 var h = { | 18124 var h = { |
16611 "content-type" : "application/json; charset=utf-8", | 18125 "content-type" : "application/json; charset=utf-8", |
16612 }; | 18126 }; |
16613 var resp = convert.JSON.encode(buildPlacementGroup()); | 18127 var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse(
)); |
16614 return new async.Future.value(stringResponse(200, h, resp)); | 18128 return new async.Future.value(stringResponse(200, h, resp)); |
16615 }), true); | 18129 }), true); |
16616 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGr
oup response) { | 18130 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVer
sionsListResponse response) { |
16617 checkPlacementGroup(response); | 18131 checkOperatingSystemVersionsListResponse(response); |
16618 }))); | 18132 }))); |
16619 }); | 18133 }); |
16620 | 18134 |
16621 unittest.test("method--insert", () { | 18135 }); |
| 18136 |
| 18137 |
| 18138 unittest.group("resource-OperatingSystemsResourceApi", () { |
| 18139 unittest.test("method--get", () { |
16622 | 18140 |
16623 var mock = new HttpServerMock(); | 18141 var mock = new HttpServerMock(); |
16624 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18142 api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operat
ingSystems; |
16625 var arg_request = buildPlacementGroup(); | |
16626 var arg_profileId = "foo"; | 18143 var arg_profileId = "foo"; |
| 18144 var arg_dartId = "foo"; |
16627 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18145 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; | 18146 var path = (req.url).path; |
16632 var pathOffset = 0; | 18147 var pathOffset = 0; |
16633 var index; | 18148 var index; |
16634 var subPart; | 18149 var subPart; |
16635 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18150 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16636 pathOffset += 1; | 18151 pathOffset += 1; |
16637 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18152 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16638 pathOffset += 18; | 18153 pathOffset += 18; |
16639 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18154 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16640 pathOffset += 13; | 18155 pathOffset += 13; |
16641 index = path.indexOf("/placementGroups", pathOffset); | 18156 index = path.indexOf("/operatingSystems/", pathOffset); |
16642 unittest.expect(index >= 0, unittest.isTrue); | 18157 unittest.expect(index >= 0, unittest.isTrue); |
16643 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18158 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16644 pathOffset = index; | 18159 pathOffset = index; |
16645 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18160 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16646 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); | 18161 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/operatingSystems/")); |
16647 pathOffset += 16; | 18162 pathOffset += 18; |
| 18163 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18164 pathOffset = path.length; |
| 18165 unittest.expect(subPart, unittest.equals("$arg_dartId")); |
16648 | 18166 |
16649 var query = (req.url).query; | 18167 var query = (req.url).query; |
16650 var queryOffset = 0; | 18168 var queryOffset = 0; |
16651 var queryMap = {}; | 18169 var queryMap = {}; |
16652 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18170 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16653 parseBool(n) { | 18171 parseBool(n) { |
16654 if (n == "true") return true; | 18172 if (n == "true") return true; |
16655 if (n == "false") return false; | 18173 if (n == "false") return false; |
16656 if (n == null) return null; | 18174 if (n == null) return null; |
16657 throw new core.ArgumentError("Invalid boolean: $n"); | 18175 throw new core.ArgumentError("Invalid boolean: $n"); |
16658 } | 18176 } |
16659 if (query.length > 0) { | 18177 if (query.length > 0) { |
16660 for (var part in query.split("&")) { | 18178 for (var part in query.split("&")) { |
16661 var keyvalue = part.split("="); | 18179 var keyvalue = part.split("="); |
16662 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18180 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16663 } | 18181 } |
16664 } | 18182 } |
16665 | 18183 |
16666 | 18184 |
16667 var h = { | 18185 var h = { |
16668 "content-type" : "application/json; charset=utf-8", | 18186 "content-type" : "application/json; charset=utf-8", |
16669 }; | 18187 }; |
16670 var resp = convert.JSON.encode(buildPlacementGroup()); | 18188 var resp = convert.JSON.encode(buildOperatingSystem()); |
16671 return new async.Future.value(stringResponse(200, h, resp)); | 18189 return new async.Future.value(stringResponse(200, h, resp)); |
16672 }), true); | 18190 }), true); |
16673 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementGroup response) { | 18191 res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.Operati
ngSystem response) { |
16674 checkPlacementGroup(response); | 18192 checkOperatingSystem(response); |
16675 }))); | 18193 }))); |
16676 }); | 18194 }); |
16677 | 18195 |
16678 unittest.test("method--list", () { | 18196 unittest.test("method--list", () { |
16679 | 18197 |
16680 var mock = new HttpServerMock(); | 18198 var mock = new HttpServerMock(); |
16681 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18199 api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operat
ingSystems; |
16682 var arg_profileId = "foo"; | 18200 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) { | 18201 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16699 var path = (req.url).path; | 18202 var path = (req.url).path; |
16700 var pathOffset = 0; | 18203 var pathOffset = 0; |
16701 var index; | 18204 var index; |
16702 var subPart; | 18205 var subPart; |
16703 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18206 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16704 pathOffset += 1; | 18207 pathOffset += 1; |
16705 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 18208 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16706 pathOffset += 18; | 18209 pathOffset += 18; |
16707 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 18210 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16708 pathOffset += 13; | 18211 pathOffset += 13; |
16709 index = path.indexOf("/placementGroups", pathOffset); | 18212 index = path.indexOf("/operatingSystems", pathOffset); |
16710 unittest.expect(index >= 0, unittest.isTrue); | 18213 unittest.expect(index >= 0, unittest.isTrue); |
16711 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 18214 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16712 pathOffset = index; | 18215 pathOffset = index; |
16713 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 18216 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16714 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); | 18217 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/operatingSystems")); |
16715 pathOffset += 16; | 18218 pathOffset += 17; |
16716 | 18219 |
16717 var query = (req.url).query; | 18220 var query = (req.url).query; |
16718 var queryOffset = 0; | 18221 var queryOffset = 0; |
16719 var queryMap = {}; | 18222 var queryMap = {}; |
16720 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18223 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16721 parseBool(n) { | 18224 parseBool(n) { |
16722 if (n == "true") return true; | 18225 if (n == "true") return true; |
16723 if (n == "false") return false; | 18226 if (n == "false") return false; |
16724 if (n == null) return null; | 18227 if (n == null) return null; |
16725 throw new core.ArgumentError("Invalid boolean: $n"); | 18228 throw new core.ArgumentError("Invalid boolean: $n"); |
16726 } | 18229 } |
16727 if (query.length > 0) { | 18230 if (query.length > 0) { |
16728 for (var part in query.split("&")) { | 18231 for (var part in query.split("&")) { |
16729 var keyvalue = part.split("="); | 18232 var keyvalue = part.split("="); |
16730 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18233 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16731 } | 18234 } |
16732 } | 18235 } |
| 18236 |
| 18237 |
| 18238 var h = { |
| 18239 "content-type" : "application/json; charset=utf-8", |
| 18240 }; |
| 18241 var resp = convert.JSON.encode(buildOperatingSystemsListResponse()); |
| 18242 return new async.Future.value(stringResponse(200, h, resp)); |
| 18243 }), true); |
| 18244 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsLi
stResponse response) { |
| 18245 checkOperatingSystemsListResponse(response); |
| 18246 }))); |
| 18247 }); |
| 18248 |
| 18249 }); |
| 18250 |
| 18251 |
| 18252 unittest.group("resource-OrderDocumentsResourceApi", () { |
| 18253 unittest.test("method--get", () { |
| 18254 |
| 18255 var mock = new HttpServerMock(); |
| 18256 api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDoc
uments; |
| 18257 var arg_profileId = "foo"; |
| 18258 var arg_projectId = "foo"; |
| 18259 var arg_id = "foo"; |
| 18260 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18261 var path = (req.url).path; |
| 18262 var pathOffset = 0; |
| 18263 var index; |
| 18264 var subPart; |
| 18265 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18266 pathOffset += 1; |
| 18267 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18268 pathOffset += 18; |
| 18269 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18270 pathOffset += 13; |
| 18271 index = path.indexOf("/projects/", pathOffset); |
| 18272 unittest.expect(index >= 0, unittest.isTrue); |
| 18273 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18274 pathOffset = index; |
| 18275 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18276 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 18277 pathOffset += 10; |
| 18278 index = path.indexOf("/orderDocuments/", pathOffset); |
| 18279 unittest.expect(index >= 0, unittest.isTrue); |
| 18280 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18281 pathOffset = index; |
| 18282 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 18283 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/orderDocuments/")); |
| 18284 pathOffset += 16; |
| 18285 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18286 pathOffset = path.length; |
| 18287 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 18288 |
| 18289 var query = (req.url).query; |
| 18290 var queryOffset = 0; |
| 18291 var queryMap = {}; |
| 18292 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18293 parseBool(n) { |
| 18294 if (n == "true") return true; |
| 18295 if (n == "false") return false; |
| 18296 if (n == null) return null; |
| 18297 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18298 } |
| 18299 if (query.length > 0) { |
| 18300 for (var part in query.split("&")) { |
| 18301 var keyvalue = part.split("="); |
| 18302 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18303 } |
| 18304 } |
| 18305 |
| 18306 |
| 18307 var h = { |
| 18308 "content-type" : "application/json; charset=utf-8", |
| 18309 }; |
| 18310 var resp = convert.JSON.encode(buildOrderDocument()); |
| 18311 return new async.Future.value(stringResponse(200, h, resp)); |
| 18312 }), true); |
| 18313 res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((
api.OrderDocument response) { |
| 18314 checkOrderDocument(response); |
| 18315 }))); |
| 18316 }); |
| 18317 |
| 18318 unittest.test("method--list", () { |
| 18319 |
| 18320 var mock = new HttpServerMock(); |
| 18321 api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDoc
uments; |
| 18322 var arg_profileId = "foo"; |
| 18323 var arg_projectId = "foo"; |
| 18324 var arg_approved = true; |
| 18325 var arg_ids = buildUnnamed1268(); |
| 18326 var arg_maxResults = 42; |
| 18327 var arg_orderId = buildUnnamed1269(); |
| 18328 var arg_pageToken = "foo"; |
| 18329 var arg_searchString = "foo"; |
| 18330 var arg_siteId = buildUnnamed1270(); |
| 18331 var arg_sortField = "foo"; |
| 18332 var arg_sortOrder = "foo"; |
| 18333 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18334 var path = (req.url).path; |
| 18335 var pathOffset = 0; |
| 18336 var index; |
| 18337 var subPart; |
| 18338 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18339 pathOffset += 1; |
| 18340 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18341 pathOffset += 18; |
| 18342 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18343 pathOffset += 13; |
| 18344 index = path.indexOf("/projects/", pathOffset); |
| 18345 unittest.expect(index >= 0, unittest.isTrue); |
| 18346 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18347 pathOffset = index; |
| 18348 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18349 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 18350 pathOffset += 10; |
| 18351 index = path.indexOf("/orderDocuments", pathOffset); |
| 18352 unittest.expect(index >= 0, unittest.isTrue); |
| 18353 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18354 pathOffset = index; |
| 18355 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 18356 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/orderDocuments")); |
| 18357 pathOffset += 15; |
| 18358 |
| 18359 var query = (req.url).query; |
| 18360 var queryOffset = 0; |
| 18361 var queryMap = {}; |
| 18362 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18363 parseBool(n) { |
| 18364 if (n == "true") return true; |
| 18365 if (n == "false") return false; |
| 18366 if (n == null) return null; |
| 18367 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18368 } |
| 18369 if (query.length > 0) { |
| 18370 for (var part in query.split("&")) { |
| 18371 var keyvalue = part.split("="); |
| 18372 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18373 } |
| 18374 } |
| 18375 unittest.expect(queryMap["approved"].first, unittest.equals("$arg_approv
ed")); |
| 18376 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 18377 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 18378 unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); |
| 18379 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 18380 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 18381 unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); |
| 18382 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 18383 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 18384 |
| 18385 |
| 18386 var h = { |
| 18387 "content-type" : "application/json; charset=utf-8", |
| 18388 }; |
| 18389 var resp = convert.JSON.encode(buildOrderDocumentsListResponse()); |
| 18390 return new async.Future.value(stringResponse(200, h, resp)); |
| 18391 }), true); |
| 18392 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) { |
| 18393 checkOrderDocumentsListResponse(response); |
| 18394 }))); |
| 18395 }); |
| 18396 |
| 18397 }); |
| 18398 |
| 18399 |
| 18400 unittest.group("resource-OrdersResourceApi", () { |
| 18401 unittest.test("method--get", () { |
| 18402 |
| 18403 var mock = new HttpServerMock(); |
| 18404 api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; |
| 18405 var arg_profileId = "foo"; |
| 18406 var arg_projectId = "foo"; |
| 18407 var arg_id = "foo"; |
| 18408 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18409 var path = (req.url).path; |
| 18410 var pathOffset = 0; |
| 18411 var index; |
| 18412 var subPart; |
| 18413 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18414 pathOffset += 1; |
| 18415 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18416 pathOffset += 18; |
| 18417 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18418 pathOffset += 13; |
| 18419 index = path.indexOf("/projects/", pathOffset); |
| 18420 unittest.expect(index >= 0, unittest.isTrue); |
| 18421 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18422 pathOffset = index; |
| 18423 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18424 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 18425 pathOffset += 10; |
| 18426 index = path.indexOf("/orders/", pathOffset); |
| 18427 unittest.expect(index >= 0, unittest.isTrue); |
| 18428 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18429 pathOffset = index; |
| 18430 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 18431 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/orders/")); |
| 18432 pathOffset += 8; |
| 18433 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18434 pathOffset = path.length; |
| 18435 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 18436 |
| 18437 var query = (req.url).query; |
| 18438 var queryOffset = 0; |
| 18439 var queryMap = {}; |
| 18440 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18441 parseBool(n) { |
| 18442 if (n == "true") return true; |
| 18443 if (n == "false") return false; |
| 18444 if (n == null) return null; |
| 18445 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18446 } |
| 18447 if (query.length > 0) { |
| 18448 for (var part in query.split("&")) { |
| 18449 var keyvalue = part.split("="); |
| 18450 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18451 } |
| 18452 } |
| 18453 |
| 18454 |
| 18455 var h = { |
| 18456 "content-type" : "application/json; charset=utf-8", |
| 18457 }; |
| 18458 var resp = convert.JSON.encode(buildOrder()); |
| 18459 return new async.Future.value(stringResponse(200, h, resp)); |
| 18460 }), true); |
| 18461 res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((
api.Order response) { |
| 18462 checkOrder(response); |
| 18463 }))); |
| 18464 }); |
| 18465 |
| 18466 unittest.test("method--list", () { |
| 18467 |
| 18468 var mock = new HttpServerMock(); |
| 18469 api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; |
| 18470 var arg_profileId = "foo"; |
| 18471 var arg_projectId = "foo"; |
| 18472 var arg_ids = buildUnnamed1271(); |
| 18473 var arg_maxResults = 42; |
| 18474 var arg_pageToken = "foo"; |
| 18475 var arg_searchString = "foo"; |
| 18476 var arg_siteId = buildUnnamed1272(); |
| 18477 var arg_sortField = "foo"; |
| 18478 var arg_sortOrder = "foo"; |
| 18479 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18480 var path = (req.url).path; |
| 18481 var pathOffset = 0; |
| 18482 var index; |
| 18483 var subPart; |
| 18484 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18485 pathOffset += 1; |
| 18486 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18487 pathOffset += 18; |
| 18488 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18489 pathOffset += 13; |
| 18490 index = path.indexOf("/projects/", pathOffset); |
| 18491 unittest.expect(index >= 0, unittest.isTrue); |
| 18492 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18493 pathOffset = index; |
| 18494 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18495 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
| 18496 pathOffset += 10; |
| 18497 index = path.indexOf("/orders", pathOffset); |
| 18498 unittest.expect(index >= 0, unittest.isTrue); |
| 18499 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18500 pathOffset = index; |
| 18501 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 18502 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/orders")); |
| 18503 pathOffset += 7; |
| 18504 |
| 18505 var query = (req.url).query; |
| 18506 var queryOffset = 0; |
| 18507 var queryMap = {}; |
| 18508 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18509 parseBool(n) { |
| 18510 if (n == "true") return true; |
| 18511 if (n == "false") return false; |
| 18512 if (n == null) return null; |
| 18513 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18514 } |
| 18515 if (query.length > 0) { |
| 18516 for (var part in query.split("&")) { |
| 18517 var keyvalue = part.split("="); |
| 18518 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18519 } |
| 18520 } |
| 18521 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 18522 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 18523 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 18524 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 18525 unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); |
| 18526 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 18527 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 18528 |
| 18529 |
| 18530 var h = { |
| 18531 "content-type" : "application/json; charset=utf-8", |
| 18532 }; |
| 18533 var resp = convert.JSON.encode(buildOrdersListResponse()); |
| 18534 return new async.Future.value(stringResponse(200, h, resp)); |
| 18535 }), true); |
| 18536 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) { |
| 18537 checkOrdersListResponse(response); |
| 18538 }))); |
| 18539 }); |
| 18540 |
| 18541 }); |
| 18542 |
| 18543 |
| 18544 unittest.group("resource-PlacementGroupsResourceApi", () { |
| 18545 unittest.test("method--get", () { |
| 18546 |
| 18547 var mock = new HttpServerMock(); |
| 18548 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 18549 var arg_profileId = "foo"; |
| 18550 var arg_id = "foo"; |
| 18551 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18552 var path = (req.url).path; |
| 18553 var pathOffset = 0; |
| 18554 var index; |
| 18555 var subPart; |
| 18556 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18557 pathOffset += 1; |
| 18558 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18559 pathOffset += 18; |
| 18560 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18561 pathOffset += 13; |
| 18562 index = path.indexOf("/placementGroups/", pathOffset); |
| 18563 unittest.expect(index >= 0, unittest.isTrue); |
| 18564 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18565 pathOffset = index; |
| 18566 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18567 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/placementGroups/")); |
| 18568 pathOffset += 17; |
| 18569 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18570 pathOffset = path.length; |
| 18571 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 18572 |
| 18573 var query = (req.url).query; |
| 18574 var queryOffset = 0; |
| 18575 var queryMap = {}; |
| 18576 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18577 parseBool(n) { |
| 18578 if (n == "true") return true; |
| 18579 if (n == "false") return false; |
| 18580 if (n == null) return null; |
| 18581 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18582 } |
| 18583 if (query.length > 0) { |
| 18584 for (var part in query.split("&")) { |
| 18585 var keyvalue = part.split("="); |
| 18586 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18587 } |
| 18588 } |
| 18589 |
| 18590 |
| 18591 var h = { |
| 18592 "content-type" : "application/json; charset=utf-8", |
| 18593 }; |
| 18594 var resp = convert.JSON.encode(buildPlacementGroup()); |
| 18595 return new async.Future.value(stringResponse(200, h, resp)); |
| 18596 }), true); |
| 18597 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGr
oup response) { |
| 18598 checkPlacementGroup(response); |
| 18599 }))); |
| 18600 }); |
| 18601 |
| 18602 unittest.test("method--insert", () { |
| 18603 |
| 18604 var mock = new HttpServerMock(); |
| 18605 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 18606 var arg_request = buildPlacementGroup(); |
| 18607 var arg_profileId = "foo"; |
| 18608 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18609 var obj = new api.PlacementGroup.fromJson(json); |
| 18610 checkPlacementGroup(obj); |
| 18611 |
| 18612 var path = (req.url).path; |
| 18613 var pathOffset = 0; |
| 18614 var index; |
| 18615 var subPart; |
| 18616 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18617 pathOffset += 1; |
| 18618 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18619 pathOffset += 18; |
| 18620 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18621 pathOffset += 13; |
| 18622 index = path.indexOf("/placementGroups", pathOffset); |
| 18623 unittest.expect(index >= 0, unittest.isTrue); |
| 18624 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18625 pathOffset = index; |
| 18626 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18627 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); |
| 18628 pathOffset += 16; |
| 18629 |
| 18630 var query = (req.url).query; |
| 18631 var queryOffset = 0; |
| 18632 var queryMap = {}; |
| 18633 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18634 parseBool(n) { |
| 18635 if (n == "true") return true; |
| 18636 if (n == "false") return false; |
| 18637 if (n == null) return null; |
| 18638 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18639 } |
| 18640 if (query.length > 0) { |
| 18641 for (var part in query.split("&")) { |
| 18642 var keyvalue = part.split("="); |
| 18643 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18644 } |
| 18645 } |
| 18646 |
| 18647 |
| 18648 var h = { |
| 18649 "content-type" : "application/json; charset=utf-8", |
| 18650 }; |
| 18651 var resp = convert.JSON.encode(buildPlacementGroup()); |
| 18652 return new async.Future.value(stringResponse(200, h, resp)); |
| 18653 }), true); |
| 18654 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementGroup response) { |
| 18655 checkPlacementGroup(response); |
| 18656 }))); |
| 18657 }); |
| 18658 |
| 18659 unittest.test("method--list", () { |
| 18660 |
| 18661 var mock = new HttpServerMock(); |
| 18662 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 18663 var arg_profileId = "foo"; |
| 18664 var arg_advertiserIds = buildUnnamed1273(); |
| 18665 var arg_archived = true; |
| 18666 var arg_campaignIds = buildUnnamed1274(); |
| 18667 var arg_contentCategoryIds = buildUnnamed1275(); |
| 18668 var arg_directorySiteIds = buildUnnamed1276(); |
| 18669 var arg_ids = buildUnnamed1277(); |
| 18670 var arg_maxResults = 42; |
| 18671 var arg_pageToken = "foo"; |
| 18672 var arg_placementGroupType = "foo"; |
| 18673 var arg_placementStrategyIds = buildUnnamed1278(); |
| 18674 var arg_pricingTypes = buildUnnamed1279(); |
| 18675 var arg_searchString = "foo"; |
| 18676 var arg_siteIds = buildUnnamed1280(); |
| 18677 var arg_sortField = "foo"; |
| 18678 var arg_sortOrder = "foo"; |
| 18679 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18680 var path = (req.url).path; |
| 18681 var pathOffset = 0; |
| 18682 var index; |
| 18683 var subPart; |
| 18684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18685 pathOffset += 1; |
| 18686 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18687 pathOffset += 18; |
| 18688 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18689 pathOffset += 13; |
| 18690 index = path.indexOf("/placementGroups", pathOffset); |
| 18691 unittest.expect(index >= 0, unittest.isTrue); |
| 18692 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18693 pathOffset = index; |
| 18694 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18695 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); |
| 18696 pathOffset += 16; |
| 18697 |
| 18698 var query = (req.url).query; |
| 18699 var queryOffset = 0; |
| 18700 var queryMap = {}; |
| 18701 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18702 parseBool(n) { |
| 18703 if (n == "true") return true; |
| 18704 if (n == "false") return false; |
| 18705 if (n == null) return null; |
| 18706 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18707 } |
| 18708 if (query.length > 0) { |
| 18709 for (var part in query.split("&")) { |
| 18710 var keyvalue = part.split("="); |
| 18711 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18712 } |
| 18713 } |
16733 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); | 18714 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); |
16734 unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archiv
ed")); | 18715 unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archiv
ed")); |
16735 unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds
)); | 18716 unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds
)); |
16736 unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_cont
entCategoryIds)); | 18717 unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_cont
entCategoryIds)); |
16737 unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_direct
orySiteIds)); | 18718 unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_direct
orySiteIds)); |
16738 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); | 18719 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
16739 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 18720 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
16740 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 18721 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
16741 unittest.expect(queryMap["placementGroupType"].first, unittest.equals(ar
g_placementGroupType)); | 18722 unittest.expect(queryMap["placementGroupType"].first, unittest.equals(ar
g_placementGroupType)); |
16742 unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_pl
acementStrategyIds)); | 18723 unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_pl
acementStrategyIds)); |
(...skipping 21 matching lines...) Expand all Loading... |
16764 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 18745 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
16765 var arg_request = buildPlacementGroup(); | 18746 var arg_request = buildPlacementGroup(); |
16766 var arg_profileId = "foo"; | 18747 var arg_profileId = "foo"; |
16767 var arg_id = "foo"; | 18748 var arg_id = "foo"; |
16768 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18749 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16769 var obj = new api.PlacementGroup.fromJson(json); | 18750 var obj = new api.PlacementGroup.fromJson(json); |
16770 checkPlacementGroup(obj); | 18751 checkPlacementGroup(obj); |
16771 | 18752 |
16772 var path = (req.url).path; | 18753 var path = (req.url).path; |
16773 var pathOffset = 0; | 18754 var pathOffset = 0; |
| 18755 var index; |
| 18756 var subPart; |
| 18757 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18758 pathOffset += 1; |
| 18759 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18760 pathOffset += 18; |
| 18761 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18762 pathOffset += 13; |
| 18763 index = path.indexOf("/placementGroups", pathOffset); |
| 18764 unittest.expect(index >= 0, unittest.isTrue); |
| 18765 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18766 pathOffset = index; |
| 18767 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18768 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); |
| 18769 pathOffset += 16; |
| 18770 |
| 18771 var query = (req.url).query; |
| 18772 var queryOffset = 0; |
| 18773 var queryMap = {}; |
| 18774 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18775 parseBool(n) { |
| 18776 if (n == "true") return true; |
| 18777 if (n == "false") return false; |
| 18778 if (n == null) return null; |
| 18779 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18780 } |
| 18781 if (query.length > 0) { |
| 18782 for (var part in query.split("&")) { |
| 18783 var keyvalue = part.split("="); |
| 18784 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18785 } |
| 18786 } |
| 18787 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
| 18788 |
| 18789 |
| 18790 var h = { |
| 18791 "content-type" : "application/json; charset=utf-8", |
| 18792 }; |
| 18793 var resp = convert.JSON.encode(buildPlacementGroup()); |
| 18794 return new async.Future.value(stringResponse(200, h, resp)); |
| 18795 }), true); |
| 18796 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.PlacementGroup response) { |
| 18797 checkPlacementGroup(response); |
| 18798 }))); |
| 18799 }); |
| 18800 |
| 18801 unittest.test("method--update", () { |
| 18802 |
| 18803 var mock = new HttpServerMock(); |
| 18804 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; |
| 18805 var arg_request = buildPlacementGroup(); |
| 18806 var arg_profileId = "foo"; |
| 18807 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18808 var obj = new api.PlacementGroup.fromJson(json); |
| 18809 checkPlacementGroup(obj); |
| 18810 |
| 18811 var path = (req.url).path; |
| 18812 var pathOffset = 0; |
| 18813 var index; |
| 18814 var subPart; |
| 18815 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18816 pathOffset += 1; |
| 18817 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18818 pathOffset += 18; |
| 18819 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18820 pathOffset += 13; |
| 18821 index = path.indexOf("/placementGroups", pathOffset); |
| 18822 unittest.expect(index >= 0, unittest.isTrue); |
| 18823 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18824 pathOffset = index; |
| 18825 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18826 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); |
| 18827 pathOffset += 16; |
| 18828 |
| 18829 var query = (req.url).query; |
| 18830 var queryOffset = 0; |
| 18831 var queryMap = {}; |
| 18832 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18833 parseBool(n) { |
| 18834 if (n == "true") return true; |
| 18835 if (n == "false") return false; |
| 18836 if (n == null) return null; |
| 18837 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18838 } |
| 18839 if (query.length > 0) { |
| 18840 for (var part in query.split("&")) { |
| 18841 var keyvalue = part.split("="); |
| 18842 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18843 } |
| 18844 } |
| 18845 |
| 18846 |
| 18847 var h = { |
| 18848 "content-type" : "application/json; charset=utf-8", |
| 18849 }; |
| 18850 var resp = convert.JSON.encode(buildPlacementGroup()); |
| 18851 return new async.Future.value(stringResponse(200, h, resp)); |
| 18852 }), true); |
| 18853 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementGroup response) { |
| 18854 checkPlacementGroup(response); |
| 18855 }))); |
| 18856 }); |
| 18857 |
| 18858 }); |
| 18859 |
| 18860 |
| 18861 unittest.group("resource-PlacementStrategiesResourceApi", () { |
| 18862 unittest.test("method--delete", () { |
| 18863 |
| 18864 var mock = new HttpServerMock(); |
| 18865 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 18866 var arg_profileId = "foo"; |
| 18867 var arg_id = "foo"; |
| 18868 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18869 var path = (req.url).path; |
| 18870 var pathOffset = 0; |
| 18871 var index; |
| 18872 var subPart; |
| 18873 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18874 pathOffset += 1; |
| 18875 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18876 pathOffset += 18; |
| 18877 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18878 pathOffset += 13; |
| 18879 index = path.indexOf("/placementStrategies/", pathOffset); |
| 18880 unittest.expect(index >= 0, unittest.isTrue); |
| 18881 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18882 pathOffset = index; |
| 18883 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18884 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/placementStrategies/")); |
| 18885 pathOffset += 21; |
| 18886 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18887 pathOffset = path.length; |
| 18888 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 18889 |
| 18890 var query = (req.url).query; |
| 18891 var queryOffset = 0; |
| 18892 var queryMap = {}; |
| 18893 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18894 parseBool(n) { |
| 18895 if (n == "true") return true; |
| 18896 if (n == "false") return false; |
| 18897 if (n == null) return null; |
| 18898 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18899 } |
| 18900 if (query.length > 0) { |
| 18901 for (var part in query.split("&")) { |
| 18902 var keyvalue = part.split("="); |
| 18903 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18904 } |
| 18905 } |
| 18906 |
| 18907 |
| 18908 var h = { |
| 18909 "content-type" : "application/json; charset=utf-8", |
| 18910 }; |
| 18911 var resp = ""; |
| 18912 return new async.Future.value(stringResponse(200, h, resp)); |
| 18913 }), true); |
| 18914 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); |
| 18915 }); |
| 18916 |
| 18917 unittest.test("method--get", () { |
| 18918 |
| 18919 var mock = new HttpServerMock(); |
| 18920 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 18921 var arg_profileId = "foo"; |
| 18922 var arg_id = "foo"; |
| 18923 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18924 var path = (req.url).path; |
| 18925 var pathOffset = 0; |
| 18926 var index; |
| 18927 var subPart; |
| 18928 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18929 pathOffset += 1; |
| 18930 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18931 pathOffset += 18; |
| 18932 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18933 pathOffset += 13; |
| 18934 index = path.indexOf("/placementStrategies/", pathOffset); |
| 18935 unittest.expect(index >= 0, unittest.isTrue); |
| 18936 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18937 pathOffset = index; |
| 18938 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18939 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/placementStrategies/")); |
| 18940 pathOffset += 21; |
| 18941 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 18942 pathOffset = path.length; |
| 18943 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 18944 |
| 18945 var query = (req.url).query; |
| 18946 var queryOffset = 0; |
| 18947 var queryMap = {}; |
| 18948 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18949 parseBool(n) { |
| 18950 if (n == "true") return true; |
| 18951 if (n == "false") return false; |
| 18952 if (n == null) return null; |
| 18953 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18954 } |
| 18955 if (query.length > 0) { |
| 18956 for (var part in query.split("&")) { |
| 18957 var keyvalue = part.split("="); |
| 18958 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18959 } |
| 18960 } |
| 18961 |
| 18962 |
| 18963 var h = { |
| 18964 "content-type" : "application/json; charset=utf-8", |
| 18965 }; |
| 18966 var resp = convert.JSON.encode(buildPlacementStrategy()); |
| 18967 return new async.Future.value(stringResponse(200, h, resp)); |
| 18968 }), true); |
| 18969 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementSt
rategy response) { |
| 18970 checkPlacementStrategy(response); |
| 18971 }))); |
| 18972 }); |
| 18973 |
| 18974 unittest.test("method--insert", () { |
| 18975 |
| 18976 var mock = new HttpServerMock(); |
| 18977 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 18978 var arg_request = buildPlacementStrategy(); |
| 18979 var arg_profileId = "foo"; |
| 18980 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18981 var obj = new api.PlacementStrategy.fromJson(json); |
| 18982 checkPlacementStrategy(obj); |
| 18983 |
| 18984 var path = (req.url).path; |
| 18985 var pathOffset = 0; |
| 18986 var index; |
| 18987 var subPart; |
| 18988 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18989 pathOffset += 1; |
| 18990 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 18991 pathOffset += 18; |
| 18992 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 18993 pathOffset += 13; |
| 18994 index = path.indexOf("/placementStrategies", pathOffset); |
| 18995 unittest.expect(index >= 0, unittest.isTrue); |
| 18996 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 18997 pathOffset = index; |
| 18998 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 18999 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); |
| 19000 pathOffset += 20; |
| 19001 |
| 19002 var query = (req.url).query; |
| 19003 var queryOffset = 0; |
| 19004 var queryMap = {}; |
| 19005 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19006 parseBool(n) { |
| 19007 if (n == "true") return true; |
| 19008 if (n == "false") return false; |
| 19009 if (n == null) return null; |
| 19010 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19011 } |
| 19012 if (query.length > 0) { |
| 19013 for (var part in query.split("&")) { |
| 19014 var keyvalue = part.split("="); |
| 19015 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19016 } |
| 19017 } |
| 19018 |
| 19019 |
| 19020 var h = { |
| 19021 "content-type" : "application/json; charset=utf-8", |
| 19022 }; |
| 19023 var resp = convert.JSON.encode(buildPlacementStrategy()); |
| 19024 return new async.Future.value(stringResponse(200, h, resp)); |
| 19025 }), true); |
| 19026 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementStrategy response) { |
| 19027 checkPlacementStrategy(response); |
| 19028 }))); |
| 19029 }); |
| 19030 |
| 19031 unittest.test("method--list", () { |
| 19032 |
| 19033 var mock = new HttpServerMock(); |
| 19034 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 19035 var arg_profileId = "foo"; |
| 19036 var arg_ids = buildUnnamed1281(); |
| 19037 var arg_maxResults = 42; |
| 19038 var arg_pageToken = "foo"; |
| 19039 var arg_searchString = "foo"; |
| 19040 var arg_sortField = "foo"; |
| 19041 var arg_sortOrder = "foo"; |
| 19042 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19043 var path = (req.url).path; |
| 19044 var pathOffset = 0; |
| 19045 var index; |
| 19046 var subPart; |
| 19047 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19048 pathOffset += 1; |
| 19049 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 19050 pathOffset += 18; |
| 19051 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19052 pathOffset += 13; |
| 19053 index = path.indexOf("/placementStrategies", pathOffset); |
| 19054 unittest.expect(index >= 0, unittest.isTrue); |
| 19055 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19056 pathOffset = index; |
| 19057 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19058 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); |
| 19059 pathOffset += 20; |
| 19060 |
| 19061 var query = (req.url).query; |
| 19062 var queryOffset = 0; |
| 19063 var queryMap = {}; |
| 19064 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19065 parseBool(n) { |
| 19066 if (n == "true") return true; |
| 19067 if (n == "false") return false; |
| 19068 if (n == null) return null; |
| 19069 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19070 } |
| 19071 if (query.length > 0) { |
| 19072 for (var part in query.split("&")) { |
| 19073 var keyvalue = part.split("="); |
| 19074 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19075 } |
| 19076 } |
| 19077 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 19078 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 19079 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 19080 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 19081 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 19082 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 19083 |
| 19084 |
| 19085 var h = { |
| 19086 "content-type" : "application/json; charset=utf-8", |
| 19087 }; |
| 19088 var resp = convert.JSON.encode(buildPlacementStrategiesListResponse()); |
| 19089 return new async.Future.value(stringResponse(200, h, resp)); |
| 19090 }), true); |
| 19091 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) { |
| 19092 checkPlacementStrategiesListResponse(response); |
| 19093 }))); |
| 19094 }); |
| 19095 |
| 19096 unittest.test("method--patch", () { |
| 19097 |
| 19098 var mock = new HttpServerMock(); |
| 19099 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 19100 var arg_request = buildPlacementStrategy(); |
| 19101 var arg_profileId = "foo"; |
| 19102 var arg_id = "foo"; |
| 19103 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19104 var obj = new api.PlacementStrategy.fromJson(json); |
| 19105 checkPlacementStrategy(obj); |
| 19106 |
| 19107 var path = (req.url).path; |
| 19108 var pathOffset = 0; |
| 19109 var index; |
| 19110 var subPart; |
| 19111 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19112 pathOffset += 1; |
| 19113 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 19114 pathOffset += 18; |
| 19115 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19116 pathOffset += 13; |
| 19117 index = path.indexOf("/placementStrategies", pathOffset); |
| 19118 unittest.expect(index >= 0, unittest.isTrue); |
| 19119 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19120 pathOffset = index; |
| 19121 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19122 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); |
| 19123 pathOffset += 20; |
| 19124 |
| 19125 var query = (req.url).query; |
| 19126 var queryOffset = 0; |
| 19127 var queryMap = {}; |
| 19128 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19129 parseBool(n) { |
| 19130 if (n == "true") return true; |
| 19131 if (n == "false") return false; |
| 19132 if (n == null) return null; |
| 19133 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19134 } |
| 19135 if (query.length > 0) { |
| 19136 for (var part in query.split("&")) { |
| 19137 var keyvalue = part.split("="); |
| 19138 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19139 } |
| 19140 } |
| 19141 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
| 19142 |
| 19143 |
| 19144 var h = { |
| 19145 "content-type" : "application/json; charset=utf-8", |
| 19146 }; |
| 19147 var resp = convert.JSON.encode(buildPlacementStrategy()); |
| 19148 return new async.Future.value(stringResponse(200, h, resp)); |
| 19149 }), true); |
| 19150 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.PlacementStrategy response) { |
| 19151 checkPlacementStrategy(response); |
| 19152 }))); |
| 19153 }); |
| 19154 |
| 19155 unittest.test("method--update", () { |
| 19156 |
| 19157 var mock = new HttpServerMock(); |
| 19158 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; |
| 19159 var arg_request = buildPlacementStrategy(); |
| 19160 var arg_profileId = "foo"; |
| 19161 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19162 var obj = new api.PlacementStrategy.fromJson(json); |
| 19163 checkPlacementStrategy(obj); |
| 19164 |
| 19165 var path = (req.url).path; |
| 19166 var pathOffset = 0; |
| 19167 var index; |
| 19168 var subPart; |
| 19169 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19170 pathOffset += 1; |
| 19171 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 19172 pathOffset += 18; |
| 19173 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19174 pathOffset += 13; |
| 19175 index = path.indexOf("/placementStrategies", pathOffset); |
| 19176 unittest.expect(index >= 0, unittest.isTrue); |
| 19177 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19178 pathOffset = index; |
| 19179 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19180 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); |
| 19181 pathOffset += 20; |
| 19182 |
| 19183 var query = (req.url).query; |
| 19184 var queryOffset = 0; |
| 19185 var queryMap = {}; |
| 19186 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19187 parseBool(n) { |
| 19188 if (n == "true") return true; |
| 19189 if (n == "false") return false; |
| 19190 if (n == null) return null; |
| 19191 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19192 } |
| 19193 if (query.length > 0) { |
| 19194 for (var part in query.split("&")) { |
| 19195 var keyvalue = part.split("="); |
| 19196 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19197 } |
| 19198 } |
| 19199 |
| 19200 |
| 19201 var h = { |
| 19202 "content-type" : "application/json; charset=utf-8", |
| 19203 }; |
| 19204 var resp = convert.JSON.encode(buildPlacementStrategy()); |
| 19205 return new async.Future.value(stringResponse(200, h, resp)); |
| 19206 }), true); |
| 19207 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementStrategy response) { |
| 19208 checkPlacementStrategy(response); |
| 19209 }))); |
| 19210 }); |
| 19211 |
| 19212 }); |
| 19213 |
| 19214 |
| 19215 unittest.group("resource-PlacementsResourceApi", () { |
| 19216 unittest.test("method--generatetags", () { |
| 19217 |
| 19218 var mock = new HttpServerMock(); |
| 19219 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19220 var arg_profileId = "foo"; |
| 19221 var arg_campaignId = "foo"; |
| 19222 var arg_placementIds = buildUnnamed1282(); |
| 19223 var arg_tagFormats = buildUnnamed1283(); |
| 19224 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19225 var path = (req.url).path; |
| 19226 var pathOffset = 0; |
| 19227 var index; |
| 19228 var subPart; |
| 19229 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19230 pathOffset += 1; |
| 19231 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 19232 pathOffset += 18; |
| 19233 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19234 pathOffset += 13; |
| 19235 index = path.indexOf("/placements/generatetags", pathOffset); |
| 19236 unittest.expect(index >= 0, unittest.isTrue); |
| 19237 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19238 pathOffset = index; |
| 19239 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19240 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/placements/generatetags")); |
| 19241 pathOffset += 24; |
| 19242 |
| 19243 var query = (req.url).query; |
| 19244 var queryOffset = 0; |
| 19245 var queryMap = {}; |
| 19246 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19247 parseBool(n) { |
| 19248 if (n == "true") return true; |
| 19249 if (n == "false") return false; |
| 19250 if (n == null) return null; |
| 19251 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19252 } |
| 19253 if (query.length > 0) { |
| 19254 for (var part in query.split("&")) { |
| 19255 var keyvalue = part.split("="); |
| 19256 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19257 } |
| 19258 } |
| 19259 unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campai
gnId)); |
| 19260 unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementI
ds)); |
| 19261 unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats))
; |
| 19262 |
| 19263 |
| 19264 var h = { |
| 19265 "content-type" : "application/json; charset=utf-8", |
| 19266 }; |
| 19267 var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse()); |
| 19268 return new async.Future.value(stringResponse(200, h, resp)); |
| 19269 }), true); |
| 19270 res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds:
arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.Pl
acementsGenerateTagsResponse response) { |
| 19271 checkPlacementsGenerateTagsResponse(response); |
| 19272 }))); |
| 19273 }); |
| 19274 |
| 19275 unittest.test("method--get", () { |
| 19276 |
| 19277 var mock = new HttpServerMock(); |
| 19278 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19279 var arg_profileId = "foo"; |
| 19280 var arg_id = "foo"; |
| 19281 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19282 var path = (req.url).path; |
| 19283 var pathOffset = 0; |
| 19284 var index; |
| 19285 var subPart; |
| 19286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19287 pathOffset += 1; |
| 19288 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 19289 pathOffset += 18; |
| 19290 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19291 pathOffset += 13; |
| 19292 index = path.indexOf("/placements/", pathOffset); |
| 19293 unittest.expect(index >= 0, unittest.isTrue); |
| 19294 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19295 pathOffset = index; |
| 19296 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19297 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/placements/")); |
| 19298 pathOffset += 12; |
| 19299 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 19300 pathOffset = path.length; |
| 19301 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 19302 |
| 19303 var query = (req.url).query; |
| 19304 var queryOffset = 0; |
| 19305 var queryMap = {}; |
| 19306 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19307 parseBool(n) { |
| 19308 if (n == "true") return true; |
| 19309 if (n == "false") return false; |
| 19310 if (n == null) return null; |
| 19311 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19312 } |
| 19313 if (query.length > 0) { |
| 19314 for (var part in query.split("&")) { |
| 19315 var keyvalue = part.split("="); |
| 19316 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19317 } |
| 19318 } |
| 19319 |
| 19320 |
| 19321 var h = { |
| 19322 "content-type" : "application/json; charset=utf-8", |
| 19323 }; |
| 19324 var resp = convert.JSON.encode(buildPlacement()); |
| 19325 return new async.Future.value(stringResponse(200, h, resp)); |
| 19326 }), true); |
| 19327 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement r
esponse) { |
| 19328 checkPlacement(response); |
| 19329 }))); |
| 19330 }); |
| 19331 |
| 19332 unittest.test("method--insert", () { |
| 19333 |
| 19334 var mock = new HttpServerMock(); |
| 19335 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19336 var arg_request = buildPlacement(); |
| 19337 var arg_profileId = "foo"; |
| 19338 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19339 var obj = new api.Placement.fromJson(json); |
| 19340 checkPlacement(obj); |
| 19341 |
| 19342 var path = (req.url).path; |
| 19343 var pathOffset = 0; |
| 19344 var index; |
| 19345 var subPart; |
| 19346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19347 pathOffset += 1; |
| 19348 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 19349 pathOffset += 18; |
| 19350 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19351 pathOffset += 13; |
| 19352 index = path.indexOf("/placements", pathOffset); |
| 19353 unittest.expect(index >= 0, unittest.isTrue); |
| 19354 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19355 pathOffset = index; |
| 19356 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19357 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); |
| 19358 pathOffset += 11; |
| 19359 |
| 19360 var query = (req.url).query; |
| 19361 var queryOffset = 0; |
| 19362 var queryMap = {}; |
| 19363 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19364 parseBool(n) { |
| 19365 if (n == "true") return true; |
| 19366 if (n == "false") return false; |
| 19367 if (n == null) return null; |
| 19368 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19369 } |
| 19370 if (query.length > 0) { |
| 19371 for (var part in query.split("&")) { |
| 19372 var keyvalue = part.split("="); |
| 19373 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19374 } |
| 19375 } |
| 19376 |
| 19377 |
| 19378 var h = { |
| 19379 "content-type" : "application/json; charset=utf-8", |
| 19380 }; |
| 19381 var resp = convert.JSON.encode(buildPlacement()); |
| 19382 return new async.Future.value(stringResponse(200, h, resp)); |
| 19383 }), true); |
| 19384 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cement response) { |
| 19385 checkPlacement(response); |
| 19386 }))); |
| 19387 }); |
| 19388 |
| 19389 unittest.test("method--list", () { |
| 19390 |
| 19391 var mock = new HttpServerMock(); |
| 19392 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19393 var arg_profileId = "foo"; |
| 19394 var arg_advertiserIds = buildUnnamed1284(); |
| 19395 var arg_archived = true; |
| 19396 var arg_campaignIds = buildUnnamed1285(); |
| 19397 var arg_compatibilities = buildUnnamed1286(); |
| 19398 var arg_contentCategoryIds = buildUnnamed1287(); |
| 19399 var arg_directorySiteIds = buildUnnamed1288(); |
| 19400 var arg_groupIds = buildUnnamed1289(); |
| 19401 var arg_ids = buildUnnamed1290(); |
| 19402 var arg_maxResults = 42; |
| 19403 var arg_pageToken = "foo"; |
| 19404 var arg_paymentSource = "foo"; |
| 19405 var arg_placementStrategyIds = buildUnnamed1291(); |
| 19406 var arg_pricingTypes = buildUnnamed1292(); |
| 19407 var arg_searchString = "foo"; |
| 19408 var arg_siteIds = buildUnnamed1293(); |
| 19409 var arg_sizeIds = buildUnnamed1294(); |
| 19410 var arg_sortField = "foo"; |
| 19411 var arg_sortOrder = "foo"; |
| 19412 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19413 var path = (req.url).path; |
| 19414 var pathOffset = 0; |
| 19415 var index; |
| 19416 var subPart; |
| 19417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19418 pathOffset += 1; |
| 19419 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 19420 pathOffset += 18; |
| 19421 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 19422 pathOffset += 13; |
| 19423 index = path.indexOf("/placements", pathOffset); |
| 19424 unittest.expect(index >= 0, unittest.isTrue); |
| 19425 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 19426 pathOffset = index; |
| 19427 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 19428 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); |
| 19429 pathOffset += 11; |
| 19430 |
| 19431 var query = (req.url).query; |
| 19432 var queryOffset = 0; |
| 19433 var queryMap = {}; |
| 19434 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19435 parseBool(n) { |
| 19436 if (n == "true") return true; |
| 19437 if (n == "false") return false; |
| 19438 if (n == null) return null; |
| 19439 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19440 } |
| 19441 if (query.length > 0) { |
| 19442 for (var part in query.split("&")) { |
| 19443 var keyvalue = part.split("="); |
| 19444 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19445 } |
| 19446 } |
| 19447 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); |
| 19448 unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archiv
ed")); |
| 19449 unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds
)); |
| 19450 unittest.expect(queryMap["compatibilities"], unittest.equals(arg_compati
bilities)); |
| 19451 unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_cont
entCategoryIds)); |
| 19452 unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_direct
orySiteIds)); |
| 19453 unittest.expect(queryMap["groupIds"], unittest.equals(arg_groupIds)); |
| 19454 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 19455 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 19456 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 19457 unittest.expect(queryMap["paymentSource"].first, unittest.equals(arg_pay
mentSource)); |
| 19458 unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_pl
acementStrategyIds)); |
| 19459 unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTyp
es)); |
| 19460 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 19461 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); |
| 19462 unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); |
| 19463 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 19464 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 19465 |
| 19466 |
| 19467 var h = { |
| 19468 "content-type" : "application/json; charset=utf-8", |
| 19469 }; |
| 19470 var resp = convert.JSON.encode(buildPlacementsListResponse()); |
| 19471 return new async.Future.value(stringResponse(200, h, resp)); |
| 19472 }), true); |
| 19473 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) { |
| 19474 checkPlacementsListResponse(response); |
| 19475 }))); |
| 19476 }); |
| 19477 |
| 19478 unittest.test("method--patch", () { |
| 19479 |
| 19480 var mock = new HttpServerMock(); |
| 19481 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
| 19482 var arg_request = buildPlacement(); |
| 19483 var arg_profileId = "foo"; |
| 19484 var arg_id = "foo"; |
| 19485 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 19486 var obj = new api.Placement.fromJson(json); |
| 19487 checkPlacement(obj); |
| 19488 |
| 19489 var path = (req.url).path; |
| 19490 var pathOffset = 0; |
16774 var index; | 19491 var index; |
16775 var subPart; | 19492 var subPart; |
16776 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19493 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16777 pathOffset += 1; | 19494 pathOffset += 1; |
16778 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19495 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16779 pathOffset += 18; | 19496 pathOffset += 18; |
16780 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19497 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16781 pathOffset += 13; | 19498 pathOffset += 13; |
16782 index = path.indexOf("/placementGroups", pathOffset); | 19499 index = path.indexOf("/placements", pathOffset); |
16783 unittest.expect(index >= 0, unittest.isTrue); | 19500 unittest.expect(index >= 0, unittest.isTrue); |
16784 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19501 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16785 pathOffset = index; | 19502 pathOffset = index; |
16786 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19503 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16787 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); | 19504 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); |
16788 pathOffset += 16; | 19505 pathOffset += 11; |
16789 | 19506 |
16790 var query = (req.url).query; | 19507 var query = (req.url).query; |
16791 var queryOffset = 0; | 19508 var queryOffset = 0; |
16792 var queryMap = {}; | 19509 var queryMap = {}; |
16793 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19510 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16794 parseBool(n) { | 19511 parseBool(n) { |
16795 if (n == "true") return true; | 19512 if (n == "true") return true; |
16796 if (n == "false") return false; | 19513 if (n == "false") return false; |
16797 if (n == null) return null; | 19514 if (n == null) return null; |
16798 throw new core.ArgumentError("Invalid boolean: $n"); | 19515 throw new core.ArgumentError("Invalid boolean: $n"); |
16799 } | 19516 } |
16800 if (query.length > 0) { | 19517 if (query.length > 0) { |
16801 for (var part in query.split("&")) { | 19518 for (var part in query.split("&")) { |
16802 var keyvalue = part.split("="); | 19519 var keyvalue = part.split("="); |
16803 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19520 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16804 } | 19521 } |
16805 } | 19522 } |
16806 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 19523 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
16807 | 19524 |
16808 | 19525 |
16809 var h = { | 19526 var h = { |
16810 "content-type" : "application/json; charset=utf-8", | 19527 "content-type" : "application/json; charset=utf-8", |
16811 }; | 19528 }; |
16812 var resp = convert.JSON.encode(buildPlacementGroup()); | 19529 var resp = convert.JSON.encode(buildPlacement()); |
16813 return new async.Future.value(stringResponse(200, h, resp)); | 19530 return new async.Future.value(stringResponse(200, h, resp)); |
16814 }), true); | 19531 }), true); |
16815 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.PlacementGroup response) { | 19532 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.Placement response) { |
16816 checkPlacementGroup(response); | 19533 checkPlacement(response); |
16817 }))); | 19534 }))); |
16818 }); | 19535 }); |
16819 | 19536 |
16820 unittest.test("method--update", () { | 19537 unittest.test("method--update", () { |
16821 | 19538 |
16822 var mock = new HttpServerMock(); | 19539 var mock = new HttpServerMock(); |
16823 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme
ntGroups; | 19540 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; |
16824 var arg_request = buildPlacementGroup(); | 19541 var arg_request = buildPlacement(); |
16825 var arg_profileId = "foo"; | 19542 var arg_profileId = "foo"; |
16826 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19543 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16827 var obj = new api.PlacementGroup.fromJson(json); | 19544 var obj = new api.Placement.fromJson(json); |
16828 checkPlacementGroup(obj); | 19545 checkPlacement(obj); |
16829 | 19546 |
16830 var path = (req.url).path; | 19547 var path = (req.url).path; |
16831 var pathOffset = 0; | 19548 var pathOffset = 0; |
16832 var index; | 19549 var index; |
16833 var subPart; | 19550 var subPart; |
16834 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19551 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16835 pathOffset += 1; | 19552 pathOffset += 1; |
16836 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19553 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16837 pathOffset += 18; | 19554 pathOffset += 18; |
16838 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19555 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16839 pathOffset += 13; | 19556 pathOffset += 13; |
16840 index = path.indexOf("/placementGroups", pathOffset); | 19557 index = path.indexOf("/placements", pathOffset); |
16841 unittest.expect(index >= 0, unittest.isTrue); | 19558 unittest.expect(index >= 0, unittest.isTrue); |
16842 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19559 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16843 pathOffset = index; | 19560 pathOffset = index; |
16844 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19561 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16845 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/placementGroups")); | 19562 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); |
16846 pathOffset += 16; | 19563 pathOffset += 11; |
16847 | 19564 |
16848 var query = (req.url).query; | 19565 var query = (req.url).query; |
16849 var queryOffset = 0; | 19566 var queryOffset = 0; |
16850 var queryMap = {}; | 19567 var queryMap = {}; |
16851 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19568 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16852 parseBool(n) { | 19569 parseBool(n) { |
16853 if (n == "true") return true; | 19570 if (n == "true") return true; |
16854 if (n == "false") return false; | 19571 if (n == "false") return false; |
16855 if (n == null) return null; | 19572 if (n == null) return null; |
16856 throw new core.ArgumentError("Invalid boolean: $n"); | 19573 throw new core.ArgumentError("Invalid boolean: $n"); |
16857 } | 19574 } |
16858 if (query.length > 0) { | 19575 if (query.length > 0) { |
16859 for (var part in query.split("&")) { | 19576 for (var part in query.split("&")) { |
16860 var keyvalue = part.split("="); | 19577 var keyvalue = part.split("="); |
16861 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19578 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16862 } | 19579 } |
16863 } | 19580 } |
16864 | 19581 |
16865 | 19582 |
16866 var h = { | 19583 var h = { |
16867 "content-type" : "application/json; charset=utf-8", | 19584 "content-type" : "application/json; charset=utf-8", |
16868 }; | 19585 }; |
16869 var resp = convert.JSON.encode(buildPlacementGroup()); | 19586 var resp = convert.JSON.encode(buildPlacement()); |
16870 return new async.Future.value(stringResponse(200, h, resp)); | 19587 return new async.Future.value(stringResponse(200, h, resp)); |
16871 }), true); | 19588 }), true); |
16872 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementGroup response) { | 19589 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cement response) { |
16873 checkPlacementGroup(response); | 19590 checkPlacement(response); |
16874 }))); | 19591 }))); |
16875 }); | 19592 }); |
16876 | 19593 |
16877 }); | 19594 }); |
16878 | 19595 |
16879 | 19596 |
16880 unittest.group("resource-PlacementStrategiesResourceApi", () { | 19597 unittest.group("resource-PlatformTypesResourceApi", () { |
16881 unittest.test("method--delete", () { | 19598 unittest.test("method--get", () { |
16882 | 19599 |
16883 var mock = new HttpServerMock(); | 19600 var mock = new HttpServerMock(); |
16884 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 19601 api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformT
ypes; |
16885 var arg_profileId = "foo"; | 19602 var arg_profileId = "foo"; |
16886 var arg_id = "foo"; | 19603 var arg_id = "foo"; |
16887 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19604 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16888 var path = (req.url).path; | 19605 var path = (req.url).path; |
16889 var pathOffset = 0; | 19606 var pathOffset = 0; |
16890 var index; | 19607 var index; |
16891 var subPart; | 19608 var subPart; |
16892 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16893 pathOffset += 1; | 19610 pathOffset += 1; |
16894 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19611 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16895 pathOffset += 18; | 19612 pathOffset += 18; |
16896 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19613 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16897 pathOffset += 13; | 19614 pathOffset += 13; |
16898 index = path.indexOf("/placementStrategies/", pathOffset); | 19615 index = path.indexOf("/platformTypes/", pathOffset); |
16899 unittest.expect(index >= 0, unittest.isTrue); | 19616 unittest.expect(index >= 0, unittest.isTrue); |
16900 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19617 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16901 pathOffset = index; | 19618 pathOffset = index; |
16902 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19619 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16903 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/placementStrategies/")); | 19620 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/platformTypes/")); |
16904 pathOffset += 21; | 19621 pathOffset += 15; |
16905 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 19622 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
16906 pathOffset = path.length; | 19623 pathOffset = path.length; |
16907 unittest.expect(subPart, unittest.equals("$arg_id")); | 19624 unittest.expect(subPart, unittest.equals("$arg_id")); |
16908 | 19625 |
16909 var query = (req.url).query; | 19626 var query = (req.url).query; |
16910 var queryOffset = 0; | 19627 var queryOffset = 0; |
16911 var queryMap = {}; | 19628 var queryMap = {}; |
16912 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19629 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16913 parseBool(n) { | 19630 parseBool(n) { |
16914 if (n == "true") return true; | 19631 if (n == "true") return true; |
16915 if (n == "false") return false; | 19632 if (n == "false") return false; |
16916 if (n == null) return null; | 19633 if (n == null) return null; |
16917 throw new core.ArgumentError("Invalid boolean: $n"); | 19634 throw new core.ArgumentError("Invalid boolean: $n"); |
16918 } | 19635 } |
16919 if (query.length > 0) { | 19636 if (query.length > 0) { |
16920 for (var part in query.split("&")) { | 19637 for (var part in query.split("&")) { |
16921 var keyvalue = part.split("="); | 19638 var keyvalue = part.split("="); |
16922 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19639 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16923 } | 19640 } |
16924 } | 19641 } |
16925 | 19642 |
16926 | 19643 |
16927 var h = { | 19644 var h = { |
16928 "content-type" : "application/json; charset=utf-8", | 19645 "content-type" : "application/json; charset=utf-8", |
16929 }; | 19646 }; |
16930 var resp = ""; | 19647 var resp = convert.JSON.encode(buildPlatformType()); |
16931 return new async.Future.value(stringResponse(200, h, resp)); | 19648 return new async.Future.value(stringResponse(200, h, resp)); |
16932 }), true); | 19649 }), true); |
16933 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); | 19650 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlatformTyp
e response) { |
| 19651 checkPlatformType(response); |
| 19652 }))); |
16934 }); | 19653 }); |
16935 | 19654 |
16936 unittest.test("method--get", () { | 19655 unittest.test("method--list", () { |
16937 | 19656 |
16938 var mock = new HttpServerMock(); | 19657 var mock = new HttpServerMock(); |
16939 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 19658 api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformT
ypes; |
16940 var arg_profileId = "foo"; | 19659 var arg_profileId = "foo"; |
16941 var arg_id = "foo"; | |
16942 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19660 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16943 var path = (req.url).path; | 19661 var path = (req.url).path; |
16944 var pathOffset = 0; | 19662 var pathOffset = 0; |
16945 var index; | 19663 var index; |
16946 var subPart; | 19664 var subPart; |
16947 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19665 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16948 pathOffset += 1; | 19666 pathOffset += 1; |
16949 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19667 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
16950 pathOffset += 18; | 19668 pathOffset += 18; |
16951 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19669 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
16952 pathOffset += 13; | 19670 pathOffset += 13; |
16953 index = path.indexOf("/placementStrategies/", pathOffset); | 19671 index = path.indexOf("/platformTypes", pathOffset); |
16954 unittest.expect(index >= 0, unittest.isTrue); | 19672 unittest.expect(index >= 0, unittest.isTrue); |
16955 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19673 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
16956 pathOffset = index; | 19674 pathOffset = index; |
16957 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19675 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
16958 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/placementStrategies/")); | 19676 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/platformTypes")); |
16959 pathOffset += 21; | 19677 pathOffset += 14; |
16960 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
16961 pathOffset = path.length; | |
16962 unittest.expect(subPart, unittest.equals("$arg_id")); | |
16963 | 19678 |
16964 var query = (req.url).query; | 19679 var query = (req.url).query; |
16965 var queryOffset = 0; | 19680 var queryOffset = 0; |
16966 var queryMap = {}; | 19681 var queryMap = {}; |
16967 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19682 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16968 parseBool(n) { | 19683 parseBool(n) { |
16969 if (n == "true") return true; | 19684 if (n == "true") return true; |
16970 if (n == "false") return false; | 19685 if (n == "false") return false; |
16971 if (n == null) return null; | 19686 if (n == null) return null; |
16972 throw new core.ArgumentError("Invalid boolean: $n"); | 19687 throw new core.ArgumentError("Invalid boolean: $n"); |
16973 } | 19688 } |
16974 if (query.length > 0) { | 19689 if (query.length > 0) { |
16975 for (var part in query.split("&")) { | 19690 for (var part in query.split("&")) { |
16976 var keyvalue = part.split("="); | 19691 var keyvalue = part.split("="); |
16977 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19692 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16978 } | 19693 } |
16979 } | 19694 } |
16980 | 19695 |
16981 | 19696 |
16982 var h = { | 19697 var h = { |
16983 "content-type" : "application/json; charset=utf-8", | 19698 "content-type" : "application/json; charset=utf-8", |
16984 }; | 19699 }; |
16985 var resp = convert.JSON.encode(buildPlacementStrategy()); | 19700 var resp = convert.JSON.encode(buildPlatformTypesListResponse()); |
16986 return new async.Future.value(stringResponse(200, h, resp)); | 19701 return new async.Future.value(stringResponse(200, h, resp)); |
16987 }), true); | 19702 }), true); |
16988 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementSt
rategy response) { | 19703 res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListR
esponse response) { |
16989 checkPlacementStrategy(response); | 19704 checkPlatformTypesListResponse(response); |
16990 }))); | 19705 }))); |
16991 }); | 19706 }); |
16992 | 19707 |
16993 unittest.test("method--insert", () { | 19708 }); |
| 19709 |
| 19710 |
| 19711 unittest.group("resource-PostalCodesResourceApi", () { |
| 19712 unittest.test("method--get", () { |
16994 | 19713 |
16995 var mock = new HttpServerMock(); | 19714 var mock = new HttpServerMock(); |
16996 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 19715 api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes
; |
16997 var arg_request = buildPlacementStrategy(); | |
16998 var arg_profileId = "foo"; | 19716 var arg_profileId = "foo"; |
| 19717 var arg_code = "foo"; |
16999 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19718 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17000 var obj = new api.PlacementStrategy.fromJson(json); | |
17001 checkPlacementStrategy(obj); | |
17002 | |
17003 var path = (req.url).path; | 19719 var path = (req.url).path; |
17004 var pathOffset = 0; | 19720 var pathOffset = 0; |
17005 var index; | 19721 var index; |
17006 var subPart; | 19722 var subPart; |
17007 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19723 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17008 pathOffset += 1; | 19724 pathOffset += 1; |
17009 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19725 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17010 pathOffset += 18; | 19726 pathOffset += 18; |
17011 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19727 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17012 pathOffset += 13; | 19728 pathOffset += 13; |
17013 index = path.indexOf("/placementStrategies", pathOffset); | 19729 index = path.indexOf("/postalCodes/", pathOffset); |
17014 unittest.expect(index >= 0, unittest.isTrue); | 19730 unittest.expect(index >= 0, unittest.isTrue); |
17015 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19731 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17016 pathOffset = index; | 19732 pathOffset = index; |
17017 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19733 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17018 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); | 19734 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/postalCodes/")); |
17019 pathOffset += 20; | 19735 pathOffset += 13; |
| 19736 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 19737 pathOffset = path.length; |
| 19738 unittest.expect(subPart, unittest.equals("$arg_code")); |
17020 | 19739 |
17021 var query = (req.url).query; | 19740 var query = (req.url).query; |
17022 var queryOffset = 0; | 19741 var queryOffset = 0; |
17023 var queryMap = {}; | 19742 var queryMap = {}; |
17024 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19743 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17025 parseBool(n) { | 19744 parseBool(n) { |
17026 if (n == "true") return true; | 19745 if (n == "true") return true; |
17027 if (n == "false") return false; | 19746 if (n == "false") return false; |
17028 if (n == null) return null; | 19747 if (n == null) return null; |
17029 throw new core.ArgumentError("Invalid boolean: $n"); | 19748 throw new core.ArgumentError("Invalid boolean: $n"); |
17030 } | 19749 } |
17031 if (query.length > 0) { | 19750 if (query.length > 0) { |
17032 for (var part in query.split("&")) { | 19751 for (var part in query.split("&")) { |
17033 var keyvalue = part.split("="); | 19752 var keyvalue = part.split("="); |
17034 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19753 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17035 } | 19754 } |
17036 } | 19755 } |
17037 | 19756 |
17038 | 19757 |
17039 var h = { | 19758 var h = { |
17040 "content-type" : "application/json; charset=utf-8", | 19759 "content-type" : "application/json; charset=utf-8", |
17041 }; | 19760 }; |
17042 var resp = convert.JSON.encode(buildPlacementStrategy()); | 19761 var resp = convert.JSON.encode(buildPostalCode()); |
17043 return new async.Future.value(stringResponse(200, h, resp)); | 19762 return new async.Future.value(stringResponse(200, h, resp)); |
17044 }), true); | 19763 }), true); |
17045 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementStrategy response) { | 19764 res.get(arg_profileId, arg_code).then(unittest.expectAsync(((api.PostalCod
e response) { |
17046 checkPlacementStrategy(response); | 19765 checkPostalCode(response); |
17047 }))); | 19766 }))); |
17048 }); | 19767 }); |
17049 | 19768 |
17050 unittest.test("method--list", () { | 19769 unittest.test("method--list", () { |
17051 | 19770 |
17052 var mock = new HttpServerMock(); | 19771 var mock = new HttpServerMock(); |
17053 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 19772 api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes
; |
17054 var arg_profileId = "foo"; | 19773 var arg_profileId = "foo"; |
17055 var arg_ids = buildUnnamed472(); | |
17056 var arg_maxResults = 42; | |
17057 var arg_pageToken = "foo"; | |
17058 var arg_searchString = "foo"; | |
17059 var arg_sortField = "foo"; | |
17060 var arg_sortOrder = "foo"; | |
17061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19774 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17062 var path = (req.url).path; | 19775 var path = (req.url).path; |
17063 var pathOffset = 0; | 19776 var pathOffset = 0; |
17064 var index; | 19777 var index; |
17065 var subPart; | 19778 var subPart; |
17066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19779 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17067 pathOffset += 1; | 19780 pathOffset += 1; |
17068 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19781 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17069 pathOffset += 18; | 19782 pathOffset += 18; |
17070 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19783 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17071 pathOffset += 13; | 19784 pathOffset += 13; |
17072 index = path.indexOf("/placementStrategies", pathOffset); | 19785 index = path.indexOf("/postalCodes", pathOffset); |
17073 unittest.expect(index >= 0, unittest.isTrue); | 19786 unittest.expect(index >= 0, unittest.isTrue); |
17074 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19787 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17075 pathOffset = index; | 19788 pathOffset = index; |
17076 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19789 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17077 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); | 19790 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/postalCodes")); |
17078 pathOffset += 20; | 19791 pathOffset += 12; |
17079 | 19792 |
17080 var query = (req.url).query; | 19793 var query = (req.url).query; |
17081 var queryOffset = 0; | 19794 var queryOffset = 0; |
17082 var queryMap = {}; | 19795 var queryMap = {}; |
17083 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19796 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17084 parseBool(n) { | 19797 parseBool(n) { |
17085 if (n == "true") return true; | 19798 if (n == "true") return true; |
17086 if (n == "false") return false; | 19799 if (n == "false") return false; |
17087 if (n == null) return null; | 19800 if (n == null) return null; |
17088 throw new core.ArgumentError("Invalid boolean: $n"); | 19801 throw new core.ArgumentError("Invalid boolean: $n"); |
17089 } | 19802 } |
17090 if (query.length > 0) { | 19803 if (query.length > 0) { |
17091 for (var part in query.split("&")) { | 19804 for (var part in query.split("&")) { |
17092 var keyvalue = part.split("="); | 19805 var keyvalue = part.split("="); |
17093 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19806 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17094 } | 19807 } |
17095 } | 19808 } |
17096 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); | |
17097 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
17098 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
17099 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); | |
17100 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); | |
17101 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | |
17102 | 19809 |
17103 | 19810 |
17104 var h = { | 19811 var h = { |
17105 "content-type" : "application/json; charset=utf-8", | 19812 "content-type" : "application/json; charset=utf-8", |
17106 }; | 19813 }; |
17107 var resp = convert.JSON.encode(buildPlacementStrategiesListResponse()); | 19814 var resp = convert.JSON.encode(buildPostalCodesListResponse()); |
17108 return new async.Future.value(stringResponse(200, h, resp)); | 19815 return new async.Future.value(stringResponse(200, h, resp)); |
17109 }), true); | 19816 }), 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) { | 19817 res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListRes
ponse response) { |
17111 checkPlacementStrategiesListResponse(response); | 19818 checkPostalCodesListResponse(response); |
17112 }))); | 19819 }))); |
17113 }); | 19820 }); |
17114 | 19821 |
17115 unittest.test("method--patch", () { | 19822 }); |
| 19823 |
| 19824 |
| 19825 unittest.group("resource-ProjectsResourceApi", () { |
| 19826 unittest.test("method--get", () { |
17116 | 19827 |
17117 var mock = new HttpServerMock(); | 19828 var mock = new HttpServerMock(); |
17118 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 19829 api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; |
17119 var arg_request = buildPlacementStrategy(); | |
17120 var arg_profileId = "foo"; | 19830 var arg_profileId = "foo"; |
17121 var arg_id = "foo"; | 19831 var arg_id = "foo"; |
17122 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19832 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17123 var obj = new api.PlacementStrategy.fromJson(json); | |
17124 checkPlacementStrategy(obj); | |
17125 | |
17126 var path = (req.url).path; | 19833 var path = (req.url).path; |
17127 var pathOffset = 0; | 19834 var pathOffset = 0; |
17128 var index; | 19835 var index; |
17129 var subPart; | 19836 var subPart; |
17130 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19837 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17131 pathOffset += 1; | 19838 pathOffset += 1; |
17132 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19839 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17133 pathOffset += 18; | 19840 pathOffset += 18; |
17134 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19841 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17135 pathOffset += 13; | 19842 pathOffset += 13; |
17136 index = path.indexOf("/placementStrategies", pathOffset); | 19843 index = path.indexOf("/projects/", pathOffset); |
17137 unittest.expect(index >= 0, unittest.isTrue); | 19844 unittest.expect(index >= 0, unittest.isTrue); |
17138 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19845 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17139 pathOffset = index; | 19846 pathOffset = index; |
17140 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19847 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17141 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); | 19848 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/projects/")); |
17142 pathOffset += 20; | 19849 pathOffset += 10; |
| 19850 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 19851 pathOffset = path.length; |
| 19852 unittest.expect(subPart, unittest.equals("$arg_id")); |
17143 | 19853 |
17144 var query = (req.url).query; | 19854 var query = (req.url).query; |
17145 var queryOffset = 0; | 19855 var queryOffset = 0; |
17146 var queryMap = {}; | 19856 var queryMap = {}; |
17147 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19857 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17148 parseBool(n) { | 19858 parseBool(n) { |
17149 if (n == "true") return true; | 19859 if (n == "true") return true; |
17150 if (n == "false") return false; | 19860 if (n == "false") return false; |
17151 if (n == null) return null; | 19861 if (n == null) return null; |
17152 throw new core.ArgumentError("Invalid boolean: $n"); | 19862 throw new core.ArgumentError("Invalid boolean: $n"); |
17153 } | 19863 } |
17154 if (query.length > 0) { | 19864 if (query.length > 0) { |
17155 for (var part in query.split("&")) { | 19865 for (var part in query.split("&")) { |
17156 var keyvalue = part.split("="); | 19866 var keyvalue = part.split("="); |
17157 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19867 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17158 } | 19868 } |
17159 } | 19869 } |
17160 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | |
17161 | 19870 |
17162 | 19871 |
17163 var h = { | 19872 var h = { |
17164 "content-type" : "application/json; charset=utf-8", | 19873 "content-type" : "application/json; charset=utf-8", |
17165 }; | 19874 }; |
17166 var resp = convert.JSON.encode(buildPlacementStrategy()); | 19875 var resp = convert.JSON.encode(buildProject()); |
17167 return new async.Future.value(stringResponse(200, h, resp)); | 19876 return new async.Future.value(stringResponse(200, h, resp)); |
17168 }), true); | 19877 }), true); |
17169 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.PlacementStrategy response) { | 19878 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Project res
ponse) { |
17170 checkPlacementStrategy(response); | 19879 checkProject(response); |
17171 }))); | 19880 }))); |
17172 }); | 19881 }); |
17173 | 19882 |
17174 unittest.test("method--update", () { | 19883 unittest.test("method--list", () { |
17175 | 19884 |
17176 var mock = new HttpServerMock(); | 19885 var mock = new HttpServerMock(); |
17177 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla
cementStrategies; | 19886 api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; |
17178 var arg_request = buildPlacementStrategy(); | |
17179 var arg_profileId = "foo"; | 19887 var arg_profileId = "foo"; |
| 19888 var arg_advertiserIds = buildUnnamed1295(); |
| 19889 var arg_ids = buildUnnamed1296(); |
| 19890 var arg_maxResults = 42; |
| 19891 var arg_pageToken = "foo"; |
| 19892 var arg_searchString = "foo"; |
| 19893 var arg_sortField = "foo"; |
| 19894 var arg_sortOrder = "foo"; |
17180 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19895 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17181 var obj = new api.PlacementStrategy.fromJson(json); | |
17182 checkPlacementStrategy(obj); | |
17183 | |
17184 var path = (req.url).path; | 19896 var path = (req.url).path; |
17185 var pathOffset = 0; | 19897 var pathOffset = 0; |
17186 var index; | 19898 var index; |
17187 var subPart; | 19899 var subPart; |
17188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19900 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17189 pathOffset += 1; | 19901 pathOffset += 1; |
17190 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19902 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17191 pathOffset += 18; | 19903 pathOffset += 18; |
17192 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19904 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17193 pathOffset += 13; | 19905 pathOffset += 13; |
17194 index = path.indexOf("/placementStrategies", pathOffset); | 19906 index = path.indexOf("/projects", pathOffset); |
17195 unittest.expect(index >= 0, unittest.isTrue); | 19907 unittest.expect(index >= 0, unittest.isTrue); |
17196 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19908 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17197 pathOffset = index; | 19909 pathOffset = index; |
17198 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19910 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17199 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/placementStrategies")); | 19911 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/projects")); |
17200 pathOffset += 20; | 19912 pathOffset += 9; |
17201 | 19913 |
17202 var query = (req.url).query; | 19914 var query = (req.url).query; |
17203 var queryOffset = 0; | 19915 var queryOffset = 0; |
17204 var queryMap = {}; | 19916 var queryMap = {}; |
17205 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19917 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17206 parseBool(n) { | 19918 parseBool(n) { |
17207 if (n == "true") return true; | 19919 if (n == "true") return true; |
17208 if (n == "false") return false; | 19920 if (n == "false") return false; |
17209 if (n == null) return null; | 19921 if (n == null) return null; |
17210 throw new core.ArgumentError("Invalid boolean: $n"); | 19922 throw new core.ArgumentError("Invalid boolean: $n"); |
17211 } | 19923 } |
17212 if (query.length > 0) { | 19924 if (query.length > 0) { |
17213 for (var part in query.split("&")) { | 19925 for (var part in query.split("&")) { |
17214 var keyvalue = part.split("="); | 19926 var keyvalue = part.split("="); |
17215 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19927 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17216 } | 19928 } |
17217 } | 19929 } |
| 19930 unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertise
rIds)); |
| 19931 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); |
| 19932 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 19933 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 19934 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear
chString)); |
| 19935 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 19936 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
17218 | 19937 |
17219 | 19938 |
17220 var h = { | 19939 var h = { |
17221 "content-type" : "application/json; charset=utf-8", | 19940 "content-type" : "application/json; charset=utf-8", |
17222 }; | 19941 }; |
17223 var resp = convert.JSON.encode(buildPlacementStrategy()); | 19942 var resp = convert.JSON.encode(buildProjectsListResponse()); |
17224 return new async.Future.value(stringResponse(200, h, resp)); | 19943 return new async.Future.value(stringResponse(200, h, resp)); |
17225 }), true); | 19944 }), true); |
17226 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cementStrategy response) { | 19945 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) { |
17227 checkPlacementStrategy(response); | 19946 checkProjectsListResponse(response); |
17228 }))); | 19947 }))); |
17229 }); | 19948 }); |
17230 | 19949 |
17231 }); | 19950 }); |
17232 | 19951 |
17233 | 19952 |
17234 unittest.group("resource-PlacementsResourceApi", () { | 19953 unittest.group("resource-RegionsResourceApi", () { |
17235 unittest.test("method--generatetags", () { | 19954 unittest.test("method--list", () { |
17236 | 19955 |
17237 var mock = new HttpServerMock(); | 19956 var mock = new HttpServerMock(); |
17238 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 19957 api.RegionsResourceApi res = new api.DfareportingApi(mock).regions; |
17239 var arg_profileId = "foo"; | 19958 var arg_profileId = "foo"; |
17240 var arg_campaignId = "foo"; | |
17241 var arg_placementIds = buildUnnamed473(); | |
17242 var arg_tagFormats = buildUnnamed474(); | |
17243 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 19959 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17244 var path = (req.url).path; | 19960 var path = (req.url).path; |
17245 var pathOffset = 0; | 19961 var pathOffset = 0; |
17246 var index; | 19962 var index; |
17247 var subPart; | 19963 var subPart; |
17248 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19964 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17249 pathOffset += 1; | 19965 pathOffset += 1; |
17250 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 19966 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17251 pathOffset += 18; | 19967 pathOffset += 18; |
17252 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 19968 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17253 pathOffset += 13; | 19969 pathOffset += 13; |
17254 index = path.indexOf("/placements/generatetags", pathOffset); | 19970 index = path.indexOf("/regions", pathOffset); |
17255 unittest.expect(index >= 0, unittest.isTrue); | 19971 unittest.expect(index >= 0, unittest.isTrue); |
17256 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 19972 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17257 pathOffset = index; | 19973 pathOffset = index; |
17258 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 19974 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17259 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/placements/generatetags")); | 19975 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/regions")); |
17260 pathOffset += 24; | 19976 pathOffset += 8; |
17261 | 19977 |
17262 var query = (req.url).query; | 19978 var query = (req.url).query; |
17263 var queryOffset = 0; | 19979 var queryOffset = 0; |
17264 var queryMap = {}; | 19980 var queryMap = {}; |
17265 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19981 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17266 parseBool(n) { | 19982 parseBool(n) { |
17267 if (n == "true") return true; | 19983 if (n == "true") return true; |
17268 if (n == "false") return false; | 19984 if (n == "false") return false; |
17269 if (n == null) return null; | 19985 if (n == null) return null; |
17270 throw new core.ArgumentError("Invalid boolean: $n"); | 19986 throw new core.ArgumentError("Invalid boolean: $n"); |
17271 } | 19987 } |
17272 if (query.length > 0) { | 19988 if (query.length > 0) { |
17273 for (var part in query.split("&")) { | 19989 for (var part in query.split("&")) { |
17274 var keyvalue = part.split("="); | 19990 var keyvalue = part.split("="); |
17275 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19991 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17276 } | 19992 } |
17277 } | 19993 } |
17278 unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campai
gnId)); | |
17279 unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementI
ds)); | |
17280 unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats))
; | |
17281 | 19994 |
17282 | 19995 |
17283 var h = { | 19996 var h = { |
17284 "content-type" : "application/json; charset=utf-8", | 19997 "content-type" : "application/json; charset=utf-8", |
17285 }; | 19998 }; |
17286 var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse()); | 19999 var resp = convert.JSON.encode(buildRegionsListResponse()); |
17287 return new async.Future.value(stringResponse(200, h, resp)); | 20000 return new async.Future.value(stringResponse(200, h, resp)); |
17288 }), true); | 20001 }), true); |
17289 res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds:
arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.Pl
acementsGenerateTagsResponse response) { | 20002 res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListRespons
e response) { |
17290 checkPlacementsGenerateTagsResponse(response); | 20003 checkRegionsListResponse(response); |
17291 }))); | 20004 }))); |
17292 }); | 20005 }); |
17293 | 20006 |
| 20007 }); |
| 20008 |
| 20009 |
| 20010 unittest.group("resource-RemarketingListSharesResourceApi", () { |
17294 unittest.test("method--get", () { | 20011 unittest.test("method--get", () { |
17295 | 20012 |
17296 var mock = new HttpServerMock(); | 20013 var mock = new HttpServerMock(); |
17297 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20014 api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).r
emarketingListShares; |
17298 var arg_profileId = "foo"; | 20015 var arg_profileId = "foo"; |
17299 var arg_id = "foo"; | 20016 var arg_remarketingListId = "foo"; |
17300 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20017 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17301 var path = (req.url).path; | 20018 var path = (req.url).path; |
17302 var pathOffset = 0; | 20019 var pathOffset = 0; |
17303 var index; | 20020 var index; |
17304 var subPart; | 20021 var subPart; |
17305 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20022 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17306 pathOffset += 1; | 20023 pathOffset += 1; |
17307 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20024 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17308 pathOffset += 18; | 20025 pathOffset += 18; |
17309 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20026 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17310 pathOffset += 13; | 20027 pathOffset += 13; |
17311 index = path.indexOf("/placements/", pathOffset); | 20028 index = path.indexOf("/remarketingListShares/", pathOffset); |
17312 unittest.expect(index >= 0, unittest.isTrue); | 20029 unittest.expect(index >= 0, unittest.isTrue); |
17313 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20030 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17314 pathOffset = index; | 20031 pathOffset = index; |
17315 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20032 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17316 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/placements/")); | 20033 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/remarketingListShares/")); |
17317 pathOffset += 12; | 20034 pathOffset += 23; |
17318 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 20035 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
17319 pathOffset = path.length; | 20036 pathOffset = path.length; |
17320 unittest.expect(subPart, unittest.equals("$arg_id")); | 20037 unittest.expect(subPart, unittest.equals("$arg_remarketingListId")); |
17321 | 20038 |
17322 var query = (req.url).query; | 20039 var query = (req.url).query; |
17323 var queryOffset = 0; | 20040 var queryOffset = 0; |
17324 var queryMap = {}; | 20041 var queryMap = {}; |
17325 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20042 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17326 parseBool(n) { | 20043 parseBool(n) { |
17327 if (n == "true") return true; | 20044 if (n == "true") return true; |
17328 if (n == "false") return false; | 20045 if (n == "false") return false; |
17329 if (n == null) return null; | 20046 if (n == null) return null; |
17330 throw new core.ArgumentError("Invalid boolean: $n"); | 20047 throw new core.ArgumentError("Invalid boolean: $n"); |
17331 } | 20048 } |
17332 if (query.length > 0) { | 20049 if (query.length > 0) { |
17333 for (var part in query.split("&")) { | 20050 for (var part in query.split("&")) { |
17334 var keyvalue = part.split("="); | 20051 var keyvalue = part.split("="); |
17335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20052 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17336 } | 20053 } |
17337 } | 20054 } |
17338 | 20055 |
17339 | 20056 |
17340 var h = { | 20057 var h = { |
17341 "content-type" : "application/json; charset=utf-8", | 20058 "content-type" : "application/json; charset=utf-8", |
17342 }; | 20059 }; |
17343 var resp = convert.JSON.encode(buildPlacement()); | 20060 var resp = convert.JSON.encode(buildRemarketingListShare()); |
17344 return new async.Future.value(stringResponse(200, h, resp)); | 20061 return new async.Future.value(stringResponse(200, h, resp)); |
17345 }), true); | 20062 }), true); |
17346 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement r
esponse) { | 20063 res.get(arg_profileId, arg_remarketingListId).then(unittest.expectAsync(((
api.RemarketingListShare response) { |
17347 checkPlacement(response); | 20064 checkRemarketingListShare(response); |
17348 }))); | 20065 }))); |
17349 }); | 20066 }); |
17350 | 20067 |
17351 unittest.test("method--insert", () { | 20068 unittest.test("method--patch", () { |
17352 | 20069 |
17353 var mock = new HttpServerMock(); | 20070 var mock = new HttpServerMock(); |
17354 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20071 api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).r
emarketingListShares; |
17355 var arg_request = buildPlacement(); | 20072 var arg_request = buildRemarketingListShare(); |
17356 var arg_profileId = "foo"; | 20073 var arg_profileId = "foo"; |
| 20074 var arg_remarketingListId = "foo"; |
17357 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20075 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17358 var obj = new api.Placement.fromJson(json); | 20076 var obj = new api.RemarketingListShare.fromJson(json); |
17359 checkPlacement(obj); | 20077 checkRemarketingListShare(obj); |
17360 | 20078 |
17361 var path = (req.url).path; | 20079 var path = (req.url).path; |
17362 var pathOffset = 0; | 20080 var pathOffset = 0; |
17363 var index; | 20081 var index; |
17364 var subPart; | 20082 var subPart; |
17365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17366 pathOffset += 1; | 20084 pathOffset += 1; |
17367 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20085 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17368 pathOffset += 18; | 20086 pathOffset += 18; |
17369 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20087 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17370 pathOffset += 13; | 20088 pathOffset += 13; |
17371 index = path.indexOf("/placements", pathOffset); | 20089 index = path.indexOf("/remarketingListShares", pathOffset); |
17372 unittest.expect(index >= 0, unittest.isTrue); | 20090 unittest.expect(index >= 0, unittest.isTrue); |
17373 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20091 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17374 pathOffset = index; | 20092 pathOffset = index; |
17375 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20093 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17376 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); | 20094 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/remarketingListShares")); |
17377 pathOffset += 11; | 20095 pathOffset += 22; |
17378 | 20096 |
17379 var query = (req.url).query; | 20097 var query = (req.url).query; |
17380 var queryOffset = 0; | 20098 var queryOffset = 0; |
17381 var queryMap = {}; | 20099 var queryMap = {}; |
17382 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20100 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17383 parseBool(n) { | 20101 parseBool(n) { |
17384 if (n == "true") return true; | 20102 if (n == "true") return true; |
17385 if (n == "false") return false; | 20103 if (n == "false") return false; |
17386 if (n == null) return null; | 20104 if (n == null) return null; |
17387 throw new core.ArgumentError("Invalid boolean: $n"); | 20105 throw new core.ArgumentError("Invalid boolean: $n"); |
17388 } | 20106 } |
17389 if (query.length > 0) { | 20107 if (query.length > 0) { |
17390 for (var part in query.split("&")) { | 20108 for (var part in query.split("&")) { |
17391 var keyvalue = part.split("="); | 20109 var keyvalue = part.split("="); |
17392 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20110 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17393 } | 20111 } |
17394 } | 20112 } |
| 20113 unittest.expect(queryMap["remarketingListId"].first, unittest.equals(arg
_remarketingListId)); |
17395 | 20114 |
17396 | 20115 |
17397 var h = { | 20116 var h = { |
17398 "content-type" : "application/json; charset=utf-8", | 20117 "content-type" : "application/json; charset=utf-8", |
17399 }; | 20118 }; |
17400 var resp = convert.JSON.encode(buildPlacement()); | 20119 var resp = convert.JSON.encode(buildRemarketingListShare()); |
17401 return new async.Future.value(stringResponse(200, h, resp)); | 20120 return new async.Future.value(stringResponse(200, h, resp)); |
17402 }), true); | 20121 }), true); |
17403 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cement response) { | 20122 res.patch(arg_request, arg_profileId, arg_remarketingListId).then(unittest
.expectAsync(((api.RemarketingListShare response) { |
17404 checkPlacement(response); | 20123 checkRemarketingListShare(response); |
17405 }))); | 20124 }))); |
17406 }); | 20125 }); |
17407 | 20126 |
17408 unittest.test("method--list", () { | 20127 unittest.test("method--update", () { |
17409 | 20128 |
17410 var mock = new HttpServerMock(); | 20129 var mock = new HttpServerMock(); |
17411 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20130 api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).r
emarketingListShares; |
| 20131 var arg_request = buildRemarketingListShare(); |
17412 var arg_profileId = "foo"; | 20132 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) { | 20133 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 20134 var obj = new api.RemarketingListShare.fromJson(json); |
| 20135 checkRemarketingListShare(obj); |
| 20136 |
17432 var path = (req.url).path; | 20137 var path = (req.url).path; |
17433 var pathOffset = 0; | 20138 var pathOffset = 0; |
17434 var index; | 20139 var index; |
17435 var subPart; | 20140 var subPart; |
17436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20141 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17437 pathOffset += 1; | 20142 pathOffset += 1; |
17438 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20143 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17439 pathOffset += 18; | 20144 pathOffset += 18; |
17440 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20145 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17441 pathOffset += 13; | 20146 pathOffset += 13; |
17442 index = path.indexOf("/placements", pathOffset); | 20147 index = path.indexOf("/remarketingListShares", pathOffset); |
17443 unittest.expect(index >= 0, unittest.isTrue); | 20148 unittest.expect(index >= 0, unittest.isTrue); |
17444 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20149 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17445 pathOffset = index; | 20150 pathOffset = index; |
17446 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20151 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17447 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); | 20152 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/remarketingListShares")); |
17448 pathOffset += 11; | 20153 pathOffset += 22; |
17449 | 20154 |
17450 var query = (req.url).query; | 20155 var query = (req.url).query; |
17451 var queryOffset = 0; | 20156 var queryOffset = 0; |
17452 var queryMap = {}; | 20157 var queryMap = {}; |
17453 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20158 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17454 parseBool(n) { | 20159 parseBool(n) { |
17455 if (n == "true") return true; | 20160 if (n == "true") return true; |
17456 if (n == "false") return false; | 20161 if (n == "false") return false; |
17457 if (n == null) return null; | 20162 if (n == null) return null; |
17458 throw new core.ArgumentError("Invalid boolean: $n"); | 20163 throw new core.ArgumentError("Invalid boolean: $n"); |
17459 } | 20164 } |
17460 if (query.length > 0) { | 20165 if (query.length > 0) { |
17461 for (var part in query.split("&")) { | 20166 for (var part in query.split("&")) { |
17462 var keyvalue = part.split("="); | 20167 var keyvalue = part.split("="); |
17463 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20168 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17464 } | 20169 } |
17465 } | 20170 } |
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 | 20171 |
17485 | 20172 |
17486 var h = { | 20173 var h = { |
17487 "content-type" : "application/json; charset=utf-8", | 20174 "content-type" : "application/json; charset=utf-8", |
17488 }; | 20175 }; |
17489 var resp = convert.JSON.encode(buildPlacementsListResponse()); | 20176 var resp = convert.JSON.encode(buildRemarketingListShare()); |
17490 return new async.Future.value(stringResponse(200, h, resp)); | 20177 return new async.Future.value(stringResponse(200, h, resp)); |
17491 }), true); | 20178 }), 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) { | 20179 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rem
arketingListShare response) { |
17493 checkPlacementsListResponse(response); | 20180 checkRemarketingListShare(response); |
17494 }))); | 20181 }))); |
17495 }); | 20182 }); |
17496 | 20183 |
17497 unittest.test("method--patch", () { | 20184 }); |
| 20185 |
| 20186 |
| 20187 unittest.group("resource-RemarketingListsResourceApi", () { |
| 20188 unittest.test("method--get", () { |
17498 | 20189 |
17499 var mock = new HttpServerMock(); | 20190 var mock = new HttpServerMock(); |
17500 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20191 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
17501 var arg_request = buildPlacement(); | |
17502 var arg_profileId = "foo"; | 20192 var arg_profileId = "foo"; |
17503 var arg_id = "foo"; | 20193 var arg_id = "foo"; |
17504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20194 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; | 20195 var path = (req.url).path; |
17509 var pathOffset = 0; | 20196 var pathOffset = 0; |
17510 var index; | 20197 var index; |
17511 var subPart; | 20198 var subPart; |
17512 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20199 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17513 pathOffset += 1; | 20200 pathOffset += 1; |
17514 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20201 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17515 pathOffset += 18; | 20202 pathOffset += 18; |
17516 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20203 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17517 pathOffset += 13; | 20204 pathOffset += 13; |
17518 index = path.indexOf("/placements", pathOffset); | 20205 index = path.indexOf("/remarketingLists/", pathOffset); |
17519 unittest.expect(index >= 0, unittest.isTrue); | 20206 unittest.expect(index >= 0, unittest.isTrue); |
17520 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20207 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17521 pathOffset = index; | 20208 pathOffset = index; |
17522 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20209 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17523 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); | 20210 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/remarketingLists/")); |
17524 pathOffset += 11; | 20211 pathOffset += 18; |
| 20212 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 20213 pathOffset = path.length; |
| 20214 unittest.expect(subPart, unittest.equals("$arg_id")); |
17525 | 20215 |
17526 var query = (req.url).query; | 20216 var query = (req.url).query; |
17527 var queryOffset = 0; | 20217 var queryOffset = 0; |
17528 var queryMap = {}; | 20218 var queryMap = {}; |
17529 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20219 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17530 parseBool(n) { | 20220 parseBool(n) { |
17531 if (n == "true") return true; | 20221 if (n == "true") return true; |
17532 if (n == "false") return false; | 20222 if (n == "false") return false; |
17533 if (n == null) return null; | 20223 if (n == null) return null; |
17534 throw new core.ArgumentError("Invalid boolean: $n"); | 20224 throw new core.ArgumentError("Invalid boolean: $n"); |
17535 } | 20225 } |
17536 if (query.length > 0) { | 20226 if (query.length > 0) { |
17537 for (var part in query.split("&")) { | 20227 for (var part in query.split("&")) { |
17538 var keyvalue = part.split("="); | 20228 var keyvalue = part.split("="); |
17539 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20229 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17540 } | 20230 } |
17541 } | 20231 } |
17542 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | |
17543 | 20232 |
17544 | 20233 |
17545 var h = { | 20234 var h = { |
17546 "content-type" : "application/json; charset=utf-8", | 20235 "content-type" : "application/json; charset=utf-8", |
17547 }; | 20236 }; |
17548 var resp = convert.JSON.encode(buildPlacement()); | 20237 var resp = convert.JSON.encode(buildRemarketingList()); |
17549 return new async.Future.value(stringResponse(200, h, resp)); | 20238 return new async.Future.value(stringResponse(200, h, resp)); |
17550 }), true); | 20239 }), true); |
17551 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.Placement response) { | 20240 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Remarketing
List response) { |
17552 checkPlacement(response); | 20241 checkRemarketingList(response); |
17553 }))); | 20242 }))); |
17554 }); | 20243 }); |
17555 | 20244 |
17556 unittest.test("method--update", () { | 20245 unittest.test("method--insert", () { |
17557 | 20246 |
17558 var mock = new HttpServerMock(); | 20247 var mock = new HttpServerMock(); |
17559 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; | 20248 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
17560 var arg_request = buildPlacement(); | 20249 var arg_request = buildRemarketingList(); |
17561 var arg_profileId = "foo"; | 20250 var arg_profileId = "foo"; |
17562 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20251 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17563 var obj = new api.Placement.fromJson(json); | 20252 var obj = new api.RemarketingList.fromJson(json); |
17564 checkPlacement(obj); | 20253 checkRemarketingList(obj); |
17565 | 20254 |
17566 var path = (req.url).path; | 20255 var path = (req.url).path; |
17567 var pathOffset = 0; | 20256 var pathOffset = 0; |
17568 var index; | 20257 var index; |
17569 var subPart; | 20258 var subPart; |
17570 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20259 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17571 pathOffset += 1; | 20260 pathOffset += 1; |
17572 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20261 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17573 pathOffset += 18; | 20262 pathOffset += 18; |
17574 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20263 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17575 pathOffset += 13; | 20264 pathOffset += 13; |
17576 index = path.indexOf("/placements", pathOffset); | 20265 index = path.indexOf("/remarketingLists", pathOffset); |
17577 unittest.expect(index >= 0, unittest.isTrue); | 20266 unittest.expect(index >= 0, unittest.isTrue); |
17578 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20267 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17579 pathOffset = index; | 20268 pathOffset = index; |
17580 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20269 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17581 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/placements")); | 20270 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/remarketingLists")); |
17582 pathOffset += 11; | 20271 pathOffset += 17; |
17583 | 20272 |
17584 var query = (req.url).query; | 20273 var query = (req.url).query; |
17585 var queryOffset = 0; | 20274 var queryOffset = 0; |
17586 var queryMap = {}; | 20275 var queryMap = {}; |
17587 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20276 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17588 parseBool(n) { | 20277 parseBool(n) { |
17589 if (n == "true") return true; | 20278 if (n == "true") return true; |
17590 if (n == "false") return false; | 20279 if (n == "false") return false; |
17591 if (n == null) return null; | 20280 if (n == null) return null; |
17592 throw new core.ArgumentError("Invalid boolean: $n"); | 20281 throw new core.ArgumentError("Invalid boolean: $n"); |
17593 } | 20282 } |
17594 if (query.length > 0) { | 20283 if (query.length > 0) { |
17595 for (var part in query.split("&")) { | 20284 for (var part in query.split("&")) { |
17596 var keyvalue = part.split("="); | 20285 var keyvalue = part.split("="); |
17597 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20286 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17598 } | 20287 } |
17599 } | 20288 } |
17600 | 20289 |
17601 | 20290 |
17602 var h = { | 20291 var h = { |
17603 "content-type" : "application/json; charset=utf-8", | 20292 "content-type" : "application/json; charset=utf-8", |
17604 }; | 20293 }; |
17605 var resp = convert.JSON.encode(buildPlacement()); | 20294 var resp = convert.JSON.encode(buildRemarketingList()); |
17606 return new async.Future.value(stringResponse(200, h, resp)); | 20295 return new async.Future.value(stringResponse(200, h, resp)); |
17607 }), true); | 20296 }), true); |
17608 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla
cement response) { | 20297 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rem
arketingList response) { |
17609 checkPlacement(response); | 20298 checkRemarketingList(response); |
17610 }))); | 20299 }))); |
17611 }); | 20300 }); |
17612 | 20301 |
17613 }); | |
17614 | |
17615 | |
17616 unittest.group("resource-PlatformTypesResourceApi", () { | |
17617 unittest.test("method--list", () { | 20302 unittest.test("method--list", () { |
17618 | 20303 |
17619 var mock = new HttpServerMock(); | 20304 var mock = new HttpServerMock(); |
17620 api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformT
ypes; | 20305 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
17621 var arg_profileId = "foo"; | 20306 var arg_profileId = "foo"; |
| 20307 var arg_advertiserId = "foo"; |
| 20308 var arg_active = true; |
| 20309 var arg_floodlightActivityId = "foo"; |
| 20310 var arg_maxResults = 42; |
| 20311 var arg_name = "foo"; |
| 20312 var arg_pageToken = "foo"; |
| 20313 var arg_sortField = "foo"; |
| 20314 var arg_sortOrder = "foo"; |
17622 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20315 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17623 var path = (req.url).path; | 20316 var path = (req.url).path; |
17624 var pathOffset = 0; | 20317 var pathOffset = 0; |
17625 var index; | 20318 var index; |
17626 var subPart; | 20319 var subPart; |
17627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17628 pathOffset += 1; | 20321 pathOffset += 1; |
17629 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20322 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17630 pathOffset += 18; | 20323 pathOffset += 18; |
17631 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20324 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17632 pathOffset += 13; | 20325 pathOffset += 13; |
17633 index = path.indexOf("/platformTypes", pathOffset); | 20326 index = path.indexOf("/remarketingLists", pathOffset); |
17634 unittest.expect(index >= 0, unittest.isTrue); | 20327 unittest.expect(index >= 0, unittest.isTrue); |
17635 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20328 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17636 pathOffset = index; | 20329 pathOffset = index; |
17637 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20330 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17638 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/platformTypes")); | 20331 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/remarketingLists")); |
17639 pathOffset += 14; | 20332 pathOffset += 17; |
17640 | 20333 |
17641 var query = (req.url).query; | 20334 var query = (req.url).query; |
17642 var queryOffset = 0; | 20335 var queryOffset = 0; |
17643 var queryMap = {}; | 20336 var queryMap = {}; |
17644 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20337 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17645 parseBool(n) { | 20338 parseBool(n) { |
17646 if (n == "true") return true; | 20339 if (n == "true") return true; |
17647 if (n == "false") return false; | 20340 if (n == "false") return false; |
17648 if (n == null) return null; | 20341 if (n == null) return null; |
17649 throw new core.ArgumentError("Invalid boolean: $n"); | 20342 throw new core.ArgumentError("Invalid boolean: $n"); |
17650 } | 20343 } |
17651 if (query.length > 0) { | 20344 if (query.length > 0) { |
17652 for (var part in query.split("&")) { | 20345 for (var part in query.split("&")) { |
17653 var keyvalue = part.split("="); | 20346 var keyvalue = part.split("="); |
17654 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20347 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17655 } | 20348 } |
17656 } | 20349 } |
| 20350 unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_adve
rtiserId)); |
| 20351 unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")
); |
| 20352 unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals(
arg_floodlightActivityId)); |
| 20353 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 20354 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
| 20355 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 20356 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 20357 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
17657 | 20358 |
17658 | 20359 |
17659 var h = { | 20360 var h = { |
17660 "content-type" : "application/json; charset=utf-8", | 20361 "content-type" : "application/json; charset=utf-8", |
17661 }; | 20362 }; |
17662 var resp = convert.JSON.encode(buildPlatformTypesListResponse()); | 20363 var resp = convert.JSON.encode(buildRemarketingListsListResponse()); |
17663 return new async.Future.value(stringResponse(200, h, resp)); | 20364 return new async.Future.value(stringResponse(200, h, resp)); |
17664 }), true); | 20365 }), true); |
17665 res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListR
esponse response) { | 20366 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); | 20367 checkRemarketingListsListResponse(response); |
17667 }))); | 20368 }))); |
17668 }); | 20369 }); |
17669 | 20370 |
17670 }); | 20371 unittest.test("method--patch", () { |
17671 | |
17672 | |
17673 unittest.group("resource-PostalCodesResourceApi", () { | |
17674 unittest.test("method--list", () { | |
17675 | 20372 |
17676 var mock = new HttpServerMock(); | 20373 var mock = new HttpServerMock(); |
17677 api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes
; | 20374 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
| 20375 var arg_request = buildRemarketingList(); |
17678 var arg_profileId = "foo"; | 20376 var arg_profileId = "foo"; |
| 20377 var arg_id = "foo"; |
17679 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20378 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 20379 var obj = new api.RemarketingList.fromJson(json); |
| 20380 checkRemarketingList(obj); |
| 20381 |
17680 var path = (req.url).path; | 20382 var path = (req.url).path; |
17681 var pathOffset = 0; | 20383 var pathOffset = 0; |
17682 var index; | 20384 var index; |
17683 var subPart; | 20385 var subPart; |
17684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17685 pathOffset += 1; | 20387 pathOffset += 1; |
17686 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20388 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17687 pathOffset += 18; | 20389 pathOffset += 18; |
17688 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20390 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17689 pathOffset += 13; | 20391 pathOffset += 13; |
17690 index = path.indexOf("/postalCodes", pathOffset); | 20392 index = path.indexOf("/remarketingLists", pathOffset); |
17691 unittest.expect(index >= 0, unittest.isTrue); | 20393 unittest.expect(index >= 0, unittest.isTrue); |
17692 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20394 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17693 pathOffset = index; | 20395 pathOffset = index; |
17694 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20396 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17695 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/postalCodes")); | 20397 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/remarketingLists")); |
17696 pathOffset += 12; | 20398 pathOffset += 17; |
17697 | 20399 |
17698 var query = (req.url).query; | 20400 var query = (req.url).query; |
17699 var queryOffset = 0; | 20401 var queryOffset = 0; |
17700 var queryMap = {}; | 20402 var queryMap = {}; |
17701 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20403 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17702 parseBool(n) { | 20404 parseBool(n) { |
17703 if (n == "true") return true; | 20405 if (n == "true") return true; |
17704 if (n == "false") return false; | 20406 if (n == "false") return false; |
17705 if (n == null) return null; | 20407 if (n == null) return null; |
17706 throw new core.ArgumentError("Invalid boolean: $n"); | 20408 throw new core.ArgumentError("Invalid boolean: $n"); |
17707 } | 20409 } |
17708 if (query.length > 0) { | 20410 if (query.length > 0) { |
17709 for (var part in query.split("&")) { | 20411 for (var part in query.split("&")) { |
17710 var keyvalue = part.split("="); | 20412 var keyvalue = part.split("="); |
17711 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20413 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17712 } | 20414 } |
17713 } | 20415 } |
| 20416 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
17714 | 20417 |
17715 | 20418 |
17716 var h = { | 20419 var h = { |
17717 "content-type" : "application/json; charset=utf-8", | 20420 "content-type" : "application/json; charset=utf-8", |
17718 }; | 20421 }; |
17719 var resp = convert.JSON.encode(buildPostalCodesListResponse()); | 20422 var resp = convert.JSON.encode(buildRemarketingList()); |
17720 return new async.Future.value(stringResponse(200, h, resp)); | 20423 return new async.Future.value(stringResponse(200, h, resp)); |
17721 }), true); | 20424 }), true); |
17722 res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListRes
ponse response) { | 20425 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((
api.RemarketingList response) { |
17723 checkPostalCodesListResponse(response); | 20426 checkRemarketingList(response); |
17724 }))); | 20427 }))); |
17725 }); | 20428 }); |
17726 | 20429 |
17727 }); | 20430 unittest.test("method--update", () { |
17728 | |
17729 | |
17730 unittest.group("resource-RegionsResourceApi", () { | |
17731 unittest.test("method--list", () { | |
17732 | 20431 |
17733 var mock = new HttpServerMock(); | 20432 var mock = new HttpServerMock(); |
17734 api.RegionsResourceApi res = new api.DfareportingApi(mock).regions; | 20433 api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remark
etingLists; |
| 20434 var arg_request = buildRemarketingList(); |
17735 var arg_profileId = "foo"; | 20435 var arg_profileId = "foo"; |
17736 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20436 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 20437 var obj = new api.RemarketingList.fromJson(json); |
| 20438 checkRemarketingList(obj); |
| 20439 |
17737 var path = (req.url).path; | 20440 var path = (req.url).path; |
17738 var pathOffset = 0; | 20441 var pathOffset = 0; |
17739 var index; | 20442 var index; |
17740 var subPart; | 20443 var subPart; |
17741 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20444 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17742 pathOffset += 1; | 20445 pathOffset += 1; |
17743 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20446 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17744 pathOffset += 18; | 20447 pathOffset += 18; |
17745 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20448 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17746 pathOffset += 13; | 20449 pathOffset += 13; |
17747 index = path.indexOf("/regions", pathOffset); | 20450 index = path.indexOf("/remarketingLists", pathOffset); |
17748 unittest.expect(index >= 0, unittest.isTrue); | 20451 unittest.expect(index >= 0, unittest.isTrue); |
17749 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20452 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17750 pathOffset = index; | 20453 pathOffset = index; |
17751 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20454 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17752 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/regions")); | 20455 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/remarketingLists")); |
17753 pathOffset += 8; | 20456 pathOffset += 17; |
17754 | 20457 |
17755 var query = (req.url).query; | 20458 var query = (req.url).query; |
17756 var queryOffset = 0; | 20459 var queryOffset = 0; |
17757 var queryMap = {}; | 20460 var queryMap = {}; |
17758 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20461 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
17759 parseBool(n) { | 20462 parseBool(n) { |
17760 if (n == "true") return true; | 20463 if (n == "true") return true; |
17761 if (n == "false") return false; | 20464 if (n == "false") return false; |
17762 if (n == null) return null; | 20465 if (n == null) return null; |
17763 throw new core.ArgumentError("Invalid boolean: $n"); | 20466 throw new core.ArgumentError("Invalid boolean: $n"); |
17764 } | 20467 } |
17765 if (query.length > 0) { | 20468 if (query.length > 0) { |
17766 for (var part in query.split("&")) { | 20469 for (var part in query.split("&")) { |
17767 var keyvalue = part.split("="); | 20470 var keyvalue = part.split("="); |
17768 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20471 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
17769 } | 20472 } |
17770 } | 20473 } |
17771 | 20474 |
17772 | 20475 |
17773 var h = { | 20476 var h = { |
17774 "content-type" : "application/json; charset=utf-8", | 20477 "content-type" : "application/json; charset=utf-8", |
17775 }; | 20478 }; |
17776 var resp = convert.JSON.encode(buildRegionsListResponse()); | 20479 var resp = convert.JSON.encode(buildRemarketingList()); |
17777 return new async.Future.value(stringResponse(200, h, resp)); | 20480 return new async.Future.value(stringResponse(200, h, resp)); |
17778 }), true); | 20481 }), true); |
17779 res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListRespons
e response) { | 20482 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rem
arketingList response) { |
17780 checkRegionsListResponse(response); | 20483 checkRemarketingList(response); |
17781 }))); | 20484 }))); |
17782 }); | 20485 }); |
17783 | 20486 |
17784 }); | 20487 }); |
17785 | 20488 |
17786 | 20489 |
17787 unittest.group("resource-ReportsResourceApi", () { | 20490 unittest.group("resource-ReportsResourceApi", () { |
17788 unittest.test("method--delete", () { | 20491 unittest.test("method--delete", () { |
17789 | 20492 |
17790 var mock = new HttpServerMock(); | 20493 var mock = new HttpServerMock(); |
17791 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 20494 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
17792 var arg_profileId = "foo"; | 20495 var arg_profileId = "foo"; |
17793 var arg_reportId = "foo"; | 20496 var arg_reportId = "foo"; |
17794 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20497 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17795 var path = (req.url).path; | 20498 var path = (req.url).path; |
17796 var pathOffset = 0; | 20499 var pathOffset = 0; |
17797 var index; | 20500 var index; |
17798 var subPart; | 20501 var subPart; |
17799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20502 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17800 pathOffset += 1; | 20503 pathOffset += 1; |
17801 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20504 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17802 pathOffset += 18; | 20505 pathOffset += 18; |
17803 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20506 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17804 pathOffset += 13; | 20507 pathOffset += 13; |
17805 index = path.indexOf("/reports/", pathOffset); | 20508 index = path.indexOf("/reports/", pathOffset); |
17806 unittest.expect(index >= 0, unittest.isTrue); | 20509 unittest.expect(index >= 0, unittest.isTrue); |
17807 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20510 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17808 pathOffset = index; | 20511 pathOffset = index; |
17809 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20512 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17810 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20513 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
17811 pathOffset += 9; | 20514 pathOffset += 9; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17846 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; | 20549 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; |
17847 var arg_profileId = "foo"; | 20550 var arg_profileId = "foo"; |
17848 var arg_reportId = "foo"; | 20551 var arg_reportId = "foo"; |
17849 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20552 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17850 var path = (req.url).path; | 20553 var path = (req.url).path; |
17851 var pathOffset = 0; | 20554 var pathOffset = 0; |
17852 var index; | 20555 var index; |
17853 var subPart; | 20556 var subPart; |
17854 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20557 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17855 pathOffset += 1; | 20558 pathOffset += 1; |
17856 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20559 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17857 pathOffset += 18; | 20560 pathOffset += 18; |
17858 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20561 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17859 pathOffset += 13; | 20562 pathOffset += 13; |
17860 index = path.indexOf("/reports/", pathOffset); | 20563 index = path.indexOf("/reports/", pathOffset); |
17861 unittest.expect(index >= 0, unittest.isTrue); | 20564 unittest.expect(index >= 0, unittest.isTrue); |
17862 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20565 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17863 pathOffset = index; | 20566 pathOffset = index; |
17864 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20567 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17865 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20568 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
17866 pathOffset += 9; | 20569 pathOffset += 9; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17906 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20609 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17907 var obj = new api.Report.fromJson(json); | 20610 var obj = new api.Report.fromJson(json); |
17908 checkReport(obj); | 20611 checkReport(obj); |
17909 | 20612 |
17910 var path = (req.url).path; | 20613 var path = (req.url).path; |
17911 var pathOffset = 0; | 20614 var pathOffset = 0; |
17912 var index; | 20615 var index; |
17913 var subPart; | 20616 var subPart; |
17914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20617 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17915 pathOffset += 1; | 20618 pathOffset += 1; |
17916 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20619 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17917 pathOffset += 18; | 20620 pathOffset += 18; |
17918 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20621 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17919 pathOffset += 13; | 20622 pathOffset += 13; |
17920 index = path.indexOf("/reports", pathOffset); | 20623 index = path.indexOf("/reports", pathOffset); |
17921 unittest.expect(index >= 0, unittest.isTrue); | 20624 unittest.expect(index >= 0, unittest.isTrue); |
17922 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20625 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17923 pathOffset = index; | 20626 pathOffset = index; |
17924 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20627 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17925 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); | 20628 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); |
17926 pathOffset += 8; | 20629 pathOffset += 8; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17964 var arg_scope = "foo"; | 20667 var arg_scope = "foo"; |
17965 var arg_sortField = "foo"; | 20668 var arg_sortField = "foo"; |
17966 var arg_sortOrder = "foo"; | 20669 var arg_sortOrder = "foo"; |
17967 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20670 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
17968 var path = (req.url).path; | 20671 var path = (req.url).path; |
17969 var pathOffset = 0; | 20672 var pathOffset = 0; |
17970 var index; | 20673 var index; |
17971 var subPart; | 20674 var subPart; |
17972 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20675 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
17973 pathOffset += 1; | 20676 pathOffset += 1; |
17974 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20677 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
17975 pathOffset += 18; | 20678 pathOffset += 18; |
17976 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20679 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
17977 pathOffset += 13; | 20680 pathOffset += 13; |
17978 index = path.indexOf("/reports", pathOffset); | 20681 index = path.indexOf("/reports", pathOffset); |
17979 unittest.expect(index >= 0, unittest.isTrue); | 20682 unittest.expect(index >= 0, unittest.isTrue); |
17980 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20683 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
17981 pathOffset = index; | 20684 pathOffset = index; |
17982 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20685 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
17983 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); | 20686 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/reports")); |
17984 pathOffset += 8; | 20687 pathOffset += 8; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18027 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20730 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18028 var obj = new api.Report.fromJson(json); | 20731 var obj = new api.Report.fromJson(json); |
18029 checkReport(obj); | 20732 checkReport(obj); |
18030 | 20733 |
18031 var path = (req.url).path; | 20734 var path = (req.url).path; |
18032 var pathOffset = 0; | 20735 var pathOffset = 0; |
18033 var index; | 20736 var index; |
18034 var subPart; | 20737 var subPart; |
18035 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18036 pathOffset += 1; | 20739 pathOffset += 1; |
18037 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20740 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18038 pathOffset += 18; | 20741 pathOffset += 18; |
18039 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20742 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18040 pathOffset += 13; | 20743 pathOffset += 13; |
18041 index = path.indexOf("/reports/", pathOffset); | 20744 index = path.indexOf("/reports/", pathOffset); |
18042 unittest.expect(index >= 0, unittest.isTrue); | 20745 unittest.expect(index >= 0, unittest.isTrue); |
18043 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20746 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18044 pathOffset = index; | 20747 pathOffset = index; |
18045 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20748 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18046 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20749 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
18047 pathOffset += 9; | 20750 pathOffset += 9; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18085 var arg_profileId = "foo"; | 20788 var arg_profileId = "foo"; |
18086 var arg_reportId = "foo"; | 20789 var arg_reportId = "foo"; |
18087 var arg_synchronous = true; | 20790 var arg_synchronous = true; |
18088 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20791 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18089 var path = (req.url).path; | 20792 var path = (req.url).path; |
18090 var pathOffset = 0; | 20793 var pathOffset = 0; |
18091 var index; | 20794 var index; |
18092 var subPart; | 20795 var subPart; |
18093 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20796 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18094 pathOffset += 1; | 20797 pathOffset += 1; |
18095 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20798 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18096 pathOffset += 18; | 20799 pathOffset += 18; |
18097 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20800 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18098 pathOffset += 13; | 20801 pathOffset += 13; |
18099 index = path.indexOf("/reports/", pathOffset); | 20802 index = path.indexOf("/reports/", pathOffset); |
18100 unittest.expect(index >= 0, unittest.isTrue); | 20803 unittest.expect(index >= 0, unittest.isTrue); |
18101 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20804 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18102 pathOffset = index; | 20805 pathOffset = index; |
18103 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20806 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18104 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20807 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
18105 pathOffset += 9; | 20808 pathOffset += 9; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20854 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18152 var obj = new api.Report.fromJson(json); | 20855 var obj = new api.Report.fromJson(json); |
18153 checkReport(obj); | 20856 checkReport(obj); |
18154 | 20857 |
18155 var path = (req.url).path; | 20858 var path = (req.url).path; |
18156 var pathOffset = 0; | 20859 var pathOffset = 0; |
18157 var index; | 20860 var index; |
18158 var subPart; | 20861 var subPart; |
18159 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20862 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18160 pathOffset += 1; | 20863 pathOffset += 1; |
18161 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20864 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18162 pathOffset += 18; | 20865 pathOffset += 18; |
18163 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20866 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18164 pathOffset += 13; | 20867 pathOffset += 13; |
18165 index = path.indexOf("/reports/", pathOffset); | 20868 index = path.indexOf("/reports/", pathOffset); |
18166 unittest.expect(index >= 0, unittest.isTrue); | 20869 unittest.expect(index >= 0, unittest.isTrue); |
18167 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20870 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18168 pathOffset = index; | 20871 pathOffset = index; |
18169 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20872 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18170 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20873 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
18171 pathOffset += 9; | 20874 pathOffset += 9; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18215 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20918 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18216 var obj = new api.Report.fromJson(json); | 20919 var obj = new api.Report.fromJson(json); |
18217 checkReport(obj); | 20920 checkReport(obj); |
18218 | 20921 |
18219 var path = (req.url).path; | 20922 var path = (req.url).path; |
18220 var pathOffset = 0; | 20923 var pathOffset = 0; |
18221 var index; | 20924 var index; |
18222 var subPart; | 20925 var subPart; |
18223 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20926 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18224 pathOffset += 1; | 20927 pathOffset += 1; |
18225 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20928 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18226 pathOffset += 18; | 20929 pathOffset += 18; |
18227 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20930 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18228 pathOffset += 13; | 20931 pathOffset += 13; |
18229 index = path.indexOf("/reports/compatiblefields/query", pathOffset); | 20932 index = path.indexOf("/reports/compatiblefields/query", pathOffset); |
18230 unittest.expect(index >= 0, unittest.isTrue); | 20933 unittest.expect(index >= 0, unittest.isTrue); |
18231 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20934 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18232 pathOffset = index; | 20935 pathOffset = index; |
18233 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20936 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18234 unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.eq
uals("/reports/compatiblefields/query")); | 20937 unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.eq
uals("/reports/compatiblefields/query")); |
18235 pathOffset += 31; | 20938 pathOffset += 31; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18276 var arg_profileId = "foo"; | 20979 var arg_profileId = "foo"; |
18277 var arg_reportId = "foo"; | 20980 var arg_reportId = "foo"; |
18278 var arg_fileId = "foo"; | 20981 var arg_fileId = "foo"; |
18279 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 20982 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18280 var path = (req.url).path; | 20983 var path = (req.url).path; |
18281 var pathOffset = 0; | 20984 var pathOffset = 0; |
18282 var index; | 20985 var index; |
18283 var subPart; | 20986 var subPart; |
18284 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20987 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18285 pathOffset += 1; | 20988 pathOffset += 1; |
18286 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 20989 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18287 pathOffset += 18; | 20990 pathOffset += 18; |
18288 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 20991 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18289 pathOffset += 13; | 20992 pathOffset += 13; |
18290 index = path.indexOf("/reports/", pathOffset); | 20993 index = path.indexOf("/reports/", pathOffset); |
18291 unittest.expect(index >= 0, unittest.isTrue); | 20994 unittest.expect(index >= 0, unittest.isTrue); |
18292 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 20995 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18293 pathOffset = index; | 20996 pathOffset = index; |
18294 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 20997 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18295 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 20998 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
18296 pathOffset += 9; | 20999 pathOffset += 9; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18344 var arg_pageToken = "foo"; | 21047 var arg_pageToken = "foo"; |
18345 var arg_sortField = "foo"; | 21048 var arg_sortField = "foo"; |
18346 var arg_sortOrder = "foo"; | 21049 var arg_sortOrder = "foo"; |
18347 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21050 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18348 var path = (req.url).path; | 21051 var path = (req.url).path; |
18349 var pathOffset = 0; | 21052 var pathOffset = 0; |
18350 var index; | 21053 var index; |
18351 var subPart; | 21054 var subPart; |
18352 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21055 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18353 pathOffset += 1; | 21056 pathOffset += 1; |
18354 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21057 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18355 pathOffset += 18; | 21058 pathOffset += 18; |
18356 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21059 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18357 pathOffset += 13; | 21060 pathOffset += 13; |
18358 index = path.indexOf("/reports/", pathOffset); | 21061 index = path.indexOf("/reports/", pathOffset); |
18359 unittest.expect(index >= 0, unittest.isTrue); | 21062 unittest.expect(index >= 0, unittest.isTrue); |
18360 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21063 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18361 pathOffset = index; | 21064 pathOffset = index; |
18362 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21065 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18363 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); | 21066 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/reports/")); |
18364 pathOffset += 9; | 21067 pathOffset += 9; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18413 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; | 21116 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; |
18414 var arg_profileId = "foo"; | 21117 var arg_profileId = "foo"; |
18415 var arg_id = "foo"; | 21118 var arg_id = "foo"; |
18416 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21119 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18417 var path = (req.url).path; | 21120 var path = (req.url).path; |
18418 var pathOffset = 0; | 21121 var pathOffset = 0; |
18419 var index; | 21122 var index; |
18420 var subPart; | 21123 var subPart; |
18421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21124 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18422 pathOffset += 1; | 21125 pathOffset += 1; |
18423 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21126 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18424 pathOffset += 18; | 21127 pathOffset += 18; |
18425 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21128 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18426 pathOffset += 13; | 21129 pathOffset += 13; |
18427 index = path.indexOf("/sites/", pathOffset); | 21130 index = path.indexOf("/sites/", pathOffset); |
18428 unittest.expect(index >= 0, unittest.isTrue); | 21131 unittest.expect(index >= 0, unittest.isTrue); |
18429 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21132 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18430 pathOffset = index; | 21133 pathOffset = index; |
18431 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21134 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18432 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/sites/")); | 21135 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/sites/")); |
18433 pathOffset += 7; | 21136 pathOffset += 7; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18473 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21176 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18474 var obj = new api.Site.fromJson(json); | 21177 var obj = new api.Site.fromJson(json); |
18475 checkSite(obj); | 21178 checkSite(obj); |
18476 | 21179 |
18477 var path = (req.url).path; | 21180 var path = (req.url).path; |
18478 var pathOffset = 0; | 21181 var pathOffset = 0; |
18479 var index; | 21182 var index; |
18480 var subPart; | 21183 var subPart; |
18481 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21184 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18482 pathOffset += 1; | 21185 pathOffset += 1; |
18483 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21186 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18484 pathOffset += 18; | 21187 pathOffset += 18; |
18485 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21188 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18486 pathOffset += 13; | 21189 pathOffset += 13; |
18487 index = path.indexOf("/sites", pathOffset); | 21190 index = path.indexOf("/sites", pathOffset); |
18488 unittest.expect(index >= 0, unittest.isTrue); | 21191 unittest.expect(index >= 0, unittest.isTrue); |
18489 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21192 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18490 pathOffset = index; | 21193 pathOffset = index; |
18491 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21194 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18492 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); | 21195 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); |
18493 pathOffset += 6; | 21196 pathOffset += 6; |
(...skipping 30 matching lines...) Expand all Loading... |
18524 unittest.test("method--list", () { | 21227 unittest.test("method--list", () { |
18525 | 21228 |
18526 var mock = new HttpServerMock(); | 21229 var mock = new HttpServerMock(); |
18527 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; | 21230 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; |
18528 var arg_profileId = "foo"; | 21231 var arg_profileId = "foo"; |
18529 var arg_acceptsInStreamVideoPlacements = true; | 21232 var arg_acceptsInStreamVideoPlacements = true; |
18530 var arg_acceptsInterstitialPlacements = true; | 21233 var arg_acceptsInterstitialPlacements = true; |
18531 var arg_acceptsPublisherPaidPlacements = true; | 21234 var arg_acceptsPublisherPaidPlacements = true; |
18532 var arg_adWordsSite = true; | 21235 var arg_adWordsSite = true; |
18533 var arg_approved = true; | 21236 var arg_approved = true; |
18534 var arg_campaignIds = buildUnnamed486(); | 21237 var arg_campaignIds = buildUnnamed1297(); |
18535 var arg_directorySiteIds = buildUnnamed487(); | 21238 var arg_directorySiteIds = buildUnnamed1298(); |
18536 var arg_ids = buildUnnamed488(); | 21239 var arg_ids = buildUnnamed1299(); |
18537 var arg_maxResults = 42; | 21240 var arg_maxResults = 42; |
18538 var arg_pageToken = "foo"; | 21241 var arg_pageToken = "foo"; |
18539 var arg_searchString = "foo"; | 21242 var arg_searchString = "foo"; |
18540 var arg_sortField = "foo"; | 21243 var arg_sortField = "foo"; |
18541 var arg_sortOrder = "foo"; | 21244 var arg_sortOrder = "foo"; |
18542 var arg_subaccountId = "foo"; | 21245 var arg_subaccountId = "foo"; |
18543 var arg_unmappedSite = true; | 21246 var arg_unmappedSite = true; |
18544 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21247 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18545 var path = (req.url).path; | 21248 var path = (req.url).path; |
18546 var pathOffset = 0; | 21249 var pathOffset = 0; |
18547 var index; | 21250 var index; |
18548 var subPart; | 21251 var subPart; |
18549 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21252 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18550 pathOffset += 1; | 21253 pathOffset += 1; |
18551 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21254 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18552 pathOffset += 18; | 21255 pathOffset += 18; |
18553 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21256 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18554 pathOffset += 13; | 21257 pathOffset += 13; |
18555 index = path.indexOf("/sites", pathOffset); | 21258 index = path.indexOf("/sites", pathOffset); |
18556 unittest.expect(index >= 0, unittest.isTrue); | 21259 unittest.expect(index >= 0, unittest.isTrue); |
18557 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21260 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18558 pathOffset = index; | 21261 pathOffset = index; |
18559 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21262 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18560 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); | 21263 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); |
18561 pathOffset += 6; | 21264 pathOffset += 6; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18614 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18615 var obj = new api.Site.fromJson(json); | 21318 var obj = new api.Site.fromJson(json); |
18616 checkSite(obj); | 21319 checkSite(obj); |
18617 | 21320 |
18618 var path = (req.url).path; | 21321 var path = (req.url).path; |
18619 var pathOffset = 0; | 21322 var pathOffset = 0; |
18620 var index; | 21323 var index; |
18621 var subPart; | 21324 var subPart; |
18622 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18623 pathOffset += 1; | 21326 pathOffset += 1; |
18624 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21327 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18625 pathOffset += 18; | 21328 pathOffset += 18; |
18626 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21329 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18627 pathOffset += 13; | 21330 pathOffset += 13; |
18628 index = path.indexOf("/sites", pathOffset); | 21331 index = path.indexOf("/sites", pathOffset); |
18629 unittest.expect(index >= 0, unittest.isTrue); | 21332 unittest.expect(index >= 0, unittest.isTrue); |
18630 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21333 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18631 pathOffset = index; | 21334 pathOffset = index; |
18632 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21335 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18633 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); | 21336 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); |
18634 pathOffset += 6; | 21337 pathOffset += 6; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18672 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21375 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18673 var obj = new api.Site.fromJson(json); | 21376 var obj = new api.Site.fromJson(json); |
18674 checkSite(obj); | 21377 checkSite(obj); |
18675 | 21378 |
18676 var path = (req.url).path; | 21379 var path = (req.url).path; |
18677 var pathOffset = 0; | 21380 var pathOffset = 0; |
18678 var index; | 21381 var index; |
18679 var subPart; | 21382 var subPart; |
18680 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18681 pathOffset += 1; | 21384 pathOffset += 1; |
18682 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21385 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18683 pathOffset += 18; | 21386 pathOffset += 18; |
18684 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21387 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18685 pathOffset += 13; | 21388 pathOffset += 13; |
18686 index = path.indexOf("/sites", pathOffset); | 21389 index = path.indexOf("/sites", pathOffset); |
18687 unittest.expect(index >= 0, unittest.isTrue); | 21390 unittest.expect(index >= 0, unittest.isTrue); |
18688 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21391 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18689 pathOffset = index; | 21392 pathOffset = index; |
18690 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21393 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18691 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); | 21394 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sites")); |
18692 pathOffset += 6; | 21395 pathOffset += 6; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18730 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; | 21433 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; |
18731 var arg_profileId = "foo"; | 21434 var arg_profileId = "foo"; |
18732 var arg_id = "foo"; | 21435 var arg_id = "foo"; |
18733 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21436 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18734 var path = (req.url).path; | 21437 var path = (req.url).path; |
18735 var pathOffset = 0; | 21438 var pathOffset = 0; |
18736 var index; | 21439 var index; |
18737 var subPart; | 21440 var subPart; |
18738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18739 pathOffset += 1; | 21442 pathOffset += 1; |
18740 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21443 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18741 pathOffset += 18; | 21444 pathOffset += 18; |
18742 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21445 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18743 pathOffset += 13; | 21446 pathOffset += 13; |
18744 index = path.indexOf("/sizes/", pathOffset); | 21447 index = path.indexOf("/sizes/", pathOffset); |
18745 unittest.expect(index >= 0, unittest.isTrue); | 21448 unittest.expect(index >= 0, unittest.isTrue); |
18746 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21449 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18747 pathOffset = index; | 21450 pathOffset = index; |
18748 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21451 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18749 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/sizes/")); | 21452 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/sizes/")); |
18750 pathOffset += 7; | 21453 pathOffset += 7; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18791 var obj = new api.Size.fromJson(json); | 21494 var obj = new api.Size.fromJson(json); |
18792 checkSize(obj); | 21495 checkSize(obj); |
18793 | 21496 |
18794 var path = (req.url).path; | 21497 var path = (req.url).path; |
18795 var pathOffset = 0; | 21498 var pathOffset = 0; |
18796 var index; | 21499 var index; |
18797 var subPart; | 21500 var subPart; |
18798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18799 pathOffset += 1; | 21502 pathOffset += 1; |
18800 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21503 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18801 pathOffset += 18; | 21504 pathOffset += 18; |
18802 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21505 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18803 pathOffset += 13; | 21506 pathOffset += 13; |
18804 index = path.indexOf("/sizes", pathOffset); | 21507 index = path.indexOf("/sizes", pathOffset); |
18805 unittest.expect(index >= 0, unittest.isTrue); | 21508 unittest.expect(index >= 0, unittest.isTrue); |
18806 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21509 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18807 pathOffset = index; | 21510 pathOffset = index; |
18808 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21511 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18809 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sizes")); | 21512 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sizes")); |
18810 pathOffset += 6; | 21513 pathOffset += 6; |
(...skipping 27 matching lines...) Expand all Loading... |
18838 }))); | 21541 }))); |
18839 }); | 21542 }); |
18840 | 21543 |
18841 unittest.test("method--list", () { | 21544 unittest.test("method--list", () { |
18842 | 21545 |
18843 var mock = new HttpServerMock(); | 21546 var mock = new HttpServerMock(); |
18844 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; | 21547 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; |
18845 var arg_profileId = "foo"; | 21548 var arg_profileId = "foo"; |
18846 var arg_height = 42; | 21549 var arg_height = 42; |
18847 var arg_iabStandard = true; | 21550 var arg_iabStandard = true; |
18848 var arg_ids = buildUnnamed489(); | 21551 var arg_ids = buildUnnamed1300(); |
18849 var arg_width = 42; | 21552 var arg_width = 42; |
18850 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21553 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18851 var path = (req.url).path; | 21554 var path = (req.url).path; |
18852 var pathOffset = 0; | 21555 var pathOffset = 0; |
18853 var index; | 21556 var index; |
18854 var subPart; | 21557 var subPart; |
18855 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21558 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18856 pathOffset += 1; | 21559 pathOffset += 1; |
18857 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21560 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18858 pathOffset += 18; | 21561 pathOffset += 18; |
18859 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21562 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18860 pathOffset += 13; | 21563 pathOffset += 13; |
18861 index = path.indexOf("/sizes", pathOffset); | 21564 index = path.indexOf("/sizes", pathOffset); |
18862 unittest.expect(index >= 0, unittest.isTrue); | 21565 unittest.expect(index >= 0, unittest.isTrue); |
18863 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21566 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18864 pathOffset = index; | 21567 pathOffset = index; |
18865 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21568 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18866 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sizes")); | 21569 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/sizes")); |
18867 pathOffset += 6; | 21570 pathOffset += 6; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18909 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts
; | 21612 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts
; |
18910 var arg_profileId = "foo"; | 21613 var arg_profileId = "foo"; |
18911 var arg_id = "foo"; | 21614 var arg_id = "foo"; |
18912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21615 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18913 var path = (req.url).path; | 21616 var path = (req.url).path; |
18914 var pathOffset = 0; | 21617 var pathOffset = 0; |
18915 var index; | 21618 var index; |
18916 var subPart; | 21619 var subPart; |
18917 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21620 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18918 pathOffset += 1; | 21621 pathOffset += 1; |
18919 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21622 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18920 pathOffset += 18; | 21623 pathOffset += 18; |
18921 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21624 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18922 pathOffset += 13; | 21625 pathOffset += 13; |
18923 index = path.indexOf("/subaccounts/", pathOffset); | 21626 index = path.indexOf("/subaccounts/", pathOffset); |
18924 unittest.expect(index >= 0, unittest.isTrue); | 21627 unittest.expect(index >= 0, unittest.isTrue); |
18925 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21628 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18926 pathOffset = index; | 21629 pathOffset = index; |
18927 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21630 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18928 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/subaccounts/")); | 21631 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/subaccounts/")); |
18929 pathOffset += 13; | 21632 pathOffset += 13; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18969 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21672 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
18970 var obj = new api.Subaccount.fromJson(json); | 21673 var obj = new api.Subaccount.fromJson(json); |
18971 checkSubaccount(obj); | 21674 checkSubaccount(obj); |
18972 | 21675 |
18973 var path = (req.url).path; | 21676 var path = (req.url).path; |
18974 var pathOffset = 0; | 21677 var pathOffset = 0; |
18975 var index; | 21678 var index; |
18976 var subPart; | 21679 var subPart; |
18977 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21680 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
18978 pathOffset += 1; | 21681 pathOffset += 1; |
18979 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21682 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
18980 pathOffset += 18; | 21683 pathOffset += 18; |
18981 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21684 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
18982 pathOffset += 13; | 21685 pathOffset += 13; |
18983 index = path.indexOf("/subaccounts", pathOffset); | 21686 index = path.indexOf("/subaccounts", pathOffset); |
18984 unittest.expect(index >= 0, unittest.isTrue); | 21687 unittest.expect(index >= 0, unittest.isTrue); |
18985 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21688 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
18986 pathOffset = index; | 21689 pathOffset = index; |
18987 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21690 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
18988 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); | 21691 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); |
18989 pathOffset += 12; | 21692 pathOffset += 12; |
(...skipping 25 matching lines...) Expand all Loading... |
19015 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub
account response) { | 21718 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub
account response) { |
19016 checkSubaccount(response); | 21719 checkSubaccount(response); |
19017 }))); | 21720 }))); |
19018 }); | 21721 }); |
19019 | 21722 |
19020 unittest.test("method--list", () { | 21723 unittest.test("method--list", () { |
19021 | 21724 |
19022 var mock = new HttpServerMock(); | 21725 var mock = new HttpServerMock(); |
19023 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts
; | 21726 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts
; |
19024 var arg_profileId = "foo"; | 21727 var arg_profileId = "foo"; |
19025 var arg_ids = buildUnnamed490(); | 21728 var arg_ids = buildUnnamed1301(); |
19026 var arg_maxResults = 42; | 21729 var arg_maxResults = 42; |
19027 var arg_pageToken = "foo"; | 21730 var arg_pageToken = "foo"; |
19028 var arg_searchString = "foo"; | 21731 var arg_searchString = "foo"; |
19029 var arg_sortField = "foo"; | 21732 var arg_sortField = "foo"; |
19030 var arg_sortOrder = "foo"; | 21733 var arg_sortOrder = "foo"; |
19031 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21734 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19032 var path = (req.url).path; | 21735 var path = (req.url).path; |
19033 var pathOffset = 0; | 21736 var pathOffset = 0; |
19034 var index; | 21737 var index; |
19035 var subPart; | 21738 var subPart; |
19036 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21739 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19037 pathOffset += 1; | 21740 pathOffset += 1; |
19038 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21741 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19039 pathOffset += 18; | 21742 pathOffset += 18; |
19040 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21743 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19041 pathOffset += 13; | 21744 pathOffset += 13; |
19042 index = path.indexOf("/subaccounts", pathOffset); | 21745 index = path.indexOf("/subaccounts", pathOffset); |
19043 unittest.expect(index >= 0, unittest.isTrue); | 21746 unittest.expect(index >= 0, unittest.isTrue); |
19044 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21747 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19045 pathOffset = index; | 21748 pathOffset = index; |
19046 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21749 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19047 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); | 21750 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); |
19048 pathOffset += 12; | 21751 pathOffset += 12; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19092 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21795 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19093 var obj = new api.Subaccount.fromJson(json); | 21796 var obj = new api.Subaccount.fromJson(json); |
19094 checkSubaccount(obj); | 21797 checkSubaccount(obj); |
19095 | 21798 |
19096 var path = (req.url).path; | 21799 var path = (req.url).path; |
19097 var pathOffset = 0; | 21800 var pathOffset = 0; |
19098 var index; | 21801 var index; |
19099 var subPart; | 21802 var subPart; |
19100 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21803 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19101 pathOffset += 1; | 21804 pathOffset += 1; |
19102 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21805 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19103 pathOffset += 18; | 21806 pathOffset += 18; |
19104 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21807 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19105 pathOffset += 13; | 21808 pathOffset += 13; |
19106 index = path.indexOf("/subaccounts", pathOffset); | 21809 index = path.indexOf("/subaccounts", pathOffset); |
19107 unittest.expect(index >= 0, unittest.isTrue); | 21810 unittest.expect(index >= 0, unittest.isTrue); |
19108 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21811 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19109 pathOffset = index; | 21812 pathOffset = index; |
19110 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21813 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19111 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); | 21814 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); |
19112 pathOffset += 12; | 21815 pathOffset += 12; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19150 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 21853 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19151 var obj = new api.Subaccount.fromJson(json); | 21854 var obj = new api.Subaccount.fromJson(json); |
19152 checkSubaccount(obj); | 21855 checkSubaccount(obj); |
19153 | 21856 |
19154 var path = (req.url).path; | 21857 var path = (req.url).path; |
19155 var pathOffset = 0; | 21858 var pathOffset = 0; |
19156 var index; | 21859 var index; |
19157 var subPart; | 21860 var subPart; |
19158 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21861 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19159 pathOffset += 1; | 21862 pathOffset += 1; |
19160 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 21863 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19161 pathOffset += 18; | 21864 pathOffset += 18; |
19162 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 21865 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19163 pathOffset += 13; | 21866 pathOffset += 13; |
19164 index = path.indexOf("/subaccounts", pathOffset); | 21867 index = path.indexOf("/subaccounts", pathOffset); |
19165 unittest.expect(index >= 0, unittest.isTrue); | 21868 unittest.expect(index >= 0, unittest.isTrue); |
19166 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 21869 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19167 pathOffset = index; | 21870 pathOffset = index; |
19168 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 21871 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19169 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); | 21872 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/subaccounts")); |
19170 pathOffset += 12; | 21873 pathOffset += 12; |
(...skipping 23 matching lines...) Expand all Loading... |
19194 return new async.Future.value(stringResponse(200, h, resp)); | 21897 return new async.Future.value(stringResponse(200, h, resp)); |
19195 }), true); | 21898 }), true); |
19196 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub
account response) { | 21899 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub
account response) { |
19197 checkSubaccount(response); | 21900 checkSubaccount(response); |
19198 }))); | 21901 }))); |
19199 }); | 21902 }); |
19200 | 21903 |
19201 }); | 21904 }); |
19202 | 21905 |
19203 | 21906 |
| 21907 unittest.group("resource-TargetableRemarketingListsResourceApi", () { |
| 21908 unittest.test("method--get", () { |
| 21909 |
| 21910 var mock = new HttpServerMock(); |
| 21911 api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mo
ck).targetableRemarketingLists; |
| 21912 var arg_profileId = "foo"; |
| 21913 var arg_id = "foo"; |
| 21914 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 21915 var path = (req.url).path; |
| 21916 var pathOffset = 0; |
| 21917 var index; |
| 21918 var subPart; |
| 21919 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21920 pathOffset += 1; |
| 21921 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 21922 pathOffset += 18; |
| 21923 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 21924 pathOffset += 13; |
| 21925 index = path.indexOf("/targetableRemarketingLists/", pathOffset); |
| 21926 unittest.expect(index >= 0, unittest.isTrue); |
| 21927 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 21928 pathOffset = index; |
| 21929 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 21930 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq
uals("/targetableRemarketingLists/")); |
| 21931 pathOffset += 28; |
| 21932 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 21933 pathOffset = path.length; |
| 21934 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 21935 |
| 21936 var query = (req.url).query; |
| 21937 var queryOffset = 0; |
| 21938 var queryMap = {}; |
| 21939 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21940 parseBool(n) { |
| 21941 if (n == "true") return true; |
| 21942 if (n == "false") return false; |
| 21943 if (n == null) return null; |
| 21944 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21945 } |
| 21946 if (query.length > 0) { |
| 21947 for (var part in query.split("&")) { |
| 21948 var keyvalue = part.split("="); |
| 21949 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21950 } |
| 21951 } |
| 21952 |
| 21953 |
| 21954 var h = { |
| 21955 "content-type" : "application/json; charset=utf-8", |
| 21956 }; |
| 21957 var resp = convert.JSON.encode(buildTargetableRemarketingList()); |
| 21958 return new async.Future.value(stringResponse(200, h, resp)); |
| 21959 }), true); |
| 21960 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetableR
emarketingList response) { |
| 21961 checkTargetableRemarketingList(response); |
| 21962 }))); |
| 21963 }); |
| 21964 |
| 21965 unittest.test("method--list", () { |
| 21966 |
| 21967 var mock = new HttpServerMock(); |
| 21968 api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mo
ck).targetableRemarketingLists; |
| 21969 var arg_profileId = "foo"; |
| 21970 var arg_advertiserId = "foo"; |
| 21971 var arg_active = true; |
| 21972 var arg_maxResults = 42; |
| 21973 var arg_name = "foo"; |
| 21974 var arg_pageToken = "foo"; |
| 21975 var arg_sortField = "foo"; |
| 21976 var arg_sortOrder = "foo"; |
| 21977 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 21978 var path = (req.url).path; |
| 21979 var pathOffset = 0; |
| 21980 var index; |
| 21981 var subPart; |
| 21982 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21983 pathOffset += 1; |
| 21984 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
| 21985 pathOffset += 18; |
| 21986 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
| 21987 pathOffset += 13; |
| 21988 index = path.indexOf("/targetableRemarketingLists", pathOffset); |
| 21989 unittest.expect(index >= 0, unittest.isTrue); |
| 21990 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 21991 pathOffset = index; |
| 21992 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
| 21993 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("/targetableRemarketingLists")); |
| 21994 pathOffset += 27; |
| 21995 |
| 21996 var query = (req.url).query; |
| 21997 var queryOffset = 0; |
| 21998 var queryMap = {}; |
| 21999 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22000 parseBool(n) { |
| 22001 if (n == "true") return true; |
| 22002 if (n == "false") return false; |
| 22003 if (n == null) return null; |
| 22004 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22005 } |
| 22006 if (query.length > 0) { |
| 22007 for (var part in query.split("&")) { |
| 22008 var keyvalue = part.split("="); |
| 22009 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22010 } |
| 22011 } |
| 22012 unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_adve
rtiserId)); |
| 22013 unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")
); |
| 22014 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 22015 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
| 22016 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 22017 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie
ld)); |
| 22018 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 22019 |
| 22020 |
| 22021 var h = { |
| 22022 "content-type" : "application/json; charset=utf-8", |
| 22023 }; |
| 22024 var resp = convert.JSON.encode(buildTargetableRemarketingListsListRespon
se()); |
| 22025 return new async.Future.value(stringResponse(200, h, resp)); |
| 22026 }), true); |
| 22027 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) { |
| 22028 checkTargetableRemarketingListsListResponse(response); |
| 22029 }))); |
| 22030 }); |
| 22031 |
| 22032 }); |
| 22033 |
| 22034 |
19204 unittest.group("resource-UserProfilesResourceApi", () { | 22035 unittest.group("resource-UserProfilesResourceApi", () { |
19205 unittest.test("method--get", () { | 22036 unittest.test("method--get", () { |
19206 | 22037 |
19207 var mock = new HttpServerMock(); | 22038 var mock = new HttpServerMock(); |
19208 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; | 22039 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; |
19209 var arg_profileId = "foo"; | 22040 var arg_profileId = "foo"; |
19210 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22041 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19211 var path = (req.url).path; | 22042 var path = (req.url).path; |
19212 var pathOffset = 0; | 22043 var pathOffset = 0; |
19213 var index; | 22044 var index; |
19214 var subPart; | 22045 var subPart; |
19215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22046 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19216 pathOffset += 1; | 22047 pathOffset += 1; |
19217 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22048 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19218 pathOffset += 18; | 22049 pathOffset += 18; |
19219 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22050 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19220 pathOffset += 13; | 22051 pathOffset += 13; |
19221 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 22052 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
19222 pathOffset = path.length; | 22053 pathOffset = path.length; |
19223 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22054 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19224 | 22055 |
19225 var query = (req.url).query; | 22056 var query = (req.url).query; |
19226 var queryOffset = 0; | 22057 var queryOffset = 0; |
19227 var queryMap = {}; | 22058 var queryMap = {}; |
(...skipping 27 matching lines...) Expand all Loading... |
19255 | 22086 |
19256 var mock = new HttpServerMock(); | 22087 var mock = new HttpServerMock(); |
19257 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; | 22088 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil
es; |
19258 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22089 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19259 var path = (req.url).path; | 22090 var path = (req.url).path; |
19260 var pathOffset = 0; | 22091 var pathOffset = 0; |
19261 var index; | 22092 var index; |
19262 var subPart; | 22093 var subPart; |
19263 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19264 pathOffset += 1; | 22095 pathOffset += 1; |
19265 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22096 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19266 pathOffset += 18; | 22097 pathOffset += 18; |
19267 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("userprofiles")); | 22098 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("userprofiles")); |
19268 pathOffset += 12; | 22099 pathOffset += 12; |
19269 | 22100 |
19270 var query = (req.url).query; | 22101 var query = (req.url).query; |
19271 var queryOffset = 0; | 22102 var queryOffset = 0; |
19272 var queryMap = {}; | 22103 var queryMap = {}; |
19273 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22104 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
19274 parseBool(n) { | 22105 parseBool(n) { |
19275 if (n == "true") return true; | 22106 if (n == "true") return true; |
(...skipping 30 matching lines...) Expand all Loading... |
19306 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock
).userRolePermissionGroups; | 22137 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock
).userRolePermissionGroups; |
19307 var arg_profileId = "foo"; | 22138 var arg_profileId = "foo"; |
19308 var arg_id = "foo"; | 22139 var arg_id = "foo"; |
19309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22140 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19310 var path = (req.url).path; | 22141 var path = (req.url).path; |
19311 var pathOffset = 0; | 22142 var pathOffset = 0; |
19312 var index; | 22143 var index; |
19313 var subPart; | 22144 var subPart; |
19314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22145 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19315 pathOffset += 1; | 22146 pathOffset += 1; |
19316 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22147 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19317 pathOffset += 18; | 22148 pathOffset += 18; |
19318 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22149 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19319 pathOffset += 13; | 22150 pathOffset += 13; |
19320 index = path.indexOf("/userRolePermissionGroups/", pathOffset); | 22151 index = path.indexOf("/userRolePermissionGroups/", pathOffset); |
19321 unittest.expect(index >= 0, unittest.isTrue); | 22152 unittest.expect(index >= 0, unittest.isTrue); |
19322 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22153 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19323 pathOffset = index; | 22154 pathOffset = index; |
19324 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22155 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19325 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/userRolePermissionGroups/")); | 22156 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("/userRolePermissionGroups/")); |
19326 pathOffset += 26; | 22157 pathOffset += 26; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19362 var mock = new HttpServerMock(); | 22193 var mock = new HttpServerMock(); |
19363 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock
).userRolePermissionGroups; | 22194 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock
).userRolePermissionGroups; |
19364 var arg_profileId = "foo"; | 22195 var arg_profileId = "foo"; |
19365 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22196 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19366 var path = (req.url).path; | 22197 var path = (req.url).path; |
19367 var pathOffset = 0; | 22198 var pathOffset = 0; |
19368 var index; | 22199 var index; |
19369 var subPart; | 22200 var subPart; |
19370 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22201 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19371 pathOffset += 1; | 22202 pathOffset += 1; |
19372 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22203 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19373 pathOffset += 18; | 22204 pathOffset += 18; |
19374 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22205 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19375 pathOffset += 13; | 22206 pathOffset += 13; |
19376 index = path.indexOf("/userRolePermissionGroups", pathOffset); | 22207 index = path.indexOf("/userRolePermissionGroups", pathOffset); |
19377 unittest.expect(index >= 0, unittest.isTrue); | 22208 unittest.expect(index >= 0, unittest.isTrue); |
19378 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22209 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19379 pathOffset = index; | 22210 pathOffset = index; |
19380 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22211 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19381 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/userRolePermissionGroups")); | 22212 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("/userRolePermissionGroups")); |
19382 pathOffset += 25; | 22213 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; | 22251 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use
rRolePermissions; |
19421 var arg_profileId = "foo"; | 22252 var arg_profileId = "foo"; |
19422 var arg_id = "foo"; | 22253 var arg_id = "foo"; |
19423 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22254 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19424 var path = (req.url).path; | 22255 var path = (req.url).path; |
19425 var pathOffset = 0; | 22256 var pathOffset = 0; |
19426 var index; | 22257 var index; |
19427 var subPart; | 22258 var subPart; |
19428 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22259 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19429 pathOffset += 1; | 22260 pathOffset += 1; |
19430 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22261 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19431 pathOffset += 18; | 22262 pathOffset += 18; |
19432 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22263 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19433 pathOffset += 13; | 22264 pathOffset += 13; |
19434 index = path.indexOf("/userRolePermissions/", pathOffset); | 22265 index = path.indexOf("/userRolePermissions/", pathOffset); |
19435 unittest.expect(index >= 0, unittest.isTrue); | 22266 unittest.expect(index >= 0, unittest.isTrue); |
19436 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22267 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19437 pathOffset = index; | 22268 pathOffset = index; |
19438 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22269 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19439 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/userRolePermissions/")); | 22270 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("/userRolePermissions/")); |
19440 pathOffset += 21; | 22271 pathOffset += 21; |
(...skipping 28 matching lines...) Expand all Loading... |
19469 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePer
mission response) { | 22300 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePer
mission response) { |
19470 checkUserRolePermission(response); | 22301 checkUserRolePermission(response); |
19471 }))); | 22302 }))); |
19472 }); | 22303 }); |
19473 | 22304 |
19474 unittest.test("method--list", () { | 22305 unittest.test("method--list", () { |
19475 | 22306 |
19476 var mock = new HttpServerMock(); | 22307 var mock = new HttpServerMock(); |
19477 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use
rRolePermissions; | 22308 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use
rRolePermissions; |
19478 var arg_profileId = "foo"; | 22309 var arg_profileId = "foo"; |
19479 var arg_ids = buildUnnamed491(); | 22310 var arg_ids = buildUnnamed1302(); |
19480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22311 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19481 var path = (req.url).path; | 22312 var path = (req.url).path; |
19482 var pathOffset = 0; | 22313 var pathOffset = 0; |
19483 var index; | 22314 var index; |
19484 var subPart; | 22315 var subPart; |
19485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22316 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19486 pathOffset += 1; | 22317 pathOffset += 1; |
19487 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22318 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19488 pathOffset += 18; | 22319 pathOffset += 18; |
19489 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22320 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19490 pathOffset += 13; | 22321 pathOffset += 13; |
19491 index = path.indexOf("/userRolePermissions", pathOffset); | 22322 index = path.indexOf("/userRolePermissions", pathOffset); |
19492 unittest.expect(index >= 0, unittest.isTrue); | 22323 unittest.expect(index >= 0, unittest.isTrue); |
19493 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22324 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19494 pathOffset = index; | 22325 pathOffset = index; |
19495 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22326 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19496 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/userRolePermissions")); | 22327 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("/userRolePermissions")); |
19497 pathOffset += 20; | 22328 pathOffset += 20; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19536 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; | 22367 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; |
19537 var arg_profileId = "foo"; | 22368 var arg_profileId = "foo"; |
19538 var arg_id = "foo"; | 22369 var arg_id = "foo"; |
19539 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19540 var path = (req.url).path; | 22371 var path = (req.url).path; |
19541 var pathOffset = 0; | 22372 var pathOffset = 0; |
19542 var index; | 22373 var index; |
19543 var subPart; | 22374 var subPart; |
19544 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22375 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19545 pathOffset += 1; | 22376 pathOffset += 1; |
19546 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22377 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19547 pathOffset += 18; | 22378 pathOffset += 18; |
19548 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22379 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19549 pathOffset += 13; | 22380 pathOffset += 13; |
19550 index = path.indexOf("/userRoles/", pathOffset); | 22381 index = path.indexOf("/userRoles/", pathOffset); |
19551 unittest.expect(index >= 0, unittest.isTrue); | 22382 unittest.expect(index >= 0, unittest.isTrue); |
19552 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22383 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19553 pathOffset = index; | 22384 pathOffset = index; |
19554 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22385 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19555 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/userRoles/")); | 22386 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/userRoles/")); |
19556 pathOffset += 11; | 22387 pathOffset += 11; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19591 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; | 22422 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; |
19592 var arg_profileId = "foo"; | 22423 var arg_profileId = "foo"; |
19593 var arg_id = "foo"; | 22424 var arg_id = "foo"; |
19594 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22425 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19595 var path = (req.url).path; | 22426 var path = (req.url).path; |
19596 var pathOffset = 0; | 22427 var pathOffset = 0; |
19597 var index; | 22428 var index; |
19598 var subPart; | 22429 var subPart; |
19599 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22430 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19600 pathOffset += 1; | 22431 pathOffset += 1; |
19601 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22432 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19602 pathOffset += 18; | 22433 pathOffset += 18; |
19603 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22434 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19604 pathOffset += 13; | 22435 pathOffset += 13; |
19605 index = path.indexOf("/userRoles/", pathOffset); | 22436 index = path.indexOf("/userRoles/", pathOffset); |
19606 unittest.expect(index >= 0, unittest.isTrue); | 22437 unittest.expect(index >= 0, unittest.isTrue); |
19607 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22438 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19608 pathOffset = index; | 22439 pathOffset = index; |
19609 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22440 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19610 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/userRoles/")); | 22441 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/userRoles/")); |
19611 pathOffset += 11; | 22442 pathOffset += 11; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19651 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22482 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19652 var obj = new api.UserRole.fromJson(json); | 22483 var obj = new api.UserRole.fromJson(json); |
19653 checkUserRole(obj); | 22484 checkUserRole(obj); |
19654 | 22485 |
19655 var path = (req.url).path; | 22486 var path = (req.url).path; |
19656 var pathOffset = 0; | 22487 var pathOffset = 0; |
19657 var index; | 22488 var index; |
19658 var subPart; | 22489 var subPart; |
19659 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22490 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19660 pathOffset += 1; | 22491 pathOffset += 1; |
19661 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22492 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19662 pathOffset += 18; | 22493 pathOffset += 18; |
19663 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22494 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19664 pathOffset += 13; | 22495 pathOffset += 13; |
19665 index = path.indexOf("/userRoles", pathOffset); | 22496 index = path.indexOf("/userRoles", pathOffset); |
19666 unittest.expect(index >= 0, unittest.isTrue); | 22497 unittest.expect(index >= 0, unittest.isTrue); |
19667 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22498 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19668 pathOffset = index; | 22499 pathOffset = index; |
19669 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22500 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19670 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); | 22501 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); |
19671 pathOffset += 10; | 22502 pathOffset += 10; |
(...skipping 26 matching lines...) Expand all Loading... |
19698 checkUserRole(response); | 22529 checkUserRole(response); |
19699 }))); | 22530 }))); |
19700 }); | 22531 }); |
19701 | 22532 |
19702 unittest.test("method--list", () { | 22533 unittest.test("method--list", () { |
19703 | 22534 |
19704 var mock = new HttpServerMock(); | 22535 var mock = new HttpServerMock(); |
19705 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; | 22536 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; |
19706 var arg_profileId = "foo"; | 22537 var arg_profileId = "foo"; |
19707 var arg_accountUserRoleOnly = true; | 22538 var arg_accountUserRoleOnly = true; |
19708 var arg_ids = buildUnnamed492(); | 22539 var arg_ids = buildUnnamed1303(); |
19709 var arg_maxResults = 42; | 22540 var arg_maxResults = 42; |
19710 var arg_pageToken = "foo"; | 22541 var arg_pageToken = "foo"; |
19711 var arg_searchString = "foo"; | 22542 var arg_searchString = "foo"; |
19712 var arg_sortField = "foo"; | 22543 var arg_sortField = "foo"; |
19713 var arg_sortOrder = "foo"; | 22544 var arg_sortOrder = "foo"; |
19714 var arg_subaccountId = "foo"; | 22545 var arg_subaccountId = "foo"; |
19715 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22546 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19716 var path = (req.url).path; | 22547 var path = (req.url).path; |
19717 var pathOffset = 0; | 22548 var pathOffset = 0; |
19718 var index; | 22549 var index; |
19719 var subPart; | 22550 var subPart; |
19720 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22551 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19721 pathOffset += 1; | 22552 pathOffset += 1; |
19722 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22553 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19723 pathOffset += 18; | 22554 pathOffset += 18; |
19724 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22555 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19725 pathOffset += 13; | 22556 pathOffset += 13; |
19726 index = path.indexOf("/userRoles", pathOffset); | 22557 index = path.indexOf("/userRoles", pathOffset); |
19727 unittest.expect(index >= 0, unittest.isTrue); | 22558 unittest.expect(index >= 0, unittest.isTrue); |
19728 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22559 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19729 pathOffset = index; | 22560 pathOffset = index; |
19730 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22561 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19731 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); | 22562 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); |
19732 pathOffset += 10; | 22563 pathOffset += 10; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19778 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22609 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19779 var obj = new api.UserRole.fromJson(json); | 22610 var obj = new api.UserRole.fromJson(json); |
19780 checkUserRole(obj); | 22611 checkUserRole(obj); |
19781 | 22612 |
19782 var path = (req.url).path; | 22613 var path = (req.url).path; |
19783 var pathOffset = 0; | 22614 var pathOffset = 0; |
19784 var index; | 22615 var index; |
19785 var subPart; | 22616 var subPart; |
19786 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22617 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19787 pathOffset += 1; | 22618 pathOffset += 1; |
19788 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22619 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19789 pathOffset += 18; | 22620 pathOffset += 18; |
19790 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22621 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19791 pathOffset += 13; | 22622 pathOffset += 13; |
19792 index = path.indexOf("/userRoles", pathOffset); | 22623 index = path.indexOf("/userRoles", pathOffset); |
19793 unittest.expect(index >= 0, unittest.isTrue); | 22624 unittest.expect(index >= 0, unittest.isTrue); |
19794 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22625 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19795 pathOffset = index; | 22626 pathOffset = index; |
19796 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22627 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19797 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); | 22628 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); |
19798 pathOffset += 10; | 22629 pathOffset += 10; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19836 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 22667 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
19837 var obj = new api.UserRole.fromJson(json); | 22668 var obj = new api.UserRole.fromJson(json); |
19838 checkUserRole(obj); | 22669 checkUserRole(obj); |
19839 | 22670 |
19840 var path = (req.url).path; | 22671 var path = (req.url).path; |
19841 var pathOffset = 0; | 22672 var pathOffset = 0; |
19842 var index; | 22673 var index; |
19843 var subPart; | 22674 var subPart; |
19844 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22675 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
19845 pathOffset += 1; | 22676 pathOffset += 1; |
19846 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.0/")); | 22677 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("dfareporting/v2.1/")); |
19847 pathOffset += 18; | 22678 pathOffset += 18; |
19848 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); | 22679 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("userprofiles/")); |
19849 pathOffset += 13; | 22680 pathOffset += 13; |
19850 index = path.indexOf("/userRoles", pathOffset); | 22681 index = path.indexOf("/userRoles", pathOffset); |
19851 unittest.expect(index >= 0, unittest.isTrue); | 22682 unittest.expect(index >= 0, unittest.isTrue); |
19852 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 22683 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
19853 pathOffset = index; | 22684 pathOffset = index; |
19854 unittest.expect(subPart, unittest.equals("$arg_profileId")); | 22685 unittest.expect(subPart, unittest.equals("$arg_profileId")); |
19855 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); | 22686 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/userRoles")); |
19856 pathOffset += 10; | 22687 pathOffset += 10; |
(...skipping 25 matching lines...) Expand all Loading... |
19882 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Use
rRole response) { | 22713 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Use
rRole response) { |
19883 checkUserRole(response); | 22714 checkUserRole(response); |
19884 }))); | 22715 }))); |
19885 }); | 22716 }); |
19886 | 22717 |
19887 }); | 22718 }); |
19888 | 22719 |
19889 | 22720 |
19890 } | 22721 } |
19891 | 22722 |
OLD | NEW |