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 buildUnnamed537() { | 42 buildUnnamed565() { |
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 checkUnnamed537(core.List<api.AccountBidderLocation> o) { | 49 checkUnnamed565(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 = buildUnnamed537(); | 60 o.bidderLocation = buildUnnamed565(); |
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.maximumTotalQps = 42; | 65 o.maximumTotalQps = 42; |
66 } | 66 } |
67 buildCounterAccount--; | 67 buildCounterAccount--; |
68 return o; | 68 return o; |
69 } | 69 } |
70 | 70 |
71 checkAccount(api.Account o) { | 71 checkAccount(api.Account o) { |
72 buildCounterAccount++; | 72 buildCounterAccount++; |
73 if (buildCounterAccount < 3) { | 73 if (buildCounterAccount < 3) { |
74 checkUnnamed537(o.bidderLocation); | 74 checkUnnamed565(o.bidderLocation); |
75 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); | 75 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); |
76 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); | 76 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); |
77 unittest.expect(o.id, unittest.equals(42)); | 77 unittest.expect(o.id, unittest.equals(42)); |
78 unittest.expect(o.kind, unittest.equals('foo')); | 78 unittest.expect(o.kind, unittest.equals('foo')); |
79 unittest.expect(o.maximumTotalQps, unittest.equals(42)); | 79 unittest.expect(o.maximumTotalQps, unittest.equals(42)); |
80 } | 80 } |
81 buildCounterAccount--; | 81 buildCounterAccount--; |
82 } | 82 } |
83 | 83 |
84 buildUnnamed538() { | 84 buildUnnamed566() { |
85 var o = new core.List<api.Account>(); | 85 var o = new core.List<api.Account>(); |
86 o.add(buildAccount()); | 86 o.add(buildAccount()); |
87 o.add(buildAccount()); | 87 o.add(buildAccount()); |
88 return o; | 88 return o; |
89 } | 89 } |
90 | 90 |
91 checkUnnamed538(core.List<api.Account> o) { | 91 checkUnnamed566(core.List<api.Account> o) { |
92 unittest.expect(o, unittest.hasLength(2)); | 92 unittest.expect(o, unittest.hasLength(2)); |
93 checkAccount(o[0]); | 93 checkAccount(o[0]); |
94 checkAccount(o[1]); | 94 checkAccount(o[1]); |
95 } | 95 } |
96 | 96 |
97 core.int buildCounterAccountsList = 0; | 97 core.int buildCounterAccountsList = 0; |
98 buildAccountsList() { | 98 buildAccountsList() { |
99 var o = new api.AccountsList(); | 99 var o = new api.AccountsList(); |
100 buildCounterAccountsList++; | 100 buildCounterAccountsList++; |
101 if (buildCounterAccountsList < 3) { | 101 if (buildCounterAccountsList < 3) { |
102 o.items = buildUnnamed538(); | 102 o.items = buildUnnamed566(); |
103 o.kind = "foo"; | 103 o.kind = "foo"; |
104 } | 104 } |
105 buildCounterAccountsList--; | 105 buildCounterAccountsList--; |
106 return o; | 106 return o; |
107 } | 107 } |
108 | 108 |
109 checkAccountsList(api.AccountsList o) { | 109 checkAccountsList(api.AccountsList o) { |
110 buildCounterAccountsList++; | 110 buildCounterAccountsList++; |
111 if (buildCounterAccountsList < 3) { | 111 if (buildCounterAccountsList < 3) { |
112 checkUnnamed538(o.items); | 112 checkUnnamed566(o.items); |
113 unittest.expect(o.kind, unittest.equals('foo')); | 113 unittest.expect(o.kind, unittest.equals('foo')); |
114 } | 114 } |
115 buildCounterAccountsList--; | 115 buildCounterAccountsList--; |
116 } | 116 } |
117 | 117 |
118 buildUnnamed539() { | 118 buildUnnamed567() { |
119 var o = new core.List<core.String>(); | 119 var o = new core.List<core.String>(); |
120 o.add("foo"); | 120 o.add("foo"); |
121 o.add("foo"); | 121 o.add("foo"); |
122 return o; | 122 return o; |
123 } | 123 } |
124 | 124 |
125 checkUnnamed539(core.List<core.String> o) { | 125 checkUnnamed567(core.List<core.String> o) { |
126 unittest.expect(o, unittest.hasLength(2)); | 126 unittest.expect(o, unittest.hasLength(2)); |
127 unittest.expect(o[0], unittest.equals('foo')); | 127 unittest.expect(o[0], unittest.equals('foo')); |
128 unittest.expect(o[1], unittest.equals('foo')); | 128 unittest.expect(o[1], unittest.equals('foo')); |
129 } | 129 } |
130 | 130 |
131 core.int buildCounterBillingInfo = 0; | 131 core.int buildCounterBillingInfo = 0; |
132 buildBillingInfo() { | 132 buildBillingInfo() { |
133 var o = new api.BillingInfo(); | 133 var o = new api.BillingInfo(); |
134 buildCounterBillingInfo++; | 134 buildCounterBillingInfo++; |
135 if (buildCounterBillingInfo < 3) { | 135 if (buildCounterBillingInfo < 3) { |
136 o.accountId = 42; | 136 o.accountId = 42; |
137 o.accountName = "foo"; | 137 o.accountName = "foo"; |
138 o.billingId = buildUnnamed539(); | 138 o.billingId = buildUnnamed567(); |
139 o.kind = "foo"; | 139 o.kind = "foo"; |
140 } | 140 } |
141 buildCounterBillingInfo--; | 141 buildCounterBillingInfo--; |
142 return o; | 142 return o; |
143 } | 143 } |
144 | 144 |
145 checkBillingInfo(api.BillingInfo o) { | 145 checkBillingInfo(api.BillingInfo o) { |
146 buildCounterBillingInfo++; | 146 buildCounterBillingInfo++; |
147 if (buildCounterBillingInfo < 3) { | 147 if (buildCounterBillingInfo < 3) { |
148 unittest.expect(o.accountId, unittest.equals(42)); | 148 unittest.expect(o.accountId, unittest.equals(42)); |
149 unittest.expect(o.accountName, unittest.equals('foo')); | 149 unittest.expect(o.accountName, unittest.equals('foo')); |
150 checkUnnamed539(o.billingId); | 150 checkUnnamed567(o.billingId); |
151 unittest.expect(o.kind, unittest.equals('foo')); | 151 unittest.expect(o.kind, unittest.equals('foo')); |
152 } | 152 } |
153 buildCounterBillingInfo--; | 153 buildCounterBillingInfo--; |
154 } | 154 } |
155 | 155 |
156 buildUnnamed540() { | 156 buildUnnamed568() { |
157 var o = new core.List<api.BillingInfo>(); | 157 var o = new core.List<api.BillingInfo>(); |
158 o.add(buildBillingInfo()); | 158 o.add(buildBillingInfo()); |
159 o.add(buildBillingInfo()); | 159 o.add(buildBillingInfo()); |
160 return o; | 160 return o; |
161 } | 161 } |
162 | 162 |
163 checkUnnamed540(core.List<api.BillingInfo> o) { | 163 checkUnnamed568(core.List<api.BillingInfo> o) { |
164 unittest.expect(o, unittest.hasLength(2)); | 164 unittest.expect(o, unittest.hasLength(2)); |
165 checkBillingInfo(o[0]); | 165 checkBillingInfo(o[0]); |
166 checkBillingInfo(o[1]); | 166 checkBillingInfo(o[1]); |
167 } | 167 } |
168 | 168 |
169 core.int buildCounterBillingInfoList = 0; | 169 core.int buildCounterBillingInfoList = 0; |
170 buildBillingInfoList() { | 170 buildBillingInfoList() { |
171 var o = new api.BillingInfoList(); | 171 var o = new api.BillingInfoList(); |
172 buildCounterBillingInfoList++; | 172 buildCounterBillingInfoList++; |
173 if (buildCounterBillingInfoList < 3) { | 173 if (buildCounterBillingInfoList < 3) { |
174 o.items = buildUnnamed540(); | 174 o.items = buildUnnamed568(); |
175 o.kind = "foo"; | 175 o.kind = "foo"; |
176 } | 176 } |
177 buildCounterBillingInfoList--; | 177 buildCounterBillingInfoList--; |
178 return o; | 178 return o; |
179 } | 179 } |
180 | 180 |
181 checkBillingInfoList(api.BillingInfoList o) { | 181 checkBillingInfoList(api.BillingInfoList o) { |
182 buildCounterBillingInfoList++; | 182 buildCounterBillingInfoList++; |
183 if (buildCounterBillingInfoList < 3) { | 183 if (buildCounterBillingInfoList < 3) { |
184 checkUnnamed540(o.items); | 184 checkUnnamed568(o.items); |
185 unittest.expect(o.kind, unittest.equals('foo')); | 185 unittest.expect(o.kind, unittest.equals('foo')); |
186 } | 186 } |
187 buildCounterBillingInfoList--; | 187 buildCounterBillingInfoList--; |
188 } | 188 } |
189 | 189 |
190 buildUnnamed541() { | 190 buildUnnamed569() { |
191 var o = new core.List<core.String>(); | 191 var o = new core.List<core.String>(); |
192 o.add("foo"); | 192 o.add("foo"); |
193 o.add("foo"); | 193 o.add("foo"); |
194 return o; | 194 return o; |
195 } | 195 } |
196 | 196 |
197 checkUnnamed541(core.List<core.String> o) { | 197 checkUnnamed569(core.List<core.String> o) { |
198 unittest.expect(o, unittest.hasLength(2)); | 198 unittest.expect(o, unittest.hasLength(2)); |
199 unittest.expect(o[0], unittest.equals('foo')); | 199 unittest.expect(o[0], unittest.equals('foo')); |
200 unittest.expect(o[1], unittest.equals('foo')); | 200 unittest.expect(o[1], unittest.equals('foo')); |
201 } | 201 } |
202 | 202 |
203 buildUnnamed542() { | 203 buildUnnamed570() { |
204 var o = new core.List<core.int>(); | 204 var o = new core.List<core.int>(); |
205 o.add(42); | 205 o.add(42); |
206 o.add(42); | 206 o.add(42); |
207 return o; | 207 return o; |
208 } | 208 } |
209 | 209 |
210 checkUnnamed542(core.List<core.int> o) { | 210 checkUnnamed570(core.List<core.int> o) { |
211 unittest.expect(o, unittest.hasLength(2)); | 211 unittest.expect(o, unittest.hasLength(2)); |
212 unittest.expect(o[0], unittest.equals(42)); | 212 unittest.expect(o[0], unittest.equals(42)); |
213 unittest.expect(o[1], unittest.equals(42)); | 213 unittest.expect(o[1], unittest.equals(42)); |
214 } | 214 } |
215 | 215 |
216 buildUnnamed543() { | 216 buildUnnamed571() { |
217 var o = new core.List<core.String>(); | 217 var o = new core.List<core.String>(); |
218 o.add("foo"); | 218 o.add("foo"); |
219 o.add("foo"); | 219 o.add("foo"); |
220 return o; | 220 return o; |
221 } | 221 } |
222 | 222 |
223 checkUnnamed543(core.List<core.String> o) { | 223 checkUnnamed571(core.List<core.String> o) { |
224 unittest.expect(o, unittest.hasLength(2)); | 224 unittest.expect(o, unittest.hasLength(2)); |
225 unittest.expect(o[0], unittest.equals('foo')); | 225 unittest.expect(o[0], unittest.equals('foo')); |
226 unittest.expect(o[1], unittest.equals('foo')); | 226 unittest.expect(o[1], unittest.equals('foo')); |
227 } | 227 } |
228 | 228 |
229 buildUnnamed544() { | 229 buildUnnamed572() { |
230 var o = new core.List<core.String>(); | 230 var o = new core.List<core.String>(); |
231 o.add("foo"); | 231 o.add("foo"); |
232 o.add("foo"); | 232 o.add("foo"); |
233 return o; | 233 return o; |
234 } | 234 } |
235 | 235 |
236 checkUnnamed544(core.List<core.String> o) { | 236 checkUnnamed572(core.List<core.String> o) { |
237 unittest.expect(o, unittest.hasLength(2)); | 237 unittest.expect(o, unittest.hasLength(2)); |
238 unittest.expect(o[0], unittest.equals('foo')); | 238 unittest.expect(o[0], unittest.equals('foo')); |
239 unittest.expect(o[1], unittest.equals('foo')); | 239 unittest.expect(o[1], unittest.equals('foo')); |
240 } | 240 } |
241 | 241 |
242 core.int buildCounterCreativeCorrections = 0; | 242 core.int buildCounterCreativeCorrections = 0; |
243 buildCreativeCorrections() { | 243 buildCreativeCorrections() { |
244 var o = new api.CreativeCorrections(); | 244 var o = new api.CreativeCorrections(); |
245 buildCounterCreativeCorrections++; | 245 buildCounterCreativeCorrections++; |
246 if (buildCounterCreativeCorrections < 3) { | 246 if (buildCounterCreativeCorrections < 3) { |
247 o.details = buildUnnamed544(); | 247 o.details = buildUnnamed572(); |
248 o.reason = "foo"; | 248 o.reason = "foo"; |
249 } | 249 } |
250 buildCounterCreativeCorrections--; | 250 buildCounterCreativeCorrections--; |
251 return o; | 251 return o; |
252 } | 252 } |
253 | 253 |
254 checkCreativeCorrections(api.CreativeCorrections o) { | 254 checkCreativeCorrections(api.CreativeCorrections o) { |
255 buildCounterCreativeCorrections++; | 255 buildCounterCreativeCorrections++; |
256 if (buildCounterCreativeCorrections < 3) { | 256 if (buildCounterCreativeCorrections < 3) { |
257 checkUnnamed544(o.details); | 257 checkUnnamed572(o.details); |
258 unittest.expect(o.reason, unittest.equals('foo')); | 258 unittest.expect(o.reason, unittest.equals('foo')); |
259 } | 259 } |
260 buildCounterCreativeCorrections--; | 260 buildCounterCreativeCorrections--; |
261 } | 261 } |
262 | 262 |
263 buildUnnamed545() { | 263 buildUnnamed573() { |
264 var o = new core.List<api.CreativeCorrections>(); | 264 var o = new core.List<api.CreativeCorrections>(); |
265 o.add(buildCreativeCorrections()); | 265 o.add(buildCreativeCorrections()); |
266 o.add(buildCreativeCorrections()); | 266 o.add(buildCreativeCorrections()); |
267 return o; | 267 return o; |
268 } | 268 } |
269 | 269 |
270 checkUnnamed545(core.List<api.CreativeCorrections> o) { | 270 checkUnnamed573(core.List<api.CreativeCorrections> o) { |
271 unittest.expect(o, unittest.hasLength(2)); | 271 unittest.expect(o, unittest.hasLength(2)); |
272 checkCreativeCorrections(o[0]); | 272 checkCreativeCorrections(o[0]); |
273 checkCreativeCorrections(o[1]); | 273 checkCreativeCorrections(o[1]); |
274 } | 274 } |
275 | 275 |
276 buildUnnamed546() { | 276 buildUnnamed574() { |
277 var o = new core.List<core.String>(); | 277 var o = new core.List<core.String>(); |
278 o.add("foo"); | 278 o.add("foo"); |
279 o.add("foo"); | 279 o.add("foo"); |
280 return o; | 280 return o; |
281 } | 281 } |
282 | 282 |
283 checkUnnamed546(core.List<core.String> o) { | 283 checkUnnamed574(core.List<core.String> o) { |
284 unittest.expect(o, unittest.hasLength(2)); | 284 unittest.expect(o, unittest.hasLength(2)); |
285 unittest.expect(o[0], unittest.equals('foo')); | 285 unittest.expect(o[0], unittest.equals('foo')); |
286 unittest.expect(o[1], unittest.equals('foo')); | 286 unittest.expect(o[1], unittest.equals('foo')); |
287 } | 287 } |
288 | 288 |
289 core.int buildCounterCreativeDisapprovalReasons = 0; | 289 core.int buildCounterCreativeDisapprovalReasons = 0; |
290 buildCreativeDisapprovalReasons() { | 290 buildCreativeDisapprovalReasons() { |
291 var o = new api.CreativeDisapprovalReasons(); | 291 var o = new api.CreativeDisapprovalReasons(); |
292 buildCounterCreativeDisapprovalReasons++; | 292 buildCounterCreativeDisapprovalReasons++; |
293 if (buildCounterCreativeDisapprovalReasons < 3) { | 293 if (buildCounterCreativeDisapprovalReasons < 3) { |
294 o.details = buildUnnamed546(); | 294 o.details = buildUnnamed574(); |
295 o.reason = "foo"; | 295 o.reason = "foo"; |
296 } | 296 } |
297 buildCounterCreativeDisapprovalReasons--; | 297 buildCounterCreativeDisapprovalReasons--; |
298 return o; | 298 return o; |
299 } | 299 } |
300 | 300 |
301 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { | 301 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { |
302 buildCounterCreativeDisapprovalReasons++; | 302 buildCounterCreativeDisapprovalReasons++; |
303 if (buildCounterCreativeDisapprovalReasons < 3) { | 303 if (buildCounterCreativeDisapprovalReasons < 3) { |
304 checkUnnamed546(o.details); | 304 checkUnnamed574(o.details); |
305 unittest.expect(o.reason, unittest.equals('foo')); | 305 unittest.expect(o.reason, unittest.equals('foo')); |
306 } | 306 } |
307 buildCounterCreativeDisapprovalReasons--; | 307 buildCounterCreativeDisapprovalReasons--; |
308 } | 308 } |
309 | 309 |
310 buildUnnamed547() { | 310 buildUnnamed575() { |
311 var o = new core.List<api.CreativeDisapprovalReasons>(); | 311 var o = new core.List<api.CreativeDisapprovalReasons>(); |
312 o.add(buildCreativeDisapprovalReasons()); | 312 o.add(buildCreativeDisapprovalReasons()); |
313 o.add(buildCreativeDisapprovalReasons()); | 313 o.add(buildCreativeDisapprovalReasons()); |
314 return o; | 314 return o; |
315 } | 315 } |
316 | 316 |
317 checkUnnamed547(core.List<api.CreativeDisapprovalReasons> o) { | 317 checkUnnamed575(core.List<api.CreativeDisapprovalReasons> o) { |
318 unittest.expect(o, unittest.hasLength(2)); | 318 unittest.expect(o, unittest.hasLength(2)); |
319 checkCreativeDisapprovalReasons(o[0]); | 319 checkCreativeDisapprovalReasons(o[0]); |
320 checkCreativeDisapprovalReasons(o[1]); | 320 checkCreativeDisapprovalReasons(o[1]); |
321 } | 321 } |
322 | 322 |
323 core.int buildCounterCreativeFilteringReasonsReasons = 0; | 323 core.int buildCounterCreativeFilteringReasonsReasons = 0; |
324 buildCreativeFilteringReasonsReasons() { | 324 buildCreativeFilteringReasonsReasons() { |
325 var o = new api.CreativeFilteringReasonsReasons(); | 325 var o = new api.CreativeFilteringReasonsReasons(); |
326 buildCounterCreativeFilteringReasonsReasons++; | 326 buildCounterCreativeFilteringReasonsReasons++; |
327 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 327 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
328 o.filteringCount = "foo"; | 328 o.filteringCount = "foo"; |
329 o.filteringStatus = 42; | 329 o.filteringStatus = 42; |
330 } | 330 } |
331 buildCounterCreativeFilteringReasonsReasons--; | 331 buildCounterCreativeFilteringReasonsReasons--; |
332 return o; | 332 return o; |
333 } | 333 } |
334 | 334 |
335 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { | 335 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { |
336 buildCounterCreativeFilteringReasonsReasons++; | 336 buildCounterCreativeFilteringReasonsReasons++; |
337 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 337 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
338 unittest.expect(o.filteringCount, unittest.equals('foo')); | 338 unittest.expect(o.filteringCount, unittest.equals('foo')); |
339 unittest.expect(o.filteringStatus, unittest.equals(42)); | 339 unittest.expect(o.filteringStatus, unittest.equals(42)); |
340 } | 340 } |
341 buildCounterCreativeFilteringReasonsReasons--; | 341 buildCounterCreativeFilteringReasonsReasons--; |
342 } | 342 } |
343 | 343 |
344 buildUnnamed548() { | 344 buildUnnamed576() { |
345 var o = new core.List<api.CreativeFilteringReasonsReasons>(); | 345 var o = new core.List<api.CreativeFilteringReasonsReasons>(); |
346 o.add(buildCreativeFilteringReasonsReasons()); | 346 o.add(buildCreativeFilteringReasonsReasons()); |
347 o.add(buildCreativeFilteringReasonsReasons()); | 347 o.add(buildCreativeFilteringReasonsReasons()); |
348 return o; | 348 return o; |
349 } | 349 } |
350 | 350 |
351 checkUnnamed548(core.List<api.CreativeFilteringReasonsReasons> o) { | 351 checkUnnamed576(core.List<api.CreativeFilteringReasonsReasons> o) { |
352 unittest.expect(o, unittest.hasLength(2)); | 352 unittest.expect(o, unittest.hasLength(2)); |
353 checkCreativeFilteringReasonsReasons(o[0]); | 353 checkCreativeFilteringReasonsReasons(o[0]); |
354 checkCreativeFilteringReasonsReasons(o[1]); | 354 checkCreativeFilteringReasonsReasons(o[1]); |
355 } | 355 } |
356 | 356 |
357 core.int buildCounterCreativeFilteringReasons = 0; | 357 core.int buildCounterCreativeFilteringReasons = 0; |
358 buildCreativeFilteringReasons() { | 358 buildCreativeFilteringReasons() { |
359 var o = new api.CreativeFilteringReasons(); | 359 var o = new api.CreativeFilteringReasons(); |
360 buildCounterCreativeFilteringReasons++; | 360 buildCounterCreativeFilteringReasons++; |
361 if (buildCounterCreativeFilteringReasons < 3) { | 361 if (buildCounterCreativeFilteringReasons < 3) { |
362 o.date = "foo"; | 362 o.date = "foo"; |
363 o.reasons = buildUnnamed548(); | 363 o.reasons = buildUnnamed576(); |
364 } | 364 } |
365 buildCounterCreativeFilteringReasons--; | 365 buildCounterCreativeFilteringReasons--; |
366 return o; | 366 return o; |
367 } | 367 } |
368 | 368 |
369 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { | 369 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { |
370 buildCounterCreativeFilteringReasons++; | 370 buildCounterCreativeFilteringReasons++; |
371 if (buildCounterCreativeFilteringReasons < 3) { | 371 if (buildCounterCreativeFilteringReasons < 3) { |
372 unittest.expect(o.date, unittest.equals('foo')); | 372 unittest.expect(o.date, unittest.equals('foo')); |
373 checkUnnamed548(o.reasons); | 373 checkUnnamed576(o.reasons); |
374 } | 374 } |
375 buildCounterCreativeFilteringReasons--; | 375 buildCounterCreativeFilteringReasons--; |
376 } | 376 } |
377 | 377 |
378 buildUnnamed549() { | 378 buildUnnamed577() { |
379 var o = new core.List<core.int>(); | 379 var o = new core.List<core.int>(); |
380 o.add(42); | 380 o.add(42); |
381 o.add(42); | 381 o.add(42); |
382 return o; | 382 return o; |
383 } | 383 } |
384 | 384 |
385 checkUnnamed549(core.List<core.int> o) { | 385 checkUnnamed577(core.List<core.int> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
387 unittest.expect(o[0], unittest.equals(42)); | 387 unittest.expect(o[0], unittest.equals(42)); |
388 unittest.expect(o[1], unittest.equals(42)); | 388 unittest.expect(o[1], unittest.equals(42)); |
389 } | 389 } |
390 | 390 |
391 buildUnnamed550() { | 391 buildUnnamed578() { |
392 var o = new core.List<core.int>(); | 392 var o = new core.List<core.int>(); |
393 o.add(42); | 393 o.add(42); |
394 o.add(42); | 394 o.add(42); |
395 return o; | 395 return o; |
396 } | 396 } |
397 | 397 |
398 checkUnnamed550(core.List<core.int> o) { | 398 checkUnnamed578(core.List<core.int> o) { |
399 unittest.expect(o, unittest.hasLength(2)); | 399 unittest.expect(o, unittest.hasLength(2)); |
400 unittest.expect(o[0], unittest.equals(42)); | 400 unittest.expect(o[0], unittest.equals(42)); |
401 unittest.expect(o[1], unittest.equals(42)); | 401 unittest.expect(o[1], unittest.equals(42)); |
402 } | 402 } |
403 | 403 |
404 buildUnnamed551() { | 404 buildUnnamed579() { |
405 var o = new core.List<core.int>(); | 405 var o = new core.List<core.int>(); |
406 o.add(42); | 406 o.add(42); |
407 o.add(42); | 407 o.add(42); |
408 return o; | 408 return o; |
409 } | 409 } |
410 | 410 |
411 checkUnnamed551(core.List<core.int> o) { | 411 checkUnnamed579(core.List<core.int> o) { |
412 unittest.expect(o, unittest.hasLength(2)); | 412 unittest.expect(o, unittest.hasLength(2)); |
413 unittest.expect(o[0], unittest.equals(42)); | 413 unittest.expect(o[0], unittest.equals(42)); |
414 unittest.expect(o[1], unittest.equals(42)); | 414 unittest.expect(o[1], unittest.equals(42)); |
415 } | 415 } |
416 | 416 |
417 buildUnnamed552() { | 417 buildUnnamed580() { |
418 var o = new core.List<core.int>(); | 418 var o = new core.List<core.int>(); |
419 o.add(42); | 419 o.add(42); |
420 o.add(42); | 420 o.add(42); |
421 return o; | 421 return o; |
422 } | 422 } |
423 | 423 |
424 checkUnnamed552(core.List<core.int> o) { | 424 checkUnnamed580(core.List<core.int> o) { |
425 unittest.expect(o, unittest.hasLength(2)); | 425 unittest.expect(o, unittest.hasLength(2)); |
426 unittest.expect(o[0], unittest.equals(42)); | 426 unittest.expect(o[0], unittest.equals(42)); |
427 unittest.expect(o[1], unittest.equals(42)); | 427 unittest.expect(o[1], unittest.equals(42)); |
428 } | 428 } |
429 | 429 |
430 core.int buildCounterCreative = 0; | 430 core.int buildCounterCreative = 0; |
431 buildCreative() { | 431 buildCreative() { |
432 var o = new api.Creative(); | 432 var o = new api.Creative(); |
433 buildCounterCreative++; | 433 buildCounterCreative++; |
434 if (buildCounterCreative < 3) { | 434 if (buildCounterCreative < 3) { |
435 o.HTMLSnippet = "foo"; | 435 o.HTMLSnippet = "foo"; |
436 o.accountId = 42; | 436 o.accountId = 42; |
437 o.advertiserId = buildUnnamed541(); | 437 o.advertiserId = buildUnnamed569(); |
438 o.advertiserName = "foo"; | 438 o.advertiserName = "foo"; |
439 o.agencyId = "foo"; | 439 o.agencyId = "foo"; |
440 o.attribute = buildUnnamed542(); | 440 o.attribute = buildUnnamed570(); |
441 o.buyerCreativeId = "foo"; | 441 o.buyerCreativeId = "foo"; |
442 o.clickThroughUrl = buildUnnamed543(); | 442 o.clickThroughUrl = buildUnnamed571(); |
443 o.corrections = buildUnnamed545(); | 443 o.corrections = buildUnnamed573(); |
444 o.disapprovalReasons = buildUnnamed547(); | 444 o.disapprovalReasons = buildUnnamed575(); |
445 o.filteringReasons = buildCreativeFilteringReasons(); | 445 o.filteringReasons = buildCreativeFilteringReasons(); |
446 o.height = 42; | 446 o.height = 42; |
447 o.kind = "foo"; | 447 o.kind = "foo"; |
448 o.productCategories = buildUnnamed549(); | 448 o.productCategories = buildUnnamed577(); |
449 o.restrictedCategories = buildUnnamed550(); | 449 o.restrictedCategories = buildUnnamed578(); |
450 o.sensitiveCategories = buildUnnamed551(); | 450 o.sensitiveCategories = buildUnnamed579(); |
451 o.status = "foo"; | 451 o.status = "foo"; |
452 o.vendorType = buildUnnamed552(); | 452 o.vendorType = buildUnnamed580(); |
453 o.videoURL = "foo"; | 453 o.videoURL = "foo"; |
454 o.width = 42; | 454 o.width = 42; |
455 } | 455 } |
456 buildCounterCreative--; | 456 buildCounterCreative--; |
457 return o; | 457 return o; |
458 } | 458 } |
459 | 459 |
460 checkCreative(api.Creative o) { | 460 checkCreative(api.Creative o) { |
461 buildCounterCreative++; | 461 buildCounterCreative++; |
462 if (buildCounterCreative < 3) { | 462 if (buildCounterCreative < 3) { |
463 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); | 463 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); |
464 unittest.expect(o.accountId, unittest.equals(42)); | 464 unittest.expect(o.accountId, unittest.equals(42)); |
465 checkUnnamed541(o.advertiserId); | 465 checkUnnamed569(o.advertiserId); |
466 unittest.expect(o.advertiserName, unittest.equals('foo')); | 466 unittest.expect(o.advertiserName, unittest.equals('foo')); |
467 unittest.expect(o.agencyId, unittest.equals('foo')); | 467 unittest.expect(o.agencyId, unittest.equals('foo')); |
468 checkUnnamed542(o.attribute); | 468 checkUnnamed570(o.attribute); |
469 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); | 469 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); |
470 checkUnnamed543(o.clickThroughUrl); | 470 checkUnnamed571(o.clickThroughUrl); |
471 checkUnnamed545(o.corrections); | 471 checkUnnamed573(o.corrections); |
472 checkUnnamed547(o.disapprovalReasons); | 472 checkUnnamed575(o.disapprovalReasons); |
473 checkCreativeFilteringReasons(o.filteringReasons); | 473 checkCreativeFilteringReasons(o.filteringReasons); |
474 unittest.expect(o.height, unittest.equals(42)); | 474 unittest.expect(o.height, unittest.equals(42)); |
475 unittest.expect(o.kind, unittest.equals('foo')); | 475 unittest.expect(o.kind, unittest.equals('foo')); |
476 checkUnnamed549(o.productCategories); | 476 checkUnnamed577(o.productCategories); |
477 checkUnnamed550(o.restrictedCategories); | 477 checkUnnamed578(o.restrictedCategories); |
478 checkUnnamed551(o.sensitiveCategories); | 478 checkUnnamed579(o.sensitiveCategories); |
479 unittest.expect(o.status, unittest.equals('foo')); | 479 unittest.expect(o.status, unittest.equals('foo')); |
480 checkUnnamed552(o.vendorType); | 480 checkUnnamed580(o.vendorType); |
481 unittest.expect(o.videoURL, unittest.equals('foo')); | 481 unittest.expect(o.videoURL, unittest.equals('foo')); |
482 unittest.expect(o.width, unittest.equals(42)); | 482 unittest.expect(o.width, unittest.equals(42)); |
483 } | 483 } |
484 buildCounterCreative--; | 484 buildCounterCreative--; |
485 } | 485 } |
486 | 486 |
487 buildUnnamed553() { | 487 buildUnnamed581() { |
488 var o = new core.List<api.Creative>(); | 488 var o = new core.List<api.Creative>(); |
489 o.add(buildCreative()); | 489 o.add(buildCreative()); |
490 o.add(buildCreative()); | 490 o.add(buildCreative()); |
491 return o; | 491 return o; |
492 } | 492 } |
493 | 493 |
494 checkUnnamed553(core.List<api.Creative> o) { | 494 checkUnnamed581(core.List<api.Creative> o) { |
495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
496 checkCreative(o[0]); | 496 checkCreative(o[0]); |
497 checkCreative(o[1]); | 497 checkCreative(o[1]); |
498 } | 498 } |
499 | 499 |
500 core.int buildCounterCreativesList = 0; | 500 core.int buildCounterCreativesList = 0; |
501 buildCreativesList() { | 501 buildCreativesList() { |
502 var o = new api.CreativesList(); | 502 var o = new api.CreativesList(); |
503 buildCounterCreativesList++; | 503 buildCounterCreativesList++; |
504 if (buildCounterCreativesList < 3) { | 504 if (buildCounterCreativesList < 3) { |
505 o.items = buildUnnamed553(); | 505 o.items = buildUnnamed581(); |
506 o.kind = "foo"; | 506 o.kind = "foo"; |
507 o.nextPageToken = "foo"; | 507 o.nextPageToken = "foo"; |
508 } | 508 } |
509 buildCounterCreativesList--; | 509 buildCounterCreativesList--; |
510 return o; | 510 return o; |
511 } | 511 } |
512 | 512 |
513 checkCreativesList(api.CreativesList o) { | 513 checkCreativesList(api.CreativesList o) { |
514 buildCounterCreativesList++; | 514 buildCounterCreativesList++; |
515 if (buildCounterCreativesList < 3) { | 515 if (buildCounterCreativesList < 3) { |
516 checkUnnamed553(o.items); | 516 checkUnnamed581(o.items); |
517 unittest.expect(o.kind, unittest.equals('foo')); | 517 unittest.expect(o.kind, unittest.equals('foo')); |
518 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 518 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
519 } | 519 } |
520 buildCounterCreativesList--; | 520 buildCounterCreativesList--; |
521 } | 521 } |
522 | 522 |
523 core.int buildCounterDirectDeal = 0; | 523 core.int buildCounterDirectDeal = 0; |
524 buildDirectDeal() { | 524 buildDirectDeal() { |
525 var o = new api.DirectDeal(); | 525 var o = new api.DirectDeal(); |
526 buildCounterDirectDeal++; | 526 buildCounterDirectDeal++; |
(...skipping 27 matching lines...) Expand all Loading... |
554 unittest.expect(o.kind, unittest.equals('foo')); | 554 unittest.expect(o.kind, unittest.equals('foo')); |
555 unittest.expect(o.name, unittest.equals('foo')); | 555 unittest.expect(o.name, unittest.equals('foo')); |
556 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); | 556 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); |
557 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); | 557 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); |
558 unittest.expect(o.sellerNetwork, unittest.equals('foo')); | 558 unittest.expect(o.sellerNetwork, unittest.equals('foo')); |
559 unittest.expect(o.startTime, unittest.equals('foo')); | 559 unittest.expect(o.startTime, unittest.equals('foo')); |
560 } | 560 } |
561 buildCounterDirectDeal--; | 561 buildCounterDirectDeal--; |
562 } | 562 } |
563 | 563 |
564 buildUnnamed554() { | 564 buildUnnamed582() { |
565 var o = new core.List<api.DirectDeal>(); | 565 var o = new core.List<api.DirectDeal>(); |
566 o.add(buildDirectDeal()); | 566 o.add(buildDirectDeal()); |
567 o.add(buildDirectDeal()); | 567 o.add(buildDirectDeal()); |
568 return o; | 568 return o; |
569 } | 569 } |
570 | 570 |
571 checkUnnamed554(core.List<api.DirectDeal> o) { | 571 checkUnnamed582(core.List<api.DirectDeal> o) { |
572 unittest.expect(o, unittest.hasLength(2)); | 572 unittest.expect(o, unittest.hasLength(2)); |
573 checkDirectDeal(o[0]); | 573 checkDirectDeal(o[0]); |
574 checkDirectDeal(o[1]); | 574 checkDirectDeal(o[1]); |
575 } | 575 } |
576 | 576 |
577 core.int buildCounterDirectDealsList = 0; | 577 core.int buildCounterDirectDealsList = 0; |
578 buildDirectDealsList() { | 578 buildDirectDealsList() { |
579 var o = new api.DirectDealsList(); | 579 var o = new api.DirectDealsList(); |
580 buildCounterDirectDealsList++; | 580 buildCounterDirectDealsList++; |
581 if (buildCounterDirectDealsList < 3) { | 581 if (buildCounterDirectDealsList < 3) { |
582 o.directDeals = buildUnnamed554(); | 582 o.directDeals = buildUnnamed582(); |
583 o.kind = "foo"; | 583 o.kind = "foo"; |
584 } | 584 } |
585 buildCounterDirectDealsList--; | 585 buildCounterDirectDealsList--; |
586 return o; | 586 return o; |
587 } | 587 } |
588 | 588 |
589 checkDirectDealsList(api.DirectDealsList o) { | 589 checkDirectDealsList(api.DirectDealsList o) { |
590 buildCounterDirectDealsList++; | 590 buildCounterDirectDealsList++; |
591 if (buildCounterDirectDealsList < 3) { | 591 if (buildCounterDirectDealsList < 3) { |
592 checkUnnamed554(o.directDeals); | 592 checkUnnamed582(o.directDeals); |
593 unittest.expect(o.kind, unittest.equals('foo')); | 593 unittest.expect(o.kind, unittest.equals('foo')); |
594 } | 594 } |
595 buildCounterDirectDealsList--; | 595 buildCounterDirectDealsList--; |
596 } | 596 } |
597 | 597 |
598 buildUnnamed555() { | 598 buildUnnamed583() { |
599 var o = new core.List<core.Object>(); | 599 var o = new core.List<core.Object>(); |
600 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 600 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
601 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 601 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
602 return o; | 602 return o; |
603 } | 603 } |
604 | 604 |
605 checkUnnamed555(core.List<core.Object> o) { | 605 checkUnnamed583(core.List<core.Object> o) { |
606 unittest.expect(o, unittest.hasLength(2)); | 606 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')); | 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')); |
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')); | 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')); |
609 } | 609 } |
610 | 610 |
611 buildUnnamed556() { | 611 buildUnnamed584() { |
612 var o = new core.List<core.Object>(); | 612 var o = new core.List<core.Object>(); |
613 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 613 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
614 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 614 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
615 return o; | 615 return o; |
616 } | 616 } |
617 | 617 |
618 checkUnnamed556(core.List<core.Object> o) { | 618 checkUnnamed584(core.List<core.Object> o) { |
619 unittest.expect(o, unittest.hasLength(2)); | 619 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')); | 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')); |
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')); | 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')); |
622 } | 622 } |
623 | 623 |
624 buildUnnamed557() { | 624 buildUnnamed585() { |
625 var o = new core.List<core.Object>(); | 625 var o = new core.List<core.Object>(); |
626 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 626 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
627 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 627 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
628 return o; | 628 return o; |
629 } | 629 } |
630 | 630 |
631 checkUnnamed557(core.List<core.Object> o) { | 631 checkUnnamed585(core.List<core.Object> o) { |
632 unittest.expect(o, unittest.hasLength(2)); | 632 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')); | 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')); |
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')); | 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')); |
635 } | 635 } |
636 | 636 |
637 buildUnnamed558() { | 637 buildUnnamed586() { |
638 var o = new core.List<core.Object>(); | 638 var o = new core.List<core.Object>(); |
639 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 639 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
640 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 640 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
641 return o; | 641 return o; |
642 } | 642 } |
643 | 643 |
644 checkUnnamed558(core.List<core.Object> o) { | 644 checkUnnamed586(core.List<core.Object> o) { |
645 unittest.expect(o, unittest.hasLength(2)); | 645 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')); | 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')); |
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')); | 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')); |
648 } | 648 } |
649 | 649 |
650 core.int buildCounterPerformanceReport = 0; | 650 core.int buildCounterPerformanceReport = 0; |
651 buildPerformanceReport() { | 651 buildPerformanceReport() { |
652 var o = new api.PerformanceReport(); | 652 var o = new api.PerformanceReport(); |
653 buildCounterPerformanceReport++; | 653 buildCounterPerformanceReport++; |
654 if (buildCounterPerformanceReport < 3) { | 654 if (buildCounterPerformanceReport < 3) { |
655 o.calloutStatusRate = buildUnnamed555(); | 655 o.calloutStatusRate = buildUnnamed583(); |
656 o.cookieMatcherStatusRate = buildUnnamed556(); | 656 o.cookieMatcherStatusRate = buildUnnamed584(); |
657 o.creativeStatusRate = buildUnnamed557(); | 657 o.creativeStatusRate = buildUnnamed585(); |
658 o.hostedMatchStatusRate = buildUnnamed558(); | 658 o.hostedMatchStatusRate = buildUnnamed586(); |
659 o.kind = "foo"; | 659 o.kind = "foo"; |
660 o.latency50thPercentile = 42.0; | 660 o.latency50thPercentile = 42.0; |
661 o.latency85thPercentile = 42.0; | 661 o.latency85thPercentile = 42.0; |
662 o.latency95thPercentile = 42.0; | 662 o.latency95thPercentile = 42.0; |
663 o.noQuotaInRegion = 42.0; | 663 o.noQuotaInRegion = 42.0; |
664 o.outOfQuota = 42.0; | 664 o.outOfQuota = 42.0; |
665 o.pixelMatchRequests = 42.0; | 665 o.pixelMatchRequests = 42.0; |
666 o.pixelMatchResponses = 42.0; | 666 o.pixelMatchResponses = 42.0; |
667 o.quotaConfiguredLimit = 42.0; | 667 o.quotaConfiguredLimit = 42.0; |
668 o.quotaThrottledLimit = 42.0; | 668 o.quotaThrottledLimit = 42.0; |
669 o.region = "foo"; | 669 o.region = "foo"; |
670 o.timestamp = "foo"; | 670 o.timestamp = "foo"; |
671 } | 671 } |
672 buildCounterPerformanceReport--; | 672 buildCounterPerformanceReport--; |
673 return o; | 673 return o; |
674 } | 674 } |
675 | 675 |
676 checkPerformanceReport(api.PerformanceReport o) { | 676 checkPerformanceReport(api.PerformanceReport o) { |
677 buildCounterPerformanceReport++; | 677 buildCounterPerformanceReport++; |
678 if (buildCounterPerformanceReport < 3) { | 678 if (buildCounterPerformanceReport < 3) { |
679 checkUnnamed555(o.calloutStatusRate); | 679 checkUnnamed583(o.calloutStatusRate); |
680 checkUnnamed556(o.cookieMatcherStatusRate); | 680 checkUnnamed584(o.cookieMatcherStatusRate); |
681 checkUnnamed557(o.creativeStatusRate); | 681 checkUnnamed585(o.creativeStatusRate); |
682 checkUnnamed558(o.hostedMatchStatusRate); | 682 checkUnnamed586(o.hostedMatchStatusRate); |
683 unittest.expect(o.kind, unittest.equals('foo')); | 683 unittest.expect(o.kind, unittest.equals('foo')); |
684 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); | 684 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); |
685 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); | 685 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); |
686 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); | 686 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); |
687 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); | 687 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); |
688 unittest.expect(o.outOfQuota, unittest.equals(42.0)); | 688 unittest.expect(o.outOfQuota, unittest.equals(42.0)); |
689 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); | 689 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); |
690 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); | 690 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); |
691 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); | 691 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); |
692 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); | 692 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); |
693 unittest.expect(o.region, unittest.equals('foo')); | 693 unittest.expect(o.region, unittest.equals('foo')); |
694 unittest.expect(o.timestamp, unittest.equals('foo')); | 694 unittest.expect(o.timestamp, unittest.equals('foo')); |
695 } | 695 } |
696 buildCounterPerformanceReport--; | 696 buildCounterPerformanceReport--; |
697 } | 697 } |
698 | 698 |
699 buildUnnamed559() { | 699 buildUnnamed587() { |
700 var o = new core.List<api.PerformanceReport>(); | 700 var o = new core.List<api.PerformanceReport>(); |
701 o.add(buildPerformanceReport()); | 701 o.add(buildPerformanceReport()); |
702 o.add(buildPerformanceReport()); | 702 o.add(buildPerformanceReport()); |
703 return o; | 703 return o; |
704 } | 704 } |
705 | 705 |
706 checkUnnamed559(core.List<api.PerformanceReport> o) { | 706 checkUnnamed587(core.List<api.PerformanceReport> o) { |
707 unittest.expect(o, unittest.hasLength(2)); | 707 unittest.expect(o, unittest.hasLength(2)); |
708 checkPerformanceReport(o[0]); | 708 checkPerformanceReport(o[0]); |
709 checkPerformanceReport(o[1]); | 709 checkPerformanceReport(o[1]); |
710 } | 710 } |
711 | 711 |
712 core.int buildCounterPerformanceReportList = 0; | 712 core.int buildCounterPerformanceReportList = 0; |
713 buildPerformanceReportList() { | 713 buildPerformanceReportList() { |
714 var o = new api.PerformanceReportList(); | 714 var o = new api.PerformanceReportList(); |
715 buildCounterPerformanceReportList++; | 715 buildCounterPerformanceReportList++; |
716 if (buildCounterPerformanceReportList < 3) { | 716 if (buildCounterPerformanceReportList < 3) { |
717 o.kind = "foo"; | 717 o.kind = "foo"; |
718 o.performanceReport = buildUnnamed559(); | 718 o.performanceReport = buildUnnamed587(); |
719 } | 719 } |
720 buildCounterPerformanceReportList--; | 720 buildCounterPerformanceReportList--; |
721 return o; | 721 return o; |
722 } | 722 } |
723 | 723 |
724 checkPerformanceReportList(api.PerformanceReportList o) { | 724 checkPerformanceReportList(api.PerformanceReportList o) { |
725 buildCounterPerformanceReportList++; | 725 buildCounterPerformanceReportList++; |
726 if (buildCounterPerformanceReportList < 3) { | 726 if (buildCounterPerformanceReportList < 3) { |
727 unittest.expect(o.kind, unittest.equals('foo')); | 727 unittest.expect(o.kind, unittest.equals('foo')); |
728 checkUnnamed559(o.performanceReport); | 728 checkUnnamed587(o.performanceReport); |
729 } | 729 } |
730 buildCounterPerformanceReportList--; | 730 buildCounterPerformanceReportList--; |
731 } | 731 } |
732 | 732 |
733 buildUnnamed560() { | 733 buildUnnamed588() { |
734 var o = new core.List<core.String>(); | 734 var o = new core.List<core.String>(); |
735 o.add("foo"); | 735 o.add("foo"); |
736 o.add("foo"); | 736 o.add("foo"); |
737 return o; | 737 return o; |
738 } | 738 } |
739 | 739 |
740 checkUnnamed560(core.List<core.String> o) { | 740 checkUnnamed588(core.List<core.String> o) { |
741 unittest.expect(o, unittest.hasLength(2)); | 741 unittest.expect(o, unittest.hasLength(2)); |
742 unittest.expect(o[0], unittest.equals('foo')); | 742 unittest.expect(o[0], unittest.equals('foo')); |
743 unittest.expect(o[1], unittest.equals('foo')); | 743 unittest.expect(o[1], unittest.equals('foo')); |
744 } | 744 } |
745 | 745 |
746 core.int buildCounterPretargetingConfigDimensions = 0; | 746 core.int buildCounterPretargetingConfigDimensions = 0; |
747 buildPretargetingConfigDimensions() { | 747 buildPretargetingConfigDimensions() { |
748 var o = new api.PretargetingConfigDimensions(); | 748 var o = new api.PretargetingConfigDimensions(); |
749 buildCounterPretargetingConfigDimensions++; | 749 buildCounterPretargetingConfigDimensions++; |
750 if (buildCounterPretargetingConfigDimensions < 3) { | 750 if (buildCounterPretargetingConfigDimensions < 3) { |
751 o.height = "foo"; | 751 o.height = "foo"; |
752 o.width = "foo"; | 752 o.width = "foo"; |
753 } | 753 } |
754 buildCounterPretargetingConfigDimensions--; | 754 buildCounterPretargetingConfigDimensions--; |
755 return o; | 755 return o; |
756 } | 756 } |
757 | 757 |
758 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { | 758 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { |
759 buildCounterPretargetingConfigDimensions++; | 759 buildCounterPretargetingConfigDimensions++; |
760 if (buildCounterPretargetingConfigDimensions < 3) { | 760 if (buildCounterPretargetingConfigDimensions < 3) { |
761 unittest.expect(o.height, unittest.equals('foo')); | 761 unittest.expect(o.height, unittest.equals('foo')); |
762 unittest.expect(o.width, unittest.equals('foo')); | 762 unittest.expect(o.width, unittest.equals('foo')); |
763 } | 763 } |
764 buildCounterPretargetingConfigDimensions--; | 764 buildCounterPretargetingConfigDimensions--; |
765 } | 765 } |
766 | 766 |
767 buildUnnamed561() { | 767 buildUnnamed589() { |
768 var o = new core.List<api.PretargetingConfigDimensions>(); | 768 var o = new core.List<api.PretargetingConfigDimensions>(); |
769 o.add(buildPretargetingConfigDimensions()); | 769 o.add(buildPretargetingConfigDimensions()); |
770 o.add(buildPretargetingConfigDimensions()); | 770 o.add(buildPretargetingConfigDimensions()); |
771 return o; | 771 return o; |
772 } | 772 } |
773 | 773 |
774 checkUnnamed561(core.List<api.PretargetingConfigDimensions> o) { | 774 checkUnnamed589(core.List<api.PretargetingConfigDimensions> o) { |
775 unittest.expect(o, unittest.hasLength(2)); | 775 unittest.expect(o, unittest.hasLength(2)); |
776 checkPretargetingConfigDimensions(o[0]); | 776 checkPretargetingConfigDimensions(o[0]); |
777 checkPretargetingConfigDimensions(o[1]); | 777 checkPretargetingConfigDimensions(o[1]); |
778 } | 778 } |
779 | 779 |
780 buildUnnamed562() { | 780 buildUnnamed590() { |
781 var o = new core.List<core.String>(); | 781 var o = new core.List<core.String>(); |
782 o.add("foo"); | 782 o.add("foo"); |
783 o.add("foo"); | 783 o.add("foo"); |
784 return o; | 784 return o; |
785 } | 785 } |
786 | 786 |
787 checkUnnamed562(core.List<core.String> o) { | 787 checkUnnamed590(core.List<core.String> o) { |
788 unittest.expect(o, unittest.hasLength(2)); | 788 unittest.expect(o, unittest.hasLength(2)); |
789 unittest.expect(o[0], unittest.equals('foo')); | 789 unittest.expect(o[0], unittest.equals('foo')); |
790 unittest.expect(o[1], unittest.equals('foo')); | 790 unittest.expect(o[1], unittest.equals('foo')); |
791 } | 791 } |
792 | 792 |
793 buildUnnamed563() { | 793 buildUnnamed591() { |
794 var o = new core.List<core.String>(); | 794 var o = new core.List<core.String>(); |
795 o.add("foo"); | 795 o.add("foo"); |
796 o.add("foo"); | 796 o.add("foo"); |
797 return o; | 797 return o; |
798 } | 798 } |
799 | 799 |
800 checkUnnamed563(core.List<core.String> o) { | 800 checkUnnamed591(core.List<core.String> o) { |
801 unittest.expect(o, unittest.hasLength(2)); | 801 unittest.expect(o, unittest.hasLength(2)); |
802 unittest.expect(o[0], unittest.equals('foo')); | 802 unittest.expect(o[0], unittest.equals('foo')); |
803 unittest.expect(o[1], unittest.equals('foo')); | 803 unittest.expect(o[1], unittest.equals('foo')); |
804 } | 804 } |
805 | 805 |
806 core.int buildCounterPretargetingConfigExcludedPlacements = 0; | 806 core.int buildCounterPretargetingConfigExcludedPlacements = 0; |
807 buildPretargetingConfigExcludedPlacements() { | 807 buildPretargetingConfigExcludedPlacements() { |
808 var o = new api.PretargetingConfigExcludedPlacements(); | 808 var o = new api.PretargetingConfigExcludedPlacements(); |
809 buildCounterPretargetingConfigExcludedPlacements++; | 809 buildCounterPretargetingConfigExcludedPlacements++; |
810 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 810 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
811 o.token = "foo"; | 811 o.token = "foo"; |
812 o.type = "foo"; | 812 o.type = "foo"; |
813 } | 813 } |
814 buildCounterPretargetingConfigExcludedPlacements--; | 814 buildCounterPretargetingConfigExcludedPlacements--; |
815 return o; | 815 return o; |
816 } | 816 } |
817 | 817 |
818 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { | 818 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { |
819 buildCounterPretargetingConfigExcludedPlacements++; | 819 buildCounterPretargetingConfigExcludedPlacements++; |
820 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 820 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
821 unittest.expect(o.token, unittest.equals('foo')); | 821 unittest.expect(o.token, unittest.equals('foo')); |
822 unittest.expect(o.type, unittest.equals('foo')); | 822 unittest.expect(o.type, unittest.equals('foo')); |
823 } | 823 } |
824 buildCounterPretargetingConfigExcludedPlacements--; | 824 buildCounterPretargetingConfigExcludedPlacements--; |
825 } | 825 } |
826 | 826 |
827 buildUnnamed564() { | 827 buildUnnamed592() { |
828 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); | 828 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); |
829 o.add(buildPretargetingConfigExcludedPlacements()); | 829 o.add(buildPretargetingConfigExcludedPlacements()); |
830 o.add(buildPretargetingConfigExcludedPlacements()); | 830 o.add(buildPretargetingConfigExcludedPlacements()); |
831 return o; | 831 return o; |
832 } | 832 } |
833 | 833 |
834 checkUnnamed564(core.List<api.PretargetingConfigExcludedPlacements> o) { | 834 checkUnnamed592(core.List<api.PretargetingConfigExcludedPlacements> o) { |
835 unittest.expect(o, unittest.hasLength(2)); | 835 unittest.expect(o, unittest.hasLength(2)); |
836 checkPretargetingConfigExcludedPlacements(o[0]); | 836 checkPretargetingConfigExcludedPlacements(o[0]); |
837 checkPretargetingConfigExcludedPlacements(o[1]); | 837 checkPretargetingConfigExcludedPlacements(o[1]); |
838 } | 838 } |
839 | 839 |
840 buildUnnamed565() { | 840 buildUnnamed593() { |
841 var o = new core.List<core.String>(); | 841 var o = new core.List<core.String>(); |
842 o.add("foo"); | 842 o.add("foo"); |
843 o.add("foo"); | 843 o.add("foo"); |
844 return o; | 844 return o; |
845 } | 845 } |
846 | 846 |
847 checkUnnamed565(core.List<core.String> o) { | 847 checkUnnamed593(core.List<core.String> o) { |
848 unittest.expect(o, unittest.hasLength(2)); | 848 unittest.expect(o, unittest.hasLength(2)); |
849 unittest.expect(o[0], unittest.equals('foo')); | 849 unittest.expect(o[0], unittest.equals('foo')); |
850 unittest.expect(o[1], unittest.equals('foo')); | 850 unittest.expect(o[1], unittest.equals('foo')); |
851 } | 851 } |
852 | 852 |
853 buildUnnamed566() { | 853 buildUnnamed594() { |
854 var o = new core.List<core.String>(); | 854 var o = new core.List<core.String>(); |
855 o.add("foo"); | 855 o.add("foo"); |
856 o.add("foo"); | 856 o.add("foo"); |
857 return o; | 857 return o; |
858 } | 858 } |
859 | 859 |
860 checkUnnamed566(core.List<core.String> o) { | 860 checkUnnamed594(core.List<core.String> o) { |
861 unittest.expect(o, unittest.hasLength(2)); | 861 unittest.expect(o, unittest.hasLength(2)); |
862 unittest.expect(o[0], unittest.equals('foo')); | 862 unittest.expect(o[0], unittest.equals('foo')); |
863 unittest.expect(o[1], unittest.equals('foo')); | 863 unittest.expect(o[1], unittest.equals('foo')); |
864 } | 864 } |
865 | 865 |
866 buildUnnamed567() { | 866 buildUnnamed595() { |
867 var o = new core.List<core.String>(); | 867 var o = new core.List<core.String>(); |
868 o.add("foo"); | 868 o.add("foo"); |
869 o.add("foo"); | 869 o.add("foo"); |
870 return o; | 870 return o; |
871 } | 871 } |
872 | 872 |
873 checkUnnamed567(core.List<core.String> o) { | 873 checkUnnamed595(core.List<core.String> o) { |
874 unittest.expect(o, unittest.hasLength(2)); | 874 unittest.expect(o, unittest.hasLength(2)); |
875 unittest.expect(o[0], unittest.equals('foo')); | 875 unittest.expect(o[0], unittest.equals('foo')); |
876 unittest.expect(o[1], unittest.equals('foo')); | 876 unittest.expect(o[1], unittest.equals('foo')); |
877 } | 877 } |
878 | 878 |
879 buildUnnamed568() { | 879 buildUnnamed596() { |
880 var o = new core.List<core.String>(); | 880 var o = new core.List<core.String>(); |
881 o.add("foo"); | 881 o.add("foo"); |
882 o.add("foo"); | 882 o.add("foo"); |
883 return o; | 883 return o; |
884 } | 884 } |
885 | 885 |
886 checkUnnamed568(core.List<core.String> o) { | 886 checkUnnamed596(core.List<core.String> o) { |
887 unittest.expect(o, unittest.hasLength(2)); | 887 unittest.expect(o, unittest.hasLength(2)); |
888 unittest.expect(o[0], unittest.equals('foo')); | 888 unittest.expect(o[0], unittest.equals('foo')); |
889 unittest.expect(o[1], unittest.equals('foo')); | 889 unittest.expect(o[1], unittest.equals('foo')); |
890 } | 890 } |
891 | 891 |
892 buildUnnamed569() { | 892 buildUnnamed597() { |
893 var o = new core.List<core.String>(); | 893 var o = new core.List<core.String>(); |
894 o.add("foo"); | 894 o.add("foo"); |
895 o.add("foo"); | 895 o.add("foo"); |
896 return o; | 896 return o; |
897 } | 897 } |
898 | 898 |
899 checkUnnamed569(core.List<core.String> o) { | 899 checkUnnamed597(core.List<core.String> o) { |
900 unittest.expect(o, unittest.hasLength(2)); | 900 unittest.expect(o, unittest.hasLength(2)); |
901 unittest.expect(o[0], unittest.equals('foo')); | 901 unittest.expect(o[0], unittest.equals('foo')); |
902 unittest.expect(o[1], unittest.equals('foo')); | 902 unittest.expect(o[1], unittest.equals('foo')); |
903 } | 903 } |
904 | 904 |
905 buildUnnamed570() { | 905 buildUnnamed598() { |
906 var o = new core.List<core.String>(); | 906 var o = new core.List<core.String>(); |
907 o.add("foo"); | 907 o.add("foo"); |
908 o.add("foo"); | 908 o.add("foo"); |
909 return o; | 909 return o; |
910 } | 910 } |
911 | 911 |
912 checkUnnamed570(core.List<core.String> o) { | 912 checkUnnamed598(core.List<core.String> o) { |
913 unittest.expect(o, unittest.hasLength(2)); | 913 unittest.expect(o, unittest.hasLength(2)); |
914 unittest.expect(o[0], unittest.equals('foo')); | 914 unittest.expect(o[0], unittest.equals('foo')); |
915 unittest.expect(o[1], unittest.equals('foo')); | 915 unittest.expect(o[1], unittest.equals('foo')); |
916 } | 916 } |
917 | 917 |
918 buildUnnamed571() { | 918 buildUnnamed599() { |
919 var o = new core.List<core.String>(); | 919 var o = new core.List<core.String>(); |
920 o.add("foo"); | 920 o.add("foo"); |
921 o.add("foo"); | 921 o.add("foo"); |
922 return o; | 922 return o; |
923 } | 923 } |
924 | 924 |
925 checkUnnamed571(core.List<core.String> o) { | 925 checkUnnamed599(core.List<core.String> o) { |
926 unittest.expect(o, unittest.hasLength(2)); | 926 unittest.expect(o, unittest.hasLength(2)); |
927 unittest.expect(o[0], unittest.equals('foo')); | 927 unittest.expect(o[0], unittest.equals('foo')); |
928 unittest.expect(o[1], unittest.equals('foo')); | 928 unittest.expect(o[1], unittest.equals('foo')); |
929 } | 929 } |
930 | 930 |
931 core.int buildCounterPretargetingConfigPlacements = 0; | 931 core.int buildCounterPretargetingConfigPlacements = 0; |
932 buildPretargetingConfigPlacements() { | 932 buildPretargetingConfigPlacements() { |
933 var o = new api.PretargetingConfigPlacements(); | 933 var o = new api.PretargetingConfigPlacements(); |
934 buildCounterPretargetingConfigPlacements++; | 934 buildCounterPretargetingConfigPlacements++; |
935 if (buildCounterPretargetingConfigPlacements < 3) { | 935 if (buildCounterPretargetingConfigPlacements < 3) { |
936 o.token = "foo"; | 936 o.token = "foo"; |
937 o.type = "foo"; | 937 o.type = "foo"; |
938 } | 938 } |
939 buildCounterPretargetingConfigPlacements--; | 939 buildCounterPretargetingConfigPlacements--; |
940 return o; | 940 return o; |
941 } | 941 } |
942 | 942 |
943 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { | 943 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { |
944 buildCounterPretargetingConfigPlacements++; | 944 buildCounterPretargetingConfigPlacements++; |
945 if (buildCounterPretargetingConfigPlacements < 3) { | 945 if (buildCounterPretargetingConfigPlacements < 3) { |
946 unittest.expect(o.token, unittest.equals('foo')); | 946 unittest.expect(o.token, unittest.equals('foo')); |
947 unittest.expect(o.type, unittest.equals('foo')); | 947 unittest.expect(o.type, unittest.equals('foo')); |
948 } | 948 } |
949 buildCounterPretargetingConfigPlacements--; | 949 buildCounterPretargetingConfigPlacements--; |
950 } | 950 } |
951 | 951 |
952 buildUnnamed572() { | 952 buildUnnamed600() { |
953 var o = new core.List<api.PretargetingConfigPlacements>(); | 953 var o = new core.List<api.PretargetingConfigPlacements>(); |
954 o.add(buildPretargetingConfigPlacements()); | 954 o.add(buildPretargetingConfigPlacements()); |
955 o.add(buildPretargetingConfigPlacements()); | 955 o.add(buildPretargetingConfigPlacements()); |
956 return o; | 956 return o; |
957 } | 957 } |
958 | 958 |
959 checkUnnamed572(core.List<api.PretargetingConfigPlacements> o) { | 959 checkUnnamed600(core.List<api.PretargetingConfigPlacements> o) { |
960 unittest.expect(o, unittest.hasLength(2)); | 960 unittest.expect(o, unittest.hasLength(2)); |
961 checkPretargetingConfigPlacements(o[0]); | 961 checkPretargetingConfigPlacements(o[0]); |
962 checkPretargetingConfigPlacements(o[1]); | 962 checkPretargetingConfigPlacements(o[1]); |
963 } | 963 } |
964 | 964 |
965 buildUnnamed573() { | 965 buildUnnamed601() { |
966 var o = new core.List<core.String>(); | 966 var o = new core.List<core.String>(); |
967 o.add("foo"); | 967 o.add("foo"); |
968 o.add("foo"); | 968 o.add("foo"); |
969 return o; | 969 return o; |
970 } | 970 } |
971 | 971 |
972 checkUnnamed573(core.List<core.String> o) { | 972 checkUnnamed601(core.List<core.String> o) { |
973 unittest.expect(o, unittest.hasLength(2)); | 973 unittest.expect(o, unittest.hasLength(2)); |
974 unittest.expect(o[0], unittest.equals('foo')); | 974 unittest.expect(o[0], unittest.equals('foo')); |
975 unittest.expect(o[1], unittest.equals('foo')); | 975 unittest.expect(o[1], unittest.equals('foo')); |
976 } | 976 } |
977 | 977 |
978 buildUnnamed574() { | 978 buildUnnamed602() { |
979 var o = new core.List<core.String>(); | 979 var o = new core.List<core.String>(); |
980 o.add("foo"); | 980 o.add("foo"); |
981 o.add("foo"); | 981 o.add("foo"); |
982 return o; | 982 return o; |
983 } | 983 } |
984 | 984 |
985 checkUnnamed574(core.List<core.String> o) { | 985 checkUnnamed602(core.List<core.String> o) { |
986 unittest.expect(o, unittest.hasLength(2)); | 986 unittest.expect(o, unittest.hasLength(2)); |
987 unittest.expect(o[0], unittest.equals('foo')); | 987 unittest.expect(o[0], unittest.equals('foo')); |
988 unittest.expect(o[1], unittest.equals('foo')); | 988 unittest.expect(o[1], unittest.equals('foo')); |
989 } | 989 } |
990 | 990 |
991 buildUnnamed575() { | 991 buildUnnamed603() { |
992 var o = new core.List<core.String>(); | 992 var o = new core.List<core.String>(); |
993 o.add("foo"); | 993 o.add("foo"); |
994 o.add("foo"); | 994 o.add("foo"); |
995 return o; | 995 return o; |
996 } | 996 } |
997 | 997 |
998 checkUnnamed575(core.List<core.String> o) { | 998 checkUnnamed603(core.List<core.String> o) { |
999 unittest.expect(o, unittest.hasLength(2)); | 999 unittest.expect(o, unittest.hasLength(2)); |
1000 unittest.expect(o[0], unittest.equals('foo')); | 1000 unittest.expect(o[0], unittest.equals('foo')); |
1001 unittest.expect(o[1], unittest.equals('foo')); | 1001 unittest.expect(o[1], unittest.equals('foo')); |
1002 } | 1002 } |
1003 | 1003 |
1004 buildUnnamed576() { | 1004 buildUnnamed604() { |
1005 var o = new core.List<core.String>(); | 1005 var o = new core.List<core.String>(); |
1006 o.add("foo"); | 1006 o.add("foo"); |
1007 o.add("foo"); | 1007 o.add("foo"); |
1008 return o; | 1008 return o; |
1009 } | 1009 } |
1010 | 1010 |
1011 checkUnnamed576(core.List<core.String> o) { | 1011 checkUnnamed604(core.List<core.String> o) { |
1012 unittest.expect(o, unittest.hasLength(2)); | 1012 unittest.expect(o, unittest.hasLength(2)); |
1013 unittest.expect(o[0], unittest.equals('foo')); | 1013 unittest.expect(o[0], unittest.equals('foo')); |
1014 unittest.expect(o[1], unittest.equals('foo')); | 1014 unittest.expect(o[1], unittest.equals('foo')); |
1015 } | 1015 } |
1016 | 1016 |
1017 buildUnnamed577() { | 1017 buildUnnamed605() { |
1018 var o = new core.List<core.String>(); | 1018 var o = new core.List<core.String>(); |
1019 o.add("foo"); | 1019 o.add("foo"); |
1020 o.add("foo"); | 1020 o.add("foo"); |
1021 return o; | 1021 return o; |
1022 } | 1022 } |
1023 | 1023 |
1024 checkUnnamed577(core.List<core.String> o) { | 1024 checkUnnamed605(core.List<core.String> o) { |
1025 unittest.expect(o, unittest.hasLength(2)); | 1025 unittest.expect(o, unittest.hasLength(2)); |
1026 unittest.expect(o[0], unittest.equals('foo')); | 1026 unittest.expect(o[0], unittest.equals('foo')); |
1027 unittest.expect(o[1], unittest.equals('foo')); | 1027 unittest.expect(o[1], unittest.equals('foo')); |
1028 } | 1028 } |
1029 | 1029 |
1030 core.int buildCounterPretargetingConfig = 0; | 1030 core.int buildCounterPretargetingConfig = 0; |
1031 buildPretargetingConfig() { | 1031 buildPretargetingConfig() { |
1032 var o = new api.PretargetingConfig(); | 1032 var o = new api.PretargetingConfig(); |
1033 buildCounterPretargetingConfig++; | 1033 buildCounterPretargetingConfig++; |
1034 if (buildCounterPretargetingConfig < 3) { | 1034 if (buildCounterPretargetingConfig < 3) { |
1035 o.billingId = "foo"; | 1035 o.billingId = "foo"; |
1036 o.configId = "foo"; | 1036 o.configId = "foo"; |
1037 o.configName = "foo"; | 1037 o.configName = "foo"; |
1038 o.creativeType = buildUnnamed560(); | 1038 o.creativeType = buildUnnamed588(); |
1039 o.dimensions = buildUnnamed561(); | 1039 o.dimensions = buildUnnamed589(); |
1040 o.excludedContentLabels = buildUnnamed562(); | 1040 o.excludedContentLabels = buildUnnamed590(); |
1041 o.excludedGeoCriteriaIds = buildUnnamed563(); | 1041 o.excludedGeoCriteriaIds = buildUnnamed591(); |
1042 o.excludedPlacements = buildUnnamed564(); | 1042 o.excludedPlacements = buildUnnamed592(); |
1043 o.excludedUserLists = buildUnnamed565(); | 1043 o.excludedUserLists = buildUnnamed593(); |
1044 o.excludedVerticals = buildUnnamed566(); | 1044 o.excludedVerticals = buildUnnamed594(); |
1045 o.geoCriteriaIds = buildUnnamed567(); | 1045 o.geoCriteriaIds = buildUnnamed595(); |
1046 o.isActive = true; | 1046 o.isActive = true; |
1047 o.kind = "foo"; | 1047 o.kind = "foo"; |
1048 o.languages = buildUnnamed568(); | 1048 o.languages = buildUnnamed596(); |
1049 o.mobileCarriers = buildUnnamed569(); | 1049 o.mobileCarriers = buildUnnamed597(); |
1050 o.mobileDevices = buildUnnamed570(); | 1050 o.mobileDevices = buildUnnamed598(); |
1051 o.mobileOperatingSystemVersions = buildUnnamed571(); | 1051 o.mobileOperatingSystemVersions = buildUnnamed599(); |
1052 o.placements = buildUnnamed572(); | 1052 o.placements = buildUnnamed600(); |
1053 o.platforms = buildUnnamed573(); | 1053 o.platforms = buildUnnamed601(); |
1054 o.supportedCreativeAttributes = buildUnnamed574(); | 1054 o.supportedCreativeAttributes = buildUnnamed602(); |
1055 o.userLists = buildUnnamed575(); | 1055 o.userLists = buildUnnamed603(); |
1056 o.vendorTypes = buildUnnamed576(); | 1056 o.vendorTypes = buildUnnamed604(); |
1057 o.verticals = buildUnnamed577(); | 1057 o.verticals = buildUnnamed605(); |
1058 } | 1058 } |
1059 buildCounterPretargetingConfig--; | 1059 buildCounterPretargetingConfig--; |
1060 return o; | 1060 return o; |
1061 } | 1061 } |
1062 | 1062 |
1063 checkPretargetingConfig(api.PretargetingConfig o) { | 1063 checkPretargetingConfig(api.PretargetingConfig o) { |
1064 buildCounterPretargetingConfig++; | 1064 buildCounterPretargetingConfig++; |
1065 if (buildCounterPretargetingConfig < 3) { | 1065 if (buildCounterPretargetingConfig < 3) { |
1066 unittest.expect(o.billingId, unittest.equals('foo')); | 1066 unittest.expect(o.billingId, unittest.equals('foo')); |
1067 unittest.expect(o.configId, unittest.equals('foo')); | 1067 unittest.expect(o.configId, unittest.equals('foo')); |
1068 unittest.expect(o.configName, unittest.equals('foo')); | 1068 unittest.expect(o.configName, unittest.equals('foo')); |
1069 checkUnnamed560(o.creativeType); | 1069 checkUnnamed588(o.creativeType); |
1070 checkUnnamed561(o.dimensions); | 1070 checkUnnamed589(o.dimensions); |
1071 checkUnnamed562(o.excludedContentLabels); | 1071 checkUnnamed590(o.excludedContentLabels); |
1072 checkUnnamed563(o.excludedGeoCriteriaIds); | 1072 checkUnnamed591(o.excludedGeoCriteriaIds); |
1073 checkUnnamed564(o.excludedPlacements); | 1073 checkUnnamed592(o.excludedPlacements); |
1074 checkUnnamed565(o.excludedUserLists); | 1074 checkUnnamed593(o.excludedUserLists); |
1075 checkUnnamed566(o.excludedVerticals); | 1075 checkUnnamed594(o.excludedVerticals); |
1076 checkUnnamed567(o.geoCriteriaIds); | 1076 checkUnnamed595(o.geoCriteriaIds); |
1077 unittest.expect(o.isActive, unittest.isTrue); | 1077 unittest.expect(o.isActive, unittest.isTrue); |
1078 unittest.expect(o.kind, unittest.equals('foo')); | 1078 unittest.expect(o.kind, unittest.equals('foo')); |
1079 checkUnnamed568(o.languages); | 1079 checkUnnamed596(o.languages); |
1080 checkUnnamed569(o.mobileCarriers); | 1080 checkUnnamed597(o.mobileCarriers); |
1081 checkUnnamed570(o.mobileDevices); | 1081 checkUnnamed598(o.mobileDevices); |
1082 checkUnnamed571(o.mobileOperatingSystemVersions); | 1082 checkUnnamed599(o.mobileOperatingSystemVersions); |
1083 checkUnnamed572(o.placements); | 1083 checkUnnamed600(o.placements); |
1084 checkUnnamed573(o.platforms); | 1084 checkUnnamed601(o.platforms); |
1085 checkUnnamed574(o.supportedCreativeAttributes); | 1085 checkUnnamed602(o.supportedCreativeAttributes); |
1086 checkUnnamed575(o.userLists); | 1086 checkUnnamed603(o.userLists); |
1087 checkUnnamed576(o.vendorTypes); | 1087 checkUnnamed604(o.vendorTypes); |
1088 checkUnnamed577(o.verticals); | 1088 checkUnnamed605(o.verticals); |
1089 } | 1089 } |
1090 buildCounterPretargetingConfig--; | 1090 buildCounterPretargetingConfig--; |
1091 } | 1091 } |
1092 | 1092 |
1093 buildUnnamed578() { | 1093 buildUnnamed606() { |
1094 var o = new core.List<api.PretargetingConfig>(); | 1094 var o = new core.List<api.PretargetingConfig>(); |
1095 o.add(buildPretargetingConfig()); | 1095 o.add(buildPretargetingConfig()); |
1096 o.add(buildPretargetingConfig()); | 1096 o.add(buildPretargetingConfig()); |
1097 return o; | 1097 return o; |
1098 } | 1098 } |
1099 | 1099 |
1100 checkUnnamed578(core.List<api.PretargetingConfig> o) { | 1100 checkUnnamed606(core.List<api.PretargetingConfig> o) { |
1101 unittest.expect(o, unittest.hasLength(2)); | 1101 unittest.expect(o, unittest.hasLength(2)); |
1102 checkPretargetingConfig(o[0]); | 1102 checkPretargetingConfig(o[0]); |
1103 checkPretargetingConfig(o[1]); | 1103 checkPretargetingConfig(o[1]); |
1104 } | 1104 } |
1105 | 1105 |
1106 core.int buildCounterPretargetingConfigList = 0; | 1106 core.int buildCounterPretargetingConfigList = 0; |
1107 buildPretargetingConfigList() { | 1107 buildPretargetingConfigList() { |
1108 var o = new api.PretargetingConfigList(); | 1108 var o = new api.PretargetingConfigList(); |
1109 buildCounterPretargetingConfigList++; | 1109 buildCounterPretargetingConfigList++; |
1110 if (buildCounterPretargetingConfigList < 3) { | 1110 if (buildCounterPretargetingConfigList < 3) { |
1111 o.items = buildUnnamed578(); | 1111 o.items = buildUnnamed606(); |
1112 o.kind = "foo"; | 1112 o.kind = "foo"; |
1113 } | 1113 } |
1114 buildCounterPretargetingConfigList--; | 1114 buildCounterPretargetingConfigList--; |
1115 return o; | 1115 return o; |
1116 } | 1116 } |
1117 | 1117 |
1118 checkPretargetingConfigList(api.PretargetingConfigList o) { | 1118 checkPretargetingConfigList(api.PretargetingConfigList o) { |
1119 buildCounterPretargetingConfigList++; | 1119 buildCounterPretargetingConfigList++; |
1120 if (buildCounterPretargetingConfigList < 3) { | 1120 if (buildCounterPretargetingConfigList < 3) { |
1121 checkUnnamed578(o.items); | 1121 checkUnnamed606(o.items); |
1122 unittest.expect(o.kind, unittest.equals('foo')); | 1122 unittest.expect(o.kind, unittest.equals('foo')); |
1123 } | 1123 } |
1124 buildCounterPretargetingConfigList--; | 1124 buildCounterPretargetingConfigList--; |
1125 } | 1125 } |
1126 | 1126 |
1127 buildUnnamed579() { | 1127 buildUnnamed607() { |
1128 var o = new core.List<core.int>(); | 1128 var o = new core.List<core.int>(); |
1129 o.add(42); | 1129 o.add(42); |
1130 o.add(42); | 1130 o.add(42); |
1131 return o; | 1131 return o; |
1132 } | 1132 } |
1133 | 1133 |
1134 checkUnnamed579(core.List<core.int> o) { | 1134 checkUnnamed607(core.List<core.int> o) { |
1135 unittest.expect(o, unittest.hasLength(2)); | 1135 unittest.expect(o, unittest.hasLength(2)); |
1136 unittest.expect(o[0], unittest.equals(42)); | 1136 unittest.expect(o[0], unittest.equals(42)); |
1137 unittest.expect(o[1], unittest.equals(42)); | 1137 unittest.expect(o[1], unittest.equals(42)); |
1138 } | 1138 } |
1139 | 1139 |
1140 buildUnnamed580() { | 1140 buildUnnamed608() { |
1141 var o = new core.List<core.String>(); | 1141 var o = new core.List<core.String>(); |
1142 o.add("foo"); | 1142 o.add("foo"); |
1143 o.add("foo"); | 1143 o.add("foo"); |
1144 return o; | 1144 return o; |
1145 } | 1145 } |
1146 | 1146 |
1147 checkUnnamed580(core.List<core.String> o) { | 1147 checkUnnamed608(core.List<core.String> o) { |
1148 unittest.expect(o, unittest.hasLength(2)); | 1148 unittest.expect(o, unittest.hasLength(2)); |
1149 unittest.expect(o[0], unittest.equals('foo')); | 1149 unittest.expect(o[0], unittest.equals('foo')); |
1150 unittest.expect(o[1], unittest.equals('foo')); | 1150 unittest.expect(o[1], unittest.equals('foo')); |
1151 } | 1151 } |
1152 | 1152 |
1153 | 1153 |
1154 main() { | 1154 main() { |
1155 unittest.group("obj-schema-AccountBidderLocation", () { | 1155 unittest.group("obj-schema-AccountBidderLocation", () { |
1156 unittest.test("to-json--from-json", () { | 1156 unittest.test("to-json--from-json", () { |
1157 var o = buildAccountBidderLocation(); | 1157 var o = buildAccountBidderLocation(); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 unittest.test("method--get", () { | 1336 unittest.test("method--get", () { |
1337 | 1337 |
1338 var mock = new common_test.HttpServerMock(); | 1338 var mock = new common_test.HttpServerMock(); |
1339 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; | 1339 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; |
1340 var arg_id = 42; | 1340 var arg_id = 42; |
1341 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1341 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1342 var path = (req.url).path; | 1342 var path = (req.url).path; |
1343 var pathOffset = 0; | 1343 var pathOffset = 0; |
1344 var index; | 1344 var index; |
1345 var subPart; | 1345 var subPart; |
1346 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1347 pathOffset += 22; | 1347 pathOffset += 1; |
| 1348 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1349 pathOffset += 21; |
1348 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); | 1350 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); |
1349 pathOffset += 9; | 1351 pathOffset += 9; |
1350 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1352 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1351 pathOffset = path.length; | 1353 pathOffset = path.length; |
1352 unittest.expect(subPart, unittest.equals("$arg_id")); | 1354 unittest.expect(subPart, unittest.equals("$arg_id")); |
1353 | 1355 |
1354 var query = (req.url).query; | 1356 var query = (req.url).query; |
1355 var queryOffset = 0; | 1357 var queryOffset = 0; |
1356 var queryMap = {}; | 1358 var queryMap = {}; |
1357 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1359 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 24 matching lines...) Expand all Loading... |
1382 | 1384 |
1383 unittest.test("method--list", () { | 1385 unittest.test("method--list", () { |
1384 | 1386 |
1385 var mock = new common_test.HttpServerMock(); | 1387 var mock = new common_test.HttpServerMock(); |
1386 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; | 1388 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; |
1387 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1389 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1388 var path = (req.url).path; | 1390 var path = (req.url).path; |
1389 var pathOffset = 0; | 1391 var pathOffset = 0; |
1390 var index; | 1392 var index; |
1391 var subPart; | 1393 var subPart; |
1392 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1394 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1393 pathOffset += 22; | 1395 pathOffset += 1; |
| 1396 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1397 pathOffset += 21; |
1394 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("accounts")); | 1398 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("accounts")); |
1395 pathOffset += 8; | 1399 pathOffset += 8; |
1396 | 1400 |
1397 var query = (req.url).query; | 1401 var query = (req.url).query; |
1398 var queryOffset = 0; | 1402 var queryOffset = 0; |
1399 var queryMap = {}; | 1403 var queryMap = {}; |
1400 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1404 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1401 parseBool(n) { | 1405 parseBool(n) { |
1402 if (n == "true") return true; | 1406 if (n == "true") return true; |
1403 if (n == "false") return false; | 1407 if (n == "false") return false; |
(...skipping 26 matching lines...) Expand all Loading... |
1430 var arg_request = buildAccount(); | 1434 var arg_request = buildAccount(); |
1431 var arg_id = 42; | 1435 var arg_id = 42; |
1432 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1436 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1433 var obj = new api.Account.fromJson(json); | 1437 var obj = new api.Account.fromJson(json); |
1434 checkAccount(obj); | 1438 checkAccount(obj); |
1435 | 1439 |
1436 var path = (req.url).path; | 1440 var path = (req.url).path; |
1437 var pathOffset = 0; | 1441 var pathOffset = 0; |
1438 var index; | 1442 var index; |
1439 var subPart; | 1443 var subPart; |
1440 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1444 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1441 pathOffset += 22; | 1445 pathOffset += 1; |
| 1446 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1447 pathOffset += 21; |
1442 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); | 1448 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); |
1443 pathOffset += 9; | 1449 pathOffset += 9; |
1444 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1450 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1445 pathOffset = path.length; | 1451 pathOffset = path.length; |
1446 unittest.expect(subPart, unittest.equals("$arg_id")); | 1452 unittest.expect(subPart, unittest.equals("$arg_id")); |
1447 | 1453 |
1448 var query = (req.url).query; | 1454 var query = (req.url).query; |
1449 var queryOffset = 0; | 1455 var queryOffset = 0; |
1450 var queryMap = {}; | 1456 var queryMap = {}; |
1451 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1457 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 29 matching lines...) Expand all Loading... |
1481 var arg_request = buildAccount(); | 1487 var arg_request = buildAccount(); |
1482 var arg_id = 42; | 1488 var arg_id = 42; |
1483 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1489 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1484 var obj = new api.Account.fromJson(json); | 1490 var obj = new api.Account.fromJson(json); |
1485 checkAccount(obj); | 1491 checkAccount(obj); |
1486 | 1492 |
1487 var path = (req.url).path; | 1493 var path = (req.url).path; |
1488 var pathOffset = 0; | 1494 var pathOffset = 0; |
1489 var index; | 1495 var index; |
1490 var subPart; | 1496 var subPart; |
1491 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1497 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1492 pathOffset += 22; | 1498 pathOffset += 1; |
| 1499 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1500 pathOffset += 21; |
1493 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); | 1501 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); |
1494 pathOffset += 9; | 1502 pathOffset += 9; |
1495 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1503 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1496 pathOffset = path.length; | 1504 pathOffset = path.length; |
1497 unittest.expect(subPart, unittest.equals("$arg_id")); | 1505 unittest.expect(subPart, unittest.equals("$arg_id")); |
1498 | 1506 |
1499 var query = (req.url).query; | 1507 var query = (req.url).query; |
1500 var queryOffset = 0; | 1508 var queryOffset = 0; |
1501 var queryMap = {}; | 1509 var queryMap = {}; |
1502 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1510 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 29 matching lines...) Expand all Loading... |
1532 unittest.test("method--get", () { | 1540 unittest.test("method--get", () { |
1533 | 1541 |
1534 var mock = new common_test.HttpServerMock(); | 1542 var mock = new common_test.HttpServerMock(); |
1535 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; | 1543 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; |
1536 var arg_accountId = 42; | 1544 var arg_accountId = 42; |
1537 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1545 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1538 var path = (req.url).path; | 1546 var path = (req.url).path; |
1539 var pathOffset = 0; | 1547 var pathOffset = 0; |
1540 var index; | 1548 var index; |
1541 var subPart; | 1549 var subPart; |
1542 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1550 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1543 pathOffset += 22; | 1551 pathOffset += 1; |
| 1552 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1553 pathOffset += 21; |
1544 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); | 1554 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("billinginfo/")); |
1545 pathOffset += 12; | 1555 pathOffset += 12; |
1546 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1556 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1547 pathOffset = path.length; | 1557 pathOffset = path.length; |
1548 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 1558 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
1549 | 1559 |
1550 var query = (req.url).query; | 1560 var query = (req.url).query; |
1551 var queryOffset = 0; | 1561 var queryOffset = 0; |
1552 var queryMap = {}; | 1562 var queryMap = {}; |
1553 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1563 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 24 matching lines...) Expand all Loading... |
1578 | 1588 |
1579 unittest.test("method--list", () { | 1589 unittest.test("method--list", () { |
1580 | 1590 |
1581 var mock = new common_test.HttpServerMock(); | 1591 var mock = new common_test.HttpServerMock(); |
1582 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; | 1592 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; |
1583 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1593 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1584 var path = (req.url).path; | 1594 var path = (req.url).path; |
1585 var pathOffset = 0; | 1595 var pathOffset = 0; |
1586 var index; | 1596 var index; |
1587 var subPart; | 1597 var subPart; |
1588 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1598 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1589 pathOffset += 22; | 1599 pathOffset += 1; |
| 1600 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1601 pathOffset += 21; |
1590 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("billinginfo")); | 1602 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("billinginfo")); |
1591 pathOffset += 11; | 1603 pathOffset += 11; |
1592 | 1604 |
1593 var query = (req.url).query; | 1605 var query = (req.url).query; |
1594 var queryOffset = 0; | 1606 var queryOffset = 0; |
1595 var queryMap = {}; | 1607 var queryMap = {}; |
1596 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1608 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1597 parseBool(n) { | 1609 parseBool(n) { |
1598 if (n == "true") return true; | 1610 if (n == "true") return true; |
1599 if (n == "false") return false; | 1611 if (n == "false") return false; |
(...skipping 27 matching lines...) Expand all Loading... |
1627 | 1639 |
1628 var mock = new common_test.HttpServerMock(); | 1640 var mock = new common_test.HttpServerMock(); |
1629 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1641 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1630 var arg_accountId = 42; | 1642 var arg_accountId = 42; |
1631 var arg_buyerCreativeId = "foo"; | 1643 var arg_buyerCreativeId = "foo"; |
1632 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1644 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1633 var path = (req.url).path; | 1645 var path = (req.url).path; |
1634 var pathOffset = 0; | 1646 var pathOffset = 0; |
1635 var index; | 1647 var index; |
1636 var subPart; | 1648 var subPart; |
1637 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1649 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1638 pathOffset += 22; | 1650 pathOffset += 1; |
| 1651 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1652 pathOffset += 21; |
1639 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("creatives/")); | 1653 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("creatives/")); |
1640 pathOffset += 10; | 1654 pathOffset += 10; |
1641 index = path.indexOf("/", pathOffset); | 1655 index = path.indexOf("/", pathOffset); |
1642 unittest.expect(index >= 0, unittest.isTrue); | 1656 unittest.expect(index >= 0, unittest.isTrue); |
1643 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1657 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1644 pathOffset = index; | 1658 pathOffset = index; |
1645 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 1659 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
1646 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1660 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1647 pathOffset += 1; | 1661 pathOffset += 1; |
1648 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1662 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1684 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1698 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1685 var arg_request = buildCreative(); | 1699 var arg_request = buildCreative(); |
1686 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1700 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1687 var obj = new api.Creative.fromJson(json); | 1701 var obj = new api.Creative.fromJson(json); |
1688 checkCreative(obj); | 1702 checkCreative(obj); |
1689 | 1703 |
1690 var path = (req.url).path; | 1704 var path = (req.url).path; |
1691 var pathOffset = 0; | 1705 var pathOffset = 0; |
1692 var index; | 1706 var index; |
1693 var subPart; | 1707 var subPart; |
1694 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1708 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1695 pathOffset += 22; | 1709 pathOffset += 1; |
| 1710 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1711 pathOffset += 21; |
1696 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("creatives")); | 1712 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("creatives")); |
1697 pathOffset += 9; | 1713 pathOffset += 9; |
1698 | 1714 |
1699 var query = (req.url).query; | 1715 var query = (req.url).query; |
1700 var queryOffset = 0; | 1716 var queryOffset = 0; |
1701 var queryMap = {}; | 1717 var queryMap = {}; |
1702 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1718 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1703 parseBool(n) { | 1719 parseBool(n) { |
1704 if (n == "true") return true; | 1720 if (n == "true") return true; |
1705 if (n == "false") return false; | 1721 if (n == "false") return false; |
(...skipping 16 matching lines...) Expand all Loading... |
1722 }), true); | 1738 }), true); |
1723 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ | 1739 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ |
1724 checkCreative(response); | 1740 checkCreative(response); |
1725 }))); | 1741 }))); |
1726 }); | 1742 }); |
1727 | 1743 |
1728 unittest.test("method--list", () { | 1744 unittest.test("method--list", () { |
1729 | 1745 |
1730 var mock = new common_test.HttpServerMock(); | 1746 var mock = new common_test.HttpServerMock(); |
1731 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1747 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1732 var arg_accountId = buildUnnamed579(); | 1748 var arg_accountId = buildUnnamed607(); |
1733 var arg_buyerCreativeId = buildUnnamed580(); | 1749 var arg_buyerCreativeId = buildUnnamed608(); |
1734 var arg_maxResults = 42; | 1750 var arg_maxResults = 42; |
1735 var arg_pageToken = "foo"; | 1751 var arg_pageToken = "foo"; |
1736 var arg_statusFilter = "foo"; | 1752 var arg_statusFilter = "foo"; |
1737 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1753 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1738 var path = (req.url).path; | 1754 var path = (req.url).path; |
1739 var pathOffset = 0; | 1755 var pathOffset = 0; |
1740 var index; | 1756 var index; |
1741 var subPart; | 1757 var subPart; |
1742 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1743 pathOffset += 22; | 1759 pathOffset += 1; |
| 1760 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1761 pathOffset += 21; |
1744 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("creatives")); | 1762 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("creatives")); |
1745 pathOffset += 9; | 1763 pathOffset += 9; |
1746 | 1764 |
1747 var query = (req.url).query; | 1765 var query = (req.url).query; |
1748 var queryOffset = 0; | 1766 var queryOffset = 0; |
1749 var queryMap = {}; | 1767 var queryMap = {}; |
1750 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1768 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1751 parseBool(n) { | 1769 parseBool(n) { |
1752 if (n == "true") return true; | 1770 if (n == "true") return true; |
1753 if (n == "false") return false; | 1771 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1785 unittest.test("method--get", () { | 1803 unittest.test("method--get", () { |
1786 | 1804 |
1787 var mock = new common_test.HttpServerMock(); | 1805 var mock = new common_test.HttpServerMock(); |
1788 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; | 1806 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; |
1789 var arg_id = "foo"; | 1807 var arg_id = "foo"; |
1790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1808 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1791 var path = (req.url).path; | 1809 var path = (req.url).path; |
1792 var pathOffset = 0; | 1810 var pathOffset = 0; |
1793 var index; | 1811 var index; |
1794 var subPart; | 1812 var subPart; |
1795 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1813 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1796 pathOffset += 22; | 1814 pathOffset += 1; |
| 1815 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1816 pathOffset += 21; |
1797 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("directdeals/")); | 1817 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("directdeals/")); |
1798 pathOffset += 12; | 1818 pathOffset += 12; |
1799 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1819 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1800 pathOffset = path.length; | 1820 pathOffset = path.length; |
1801 unittest.expect(subPart, unittest.equals("$arg_id")); | 1821 unittest.expect(subPart, unittest.equals("$arg_id")); |
1802 | 1822 |
1803 var query = (req.url).query; | 1823 var query = (req.url).query; |
1804 var queryOffset = 0; | 1824 var queryOffset = 0; |
1805 var queryMap = {}; | 1825 var queryMap = {}; |
1806 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1826 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 24 matching lines...) Expand all Loading... |
1831 | 1851 |
1832 unittest.test("method--list", () { | 1852 unittest.test("method--list", () { |
1833 | 1853 |
1834 var mock = new common_test.HttpServerMock(); | 1854 var mock = new common_test.HttpServerMock(); |
1835 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; | 1855 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; |
1836 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1856 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1837 var path = (req.url).path; | 1857 var path = (req.url).path; |
1838 var pathOffset = 0; | 1858 var pathOffset = 0; |
1839 var index; | 1859 var index; |
1840 var subPart; | 1860 var subPart; |
1841 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1861 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1842 pathOffset += 22; | 1862 pathOffset += 1; |
| 1863 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1864 pathOffset += 21; |
1843 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("directdeals")); | 1865 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("directdeals")); |
1844 pathOffset += 11; | 1866 pathOffset += 11; |
1845 | 1867 |
1846 var query = (req.url).query; | 1868 var query = (req.url).query; |
1847 var queryOffset = 0; | 1869 var queryOffset = 0; |
1848 var queryMap = {}; | 1870 var queryMap = {}; |
1849 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1871 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1850 parseBool(n) { | 1872 parseBool(n) { |
1851 if (n == "true") return true; | 1873 if (n == "true") return true; |
1852 if (n == "false") return false; | 1874 if (n == "false") return false; |
(...skipping 30 matching lines...) Expand all Loading... |
1883 var arg_accountId = "foo"; | 1905 var arg_accountId = "foo"; |
1884 var arg_endDateTime = "foo"; | 1906 var arg_endDateTime = "foo"; |
1885 var arg_startDateTime = "foo"; | 1907 var arg_startDateTime = "foo"; |
1886 var arg_maxResults = 42; | 1908 var arg_maxResults = 42; |
1887 var arg_pageToken = "foo"; | 1909 var arg_pageToken = "foo"; |
1888 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1910 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1889 var path = (req.url).path; | 1911 var path = (req.url).path; |
1890 var pathOffset = 0; | 1912 var pathOffset = 0; |
1891 var index; | 1913 var index; |
1892 var subPart; | 1914 var subPart; |
1893 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1915 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1894 pathOffset += 22; | 1916 pathOffset += 1; |
| 1917 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1918 pathOffset += 21; |
1895 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("performancereport")); | 1919 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("performancereport")); |
1896 pathOffset += 17; | 1920 pathOffset += 17; |
1897 | 1921 |
1898 var query = (req.url).query; | 1922 var query = (req.url).query; |
1899 var queryOffset = 0; | 1923 var queryOffset = 0; |
1900 var queryMap = {}; | 1924 var queryMap = {}; |
1901 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1925 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1902 parseBool(n) { | 1926 parseBool(n) { |
1903 if (n == "true") return true; | 1927 if (n == "true") return true; |
1904 if (n == "false") return false; | 1928 if (n == "false") return false; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1937 | 1961 |
1938 var mock = new common_test.HttpServerMock(); | 1962 var mock = new common_test.HttpServerMock(); |
1939 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 1963 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
1940 var arg_accountId = "foo"; | 1964 var arg_accountId = "foo"; |
1941 var arg_configId = "foo"; | 1965 var arg_configId = "foo"; |
1942 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1966 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1943 var path = (req.url).path; | 1967 var path = (req.url).path; |
1944 var pathOffset = 0; | 1968 var pathOffset = 0; |
1945 var index; | 1969 var index; |
1946 var subPart; | 1970 var subPart; |
1947 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 1971 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1948 pathOffset += 22; | 1972 pathOffset += 1; |
| 1973 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 1974 pathOffset += 21; |
1949 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 1975 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
1950 pathOffset += 20; | 1976 pathOffset += 20; |
1951 index = path.indexOf("/", pathOffset); | 1977 index = path.indexOf("/", pathOffset); |
1952 unittest.expect(index >= 0, unittest.isTrue); | 1978 unittest.expect(index >= 0, unittest.isTrue); |
1953 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1979 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1954 pathOffset = index; | 1980 pathOffset = index; |
1955 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 1981 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
1956 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1982 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1957 pathOffset += 1; | 1983 pathOffset += 1; |
1958 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1984 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 | 2016 |
1991 var mock = new common_test.HttpServerMock(); | 2017 var mock = new common_test.HttpServerMock(); |
1992 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2018 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
1993 var arg_accountId = "foo"; | 2019 var arg_accountId = "foo"; |
1994 var arg_configId = "foo"; | 2020 var arg_configId = "foo"; |
1995 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2021 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1996 var path = (req.url).path; | 2022 var path = (req.url).path; |
1997 var pathOffset = 0; | 2023 var pathOffset = 0; |
1998 var index; | 2024 var index; |
1999 var subPart; | 2025 var subPart; |
2000 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 2026 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2001 pathOffset += 22; | 2027 pathOffset += 1; |
| 2028 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 2029 pathOffset += 21; |
2002 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2030 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2003 pathOffset += 20; | 2031 pathOffset += 20; |
2004 index = path.indexOf("/", pathOffset); | 2032 index = path.indexOf("/", pathOffset); |
2005 unittest.expect(index >= 0, unittest.isTrue); | 2033 unittest.expect(index >= 0, unittest.isTrue); |
2006 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2034 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2007 pathOffset = index; | 2035 pathOffset = index; |
2008 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2036 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2009 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2037 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2010 pathOffset += 1; | 2038 pathOffset += 1; |
2011 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2039 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2048 var arg_request = buildPretargetingConfig(); | 2076 var arg_request = buildPretargetingConfig(); |
2049 var arg_accountId = "foo"; | 2077 var arg_accountId = "foo"; |
2050 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2078 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2051 var obj = new api.PretargetingConfig.fromJson(json); | 2079 var obj = new api.PretargetingConfig.fromJson(json); |
2052 checkPretargetingConfig(obj); | 2080 checkPretargetingConfig(obj); |
2053 | 2081 |
2054 var path = (req.url).path; | 2082 var path = (req.url).path; |
2055 var pathOffset = 0; | 2083 var pathOffset = 0; |
2056 var index; | 2084 var index; |
2057 var subPart; | 2085 var subPart; |
2058 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 2086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2059 pathOffset += 22; | 2087 pathOffset += 1; |
| 2088 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 2089 pathOffset += 21; |
2060 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2090 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2061 pathOffset += 20; | 2091 pathOffset += 20; |
2062 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2092 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
2063 pathOffset = path.length; | 2093 pathOffset = path.length; |
2064 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2094 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2065 | 2095 |
2066 var query = (req.url).query; | 2096 var query = (req.url).query; |
2067 var queryOffset = 0; | 2097 var queryOffset = 0; |
2068 var queryMap = {}; | 2098 var queryMap = {}; |
2069 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2099 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 25 matching lines...) Expand all Loading... |
2095 unittest.test("method--list", () { | 2125 unittest.test("method--list", () { |
2096 | 2126 |
2097 var mock = new common_test.HttpServerMock(); | 2127 var mock = new common_test.HttpServerMock(); |
2098 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2128 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2099 var arg_accountId = "foo"; | 2129 var arg_accountId = "foo"; |
2100 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2130 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2101 var path = (req.url).path; | 2131 var path = (req.url).path; |
2102 var pathOffset = 0; | 2132 var pathOffset = 0; |
2103 var index; | 2133 var index; |
2104 var subPart; | 2134 var subPart; |
2105 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 2135 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2106 pathOffset += 22; | 2136 pathOffset += 1; |
| 2137 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 2138 pathOffset += 21; |
2107 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2139 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2108 pathOffset += 20; | 2140 pathOffset += 20; |
2109 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2141 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
2110 pathOffset = path.length; | 2142 pathOffset = path.length; |
2111 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2143 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2112 | 2144 |
2113 var query = (req.url).query; | 2145 var query = (req.url).query; |
2114 var queryOffset = 0; | 2146 var queryOffset = 0; |
2115 var queryMap = {}; | 2147 var queryMap = {}; |
2116 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2148 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 30 matching lines...) Expand all Loading... |
2147 var arg_accountId = "foo"; | 2179 var arg_accountId = "foo"; |
2148 var arg_configId = "foo"; | 2180 var arg_configId = "foo"; |
2149 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2181 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2150 var obj = new api.PretargetingConfig.fromJson(json); | 2182 var obj = new api.PretargetingConfig.fromJson(json); |
2151 checkPretargetingConfig(obj); | 2183 checkPretargetingConfig(obj); |
2152 | 2184 |
2153 var path = (req.url).path; | 2185 var path = (req.url).path; |
2154 var pathOffset = 0; | 2186 var pathOffset = 0; |
2155 var index; | 2187 var index; |
2156 var subPart; | 2188 var subPart; |
2157 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 2189 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2158 pathOffset += 22; | 2190 pathOffset += 1; |
| 2191 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 2192 pathOffset += 21; |
2159 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2193 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2160 pathOffset += 20; | 2194 pathOffset += 20; |
2161 index = path.indexOf("/", pathOffset); | 2195 index = path.indexOf("/", pathOffset); |
2162 unittest.expect(index >= 0, unittest.isTrue); | 2196 unittest.expect(index >= 0, unittest.isTrue); |
2163 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2197 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2164 pathOffset = index; | 2198 pathOffset = index; |
2165 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2199 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2166 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2200 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2167 pathOffset += 1; | 2201 pathOffset += 1; |
2168 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2202 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2206 var arg_accountId = "foo"; | 2240 var arg_accountId = "foo"; |
2207 var arg_configId = "foo"; | 2241 var arg_configId = "foo"; |
2208 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2242 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2209 var obj = new api.PretargetingConfig.fromJson(json); | 2243 var obj = new api.PretargetingConfig.fromJson(json); |
2210 checkPretargetingConfig(obj); | 2244 checkPretargetingConfig(obj); |
2211 | 2245 |
2212 var path = (req.url).path; | 2246 var path = (req.url).path; |
2213 var pathOffset = 0; | 2247 var pathOffset = 0; |
2214 var index; | 2248 var index; |
2215 var subPart; | 2249 var subPart; |
2216 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("/adexchangebuyer/v1.3/")); | 2250 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2217 pathOffset += 22; | 2251 pathOffset += 1; |
| 2252 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
| 2253 pathOffset += 21; |
2218 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); | 2254 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("pretargetingconfigs/")); |
2219 pathOffset += 20; | 2255 pathOffset += 20; |
2220 index = path.indexOf("/", pathOffset); | 2256 index = path.indexOf("/", pathOffset); |
2221 unittest.expect(index >= 0, unittest.isTrue); | 2257 unittest.expect(index >= 0, unittest.isTrue); |
2222 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2258 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2223 pathOffset = index; | 2259 pathOffset = index; |
2224 unittest.expect(subPart, unittest.equals("$arg_accountId")); | 2260 unittest.expect(subPart, unittest.equals("$arg_accountId")); |
2225 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2261 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2226 pathOffset += 1; | 2262 pathOffset += 1; |
2227 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2263 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 27 matching lines...) Expand all Loading... |
2255 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { | 2291 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { |
2256 checkPretargetingConfig(response); | 2292 checkPretargetingConfig(response); |
2257 }))); | 2293 }))); |
2258 }); | 2294 }); |
2259 | 2295 |
2260 }); | 2296 }); |
2261 | 2297 |
2262 | 2298 |
2263 } | 2299 } |
2264 | 2300 |
OLD | NEW |