OLD | NEW |
1 library googleapis.adexchangebuyer.v1_3.test; | 1 library googleapis.adexchangebuyer.v1_3.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 21 matching lines...) Expand all Loading... |
32 checkAccountBidderLocation(api.AccountBidderLocation o) { | 32 checkAccountBidderLocation(api.AccountBidderLocation o) { |
33 buildCounterAccountBidderLocation++; | 33 buildCounterAccountBidderLocation++; |
34 if (buildCounterAccountBidderLocation < 3) { | 34 if (buildCounterAccountBidderLocation < 3) { |
35 unittest.expect(o.maximumQps, unittest.equals(42)); | 35 unittest.expect(o.maximumQps, unittest.equals(42)); |
36 unittest.expect(o.region, unittest.equals('foo')); | 36 unittest.expect(o.region, unittest.equals('foo')); |
37 unittest.expect(o.url, unittest.equals('foo')); | 37 unittest.expect(o.url, unittest.equals('foo')); |
38 } | 38 } |
39 buildCounterAccountBidderLocation--; | 39 buildCounterAccountBidderLocation--; |
40 } | 40 } |
41 | 41 |
42 buildUnnamed0() { | 42 buildUnnamed580() { |
43 var o = new core.List<api.AccountBidderLocation>(); | 43 var o = new core.List<api.AccountBidderLocation>(); |
44 o.add(buildAccountBidderLocation()); | 44 o.add(buildAccountBidderLocation()); |
45 o.add(buildAccountBidderLocation()); | 45 o.add(buildAccountBidderLocation()); |
46 return o; | 46 return o; |
47 } | 47 } |
48 | 48 |
49 checkUnnamed0(core.List<api.AccountBidderLocation> o) { | 49 checkUnnamed580(core.List<api.AccountBidderLocation> o) { |
50 unittest.expect(o, unittest.hasLength(2)); | 50 unittest.expect(o, unittest.hasLength(2)); |
51 checkAccountBidderLocation(o[0]); | 51 checkAccountBidderLocation(o[0]); |
52 checkAccountBidderLocation(o[1]); | 52 checkAccountBidderLocation(o[1]); |
53 } | 53 } |
54 | 54 |
55 core.int buildCounterAccount = 0; | 55 core.int buildCounterAccount = 0; |
56 buildAccount() { | 56 buildAccount() { |
57 var o = new api.Account(); | 57 var o = new api.Account(); |
58 buildCounterAccount++; | 58 buildCounterAccount++; |
59 if (buildCounterAccount < 3) { | 59 if (buildCounterAccount < 3) { |
60 o.bidderLocation = buildUnnamed0(); | 60 o.bidderLocation = buildUnnamed580(); |
61 o.cookieMatchingNid = "foo"; | 61 o.cookieMatchingNid = "foo"; |
62 o.cookieMatchingUrl = "foo"; | 62 o.cookieMatchingUrl = "foo"; |
63 o.id = 42; | 63 o.id = 42; |
64 o.kind = "foo"; | 64 o.kind = "foo"; |
65 o.maximumActiveCreatives = 42; | 65 o.maximumActiveCreatives = 42; |
66 o.maximumTotalQps = 42; | 66 o.maximumTotalQps = 42; |
67 o.numberActiveCreatives = 42; | 67 o.numberActiveCreatives = 42; |
68 } | 68 } |
69 buildCounterAccount--; | 69 buildCounterAccount--; |
70 return o; | 70 return o; |
71 } | 71 } |
72 | 72 |
73 checkAccount(api.Account o) { | 73 checkAccount(api.Account o) { |
74 buildCounterAccount++; | 74 buildCounterAccount++; |
75 if (buildCounterAccount < 3) { | 75 if (buildCounterAccount < 3) { |
76 checkUnnamed0(o.bidderLocation); | 76 checkUnnamed580(o.bidderLocation); |
77 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); | 77 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); |
78 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); | 78 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); |
79 unittest.expect(o.id, unittest.equals(42)); | 79 unittest.expect(o.id, unittest.equals(42)); |
80 unittest.expect(o.kind, unittest.equals('foo')); | 80 unittest.expect(o.kind, unittest.equals('foo')); |
81 unittest.expect(o.maximumActiveCreatives, unittest.equals(42)); | 81 unittest.expect(o.maximumActiveCreatives, unittest.equals(42)); |
82 unittest.expect(o.maximumTotalQps, unittest.equals(42)); | 82 unittest.expect(o.maximumTotalQps, unittest.equals(42)); |
83 unittest.expect(o.numberActiveCreatives, unittest.equals(42)); | 83 unittest.expect(o.numberActiveCreatives, unittest.equals(42)); |
84 } | 84 } |
85 buildCounterAccount--; | 85 buildCounterAccount--; |
86 } | 86 } |
87 | 87 |
88 buildUnnamed1() { | 88 buildUnnamed581() { |
89 var o = new core.List<api.Account>(); | 89 var o = new core.List<api.Account>(); |
90 o.add(buildAccount()); | 90 o.add(buildAccount()); |
91 o.add(buildAccount()); | 91 o.add(buildAccount()); |
92 return o; | 92 return o; |
93 } | 93 } |
94 | 94 |
95 checkUnnamed1(core.List<api.Account> o) { | 95 checkUnnamed581(core.List<api.Account> o) { |
96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
97 checkAccount(o[0]); | 97 checkAccount(o[0]); |
98 checkAccount(o[1]); | 98 checkAccount(o[1]); |
99 } | 99 } |
100 | 100 |
101 core.int buildCounterAccountsList = 0; | 101 core.int buildCounterAccountsList = 0; |
102 buildAccountsList() { | 102 buildAccountsList() { |
103 var o = new api.AccountsList(); | 103 var o = new api.AccountsList(); |
104 buildCounterAccountsList++; | 104 buildCounterAccountsList++; |
105 if (buildCounterAccountsList < 3) { | 105 if (buildCounterAccountsList < 3) { |
106 o.items = buildUnnamed1(); | 106 o.items = buildUnnamed581(); |
107 o.kind = "foo"; | 107 o.kind = "foo"; |
108 } | 108 } |
109 buildCounterAccountsList--; | 109 buildCounterAccountsList--; |
110 return o; | 110 return o; |
111 } | 111 } |
112 | 112 |
113 checkAccountsList(api.AccountsList o) { | 113 checkAccountsList(api.AccountsList o) { |
114 buildCounterAccountsList++; | 114 buildCounterAccountsList++; |
115 if (buildCounterAccountsList < 3) { | 115 if (buildCounterAccountsList < 3) { |
116 checkUnnamed1(o.items); | 116 checkUnnamed581(o.items); |
117 unittest.expect(o.kind, unittest.equals('foo')); | 117 unittest.expect(o.kind, unittest.equals('foo')); |
118 } | 118 } |
119 buildCounterAccountsList--; | 119 buildCounterAccountsList--; |
120 } | 120 } |
121 | 121 |
122 buildUnnamed2() { | 122 buildUnnamed582() { |
123 var o = new core.List<core.String>(); | 123 var o = new core.List<core.String>(); |
124 o.add("foo"); | 124 o.add("foo"); |
125 o.add("foo"); | 125 o.add("foo"); |
126 return o; | 126 return o; |
127 } | 127 } |
128 | 128 |
129 checkUnnamed2(core.List<core.String> o) { | 129 checkUnnamed582(core.List<core.String> o) { |
130 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
131 unittest.expect(o[0], unittest.equals('foo')); | 131 unittest.expect(o[0], unittest.equals('foo')); |
132 unittest.expect(o[1], unittest.equals('foo')); | 132 unittest.expect(o[1], unittest.equals('foo')); |
133 } | 133 } |
134 | 134 |
135 core.int buildCounterBillingInfo = 0; | 135 core.int buildCounterBillingInfo = 0; |
136 buildBillingInfo() { | 136 buildBillingInfo() { |
137 var o = new api.BillingInfo(); | 137 var o = new api.BillingInfo(); |
138 buildCounterBillingInfo++; | 138 buildCounterBillingInfo++; |
139 if (buildCounterBillingInfo < 3) { | 139 if (buildCounterBillingInfo < 3) { |
140 o.accountId = 42; | 140 o.accountId = 42; |
141 o.accountName = "foo"; | 141 o.accountName = "foo"; |
142 o.billingId = buildUnnamed2(); | 142 o.billingId = buildUnnamed582(); |
143 o.kind = "foo"; | 143 o.kind = "foo"; |
144 } | 144 } |
145 buildCounterBillingInfo--; | 145 buildCounterBillingInfo--; |
146 return o; | 146 return o; |
147 } | 147 } |
148 | 148 |
149 checkBillingInfo(api.BillingInfo o) { | 149 checkBillingInfo(api.BillingInfo o) { |
150 buildCounterBillingInfo++; | 150 buildCounterBillingInfo++; |
151 if (buildCounterBillingInfo < 3) { | 151 if (buildCounterBillingInfo < 3) { |
152 unittest.expect(o.accountId, unittest.equals(42)); | 152 unittest.expect(o.accountId, unittest.equals(42)); |
153 unittest.expect(o.accountName, unittest.equals('foo')); | 153 unittest.expect(o.accountName, unittest.equals('foo')); |
154 checkUnnamed2(o.billingId); | 154 checkUnnamed582(o.billingId); |
155 unittest.expect(o.kind, unittest.equals('foo')); | 155 unittest.expect(o.kind, unittest.equals('foo')); |
156 } | 156 } |
157 buildCounterBillingInfo--; | 157 buildCounterBillingInfo--; |
158 } | 158 } |
159 | 159 |
160 buildUnnamed3() { | 160 buildUnnamed583() { |
161 var o = new core.List<api.BillingInfo>(); | 161 var o = new core.List<api.BillingInfo>(); |
162 o.add(buildBillingInfo()); | 162 o.add(buildBillingInfo()); |
163 o.add(buildBillingInfo()); | 163 o.add(buildBillingInfo()); |
164 return o; | 164 return o; |
165 } | 165 } |
166 | 166 |
167 checkUnnamed3(core.List<api.BillingInfo> o) { | 167 checkUnnamed583(core.List<api.BillingInfo> o) { |
168 unittest.expect(o, unittest.hasLength(2)); | 168 unittest.expect(o, unittest.hasLength(2)); |
169 checkBillingInfo(o[0]); | 169 checkBillingInfo(o[0]); |
170 checkBillingInfo(o[1]); | 170 checkBillingInfo(o[1]); |
171 } | 171 } |
172 | 172 |
173 core.int buildCounterBillingInfoList = 0; | 173 core.int buildCounterBillingInfoList = 0; |
174 buildBillingInfoList() { | 174 buildBillingInfoList() { |
175 var o = new api.BillingInfoList(); | 175 var o = new api.BillingInfoList(); |
176 buildCounterBillingInfoList++; | 176 buildCounterBillingInfoList++; |
177 if (buildCounterBillingInfoList < 3) { | 177 if (buildCounterBillingInfoList < 3) { |
178 o.items = buildUnnamed3(); | 178 o.items = buildUnnamed583(); |
179 o.kind = "foo"; | 179 o.kind = "foo"; |
180 } | 180 } |
181 buildCounterBillingInfoList--; | 181 buildCounterBillingInfoList--; |
182 return o; | 182 return o; |
183 } | 183 } |
184 | 184 |
185 checkBillingInfoList(api.BillingInfoList o) { | 185 checkBillingInfoList(api.BillingInfoList o) { |
186 buildCounterBillingInfoList++; | 186 buildCounterBillingInfoList++; |
187 if (buildCounterBillingInfoList < 3) { | 187 if (buildCounterBillingInfoList < 3) { |
188 checkUnnamed3(o.items); | 188 checkUnnamed583(o.items); |
189 unittest.expect(o.kind, unittest.equals('foo')); | 189 unittest.expect(o.kind, unittest.equals('foo')); |
190 } | 190 } |
191 buildCounterBillingInfoList--; | 191 buildCounterBillingInfoList--; |
192 } | 192 } |
193 | 193 |
194 buildUnnamed4() { | 194 core.int buildCounterBudget = 0; |
| 195 buildBudget() { |
| 196 var o = new api.Budget(); |
| 197 buildCounterBudget++; |
| 198 if (buildCounterBudget < 3) { |
| 199 o.accountId = "foo"; |
| 200 o.billingId = "foo"; |
| 201 o.budgetAmount = "foo"; |
| 202 o.currencyCode = "foo"; |
| 203 o.id = "foo"; |
| 204 o.kind = "foo"; |
| 205 } |
| 206 buildCounterBudget--; |
| 207 return o; |
| 208 } |
| 209 |
| 210 checkBudget(api.Budget o) { |
| 211 buildCounterBudget++; |
| 212 if (buildCounterBudget < 3) { |
| 213 unittest.expect(o.accountId, unittest.equals('foo')); |
| 214 unittest.expect(o.billingId, unittest.equals('foo')); |
| 215 unittest.expect(o.budgetAmount, unittest.equals('foo')); |
| 216 unittest.expect(o.currencyCode, unittest.equals('foo')); |
| 217 unittest.expect(o.id, unittest.equals('foo')); |
| 218 unittest.expect(o.kind, unittest.equals('foo')); |
| 219 } |
| 220 buildCounterBudget--; |
| 221 } |
| 222 |
| 223 buildUnnamed584() { |
195 var o = new core.List<core.String>(); | 224 var o = new core.List<core.String>(); |
196 o.add("foo"); | 225 o.add("foo"); |
197 o.add("foo"); | 226 o.add("foo"); |
198 return o; | 227 return o; |
199 } | 228 } |
200 | 229 |
201 checkUnnamed4(core.List<core.String> o) { | 230 checkUnnamed584(core.List<core.String> o) { |
202 unittest.expect(o, unittest.hasLength(2)); | 231 unittest.expect(o, unittest.hasLength(2)); |
203 unittest.expect(o[0], unittest.equals('foo')); | 232 unittest.expect(o[0], unittest.equals('foo')); |
204 unittest.expect(o[1], unittest.equals('foo')); | 233 unittest.expect(o[1], unittest.equals('foo')); |
205 } | 234 } |
206 | 235 |
207 buildUnnamed5() { | 236 buildUnnamed585() { |
208 var o = new core.List<core.int>(); | 237 var o = new core.List<core.int>(); |
209 o.add(42); | 238 o.add(42); |
210 o.add(42); | 239 o.add(42); |
211 return o; | 240 return o; |
212 } | 241 } |
213 | 242 |
214 checkUnnamed5(core.List<core.int> o) { | 243 checkUnnamed585(core.List<core.int> o) { |
215 unittest.expect(o, unittest.hasLength(2)); | 244 unittest.expect(o, unittest.hasLength(2)); |
216 unittest.expect(o[0], unittest.equals(42)); | 245 unittest.expect(o[0], unittest.equals(42)); |
217 unittest.expect(o[1], unittest.equals(42)); | 246 unittest.expect(o[1], unittest.equals(42)); |
218 } | 247 } |
219 | 248 |
220 buildUnnamed6() { | 249 buildUnnamed586() { |
221 var o = new core.List<core.String>(); | 250 var o = new core.List<core.String>(); |
222 o.add("foo"); | 251 o.add("foo"); |
223 o.add("foo"); | 252 o.add("foo"); |
224 return o; | 253 return o; |
225 } | 254 } |
226 | 255 |
227 checkUnnamed6(core.List<core.String> o) { | 256 checkUnnamed586(core.List<core.String> o) { |
228 unittest.expect(o, unittest.hasLength(2)); | 257 unittest.expect(o, unittest.hasLength(2)); |
229 unittest.expect(o[0], unittest.equals('foo')); | 258 unittest.expect(o[0], unittest.equals('foo')); |
230 unittest.expect(o[1], unittest.equals('foo')); | 259 unittest.expect(o[1], unittest.equals('foo')); |
231 } | 260 } |
232 | 261 |
233 buildUnnamed7() { | 262 buildUnnamed587() { |
234 var o = new core.List<core.String>(); | 263 var o = new core.List<core.String>(); |
235 o.add("foo"); | 264 o.add("foo"); |
236 o.add("foo"); | 265 o.add("foo"); |
237 return o; | 266 return o; |
238 } | 267 } |
239 | 268 |
240 checkUnnamed7(core.List<core.String> o) { | 269 checkUnnamed587(core.List<core.String> o) { |
241 unittest.expect(o, unittest.hasLength(2)); | 270 unittest.expect(o, unittest.hasLength(2)); |
242 unittest.expect(o[0], unittest.equals('foo')); | 271 unittest.expect(o[0], unittest.equals('foo')); |
243 unittest.expect(o[1], unittest.equals('foo')); | 272 unittest.expect(o[1], unittest.equals('foo')); |
244 } | 273 } |
245 | 274 |
246 core.int buildCounterCreativeCorrections = 0; | 275 core.int buildCounterCreativeCorrections = 0; |
247 buildCreativeCorrections() { | 276 buildCreativeCorrections() { |
248 var o = new api.CreativeCorrections(); | 277 var o = new api.CreativeCorrections(); |
249 buildCounterCreativeCorrections++; | 278 buildCounterCreativeCorrections++; |
250 if (buildCounterCreativeCorrections < 3) { | 279 if (buildCounterCreativeCorrections < 3) { |
251 o.details = buildUnnamed7(); | 280 o.details = buildUnnamed587(); |
252 o.reason = "foo"; | 281 o.reason = "foo"; |
253 } | 282 } |
254 buildCounterCreativeCorrections--; | 283 buildCounterCreativeCorrections--; |
255 return o; | 284 return o; |
256 } | 285 } |
257 | 286 |
258 checkCreativeCorrections(api.CreativeCorrections o) { | 287 checkCreativeCorrections(api.CreativeCorrections o) { |
259 buildCounterCreativeCorrections++; | 288 buildCounterCreativeCorrections++; |
260 if (buildCounterCreativeCorrections < 3) { | 289 if (buildCounterCreativeCorrections < 3) { |
261 checkUnnamed7(o.details); | 290 checkUnnamed587(o.details); |
262 unittest.expect(o.reason, unittest.equals('foo')); | 291 unittest.expect(o.reason, unittest.equals('foo')); |
263 } | 292 } |
264 buildCounterCreativeCorrections--; | 293 buildCounterCreativeCorrections--; |
265 } | 294 } |
266 | 295 |
267 buildUnnamed8() { | 296 buildUnnamed588() { |
268 var o = new core.List<api.CreativeCorrections>(); | 297 var o = new core.List<api.CreativeCorrections>(); |
269 o.add(buildCreativeCorrections()); | 298 o.add(buildCreativeCorrections()); |
270 o.add(buildCreativeCorrections()); | 299 o.add(buildCreativeCorrections()); |
271 return o; | 300 return o; |
272 } | 301 } |
273 | 302 |
274 checkUnnamed8(core.List<api.CreativeCorrections> o) { | 303 checkUnnamed588(core.List<api.CreativeCorrections> o) { |
275 unittest.expect(o, unittest.hasLength(2)); | 304 unittest.expect(o, unittest.hasLength(2)); |
276 checkCreativeCorrections(o[0]); | 305 checkCreativeCorrections(o[0]); |
277 checkCreativeCorrections(o[1]); | 306 checkCreativeCorrections(o[1]); |
278 } | 307 } |
279 | 308 |
280 buildUnnamed9() { | 309 buildUnnamed589() { |
281 var o = new core.List<core.String>(); | 310 var o = new core.List<core.String>(); |
282 o.add("foo"); | 311 o.add("foo"); |
283 o.add("foo"); | 312 o.add("foo"); |
284 return o; | 313 return o; |
285 } | 314 } |
286 | 315 |
287 checkUnnamed9(core.List<core.String> o) { | 316 checkUnnamed589(core.List<core.String> o) { |
288 unittest.expect(o, unittest.hasLength(2)); | 317 unittest.expect(o, unittest.hasLength(2)); |
289 unittest.expect(o[0], unittest.equals('foo')); | 318 unittest.expect(o[0], unittest.equals('foo')); |
290 unittest.expect(o[1], unittest.equals('foo')); | 319 unittest.expect(o[1], unittest.equals('foo')); |
291 } | 320 } |
292 | 321 |
293 core.int buildCounterCreativeDisapprovalReasons = 0; | 322 core.int buildCounterCreativeDisapprovalReasons = 0; |
294 buildCreativeDisapprovalReasons() { | 323 buildCreativeDisapprovalReasons() { |
295 var o = new api.CreativeDisapprovalReasons(); | 324 var o = new api.CreativeDisapprovalReasons(); |
296 buildCounterCreativeDisapprovalReasons++; | 325 buildCounterCreativeDisapprovalReasons++; |
297 if (buildCounterCreativeDisapprovalReasons < 3) { | 326 if (buildCounterCreativeDisapprovalReasons < 3) { |
298 o.details = buildUnnamed9(); | 327 o.details = buildUnnamed589(); |
299 o.reason = "foo"; | 328 o.reason = "foo"; |
300 } | 329 } |
301 buildCounterCreativeDisapprovalReasons--; | 330 buildCounterCreativeDisapprovalReasons--; |
302 return o; | 331 return o; |
303 } | 332 } |
304 | 333 |
305 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { | 334 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { |
306 buildCounterCreativeDisapprovalReasons++; | 335 buildCounterCreativeDisapprovalReasons++; |
307 if (buildCounterCreativeDisapprovalReasons < 3) { | 336 if (buildCounterCreativeDisapprovalReasons < 3) { |
308 checkUnnamed9(o.details); | 337 checkUnnamed589(o.details); |
309 unittest.expect(o.reason, unittest.equals('foo')); | 338 unittest.expect(o.reason, unittest.equals('foo')); |
310 } | 339 } |
311 buildCounterCreativeDisapprovalReasons--; | 340 buildCounterCreativeDisapprovalReasons--; |
312 } | 341 } |
313 | 342 |
314 buildUnnamed10() { | 343 buildUnnamed590() { |
315 var o = new core.List<api.CreativeDisapprovalReasons>(); | 344 var o = new core.List<api.CreativeDisapprovalReasons>(); |
316 o.add(buildCreativeDisapprovalReasons()); | 345 o.add(buildCreativeDisapprovalReasons()); |
317 o.add(buildCreativeDisapprovalReasons()); | 346 o.add(buildCreativeDisapprovalReasons()); |
318 return o; | 347 return o; |
319 } | 348 } |
320 | 349 |
321 checkUnnamed10(core.List<api.CreativeDisapprovalReasons> o) { | 350 checkUnnamed590(core.List<api.CreativeDisapprovalReasons> o) { |
322 unittest.expect(o, unittest.hasLength(2)); | 351 unittest.expect(o, unittest.hasLength(2)); |
323 checkCreativeDisapprovalReasons(o[0]); | 352 checkCreativeDisapprovalReasons(o[0]); |
324 checkCreativeDisapprovalReasons(o[1]); | 353 checkCreativeDisapprovalReasons(o[1]); |
325 } | 354 } |
326 | 355 |
327 core.int buildCounterCreativeFilteringReasonsReasons = 0; | 356 core.int buildCounterCreativeFilteringReasonsReasons = 0; |
328 buildCreativeFilteringReasonsReasons() { | 357 buildCreativeFilteringReasonsReasons() { |
329 var o = new api.CreativeFilteringReasonsReasons(); | 358 var o = new api.CreativeFilteringReasonsReasons(); |
330 buildCounterCreativeFilteringReasonsReasons++; | 359 buildCounterCreativeFilteringReasonsReasons++; |
331 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 360 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
332 o.filteringCount = "foo"; | 361 o.filteringCount = "foo"; |
333 o.filteringStatus = 42; | 362 o.filteringStatus = 42; |
334 } | 363 } |
335 buildCounterCreativeFilteringReasonsReasons--; | 364 buildCounterCreativeFilteringReasonsReasons--; |
336 return o; | 365 return o; |
337 } | 366 } |
338 | 367 |
339 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { | 368 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { |
340 buildCounterCreativeFilteringReasonsReasons++; | 369 buildCounterCreativeFilteringReasonsReasons++; |
341 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 370 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
342 unittest.expect(o.filteringCount, unittest.equals('foo')); | 371 unittest.expect(o.filteringCount, unittest.equals('foo')); |
343 unittest.expect(o.filteringStatus, unittest.equals(42)); | 372 unittest.expect(o.filteringStatus, unittest.equals(42)); |
344 } | 373 } |
345 buildCounterCreativeFilteringReasonsReasons--; | 374 buildCounterCreativeFilteringReasonsReasons--; |
346 } | 375 } |
347 | 376 |
348 buildUnnamed11() { | 377 buildUnnamed591() { |
349 var o = new core.List<api.CreativeFilteringReasonsReasons>(); | 378 var o = new core.List<api.CreativeFilteringReasonsReasons>(); |
350 o.add(buildCreativeFilteringReasonsReasons()); | 379 o.add(buildCreativeFilteringReasonsReasons()); |
351 o.add(buildCreativeFilteringReasonsReasons()); | 380 o.add(buildCreativeFilteringReasonsReasons()); |
352 return o; | 381 return o; |
353 } | 382 } |
354 | 383 |
355 checkUnnamed11(core.List<api.CreativeFilteringReasonsReasons> o) { | 384 checkUnnamed591(core.List<api.CreativeFilteringReasonsReasons> o) { |
356 unittest.expect(o, unittest.hasLength(2)); | 385 unittest.expect(o, unittest.hasLength(2)); |
357 checkCreativeFilteringReasonsReasons(o[0]); | 386 checkCreativeFilteringReasonsReasons(o[0]); |
358 checkCreativeFilteringReasonsReasons(o[1]); | 387 checkCreativeFilteringReasonsReasons(o[1]); |
359 } | 388 } |
360 | 389 |
361 core.int buildCounterCreativeFilteringReasons = 0; | 390 core.int buildCounterCreativeFilteringReasons = 0; |
362 buildCreativeFilteringReasons() { | 391 buildCreativeFilteringReasons() { |
363 var o = new api.CreativeFilteringReasons(); | 392 var o = new api.CreativeFilteringReasons(); |
364 buildCounterCreativeFilteringReasons++; | 393 buildCounterCreativeFilteringReasons++; |
365 if (buildCounterCreativeFilteringReasons < 3) { | 394 if (buildCounterCreativeFilteringReasons < 3) { |
366 o.date = "foo"; | 395 o.date = "foo"; |
367 o.reasons = buildUnnamed11(); | 396 o.reasons = buildUnnamed591(); |
368 } | 397 } |
369 buildCounterCreativeFilteringReasons--; | 398 buildCounterCreativeFilteringReasons--; |
370 return o; | 399 return o; |
371 } | 400 } |
372 | 401 |
373 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { | 402 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { |
374 buildCounterCreativeFilteringReasons++; | 403 buildCounterCreativeFilteringReasons++; |
375 if (buildCounterCreativeFilteringReasons < 3) { | 404 if (buildCounterCreativeFilteringReasons < 3) { |
376 unittest.expect(o.date, unittest.equals('foo')); | 405 unittest.expect(o.date, unittest.equals('foo')); |
377 checkUnnamed11(o.reasons); | 406 checkUnnamed591(o.reasons); |
378 } | 407 } |
379 buildCounterCreativeFilteringReasons--; | 408 buildCounterCreativeFilteringReasons--; |
380 } | 409 } |
381 | 410 |
382 buildUnnamed12() { | 411 buildUnnamed592() { |
383 var o = new core.List<core.int>(); | 412 var o = new core.List<core.int>(); |
384 o.add(42); | 413 o.add(42); |
385 o.add(42); | 414 o.add(42); |
386 return o; | 415 return o; |
387 } | 416 } |
388 | 417 |
389 checkUnnamed12(core.List<core.int> o) { | 418 checkUnnamed592(core.List<core.int> o) { |
390 unittest.expect(o, unittest.hasLength(2)); | 419 unittest.expect(o, unittest.hasLength(2)); |
391 unittest.expect(o[0], unittest.equals(42)); | 420 unittest.expect(o[0], unittest.equals(42)); |
392 unittest.expect(o[1], unittest.equals(42)); | 421 unittest.expect(o[1], unittest.equals(42)); |
393 } | 422 } |
394 | 423 |
395 buildUnnamed13() { | 424 buildUnnamed593() { |
396 var o = new core.List<core.int>(); | 425 var o = new core.List<core.int>(); |
397 o.add(42); | 426 o.add(42); |
398 o.add(42); | 427 o.add(42); |
399 return o; | 428 return o; |
400 } | 429 } |
401 | 430 |
402 checkUnnamed13(core.List<core.int> o) { | 431 checkUnnamed593(core.List<core.int> o) { |
403 unittest.expect(o, unittest.hasLength(2)); | 432 unittest.expect(o, unittest.hasLength(2)); |
404 unittest.expect(o[0], unittest.equals(42)); | 433 unittest.expect(o[0], unittest.equals(42)); |
405 unittest.expect(o[1], unittest.equals(42)); | 434 unittest.expect(o[1], unittest.equals(42)); |
406 } | 435 } |
407 | 436 |
408 buildUnnamed14() { | 437 buildUnnamed594() { |
409 var o = new core.List<core.int>(); | 438 var o = new core.List<core.int>(); |
410 o.add(42); | 439 o.add(42); |
411 o.add(42); | 440 o.add(42); |
412 return o; | 441 return o; |
413 } | 442 } |
414 | 443 |
415 checkUnnamed14(core.List<core.int> o) { | 444 checkUnnamed594(core.List<core.int> o) { |
416 unittest.expect(o, unittest.hasLength(2)); | 445 unittest.expect(o, unittest.hasLength(2)); |
417 unittest.expect(o[0], unittest.equals(42)); | 446 unittest.expect(o[0], unittest.equals(42)); |
418 unittest.expect(o[1], unittest.equals(42)); | 447 unittest.expect(o[1], unittest.equals(42)); |
419 } | 448 } |
420 | 449 |
421 buildUnnamed15() { | 450 buildUnnamed595() { |
422 var o = new core.List<core.int>(); | 451 var o = new core.List<core.int>(); |
423 o.add(42); | 452 o.add(42); |
424 o.add(42); | 453 o.add(42); |
425 return o; | 454 return o; |
426 } | 455 } |
427 | 456 |
428 checkUnnamed15(core.List<core.int> o) { | 457 checkUnnamed595(core.List<core.int> o) { |
429 unittest.expect(o, unittest.hasLength(2)); | 458 unittest.expect(o, unittest.hasLength(2)); |
430 unittest.expect(o[0], unittest.equals(42)); | 459 unittest.expect(o[0], unittest.equals(42)); |
431 unittest.expect(o[1], unittest.equals(42)); | 460 unittest.expect(o[1], unittest.equals(42)); |
432 } | 461 } |
433 | 462 |
434 core.int buildCounterCreative = 0; | 463 core.int buildCounterCreative = 0; |
435 buildCreative() { | 464 buildCreative() { |
436 var o = new api.Creative(); | 465 var o = new api.Creative(); |
437 buildCounterCreative++; | 466 buildCounterCreative++; |
438 if (buildCounterCreative < 3) { | 467 if (buildCounterCreative < 3) { |
439 o.HTMLSnippet = "foo"; | 468 o.HTMLSnippet = "foo"; |
440 o.accountId = 42; | 469 o.accountId = 42; |
441 o.advertiserId = buildUnnamed4(); | 470 o.advertiserId = buildUnnamed584(); |
442 o.advertiserName = "foo"; | 471 o.advertiserName = "foo"; |
443 o.agencyId = "foo"; | 472 o.agencyId = "foo"; |
444 o.attribute = buildUnnamed5(); | 473 o.attribute = buildUnnamed585(); |
445 o.buyerCreativeId = "foo"; | 474 o.buyerCreativeId = "foo"; |
446 o.clickThroughUrl = buildUnnamed6(); | 475 o.clickThroughUrl = buildUnnamed586(); |
447 o.corrections = buildUnnamed8(); | 476 o.corrections = buildUnnamed588(); |
448 o.disapprovalReasons = buildUnnamed10(); | 477 o.disapprovalReasons = buildUnnamed590(); |
449 o.filteringReasons = buildCreativeFilteringReasons(); | 478 o.filteringReasons = buildCreativeFilteringReasons(); |
450 o.height = 42; | 479 o.height = 42; |
451 o.kind = "foo"; | 480 o.kind = "foo"; |
452 o.productCategories = buildUnnamed12(); | 481 o.productCategories = buildUnnamed592(); |
453 o.restrictedCategories = buildUnnamed13(); | 482 o.restrictedCategories = buildUnnamed593(); |
454 o.sensitiveCategories = buildUnnamed14(); | 483 o.sensitiveCategories = buildUnnamed594(); |
455 o.status = "foo"; | 484 o.status = "foo"; |
456 o.vendorType = buildUnnamed15(); | 485 o.vendorType = buildUnnamed595(); |
457 o.videoURL = "foo"; | 486 o.videoURL = "foo"; |
458 o.width = 42; | 487 o.width = 42; |
459 } | 488 } |
460 buildCounterCreative--; | 489 buildCounterCreative--; |
461 return o; | 490 return o; |
462 } | 491 } |
463 | 492 |
464 checkCreative(api.Creative o) { | 493 checkCreative(api.Creative o) { |
465 buildCounterCreative++; | 494 buildCounterCreative++; |
466 if (buildCounterCreative < 3) { | 495 if (buildCounterCreative < 3) { |
467 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); | 496 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); |
468 unittest.expect(o.accountId, unittest.equals(42)); | 497 unittest.expect(o.accountId, unittest.equals(42)); |
469 checkUnnamed4(o.advertiserId); | 498 checkUnnamed584(o.advertiserId); |
470 unittest.expect(o.advertiserName, unittest.equals('foo')); | 499 unittest.expect(o.advertiserName, unittest.equals('foo')); |
471 unittest.expect(o.agencyId, unittest.equals('foo')); | 500 unittest.expect(o.agencyId, unittest.equals('foo')); |
472 checkUnnamed5(o.attribute); | 501 checkUnnamed585(o.attribute); |
473 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); | 502 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); |
474 checkUnnamed6(o.clickThroughUrl); | 503 checkUnnamed586(o.clickThroughUrl); |
475 checkUnnamed8(o.corrections); | 504 checkUnnamed588(o.corrections); |
476 checkUnnamed10(o.disapprovalReasons); | 505 checkUnnamed590(o.disapprovalReasons); |
477 checkCreativeFilteringReasons(o.filteringReasons); | 506 checkCreativeFilteringReasons(o.filteringReasons); |
478 unittest.expect(o.height, unittest.equals(42)); | 507 unittest.expect(o.height, unittest.equals(42)); |
479 unittest.expect(o.kind, unittest.equals('foo')); | 508 unittest.expect(o.kind, unittest.equals('foo')); |
480 checkUnnamed12(o.productCategories); | 509 checkUnnamed592(o.productCategories); |
481 checkUnnamed13(o.restrictedCategories); | 510 checkUnnamed593(o.restrictedCategories); |
482 checkUnnamed14(o.sensitiveCategories); | 511 checkUnnamed594(o.sensitiveCategories); |
483 unittest.expect(o.status, unittest.equals('foo')); | 512 unittest.expect(o.status, unittest.equals('foo')); |
484 checkUnnamed15(o.vendorType); | 513 checkUnnamed595(o.vendorType); |
485 unittest.expect(o.videoURL, unittest.equals('foo')); | 514 unittest.expect(o.videoURL, unittest.equals('foo')); |
486 unittest.expect(o.width, unittest.equals(42)); | 515 unittest.expect(o.width, unittest.equals(42)); |
487 } | 516 } |
488 buildCounterCreative--; | 517 buildCounterCreative--; |
489 } | 518 } |
490 | 519 |
491 buildUnnamed16() { | 520 buildUnnamed596() { |
492 var o = new core.List<api.Creative>(); | 521 var o = new core.List<api.Creative>(); |
493 o.add(buildCreative()); | 522 o.add(buildCreative()); |
494 o.add(buildCreative()); | 523 o.add(buildCreative()); |
495 return o; | 524 return o; |
496 } | 525 } |
497 | 526 |
498 checkUnnamed16(core.List<api.Creative> o) { | 527 checkUnnamed596(core.List<api.Creative> o) { |
499 unittest.expect(o, unittest.hasLength(2)); | 528 unittest.expect(o, unittest.hasLength(2)); |
500 checkCreative(o[0]); | 529 checkCreative(o[0]); |
501 checkCreative(o[1]); | 530 checkCreative(o[1]); |
502 } | 531 } |
503 | 532 |
504 core.int buildCounterCreativesList = 0; | 533 core.int buildCounterCreativesList = 0; |
505 buildCreativesList() { | 534 buildCreativesList() { |
506 var o = new api.CreativesList(); | 535 var o = new api.CreativesList(); |
507 buildCounterCreativesList++; | 536 buildCounterCreativesList++; |
508 if (buildCounterCreativesList < 3) { | 537 if (buildCounterCreativesList < 3) { |
509 o.items = buildUnnamed16(); | 538 o.items = buildUnnamed596(); |
510 o.kind = "foo"; | 539 o.kind = "foo"; |
511 o.nextPageToken = "foo"; | 540 o.nextPageToken = "foo"; |
512 } | 541 } |
513 buildCounterCreativesList--; | 542 buildCounterCreativesList--; |
514 return o; | 543 return o; |
515 } | 544 } |
516 | 545 |
517 checkCreativesList(api.CreativesList o) { | 546 checkCreativesList(api.CreativesList o) { |
518 buildCounterCreativesList++; | 547 buildCounterCreativesList++; |
519 if (buildCounterCreativesList < 3) { | 548 if (buildCounterCreativesList < 3) { |
520 checkUnnamed16(o.items); | 549 checkUnnamed596(o.items); |
521 unittest.expect(o.kind, unittest.equals('foo')); | 550 unittest.expect(o.kind, unittest.equals('foo')); |
522 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 551 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
523 } | 552 } |
524 buildCounterCreativesList--; | 553 buildCounterCreativesList--; |
525 } | 554 } |
526 | 555 |
527 core.int buildCounterDirectDeal = 0; | 556 core.int buildCounterDirectDeal = 0; |
528 buildDirectDeal() { | 557 buildDirectDeal() { |
529 var o = new api.DirectDeal(); | 558 var o = new api.DirectDeal(); |
530 buildCounterDirectDeal++; | 559 buildCounterDirectDeal++; |
(...skipping 27 matching lines...) Expand all Loading... |
558 unittest.expect(o.kind, unittest.equals('foo')); | 587 unittest.expect(o.kind, unittest.equals('foo')); |
559 unittest.expect(o.name, unittest.equals('foo')); | 588 unittest.expect(o.name, unittest.equals('foo')); |
560 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); | 589 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); |
561 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); | 590 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); |
562 unittest.expect(o.sellerNetwork, unittest.equals('foo')); | 591 unittest.expect(o.sellerNetwork, unittest.equals('foo')); |
563 unittest.expect(o.startTime, unittest.equals('foo')); | 592 unittest.expect(o.startTime, unittest.equals('foo')); |
564 } | 593 } |
565 buildCounterDirectDeal--; | 594 buildCounterDirectDeal--; |
566 } | 595 } |
567 | 596 |
568 buildUnnamed17() { | 597 buildUnnamed597() { |
569 var o = new core.List<api.DirectDeal>(); | 598 var o = new core.List<api.DirectDeal>(); |
570 o.add(buildDirectDeal()); | 599 o.add(buildDirectDeal()); |
571 o.add(buildDirectDeal()); | 600 o.add(buildDirectDeal()); |
572 return o; | 601 return o; |
573 } | 602 } |
574 | 603 |
575 checkUnnamed17(core.List<api.DirectDeal> o) { | 604 checkUnnamed597(core.List<api.DirectDeal> o) { |
576 unittest.expect(o, unittest.hasLength(2)); | 605 unittest.expect(o, unittest.hasLength(2)); |
577 checkDirectDeal(o[0]); | 606 checkDirectDeal(o[0]); |
578 checkDirectDeal(o[1]); | 607 checkDirectDeal(o[1]); |
579 } | 608 } |
580 | 609 |
581 core.int buildCounterDirectDealsList = 0; | 610 core.int buildCounterDirectDealsList = 0; |
582 buildDirectDealsList() { | 611 buildDirectDealsList() { |
583 var o = new api.DirectDealsList(); | 612 var o = new api.DirectDealsList(); |
584 buildCounterDirectDealsList++; | 613 buildCounterDirectDealsList++; |
585 if (buildCounterDirectDealsList < 3) { | 614 if (buildCounterDirectDealsList < 3) { |
586 o.directDeals = buildUnnamed17(); | 615 o.directDeals = buildUnnamed597(); |
587 o.kind = "foo"; | 616 o.kind = "foo"; |
588 } | 617 } |
589 buildCounterDirectDealsList--; | 618 buildCounterDirectDealsList--; |
590 return o; | 619 return o; |
591 } | 620 } |
592 | 621 |
593 checkDirectDealsList(api.DirectDealsList o) { | 622 checkDirectDealsList(api.DirectDealsList o) { |
594 buildCounterDirectDealsList++; | 623 buildCounterDirectDealsList++; |
595 if (buildCounterDirectDealsList < 3) { | 624 if (buildCounterDirectDealsList < 3) { |
596 checkUnnamed17(o.directDeals); | 625 checkUnnamed597(o.directDeals); |
597 unittest.expect(o.kind, unittest.equals('foo')); | 626 unittest.expect(o.kind, unittest.equals('foo')); |
598 } | 627 } |
599 buildCounterDirectDealsList--; | 628 buildCounterDirectDealsList--; |
600 } | 629 } |
601 | 630 |
602 buildUnnamed18() { | 631 buildUnnamed598() { |
603 var o = new core.List<core.Object>(); | 632 var o = new core.List<core.Object>(); |
604 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 633 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
605 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 634 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
606 return o; | 635 return o; |
607 } | 636 } |
608 | 637 |
609 checkUnnamed18(core.List<core.Object> o) { | 638 checkUnnamed598(core.List<core.Object> o) { |
610 unittest.expect(o, unittest.hasLength(2)); | 639 unittest.expect(o, unittest.hasLength(2)); |
611 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')); | 640 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')); |
612 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')); | 641 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')); |
613 } | 642 } |
614 | 643 |
615 buildUnnamed19() { | 644 buildUnnamed599() { |
616 var o = new core.List<core.Object>(); | 645 var o = new core.List<core.Object>(); |
617 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 646 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
618 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 647 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
619 return o; | 648 return o; |
620 } | 649 } |
621 | 650 |
622 checkUnnamed19(core.List<core.Object> o) { | 651 checkUnnamed599(core.List<core.Object> o) { |
623 unittest.expect(o, unittest.hasLength(2)); | 652 unittest.expect(o, unittest.hasLength(2)); |
624 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')); | 653 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')); |
625 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')); | 654 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')); |
626 } | 655 } |
627 | 656 |
628 buildUnnamed20() { | 657 buildUnnamed600() { |
629 var o = new core.List<core.Object>(); | 658 var o = new core.List<core.Object>(); |
630 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 659 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
631 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 660 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
632 return o; | 661 return o; |
633 } | 662 } |
634 | 663 |
635 checkUnnamed20(core.List<core.Object> o) { | 664 checkUnnamed600(core.List<core.Object> o) { |
636 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
637 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')); | 666 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')); |
638 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')); | 667 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')); |
639 } | 668 } |
640 | 669 |
641 buildUnnamed21() { | 670 buildUnnamed601() { |
642 var o = new core.List<core.Object>(); | 671 var o = new core.List<core.Object>(); |
643 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 672 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
644 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 673 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
645 return o; | 674 return o; |
646 } | 675 } |
647 | 676 |
648 checkUnnamed21(core.List<core.Object> o) { | 677 checkUnnamed601(core.List<core.Object> o) { |
649 unittest.expect(o, unittest.hasLength(2)); | 678 unittest.expect(o, unittest.hasLength(2)); |
650 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')); | 679 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')); |
651 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')); | 680 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')); |
652 } | 681 } |
653 | 682 |
654 core.int buildCounterPerformanceReport = 0; | 683 core.int buildCounterPerformanceReport = 0; |
655 buildPerformanceReport() { | 684 buildPerformanceReport() { |
656 var o = new api.PerformanceReport(); | 685 var o = new api.PerformanceReport(); |
657 buildCounterPerformanceReport++; | 686 buildCounterPerformanceReport++; |
658 if (buildCounterPerformanceReport < 3) { | 687 if (buildCounterPerformanceReport < 3) { |
659 o.calloutStatusRate = buildUnnamed18(); | 688 o.calloutStatusRate = buildUnnamed598(); |
660 o.cookieMatcherStatusRate = buildUnnamed19(); | 689 o.cookieMatcherStatusRate = buildUnnamed599(); |
661 o.creativeStatusRate = buildUnnamed20(); | 690 o.creativeStatusRate = buildUnnamed600(); |
662 o.hostedMatchStatusRate = buildUnnamed21(); | 691 o.hostedMatchStatusRate = buildUnnamed601(); |
663 o.kind = "foo"; | 692 o.kind = "foo"; |
664 o.latency50thPercentile = 42.0; | 693 o.latency50thPercentile = 42.0; |
665 o.latency85thPercentile = 42.0; | 694 o.latency85thPercentile = 42.0; |
666 o.latency95thPercentile = 42.0; | 695 o.latency95thPercentile = 42.0; |
667 o.noQuotaInRegion = 42.0; | 696 o.noQuotaInRegion = 42.0; |
668 o.outOfQuota = 42.0; | 697 o.outOfQuota = 42.0; |
669 o.pixelMatchRequests = 42.0; | 698 o.pixelMatchRequests = 42.0; |
670 o.pixelMatchResponses = 42.0; | 699 o.pixelMatchResponses = 42.0; |
671 o.quotaConfiguredLimit = 42.0; | 700 o.quotaConfiguredLimit = 42.0; |
672 o.quotaThrottledLimit = 42.0; | 701 o.quotaThrottledLimit = 42.0; |
673 o.region = "foo"; | 702 o.region = "foo"; |
674 o.timestamp = "foo"; | 703 o.timestamp = "foo"; |
675 } | 704 } |
676 buildCounterPerformanceReport--; | 705 buildCounterPerformanceReport--; |
677 return o; | 706 return o; |
678 } | 707 } |
679 | 708 |
680 checkPerformanceReport(api.PerformanceReport o) { | 709 checkPerformanceReport(api.PerformanceReport o) { |
681 buildCounterPerformanceReport++; | 710 buildCounterPerformanceReport++; |
682 if (buildCounterPerformanceReport < 3) { | 711 if (buildCounterPerformanceReport < 3) { |
683 checkUnnamed18(o.calloutStatusRate); | 712 checkUnnamed598(o.calloutStatusRate); |
684 checkUnnamed19(o.cookieMatcherStatusRate); | 713 checkUnnamed599(o.cookieMatcherStatusRate); |
685 checkUnnamed20(o.creativeStatusRate); | 714 checkUnnamed600(o.creativeStatusRate); |
686 checkUnnamed21(o.hostedMatchStatusRate); | 715 checkUnnamed601(o.hostedMatchStatusRate); |
687 unittest.expect(o.kind, unittest.equals('foo')); | 716 unittest.expect(o.kind, unittest.equals('foo')); |
688 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); | 717 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); |
689 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); | 718 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); |
690 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); | 719 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); |
691 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); | 720 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); |
692 unittest.expect(o.outOfQuota, unittest.equals(42.0)); | 721 unittest.expect(o.outOfQuota, unittest.equals(42.0)); |
693 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); | 722 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); |
694 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); | 723 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); |
695 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); | 724 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); |
696 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); | 725 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); |
697 unittest.expect(o.region, unittest.equals('foo')); | 726 unittest.expect(o.region, unittest.equals('foo')); |
698 unittest.expect(o.timestamp, unittest.equals('foo')); | 727 unittest.expect(o.timestamp, unittest.equals('foo')); |
699 } | 728 } |
700 buildCounterPerformanceReport--; | 729 buildCounterPerformanceReport--; |
701 } | 730 } |
702 | 731 |
703 buildUnnamed22() { | 732 buildUnnamed602() { |
704 var o = new core.List<api.PerformanceReport>(); | 733 var o = new core.List<api.PerformanceReport>(); |
705 o.add(buildPerformanceReport()); | 734 o.add(buildPerformanceReport()); |
706 o.add(buildPerformanceReport()); | 735 o.add(buildPerformanceReport()); |
707 return o; | 736 return o; |
708 } | 737 } |
709 | 738 |
710 checkUnnamed22(core.List<api.PerformanceReport> o) { | 739 checkUnnamed602(core.List<api.PerformanceReport> o) { |
711 unittest.expect(o, unittest.hasLength(2)); | 740 unittest.expect(o, unittest.hasLength(2)); |
712 checkPerformanceReport(o[0]); | 741 checkPerformanceReport(o[0]); |
713 checkPerformanceReport(o[1]); | 742 checkPerformanceReport(o[1]); |
714 } | 743 } |
715 | 744 |
716 core.int buildCounterPerformanceReportList = 0; | 745 core.int buildCounterPerformanceReportList = 0; |
717 buildPerformanceReportList() { | 746 buildPerformanceReportList() { |
718 var o = new api.PerformanceReportList(); | 747 var o = new api.PerformanceReportList(); |
719 buildCounterPerformanceReportList++; | 748 buildCounterPerformanceReportList++; |
720 if (buildCounterPerformanceReportList < 3) { | 749 if (buildCounterPerformanceReportList < 3) { |
721 o.kind = "foo"; | 750 o.kind = "foo"; |
722 o.performanceReport = buildUnnamed22(); | 751 o.performanceReport = buildUnnamed602(); |
723 } | 752 } |
724 buildCounterPerformanceReportList--; | 753 buildCounterPerformanceReportList--; |
725 return o; | 754 return o; |
726 } | 755 } |
727 | 756 |
728 checkPerformanceReportList(api.PerformanceReportList o) { | 757 checkPerformanceReportList(api.PerformanceReportList o) { |
729 buildCounterPerformanceReportList++; | 758 buildCounterPerformanceReportList++; |
730 if (buildCounterPerformanceReportList < 3) { | 759 if (buildCounterPerformanceReportList < 3) { |
731 unittest.expect(o.kind, unittest.equals('foo')); | 760 unittest.expect(o.kind, unittest.equals('foo')); |
732 checkUnnamed22(o.performanceReport); | 761 checkUnnamed602(o.performanceReport); |
733 } | 762 } |
734 buildCounterPerformanceReportList--; | 763 buildCounterPerformanceReportList--; |
735 } | 764 } |
736 | 765 |
737 buildUnnamed23() { | 766 buildUnnamed603() { |
738 var o = new core.List<core.String>(); | 767 var o = new core.List<core.String>(); |
739 o.add("foo"); | 768 o.add("foo"); |
740 o.add("foo"); | 769 o.add("foo"); |
741 return o; | 770 return o; |
742 } | 771 } |
743 | 772 |
744 checkUnnamed23(core.List<core.String> o) { | 773 checkUnnamed603(core.List<core.String> o) { |
745 unittest.expect(o, unittest.hasLength(2)); | 774 unittest.expect(o, unittest.hasLength(2)); |
746 unittest.expect(o[0], unittest.equals('foo')); | 775 unittest.expect(o[0], unittest.equals('foo')); |
747 unittest.expect(o[1], unittest.equals('foo')); | 776 unittest.expect(o[1], unittest.equals('foo')); |
748 } | 777 } |
749 | 778 |
750 core.int buildCounterPretargetingConfigDimensions = 0; | 779 core.int buildCounterPretargetingConfigDimensions = 0; |
751 buildPretargetingConfigDimensions() { | 780 buildPretargetingConfigDimensions() { |
752 var o = new api.PretargetingConfigDimensions(); | 781 var o = new api.PretargetingConfigDimensions(); |
753 buildCounterPretargetingConfigDimensions++; | 782 buildCounterPretargetingConfigDimensions++; |
754 if (buildCounterPretargetingConfigDimensions < 3) { | 783 if (buildCounterPretargetingConfigDimensions < 3) { |
755 o.height = "foo"; | 784 o.height = "foo"; |
756 o.width = "foo"; | 785 o.width = "foo"; |
757 } | 786 } |
758 buildCounterPretargetingConfigDimensions--; | 787 buildCounterPretargetingConfigDimensions--; |
759 return o; | 788 return o; |
760 } | 789 } |
761 | 790 |
762 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { | 791 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { |
763 buildCounterPretargetingConfigDimensions++; | 792 buildCounterPretargetingConfigDimensions++; |
764 if (buildCounterPretargetingConfigDimensions < 3) { | 793 if (buildCounterPretargetingConfigDimensions < 3) { |
765 unittest.expect(o.height, unittest.equals('foo')); | 794 unittest.expect(o.height, unittest.equals('foo')); |
766 unittest.expect(o.width, unittest.equals('foo')); | 795 unittest.expect(o.width, unittest.equals('foo')); |
767 } | 796 } |
768 buildCounterPretargetingConfigDimensions--; | 797 buildCounterPretargetingConfigDimensions--; |
769 } | 798 } |
770 | 799 |
771 buildUnnamed24() { | 800 buildUnnamed604() { |
772 var o = new core.List<api.PretargetingConfigDimensions>(); | 801 var o = new core.List<api.PretargetingConfigDimensions>(); |
773 o.add(buildPretargetingConfigDimensions()); | 802 o.add(buildPretargetingConfigDimensions()); |
774 o.add(buildPretargetingConfigDimensions()); | 803 o.add(buildPretargetingConfigDimensions()); |
775 return o; | 804 return o; |
776 } | 805 } |
777 | 806 |
778 checkUnnamed24(core.List<api.PretargetingConfigDimensions> o) { | 807 checkUnnamed604(core.List<api.PretargetingConfigDimensions> o) { |
779 unittest.expect(o, unittest.hasLength(2)); | 808 unittest.expect(o, unittest.hasLength(2)); |
780 checkPretargetingConfigDimensions(o[0]); | 809 checkPretargetingConfigDimensions(o[0]); |
781 checkPretargetingConfigDimensions(o[1]); | 810 checkPretargetingConfigDimensions(o[1]); |
782 } | 811 } |
783 | 812 |
784 buildUnnamed25() { | 813 buildUnnamed605() { |
785 var o = new core.List<core.String>(); | 814 var o = new core.List<core.String>(); |
786 o.add("foo"); | 815 o.add("foo"); |
787 o.add("foo"); | 816 o.add("foo"); |
788 return o; | 817 return o; |
789 } | 818 } |
790 | 819 |
791 checkUnnamed25(core.List<core.String> o) { | 820 checkUnnamed605(core.List<core.String> o) { |
792 unittest.expect(o, unittest.hasLength(2)); | 821 unittest.expect(o, unittest.hasLength(2)); |
793 unittest.expect(o[0], unittest.equals('foo')); | 822 unittest.expect(o[0], unittest.equals('foo')); |
794 unittest.expect(o[1], unittest.equals('foo')); | 823 unittest.expect(o[1], unittest.equals('foo')); |
795 } | 824 } |
796 | 825 |
797 buildUnnamed26() { | 826 buildUnnamed606() { |
798 var o = new core.List<core.String>(); | 827 var o = new core.List<core.String>(); |
799 o.add("foo"); | 828 o.add("foo"); |
800 o.add("foo"); | 829 o.add("foo"); |
801 return o; | 830 return o; |
802 } | 831 } |
803 | 832 |
804 checkUnnamed26(core.List<core.String> o) { | 833 checkUnnamed606(core.List<core.String> o) { |
805 unittest.expect(o, unittest.hasLength(2)); | 834 unittest.expect(o, unittest.hasLength(2)); |
806 unittest.expect(o[0], unittest.equals('foo')); | 835 unittest.expect(o[0], unittest.equals('foo')); |
807 unittest.expect(o[1], unittest.equals('foo')); | 836 unittest.expect(o[1], unittest.equals('foo')); |
808 } | 837 } |
809 | 838 |
810 core.int buildCounterPretargetingConfigExcludedPlacements = 0; | 839 core.int buildCounterPretargetingConfigExcludedPlacements = 0; |
811 buildPretargetingConfigExcludedPlacements() { | 840 buildPretargetingConfigExcludedPlacements() { |
812 var o = new api.PretargetingConfigExcludedPlacements(); | 841 var o = new api.PretargetingConfigExcludedPlacements(); |
813 buildCounterPretargetingConfigExcludedPlacements++; | 842 buildCounterPretargetingConfigExcludedPlacements++; |
814 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 843 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
815 o.token = "foo"; | 844 o.token = "foo"; |
816 o.type = "foo"; | 845 o.type = "foo"; |
817 } | 846 } |
818 buildCounterPretargetingConfigExcludedPlacements--; | 847 buildCounterPretargetingConfigExcludedPlacements--; |
819 return o; | 848 return o; |
820 } | 849 } |
821 | 850 |
822 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { | 851 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { |
823 buildCounterPretargetingConfigExcludedPlacements++; | 852 buildCounterPretargetingConfigExcludedPlacements++; |
824 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 853 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
825 unittest.expect(o.token, unittest.equals('foo')); | 854 unittest.expect(o.token, unittest.equals('foo')); |
826 unittest.expect(o.type, unittest.equals('foo')); | 855 unittest.expect(o.type, unittest.equals('foo')); |
827 } | 856 } |
828 buildCounterPretargetingConfigExcludedPlacements--; | 857 buildCounterPretargetingConfigExcludedPlacements--; |
829 } | 858 } |
830 | 859 |
831 buildUnnamed27() { | 860 buildUnnamed607() { |
832 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); | 861 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); |
833 o.add(buildPretargetingConfigExcludedPlacements()); | 862 o.add(buildPretargetingConfigExcludedPlacements()); |
834 o.add(buildPretargetingConfigExcludedPlacements()); | 863 o.add(buildPretargetingConfigExcludedPlacements()); |
835 return o; | 864 return o; |
836 } | 865 } |
837 | 866 |
838 checkUnnamed27(core.List<api.PretargetingConfigExcludedPlacements> o) { | 867 checkUnnamed607(core.List<api.PretargetingConfigExcludedPlacements> o) { |
839 unittest.expect(o, unittest.hasLength(2)); | 868 unittest.expect(o, unittest.hasLength(2)); |
840 checkPretargetingConfigExcludedPlacements(o[0]); | 869 checkPretargetingConfigExcludedPlacements(o[0]); |
841 checkPretargetingConfigExcludedPlacements(o[1]); | 870 checkPretargetingConfigExcludedPlacements(o[1]); |
842 } | 871 } |
843 | 872 |
844 buildUnnamed28() { | 873 buildUnnamed608() { |
845 var o = new core.List<core.String>(); | 874 var o = new core.List<core.String>(); |
846 o.add("foo"); | 875 o.add("foo"); |
847 o.add("foo"); | 876 o.add("foo"); |
848 return o; | 877 return o; |
849 } | 878 } |
850 | 879 |
851 checkUnnamed28(core.List<core.String> o) { | 880 checkUnnamed608(core.List<core.String> o) { |
852 unittest.expect(o, unittest.hasLength(2)); | 881 unittest.expect(o, unittest.hasLength(2)); |
853 unittest.expect(o[0], unittest.equals('foo')); | 882 unittest.expect(o[0], unittest.equals('foo')); |
854 unittest.expect(o[1], unittest.equals('foo')); | 883 unittest.expect(o[1], unittest.equals('foo')); |
855 } | 884 } |
856 | 885 |
857 buildUnnamed29() { | 886 buildUnnamed609() { |
858 var o = new core.List<core.String>(); | 887 var o = new core.List<core.String>(); |
859 o.add("foo"); | 888 o.add("foo"); |
860 o.add("foo"); | 889 o.add("foo"); |
861 return o; | 890 return o; |
862 } | 891 } |
863 | 892 |
864 checkUnnamed29(core.List<core.String> o) { | 893 checkUnnamed609(core.List<core.String> o) { |
865 unittest.expect(o, unittest.hasLength(2)); | 894 unittest.expect(o, unittest.hasLength(2)); |
866 unittest.expect(o[0], unittest.equals('foo')); | 895 unittest.expect(o[0], unittest.equals('foo')); |
867 unittest.expect(o[1], unittest.equals('foo')); | 896 unittest.expect(o[1], unittest.equals('foo')); |
868 } | 897 } |
869 | 898 |
870 buildUnnamed30() { | 899 buildUnnamed610() { |
871 var o = new core.List<core.String>(); | 900 var o = new core.List<core.String>(); |
872 o.add("foo"); | 901 o.add("foo"); |
873 o.add("foo"); | 902 o.add("foo"); |
874 return o; | 903 return o; |
875 } | 904 } |
876 | 905 |
877 checkUnnamed30(core.List<core.String> o) { | 906 checkUnnamed610(core.List<core.String> o) { |
878 unittest.expect(o, unittest.hasLength(2)); | 907 unittest.expect(o, unittest.hasLength(2)); |
879 unittest.expect(o[0], unittest.equals('foo')); | 908 unittest.expect(o[0], unittest.equals('foo')); |
880 unittest.expect(o[1], unittest.equals('foo')); | 909 unittest.expect(o[1], unittest.equals('foo')); |
881 } | 910 } |
882 | 911 |
883 buildUnnamed31() { | 912 buildUnnamed611() { |
884 var o = new core.List<core.String>(); | 913 var o = new core.List<core.String>(); |
885 o.add("foo"); | 914 o.add("foo"); |
886 o.add("foo"); | 915 o.add("foo"); |
887 return o; | 916 return o; |
888 } | 917 } |
889 | 918 |
890 checkUnnamed31(core.List<core.String> o) { | 919 checkUnnamed611(core.List<core.String> o) { |
891 unittest.expect(o, unittest.hasLength(2)); | 920 unittest.expect(o, unittest.hasLength(2)); |
892 unittest.expect(o[0], unittest.equals('foo')); | 921 unittest.expect(o[0], unittest.equals('foo')); |
893 unittest.expect(o[1], unittest.equals('foo')); | 922 unittest.expect(o[1], unittest.equals('foo')); |
894 } | 923 } |
895 | 924 |
896 buildUnnamed32() { | 925 buildUnnamed612() { |
897 var o = new core.List<core.String>(); | 926 var o = new core.List<core.String>(); |
898 o.add("foo"); | 927 o.add("foo"); |
899 o.add("foo"); | 928 o.add("foo"); |
900 return o; | 929 return o; |
901 } | 930 } |
902 | 931 |
903 checkUnnamed32(core.List<core.String> o) { | 932 checkUnnamed612(core.List<core.String> o) { |
904 unittest.expect(o, unittest.hasLength(2)); | 933 unittest.expect(o, unittest.hasLength(2)); |
905 unittest.expect(o[0], unittest.equals('foo')); | 934 unittest.expect(o[0], unittest.equals('foo')); |
906 unittest.expect(o[1], unittest.equals('foo')); | 935 unittest.expect(o[1], unittest.equals('foo')); |
907 } | 936 } |
908 | 937 |
909 buildUnnamed33() { | 938 buildUnnamed613() { |
910 var o = new core.List<core.String>(); | 939 var o = new core.List<core.String>(); |
911 o.add("foo"); | 940 o.add("foo"); |
912 o.add("foo"); | 941 o.add("foo"); |
913 return o; | 942 return o; |
914 } | 943 } |
915 | 944 |
916 checkUnnamed33(core.List<core.String> o) { | 945 checkUnnamed613(core.List<core.String> o) { |
917 unittest.expect(o, unittest.hasLength(2)); | 946 unittest.expect(o, unittest.hasLength(2)); |
918 unittest.expect(o[0], unittest.equals('foo')); | 947 unittest.expect(o[0], unittest.equals('foo')); |
919 unittest.expect(o[1], unittest.equals('foo')); | 948 unittest.expect(o[1], unittest.equals('foo')); |
920 } | 949 } |
921 | 950 |
922 buildUnnamed34() { | 951 buildUnnamed614() { |
923 var o = new core.List<core.String>(); | 952 var o = new core.List<core.String>(); |
924 o.add("foo"); | 953 o.add("foo"); |
925 o.add("foo"); | 954 o.add("foo"); |
926 return o; | 955 return o; |
927 } | 956 } |
928 | 957 |
929 checkUnnamed34(core.List<core.String> o) { | 958 checkUnnamed614(core.List<core.String> o) { |
930 unittest.expect(o, unittest.hasLength(2)); | 959 unittest.expect(o, unittest.hasLength(2)); |
931 unittest.expect(o[0], unittest.equals('foo')); | 960 unittest.expect(o[0], unittest.equals('foo')); |
932 unittest.expect(o[1], unittest.equals('foo')); | 961 unittest.expect(o[1], unittest.equals('foo')); |
933 } | 962 } |
934 | 963 |
935 core.int buildCounterPretargetingConfigPlacements = 0; | 964 core.int buildCounterPretargetingConfigPlacements = 0; |
936 buildPretargetingConfigPlacements() { | 965 buildPretargetingConfigPlacements() { |
937 var o = new api.PretargetingConfigPlacements(); | 966 var o = new api.PretargetingConfigPlacements(); |
938 buildCounterPretargetingConfigPlacements++; | 967 buildCounterPretargetingConfigPlacements++; |
939 if (buildCounterPretargetingConfigPlacements < 3) { | 968 if (buildCounterPretargetingConfigPlacements < 3) { |
940 o.token = "foo"; | 969 o.token = "foo"; |
941 o.type = "foo"; | 970 o.type = "foo"; |
942 } | 971 } |
943 buildCounterPretargetingConfigPlacements--; | 972 buildCounterPretargetingConfigPlacements--; |
944 return o; | 973 return o; |
945 } | 974 } |
946 | 975 |
947 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { | 976 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { |
948 buildCounterPretargetingConfigPlacements++; | 977 buildCounterPretargetingConfigPlacements++; |
949 if (buildCounterPretargetingConfigPlacements < 3) { | 978 if (buildCounterPretargetingConfigPlacements < 3) { |
950 unittest.expect(o.token, unittest.equals('foo')); | 979 unittest.expect(o.token, unittest.equals('foo')); |
951 unittest.expect(o.type, unittest.equals('foo')); | 980 unittest.expect(o.type, unittest.equals('foo')); |
952 } | 981 } |
953 buildCounterPretargetingConfigPlacements--; | 982 buildCounterPretargetingConfigPlacements--; |
954 } | 983 } |
955 | 984 |
956 buildUnnamed35() { | 985 buildUnnamed615() { |
957 var o = new core.List<api.PretargetingConfigPlacements>(); | 986 var o = new core.List<api.PretargetingConfigPlacements>(); |
958 o.add(buildPretargetingConfigPlacements()); | 987 o.add(buildPretargetingConfigPlacements()); |
959 o.add(buildPretargetingConfigPlacements()); | 988 o.add(buildPretargetingConfigPlacements()); |
960 return o; | 989 return o; |
961 } | 990 } |
962 | 991 |
963 checkUnnamed35(core.List<api.PretargetingConfigPlacements> o) { | 992 checkUnnamed615(core.List<api.PretargetingConfigPlacements> o) { |
964 unittest.expect(o, unittest.hasLength(2)); | 993 unittest.expect(o, unittest.hasLength(2)); |
965 checkPretargetingConfigPlacements(o[0]); | 994 checkPretargetingConfigPlacements(o[0]); |
966 checkPretargetingConfigPlacements(o[1]); | 995 checkPretargetingConfigPlacements(o[1]); |
967 } | 996 } |
968 | 997 |
969 buildUnnamed36() { | 998 buildUnnamed616() { |
970 var o = new core.List<core.String>(); | 999 var o = new core.List<core.String>(); |
971 o.add("foo"); | 1000 o.add("foo"); |
972 o.add("foo"); | 1001 o.add("foo"); |
973 return o; | 1002 return o; |
974 } | 1003 } |
975 | 1004 |
976 checkUnnamed36(core.List<core.String> o) { | 1005 checkUnnamed616(core.List<core.String> o) { |
977 unittest.expect(o, unittest.hasLength(2)); | 1006 unittest.expect(o, unittest.hasLength(2)); |
978 unittest.expect(o[0], unittest.equals('foo')); | 1007 unittest.expect(o[0], unittest.equals('foo')); |
979 unittest.expect(o[1], unittest.equals('foo')); | 1008 unittest.expect(o[1], unittest.equals('foo')); |
980 } | 1009 } |
981 | 1010 |
982 buildUnnamed37() { | 1011 buildUnnamed617() { |
983 var o = new core.List<core.String>(); | 1012 var o = new core.List<core.String>(); |
984 o.add("foo"); | 1013 o.add("foo"); |
985 o.add("foo"); | 1014 o.add("foo"); |
986 return o; | 1015 return o; |
987 } | 1016 } |
988 | 1017 |
989 checkUnnamed37(core.List<core.String> o) { | 1018 checkUnnamed617(core.List<core.String> o) { |
990 unittest.expect(o, unittest.hasLength(2)); | 1019 unittest.expect(o, unittest.hasLength(2)); |
991 unittest.expect(o[0], unittest.equals('foo')); | 1020 unittest.expect(o[0], unittest.equals('foo')); |
992 unittest.expect(o[1], unittest.equals('foo')); | 1021 unittest.expect(o[1], unittest.equals('foo')); |
993 } | 1022 } |
994 | 1023 |
995 buildUnnamed38() { | 1024 buildUnnamed618() { |
996 var o = new core.List<core.String>(); | 1025 var o = new core.List<core.String>(); |
997 o.add("foo"); | 1026 o.add("foo"); |
998 o.add("foo"); | 1027 o.add("foo"); |
999 return o; | 1028 return o; |
1000 } | 1029 } |
1001 | 1030 |
1002 checkUnnamed38(core.List<core.String> o) { | 1031 checkUnnamed618(core.List<core.String> o) { |
1003 unittest.expect(o, unittest.hasLength(2)); | 1032 unittest.expect(o, unittest.hasLength(2)); |
1004 unittest.expect(o[0], unittest.equals('foo')); | 1033 unittest.expect(o[0], unittest.equals('foo')); |
1005 unittest.expect(o[1], unittest.equals('foo')); | 1034 unittest.expect(o[1], unittest.equals('foo')); |
1006 } | 1035 } |
1007 | 1036 |
1008 buildUnnamed39() { | 1037 buildUnnamed619() { |
1009 var o = new core.List<core.String>(); | 1038 var o = new core.List<core.String>(); |
1010 o.add("foo"); | 1039 o.add("foo"); |
1011 o.add("foo"); | 1040 o.add("foo"); |
1012 return o; | 1041 return o; |
1013 } | 1042 } |
1014 | 1043 |
1015 checkUnnamed39(core.List<core.String> o) { | 1044 checkUnnamed619(core.List<core.String> o) { |
1016 unittest.expect(o, unittest.hasLength(2)); | 1045 unittest.expect(o, unittest.hasLength(2)); |
1017 unittest.expect(o[0], unittest.equals('foo')); | 1046 unittest.expect(o[0], unittest.equals('foo')); |
1018 unittest.expect(o[1], unittest.equals('foo')); | 1047 unittest.expect(o[1], unittest.equals('foo')); |
1019 } | 1048 } |
1020 | 1049 |
1021 buildUnnamed40() { | 1050 buildUnnamed620() { |
1022 var o = new core.List<core.String>(); | 1051 var o = new core.List<core.String>(); |
1023 o.add("foo"); | 1052 o.add("foo"); |
1024 o.add("foo"); | 1053 o.add("foo"); |
1025 return o; | 1054 return o; |
1026 } | 1055 } |
1027 | 1056 |
1028 checkUnnamed40(core.List<core.String> o) { | 1057 checkUnnamed620(core.List<core.String> o) { |
1029 unittest.expect(o, unittest.hasLength(2)); | 1058 unittest.expect(o, unittest.hasLength(2)); |
1030 unittest.expect(o[0], unittest.equals('foo')); | 1059 unittest.expect(o[0], unittest.equals('foo')); |
1031 unittest.expect(o[1], unittest.equals('foo')); | 1060 unittest.expect(o[1], unittest.equals('foo')); |
1032 } | 1061 } |
1033 | 1062 |
1034 core.int buildCounterPretargetingConfig = 0; | 1063 core.int buildCounterPretargetingConfig = 0; |
1035 buildPretargetingConfig() { | 1064 buildPretargetingConfig() { |
1036 var o = new api.PretargetingConfig(); | 1065 var o = new api.PretargetingConfig(); |
1037 buildCounterPretargetingConfig++; | 1066 buildCounterPretargetingConfig++; |
1038 if (buildCounterPretargetingConfig < 3) { | 1067 if (buildCounterPretargetingConfig < 3) { |
1039 o.billingId = "foo"; | 1068 o.billingId = "foo"; |
1040 o.configId = "foo"; | 1069 o.configId = "foo"; |
1041 o.configName = "foo"; | 1070 o.configName = "foo"; |
1042 o.creativeType = buildUnnamed23(); | 1071 o.creativeType = buildUnnamed603(); |
1043 o.dimensions = buildUnnamed24(); | 1072 o.dimensions = buildUnnamed604(); |
1044 o.excludedContentLabels = buildUnnamed25(); | 1073 o.excludedContentLabels = buildUnnamed605(); |
1045 o.excludedGeoCriteriaIds = buildUnnamed26(); | 1074 o.excludedGeoCriteriaIds = buildUnnamed606(); |
1046 o.excludedPlacements = buildUnnamed27(); | 1075 o.excludedPlacements = buildUnnamed607(); |
1047 o.excludedUserLists = buildUnnamed28(); | 1076 o.excludedUserLists = buildUnnamed608(); |
1048 o.excludedVerticals = buildUnnamed29(); | 1077 o.excludedVerticals = buildUnnamed609(); |
1049 o.geoCriteriaIds = buildUnnamed30(); | 1078 o.geoCriteriaIds = buildUnnamed610(); |
1050 o.isActive = true; | 1079 o.isActive = true; |
1051 o.kind = "foo"; | 1080 o.kind = "foo"; |
1052 o.languages = buildUnnamed31(); | 1081 o.languages = buildUnnamed611(); |
1053 o.mobileCarriers = buildUnnamed32(); | 1082 o.mobileCarriers = buildUnnamed612(); |
1054 o.mobileDevices = buildUnnamed33(); | 1083 o.mobileDevices = buildUnnamed613(); |
1055 o.mobileOperatingSystemVersions = buildUnnamed34(); | 1084 o.mobileOperatingSystemVersions = buildUnnamed614(); |
1056 o.placements = buildUnnamed35(); | 1085 o.placements = buildUnnamed615(); |
1057 o.platforms = buildUnnamed36(); | 1086 o.platforms = buildUnnamed616(); |
1058 o.supportedCreativeAttributes = buildUnnamed37(); | 1087 o.supportedCreativeAttributes = buildUnnamed617(); |
1059 o.userLists = buildUnnamed38(); | 1088 o.userLists = buildUnnamed618(); |
1060 o.vendorTypes = buildUnnamed39(); | 1089 o.vendorTypes = buildUnnamed619(); |
1061 o.verticals = buildUnnamed40(); | 1090 o.verticals = buildUnnamed620(); |
1062 } | 1091 } |
1063 buildCounterPretargetingConfig--; | 1092 buildCounterPretargetingConfig--; |
1064 return o; | 1093 return o; |
1065 } | 1094 } |
1066 | 1095 |
1067 checkPretargetingConfig(api.PretargetingConfig o) { | 1096 checkPretargetingConfig(api.PretargetingConfig o) { |
1068 buildCounterPretargetingConfig++; | 1097 buildCounterPretargetingConfig++; |
1069 if (buildCounterPretargetingConfig < 3) { | 1098 if (buildCounterPretargetingConfig < 3) { |
1070 unittest.expect(o.billingId, unittest.equals('foo')); | 1099 unittest.expect(o.billingId, unittest.equals('foo')); |
1071 unittest.expect(o.configId, unittest.equals('foo')); | 1100 unittest.expect(o.configId, unittest.equals('foo')); |
1072 unittest.expect(o.configName, unittest.equals('foo')); | 1101 unittest.expect(o.configName, unittest.equals('foo')); |
1073 checkUnnamed23(o.creativeType); | 1102 checkUnnamed603(o.creativeType); |
1074 checkUnnamed24(o.dimensions); | 1103 checkUnnamed604(o.dimensions); |
1075 checkUnnamed25(o.excludedContentLabels); | 1104 checkUnnamed605(o.excludedContentLabels); |
1076 checkUnnamed26(o.excludedGeoCriteriaIds); | 1105 checkUnnamed606(o.excludedGeoCriteriaIds); |
1077 checkUnnamed27(o.excludedPlacements); | 1106 checkUnnamed607(o.excludedPlacements); |
1078 checkUnnamed28(o.excludedUserLists); | 1107 checkUnnamed608(o.excludedUserLists); |
1079 checkUnnamed29(o.excludedVerticals); | 1108 checkUnnamed609(o.excludedVerticals); |
1080 checkUnnamed30(o.geoCriteriaIds); | 1109 checkUnnamed610(o.geoCriteriaIds); |
1081 unittest.expect(o.isActive, unittest.isTrue); | 1110 unittest.expect(o.isActive, unittest.isTrue); |
1082 unittest.expect(o.kind, unittest.equals('foo')); | 1111 unittest.expect(o.kind, unittest.equals('foo')); |
1083 checkUnnamed31(o.languages); | 1112 checkUnnamed611(o.languages); |
1084 checkUnnamed32(o.mobileCarriers); | 1113 checkUnnamed612(o.mobileCarriers); |
1085 checkUnnamed33(o.mobileDevices); | 1114 checkUnnamed613(o.mobileDevices); |
1086 checkUnnamed34(o.mobileOperatingSystemVersions); | 1115 checkUnnamed614(o.mobileOperatingSystemVersions); |
1087 checkUnnamed35(o.placements); | 1116 checkUnnamed615(o.placements); |
1088 checkUnnamed36(o.platforms); | 1117 checkUnnamed616(o.platforms); |
1089 checkUnnamed37(o.supportedCreativeAttributes); | 1118 checkUnnamed617(o.supportedCreativeAttributes); |
1090 checkUnnamed38(o.userLists); | 1119 checkUnnamed618(o.userLists); |
1091 checkUnnamed39(o.vendorTypes); | 1120 checkUnnamed619(o.vendorTypes); |
1092 checkUnnamed40(o.verticals); | 1121 checkUnnamed620(o.verticals); |
1093 } | 1122 } |
1094 buildCounterPretargetingConfig--; | 1123 buildCounterPretargetingConfig--; |
1095 } | 1124 } |
1096 | 1125 |
1097 buildUnnamed41() { | 1126 buildUnnamed621() { |
1098 var o = new core.List<api.PretargetingConfig>(); | 1127 var o = new core.List<api.PretargetingConfig>(); |
1099 o.add(buildPretargetingConfig()); | 1128 o.add(buildPretargetingConfig()); |
1100 o.add(buildPretargetingConfig()); | 1129 o.add(buildPretargetingConfig()); |
1101 return o; | 1130 return o; |
1102 } | 1131 } |
1103 | 1132 |
1104 checkUnnamed41(core.List<api.PretargetingConfig> o) { | 1133 checkUnnamed621(core.List<api.PretargetingConfig> o) { |
1105 unittest.expect(o, unittest.hasLength(2)); | 1134 unittest.expect(o, unittest.hasLength(2)); |
1106 checkPretargetingConfig(o[0]); | 1135 checkPretargetingConfig(o[0]); |
1107 checkPretargetingConfig(o[1]); | 1136 checkPretargetingConfig(o[1]); |
1108 } | 1137 } |
1109 | 1138 |
1110 core.int buildCounterPretargetingConfigList = 0; | 1139 core.int buildCounterPretargetingConfigList = 0; |
1111 buildPretargetingConfigList() { | 1140 buildPretargetingConfigList() { |
1112 var o = new api.PretargetingConfigList(); | 1141 var o = new api.PretargetingConfigList(); |
1113 buildCounterPretargetingConfigList++; | 1142 buildCounterPretargetingConfigList++; |
1114 if (buildCounterPretargetingConfigList < 3) { | 1143 if (buildCounterPretargetingConfigList < 3) { |
1115 o.items = buildUnnamed41(); | 1144 o.items = buildUnnamed621(); |
1116 o.kind = "foo"; | 1145 o.kind = "foo"; |
1117 } | 1146 } |
1118 buildCounterPretargetingConfigList--; | 1147 buildCounterPretargetingConfigList--; |
1119 return o; | 1148 return o; |
1120 } | 1149 } |
1121 | 1150 |
1122 checkPretargetingConfigList(api.PretargetingConfigList o) { | 1151 checkPretargetingConfigList(api.PretargetingConfigList o) { |
1123 buildCounterPretargetingConfigList++; | 1152 buildCounterPretargetingConfigList++; |
1124 if (buildCounterPretargetingConfigList < 3) { | 1153 if (buildCounterPretargetingConfigList < 3) { |
1125 checkUnnamed41(o.items); | 1154 checkUnnamed621(o.items); |
1126 unittest.expect(o.kind, unittest.equals('foo')); | 1155 unittest.expect(o.kind, unittest.equals('foo')); |
1127 } | 1156 } |
1128 buildCounterPretargetingConfigList--; | 1157 buildCounterPretargetingConfigList--; |
1129 } | 1158 } |
1130 | 1159 |
1131 buildUnnamed42() { | 1160 buildUnnamed622() { |
1132 var o = new core.List<core.int>(); | 1161 var o = new core.List<core.int>(); |
1133 o.add(42); | 1162 o.add(42); |
1134 o.add(42); | 1163 o.add(42); |
1135 return o; | 1164 return o; |
1136 } | 1165 } |
1137 | 1166 |
1138 checkUnnamed42(core.List<core.int> o) { | 1167 checkUnnamed622(core.List<core.int> o) { |
1139 unittest.expect(o, unittest.hasLength(2)); | 1168 unittest.expect(o, unittest.hasLength(2)); |
1140 unittest.expect(o[0], unittest.equals(42)); | 1169 unittest.expect(o[0], unittest.equals(42)); |
1141 unittest.expect(o[1], unittest.equals(42)); | 1170 unittest.expect(o[1], unittest.equals(42)); |
1142 } | 1171 } |
1143 | 1172 |
1144 buildUnnamed43() { | 1173 buildUnnamed623() { |
1145 var o = new core.List<core.String>(); | 1174 var o = new core.List<core.String>(); |
1146 o.add("foo"); | 1175 o.add("foo"); |
1147 o.add("foo"); | 1176 o.add("foo"); |
1148 return o; | 1177 return o; |
1149 } | 1178 } |
1150 | 1179 |
1151 checkUnnamed43(core.List<core.String> o) { | 1180 checkUnnamed623(core.List<core.String> o) { |
1152 unittest.expect(o, unittest.hasLength(2)); | 1181 unittest.expect(o, unittest.hasLength(2)); |
1153 unittest.expect(o[0], unittest.equals('foo')); | 1182 unittest.expect(o[0], unittest.equals('foo')); |
1154 unittest.expect(o[1], unittest.equals('foo')); | 1183 unittest.expect(o[1], unittest.equals('foo')); |
1155 } | 1184 } |
1156 | 1185 |
1157 | 1186 |
1158 main() { | 1187 main() { |
1159 unittest.group("obj-schema-AccountBidderLocation", () { | 1188 unittest.group("obj-schema-AccountBidderLocation", () { |
1160 unittest.test("to-json--from-json", () { | 1189 unittest.test("to-json--from-json", () { |
1161 var o = buildAccountBidderLocation(); | 1190 var o = buildAccountBidderLocation(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 | 1223 |
1195 unittest.group("obj-schema-BillingInfoList", () { | 1224 unittest.group("obj-schema-BillingInfoList", () { |
1196 unittest.test("to-json--from-json", () { | 1225 unittest.test("to-json--from-json", () { |
1197 var o = buildBillingInfoList(); | 1226 var o = buildBillingInfoList(); |
1198 var od = new api.BillingInfoList.fromJson(o.toJson()); | 1227 var od = new api.BillingInfoList.fromJson(o.toJson()); |
1199 checkBillingInfoList(od); | 1228 checkBillingInfoList(od); |
1200 }); | 1229 }); |
1201 }); | 1230 }); |
1202 | 1231 |
1203 | 1232 |
| 1233 unittest.group("obj-schema-Budget", () { |
| 1234 unittest.test("to-json--from-json", () { |
| 1235 var o = buildBudget(); |
| 1236 var od = new api.Budget.fromJson(o.toJson()); |
| 1237 checkBudget(od); |
| 1238 }); |
| 1239 }); |
| 1240 |
| 1241 |
1204 unittest.group("obj-schema-CreativeCorrections", () { | 1242 unittest.group("obj-schema-CreativeCorrections", () { |
1205 unittest.test("to-json--from-json", () { | 1243 unittest.test("to-json--from-json", () { |
1206 var o = buildCreativeCorrections(); | 1244 var o = buildCreativeCorrections(); |
1207 var od = new api.CreativeCorrections.fromJson(o.toJson()); | 1245 var od = new api.CreativeCorrections.fromJson(o.toJson()); |
1208 checkCreativeCorrections(od); | 1246 checkCreativeCorrections(od); |
1209 }); | 1247 }); |
1210 }); | 1248 }); |
1211 | 1249 |
1212 | 1250 |
1213 unittest.group("obj-schema-CreativeDisapprovalReasons", () { | 1251 unittest.group("obj-schema-CreativeDisapprovalReasons", () { |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1631 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1669 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
1632 }), true); | 1670 }), true); |
1633 res.list().then(unittest.expectAsync(((api.BillingInfoList response) { | 1671 res.list().then(unittest.expectAsync(((api.BillingInfoList response) { |
1634 checkBillingInfoList(response); | 1672 checkBillingInfoList(response); |
1635 }))); | 1673 }))); |
1636 }); | 1674 }); |
1637 | 1675 |
1638 }); | 1676 }); |
1639 | 1677 |
1640 | 1678 |
| 1679 unittest.group("resource-BudgetResourceApi", () { |
| 1680 unittest.test("method--get", () { |
| 1681 |
| 1682 var mock = new common_test.HttpServerMock(); |
| 1683 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; |
| 1684 var arg_accountId = "foo"; |
| 1685 var arg_billingId = "foo"; |
| 1686 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1687 var path = (req.url).path; |
| 1688 var pathOffset = 0; |
| 1689 var index; |
| 1690 var subPart; |
| 1691 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1692 pathOffset += 1; |
| 1693 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1694 pathOffset += 21; |
| 1695 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); |
| 1696 pathOffset += 12; |
| 1697 index = path.indexOf("/", pathOffset); |
| 1698 unittest.expect(index >= 0, unittest.isTrue); |
| 1699 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1700 pathOffset = index; |
| 1701 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
| 1702 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1703 pathOffset += 1; |
| 1704 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 1705 pathOffset = path.length; |
| 1706 unittest.expect(subPart, unittest.equals("$arg_billingId")); |
| 1707 |
| 1708 var query = (req.url).query; |
| 1709 var queryOffset = 0; |
| 1710 var queryMap = {}; |
| 1711 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1712 parseBool(n) { |
| 1713 if (n == "true") return true; |
| 1714 if (n == "false") return false; |
| 1715 if (n == null) return null; |
| 1716 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1717 } |
| 1718 if (query.length > 0) { |
| 1719 for (var part in query.split("&")) { |
| 1720 var keyvalue = part.split("="); |
| 1721 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1722 } |
| 1723 } |
| 1724 |
| 1725 |
| 1726 var h = { |
| 1727 "content-type" : "application/json; charset=utf-8", |
| 1728 }; |
| 1729 var resp = convert.JSON.encode(buildBudget()); |
| 1730 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 1731 }), true); |
| 1732 res.get(arg_accountId, arg_billingId).then(unittest.expectAsync(((api.Budg
et response) { |
| 1733 checkBudget(response); |
| 1734 }))); |
| 1735 }); |
| 1736 |
| 1737 unittest.test("method--patch", () { |
| 1738 |
| 1739 var mock = new common_test.HttpServerMock(); |
| 1740 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; |
| 1741 var arg_request = buildBudget(); |
| 1742 var arg_accountId = "foo"; |
| 1743 var arg_billingId = "foo"; |
| 1744 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1745 var obj = new api.Budget.fromJson(json); |
| 1746 checkBudget(obj); |
| 1747 |
| 1748 var path = (req.url).path; |
| 1749 var pathOffset = 0; |
| 1750 var index; |
| 1751 var subPart; |
| 1752 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1753 pathOffset += 1; |
| 1754 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1755 pathOffset += 21; |
| 1756 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); |
| 1757 pathOffset += 12; |
| 1758 index = path.indexOf("/", pathOffset); |
| 1759 unittest.expect(index >= 0, unittest.isTrue); |
| 1760 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1761 pathOffset = index; |
| 1762 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
| 1763 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1764 pathOffset += 1; |
| 1765 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 1766 pathOffset = path.length; |
| 1767 unittest.expect(subPart, unittest.equals("$arg_billingId")); |
| 1768 |
| 1769 var query = (req.url).query; |
| 1770 var queryOffset = 0; |
| 1771 var queryMap = {}; |
| 1772 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1773 parseBool(n) { |
| 1774 if (n == "true") return true; |
| 1775 if (n == "false") return false; |
| 1776 if (n == null) return null; |
| 1777 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1778 } |
| 1779 if (query.length > 0) { |
| 1780 for (var part in query.split("&")) { |
| 1781 var keyvalue = part.split("="); |
| 1782 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1783 } |
| 1784 } |
| 1785 |
| 1786 |
| 1787 var h = { |
| 1788 "content-type" : "application/json; charset=utf-8", |
| 1789 }; |
| 1790 var resp = convert.JSON.encode(buildBudget()); |
| 1791 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 1792 }), true); |
| 1793 res.patch(arg_request, arg_accountId, arg_billingId).then(unittest.expectA
sync(((api.Budget response) { |
| 1794 checkBudget(response); |
| 1795 }))); |
| 1796 }); |
| 1797 |
| 1798 unittest.test("method--update", () { |
| 1799 |
| 1800 var mock = new common_test.HttpServerMock(); |
| 1801 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; |
| 1802 var arg_request = buildBudget(); |
| 1803 var arg_accountId = "foo"; |
| 1804 var arg_billingId = "foo"; |
| 1805 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1806 var obj = new api.Budget.fromJson(json); |
| 1807 checkBudget(obj); |
| 1808 |
| 1809 var path = (req.url).path; |
| 1810 var pathOffset = 0; |
| 1811 var index; |
| 1812 var subPart; |
| 1813 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1814 pathOffset += 1; |
| 1815 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1816 pathOffset += 21; |
| 1817 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); |
| 1818 pathOffset += 12; |
| 1819 index = path.indexOf("/", pathOffset); |
| 1820 unittest.expect(index >= 0, unittest.isTrue); |
| 1821 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1822 pathOffset = index; |
| 1823 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
| 1824 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1825 pathOffset += 1; |
| 1826 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 1827 pathOffset = path.length; |
| 1828 unittest.expect(subPart, unittest.equals("$arg_billingId")); |
| 1829 |
| 1830 var query = (req.url).query; |
| 1831 var queryOffset = 0; |
| 1832 var queryMap = {}; |
| 1833 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1834 parseBool(n) { |
| 1835 if (n == "true") return true; |
| 1836 if (n == "false") return false; |
| 1837 if (n == null) return null; |
| 1838 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1839 } |
| 1840 if (query.length > 0) { |
| 1841 for (var part in query.split("&")) { |
| 1842 var keyvalue = part.split("="); |
| 1843 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1844 } |
| 1845 } |
| 1846 |
| 1847 |
| 1848 var h = { |
| 1849 "content-type" : "application/json; charset=utf-8", |
| 1850 }; |
| 1851 var resp = convert.JSON.encode(buildBudget()); |
| 1852 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 1853 }), true); |
| 1854 res.update(arg_request, arg_accountId, arg_billingId).then(unittest.expect
Async(((api.Budget response) { |
| 1855 checkBudget(response); |
| 1856 }))); |
| 1857 }); |
| 1858 |
| 1859 }); |
| 1860 |
| 1861 |
1641 unittest.group("resource-CreativesResourceApi", () { | 1862 unittest.group("resource-CreativesResourceApi", () { |
1642 unittest.test("method--get", () { | 1863 unittest.test("method--get", () { |
1643 | 1864 |
1644 var mock = new common_test.HttpServerMock(); | 1865 var mock = new common_test.HttpServerMock(); |
1645 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1866 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1646 var arg_accountId = 42; | 1867 var arg_accountId = 42; |
1647 var arg_buyerCreativeId = "foo"; | 1868 var arg_buyerCreativeId = "foo"; |
1648 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1869 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1649 var path = (req.url).path; | 1870 var path = (req.url).path; |
1650 var pathOffset = 0; | 1871 var pathOffset = 0; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 }), true); | 1963 }), true); |
1743 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ | 1964 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ |
1744 checkCreative(response); | 1965 checkCreative(response); |
1745 }))); | 1966 }))); |
1746 }); | 1967 }); |
1747 | 1968 |
1748 unittest.test("method--list", () { | 1969 unittest.test("method--list", () { |
1749 | 1970 |
1750 var mock = new common_test.HttpServerMock(); | 1971 var mock = new common_test.HttpServerMock(); |
1751 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1972 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1752 var arg_accountId = buildUnnamed42(); | 1973 var arg_accountId = buildUnnamed622(); |
1753 var arg_buyerCreativeId = buildUnnamed43(); | 1974 var arg_buyerCreativeId = buildUnnamed623(); |
1754 var arg_maxResults = 42; | 1975 var arg_maxResults = 42; |
1755 var arg_pageToken = "foo"; | 1976 var arg_pageToken = "foo"; |
1756 var arg_statusFilter = "foo"; | 1977 var arg_statusFilter = "foo"; |
1757 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1758 var path = (req.url).path; | 1979 var path = (req.url).path; |
1759 var pathOffset = 0; | 1980 var pathOffset = 0; |
1760 var index; | 1981 var index; |
1761 var subPart; | 1982 var subPart; |
1762 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1983 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1763 pathOffset += 1; | 1984 pathOffset += 1; |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2295 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { | 2516 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { |
2296 checkPretargetingConfig(response); | 2517 checkPretargetingConfig(response); |
2297 }))); | 2518 }))); |
2298 }); | 2519 }); |
2299 | 2520 |
2300 }); | 2521 }); |
2301 | 2522 |
2302 | 2523 |
2303 } | 2524 } |
2304 | 2525 |
OLD | NEW |