OLD | NEW |
1 library googleapis.adexchangebuyer.v1_3.test; | 1 library googleapis.adexchangebuyer.v1_4.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/adexchangebuyer/v1_3.dart' as api; | 12 import 'package:googleapis/adexchangebuyer/v1_4.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 checkAccountBidderLocation(api.AccountBidderLocation o) { | 67 checkAccountBidderLocation(api.AccountBidderLocation o) { |
68 buildCounterAccountBidderLocation++; | 68 buildCounterAccountBidderLocation++; |
69 if (buildCounterAccountBidderLocation < 3) { | 69 if (buildCounterAccountBidderLocation < 3) { |
70 unittest.expect(o.maximumQps, unittest.equals(42)); | 70 unittest.expect(o.maximumQps, unittest.equals(42)); |
71 unittest.expect(o.region, unittest.equals('foo')); | 71 unittest.expect(o.region, unittest.equals('foo')); |
72 unittest.expect(o.url, unittest.equals('foo')); | 72 unittest.expect(o.url, unittest.equals('foo')); |
73 } | 73 } |
74 buildCounterAccountBidderLocation--; | 74 buildCounterAccountBidderLocation--; |
75 } | 75 } |
76 | 76 |
77 buildUnnamed841() { | 77 buildUnnamed44() { |
78 var o = new core.List<api.AccountBidderLocation>(); | 78 var o = new core.List<api.AccountBidderLocation>(); |
79 o.add(buildAccountBidderLocation()); | 79 o.add(buildAccountBidderLocation()); |
80 o.add(buildAccountBidderLocation()); | 80 o.add(buildAccountBidderLocation()); |
81 return o; | 81 return o; |
82 } | 82 } |
83 | 83 |
84 checkUnnamed841(core.List<api.AccountBidderLocation> o) { | 84 checkUnnamed44(core.List<api.AccountBidderLocation> o) { |
85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
86 checkAccountBidderLocation(o[0]); | 86 checkAccountBidderLocation(o[0]); |
87 checkAccountBidderLocation(o[1]); | 87 checkAccountBidderLocation(o[1]); |
88 } | 88 } |
89 | 89 |
90 core.int buildCounterAccount = 0; | 90 core.int buildCounterAccount = 0; |
91 buildAccount() { | 91 buildAccount() { |
92 var o = new api.Account(); | 92 var o = new api.Account(); |
93 buildCounterAccount++; | 93 buildCounterAccount++; |
94 if (buildCounterAccount < 3) { | 94 if (buildCounterAccount < 3) { |
95 o.bidderLocation = buildUnnamed841(); | 95 o.bidderLocation = buildUnnamed44(); |
96 o.cookieMatchingNid = "foo"; | 96 o.cookieMatchingNid = "foo"; |
97 o.cookieMatchingUrl = "foo"; | 97 o.cookieMatchingUrl = "foo"; |
98 o.id = 42; | 98 o.id = 42; |
99 o.kind = "foo"; | 99 o.kind = "foo"; |
100 o.maximumActiveCreatives = 42; | 100 o.maximumActiveCreatives = 42; |
101 o.maximumTotalQps = 42; | 101 o.maximumTotalQps = 42; |
102 o.numberActiveCreatives = 42; | 102 o.numberActiveCreatives = 42; |
103 } | 103 } |
104 buildCounterAccount--; | 104 buildCounterAccount--; |
105 return o; | 105 return o; |
106 } | 106 } |
107 | 107 |
108 checkAccount(api.Account o) { | 108 checkAccount(api.Account o) { |
109 buildCounterAccount++; | 109 buildCounterAccount++; |
110 if (buildCounterAccount < 3) { | 110 if (buildCounterAccount < 3) { |
111 checkUnnamed841(o.bidderLocation); | 111 checkUnnamed44(o.bidderLocation); |
112 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); | 112 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); |
113 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); | 113 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); |
114 unittest.expect(o.id, unittest.equals(42)); | 114 unittest.expect(o.id, unittest.equals(42)); |
115 unittest.expect(o.kind, unittest.equals('foo')); | 115 unittest.expect(o.kind, unittest.equals('foo')); |
116 unittest.expect(o.maximumActiveCreatives, unittest.equals(42)); | 116 unittest.expect(o.maximumActiveCreatives, unittest.equals(42)); |
117 unittest.expect(o.maximumTotalQps, unittest.equals(42)); | 117 unittest.expect(o.maximumTotalQps, unittest.equals(42)); |
118 unittest.expect(o.numberActiveCreatives, unittest.equals(42)); | 118 unittest.expect(o.numberActiveCreatives, unittest.equals(42)); |
119 } | 119 } |
120 buildCounterAccount--; | 120 buildCounterAccount--; |
121 } | 121 } |
122 | 122 |
123 buildUnnamed842() { | 123 buildUnnamed45() { |
124 var o = new core.List<api.Account>(); | 124 var o = new core.List<api.Account>(); |
125 o.add(buildAccount()); | 125 o.add(buildAccount()); |
126 o.add(buildAccount()); | 126 o.add(buildAccount()); |
127 return o; | 127 return o; |
128 } | 128 } |
129 | 129 |
130 checkUnnamed842(core.List<api.Account> o) { | 130 checkUnnamed45(core.List<api.Account> o) { |
131 unittest.expect(o, unittest.hasLength(2)); | 131 unittest.expect(o, unittest.hasLength(2)); |
132 checkAccount(o[0]); | 132 checkAccount(o[0]); |
133 checkAccount(o[1]); | 133 checkAccount(o[1]); |
134 } | 134 } |
135 | 135 |
136 core.int buildCounterAccountsList = 0; | 136 core.int buildCounterAccountsList = 0; |
137 buildAccountsList() { | 137 buildAccountsList() { |
138 var o = new api.AccountsList(); | 138 var o = new api.AccountsList(); |
139 buildCounterAccountsList++; | 139 buildCounterAccountsList++; |
140 if (buildCounterAccountsList < 3) { | 140 if (buildCounterAccountsList < 3) { |
141 o.items = buildUnnamed842(); | 141 o.items = buildUnnamed45(); |
142 o.kind = "foo"; | 142 o.kind = "foo"; |
143 } | 143 } |
144 buildCounterAccountsList--; | 144 buildCounterAccountsList--; |
145 return o; | 145 return o; |
146 } | 146 } |
147 | 147 |
148 checkAccountsList(api.AccountsList o) { | 148 checkAccountsList(api.AccountsList o) { |
149 buildCounterAccountsList++; | 149 buildCounterAccountsList++; |
150 if (buildCounterAccountsList < 3) { | 150 if (buildCounterAccountsList < 3) { |
151 checkUnnamed842(o.items); | 151 checkUnnamed45(o.items); |
152 unittest.expect(o.kind, unittest.equals('foo')); | 152 unittest.expect(o.kind, unittest.equals('foo')); |
153 } | 153 } |
154 buildCounterAccountsList--; | 154 buildCounterAccountsList--; |
155 } | 155 } |
156 | 156 |
157 buildUnnamed843() { | 157 buildUnnamed46() { |
158 var o = new core.List<core.String>(); | 158 var o = new core.List<core.String>(); |
159 o.add("foo"); | 159 o.add("foo"); |
160 o.add("foo"); | 160 o.add("foo"); |
161 return o; | 161 return o; |
162 } | 162 } |
163 | 163 |
164 checkUnnamed843(core.List<core.String> o) { | 164 checkUnnamed46(core.List<core.String> o) { |
165 unittest.expect(o, unittest.hasLength(2)); | 165 unittest.expect(o, unittest.hasLength(2)); |
166 unittest.expect(o[0], unittest.equals('foo')); | 166 unittest.expect(o[0], unittest.equals('foo')); |
167 unittest.expect(o[1], unittest.equals('foo')); | 167 unittest.expect(o[1], unittest.equals('foo')); |
168 } | 168 } |
169 | 169 |
170 core.int buildCounterBillingInfo = 0; | 170 core.int buildCounterBillingInfo = 0; |
171 buildBillingInfo() { | 171 buildBillingInfo() { |
172 var o = new api.BillingInfo(); | 172 var o = new api.BillingInfo(); |
173 buildCounterBillingInfo++; | 173 buildCounterBillingInfo++; |
174 if (buildCounterBillingInfo < 3) { | 174 if (buildCounterBillingInfo < 3) { |
175 o.accountId = 42; | 175 o.accountId = 42; |
176 o.accountName = "foo"; | 176 o.accountName = "foo"; |
177 o.billingId = buildUnnamed843(); | 177 o.billingId = buildUnnamed46(); |
178 o.kind = "foo"; | 178 o.kind = "foo"; |
179 } | 179 } |
180 buildCounterBillingInfo--; | 180 buildCounterBillingInfo--; |
181 return o; | 181 return o; |
182 } | 182 } |
183 | 183 |
184 checkBillingInfo(api.BillingInfo o) { | 184 checkBillingInfo(api.BillingInfo o) { |
185 buildCounterBillingInfo++; | 185 buildCounterBillingInfo++; |
186 if (buildCounterBillingInfo < 3) { | 186 if (buildCounterBillingInfo < 3) { |
187 unittest.expect(o.accountId, unittest.equals(42)); | 187 unittest.expect(o.accountId, unittest.equals(42)); |
188 unittest.expect(o.accountName, unittest.equals('foo')); | 188 unittest.expect(o.accountName, unittest.equals('foo')); |
189 checkUnnamed843(o.billingId); | 189 checkUnnamed46(o.billingId); |
190 unittest.expect(o.kind, unittest.equals('foo')); | 190 unittest.expect(o.kind, unittest.equals('foo')); |
191 } | 191 } |
192 buildCounterBillingInfo--; | 192 buildCounterBillingInfo--; |
193 } | 193 } |
194 | 194 |
195 buildUnnamed844() { | 195 buildUnnamed47() { |
196 var o = new core.List<api.BillingInfo>(); | 196 var o = new core.List<api.BillingInfo>(); |
197 o.add(buildBillingInfo()); | 197 o.add(buildBillingInfo()); |
198 o.add(buildBillingInfo()); | 198 o.add(buildBillingInfo()); |
199 return o; | 199 return o; |
200 } | 200 } |
201 | 201 |
202 checkUnnamed844(core.List<api.BillingInfo> o) { | 202 checkUnnamed47(core.List<api.BillingInfo> o) { |
203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
204 checkBillingInfo(o[0]); | 204 checkBillingInfo(o[0]); |
205 checkBillingInfo(o[1]); | 205 checkBillingInfo(o[1]); |
206 } | 206 } |
207 | 207 |
208 core.int buildCounterBillingInfoList = 0; | 208 core.int buildCounterBillingInfoList = 0; |
209 buildBillingInfoList() { | 209 buildBillingInfoList() { |
210 var o = new api.BillingInfoList(); | 210 var o = new api.BillingInfoList(); |
211 buildCounterBillingInfoList++; | 211 buildCounterBillingInfoList++; |
212 if (buildCounterBillingInfoList < 3) { | 212 if (buildCounterBillingInfoList < 3) { |
213 o.items = buildUnnamed844(); | 213 o.items = buildUnnamed47(); |
214 o.kind = "foo"; | 214 o.kind = "foo"; |
215 } | 215 } |
216 buildCounterBillingInfoList--; | 216 buildCounterBillingInfoList--; |
217 return o; | 217 return o; |
218 } | 218 } |
219 | 219 |
220 checkBillingInfoList(api.BillingInfoList o) { | 220 checkBillingInfoList(api.BillingInfoList o) { |
221 buildCounterBillingInfoList++; | 221 buildCounterBillingInfoList++; |
222 if (buildCounterBillingInfoList < 3) { | 222 if (buildCounterBillingInfoList < 3) { |
223 checkUnnamed844(o.items); | 223 checkUnnamed47(o.items); |
224 unittest.expect(o.kind, unittest.equals('foo')); | 224 unittest.expect(o.kind, unittest.equals('foo')); |
225 } | 225 } |
226 buildCounterBillingInfoList--; | 226 buildCounterBillingInfoList--; |
227 } | 227 } |
228 | 228 |
229 core.int buildCounterBudget = 0; | 229 core.int buildCounterBudget = 0; |
230 buildBudget() { | 230 buildBudget() { |
231 var o = new api.Budget(); | 231 var o = new api.Budget(); |
232 buildCounterBudget++; | 232 buildCounterBudget++; |
233 if (buildCounterBudget < 3) { | 233 if (buildCounterBudget < 3) { |
(...skipping 14 matching lines...) Expand all Loading... |
248 unittest.expect(o.accountId, unittest.equals('foo')); | 248 unittest.expect(o.accountId, unittest.equals('foo')); |
249 unittest.expect(o.billingId, unittest.equals('foo')); | 249 unittest.expect(o.billingId, unittest.equals('foo')); |
250 unittest.expect(o.budgetAmount, unittest.equals('foo')); | 250 unittest.expect(o.budgetAmount, unittest.equals('foo')); |
251 unittest.expect(o.currencyCode, unittest.equals('foo')); | 251 unittest.expect(o.currencyCode, unittest.equals('foo')); |
252 unittest.expect(o.id, unittest.equals('foo')); | 252 unittest.expect(o.id, unittest.equals('foo')); |
253 unittest.expect(o.kind, unittest.equals('foo')); | 253 unittest.expect(o.kind, unittest.equals('foo')); |
254 } | 254 } |
255 buildCounterBudget--; | 255 buildCounterBudget--; |
256 } | 256 } |
257 | 257 |
258 buildUnnamed845() { | 258 buildUnnamed48() { |
259 var o = new core.List<core.String>(); | 259 var o = new core.List<core.String>(); |
260 o.add("foo"); | 260 o.add("foo"); |
261 o.add("foo"); | 261 o.add("foo"); |
262 return o; | 262 return o; |
263 } | 263 } |
264 | 264 |
265 checkUnnamed845(core.List<core.String> o) { | 265 checkUnnamed48(core.List<core.String> o) { |
266 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
267 unittest.expect(o[0], unittest.equals('foo')); | 267 unittest.expect(o[0], unittest.equals('foo')); |
268 unittest.expect(o[1], unittest.equals('foo')); | 268 unittest.expect(o[1], unittest.equals('foo')); |
269 } | 269 } |
270 | 270 |
271 buildUnnamed846() { | 271 buildUnnamed49() { |
272 var o = new core.List<core.int>(); | 272 var o = new core.List<core.int>(); |
273 o.add(42); | 273 o.add(42); |
274 o.add(42); | 274 o.add(42); |
275 return o; | 275 return o; |
276 } | 276 } |
277 | 277 |
278 checkUnnamed846(core.List<core.int> o) { | 278 checkUnnamed49(core.List<core.int> o) { |
279 unittest.expect(o, unittest.hasLength(2)); | 279 unittest.expect(o, unittest.hasLength(2)); |
280 unittest.expect(o[0], unittest.equals(42)); | 280 unittest.expect(o[0], unittest.equals(42)); |
281 unittest.expect(o[1], unittest.equals(42)); | 281 unittest.expect(o[1], unittest.equals(42)); |
282 } | 282 } |
283 | 283 |
284 buildUnnamed847() { | 284 buildUnnamed50() { |
285 var o = new core.List<core.String>(); | 285 var o = new core.List<core.String>(); |
286 o.add("foo"); | 286 o.add("foo"); |
287 o.add("foo"); | 287 o.add("foo"); |
288 return o; | 288 return o; |
289 } | 289 } |
290 | 290 |
291 checkUnnamed847(core.List<core.String> o) { | 291 checkUnnamed50(core.List<core.String> o) { |
292 unittest.expect(o, unittest.hasLength(2)); | 292 unittest.expect(o, unittest.hasLength(2)); |
293 unittest.expect(o[0], unittest.equals('foo')); | 293 unittest.expect(o[0], unittest.equals('foo')); |
294 unittest.expect(o[1], unittest.equals('foo')); | 294 unittest.expect(o[1], unittest.equals('foo')); |
295 } | 295 } |
296 | 296 |
297 buildUnnamed848() { | 297 buildUnnamed51() { |
298 var o = new core.List<core.String>(); | 298 var o = new core.List<core.String>(); |
299 o.add("foo"); | 299 o.add("foo"); |
300 o.add("foo"); | 300 o.add("foo"); |
301 return o; | 301 return o; |
302 } | 302 } |
303 | 303 |
304 checkUnnamed848(core.List<core.String> o) { | 304 checkUnnamed51(core.List<core.String> o) { |
305 unittest.expect(o, unittest.hasLength(2)); | 305 unittest.expect(o, unittest.hasLength(2)); |
306 unittest.expect(o[0], unittest.equals('foo')); | 306 unittest.expect(o[0], unittest.equals('foo')); |
307 unittest.expect(o[1], unittest.equals('foo')); | 307 unittest.expect(o[1], unittest.equals('foo')); |
308 } | 308 } |
309 | 309 |
310 core.int buildCounterCreativeCorrections = 0; | 310 core.int buildCounterCreativeCorrections = 0; |
311 buildCreativeCorrections() { | 311 buildCreativeCorrections() { |
312 var o = new api.CreativeCorrections(); | 312 var o = new api.CreativeCorrections(); |
313 buildCounterCreativeCorrections++; | 313 buildCounterCreativeCorrections++; |
314 if (buildCounterCreativeCorrections < 3) { | 314 if (buildCounterCreativeCorrections < 3) { |
315 o.details = buildUnnamed848(); | 315 o.details = buildUnnamed51(); |
316 o.reason = "foo"; | 316 o.reason = "foo"; |
317 } | 317 } |
318 buildCounterCreativeCorrections--; | 318 buildCounterCreativeCorrections--; |
319 return o; | 319 return o; |
320 } | 320 } |
321 | 321 |
322 checkCreativeCorrections(api.CreativeCorrections o) { | 322 checkCreativeCorrections(api.CreativeCorrections o) { |
323 buildCounterCreativeCorrections++; | 323 buildCounterCreativeCorrections++; |
324 if (buildCounterCreativeCorrections < 3) { | 324 if (buildCounterCreativeCorrections < 3) { |
325 checkUnnamed848(o.details); | 325 checkUnnamed51(o.details); |
326 unittest.expect(o.reason, unittest.equals('foo')); | 326 unittest.expect(o.reason, unittest.equals('foo')); |
327 } | 327 } |
328 buildCounterCreativeCorrections--; | 328 buildCounterCreativeCorrections--; |
329 } | 329 } |
330 | 330 |
331 buildUnnamed849() { | 331 buildUnnamed52() { |
332 var o = new core.List<api.CreativeCorrections>(); | 332 var o = new core.List<api.CreativeCorrections>(); |
333 o.add(buildCreativeCorrections()); | 333 o.add(buildCreativeCorrections()); |
334 o.add(buildCreativeCorrections()); | 334 o.add(buildCreativeCorrections()); |
335 return o; | 335 return o; |
336 } | 336 } |
337 | 337 |
338 checkUnnamed849(core.List<api.CreativeCorrections> o) { | 338 checkUnnamed52(core.List<api.CreativeCorrections> o) { |
339 unittest.expect(o, unittest.hasLength(2)); | 339 unittest.expect(o, unittest.hasLength(2)); |
340 checkCreativeCorrections(o[0]); | 340 checkCreativeCorrections(o[0]); |
341 checkCreativeCorrections(o[1]); | 341 checkCreativeCorrections(o[1]); |
342 } | 342 } |
343 | 343 |
344 buildUnnamed850() { | |
345 var o = new core.List<core.String>(); | |
346 o.add("foo"); | |
347 o.add("foo"); | |
348 return o; | |
349 } | |
350 | |
351 checkUnnamed850(core.List<core.String> o) { | |
352 unittest.expect(o, unittest.hasLength(2)); | |
353 unittest.expect(o[0], unittest.equals('foo')); | |
354 unittest.expect(o[1], unittest.equals('foo')); | |
355 } | |
356 | |
357 core.int buildCounterCreativeDisapprovalReasons = 0; | |
358 buildCreativeDisapprovalReasons() { | |
359 var o = new api.CreativeDisapprovalReasons(); | |
360 buildCounterCreativeDisapprovalReasons++; | |
361 if (buildCounterCreativeDisapprovalReasons < 3) { | |
362 o.details = buildUnnamed850(); | |
363 o.reason = "foo"; | |
364 } | |
365 buildCounterCreativeDisapprovalReasons--; | |
366 return o; | |
367 } | |
368 | |
369 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { | |
370 buildCounterCreativeDisapprovalReasons++; | |
371 if (buildCounterCreativeDisapprovalReasons < 3) { | |
372 checkUnnamed850(o.details); | |
373 unittest.expect(o.reason, unittest.equals('foo')); | |
374 } | |
375 buildCounterCreativeDisapprovalReasons--; | |
376 } | |
377 | |
378 buildUnnamed851() { | |
379 var o = new core.List<api.CreativeDisapprovalReasons>(); | |
380 o.add(buildCreativeDisapprovalReasons()); | |
381 o.add(buildCreativeDisapprovalReasons()); | |
382 return o; | |
383 } | |
384 | |
385 checkUnnamed851(core.List<api.CreativeDisapprovalReasons> o) { | |
386 unittest.expect(o, unittest.hasLength(2)); | |
387 checkCreativeDisapprovalReasons(o[0]); | |
388 checkCreativeDisapprovalReasons(o[1]); | |
389 } | |
390 | |
391 core.int buildCounterCreativeFilteringReasonsReasons = 0; | 344 core.int buildCounterCreativeFilteringReasonsReasons = 0; |
392 buildCreativeFilteringReasonsReasons() { | 345 buildCreativeFilteringReasonsReasons() { |
393 var o = new api.CreativeFilteringReasonsReasons(); | 346 var o = new api.CreativeFilteringReasonsReasons(); |
394 buildCounterCreativeFilteringReasonsReasons++; | 347 buildCounterCreativeFilteringReasonsReasons++; |
395 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 348 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
396 o.filteringCount = "foo"; | 349 o.filteringCount = "foo"; |
397 o.filteringStatus = 42; | 350 o.filteringStatus = 42; |
398 } | 351 } |
399 buildCounterCreativeFilteringReasonsReasons--; | 352 buildCounterCreativeFilteringReasonsReasons--; |
400 return o; | 353 return o; |
401 } | 354 } |
402 | 355 |
403 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { | 356 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { |
404 buildCounterCreativeFilteringReasonsReasons++; | 357 buildCounterCreativeFilteringReasonsReasons++; |
405 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 358 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
406 unittest.expect(o.filteringCount, unittest.equals('foo')); | 359 unittest.expect(o.filteringCount, unittest.equals('foo')); |
407 unittest.expect(o.filteringStatus, unittest.equals(42)); | 360 unittest.expect(o.filteringStatus, unittest.equals(42)); |
408 } | 361 } |
409 buildCounterCreativeFilteringReasonsReasons--; | 362 buildCounterCreativeFilteringReasonsReasons--; |
410 } | 363 } |
411 | 364 |
412 buildUnnamed852() { | 365 buildUnnamed53() { |
413 var o = new core.List<api.CreativeFilteringReasonsReasons>(); | 366 var o = new core.List<api.CreativeFilteringReasonsReasons>(); |
414 o.add(buildCreativeFilteringReasonsReasons()); | 367 o.add(buildCreativeFilteringReasonsReasons()); |
415 o.add(buildCreativeFilteringReasonsReasons()); | 368 o.add(buildCreativeFilteringReasonsReasons()); |
416 return o; | 369 return o; |
417 } | 370 } |
418 | 371 |
419 checkUnnamed852(core.List<api.CreativeFilteringReasonsReasons> o) { | 372 checkUnnamed53(core.List<api.CreativeFilteringReasonsReasons> o) { |
420 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
421 checkCreativeFilteringReasonsReasons(o[0]); | 374 checkCreativeFilteringReasonsReasons(o[0]); |
422 checkCreativeFilteringReasonsReasons(o[1]); | 375 checkCreativeFilteringReasonsReasons(o[1]); |
423 } | 376 } |
424 | 377 |
425 core.int buildCounterCreativeFilteringReasons = 0; | 378 core.int buildCounterCreativeFilteringReasons = 0; |
426 buildCreativeFilteringReasons() { | 379 buildCreativeFilteringReasons() { |
427 var o = new api.CreativeFilteringReasons(); | 380 var o = new api.CreativeFilteringReasons(); |
428 buildCounterCreativeFilteringReasons++; | 381 buildCounterCreativeFilteringReasons++; |
429 if (buildCounterCreativeFilteringReasons < 3) { | 382 if (buildCounterCreativeFilteringReasons < 3) { |
430 o.date = "foo"; | 383 o.date = "foo"; |
431 o.reasons = buildUnnamed852(); | 384 o.reasons = buildUnnamed53(); |
432 } | 385 } |
433 buildCounterCreativeFilteringReasons--; | 386 buildCounterCreativeFilteringReasons--; |
434 return o; | 387 return o; |
435 } | 388 } |
436 | 389 |
437 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { | 390 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { |
438 buildCounterCreativeFilteringReasons++; | 391 buildCounterCreativeFilteringReasons++; |
439 if (buildCounterCreativeFilteringReasons < 3) { | 392 if (buildCounterCreativeFilteringReasons < 3) { |
440 unittest.expect(o.date, unittest.equals('foo')); | 393 unittest.expect(o.date, unittest.equals('foo')); |
441 checkUnnamed852(o.reasons); | 394 checkUnnamed53(o.reasons); |
442 } | 395 } |
443 buildCounterCreativeFilteringReasons--; | 396 buildCounterCreativeFilteringReasons--; |
444 } | 397 } |
445 | 398 |
446 buildUnnamed853() { | 399 buildUnnamed54() { |
447 var o = new core.List<core.int>(); | 400 var o = new core.List<core.int>(); |
448 o.add(42); | 401 o.add(42); |
449 o.add(42); | 402 o.add(42); |
450 return o; | 403 return o; |
451 } | 404 } |
452 | 405 |
453 checkUnnamed853(core.List<core.int> o) { | 406 checkUnnamed54(core.List<core.int> o) { |
454 unittest.expect(o, unittest.hasLength(2)); | 407 unittest.expect(o, unittest.hasLength(2)); |
455 unittest.expect(o[0], unittest.equals(42)); | 408 unittest.expect(o[0], unittest.equals(42)); |
456 unittest.expect(o[1], unittest.equals(42)); | 409 unittest.expect(o[1], unittest.equals(42)); |
457 } | 410 } |
458 | 411 |
459 buildUnnamed854() { | 412 buildUnnamed55() { |
460 var o = new core.List<core.int>(); | 413 var o = new core.List<core.int>(); |
461 o.add(42); | 414 o.add(42); |
462 o.add(42); | 415 o.add(42); |
463 return o; | 416 return o; |
464 } | 417 } |
465 | 418 |
466 checkUnnamed854(core.List<core.int> o) { | 419 checkUnnamed55(core.List<core.int> o) { |
467 unittest.expect(o, unittest.hasLength(2)); | 420 unittest.expect(o, unittest.hasLength(2)); |
468 unittest.expect(o[0], unittest.equals(42)); | 421 unittest.expect(o[0], unittest.equals(42)); |
469 unittest.expect(o[1], unittest.equals(42)); | 422 unittest.expect(o[1], unittest.equals(42)); |
470 } | 423 } |
471 | 424 |
472 buildUnnamed855() { | 425 buildUnnamed56() { |
473 var o = new core.List<core.int>(); | 426 var o = new core.List<core.int>(); |
474 o.add(42); | 427 o.add(42); |
475 o.add(42); | 428 o.add(42); |
476 return o; | 429 return o; |
477 } | 430 } |
478 | 431 |
479 checkUnnamed855(core.List<core.int> o) { | 432 checkUnnamed56(core.List<core.int> o) { |
480 unittest.expect(o, unittest.hasLength(2)); | 433 unittest.expect(o, unittest.hasLength(2)); |
481 unittest.expect(o[0], unittest.equals(42)); | 434 unittest.expect(o[0], unittest.equals(42)); |
482 unittest.expect(o[1], unittest.equals(42)); | 435 unittest.expect(o[1], unittest.equals(42)); |
483 } | 436 } |
484 | 437 |
485 buildUnnamed856() { | 438 buildUnnamed57() { |
486 var o = new core.List<core.int>(); | 439 var o = new core.List<core.String>(); |
487 o.add(42); | 440 o.add("foo"); |
488 o.add(42); | 441 o.add("foo"); |
489 return o; | 442 return o; |
490 } | 443 } |
491 | 444 |
492 checkUnnamed856(core.List<core.int> o) { | 445 checkUnnamed57(core.List<core.String> o) { |
493 unittest.expect(o, unittest.hasLength(2)); | 446 unittest.expect(o, unittest.hasLength(2)); |
494 unittest.expect(o[0], unittest.equals(42)); | 447 unittest.expect(o[0], unittest.equals('foo')); |
495 unittest.expect(o[1], unittest.equals(42)); | 448 unittest.expect(o[1], unittest.equals('foo')); |
| 449 } |
| 450 |
| 451 buildUnnamed58() { |
| 452 var o = new core.List<core.int>(); |
| 453 o.add(42); |
| 454 o.add(42); |
| 455 return o; |
| 456 } |
| 457 |
| 458 checkUnnamed58(core.List<core.int> o) { |
| 459 unittest.expect(o, unittest.hasLength(2)); |
| 460 unittest.expect(o[0], unittest.equals(42)); |
| 461 unittest.expect(o[1], unittest.equals(42)); |
| 462 } |
| 463 |
| 464 buildUnnamed59() { |
| 465 var o = new core.List<core.String>(); |
| 466 o.add("foo"); |
| 467 o.add("foo"); |
| 468 return o; |
| 469 } |
| 470 |
| 471 checkUnnamed59(core.List<core.String> o) { |
| 472 unittest.expect(o, unittest.hasLength(2)); |
| 473 unittest.expect(o[0], unittest.equals('foo')); |
| 474 unittest.expect(o[1], unittest.equals('foo')); |
| 475 } |
| 476 |
| 477 core.int buildCounterCreativeServingRestrictionsContexts = 0; |
| 478 buildCreativeServingRestrictionsContexts() { |
| 479 var o = new api.CreativeServingRestrictionsContexts(); |
| 480 buildCounterCreativeServingRestrictionsContexts++; |
| 481 if (buildCounterCreativeServingRestrictionsContexts < 3) { |
| 482 o.auctionType = buildUnnamed57(); |
| 483 o.contextType = "foo"; |
| 484 o.geoCriteriaId = buildUnnamed58(); |
| 485 o.platform = buildUnnamed59(); |
| 486 } |
| 487 buildCounterCreativeServingRestrictionsContexts--; |
| 488 return o; |
| 489 } |
| 490 |
| 491 checkCreativeServingRestrictionsContexts(api.CreativeServingRestrictionsContexts
o) { |
| 492 buildCounterCreativeServingRestrictionsContexts++; |
| 493 if (buildCounterCreativeServingRestrictionsContexts < 3) { |
| 494 checkUnnamed57(o.auctionType); |
| 495 unittest.expect(o.contextType, unittest.equals('foo')); |
| 496 checkUnnamed58(o.geoCriteriaId); |
| 497 checkUnnamed59(o.platform); |
| 498 } |
| 499 buildCounterCreativeServingRestrictionsContexts--; |
| 500 } |
| 501 |
| 502 buildUnnamed60() { |
| 503 var o = new core.List<api.CreativeServingRestrictionsContexts>(); |
| 504 o.add(buildCreativeServingRestrictionsContexts()); |
| 505 o.add(buildCreativeServingRestrictionsContexts()); |
| 506 return o; |
| 507 } |
| 508 |
| 509 checkUnnamed60(core.List<api.CreativeServingRestrictionsContexts> o) { |
| 510 unittest.expect(o, unittest.hasLength(2)); |
| 511 checkCreativeServingRestrictionsContexts(o[0]); |
| 512 checkCreativeServingRestrictionsContexts(o[1]); |
| 513 } |
| 514 |
| 515 buildUnnamed61() { |
| 516 var o = new core.List<core.String>(); |
| 517 o.add("foo"); |
| 518 o.add("foo"); |
| 519 return o; |
| 520 } |
| 521 |
| 522 checkUnnamed61(core.List<core.String> o) { |
| 523 unittest.expect(o, unittest.hasLength(2)); |
| 524 unittest.expect(o[0], unittest.equals('foo')); |
| 525 unittest.expect(o[1], unittest.equals('foo')); |
| 526 } |
| 527 |
| 528 core.int buildCounterCreativeServingRestrictionsDisapprovalReasons = 0; |
| 529 buildCreativeServingRestrictionsDisapprovalReasons() { |
| 530 var o = new api.CreativeServingRestrictionsDisapprovalReasons(); |
| 531 buildCounterCreativeServingRestrictionsDisapprovalReasons++; |
| 532 if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { |
| 533 o.details = buildUnnamed61(); |
| 534 o.reason = "foo"; |
| 535 } |
| 536 buildCounterCreativeServingRestrictionsDisapprovalReasons--; |
| 537 return o; |
| 538 } |
| 539 |
| 540 checkCreativeServingRestrictionsDisapprovalReasons(api.CreativeServingRestrictio
nsDisapprovalReasons o) { |
| 541 buildCounterCreativeServingRestrictionsDisapprovalReasons++; |
| 542 if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { |
| 543 checkUnnamed61(o.details); |
| 544 unittest.expect(o.reason, unittest.equals('foo')); |
| 545 } |
| 546 buildCounterCreativeServingRestrictionsDisapprovalReasons--; |
| 547 } |
| 548 |
| 549 buildUnnamed62() { |
| 550 var o = new core.List<api.CreativeServingRestrictionsDisapprovalReasons>(); |
| 551 o.add(buildCreativeServingRestrictionsDisapprovalReasons()); |
| 552 o.add(buildCreativeServingRestrictionsDisapprovalReasons()); |
| 553 return o; |
| 554 } |
| 555 |
| 556 checkUnnamed62(core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { |
| 557 unittest.expect(o, unittest.hasLength(2)); |
| 558 checkCreativeServingRestrictionsDisapprovalReasons(o[0]); |
| 559 checkCreativeServingRestrictionsDisapprovalReasons(o[1]); |
| 560 } |
| 561 |
| 562 core.int buildCounterCreativeServingRestrictions = 0; |
| 563 buildCreativeServingRestrictions() { |
| 564 var o = new api.CreativeServingRestrictions(); |
| 565 buildCounterCreativeServingRestrictions++; |
| 566 if (buildCounterCreativeServingRestrictions < 3) { |
| 567 o.contexts = buildUnnamed60(); |
| 568 o.disapprovalReasons = buildUnnamed62(); |
| 569 o.reason = "foo"; |
| 570 } |
| 571 buildCounterCreativeServingRestrictions--; |
| 572 return o; |
| 573 } |
| 574 |
| 575 checkCreativeServingRestrictions(api.CreativeServingRestrictions o) { |
| 576 buildCounterCreativeServingRestrictions++; |
| 577 if (buildCounterCreativeServingRestrictions < 3) { |
| 578 checkUnnamed60(o.contexts); |
| 579 checkUnnamed62(o.disapprovalReasons); |
| 580 unittest.expect(o.reason, unittest.equals('foo')); |
| 581 } |
| 582 buildCounterCreativeServingRestrictions--; |
| 583 } |
| 584 |
| 585 buildUnnamed63() { |
| 586 var o = new core.List<api.CreativeServingRestrictions>(); |
| 587 o.add(buildCreativeServingRestrictions()); |
| 588 o.add(buildCreativeServingRestrictions()); |
| 589 return o; |
| 590 } |
| 591 |
| 592 checkUnnamed63(core.List<api.CreativeServingRestrictions> o) { |
| 593 unittest.expect(o, unittest.hasLength(2)); |
| 594 checkCreativeServingRestrictions(o[0]); |
| 595 checkCreativeServingRestrictions(o[1]); |
| 596 } |
| 597 |
| 598 buildUnnamed64() { |
| 599 var o = new core.List<core.int>(); |
| 600 o.add(42); |
| 601 o.add(42); |
| 602 return o; |
| 603 } |
| 604 |
| 605 checkUnnamed64(core.List<core.int> o) { |
| 606 unittest.expect(o, unittest.hasLength(2)); |
| 607 unittest.expect(o[0], unittest.equals(42)); |
| 608 unittest.expect(o[1], unittest.equals(42)); |
496 } | 609 } |
497 | 610 |
498 core.int buildCounterCreative = 0; | 611 core.int buildCounterCreative = 0; |
499 buildCreative() { | 612 buildCreative() { |
500 var o = new api.Creative(); | 613 var o = new api.Creative(); |
501 buildCounterCreative++; | 614 buildCounterCreative++; |
502 if (buildCounterCreative < 3) { | 615 if (buildCounterCreative < 3) { |
503 o.HTMLSnippet = "foo"; | 616 o.HTMLSnippet = "foo"; |
504 o.accountId = 42; | 617 o.accountId = 42; |
505 o.advertiserId = buildUnnamed845(); | 618 o.advertiserId = buildUnnamed48(); |
506 o.advertiserName = "foo"; | 619 o.advertiserName = "foo"; |
507 o.agencyId = "foo"; | 620 o.agencyId = "foo"; |
508 o.attribute = buildUnnamed846(); | 621 o.attribute = buildUnnamed49(); |
509 o.buyerCreativeId = "foo"; | 622 o.buyerCreativeId = "foo"; |
510 o.clickThroughUrl = buildUnnamed847(); | 623 o.clickThroughUrl = buildUnnamed50(); |
511 o.corrections = buildUnnamed849(); | 624 o.corrections = buildUnnamed52(); |
512 o.disapprovalReasons = buildUnnamed851(); | 625 o.dealsStatus = "foo"; |
513 o.filteringReasons = buildCreativeFilteringReasons(); | 626 o.filteringReasons = buildCreativeFilteringReasons(); |
514 o.height = 42; | 627 o.height = 42; |
515 o.kind = "foo"; | 628 o.kind = "foo"; |
516 o.productCategories = buildUnnamed853(); | 629 o.openAuctionStatus = "foo"; |
517 o.restrictedCategories = buildUnnamed854(); | 630 o.productCategories = buildUnnamed54(); |
518 o.sensitiveCategories = buildUnnamed855(); | 631 o.restrictedCategories = buildUnnamed55(); |
519 o.status = "foo"; | 632 o.sensitiveCategories = buildUnnamed56(); |
520 o.vendorType = buildUnnamed856(); | 633 o.servingRestrictions = buildUnnamed63(); |
| 634 o.vendorType = buildUnnamed64(); |
521 o.videoURL = "foo"; | 635 o.videoURL = "foo"; |
522 o.width = 42; | 636 o.width = 42; |
523 } | 637 } |
524 buildCounterCreative--; | 638 buildCounterCreative--; |
525 return o; | 639 return o; |
526 } | 640 } |
527 | 641 |
528 checkCreative(api.Creative o) { | 642 checkCreative(api.Creative o) { |
529 buildCounterCreative++; | 643 buildCounterCreative++; |
530 if (buildCounterCreative < 3) { | 644 if (buildCounterCreative < 3) { |
531 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); | 645 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); |
532 unittest.expect(o.accountId, unittest.equals(42)); | 646 unittest.expect(o.accountId, unittest.equals(42)); |
533 checkUnnamed845(o.advertiserId); | 647 checkUnnamed48(o.advertiserId); |
534 unittest.expect(o.advertiserName, unittest.equals('foo')); | 648 unittest.expect(o.advertiserName, unittest.equals('foo')); |
535 unittest.expect(o.agencyId, unittest.equals('foo')); | 649 unittest.expect(o.agencyId, unittest.equals('foo')); |
536 checkUnnamed846(o.attribute); | 650 checkUnnamed49(o.attribute); |
537 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); | 651 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); |
538 checkUnnamed847(o.clickThroughUrl); | 652 checkUnnamed50(o.clickThroughUrl); |
539 checkUnnamed849(o.corrections); | 653 checkUnnamed52(o.corrections); |
540 checkUnnamed851(o.disapprovalReasons); | 654 unittest.expect(o.dealsStatus, unittest.equals('foo')); |
541 checkCreativeFilteringReasons(o.filteringReasons); | 655 checkCreativeFilteringReasons(o.filteringReasons); |
542 unittest.expect(o.height, unittest.equals(42)); | 656 unittest.expect(o.height, unittest.equals(42)); |
543 unittest.expect(o.kind, unittest.equals('foo')); | 657 unittest.expect(o.kind, unittest.equals('foo')); |
544 checkUnnamed853(o.productCategories); | 658 unittest.expect(o.openAuctionStatus, unittest.equals('foo')); |
545 checkUnnamed854(o.restrictedCategories); | 659 checkUnnamed54(o.productCategories); |
546 checkUnnamed855(o.sensitiveCategories); | 660 checkUnnamed55(o.restrictedCategories); |
547 unittest.expect(o.status, unittest.equals('foo')); | 661 checkUnnamed56(o.sensitiveCategories); |
548 checkUnnamed856(o.vendorType); | 662 checkUnnamed63(o.servingRestrictions); |
| 663 checkUnnamed64(o.vendorType); |
549 unittest.expect(o.videoURL, unittest.equals('foo')); | 664 unittest.expect(o.videoURL, unittest.equals('foo')); |
550 unittest.expect(o.width, unittest.equals(42)); | 665 unittest.expect(o.width, unittest.equals(42)); |
551 } | 666 } |
552 buildCounterCreative--; | 667 buildCounterCreative--; |
553 } | 668 } |
554 | 669 |
555 buildUnnamed857() { | 670 buildUnnamed65() { |
556 var o = new core.List<api.Creative>(); | 671 var o = new core.List<api.Creative>(); |
557 o.add(buildCreative()); | 672 o.add(buildCreative()); |
558 o.add(buildCreative()); | 673 o.add(buildCreative()); |
559 return o; | 674 return o; |
560 } | 675 } |
561 | 676 |
562 checkUnnamed857(core.List<api.Creative> o) { | 677 checkUnnamed65(core.List<api.Creative> o) { |
563 unittest.expect(o, unittest.hasLength(2)); | 678 unittest.expect(o, unittest.hasLength(2)); |
564 checkCreative(o[0]); | 679 checkCreative(o[0]); |
565 checkCreative(o[1]); | 680 checkCreative(o[1]); |
566 } | 681 } |
567 | 682 |
568 core.int buildCounterCreativesList = 0; | 683 core.int buildCounterCreativesList = 0; |
569 buildCreativesList() { | 684 buildCreativesList() { |
570 var o = new api.CreativesList(); | 685 var o = new api.CreativesList(); |
571 buildCounterCreativesList++; | 686 buildCounterCreativesList++; |
572 if (buildCounterCreativesList < 3) { | 687 if (buildCounterCreativesList < 3) { |
573 o.items = buildUnnamed857(); | 688 o.items = buildUnnamed65(); |
574 o.kind = "foo"; | 689 o.kind = "foo"; |
575 o.nextPageToken = "foo"; | 690 o.nextPageToken = "foo"; |
576 } | 691 } |
577 buildCounterCreativesList--; | 692 buildCounterCreativesList--; |
578 return o; | 693 return o; |
579 } | 694 } |
580 | 695 |
581 checkCreativesList(api.CreativesList o) { | 696 checkCreativesList(api.CreativesList o) { |
582 buildCounterCreativesList++; | 697 buildCounterCreativesList++; |
583 if (buildCounterCreativesList < 3) { | 698 if (buildCounterCreativesList < 3) { |
584 checkUnnamed857(o.items); | 699 checkUnnamed65(o.items); |
585 unittest.expect(o.kind, unittest.equals('foo')); | 700 unittest.expect(o.kind, unittest.equals('foo')); |
586 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 701 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
587 } | 702 } |
588 buildCounterCreativesList--; | 703 buildCounterCreativesList--; |
589 } | 704 } |
590 | 705 |
591 core.int buildCounterDirectDeal = 0; | 706 buildUnnamed66() { |
592 buildDirectDeal() { | |
593 var o = new api.DirectDeal(); | |
594 buildCounterDirectDeal++; | |
595 if (buildCounterDirectDeal < 3) { | |
596 o.accountId = 42; | |
597 o.advertiser = "foo"; | |
598 o.currencyCode = "foo"; | |
599 o.endTime = "foo"; | |
600 o.fixedCpm = "foo"; | |
601 o.id = "foo"; | |
602 o.kind = "foo"; | |
603 o.name = "foo"; | |
604 o.privateExchangeMinCpm = "foo"; | |
605 o.publisherBlocksOverriden = true; | |
606 o.sellerNetwork = "foo"; | |
607 o.startTime = "foo"; | |
608 } | |
609 buildCounterDirectDeal--; | |
610 return o; | |
611 } | |
612 | |
613 checkDirectDeal(api.DirectDeal o) { | |
614 buildCounterDirectDeal++; | |
615 if (buildCounterDirectDeal < 3) { | |
616 unittest.expect(o.accountId, unittest.equals(42)); | |
617 unittest.expect(o.advertiser, unittest.equals('foo')); | |
618 unittest.expect(o.currencyCode, unittest.equals('foo')); | |
619 unittest.expect(o.endTime, unittest.equals('foo')); | |
620 unittest.expect(o.fixedCpm, unittest.equals('foo')); | |
621 unittest.expect(o.id, unittest.equals('foo')); | |
622 unittest.expect(o.kind, unittest.equals('foo')); | |
623 unittest.expect(o.name, unittest.equals('foo')); | |
624 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); | |
625 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); | |
626 unittest.expect(o.sellerNetwork, unittest.equals('foo')); | |
627 unittest.expect(o.startTime, unittest.equals('foo')); | |
628 } | |
629 buildCounterDirectDeal--; | |
630 } | |
631 | |
632 buildUnnamed858() { | |
633 var o = new core.List<api.DirectDeal>(); | |
634 o.add(buildDirectDeal()); | |
635 o.add(buildDirectDeal()); | |
636 return o; | |
637 } | |
638 | |
639 checkUnnamed858(core.List<api.DirectDeal> o) { | |
640 unittest.expect(o, unittest.hasLength(2)); | |
641 checkDirectDeal(o[0]); | |
642 checkDirectDeal(o[1]); | |
643 } | |
644 | |
645 core.int buildCounterDirectDealsList = 0; | |
646 buildDirectDealsList() { | |
647 var o = new api.DirectDealsList(); | |
648 buildCounterDirectDealsList++; | |
649 if (buildCounterDirectDealsList < 3) { | |
650 o.directDeals = buildUnnamed858(); | |
651 o.kind = "foo"; | |
652 } | |
653 buildCounterDirectDealsList--; | |
654 return o; | |
655 } | |
656 | |
657 checkDirectDealsList(api.DirectDealsList o) { | |
658 buildCounterDirectDealsList++; | |
659 if (buildCounterDirectDealsList < 3) { | |
660 checkUnnamed858(o.directDeals); | |
661 unittest.expect(o.kind, unittest.equals('foo')); | |
662 } | |
663 buildCounterDirectDealsList--; | |
664 } | |
665 | |
666 buildUnnamed859() { | |
667 var o = new core.List<core.Object>(); | 707 var o = new core.List<core.Object>(); |
668 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 708 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
669 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 709 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
670 return o; | 710 return o; |
671 } | 711 } |
672 | 712 |
673 checkUnnamed859(core.List<core.Object> o) { | 713 checkUnnamed66(core.List<core.Object> o) { |
674 unittest.expect(o, unittest.hasLength(2)); | 714 unittest.expect(o, unittest.hasLength(2)); |
675 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 715 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
676 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 716 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
677 } | 717 } |
678 | 718 |
679 buildUnnamed860() { | 719 buildUnnamed67() { |
680 var o = new core.List<core.Object>(); | 720 var o = new core.List<core.Object>(); |
681 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 721 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
682 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 722 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
683 return o; | 723 return o; |
684 } | 724 } |
685 | 725 |
686 checkUnnamed860(core.List<core.Object> o) { | 726 checkUnnamed67(core.List<core.Object> o) { |
687 unittest.expect(o, unittest.hasLength(2)); | 727 unittest.expect(o, unittest.hasLength(2)); |
688 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(
3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u
nittest.equals('foo')); | 728 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(
3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u
nittest.equals('foo')); |
689 var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); | 729 var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); |
690 } | 730 } |
691 | 731 |
692 buildUnnamed861() { | 732 buildUnnamed68() { |
693 var o = new core.List<core.Object>(); | 733 var o = new core.List<core.Object>(); |
694 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 734 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
695 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 735 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
696 return o; | 736 return o; |
697 } | 737 } |
698 | 738 |
699 checkUnnamed861(core.List<core.Object> o) { | 739 checkUnnamed68(core.List<core.Object> o) { |
700 unittest.expect(o, unittest.hasLength(2)); | 740 unittest.expect(o, unittest.hasLength(2)); |
701 var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); | 741 var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); |
702 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(
3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u
nittest.equals('foo')); | 742 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(
3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u
nittest.equals('foo')); |
703 } | 743 } |
704 | 744 |
705 buildUnnamed862() { | 745 buildUnnamed69() { |
706 var o = new core.List<core.Object>(); | 746 var o = new core.List<core.Object>(); |
707 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 747 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
708 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 748 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
709 return o; | 749 return o; |
710 } | 750 } |
711 | 751 |
712 checkUnnamed862(core.List<core.Object> o) { | 752 checkUnnamed69(core.List<core.Object> o) { |
713 unittest.expect(o, unittest.hasLength(2)); | 753 unittest.expect(o, unittest.hasLength(2)); |
714 var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(
3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], u
nittest.equals('foo')); | 754 var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(
3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], u
nittest.equals('foo')); |
715 var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(
3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], u
nittest.equals('foo')); | 755 var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(
3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], u
nittest.equals('foo')); |
716 } | 756 } |
717 | 757 |
718 core.int buildCounterPerformanceReport = 0; | 758 core.int buildCounterPerformanceReport = 0; |
719 buildPerformanceReport() { | 759 buildPerformanceReport() { |
720 var o = new api.PerformanceReport(); | 760 var o = new api.PerformanceReport(); |
721 buildCounterPerformanceReport++; | 761 buildCounterPerformanceReport++; |
722 if (buildCounterPerformanceReport < 3) { | 762 if (buildCounterPerformanceReport < 3) { |
723 o.bidRate = 42.0; | 763 o.bidRate = 42.0; |
724 o.bidRequestRate = 42.0; | 764 o.bidRequestRate = 42.0; |
725 o.calloutStatusRate = buildUnnamed859(); | 765 o.calloutStatusRate = buildUnnamed66(); |
726 o.cookieMatcherStatusRate = buildUnnamed860(); | 766 o.cookieMatcherStatusRate = buildUnnamed67(); |
727 o.creativeStatusRate = buildUnnamed861(); | 767 o.creativeStatusRate = buildUnnamed68(); |
728 o.filteredBidRate = 42.0; | 768 o.filteredBidRate = 42.0; |
729 o.hostedMatchStatusRate = buildUnnamed862(); | 769 o.hostedMatchStatusRate = buildUnnamed69(); |
730 o.inventoryMatchRate = 42.0; | 770 o.inventoryMatchRate = 42.0; |
731 o.kind = "foo"; | 771 o.kind = "foo"; |
732 o.latency50thPercentile = 42.0; | 772 o.latency50thPercentile = 42.0; |
733 o.latency85thPercentile = 42.0; | 773 o.latency85thPercentile = 42.0; |
734 o.latency95thPercentile = 42.0; | 774 o.latency95thPercentile = 42.0; |
735 o.noQuotaInRegion = 42.0; | 775 o.noQuotaInRegion = 42.0; |
736 o.outOfQuota = 42.0; | 776 o.outOfQuota = 42.0; |
737 o.pixelMatchRequests = 42.0; | 777 o.pixelMatchRequests = 42.0; |
738 o.pixelMatchResponses = 42.0; | 778 o.pixelMatchResponses = 42.0; |
739 o.quotaConfiguredLimit = 42.0; | 779 o.quotaConfiguredLimit = 42.0; |
740 o.quotaThrottledLimit = 42.0; | 780 o.quotaThrottledLimit = 42.0; |
741 o.region = "foo"; | 781 o.region = "foo"; |
742 o.successfulRequestRate = 42.0; | 782 o.successfulRequestRate = 42.0; |
743 o.timestamp = "foo"; | 783 o.timestamp = "foo"; |
744 o.unsuccessfulRequestRate = 42.0; | 784 o.unsuccessfulRequestRate = 42.0; |
745 } | 785 } |
746 buildCounterPerformanceReport--; | 786 buildCounterPerformanceReport--; |
747 return o; | 787 return o; |
748 } | 788 } |
749 | 789 |
750 checkPerformanceReport(api.PerformanceReport o) { | 790 checkPerformanceReport(api.PerformanceReport o) { |
751 buildCounterPerformanceReport++; | 791 buildCounterPerformanceReport++; |
752 if (buildCounterPerformanceReport < 3) { | 792 if (buildCounterPerformanceReport < 3) { |
753 unittest.expect(o.bidRate, unittest.equals(42.0)); | 793 unittest.expect(o.bidRate, unittest.equals(42.0)); |
754 unittest.expect(o.bidRequestRate, unittest.equals(42.0)); | 794 unittest.expect(o.bidRequestRate, unittest.equals(42.0)); |
755 checkUnnamed859(o.calloutStatusRate); | 795 checkUnnamed66(o.calloutStatusRate); |
756 checkUnnamed860(o.cookieMatcherStatusRate); | 796 checkUnnamed67(o.cookieMatcherStatusRate); |
757 checkUnnamed861(o.creativeStatusRate); | 797 checkUnnamed68(o.creativeStatusRate); |
758 unittest.expect(o.filteredBidRate, unittest.equals(42.0)); | 798 unittest.expect(o.filteredBidRate, unittest.equals(42.0)); |
759 checkUnnamed862(o.hostedMatchStatusRate); | 799 checkUnnamed69(o.hostedMatchStatusRate); |
760 unittest.expect(o.inventoryMatchRate, unittest.equals(42.0)); | 800 unittest.expect(o.inventoryMatchRate, unittest.equals(42.0)); |
761 unittest.expect(o.kind, unittest.equals('foo')); | 801 unittest.expect(o.kind, unittest.equals('foo')); |
762 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); | 802 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); |
763 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); | 803 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); |
764 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); | 804 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); |
765 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); | 805 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); |
766 unittest.expect(o.outOfQuota, unittest.equals(42.0)); | 806 unittest.expect(o.outOfQuota, unittest.equals(42.0)); |
767 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); | 807 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); |
768 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); | 808 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); |
769 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); | 809 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); |
770 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); | 810 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); |
771 unittest.expect(o.region, unittest.equals('foo')); | 811 unittest.expect(o.region, unittest.equals('foo')); |
772 unittest.expect(o.successfulRequestRate, unittest.equals(42.0)); | 812 unittest.expect(o.successfulRequestRate, unittest.equals(42.0)); |
773 unittest.expect(o.timestamp, unittest.equals('foo')); | 813 unittest.expect(o.timestamp, unittest.equals('foo')); |
774 unittest.expect(o.unsuccessfulRequestRate, unittest.equals(42.0)); | 814 unittest.expect(o.unsuccessfulRequestRate, unittest.equals(42.0)); |
775 } | 815 } |
776 buildCounterPerformanceReport--; | 816 buildCounterPerformanceReport--; |
777 } | 817 } |
778 | 818 |
779 buildUnnamed863() { | 819 buildUnnamed70() { |
780 var o = new core.List<api.PerformanceReport>(); | 820 var o = new core.List<api.PerformanceReport>(); |
781 o.add(buildPerformanceReport()); | 821 o.add(buildPerformanceReport()); |
782 o.add(buildPerformanceReport()); | 822 o.add(buildPerformanceReport()); |
783 return o; | 823 return o; |
784 } | 824 } |
785 | 825 |
786 checkUnnamed863(core.List<api.PerformanceReport> o) { | 826 checkUnnamed70(core.List<api.PerformanceReport> o) { |
787 unittest.expect(o, unittest.hasLength(2)); | 827 unittest.expect(o, unittest.hasLength(2)); |
788 checkPerformanceReport(o[0]); | 828 checkPerformanceReport(o[0]); |
789 checkPerformanceReport(o[1]); | 829 checkPerformanceReport(o[1]); |
790 } | 830 } |
791 | 831 |
792 core.int buildCounterPerformanceReportList = 0; | 832 core.int buildCounterPerformanceReportList = 0; |
793 buildPerformanceReportList() { | 833 buildPerformanceReportList() { |
794 var o = new api.PerformanceReportList(); | 834 var o = new api.PerformanceReportList(); |
795 buildCounterPerformanceReportList++; | 835 buildCounterPerformanceReportList++; |
796 if (buildCounterPerformanceReportList < 3) { | 836 if (buildCounterPerformanceReportList < 3) { |
797 o.kind = "foo"; | 837 o.kind = "foo"; |
798 o.performanceReport = buildUnnamed863(); | 838 o.performanceReport = buildUnnamed70(); |
799 } | 839 } |
800 buildCounterPerformanceReportList--; | 840 buildCounterPerformanceReportList--; |
801 return o; | 841 return o; |
802 } | 842 } |
803 | 843 |
804 checkPerformanceReportList(api.PerformanceReportList o) { | 844 checkPerformanceReportList(api.PerformanceReportList o) { |
805 buildCounterPerformanceReportList++; | 845 buildCounterPerformanceReportList++; |
806 if (buildCounterPerformanceReportList < 3) { | 846 if (buildCounterPerformanceReportList < 3) { |
807 unittest.expect(o.kind, unittest.equals('foo')); | 847 unittest.expect(o.kind, unittest.equals('foo')); |
808 checkUnnamed863(o.performanceReport); | 848 checkUnnamed70(o.performanceReport); |
809 } | 849 } |
810 buildCounterPerformanceReportList--; | 850 buildCounterPerformanceReportList--; |
811 } | 851 } |
812 | 852 |
813 buildUnnamed864() { | 853 buildUnnamed71() { |
814 var o = new core.List<core.String>(); | 854 var o = new core.List<core.String>(); |
815 o.add("foo"); | 855 o.add("foo"); |
816 o.add("foo"); | 856 o.add("foo"); |
817 return o; | 857 return o; |
818 } | 858 } |
819 | 859 |
820 checkUnnamed864(core.List<core.String> o) { | 860 checkUnnamed71(core.List<core.String> o) { |
821 unittest.expect(o, unittest.hasLength(2)); | 861 unittest.expect(o, unittest.hasLength(2)); |
822 unittest.expect(o[0], unittest.equals('foo')); | 862 unittest.expect(o[0], unittest.equals('foo')); |
823 unittest.expect(o[1], unittest.equals('foo')); | 863 unittest.expect(o[1], unittest.equals('foo')); |
824 } | 864 } |
825 | 865 |
826 core.int buildCounterPretargetingConfigDimensions = 0; | 866 core.int buildCounterPretargetingConfigDimensions = 0; |
827 buildPretargetingConfigDimensions() { | 867 buildPretargetingConfigDimensions() { |
828 var o = new api.PretargetingConfigDimensions(); | 868 var o = new api.PretargetingConfigDimensions(); |
829 buildCounterPretargetingConfigDimensions++; | 869 buildCounterPretargetingConfigDimensions++; |
830 if (buildCounterPretargetingConfigDimensions < 3) { | 870 if (buildCounterPretargetingConfigDimensions < 3) { |
831 o.height = "foo"; | 871 o.height = "foo"; |
832 o.width = "foo"; | 872 o.width = "foo"; |
833 } | 873 } |
834 buildCounterPretargetingConfigDimensions--; | 874 buildCounterPretargetingConfigDimensions--; |
835 return o; | 875 return o; |
836 } | 876 } |
837 | 877 |
838 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { | 878 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { |
839 buildCounterPretargetingConfigDimensions++; | 879 buildCounterPretargetingConfigDimensions++; |
840 if (buildCounterPretargetingConfigDimensions < 3) { | 880 if (buildCounterPretargetingConfigDimensions < 3) { |
841 unittest.expect(o.height, unittest.equals('foo')); | 881 unittest.expect(o.height, unittest.equals('foo')); |
842 unittest.expect(o.width, unittest.equals('foo')); | 882 unittest.expect(o.width, unittest.equals('foo')); |
843 } | 883 } |
844 buildCounterPretargetingConfigDimensions--; | 884 buildCounterPretargetingConfigDimensions--; |
845 } | 885 } |
846 | 886 |
847 buildUnnamed865() { | 887 buildUnnamed72() { |
848 var o = new core.List<api.PretargetingConfigDimensions>(); | 888 var o = new core.List<api.PretargetingConfigDimensions>(); |
849 o.add(buildPretargetingConfigDimensions()); | 889 o.add(buildPretargetingConfigDimensions()); |
850 o.add(buildPretargetingConfigDimensions()); | 890 o.add(buildPretargetingConfigDimensions()); |
851 return o; | 891 return o; |
852 } | 892 } |
853 | 893 |
854 checkUnnamed865(core.List<api.PretargetingConfigDimensions> o) { | 894 checkUnnamed72(core.List<api.PretargetingConfigDimensions> o) { |
855 unittest.expect(o, unittest.hasLength(2)); | 895 unittest.expect(o, unittest.hasLength(2)); |
856 checkPretargetingConfigDimensions(o[0]); | 896 checkPretargetingConfigDimensions(o[0]); |
857 checkPretargetingConfigDimensions(o[1]); | 897 checkPretargetingConfigDimensions(o[1]); |
858 } | 898 } |
859 | 899 |
860 buildUnnamed866() { | 900 buildUnnamed73() { |
861 var o = new core.List<core.String>(); | 901 var o = new core.List<core.String>(); |
862 o.add("foo"); | 902 o.add("foo"); |
863 o.add("foo"); | 903 o.add("foo"); |
864 return o; | 904 return o; |
865 } | 905 } |
866 | 906 |
867 checkUnnamed866(core.List<core.String> o) { | 907 checkUnnamed73(core.List<core.String> o) { |
868 unittest.expect(o, unittest.hasLength(2)); | 908 unittest.expect(o, unittest.hasLength(2)); |
869 unittest.expect(o[0], unittest.equals('foo')); | 909 unittest.expect(o[0], unittest.equals('foo')); |
870 unittest.expect(o[1], unittest.equals('foo')); | 910 unittest.expect(o[1], unittest.equals('foo')); |
871 } | 911 } |
872 | 912 |
873 buildUnnamed867() { | 913 buildUnnamed74() { |
874 var o = new core.List<core.String>(); | 914 var o = new core.List<core.String>(); |
875 o.add("foo"); | 915 o.add("foo"); |
876 o.add("foo"); | 916 o.add("foo"); |
877 return o; | 917 return o; |
878 } | 918 } |
879 | 919 |
880 checkUnnamed867(core.List<core.String> o) { | 920 checkUnnamed74(core.List<core.String> o) { |
881 unittest.expect(o, unittest.hasLength(2)); | 921 unittest.expect(o, unittest.hasLength(2)); |
882 unittest.expect(o[0], unittest.equals('foo')); | 922 unittest.expect(o[0], unittest.equals('foo')); |
883 unittest.expect(o[1], unittest.equals('foo')); | 923 unittest.expect(o[1], unittest.equals('foo')); |
884 } | 924 } |
885 | 925 |
886 core.int buildCounterPretargetingConfigExcludedPlacements = 0; | 926 core.int buildCounterPretargetingConfigExcludedPlacements = 0; |
887 buildPretargetingConfigExcludedPlacements() { | 927 buildPretargetingConfigExcludedPlacements() { |
888 var o = new api.PretargetingConfigExcludedPlacements(); | 928 var o = new api.PretargetingConfigExcludedPlacements(); |
889 buildCounterPretargetingConfigExcludedPlacements++; | 929 buildCounterPretargetingConfigExcludedPlacements++; |
890 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 930 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
891 o.token = "foo"; | 931 o.token = "foo"; |
892 o.type = "foo"; | 932 o.type = "foo"; |
893 } | 933 } |
894 buildCounterPretargetingConfigExcludedPlacements--; | 934 buildCounterPretargetingConfigExcludedPlacements--; |
895 return o; | 935 return o; |
896 } | 936 } |
897 | 937 |
898 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { | 938 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { |
899 buildCounterPretargetingConfigExcludedPlacements++; | 939 buildCounterPretargetingConfigExcludedPlacements++; |
900 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 940 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
901 unittest.expect(o.token, unittest.equals('foo')); | 941 unittest.expect(o.token, unittest.equals('foo')); |
902 unittest.expect(o.type, unittest.equals('foo')); | 942 unittest.expect(o.type, unittest.equals('foo')); |
903 } | 943 } |
904 buildCounterPretargetingConfigExcludedPlacements--; | 944 buildCounterPretargetingConfigExcludedPlacements--; |
905 } | 945 } |
906 | 946 |
907 buildUnnamed868() { | 947 buildUnnamed75() { |
908 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); | 948 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); |
909 o.add(buildPretargetingConfigExcludedPlacements()); | 949 o.add(buildPretargetingConfigExcludedPlacements()); |
910 o.add(buildPretargetingConfigExcludedPlacements()); | 950 o.add(buildPretargetingConfigExcludedPlacements()); |
911 return o; | 951 return o; |
912 } | 952 } |
913 | 953 |
914 checkUnnamed868(core.List<api.PretargetingConfigExcludedPlacements> o) { | 954 checkUnnamed75(core.List<api.PretargetingConfigExcludedPlacements> o) { |
915 unittest.expect(o, unittest.hasLength(2)); | 955 unittest.expect(o, unittest.hasLength(2)); |
916 checkPretargetingConfigExcludedPlacements(o[0]); | 956 checkPretargetingConfigExcludedPlacements(o[0]); |
917 checkPretargetingConfigExcludedPlacements(o[1]); | 957 checkPretargetingConfigExcludedPlacements(o[1]); |
918 } | 958 } |
919 | 959 |
920 buildUnnamed869() { | 960 buildUnnamed76() { |
921 var o = new core.List<core.String>(); | 961 var o = new core.List<core.String>(); |
922 o.add("foo"); | 962 o.add("foo"); |
923 o.add("foo"); | 963 o.add("foo"); |
924 return o; | 964 return o; |
925 } | 965 } |
926 | 966 |
927 checkUnnamed869(core.List<core.String> o) { | 967 checkUnnamed76(core.List<core.String> o) { |
928 unittest.expect(o, unittest.hasLength(2)); | 968 unittest.expect(o, unittest.hasLength(2)); |
929 unittest.expect(o[0], unittest.equals('foo')); | 969 unittest.expect(o[0], unittest.equals('foo')); |
930 unittest.expect(o[1], unittest.equals('foo')); | 970 unittest.expect(o[1], unittest.equals('foo')); |
931 } | 971 } |
932 | 972 |
933 buildUnnamed870() { | 973 buildUnnamed77() { |
934 var o = new core.List<core.String>(); | 974 var o = new core.List<core.String>(); |
935 o.add("foo"); | 975 o.add("foo"); |
936 o.add("foo"); | 976 o.add("foo"); |
937 return o; | 977 return o; |
938 } | 978 } |
939 | 979 |
940 checkUnnamed870(core.List<core.String> o) { | 980 checkUnnamed77(core.List<core.String> o) { |
941 unittest.expect(o, unittest.hasLength(2)); | 981 unittest.expect(o, unittest.hasLength(2)); |
942 unittest.expect(o[0], unittest.equals('foo')); | 982 unittest.expect(o[0], unittest.equals('foo')); |
943 unittest.expect(o[1], unittest.equals('foo')); | 983 unittest.expect(o[1], unittest.equals('foo')); |
944 } | 984 } |
945 | 985 |
946 buildUnnamed871() { | 986 buildUnnamed78() { |
947 var o = new core.List<core.String>(); | 987 var o = new core.List<core.String>(); |
948 o.add("foo"); | 988 o.add("foo"); |
949 o.add("foo"); | 989 o.add("foo"); |
950 return o; | 990 return o; |
951 } | 991 } |
952 | 992 |
953 checkUnnamed871(core.List<core.String> o) { | 993 checkUnnamed78(core.List<core.String> o) { |
954 unittest.expect(o, unittest.hasLength(2)); | 994 unittest.expect(o, unittest.hasLength(2)); |
955 unittest.expect(o[0], unittest.equals('foo')); | 995 unittest.expect(o[0], unittest.equals('foo')); |
956 unittest.expect(o[1], unittest.equals('foo')); | 996 unittest.expect(o[1], unittest.equals('foo')); |
957 } | 997 } |
958 | 998 |
959 buildUnnamed872() { | 999 buildUnnamed79() { |
960 var o = new core.List<core.String>(); | 1000 var o = new core.List<core.String>(); |
961 o.add("foo"); | 1001 o.add("foo"); |
962 o.add("foo"); | 1002 o.add("foo"); |
963 return o; | 1003 return o; |
964 } | 1004 } |
965 | 1005 |
966 checkUnnamed872(core.List<core.String> o) { | 1006 checkUnnamed79(core.List<core.String> o) { |
967 unittest.expect(o, unittest.hasLength(2)); | 1007 unittest.expect(o, unittest.hasLength(2)); |
968 unittest.expect(o[0], unittest.equals('foo')); | 1008 unittest.expect(o[0], unittest.equals('foo')); |
969 unittest.expect(o[1], unittest.equals('foo')); | 1009 unittest.expect(o[1], unittest.equals('foo')); |
970 } | 1010 } |
971 | 1011 |
972 buildUnnamed873() { | 1012 buildUnnamed80() { |
973 var o = new core.List<core.String>(); | 1013 var o = new core.List<core.String>(); |
974 o.add("foo"); | 1014 o.add("foo"); |
975 o.add("foo"); | 1015 o.add("foo"); |
976 return o; | 1016 return o; |
977 } | 1017 } |
978 | 1018 |
979 checkUnnamed873(core.List<core.String> o) { | 1019 checkUnnamed80(core.List<core.String> o) { |
980 unittest.expect(o, unittest.hasLength(2)); | 1020 unittest.expect(o, unittest.hasLength(2)); |
981 unittest.expect(o[0], unittest.equals('foo')); | 1021 unittest.expect(o[0], unittest.equals('foo')); |
982 unittest.expect(o[1], unittest.equals('foo')); | 1022 unittest.expect(o[1], unittest.equals('foo')); |
983 } | 1023 } |
984 | 1024 |
985 buildUnnamed874() { | 1025 buildUnnamed81() { |
986 var o = new core.List<core.String>(); | 1026 var o = new core.List<core.String>(); |
987 o.add("foo"); | 1027 o.add("foo"); |
988 o.add("foo"); | 1028 o.add("foo"); |
989 return o; | 1029 return o; |
990 } | 1030 } |
991 | 1031 |
992 checkUnnamed874(core.List<core.String> o) { | 1032 checkUnnamed81(core.List<core.String> o) { |
993 unittest.expect(o, unittest.hasLength(2)); | 1033 unittest.expect(o, unittest.hasLength(2)); |
994 unittest.expect(o[0], unittest.equals('foo')); | 1034 unittest.expect(o[0], unittest.equals('foo')); |
995 unittest.expect(o[1], unittest.equals('foo')); | 1035 unittest.expect(o[1], unittest.equals('foo')); |
996 } | 1036 } |
997 | 1037 |
998 buildUnnamed875() { | 1038 buildUnnamed82() { |
999 var o = new core.List<core.String>(); | 1039 var o = new core.List<core.String>(); |
1000 o.add("foo"); | 1040 o.add("foo"); |
1001 o.add("foo"); | 1041 o.add("foo"); |
1002 return o; | 1042 return o; |
1003 } | 1043 } |
1004 | 1044 |
1005 checkUnnamed875(core.List<core.String> o) { | 1045 checkUnnamed82(core.List<core.String> o) { |
1006 unittest.expect(o, unittest.hasLength(2)); | 1046 unittest.expect(o, unittest.hasLength(2)); |
1007 unittest.expect(o[0], unittest.equals('foo')); | 1047 unittest.expect(o[0], unittest.equals('foo')); |
1008 unittest.expect(o[1], unittest.equals('foo')); | 1048 unittest.expect(o[1], unittest.equals('foo')); |
1009 } | 1049 } |
1010 | 1050 |
1011 core.int buildCounterPretargetingConfigPlacements = 0; | 1051 core.int buildCounterPretargetingConfigPlacements = 0; |
1012 buildPretargetingConfigPlacements() { | 1052 buildPretargetingConfigPlacements() { |
1013 var o = new api.PretargetingConfigPlacements(); | 1053 var o = new api.PretargetingConfigPlacements(); |
1014 buildCounterPretargetingConfigPlacements++; | 1054 buildCounterPretargetingConfigPlacements++; |
1015 if (buildCounterPretargetingConfigPlacements < 3) { | 1055 if (buildCounterPretargetingConfigPlacements < 3) { |
1016 o.token = "foo"; | 1056 o.token = "foo"; |
1017 o.type = "foo"; | 1057 o.type = "foo"; |
1018 } | 1058 } |
1019 buildCounterPretargetingConfigPlacements--; | 1059 buildCounterPretargetingConfigPlacements--; |
1020 return o; | 1060 return o; |
1021 } | 1061 } |
1022 | 1062 |
1023 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { | 1063 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { |
1024 buildCounterPretargetingConfigPlacements++; | 1064 buildCounterPretargetingConfigPlacements++; |
1025 if (buildCounterPretargetingConfigPlacements < 3) { | 1065 if (buildCounterPretargetingConfigPlacements < 3) { |
1026 unittest.expect(o.token, unittest.equals('foo')); | 1066 unittest.expect(o.token, unittest.equals('foo')); |
1027 unittest.expect(o.type, unittest.equals('foo')); | 1067 unittest.expect(o.type, unittest.equals('foo')); |
1028 } | 1068 } |
1029 buildCounterPretargetingConfigPlacements--; | 1069 buildCounterPretargetingConfigPlacements--; |
1030 } | 1070 } |
1031 | 1071 |
1032 buildUnnamed876() { | 1072 buildUnnamed83() { |
1033 var o = new core.List<api.PretargetingConfigPlacements>(); | 1073 var o = new core.List<api.PretargetingConfigPlacements>(); |
1034 o.add(buildPretargetingConfigPlacements()); | 1074 o.add(buildPretargetingConfigPlacements()); |
1035 o.add(buildPretargetingConfigPlacements()); | 1075 o.add(buildPretargetingConfigPlacements()); |
1036 return o; | 1076 return o; |
1037 } | 1077 } |
1038 | 1078 |
1039 checkUnnamed876(core.List<api.PretargetingConfigPlacements> o) { | 1079 checkUnnamed83(core.List<api.PretargetingConfigPlacements> o) { |
1040 unittest.expect(o, unittest.hasLength(2)); | 1080 unittest.expect(o, unittest.hasLength(2)); |
1041 checkPretargetingConfigPlacements(o[0]); | 1081 checkPretargetingConfigPlacements(o[0]); |
1042 checkPretargetingConfigPlacements(o[1]); | 1082 checkPretargetingConfigPlacements(o[1]); |
1043 } | 1083 } |
1044 | 1084 |
1045 buildUnnamed877() { | 1085 buildUnnamed84() { |
1046 var o = new core.List<core.String>(); | 1086 var o = new core.List<core.String>(); |
1047 o.add("foo"); | 1087 o.add("foo"); |
1048 o.add("foo"); | 1088 o.add("foo"); |
1049 return o; | 1089 return o; |
1050 } | 1090 } |
1051 | 1091 |
1052 checkUnnamed877(core.List<core.String> o) { | 1092 checkUnnamed84(core.List<core.String> o) { |
1053 unittest.expect(o, unittest.hasLength(2)); | 1093 unittest.expect(o, unittest.hasLength(2)); |
1054 unittest.expect(o[0], unittest.equals('foo')); | 1094 unittest.expect(o[0], unittest.equals('foo')); |
1055 unittest.expect(o[1], unittest.equals('foo')); | 1095 unittest.expect(o[1], unittest.equals('foo')); |
1056 } | 1096 } |
1057 | 1097 |
1058 buildUnnamed878() { | 1098 buildUnnamed85() { |
1059 var o = new core.List<core.String>(); | 1099 var o = new core.List<core.String>(); |
1060 o.add("foo"); | 1100 o.add("foo"); |
1061 o.add("foo"); | 1101 o.add("foo"); |
1062 return o; | 1102 return o; |
1063 } | 1103 } |
1064 | 1104 |
1065 checkUnnamed878(core.List<core.String> o) { | 1105 checkUnnamed85(core.List<core.String> o) { |
1066 unittest.expect(o, unittest.hasLength(2)); | 1106 unittest.expect(o, unittest.hasLength(2)); |
1067 unittest.expect(o[0], unittest.equals('foo')); | 1107 unittest.expect(o[0], unittest.equals('foo')); |
1068 unittest.expect(o[1], unittest.equals('foo')); | 1108 unittest.expect(o[1], unittest.equals('foo')); |
1069 } | 1109 } |
1070 | 1110 |
1071 buildUnnamed879() { | 1111 buildUnnamed86() { |
1072 var o = new core.List<core.String>(); | 1112 var o = new core.List<core.String>(); |
1073 o.add("foo"); | 1113 o.add("foo"); |
1074 o.add("foo"); | 1114 o.add("foo"); |
1075 return o; | 1115 return o; |
1076 } | 1116 } |
1077 | 1117 |
1078 checkUnnamed879(core.List<core.String> o) { | 1118 checkUnnamed86(core.List<core.String> o) { |
1079 unittest.expect(o, unittest.hasLength(2)); | 1119 unittest.expect(o, unittest.hasLength(2)); |
1080 unittest.expect(o[0], unittest.equals('foo')); | 1120 unittest.expect(o[0], unittest.equals('foo')); |
1081 unittest.expect(o[1], unittest.equals('foo')); | 1121 unittest.expect(o[1], unittest.equals('foo')); |
1082 } | 1122 } |
1083 | 1123 |
1084 buildUnnamed880() { | 1124 buildUnnamed87() { |
1085 var o = new core.List<core.String>(); | 1125 var o = new core.List<core.String>(); |
1086 o.add("foo"); | 1126 o.add("foo"); |
1087 o.add("foo"); | 1127 o.add("foo"); |
1088 return o; | 1128 return o; |
1089 } | 1129 } |
1090 | 1130 |
1091 checkUnnamed880(core.List<core.String> o) { | 1131 checkUnnamed87(core.List<core.String> o) { |
1092 unittest.expect(o, unittest.hasLength(2)); | 1132 unittest.expect(o, unittest.hasLength(2)); |
1093 unittest.expect(o[0], unittest.equals('foo')); | 1133 unittest.expect(o[0], unittest.equals('foo')); |
1094 unittest.expect(o[1], unittest.equals('foo')); | 1134 unittest.expect(o[1], unittest.equals('foo')); |
1095 } | 1135 } |
1096 | 1136 |
1097 buildUnnamed881() { | 1137 buildUnnamed88() { |
1098 var o = new core.List<core.String>(); | 1138 var o = new core.List<core.String>(); |
1099 o.add("foo"); | 1139 o.add("foo"); |
1100 o.add("foo"); | 1140 o.add("foo"); |
1101 return o; | 1141 return o; |
1102 } | 1142 } |
1103 | 1143 |
1104 checkUnnamed881(core.List<core.String> o) { | 1144 checkUnnamed88(core.List<core.String> o) { |
1105 unittest.expect(o, unittest.hasLength(2)); | 1145 unittest.expect(o, unittest.hasLength(2)); |
1106 unittest.expect(o[0], unittest.equals('foo')); | 1146 unittest.expect(o[0], unittest.equals('foo')); |
1107 unittest.expect(o[1], unittest.equals('foo')); | 1147 unittest.expect(o[1], unittest.equals('foo')); |
1108 } | 1148 } |
1109 | 1149 |
1110 core.int buildCounterPretargetingConfig = 0; | 1150 core.int buildCounterPretargetingConfig = 0; |
1111 buildPretargetingConfig() { | 1151 buildPretargetingConfig() { |
1112 var o = new api.PretargetingConfig(); | 1152 var o = new api.PretargetingConfig(); |
1113 buildCounterPretargetingConfig++; | 1153 buildCounterPretargetingConfig++; |
1114 if (buildCounterPretargetingConfig < 3) { | 1154 if (buildCounterPretargetingConfig < 3) { |
1115 o.billingId = "foo"; | 1155 o.billingId = "foo"; |
1116 o.configId = "foo"; | 1156 o.configId = "foo"; |
1117 o.configName = "foo"; | 1157 o.configName = "foo"; |
1118 o.creativeType = buildUnnamed864(); | 1158 o.creativeType = buildUnnamed71(); |
1119 o.dimensions = buildUnnamed865(); | 1159 o.dimensions = buildUnnamed72(); |
1120 o.excludedContentLabels = buildUnnamed866(); | 1160 o.excludedContentLabels = buildUnnamed73(); |
1121 o.excludedGeoCriteriaIds = buildUnnamed867(); | 1161 o.excludedGeoCriteriaIds = buildUnnamed74(); |
1122 o.excludedPlacements = buildUnnamed868(); | 1162 o.excludedPlacements = buildUnnamed75(); |
1123 o.excludedUserLists = buildUnnamed869(); | 1163 o.excludedUserLists = buildUnnamed76(); |
1124 o.excludedVerticals = buildUnnamed870(); | 1164 o.excludedVerticals = buildUnnamed77(); |
1125 o.geoCriteriaIds = buildUnnamed871(); | 1165 o.geoCriteriaIds = buildUnnamed78(); |
1126 o.isActive = true; | 1166 o.isActive = true; |
1127 o.kind = "foo"; | 1167 o.kind = "foo"; |
1128 o.languages = buildUnnamed872(); | 1168 o.languages = buildUnnamed79(); |
1129 o.mobileCarriers = buildUnnamed873(); | 1169 o.mobileCarriers = buildUnnamed80(); |
1130 o.mobileDevices = buildUnnamed874(); | 1170 o.mobileDevices = buildUnnamed81(); |
1131 o.mobileOperatingSystemVersions = buildUnnamed875(); | 1171 o.mobileOperatingSystemVersions = buildUnnamed82(); |
1132 o.placements = buildUnnamed876(); | 1172 o.placements = buildUnnamed83(); |
1133 o.platforms = buildUnnamed877(); | 1173 o.platforms = buildUnnamed84(); |
1134 o.supportedCreativeAttributes = buildUnnamed878(); | 1174 o.supportedCreativeAttributes = buildUnnamed85(); |
1135 o.userLists = buildUnnamed879(); | 1175 o.userLists = buildUnnamed86(); |
1136 o.vendorTypes = buildUnnamed880(); | 1176 o.vendorTypes = buildUnnamed87(); |
1137 o.verticals = buildUnnamed881(); | 1177 o.verticals = buildUnnamed88(); |
1138 } | 1178 } |
1139 buildCounterPretargetingConfig--; | 1179 buildCounterPretargetingConfig--; |
1140 return o; | 1180 return o; |
1141 } | 1181 } |
1142 | 1182 |
1143 checkPretargetingConfig(api.PretargetingConfig o) { | 1183 checkPretargetingConfig(api.PretargetingConfig o) { |
1144 buildCounterPretargetingConfig++; | 1184 buildCounterPretargetingConfig++; |
1145 if (buildCounterPretargetingConfig < 3) { | 1185 if (buildCounterPretargetingConfig < 3) { |
1146 unittest.expect(o.billingId, unittest.equals('foo')); | 1186 unittest.expect(o.billingId, unittest.equals('foo')); |
1147 unittest.expect(o.configId, unittest.equals('foo')); | 1187 unittest.expect(o.configId, unittest.equals('foo')); |
1148 unittest.expect(o.configName, unittest.equals('foo')); | 1188 unittest.expect(o.configName, unittest.equals('foo')); |
1149 checkUnnamed864(o.creativeType); | 1189 checkUnnamed71(o.creativeType); |
1150 checkUnnamed865(o.dimensions); | 1190 checkUnnamed72(o.dimensions); |
1151 checkUnnamed866(o.excludedContentLabels); | 1191 checkUnnamed73(o.excludedContentLabels); |
1152 checkUnnamed867(o.excludedGeoCriteriaIds); | 1192 checkUnnamed74(o.excludedGeoCriteriaIds); |
1153 checkUnnamed868(o.excludedPlacements); | 1193 checkUnnamed75(o.excludedPlacements); |
1154 checkUnnamed869(o.excludedUserLists); | 1194 checkUnnamed76(o.excludedUserLists); |
1155 checkUnnamed870(o.excludedVerticals); | 1195 checkUnnamed77(o.excludedVerticals); |
1156 checkUnnamed871(o.geoCriteriaIds); | 1196 checkUnnamed78(o.geoCriteriaIds); |
1157 unittest.expect(o.isActive, unittest.isTrue); | 1197 unittest.expect(o.isActive, unittest.isTrue); |
1158 unittest.expect(o.kind, unittest.equals('foo')); | 1198 unittest.expect(o.kind, unittest.equals('foo')); |
1159 checkUnnamed872(o.languages); | 1199 checkUnnamed79(o.languages); |
1160 checkUnnamed873(o.mobileCarriers); | 1200 checkUnnamed80(o.mobileCarriers); |
1161 checkUnnamed874(o.mobileDevices); | 1201 checkUnnamed81(o.mobileDevices); |
1162 checkUnnamed875(o.mobileOperatingSystemVersions); | 1202 checkUnnamed82(o.mobileOperatingSystemVersions); |
1163 checkUnnamed876(o.placements); | 1203 checkUnnamed83(o.placements); |
1164 checkUnnamed877(o.platforms); | 1204 checkUnnamed84(o.platforms); |
1165 checkUnnamed878(o.supportedCreativeAttributes); | 1205 checkUnnamed85(o.supportedCreativeAttributes); |
1166 checkUnnamed879(o.userLists); | 1206 checkUnnamed86(o.userLists); |
1167 checkUnnamed880(o.vendorTypes); | 1207 checkUnnamed87(o.vendorTypes); |
1168 checkUnnamed881(o.verticals); | 1208 checkUnnamed88(o.verticals); |
1169 } | 1209 } |
1170 buildCounterPretargetingConfig--; | 1210 buildCounterPretargetingConfig--; |
1171 } | 1211 } |
1172 | 1212 |
1173 buildUnnamed882() { | 1213 buildUnnamed89() { |
1174 var o = new core.List<api.PretargetingConfig>(); | 1214 var o = new core.List<api.PretargetingConfig>(); |
1175 o.add(buildPretargetingConfig()); | 1215 o.add(buildPretargetingConfig()); |
1176 o.add(buildPretargetingConfig()); | 1216 o.add(buildPretargetingConfig()); |
1177 return o; | 1217 return o; |
1178 } | 1218 } |
1179 | 1219 |
1180 checkUnnamed882(core.List<api.PretargetingConfig> o) { | 1220 checkUnnamed89(core.List<api.PretargetingConfig> o) { |
1181 unittest.expect(o, unittest.hasLength(2)); | 1221 unittest.expect(o, unittest.hasLength(2)); |
1182 checkPretargetingConfig(o[0]); | 1222 checkPretargetingConfig(o[0]); |
1183 checkPretargetingConfig(o[1]); | 1223 checkPretargetingConfig(o[1]); |
1184 } | 1224 } |
1185 | 1225 |
1186 core.int buildCounterPretargetingConfigList = 0; | 1226 core.int buildCounterPretargetingConfigList = 0; |
1187 buildPretargetingConfigList() { | 1227 buildPretargetingConfigList() { |
1188 var o = new api.PretargetingConfigList(); | 1228 var o = new api.PretargetingConfigList(); |
1189 buildCounterPretargetingConfigList++; | 1229 buildCounterPretargetingConfigList++; |
1190 if (buildCounterPretargetingConfigList < 3) { | 1230 if (buildCounterPretargetingConfigList < 3) { |
1191 o.items = buildUnnamed882(); | 1231 o.items = buildUnnamed89(); |
1192 o.kind = "foo"; | 1232 o.kind = "foo"; |
1193 } | 1233 } |
1194 buildCounterPretargetingConfigList--; | 1234 buildCounterPretargetingConfigList--; |
1195 return o; | 1235 return o; |
1196 } | 1236 } |
1197 | 1237 |
1198 checkPretargetingConfigList(api.PretargetingConfigList o) { | 1238 checkPretargetingConfigList(api.PretargetingConfigList o) { |
1199 buildCounterPretargetingConfigList++; | 1239 buildCounterPretargetingConfigList++; |
1200 if (buildCounterPretargetingConfigList < 3) { | 1240 if (buildCounterPretargetingConfigList < 3) { |
1201 checkUnnamed882(o.items); | 1241 checkUnnamed89(o.items); |
1202 unittest.expect(o.kind, unittest.equals('foo')); | 1242 unittest.expect(o.kind, unittest.equals('foo')); |
1203 } | 1243 } |
1204 buildCounterPretargetingConfigList--; | 1244 buildCounterPretargetingConfigList--; |
1205 } | 1245 } |
1206 | 1246 |
1207 buildUnnamed883() { | 1247 buildUnnamed90() { |
1208 var o = new core.List<core.int>(); | 1248 var o = new core.List<core.int>(); |
1209 o.add(42); | 1249 o.add(42); |
1210 o.add(42); | 1250 o.add(42); |
1211 return o; | 1251 return o; |
1212 } | 1252 } |
1213 | 1253 |
1214 checkUnnamed883(core.List<core.int> o) { | 1254 checkUnnamed90(core.List<core.int> o) { |
1215 unittest.expect(o, unittest.hasLength(2)); | 1255 unittest.expect(o, unittest.hasLength(2)); |
1216 unittest.expect(o[0], unittest.equals(42)); | 1256 unittest.expect(o[0], unittest.equals(42)); |
1217 unittest.expect(o[1], unittest.equals(42)); | 1257 unittest.expect(o[1], unittest.equals(42)); |
1218 } | 1258 } |
1219 | 1259 |
1220 buildUnnamed884() { | 1260 buildUnnamed91() { |
1221 var o = new core.List<core.String>(); | 1261 var o = new core.List<core.String>(); |
1222 o.add("foo"); | 1262 o.add("foo"); |
1223 o.add("foo"); | 1263 o.add("foo"); |
1224 return o; | 1264 return o; |
1225 } | 1265 } |
1226 | 1266 |
1227 checkUnnamed884(core.List<core.String> o) { | 1267 checkUnnamed91(core.List<core.String> o) { |
1228 unittest.expect(o, unittest.hasLength(2)); | 1268 unittest.expect(o, unittest.hasLength(2)); |
1229 unittest.expect(o[0], unittest.equals('foo')); | 1269 unittest.expect(o[0], unittest.equals('foo')); |
1230 unittest.expect(o[1], unittest.equals('foo')); | 1270 unittest.expect(o[1], unittest.equals('foo')); |
1231 } | 1271 } |
1232 | 1272 |
1233 | 1273 |
1234 main() { | 1274 main() { |
1235 unittest.group("obj-schema-AccountBidderLocation", () { | 1275 unittest.group("obj-schema-AccountBidderLocation", () { |
1236 unittest.test("to-json--from-json", () { | 1276 unittest.test("to-json--from-json", () { |
1237 var o = buildAccountBidderLocation(); | 1277 var o = buildAccountBidderLocation(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 | 1328 |
1289 unittest.group("obj-schema-CreativeCorrections", () { | 1329 unittest.group("obj-schema-CreativeCorrections", () { |
1290 unittest.test("to-json--from-json", () { | 1330 unittest.test("to-json--from-json", () { |
1291 var o = buildCreativeCorrections(); | 1331 var o = buildCreativeCorrections(); |
1292 var od = new api.CreativeCorrections.fromJson(o.toJson()); | 1332 var od = new api.CreativeCorrections.fromJson(o.toJson()); |
1293 checkCreativeCorrections(od); | 1333 checkCreativeCorrections(od); |
1294 }); | 1334 }); |
1295 }); | 1335 }); |
1296 | 1336 |
1297 | 1337 |
1298 unittest.group("obj-schema-CreativeDisapprovalReasons", () { | |
1299 unittest.test("to-json--from-json", () { | |
1300 var o = buildCreativeDisapprovalReasons(); | |
1301 var od = new api.CreativeDisapprovalReasons.fromJson(o.toJson()); | |
1302 checkCreativeDisapprovalReasons(od); | |
1303 }); | |
1304 }); | |
1305 | |
1306 | |
1307 unittest.group("obj-schema-CreativeFilteringReasonsReasons", () { | 1338 unittest.group("obj-schema-CreativeFilteringReasonsReasons", () { |
1308 unittest.test("to-json--from-json", () { | 1339 unittest.test("to-json--from-json", () { |
1309 var o = buildCreativeFilteringReasonsReasons(); | 1340 var o = buildCreativeFilteringReasonsReasons(); |
1310 var od = new api.CreativeFilteringReasonsReasons.fromJson(o.toJson()); | 1341 var od = new api.CreativeFilteringReasonsReasons.fromJson(o.toJson()); |
1311 checkCreativeFilteringReasonsReasons(od); | 1342 checkCreativeFilteringReasonsReasons(od); |
1312 }); | 1343 }); |
1313 }); | 1344 }); |
1314 | 1345 |
1315 | 1346 |
1316 unittest.group("obj-schema-CreativeFilteringReasons", () { | 1347 unittest.group("obj-schema-CreativeFilteringReasons", () { |
1317 unittest.test("to-json--from-json", () { | 1348 unittest.test("to-json--from-json", () { |
1318 var o = buildCreativeFilteringReasons(); | 1349 var o = buildCreativeFilteringReasons(); |
1319 var od = new api.CreativeFilteringReasons.fromJson(o.toJson()); | 1350 var od = new api.CreativeFilteringReasons.fromJson(o.toJson()); |
1320 checkCreativeFilteringReasons(od); | 1351 checkCreativeFilteringReasons(od); |
1321 }); | 1352 }); |
1322 }); | 1353 }); |
1323 | 1354 |
1324 | 1355 |
| 1356 unittest.group("obj-schema-CreativeServingRestrictionsContexts", () { |
| 1357 unittest.test("to-json--from-json", () { |
| 1358 var o = buildCreativeServingRestrictionsContexts(); |
| 1359 var od = new api.CreativeServingRestrictionsContexts.fromJson(o.toJson()); |
| 1360 checkCreativeServingRestrictionsContexts(od); |
| 1361 }); |
| 1362 }); |
| 1363 |
| 1364 |
| 1365 unittest.group("obj-schema-CreativeServingRestrictionsDisapprovalReasons", ()
{ |
| 1366 unittest.test("to-json--from-json", () { |
| 1367 var o = buildCreativeServingRestrictionsDisapprovalReasons(); |
| 1368 var od = new api.CreativeServingRestrictionsDisapprovalReasons.fromJson(o.
toJson()); |
| 1369 checkCreativeServingRestrictionsDisapprovalReasons(od); |
| 1370 }); |
| 1371 }); |
| 1372 |
| 1373 |
| 1374 unittest.group("obj-schema-CreativeServingRestrictions", () { |
| 1375 unittest.test("to-json--from-json", () { |
| 1376 var o = buildCreativeServingRestrictions(); |
| 1377 var od = new api.CreativeServingRestrictions.fromJson(o.toJson()); |
| 1378 checkCreativeServingRestrictions(od); |
| 1379 }); |
| 1380 }); |
| 1381 |
| 1382 |
1325 unittest.group("obj-schema-Creative", () { | 1383 unittest.group("obj-schema-Creative", () { |
1326 unittest.test("to-json--from-json", () { | 1384 unittest.test("to-json--from-json", () { |
1327 var o = buildCreative(); | 1385 var o = buildCreative(); |
1328 var od = new api.Creative.fromJson(o.toJson()); | 1386 var od = new api.Creative.fromJson(o.toJson()); |
1329 checkCreative(od); | 1387 checkCreative(od); |
1330 }); | 1388 }); |
1331 }); | 1389 }); |
1332 | 1390 |
1333 | 1391 |
1334 unittest.group("obj-schema-CreativesList", () { | 1392 unittest.group("obj-schema-CreativesList", () { |
1335 unittest.test("to-json--from-json", () { | 1393 unittest.test("to-json--from-json", () { |
1336 var o = buildCreativesList(); | 1394 var o = buildCreativesList(); |
1337 var od = new api.CreativesList.fromJson(o.toJson()); | 1395 var od = new api.CreativesList.fromJson(o.toJson()); |
1338 checkCreativesList(od); | 1396 checkCreativesList(od); |
1339 }); | 1397 }); |
1340 }); | 1398 }); |
1341 | 1399 |
1342 | |
1343 unittest.group("obj-schema-DirectDeal", () { | |
1344 unittest.test("to-json--from-json", () { | |
1345 var o = buildDirectDeal(); | |
1346 var od = new api.DirectDeal.fromJson(o.toJson()); | |
1347 checkDirectDeal(od); | |
1348 }); | |
1349 }); | |
1350 | |
1351 | |
1352 unittest.group("obj-schema-DirectDealsList", () { | |
1353 unittest.test("to-json--from-json", () { | |
1354 var o = buildDirectDealsList(); | |
1355 var od = new api.DirectDealsList.fromJson(o.toJson()); | |
1356 checkDirectDealsList(od); | |
1357 }); | |
1358 }); | |
1359 | |
1360 | 1400 |
1361 unittest.group("obj-schema-PerformanceReport", () { | 1401 unittest.group("obj-schema-PerformanceReport", () { |
1362 unittest.test("to-json--from-json", () { | 1402 unittest.test("to-json--from-json", () { |
1363 var o = buildPerformanceReport(); | 1403 var o = buildPerformanceReport(); |
1364 var od = new api.PerformanceReport.fromJson(o.toJson()); | 1404 var od = new api.PerformanceReport.fromJson(o.toJson()); |
1365 checkPerformanceReport(od); | 1405 checkPerformanceReport(od); |
1366 }); | 1406 }); |
1367 }); | 1407 }); |
1368 | 1408 |
1369 | 1409 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 var mock = new HttpServerMock(); | 1467 var mock = new HttpServerMock(); |
1428 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; | 1468 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; |
1429 var arg_id = 42; | 1469 var arg_id = 42; |
1430 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1470 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1431 var path = (req.url).path; | 1471 var path = (req.url).path; |
1432 var pathOffset = 0; | 1472 var pathOffset = 0; |
1433 var index; | 1473 var index; |
1434 var subPart; | 1474 var subPart; |
1435 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1475 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1436 pathOffset += 1; | 1476 pathOffset += 1; |
1437 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1477 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1438 pathOffset += 21; | 1478 pathOffset += 21; |
1439 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); | 1479 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); |
1440 pathOffset += 9; | 1480 pathOffset += 9; |
1441 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1481 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1442 pathOffset = path.length; | 1482 pathOffset = path.length; |
1443 unittest.expect(subPart, unittest.equals("$arg_id")); | 1483 unittest.expect(subPart, unittest.equals("$arg_id")); |
1444 | 1484 |
1445 var query = (req.url).query; | 1485 var query = (req.url).query; |
1446 var queryOffset = 0; | 1486 var queryOffset = 0; |
1447 var queryMap = {}; | 1487 var queryMap = {}; |
(...skipping 27 matching lines...) Expand all Loading... |
1475 | 1515 |
1476 var mock = new HttpServerMock(); | 1516 var mock = new HttpServerMock(); |
1477 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; | 1517 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; |
1478 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1518 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1479 var path = (req.url).path; | 1519 var path = (req.url).path; |
1480 var pathOffset = 0; | 1520 var pathOffset = 0; |
1481 var index; | 1521 var index; |
1482 var subPart; | 1522 var subPart; |
1483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1484 pathOffset += 1; | 1524 pathOffset += 1; |
1485 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1525 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1486 pathOffset += 21; | 1526 pathOffset += 21; |
1487 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("accounts")); | 1527 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("accounts")); |
1488 pathOffset += 8; | 1528 pathOffset += 8; |
1489 | 1529 |
1490 var query = (req.url).query; | 1530 var query = (req.url).query; |
1491 var queryOffset = 0; | 1531 var queryOffset = 0; |
1492 var queryMap = {}; | 1532 var queryMap = {}; |
1493 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1533 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1494 parseBool(n) { | 1534 parseBool(n) { |
1495 if (n == "true") return true; | 1535 if (n == "true") return true; |
(...skipping 29 matching lines...) Expand all Loading... |
1525 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1565 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1526 var obj = new api.Account.fromJson(json); | 1566 var obj = new api.Account.fromJson(json); |
1527 checkAccount(obj); | 1567 checkAccount(obj); |
1528 | 1568 |
1529 var path = (req.url).path; | 1569 var path = (req.url).path; |
1530 var pathOffset = 0; | 1570 var pathOffset = 0; |
1531 var index; | 1571 var index; |
1532 var subPart; | 1572 var subPart; |
1533 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1534 pathOffset += 1; | 1574 pathOffset += 1; |
1535 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1575 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1536 pathOffset += 21; | 1576 pathOffset += 21; |
1537 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); | 1577 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); |
1538 pathOffset += 9; | 1578 pathOffset += 9; |
1539 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1579 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1540 pathOffset = path.length; | 1580 pathOffset = path.length; |
1541 unittest.expect(subPart, unittest.equals("$arg_id")); | 1581 unittest.expect(subPart, unittest.equals("$arg_id")); |
1542 | 1582 |
1543 var query = (req.url).query; | 1583 var query = (req.url).query; |
1544 var queryOffset = 0; | 1584 var queryOffset = 0; |
1545 var queryMap = {}; | 1585 var queryMap = {}; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1618 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1579 var obj = new api.Account.fromJson(json); | 1619 var obj = new api.Account.fromJson(json); |
1580 checkAccount(obj); | 1620 checkAccount(obj); |
1581 | 1621 |
1582 var path = (req.url).path; | 1622 var path = (req.url).path; |
1583 var pathOffset = 0; | 1623 var pathOffset = 0; |
1584 var index; | 1624 var index; |
1585 var subPart; | 1625 var subPart; |
1586 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1626 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1587 pathOffset += 1; | 1627 pathOffset += 1; |
1588 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1628 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1589 pathOffset += 21; | 1629 pathOffset += 21; |
1590 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); | 1630 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); |
1591 pathOffset += 9; | 1631 pathOffset += 9; |
1592 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1632 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1593 pathOffset = path.length; | 1633 pathOffset = path.length; |
1594 unittest.expect(subPart, unittest.equals("$arg_id")); | 1634 unittest.expect(subPart, unittest.equals("$arg_id")); |
1595 | 1635 |
1596 var query = (req.url).query; | 1636 var query = (req.url).query; |
1597 var queryOffset = 0; | 1637 var queryOffset = 0; |
1598 var queryMap = {}; | 1638 var queryMap = {}; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1631 var mock = new HttpServerMock(); | 1671 var mock = new HttpServerMock(); |
1632 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; | 1672 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; |
1633 var arg_accountId = 42; | 1673 var arg_accountId = 42; |
1634 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1674 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1635 var path = (req.url).path; | 1675 var path = (req.url).path; |
1636 var pathOffset = 0; | 1676 var pathOffset = 0; |
1637 var index; | 1677 var index; |
1638 var subPart; | 1678 var subPart; |
1639 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1679 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1640 pathOffset += 1; | 1680 pathOffset += 1; |
1641 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1681 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1642 pathOffset += 21; | 1682 pathOffset += 21; |
1643 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); | 1683 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); |
1644 pathOffset += 12; | 1684 pathOffset += 12; |
1645 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1685 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1646 pathOffset = path.length; | 1686 pathOffset = path.length; |
1647 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 1687 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
1648 | 1688 |
1649 var query = (req.url).query; | 1689 var query = (req.url).query; |
1650 var queryOffset = 0; | 1690 var queryOffset = 0; |
1651 var queryMap = {}; | 1691 var queryMap = {}; |
(...skipping 27 matching lines...) Expand all Loading... |
1679 | 1719 |
1680 var mock = new HttpServerMock(); | 1720 var mock = new HttpServerMock(); |
1681 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; | 1721 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; |
1682 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1722 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1683 var path = (req.url).path; | 1723 var path = (req.url).path; |
1684 var pathOffset = 0; | 1724 var pathOffset = 0; |
1685 var index; | 1725 var index; |
1686 var subPart; | 1726 var subPart; |
1687 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1727 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1688 pathOffset += 1; | 1728 pathOffset += 1; |
1689 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1729 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1690 pathOffset += 21; | 1730 pathOffset += 21; |
1691 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("billinginfo")); | 1731 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("billinginfo")); |
1692 pathOffset += 11; | 1732 pathOffset += 11; |
1693 | 1733 |
1694 var query = (req.url).query; | 1734 var query = (req.url).query; |
1695 var queryOffset = 0; | 1735 var queryOffset = 0; |
1696 var queryMap = {}; | 1736 var queryMap = {}; |
1697 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1737 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1698 parseBool(n) { | 1738 parseBool(n) { |
1699 if (n == "true") return true; | 1739 if (n == "true") return true; |
(...skipping 30 matching lines...) Expand all Loading... |
1730 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; | 1770 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; |
1731 var arg_accountId = "foo"; | 1771 var arg_accountId = "foo"; |
1732 var arg_billingId = "foo"; | 1772 var arg_billingId = "foo"; |
1733 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1773 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1734 var path = (req.url).path; | 1774 var path = (req.url).path; |
1735 var pathOffset = 0; | 1775 var pathOffset = 0; |
1736 var index; | 1776 var index; |
1737 var subPart; | 1777 var subPart; |
1738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1778 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1739 pathOffset += 1; | 1779 pathOffset += 1; |
1740 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1780 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1741 pathOffset += 21; | 1781 pathOffset += 21; |
1742 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); | 1782 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); |
1743 pathOffset += 12; | 1783 pathOffset += 12; |
1744 index = path.indexOf("/", pathOffset); | 1784 index = path.indexOf("/", pathOffset); |
1745 unittest.expect(index >= 0, unittest.isTrue); | 1785 unittest.expect(index >= 0, unittest.isTrue); |
1746 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1786 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1747 pathOffset = index; | 1787 pathOffset = index; |
1748 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 1788 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
1749 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1789 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1750 pathOffset += 1; | 1790 pathOffset += 1; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1791 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1831 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1792 var obj = new api.Budget.fromJson(json); | 1832 var obj = new api.Budget.fromJson(json); |
1793 checkBudget(obj); | 1833 checkBudget(obj); |
1794 | 1834 |
1795 var path = (req.url).path; | 1835 var path = (req.url).path; |
1796 var pathOffset = 0; | 1836 var pathOffset = 0; |
1797 var index; | 1837 var index; |
1798 var subPart; | 1838 var subPart; |
1799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1839 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1800 pathOffset += 1; | 1840 pathOffset += 1; |
1801 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1841 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1802 pathOffset += 21; | 1842 pathOffset += 21; |
1803 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); | 1843 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); |
1804 pathOffset += 12; | 1844 pathOffset += 12; |
1805 index = path.indexOf("/", pathOffset); | 1845 index = path.indexOf("/", pathOffset); |
1806 unittest.expect(index >= 0, unittest.isTrue); | 1846 unittest.expect(index >= 0, unittest.isTrue); |
1807 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1847 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1808 pathOffset = index; | 1848 pathOffset = index; |
1809 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 1849 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
1810 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1850 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1811 pathOffset += 1; | 1851 pathOffset += 1; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1852 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1892 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1853 var obj = new api.Budget.fromJson(json); | 1893 var obj = new api.Budget.fromJson(json); |
1854 checkBudget(obj); | 1894 checkBudget(obj); |
1855 | 1895 |
1856 var path = (req.url).path; | 1896 var path = (req.url).path; |
1857 var pathOffset = 0; | 1897 var pathOffset = 0; |
1858 var index; | 1898 var index; |
1859 var subPart; | 1899 var subPart; |
1860 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1900 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1861 pathOffset += 1; | 1901 pathOffset += 1; |
1862 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1902 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1863 pathOffset += 21; | 1903 pathOffset += 21; |
1864 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); | 1904 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); |
1865 pathOffset += 12; | 1905 pathOffset += 12; |
1866 index = path.indexOf("/", pathOffset); | 1906 index = path.indexOf("/", pathOffset); |
1867 unittest.expect(index >= 0, unittest.isTrue); | 1907 unittest.expect(index >= 0, unittest.isTrue); |
1868 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1908 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1869 pathOffset = index; | 1909 pathOffset = index; |
1870 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 1910 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
1871 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1911 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1872 pathOffset += 1; | 1912 pathOffset += 1; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1913 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1953 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1914 var arg_accountId = 42; | 1954 var arg_accountId = 42; |
1915 var arg_buyerCreativeId = "foo"; | 1955 var arg_buyerCreativeId = "foo"; |
1916 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1956 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1917 var path = (req.url).path; | 1957 var path = (req.url).path; |
1918 var pathOffset = 0; | 1958 var pathOffset = 0; |
1919 var index; | 1959 var index; |
1920 var subPart; | 1960 var subPart; |
1921 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1961 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1922 pathOffset += 1; | 1962 pathOffset += 1; |
1923 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1963 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1924 pathOffset += 21; | 1964 pathOffset += 21; |
1925 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("creatives/")); | 1965 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("creatives/")); |
1926 pathOffset += 10; | 1966 pathOffset += 10; |
1927 index = path.indexOf("/", pathOffset); | 1967 index = path.indexOf("/", pathOffset); |
1928 unittest.expect(index >= 0, unittest.isTrue); | 1968 unittest.expect(index >= 0, unittest.isTrue); |
1929 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1969 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1930 pathOffset = index; | 1970 pathOffset = index; |
1931 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 1971 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
1932 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1972 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1933 pathOffset += 1; | 1973 pathOffset += 1; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1972 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2012 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1973 var obj = new api.Creative.fromJson(json); | 2013 var obj = new api.Creative.fromJson(json); |
1974 checkCreative(obj); | 2014 checkCreative(obj); |
1975 | 2015 |
1976 var path = (req.url).path; | 2016 var path = (req.url).path; |
1977 var pathOffset = 0; | 2017 var pathOffset = 0; |
1978 var index; | 2018 var index; |
1979 var subPart; | 2019 var subPart; |
1980 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2020 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1981 pathOffset += 1; | 2021 pathOffset += 1; |
1982 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2022 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
1983 pathOffset += 21; | 2023 pathOffset += 21; |
1984 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("creatives")); | 2024 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("creatives")); |
1985 pathOffset += 9; | 2025 pathOffset += 9; |
1986 | 2026 |
1987 var query = (req.url).query; | 2027 var query = (req.url).query; |
1988 var queryOffset = 0; | 2028 var queryOffset = 0; |
1989 var queryMap = {}; | 2029 var queryMap = {}; |
1990 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2030 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1991 parseBool(n) { | 2031 parseBool(n) { |
1992 if (n == "true") return true; | 2032 if (n == "true") return true; |
(...skipping 17 matching lines...) Expand all Loading... |
2010 }), true); | 2050 }), true); |
2011 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ | 2051 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ |
2012 checkCreative(response); | 2052 checkCreative(response); |
2013 }))); | 2053 }))); |
2014 }); | 2054 }); |
2015 | 2055 |
2016 unittest.test("method--list", () { | 2056 unittest.test("method--list", () { |
2017 | 2057 |
2018 var mock = new HttpServerMock(); | 2058 var mock = new HttpServerMock(); |
2019 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 2059 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
2020 var arg_accountId = buildUnnamed883(); | 2060 var arg_accountId = buildUnnamed90(); |
2021 var arg_buyerCreativeId = buildUnnamed884(); | 2061 var arg_buyerCreativeId = buildUnnamed91(); |
| 2062 var arg_dealsStatusFilter = "foo"; |
2022 var arg_maxResults = 42; | 2063 var arg_maxResults = 42; |
| 2064 var arg_openAuctionStatusFilter = "foo"; |
2023 var arg_pageToken = "foo"; | 2065 var arg_pageToken = "foo"; |
2024 var arg_statusFilter = "foo"; | |
2025 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2066 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2026 var path = (req.url).path; | 2067 var path = (req.url).path; |
2027 var pathOffset = 0; | 2068 var pathOffset = 0; |
2028 var index; | 2069 var index; |
2029 var subPart; | 2070 var subPart; |
2030 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2071 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2031 pathOffset += 1; | 2072 pathOffset += 1; |
2032 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2073 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
2033 pathOffset += 21; | 2074 pathOffset += 21; |
2034 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("creatives")); | 2075 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("creatives")); |
2035 pathOffset += 9; | 2076 pathOffset += 9; |
2036 | 2077 |
2037 var query = (req.url).query; | 2078 var query = (req.url).query; |
2038 var queryOffset = 0; | 2079 var queryOffset = 0; |
2039 var queryMap = {}; | 2080 var queryMap = {}; |
2040 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2081 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2041 parseBool(n) { | 2082 parseBool(n) { |
2042 if (n == "true") return true; | 2083 if (n == "true") return true; |
2043 if (n == "false") return false; | 2084 if (n == "false") return false; |
2044 if (n == null) return null; | 2085 if (n == null) return null; |
2045 throw new core.ArgumentError("Invalid boolean: $n"); | 2086 throw new core.ArgumentError("Invalid boolean: $n"); |
2046 } | 2087 } |
2047 if (query.length > 0) { | 2088 if (query.length > 0) { |
2048 for (var part in query.split("&")) { | 2089 for (var part in query.split("&")) { |
2049 var keyvalue = part.split("="); | 2090 var keyvalue = part.split("="); |
2050 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2091 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2051 } | 2092 } |
2052 } | 2093 } |
2053 unittest.expect(queryMap["accountId"].map(core.int.parse).toList(), unit
test.equals(arg_accountId)); | 2094 unittest.expect(queryMap["accountId"].map(core.int.parse).toList(), unit
test.equals(arg_accountId)); |
2054 unittest.expect(queryMap["buyerCreativeId"], unittest.equals(arg_buyerCr
eativeId)); | 2095 unittest.expect(queryMap["buyerCreativeId"], unittest.equals(arg_buyerCr
eativeId)); |
| 2096 unittest.expect(queryMap["dealsStatusFilter"].first, unittest.equals(arg
_dealsStatusFilter)); |
2055 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 2097 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 2098 unittest.expect(queryMap["openAuctionStatusFilter"].first, unittest.equa
ls(arg_openAuctionStatusFilter)); |
2056 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2099 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2057 unittest.expect(queryMap["statusFilter"].first, unittest.equals(arg_stat
usFilter)); | |
2058 | 2100 |
2059 | 2101 |
2060 var h = { | 2102 var h = { |
2061 "content-type" : "application/json; charset=utf-8", | 2103 "content-type" : "application/json; charset=utf-8", |
2062 }; | 2104 }; |
2063 var resp = convert.JSON.encode(buildCreativesList()); | 2105 var resp = convert.JSON.encode(buildCreativesList()); |
2064 return new async.Future.value(stringResponse(200, h, resp)); | 2106 return new async.Future.value(stringResponse(200, h, resp)); |
2065 }), true); | 2107 }), true); |
2066 res.list(accountId: arg_accountId, buyerCreativeId: arg_buyerCreativeId, m
axResults: arg_maxResults, pageToken: arg_pageToken, statusFilter: arg_statusFil
ter).then(unittest.expectAsync(((api.CreativesList response) { | 2108 res.list(accountId: arg_accountId, buyerCreativeId: arg_buyerCreativeId, d
ealsStatusFilter: arg_dealsStatusFilter, maxResults: arg_maxResults, openAuction
StatusFilter: arg_openAuctionStatusFilter, pageToken: arg_pageToken).then(unitte
st.expectAsync(((api.CreativesList response) { |
2067 checkCreativesList(response); | 2109 checkCreativesList(response); |
2068 }))); | 2110 }))); |
2069 }); | 2111 }); |
2070 | 2112 |
2071 }); | 2113 }); |
2072 | 2114 |
2073 | 2115 |
2074 unittest.group("resource-DirectDealsResourceApi", () { | |
2075 unittest.test("method--get", () { | |
2076 | |
2077 var mock = new HttpServerMock(); | |
2078 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; | |
2079 var arg_id = "foo"; | |
2080 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2081 var path = (req.url).path; | |
2082 var pathOffset = 0; | |
2083 var index; | |
2084 var subPart; | |
2085 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
2086 pathOffset += 1; | |
2087 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | |
2088 pathOffset += 21; | |
2089 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("directdeals/")); | |
2090 pathOffset += 12; | |
2091 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
2092 pathOffset = path.length; | |
2093 unittest.expect(subPart, unittest.equals("$arg_id")); | |
2094 | |
2095 var query = (req.url).query; | |
2096 var queryOffset = 0; | |
2097 var queryMap = {}; | |
2098 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
2099 parseBool(n) { | |
2100 if (n == "true") return true; | |
2101 if (n == "false") return false; | |
2102 if (n == null) return null; | |
2103 throw new core.ArgumentError("Invalid boolean: $n"); | |
2104 } | |
2105 if (query.length > 0) { | |
2106 for (var part in query.split("&")) { | |
2107 var keyvalue = part.split("="); | |
2108 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
2109 } | |
2110 } | |
2111 | |
2112 | |
2113 var h = { | |
2114 "content-type" : "application/json; charset=utf-8", | |
2115 }; | |
2116 var resp = convert.JSON.encode(buildDirectDeal()); | |
2117 return new async.Future.value(stringResponse(200, h, resp)); | |
2118 }), true); | |
2119 res.get(arg_id).then(unittest.expectAsync(((api.DirectDeal response) { | |
2120 checkDirectDeal(response); | |
2121 }))); | |
2122 }); | |
2123 | |
2124 unittest.test("method--list", () { | |
2125 | |
2126 var mock = new HttpServerMock(); | |
2127 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; | |
2128 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2129 var path = (req.url).path; | |
2130 var pathOffset = 0; | |
2131 var index; | |
2132 var subPart; | |
2133 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
2134 pathOffset += 1; | |
2135 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | |
2136 pathOffset += 21; | |
2137 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("directdeals")); | |
2138 pathOffset += 11; | |
2139 | |
2140 var query = (req.url).query; | |
2141 var queryOffset = 0; | |
2142 var queryMap = {}; | |
2143 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
2144 parseBool(n) { | |
2145 if (n == "true") return true; | |
2146 if (n == "false") return false; | |
2147 if (n == null) return null; | |
2148 throw new core.ArgumentError("Invalid boolean: $n"); | |
2149 } | |
2150 if (query.length > 0) { | |
2151 for (var part in query.split("&")) { | |
2152 var keyvalue = part.split("="); | |
2153 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
2154 } | |
2155 } | |
2156 | |
2157 | |
2158 var h = { | |
2159 "content-type" : "application/json; charset=utf-8", | |
2160 }; | |
2161 var resp = convert.JSON.encode(buildDirectDealsList()); | |
2162 return new async.Future.value(stringResponse(200, h, resp)); | |
2163 }), true); | |
2164 res.list().then(unittest.expectAsync(((api.DirectDealsList response) { | |
2165 checkDirectDealsList(response); | |
2166 }))); | |
2167 }); | |
2168 | |
2169 }); | |
2170 | |
2171 | |
2172 unittest.group("resource-PerformanceReportResourceApi", () { | 2116 unittest.group("resource-PerformanceReportResourceApi", () { |
2173 unittest.test("method--list", () { | 2117 unittest.test("method--list", () { |
2174 | 2118 |
2175 var mock = new HttpServerMock(); | 2119 var mock = new HttpServerMock(); |
2176 api.PerformanceReportResourceApi res = new api.AdexchangebuyerApi(mock).pe
rformanceReport; | 2120 api.PerformanceReportResourceApi res = new api.AdexchangebuyerApi(mock).pe
rformanceReport; |
2177 var arg_accountId = "foo"; | 2121 var arg_accountId = "foo"; |
2178 var arg_endDateTime = "foo"; | 2122 var arg_endDateTime = "foo"; |
2179 var arg_startDateTime = "foo"; | 2123 var arg_startDateTime = "foo"; |
2180 var arg_maxResults = 42; | 2124 var arg_maxResults = 42; |
2181 var arg_pageToken = "foo"; | 2125 var arg_pageToken = "foo"; |
2182 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2126 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2183 var path = (req.url).path; | 2127 var path = (req.url).path; |
2184 var pathOffset = 0; | 2128 var pathOffset = 0; |
2185 var index; | 2129 var index; |
2186 var subPart; | 2130 var subPart; |
2187 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2131 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2188 pathOffset += 1; | 2132 pathOffset += 1; |
2189 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2133 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
2190 pathOffset += 21; | 2134 pathOffset += 21; |
2191 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("performancereport")); | 2135 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("performancereport")); |
2192 pathOffset += 17; | 2136 pathOffset += 17; |
2193 | 2137 |
2194 var query = (req.url).query; | 2138 var query = (req.url).query; |
2195 var queryOffset = 0; | 2139 var queryOffset = 0; |
2196 var queryMap = {}; | 2140 var queryMap = {}; |
2197 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2141 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2198 parseBool(n) { | 2142 parseBool(n) { |
2199 if (n == "true") return true; | 2143 if (n == "true") return true; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2235 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2179 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2236 var arg_accountId = "foo"; | 2180 var arg_accountId = "foo"; |
2237 var arg_configId = "foo"; | 2181 var arg_configId = "foo"; |
2238 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2182 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2239 var path = (req.url).path; | 2183 var path = (req.url).path; |
2240 var pathOffset = 0; | 2184 var pathOffset = 0; |
2241 var index; | 2185 var index; |
2242 var subPart; | 2186 var subPart; |
2243 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2187 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2244 pathOffset += 1; | 2188 pathOffset += 1; |
2245 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2189 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
2246 pathOffset += 21; | 2190 pathOffset += 21; |
2247 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2191 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2248 pathOffset += 20; | 2192 pathOffset += 20; |
2249 index = path.indexOf("/", pathOffset); | 2193 index = path.indexOf("/", pathOffset); |
2250 unittest.expect(index >= 0, unittest.isTrue); | 2194 unittest.expect(index >= 0, unittest.isTrue); |
2251 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2195 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2252 pathOffset = index; | 2196 pathOffset = index; |
2253 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2197 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2254 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2198 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2255 pathOffset += 1; | 2199 pathOffset += 1; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2290 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2234 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2291 var arg_accountId = "foo"; | 2235 var arg_accountId = "foo"; |
2292 var arg_configId = "foo"; | 2236 var arg_configId = "foo"; |
2293 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2237 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2294 var path = (req.url).path; | 2238 var path = (req.url).path; |
2295 var pathOffset = 0; | 2239 var pathOffset = 0; |
2296 var index; | 2240 var index; |
2297 var subPart; | 2241 var subPart; |
2298 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2242 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2299 pathOffset += 1; | 2243 pathOffset += 1; |
2300 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2244 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
2301 pathOffset += 21; | 2245 pathOffset += 21; |
2302 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2246 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2303 pathOffset += 20; | 2247 pathOffset += 20; |
2304 index = path.indexOf("/", pathOffset); | 2248 index = path.indexOf("/", pathOffset); |
2305 unittest.expect(index >= 0, unittest.isTrue); | 2249 unittest.expect(index >= 0, unittest.isTrue); |
2306 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2250 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2307 pathOffset = index; | 2251 pathOffset = index; |
2308 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2252 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2309 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2253 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2310 pathOffset += 1; | 2254 pathOffset += 1; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2350 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2294 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2351 var obj = new api.PretargetingConfig.fromJson(json); | 2295 var obj = new api.PretargetingConfig.fromJson(json); |
2352 checkPretargetingConfig(obj); | 2296 checkPretargetingConfig(obj); |
2353 | 2297 |
2354 var path = (req.url).path; | 2298 var path = (req.url).path; |
2355 var pathOffset = 0; | 2299 var pathOffset = 0; |
2356 var index; | 2300 var index; |
2357 var subPart; | 2301 var subPart; |
2358 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2302 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2359 pathOffset += 1; | 2303 pathOffset += 1; |
2360 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2304 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
2361 pathOffset += 21; | 2305 pathOffset += 21; |
2362 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2306 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2363 pathOffset += 20; | 2307 pathOffset += 20; |
2364 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2308 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
2365 pathOffset = path.length; | 2309 pathOffset = path.length; |
2366 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2310 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2367 | 2311 |
2368 var query = (req.url).query; | 2312 var query = (req.url).query; |
2369 var queryOffset = 0; | 2313 var queryOffset = 0; |
2370 var queryMap = {}; | 2314 var queryMap = {}; |
(...skipping 28 matching lines...) Expand all Loading... |
2399 var mock = new HttpServerMock(); | 2343 var mock = new HttpServerMock(); |
2400 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2344 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2401 var arg_accountId = "foo"; | 2345 var arg_accountId = "foo"; |
2402 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2346 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2403 var path = (req.url).path; | 2347 var path = (req.url).path; |
2404 var pathOffset = 0; | 2348 var pathOffset = 0; |
2405 var index; | 2349 var index; |
2406 var subPart; | 2350 var subPart; |
2407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2351 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2408 pathOffset += 1; | 2352 pathOffset += 1; |
2409 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2353 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
2410 pathOffset += 21; | 2354 pathOffset += 21; |
2411 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2355 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2412 pathOffset += 20; | 2356 pathOffset += 20; |
2413 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2357 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
2414 pathOffset = path.length; | 2358 pathOffset = path.length; |
2415 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2359 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2416 | 2360 |
2417 var query = (req.url).query; | 2361 var query = (req.url).query; |
2418 var queryOffset = 0; | 2362 var queryOffset = 0; |
2419 var queryMap = {}; | 2363 var queryMap = {}; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2453 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2454 var obj = new api.PretargetingConfig.fromJson(json); | 2398 var obj = new api.PretargetingConfig.fromJson(json); |
2455 checkPretargetingConfig(obj); | 2399 checkPretargetingConfig(obj); |
2456 | 2400 |
2457 var path = (req.url).path; | 2401 var path = (req.url).path; |
2458 var pathOffset = 0; | 2402 var pathOffset = 0; |
2459 var index; | 2403 var index; |
2460 var subPart; | 2404 var subPart; |
2461 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2405 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2462 pathOffset += 1; | 2406 pathOffset += 1; |
2463 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2407 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
2464 pathOffset += 21; | 2408 pathOffset += 21; |
2465 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2409 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2466 pathOffset += 20; | 2410 pathOffset += 20; |
2467 index = path.indexOf("/", pathOffset); | 2411 index = path.indexOf("/", pathOffset); |
2468 unittest.expect(index >= 0, unittest.isTrue); | 2412 unittest.expect(index >= 0, unittest.isTrue); |
2469 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2413 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2470 pathOffset = index; | 2414 pathOffset = index; |
2471 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2415 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2472 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2416 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2473 pathOffset += 1; | 2417 pathOffset += 1; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2514 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2515 var obj = new api.PretargetingConfig.fromJson(json); | 2459 var obj = new api.PretargetingConfig.fromJson(json); |
2516 checkPretargetingConfig(obj); | 2460 checkPretargetingConfig(obj); |
2517 | 2461 |
2518 var path = (req.url).path; | 2462 var path = (req.url).path; |
2519 var pathOffset = 0; | 2463 var pathOffset = 0; |
2520 var index; | 2464 var index; |
2521 var subPart; | 2465 var subPart; |
2522 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2523 pathOffset += 1; | 2467 pathOffset += 1; |
2524 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2468 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.4/")); |
2525 pathOffset += 21; | 2469 pathOffset += 21; |
2526 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2470 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2527 pathOffset += 20; | 2471 pathOffset += 20; |
2528 index = path.indexOf("/", pathOffset); | 2472 index = path.indexOf("/", pathOffset); |
2529 unittest.expect(index >= 0, unittest.isTrue); | 2473 unittest.expect(index >= 0, unittest.isTrue); |
2530 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2474 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2531 pathOffset = index; | 2475 pathOffset = index; |
2532 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2476 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2533 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2477 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2534 pathOffset += 1; | 2478 pathOffset += 1; |
(...skipping 28 matching lines...) Expand all Loading... |
2563 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { | 2507 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { |
2564 checkPretargetingConfig(response); | 2508 checkPretargetingConfig(response); |
2565 }))); | 2509 }))); |
2566 }); | 2510 }); |
2567 | 2511 |
2568 }); | 2512 }); |
2569 | 2513 |
2570 | 2514 |
2571 } | 2515 } |
2572 | 2516 |
OLD | NEW |