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 buildUnnamed548() { | 42 buildUnnamed0() { |
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 checkUnnamed548(core.List<api.AccountBidderLocation> o) { | 49 checkUnnamed0(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 = buildUnnamed548(); | 60 o.bidderLocation = buildUnnamed0(); |
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.maximumTotalQps = 42; | 66 o.maximumTotalQps = 42; |
| 67 o.numberActiveCreatives = 42; |
66 } | 68 } |
67 buildCounterAccount--; | 69 buildCounterAccount--; |
68 return o; | 70 return o; |
69 } | 71 } |
70 | 72 |
71 checkAccount(api.Account o) { | 73 checkAccount(api.Account o) { |
72 buildCounterAccount++; | 74 buildCounterAccount++; |
73 if (buildCounterAccount < 3) { | 75 if (buildCounterAccount < 3) { |
74 checkUnnamed548(o.bidderLocation); | 76 checkUnnamed0(o.bidderLocation); |
75 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); | 77 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); |
76 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); | 78 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); |
77 unittest.expect(o.id, unittest.equals(42)); | 79 unittest.expect(o.id, unittest.equals(42)); |
78 unittest.expect(o.kind, unittest.equals('foo')); | 80 unittest.expect(o.kind, unittest.equals('foo')); |
| 81 unittest.expect(o.maximumActiveCreatives, unittest.equals(42)); |
79 unittest.expect(o.maximumTotalQps, unittest.equals(42)); | 82 unittest.expect(o.maximumTotalQps, unittest.equals(42)); |
| 83 unittest.expect(o.numberActiveCreatives, unittest.equals(42)); |
80 } | 84 } |
81 buildCounterAccount--; | 85 buildCounterAccount--; |
82 } | 86 } |
83 | 87 |
84 buildUnnamed549() { | 88 buildUnnamed1() { |
85 var o = new core.List<api.Account>(); | 89 var o = new core.List<api.Account>(); |
86 o.add(buildAccount()); | 90 o.add(buildAccount()); |
87 o.add(buildAccount()); | 91 o.add(buildAccount()); |
88 return o; | 92 return o; |
89 } | 93 } |
90 | 94 |
91 checkUnnamed549(core.List<api.Account> o) { | 95 checkUnnamed1(core.List<api.Account> o) { |
92 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
93 checkAccount(o[0]); | 97 checkAccount(o[0]); |
94 checkAccount(o[1]); | 98 checkAccount(o[1]); |
95 } | 99 } |
96 | 100 |
97 core.int buildCounterAccountsList = 0; | 101 core.int buildCounterAccountsList = 0; |
98 buildAccountsList() { | 102 buildAccountsList() { |
99 var o = new api.AccountsList(); | 103 var o = new api.AccountsList(); |
100 buildCounterAccountsList++; | 104 buildCounterAccountsList++; |
101 if (buildCounterAccountsList < 3) { | 105 if (buildCounterAccountsList < 3) { |
102 o.items = buildUnnamed549(); | 106 o.items = buildUnnamed1(); |
103 o.kind = "foo"; | 107 o.kind = "foo"; |
104 } | 108 } |
105 buildCounterAccountsList--; | 109 buildCounterAccountsList--; |
106 return o; | 110 return o; |
107 } | 111 } |
108 | 112 |
109 checkAccountsList(api.AccountsList o) { | 113 checkAccountsList(api.AccountsList o) { |
110 buildCounterAccountsList++; | 114 buildCounterAccountsList++; |
111 if (buildCounterAccountsList < 3) { | 115 if (buildCounterAccountsList < 3) { |
112 checkUnnamed549(o.items); | 116 checkUnnamed1(o.items); |
113 unittest.expect(o.kind, unittest.equals('foo')); | 117 unittest.expect(o.kind, unittest.equals('foo')); |
114 } | 118 } |
115 buildCounterAccountsList--; | 119 buildCounterAccountsList--; |
116 } | 120 } |
117 | 121 |
118 buildUnnamed550() { | 122 buildUnnamed2() { |
119 var o = new core.List<core.String>(); | 123 var o = new core.List<core.String>(); |
120 o.add("foo"); | 124 o.add("foo"); |
121 o.add("foo"); | 125 o.add("foo"); |
122 return o; | 126 return o; |
123 } | 127 } |
124 | 128 |
125 checkUnnamed550(core.List<core.String> o) { | 129 checkUnnamed2(core.List<core.String> o) { |
126 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
127 unittest.expect(o[0], unittest.equals('foo')); | 131 unittest.expect(o[0], unittest.equals('foo')); |
128 unittest.expect(o[1], unittest.equals('foo')); | 132 unittest.expect(o[1], unittest.equals('foo')); |
129 } | 133 } |
130 | 134 |
131 core.int buildCounterBillingInfo = 0; | 135 core.int buildCounterBillingInfo = 0; |
132 buildBillingInfo() { | 136 buildBillingInfo() { |
133 var o = new api.BillingInfo(); | 137 var o = new api.BillingInfo(); |
134 buildCounterBillingInfo++; | 138 buildCounterBillingInfo++; |
135 if (buildCounterBillingInfo < 3) { | 139 if (buildCounterBillingInfo < 3) { |
136 o.accountId = 42; | 140 o.accountId = 42; |
137 o.accountName = "foo"; | 141 o.accountName = "foo"; |
138 o.billingId = buildUnnamed550(); | 142 o.billingId = buildUnnamed2(); |
139 o.kind = "foo"; | 143 o.kind = "foo"; |
140 } | 144 } |
141 buildCounterBillingInfo--; | 145 buildCounterBillingInfo--; |
142 return o; | 146 return o; |
143 } | 147 } |
144 | 148 |
145 checkBillingInfo(api.BillingInfo o) { | 149 checkBillingInfo(api.BillingInfo o) { |
146 buildCounterBillingInfo++; | 150 buildCounterBillingInfo++; |
147 if (buildCounterBillingInfo < 3) { | 151 if (buildCounterBillingInfo < 3) { |
148 unittest.expect(o.accountId, unittest.equals(42)); | 152 unittest.expect(o.accountId, unittest.equals(42)); |
149 unittest.expect(o.accountName, unittest.equals('foo')); | 153 unittest.expect(o.accountName, unittest.equals('foo')); |
150 checkUnnamed550(o.billingId); | 154 checkUnnamed2(o.billingId); |
151 unittest.expect(o.kind, unittest.equals('foo')); | 155 unittest.expect(o.kind, unittest.equals('foo')); |
152 } | 156 } |
153 buildCounterBillingInfo--; | 157 buildCounterBillingInfo--; |
154 } | 158 } |
155 | 159 |
156 buildUnnamed551() { | 160 buildUnnamed3() { |
157 var o = new core.List<api.BillingInfo>(); | 161 var o = new core.List<api.BillingInfo>(); |
158 o.add(buildBillingInfo()); | 162 o.add(buildBillingInfo()); |
159 o.add(buildBillingInfo()); | 163 o.add(buildBillingInfo()); |
160 return o; | 164 return o; |
161 } | 165 } |
162 | 166 |
163 checkUnnamed551(core.List<api.BillingInfo> o) { | 167 checkUnnamed3(core.List<api.BillingInfo> o) { |
164 unittest.expect(o, unittest.hasLength(2)); | 168 unittest.expect(o, unittest.hasLength(2)); |
165 checkBillingInfo(o[0]); | 169 checkBillingInfo(o[0]); |
166 checkBillingInfo(o[1]); | 170 checkBillingInfo(o[1]); |
167 } | 171 } |
168 | 172 |
169 core.int buildCounterBillingInfoList = 0; | 173 core.int buildCounterBillingInfoList = 0; |
170 buildBillingInfoList() { | 174 buildBillingInfoList() { |
171 var o = new api.BillingInfoList(); | 175 var o = new api.BillingInfoList(); |
172 buildCounterBillingInfoList++; | 176 buildCounterBillingInfoList++; |
173 if (buildCounterBillingInfoList < 3) { | 177 if (buildCounterBillingInfoList < 3) { |
174 o.items = buildUnnamed551(); | 178 o.items = buildUnnamed3(); |
175 o.kind = "foo"; | 179 o.kind = "foo"; |
176 } | 180 } |
177 buildCounterBillingInfoList--; | 181 buildCounterBillingInfoList--; |
178 return o; | 182 return o; |
179 } | 183 } |
180 | 184 |
181 checkBillingInfoList(api.BillingInfoList o) { | 185 checkBillingInfoList(api.BillingInfoList o) { |
182 buildCounterBillingInfoList++; | 186 buildCounterBillingInfoList++; |
183 if (buildCounterBillingInfoList < 3) { | 187 if (buildCounterBillingInfoList < 3) { |
184 checkUnnamed551(o.items); | 188 checkUnnamed3(o.items); |
185 unittest.expect(o.kind, unittest.equals('foo')); | 189 unittest.expect(o.kind, unittest.equals('foo')); |
186 } | 190 } |
187 buildCounterBillingInfoList--; | 191 buildCounterBillingInfoList--; |
188 } | 192 } |
189 | 193 |
190 buildUnnamed552() { | 194 buildUnnamed4() { |
191 var o = new core.List<core.String>(); | 195 var o = new core.List<core.String>(); |
192 o.add("foo"); | 196 o.add("foo"); |
193 o.add("foo"); | 197 o.add("foo"); |
194 return o; | 198 return o; |
195 } | 199 } |
196 | 200 |
197 checkUnnamed552(core.List<core.String> o) { | 201 checkUnnamed4(core.List<core.String> o) { |
198 unittest.expect(o, unittest.hasLength(2)); | 202 unittest.expect(o, unittest.hasLength(2)); |
199 unittest.expect(o[0], unittest.equals('foo')); | 203 unittest.expect(o[0], unittest.equals('foo')); |
200 unittest.expect(o[1], unittest.equals('foo')); | 204 unittest.expect(o[1], unittest.equals('foo')); |
201 } | 205 } |
202 | 206 |
203 buildUnnamed553() { | 207 buildUnnamed5() { |
204 var o = new core.List<core.int>(); | 208 var o = new core.List<core.int>(); |
205 o.add(42); | 209 o.add(42); |
206 o.add(42); | 210 o.add(42); |
207 return o; | 211 return o; |
208 } | 212 } |
209 | 213 |
210 checkUnnamed553(core.List<core.int> o) { | 214 checkUnnamed5(core.List<core.int> o) { |
211 unittest.expect(o, unittest.hasLength(2)); | 215 unittest.expect(o, unittest.hasLength(2)); |
212 unittest.expect(o[0], unittest.equals(42)); | 216 unittest.expect(o[0], unittest.equals(42)); |
213 unittest.expect(o[1], unittest.equals(42)); | 217 unittest.expect(o[1], unittest.equals(42)); |
214 } | 218 } |
215 | 219 |
216 buildUnnamed554() { | 220 buildUnnamed6() { |
217 var o = new core.List<core.String>(); | 221 var o = new core.List<core.String>(); |
218 o.add("foo"); | 222 o.add("foo"); |
219 o.add("foo"); | 223 o.add("foo"); |
220 return o; | 224 return o; |
221 } | 225 } |
222 | 226 |
223 checkUnnamed554(core.List<core.String> o) { | 227 checkUnnamed6(core.List<core.String> o) { |
224 unittest.expect(o, unittest.hasLength(2)); | 228 unittest.expect(o, unittest.hasLength(2)); |
225 unittest.expect(o[0], unittest.equals('foo')); | 229 unittest.expect(o[0], unittest.equals('foo')); |
226 unittest.expect(o[1], unittest.equals('foo')); | 230 unittest.expect(o[1], unittest.equals('foo')); |
227 } | 231 } |
228 | 232 |
229 buildUnnamed555() { | 233 buildUnnamed7() { |
230 var o = new core.List<core.String>(); | 234 var o = new core.List<core.String>(); |
231 o.add("foo"); | 235 o.add("foo"); |
232 o.add("foo"); | 236 o.add("foo"); |
233 return o; | 237 return o; |
234 } | 238 } |
235 | 239 |
236 checkUnnamed555(core.List<core.String> o) { | 240 checkUnnamed7(core.List<core.String> o) { |
237 unittest.expect(o, unittest.hasLength(2)); | 241 unittest.expect(o, unittest.hasLength(2)); |
238 unittest.expect(o[0], unittest.equals('foo')); | 242 unittest.expect(o[0], unittest.equals('foo')); |
239 unittest.expect(o[1], unittest.equals('foo')); | 243 unittest.expect(o[1], unittest.equals('foo')); |
240 } | 244 } |
241 | 245 |
242 core.int buildCounterCreativeCorrections = 0; | 246 core.int buildCounterCreativeCorrections = 0; |
243 buildCreativeCorrections() { | 247 buildCreativeCorrections() { |
244 var o = new api.CreativeCorrections(); | 248 var o = new api.CreativeCorrections(); |
245 buildCounterCreativeCorrections++; | 249 buildCounterCreativeCorrections++; |
246 if (buildCounterCreativeCorrections < 3) { | 250 if (buildCounterCreativeCorrections < 3) { |
247 o.details = buildUnnamed555(); | 251 o.details = buildUnnamed7(); |
248 o.reason = "foo"; | 252 o.reason = "foo"; |
249 } | 253 } |
250 buildCounterCreativeCorrections--; | 254 buildCounterCreativeCorrections--; |
251 return o; | 255 return o; |
252 } | 256 } |
253 | 257 |
254 checkCreativeCorrections(api.CreativeCorrections o) { | 258 checkCreativeCorrections(api.CreativeCorrections o) { |
255 buildCounterCreativeCorrections++; | 259 buildCounterCreativeCorrections++; |
256 if (buildCounterCreativeCorrections < 3) { | 260 if (buildCounterCreativeCorrections < 3) { |
257 checkUnnamed555(o.details); | 261 checkUnnamed7(o.details); |
258 unittest.expect(o.reason, unittest.equals('foo')); | 262 unittest.expect(o.reason, unittest.equals('foo')); |
259 } | 263 } |
260 buildCounterCreativeCorrections--; | 264 buildCounterCreativeCorrections--; |
261 } | 265 } |
262 | 266 |
263 buildUnnamed556() { | 267 buildUnnamed8() { |
264 var o = new core.List<api.CreativeCorrections>(); | 268 var o = new core.List<api.CreativeCorrections>(); |
265 o.add(buildCreativeCorrections()); | 269 o.add(buildCreativeCorrections()); |
266 o.add(buildCreativeCorrections()); | 270 o.add(buildCreativeCorrections()); |
267 return o; | 271 return o; |
268 } | 272 } |
269 | 273 |
270 checkUnnamed556(core.List<api.CreativeCorrections> o) { | 274 checkUnnamed8(core.List<api.CreativeCorrections> o) { |
271 unittest.expect(o, unittest.hasLength(2)); | 275 unittest.expect(o, unittest.hasLength(2)); |
272 checkCreativeCorrections(o[0]); | 276 checkCreativeCorrections(o[0]); |
273 checkCreativeCorrections(o[1]); | 277 checkCreativeCorrections(o[1]); |
274 } | 278 } |
275 | 279 |
276 buildUnnamed557() { | 280 buildUnnamed9() { |
277 var o = new core.List<core.String>(); | 281 var o = new core.List<core.String>(); |
278 o.add("foo"); | 282 o.add("foo"); |
279 o.add("foo"); | 283 o.add("foo"); |
280 return o; | 284 return o; |
281 } | 285 } |
282 | 286 |
283 checkUnnamed557(core.List<core.String> o) { | 287 checkUnnamed9(core.List<core.String> o) { |
284 unittest.expect(o, unittest.hasLength(2)); | 288 unittest.expect(o, unittest.hasLength(2)); |
285 unittest.expect(o[0], unittest.equals('foo')); | 289 unittest.expect(o[0], unittest.equals('foo')); |
286 unittest.expect(o[1], unittest.equals('foo')); | 290 unittest.expect(o[1], unittest.equals('foo')); |
287 } | 291 } |
288 | 292 |
289 core.int buildCounterCreativeDisapprovalReasons = 0; | 293 core.int buildCounterCreativeDisapprovalReasons = 0; |
290 buildCreativeDisapprovalReasons() { | 294 buildCreativeDisapprovalReasons() { |
291 var o = new api.CreativeDisapprovalReasons(); | 295 var o = new api.CreativeDisapprovalReasons(); |
292 buildCounterCreativeDisapprovalReasons++; | 296 buildCounterCreativeDisapprovalReasons++; |
293 if (buildCounterCreativeDisapprovalReasons < 3) { | 297 if (buildCounterCreativeDisapprovalReasons < 3) { |
294 o.details = buildUnnamed557(); | 298 o.details = buildUnnamed9(); |
295 o.reason = "foo"; | 299 o.reason = "foo"; |
296 } | 300 } |
297 buildCounterCreativeDisapprovalReasons--; | 301 buildCounterCreativeDisapprovalReasons--; |
298 return o; | 302 return o; |
299 } | 303 } |
300 | 304 |
301 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { | 305 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { |
302 buildCounterCreativeDisapprovalReasons++; | 306 buildCounterCreativeDisapprovalReasons++; |
303 if (buildCounterCreativeDisapprovalReasons < 3) { | 307 if (buildCounterCreativeDisapprovalReasons < 3) { |
304 checkUnnamed557(o.details); | 308 checkUnnamed9(o.details); |
305 unittest.expect(o.reason, unittest.equals('foo')); | 309 unittest.expect(o.reason, unittest.equals('foo')); |
306 } | 310 } |
307 buildCounterCreativeDisapprovalReasons--; | 311 buildCounterCreativeDisapprovalReasons--; |
308 } | 312 } |
309 | 313 |
310 buildUnnamed558() { | 314 buildUnnamed10() { |
311 var o = new core.List<api.CreativeDisapprovalReasons>(); | 315 var o = new core.List<api.CreativeDisapprovalReasons>(); |
312 o.add(buildCreativeDisapprovalReasons()); | 316 o.add(buildCreativeDisapprovalReasons()); |
313 o.add(buildCreativeDisapprovalReasons()); | 317 o.add(buildCreativeDisapprovalReasons()); |
314 return o; | 318 return o; |
315 } | 319 } |
316 | 320 |
317 checkUnnamed558(core.List<api.CreativeDisapprovalReasons> o) { | 321 checkUnnamed10(core.List<api.CreativeDisapprovalReasons> o) { |
318 unittest.expect(o, unittest.hasLength(2)); | 322 unittest.expect(o, unittest.hasLength(2)); |
319 checkCreativeDisapprovalReasons(o[0]); | 323 checkCreativeDisapprovalReasons(o[0]); |
320 checkCreativeDisapprovalReasons(o[1]); | 324 checkCreativeDisapprovalReasons(o[1]); |
321 } | 325 } |
322 | 326 |
323 core.int buildCounterCreativeFilteringReasonsReasons = 0; | 327 core.int buildCounterCreativeFilteringReasonsReasons = 0; |
324 buildCreativeFilteringReasonsReasons() { | 328 buildCreativeFilteringReasonsReasons() { |
325 var o = new api.CreativeFilteringReasonsReasons(); | 329 var o = new api.CreativeFilteringReasonsReasons(); |
326 buildCounterCreativeFilteringReasonsReasons++; | 330 buildCounterCreativeFilteringReasonsReasons++; |
327 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 331 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
328 o.filteringCount = "foo"; | 332 o.filteringCount = "foo"; |
329 o.filteringStatus = 42; | 333 o.filteringStatus = 42; |
330 } | 334 } |
331 buildCounterCreativeFilteringReasonsReasons--; | 335 buildCounterCreativeFilteringReasonsReasons--; |
332 return o; | 336 return o; |
333 } | 337 } |
334 | 338 |
335 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { | 339 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { |
336 buildCounterCreativeFilteringReasonsReasons++; | 340 buildCounterCreativeFilteringReasonsReasons++; |
337 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 341 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
338 unittest.expect(o.filteringCount, unittest.equals('foo')); | 342 unittest.expect(o.filteringCount, unittest.equals('foo')); |
339 unittest.expect(o.filteringStatus, unittest.equals(42)); | 343 unittest.expect(o.filteringStatus, unittest.equals(42)); |
340 } | 344 } |
341 buildCounterCreativeFilteringReasonsReasons--; | 345 buildCounterCreativeFilteringReasonsReasons--; |
342 } | 346 } |
343 | 347 |
344 buildUnnamed559() { | 348 buildUnnamed11() { |
345 var o = new core.List<api.CreativeFilteringReasonsReasons>(); | 349 var o = new core.List<api.CreativeFilteringReasonsReasons>(); |
346 o.add(buildCreativeFilteringReasonsReasons()); | 350 o.add(buildCreativeFilteringReasonsReasons()); |
347 o.add(buildCreativeFilteringReasonsReasons()); | 351 o.add(buildCreativeFilteringReasonsReasons()); |
348 return o; | 352 return o; |
349 } | 353 } |
350 | 354 |
351 checkUnnamed559(core.List<api.CreativeFilteringReasonsReasons> o) { | 355 checkUnnamed11(core.List<api.CreativeFilteringReasonsReasons> o) { |
352 unittest.expect(o, unittest.hasLength(2)); | 356 unittest.expect(o, unittest.hasLength(2)); |
353 checkCreativeFilteringReasonsReasons(o[0]); | 357 checkCreativeFilteringReasonsReasons(o[0]); |
354 checkCreativeFilteringReasonsReasons(o[1]); | 358 checkCreativeFilteringReasonsReasons(o[1]); |
355 } | 359 } |
356 | 360 |
357 core.int buildCounterCreativeFilteringReasons = 0; | 361 core.int buildCounterCreativeFilteringReasons = 0; |
358 buildCreativeFilteringReasons() { | 362 buildCreativeFilteringReasons() { |
359 var o = new api.CreativeFilteringReasons(); | 363 var o = new api.CreativeFilteringReasons(); |
360 buildCounterCreativeFilteringReasons++; | 364 buildCounterCreativeFilteringReasons++; |
361 if (buildCounterCreativeFilteringReasons < 3) { | 365 if (buildCounterCreativeFilteringReasons < 3) { |
362 o.date = "foo"; | 366 o.date = "foo"; |
363 o.reasons = buildUnnamed559(); | 367 o.reasons = buildUnnamed11(); |
364 } | 368 } |
365 buildCounterCreativeFilteringReasons--; | 369 buildCounterCreativeFilteringReasons--; |
366 return o; | 370 return o; |
367 } | 371 } |
368 | 372 |
369 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { | 373 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { |
370 buildCounterCreativeFilteringReasons++; | 374 buildCounterCreativeFilteringReasons++; |
371 if (buildCounterCreativeFilteringReasons < 3) { | 375 if (buildCounterCreativeFilteringReasons < 3) { |
372 unittest.expect(o.date, unittest.equals('foo')); | 376 unittest.expect(o.date, unittest.equals('foo')); |
373 checkUnnamed559(o.reasons); | 377 checkUnnamed11(o.reasons); |
374 } | 378 } |
375 buildCounterCreativeFilteringReasons--; | 379 buildCounterCreativeFilteringReasons--; |
376 } | 380 } |
377 | 381 |
378 buildUnnamed560() { | 382 buildUnnamed12() { |
379 var o = new core.List<core.int>(); | 383 var o = new core.List<core.int>(); |
380 o.add(42); | 384 o.add(42); |
381 o.add(42); | 385 o.add(42); |
382 return o; | 386 return o; |
383 } | 387 } |
384 | 388 |
385 checkUnnamed560(core.List<core.int> o) { | 389 checkUnnamed12(core.List<core.int> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 390 unittest.expect(o, unittest.hasLength(2)); |
387 unittest.expect(o[0], unittest.equals(42)); | 391 unittest.expect(o[0], unittest.equals(42)); |
388 unittest.expect(o[1], unittest.equals(42)); | 392 unittest.expect(o[1], unittest.equals(42)); |
389 } | 393 } |
390 | 394 |
391 buildUnnamed561() { | 395 buildUnnamed13() { |
392 var o = new core.List<core.int>(); | 396 var o = new core.List<core.int>(); |
393 o.add(42); | 397 o.add(42); |
394 o.add(42); | 398 o.add(42); |
395 return o; | 399 return o; |
396 } | 400 } |
397 | 401 |
398 checkUnnamed561(core.List<core.int> o) { | 402 checkUnnamed13(core.List<core.int> o) { |
399 unittest.expect(o, unittest.hasLength(2)); | 403 unittest.expect(o, unittest.hasLength(2)); |
400 unittest.expect(o[0], unittest.equals(42)); | 404 unittest.expect(o[0], unittest.equals(42)); |
401 unittest.expect(o[1], unittest.equals(42)); | 405 unittest.expect(o[1], unittest.equals(42)); |
402 } | 406 } |
403 | 407 |
404 buildUnnamed562() { | 408 buildUnnamed14() { |
405 var o = new core.List<core.int>(); | 409 var o = new core.List<core.int>(); |
406 o.add(42); | 410 o.add(42); |
407 o.add(42); | 411 o.add(42); |
408 return o; | 412 return o; |
409 } | 413 } |
410 | 414 |
411 checkUnnamed562(core.List<core.int> o) { | 415 checkUnnamed14(core.List<core.int> o) { |
412 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
413 unittest.expect(o[0], unittest.equals(42)); | 417 unittest.expect(o[0], unittest.equals(42)); |
414 unittest.expect(o[1], unittest.equals(42)); | 418 unittest.expect(o[1], unittest.equals(42)); |
415 } | 419 } |
416 | 420 |
417 buildUnnamed563() { | 421 buildUnnamed15() { |
418 var o = new core.List<core.int>(); | 422 var o = new core.List<core.int>(); |
419 o.add(42); | 423 o.add(42); |
420 o.add(42); | 424 o.add(42); |
421 return o; | 425 return o; |
422 } | 426 } |
423 | 427 |
424 checkUnnamed563(core.List<core.int> o) { | 428 checkUnnamed15(core.List<core.int> o) { |
425 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
426 unittest.expect(o[0], unittest.equals(42)); | 430 unittest.expect(o[0], unittest.equals(42)); |
427 unittest.expect(o[1], unittest.equals(42)); | 431 unittest.expect(o[1], unittest.equals(42)); |
428 } | 432 } |
429 | 433 |
430 core.int buildCounterCreative = 0; | 434 core.int buildCounterCreative = 0; |
431 buildCreative() { | 435 buildCreative() { |
432 var o = new api.Creative(); | 436 var o = new api.Creative(); |
433 buildCounterCreative++; | 437 buildCounterCreative++; |
434 if (buildCounterCreative < 3) { | 438 if (buildCounterCreative < 3) { |
435 o.HTMLSnippet = "foo"; | 439 o.HTMLSnippet = "foo"; |
436 o.accountId = 42; | 440 o.accountId = 42; |
437 o.advertiserId = buildUnnamed552(); | 441 o.advertiserId = buildUnnamed4(); |
438 o.advertiserName = "foo"; | 442 o.advertiserName = "foo"; |
439 o.agencyId = "foo"; | 443 o.agencyId = "foo"; |
440 o.attribute = buildUnnamed553(); | 444 o.attribute = buildUnnamed5(); |
441 o.buyerCreativeId = "foo"; | 445 o.buyerCreativeId = "foo"; |
442 o.clickThroughUrl = buildUnnamed554(); | 446 o.clickThroughUrl = buildUnnamed6(); |
443 o.corrections = buildUnnamed556(); | 447 o.corrections = buildUnnamed8(); |
444 o.disapprovalReasons = buildUnnamed558(); | 448 o.disapprovalReasons = buildUnnamed10(); |
445 o.filteringReasons = buildCreativeFilteringReasons(); | 449 o.filteringReasons = buildCreativeFilteringReasons(); |
446 o.height = 42; | 450 o.height = 42; |
447 o.kind = "foo"; | 451 o.kind = "foo"; |
448 o.productCategories = buildUnnamed560(); | 452 o.productCategories = buildUnnamed12(); |
449 o.restrictedCategories = buildUnnamed561(); | 453 o.restrictedCategories = buildUnnamed13(); |
450 o.sensitiveCategories = buildUnnamed562(); | 454 o.sensitiveCategories = buildUnnamed14(); |
451 o.status = "foo"; | 455 o.status = "foo"; |
452 o.vendorType = buildUnnamed563(); | 456 o.vendorType = buildUnnamed15(); |
453 o.videoURL = "foo"; | 457 o.videoURL = "foo"; |
454 o.width = 42; | 458 o.width = 42; |
455 } | 459 } |
456 buildCounterCreative--; | 460 buildCounterCreative--; |
457 return o; | 461 return o; |
458 } | 462 } |
459 | 463 |
460 checkCreative(api.Creative o) { | 464 checkCreative(api.Creative o) { |
461 buildCounterCreative++; | 465 buildCounterCreative++; |
462 if (buildCounterCreative < 3) { | 466 if (buildCounterCreative < 3) { |
463 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); | 467 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); |
464 unittest.expect(o.accountId, unittest.equals(42)); | 468 unittest.expect(o.accountId, unittest.equals(42)); |
465 checkUnnamed552(o.advertiserId); | 469 checkUnnamed4(o.advertiserId); |
466 unittest.expect(o.advertiserName, unittest.equals('foo')); | 470 unittest.expect(o.advertiserName, unittest.equals('foo')); |
467 unittest.expect(o.agencyId, unittest.equals('foo')); | 471 unittest.expect(o.agencyId, unittest.equals('foo')); |
468 checkUnnamed553(o.attribute); | 472 checkUnnamed5(o.attribute); |
469 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); | 473 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); |
470 checkUnnamed554(o.clickThroughUrl); | 474 checkUnnamed6(o.clickThroughUrl); |
471 checkUnnamed556(o.corrections); | 475 checkUnnamed8(o.corrections); |
472 checkUnnamed558(o.disapprovalReasons); | 476 checkUnnamed10(o.disapprovalReasons); |
473 checkCreativeFilteringReasons(o.filteringReasons); | 477 checkCreativeFilteringReasons(o.filteringReasons); |
474 unittest.expect(o.height, unittest.equals(42)); | 478 unittest.expect(o.height, unittest.equals(42)); |
475 unittest.expect(o.kind, unittest.equals('foo')); | 479 unittest.expect(o.kind, unittest.equals('foo')); |
476 checkUnnamed560(o.productCategories); | 480 checkUnnamed12(o.productCategories); |
477 checkUnnamed561(o.restrictedCategories); | 481 checkUnnamed13(o.restrictedCategories); |
478 checkUnnamed562(o.sensitiveCategories); | 482 checkUnnamed14(o.sensitiveCategories); |
479 unittest.expect(o.status, unittest.equals('foo')); | 483 unittest.expect(o.status, unittest.equals('foo')); |
480 checkUnnamed563(o.vendorType); | 484 checkUnnamed15(o.vendorType); |
481 unittest.expect(o.videoURL, unittest.equals('foo')); | 485 unittest.expect(o.videoURL, unittest.equals('foo')); |
482 unittest.expect(o.width, unittest.equals(42)); | 486 unittest.expect(o.width, unittest.equals(42)); |
483 } | 487 } |
484 buildCounterCreative--; | 488 buildCounterCreative--; |
485 } | 489 } |
486 | 490 |
487 buildUnnamed564() { | 491 buildUnnamed16() { |
488 var o = new core.List<api.Creative>(); | 492 var o = new core.List<api.Creative>(); |
489 o.add(buildCreative()); | 493 o.add(buildCreative()); |
490 o.add(buildCreative()); | 494 o.add(buildCreative()); |
491 return o; | 495 return o; |
492 } | 496 } |
493 | 497 |
494 checkUnnamed564(core.List<api.Creative> o) { | 498 checkUnnamed16(core.List<api.Creative> o) { |
495 unittest.expect(o, unittest.hasLength(2)); | 499 unittest.expect(o, unittest.hasLength(2)); |
496 checkCreative(o[0]); | 500 checkCreative(o[0]); |
497 checkCreative(o[1]); | 501 checkCreative(o[1]); |
498 } | 502 } |
499 | 503 |
500 core.int buildCounterCreativesList = 0; | 504 core.int buildCounterCreativesList = 0; |
501 buildCreativesList() { | 505 buildCreativesList() { |
502 var o = new api.CreativesList(); | 506 var o = new api.CreativesList(); |
503 buildCounterCreativesList++; | 507 buildCounterCreativesList++; |
504 if (buildCounterCreativesList < 3) { | 508 if (buildCounterCreativesList < 3) { |
505 o.items = buildUnnamed564(); | 509 o.items = buildUnnamed16(); |
506 o.kind = "foo"; | 510 o.kind = "foo"; |
507 o.nextPageToken = "foo"; | 511 o.nextPageToken = "foo"; |
508 } | 512 } |
509 buildCounterCreativesList--; | 513 buildCounterCreativesList--; |
510 return o; | 514 return o; |
511 } | 515 } |
512 | 516 |
513 checkCreativesList(api.CreativesList o) { | 517 checkCreativesList(api.CreativesList o) { |
514 buildCounterCreativesList++; | 518 buildCounterCreativesList++; |
515 if (buildCounterCreativesList < 3) { | 519 if (buildCounterCreativesList < 3) { |
516 checkUnnamed564(o.items); | 520 checkUnnamed16(o.items); |
517 unittest.expect(o.kind, unittest.equals('foo')); | 521 unittest.expect(o.kind, unittest.equals('foo')); |
518 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 522 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
519 } | 523 } |
520 buildCounterCreativesList--; | 524 buildCounterCreativesList--; |
521 } | 525 } |
522 | 526 |
523 core.int buildCounterDirectDeal = 0; | 527 core.int buildCounterDirectDeal = 0; |
524 buildDirectDeal() { | 528 buildDirectDeal() { |
525 var o = new api.DirectDeal(); | 529 var o = new api.DirectDeal(); |
526 buildCounterDirectDeal++; | 530 buildCounterDirectDeal++; |
(...skipping 27 matching lines...) Expand all Loading... |
554 unittest.expect(o.kind, unittest.equals('foo')); | 558 unittest.expect(o.kind, unittest.equals('foo')); |
555 unittest.expect(o.name, unittest.equals('foo')); | 559 unittest.expect(o.name, unittest.equals('foo')); |
556 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); | 560 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); |
557 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); | 561 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); |
558 unittest.expect(o.sellerNetwork, unittest.equals('foo')); | 562 unittest.expect(o.sellerNetwork, unittest.equals('foo')); |
559 unittest.expect(o.startTime, unittest.equals('foo')); | 563 unittest.expect(o.startTime, unittest.equals('foo')); |
560 } | 564 } |
561 buildCounterDirectDeal--; | 565 buildCounterDirectDeal--; |
562 } | 566 } |
563 | 567 |
564 buildUnnamed565() { | 568 buildUnnamed17() { |
565 var o = new core.List<api.DirectDeal>(); | 569 var o = new core.List<api.DirectDeal>(); |
566 o.add(buildDirectDeal()); | 570 o.add(buildDirectDeal()); |
567 o.add(buildDirectDeal()); | 571 o.add(buildDirectDeal()); |
568 return o; | 572 return o; |
569 } | 573 } |
570 | 574 |
571 checkUnnamed565(core.List<api.DirectDeal> o) { | 575 checkUnnamed17(core.List<api.DirectDeal> o) { |
572 unittest.expect(o, unittest.hasLength(2)); | 576 unittest.expect(o, unittest.hasLength(2)); |
573 checkDirectDeal(o[0]); | 577 checkDirectDeal(o[0]); |
574 checkDirectDeal(o[1]); | 578 checkDirectDeal(o[1]); |
575 } | 579 } |
576 | 580 |
577 core.int buildCounterDirectDealsList = 0; | 581 core.int buildCounterDirectDealsList = 0; |
578 buildDirectDealsList() { | 582 buildDirectDealsList() { |
579 var o = new api.DirectDealsList(); | 583 var o = new api.DirectDealsList(); |
580 buildCounterDirectDealsList++; | 584 buildCounterDirectDealsList++; |
581 if (buildCounterDirectDealsList < 3) { | 585 if (buildCounterDirectDealsList < 3) { |
582 o.directDeals = buildUnnamed565(); | 586 o.directDeals = buildUnnamed17(); |
583 o.kind = "foo"; | 587 o.kind = "foo"; |
584 } | 588 } |
585 buildCounterDirectDealsList--; | 589 buildCounterDirectDealsList--; |
586 return o; | 590 return o; |
587 } | 591 } |
588 | 592 |
589 checkDirectDealsList(api.DirectDealsList o) { | 593 checkDirectDealsList(api.DirectDealsList o) { |
590 buildCounterDirectDealsList++; | 594 buildCounterDirectDealsList++; |
591 if (buildCounterDirectDealsList < 3) { | 595 if (buildCounterDirectDealsList < 3) { |
592 checkUnnamed565(o.directDeals); | 596 checkUnnamed17(o.directDeals); |
593 unittest.expect(o.kind, unittest.equals('foo')); | 597 unittest.expect(o.kind, unittest.equals('foo')); |
594 } | 598 } |
595 buildCounterDirectDealsList--; | 599 buildCounterDirectDealsList--; |
596 } | 600 } |
597 | 601 |
598 buildUnnamed566() { | 602 buildUnnamed18() { |
599 var o = new core.List<core.Object>(); | 603 var o = new core.List<core.Object>(); |
600 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 604 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
601 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 605 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
602 return o; | 606 return o; |
603 } | 607 } |
604 | 608 |
605 checkUnnamed566(core.List<core.Object> o) { | 609 checkUnnamed18(core.List<core.Object> o) { |
606 unittest.expect(o, unittest.hasLength(2)); | 610 unittest.expect(o, unittest.hasLength(2)); |
607 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')); | 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')); |
608 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')); | 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')); |
609 } | 613 } |
610 | 614 |
611 buildUnnamed567() { | 615 buildUnnamed19() { |
612 var o = new core.List<core.Object>(); | 616 var o = new core.List<core.Object>(); |
613 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 617 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
614 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 618 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
615 return o; | 619 return o; |
616 } | 620 } |
617 | 621 |
618 checkUnnamed567(core.List<core.Object> o) { | 622 checkUnnamed19(core.List<core.Object> o) { |
619 unittest.expect(o, unittest.hasLength(2)); | 623 unittest.expect(o, unittest.hasLength(2)); |
620 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')); | 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')); |
621 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')); | 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')); |
622 } | 626 } |
623 | 627 |
624 buildUnnamed568() { | 628 buildUnnamed20() { |
625 var o = new core.List<core.Object>(); | 629 var o = new core.List<core.Object>(); |
626 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 630 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
627 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 631 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
628 return o; | 632 return o; |
629 } | 633 } |
630 | 634 |
631 checkUnnamed568(core.List<core.Object> o) { | 635 checkUnnamed20(core.List<core.Object> o) { |
632 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
633 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')); | 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')); |
634 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')); | 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')); |
635 } | 639 } |
636 | 640 |
637 buildUnnamed569() { | 641 buildUnnamed21() { |
638 var o = new core.List<core.Object>(); | 642 var o = new core.List<core.Object>(); |
639 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 643 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
640 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 644 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
641 return o; | 645 return o; |
642 } | 646 } |
643 | 647 |
644 checkUnnamed569(core.List<core.Object> o) { | 648 checkUnnamed21(core.List<core.Object> o) { |
645 unittest.expect(o, unittest.hasLength(2)); | 649 unittest.expect(o, unittest.hasLength(2)); |
646 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')); | 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')); |
647 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')); | 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')); |
648 } | 652 } |
649 | 653 |
650 core.int buildCounterPerformanceReport = 0; | 654 core.int buildCounterPerformanceReport = 0; |
651 buildPerformanceReport() { | 655 buildPerformanceReport() { |
652 var o = new api.PerformanceReport(); | 656 var o = new api.PerformanceReport(); |
653 buildCounterPerformanceReport++; | 657 buildCounterPerformanceReport++; |
654 if (buildCounterPerformanceReport < 3) { | 658 if (buildCounterPerformanceReport < 3) { |
655 o.calloutStatusRate = buildUnnamed566(); | 659 o.calloutStatusRate = buildUnnamed18(); |
656 o.cookieMatcherStatusRate = buildUnnamed567(); | 660 o.cookieMatcherStatusRate = buildUnnamed19(); |
657 o.creativeStatusRate = buildUnnamed568(); | 661 o.creativeStatusRate = buildUnnamed20(); |
658 o.hostedMatchStatusRate = buildUnnamed569(); | 662 o.hostedMatchStatusRate = buildUnnamed21(); |
659 o.kind = "foo"; | 663 o.kind = "foo"; |
660 o.latency50thPercentile = 42.0; | 664 o.latency50thPercentile = 42.0; |
661 o.latency85thPercentile = 42.0; | 665 o.latency85thPercentile = 42.0; |
662 o.latency95thPercentile = 42.0; | 666 o.latency95thPercentile = 42.0; |
663 o.noQuotaInRegion = 42.0; | 667 o.noQuotaInRegion = 42.0; |
664 o.outOfQuota = 42.0; | 668 o.outOfQuota = 42.0; |
665 o.pixelMatchRequests = 42.0; | 669 o.pixelMatchRequests = 42.0; |
666 o.pixelMatchResponses = 42.0; | 670 o.pixelMatchResponses = 42.0; |
667 o.quotaConfiguredLimit = 42.0; | 671 o.quotaConfiguredLimit = 42.0; |
668 o.quotaThrottledLimit = 42.0; | 672 o.quotaThrottledLimit = 42.0; |
669 o.region = "foo"; | 673 o.region = "foo"; |
670 o.timestamp = "foo"; | 674 o.timestamp = "foo"; |
671 } | 675 } |
672 buildCounterPerformanceReport--; | 676 buildCounterPerformanceReport--; |
673 return o; | 677 return o; |
674 } | 678 } |
675 | 679 |
676 checkPerformanceReport(api.PerformanceReport o) { | 680 checkPerformanceReport(api.PerformanceReport o) { |
677 buildCounterPerformanceReport++; | 681 buildCounterPerformanceReport++; |
678 if (buildCounterPerformanceReport < 3) { | 682 if (buildCounterPerformanceReport < 3) { |
679 checkUnnamed566(o.calloutStatusRate); | 683 checkUnnamed18(o.calloutStatusRate); |
680 checkUnnamed567(o.cookieMatcherStatusRate); | 684 checkUnnamed19(o.cookieMatcherStatusRate); |
681 checkUnnamed568(o.creativeStatusRate); | 685 checkUnnamed20(o.creativeStatusRate); |
682 checkUnnamed569(o.hostedMatchStatusRate); | 686 checkUnnamed21(o.hostedMatchStatusRate); |
683 unittest.expect(o.kind, unittest.equals('foo')); | 687 unittest.expect(o.kind, unittest.equals('foo')); |
684 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); | 688 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); |
685 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); | 689 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); |
686 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); | 690 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); |
687 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); | 691 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); |
688 unittest.expect(o.outOfQuota, unittest.equals(42.0)); | 692 unittest.expect(o.outOfQuota, unittest.equals(42.0)); |
689 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); | 693 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); |
690 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); | 694 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); |
691 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); | 695 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); |
692 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); | 696 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); |
693 unittest.expect(o.region, unittest.equals('foo')); | 697 unittest.expect(o.region, unittest.equals('foo')); |
694 unittest.expect(o.timestamp, unittest.equals('foo')); | 698 unittest.expect(o.timestamp, unittest.equals('foo')); |
695 } | 699 } |
696 buildCounterPerformanceReport--; | 700 buildCounterPerformanceReport--; |
697 } | 701 } |
698 | 702 |
699 buildUnnamed570() { | 703 buildUnnamed22() { |
700 var o = new core.List<api.PerformanceReport>(); | 704 var o = new core.List<api.PerformanceReport>(); |
701 o.add(buildPerformanceReport()); | 705 o.add(buildPerformanceReport()); |
702 o.add(buildPerformanceReport()); | 706 o.add(buildPerformanceReport()); |
703 return o; | 707 return o; |
704 } | 708 } |
705 | 709 |
706 checkUnnamed570(core.List<api.PerformanceReport> o) { | 710 checkUnnamed22(core.List<api.PerformanceReport> o) { |
707 unittest.expect(o, unittest.hasLength(2)); | 711 unittest.expect(o, unittest.hasLength(2)); |
708 checkPerformanceReport(o[0]); | 712 checkPerformanceReport(o[0]); |
709 checkPerformanceReport(o[1]); | 713 checkPerformanceReport(o[1]); |
710 } | 714 } |
711 | 715 |
712 core.int buildCounterPerformanceReportList = 0; | 716 core.int buildCounterPerformanceReportList = 0; |
713 buildPerformanceReportList() { | 717 buildPerformanceReportList() { |
714 var o = new api.PerformanceReportList(); | 718 var o = new api.PerformanceReportList(); |
715 buildCounterPerformanceReportList++; | 719 buildCounterPerformanceReportList++; |
716 if (buildCounterPerformanceReportList < 3) { | 720 if (buildCounterPerformanceReportList < 3) { |
717 o.kind = "foo"; | 721 o.kind = "foo"; |
718 o.performanceReport = buildUnnamed570(); | 722 o.performanceReport = buildUnnamed22(); |
719 } | 723 } |
720 buildCounterPerformanceReportList--; | 724 buildCounterPerformanceReportList--; |
721 return o; | 725 return o; |
722 } | 726 } |
723 | 727 |
724 checkPerformanceReportList(api.PerformanceReportList o) { | 728 checkPerformanceReportList(api.PerformanceReportList o) { |
725 buildCounterPerformanceReportList++; | 729 buildCounterPerformanceReportList++; |
726 if (buildCounterPerformanceReportList < 3) { | 730 if (buildCounterPerformanceReportList < 3) { |
727 unittest.expect(o.kind, unittest.equals('foo')); | 731 unittest.expect(o.kind, unittest.equals('foo')); |
728 checkUnnamed570(o.performanceReport); | 732 checkUnnamed22(o.performanceReport); |
729 } | 733 } |
730 buildCounterPerformanceReportList--; | 734 buildCounterPerformanceReportList--; |
731 } | 735 } |
732 | 736 |
733 buildUnnamed571() { | 737 buildUnnamed23() { |
734 var o = new core.List<core.String>(); | 738 var o = new core.List<core.String>(); |
735 o.add("foo"); | 739 o.add("foo"); |
736 o.add("foo"); | 740 o.add("foo"); |
737 return o; | 741 return o; |
738 } | 742 } |
739 | 743 |
740 checkUnnamed571(core.List<core.String> o) { | 744 checkUnnamed23(core.List<core.String> o) { |
741 unittest.expect(o, unittest.hasLength(2)); | 745 unittest.expect(o, unittest.hasLength(2)); |
742 unittest.expect(o[0], unittest.equals('foo')); | 746 unittest.expect(o[0], unittest.equals('foo')); |
743 unittest.expect(o[1], unittest.equals('foo')); | 747 unittest.expect(o[1], unittest.equals('foo')); |
744 } | 748 } |
745 | 749 |
746 core.int buildCounterPretargetingConfigDimensions = 0; | 750 core.int buildCounterPretargetingConfigDimensions = 0; |
747 buildPretargetingConfigDimensions() { | 751 buildPretargetingConfigDimensions() { |
748 var o = new api.PretargetingConfigDimensions(); | 752 var o = new api.PretargetingConfigDimensions(); |
749 buildCounterPretargetingConfigDimensions++; | 753 buildCounterPretargetingConfigDimensions++; |
750 if (buildCounterPretargetingConfigDimensions < 3) { | 754 if (buildCounterPretargetingConfigDimensions < 3) { |
751 o.height = "foo"; | 755 o.height = "foo"; |
752 o.width = "foo"; | 756 o.width = "foo"; |
753 } | 757 } |
754 buildCounterPretargetingConfigDimensions--; | 758 buildCounterPretargetingConfigDimensions--; |
755 return o; | 759 return o; |
756 } | 760 } |
757 | 761 |
758 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { | 762 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { |
759 buildCounterPretargetingConfigDimensions++; | 763 buildCounterPretargetingConfigDimensions++; |
760 if (buildCounterPretargetingConfigDimensions < 3) { | 764 if (buildCounterPretargetingConfigDimensions < 3) { |
761 unittest.expect(o.height, unittest.equals('foo')); | 765 unittest.expect(o.height, unittest.equals('foo')); |
762 unittest.expect(o.width, unittest.equals('foo')); | 766 unittest.expect(o.width, unittest.equals('foo')); |
763 } | 767 } |
764 buildCounterPretargetingConfigDimensions--; | 768 buildCounterPretargetingConfigDimensions--; |
765 } | 769 } |
766 | 770 |
767 buildUnnamed572() { | 771 buildUnnamed24() { |
768 var o = new core.List<api.PretargetingConfigDimensions>(); | 772 var o = new core.List<api.PretargetingConfigDimensions>(); |
769 o.add(buildPretargetingConfigDimensions()); | 773 o.add(buildPretargetingConfigDimensions()); |
770 o.add(buildPretargetingConfigDimensions()); | 774 o.add(buildPretargetingConfigDimensions()); |
771 return o; | 775 return o; |
772 } | 776 } |
773 | 777 |
774 checkUnnamed572(core.List<api.PretargetingConfigDimensions> o) { | 778 checkUnnamed24(core.List<api.PretargetingConfigDimensions> o) { |
775 unittest.expect(o, unittest.hasLength(2)); | 779 unittest.expect(o, unittest.hasLength(2)); |
776 checkPretargetingConfigDimensions(o[0]); | 780 checkPretargetingConfigDimensions(o[0]); |
777 checkPretargetingConfigDimensions(o[1]); | 781 checkPretargetingConfigDimensions(o[1]); |
778 } | 782 } |
779 | 783 |
780 buildUnnamed573() { | 784 buildUnnamed25() { |
781 var o = new core.List<core.String>(); | 785 var o = new core.List<core.String>(); |
782 o.add("foo"); | 786 o.add("foo"); |
783 o.add("foo"); | 787 o.add("foo"); |
784 return o; | 788 return o; |
785 } | 789 } |
786 | 790 |
787 checkUnnamed573(core.List<core.String> o) { | 791 checkUnnamed25(core.List<core.String> o) { |
788 unittest.expect(o, unittest.hasLength(2)); | 792 unittest.expect(o, unittest.hasLength(2)); |
789 unittest.expect(o[0], unittest.equals('foo')); | 793 unittest.expect(o[0], unittest.equals('foo')); |
790 unittest.expect(o[1], unittest.equals('foo')); | 794 unittest.expect(o[1], unittest.equals('foo')); |
791 } | 795 } |
792 | 796 |
793 buildUnnamed574() { | 797 buildUnnamed26() { |
794 var o = new core.List<core.String>(); | 798 var o = new core.List<core.String>(); |
795 o.add("foo"); | 799 o.add("foo"); |
796 o.add("foo"); | 800 o.add("foo"); |
797 return o; | 801 return o; |
798 } | 802 } |
799 | 803 |
800 checkUnnamed574(core.List<core.String> o) { | 804 checkUnnamed26(core.List<core.String> o) { |
801 unittest.expect(o, unittest.hasLength(2)); | 805 unittest.expect(o, unittest.hasLength(2)); |
802 unittest.expect(o[0], unittest.equals('foo')); | 806 unittest.expect(o[0], unittest.equals('foo')); |
803 unittest.expect(o[1], unittest.equals('foo')); | 807 unittest.expect(o[1], unittest.equals('foo')); |
804 } | 808 } |
805 | 809 |
806 core.int buildCounterPretargetingConfigExcludedPlacements = 0; | 810 core.int buildCounterPretargetingConfigExcludedPlacements = 0; |
807 buildPretargetingConfigExcludedPlacements() { | 811 buildPretargetingConfigExcludedPlacements() { |
808 var o = new api.PretargetingConfigExcludedPlacements(); | 812 var o = new api.PretargetingConfigExcludedPlacements(); |
809 buildCounterPretargetingConfigExcludedPlacements++; | 813 buildCounterPretargetingConfigExcludedPlacements++; |
810 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 814 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
811 o.token = "foo"; | 815 o.token = "foo"; |
812 o.type = "foo"; | 816 o.type = "foo"; |
813 } | 817 } |
814 buildCounterPretargetingConfigExcludedPlacements--; | 818 buildCounterPretargetingConfigExcludedPlacements--; |
815 return o; | 819 return o; |
816 } | 820 } |
817 | 821 |
818 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { | 822 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { |
819 buildCounterPretargetingConfigExcludedPlacements++; | 823 buildCounterPretargetingConfigExcludedPlacements++; |
820 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 824 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
821 unittest.expect(o.token, unittest.equals('foo')); | 825 unittest.expect(o.token, unittest.equals('foo')); |
822 unittest.expect(o.type, unittest.equals('foo')); | 826 unittest.expect(o.type, unittest.equals('foo')); |
823 } | 827 } |
824 buildCounterPretargetingConfigExcludedPlacements--; | 828 buildCounterPretargetingConfigExcludedPlacements--; |
825 } | 829 } |
826 | 830 |
827 buildUnnamed575() { | 831 buildUnnamed27() { |
828 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); | 832 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); |
829 o.add(buildPretargetingConfigExcludedPlacements()); | 833 o.add(buildPretargetingConfigExcludedPlacements()); |
830 o.add(buildPretargetingConfigExcludedPlacements()); | 834 o.add(buildPretargetingConfigExcludedPlacements()); |
831 return o; | 835 return o; |
832 } | 836 } |
833 | 837 |
834 checkUnnamed575(core.List<api.PretargetingConfigExcludedPlacements> o) { | 838 checkUnnamed27(core.List<api.PretargetingConfigExcludedPlacements> o) { |
835 unittest.expect(o, unittest.hasLength(2)); | 839 unittest.expect(o, unittest.hasLength(2)); |
836 checkPretargetingConfigExcludedPlacements(o[0]); | 840 checkPretargetingConfigExcludedPlacements(o[0]); |
837 checkPretargetingConfigExcludedPlacements(o[1]); | 841 checkPretargetingConfigExcludedPlacements(o[1]); |
838 } | 842 } |
839 | 843 |
840 buildUnnamed576() { | 844 buildUnnamed28() { |
841 var o = new core.List<core.String>(); | 845 var o = new core.List<core.String>(); |
842 o.add("foo"); | 846 o.add("foo"); |
843 o.add("foo"); | 847 o.add("foo"); |
844 return o; | 848 return o; |
845 } | 849 } |
846 | 850 |
847 checkUnnamed576(core.List<core.String> o) { | 851 checkUnnamed28(core.List<core.String> o) { |
848 unittest.expect(o, unittest.hasLength(2)); | 852 unittest.expect(o, unittest.hasLength(2)); |
849 unittest.expect(o[0], unittest.equals('foo')); | 853 unittest.expect(o[0], unittest.equals('foo')); |
850 unittest.expect(o[1], unittest.equals('foo')); | 854 unittest.expect(o[1], unittest.equals('foo')); |
851 } | 855 } |
852 | 856 |
853 buildUnnamed577() { | 857 buildUnnamed29() { |
854 var o = new core.List<core.String>(); | 858 var o = new core.List<core.String>(); |
855 o.add("foo"); | 859 o.add("foo"); |
856 o.add("foo"); | 860 o.add("foo"); |
857 return o; | 861 return o; |
858 } | 862 } |
859 | 863 |
860 checkUnnamed577(core.List<core.String> o) { | 864 checkUnnamed29(core.List<core.String> o) { |
861 unittest.expect(o, unittest.hasLength(2)); | 865 unittest.expect(o, unittest.hasLength(2)); |
862 unittest.expect(o[0], unittest.equals('foo')); | 866 unittest.expect(o[0], unittest.equals('foo')); |
863 unittest.expect(o[1], unittest.equals('foo')); | 867 unittest.expect(o[1], unittest.equals('foo')); |
864 } | 868 } |
865 | 869 |
866 buildUnnamed578() { | 870 buildUnnamed30() { |
867 var o = new core.List<core.String>(); | 871 var o = new core.List<core.String>(); |
868 o.add("foo"); | 872 o.add("foo"); |
869 o.add("foo"); | 873 o.add("foo"); |
870 return o; | 874 return o; |
871 } | 875 } |
872 | 876 |
873 checkUnnamed578(core.List<core.String> o) { | 877 checkUnnamed30(core.List<core.String> o) { |
874 unittest.expect(o, unittest.hasLength(2)); | 878 unittest.expect(o, unittest.hasLength(2)); |
875 unittest.expect(o[0], unittest.equals('foo')); | 879 unittest.expect(o[0], unittest.equals('foo')); |
876 unittest.expect(o[1], unittest.equals('foo')); | 880 unittest.expect(o[1], unittest.equals('foo')); |
877 } | 881 } |
878 | 882 |
879 buildUnnamed579() { | 883 buildUnnamed31() { |
880 var o = new core.List<core.String>(); | 884 var o = new core.List<core.String>(); |
881 o.add("foo"); | 885 o.add("foo"); |
882 o.add("foo"); | 886 o.add("foo"); |
883 return o; | 887 return o; |
884 } | 888 } |
885 | 889 |
886 checkUnnamed579(core.List<core.String> o) { | 890 checkUnnamed31(core.List<core.String> o) { |
887 unittest.expect(o, unittest.hasLength(2)); | 891 unittest.expect(o, unittest.hasLength(2)); |
888 unittest.expect(o[0], unittest.equals('foo')); | 892 unittest.expect(o[0], unittest.equals('foo')); |
889 unittest.expect(o[1], unittest.equals('foo')); | 893 unittest.expect(o[1], unittest.equals('foo')); |
890 } | 894 } |
891 | 895 |
892 buildUnnamed580() { | 896 buildUnnamed32() { |
893 var o = new core.List<core.String>(); | 897 var o = new core.List<core.String>(); |
894 o.add("foo"); | 898 o.add("foo"); |
895 o.add("foo"); | 899 o.add("foo"); |
896 return o; | 900 return o; |
897 } | 901 } |
898 | 902 |
899 checkUnnamed580(core.List<core.String> o) { | 903 checkUnnamed32(core.List<core.String> o) { |
900 unittest.expect(o, unittest.hasLength(2)); | 904 unittest.expect(o, unittest.hasLength(2)); |
901 unittest.expect(o[0], unittest.equals('foo')); | 905 unittest.expect(o[0], unittest.equals('foo')); |
902 unittest.expect(o[1], unittest.equals('foo')); | 906 unittest.expect(o[1], unittest.equals('foo')); |
903 } | 907 } |
904 | 908 |
905 buildUnnamed581() { | 909 buildUnnamed33() { |
906 var o = new core.List<core.String>(); | 910 var o = new core.List<core.String>(); |
907 o.add("foo"); | 911 o.add("foo"); |
908 o.add("foo"); | 912 o.add("foo"); |
909 return o; | 913 return o; |
910 } | 914 } |
911 | 915 |
912 checkUnnamed581(core.List<core.String> o) { | 916 checkUnnamed33(core.List<core.String> o) { |
913 unittest.expect(o, unittest.hasLength(2)); | 917 unittest.expect(o, unittest.hasLength(2)); |
914 unittest.expect(o[0], unittest.equals('foo')); | 918 unittest.expect(o[0], unittest.equals('foo')); |
915 unittest.expect(o[1], unittest.equals('foo')); | 919 unittest.expect(o[1], unittest.equals('foo')); |
916 } | 920 } |
917 | 921 |
918 buildUnnamed582() { | 922 buildUnnamed34() { |
919 var o = new core.List<core.String>(); | 923 var o = new core.List<core.String>(); |
920 o.add("foo"); | 924 o.add("foo"); |
921 o.add("foo"); | 925 o.add("foo"); |
922 return o; | 926 return o; |
923 } | 927 } |
924 | 928 |
925 checkUnnamed582(core.List<core.String> o) { | 929 checkUnnamed34(core.List<core.String> o) { |
926 unittest.expect(o, unittest.hasLength(2)); | 930 unittest.expect(o, unittest.hasLength(2)); |
927 unittest.expect(o[0], unittest.equals('foo')); | 931 unittest.expect(o[0], unittest.equals('foo')); |
928 unittest.expect(o[1], unittest.equals('foo')); | 932 unittest.expect(o[1], unittest.equals('foo')); |
929 } | 933 } |
930 | 934 |
931 core.int buildCounterPretargetingConfigPlacements = 0; | 935 core.int buildCounterPretargetingConfigPlacements = 0; |
932 buildPretargetingConfigPlacements() { | 936 buildPretargetingConfigPlacements() { |
933 var o = new api.PretargetingConfigPlacements(); | 937 var o = new api.PretargetingConfigPlacements(); |
934 buildCounterPretargetingConfigPlacements++; | 938 buildCounterPretargetingConfigPlacements++; |
935 if (buildCounterPretargetingConfigPlacements < 3) { | 939 if (buildCounterPretargetingConfigPlacements < 3) { |
936 o.token = "foo"; | 940 o.token = "foo"; |
937 o.type = "foo"; | 941 o.type = "foo"; |
938 } | 942 } |
939 buildCounterPretargetingConfigPlacements--; | 943 buildCounterPretargetingConfigPlacements--; |
940 return o; | 944 return o; |
941 } | 945 } |
942 | 946 |
943 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { | 947 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { |
944 buildCounterPretargetingConfigPlacements++; | 948 buildCounterPretargetingConfigPlacements++; |
945 if (buildCounterPretargetingConfigPlacements < 3) { | 949 if (buildCounterPretargetingConfigPlacements < 3) { |
946 unittest.expect(o.token, unittest.equals('foo')); | 950 unittest.expect(o.token, unittest.equals('foo')); |
947 unittest.expect(o.type, unittest.equals('foo')); | 951 unittest.expect(o.type, unittest.equals('foo')); |
948 } | 952 } |
949 buildCounterPretargetingConfigPlacements--; | 953 buildCounterPretargetingConfigPlacements--; |
950 } | 954 } |
951 | 955 |
952 buildUnnamed583() { | 956 buildUnnamed35() { |
953 var o = new core.List<api.PretargetingConfigPlacements>(); | 957 var o = new core.List<api.PretargetingConfigPlacements>(); |
954 o.add(buildPretargetingConfigPlacements()); | 958 o.add(buildPretargetingConfigPlacements()); |
955 o.add(buildPretargetingConfigPlacements()); | 959 o.add(buildPretargetingConfigPlacements()); |
956 return o; | 960 return o; |
957 } | 961 } |
958 | 962 |
959 checkUnnamed583(core.List<api.PretargetingConfigPlacements> o) { | 963 checkUnnamed35(core.List<api.PretargetingConfigPlacements> o) { |
960 unittest.expect(o, unittest.hasLength(2)); | 964 unittest.expect(o, unittest.hasLength(2)); |
961 checkPretargetingConfigPlacements(o[0]); | 965 checkPretargetingConfigPlacements(o[0]); |
962 checkPretargetingConfigPlacements(o[1]); | 966 checkPretargetingConfigPlacements(o[1]); |
963 } | 967 } |
964 | 968 |
965 buildUnnamed584() { | 969 buildUnnamed36() { |
966 var o = new core.List<core.String>(); | 970 var o = new core.List<core.String>(); |
967 o.add("foo"); | 971 o.add("foo"); |
968 o.add("foo"); | 972 o.add("foo"); |
969 return o; | 973 return o; |
970 } | 974 } |
971 | 975 |
972 checkUnnamed584(core.List<core.String> o) { | 976 checkUnnamed36(core.List<core.String> o) { |
973 unittest.expect(o, unittest.hasLength(2)); | 977 unittest.expect(o, unittest.hasLength(2)); |
974 unittest.expect(o[0], unittest.equals('foo')); | 978 unittest.expect(o[0], unittest.equals('foo')); |
975 unittest.expect(o[1], unittest.equals('foo')); | 979 unittest.expect(o[1], unittest.equals('foo')); |
976 } | 980 } |
977 | 981 |
978 buildUnnamed585() { | 982 buildUnnamed37() { |
979 var o = new core.List<core.String>(); | 983 var o = new core.List<core.String>(); |
980 o.add("foo"); | 984 o.add("foo"); |
981 o.add("foo"); | 985 o.add("foo"); |
982 return o; | 986 return o; |
983 } | 987 } |
984 | 988 |
985 checkUnnamed585(core.List<core.String> o) { | 989 checkUnnamed37(core.List<core.String> o) { |
986 unittest.expect(o, unittest.hasLength(2)); | 990 unittest.expect(o, unittest.hasLength(2)); |
987 unittest.expect(o[0], unittest.equals('foo')); | 991 unittest.expect(o[0], unittest.equals('foo')); |
988 unittest.expect(o[1], unittest.equals('foo')); | 992 unittest.expect(o[1], unittest.equals('foo')); |
989 } | 993 } |
990 | 994 |
991 buildUnnamed586() { | 995 buildUnnamed38() { |
992 var o = new core.List<core.String>(); | 996 var o = new core.List<core.String>(); |
993 o.add("foo"); | 997 o.add("foo"); |
994 o.add("foo"); | 998 o.add("foo"); |
995 return o; | 999 return o; |
996 } | 1000 } |
997 | 1001 |
998 checkUnnamed586(core.List<core.String> o) { | 1002 checkUnnamed38(core.List<core.String> o) { |
999 unittest.expect(o, unittest.hasLength(2)); | 1003 unittest.expect(o, unittest.hasLength(2)); |
1000 unittest.expect(o[0], unittest.equals('foo')); | 1004 unittest.expect(o[0], unittest.equals('foo')); |
1001 unittest.expect(o[1], unittest.equals('foo')); | 1005 unittest.expect(o[1], unittest.equals('foo')); |
1002 } | 1006 } |
1003 | 1007 |
1004 buildUnnamed587() { | 1008 buildUnnamed39() { |
1005 var o = new core.List<core.String>(); | 1009 var o = new core.List<core.String>(); |
1006 o.add("foo"); | 1010 o.add("foo"); |
1007 o.add("foo"); | 1011 o.add("foo"); |
1008 return o; | 1012 return o; |
1009 } | 1013 } |
1010 | 1014 |
1011 checkUnnamed587(core.List<core.String> o) { | 1015 checkUnnamed39(core.List<core.String> o) { |
1012 unittest.expect(o, unittest.hasLength(2)); | 1016 unittest.expect(o, unittest.hasLength(2)); |
1013 unittest.expect(o[0], unittest.equals('foo')); | 1017 unittest.expect(o[0], unittest.equals('foo')); |
1014 unittest.expect(o[1], unittest.equals('foo')); | 1018 unittest.expect(o[1], unittest.equals('foo')); |
1015 } | 1019 } |
1016 | 1020 |
1017 buildUnnamed588() { | 1021 buildUnnamed40() { |
1018 var o = new core.List<core.String>(); | 1022 var o = new core.List<core.String>(); |
1019 o.add("foo"); | 1023 o.add("foo"); |
1020 o.add("foo"); | 1024 o.add("foo"); |
1021 return o; | 1025 return o; |
1022 } | 1026 } |
1023 | 1027 |
1024 checkUnnamed588(core.List<core.String> o) { | 1028 checkUnnamed40(core.List<core.String> o) { |
1025 unittest.expect(o, unittest.hasLength(2)); | 1029 unittest.expect(o, unittest.hasLength(2)); |
1026 unittest.expect(o[0], unittest.equals('foo')); | 1030 unittest.expect(o[0], unittest.equals('foo')); |
1027 unittest.expect(o[1], unittest.equals('foo')); | 1031 unittest.expect(o[1], unittest.equals('foo')); |
1028 } | 1032 } |
1029 | 1033 |
1030 core.int buildCounterPretargetingConfig = 0; | 1034 core.int buildCounterPretargetingConfig = 0; |
1031 buildPretargetingConfig() { | 1035 buildPretargetingConfig() { |
1032 var o = new api.PretargetingConfig(); | 1036 var o = new api.PretargetingConfig(); |
1033 buildCounterPretargetingConfig++; | 1037 buildCounterPretargetingConfig++; |
1034 if (buildCounterPretargetingConfig < 3) { | 1038 if (buildCounterPretargetingConfig < 3) { |
1035 o.billingId = "foo"; | 1039 o.billingId = "foo"; |
1036 o.configId = "foo"; | 1040 o.configId = "foo"; |
1037 o.configName = "foo"; | 1041 o.configName = "foo"; |
1038 o.creativeType = buildUnnamed571(); | 1042 o.creativeType = buildUnnamed23(); |
1039 o.dimensions = buildUnnamed572(); | 1043 o.dimensions = buildUnnamed24(); |
1040 o.excludedContentLabels = buildUnnamed573(); | 1044 o.excludedContentLabels = buildUnnamed25(); |
1041 o.excludedGeoCriteriaIds = buildUnnamed574(); | 1045 o.excludedGeoCriteriaIds = buildUnnamed26(); |
1042 o.excludedPlacements = buildUnnamed575(); | 1046 o.excludedPlacements = buildUnnamed27(); |
1043 o.excludedUserLists = buildUnnamed576(); | 1047 o.excludedUserLists = buildUnnamed28(); |
1044 o.excludedVerticals = buildUnnamed577(); | 1048 o.excludedVerticals = buildUnnamed29(); |
1045 o.geoCriteriaIds = buildUnnamed578(); | 1049 o.geoCriteriaIds = buildUnnamed30(); |
1046 o.isActive = true; | 1050 o.isActive = true; |
1047 o.kind = "foo"; | 1051 o.kind = "foo"; |
1048 o.languages = buildUnnamed579(); | 1052 o.languages = buildUnnamed31(); |
1049 o.mobileCarriers = buildUnnamed580(); | 1053 o.mobileCarriers = buildUnnamed32(); |
1050 o.mobileDevices = buildUnnamed581(); | 1054 o.mobileDevices = buildUnnamed33(); |
1051 o.mobileOperatingSystemVersions = buildUnnamed582(); | 1055 o.mobileOperatingSystemVersions = buildUnnamed34(); |
1052 o.placements = buildUnnamed583(); | 1056 o.placements = buildUnnamed35(); |
1053 o.platforms = buildUnnamed584(); | 1057 o.platforms = buildUnnamed36(); |
1054 o.supportedCreativeAttributes = buildUnnamed585(); | 1058 o.supportedCreativeAttributes = buildUnnamed37(); |
1055 o.userLists = buildUnnamed586(); | 1059 o.userLists = buildUnnamed38(); |
1056 o.vendorTypes = buildUnnamed587(); | 1060 o.vendorTypes = buildUnnamed39(); |
1057 o.verticals = buildUnnamed588(); | 1061 o.verticals = buildUnnamed40(); |
1058 } | 1062 } |
1059 buildCounterPretargetingConfig--; | 1063 buildCounterPretargetingConfig--; |
1060 return o; | 1064 return o; |
1061 } | 1065 } |
1062 | 1066 |
1063 checkPretargetingConfig(api.PretargetingConfig o) { | 1067 checkPretargetingConfig(api.PretargetingConfig o) { |
1064 buildCounterPretargetingConfig++; | 1068 buildCounterPretargetingConfig++; |
1065 if (buildCounterPretargetingConfig < 3) { | 1069 if (buildCounterPretargetingConfig < 3) { |
1066 unittest.expect(o.billingId, unittest.equals('foo')); | 1070 unittest.expect(o.billingId, unittest.equals('foo')); |
1067 unittest.expect(o.configId, unittest.equals('foo')); | 1071 unittest.expect(o.configId, unittest.equals('foo')); |
1068 unittest.expect(o.configName, unittest.equals('foo')); | 1072 unittest.expect(o.configName, unittest.equals('foo')); |
1069 checkUnnamed571(o.creativeType); | 1073 checkUnnamed23(o.creativeType); |
1070 checkUnnamed572(o.dimensions); | 1074 checkUnnamed24(o.dimensions); |
1071 checkUnnamed573(o.excludedContentLabels); | 1075 checkUnnamed25(o.excludedContentLabels); |
1072 checkUnnamed574(o.excludedGeoCriteriaIds); | 1076 checkUnnamed26(o.excludedGeoCriteriaIds); |
1073 checkUnnamed575(o.excludedPlacements); | 1077 checkUnnamed27(o.excludedPlacements); |
1074 checkUnnamed576(o.excludedUserLists); | 1078 checkUnnamed28(o.excludedUserLists); |
1075 checkUnnamed577(o.excludedVerticals); | 1079 checkUnnamed29(o.excludedVerticals); |
1076 checkUnnamed578(o.geoCriteriaIds); | 1080 checkUnnamed30(o.geoCriteriaIds); |
1077 unittest.expect(o.isActive, unittest.isTrue); | 1081 unittest.expect(o.isActive, unittest.isTrue); |
1078 unittest.expect(o.kind, unittest.equals('foo')); | 1082 unittest.expect(o.kind, unittest.equals('foo')); |
1079 checkUnnamed579(o.languages); | 1083 checkUnnamed31(o.languages); |
1080 checkUnnamed580(o.mobileCarriers); | 1084 checkUnnamed32(o.mobileCarriers); |
1081 checkUnnamed581(o.mobileDevices); | 1085 checkUnnamed33(o.mobileDevices); |
1082 checkUnnamed582(o.mobileOperatingSystemVersions); | 1086 checkUnnamed34(o.mobileOperatingSystemVersions); |
1083 checkUnnamed583(o.placements); | 1087 checkUnnamed35(o.placements); |
1084 checkUnnamed584(o.platforms); | 1088 checkUnnamed36(o.platforms); |
1085 checkUnnamed585(o.supportedCreativeAttributes); | 1089 checkUnnamed37(o.supportedCreativeAttributes); |
1086 checkUnnamed586(o.userLists); | 1090 checkUnnamed38(o.userLists); |
1087 checkUnnamed587(o.vendorTypes); | 1091 checkUnnamed39(o.vendorTypes); |
1088 checkUnnamed588(o.verticals); | 1092 checkUnnamed40(o.verticals); |
1089 } | 1093 } |
1090 buildCounterPretargetingConfig--; | 1094 buildCounterPretargetingConfig--; |
1091 } | 1095 } |
1092 | 1096 |
1093 buildUnnamed589() { | 1097 buildUnnamed41() { |
1094 var o = new core.List<api.PretargetingConfig>(); | 1098 var o = new core.List<api.PretargetingConfig>(); |
1095 o.add(buildPretargetingConfig()); | 1099 o.add(buildPretargetingConfig()); |
1096 o.add(buildPretargetingConfig()); | 1100 o.add(buildPretargetingConfig()); |
1097 return o; | 1101 return o; |
1098 } | 1102 } |
1099 | 1103 |
1100 checkUnnamed589(core.List<api.PretargetingConfig> o) { | 1104 checkUnnamed41(core.List<api.PretargetingConfig> o) { |
1101 unittest.expect(o, unittest.hasLength(2)); | 1105 unittest.expect(o, unittest.hasLength(2)); |
1102 checkPretargetingConfig(o[0]); | 1106 checkPretargetingConfig(o[0]); |
1103 checkPretargetingConfig(o[1]); | 1107 checkPretargetingConfig(o[1]); |
1104 } | 1108 } |
1105 | 1109 |
1106 core.int buildCounterPretargetingConfigList = 0; | 1110 core.int buildCounterPretargetingConfigList = 0; |
1107 buildPretargetingConfigList() { | 1111 buildPretargetingConfigList() { |
1108 var o = new api.PretargetingConfigList(); | 1112 var o = new api.PretargetingConfigList(); |
1109 buildCounterPretargetingConfigList++; | 1113 buildCounterPretargetingConfigList++; |
1110 if (buildCounterPretargetingConfigList < 3) { | 1114 if (buildCounterPretargetingConfigList < 3) { |
1111 o.items = buildUnnamed589(); | 1115 o.items = buildUnnamed41(); |
1112 o.kind = "foo"; | 1116 o.kind = "foo"; |
1113 } | 1117 } |
1114 buildCounterPretargetingConfigList--; | 1118 buildCounterPretargetingConfigList--; |
1115 return o; | 1119 return o; |
1116 } | 1120 } |
1117 | 1121 |
1118 checkPretargetingConfigList(api.PretargetingConfigList o) { | 1122 checkPretargetingConfigList(api.PretargetingConfigList o) { |
1119 buildCounterPretargetingConfigList++; | 1123 buildCounterPretargetingConfigList++; |
1120 if (buildCounterPretargetingConfigList < 3) { | 1124 if (buildCounterPretargetingConfigList < 3) { |
1121 checkUnnamed589(o.items); | 1125 checkUnnamed41(o.items); |
1122 unittest.expect(o.kind, unittest.equals('foo')); | 1126 unittest.expect(o.kind, unittest.equals('foo')); |
1123 } | 1127 } |
1124 buildCounterPretargetingConfigList--; | 1128 buildCounterPretargetingConfigList--; |
1125 } | 1129 } |
1126 | 1130 |
1127 buildUnnamed590() { | 1131 buildUnnamed42() { |
1128 var o = new core.List<core.int>(); | 1132 var o = new core.List<core.int>(); |
1129 o.add(42); | 1133 o.add(42); |
1130 o.add(42); | 1134 o.add(42); |
1131 return o; | 1135 return o; |
1132 } | 1136 } |
1133 | 1137 |
1134 checkUnnamed590(core.List<core.int> o) { | 1138 checkUnnamed42(core.List<core.int> o) { |
1135 unittest.expect(o, unittest.hasLength(2)); | 1139 unittest.expect(o, unittest.hasLength(2)); |
1136 unittest.expect(o[0], unittest.equals(42)); | 1140 unittest.expect(o[0], unittest.equals(42)); |
1137 unittest.expect(o[1], unittest.equals(42)); | 1141 unittest.expect(o[1], unittest.equals(42)); |
1138 } | 1142 } |
1139 | 1143 |
1140 buildUnnamed591() { | 1144 buildUnnamed43() { |
1141 var o = new core.List<core.String>(); | 1145 var o = new core.List<core.String>(); |
1142 o.add("foo"); | 1146 o.add("foo"); |
1143 o.add("foo"); | 1147 o.add("foo"); |
1144 return o; | 1148 return o; |
1145 } | 1149 } |
1146 | 1150 |
1147 checkUnnamed591(core.List<core.String> o) { | 1151 checkUnnamed43(core.List<core.String> o) { |
1148 unittest.expect(o, unittest.hasLength(2)); | 1152 unittest.expect(o, unittest.hasLength(2)); |
1149 unittest.expect(o[0], unittest.equals('foo')); | 1153 unittest.expect(o[0], unittest.equals('foo')); |
1150 unittest.expect(o[1], unittest.equals('foo')); | 1154 unittest.expect(o[1], unittest.equals('foo')); |
1151 } | 1155 } |
1152 | 1156 |
1153 | 1157 |
1154 main() { | 1158 main() { |
1155 unittest.group("obj-schema-AccountBidderLocation", () { | 1159 unittest.group("obj-schema-AccountBidderLocation", () { |
1156 unittest.test("to-json--from-json", () { | 1160 unittest.test("to-json--from-json", () { |
1157 var o = buildAccountBidderLocation(); | 1161 var o = buildAccountBidderLocation(); |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 }), true); | 1742 }), true); |
1739 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ | 1743 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ |
1740 checkCreative(response); | 1744 checkCreative(response); |
1741 }))); | 1745 }))); |
1742 }); | 1746 }); |
1743 | 1747 |
1744 unittest.test("method--list", () { | 1748 unittest.test("method--list", () { |
1745 | 1749 |
1746 var mock = new common_test.HttpServerMock(); | 1750 var mock = new common_test.HttpServerMock(); |
1747 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1751 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1748 var arg_accountId = buildUnnamed590(); | 1752 var arg_accountId = buildUnnamed42(); |
1749 var arg_buyerCreativeId = buildUnnamed591(); | 1753 var arg_buyerCreativeId = buildUnnamed43(); |
1750 var arg_maxResults = 42; | 1754 var arg_maxResults = 42; |
1751 var arg_pageToken = "foo"; | 1755 var arg_pageToken = "foo"; |
1752 var arg_statusFilter = "foo"; | 1756 var arg_statusFilter = "foo"; |
1753 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1757 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1754 var path = (req.url).path; | 1758 var path = (req.url).path; |
1755 var pathOffset = 0; | 1759 var pathOffset = 0; |
1756 var index; | 1760 var index; |
1757 var subPart; | 1761 var subPart; |
1758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1762 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1759 pathOffset += 1; | 1763 pathOffset += 1; |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2291 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { | 2295 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { |
2292 checkPretargetingConfig(response); | 2296 checkPretargetingConfig(response); |
2293 }))); | 2297 }))); |
2294 }); | 2298 }); |
2295 | 2299 |
2296 }); | 2300 }); |
2297 | 2301 |
2298 | 2302 |
2299 } | 2303 } |
2300 | 2304 |
OLD | NEW |