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; |
11 import 'package:googleapis/common/common.dart' as common; | |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
13 import '../common/common_internal_test.dart' as common_test; | |
14 | 11 |
15 import 'package:googleapis/adexchangebuyer/v1_3.dart' as api; | 12 import 'package:googleapis/adexchangebuyer/v1_3.dart' as api; |
16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
| 22 |
| 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
18 | 53 |
19 core.int buildCounterAccountBidderLocation = 0; | 54 core.int buildCounterAccountBidderLocation = 0; |
20 buildAccountBidderLocation() { | 55 buildAccountBidderLocation() { |
21 var o = new api.AccountBidderLocation(); | 56 var o = new api.AccountBidderLocation(); |
22 buildCounterAccountBidderLocation++; | 57 buildCounterAccountBidderLocation++; |
23 if (buildCounterAccountBidderLocation < 3) { | 58 if (buildCounterAccountBidderLocation < 3) { |
24 o.maximumQps = 42; | 59 o.maximumQps = 42; |
25 o.region = "foo"; | 60 o.region = "foo"; |
26 o.url = "foo"; | 61 o.url = "foo"; |
27 } | 62 } |
28 buildCounterAccountBidderLocation--; | 63 buildCounterAccountBidderLocation--; |
29 return o; | 64 return o; |
30 } | 65 } |
31 | 66 |
32 checkAccountBidderLocation(api.AccountBidderLocation o) { | 67 checkAccountBidderLocation(api.AccountBidderLocation o) { |
33 buildCounterAccountBidderLocation++; | 68 buildCounterAccountBidderLocation++; |
34 if (buildCounterAccountBidderLocation < 3) { | 69 if (buildCounterAccountBidderLocation < 3) { |
35 unittest.expect(o.maximumQps, unittest.equals(42)); | 70 unittest.expect(o.maximumQps, unittest.equals(42)); |
36 unittest.expect(o.region, unittest.equals('foo')); | 71 unittest.expect(o.region, unittest.equals('foo')); |
37 unittest.expect(o.url, unittest.equals('foo')); | 72 unittest.expect(o.url, unittest.equals('foo')); |
38 } | 73 } |
39 buildCounterAccountBidderLocation--; | 74 buildCounterAccountBidderLocation--; |
40 } | 75 } |
41 | 76 |
42 buildUnnamed849() { | 77 buildUnnamed0() { |
43 var o = new core.List<api.AccountBidderLocation>(); | 78 var o = new core.List<api.AccountBidderLocation>(); |
44 o.add(buildAccountBidderLocation()); | 79 o.add(buildAccountBidderLocation()); |
45 o.add(buildAccountBidderLocation()); | 80 o.add(buildAccountBidderLocation()); |
46 return o; | 81 return o; |
47 } | 82 } |
48 | 83 |
49 checkUnnamed849(core.List<api.AccountBidderLocation> o) { | 84 checkUnnamed0(core.List<api.AccountBidderLocation> o) { |
50 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
51 checkAccountBidderLocation(o[0]); | 86 checkAccountBidderLocation(o[0]); |
52 checkAccountBidderLocation(o[1]); | 87 checkAccountBidderLocation(o[1]); |
53 } | 88 } |
54 | 89 |
55 core.int buildCounterAccount = 0; | 90 core.int buildCounterAccount = 0; |
56 buildAccount() { | 91 buildAccount() { |
57 var o = new api.Account(); | 92 var o = new api.Account(); |
58 buildCounterAccount++; | 93 buildCounterAccount++; |
59 if (buildCounterAccount < 3) { | 94 if (buildCounterAccount < 3) { |
60 o.bidderLocation = buildUnnamed849(); | 95 o.bidderLocation = buildUnnamed0(); |
61 o.cookieMatchingNid = "foo"; | 96 o.cookieMatchingNid = "foo"; |
62 o.cookieMatchingUrl = "foo"; | 97 o.cookieMatchingUrl = "foo"; |
63 o.id = 42; | 98 o.id = 42; |
64 o.kind = "foo"; | 99 o.kind = "foo"; |
65 o.maximumActiveCreatives = 42; | 100 o.maximumActiveCreatives = 42; |
66 o.maximumTotalQps = 42; | 101 o.maximumTotalQps = 42; |
67 o.numberActiveCreatives = 42; | 102 o.numberActiveCreatives = 42; |
68 } | 103 } |
69 buildCounterAccount--; | 104 buildCounterAccount--; |
70 return o; | 105 return o; |
71 } | 106 } |
72 | 107 |
73 checkAccount(api.Account o) { | 108 checkAccount(api.Account o) { |
74 buildCounterAccount++; | 109 buildCounterAccount++; |
75 if (buildCounterAccount < 3) { | 110 if (buildCounterAccount < 3) { |
76 checkUnnamed849(o.bidderLocation); | 111 checkUnnamed0(o.bidderLocation); |
77 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); | 112 unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); |
78 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); | 113 unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); |
79 unittest.expect(o.id, unittest.equals(42)); | 114 unittest.expect(o.id, unittest.equals(42)); |
80 unittest.expect(o.kind, unittest.equals('foo')); | 115 unittest.expect(o.kind, unittest.equals('foo')); |
81 unittest.expect(o.maximumActiveCreatives, unittest.equals(42)); | 116 unittest.expect(o.maximumActiveCreatives, unittest.equals(42)); |
82 unittest.expect(o.maximumTotalQps, unittest.equals(42)); | 117 unittest.expect(o.maximumTotalQps, unittest.equals(42)); |
83 unittest.expect(o.numberActiveCreatives, unittest.equals(42)); | 118 unittest.expect(o.numberActiveCreatives, unittest.equals(42)); |
84 } | 119 } |
85 buildCounterAccount--; | 120 buildCounterAccount--; |
86 } | 121 } |
87 | 122 |
88 buildUnnamed850() { | 123 buildUnnamed1() { |
89 var o = new core.List<api.Account>(); | 124 var o = new core.List<api.Account>(); |
90 o.add(buildAccount()); | 125 o.add(buildAccount()); |
91 o.add(buildAccount()); | 126 o.add(buildAccount()); |
92 return o; | 127 return o; |
93 } | 128 } |
94 | 129 |
95 checkUnnamed850(core.List<api.Account> o) { | 130 checkUnnamed1(core.List<api.Account> o) { |
96 unittest.expect(o, unittest.hasLength(2)); | 131 unittest.expect(o, unittest.hasLength(2)); |
97 checkAccount(o[0]); | 132 checkAccount(o[0]); |
98 checkAccount(o[1]); | 133 checkAccount(o[1]); |
99 } | 134 } |
100 | 135 |
101 core.int buildCounterAccountsList = 0; | 136 core.int buildCounterAccountsList = 0; |
102 buildAccountsList() { | 137 buildAccountsList() { |
103 var o = new api.AccountsList(); | 138 var o = new api.AccountsList(); |
104 buildCounterAccountsList++; | 139 buildCounterAccountsList++; |
105 if (buildCounterAccountsList < 3) { | 140 if (buildCounterAccountsList < 3) { |
106 o.items = buildUnnamed850(); | 141 o.items = buildUnnamed1(); |
107 o.kind = "foo"; | 142 o.kind = "foo"; |
108 } | 143 } |
109 buildCounterAccountsList--; | 144 buildCounterAccountsList--; |
110 return o; | 145 return o; |
111 } | 146 } |
112 | 147 |
113 checkAccountsList(api.AccountsList o) { | 148 checkAccountsList(api.AccountsList o) { |
114 buildCounterAccountsList++; | 149 buildCounterAccountsList++; |
115 if (buildCounterAccountsList < 3) { | 150 if (buildCounterAccountsList < 3) { |
116 checkUnnamed850(o.items); | 151 checkUnnamed1(o.items); |
117 unittest.expect(o.kind, unittest.equals('foo')); | 152 unittest.expect(o.kind, unittest.equals('foo')); |
118 } | 153 } |
119 buildCounterAccountsList--; | 154 buildCounterAccountsList--; |
120 } | 155 } |
121 | 156 |
122 buildUnnamed851() { | 157 buildUnnamed2() { |
123 var o = new core.List<core.String>(); | 158 var o = new core.List<core.String>(); |
124 o.add("foo"); | 159 o.add("foo"); |
125 o.add("foo"); | 160 o.add("foo"); |
126 return o; | 161 return o; |
127 } | 162 } |
128 | 163 |
129 checkUnnamed851(core.List<core.String> o) { | 164 checkUnnamed2(core.List<core.String> o) { |
130 unittest.expect(o, unittest.hasLength(2)); | 165 unittest.expect(o, unittest.hasLength(2)); |
131 unittest.expect(o[0], unittest.equals('foo')); | 166 unittest.expect(o[0], unittest.equals('foo')); |
132 unittest.expect(o[1], unittest.equals('foo')); | 167 unittest.expect(o[1], unittest.equals('foo')); |
133 } | 168 } |
134 | 169 |
135 core.int buildCounterBillingInfo = 0; | 170 core.int buildCounterBillingInfo = 0; |
136 buildBillingInfo() { | 171 buildBillingInfo() { |
137 var o = new api.BillingInfo(); | 172 var o = new api.BillingInfo(); |
138 buildCounterBillingInfo++; | 173 buildCounterBillingInfo++; |
139 if (buildCounterBillingInfo < 3) { | 174 if (buildCounterBillingInfo < 3) { |
140 o.accountId = 42; | 175 o.accountId = 42; |
141 o.accountName = "foo"; | 176 o.accountName = "foo"; |
142 o.billingId = buildUnnamed851(); | 177 o.billingId = buildUnnamed2(); |
143 o.kind = "foo"; | 178 o.kind = "foo"; |
144 } | 179 } |
145 buildCounterBillingInfo--; | 180 buildCounterBillingInfo--; |
146 return o; | 181 return o; |
147 } | 182 } |
148 | 183 |
149 checkBillingInfo(api.BillingInfo o) { | 184 checkBillingInfo(api.BillingInfo o) { |
150 buildCounterBillingInfo++; | 185 buildCounterBillingInfo++; |
151 if (buildCounterBillingInfo < 3) { | 186 if (buildCounterBillingInfo < 3) { |
152 unittest.expect(o.accountId, unittest.equals(42)); | 187 unittest.expect(o.accountId, unittest.equals(42)); |
153 unittest.expect(o.accountName, unittest.equals('foo')); | 188 unittest.expect(o.accountName, unittest.equals('foo')); |
154 checkUnnamed851(o.billingId); | 189 checkUnnamed2(o.billingId); |
155 unittest.expect(o.kind, unittest.equals('foo')); | 190 unittest.expect(o.kind, unittest.equals('foo')); |
156 } | 191 } |
157 buildCounterBillingInfo--; | 192 buildCounterBillingInfo--; |
158 } | 193 } |
159 | 194 |
160 buildUnnamed852() { | 195 buildUnnamed3() { |
161 var o = new core.List<api.BillingInfo>(); | 196 var o = new core.List<api.BillingInfo>(); |
162 o.add(buildBillingInfo()); | 197 o.add(buildBillingInfo()); |
163 o.add(buildBillingInfo()); | 198 o.add(buildBillingInfo()); |
164 return o; | 199 return o; |
165 } | 200 } |
166 | 201 |
167 checkUnnamed852(core.List<api.BillingInfo> o) { | 202 checkUnnamed3(core.List<api.BillingInfo> o) { |
168 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
169 checkBillingInfo(o[0]); | 204 checkBillingInfo(o[0]); |
170 checkBillingInfo(o[1]); | 205 checkBillingInfo(o[1]); |
171 } | 206 } |
172 | 207 |
173 core.int buildCounterBillingInfoList = 0; | 208 core.int buildCounterBillingInfoList = 0; |
174 buildBillingInfoList() { | 209 buildBillingInfoList() { |
175 var o = new api.BillingInfoList(); | 210 var o = new api.BillingInfoList(); |
176 buildCounterBillingInfoList++; | 211 buildCounterBillingInfoList++; |
177 if (buildCounterBillingInfoList < 3) { | 212 if (buildCounterBillingInfoList < 3) { |
178 o.items = buildUnnamed852(); | 213 o.items = buildUnnamed3(); |
179 o.kind = "foo"; | 214 o.kind = "foo"; |
180 } | 215 } |
181 buildCounterBillingInfoList--; | 216 buildCounterBillingInfoList--; |
182 return o; | 217 return o; |
183 } | 218 } |
184 | 219 |
185 checkBillingInfoList(api.BillingInfoList o) { | 220 checkBillingInfoList(api.BillingInfoList o) { |
186 buildCounterBillingInfoList++; | 221 buildCounterBillingInfoList++; |
187 if (buildCounterBillingInfoList < 3) { | 222 if (buildCounterBillingInfoList < 3) { |
188 checkUnnamed852(o.items); | 223 checkUnnamed3(o.items); |
189 unittest.expect(o.kind, unittest.equals('foo')); | 224 unittest.expect(o.kind, unittest.equals('foo')); |
190 } | 225 } |
191 buildCounterBillingInfoList--; | 226 buildCounterBillingInfoList--; |
192 } | 227 } |
193 | 228 |
194 core.int buildCounterBudget = 0; | 229 core.int buildCounterBudget = 0; |
195 buildBudget() { | 230 buildBudget() { |
196 var o = new api.Budget(); | 231 var o = new api.Budget(); |
197 buildCounterBudget++; | 232 buildCounterBudget++; |
198 if (buildCounterBudget < 3) { | 233 if (buildCounterBudget < 3) { |
(...skipping 14 matching lines...) Expand all Loading... |
213 unittest.expect(o.accountId, unittest.equals('foo')); | 248 unittest.expect(o.accountId, unittest.equals('foo')); |
214 unittest.expect(o.billingId, unittest.equals('foo')); | 249 unittest.expect(o.billingId, unittest.equals('foo')); |
215 unittest.expect(o.budgetAmount, unittest.equals('foo')); | 250 unittest.expect(o.budgetAmount, unittest.equals('foo')); |
216 unittest.expect(o.currencyCode, unittest.equals('foo')); | 251 unittest.expect(o.currencyCode, unittest.equals('foo')); |
217 unittest.expect(o.id, unittest.equals('foo')); | 252 unittest.expect(o.id, unittest.equals('foo')); |
218 unittest.expect(o.kind, unittest.equals('foo')); | 253 unittest.expect(o.kind, unittest.equals('foo')); |
219 } | 254 } |
220 buildCounterBudget--; | 255 buildCounterBudget--; |
221 } | 256 } |
222 | 257 |
223 buildUnnamed853() { | 258 buildUnnamed4() { |
224 var o = new core.List<core.String>(); | 259 var o = new core.List<core.String>(); |
225 o.add("foo"); | 260 o.add("foo"); |
226 o.add("foo"); | 261 o.add("foo"); |
227 return o; | 262 return o; |
228 } | 263 } |
229 | 264 |
230 checkUnnamed853(core.List<core.String> o) { | 265 checkUnnamed4(core.List<core.String> o) { |
231 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
232 unittest.expect(o[0], unittest.equals('foo')); | 267 unittest.expect(o[0], unittest.equals('foo')); |
233 unittest.expect(o[1], unittest.equals('foo')); | 268 unittest.expect(o[1], unittest.equals('foo')); |
234 } | 269 } |
235 | 270 |
236 buildUnnamed854() { | 271 buildUnnamed5() { |
237 var o = new core.List<core.int>(); | 272 var o = new core.List<core.int>(); |
238 o.add(42); | 273 o.add(42); |
239 o.add(42); | 274 o.add(42); |
240 return o; | 275 return o; |
241 } | 276 } |
242 | 277 |
243 checkUnnamed854(core.List<core.int> o) { | 278 checkUnnamed5(core.List<core.int> o) { |
244 unittest.expect(o, unittest.hasLength(2)); | 279 unittest.expect(o, unittest.hasLength(2)); |
245 unittest.expect(o[0], unittest.equals(42)); | 280 unittest.expect(o[0], unittest.equals(42)); |
246 unittest.expect(o[1], unittest.equals(42)); | 281 unittest.expect(o[1], unittest.equals(42)); |
247 } | 282 } |
248 | 283 |
249 buildUnnamed855() { | 284 buildUnnamed6() { |
250 var o = new core.List<core.String>(); | 285 var o = new core.List<core.String>(); |
251 o.add("foo"); | 286 o.add("foo"); |
252 o.add("foo"); | 287 o.add("foo"); |
253 return o; | 288 return o; |
254 } | 289 } |
255 | 290 |
256 checkUnnamed855(core.List<core.String> o) { | 291 checkUnnamed6(core.List<core.String> o) { |
257 unittest.expect(o, unittest.hasLength(2)); | 292 unittest.expect(o, unittest.hasLength(2)); |
258 unittest.expect(o[0], unittest.equals('foo')); | 293 unittest.expect(o[0], unittest.equals('foo')); |
259 unittest.expect(o[1], unittest.equals('foo')); | 294 unittest.expect(o[1], unittest.equals('foo')); |
260 } | 295 } |
261 | 296 |
262 buildUnnamed856() { | 297 buildUnnamed7() { |
263 var o = new core.List<core.String>(); | 298 var o = new core.List<core.String>(); |
264 o.add("foo"); | 299 o.add("foo"); |
265 o.add("foo"); | 300 o.add("foo"); |
266 return o; | 301 return o; |
267 } | 302 } |
268 | 303 |
269 checkUnnamed856(core.List<core.String> o) { | 304 checkUnnamed7(core.List<core.String> o) { |
270 unittest.expect(o, unittest.hasLength(2)); | 305 unittest.expect(o, unittest.hasLength(2)); |
271 unittest.expect(o[0], unittest.equals('foo')); | 306 unittest.expect(o[0], unittest.equals('foo')); |
272 unittest.expect(o[1], unittest.equals('foo')); | 307 unittest.expect(o[1], unittest.equals('foo')); |
273 } | 308 } |
274 | 309 |
275 core.int buildCounterCreativeCorrections = 0; | 310 core.int buildCounterCreativeCorrections = 0; |
276 buildCreativeCorrections() { | 311 buildCreativeCorrections() { |
277 var o = new api.CreativeCorrections(); | 312 var o = new api.CreativeCorrections(); |
278 buildCounterCreativeCorrections++; | 313 buildCounterCreativeCorrections++; |
279 if (buildCounterCreativeCorrections < 3) { | 314 if (buildCounterCreativeCorrections < 3) { |
280 o.details = buildUnnamed856(); | 315 o.details = buildUnnamed7(); |
281 o.reason = "foo"; | 316 o.reason = "foo"; |
282 } | 317 } |
283 buildCounterCreativeCorrections--; | 318 buildCounterCreativeCorrections--; |
284 return o; | 319 return o; |
285 } | 320 } |
286 | 321 |
287 checkCreativeCorrections(api.CreativeCorrections o) { | 322 checkCreativeCorrections(api.CreativeCorrections o) { |
288 buildCounterCreativeCorrections++; | 323 buildCounterCreativeCorrections++; |
289 if (buildCounterCreativeCorrections < 3) { | 324 if (buildCounterCreativeCorrections < 3) { |
290 checkUnnamed856(o.details); | 325 checkUnnamed7(o.details); |
291 unittest.expect(o.reason, unittest.equals('foo')); | 326 unittest.expect(o.reason, unittest.equals('foo')); |
292 } | 327 } |
293 buildCounterCreativeCorrections--; | 328 buildCounterCreativeCorrections--; |
294 } | 329 } |
295 | 330 |
296 buildUnnamed857() { | 331 buildUnnamed8() { |
297 var o = new core.List<api.CreativeCorrections>(); | 332 var o = new core.List<api.CreativeCorrections>(); |
298 o.add(buildCreativeCorrections()); | 333 o.add(buildCreativeCorrections()); |
299 o.add(buildCreativeCorrections()); | 334 o.add(buildCreativeCorrections()); |
300 return o; | 335 return o; |
301 } | 336 } |
302 | 337 |
303 checkUnnamed857(core.List<api.CreativeCorrections> o) { | 338 checkUnnamed8(core.List<api.CreativeCorrections> o) { |
304 unittest.expect(o, unittest.hasLength(2)); | 339 unittest.expect(o, unittest.hasLength(2)); |
305 checkCreativeCorrections(o[0]); | 340 checkCreativeCorrections(o[0]); |
306 checkCreativeCorrections(o[1]); | 341 checkCreativeCorrections(o[1]); |
307 } | 342 } |
308 | 343 |
309 buildUnnamed858() { | 344 buildUnnamed9() { |
310 var o = new core.List<core.String>(); | 345 var o = new core.List<core.String>(); |
311 o.add("foo"); | 346 o.add("foo"); |
312 o.add("foo"); | 347 o.add("foo"); |
313 return o; | 348 return o; |
314 } | 349 } |
315 | 350 |
316 checkUnnamed858(core.List<core.String> o) { | 351 checkUnnamed9(core.List<core.String> o) { |
317 unittest.expect(o, unittest.hasLength(2)); | 352 unittest.expect(o, unittest.hasLength(2)); |
318 unittest.expect(o[0], unittest.equals('foo')); | 353 unittest.expect(o[0], unittest.equals('foo')); |
319 unittest.expect(o[1], unittest.equals('foo')); | 354 unittest.expect(o[1], unittest.equals('foo')); |
320 } | 355 } |
321 | 356 |
322 core.int buildCounterCreativeDisapprovalReasons = 0; | 357 core.int buildCounterCreativeDisapprovalReasons = 0; |
323 buildCreativeDisapprovalReasons() { | 358 buildCreativeDisapprovalReasons() { |
324 var o = new api.CreativeDisapprovalReasons(); | 359 var o = new api.CreativeDisapprovalReasons(); |
325 buildCounterCreativeDisapprovalReasons++; | 360 buildCounterCreativeDisapprovalReasons++; |
326 if (buildCounterCreativeDisapprovalReasons < 3) { | 361 if (buildCounterCreativeDisapprovalReasons < 3) { |
327 o.details = buildUnnamed858(); | 362 o.details = buildUnnamed9(); |
328 o.reason = "foo"; | 363 o.reason = "foo"; |
329 } | 364 } |
330 buildCounterCreativeDisapprovalReasons--; | 365 buildCounterCreativeDisapprovalReasons--; |
331 return o; | 366 return o; |
332 } | 367 } |
333 | 368 |
334 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { | 369 checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { |
335 buildCounterCreativeDisapprovalReasons++; | 370 buildCounterCreativeDisapprovalReasons++; |
336 if (buildCounterCreativeDisapprovalReasons < 3) { | 371 if (buildCounterCreativeDisapprovalReasons < 3) { |
337 checkUnnamed858(o.details); | 372 checkUnnamed9(o.details); |
338 unittest.expect(o.reason, unittest.equals('foo')); | 373 unittest.expect(o.reason, unittest.equals('foo')); |
339 } | 374 } |
340 buildCounterCreativeDisapprovalReasons--; | 375 buildCounterCreativeDisapprovalReasons--; |
341 } | 376 } |
342 | 377 |
343 buildUnnamed859() { | 378 buildUnnamed10() { |
344 var o = new core.List<api.CreativeDisapprovalReasons>(); | 379 var o = new core.List<api.CreativeDisapprovalReasons>(); |
345 o.add(buildCreativeDisapprovalReasons()); | 380 o.add(buildCreativeDisapprovalReasons()); |
346 o.add(buildCreativeDisapprovalReasons()); | 381 o.add(buildCreativeDisapprovalReasons()); |
347 return o; | 382 return o; |
348 } | 383 } |
349 | 384 |
350 checkUnnamed859(core.List<api.CreativeDisapprovalReasons> o) { | 385 checkUnnamed10(core.List<api.CreativeDisapprovalReasons> o) { |
351 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
352 checkCreativeDisapprovalReasons(o[0]); | 387 checkCreativeDisapprovalReasons(o[0]); |
353 checkCreativeDisapprovalReasons(o[1]); | 388 checkCreativeDisapprovalReasons(o[1]); |
354 } | 389 } |
355 | 390 |
356 core.int buildCounterCreativeFilteringReasonsReasons = 0; | 391 core.int buildCounterCreativeFilteringReasonsReasons = 0; |
357 buildCreativeFilteringReasonsReasons() { | 392 buildCreativeFilteringReasonsReasons() { |
358 var o = new api.CreativeFilteringReasonsReasons(); | 393 var o = new api.CreativeFilteringReasonsReasons(); |
359 buildCounterCreativeFilteringReasonsReasons++; | 394 buildCounterCreativeFilteringReasonsReasons++; |
360 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 395 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
361 o.filteringCount = "foo"; | 396 o.filteringCount = "foo"; |
362 o.filteringStatus = 42; | 397 o.filteringStatus = 42; |
363 } | 398 } |
364 buildCounterCreativeFilteringReasonsReasons--; | 399 buildCounterCreativeFilteringReasonsReasons--; |
365 return o; | 400 return o; |
366 } | 401 } |
367 | 402 |
368 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { | 403 checkCreativeFilteringReasonsReasons(api.CreativeFilteringReasonsReasons o) { |
369 buildCounterCreativeFilteringReasonsReasons++; | 404 buildCounterCreativeFilteringReasonsReasons++; |
370 if (buildCounterCreativeFilteringReasonsReasons < 3) { | 405 if (buildCounterCreativeFilteringReasonsReasons < 3) { |
371 unittest.expect(o.filteringCount, unittest.equals('foo')); | 406 unittest.expect(o.filteringCount, unittest.equals('foo')); |
372 unittest.expect(o.filteringStatus, unittest.equals(42)); | 407 unittest.expect(o.filteringStatus, unittest.equals(42)); |
373 } | 408 } |
374 buildCounterCreativeFilteringReasonsReasons--; | 409 buildCounterCreativeFilteringReasonsReasons--; |
375 } | 410 } |
376 | 411 |
377 buildUnnamed860() { | 412 buildUnnamed11() { |
378 var o = new core.List<api.CreativeFilteringReasonsReasons>(); | 413 var o = new core.List<api.CreativeFilteringReasonsReasons>(); |
379 o.add(buildCreativeFilteringReasonsReasons()); | 414 o.add(buildCreativeFilteringReasonsReasons()); |
380 o.add(buildCreativeFilteringReasonsReasons()); | 415 o.add(buildCreativeFilteringReasonsReasons()); |
381 return o; | 416 return o; |
382 } | 417 } |
383 | 418 |
384 checkUnnamed860(core.List<api.CreativeFilteringReasonsReasons> o) { | 419 checkUnnamed11(core.List<api.CreativeFilteringReasonsReasons> o) { |
385 unittest.expect(o, unittest.hasLength(2)); | 420 unittest.expect(o, unittest.hasLength(2)); |
386 checkCreativeFilteringReasonsReasons(o[0]); | 421 checkCreativeFilteringReasonsReasons(o[0]); |
387 checkCreativeFilteringReasonsReasons(o[1]); | 422 checkCreativeFilteringReasonsReasons(o[1]); |
388 } | 423 } |
389 | 424 |
390 core.int buildCounterCreativeFilteringReasons = 0; | 425 core.int buildCounterCreativeFilteringReasons = 0; |
391 buildCreativeFilteringReasons() { | 426 buildCreativeFilteringReasons() { |
392 var o = new api.CreativeFilteringReasons(); | 427 var o = new api.CreativeFilteringReasons(); |
393 buildCounterCreativeFilteringReasons++; | 428 buildCounterCreativeFilteringReasons++; |
394 if (buildCounterCreativeFilteringReasons < 3) { | 429 if (buildCounterCreativeFilteringReasons < 3) { |
395 o.date = "foo"; | 430 o.date = "foo"; |
396 o.reasons = buildUnnamed860(); | 431 o.reasons = buildUnnamed11(); |
397 } | 432 } |
398 buildCounterCreativeFilteringReasons--; | 433 buildCounterCreativeFilteringReasons--; |
399 return o; | 434 return o; |
400 } | 435 } |
401 | 436 |
402 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { | 437 checkCreativeFilteringReasons(api.CreativeFilteringReasons o) { |
403 buildCounterCreativeFilteringReasons++; | 438 buildCounterCreativeFilteringReasons++; |
404 if (buildCounterCreativeFilteringReasons < 3) { | 439 if (buildCounterCreativeFilteringReasons < 3) { |
405 unittest.expect(o.date, unittest.equals('foo')); | 440 unittest.expect(o.date, unittest.equals('foo')); |
406 checkUnnamed860(o.reasons); | 441 checkUnnamed11(o.reasons); |
407 } | 442 } |
408 buildCounterCreativeFilteringReasons--; | 443 buildCounterCreativeFilteringReasons--; |
409 } | 444 } |
410 | 445 |
411 buildUnnamed861() { | 446 buildUnnamed12() { |
412 var o = new core.List<core.int>(); | 447 var o = new core.List<core.int>(); |
413 o.add(42); | 448 o.add(42); |
414 o.add(42); | 449 o.add(42); |
415 return o; | 450 return o; |
416 } | 451 } |
417 | 452 |
418 checkUnnamed861(core.List<core.int> o) { | 453 checkUnnamed12(core.List<core.int> o) { |
419 unittest.expect(o, unittest.hasLength(2)); | 454 unittest.expect(o, unittest.hasLength(2)); |
420 unittest.expect(o[0], unittest.equals(42)); | 455 unittest.expect(o[0], unittest.equals(42)); |
421 unittest.expect(o[1], unittest.equals(42)); | 456 unittest.expect(o[1], unittest.equals(42)); |
422 } | 457 } |
423 | 458 |
424 buildUnnamed862() { | 459 buildUnnamed13() { |
425 var o = new core.List<core.int>(); | 460 var o = new core.List<core.int>(); |
426 o.add(42); | 461 o.add(42); |
427 o.add(42); | 462 o.add(42); |
428 return o; | 463 return o; |
429 } | 464 } |
430 | 465 |
431 checkUnnamed862(core.List<core.int> o) { | 466 checkUnnamed13(core.List<core.int> o) { |
432 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
433 unittest.expect(o[0], unittest.equals(42)); | 468 unittest.expect(o[0], unittest.equals(42)); |
434 unittest.expect(o[1], unittest.equals(42)); | 469 unittest.expect(o[1], unittest.equals(42)); |
435 } | 470 } |
436 | 471 |
437 buildUnnamed863() { | 472 buildUnnamed14() { |
438 var o = new core.List<core.int>(); | 473 var o = new core.List<core.int>(); |
439 o.add(42); | 474 o.add(42); |
440 o.add(42); | 475 o.add(42); |
441 return o; | 476 return o; |
442 } | 477 } |
443 | 478 |
444 checkUnnamed863(core.List<core.int> o) { | 479 checkUnnamed14(core.List<core.int> o) { |
445 unittest.expect(o, unittest.hasLength(2)); | 480 unittest.expect(o, unittest.hasLength(2)); |
446 unittest.expect(o[0], unittest.equals(42)); | 481 unittest.expect(o[0], unittest.equals(42)); |
447 unittest.expect(o[1], unittest.equals(42)); | 482 unittest.expect(o[1], unittest.equals(42)); |
448 } | 483 } |
449 | 484 |
450 buildUnnamed864() { | 485 buildUnnamed15() { |
451 var o = new core.List<core.int>(); | 486 var o = new core.List<core.int>(); |
452 o.add(42); | 487 o.add(42); |
453 o.add(42); | 488 o.add(42); |
454 return o; | 489 return o; |
455 } | 490 } |
456 | 491 |
457 checkUnnamed864(core.List<core.int> o) { | 492 checkUnnamed15(core.List<core.int> o) { |
458 unittest.expect(o, unittest.hasLength(2)); | 493 unittest.expect(o, unittest.hasLength(2)); |
459 unittest.expect(o[0], unittest.equals(42)); | 494 unittest.expect(o[0], unittest.equals(42)); |
460 unittest.expect(o[1], unittest.equals(42)); | 495 unittest.expect(o[1], unittest.equals(42)); |
461 } | 496 } |
462 | 497 |
463 core.int buildCounterCreative = 0; | 498 core.int buildCounterCreative = 0; |
464 buildCreative() { | 499 buildCreative() { |
465 var o = new api.Creative(); | 500 var o = new api.Creative(); |
466 buildCounterCreative++; | 501 buildCounterCreative++; |
467 if (buildCounterCreative < 3) { | 502 if (buildCounterCreative < 3) { |
468 o.HTMLSnippet = "foo"; | 503 o.HTMLSnippet = "foo"; |
469 o.accountId = 42; | 504 o.accountId = 42; |
470 o.advertiserId = buildUnnamed853(); | 505 o.advertiserId = buildUnnamed4(); |
471 o.advertiserName = "foo"; | 506 o.advertiserName = "foo"; |
472 o.agencyId = "foo"; | 507 o.agencyId = "foo"; |
473 o.attribute = buildUnnamed854(); | 508 o.attribute = buildUnnamed5(); |
474 o.buyerCreativeId = "foo"; | 509 o.buyerCreativeId = "foo"; |
475 o.clickThroughUrl = buildUnnamed855(); | 510 o.clickThroughUrl = buildUnnamed6(); |
476 o.corrections = buildUnnamed857(); | 511 o.corrections = buildUnnamed8(); |
477 o.disapprovalReasons = buildUnnamed859(); | 512 o.disapprovalReasons = buildUnnamed10(); |
478 o.filteringReasons = buildCreativeFilteringReasons(); | 513 o.filteringReasons = buildCreativeFilteringReasons(); |
479 o.height = 42; | 514 o.height = 42; |
480 o.kind = "foo"; | 515 o.kind = "foo"; |
481 o.productCategories = buildUnnamed861(); | 516 o.productCategories = buildUnnamed12(); |
482 o.restrictedCategories = buildUnnamed862(); | 517 o.restrictedCategories = buildUnnamed13(); |
483 o.sensitiveCategories = buildUnnamed863(); | 518 o.sensitiveCategories = buildUnnamed14(); |
484 o.status = "foo"; | 519 o.status = "foo"; |
485 o.vendorType = buildUnnamed864(); | 520 o.vendorType = buildUnnamed15(); |
486 o.videoURL = "foo"; | 521 o.videoURL = "foo"; |
487 o.width = 42; | 522 o.width = 42; |
488 } | 523 } |
489 buildCounterCreative--; | 524 buildCounterCreative--; |
490 return o; | 525 return o; |
491 } | 526 } |
492 | 527 |
493 checkCreative(api.Creative o) { | 528 checkCreative(api.Creative o) { |
494 buildCounterCreative++; | 529 buildCounterCreative++; |
495 if (buildCounterCreative < 3) { | 530 if (buildCounterCreative < 3) { |
496 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); | 531 unittest.expect(o.HTMLSnippet, unittest.equals('foo')); |
497 unittest.expect(o.accountId, unittest.equals(42)); | 532 unittest.expect(o.accountId, unittest.equals(42)); |
498 checkUnnamed853(o.advertiserId); | 533 checkUnnamed4(o.advertiserId); |
499 unittest.expect(o.advertiserName, unittest.equals('foo')); | 534 unittest.expect(o.advertiserName, unittest.equals('foo')); |
500 unittest.expect(o.agencyId, unittest.equals('foo')); | 535 unittest.expect(o.agencyId, unittest.equals('foo')); |
501 checkUnnamed854(o.attribute); | 536 checkUnnamed5(o.attribute); |
502 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); | 537 unittest.expect(o.buyerCreativeId, unittest.equals('foo')); |
503 checkUnnamed855(o.clickThroughUrl); | 538 checkUnnamed6(o.clickThroughUrl); |
504 checkUnnamed857(o.corrections); | 539 checkUnnamed8(o.corrections); |
505 checkUnnamed859(o.disapprovalReasons); | 540 checkUnnamed10(o.disapprovalReasons); |
506 checkCreativeFilteringReasons(o.filteringReasons); | 541 checkCreativeFilteringReasons(o.filteringReasons); |
507 unittest.expect(o.height, unittest.equals(42)); | 542 unittest.expect(o.height, unittest.equals(42)); |
508 unittest.expect(o.kind, unittest.equals('foo')); | 543 unittest.expect(o.kind, unittest.equals('foo')); |
509 checkUnnamed861(o.productCategories); | 544 checkUnnamed12(o.productCategories); |
510 checkUnnamed862(o.restrictedCategories); | 545 checkUnnamed13(o.restrictedCategories); |
511 checkUnnamed863(o.sensitiveCategories); | 546 checkUnnamed14(o.sensitiveCategories); |
512 unittest.expect(o.status, unittest.equals('foo')); | 547 unittest.expect(o.status, unittest.equals('foo')); |
513 checkUnnamed864(o.vendorType); | 548 checkUnnamed15(o.vendorType); |
514 unittest.expect(o.videoURL, unittest.equals('foo')); | 549 unittest.expect(o.videoURL, unittest.equals('foo')); |
515 unittest.expect(o.width, unittest.equals(42)); | 550 unittest.expect(o.width, unittest.equals(42)); |
516 } | 551 } |
517 buildCounterCreative--; | 552 buildCounterCreative--; |
518 } | 553 } |
519 | 554 |
520 buildUnnamed865() { | 555 buildUnnamed16() { |
521 var o = new core.List<api.Creative>(); | 556 var o = new core.List<api.Creative>(); |
522 o.add(buildCreative()); | 557 o.add(buildCreative()); |
523 o.add(buildCreative()); | 558 o.add(buildCreative()); |
524 return o; | 559 return o; |
525 } | 560 } |
526 | 561 |
527 checkUnnamed865(core.List<api.Creative> o) { | 562 checkUnnamed16(core.List<api.Creative> o) { |
528 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
529 checkCreative(o[0]); | 564 checkCreative(o[0]); |
530 checkCreative(o[1]); | 565 checkCreative(o[1]); |
531 } | 566 } |
532 | 567 |
533 core.int buildCounterCreativesList = 0; | 568 core.int buildCounterCreativesList = 0; |
534 buildCreativesList() { | 569 buildCreativesList() { |
535 var o = new api.CreativesList(); | 570 var o = new api.CreativesList(); |
536 buildCounterCreativesList++; | 571 buildCounterCreativesList++; |
537 if (buildCounterCreativesList < 3) { | 572 if (buildCounterCreativesList < 3) { |
538 o.items = buildUnnamed865(); | 573 o.items = buildUnnamed16(); |
539 o.kind = "foo"; | 574 o.kind = "foo"; |
540 o.nextPageToken = "foo"; | 575 o.nextPageToken = "foo"; |
541 } | 576 } |
542 buildCounterCreativesList--; | 577 buildCounterCreativesList--; |
543 return o; | 578 return o; |
544 } | 579 } |
545 | 580 |
546 checkCreativesList(api.CreativesList o) { | 581 checkCreativesList(api.CreativesList o) { |
547 buildCounterCreativesList++; | 582 buildCounterCreativesList++; |
548 if (buildCounterCreativesList < 3) { | 583 if (buildCounterCreativesList < 3) { |
549 checkUnnamed865(o.items); | 584 checkUnnamed16(o.items); |
550 unittest.expect(o.kind, unittest.equals('foo')); | 585 unittest.expect(o.kind, unittest.equals('foo')); |
551 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 586 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
552 } | 587 } |
553 buildCounterCreativesList--; | 588 buildCounterCreativesList--; |
554 } | 589 } |
555 | 590 |
556 core.int buildCounterDirectDeal = 0; | 591 core.int buildCounterDirectDeal = 0; |
557 buildDirectDeal() { | 592 buildDirectDeal() { |
558 var o = new api.DirectDeal(); | 593 var o = new api.DirectDeal(); |
559 buildCounterDirectDeal++; | 594 buildCounterDirectDeal++; |
(...skipping 27 matching lines...) Expand all Loading... |
587 unittest.expect(o.kind, unittest.equals('foo')); | 622 unittest.expect(o.kind, unittest.equals('foo')); |
588 unittest.expect(o.name, unittest.equals('foo')); | 623 unittest.expect(o.name, unittest.equals('foo')); |
589 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); | 624 unittest.expect(o.privateExchangeMinCpm, unittest.equals('foo')); |
590 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); | 625 unittest.expect(o.publisherBlocksOverriden, unittest.isTrue); |
591 unittest.expect(o.sellerNetwork, unittest.equals('foo')); | 626 unittest.expect(o.sellerNetwork, unittest.equals('foo')); |
592 unittest.expect(o.startTime, unittest.equals('foo')); | 627 unittest.expect(o.startTime, unittest.equals('foo')); |
593 } | 628 } |
594 buildCounterDirectDeal--; | 629 buildCounterDirectDeal--; |
595 } | 630 } |
596 | 631 |
597 buildUnnamed866() { | 632 buildUnnamed17() { |
598 var o = new core.List<api.DirectDeal>(); | 633 var o = new core.List<api.DirectDeal>(); |
599 o.add(buildDirectDeal()); | 634 o.add(buildDirectDeal()); |
600 o.add(buildDirectDeal()); | 635 o.add(buildDirectDeal()); |
601 return o; | 636 return o; |
602 } | 637 } |
603 | 638 |
604 checkUnnamed866(core.List<api.DirectDeal> o) { | 639 checkUnnamed17(core.List<api.DirectDeal> o) { |
605 unittest.expect(o, unittest.hasLength(2)); | 640 unittest.expect(o, unittest.hasLength(2)); |
606 checkDirectDeal(o[0]); | 641 checkDirectDeal(o[0]); |
607 checkDirectDeal(o[1]); | 642 checkDirectDeal(o[1]); |
608 } | 643 } |
609 | 644 |
610 core.int buildCounterDirectDealsList = 0; | 645 core.int buildCounterDirectDealsList = 0; |
611 buildDirectDealsList() { | 646 buildDirectDealsList() { |
612 var o = new api.DirectDealsList(); | 647 var o = new api.DirectDealsList(); |
613 buildCounterDirectDealsList++; | 648 buildCounterDirectDealsList++; |
614 if (buildCounterDirectDealsList < 3) { | 649 if (buildCounterDirectDealsList < 3) { |
615 o.directDeals = buildUnnamed866(); | 650 o.directDeals = buildUnnamed17(); |
616 o.kind = "foo"; | 651 o.kind = "foo"; |
617 } | 652 } |
618 buildCounterDirectDealsList--; | 653 buildCounterDirectDealsList--; |
619 return o; | 654 return o; |
620 } | 655 } |
621 | 656 |
622 checkDirectDealsList(api.DirectDealsList o) { | 657 checkDirectDealsList(api.DirectDealsList o) { |
623 buildCounterDirectDealsList++; | 658 buildCounterDirectDealsList++; |
624 if (buildCounterDirectDealsList < 3) { | 659 if (buildCounterDirectDealsList < 3) { |
625 checkUnnamed866(o.directDeals); | 660 checkUnnamed17(o.directDeals); |
626 unittest.expect(o.kind, unittest.equals('foo')); | 661 unittest.expect(o.kind, unittest.equals('foo')); |
627 } | 662 } |
628 buildCounterDirectDealsList--; | 663 buildCounterDirectDealsList--; |
629 } | 664 } |
630 | 665 |
631 buildUnnamed867() { | 666 buildUnnamed18() { |
632 var o = new core.List<core.Object>(); | 667 var o = new core.List<core.Object>(); |
633 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 668 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
634 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 669 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
635 return o; | 670 return o; |
636 } | 671 } |
637 | 672 |
638 checkUnnamed867(core.List<core.Object> o) { | 673 checkUnnamed18(core.List<core.Object> o) { |
639 unittest.expect(o, unittest.hasLength(2)); | 674 unittest.expect(o, unittest.hasLength(2)); |
640 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 675 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
641 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 676 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
642 } | 677 } |
643 | 678 |
644 buildUnnamed868() { | 679 buildUnnamed19() { |
645 var o = new core.List<core.Object>(); | 680 var o = new core.List<core.Object>(); |
646 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 681 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
647 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 682 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
648 return o; | 683 return o; |
649 } | 684 } |
650 | 685 |
651 checkUnnamed868(core.List<core.Object> o) { | 686 checkUnnamed19(core.List<core.Object> o) { |
652 unittest.expect(o, unittest.hasLength(2)); | 687 unittest.expect(o, unittest.hasLength(2)); |
653 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(
3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u
nittest.equals('foo')); | 688 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(
3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u
nittest.equals('foo')); |
654 var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); | 689 var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); |
655 } | 690 } |
656 | 691 |
657 buildUnnamed869() { | 692 buildUnnamed20() { |
658 var o = new core.List<core.Object>(); | 693 var o = new core.List<core.Object>(); |
659 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 694 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
660 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 695 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
661 return o; | 696 return o; |
662 } | 697 } |
663 | 698 |
664 checkUnnamed869(core.List<core.Object> o) { | 699 checkUnnamed20(core.List<core.Object> o) { |
665 unittest.expect(o, unittest.hasLength(2)); | 700 unittest.expect(o, unittest.hasLength(2)); |
666 var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); | 701 var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); |
667 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(
3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u
nittest.equals('foo')); | 702 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(
3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u
nittest.equals('foo')); |
668 } | 703 } |
669 | 704 |
670 buildUnnamed870() { | 705 buildUnnamed21() { |
671 var o = new core.List<core.Object>(); | 706 var o = new core.List<core.Object>(); |
672 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 707 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
673 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 708 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
674 return o; | 709 return o; |
675 } | 710 } |
676 | 711 |
677 checkUnnamed870(core.List<core.Object> o) { | 712 checkUnnamed21(core.List<core.Object> o) { |
678 unittest.expect(o, unittest.hasLength(2)); | 713 unittest.expect(o, unittest.hasLength(2)); |
679 var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(
3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], u
nittest.equals('foo')); | 714 var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(
3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], u
nittest.equals('foo')); |
680 var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(
3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], u
nittest.equals('foo')); | 715 var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(
3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], u
nittest.equals('foo')); |
681 } | 716 } |
682 | 717 |
683 core.int buildCounterPerformanceReport = 0; | 718 core.int buildCounterPerformanceReport = 0; |
684 buildPerformanceReport() { | 719 buildPerformanceReport() { |
685 var o = new api.PerformanceReport(); | 720 var o = new api.PerformanceReport(); |
686 buildCounterPerformanceReport++; | 721 buildCounterPerformanceReport++; |
687 if (buildCounterPerformanceReport < 3) { | 722 if (buildCounterPerformanceReport < 3) { |
688 o.calloutStatusRate = buildUnnamed867(); | 723 o.calloutStatusRate = buildUnnamed18(); |
689 o.cookieMatcherStatusRate = buildUnnamed868(); | 724 o.cookieMatcherStatusRate = buildUnnamed19(); |
690 o.creativeStatusRate = buildUnnamed869(); | 725 o.creativeStatusRate = buildUnnamed20(); |
691 o.hostedMatchStatusRate = buildUnnamed870(); | 726 o.hostedMatchStatusRate = buildUnnamed21(); |
692 o.kind = "foo"; | 727 o.kind = "foo"; |
693 o.latency50thPercentile = 42.0; | 728 o.latency50thPercentile = 42.0; |
694 o.latency85thPercentile = 42.0; | 729 o.latency85thPercentile = 42.0; |
695 o.latency95thPercentile = 42.0; | 730 o.latency95thPercentile = 42.0; |
696 o.noQuotaInRegion = 42.0; | 731 o.noQuotaInRegion = 42.0; |
697 o.outOfQuota = 42.0; | 732 o.outOfQuota = 42.0; |
698 o.pixelMatchRequests = 42.0; | 733 o.pixelMatchRequests = 42.0; |
699 o.pixelMatchResponses = 42.0; | 734 o.pixelMatchResponses = 42.0; |
700 o.quotaConfiguredLimit = 42.0; | 735 o.quotaConfiguredLimit = 42.0; |
701 o.quotaThrottledLimit = 42.0; | 736 o.quotaThrottledLimit = 42.0; |
702 o.region = "foo"; | 737 o.region = "foo"; |
703 o.timestamp = "foo"; | 738 o.timestamp = "foo"; |
704 } | 739 } |
705 buildCounterPerformanceReport--; | 740 buildCounterPerformanceReport--; |
706 return o; | 741 return o; |
707 } | 742 } |
708 | 743 |
709 checkPerformanceReport(api.PerformanceReport o) { | 744 checkPerformanceReport(api.PerformanceReport o) { |
710 buildCounterPerformanceReport++; | 745 buildCounterPerformanceReport++; |
711 if (buildCounterPerformanceReport < 3) { | 746 if (buildCounterPerformanceReport < 3) { |
712 checkUnnamed867(o.calloutStatusRate); | 747 checkUnnamed18(o.calloutStatusRate); |
713 checkUnnamed868(o.cookieMatcherStatusRate); | 748 checkUnnamed19(o.cookieMatcherStatusRate); |
714 checkUnnamed869(o.creativeStatusRate); | 749 checkUnnamed20(o.creativeStatusRate); |
715 checkUnnamed870(o.hostedMatchStatusRate); | 750 checkUnnamed21(o.hostedMatchStatusRate); |
716 unittest.expect(o.kind, unittest.equals('foo')); | 751 unittest.expect(o.kind, unittest.equals('foo')); |
717 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); | 752 unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); |
718 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); | 753 unittest.expect(o.latency85thPercentile, unittest.equals(42.0)); |
719 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); | 754 unittest.expect(o.latency95thPercentile, unittest.equals(42.0)); |
720 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); | 755 unittest.expect(o.noQuotaInRegion, unittest.equals(42.0)); |
721 unittest.expect(o.outOfQuota, unittest.equals(42.0)); | 756 unittest.expect(o.outOfQuota, unittest.equals(42.0)); |
722 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); | 757 unittest.expect(o.pixelMatchRequests, unittest.equals(42.0)); |
723 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); | 758 unittest.expect(o.pixelMatchResponses, unittest.equals(42.0)); |
724 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); | 759 unittest.expect(o.quotaConfiguredLimit, unittest.equals(42.0)); |
725 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); | 760 unittest.expect(o.quotaThrottledLimit, unittest.equals(42.0)); |
726 unittest.expect(o.region, unittest.equals('foo')); | 761 unittest.expect(o.region, unittest.equals('foo')); |
727 unittest.expect(o.timestamp, unittest.equals('foo')); | 762 unittest.expect(o.timestamp, unittest.equals('foo')); |
728 } | 763 } |
729 buildCounterPerformanceReport--; | 764 buildCounterPerformanceReport--; |
730 } | 765 } |
731 | 766 |
732 buildUnnamed871() { | 767 buildUnnamed22() { |
733 var o = new core.List<api.PerformanceReport>(); | 768 var o = new core.List<api.PerformanceReport>(); |
734 o.add(buildPerformanceReport()); | 769 o.add(buildPerformanceReport()); |
735 o.add(buildPerformanceReport()); | 770 o.add(buildPerformanceReport()); |
736 return o; | 771 return o; |
737 } | 772 } |
738 | 773 |
739 checkUnnamed871(core.List<api.PerformanceReport> o) { | 774 checkUnnamed22(core.List<api.PerformanceReport> o) { |
740 unittest.expect(o, unittest.hasLength(2)); | 775 unittest.expect(o, unittest.hasLength(2)); |
741 checkPerformanceReport(o[0]); | 776 checkPerformanceReport(o[0]); |
742 checkPerformanceReport(o[1]); | 777 checkPerformanceReport(o[1]); |
743 } | 778 } |
744 | 779 |
745 core.int buildCounterPerformanceReportList = 0; | 780 core.int buildCounterPerformanceReportList = 0; |
746 buildPerformanceReportList() { | 781 buildPerformanceReportList() { |
747 var o = new api.PerformanceReportList(); | 782 var o = new api.PerformanceReportList(); |
748 buildCounterPerformanceReportList++; | 783 buildCounterPerformanceReportList++; |
749 if (buildCounterPerformanceReportList < 3) { | 784 if (buildCounterPerformanceReportList < 3) { |
750 o.kind = "foo"; | 785 o.kind = "foo"; |
751 o.performanceReport = buildUnnamed871(); | 786 o.performanceReport = buildUnnamed22(); |
752 } | 787 } |
753 buildCounterPerformanceReportList--; | 788 buildCounterPerformanceReportList--; |
754 return o; | 789 return o; |
755 } | 790 } |
756 | 791 |
757 checkPerformanceReportList(api.PerformanceReportList o) { | 792 checkPerformanceReportList(api.PerformanceReportList o) { |
758 buildCounterPerformanceReportList++; | 793 buildCounterPerformanceReportList++; |
759 if (buildCounterPerformanceReportList < 3) { | 794 if (buildCounterPerformanceReportList < 3) { |
760 unittest.expect(o.kind, unittest.equals('foo')); | 795 unittest.expect(o.kind, unittest.equals('foo')); |
761 checkUnnamed871(o.performanceReport); | 796 checkUnnamed22(o.performanceReport); |
762 } | 797 } |
763 buildCounterPerformanceReportList--; | 798 buildCounterPerformanceReportList--; |
764 } | 799 } |
765 | 800 |
766 buildUnnamed872() { | 801 buildUnnamed23() { |
767 var o = new core.List<core.String>(); | 802 var o = new core.List<core.String>(); |
768 o.add("foo"); | 803 o.add("foo"); |
769 o.add("foo"); | 804 o.add("foo"); |
770 return o; | 805 return o; |
771 } | 806 } |
772 | 807 |
773 checkUnnamed872(core.List<core.String> o) { | 808 checkUnnamed23(core.List<core.String> o) { |
774 unittest.expect(o, unittest.hasLength(2)); | 809 unittest.expect(o, unittest.hasLength(2)); |
775 unittest.expect(o[0], unittest.equals('foo')); | 810 unittest.expect(o[0], unittest.equals('foo')); |
776 unittest.expect(o[1], unittest.equals('foo')); | 811 unittest.expect(o[1], unittest.equals('foo')); |
777 } | 812 } |
778 | 813 |
779 core.int buildCounterPretargetingConfigDimensions = 0; | 814 core.int buildCounterPretargetingConfigDimensions = 0; |
780 buildPretargetingConfigDimensions() { | 815 buildPretargetingConfigDimensions() { |
781 var o = new api.PretargetingConfigDimensions(); | 816 var o = new api.PretargetingConfigDimensions(); |
782 buildCounterPretargetingConfigDimensions++; | 817 buildCounterPretargetingConfigDimensions++; |
783 if (buildCounterPretargetingConfigDimensions < 3) { | 818 if (buildCounterPretargetingConfigDimensions < 3) { |
784 o.height = "foo"; | 819 o.height = "foo"; |
785 o.width = "foo"; | 820 o.width = "foo"; |
786 } | 821 } |
787 buildCounterPretargetingConfigDimensions--; | 822 buildCounterPretargetingConfigDimensions--; |
788 return o; | 823 return o; |
789 } | 824 } |
790 | 825 |
791 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { | 826 checkPretargetingConfigDimensions(api.PretargetingConfigDimensions o) { |
792 buildCounterPretargetingConfigDimensions++; | 827 buildCounterPretargetingConfigDimensions++; |
793 if (buildCounterPretargetingConfigDimensions < 3) { | 828 if (buildCounterPretargetingConfigDimensions < 3) { |
794 unittest.expect(o.height, unittest.equals('foo')); | 829 unittest.expect(o.height, unittest.equals('foo')); |
795 unittest.expect(o.width, unittest.equals('foo')); | 830 unittest.expect(o.width, unittest.equals('foo')); |
796 } | 831 } |
797 buildCounterPretargetingConfigDimensions--; | 832 buildCounterPretargetingConfigDimensions--; |
798 } | 833 } |
799 | 834 |
800 buildUnnamed873() { | 835 buildUnnamed24() { |
801 var o = new core.List<api.PretargetingConfigDimensions>(); | 836 var o = new core.List<api.PretargetingConfigDimensions>(); |
802 o.add(buildPretargetingConfigDimensions()); | 837 o.add(buildPretargetingConfigDimensions()); |
803 o.add(buildPretargetingConfigDimensions()); | 838 o.add(buildPretargetingConfigDimensions()); |
804 return o; | 839 return o; |
805 } | 840 } |
806 | 841 |
807 checkUnnamed873(core.List<api.PretargetingConfigDimensions> o) { | 842 checkUnnamed24(core.List<api.PretargetingConfigDimensions> o) { |
808 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
809 checkPretargetingConfigDimensions(o[0]); | 844 checkPretargetingConfigDimensions(o[0]); |
810 checkPretargetingConfigDimensions(o[1]); | 845 checkPretargetingConfigDimensions(o[1]); |
811 } | 846 } |
812 | 847 |
813 buildUnnamed874() { | 848 buildUnnamed25() { |
814 var o = new core.List<core.String>(); | 849 var o = new core.List<core.String>(); |
815 o.add("foo"); | 850 o.add("foo"); |
816 o.add("foo"); | 851 o.add("foo"); |
817 return o; | 852 return o; |
818 } | 853 } |
819 | 854 |
820 checkUnnamed874(core.List<core.String> o) { | 855 checkUnnamed25(core.List<core.String> o) { |
821 unittest.expect(o, unittest.hasLength(2)); | 856 unittest.expect(o, unittest.hasLength(2)); |
822 unittest.expect(o[0], unittest.equals('foo')); | 857 unittest.expect(o[0], unittest.equals('foo')); |
823 unittest.expect(o[1], unittest.equals('foo')); | 858 unittest.expect(o[1], unittest.equals('foo')); |
824 } | 859 } |
825 | 860 |
826 buildUnnamed875() { | 861 buildUnnamed26() { |
827 var o = new core.List<core.String>(); | 862 var o = new core.List<core.String>(); |
828 o.add("foo"); | 863 o.add("foo"); |
829 o.add("foo"); | 864 o.add("foo"); |
830 return o; | 865 return o; |
831 } | 866 } |
832 | 867 |
833 checkUnnamed875(core.List<core.String> o) { | 868 checkUnnamed26(core.List<core.String> o) { |
834 unittest.expect(o, unittest.hasLength(2)); | 869 unittest.expect(o, unittest.hasLength(2)); |
835 unittest.expect(o[0], unittest.equals('foo')); | 870 unittest.expect(o[0], unittest.equals('foo')); |
836 unittest.expect(o[1], unittest.equals('foo')); | 871 unittest.expect(o[1], unittest.equals('foo')); |
837 } | 872 } |
838 | 873 |
839 core.int buildCounterPretargetingConfigExcludedPlacements = 0; | 874 core.int buildCounterPretargetingConfigExcludedPlacements = 0; |
840 buildPretargetingConfigExcludedPlacements() { | 875 buildPretargetingConfigExcludedPlacements() { |
841 var o = new api.PretargetingConfigExcludedPlacements(); | 876 var o = new api.PretargetingConfigExcludedPlacements(); |
842 buildCounterPretargetingConfigExcludedPlacements++; | 877 buildCounterPretargetingConfigExcludedPlacements++; |
843 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 878 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
844 o.token = "foo"; | 879 o.token = "foo"; |
845 o.type = "foo"; | 880 o.type = "foo"; |
846 } | 881 } |
847 buildCounterPretargetingConfigExcludedPlacements--; | 882 buildCounterPretargetingConfigExcludedPlacements--; |
848 return o; | 883 return o; |
849 } | 884 } |
850 | 885 |
851 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { | 886 checkPretargetingConfigExcludedPlacements(api.PretargetingConfigExcludedPlacemen
ts o) { |
852 buildCounterPretargetingConfigExcludedPlacements++; | 887 buildCounterPretargetingConfigExcludedPlacements++; |
853 if (buildCounterPretargetingConfigExcludedPlacements < 3) { | 888 if (buildCounterPretargetingConfigExcludedPlacements < 3) { |
854 unittest.expect(o.token, unittest.equals('foo')); | 889 unittest.expect(o.token, unittest.equals('foo')); |
855 unittest.expect(o.type, unittest.equals('foo')); | 890 unittest.expect(o.type, unittest.equals('foo')); |
856 } | 891 } |
857 buildCounterPretargetingConfigExcludedPlacements--; | 892 buildCounterPretargetingConfigExcludedPlacements--; |
858 } | 893 } |
859 | 894 |
860 buildUnnamed876() { | 895 buildUnnamed27() { |
861 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); | 896 var o = new core.List<api.PretargetingConfigExcludedPlacements>(); |
862 o.add(buildPretargetingConfigExcludedPlacements()); | 897 o.add(buildPretargetingConfigExcludedPlacements()); |
863 o.add(buildPretargetingConfigExcludedPlacements()); | 898 o.add(buildPretargetingConfigExcludedPlacements()); |
864 return o; | 899 return o; |
865 } | 900 } |
866 | 901 |
867 checkUnnamed876(core.List<api.PretargetingConfigExcludedPlacements> o) { | 902 checkUnnamed27(core.List<api.PretargetingConfigExcludedPlacements> o) { |
868 unittest.expect(o, unittest.hasLength(2)); | 903 unittest.expect(o, unittest.hasLength(2)); |
869 checkPretargetingConfigExcludedPlacements(o[0]); | 904 checkPretargetingConfigExcludedPlacements(o[0]); |
870 checkPretargetingConfigExcludedPlacements(o[1]); | 905 checkPretargetingConfigExcludedPlacements(o[1]); |
871 } | 906 } |
872 | 907 |
873 buildUnnamed877() { | 908 buildUnnamed28() { |
874 var o = new core.List<core.String>(); | 909 var o = new core.List<core.String>(); |
875 o.add("foo"); | 910 o.add("foo"); |
876 o.add("foo"); | 911 o.add("foo"); |
877 return o; | 912 return o; |
878 } | 913 } |
879 | 914 |
880 checkUnnamed877(core.List<core.String> o) { | 915 checkUnnamed28(core.List<core.String> o) { |
881 unittest.expect(o, unittest.hasLength(2)); | 916 unittest.expect(o, unittest.hasLength(2)); |
882 unittest.expect(o[0], unittest.equals('foo')); | 917 unittest.expect(o[0], unittest.equals('foo')); |
883 unittest.expect(o[1], unittest.equals('foo')); | 918 unittest.expect(o[1], unittest.equals('foo')); |
884 } | 919 } |
885 | 920 |
886 buildUnnamed878() { | 921 buildUnnamed29() { |
887 var o = new core.List<core.String>(); | 922 var o = new core.List<core.String>(); |
888 o.add("foo"); | 923 o.add("foo"); |
889 o.add("foo"); | 924 o.add("foo"); |
890 return o; | 925 return o; |
891 } | 926 } |
892 | 927 |
893 checkUnnamed878(core.List<core.String> o) { | 928 checkUnnamed29(core.List<core.String> o) { |
894 unittest.expect(o, unittest.hasLength(2)); | 929 unittest.expect(o, unittest.hasLength(2)); |
895 unittest.expect(o[0], unittest.equals('foo')); | 930 unittest.expect(o[0], unittest.equals('foo')); |
896 unittest.expect(o[1], unittest.equals('foo')); | 931 unittest.expect(o[1], unittest.equals('foo')); |
897 } | 932 } |
898 | 933 |
899 buildUnnamed879() { | 934 buildUnnamed30() { |
900 var o = new core.List<core.String>(); | 935 var o = new core.List<core.String>(); |
901 o.add("foo"); | 936 o.add("foo"); |
902 o.add("foo"); | 937 o.add("foo"); |
903 return o; | 938 return o; |
904 } | 939 } |
905 | 940 |
906 checkUnnamed879(core.List<core.String> o) { | 941 checkUnnamed30(core.List<core.String> o) { |
907 unittest.expect(o, unittest.hasLength(2)); | 942 unittest.expect(o, unittest.hasLength(2)); |
908 unittest.expect(o[0], unittest.equals('foo')); | 943 unittest.expect(o[0], unittest.equals('foo')); |
909 unittest.expect(o[1], unittest.equals('foo')); | 944 unittest.expect(o[1], unittest.equals('foo')); |
910 } | 945 } |
911 | 946 |
912 buildUnnamed880() { | 947 buildUnnamed31() { |
913 var o = new core.List<core.String>(); | 948 var o = new core.List<core.String>(); |
914 o.add("foo"); | 949 o.add("foo"); |
915 o.add("foo"); | 950 o.add("foo"); |
916 return o; | 951 return o; |
917 } | 952 } |
918 | 953 |
919 checkUnnamed880(core.List<core.String> o) { | 954 checkUnnamed31(core.List<core.String> o) { |
920 unittest.expect(o, unittest.hasLength(2)); | 955 unittest.expect(o, unittest.hasLength(2)); |
921 unittest.expect(o[0], unittest.equals('foo')); | 956 unittest.expect(o[0], unittest.equals('foo')); |
922 unittest.expect(o[1], unittest.equals('foo')); | 957 unittest.expect(o[1], unittest.equals('foo')); |
923 } | 958 } |
924 | 959 |
925 buildUnnamed881() { | 960 buildUnnamed32() { |
926 var o = new core.List<core.String>(); | 961 var o = new core.List<core.String>(); |
927 o.add("foo"); | 962 o.add("foo"); |
928 o.add("foo"); | 963 o.add("foo"); |
929 return o; | 964 return o; |
930 } | 965 } |
931 | 966 |
932 checkUnnamed881(core.List<core.String> o) { | 967 checkUnnamed32(core.List<core.String> o) { |
933 unittest.expect(o, unittest.hasLength(2)); | 968 unittest.expect(o, unittest.hasLength(2)); |
934 unittest.expect(o[0], unittest.equals('foo')); | 969 unittest.expect(o[0], unittest.equals('foo')); |
935 unittest.expect(o[1], unittest.equals('foo')); | 970 unittest.expect(o[1], unittest.equals('foo')); |
936 } | 971 } |
937 | 972 |
938 buildUnnamed882() { | 973 buildUnnamed33() { |
939 var o = new core.List<core.String>(); | 974 var o = new core.List<core.String>(); |
940 o.add("foo"); | 975 o.add("foo"); |
941 o.add("foo"); | 976 o.add("foo"); |
942 return o; | 977 return o; |
943 } | 978 } |
944 | 979 |
945 checkUnnamed882(core.List<core.String> o) { | 980 checkUnnamed33(core.List<core.String> o) { |
946 unittest.expect(o, unittest.hasLength(2)); | 981 unittest.expect(o, unittest.hasLength(2)); |
947 unittest.expect(o[0], unittest.equals('foo')); | 982 unittest.expect(o[0], unittest.equals('foo')); |
948 unittest.expect(o[1], unittest.equals('foo')); | 983 unittest.expect(o[1], unittest.equals('foo')); |
949 } | 984 } |
950 | 985 |
951 buildUnnamed883() { | 986 buildUnnamed34() { |
952 var o = new core.List<core.String>(); | 987 var o = new core.List<core.String>(); |
953 o.add("foo"); | 988 o.add("foo"); |
954 o.add("foo"); | 989 o.add("foo"); |
955 return o; | 990 return o; |
956 } | 991 } |
957 | 992 |
958 checkUnnamed883(core.List<core.String> o) { | 993 checkUnnamed34(core.List<core.String> o) { |
959 unittest.expect(o, unittest.hasLength(2)); | 994 unittest.expect(o, unittest.hasLength(2)); |
960 unittest.expect(o[0], unittest.equals('foo')); | 995 unittest.expect(o[0], unittest.equals('foo')); |
961 unittest.expect(o[1], unittest.equals('foo')); | 996 unittest.expect(o[1], unittest.equals('foo')); |
962 } | 997 } |
963 | 998 |
964 core.int buildCounterPretargetingConfigPlacements = 0; | 999 core.int buildCounterPretargetingConfigPlacements = 0; |
965 buildPretargetingConfigPlacements() { | 1000 buildPretargetingConfigPlacements() { |
966 var o = new api.PretargetingConfigPlacements(); | 1001 var o = new api.PretargetingConfigPlacements(); |
967 buildCounterPretargetingConfigPlacements++; | 1002 buildCounterPretargetingConfigPlacements++; |
968 if (buildCounterPretargetingConfigPlacements < 3) { | 1003 if (buildCounterPretargetingConfigPlacements < 3) { |
969 o.token = "foo"; | 1004 o.token = "foo"; |
970 o.type = "foo"; | 1005 o.type = "foo"; |
971 } | 1006 } |
972 buildCounterPretargetingConfigPlacements--; | 1007 buildCounterPretargetingConfigPlacements--; |
973 return o; | 1008 return o; |
974 } | 1009 } |
975 | 1010 |
976 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { | 1011 checkPretargetingConfigPlacements(api.PretargetingConfigPlacements o) { |
977 buildCounterPretargetingConfigPlacements++; | 1012 buildCounterPretargetingConfigPlacements++; |
978 if (buildCounterPretargetingConfigPlacements < 3) { | 1013 if (buildCounterPretargetingConfigPlacements < 3) { |
979 unittest.expect(o.token, unittest.equals('foo')); | 1014 unittest.expect(o.token, unittest.equals('foo')); |
980 unittest.expect(o.type, unittest.equals('foo')); | 1015 unittest.expect(o.type, unittest.equals('foo')); |
981 } | 1016 } |
982 buildCounterPretargetingConfigPlacements--; | 1017 buildCounterPretargetingConfigPlacements--; |
983 } | 1018 } |
984 | 1019 |
985 buildUnnamed884() { | 1020 buildUnnamed35() { |
986 var o = new core.List<api.PretargetingConfigPlacements>(); | 1021 var o = new core.List<api.PretargetingConfigPlacements>(); |
987 o.add(buildPretargetingConfigPlacements()); | 1022 o.add(buildPretargetingConfigPlacements()); |
988 o.add(buildPretargetingConfigPlacements()); | 1023 o.add(buildPretargetingConfigPlacements()); |
989 return o; | 1024 return o; |
990 } | 1025 } |
991 | 1026 |
992 checkUnnamed884(core.List<api.PretargetingConfigPlacements> o) { | 1027 checkUnnamed35(core.List<api.PretargetingConfigPlacements> o) { |
993 unittest.expect(o, unittest.hasLength(2)); | 1028 unittest.expect(o, unittest.hasLength(2)); |
994 checkPretargetingConfigPlacements(o[0]); | 1029 checkPretargetingConfigPlacements(o[0]); |
995 checkPretargetingConfigPlacements(o[1]); | 1030 checkPretargetingConfigPlacements(o[1]); |
996 } | 1031 } |
997 | 1032 |
998 buildUnnamed885() { | 1033 buildUnnamed36() { |
999 var o = new core.List<core.String>(); | 1034 var o = new core.List<core.String>(); |
1000 o.add("foo"); | 1035 o.add("foo"); |
1001 o.add("foo"); | 1036 o.add("foo"); |
1002 return o; | 1037 return o; |
1003 } | 1038 } |
1004 | 1039 |
1005 checkUnnamed885(core.List<core.String> o) { | 1040 checkUnnamed36(core.List<core.String> o) { |
1006 unittest.expect(o, unittest.hasLength(2)); | 1041 unittest.expect(o, unittest.hasLength(2)); |
1007 unittest.expect(o[0], unittest.equals('foo')); | 1042 unittest.expect(o[0], unittest.equals('foo')); |
1008 unittest.expect(o[1], unittest.equals('foo')); | 1043 unittest.expect(o[1], unittest.equals('foo')); |
1009 } | 1044 } |
1010 | 1045 |
1011 buildUnnamed886() { | 1046 buildUnnamed37() { |
1012 var o = new core.List<core.String>(); | 1047 var o = new core.List<core.String>(); |
1013 o.add("foo"); | 1048 o.add("foo"); |
1014 o.add("foo"); | 1049 o.add("foo"); |
1015 return o; | 1050 return o; |
1016 } | 1051 } |
1017 | 1052 |
1018 checkUnnamed886(core.List<core.String> o) { | 1053 checkUnnamed37(core.List<core.String> o) { |
1019 unittest.expect(o, unittest.hasLength(2)); | 1054 unittest.expect(o, unittest.hasLength(2)); |
1020 unittest.expect(o[0], unittest.equals('foo')); | 1055 unittest.expect(o[0], unittest.equals('foo')); |
1021 unittest.expect(o[1], unittest.equals('foo')); | 1056 unittest.expect(o[1], unittest.equals('foo')); |
1022 } | 1057 } |
1023 | 1058 |
1024 buildUnnamed887() { | 1059 buildUnnamed38() { |
1025 var o = new core.List<core.String>(); | 1060 var o = new core.List<core.String>(); |
1026 o.add("foo"); | 1061 o.add("foo"); |
1027 o.add("foo"); | 1062 o.add("foo"); |
1028 return o; | 1063 return o; |
1029 } | 1064 } |
1030 | 1065 |
1031 checkUnnamed887(core.List<core.String> o) { | 1066 checkUnnamed38(core.List<core.String> o) { |
1032 unittest.expect(o, unittest.hasLength(2)); | 1067 unittest.expect(o, unittest.hasLength(2)); |
1033 unittest.expect(o[0], unittest.equals('foo')); | 1068 unittest.expect(o[0], unittest.equals('foo')); |
1034 unittest.expect(o[1], unittest.equals('foo')); | 1069 unittest.expect(o[1], unittest.equals('foo')); |
1035 } | 1070 } |
1036 | 1071 |
1037 buildUnnamed888() { | 1072 buildUnnamed39() { |
1038 var o = new core.List<core.String>(); | 1073 var o = new core.List<core.String>(); |
1039 o.add("foo"); | 1074 o.add("foo"); |
1040 o.add("foo"); | 1075 o.add("foo"); |
1041 return o; | 1076 return o; |
1042 } | 1077 } |
1043 | 1078 |
1044 checkUnnamed888(core.List<core.String> o) { | 1079 checkUnnamed39(core.List<core.String> o) { |
1045 unittest.expect(o, unittest.hasLength(2)); | 1080 unittest.expect(o, unittest.hasLength(2)); |
1046 unittest.expect(o[0], unittest.equals('foo')); | 1081 unittest.expect(o[0], unittest.equals('foo')); |
1047 unittest.expect(o[1], unittest.equals('foo')); | 1082 unittest.expect(o[1], unittest.equals('foo')); |
1048 } | 1083 } |
1049 | 1084 |
1050 buildUnnamed889() { | 1085 buildUnnamed40() { |
1051 var o = new core.List<core.String>(); | 1086 var o = new core.List<core.String>(); |
1052 o.add("foo"); | 1087 o.add("foo"); |
1053 o.add("foo"); | 1088 o.add("foo"); |
1054 return o; | 1089 return o; |
1055 } | 1090 } |
1056 | 1091 |
1057 checkUnnamed889(core.List<core.String> o) { | 1092 checkUnnamed40(core.List<core.String> o) { |
1058 unittest.expect(o, unittest.hasLength(2)); | 1093 unittest.expect(o, unittest.hasLength(2)); |
1059 unittest.expect(o[0], unittest.equals('foo')); | 1094 unittest.expect(o[0], unittest.equals('foo')); |
1060 unittest.expect(o[1], unittest.equals('foo')); | 1095 unittest.expect(o[1], unittest.equals('foo')); |
1061 } | 1096 } |
1062 | 1097 |
1063 core.int buildCounterPretargetingConfig = 0; | 1098 core.int buildCounterPretargetingConfig = 0; |
1064 buildPretargetingConfig() { | 1099 buildPretargetingConfig() { |
1065 var o = new api.PretargetingConfig(); | 1100 var o = new api.PretargetingConfig(); |
1066 buildCounterPretargetingConfig++; | 1101 buildCounterPretargetingConfig++; |
1067 if (buildCounterPretargetingConfig < 3) { | 1102 if (buildCounterPretargetingConfig < 3) { |
1068 o.billingId = "foo"; | 1103 o.billingId = "foo"; |
1069 o.configId = "foo"; | 1104 o.configId = "foo"; |
1070 o.configName = "foo"; | 1105 o.configName = "foo"; |
1071 o.creativeType = buildUnnamed872(); | 1106 o.creativeType = buildUnnamed23(); |
1072 o.dimensions = buildUnnamed873(); | 1107 o.dimensions = buildUnnamed24(); |
1073 o.excludedContentLabels = buildUnnamed874(); | 1108 o.excludedContentLabels = buildUnnamed25(); |
1074 o.excludedGeoCriteriaIds = buildUnnamed875(); | 1109 o.excludedGeoCriteriaIds = buildUnnamed26(); |
1075 o.excludedPlacements = buildUnnamed876(); | 1110 o.excludedPlacements = buildUnnamed27(); |
1076 o.excludedUserLists = buildUnnamed877(); | 1111 o.excludedUserLists = buildUnnamed28(); |
1077 o.excludedVerticals = buildUnnamed878(); | 1112 o.excludedVerticals = buildUnnamed29(); |
1078 o.geoCriteriaIds = buildUnnamed879(); | 1113 o.geoCriteriaIds = buildUnnamed30(); |
1079 o.isActive = true; | 1114 o.isActive = true; |
1080 o.kind = "foo"; | 1115 o.kind = "foo"; |
1081 o.languages = buildUnnamed880(); | 1116 o.languages = buildUnnamed31(); |
1082 o.mobileCarriers = buildUnnamed881(); | 1117 o.mobileCarriers = buildUnnamed32(); |
1083 o.mobileDevices = buildUnnamed882(); | 1118 o.mobileDevices = buildUnnamed33(); |
1084 o.mobileOperatingSystemVersions = buildUnnamed883(); | 1119 o.mobileOperatingSystemVersions = buildUnnamed34(); |
1085 o.placements = buildUnnamed884(); | 1120 o.placements = buildUnnamed35(); |
1086 o.platforms = buildUnnamed885(); | 1121 o.platforms = buildUnnamed36(); |
1087 o.supportedCreativeAttributes = buildUnnamed886(); | 1122 o.supportedCreativeAttributes = buildUnnamed37(); |
1088 o.userLists = buildUnnamed887(); | 1123 o.userLists = buildUnnamed38(); |
1089 o.vendorTypes = buildUnnamed888(); | 1124 o.vendorTypes = buildUnnamed39(); |
1090 o.verticals = buildUnnamed889(); | 1125 o.verticals = buildUnnamed40(); |
1091 } | 1126 } |
1092 buildCounterPretargetingConfig--; | 1127 buildCounterPretargetingConfig--; |
1093 return o; | 1128 return o; |
1094 } | 1129 } |
1095 | 1130 |
1096 checkPretargetingConfig(api.PretargetingConfig o) { | 1131 checkPretargetingConfig(api.PretargetingConfig o) { |
1097 buildCounterPretargetingConfig++; | 1132 buildCounterPretargetingConfig++; |
1098 if (buildCounterPretargetingConfig < 3) { | 1133 if (buildCounterPretargetingConfig < 3) { |
1099 unittest.expect(o.billingId, unittest.equals('foo')); | 1134 unittest.expect(o.billingId, unittest.equals('foo')); |
1100 unittest.expect(o.configId, unittest.equals('foo')); | 1135 unittest.expect(o.configId, unittest.equals('foo')); |
1101 unittest.expect(o.configName, unittest.equals('foo')); | 1136 unittest.expect(o.configName, unittest.equals('foo')); |
1102 checkUnnamed872(o.creativeType); | 1137 checkUnnamed23(o.creativeType); |
1103 checkUnnamed873(o.dimensions); | 1138 checkUnnamed24(o.dimensions); |
1104 checkUnnamed874(o.excludedContentLabels); | 1139 checkUnnamed25(o.excludedContentLabels); |
1105 checkUnnamed875(o.excludedGeoCriteriaIds); | 1140 checkUnnamed26(o.excludedGeoCriteriaIds); |
1106 checkUnnamed876(o.excludedPlacements); | 1141 checkUnnamed27(o.excludedPlacements); |
1107 checkUnnamed877(o.excludedUserLists); | 1142 checkUnnamed28(o.excludedUserLists); |
1108 checkUnnamed878(o.excludedVerticals); | 1143 checkUnnamed29(o.excludedVerticals); |
1109 checkUnnamed879(o.geoCriteriaIds); | 1144 checkUnnamed30(o.geoCriteriaIds); |
1110 unittest.expect(o.isActive, unittest.isTrue); | 1145 unittest.expect(o.isActive, unittest.isTrue); |
1111 unittest.expect(o.kind, unittest.equals('foo')); | 1146 unittest.expect(o.kind, unittest.equals('foo')); |
1112 checkUnnamed880(o.languages); | 1147 checkUnnamed31(o.languages); |
1113 checkUnnamed881(o.mobileCarriers); | 1148 checkUnnamed32(o.mobileCarriers); |
1114 checkUnnamed882(o.mobileDevices); | 1149 checkUnnamed33(o.mobileDevices); |
1115 checkUnnamed883(o.mobileOperatingSystemVersions); | 1150 checkUnnamed34(o.mobileOperatingSystemVersions); |
1116 checkUnnamed884(o.placements); | 1151 checkUnnamed35(o.placements); |
1117 checkUnnamed885(o.platforms); | 1152 checkUnnamed36(o.platforms); |
1118 checkUnnamed886(o.supportedCreativeAttributes); | 1153 checkUnnamed37(o.supportedCreativeAttributes); |
1119 checkUnnamed887(o.userLists); | 1154 checkUnnamed38(o.userLists); |
1120 checkUnnamed888(o.vendorTypes); | 1155 checkUnnamed39(o.vendorTypes); |
1121 checkUnnamed889(o.verticals); | 1156 checkUnnamed40(o.verticals); |
1122 } | 1157 } |
1123 buildCounterPretargetingConfig--; | 1158 buildCounterPretargetingConfig--; |
1124 } | 1159 } |
1125 | 1160 |
1126 buildUnnamed890() { | 1161 buildUnnamed41() { |
1127 var o = new core.List<api.PretargetingConfig>(); | 1162 var o = new core.List<api.PretargetingConfig>(); |
1128 o.add(buildPretargetingConfig()); | 1163 o.add(buildPretargetingConfig()); |
1129 o.add(buildPretargetingConfig()); | 1164 o.add(buildPretargetingConfig()); |
1130 return o; | 1165 return o; |
1131 } | 1166 } |
1132 | 1167 |
1133 checkUnnamed890(core.List<api.PretargetingConfig> o) { | 1168 checkUnnamed41(core.List<api.PretargetingConfig> o) { |
1134 unittest.expect(o, unittest.hasLength(2)); | 1169 unittest.expect(o, unittest.hasLength(2)); |
1135 checkPretargetingConfig(o[0]); | 1170 checkPretargetingConfig(o[0]); |
1136 checkPretargetingConfig(o[1]); | 1171 checkPretargetingConfig(o[1]); |
1137 } | 1172 } |
1138 | 1173 |
1139 core.int buildCounterPretargetingConfigList = 0; | 1174 core.int buildCounterPretargetingConfigList = 0; |
1140 buildPretargetingConfigList() { | 1175 buildPretargetingConfigList() { |
1141 var o = new api.PretargetingConfigList(); | 1176 var o = new api.PretargetingConfigList(); |
1142 buildCounterPretargetingConfigList++; | 1177 buildCounterPretargetingConfigList++; |
1143 if (buildCounterPretargetingConfigList < 3) { | 1178 if (buildCounterPretargetingConfigList < 3) { |
1144 o.items = buildUnnamed890(); | 1179 o.items = buildUnnamed41(); |
1145 o.kind = "foo"; | 1180 o.kind = "foo"; |
1146 } | 1181 } |
1147 buildCounterPretargetingConfigList--; | 1182 buildCounterPretargetingConfigList--; |
1148 return o; | 1183 return o; |
1149 } | 1184 } |
1150 | 1185 |
1151 checkPretargetingConfigList(api.PretargetingConfigList o) { | 1186 checkPretargetingConfigList(api.PretargetingConfigList o) { |
1152 buildCounterPretargetingConfigList++; | 1187 buildCounterPretargetingConfigList++; |
1153 if (buildCounterPretargetingConfigList < 3) { | 1188 if (buildCounterPretargetingConfigList < 3) { |
1154 checkUnnamed890(o.items); | 1189 checkUnnamed41(o.items); |
1155 unittest.expect(o.kind, unittest.equals('foo')); | 1190 unittest.expect(o.kind, unittest.equals('foo')); |
1156 } | 1191 } |
1157 buildCounterPretargetingConfigList--; | 1192 buildCounterPretargetingConfigList--; |
1158 } | 1193 } |
1159 | 1194 |
1160 buildUnnamed891() { | 1195 buildUnnamed42() { |
1161 var o = new core.List<core.int>(); | 1196 var o = new core.List<core.int>(); |
1162 o.add(42); | 1197 o.add(42); |
1163 o.add(42); | 1198 o.add(42); |
1164 return o; | 1199 return o; |
1165 } | 1200 } |
1166 | 1201 |
1167 checkUnnamed891(core.List<core.int> o) { | 1202 checkUnnamed42(core.List<core.int> o) { |
1168 unittest.expect(o, unittest.hasLength(2)); | 1203 unittest.expect(o, unittest.hasLength(2)); |
1169 unittest.expect(o[0], unittest.equals(42)); | 1204 unittest.expect(o[0], unittest.equals(42)); |
1170 unittest.expect(o[1], unittest.equals(42)); | 1205 unittest.expect(o[1], unittest.equals(42)); |
1171 } | 1206 } |
1172 | 1207 |
1173 buildUnnamed892() { | 1208 buildUnnamed43() { |
1174 var o = new core.List<core.String>(); | 1209 var o = new core.List<core.String>(); |
1175 o.add("foo"); | 1210 o.add("foo"); |
1176 o.add("foo"); | 1211 o.add("foo"); |
1177 return o; | 1212 return o; |
1178 } | 1213 } |
1179 | 1214 |
1180 checkUnnamed892(core.List<core.String> o) { | 1215 checkUnnamed43(core.List<core.String> o) { |
1181 unittest.expect(o, unittest.hasLength(2)); | 1216 unittest.expect(o, unittest.hasLength(2)); |
1182 unittest.expect(o[0], unittest.equals('foo')); | 1217 unittest.expect(o[0], unittest.equals('foo')); |
1183 unittest.expect(o[1], unittest.equals('foo')); | 1218 unittest.expect(o[1], unittest.equals('foo')); |
1184 } | 1219 } |
1185 | 1220 |
1186 | 1221 |
1187 main() { | 1222 main() { |
1188 unittest.group("obj-schema-AccountBidderLocation", () { | 1223 unittest.group("obj-schema-AccountBidderLocation", () { |
1189 unittest.test("to-json--from-json", () { | 1224 unittest.test("to-json--from-json", () { |
1190 var o = buildAccountBidderLocation(); | 1225 var o = buildAccountBidderLocation(); |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 var o = buildPretargetingConfigList(); | 1405 var o = buildPretargetingConfigList(); |
1371 var od = new api.PretargetingConfigList.fromJson(o.toJson()); | 1406 var od = new api.PretargetingConfigList.fromJson(o.toJson()); |
1372 checkPretargetingConfigList(od); | 1407 checkPretargetingConfigList(od); |
1373 }); | 1408 }); |
1374 }); | 1409 }); |
1375 | 1410 |
1376 | 1411 |
1377 unittest.group("resource-AccountsResourceApi", () { | 1412 unittest.group("resource-AccountsResourceApi", () { |
1378 unittest.test("method--get", () { | 1413 unittest.test("method--get", () { |
1379 | 1414 |
1380 var mock = new common_test.HttpServerMock(); | 1415 var mock = new HttpServerMock(); |
1381 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; | 1416 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; |
1382 var arg_id = 42; | 1417 var arg_id = 42; |
1383 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1418 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1384 var path = (req.url).path; | 1419 var path = (req.url).path; |
1385 var pathOffset = 0; | 1420 var pathOffset = 0; |
1386 var index; | 1421 var index; |
1387 var subPart; | 1422 var subPart; |
1388 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1423 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1389 pathOffset += 1; | 1424 pathOffset += 1; |
1390 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1425 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
(...skipping 19 matching lines...) Expand all Loading... |
1410 var keyvalue = part.split("="); | 1445 var keyvalue = part.split("="); |
1411 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1446 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1412 } | 1447 } |
1413 } | 1448 } |
1414 | 1449 |
1415 | 1450 |
1416 var h = { | 1451 var h = { |
1417 "content-type" : "application/json; charset=utf-8", | 1452 "content-type" : "application/json; charset=utf-8", |
1418 }; | 1453 }; |
1419 var resp = convert.JSON.encode(buildAccount()); | 1454 var resp = convert.JSON.encode(buildAccount()); |
1420 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1455 return new async.Future.value(stringResponse(200, h, resp)); |
1421 }), true); | 1456 }), true); |
1422 res.get(arg_id).then(unittest.expectAsync(((api.Account response) { | 1457 res.get(arg_id).then(unittest.expectAsync(((api.Account response) { |
1423 checkAccount(response); | 1458 checkAccount(response); |
1424 }))); | 1459 }))); |
1425 }); | 1460 }); |
1426 | 1461 |
1427 unittest.test("method--list", () { | 1462 unittest.test("method--list", () { |
1428 | 1463 |
1429 var mock = new common_test.HttpServerMock(); | 1464 var mock = new HttpServerMock(); |
1430 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; | 1465 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; |
1431 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1466 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1432 var path = (req.url).path; | 1467 var path = (req.url).path; |
1433 var pathOffset = 0; | 1468 var pathOffset = 0; |
1434 var index; | 1469 var index; |
1435 var subPart; | 1470 var subPart; |
1436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1471 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1437 pathOffset += 1; | 1472 pathOffset += 1; |
1438 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1473 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
1439 pathOffset += 21; | 1474 pathOffset += 21; |
(...skipping 15 matching lines...) Expand all Loading... |
1455 var keyvalue = part.split("="); | 1490 var keyvalue = part.split("="); |
1456 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1491 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1457 } | 1492 } |
1458 } | 1493 } |
1459 | 1494 |
1460 | 1495 |
1461 var h = { | 1496 var h = { |
1462 "content-type" : "application/json; charset=utf-8", | 1497 "content-type" : "application/json; charset=utf-8", |
1463 }; | 1498 }; |
1464 var resp = convert.JSON.encode(buildAccountsList()); | 1499 var resp = convert.JSON.encode(buildAccountsList()); |
1465 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1500 return new async.Future.value(stringResponse(200, h, resp)); |
1466 }), true); | 1501 }), true); |
1467 res.list().then(unittest.expectAsync(((api.AccountsList response) { | 1502 res.list().then(unittest.expectAsync(((api.AccountsList response) { |
1468 checkAccountsList(response); | 1503 checkAccountsList(response); |
1469 }))); | 1504 }))); |
1470 }); | 1505 }); |
1471 | 1506 |
1472 unittest.test("method--patch", () { | 1507 unittest.test("method--patch", () { |
1473 | 1508 |
1474 var mock = new common_test.HttpServerMock(); | 1509 var mock = new HttpServerMock(); |
1475 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; | 1510 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; |
1476 var arg_request = buildAccount(); | 1511 var arg_request = buildAccount(); |
1477 var arg_id = 42; | 1512 var arg_id = 42; |
1478 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1513 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1479 var obj = new api.Account.fromJson(json); | 1514 var obj = new api.Account.fromJson(json); |
1480 checkAccount(obj); | 1515 checkAccount(obj); |
1481 | 1516 |
1482 var path = (req.url).path; | 1517 var path = (req.url).path; |
1483 var pathOffset = 0; | 1518 var pathOffset = 0; |
1484 var index; | 1519 var index; |
(...skipping 23 matching lines...) Expand all Loading... |
1508 var keyvalue = part.split("="); | 1543 var keyvalue = part.split("="); |
1509 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1544 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1510 } | 1545 } |
1511 } | 1546 } |
1512 | 1547 |
1513 | 1548 |
1514 var h = { | 1549 var h = { |
1515 "content-type" : "application/json; charset=utf-8", | 1550 "content-type" : "application/json; charset=utf-8", |
1516 }; | 1551 }; |
1517 var resp = convert.JSON.encode(buildAccount()); | 1552 var resp = convert.JSON.encode(buildAccount()); |
1518 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1553 return new async.Future.value(stringResponse(200, h, resp)); |
1519 }), true); | 1554 }), true); |
1520 res.patch(arg_request, arg_id).then(unittest.expectAsync(((api.Account res
ponse) { | 1555 res.patch(arg_request, arg_id).then(unittest.expectAsync(((api.Account res
ponse) { |
1521 checkAccount(response); | 1556 checkAccount(response); |
1522 }))); | 1557 }))); |
1523 }); | 1558 }); |
1524 | 1559 |
1525 unittest.test("method--update", () { | 1560 unittest.test("method--update", () { |
1526 | 1561 |
1527 var mock = new common_test.HttpServerMock(); | 1562 var mock = new HttpServerMock(); |
1528 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; | 1563 api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; |
1529 var arg_request = buildAccount(); | 1564 var arg_request = buildAccount(); |
1530 var arg_id = 42; | 1565 var arg_id = 42; |
1531 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1566 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1532 var obj = new api.Account.fromJson(json); | 1567 var obj = new api.Account.fromJson(json); |
1533 checkAccount(obj); | 1568 checkAccount(obj); |
1534 | 1569 |
1535 var path = (req.url).path; | 1570 var path = (req.url).path; |
1536 var pathOffset = 0; | 1571 var pathOffset = 0; |
1537 var index; | 1572 var index; |
(...skipping 23 matching lines...) Expand all Loading... |
1561 var keyvalue = part.split("="); | 1596 var keyvalue = part.split("="); |
1562 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1597 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1563 } | 1598 } |
1564 } | 1599 } |
1565 | 1600 |
1566 | 1601 |
1567 var h = { | 1602 var h = { |
1568 "content-type" : "application/json; charset=utf-8", | 1603 "content-type" : "application/json; charset=utf-8", |
1569 }; | 1604 }; |
1570 var resp = convert.JSON.encode(buildAccount()); | 1605 var resp = convert.JSON.encode(buildAccount()); |
1571 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1606 return new async.Future.value(stringResponse(200, h, resp)); |
1572 }), true); | 1607 }), true); |
1573 res.update(arg_request, arg_id).then(unittest.expectAsync(((api.Account re
sponse) { | 1608 res.update(arg_request, arg_id).then(unittest.expectAsync(((api.Account re
sponse) { |
1574 checkAccount(response); | 1609 checkAccount(response); |
1575 }))); | 1610 }))); |
1576 }); | 1611 }); |
1577 | 1612 |
1578 }); | 1613 }); |
1579 | 1614 |
1580 | 1615 |
1581 unittest.group("resource-BillingInfoResourceApi", () { | 1616 unittest.group("resource-BillingInfoResourceApi", () { |
1582 unittest.test("method--get", () { | 1617 unittest.test("method--get", () { |
1583 | 1618 |
1584 var mock = new common_test.HttpServerMock(); | 1619 var mock = new HttpServerMock(); |
1585 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; | 1620 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; |
1586 var arg_accountId = 42; | 1621 var arg_accountId = 42; |
1587 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1622 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1588 var path = (req.url).path; | 1623 var path = (req.url).path; |
1589 var pathOffset = 0; | 1624 var pathOffset = 0; |
1590 var index; | 1625 var index; |
1591 var subPart; | 1626 var subPart; |
1592 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1593 pathOffset += 1; | 1628 pathOffset += 1; |
1594 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1629 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
(...skipping 19 matching lines...) Expand all Loading... |
1614 var keyvalue = part.split("="); | 1649 var keyvalue = part.split("="); |
1615 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1650 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1616 } | 1651 } |
1617 } | 1652 } |
1618 | 1653 |
1619 | 1654 |
1620 var h = { | 1655 var h = { |
1621 "content-type" : "application/json; charset=utf-8", | 1656 "content-type" : "application/json; charset=utf-8", |
1622 }; | 1657 }; |
1623 var resp = convert.JSON.encode(buildBillingInfo()); | 1658 var resp = convert.JSON.encode(buildBillingInfo()); |
1624 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1659 return new async.Future.value(stringResponse(200, h, resp)); |
1625 }), true); | 1660 }), true); |
1626 res.get(arg_accountId).then(unittest.expectAsync(((api.BillingInfo respons
e) { | 1661 res.get(arg_accountId).then(unittest.expectAsync(((api.BillingInfo respons
e) { |
1627 checkBillingInfo(response); | 1662 checkBillingInfo(response); |
1628 }))); | 1663 }))); |
1629 }); | 1664 }); |
1630 | 1665 |
1631 unittest.test("method--list", () { | 1666 unittest.test("method--list", () { |
1632 | 1667 |
1633 var mock = new common_test.HttpServerMock(); | 1668 var mock = new HttpServerMock(); |
1634 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; | 1669 api.BillingInfoResourceApi res = new api.AdexchangebuyerApi(mock).billingI
nfo; |
1635 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1670 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1636 var path = (req.url).path; | 1671 var path = (req.url).path; |
1637 var pathOffset = 0; | 1672 var pathOffset = 0; |
1638 var index; | 1673 var index; |
1639 var subPart; | 1674 var subPart; |
1640 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1675 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1641 pathOffset += 1; | 1676 pathOffset += 1; |
1642 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 1677 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
1643 pathOffset += 21; | 1678 pathOffset += 21; |
(...skipping 15 matching lines...) Expand all Loading... |
1659 var keyvalue = part.split("="); | 1694 var keyvalue = part.split("="); |
1660 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1695 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1661 } | 1696 } |
1662 } | 1697 } |
1663 | 1698 |
1664 | 1699 |
1665 var h = { | 1700 var h = { |
1666 "content-type" : "application/json; charset=utf-8", | 1701 "content-type" : "application/json; charset=utf-8", |
1667 }; | 1702 }; |
1668 var resp = convert.JSON.encode(buildBillingInfoList()); | 1703 var resp = convert.JSON.encode(buildBillingInfoList()); |
1669 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1704 return new async.Future.value(stringResponse(200, h, resp)); |
1670 }), true); | 1705 }), true); |
1671 res.list().then(unittest.expectAsync(((api.BillingInfoList response) { | 1706 res.list().then(unittest.expectAsync(((api.BillingInfoList response) { |
1672 checkBillingInfoList(response); | 1707 checkBillingInfoList(response); |
1673 }))); | 1708 }))); |
1674 }); | 1709 }); |
1675 | 1710 |
1676 }); | 1711 }); |
1677 | 1712 |
1678 | 1713 |
1679 unittest.group("resource-BudgetResourceApi", () { | 1714 unittest.group("resource-BudgetResourceApi", () { |
1680 unittest.test("method--get", () { | 1715 unittest.test("method--get", () { |
1681 | 1716 |
1682 var mock = new common_test.HttpServerMock(); | 1717 var mock = new HttpServerMock(); |
1683 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; | 1718 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; |
1684 var arg_accountId = "foo"; | 1719 var arg_accountId = "foo"; |
1685 var arg_billingId = "foo"; | 1720 var arg_billingId = "foo"; |
1686 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1721 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1687 var path = (req.url).path; | 1722 var path = (req.url).path; |
1688 var pathOffset = 0; | 1723 var pathOffset = 0; |
1689 var index; | 1724 var index; |
1690 var subPart; | 1725 var subPart; |
1691 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1726 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1692 pathOffset += 1; | 1727 pathOffset += 1; |
(...skipping 27 matching lines...) Expand all Loading... |
1720 var keyvalue = part.split("="); | 1755 var keyvalue = part.split("="); |
1721 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1756 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1722 } | 1757 } |
1723 } | 1758 } |
1724 | 1759 |
1725 | 1760 |
1726 var h = { | 1761 var h = { |
1727 "content-type" : "application/json; charset=utf-8", | 1762 "content-type" : "application/json; charset=utf-8", |
1728 }; | 1763 }; |
1729 var resp = convert.JSON.encode(buildBudget()); | 1764 var resp = convert.JSON.encode(buildBudget()); |
1730 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1765 return new async.Future.value(stringResponse(200, h, resp)); |
1731 }), true); | 1766 }), true); |
1732 res.get(arg_accountId, arg_billingId).then(unittest.expectAsync(((api.Budg
et response) { | 1767 res.get(arg_accountId, arg_billingId).then(unittest.expectAsync(((api.Budg
et response) { |
1733 checkBudget(response); | 1768 checkBudget(response); |
1734 }))); | 1769 }))); |
1735 }); | 1770 }); |
1736 | 1771 |
1737 unittest.test("method--patch", () { | 1772 unittest.test("method--patch", () { |
1738 | 1773 |
1739 var mock = new common_test.HttpServerMock(); | 1774 var mock = new HttpServerMock(); |
1740 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; | 1775 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; |
1741 var arg_request = buildBudget(); | 1776 var arg_request = buildBudget(); |
1742 var arg_accountId = "foo"; | 1777 var arg_accountId = "foo"; |
1743 var arg_billingId = "foo"; | 1778 var arg_billingId = "foo"; |
1744 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1779 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1745 var obj = new api.Budget.fromJson(json); | 1780 var obj = new api.Budget.fromJson(json); |
1746 checkBudget(obj); | 1781 checkBudget(obj); |
1747 | 1782 |
1748 var path = (req.url).path; | 1783 var path = (req.url).path; |
1749 var pathOffset = 0; | 1784 var pathOffset = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 var keyvalue = part.split("="); | 1816 var keyvalue = part.split("="); |
1782 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1817 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1783 } | 1818 } |
1784 } | 1819 } |
1785 | 1820 |
1786 | 1821 |
1787 var h = { | 1822 var h = { |
1788 "content-type" : "application/json; charset=utf-8", | 1823 "content-type" : "application/json; charset=utf-8", |
1789 }; | 1824 }; |
1790 var resp = convert.JSON.encode(buildBudget()); | 1825 var resp = convert.JSON.encode(buildBudget()); |
1791 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1826 return new async.Future.value(stringResponse(200, h, resp)); |
1792 }), true); | 1827 }), true); |
1793 res.patch(arg_request, arg_accountId, arg_billingId).then(unittest.expectA
sync(((api.Budget response) { | 1828 res.patch(arg_request, arg_accountId, arg_billingId).then(unittest.expectA
sync(((api.Budget response) { |
1794 checkBudget(response); | 1829 checkBudget(response); |
1795 }))); | 1830 }))); |
1796 }); | 1831 }); |
1797 | 1832 |
1798 unittest.test("method--update", () { | 1833 unittest.test("method--update", () { |
1799 | 1834 |
1800 var mock = new common_test.HttpServerMock(); | 1835 var mock = new HttpServerMock(); |
1801 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; | 1836 api.BudgetResourceApi res = new api.AdexchangebuyerApi(mock).budget; |
1802 var arg_request = buildBudget(); | 1837 var arg_request = buildBudget(); |
1803 var arg_accountId = "foo"; | 1838 var arg_accountId = "foo"; |
1804 var arg_billingId = "foo"; | 1839 var arg_billingId = "foo"; |
1805 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1840 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1806 var obj = new api.Budget.fromJson(json); | 1841 var obj = new api.Budget.fromJson(json); |
1807 checkBudget(obj); | 1842 checkBudget(obj); |
1808 | 1843 |
1809 var path = (req.url).path; | 1844 var path = (req.url).path; |
1810 var pathOffset = 0; | 1845 var pathOffset = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1842 var keyvalue = part.split("="); | 1877 var keyvalue = part.split("="); |
1843 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1878 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1844 } | 1879 } |
1845 } | 1880 } |
1846 | 1881 |
1847 | 1882 |
1848 var h = { | 1883 var h = { |
1849 "content-type" : "application/json; charset=utf-8", | 1884 "content-type" : "application/json; charset=utf-8", |
1850 }; | 1885 }; |
1851 var resp = convert.JSON.encode(buildBudget()); | 1886 var resp = convert.JSON.encode(buildBudget()); |
1852 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1887 return new async.Future.value(stringResponse(200, h, resp)); |
1853 }), true); | 1888 }), true); |
1854 res.update(arg_request, arg_accountId, arg_billingId).then(unittest.expect
Async(((api.Budget response) { | 1889 res.update(arg_request, arg_accountId, arg_billingId).then(unittest.expect
Async(((api.Budget response) { |
1855 checkBudget(response); | 1890 checkBudget(response); |
1856 }))); | 1891 }))); |
1857 }); | 1892 }); |
1858 | 1893 |
1859 }); | 1894 }); |
1860 | 1895 |
1861 | 1896 |
1862 unittest.group("resource-CreativesResourceApi", () { | 1897 unittest.group("resource-CreativesResourceApi", () { |
1863 unittest.test("method--get", () { | 1898 unittest.test("method--get", () { |
1864 | 1899 |
1865 var mock = new common_test.HttpServerMock(); | 1900 var mock = new HttpServerMock(); |
1866 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1901 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1867 var arg_accountId = 42; | 1902 var arg_accountId = 42; |
1868 var arg_buyerCreativeId = "foo"; | 1903 var arg_buyerCreativeId = "foo"; |
1869 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1904 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1870 var path = (req.url).path; | 1905 var path = (req.url).path; |
1871 var pathOffset = 0; | 1906 var pathOffset = 0; |
1872 var index; | 1907 var index; |
1873 var subPart; | 1908 var subPart; |
1874 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1909 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1875 pathOffset += 1; | 1910 pathOffset += 1; |
(...skipping 27 matching lines...) Expand all Loading... |
1903 var keyvalue = part.split("="); | 1938 var keyvalue = part.split("="); |
1904 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1939 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1905 } | 1940 } |
1906 } | 1941 } |
1907 | 1942 |
1908 | 1943 |
1909 var h = { | 1944 var h = { |
1910 "content-type" : "application/json; charset=utf-8", | 1945 "content-type" : "application/json; charset=utf-8", |
1911 }; | 1946 }; |
1912 var resp = convert.JSON.encode(buildCreative()); | 1947 var resp = convert.JSON.encode(buildCreative()); |
1913 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1948 return new async.Future.value(stringResponse(200, h, resp)); |
1914 }), true); | 1949 }), true); |
1915 res.get(arg_accountId, arg_buyerCreativeId).then(unittest.expectAsync(((ap
i.Creative response) { | 1950 res.get(arg_accountId, arg_buyerCreativeId).then(unittest.expectAsync(((ap
i.Creative response) { |
1916 checkCreative(response); | 1951 checkCreative(response); |
1917 }))); | 1952 }))); |
1918 }); | 1953 }); |
1919 | 1954 |
1920 unittest.test("method--insert", () { | 1955 unittest.test("method--insert", () { |
1921 | 1956 |
1922 var mock = new common_test.HttpServerMock(); | 1957 var mock = new HttpServerMock(); |
1923 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 1958 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1924 var arg_request = buildCreative(); | 1959 var arg_request = buildCreative(); |
1925 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1960 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1926 var obj = new api.Creative.fromJson(json); | 1961 var obj = new api.Creative.fromJson(json); |
1927 checkCreative(obj); | 1962 checkCreative(obj); |
1928 | 1963 |
1929 var path = (req.url).path; | 1964 var path = (req.url).path; |
1930 var pathOffset = 0; | 1965 var pathOffset = 0; |
1931 var index; | 1966 var index; |
1932 var subPart; | 1967 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1952 var keyvalue = part.split("="); | 1987 var keyvalue = part.split("="); |
1953 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1988 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1954 } | 1989 } |
1955 } | 1990 } |
1956 | 1991 |
1957 | 1992 |
1958 var h = { | 1993 var h = { |
1959 "content-type" : "application/json; charset=utf-8", | 1994 "content-type" : "application/json; charset=utf-8", |
1960 }; | 1995 }; |
1961 var resp = convert.JSON.encode(buildCreative()); | 1996 var resp = convert.JSON.encode(buildCreative()); |
1962 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1997 return new async.Future.value(stringResponse(200, h, resp)); |
1963 }), true); | 1998 }), true); |
1964 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ | 1999 res.insert(arg_request).then(unittest.expectAsync(((api.Creative response)
{ |
1965 checkCreative(response); | 2000 checkCreative(response); |
1966 }))); | 2001 }))); |
1967 }); | 2002 }); |
1968 | 2003 |
1969 unittest.test("method--list", () { | 2004 unittest.test("method--list", () { |
1970 | 2005 |
1971 var mock = new common_test.HttpServerMock(); | 2006 var mock = new HttpServerMock(); |
1972 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; | 2007 api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; |
1973 var arg_accountId = buildUnnamed891(); | 2008 var arg_accountId = buildUnnamed42(); |
1974 var arg_buyerCreativeId = buildUnnamed892(); | 2009 var arg_buyerCreativeId = buildUnnamed43(); |
1975 var arg_maxResults = 42; | 2010 var arg_maxResults = 42; |
1976 var arg_pageToken = "foo"; | 2011 var arg_pageToken = "foo"; |
1977 var arg_statusFilter = "foo"; | 2012 var arg_statusFilter = "foo"; |
1978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2013 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1979 var path = (req.url).path; | 2014 var path = (req.url).path; |
1980 var pathOffset = 0; | 2015 var pathOffset = 0; |
1981 var index; | 2016 var index; |
1982 var subPart; | 2017 var subPart; |
1983 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2018 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1984 pathOffset += 1; | 2019 pathOffset += 1; |
(...skipping 22 matching lines...) Expand all Loading... |
2007 unittest.expect(queryMap["buyerCreativeId"], unittest.equals(arg_buyerCr
eativeId)); | 2042 unittest.expect(queryMap["buyerCreativeId"], unittest.equals(arg_buyerCr
eativeId)); |
2008 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 2043 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
2009 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2044 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2010 unittest.expect(queryMap["statusFilter"].first, unittest.equals(arg_stat
usFilter)); | 2045 unittest.expect(queryMap["statusFilter"].first, unittest.equals(arg_stat
usFilter)); |
2011 | 2046 |
2012 | 2047 |
2013 var h = { | 2048 var h = { |
2014 "content-type" : "application/json; charset=utf-8", | 2049 "content-type" : "application/json; charset=utf-8", |
2015 }; | 2050 }; |
2016 var resp = convert.JSON.encode(buildCreativesList()); | 2051 var resp = convert.JSON.encode(buildCreativesList()); |
2017 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2052 return new async.Future.value(stringResponse(200, h, resp)); |
2018 }), true); | 2053 }), true); |
2019 res.list(accountId: arg_accountId, buyerCreativeId: arg_buyerCreativeId, m
axResults: arg_maxResults, pageToken: arg_pageToken, statusFilter: arg_statusFil
ter).then(unittest.expectAsync(((api.CreativesList response) { | 2054 res.list(accountId: arg_accountId, buyerCreativeId: arg_buyerCreativeId, m
axResults: arg_maxResults, pageToken: arg_pageToken, statusFilter: arg_statusFil
ter).then(unittest.expectAsync(((api.CreativesList response) { |
2020 checkCreativesList(response); | 2055 checkCreativesList(response); |
2021 }))); | 2056 }))); |
2022 }); | 2057 }); |
2023 | 2058 |
2024 }); | 2059 }); |
2025 | 2060 |
2026 | 2061 |
2027 unittest.group("resource-DirectDealsResourceApi", () { | 2062 unittest.group("resource-DirectDealsResourceApi", () { |
2028 unittest.test("method--get", () { | 2063 unittest.test("method--get", () { |
2029 | 2064 |
2030 var mock = new common_test.HttpServerMock(); | 2065 var mock = new HttpServerMock(); |
2031 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; | 2066 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; |
2032 var arg_id = "foo"; | 2067 var arg_id = "foo"; |
2033 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2068 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2034 var path = (req.url).path; | 2069 var path = (req.url).path; |
2035 var pathOffset = 0; | 2070 var pathOffset = 0; |
2036 var index; | 2071 var index; |
2037 var subPart; | 2072 var subPart; |
2038 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2073 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2039 pathOffset += 1; | 2074 pathOffset += 1; |
2040 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2075 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
(...skipping 19 matching lines...) Expand all Loading... |
2060 var keyvalue = part.split("="); | 2095 var keyvalue = part.split("="); |
2061 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2096 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2062 } | 2097 } |
2063 } | 2098 } |
2064 | 2099 |
2065 | 2100 |
2066 var h = { | 2101 var h = { |
2067 "content-type" : "application/json; charset=utf-8", | 2102 "content-type" : "application/json; charset=utf-8", |
2068 }; | 2103 }; |
2069 var resp = convert.JSON.encode(buildDirectDeal()); | 2104 var resp = convert.JSON.encode(buildDirectDeal()); |
2070 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2105 return new async.Future.value(stringResponse(200, h, resp)); |
2071 }), true); | 2106 }), true); |
2072 res.get(arg_id).then(unittest.expectAsync(((api.DirectDeal response) { | 2107 res.get(arg_id).then(unittest.expectAsync(((api.DirectDeal response) { |
2073 checkDirectDeal(response); | 2108 checkDirectDeal(response); |
2074 }))); | 2109 }))); |
2075 }); | 2110 }); |
2076 | 2111 |
2077 unittest.test("method--list", () { | 2112 unittest.test("method--list", () { |
2078 | 2113 |
2079 var mock = new common_test.HttpServerMock(); | 2114 var mock = new HttpServerMock(); |
2080 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; | 2115 api.DirectDealsResourceApi res = new api.AdexchangebuyerApi(mock).directDe
als; |
2081 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2116 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2082 var path = (req.url).path; | 2117 var path = (req.url).path; |
2083 var pathOffset = 0; | 2118 var pathOffset = 0; |
2084 var index; | 2119 var index; |
2085 var subPart; | 2120 var subPart; |
2086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2121 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2087 pathOffset += 1; | 2122 pathOffset += 1; |
2088 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2123 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
2089 pathOffset += 21; | 2124 pathOffset += 21; |
(...skipping 15 matching lines...) Expand all Loading... |
2105 var keyvalue = part.split("="); | 2140 var keyvalue = part.split("="); |
2106 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2141 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2107 } | 2142 } |
2108 } | 2143 } |
2109 | 2144 |
2110 | 2145 |
2111 var h = { | 2146 var h = { |
2112 "content-type" : "application/json; charset=utf-8", | 2147 "content-type" : "application/json; charset=utf-8", |
2113 }; | 2148 }; |
2114 var resp = convert.JSON.encode(buildDirectDealsList()); | 2149 var resp = convert.JSON.encode(buildDirectDealsList()); |
2115 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2150 return new async.Future.value(stringResponse(200, h, resp)); |
2116 }), true); | 2151 }), true); |
2117 res.list().then(unittest.expectAsync(((api.DirectDealsList response) { | 2152 res.list().then(unittest.expectAsync(((api.DirectDealsList response) { |
2118 checkDirectDealsList(response); | 2153 checkDirectDealsList(response); |
2119 }))); | 2154 }))); |
2120 }); | 2155 }); |
2121 | 2156 |
2122 }); | 2157 }); |
2123 | 2158 |
2124 | 2159 |
2125 unittest.group("resource-PerformanceReportResourceApi", () { | 2160 unittest.group("resource-PerformanceReportResourceApi", () { |
2126 unittest.test("method--list", () { | 2161 unittest.test("method--list", () { |
2127 | 2162 |
2128 var mock = new common_test.HttpServerMock(); | 2163 var mock = new HttpServerMock(); |
2129 api.PerformanceReportResourceApi res = new api.AdexchangebuyerApi(mock).pe
rformanceReport; | 2164 api.PerformanceReportResourceApi res = new api.AdexchangebuyerApi(mock).pe
rformanceReport; |
2130 var arg_accountId = "foo"; | 2165 var arg_accountId = "foo"; |
2131 var arg_endDateTime = "foo"; | 2166 var arg_endDateTime = "foo"; |
2132 var arg_startDateTime = "foo"; | 2167 var arg_startDateTime = "foo"; |
2133 var arg_maxResults = 42; | 2168 var arg_maxResults = 42; |
2134 var arg_pageToken = "foo"; | 2169 var arg_pageToken = "foo"; |
2135 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2170 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2136 var path = (req.url).path; | 2171 var path = (req.url).path; |
2137 var pathOffset = 0; | 2172 var pathOffset = 0; |
2138 var index; | 2173 var index; |
(...skipping 25 matching lines...) Expand all Loading... |
2164 unittest.expect(queryMap["endDateTime"].first, unittest.equals(arg_endDa
teTime)); | 2199 unittest.expect(queryMap["endDateTime"].first, unittest.equals(arg_endDa
teTime)); |
2165 unittest.expect(queryMap["startDateTime"].first, unittest.equals(arg_sta
rtDateTime)); | 2200 unittest.expect(queryMap["startDateTime"].first, unittest.equals(arg_sta
rtDateTime)); |
2166 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 2201 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
2167 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2202 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2168 | 2203 |
2169 | 2204 |
2170 var h = { | 2205 var h = { |
2171 "content-type" : "application/json; charset=utf-8", | 2206 "content-type" : "application/json; charset=utf-8", |
2172 }; | 2207 }; |
2173 var resp = convert.JSON.encode(buildPerformanceReportList()); | 2208 var resp = convert.JSON.encode(buildPerformanceReportList()); |
2174 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2209 return new async.Future.value(stringResponse(200, h, resp)); |
2175 }), true); | 2210 }), true); |
2176 res.list(arg_accountId, arg_endDateTime, arg_startDateTime, maxResults: ar
g_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Performa
nceReportList response) { | 2211 res.list(arg_accountId, arg_endDateTime, arg_startDateTime, maxResults: ar
g_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Performa
nceReportList response) { |
2177 checkPerformanceReportList(response); | 2212 checkPerformanceReportList(response); |
2178 }))); | 2213 }))); |
2179 }); | 2214 }); |
2180 | 2215 |
2181 }); | 2216 }); |
2182 | 2217 |
2183 | 2218 |
2184 unittest.group("resource-PretargetingConfigResourceApi", () { | 2219 unittest.group("resource-PretargetingConfigResourceApi", () { |
2185 unittest.test("method--delete", () { | 2220 unittest.test("method--delete", () { |
2186 | 2221 |
2187 var mock = new common_test.HttpServerMock(); | 2222 var mock = new HttpServerMock(); |
2188 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2223 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2189 var arg_accountId = "foo"; | 2224 var arg_accountId = "foo"; |
2190 var arg_configId = "foo"; | 2225 var arg_configId = "foo"; |
2191 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2226 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2192 var path = (req.url).path; | 2227 var path = (req.url).path; |
2193 var pathOffset = 0; | 2228 var pathOffset = 0; |
2194 var index; | 2229 var index; |
2195 var subPart; | 2230 var subPart; |
2196 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2231 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2197 pathOffset += 1; | 2232 pathOffset += 1; |
(...skipping 27 matching lines...) Expand all Loading... |
2225 var keyvalue = part.split("="); | 2260 var keyvalue = part.split("="); |
2226 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2261 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2227 } | 2262 } |
2228 } | 2263 } |
2229 | 2264 |
2230 | 2265 |
2231 var h = { | 2266 var h = { |
2232 "content-type" : "application/json; charset=utf-8", | 2267 "content-type" : "application/json; charset=utf-8", |
2233 }; | 2268 }; |
2234 var resp = ""; | 2269 var resp = ""; |
2235 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2270 return new async.Future.value(stringResponse(200, h, resp)); |
2236 }), true); | 2271 }), true); |
2237 res.delete(arg_accountId, arg_configId).then(unittest.expectAsync((_) {}))
; | 2272 res.delete(arg_accountId, arg_configId).then(unittest.expectAsync((_) {}))
; |
2238 }); | 2273 }); |
2239 | 2274 |
2240 unittest.test("method--get", () { | 2275 unittest.test("method--get", () { |
2241 | 2276 |
2242 var mock = new common_test.HttpServerMock(); | 2277 var mock = new HttpServerMock(); |
2243 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2278 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2244 var arg_accountId = "foo"; | 2279 var arg_accountId = "foo"; |
2245 var arg_configId = "foo"; | 2280 var arg_configId = "foo"; |
2246 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2281 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2247 var path = (req.url).path; | 2282 var path = (req.url).path; |
2248 var pathOffset = 0; | 2283 var pathOffset = 0; |
2249 var index; | 2284 var index; |
2250 var subPart; | 2285 var subPart; |
2251 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2252 pathOffset += 1; | 2287 pathOffset += 1; |
(...skipping 27 matching lines...) Expand all Loading... |
2280 var keyvalue = part.split("="); | 2315 var keyvalue = part.split("="); |
2281 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2316 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2282 } | 2317 } |
2283 } | 2318 } |
2284 | 2319 |
2285 | 2320 |
2286 var h = { | 2321 var h = { |
2287 "content-type" : "application/json; charset=utf-8", | 2322 "content-type" : "application/json; charset=utf-8", |
2288 }; | 2323 }; |
2289 var resp = convert.JSON.encode(buildPretargetingConfig()); | 2324 var resp = convert.JSON.encode(buildPretargetingConfig()); |
2290 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2325 return new async.Future.value(stringResponse(200, h, resp)); |
2291 }), true); | 2326 }), true); |
2292 res.get(arg_accountId, arg_configId).then(unittest.expectAsync(((api.Preta
rgetingConfig response) { | 2327 res.get(arg_accountId, arg_configId).then(unittest.expectAsync(((api.Preta
rgetingConfig response) { |
2293 checkPretargetingConfig(response); | 2328 checkPretargetingConfig(response); |
2294 }))); | 2329 }))); |
2295 }); | 2330 }); |
2296 | 2331 |
2297 unittest.test("method--insert", () { | 2332 unittest.test("method--insert", () { |
2298 | 2333 |
2299 var mock = new common_test.HttpServerMock(); | 2334 var mock = new HttpServerMock(); |
2300 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2335 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2301 var arg_request = buildPretargetingConfig(); | 2336 var arg_request = buildPretargetingConfig(); |
2302 var arg_accountId = "foo"; | 2337 var arg_accountId = "foo"; |
2303 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2338 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2304 var obj = new api.PretargetingConfig.fromJson(json); | 2339 var obj = new api.PretargetingConfig.fromJson(json); |
2305 checkPretargetingConfig(obj); | 2340 checkPretargetingConfig(obj); |
2306 | 2341 |
2307 var path = (req.url).path; | 2342 var path = (req.url).path; |
2308 var pathOffset = 0; | 2343 var pathOffset = 0; |
2309 var index; | 2344 var index; |
(...skipping 23 matching lines...) Expand all Loading... |
2333 var keyvalue = part.split("="); | 2368 var keyvalue = part.split("="); |
2334 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2369 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2335 } | 2370 } |
2336 } | 2371 } |
2337 | 2372 |
2338 | 2373 |
2339 var h = { | 2374 var h = { |
2340 "content-type" : "application/json; charset=utf-8", | 2375 "content-type" : "application/json; charset=utf-8", |
2341 }; | 2376 }; |
2342 var resp = convert.JSON.encode(buildPretargetingConfig()); | 2377 var resp = convert.JSON.encode(buildPretargetingConfig()); |
2343 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2378 return new async.Future.value(stringResponse(200, h, resp)); |
2344 }), true); | 2379 }), true); |
2345 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Pre
targetingConfig response) { | 2380 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Pre
targetingConfig response) { |
2346 checkPretargetingConfig(response); | 2381 checkPretargetingConfig(response); |
2347 }))); | 2382 }))); |
2348 }); | 2383 }); |
2349 | 2384 |
2350 unittest.test("method--list", () { | 2385 unittest.test("method--list", () { |
2351 | 2386 |
2352 var mock = new common_test.HttpServerMock(); | 2387 var mock = new HttpServerMock(); |
2353 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2388 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2354 var arg_accountId = "foo"; | 2389 var arg_accountId = "foo"; |
2355 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2390 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2356 var path = (req.url).path; | 2391 var path = (req.url).path; |
2357 var pathOffset = 0; | 2392 var pathOffset = 0; |
2358 var index; | 2393 var index; |
2359 var subPart; | 2394 var subPart; |
2360 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2395 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2361 pathOffset += 1; | 2396 pathOffset += 1; |
2362 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); | 2397 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("adexchangebuyer/v1.3/")); |
(...skipping 19 matching lines...) Expand all Loading... |
2382 var keyvalue = part.split("="); | 2417 var keyvalue = part.split("="); |
2383 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2418 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2384 } | 2419 } |
2385 } | 2420 } |
2386 | 2421 |
2387 | 2422 |
2388 var h = { | 2423 var h = { |
2389 "content-type" : "application/json; charset=utf-8", | 2424 "content-type" : "application/json; charset=utf-8", |
2390 }; | 2425 }; |
2391 var resp = convert.JSON.encode(buildPretargetingConfigList()); | 2426 var resp = convert.JSON.encode(buildPretargetingConfigList()); |
2392 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2427 return new async.Future.value(stringResponse(200, h, resp)); |
2393 }), true); | 2428 }), true); |
2394 res.list(arg_accountId).then(unittest.expectAsync(((api.PretargetingConfig
List response) { | 2429 res.list(arg_accountId).then(unittest.expectAsync(((api.PretargetingConfig
List response) { |
2395 checkPretargetingConfigList(response); | 2430 checkPretargetingConfigList(response); |
2396 }))); | 2431 }))); |
2397 }); | 2432 }); |
2398 | 2433 |
2399 unittest.test("method--patch", () { | 2434 unittest.test("method--patch", () { |
2400 | 2435 |
2401 var mock = new common_test.HttpServerMock(); | 2436 var mock = new HttpServerMock(); |
2402 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2437 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2403 var arg_request = buildPretargetingConfig(); | 2438 var arg_request = buildPretargetingConfig(); |
2404 var arg_accountId = "foo"; | 2439 var arg_accountId = "foo"; |
2405 var arg_configId = "foo"; | 2440 var arg_configId = "foo"; |
2406 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2441 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2407 var obj = new api.PretargetingConfig.fromJson(json); | 2442 var obj = new api.PretargetingConfig.fromJson(json); |
2408 checkPretargetingConfig(obj); | 2443 checkPretargetingConfig(obj); |
2409 | 2444 |
2410 var path = (req.url).path; | 2445 var path = (req.url).path; |
2411 var pathOffset = 0; | 2446 var pathOffset = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2443 var keyvalue = part.split("="); | 2478 var keyvalue = part.split("="); |
2444 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2479 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2445 } | 2480 } |
2446 } | 2481 } |
2447 | 2482 |
2448 | 2483 |
2449 var h = { | 2484 var h = { |
2450 "content-type" : "application/json; charset=utf-8", | 2485 "content-type" : "application/json; charset=utf-8", |
2451 }; | 2486 }; |
2452 var resp = convert.JSON.encode(buildPretargetingConfig()); | 2487 var resp = convert.JSON.encode(buildPretargetingConfig()); |
2453 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2488 return new async.Future.value(stringResponse(200, h, resp)); |
2454 }), true); | 2489 }), true); |
2455 res.patch(arg_request, arg_accountId, arg_configId).then(unittest.expectAs
ync(((api.PretargetingConfig response) { | 2490 res.patch(arg_request, arg_accountId, arg_configId).then(unittest.expectAs
ync(((api.PretargetingConfig response) { |
2456 checkPretargetingConfig(response); | 2491 checkPretargetingConfig(response); |
2457 }))); | 2492 }))); |
2458 }); | 2493 }); |
2459 | 2494 |
2460 unittest.test("method--update", () { | 2495 unittest.test("method--update", () { |
2461 | 2496 |
2462 var mock = new common_test.HttpServerMock(); | 2497 var mock = new HttpServerMock(); |
2463 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; | 2498 api.PretargetingConfigResourceApi res = new api.AdexchangebuyerApi(mock).p
retargetingConfig; |
2464 var arg_request = buildPretargetingConfig(); | 2499 var arg_request = buildPretargetingConfig(); |
2465 var arg_accountId = "foo"; | 2500 var arg_accountId = "foo"; |
2466 var arg_configId = "foo"; | 2501 var arg_configId = "foo"; |
2467 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2502 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2468 var obj = new api.PretargetingConfig.fromJson(json); | 2503 var obj = new api.PretargetingConfig.fromJson(json); |
2469 checkPretargetingConfig(obj); | 2504 checkPretargetingConfig(obj); |
2470 | 2505 |
2471 var path = (req.url).path; | 2506 var path = (req.url).path; |
2472 var pathOffset = 0; | 2507 var pathOffset = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2504 var keyvalue = part.split("="); | 2539 var keyvalue = part.split("="); |
2505 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2540 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2506 } | 2541 } |
2507 } | 2542 } |
2508 | 2543 |
2509 | 2544 |
2510 var h = { | 2545 var h = { |
2511 "content-type" : "application/json; charset=utf-8", | 2546 "content-type" : "application/json; charset=utf-8", |
2512 }; | 2547 }; |
2513 var resp = convert.JSON.encode(buildPretargetingConfig()); | 2548 var resp = convert.JSON.encode(buildPretargetingConfig()); |
2514 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2549 return new async.Future.value(stringResponse(200, h, resp)); |
2515 }), true); | 2550 }), true); |
2516 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { | 2551 res.update(arg_request, arg_accountId, arg_configId).then(unittest.expectA
sync(((api.PretargetingConfig response) { |
2517 checkPretargetingConfig(response); | 2552 checkPretargetingConfig(response); |
2518 }))); | 2553 }))); |
2519 }); | 2554 }); |
2520 | 2555 |
2521 }); | 2556 }); |
2522 | 2557 |
2523 | 2558 |
2524 } | 2559 } |
2525 | 2560 |
OLD | NEW |