OLD | NEW |
1 library googleapis.admin.directory_v1.test; | 1 library googleapis.admin.directory_v1.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:test/test.dart' as unittest; |
11 | 11 |
12 import 'package:googleapis/admin/directory_v1.dart' as api; | 12 import 'package:googleapis/admin/directory_v1.dart' as api; |
13 | 13 |
14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 15 core.Function _callback; |
16 core.bool _expectJson; | 16 core.bool _expectJson; |
17 | 17 |
18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 19 _callback = callback; |
20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
(...skipping 18 matching lines...) Expand all Loading... |
39 } else { | 39 } else { |
40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 41 return _callback(request, data); |
42 }); | 42 }); |
43 } | 43 } |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 core.int buildCounterAlias = 0; | 54 core.int buildCounterAlias = 0; |
55 buildAlias() { | 55 buildAlias() { |
56 var o = new api.Alias(); | 56 var o = new api.Alias(); |
57 buildCounterAlias++; | 57 buildCounterAlias++; |
58 if (buildCounterAlias < 3) { | 58 if (buildCounterAlias < 3) { |
59 o.alias = "foo"; | 59 o.alias = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
71 if (buildCounterAlias < 3) { | 71 if (buildCounterAlias < 3) { |
72 unittest.expect(o.alias, unittest.equals('foo')); | 72 unittest.expect(o.alias, unittest.equals('foo')); |
73 unittest.expect(o.etag, unittest.equals('foo')); | 73 unittest.expect(o.etag, unittest.equals('foo')); |
74 unittest.expect(o.id, unittest.equals('foo')); | 74 unittest.expect(o.id, unittest.equals('foo')); |
75 unittest.expect(o.kind, unittest.equals('foo')); | 75 unittest.expect(o.kind, unittest.equals('foo')); |
76 unittest.expect(o.primaryEmail, unittest.equals('foo')); | 76 unittest.expect(o.primaryEmail, unittest.equals('foo')); |
77 } | 77 } |
78 buildCounterAlias--; | 78 buildCounterAlias--; |
79 } | 79 } |
80 | 80 |
81 buildUnnamed732() { | 81 buildUnnamed739() { |
82 var o = new core.List<core.Object>(); | 82 var o = new core.List<core.Object>(); |
83 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 83 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
84 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 84 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
85 return o; | 85 return o; |
86 } | 86 } |
87 | 87 |
88 checkUnnamed732(core.List<core.Object> o) { | 88 checkUnnamed739(core.List<core.Object> o) { |
89 unittest.expect(o, unittest.hasLength(2)); | 89 unittest.expect(o, unittest.hasLength(2)); |
90 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')); | 90 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')); |
91 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')); | 91 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')); |
92 } | 92 } |
93 | 93 |
94 core.int buildCounterAliases = 0; | 94 core.int buildCounterAliases = 0; |
95 buildAliases() { | 95 buildAliases() { |
96 var o = new api.Aliases(); | 96 var o = new api.Aliases(); |
97 buildCounterAliases++; | 97 buildCounterAliases++; |
98 if (buildCounterAliases < 3) { | 98 if (buildCounterAliases < 3) { |
99 o.aliases = buildUnnamed732(); | 99 o.aliases = buildUnnamed739(); |
100 o.etag = "foo"; | 100 o.etag = "foo"; |
101 o.kind = "foo"; | 101 o.kind = "foo"; |
102 } | 102 } |
103 buildCounterAliases--; | 103 buildCounterAliases--; |
104 return o; | 104 return o; |
105 } | 105 } |
106 | 106 |
107 checkAliases(api.Aliases o) { | 107 checkAliases(api.Aliases o) { |
108 buildCounterAliases++; | 108 buildCounterAliases++; |
109 if (buildCounterAliases < 3) { | 109 if (buildCounterAliases < 3) { |
110 checkUnnamed732(o.aliases); | 110 checkUnnamed739(o.aliases); |
111 unittest.expect(o.etag, unittest.equals('foo')); | 111 unittest.expect(o.etag, unittest.equals('foo')); |
112 unittest.expect(o.kind, unittest.equals('foo')); | 112 unittest.expect(o.kind, unittest.equals('foo')); |
113 } | 113 } |
114 buildCounterAliases--; | 114 buildCounterAliases--; |
115 } | 115 } |
116 | 116 |
117 core.int buildCounterAsp = 0; | 117 core.int buildCounterAsp = 0; |
118 buildAsp() { | 118 buildAsp() { |
119 var o = new api.Asp(); | 119 var o = new api.Asp(); |
120 buildCounterAsp++; | 120 buildCounterAsp++; |
(...skipping 17 matching lines...) Expand all Loading... |
138 unittest.expect(o.creationTime, unittest.equals('foo')); | 138 unittest.expect(o.creationTime, unittest.equals('foo')); |
139 unittest.expect(o.etag, unittest.equals('foo')); | 139 unittest.expect(o.etag, unittest.equals('foo')); |
140 unittest.expect(o.kind, unittest.equals('foo')); | 140 unittest.expect(o.kind, unittest.equals('foo')); |
141 unittest.expect(o.lastTimeUsed, unittest.equals('foo')); | 141 unittest.expect(o.lastTimeUsed, unittest.equals('foo')); |
142 unittest.expect(o.name, unittest.equals('foo')); | 142 unittest.expect(o.name, unittest.equals('foo')); |
143 unittest.expect(o.userKey, unittest.equals('foo')); | 143 unittest.expect(o.userKey, unittest.equals('foo')); |
144 } | 144 } |
145 buildCounterAsp--; | 145 buildCounterAsp--; |
146 } | 146 } |
147 | 147 |
148 buildUnnamed733() { | 148 buildUnnamed740() { |
149 var o = new core.List<api.Asp>(); | 149 var o = new core.List<api.Asp>(); |
150 o.add(buildAsp()); | 150 o.add(buildAsp()); |
151 o.add(buildAsp()); | 151 o.add(buildAsp()); |
152 return o; | 152 return o; |
153 } | 153 } |
154 | 154 |
155 checkUnnamed733(core.List<api.Asp> o) { | 155 checkUnnamed740(core.List<api.Asp> o) { |
156 unittest.expect(o, unittest.hasLength(2)); | 156 unittest.expect(o, unittest.hasLength(2)); |
157 checkAsp(o[0]); | 157 checkAsp(o[0]); |
158 checkAsp(o[1]); | 158 checkAsp(o[1]); |
159 } | 159 } |
160 | 160 |
161 core.int buildCounterAsps = 0; | 161 core.int buildCounterAsps = 0; |
162 buildAsps() { | 162 buildAsps() { |
163 var o = new api.Asps(); | 163 var o = new api.Asps(); |
164 buildCounterAsps++; | 164 buildCounterAsps++; |
165 if (buildCounterAsps < 3) { | 165 if (buildCounterAsps < 3) { |
166 o.etag = "foo"; | 166 o.etag = "foo"; |
167 o.items = buildUnnamed733(); | 167 o.items = buildUnnamed740(); |
168 o.kind = "foo"; | 168 o.kind = "foo"; |
169 } | 169 } |
170 buildCounterAsps--; | 170 buildCounterAsps--; |
171 return o; | 171 return o; |
172 } | 172 } |
173 | 173 |
174 checkAsps(api.Asps o) { | 174 checkAsps(api.Asps o) { |
175 buildCounterAsps++; | 175 buildCounterAsps++; |
176 if (buildCounterAsps < 3) { | 176 if (buildCounterAsps < 3) { |
177 unittest.expect(o.etag, unittest.equals('foo')); | 177 unittest.expect(o.etag, unittest.equals('foo')); |
178 checkUnnamed733(o.items); | 178 checkUnnamed740(o.items); |
179 unittest.expect(o.kind, unittest.equals('foo')); | 179 unittest.expect(o.kind, unittest.equals('foo')); |
180 } | 180 } |
181 buildCounterAsps--; | 181 buildCounterAsps--; |
182 } | 182 } |
183 | 183 |
184 core.int buildCounterCalendarResource = 0; | 184 core.int buildCounterCalendarResource = 0; |
185 buildCalendarResource() { | 185 buildCalendarResource() { |
186 var o = new api.CalendarResource(); | 186 var o = new api.CalendarResource(); |
187 buildCounterCalendarResource++; | 187 buildCounterCalendarResource++; |
188 if (buildCounterCalendarResource < 3) { | 188 if (buildCounterCalendarResource < 3) { |
(...skipping 16 matching lines...) Expand all Loading... |
205 unittest.expect(o.kind, unittest.equals('foo')); | 205 unittest.expect(o.kind, unittest.equals('foo')); |
206 unittest.expect(o.resourceDescription, unittest.equals('foo')); | 206 unittest.expect(o.resourceDescription, unittest.equals('foo')); |
207 unittest.expect(o.resourceEmail, unittest.equals('foo')); | 207 unittest.expect(o.resourceEmail, unittest.equals('foo')); |
208 unittest.expect(o.resourceId, unittest.equals('foo')); | 208 unittest.expect(o.resourceId, unittest.equals('foo')); |
209 unittest.expect(o.resourceName, unittest.equals('foo')); | 209 unittest.expect(o.resourceName, unittest.equals('foo')); |
210 unittest.expect(o.resourceType, unittest.equals('foo')); | 210 unittest.expect(o.resourceType, unittest.equals('foo')); |
211 } | 211 } |
212 buildCounterCalendarResource--; | 212 buildCounterCalendarResource--; |
213 } | 213 } |
214 | 214 |
215 buildUnnamed734() { | 215 buildUnnamed741() { |
216 var o = new core.List<api.CalendarResource>(); | 216 var o = new core.List<api.CalendarResource>(); |
217 o.add(buildCalendarResource()); | 217 o.add(buildCalendarResource()); |
218 o.add(buildCalendarResource()); | 218 o.add(buildCalendarResource()); |
219 return o; | 219 return o; |
220 } | 220 } |
221 | 221 |
222 checkUnnamed734(core.List<api.CalendarResource> o) { | 222 checkUnnamed741(core.List<api.CalendarResource> o) { |
223 unittest.expect(o, unittest.hasLength(2)); | 223 unittest.expect(o, unittest.hasLength(2)); |
224 checkCalendarResource(o[0]); | 224 checkCalendarResource(o[0]); |
225 checkCalendarResource(o[1]); | 225 checkCalendarResource(o[1]); |
226 } | 226 } |
227 | 227 |
228 core.int buildCounterCalendarResources = 0; | 228 core.int buildCounterCalendarResources = 0; |
229 buildCalendarResources() { | 229 buildCalendarResources() { |
230 var o = new api.CalendarResources(); | 230 var o = new api.CalendarResources(); |
231 buildCounterCalendarResources++; | 231 buildCounterCalendarResources++; |
232 if (buildCounterCalendarResources < 3) { | 232 if (buildCounterCalendarResources < 3) { |
233 o.etag = "foo"; | 233 o.etag = "foo"; |
234 o.items = buildUnnamed734(); | 234 o.items = buildUnnamed741(); |
235 o.kind = "foo"; | 235 o.kind = "foo"; |
236 o.nextPageToken = "foo"; | 236 o.nextPageToken = "foo"; |
237 } | 237 } |
238 buildCounterCalendarResources--; | 238 buildCounterCalendarResources--; |
239 return o; | 239 return o; |
240 } | 240 } |
241 | 241 |
242 checkCalendarResources(api.CalendarResources o) { | 242 checkCalendarResources(api.CalendarResources o) { |
243 buildCounterCalendarResources++; | 243 buildCounterCalendarResources++; |
244 if (buildCounterCalendarResources < 3) { | 244 if (buildCounterCalendarResources < 3) { |
245 unittest.expect(o.etag, unittest.equals('foo')); | 245 unittest.expect(o.etag, unittest.equals('foo')); |
246 checkUnnamed734(o.items); | 246 checkUnnamed741(o.items); |
247 unittest.expect(o.kind, unittest.equals('foo')); | 247 unittest.expect(o.kind, unittest.equals('foo')); |
248 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 248 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
249 } | 249 } |
250 buildCounterCalendarResources--; | 250 buildCounterCalendarResources--; |
251 } | 251 } |
252 | 252 |
253 buildUnnamed735() { | 253 buildUnnamed742() { |
254 var o = new core.Map<core.String, core.String>(); | 254 var o = new core.Map<core.String, core.String>(); |
255 o["x"] = "foo"; | 255 o["x"] = "foo"; |
256 o["y"] = "foo"; | 256 o["y"] = "foo"; |
257 return o; | 257 return o; |
258 } | 258 } |
259 | 259 |
260 checkUnnamed735(core.Map<core.String, core.String> o) { | 260 checkUnnamed742(core.Map<core.String, core.String> o) { |
261 unittest.expect(o, unittest.hasLength(2)); | 261 unittest.expect(o, unittest.hasLength(2)); |
262 unittest.expect(o["x"], unittest.equals('foo')); | 262 unittest.expect(o["x"], unittest.equals('foo')); |
263 unittest.expect(o["y"], unittest.equals('foo')); | 263 unittest.expect(o["y"], unittest.equals('foo')); |
264 } | 264 } |
265 | 265 |
266 core.int buildCounterChannel = 0; | 266 core.int buildCounterChannel = 0; |
267 buildChannel() { | 267 buildChannel() { |
268 var o = new api.Channel(); | 268 var o = new api.Channel(); |
269 buildCounterChannel++; | 269 buildCounterChannel++; |
270 if (buildCounterChannel < 3) { | 270 if (buildCounterChannel < 3) { |
271 o.address = "foo"; | 271 o.address = "foo"; |
272 o.expiration = "foo"; | 272 o.expiration = "foo"; |
273 o.id = "foo"; | 273 o.id = "foo"; |
274 o.kind = "foo"; | 274 o.kind = "foo"; |
275 o.params = buildUnnamed735(); | 275 o.params = buildUnnamed742(); |
276 o.payload = true; | 276 o.payload = true; |
277 o.resourceId = "foo"; | 277 o.resourceId = "foo"; |
278 o.resourceUri = "foo"; | 278 o.resourceUri = "foo"; |
279 o.token = "foo"; | 279 o.token = "foo"; |
280 o.type = "foo"; | 280 o.type = "foo"; |
281 } | 281 } |
282 buildCounterChannel--; | 282 buildCounterChannel--; |
283 return o; | 283 return o; |
284 } | 284 } |
285 | 285 |
286 checkChannel(api.Channel o) { | 286 checkChannel(api.Channel o) { |
287 buildCounterChannel++; | 287 buildCounterChannel++; |
288 if (buildCounterChannel < 3) { | 288 if (buildCounterChannel < 3) { |
289 unittest.expect(o.address, unittest.equals('foo')); | 289 unittest.expect(o.address, unittest.equals('foo')); |
290 unittest.expect(o.expiration, unittest.equals('foo')); | 290 unittest.expect(o.expiration, unittest.equals('foo')); |
291 unittest.expect(o.id, unittest.equals('foo')); | 291 unittest.expect(o.id, unittest.equals('foo')); |
292 unittest.expect(o.kind, unittest.equals('foo')); | 292 unittest.expect(o.kind, unittest.equals('foo')); |
293 checkUnnamed735(o.params); | 293 checkUnnamed742(o.params); |
294 unittest.expect(o.payload, unittest.isTrue); | 294 unittest.expect(o.payload, unittest.isTrue); |
295 unittest.expect(o.resourceId, unittest.equals('foo')); | 295 unittest.expect(o.resourceId, unittest.equals('foo')); |
296 unittest.expect(o.resourceUri, unittest.equals('foo')); | 296 unittest.expect(o.resourceUri, unittest.equals('foo')); |
297 unittest.expect(o.token, unittest.equals('foo')); | 297 unittest.expect(o.token, unittest.equals('foo')); |
298 unittest.expect(o.type, unittest.equals('foo')); | 298 unittest.expect(o.type, unittest.equals('foo')); |
299 } | 299 } |
300 buildCounterChannel--; | 300 buildCounterChannel--; |
301 } | 301 } |
302 | 302 |
303 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0; | 303 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
314 | 314 |
315 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) { | 315 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) { |
316 buildCounterChromeOsDeviceActiveTimeRanges++; | 316 buildCounterChromeOsDeviceActiveTimeRanges++; |
317 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) { | 317 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) { |
318 unittest.expect(o.activeTime, unittest.equals(42)); | 318 unittest.expect(o.activeTime, unittest.equals(42)); |
319 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0
0:00"))); | 319 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0
0:00"))); |
320 } | 320 } |
321 buildCounterChromeOsDeviceActiveTimeRanges--; | 321 buildCounterChromeOsDeviceActiveTimeRanges--; |
322 } | 322 } |
323 | 323 |
324 buildUnnamed736() { | 324 buildUnnamed743() { |
325 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); | 325 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); |
326 o.add(buildChromeOsDeviceActiveTimeRanges()); | 326 o.add(buildChromeOsDeviceActiveTimeRanges()); |
327 o.add(buildChromeOsDeviceActiveTimeRanges()); | 327 o.add(buildChromeOsDeviceActiveTimeRanges()); |
328 return o; | 328 return o; |
329 } | 329 } |
330 | 330 |
331 checkUnnamed736(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { | 331 checkUnnamed743(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { |
332 unittest.expect(o, unittest.hasLength(2)); | 332 unittest.expect(o, unittest.hasLength(2)); |
333 checkChromeOsDeviceActiveTimeRanges(o[0]); | 333 checkChromeOsDeviceActiveTimeRanges(o[0]); |
334 checkChromeOsDeviceActiveTimeRanges(o[1]); | 334 checkChromeOsDeviceActiveTimeRanges(o[1]); |
335 } | 335 } |
336 | 336 |
337 core.int buildCounterChromeOsDeviceRecentUsers = 0; | 337 core.int buildCounterChromeOsDeviceRecentUsers = 0; |
338 buildChromeOsDeviceRecentUsers() { | 338 buildChromeOsDeviceRecentUsers() { |
339 var o = new api.ChromeOsDeviceRecentUsers(); | 339 var o = new api.ChromeOsDeviceRecentUsers(); |
340 buildCounterChromeOsDeviceRecentUsers++; | 340 buildCounterChromeOsDeviceRecentUsers++; |
341 if (buildCounterChromeOsDeviceRecentUsers < 3) { | 341 if (buildCounterChromeOsDeviceRecentUsers < 3) { |
342 o.email = "foo"; | 342 o.email = "foo"; |
343 o.type = "foo"; | 343 o.type = "foo"; |
344 } | 344 } |
345 buildCounterChromeOsDeviceRecentUsers--; | 345 buildCounterChromeOsDeviceRecentUsers--; |
346 return o; | 346 return o; |
347 } | 347 } |
348 | 348 |
349 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { | 349 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { |
350 buildCounterChromeOsDeviceRecentUsers++; | 350 buildCounterChromeOsDeviceRecentUsers++; |
351 if (buildCounterChromeOsDeviceRecentUsers < 3) { | 351 if (buildCounterChromeOsDeviceRecentUsers < 3) { |
352 unittest.expect(o.email, unittest.equals('foo')); | 352 unittest.expect(o.email, unittest.equals('foo')); |
353 unittest.expect(o.type, unittest.equals('foo')); | 353 unittest.expect(o.type, unittest.equals('foo')); |
354 } | 354 } |
355 buildCounterChromeOsDeviceRecentUsers--; | 355 buildCounterChromeOsDeviceRecentUsers--; |
356 } | 356 } |
357 | 357 |
358 buildUnnamed737() { | 358 buildUnnamed744() { |
359 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); | 359 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); |
360 o.add(buildChromeOsDeviceRecentUsers()); | 360 o.add(buildChromeOsDeviceRecentUsers()); |
361 o.add(buildChromeOsDeviceRecentUsers()); | 361 o.add(buildChromeOsDeviceRecentUsers()); |
362 return o; | 362 return o; |
363 } | 363 } |
364 | 364 |
365 checkUnnamed737(core.List<api.ChromeOsDeviceRecentUsers> o) { | 365 checkUnnamed744(core.List<api.ChromeOsDeviceRecentUsers> o) { |
366 unittest.expect(o, unittest.hasLength(2)); | 366 unittest.expect(o, unittest.hasLength(2)); |
367 checkChromeOsDeviceRecentUsers(o[0]); | 367 checkChromeOsDeviceRecentUsers(o[0]); |
368 checkChromeOsDeviceRecentUsers(o[1]); | 368 checkChromeOsDeviceRecentUsers(o[1]); |
369 } | 369 } |
370 | 370 |
371 core.int buildCounterChromeOsDevice = 0; | 371 core.int buildCounterChromeOsDevice = 0; |
372 buildChromeOsDevice() { | 372 buildChromeOsDevice() { |
373 var o = new api.ChromeOsDevice(); | 373 var o = new api.ChromeOsDevice(); |
374 buildCounterChromeOsDevice++; | 374 buildCounterChromeOsDevice++; |
375 if (buildCounterChromeOsDevice < 3) { | 375 if (buildCounterChromeOsDevice < 3) { |
376 o.activeTimeRanges = buildUnnamed736(); | 376 o.activeTimeRanges = buildUnnamed743(); |
377 o.annotatedAssetId = "foo"; | 377 o.annotatedAssetId = "foo"; |
378 o.annotatedLocation = "foo"; | 378 o.annotatedLocation = "foo"; |
379 o.annotatedUser = "foo"; | 379 o.annotatedUser = "foo"; |
380 o.bootMode = "foo"; | 380 o.bootMode = "foo"; |
381 o.deviceId = "foo"; | 381 o.deviceId = "foo"; |
382 o.etag = "foo"; | 382 o.etag = "foo"; |
383 o.ethernetMacAddress = "foo"; | 383 o.ethernetMacAddress = "foo"; |
384 o.firmwareVersion = "foo"; | 384 o.firmwareVersion = "foo"; |
385 o.kind = "foo"; | 385 o.kind = "foo"; |
386 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); | 386 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); |
387 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); | 387 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); |
388 o.macAddress = "foo"; | 388 o.macAddress = "foo"; |
389 o.meid = "foo"; | 389 o.meid = "foo"; |
390 o.model = "foo"; | 390 o.model = "foo"; |
391 o.notes = "foo"; | 391 o.notes = "foo"; |
392 o.orderNumber = "foo"; | 392 o.orderNumber = "foo"; |
393 o.orgUnitPath = "foo"; | 393 o.orgUnitPath = "foo"; |
394 o.osVersion = "foo"; | 394 o.osVersion = "foo"; |
395 o.platformVersion = "foo"; | 395 o.platformVersion = "foo"; |
396 o.recentUsers = buildUnnamed737(); | 396 o.recentUsers = buildUnnamed744(); |
397 o.serialNumber = "foo"; | 397 o.serialNumber = "foo"; |
398 o.status = "foo"; | 398 o.status = "foo"; |
399 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); | 399 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); |
400 o.willAutoRenew = true; | 400 o.willAutoRenew = true; |
401 } | 401 } |
402 buildCounterChromeOsDevice--; | 402 buildCounterChromeOsDevice--; |
403 return o; | 403 return o; |
404 } | 404 } |
405 | 405 |
406 checkChromeOsDevice(api.ChromeOsDevice o) { | 406 checkChromeOsDevice(api.ChromeOsDevice o) { |
407 buildCounterChromeOsDevice++; | 407 buildCounterChromeOsDevice++; |
408 if (buildCounterChromeOsDevice < 3) { | 408 if (buildCounterChromeOsDevice < 3) { |
409 checkUnnamed736(o.activeTimeRanges); | 409 checkUnnamed743(o.activeTimeRanges); |
410 unittest.expect(o.annotatedAssetId, unittest.equals('foo')); | 410 unittest.expect(o.annotatedAssetId, unittest.equals('foo')); |
411 unittest.expect(o.annotatedLocation, unittest.equals('foo')); | 411 unittest.expect(o.annotatedLocation, unittest.equals('foo')); |
412 unittest.expect(o.annotatedUser, unittest.equals('foo')); | 412 unittest.expect(o.annotatedUser, unittest.equals('foo')); |
413 unittest.expect(o.bootMode, unittest.equals('foo')); | 413 unittest.expect(o.bootMode, unittest.equals('foo')); |
414 unittest.expect(o.deviceId, unittest.equals('foo')); | 414 unittest.expect(o.deviceId, unittest.equals('foo')); |
415 unittest.expect(o.etag, unittest.equals('foo')); | 415 unittest.expect(o.etag, unittest.equals('foo')); |
416 unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); | 416 unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); |
417 unittest.expect(o.firmwareVersion, unittest.equals('foo')); | 417 unittest.expect(o.firmwareVersion, unittest.equals('foo')); |
418 unittest.expect(o.kind, unittest.equals('foo')); | 418 unittest.expect(o.kind, unittest.equals('foo')); |
419 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); | 419 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); |
420 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 420 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
421 unittest.expect(o.macAddress, unittest.equals('foo')); | 421 unittest.expect(o.macAddress, unittest.equals('foo')); |
422 unittest.expect(o.meid, unittest.equals('foo')); | 422 unittest.expect(o.meid, unittest.equals('foo')); |
423 unittest.expect(o.model, unittest.equals('foo')); | 423 unittest.expect(o.model, unittest.equals('foo')); |
424 unittest.expect(o.notes, unittest.equals('foo')); | 424 unittest.expect(o.notes, unittest.equals('foo')); |
425 unittest.expect(o.orderNumber, unittest.equals('foo')); | 425 unittest.expect(o.orderNumber, unittest.equals('foo')); |
426 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 426 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
427 unittest.expect(o.osVersion, unittest.equals('foo')); | 427 unittest.expect(o.osVersion, unittest.equals('foo')); |
428 unittest.expect(o.platformVersion, unittest.equals('foo')); | 428 unittest.expect(o.platformVersion, unittest.equals('foo')); |
429 checkUnnamed737(o.recentUsers); | 429 checkUnnamed744(o.recentUsers); |
430 unittest.expect(o.serialNumber, unittest.equals('foo')); | 430 unittest.expect(o.serialNumber, unittest.equals('foo')); |
431 unittest.expect(o.status, unittest.equals('foo')); | 431 unittest.expect(o.status, unittest.equals('foo')); |
432 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 432 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
433 unittest.expect(o.willAutoRenew, unittest.isTrue); | 433 unittest.expect(o.willAutoRenew, unittest.isTrue); |
434 } | 434 } |
435 buildCounterChromeOsDevice--; | 435 buildCounterChromeOsDevice--; |
436 } | 436 } |
437 | 437 |
438 core.int buildCounterChromeOsDeviceAction = 0; | 438 core.int buildCounterChromeOsDeviceAction = 0; |
439 buildChromeOsDeviceAction() { | 439 buildChromeOsDeviceAction() { |
440 var o = new api.ChromeOsDeviceAction(); | 440 var o = new api.ChromeOsDeviceAction(); |
441 buildCounterChromeOsDeviceAction++; | 441 buildCounterChromeOsDeviceAction++; |
442 if (buildCounterChromeOsDeviceAction < 3) { | 442 if (buildCounterChromeOsDeviceAction < 3) { |
443 o.action = "foo"; | 443 o.action = "foo"; |
444 o.deprovisionReason = "foo"; | 444 o.deprovisionReason = "foo"; |
445 } | 445 } |
446 buildCounterChromeOsDeviceAction--; | 446 buildCounterChromeOsDeviceAction--; |
447 return o; | 447 return o; |
448 } | 448 } |
449 | 449 |
450 checkChromeOsDeviceAction(api.ChromeOsDeviceAction o) { | 450 checkChromeOsDeviceAction(api.ChromeOsDeviceAction o) { |
451 buildCounterChromeOsDeviceAction++; | 451 buildCounterChromeOsDeviceAction++; |
452 if (buildCounterChromeOsDeviceAction < 3) { | 452 if (buildCounterChromeOsDeviceAction < 3) { |
453 unittest.expect(o.action, unittest.equals('foo')); | 453 unittest.expect(o.action, unittest.equals('foo')); |
454 unittest.expect(o.deprovisionReason, unittest.equals('foo')); | 454 unittest.expect(o.deprovisionReason, unittest.equals('foo')); |
455 } | 455 } |
456 buildCounterChromeOsDeviceAction--; | 456 buildCounterChromeOsDeviceAction--; |
457 } | 457 } |
458 | 458 |
459 buildUnnamed738() { | 459 buildUnnamed745() { |
460 var o = new core.List<api.ChromeOsDevice>(); | 460 var o = new core.List<api.ChromeOsDevice>(); |
461 o.add(buildChromeOsDevice()); | 461 o.add(buildChromeOsDevice()); |
462 o.add(buildChromeOsDevice()); | 462 o.add(buildChromeOsDevice()); |
463 return o; | 463 return o; |
464 } | 464 } |
465 | 465 |
466 checkUnnamed738(core.List<api.ChromeOsDevice> o) { | 466 checkUnnamed745(core.List<api.ChromeOsDevice> o) { |
467 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
468 checkChromeOsDevice(o[0]); | 468 checkChromeOsDevice(o[0]); |
469 checkChromeOsDevice(o[1]); | 469 checkChromeOsDevice(o[1]); |
470 } | 470 } |
471 | 471 |
472 core.int buildCounterChromeOsDevices = 0; | 472 core.int buildCounterChromeOsDevices = 0; |
473 buildChromeOsDevices() { | 473 buildChromeOsDevices() { |
474 var o = new api.ChromeOsDevices(); | 474 var o = new api.ChromeOsDevices(); |
475 buildCounterChromeOsDevices++; | 475 buildCounterChromeOsDevices++; |
476 if (buildCounterChromeOsDevices < 3) { | 476 if (buildCounterChromeOsDevices < 3) { |
477 o.chromeosdevices = buildUnnamed738(); | 477 o.chromeosdevices = buildUnnamed745(); |
478 o.etag = "foo"; | 478 o.etag = "foo"; |
479 o.kind = "foo"; | 479 o.kind = "foo"; |
480 o.nextPageToken = "foo"; | 480 o.nextPageToken = "foo"; |
481 } | 481 } |
482 buildCounterChromeOsDevices--; | 482 buildCounterChromeOsDevices--; |
483 return o; | 483 return o; |
484 } | 484 } |
485 | 485 |
486 checkChromeOsDevices(api.ChromeOsDevices o) { | 486 checkChromeOsDevices(api.ChromeOsDevices o) { |
487 buildCounterChromeOsDevices++; | 487 buildCounterChromeOsDevices++; |
488 if (buildCounterChromeOsDevices < 3) { | 488 if (buildCounterChromeOsDevices < 3) { |
489 checkUnnamed738(o.chromeosdevices); | 489 checkUnnamed745(o.chromeosdevices); |
490 unittest.expect(o.etag, unittest.equals('foo')); | 490 unittest.expect(o.etag, unittest.equals('foo')); |
491 unittest.expect(o.kind, unittest.equals('foo')); | 491 unittest.expect(o.kind, unittest.equals('foo')); |
492 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 492 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
493 } | 493 } |
494 buildCounterChromeOsDevices--; | 494 buildCounterChromeOsDevices--; |
495 } | 495 } |
496 | 496 |
497 core.int buildCounterCustomer = 0; | 497 core.int buildCounterCustomer = 0; |
498 buildCustomer() { | 498 buildCustomer() { |
499 var o = new api.Customer(); | 499 var o = new api.Customer(); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 unittest.expect(o.creationTime, unittest.equals('foo')); | 586 unittest.expect(o.creationTime, unittest.equals('foo')); |
587 unittest.expect(o.domainAliasName, unittest.equals('foo')); | 587 unittest.expect(o.domainAliasName, unittest.equals('foo')); |
588 unittest.expect(o.etag, unittest.equals('foo')); | 588 unittest.expect(o.etag, unittest.equals('foo')); |
589 unittest.expect(o.kind, unittest.equals('foo')); | 589 unittest.expect(o.kind, unittest.equals('foo')); |
590 unittest.expect(o.parentDomainName, unittest.equals('foo')); | 590 unittest.expect(o.parentDomainName, unittest.equals('foo')); |
591 unittest.expect(o.verified, unittest.isTrue); | 591 unittest.expect(o.verified, unittest.isTrue); |
592 } | 592 } |
593 buildCounterDomainAlias--; | 593 buildCounterDomainAlias--; |
594 } | 594 } |
595 | 595 |
596 buildUnnamed739() { | 596 buildUnnamed746() { |
597 var o = new core.List<api.DomainAlias>(); | 597 var o = new core.List<api.DomainAlias>(); |
598 o.add(buildDomainAlias()); | 598 o.add(buildDomainAlias()); |
599 o.add(buildDomainAlias()); | 599 o.add(buildDomainAlias()); |
600 return o; | 600 return o; |
601 } | 601 } |
602 | 602 |
603 checkUnnamed739(core.List<api.DomainAlias> o) { | 603 checkUnnamed746(core.List<api.DomainAlias> o) { |
604 unittest.expect(o, unittest.hasLength(2)); | 604 unittest.expect(o, unittest.hasLength(2)); |
605 checkDomainAlias(o[0]); | 605 checkDomainAlias(o[0]); |
606 checkDomainAlias(o[1]); | 606 checkDomainAlias(o[1]); |
607 } | 607 } |
608 | 608 |
609 core.int buildCounterDomainAliases = 0; | 609 core.int buildCounterDomainAliases = 0; |
610 buildDomainAliases() { | 610 buildDomainAliases() { |
611 var o = new api.DomainAliases(); | 611 var o = new api.DomainAliases(); |
612 buildCounterDomainAliases++; | 612 buildCounterDomainAliases++; |
613 if (buildCounterDomainAliases < 3) { | 613 if (buildCounterDomainAliases < 3) { |
614 o.domainAliases = buildUnnamed739(); | 614 o.domainAliases = buildUnnamed746(); |
615 o.etag = "foo"; | 615 o.etag = "foo"; |
616 o.kind = "foo"; | 616 o.kind = "foo"; |
617 } | 617 } |
618 buildCounterDomainAliases--; | 618 buildCounterDomainAliases--; |
619 return o; | 619 return o; |
620 } | 620 } |
621 | 621 |
622 checkDomainAliases(api.DomainAliases o) { | 622 checkDomainAliases(api.DomainAliases o) { |
623 buildCounterDomainAliases++; | 623 buildCounterDomainAliases++; |
624 if (buildCounterDomainAliases < 3) { | 624 if (buildCounterDomainAliases < 3) { |
625 checkUnnamed739(o.domainAliases); | 625 checkUnnamed746(o.domainAliases); |
626 unittest.expect(o.etag, unittest.equals('foo')); | 626 unittest.expect(o.etag, unittest.equals('foo')); |
627 unittest.expect(o.kind, unittest.equals('foo')); | 627 unittest.expect(o.kind, unittest.equals('foo')); |
628 } | 628 } |
629 buildCounterDomainAliases--; | 629 buildCounterDomainAliases--; |
630 } | 630 } |
631 | 631 |
632 buildUnnamed740() { | 632 buildUnnamed747() { |
633 var o = new core.List<api.DomainAlias>(); | 633 var o = new core.List<api.DomainAlias>(); |
634 o.add(buildDomainAlias()); | 634 o.add(buildDomainAlias()); |
635 o.add(buildDomainAlias()); | 635 o.add(buildDomainAlias()); |
636 return o; | 636 return o; |
637 } | 637 } |
638 | 638 |
639 checkUnnamed740(core.List<api.DomainAlias> o) { | 639 checkUnnamed747(core.List<api.DomainAlias> o) { |
640 unittest.expect(o, unittest.hasLength(2)); | 640 unittest.expect(o, unittest.hasLength(2)); |
641 checkDomainAlias(o[0]); | 641 checkDomainAlias(o[0]); |
642 checkDomainAlias(o[1]); | 642 checkDomainAlias(o[1]); |
643 } | 643 } |
644 | 644 |
645 core.int buildCounterDomains = 0; | 645 core.int buildCounterDomains = 0; |
646 buildDomains() { | 646 buildDomains() { |
647 var o = new api.Domains(); | 647 var o = new api.Domains(); |
648 buildCounterDomains++; | 648 buildCounterDomains++; |
649 if (buildCounterDomains < 3) { | 649 if (buildCounterDomains < 3) { |
650 o.creationTime = "foo"; | 650 o.creationTime = "foo"; |
651 o.domainAliases = buildUnnamed740(); | 651 o.domainAliases = buildUnnamed747(); |
652 o.domainName = "foo"; | 652 o.domainName = "foo"; |
653 o.etag = "foo"; | 653 o.etag = "foo"; |
654 o.isPrimary = true; | 654 o.isPrimary = true; |
655 o.kind = "foo"; | 655 o.kind = "foo"; |
656 o.verified = true; | 656 o.verified = true; |
657 } | 657 } |
658 buildCounterDomains--; | 658 buildCounterDomains--; |
659 return o; | 659 return o; |
660 } | 660 } |
661 | 661 |
662 checkDomains(api.Domains o) { | 662 checkDomains(api.Domains o) { |
663 buildCounterDomains++; | 663 buildCounterDomains++; |
664 if (buildCounterDomains < 3) { | 664 if (buildCounterDomains < 3) { |
665 unittest.expect(o.creationTime, unittest.equals('foo')); | 665 unittest.expect(o.creationTime, unittest.equals('foo')); |
666 checkUnnamed740(o.domainAliases); | 666 checkUnnamed747(o.domainAliases); |
667 unittest.expect(o.domainName, unittest.equals('foo')); | 667 unittest.expect(o.domainName, unittest.equals('foo')); |
668 unittest.expect(o.etag, unittest.equals('foo')); | 668 unittest.expect(o.etag, unittest.equals('foo')); |
669 unittest.expect(o.isPrimary, unittest.isTrue); | 669 unittest.expect(o.isPrimary, unittest.isTrue); |
670 unittest.expect(o.kind, unittest.equals('foo')); | 670 unittest.expect(o.kind, unittest.equals('foo')); |
671 unittest.expect(o.verified, unittest.isTrue); | 671 unittest.expect(o.verified, unittest.isTrue); |
672 } | 672 } |
673 buildCounterDomains--; | 673 buildCounterDomains--; |
674 } | 674 } |
675 | 675 |
676 buildUnnamed741() { | 676 buildUnnamed748() { |
677 var o = new core.List<api.Domains>(); | 677 var o = new core.List<api.Domains>(); |
678 o.add(buildDomains()); | 678 o.add(buildDomains()); |
679 o.add(buildDomains()); | 679 o.add(buildDomains()); |
680 return o; | 680 return o; |
681 } | 681 } |
682 | 682 |
683 checkUnnamed741(core.List<api.Domains> o) { | 683 checkUnnamed748(core.List<api.Domains> o) { |
684 unittest.expect(o, unittest.hasLength(2)); | 684 unittest.expect(o, unittest.hasLength(2)); |
685 checkDomains(o[0]); | 685 checkDomains(o[0]); |
686 checkDomains(o[1]); | 686 checkDomains(o[1]); |
687 } | 687 } |
688 | 688 |
689 core.int buildCounterDomains2 = 0; | 689 core.int buildCounterDomains2 = 0; |
690 buildDomains2() { | 690 buildDomains2() { |
691 var o = new api.Domains2(); | 691 var o = new api.Domains2(); |
692 buildCounterDomains2++; | 692 buildCounterDomains2++; |
693 if (buildCounterDomains2 < 3) { | 693 if (buildCounterDomains2 < 3) { |
694 o.domains = buildUnnamed741(); | 694 o.domains = buildUnnamed748(); |
695 o.etag = "foo"; | 695 o.etag = "foo"; |
696 o.kind = "foo"; | 696 o.kind = "foo"; |
697 } | 697 } |
698 buildCounterDomains2--; | 698 buildCounterDomains2--; |
699 return o; | 699 return o; |
700 } | 700 } |
701 | 701 |
702 checkDomains2(api.Domains2 o) { | 702 checkDomains2(api.Domains2 o) { |
703 buildCounterDomains2++; | 703 buildCounterDomains2++; |
704 if (buildCounterDomains2 < 3) { | 704 if (buildCounterDomains2 < 3) { |
705 checkUnnamed741(o.domains); | 705 checkUnnamed748(o.domains); |
706 unittest.expect(o.etag, unittest.equals('foo')); | 706 unittest.expect(o.etag, unittest.equals('foo')); |
707 unittest.expect(o.kind, unittest.equals('foo')); | 707 unittest.expect(o.kind, unittest.equals('foo')); |
708 } | 708 } |
709 buildCounterDomains2--; | 709 buildCounterDomains2--; |
710 } | 710 } |
711 | 711 |
712 buildUnnamed742() { | 712 buildUnnamed749() { |
713 var o = new core.List<core.String>(); | 713 var o = new core.List<core.String>(); |
714 o.add("foo"); | 714 o.add("foo"); |
715 o.add("foo"); | 715 o.add("foo"); |
716 return o; | 716 return o; |
717 } | 717 } |
718 | 718 |
719 checkUnnamed742(core.List<core.String> o) { | 719 checkUnnamed749(core.List<core.String> o) { |
720 unittest.expect(o, unittest.hasLength(2)); | 720 unittest.expect(o, unittest.hasLength(2)); |
721 unittest.expect(o[0], unittest.equals('foo')); | 721 unittest.expect(o[0], unittest.equals('foo')); |
722 unittest.expect(o[1], unittest.equals('foo')); | 722 unittest.expect(o[1], unittest.equals('foo')); |
723 } | 723 } |
724 | 724 |
725 buildUnnamed743() { | 725 buildUnnamed750() { |
726 var o = new core.List<core.String>(); | 726 var o = new core.List<core.String>(); |
727 o.add("foo"); | 727 o.add("foo"); |
728 o.add("foo"); | 728 o.add("foo"); |
729 return o; | 729 return o; |
730 } | 730 } |
731 | 731 |
732 checkUnnamed743(core.List<core.String> o) { | 732 checkUnnamed750(core.List<core.String> o) { |
733 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
734 unittest.expect(o[0], unittest.equals('foo')); | 734 unittest.expect(o[0], unittest.equals('foo')); |
735 unittest.expect(o[1], unittest.equals('foo')); | 735 unittest.expect(o[1], unittest.equals('foo')); |
736 } | 736 } |
737 | 737 |
738 core.int buildCounterGroup = 0; | 738 core.int buildCounterGroup = 0; |
739 buildGroup() { | 739 buildGroup() { |
740 var o = new api.Group(); | 740 var o = new api.Group(); |
741 buildCounterGroup++; | 741 buildCounterGroup++; |
742 if (buildCounterGroup < 3) { | 742 if (buildCounterGroup < 3) { |
743 o.adminCreated = true; | 743 o.adminCreated = true; |
744 o.aliases = buildUnnamed742(); | 744 o.aliases = buildUnnamed749(); |
745 o.description = "foo"; | 745 o.description = "foo"; |
746 o.directMembersCount = "foo"; | 746 o.directMembersCount = "foo"; |
747 o.email = "foo"; | 747 o.email = "foo"; |
748 o.etag = "foo"; | 748 o.etag = "foo"; |
749 o.id = "foo"; | 749 o.id = "foo"; |
750 o.kind = "foo"; | 750 o.kind = "foo"; |
751 o.name = "foo"; | 751 o.name = "foo"; |
752 o.nonEditableAliases = buildUnnamed743(); | 752 o.nonEditableAliases = buildUnnamed750(); |
753 } | 753 } |
754 buildCounterGroup--; | 754 buildCounterGroup--; |
755 return o; | 755 return o; |
756 } | 756 } |
757 | 757 |
758 checkGroup(api.Group o) { | 758 checkGroup(api.Group o) { |
759 buildCounterGroup++; | 759 buildCounterGroup++; |
760 if (buildCounterGroup < 3) { | 760 if (buildCounterGroup < 3) { |
761 unittest.expect(o.adminCreated, unittest.isTrue); | 761 unittest.expect(o.adminCreated, unittest.isTrue); |
762 checkUnnamed742(o.aliases); | 762 checkUnnamed749(o.aliases); |
763 unittest.expect(o.description, unittest.equals('foo')); | 763 unittest.expect(o.description, unittest.equals('foo')); |
764 unittest.expect(o.directMembersCount, unittest.equals('foo')); | 764 unittest.expect(o.directMembersCount, unittest.equals('foo')); |
765 unittest.expect(o.email, unittest.equals('foo')); | 765 unittest.expect(o.email, unittest.equals('foo')); |
766 unittest.expect(o.etag, unittest.equals('foo')); | 766 unittest.expect(o.etag, unittest.equals('foo')); |
767 unittest.expect(o.id, unittest.equals('foo')); | 767 unittest.expect(o.id, unittest.equals('foo')); |
768 unittest.expect(o.kind, unittest.equals('foo')); | 768 unittest.expect(o.kind, unittest.equals('foo')); |
769 unittest.expect(o.name, unittest.equals('foo')); | 769 unittest.expect(o.name, unittest.equals('foo')); |
770 checkUnnamed743(o.nonEditableAliases); | 770 checkUnnamed750(o.nonEditableAliases); |
771 } | 771 } |
772 buildCounterGroup--; | 772 buildCounterGroup--; |
773 } | 773 } |
774 | 774 |
775 buildUnnamed744() { | 775 buildUnnamed751() { |
776 var o = new core.List<api.Group>(); | 776 var o = new core.List<api.Group>(); |
777 o.add(buildGroup()); | 777 o.add(buildGroup()); |
778 o.add(buildGroup()); | 778 o.add(buildGroup()); |
779 return o; | 779 return o; |
780 } | 780 } |
781 | 781 |
782 checkUnnamed744(core.List<api.Group> o) { | 782 checkUnnamed751(core.List<api.Group> o) { |
783 unittest.expect(o, unittest.hasLength(2)); | 783 unittest.expect(o, unittest.hasLength(2)); |
784 checkGroup(o[0]); | 784 checkGroup(o[0]); |
785 checkGroup(o[1]); | 785 checkGroup(o[1]); |
786 } | 786 } |
787 | 787 |
788 core.int buildCounterGroups = 0; | 788 core.int buildCounterGroups = 0; |
789 buildGroups() { | 789 buildGroups() { |
790 var o = new api.Groups(); | 790 var o = new api.Groups(); |
791 buildCounterGroups++; | 791 buildCounterGroups++; |
792 if (buildCounterGroups < 3) { | 792 if (buildCounterGroups < 3) { |
793 o.etag = "foo"; | 793 o.etag = "foo"; |
794 o.groups = buildUnnamed744(); | 794 o.groups = buildUnnamed751(); |
795 o.kind = "foo"; | 795 o.kind = "foo"; |
796 o.nextPageToken = "foo"; | 796 o.nextPageToken = "foo"; |
797 } | 797 } |
798 buildCounterGroups--; | 798 buildCounterGroups--; |
799 return o; | 799 return o; |
800 } | 800 } |
801 | 801 |
802 checkGroups(api.Groups o) { | 802 checkGroups(api.Groups o) { |
803 buildCounterGroups++; | 803 buildCounterGroups++; |
804 if (buildCounterGroups < 3) { | 804 if (buildCounterGroups < 3) { |
805 unittest.expect(o.etag, unittest.equals('foo')); | 805 unittest.expect(o.etag, unittest.equals('foo')); |
806 checkUnnamed744(o.groups); | 806 checkUnnamed751(o.groups); |
807 unittest.expect(o.kind, unittest.equals('foo')); | 807 unittest.expect(o.kind, unittest.equals('foo')); |
808 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 808 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
809 } | 809 } |
810 buildCounterGroups--; | 810 buildCounterGroups--; |
811 } | 811 } |
812 | 812 |
813 core.int buildCounterMember = 0; | 813 core.int buildCounterMember = 0; |
814 buildMember() { | 814 buildMember() { |
815 var o = new api.Member(); | 815 var o = new api.Member(); |
816 buildCounterMember++; | 816 buildCounterMember++; |
(...skipping 17 matching lines...) Expand all Loading... |
834 unittest.expect(o.etag, unittest.equals('foo')); | 834 unittest.expect(o.etag, unittest.equals('foo')); |
835 unittest.expect(o.id, unittest.equals('foo')); | 835 unittest.expect(o.id, unittest.equals('foo')); |
836 unittest.expect(o.kind, unittest.equals('foo')); | 836 unittest.expect(o.kind, unittest.equals('foo')); |
837 unittest.expect(o.role, unittest.equals('foo')); | 837 unittest.expect(o.role, unittest.equals('foo')); |
838 unittest.expect(o.status, unittest.equals('foo')); | 838 unittest.expect(o.status, unittest.equals('foo')); |
839 unittest.expect(o.type, unittest.equals('foo')); | 839 unittest.expect(o.type, unittest.equals('foo')); |
840 } | 840 } |
841 buildCounterMember--; | 841 buildCounterMember--; |
842 } | 842 } |
843 | 843 |
844 buildUnnamed745() { | 844 buildUnnamed752() { |
845 var o = new core.List<api.Member>(); | 845 var o = new core.List<api.Member>(); |
846 o.add(buildMember()); | 846 o.add(buildMember()); |
847 o.add(buildMember()); | 847 o.add(buildMember()); |
848 return o; | 848 return o; |
849 } | 849 } |
850 | 850 |
851 checkUnnamed745(core.List<api.Member> o) { | 851 checkUnnamed752(core.List<api.Member> o) { |
852 unittest.expect(o, unittest.hasLength(2)); | 852 unittest.expect(o, unittest.hasLength(2)); |
853 checkMember(o[0]); | 853 checkMember(o[0]); |
854 checkMember(o[1]); | 854 checkMember(o[1]); |
855 } | 855 } |
856 | 856 |
857 core.int buildCounterMembers = 0; | 857 core.int buildCounterMembers = 0; |
858 buildMembers() { | 858 buildMembers() { |
859 var o = new api.Members(); | 859 var o = new api.Members(); |
860 buildCounterMembers++; | 860 buildCounterMembers++; |
861 if (buildCounterMembers < 3) { | 861 if (buildCounterMembers < 3) { |
862 o.etag = "foo"; | 862 o.etag = "foo"; |
863 o.kind = "foo"; | 863 o.kind = "foo"; |
864 o.members = buildUnnamed745(); | 864 o.members = buildUnnamed752(); |
865 o.nextPageToken = "foo"; | 865 o.nextPageToken = "foo"; |
866 } | 866 } |
867 buildCounterMembers--; | 867 buildCounterMembers--; |
868 return o; | 868 return o; |
869 } | 869 } |
870 | 870 |
871 checkMembers(api.Members o) { | 871 checkMembers(api.Members o) { |
872 buildCounterMembers++; | 872 buildCounterMembers++; |
873 if (buildCounterMembers < 3) { | 873 if (buildCounterMembers < 3) { |
874 unittest.expect(o.etag, unittest.equals('foo')); | 874 unittest.expect(o.etag, unittest.equals('foo')); |
875 unittest.expect(o.kind, unittest.equals('foo')); | 875 unittest.expect(o.kind, unittest.equals('foo')); |
876 checkUnnamed745(o.members); | 876 checkUnnamed752(o.members); |
877 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 877 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
878 } | 878 } |
879 buildCounterMembers--; | 879 buildCounterMembers--; |
880 } | 880 } |
881 | 881 |
882 buildUnnamed746() { | 882 buildUnnamed753() { |
883 var o = new core.List<core.String>(); | 883 var o = new core.List<core.String>(); |
884 o.add("foo"); | 884 o.add("foo"); |
885 o.add("foo"); | 885 o.add("foo"); |
886 return o; | 886 return o; |
887 } | 887 } |
888 | 888 |
889 checkUnnamed746(core.List<core.String> o) { | 889 checkUnnamed753(core.List<core.String> o) { |
890 unittest.expect(o, unittest.hasLength(2)); | 890 unittest.expect(o, unittest.hasLength(2)); |
891 unittest.expect(o[0], unittest.equals('foo')); | 891 unittest.expect(o[0], unittest.equals('foo')); |
892 unittest.expect(o[1], unittest.equals('foo')); | 892 unittest.expect(o[1], unittest.equals('foo')); |
893 } | 893 } |
894 | 894 |
895 core.int buildCounterMobileDeviceApplications = 0; | 895 core.int buildCounterMobileDeviceApplications = 0; |
896 buildMobileDeviceApplications() { | 896 buildMobileDeviceApplications() { |
897 var o = new api.MobileDeviceApplications(); | 897 var o = new api.MobileDeviceApplications(); |
898 buildCounterMobileDeviceApplications++; | 898 buildCounterMobileDeviceApplications++; |
899 if (buildCounterMobileDeviceApplications < 3) { | 899 if (buildCounterMobileDeviceApplications < 3) { |
900 o.displayName = "foo"; | 900 o.displayName = "foo"; |
901 o.packageName = "foo"; | 901 o.packageName = "foo"; |
902 o.permission = buildUnnamed746(); | 902 o.permission = buildUnnamed753(); |
903 o.versionCode = 42; | 903 o.versionCode = 42; |
904 o.versionName = "foo"; | 904 o.versionName = "foo"; |
905 } | 905 } |
906 buildCounterMobileDeviceApplications--; | 906 buildCounterMobileDeviceApplications--; |
907 return o; | 907 return o; |
908 } | 908 } |
909 | 909 |
910 checkMobileDeviceApplications(api.MobileDeviceApplications o) { | 910 checkMobileDeviceApplications(api.MobileDeviceApplications o) { |
911 buildCounterMobileDeviceApplications++; | 911 buildCounterMobileDeviceApplications++; |
912 if (buildCounterMobileDeviceApplications < 3) { | 912 if (buildCounterMobileDeviceApplications < 3) { |
913 unittest.expect(o.displayName, unittest.equals('foo')); | 913 unittest.expect(o.displayName, unittest.equals('foo')); |
914 unittest.expect(o.packageName, unittest.equals('foo')); | 914 unittest.expect(o.packageName, unittest.equals('foo')); |
915 checkUnnamed746(o.permission); | 915 checkUnnamed753(o.permission); |
916 unittest.expect(o.versionCode, unittest.equals(42)); | 916 unittest.expect(o.versionCode, unittest.equals(42)); |
917 unittest.expect(o.versionName, unittest.equals('foo')); | 917 unittest.expect(o.versionName, unittest.equals('foo')); |
918 } | 918 } |
919 buildCounterMobileDeviceApplications--; | 919 buildCounterMobileDeviceApplications--; |
920 } | 920 } |
921 | 921 |
922 buildUnnamed747() { | 922 buildUnnamed754() { |
923 var o = new core.List<api.MobileDeviceApplications>(); | 923 var o = new core.List<api.MobileDeviceApplications>(); |
924 o.add(buildMobileDeviceApplications()); | 924 o.add(buildMobileDeviceApplications()); |
925 o.add(buildMobileDeviceApplications()); | 925 o.add(buildMobileDeviceApplications()); |
926 return o; | 926 return o; |
927 } | 927 } |
928 | 928 |
929 checkUnnamed747(core.List<api.MobileDeviceApplications> o) { | 929 checkUnnamed754(core.List<api.MobileDeviceApplications> o) { |
930 unittest.expect(o, unittest.hasLength(2)); | 930 unittest.expect(o, unittest.hasLength(2)); |
931 checkMobileDeviceApplications(o[0]); | 931 checkMobileDeviceApplications(o[0]); |
932 checkMobileDeviceApplications(o[1]); | 932 checkMobileDeviceApplications(o[1]); |
933 } | 933 } |
934 | 934 |
935 buildUnnamed748() { | 935 buildUnnamed755() { |
936 var o = new core.List<core.String>(); | 936 var o = new core.List<core.String>(); |
937 o.add("foo"); | 937 o.add("foo"); |
938 o.add("foo"); | 938 o.add("foo"); |
939 return o; | 939 return o; |
940 } | 940 } |
941 | 941 |
942 checkUnnamed748(core.List<core.String> o) { | 942 checkUnnamed755(core.List<core.String> o) { |
943 unittest.expect(o, unittest.hasLength(2)); | 943 unittest.expect(o, unittest.hasLength(2)); |
944 unittest.expect(o[0], unittest.equals('foo')); | 944 unittest.expect(o[0], unittest.equals('foo')); |
945 unittest.expect(o[1], unittest.equals('foo')); | 945 unittest.expect(o[1], unittest.equals('foo')); |
946 } | 946 } |
947 | 947 |
948 buildUnnamed749() { | 948 buildUnnamed756() { |
949 var o = new core.List<core.String>(); | 949 var o = new core.List<core.String>(); |
950 o.add("foo"); | 950 o.add("foo"); |
951 o.add("foo"); | 951 o.add("foo"); |
952 return o; | 952 return o; |
953 } | 953 } |
954 | 954 |
955 checkUnnamed749(core.List<core.String> o) { | 955 checkUnnamed756(core.List<core.String> o) { |
956 unittest.expect(o, unittest.hasLength(2)); | 956 unittest.expect(o, unittest.hasLength(2)); |
957 unittest.expect(o[0], unittest.equals('foo')); | 957 unittest.expect(o[0], unittest.equals('foo')); |
958 unittest.expect(o[1], unittest.equals('foo')); | 958 unittest.expect(o[1], unittest.equals('foo')); |
959 } | 959 } |
960 | 960 |
961 buildUnnamed750() { | 961 buildUnnamed757() { |
962 var o = new core.List<core.String>(); | 962 var o = new core.List<core.String>(); |
963 o.add("foo"); | 963 o.add("foo"); |
964 o.add("foo"); | 964 o.add("foo"); |
965 return o; | 965 return o; |
966 } | 966 } |
967 | 967 |
968 checkUnnamed750(core.List<core.String> o) { | 968 checkUnnamed757(core.List<core.String> o) { |
969 unittest.expect(o, unittest.hasLength(2)); | 969 unittest.expect(o, unittest.hasLength(2)); |
970 unittest.expect(o[0], unittest.equals('foo')); | 970 unittest.expect(o[0], unittest.equals('foo')); |
971 unittest.expect(o[1], unittest.equals('foo')); | 971 unittest.expect(o[1], unittest.equals('foo')); |
972 } | 972 } |
973 | 973 |
974 core.int buildCounterMobileDevice = 0; | 974 core.int buildCounterMobileDevice = 0; |
975 buildMobileDevice() { | 975 buildMobileDevice() { |
976 var o = new api.MobileDevice(); | 976 var o = new api.MobileDevice(); |
977 buildCounterMobileDevice++; | 977 buildCounterMobileDevice++; |
978 if (buildCounterMobileDevice < 3) { | 978 if (buildCounterMobileDevice < 3) { |
979 o.adbStatus = true; | 979 o.adbStatus = true; |
980 o.applications = buildUnnamed747(); | 980 o.applications = buildUnnamed754(); |
981 o.basebandVersion = "foo"; | 981 o.basebandVersion = "foo"; |
982 o.bootloaderVersion = "foo"; | 982 o.bootloaderVersion = "foo"; |
983 o.brand = "foo"; | 983 o.brand = "foo"; |
984 o.buildNumber = "foo"; | 984 o.buildNumber = "foo"; |
985 o.defaultLanguage = "foo"; | 985 o.defaultLanguage = "foo"; |
986 o.developerOptionsStatus = true; | 986 o.developerOptionsStatus = true; |
987 o.deviceCompromisedStatus = "foo"; | 987 o.deviceCompromisedStatus = "foo"; |
988 o.deviceId = "foo"; | 988 o.deviceId = "foo"; |
989 o.devicePasswordStatus = "foo"; | 989 o.devicePasswordStatus = "foo"; |
990 o.email = buildUnnamed748(); | 990 o.email = buildUnnamed755(); |
991 o.encryptionStatus = "foo"; | 991 o.encryptionStatus = "foo"; |
992 o.etag = "foo"; | 992 o.etag = "foo"; |
993 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); | 993 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); |
994 o.hardware = "foo"; | 994 o.hardware = "foo"; |
995 o.hardwareId = "foo"; | 995 o.hardwareId = "foo"; |
996 o.imei = "foo"; | 996 o.imei = "foo"; |
997 o.kernelVersion = "foo"; | 997 o.kernelVersion = "foo"; |
998 o.kind = "foo"; | 998 o.kind = "foo"; |
999 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); | 999 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); |
1000 o.managedAccountIsOnOwnerProfile = true; | 1000 o.managedAccountIsOnOwnerProfile = true; |
1001 o.manufacturer = "foo"; | 1001 o.manufacturer = "foo"; |
1002 o.meid = "foo"; | 1002 o.meid = "foo"; |
1003 o.model = "foo"; | 1003 o.model = "foo"; |
1004 o.name = buildUnnamed749(); | 1004 o.name = buildUnnamed756(); |
1005 o.networkOperator = "foo"; | 1005 o.networkOperator = "foo"; |
1006 o.os = "foo"; | 1006 o.os = "foo"; |
1007 o.otherAccountsInfo = buildUnnamed750(); | 1007 o.otherAccountsInfo = buildUnnamed757(); |
1008 o.privilege = "foo"; | 1008 o.privilege = "foo"; |
1009 o.releaseVersion = "foo"; | 1009 o.releaseVersion = "foo"; |
1010 o.resourceId = "foo"; | 1010 o.resourceId = "foo"; |
1011 o.securityPatchLevel = "foo"; | 1011 o.securityPatchLevel = "foo"; |
1012 o.serialNumber = "foo"; | 1012 o.serialNumber = "foo"; |
1013 o.status = "foo"; | 1013 o.status = "foo"; |
1014 o.supportsWorkProfile = true; | 1014 o.supportsWorkProfile = true; |
1015 o.type = "foo"; | 1015 o.type = "foo"; |
1016 o.unknownSourcesStatus = true; | 1016 o.unknownSourcesStatus = true; |
1017 o.userAgent = "foo"; | 1017 o.userAgent = "foo"; |
1018 o.wifiMacAddress = "foo"; | 1018 o.wifiMacAddress = "foo"; |
1019 } | 1019 } |
1020 buildCounterMobileDevice--; | 1020 buildCounterMobileDevice--; |
1021 return o; | 1021 return o; |
1022 } | 1022 } |
1023 | 1023 |
1024 checkMobileDevice(api.MobileDevice o) { | 1024 checkMobileDevice(api.MobileDevice o) { |
1025 buildCounterMobileDevice++; | 1025 buildCounterMobileDevice++; |
1026 if (buildCounterMobileDevice < 3) { | 1026 if (buildCounterMobileDevice < 3) { |
1027 unittest.expect(o.adbStatus, unittest.isTrue); | 1027 unittest.expect(o.adbStatus, unittest.isTrue); |
1028 checkUnnamed747(o.applications); | 1028 checkUnnamed754(o.applications); |
1029 unittest.expect(o.basebandVersion, unittest.equals('foo')); | 1029 unittest.expect(o.basebandVersion, unittest.equals('foo')); |
1030 unittest.expect(o.bootloaderVersion, unittest.equals('foo')); | 1030 unittest.expect(o.bootloaderVersion, unittest.equals('foo')); |
1031 unittest.expect(o.brand, unittest.equals('foo')); | 1031 unittest.expect(o.brand, unittest.equals('foo')); |
1032 unittest.expect(o.buildNumber, unittest.equals('foo')); | 1032 unittest.expect(o.buildNumber, unittest.equals('foo')); |
1033 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 1033 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
1034 unittest.expect(o.developerOptionsStatus, unittest.isTrue); | 1034 unittest.expect(o.developerOptionsStatus, unittest.isTrue); |
1035 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); | 1035 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); |
1036 unittest.expect(o.deviceId, unittest.equals('foo')); | 1036 unittest.expect(o.deviceId, unittest.equals('foo')); |
1037 unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); | 1037 unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); |
1038 checkUnnamed748(o.email); | 1038 checkUnnamed755(o.email); |
1039 unittest.expect(o.encryptionStatus, unittest.equals('foo')); | 1039 unittest.expect(o.encryptionStatus, unittest.equals('foo')); |
1040 unittest.expect(o.etag, unittest.equals('foo')); | 1040 unittest.expect(o.etag, unittest.equals('foo')); |
1041 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 1041 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
1042 unittest.expect(o.hardware, unittest.equals('foo')); | 1042 unittest.expect(o.hardware, unittest.equals('foo')); |
1043 unittest.expect(o.hardwareId, unittest.equals('foo')); | 1043 unittest.expect(o.hardwareId, unittest.equals('foo')); |
1044 unittest.expect(o.imei, unittest.equals('foo')); | 1044 unittest.expect(o.imei, unittest.equals('foo')); |
1045 unittest.expect(o.kernelVersion, unittest.equals('foo')); | 1045 unittest.expect(o.kernelVersion, unittest.equals('foo')); |
1046 unittest.expect(o.kind, unittest.equals('foo')); | 1046 unittest.expect(o.kind, unittest.equals('foo')); |
1047 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 1047 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
1048 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); | 1048 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); |
1049 unittest.expect(o.manufacturer, unittest.equals('foo')); | 1049 unittest.expect(o.manufacturer, unittest.equals('foo')); |
1050 unittest.expect(o.meid, unittest.equals('foo')); | 1050 unittest.expect(o.meid, unittest.equals('foo')); |
1051 unittest.expect(o.model, unittest.equals('foo')); | 1051 unittest.expect(o.model, unittest.equals('foo')); |
1052 checkUnnamed749(o.name); | 1052 checkUnnamed756(o.name); |
1053 unittest.expect(o.networkOperator, unittest.equals('foo')); | 1053 unittest.expect(o.networkOperator, unittest.equals('foo')); |
1054 unittest.expect(o.os, unittest.equals('foo')); | 1054 unittest.expect(o.os, unittest.equals('foo')); |
1055 checkUnnamed750(o.otherAccountsInfo); | 1055 checkUnnamed757(o.otherAccountsInfo); |
1056 unittest.expect(o.privilege, unittest.equals('foo')); | 1056 unittest.expect(o.privilege, unittest.equals('foo')); |
1057 unittest.expect(o.releaseVersion, unittest.equals('foo')); | 1057 unittest.expect(o.releaseVersion, unittest.equals('foo')); |
1058 unittest.expect(o.resourceId, unittest.equals('foo')); | 1058 unittest.expect(o.resourceId, unittest.equals('foo')); |
1059 unittest.expect(o.securityPatchLevel, unittest.equals('foo')); | 1059 unittest.expect(o.securityPatchLevel, unittest.equals('foo')); |
1060 unittest.expect(o.serialNumber, unittest.equals('foo')); | 1060 unittest.expect(o.serialNumber, unittest.equals('foo')); |
1061 unittest.expect(o.status, unittest.equals('foo')); | 1061 unittest.expect(o.status, unittest.equals('foo')); |
1062 unittest.expect(o.supportsWorkProfile, unittest.isTrue); | 1062 unittest.expect(o.supportsWorkProfile, unittest.isTrue); |
1063 unittest.expect(o.type, unittest.equals('foo')); | 1063 unittest.expect(o.type, unittest.equals('foo')); |
1064 unittest.expect(o.unknownSourcesStatus, unittest.isTrue); | 1064 unittest.expect(o.unknownSourcesStatus, unittest.isTrue); |
1065 unittest.expect(o.userAgent, unittest.equals('foo')); | 1065 unittest.expect(o.userAgent, unittest.equals('foo')); |
(...skipping 14 matching lines...) Expand all Loading... |
1080 } | 1080 } |
1081 | 1081 |
1082 checkMobileDeviceAction(api.MobileDeviceAction o) { | 1082 checkMobileDeviceAction(api.MobileDeviceAction o) { |
1083 buildCounterMobileDeviceAction++; | 1083 buildCounterMobileDeviceAction++; |
1084 if (buildCounterMobileDeviceAction < 3) { | 1084 if (buildCounterMobileDeviceAction < 3) { |
1085 unittest.expect(o.action, unittest.equals('foo')); | 1085 unittest.expect(o.action, unittest.equals('foo')); |
1086 } | 1086 } |
1087 buildCounterMobileDeviceAction--; | 1087 buildCounterMobileDeviceAction--; |
1088 } | 1088 } |
1089 | 1089 |
1090 buildUnnamed751() { | 1090 buildUnnamed758() { |
1091 var o = new core.List<api.MobileDevice>(); | 1091 var o = new core.List<api.MobileDevice>(); |
1092 o.add(buildMobileDevice()); | 1092 o.add(buildMobileDevice()); |
1093 o.add(buildMobileDevice()); | 1093 o.add(buildMobileDevice()); |
1094 return o; | 1094 return o; |
1095 } | 1095 } |
1096 | 1096 |
1097 checkUnnamed751(core.List<api.MobileDevice> o) { | 1097 checkUnnamed758(core.List<api.MobileDevice> o) { |
1098 unittest.expect(o, unittest.hasLength(2)); | 1098 unittest.expect(o, unittest.hasLength(2)); |
1099 checkMobileDevice(o[0]); | 1099 checkMobileDevice(o[0]); |
1100 checkMobileDevice(o[1]); | 1100 checkMobileDevice(o[1]); |
1101 } | 1101 } |
1102 | 1102 |
1103 core.int buildCounterMobileDevices = 0; | 1103 core.int buildCounterMobileDevices = 0; |
1104 buildMobileDevices() { | 1104 buildMobileDevices() { |
1105 var o = new api.MobileDevices(); | 1105 var o = new api.MobileDevices(); |
1106 buildCounterMobileDevices++; | 1106 buildCounterMobileDevices++; |
1107 if (buildCounterMobileDevices < 3) { | 1107 if (buildCounterMobileDevices < 3) { |
1108 o.etag = "foo"; | 1108 o.etag = "foo"; |
1109 o.kind = "foo"; | 1109 o.kind = "foo"; |
1110 o.mobiledevices = buildUnnamed751(); | 1110 o.mobiledevices = buildUnnamed758(); |
1111 o.nextPageToken = "foo"; | 1111 o.nextPageToken = "foo"; |
1112 } | 1112 } |
1113 buildCounterMobileDevices--; | 1113 buildCounterMobileDevices--; |
1114 return o; | 1114 return o; |
1115 } | 1115 } |
1116 | 1116 |
1117 checkMobileDevices(api.MobileDevices o) { | 1117 checkMobileDevices(api.MobileDevices o) { |
1118 buildCounterMobileDevices++; | 1118 buildCounterMobileDevices++; |
1119 if (buildCounterMobileDevices < 3) { | 1119 if (buildCounterMobileDevices < 3) { |
1120 unittest.expect(o.etag, unittest.equals('foo')); | 1120 unittest.expect(o.etag, unittest.equals('foo')); |
1121 unittest.expect(o.kind, unittest.equals('foo')); | 1121 unittest.expect(o.kind, unittest.equals('foo')); |
1122 checkUnnamed751(o.mobiledevices); | 1122 checkUnnamed758(o.mobiledevices); |
1123 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1123 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1124 } | 1124 } |
1125 buildCounterMobileDevices--; | 1125 buildCounterMobileDevices--; |
1126 } | 1126 } |
1127 | 1127 |
1128 core.int buildCounterNotification = 0; | 1128 core.int buildCounterNotification = 0; |
1129 buildNotification() { | 1129 buildNotification() { |
1130 var o = new api.Notification(); | 1130 var o = new api.Notification(); |
1131 buildCounterNotification++; | 1131 buildCounterNotification++; |
1132 if (buildCounterNotification < 3) { | 1132 if (buildCounterNotification < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
1151 unittest.expect(o.fromAddress, unittest.equals('foo')); | 1151 unittest.expect(o.fromAddress, unittest.equals('foo')); |
1152 unittest.expect(o.isUnread, unittest.isTrue); | 1152 unittest.expect(o.isUnread, unittest.isTrue); |
1153 unittest.expect(o.kind, unittest.equals('foo')); | 1153 unittest.expect(o.kind, unittest.equals('foo')); |
1154 unittest.expect(o.notificationId, unittest.equals('foo')); | 1154 unittest.expect(o.notificationId, unittest.equals('foo')); |
1155 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 1155 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
1156 unittest.expect(o.subject, unittest.equals('foo')); | 1156 unittest.expect(o.subject, unittest.equals('foo')); |
1157 } | 1157 } |
1158 buildCounterNotification--; | 1158 buildCounterNotification--; |
1159 } | 1159 } |
1160 | 1160 |
1161 buildUnnamed752() { | 1161 buildUnnamed759() { |
1162 var o = new core.List<api.Notification>(); | 1162 var o = new core.List<api.Notification>(); |
1163 o.add(buildNotification()); | 1163 o.add(buildNotification()); |
1164 o.add(buildNotification()); | 1164 o.add(buildNotification()); |
1165 return o; | 1165 return o; |
1166 } | 1166 } |
1167 | 1167 |
1168 checkUnnamed752(core.List<api.Notification> o) { | 1168 checkUnnamed759(core.List<api.Notification> o) { |
1169 unittest.expect(o, unittest.hasLength(2)); | 1169 unittest.expect(o, unittest.hasLength(2)); |
1170 checkNotification(o[0]); | 1170 checkNotification(o[0]); |
1171 checkNotification(o[1]); | 1171 checkNotification(o[1]); |
1172 } | 1172 } |
1173 | 1173 |
1174 core.int buildCounterNotifications = 0; | 1174 core.int buildCounterNotifications = 0; |
1175 buildNotifications() { | 1175 buildNotifications() { |
1176 var o = new api.Notifications(); | 1176 var o = new api.Notifications(); |
1177 buildCounterNotifications++; | 1177 buildCounterNotifications++; |
1178 if (buildCounterNotifications < 3) { | 1178 if (buildCounterNotifications < 3) { |
1179 o.etag = "foo"; | 1179 o.etag = "foo"; |
1180 o.items = buildUnnamed752(); | 1180 o.items = buildUnnamed759(); |
1181 o.kind = "foo"; | 1181 o.kind = "foo"; |
1182 o.nextPageToken = "foo"; | 1182 o.nextPageToken = "foo"; |
1183 o.unreadNotificationsCount = 42; | 1183 o.unreadNotificationsCount = 42; |
1184 } | 1184 } |
1185 buildCounterNotifications--; | 1185 buildCounterNotifications--; |
1186 return o; | 1186 return o; |
1187 } | 1187 } |
1188 | 1188 |
1189 checkNotifications(api.Notifications o) { | 1189 checkNotifications(api.Notifications o) { |
1190 buildCounterNotifications++; | 1190 buildCounterNotifications++; |
1191 if (buildCounterNotifications < 3) { | 1191 if (buildCounterNotifications < 3) { |
1192 unittest.expect(o.etag, unittest.equals('foo')); | 1192 unittest.expect(o.etag, unittest.equals('foo')); |
1193 checkUnnamed752(o.items); | 1193 checkUnnamed759(o.items); |
1194 unittest.expect(o.kind, unittest.equals('foo')); | 1194 unittest.expect(o.kind, unittest.equals('foo')); |
1195 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1195 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1196 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); | 1196 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); |
1197 } | 1197 } |
1198 buildCounterNotifications--; | 1198 buildCounterNotifications--; |
1199 } | 1199 } |
1200 | 1200 |
1201 core.int buildCounterOrgUnit = 0; | 1201 core.int buildCounterOrgUnit = 0; |
1202 buildOrgUnit() { | 1202 buildOrgUnit() { |
1203 var o = new api.OrgUnit(); | 1203 var o = new api.OrgUnit(); |
(...skipping 22 matching lines...) Expand all Loading... |
1226 unittest.expect(o.kind, unittest.equals('foo')); | 1226 unittest.expect(o.kind, unittest.equals('foo')); |
1227 unittest.expect(o.name, unittest.equals('foo')); | 1227 unittest.expect(o.name, unittest.equals('foo')); |
1228 unittest.expect(o.orgUnitId, unittest.equals('foo')); | 1228 unittest.expect(o.orgUnitId, unittest.equals('foo')); |
1229 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 1229 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
1230 unittest.expect(o.parentOrgUnitId, unittest.equals('foo')); | 1230 unittest.expect(o.parentOrgUnitId, unittest.equals('foo')); |
1231 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); | 1231 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); |
1232 } | 1232 } |
1233 buildCounterOrgUnit--; | 1233 buildCounterOrgUnit--; |
1234 } | 1234 } |
1235 | 1235 |
1236 buildUnnamed753() { | 1236 buildUnnamed760() { |
1237 var o = new core.List<api.OrgUnit>(); | 1237 var o = new core.List<api.OrgUnit>(); |
1238 o.add(buildOrgUnit()); | 1238 o.add(buildOrgUnit()); |
1239 o.add(buildOrgUnit()); | 1239 o.add(buildOrgUnit()); |
1240 return o; | 1240 return o; |
1241 } | 1241 } |
1242 | 1242 |
1243 checkUnnamed753(core.List<api.OrgUnit> o) { | 1243 checkUnnamed760(core.List<api.OrgUnit> o) { |
1244 unittest.expect(o, unittest.hasLength(2)); | 1244 unittest.expect(o, unittest.hasLength(2)); |
1245 checkOrgUnit(o[0]); | 1245 checkOrgUnit(o[0]); |
1246 checkOrgUnit(o[1]); | 1246 checkOrgUnit(o[1]); |
1247 } | 1247 } |
1248 | 1248 |
1249 core.int buildCounterOrgUnits = 0; | 1249 core.int buildCounterOrgUnits = 0; |
1250 buildOrgUnits() { | 1250 buildOrgUnits() { |
1251 var o = new api.OrgUnits(); | 1251 var o = new api.OrgUnits(); |
1252 buildCounterOrgUnits++; | 1252 buildCounterOrgUnits++; |
1253 if (buildCounterOrgUnits < 3) { | 1253 if (buildCounterOrgUnits < 3) { |
1254 o.etag = "foo"; | 1254 o.etag = "foo"; |
1255 o.kind = "foo"; | 1255 o.kind = "foo"; |
1256 o.organizationUnits = buildUnnamed753(); | 1256 o.organizationUnits = buildUnnamed760(); |
1257 } | 1257 } |
1258 buildCounterOrgUnits--; | 1258 buildCounterOrgUnits--; |
1259 return o; | 1259 return o; |
1260 } | 1260 } |
1261 | 1261 |
1262 checkOrgUnits(api.OrgUnits o) { | 1262 checkOrgUnits(api.OrgUnits o) { |
1263 buildCounterOrgUnits++; | 1263 buildCounterOrgUnits++; |
1264 if (buildCounterOrgUnits < 3) { | 1264 if (buildCounterOrgUnits < 3) { |
1265 unittest.expect(o.etag, unittest.equals('foo')); | 1265 unittest.expect(o.etag, unittest.equals('foo')); |
1266 unittest.expect(o.kind, unittest.equals('foo')); | 1266 unittest.expect(o.kind, unittest.equals('foo')); |
1267 checkUnnamed753(o.organizationUnits); | 1267 checkUnnamed760(o.organizationUnits); |
1268 } | 1268 } |
1269 buildCounterOrgUnits--; | 1269 buildCounterOrgUnits--; |
1270 } | 1270 } |
1271 | 1271 |
1272 buildUnnamed754() { | 1272 buildUnnamed761() { |
1273 var o = new core.List<api.Privilege>(); | 1273 var o = new core.List<api.Privilege>(); |
1274 o.add(buildPrivilege()); | 1274 o.add(buildPrivilege()); |
1275 o.add(buildPrivilege()); | 1275 o.add(buildPrivilege()); |
1276 return o; | 1276 return o; |
1277 } | 1277 } |
1278 | 1278 |
1279 checkUnnamed754(core.List<api.Privilege> o) { | 1279 checkUnnamed761(core.List<api.Privilege> o) { |
1280 unittest.expect(o, unittest.hasLength(2)); | 1280 unittest.expect(o, unittest.hasLength(2)); |
1281 checkPrivilege(o[0]); | 1281 checkPrivilege(o[0]); |
1282 checkPrivilege(o[1]); | 1282 checkPrivilege(o[1]); |
1283 } | 1283 } |
1284 | 1284 |
1285 core.int buildCounterPrivilege = 0; | 1285 core.int buildCounterPrivilege = 0; |
1286 buildPrivilege() { | 1286 buildPrivilege() { |
1287 var o = new api.Privilege(); | 1287 var o = new api.Privilege(); |
1288 buildCounterPrivilege++; | 1288 buildCounterPrivilege++; |
1289 if (buildCounterPrivilege < 3) { | 1289 if (buildCounterPrivilege < 3) { |
1290 o.childPrivileges = buildUnnamed754(); | 1290 o.childPrivileges = buildUnnamed761(); |
1291 o.etag = "foo"; | 1291 o.etag = "foo"; |
1292 o.isOuScopable = true; | 1292 o.isOuScopable = true; |
1293 o.kind = "foo"; | 1293 o.kind = "foo"; |
1294 o.privilegeName = "foo"; | 1294 o.privilegeName = "foo"; |
1295 o.serviceId = "foo"; | 1295 o.serviceId = "foo"; |
1296 o.serviceName = "foo"; | 1296 o.serviceName = "foo"; |
1297 } | 1297 } |
1298 buildCounterPrivilege--; | 1298 buildCounterPrivilege--; |
1299 return o; | 1299 return o; |
1300 } | 1300 } |
1301 | 1301 |
1302 checkPrivilege(api.Privilege o) { | 1302 checkPrivilege(api.Privilege o) { |
1303 buildCounterPrivilege++; | 1303 buildCounterPrivilege++; |
1304 if (buildCounterPrivilege < 3) { | 1304 if (buildCounterPrivilege < 3) { |
1305 checkUnnamed754(o.childPrivileges); | 1305 checkUnnamed761(o.childPrivileges); |
1306 unittest.expect(o.etag, unittest.equals('foo')); | 1306 unittest.expect(o.etag, unittest.equals('foo')); |
1307 unittest.expect(o.isOuScopable, unittest.isTrue); | 1307 unittest.expect(o.isOuScopable, unittest.isTrue); |
1308 unittest.expect(o.kind, unittest.equals('foo')); | 1308 unittest.expect(o.kind, unittest.equals('foo')); |
1309 unittest.expect(o.privilegeName, unittest.equals('foo')); | 1309 unittest.expect(o.privilegeName, unittest.equals('foo')); |
1310 unittest.expect(o.serviceId, unittest.equals('foo')); | 1310 unittest.expect(o.serviceId, unittest.equals('foo')); |
1311 unittest.expect(o.serviceName, unittest.equals('foo')); | 1311 unittest.expect(o.serviceName, unittest.equals('foo')); |
1312 } | 1312 } |
1313 buildCounterPrivilege--; | 1313 buildCounterPrivilege--; |
1314 } | 1314 } |
1315 | 1315 |
1316 buildUnnamed755() { | 1316 buildUnnamed762() { |
1317 var o = new core.List<api.Privilege>(); | 1317 var o = new core.List<api.Privilege>(); |
1318 o.add(buildPrivilege()); | 1318 o.add(buildPrivilege()); |
1319 o.add(buildPrivilege()); | 1319 o.add(buildPrivilege()); |
1320 return o; | 1320 return o; |
1321 } | 1321 } |
1322 | 1322 |
1323 checkUnnamed755(core.List<api.Privilege> o) { | 1323 checkUnnamed762(core.List<api.Privilege> o) { |
1324 unittest.expect(o, unittest.hasLength(2)); | 1324 unittest.expect(o, unittest.hasLength(2)); |
1325 checkPrivilege(o[0]); | 1325 checkPrivilege(o[0]); |
1326 checkPrivilege(o[1]); | 1326 checkPrivilege(o[1]); |
1327 } | 1327 } |
1328 | 1328 |
1329 core.int buildCounterPrivileges = 0; | 1329 core.int buildCounterPrivileges = 0; |
1330 buildPrivileges() { | 1330 buildPrivileges() { |
1331 var o = new api.Privileges(); | 1331 var o = new api.Privileges(); |
1332 buildCounterPrivileges++; | 1332 buildCounterPrivileges++; |
1333 if (buildCounterPrivileges < 3) { | 1333 if (buildCounterPrivileges < 3) { |
1334 o.etag = "foo"; | 1334 o.etag = "foo"; |
1335 o.items = buildUnnamed755(); | 1335 o.items = buildUnnamed762(); |
1336 o.kind = "foo"; | 1336 o.kind = "foo"; |
1337 } | 1337 } |
1338 buildCounterPrivileges--; | 1338 buildCounterPrivileges--; |
1339 return o; | 1339 return o; |
1340 } | 1340 } |
1341 | 1341 |
1342 checkPrivileges(api.Privileges o) { | 1342 checkPrivileges(api.Privileges o) { |
1343 buildCounterPrivileges++; | 1343 buildCounterPrivileges++; |
1344 if (buildCounterPrivileges < 3) { | 1344 if (buildCounterPrivileges < 3) { |
1345 unittest.expect(o.etag, unittest.equals('foo')); | 1345 unittest.expect(o.etag, unittest.equals('foo')); |
1346 checkUnnamed755(o.items); | 1346 checkUnnamed762(o.items); |
1347 unittest.expect(o.kind, unittest.equals('foo')); | 1347 unittest.expect(o.kind, unittest.equals('foo')); |
1348 } | 1348 } |
1349 buildCounterPrivileges--; | 1349 buildCounterPrivileges--; |
1350 } | 1350 } |
1351 | 1351 |
1352 core.int buildCounterRoleRolePrivileges = 0; | 1352 core.int buildCounterRoleRolePrivileges = 0; |
1353 buildRoleRolePrivileges() { | 1353 buildRoleRolePrivileges() { |
1354 var o = new api.RoleRolePrivileges(); | 1354 var o = new api.RoleRolePrivileges(); |
1355 buildCounterRoleRolePrivileges++; | 1355 buildCounterRoleRolePrivileges++; |
1356 if (buildCounterRoleRolePrivileges < 3) { | 1356 if (buildCounterRoleRolePrivileges < 3) { |
1357 o.privilegeName = "foo"; | 1357 o.privilegeName = "foo"; |
1358 o.serviceId = "foo"; | 1358 o.serviceId = "foo"; |
1359 } | 1359 } |
1360 buildCounterRoleRolePrivileges--; | 1360 buildCounterRoleRolePrivileges--; |
1361 return o; | 1361 return o; |
1362 } | 1362 } |
1363 | 1363 |
1364 checkRoleRolePrivileges(api.RoleRolePrivileges o) { | 1364 checkRoleRolePrivileges(api.RoleRolePrivileges o) { |
1365 buildCounterRoleRolePrivileges++; | 1365 buildCounterRoleRolePrivileges++; |
1366 if (buildCounterRoleRolePrivileges < 3) { | 1366 if (buildCounterRoleRolePrivileges < 3) { |
1367 unittest.expect(o.privilegeName, unittest.equals('foo')); | 1367 unittest.expect(o.privilegeName, unittest.equals('foo')); |
1368 unittest.expect(o.serviceId, unittest.equals('foo')); | 1368 unittest.expect(o.serviceId, unittest.equals('foo')); |
1369 } | 1369 } |
1370 buildCounterRoleRolePrivileges--; | 1370 buildCounterRoleRolePrivileges--; |
1371 } | 1371 } |
1372 | 1372 |
1373 buildUnnamed756() { | 1373 buildUnnamed763() { |
1374 var o = new core.List<api.RoleRolePrivileges>(); | 1374 var o = new core.List<api.RoleRolePrivileges>(); |
1375 o.add(buildRoleRolePrivileges()); | 1375 o.add(buildRoleRolePrivileges()); |
1376 o.add(buildRoleRolePrivileges()); | 1376 o.add(buildRoleRolePrivileges()); |
1377 return o; | 1377 return o; |
1378 } | 1378 } |
1379 | 1379 |
1380 checkUnnamed756(core.List<api.RoleRolePrivileges> o) { | 1380 checkUnnamed763(core.List<api.RoleRolePrivileges> o) { |
1381 unittest.expect(o, unittest.hasLength(2)); | 1381 unittest.expect(o, unittest.hasLength(2)); |
1382 checkRoleRolePrivileges(o[0]); | 1382 checkRoleRolePrivileges(o[0]); |
1383 checkRoleRolePrivileges(o[1]); | 1383 checkRoleRolePrivileges(o[1]); |
1384 } | 1384 } |
1385 | 1385 |
1386 core.int buildCounterRole = 0; | 1386 core.int buildCounterRole = 0; |
1387 buildRole() { | 1387 buildRole() { |
1388 var o = new api.Role(); | 1388 var o = new api.Role(); |
1389 buildCounterRole++; | 1389 buildCounterRole++; |
1390 if (buildCounterRole < 3) { | 1390 if (buildCounterRole < 3) { |
1391 o.etag = "foo"; | 1391 o.etag = "foo"; |
1392 o.isSuperAdminRole = true; | 1392 o.isSuperAdminRole = true; |
1393 o.isSystemRole = true; | 1393 o.isSystemRole = true; |
1394 o.kind = "foo"; | 1394 o.kind = "foo"; |
1395 o.roleDescription = "foo"; | 1395 o.roleDescription = "foo"; |
1396 o.roleId = "foo"; | 1396 o.roleId = "foo"; |
1397 o.roleName = "foo"; | 1397 o.roleName = "foo"; |
1398 o.rolePrivileges = buildUnnamed756(); | 1398 o.rolePrivileges = buildUnnamed763(); |
1399 } | 1399 } |
1400 buildCounterRole--; | 1400 buildCounterRole--; |
1401 return o; | 1401 return o; |
1402 } | 1402 } |
1403 | 1403 |
1404 checkRole(api.Role o) { | 1404 checkRole(api.Role o) { |
1405 buildCounterRole++; | 1405 buildCounterRole++; |
1406 if (buildCounterRole < 3) { | 1406 if (buildCounterRole < 3) { |
1407 unittest.expect(o.etag, unittest.equals('foo')); | 1407 unittest.expect(o.etag, unittest.equals('foo')); |
1408 unittest.expect(o.isSuperAdminRole, unittest.isTrue); | 1408 unittest.expect(o.isSuperAdminRole, unittest.isTrue); |
1409 unittest.expect(o.isSystemRole, unittest.isTrue); | 1409 unittest.expect(o.isSystemRole, unittest.isTrue); |
1410 unittest.expect(o.kind, unittest.equals('foo')); | 1410 unittest.expect(o.kind, unittest.equals('foo')); |
1411 unittest.expect(o.roleDescription, unittest.equals('foo')); | 1411 unittest.expect(o.roleDescription, unittest.equals('foo')); |
1412 unittest.expect(o.roleId, unittest.equals('foo')); | 1412 unittest.expect(o.roleId, unittest.equals('foo')); |
1413 unittest.expect(o.roleName, unittest.equals('foo')); | 1413 unittest.expect(o.roleName, unittest.equals('foo')); |
1414 checkUnnamed756(o.rolePrivileges); | 1414 checkUnnamed763(o.rolePrivileges); |
1415 } | 1415 } |
1416 buildCounterRole--; | 1416 buildCounterRole--; |
1417 } | 1417 } |
1418 | 1418 |
1419 core.int buildCounterRoleAssignment = 0; | 1419 core.int buildCounterRoleAssignment = 0; |
1420 buildRoleAssignment() { | 1420 buildRoleAssignment() { |
1421 var o = new api.RoleAssignment(); | 1421 var o = new api.RoleAssignment(); |
1422 buildCounterRoleAssignment++; | 1422 buildCounterRoleAssignment++; |
1423 if (buildCounterRoleAssignment < 3) { | 1423 if (buildCounterRoleAssignment < 3) { |
1424 o.assignedTo = "foo"; | 1424 o.assignedTo = "foo"; |
(...skipping 15 matching lines...) Expand all Loading... |
1440 unittest.expect(o.etag, unittest.equals('foo')); | 1440 unittest.expect(o.etag, unittest.equals('foo')); |
1441 unittest.expect(o.kind, unittest.equals('foo')); | 1441 unittest.expect(o.kind, unittest.equals('foo')); |
1442 unittest.expect(o.orgUnitId, unittest.equals('foo')); | 1442 unittest.expect(o.orgUnitId, unittest.equals('foo')); |
1443 unittest.expect(o.roleAssignmentId, unittest.equals('foo')); | 1443 unittest.expect(o.roleAssignmentId, unittest.equals('foo')); |
1444 unittest.expect(o.roleId, unittest.equals('foo')); | 1444 unittest.expect(o.roleId, unittest.equals('foo')); |
1445 unittest.expect(o.scopeType, unittest.equals('foo')); | 1445 unittest.expect(o.scopeType, unittest.equals('foo')); |
1446 } | 1446 } |
1447 buildCounterRoleAssignment--; | 1447 buildCounterRoleAssignment--; |
1448 } | 1448 } |
1449 | 1449 |
1450 buildUnnamed757() { | 1450 buildUnnamed764() { |
1451 var o = new core.List<api.RoleAssignment>(); | 1451 var o = new core.List<api.RoleAssignment>(); |
1452 o.add(buildRoleAssignment()); | 1452 o.add(buildRoleAssignment()); |
1453 o.add(buildRoleAssignment()); | 1453 o.add(buildRoleAssignment()); |
1454 return o; | 1454 return o; |
1455 } | 1455 } |
1456 | 1456 |
1457 checkUnnamed757(core.List<api.RoleAssignment> o) { | 1457 checkUnnamed764(core.List<api.RoleAssignment> o) { |
1458 unittest.expect(o, unittest.hasLength(2)); | 1458 unittest.expect(o, unittest.hasLength(2)); |
1459 checkRoleAssignment(o[0]); | 1459 checkRoleAssignment(o[0]); |
1460 checkRoleAssignment(o[1]); | 1460 checkRoleAssignment(o[1]); |
1461 } | 1461 } |
1462 | 1462 |
1463 core.int buildCounterRoleAssignments = 0; | 1463 core.int buildCounterRoleAssignments = 0; |
1464 buildRoleAssignments() { | 1464 buildRoleAssignments() { |
1465 var o = new api.RoleAssignments(); | 1465 var o = new api.RoleAssignments(); |
1466 buildCounterRoleAssignments++; | 1466 buildCounterRoleAssignments++; |
1467 if (buildCounterRoleAssignments < 3) { | 1467 if (buildCounterRoleAssignments < 3) { |
1468 o.etag = "foo"; | 1468 o.etag = "foo"; |
1469 o.items = buildUnnamed757(); | 1469 o.items = buildUnnamed764(); |
1470 o.kind = "foo"; | 1470 o.kind = "foo"; |
1471 o.nextPageToken = "foo"; | 1471 o.nextPageToken = "foo"; |
1472 } | 1472 } |
1473 buildCounterRoleAssignments--; | 1473 buildCounterRoleAssignments--; |
1474 return o; | 1474 return o; |
1475 } | 1475 } |
1476 | 1476 |
1477 checkRoleAssignments(api.RoleAssignments o) { | 1477 checkRoleAssignments(api.RoleAssignments o) { |
1478 buildCounterRoleAssignments++; | 1478 buildCounterRoleAssignments++; |
1479 if (buildCounterRoleAssignments < 3) { | 1479 if (buildCounterRoleAssignments < 3) { |
1480 unittest.expect(o.etag, unittest.equals('foo')); | 1480 unittest.expect(o.etag, unittest.equals('foo')); |
1481 checkUnnamed757(o.items); | 1481 checkUnnamed764(o.items); |
1482 unittest.expect(o.kind, unittest.equals('foo')); | 1482 unittest.expect(o.kind, unittest.equals('foo')); |
1483 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1483 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1484 } | 1484 } |
1485 buildCounterRoleAssignments--; | 1485 buildCounterRoleAssignments--; |
1486 } | 1486 } |
1487 | 1487 |
1488 buildUnnamed758() { | 1488 buildUnnamed765() { |
1489 var o = new core.List<api.Role>(); | 1489 var o = new core.List<api.Role>(); |
1490 o.add(buildRole()); | 1490 o.add(buildRole()); |
1491 o.add(buildRole()); | 1491 o.add(buildRole()); |
1492 return o; | 1492 return o; |
1493 } | 1493 } |
1494 | 1494 |
1495 checkUnnamed758(core.List<api.Role> o) { | 1495 checkUnnamed765(core.List<api.Role> o) { |
1496 unittest.expect(o, unittest.hasLength(2)); | 1496 unittest.expect(o, unittest.hasLength(2)); |
1497 checkRole(o[0]); | 1497 checkRole(o[0]); |
1498 checkRole(o[1]); | 1498 checkRole(o[1]); |
1499 } | 1499 } |
1500 | 1500 |
1501 core.int buildCounterRoles = 0; | 1501 core.int buildCounterRoles = 0; |
1502 buildRoles() { | 1502 buildRoles() { |
1503 var o = new api.Roles(); | 1503 var o = new api.Roles(); |
1504 buildCounterRoles++; | 1504 buildCounterRoles++; |
1505 if (buildCounterRoles < 3) { | 1505 if (buildCounterRoles < 3) { |
1506 o.etag = "foo"; | 1506 o.etag = "foo"; |
1507 o.items = buildUnnamed758(); | 1507 o.items = buildUnnamed765(); |
1508 o.kind = "foo"; | 1508 o.kind = "foo"; |
1509 o.nextPageToken = "foo"; | 1509 o.nextPageToken = "foo"; |
1510 } | 1510 } |
1511 buildCounterRoles--; | 1511 buildCounterRoles--; |
1512 return o; | 1512 return o; |
1513 } | 1513 } |
1514 | 1514 |
1515 checkRoles(api.Roles o) { | 1515 checkRoles(api.Roles o) { |
1516 buildCounterRoles++; | 1516 buildCounterRoles++; |
1517 if (buildCounterRoles < 3) { | 1517 if (buildCounterRoles < 3) { |
1518 unittest.expect(o.etag, unittest.equals('foo')); | 1518 unittest.expect(o.etag, unittest.equals('foo')); |
1519 checkUnnamed758(o.items); | 1519 checkUnnamed765(o.items); |
1520 unittest.expect(o.kind, unittest.equals('foo')); | 1520 unittest.expect(o.kind, unittest.equals('foo')); |
1521 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1521 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1522 } | 1522 } |
1523 buildCounterRoles--; | 1523 buildCounterRoles--; |
1524 } | 1524 } |
1525 | 1525 |
1526 buildUnnamed759() { | 1526 buildUnnamed766() { |
1527 var o = new core.List<api.SchemaFieldSpec>(); | 1527 var o = new core.List<api.SchemaFieldSpec>(); |
1528 o.add(buildSchemaFieldSpec()); | 1528 o.add(buildSchemaFieldSpec()); |
1529 o.add(buildSchemaFieldSpec()); | 1529 o.add(buildSchemaFieldSpec()); |
1530 return o; | 1530 return o; |
1531 } | 1531 } |
1532 | 1532 |
1533 checkUnnamed759(core.List<api.SchemaFieldSpec> o) { | 1533 checkUnnamed766(core.List<api.SchemaFieldSpec> o) { |
1534 unittest.expect(o, unittest.hasLength(2)); | 1534 unittest.expect(o, unittest.hasLength(2)); |
1535 checkSchemaFieldSpec(o[0]); | 1535 checkSchemaFieldSpec(o[0]); |
1536 checkSchemaFieldSpec(o[1]); | 1536 checkSchemaFieldSpec(o[1]); |
1537 } | 1537 } |
1538 | 1538 |
1539 core.int buildCounterSchema = 0; | 1539 core.int buildCounterSchema = 0; |
1540 buildSchema() { | 1540 buildSchema() { |
1541 var o = new api.Schema(); | 1541 var o = new api.Schema(); |
1542 buildCounterSchema++; | 1542 buildCounterSchema++; |
1543 if (buildCounterSchema < 3) { | 1543 if (buildCounterSchema < 3) { |
1544 o.etag = "foo"; | 1544 o.etag = "foo"; |
1545 o.fields = buildUnnamed759(); | 1545 o.fields = buildUnnamed766(); |
1546 o.kind = "foo"; | 1546 o.kind = "foo"; |
1547 o.schemaId = "foo"; | 1547 o.schemaId = "foo"; |
1548 o.schemaName = "foo"; | 1548 o.schemaName = "foo"; |
1549 } | 1549 } |
1550 buildCounterSchema--; | 1550 buildCounterSchema--; |
1551 return o; | 1551 return o; |
1552 } | 1552 } |
1553 | 1553 |
1554 checkSchema(api.Schema o) { | 1554 checkSchema(api.Schema o) { |
1555 buildCounterSchema++; | 1555 buildCounterSchema++; |
1556 if (buildCounterSchema < 3) { | 1556 if (buildCounterSchema < 3) { |
1557 unittest.expect(o.etag, unittest.equals('foo')); | 1557 unittest.expect(o.etag, unittest.equals('foo')); |
1558 checkUnnamed759(o.fields); | 1558 checkUnnamed766(o.fields); |
1559 unittest.expect(o.kind, unittest.equals('foo')); | 1559 unittest.expect(o.kind, unittest.equals('foo')); |
1560 unittest.expect(o.schemaId, unittest.equals('foo')); | 1560 unittest.expect(o.schemaId, unittest.equals('foo')); |
1561 unittest.expect(o.schemaName, unittest.equals('foo')); | 1561 unittest.expect(o.schemaName, unittest.equals('foo')); |
1562 } | 1562 } |
1563 buildCounterSchema--; | 1563 buildCounterSchema--; |
1564 } | 1564 } |
1565 | 1565 |
1566 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; | 1566 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; |
1567 buildSchemaFieldSpecNumericIndexingSpec() { | 1567 buildSchemaFieldSpecNumericIndexingSpec() { |
1568 var o = new api.SchemaFieldSpecNumericIndexingSpec(); | 1568 var o = new api.SchemaFieldSpecNumericIndexingSpec(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 unittest.expect(o.fieldType, unittest.equals('foo')); | 1612 unittest.expect(o.fieldType, unittest.equals('foo')); |
1613 unittest.expect(o.indexed, unittest.isTrue); | 1613 unittest.expect(o.indexed, unittest.isTrue); |
1614 unittest.expect(o.kind, unittest.equals('foo')); | 1614 unittest.expect(o.kind, unittest.equals('foo')); |
1615 unittest.expect(o.multiValued, unittest.isTrue); | 1615 unittest.expect(o.multiValued, unittest.isTrue); |
1616 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); | 1616 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); |
1617 unittest.expect(o.readAccessType, unittest.equals('foo')); | 1617 unittest.expect(o.readAccessType, unittest.equals('foo')); |
1618 } | 1618 } |
1619 buildCounterSchemaFieldSpec--; | 1619 buildCounterSchemaFieldSpec--; |
1620 } | 1620 } |
1621 | 1621 |
1622 buildUnnamed760() { | 1622 buildUnnamed767() { |
1623 var o = new core.List<api.Schema>(); | 1623 var o = new core.List<api.Schema>(); |
1624 o.add(buildSchema()); | 1624 o.add(buildSchema()); |
1625 o.add(buildSchema()); | 1625 o.add(buildSchema()); |
1626 return o; | 1626 return o; |
1627 } | 1627 } |
1628 | 1628 |
1629 checkUnnamed760(core.List<api.Schema> o) { | 1629 checkUnnamed767(core.List<api.Schema> o) { |
1630 unittest.expect(o, unittest.hasLength(2)); | 1630 unittest.expect(o, unittest.hasLength(2)); |
1631 checkSchema(o[0]); | 1631 checkSchema(o[0]); |
1632 checkSchema(o[1]); | 1632 checkSchema(o[1]); |
1633 } | 1633 } |
1634 | 1634 |
1635 core.int buildCounterSchemas = 0; | 1635 core.int buildCounterSchemas = 0; |
1636 buildSchemas() { | 1636 buildSchemas() { |
1637 var o = new api.Schemas(); | 1637 var o = new api.Schemas(); |
1638 buildCounterSchemas++; | 1638 buildCounterSchemas++; |
1639 if (buildCounterSchemas < 3) { | 1639 if (buildCounterSchemas < 3) { |
1640 o.etag = "foo"; | 1640 o.etag = "foo"; |
1641 o.kind = "foo"; | 1641 o.kind = "foo"; |
1642 o.schemas = buildUnnamed760(); | 1642 o.schemas = buildUnnamed767(); |
1643 } | 1643 } |
1644 buildCounterSchemas--; | 1644 buildCounterSchemas--; |
1645 return o; | 1645 return o; |
1646 } | 1646 } |
1647 | 1647 |
1648 checkSchemas(api.Schemas o) { | 1648 checkSchemas(api.Schemas o) { |
1649 buildCounterSchemas++; | 1649 buildCounterSchemas++; |
1650 if (buildCounterSchemas < 3) { | 1650 if (buildCounterSchemas < 3) { |
1651 unittest.expect(o.etag, unittest.equals('foo')); | 1651 unittest.expect(o.etag, unittest.equals('foo')); |
1652 unittest.expect(o.kind, unittest.equals('foo')); | 1652 unittest.expect(o.kind, unittest.equals('foo')); |
1653 checkUnnamed760(o.schemas); | 1653 checkUnnamed767(o.schemas); |
1654 } | 1654 } |
1655 buildCounterSchemas--; | 1655 buildCounterSchemas--; |
1656 } | 1656 } |
1657 | 1657 |
1658 buildUnnamed761() { | 1658 buildUnnamed768() { |
1659 var o = new core.List<core.String>(); | 1659 var o = new core.List<core.String>(); |
1660 o.add("foo"); | 1660 o.add("foo"); |
1661 o.add("foo"); | 1661 o.add("foo"); |
1662 return o; | 1662 return o; |
1663 } | 1663 } |
1664 | 1664 |
1665 checkUnnamed761(core.List<core.String> o) { | 1665 checkUnnamed768(core.List<core.String> o) { |
1666 unittest.expect(o, unittest.hasLength(2)); | 1666 unittest.expect(o, unittest.hasLength(2)); |
1667 unittest.expect(o[0], unittest.equals('foo')); | 1667 unittest.expect(o[0], unittest.equals('foo')); |
1668 unittest.expect(o[1], unittest.equals('foo')); | 1668 unittest.expect(o[1], unittest.equals('foo')); |
1669 } | 1669 } |
1670 | 1670 |
1671 core.int buildCounterToken = 0; | 1671 core.int buildCounterToken = 0; |
1672 buildToken() { | 1672 buildToken() { |
1673 var o = new api.Token(); | 1673 var o = new api.Token(); |
1674 buildCounterToken++; | 1674 buildCounterToken++; |
1675 if (buildCounterToken < 3) { | 1675 if (buildCounterToken < 3) { |
1676 o.anonymous = true; | 1676 o.anonymous = true; |
1677 o.clientId = "foo"; | 1677 o.clientId = "foo"; |
1678 o.displayText = "foo"; | 1678 o.displayText = "foo"; |
1679 o.etag = "foo"; | 1679 o.etag = "foo"; |
1680 o.kind = "foo"; | 1680 o.kind = "foo"; |
1681 o.nativeApp = true; | 1681 o.nativeApp = true; |
1682 o.scopes = buildUnnamed761(); | 1682 o.scopes = buildUnnamed768(); |
1683 o.userKey = "foo"; | 1683 o.userKey = "foo"; |
1684 } | 1684 } |
1685 buildCounterToken--; | 1685 buildCounterToken--; |
1686 return o; | 1686 return o; |
1687 } | 1687 } |
1688 | 1688 |
1689 checkToken(api.Token o) { | 1689 checkToken(api.Token o) { |
1690 buildCounterToken++; | 1690 buildCounterToken++; |
1691 if (buildCounterToken < 3) { | 1691 if (buildCounterToken < 3) { |
1692 unittest.expect(o.anonymous, unittest.isTrue); | 1692 unittest.expect(o.anonymous, unittest.isTrue); |
1693 unittest.expect(o.clientId, unittest.equals('foo')); | 1693 unittest.expect(o.clientId, unittest.equals('foo')); |
1694 unittest.expect(o.displayText, unittest.equals('foo')); | 1694 unittest.expect(o.displayText, unittest.equals('foo')); |
1695 unittest.expect(o.etag, unittest.equals('foo')); | 1695 unittest.expect(o.etag, unittest.equals('foo')); |
1696 unittest.expect(o.kind, unittest.equals('foo')); | 1696 unittest.expect(o.kind, unittest.equals('foo')); |
1697 unittest.expect(o.nativeApp, unittest.isTrue); | 1697 unittest.expect(o.nativeApp, unittest.isTrue); |
1698 checkUnnamed761(o.scopes); | 1698 checkUnnamed768(o.scopes); |
1699 unittest.expect(o.userKey, unittest.equals('foo')); | 1699 unittest.expect(o.userKey, unittest.equals('foo')); |
1700 } | 1700 } |
1701 buildCounterToken--; | 1701 buildCounterToken--; |
1702 } | 1702 } |
1703 | 1703 |
1704 buildUnnamed762() { | 1704 buildUnnamed769() { |
1705 var o = new core.List<api.Token>(); | 1705 var o = new core.List<api.Token>(); |
1706 o.add(buildToken()); | 1706 o.add(buildToken()); |
1707 o.add(buildToken()); | 1707 o.add(buildToken()); |
1708 return o; | 1708 return o; |
1709 } | 1709 } |
1710 | 1710 |
1711 checkUnnamed762(core.List<api.Token> o) { | 1711 checkUnnamed769(core.List<api.Token> o) { |
1712 unittest.expect(o, unittest.hasLength(2)); | 1712 unittest.expect(o, unittest.hasLength(2)); |
1713 checkToken(o[0]); | 1713 checkToken(o[0]); |
1714 checkToken(o[1]); | 1714 checkToken(o[1]); |
1715 } | 1715 } |
1716 | 1716 |
1717 core.int buildCounterTokens = 0; | 1717 core.int buildCounterTokens = 0; |
1718 buildTokens() { | 1718 buildTokens() { |
1719 var o = new api.Tokens(); | 1719 var o = new api.Tokens(); |
1720 buildCounterTokens++; | 1720 buildCounterTokens++; |
1721 if (buildCounterTokens < 3) { | 1721 if (buildCounterTokens < 3) { |
1722 o.etag = "foo"; | 1722 o.etag = "foo"; |
1723 o.items = buildUnnamed762(); | 1723 o.items = buildUnnamed769(); |
1724 o.kind = "foo"; | 1724 o.kind = "foo"; |
1725 } | 1725 } |
1726 buildCounterTokens--; | 1726 buildCounterTokens--; |
1727 return o; | 1727 return o; |
1728 } | 1728 } |
1729 | 1729 |
1730 checkTokens(api.Tokens o) { | 1730 checkTokens(api.Tokens o) { |
1731 buildCounterTokens++; | 1731 buildCounterTokens++; |
1732 if (buildCounterTokens < 3) { | 1732 if (buildCounterTokens < 3) { |
1733 unittest.expect(o.etag, unittest.equals('foo')); | 1733 unittest.expect(o.etag, unittest.equals('foo')); |
1734 checkUnnamed762(o.items); | 1734 checkUnnamed769(o.items); |
1735 unittest.expect(o.kind, unittest.equals('foo')); | 1735 unittest.expect(o.kind, unittest.equals('foo')); |
1736 } | 1736 } |
1737 buildCounterTokens--; | 1737 buildCounterTokens--; |
1738 } | 1738 } |
1739 | 1739 |
1740 buildUnnamed763() { | 1740 buildUnnamed770() { |
1741 var o = new core.List<core.String>(); | 1741 var o = new core.List<core.String>(); |
1742 o.add("foo"); | 1742 o.add("foo"); |
1743 o.add("foo"); | 1743 o.add("foo"); |
1744 return o; | 1744 return o; |
1745 } | 1745 } |
1746 | 1746 |
1747 checkUnnamed763(core.List<core.String> o) { | 1747 checkUnnamed770(core.List<core.String> o) { |
1748 unittest.expect(o, unittest.hasLength(2)); | 1748 unittest.expect(o, unittest.hasLength(2)); |
1749 unittest.expect(o[0], unittest.equals('foo')); | 1749 unittest.expect(o[0], unittest.equals('foo')); |
1750 unittest.expect(o[1], unittest.equals('foo')); | 1750 unittest.expect(o[1], unittest.equals('foo')); |
1751 } | 1751 } |
1752 | 1752 |
1753 buildUnnamed764() { | 1753 buildUnnamed771() { |
1754 var o = new core.Map<core.String, api.UserCustomProperties>(); | 1754 var o = new core.Map<core.String, api.UserCustomProperties>(); |
1755 o["x"] = buildUserCustomProperties(); | 1755 o["x"] = buildUserCustomProperties(); |
1756 o["y"] = buildUserCustomProperties(); | 1756 o["y"] = buildUserCustomProperties(); |
1757 return o; | 1757 return o; |
1758 } | 1758 } |
1759 | 1759 |
1760 checkUnnamed764(core.Map<core.String, api.UserCustomProperties> o) { | 1760 checkUnnamed771(core.Map<core.String, api.UserCustomProperties> o) { |
1761 unittest.expect(o, unittest.hasLength(2)); | 1761 unittest.expect(o, unittest.hasLength(2)); |
1762 checkUserCustomProperties(o["x"]); | 1762 checkUserCustomProperties(o["x"]); |
1763 checkUserCustomProperties(o["y"]); | 1763 checkUserCustomProperties(o["y"]); |
1764 } | 1764 } |
1765 | 1765 |
1766 buildUnnamed765() { | 1766 buildUnnamed772() { |
1767 var o = new core.List<core.String>(); | 1767 var o = new core.List<core.String>(); |
1768 o.add("foo"); | 1768 o.add("foo"); |
1769 o.add("foo"); | 1769 o.add("foo"); |
1770 return o; | 1770 return o; |
1771 } | 1771 } |
1772 | 1772 |
1773 checkUnnamed765(core.List<core.String> o) { | 1773 checkUnnamed772(core.List<core.String> o) { |
1774 unittest.expect(o, unittest.hasLength(2)); | 1774 unittest.expect(o, unittest.hasLength(2)); |
1775 unittest.expect(o[0], unittest.equals('foo')); | 1775 unittest.expect(o[0], unittest.equals('foo')); |
1776 unittest.expect(o[1], unittest.equals('foo')); | 1776 unittest.expect(o[1], unittest.equals('foo')); |
1777 } | 1777 } |
1778 | 1778 |
1779 core.int buildCounterUser = 0; | 1779 core.int buildCounterUser = 0; |
1780 buildUser() { | 1780 buildUser() { |
1781 var o = new api.User(); | 1781 var o = new api.User(); |
1782 buildCounterUser++; | 1782 buildCounterUser++; |
1783 if (buildCounterUser < 3) { | 1783 if (buildCounterUser < 3) { |
1784 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1784 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1785 o.agreedToTerms = true; | 1785 o.agreedToTerms = true; |
1786 o.aliases = buildUnnamed763(); | 1786 o.aliases = buildUnnamed770(); |
1787 o.changePasswordAtNextLogin = true; | 1787 o.changePasswordAtNextLogin = true; |
1788 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1788 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
1789 o.customSchemas = buildUnnamed764(); | 1789 o.customSchemas = buildUnnamed771(); |
1790 o.customerId = "foo"; | 1790 o.customerId = "foo"; |
1791 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1791 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); |
1792 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1792 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1793 o.etag = "foo"; | 1793 o.etag = "foo"; |
1794 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1794 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1795 o.hashFunction = "foo"; | 1795 o.hashFunction = "foo"; |
1796 o.id = "foo"; | 1796 o.id = "foo"; |
1797 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1797 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1798 o.includeInGlobalAddressList = true; | 1798 o.includeInGlobalAddressList = true; |
1799 o.ipWhitelisted = true; | 1799 o.ipWhitelisted = true; |
1800 o.isAdmin = true; | 1800 o.isAdmin = true; |
1801 o.isDelegatedAdmin = true; | 1801 o.isDelegatedAdmin = true; |
1802 o.isEnforcedIn2Sv = true; | 1802 o.isEnforcedIn2Sv = true; |
1803 o.isEnrolledIn2Sv = true; | 1803 o.isEnrolledIn2Sv = true; |
1804 o.isMailboxSetup = true; | 1804 o.isMailboxSetup = true; |
1805 o.kind = "foo"; | 1805 o.kind = "foo"; |
1806 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1806 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); |
1807 o.locations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1807 o.locations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1808 o.name = buildUserName(); | 1808 o.name = buildUserName(); |
1809 o.nonEditableAliases = buildUnnamed765(); | 1809 o.nonEditableAliases = buildUnnamed772(); |
1810 o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1810 o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1811 o.orgUnitPath = "foo"; | 1811 o.orgUnitPath = "foo"; |
1812 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1812 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1813 o.password = "foo"; | 1813 o.password = "foo"; |
1814 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1814 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1815 o.posixAccounts = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1815 o.posixAccounts = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1816 o.primaryEmail = "foo"; | 1816 o.primaryEmail = "foo"; |
1817 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1817 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1818 o.sshPublicKeys = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1818 o.sshPublicKeys = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1819 o.suspended = true; | 1819 o.suspended = true; |
1820 o.suspensionReason = "foo"; | 1820 o.suspensionReason = "foo"; |
1821 o.thumbnailPhotoEtag = "foo"; | 1821 o.thumbnailPhotoEtag = "foo"; |
1822 o.thumbnailPhotoUrl = "foo"; | 1822 o.thumbnailPhotoUrl = "foo"; |
1823 o.websites = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1823 o.websites = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1824 } | 1824 } |
1825 buildCounterUser--; | 1825 buildCounterUser--; |
1826 return o; | 1826 return o; |
1827 } | 1827 } |
1828 | 1828 |
1829 checkUser(api.User o) { | 1829 checkUser(api.User o) { |
1830 buildCounterUser++; | 1830 buildCounterUser++; |
1831 if (buildCounterUser < 3) { | 1831 if (buildCounterUser < 3) { |
1832 var casted3 = (o.addresses) as core.Map; unittest.expect(casted3, unittest.h
asLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["st
ring"], unittest.equals('foo')); | 1832 var casted3 = (o.addresses) as core.Map; unittest.expect(casted3, unittest.h
asLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["st
ring"], unittest.equals('foo')); |
1833 unittest.expect(o.agreedToTerms, unittest.isTrue); | 1833 unittest.expect(o.agreedToTerms, unittest.isTrue); |
1834 checkUnnamed763(o.aliases); | 1834 checkUnnamed770(o.aliases); |
1835 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); | 1835 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); |
1836 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1836 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
1837 checkUnnamed764(o.customSchemas); | 1837 checkUnnamed771(o.customSchemas); |
1838 unittest.expect(o.customerId, unittest.equals('foo')); | 1838 unittest.expect(o.customerId, unittest.equals('foo')); |
1839 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1839 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
1840 var casted4 = (o.emails) as core.Map; unittest.expect(casted4, unittest.hasL
ength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["strin
g"], unittest.equals('foo')); | 1840 var casted4 = (o.emails) as core.Map; unittest.expect(casted4, unittest.hasL
ength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["strin
g"], unittest.equals('foo')); |
1841 unittest.expect(o.etag, unittest.equals('foo')); | 1841 unittest.expect(o.etag, unittest.equals('foo')); |
1842 var casted5 = (o.externalIds) as core.Map; unittest.expect(casted5, unittest
.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); un
ittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["
string"], unittest.equals('foo')); | 1842 var casted5 = (o.externalIds) as core.Map; unittest.expect(casted5, unittest
.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); un
ittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["
string"], unittest.equals('foo')); |
1843 unittest.expect(o.hashFunction, unittest.equals('foo')); | 1843 unittest.expect(o.hashFunction, unittest.equals('foo')); |
1844 unittest.expect(o.id, unittest.equals('foo')); | 1844 unittest.expect(o.id, unittest.equals('foo')); |
1845 var casted6 = (o.ims) as core.Map; unittest.expect(casted6, unittest.hasLeng
th(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"]
, unittest.equals('foo')); | 1845 var casted6 = (o.ims) as core.Map; unittest.expect(casted6, unittest.hasLeng
th(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"]
, unittest.equals('foo')); |
1846 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); | 1846 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); |
1847 unittest.expect(o.ipWhitelisted, unittest.isTrue); | 1847 unittest.expect(o.ipWhitelisted, unittest.isTrue); |
1848 unittest.expect(o.isAdmin, unittest.isTrue); | 1848 unittest.expect(o.isAdmin, unittest.isTrue); |
1849 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); | 1849 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); |
1850 unittest.expect(o.isEnforcedIn2Sv, unittest.isTrue); | 1850 unittest.expect(o.isEnforcedIn2Sv, unittest.isTrue); |
1851 unittest.expect(o.isEnrolledIn2Sv, unittest.isTrue); | 1851 unittest.expect(o.isEnrolledIn2Sv, unittest.isTrue); |
1852 unittest.expect(o.isMailboxSetup, unittest.isTrue); | 1852 unittest.expect(o.isMailboxSetup, unittest.isTrue); |
1853 unittest.expect(o.kind, unittest.equals('foo')); | 1853 unittest.expect(o.kind, unittest.equals('foo')); |
1854 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 1854 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
1855 var casted7 = (o.locations) as core.Map; unittest.expect(casted7, unittest.h
asLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["st
ring"], unittest.equals('foo')); | 1855 var casted7 = (o.locations) as core.Map; unittest.expect(casted7, unittest.h
asLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["st
ring"], unittest.equals('foo')); |
1856 checkUserName(o.name); | 1856 checkUserName(o.name); |
1857 checkUnnamed765(o.nonEditableAliases); | 1857 checkUnnamed772(o.nonEditableAliases); |
1858 var casted8 = (o.notes) as core.Map; unittest.expect(casted8, unittest.hasLe
ngth(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string
"], unittest.equals('foo')); | 1858 var casted8 = (o.notes) as core.Map; unittest.expect(casted8, unittest.hasLe
ngth(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string
"], unittest.equals('foo')); |
1859 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 1859 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
1860 var casted9 = (o.organizations) as core.Map; unittest.expect(casted9, unitte
st.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3]));
unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9
["string"], unittest.equals('foo')); | 1860 var casted9 = (o.organizations) as core.Map; unittest.expect(casted9, unitte
st.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3]));
unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9
["string"], unittest.equals('foo')); |
1861 unittest.expect(o.password, unittest.equals('foo')); | 1861 unittest.expect(o.password, unittest.equals('foo')); |
1862 var casted10 = (o.phones) as core.Map; unittest.expect(casted10, unittest.ha
sLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["
string"], unittest.equals('foo')); | 1862 var casted10 = (o.phones) as core.Map; unittest.expect(casted10, unittest.ha
sLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["
string"], unittest.equals('foo')); |
1863 var casted11 = (o.posixAccounts) as core.Map; unittest.expect(casted11, unit
test.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])
); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(cas
ted11["string"], unittest.equals('foo')); | 1863 var casted11 = (o.posixAccounts) as core.Map; unittest.expect(casted11, unit
test.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])
); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(cas
ted11["string"], unittest.equals('foo')); |
1864 unittest.expect(o.primaryEmail, unittest.equals('foo')); | 1864 unittest.expect(o.primaryEmail, unittest.equals('foo')); |
1865 var casted12 = (o.relations) as core.Map; unittest.expect(casted12, unittest
.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); u
nittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted1
2["string"], unittest.equals('foo')); | 1865 var casted12 = (o.relations) as core.Map; unittest.expect(casted12, unittest
.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); u
nittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted1
2["string"], unittest.equals('foo')); |
1866 var casted13 = (o.sshPublicKeys) as core.Map; unittest.expect(casted13, unit
test.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])
); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(cas
ted13["string"], unittest.equals('foo')); | 1866 var casted13 = (o.sshPublicKeys) as core.Map; unittest.expect(casted13, unit
test.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])
); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(cas
ted13["string"], unittest.equals('foo')); |
1867 unittest.expect(o.suspended, unittest.isTrue); | 1867 unittest.expect(o.suspended, unittest.isTrue); |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2313 buildCounterUserWebsite++; | 2313 buildCounterUserWebsite++; |
2314 if (buildCounterUserWebsite < 3) { | 2314 if (buildCounterUserWebsite < 3) { |
2315 unittest.expect(o.customType, unittest.equals('foo')); | 2315 unittest.expect(o.customType, unittest.equals('foo')); |
2316 unittest.expect(o.primary, unittest.isTrue); | 2316 unittest.expect(o.primary, unittest.isTrue); |
2317 unittest.expect(o.type, unittest.equals('foo')); | 2317 unittest.expect(o.type, unittest.equals('foo')); |
2318 unittest.expect(o.value, unittest.equals('foo')); | 2318 unittest.expect(o.value, unittest.equals('foo')); |
2319 } | 2319 } |
2320 buildCounterUserWebsite--; | 2320 buildCounterUserWebsite--; |
2321 } | 2321 } |
2322 | 2322 |
2323 buildUnnamed766() { | 2323 buildUnnamed773() { |
2324 var o = new core.List<api.User>(); | 2324 var o = new core.List<api.User>(); |
2325 o.add(buildUser()); | 2325 o.add(buildUser()); |
2326 o.add(buildUser()); | 2326 o.add(buildUser()); |
2327 return o; | 2327 return o; |
2328 } | 2328 } |
2329 | 2329 |
2330 checkUnnamed766(core.List<api.User> o) { | 2330 checkUnnamed773(core.List<api.User> o) { |
2331 unittest.expect(o, unittest.hasLength(2)); | 2331 unittest.expect(o, unittest.hasLength(2)); |
2332 checkUser(o[0]); | 2332 checkUser(o[0]); |
2333 checkUser(o[1]); | 2333 checkUser(o[1]); |
2334 } | 2334 } |
2335 | 2335 |
2336 core.int buildCounterUsers = 0; | 2336 core.int buildCounterUsers = 0; |
2337 buildUsers() { | 2337 buildUsers() { |
2338 var o = new api.Users(); | 2338 var o = new api.Users(); |
2339 buildCounterUsers++; | 2339 buildCounterUsers++; |
2340 if (buildCounterUsers < 3) { | 2340 if (buildCounterUsers < 3) { |
2341 o.etag = "foo"; | 2341 o.etag = "foo"; |
2342 o.kind = "foo"; | 2342 o.kind = "foo"; |
2343 o.nextPageToken = "foo"; | 2343 o.nextPageToken = "foo"; |
2344 o.triggerEvent = "foo"; | 2344 o.triggerEvent = "foo"; |
2345 o.users = buildUnnamed766(); | 2345 o.users = buildUnnamed773(); |
2346 } | 2346 } |
2347 buildCounterUsers--; | 2347 buildCounterUsers--; |
2348 return o; | 2348 return o; |
2349 } | 2349 } |
2350 | 2350 |
2351 checkUsers(api.Users o) { | 2351 checkUsers(api.Users o) { |
2352 buildCounterUsers++; | 2352 buildCounterUsers++; |
2353 if (buildCounterUsers < 3) { | 2353 if (buildCounterUsers < 3) { |
2354 unittest.expect(o.etag, unittest.equals('foo')); | 2354 unittest.expect(o.etag, unittest.equals('foo')); |
2355 unittest.expect(o.kind, unittest.equals('foo')); | 2355 unittest.expect(o.kind, unittest.equals('foo')); |
2356 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2356 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2357 unittest.expect(o.triggerEvent, unittest.equals('foo')); | 2357 unittest.expect(o.triggerEvent, unittest.equals('foo')); |
2358 checkUnnamed766(o.users); | 2358 checkUnnamed773(o.users); |
2359 } | 2359 } |
2360 buildCounterUsers--; | 2360 buildCounterUsers--; |
2361 } | 2361 } |
2362 | 2362 |
2363 core.int buildCounterVerificationCode = 0; | 2363 core.int buildCounterVerificationCode = 0; |
2364 buildVerificationCode() { | 2364 buildVerificationCode() { |
2365 var o = new api.VerificationCode(); | 2365 var o = new api.VerificationCode(); |
2366 buildCounterVerificationCode++; | 2366 buildCounterVerificationCode++; |
2367 if (buildCounterVerificationCode < 3) { | 2367 if (buildCounterVerificationCode < 3) { |
2368 o.etag = "foo"; | 2368 o.etag = "foo"; |
2369 o.kind = "foo"; | 2369 o.kind = "foo"; |
2370 o.userId = "foo"; | 2370 o.userId = "foo"; |
2371 o.verificationCode = "foo"; | 2371 o.verificationCode = "foo"; |
2372 } | 2372 } |
2373 buildCounterVerificationCode--; | 2373 buildCounterVerificationCode--; |
2374 return o; | 2374 return o; |
2375 } | 2375 } |
2376 | 2376 |
2377 checkVerificationCode(api.VerificationCode o) { | 2377 checkVerificationCode(api.VerificationCode o) { |
2378 buildCounterVerificationCode++; | 2378 buildCounterVerificationCode++; |
2379 if (buildCounterVerificationCode < 3) { | 2379 if (buildCounterVerificationCode < 3) { |
2380 unittest.expect(o.etag, unittest.equals('foo')); | 2380 unittest.expect(o.etag, unittest.equals('foo')); |
2381 unittest.expect(o.kind, unittest.equals('foo')); | 2381 unittest.expect(o.kind, unittest.equals('foo')); |
2382 unittest.expect(o.userId, unittest.equals('foo')); | 2382 unittest.expect(o.userId, unittest.equals('foo')); |
2383 unittest.expect(o.verificationCode, unittest.equals('foo')); | 2383 unittest.expect(o.verificationCode, unittest.equals('foo')); |
2384 } | 2384 } |
2385 buildCounterVerificationCode--; | 2385 buildCounterVerificationCode--; |
2386 } | 2386 } |
2387 | 2387 |
2388 buildUnnamed767() { | 2388 buildUnnamed774() { |
2389 var o = new core.List<api.VerificationCode>(); | 2389 var o = new core.List<api.VerificationCode>(); |
2390 o.add(buildVerificationCode()); | 2390 o.add(buildVerificationCode()); |
2391 o.add(buildVerificationCode()); | 2391 o.add(buildVerificationCode()); |
2392 return o; | 2392 return o; |
2393 } | 2393 } |
2394 | 2394 |
2395 checkUnnamed767(core.List<api.VerificationCode> o) { | 2395 checkUnnamed774(core.List<api.VerificationCode> o) { |
2396 unittest.expect(o, unittest.hasLength(2)); | 2396 unittest.expect(o, unittest.hasLength(2)); |
2397 checkVerificationCode(o[0]); | 2397 checkVerificationCode(o[0]); |
2398 checkVerificationCode(o[1]); | 2398 checkVerificationCode(o[1]); |
2399 } | 2399 } |
2400 | 2400 |
2401 core.int buildCounterVerificationCodes = 0; | 2401 core.int buildCounterVerificationCodes = 0; |
2402 buildVerificationCodes() { | 2402 buildVerificationCodes() { |
2403 var o = new api.VerificationCodes(); | 2403 var o = new api.VerificationCodes(); |
2404 buildCounterVerificationCodes++; | 2404 buildCounterVerificationCodes++; |
2405 if (buildCounterVerificationCodes < 3) { | 2405 if (buildCounterVerificationCodes < 3) { |
2406 o.etag = "foo"; | 2406 o.etag = "foo"; |
2407 o.items = buildUnnamed767(); | 2407 o.items = buildUnnamed774(); |
2408 o.kind = "foo"; | 2408 o.kind = "foo"; |
2409 } | 2409 } |
2410 buildCounterVerificationCodes--; | 2410 buildCounterVerificationCodes--; |
2411 return o; | 2411 return o; |
2412 } | 2412 } |
2413 | 2413 |
2414 checkVerificationCodes(api.VerificationCodes o) { | 2414 checkVerificationCodes(api.VerificationCodes o) { |
2415 buildCounterVerificationCodes++; | 2415 buildCounterVerificationCodes++; |
2416 if (buildCounterVerificationCodes < 3) { | 2416 if (buildCounterVerificationCodes < 3) { |
2417 unittest.expect(o.etag, unittest.equals('foo')); | 2417 unittest.expect(o.etag, unittest.equals('foo')); |
2418 checkUnnamed767(o.items); | 2418 checkUnnamed774(o.items); |
2419 unittest.expect(o.kind, unittest.equals('foo')); | 2419 unittest.expect(o.kind, unittest.equals('foo')); |
2420 } | 2420 } |
2421 buildCounterVerificationCodes--; | 2421 buildCounterVerificationCodes--; |
2422 } | 2422 } |
2423 | 2423 |
2424 buildUnnamed768() { | 2424 buildUnnamed775() { |
2425 var o = new core.List<core.String>(); | 2425 var o = new core.List<core.String>(); |
2426 o.add("foo"); | 2426 o.add("foo"); |
2427 o.add("foo"); | 2427 o.add("foo"); |
2428 return o; | 2428 return o; |
2429 } | 2429 } |
2430 | 2430 |
2431 checkUnnamed768(core.List<core.String> o) { | 2431 checkUnnamed775(core.List<core.String> o) { |
2432 unittest.expect(o, unittest.hasLength(2)); | 2432 unittest.expect(o, unittest.hasLength(2)); |
2433 unittest.expect(o[0], unittest.equals('foo')); | 2433 unittest.expect(o[0], unittest.equals('foo')); |
2434 unittest.expect(o[1], unittest.equals('foo')); | 2434 unittest.expect(o[1], unittest.equals('foo')); |
2435 } | 2435 } |
2436 | 2436 |
2437 buildUnnamed769() { | 2437 buildUnnamed776() { |
2438 var o = new core.List<core.String>(); | 2438 var o = new core.List<core.String>(); |
2439 o.add("foo"); | 2439 o.add("foo"); |
2440 o.add("foo"); | 2440 o.add("foo"); |
2441 return o; | 2441 return o; |
2442 } | 2442 } |
2443 | 2443 |
2444 checkUnnamed769(core.List<core.String> o) { | 2444 checkUnnamed776(core.List<core.String> o) { |
2445 unittest.expect(o, unittest.hasLength(2)); | 2445 unittest.expect(o, unittest.hasLength(2)); |
2446 unittest.expect(o[0], unittest.equals('foo')); | 2446 unittest.expect(o[0], unittest.equals('foo')); |
2447 unittest.expect(o[1], unittest.equals('foo')); | 2447 unittest.expect(o[1], unittest.equals('foo')); |
2448 } | 2448 } |
2449 | 2449 |
2450 buildUnnamed770() { | 2450 buildUnnamed777() { |
2451 var o = new core.List<core.String>(); | 2451 var o = new core.List<core.String>(); |
2452 o.add("foo"); | 2452 o.add("foo"); |
2453 o.add("foo"); | 2453 o.add("foo"); |
2454 return o; | 2454 return o; |
2455 } | 2455 } |
2456 | 2456 |
2457 checkUnnamed770(core.List<core.String> o) { | 2457 checkUnnamed777(core.List<core.String> o) { |
2458 unittest.expect(o, unittest.hasLength(2)); | 2458 unittest.expect(o, unittest.hasLength(2)); |
2459 unittest.expect(o[0], unittest.equals('foo')); | 2459 unittest.expect(o[0], unittest.equals('foo')); |
2460 unittest.expect(o[1], unittest.equals('foo')); | 2460 unittest.expect(o[1], unittest.equals('foo')); |
2461 } | 2461 } |
2462 | 2462 |
2463 buildUnnamed771() { | 2463 buildUnnamed778() { |
2464 var o = new core.List<core.String>(); | 2464 var o = new core.List<core.String>(); |
2465 o.add("foo"); | 2465 o.add("foo"); |
2466 o.add("foo"); | 2466 o.add("foo"); |
2467 return o; | 2467 return o; |
2468 } | 2468 } |
2469 | 2469 |
2470 checkUnnamed771(core.List<core.String> o) { | 2470 checkUnnamed778(core.List<core.String> o) { |
2471 unittest.expect(o, unittest.hasLength(2)); | 2471 unittest.expect(o, unittest.hasLength(2)); |
2472 unittest.expect(o[0], unittest.equals('foo')); | 2472 unittest.expect(o[0], unittest.equals('foo')); |
2473 unittest.expect(o[1], unittest.equals('foo')); | 2473 unittest.expect(o[1], unittest.equals('foo')); |
2474 } | 2474 } |
2475 | 2475 |
2476 | 2476 |
2477 main() { | 2477 main() { |
2478 unittest.group("obj-schema-Alias", () { | 2478 unittest.group("obj-schema-Alias", () { |
2479 unittest.test("to-json--from-json", () { | 2479 unittest.test("to-json--from-json", () { |
2480 var o = buildAlias(); | 2480 var o = buildAlias(); |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3051 }); | 3051 }); |
3052 | 3052 |
3053 | 3053 |
3054 unittest.group("resource-AspsResourceApi", () { | 3054 unittest.group("resource-AspsResourceApi", () { |
3055 unittest.test("method--delete", () { | 3055 unittest.test("method--delete", () { |
3056 | 3056 |
3057 var mock = new HttpServerMock(); | 3057 var mock = new HttpServerMock(); |
3058 api.AspsResourceApi res = new api.AdminApi(mock).asps; | 3058 api.AspsResourceApi res = new api.AdminApi(mock).asps; |
3059 var arg_userKey = "foo"; | 3059 var arg_userKey = "foo"; |
3060 var arg_codeId = 42; | 3060 var arg_codeId = 42; |
3061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3061 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3062 var path = (req.url).path; | 3062 var path = (req.url).path; |
3063 var pathOffset = 0; | 3063 var pathOffset = 0; |
3064 var index; | 3064 var index; |
3065 var subPart; | 3065 var subPart; |
3066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3067 pathOffset += 1; | 3067 pathOffset += 1; |
3068 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3068 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3069 pathOffset += 19; | 3069 pathOffset += 19; |
3070 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 3070 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
3071 pathOffset += 6; | 3071 pathOffset += 6; |
(...skipping 25 matching lines...) Expand all Loading... |
3097 } | 3097 } |
3098 } | 3098 } |
3099 | 3099 |
3100 | 3100 |
3101 var h = { | 3101 var h = { |
3102 "content-type" : "application/json; charset=utf-8", | 3102 "content-type" : "application/json; charset=utf-8", |
3103 }; | 3103 }; |
3104 var resp = ""; | 3104 var resp = ""; |
3105 return new async.Future.value(stringResponse(200, h, resp)); | 3105 return new async.Future.value(stringResponse(200, h, resp)); |
3106 }), true); | 3106 }), true); |
3107 res.delete(arg_userKey, arg_codeId).then(unittest.expectAsync((_) {})); | 3107 res.delete(arg_userKey, arg_codeId).then(unittest.expectAsync1((_) {})); |
3108 }); | 3108 }); |
3109 | 3109 |
3110 unittest.test("method--get", () { | 3110 unittest.test("method--get", () { |
3111 | 3111 |
3112 var mock = new HttpServerMock(); | 3112 var mock = new HttpServerMock(); |
3113 api.AspsResourceApi res = new api.AdminApi(mock).asps; | 3113 api.AspsResourceApi res = new api.AdminApi(mock).asps; |
3114 var arg_userKey = "foo"; | 3114 var arg_userKey = "foo"; |
3115 var arg_codeId = 42; | 3115 var arg_codeId = 42; |
3116 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3116 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3117 var path = (req.url).path; | 3117 var path = (req.url).path; |
3118 var pathOffset = 0; | 3118 var pathOffset = 0; |
3119 var index; | 3119 var index; |
3120 var subPart; | 3120 var subPart; |
3121 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3121 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3122 pathOffset += 1; | 3122 pathOffset += 1; |
3123 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3123 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3124 pathOffset += 19; | 3124 pathOffset += 19; |
3125 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 3125 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
3126 pathOffset += 6; | 3126 pathOffset += 6; |
(...skipping 25 matching lines...) Expand all Loading... |
3152 } | 3152 } |
3153 } | 3153 } |
3154 | 3154 |
3155 | 3155 |
3156 var h = { | 3156 var h = { |
3157 "content-type" : "application/json; charset=utf-8", | 3157 "content-type" : "application/json; charset=utf-8", |
3158 }; | 3158 }; |
3159 var resp = convert.JSON.encode(buildAsp()); | 3159 var resp = convert.JSON.encode(buildAsp()); |
3160 return new async.Future.value(stringResponse(200, h, resp)); | 3160 return new async.Future.value(stringResponse(200, h, resp)); |
3161 }), true); | 3161 }), true); |
3162 res.get(arg_userKey, arg_codeId).then(unittest.expectAsync(((api.Asp respo
nse) { | 3162 res.get(arg_userKey, arg_codeId).then(unittest.expectAsync1(((api.Asp resp
onse) { |
3163 checkAsp(response); | 3163 checkAsp(response); |
3164 }))); | 3164 }))); |
3165 }); | 3165 }); |
3166 | 3166 |
3167 unittest.test("method--list", () { | 3167 unittest.test("method--list", () { |
3168 | 3168 |
3169 var mock = new HttpServerMock(); | 3169 var mock = new HttpServerMock(); |
3170 api.AspsResourceApi res = new api.AdminApi(mock).asps; | 3170 api.AspsResourceApi res = new api.AdminApi(mock).asps; |
3171 var arg_userKey = "foo"; | 3171 var arg_userKey = "foo"; |
3172 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3172 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3173 var path = (req.url).path; | 3173 var path = (req.url).path; |
3174 var pathOffset = 0; | 3174 var pathOffset = 0; |
3175 var index; | 3175 var index; |
3176 var subPart; | 3176 var subPart; |
3177 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3177 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3178 pathOffset += 1; | 3178 pathOffset += 1; |
3179 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3179 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3180 pathOffset += 19; | 3180 pathOffset += 19; |
3181 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 3181 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
3182 pathOffset += 6; | 3182 pathOffset += 6; |
(...skipping 22 matching lines...) Expand all Loading... |
3205 } | 3205 } |
3206 } | 3206 } |
3207 | 3207 |
3208 | 3208 |
3209 var h = { | 3209 var h = { |
3210 "content-type" : "application/json; charset=utf-8", | 3210 "content-type" : "application/json; charset=utf-8", |
3211 }; | 3211 }; |
3212 var resp = convert.JSON.encode(buildAsps()); | 3212 var resp = convert.JSON.encode(buildAsps()); |
3213 return new async.Future.value(stringResponse(200, h, resp)); | 3213 return new async.Future.value(stringResponse(200, h, resp)); |
3214 }), true); | 3214 }), true); |
3215 res.list(arg_userKey).then(unittest.expectAsync(((api.Asps response) { | 3215 res.list(arg_userKey).then(unittest.expectAsync1(((api.Asps response) { |
3216 checkAsps(response); | 3216 checkAsps(response); |
3217 }))); | 3217 }))); |
3218 }); | 3218 }); |
3219 | 3219 |
3220 }); | 3220 }); |
3221 | 3221 |
3222 | 3222 |
3223 unittest.group("resource-ChannelsResourceApi", () { | 3223 unittest.group("resource-ChannelsResourceApi", () { |
3224 unittest.test("method--stop", () { | 3224 unittest.test("method--stop", () { |
3225 | 3225 |
3226 var mock = new HttpServerMock(); | 3226 var mock = new HttpServerMock(); |
3227 api.ChannelsResourceApi res = new api.AdminApi(mock).channels; | 3227 api.ChannelsResourceApi res = new api.AdminApi(mock).channels; |
3228 var arg_request = buildChannel(); | 3228 var arg_request = buildChannel(); |
3229 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3229 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3230 var obj = new api.Channel.fromJson(json); | 3230 var obj = new api.Channel.fromJson(json); |
3231 checkChannel(obj); | 3231 checkChannel(obj); |
3232 | 3232 |
3233 var path = (req.url).path; | 3233 var path = (req.url).path; |
3234 var pathOffset = 0; | 3234 var pathOffset = 0; |
3235 var index; | 3235 var index; |
3236 var subPart; | 3236 var subPart; |
3237 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3237 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3238 pathOffset += 1; | 3238 pathOffset += 1; |
3239 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("admin/directory_v1/channels/stop")); | 3239 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("admin/directory_v1/channels/stop")); |
(...skipping 16 matching lines...) Expand all Loading... |
3256 } | 3256 } |
3257 } | 3257 } |
3258 | 3258 |
3259 | 3259 |
3260 var h = { | 3260 var h = { |
3261 "content-type" : "application/json; charset=utf-8", | 3261 "content-type" : "application/json; charset=utf-8", |
3262 }; | 3262 }; |
3263 var resp = ""; | 3263 var resp = ""; |
3264 return new async.Future.value(stringResponse(200, h, resp)); | 3264 return new async.Future.value(stringResponse(200, h, resp)); |
3265 }), true); | 3265 }), true); |
3266 res.stop(arg_request).then(unittest.expectAsync((_) {})); | 3266 res.stop(arg_request).then(unittest.expectAsync1((_) {})); |
3267 }); | 3267 }); |
3268 | 3268 |
3269 }); | 3269 }); |
3270 | 3270 |
3271 | 3271 |
3272 unittest.group("resource-ChromeosdevicesResourceApi", () { | 3272 unittest.group("resource-ChromeosdevicesResourceApi", () { |
3273 unittest.test("method--action", () { | 3273 unittest.test("method--action", () { |
3274 | 3274 |
3275 var mock = new HttpServerMock(); | 3275 var mock = new HttpServerMock(); |
3276 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; | 3276 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; |
3277 var arg_request = buildChromeOsDeviceAction(); | 3277 var arg_request = buildChromeOsDeviceAction(); |
3278 var arg_customerId = "foo"; | 3278 var arg_customerId = "foo"; |
3279 var arg_resourceId = "foo"; | 3279 var arg_resourceId = "foo"; |
3280 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3280 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3281 var obj = new api.ChromeOsDeviceAction.fromJson(json); | 3281 var obj = new api.ChromeOsDeviceAction.fromJson(json); |
3282 checkChromeOsDeviceAction(obj); | 3282 checkChromeOsDeviceAction(obj); |
3283 | 3283 |
3284 var path = (req.url).path; | 3284 var path = (req.url).path; |
3285 var pathOffset = 0; | 3285 var pathOffset = 0; |
3286 var index; | 3286 var index; |
3287 var subPart; | 3287 var subPart; |
3288 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3288 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3289 pathOffset += 1; | 3289 pathOffset += 1; |
3290 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3290 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3323 } | 3323 } |
3324 } | 3324 } |
3325 | 3325 |
3326 | 3326 |
3327 var h = { | 3327 var h = { |
3328 "content-type" : "application/json; charset=utf-8", | 3328 "content-type" : "application/json; charset=utf-8", |
3329 }; | 3329 }; |
3330 var resp = ""; | 3330 var resp = ""; |
3331 return new async.Future.value(stringResponse(200, h, resp)); | 3331 return new async.Future.value(stringResponse(200, h, resp)); |
3332 }), true); | 3332 }), true); |
3333 res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expe
ctAsync((_) {})); | 3333 res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expe
ctAsync1((_) {})); |
3334 }); | 3334 }); |
3335 | 3335 |
3336 unittest.test("method--get", () { | 3336 unittest.test("method--get", () { |
3337 | 3337 |
3338 var mock = new HttpServerMock(); | 3338 var mock = new HttpServerMock(); |
3339 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; | 3339 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; |
3340 var arg_customerId = "foo"; | 3340 var arg_customerId = "foo"; |
3341 var arg_deviceId = "foo"; | 3341 var arg_deviceId = "foo"; |
3342 var arg_projection = "foo"; | 3342 var arg_projection = "foo"; |
3343 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3343 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3344 var path = (req.url).path; | 3344 var path = (req.url).path; |
3345 var pathOffset = 0; | 3345 var pathOffset = 0; |
3346 var index; | 3346 var index; |
3347 var subPart; | 3347 var subPart; |
3348 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3348 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3349 pathOffset += 1; | 3349 pathOffset += 1; |
3350 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3350 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3351 pathOffset += 19; | 3351 pathOffset += 19; |
3352 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3352 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
3353 pathOffset += 9; | 3353 pathOffset += 9; |
(...skipping 26 matching lines...) Expand all Loading... |
3380 } | 3380 } |
3381 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); | 3381 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); |
3382 | 3382 |
3383 | 3383 |
3384 var h = { | 3384 var h = { |
3385 "content-type" : "application/json; charset=utf-8", | 3385 "content-type" : "application/json; charset=utf-8", |
3386 }; | 3386 }; |
3387 var resp = convert.JSON.encode(buildChromeOsDevice()); | 3387 var resp = convert.JSON.encode(buildChromeOsDevice()); |
3388 return new async.Future.value(stringResponse(200, h, resp)); | 3388 return new async.Future.value(stringResponse(200, h, resp)); |
3389 }), true); | 3389 }), true); |
3390 res.get(arg_customerId, arg_deviceId, projection: arg_projection).then(uni
ttest.expectAsync(((api.ChromeOsDevice response) { | 3390 res.get(arg_customerId, arg_deviceId, projection: arg_projection).then(uni
ttest.expectAsync1(((api.ChromeOsDevice response) { |
3391 checkChromeOsDevice(response); | 3391 checkChromeOsDevice(response); |
3392 }))); | 3392 }))); |
3393 }); | 3393 }); |
3394 | 3394 |
3395 unittest.test("method--list", () { | 3395 unittest.test("method--list", () { |
3396 | 3396 |
3397 var mock = new HttpServerMock(); | 3397 var mock = new HttpServerMock(); |
3398 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; | 3398 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; |
3399 var arg_customerId = "foo"; | 3399 var arg_customerId = "foo"; |
3400 var arg_maxResults = 42; | 3400 var arg_maxResults = 42; |
3401 var arg_orderBy = "foo"; | 3401 var arg_orderBy = "foo"; |
3402 var arg_pageToken = "foo"; | 3402 var arg_pageToken = "foo"; |
3403 var arg_projection = "foo"; | 3403 var arg_projection = "foo"; |
3404 var arg_query = "foo"; | 3404 var arg_query = "foo"; |
3405 var arg_sortOrder = "foo"; | 3405 var arg_sortOrder = "foo"; |
3406 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3406 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3407 var path = (req.url).path; | 3407 var path = (req.url).path; |
3408 var pathOffset = 0; | 3408 var pathOffset = 0; |
3409 var index; | 3409 var index; |
3410 var subPart; | 3410 var subPart; |
3411 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3411 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3412 pathOffset += 1; | 3412 pathOffset += 1; |
3413 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3413 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3414 pathOffset += 19; | 3414 pathOffset += 19; |
3415 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3415 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
3416 pathOffset += 9; | 3416 pathOffset += 9; |
(...skipping 28 matching lines...) Expand all Loading... |
3445 unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); | 3445 unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); |
3446 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 3446 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
3447 | 3447 |
3448 | 3448 |
3449 var h = { | 3449 var h = { |
3450 "content-type" : "application/json; charset=utf-8", | 3450 "content-type" : "application/json; charset=utf-8", |
3451 }; | 3451 }; |
3452 var resp = convert.JSON.encode(buildChromeOsDevices()); | 3452 var resp = convert.JSON.encode(buildChromeOsDevices()); |
3453 return new async.Future.value(stringResponse(200, h, resp)); | 3453 return new async.Future.value(stringResponse(200, h, resp)); |
3454 }), true); | 3454 }), true); |
3455 res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy,
pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sortOrd
er: arg_sortOrder).then(unittest.expectAsync(((api.ChromeOsDevices response) { | 3455 res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy,
pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sortOrd
er: arg_sortOrder).then(unittest.expectAsync1(((api.ChromeOsDevices response) { |
3456 checkChromeOsDevices(response); | 3456 checkChromeOsDevices(response); |
3457 }))); | 3457 }))); |
3458 }); | 3458 }); |
3459 | 3459 |
3460 unittest.test("method--patch", () { | 3460 unittest.test("method--patch", () { |
3461 | 3461 |
3462 var mock = new HttpServerMock(); | 3462 var mock = new HttpServerMock(); |
3463 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; | 3463 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; |
3464 var arg_request = buildChromeOsDevice(); | 3464 var arg_request = buildChromeOsDevice(); |
3465 var arg_customerId = "foo"; | 3465 var arg_customerId = "foo"; |
3466 var arg_deviceId = "foo"; | 3466 var arg_deviceId = "foo"; |
3467 var arg_projection = "foo"; | 3467 var arg_projection = "foo"; |
3468 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3468 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3469 var obj = new api.ChromeOsDevice.fromJson(json); | 3469 var obj = new api.ChromeOsDevice.fromJson(json); |
3470 checkChromeOsDevice(obj); | 3470 checkChromeOsDevice(obj); |
3471 | 3471 |
3472 var path = (req.url).path; | 3472 var path = (req.url).path; |
3473 var pathOffset = 0; | 3473 var pathOffset = 0; |
3474 var index; | 3474 var index; |
3475 var subPart; | 3475 var subPart; |
3476 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3476 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3477 pathOffset += 1; | 3477 pathOffset += 1; |
3478 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3478 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 29 matching lines...) Expand all Loading... |
3508 } | 3508 } |
3509 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); | 3509 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); |
3510 | 3510 |
3511 | 3511 |
3512 var h = { | 3512 var h = { |
3513 "content-type" : "application/json; charset=utf-8", | 3513 "content-type" : "application/json; charset=utf-8", |
3514 }; | 3514 }; |
3515 var resp = convert.JSON.encode(buildChromeOsDevice()); | 3515 var resp = convert.JSON.encode(buildChromeOsDevice()); |
3516 return new async.Future.value(stringResponse(200, h, resp)); | 3516 return new async.Future.value(stringResponse(200, h, resp)); |
3517 }), true); | 3517 }), true); |
3518 res.patch(arg_request, arg_customerId, arg_deviceId, projection: arg_proje
ction).then(unittest.expectAsync(((api.ChromeOsDevice response) { | 3518 res.patch(arg_request, arg_customerId, arg_deviceId, projection: arg_proje
ction).then(unittest.expectAsync1(((api.ChromeOsDevice response) { |
3519 checkChromeOsDevice(response); | 3519 checkChromeOsDevice(response); |
3520 }))); | 3520 }))); |
3521 }); | 3521 }); |
3522 | 3522 |
3523 unittest.test("method--update", () { | 3523 unittest.test("method--update", () { |
3524 | 3524 |
3525 var mock = new HttpServerMock(); | 3525 var mock = new HttpServerMock(); |
3526 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; | 3526 api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevice
s; |
3527 var arg_request = buildChromeOsDevice(); | 3527 var arg_request = buildChromeOsDevice(); |
3528 var arg_customerId = "foo"; | 3528 var arg_customerId = "foo"; |
3529 var arg_deviceId = "foo"; | 3529 var arg_deviceId = "foo"; |
3530 var arg_projection = "foo"; | 3530 var arg_projection = "foo"; |
3531 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3531 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3532 var obj = new api.ChromeOsDevice.fromJson(json); | 3532 var obj = new api.ChromeOsDevice.fromJson(json); |
3533 checkChromeOsDevice(obj); | 3533 checkChromeOsDevice(obj); |
3534 | 3534 |
3535 var path = (req.url).path; | 3535 var path = (req.url).path; |
3536 var pathOffset = 0; | 3536 var pathOffset = 0; |
3537 var index; | 3537 var index; |
3538 var subPart; | 3538 var subPart; |
3539 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3539 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3540 pathOffset += 1; | 3540 pathOffset += 1; |
3541 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3541 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 29 matching lines...) Expand all Loading... |
3571 } | 3571 } |
3572 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); | 3572 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); |
3573 | 3573 |
3574 | 3574 |
3575 var h = { | 3575 var h = { |
3576 "content-type" : "application/json; charset=utf-8", | 3576 "content-type" : "application/json; charset=utf-8", |
3577 }; | 3577 }; |
3578 var resp = convert.JSON.encode(buildChromeOsDevice()); | 3578 var resp = convert.JSON.encode(buildChromeOsDevice()); |
3579 return new async.Future.value(stringResponse(200, h, resp)); | 3579 return new async.Future.value(stringResponse(200, h, resp)); |
3580 }), true); | 3580 }), true); |
3581 res.update(arg_request, arg_customerId, arg_deviceId, projection: arg_proj
ection).then(unittest.expectAsync(((api.ChromeOsDevice response) { | 3581 res.update(arg_request, arg_customerId, arg_deviceId, projection: arg_proj
ection).then(unittest.expectAsync1(((api.ChromeOsDevice response) { |
3582 checkChromeOsDevice(response); | 3582 checkChromeOsDevice(response); |
3583 }))); | 3583 }))); |
3584 }); | 3584 }); |
3585 | 3585 |
3586 }); | 3586 }); |
3587 | 3587 |
3588 | 3588 |
3589 unittest.group("resource-CustomersResourceApi", () { | 3589 unittest.group("resource-CustomersResourceApi", () { |
3590 unittest.test("method--get", () { | 3590 unittest.test("method--get", () { |
3591 | 3591 |
3592 var mock = new HttpServerMock(); | 3592 var mock = new HttpServerMock(); |
3593 api.CustomersResourceApi res = new api.AdminApi(mock).customers; | 3593 api.CustomersResourceApi res = new api.AdminApi(mock).customers; |
3594 var arg_customerKey = "foo"; | 3594 var arg_customerKey = "foo"; |
3595 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3595 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3596 var path = (req.url).path; | 3596 var path = (req.url).path; |
3597 var pathOffset = 0; | 3597 var pathOffset = 0; |
3598 var index; | 3598 var index; |
3599 var subPart; | 3599 var subPart; |
3600 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3600 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3601 pathOffset += 1; | 3601 pathOffset += 1; |
3602 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3602 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3603 pathOffset += 19; | 3603 pathOffset += 19; |
3604 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("customers/")); | 3604 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("customers/")); |
3605 pathOffset += 10; | 3605 pathOffset += 10; |
(...skipping 18 matching lines...) Expand all Loading... |
3624 } | 3624 } |
3625 } | 3625 } |
3626 | 3626 |
3627 | 3627 |
3628 var h = { | 3628 var h = { |
3629 "content-type" : "application/json; charset=utf-8", | 3629 "content-type" : "application/json; charset=utf-8", |
3630 }; | 3630 }; |
3631 var resp = convert.JSON.encode(buildCustomer()); | 3631 var resp = convert.JSON.encode(buildCustomer()); |
3632 return new async.Future.value(stringResponse(200, h, resp)); | 3632 return new async.Future.value(stringResponse(200, h, resp)); |
3633 }), true); | 3633 }), true); |
3634 res.get(arg_customerKey).then(unittest.expectAsync(((api.Customer response
) { | 3634 res.get(arg_customerKey).then(unittest.expectAsync1(((api.Customer respons
e) { |
3635 checkCustomer(response); | 3635 checkCustomer(response); |
3636 }))); | 3636 }))); |
3637 }); | 3637 }); |
3638 | 3638 |
3639 unittest.test("method--patch", () { | 3639 unittest.test("method--patch", () { |
3640 | 3640 |
3641 var mock = new HttpServerMock(); | 3641 var mock = new HttpServerMock(); |
3642 api.CustomersResourceApi res = new api.AdminApi(mock).customers; | 3642 api.CustomersResourceApi res = new api.AdminApi(mock).customers; |
3643 var arg_request = buildCustomer(); | 3643 var arg_request = buildCustomer(); |
3644 var arg_customerKey = "foo"; | 3644 var arg_customerKey = "foo"; |
3645 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3645 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3646 var obj = new api.Customer.fromJson(json); | 3646 var obj = new api.Customer.fromJson(json); |
3647 checkCustomer(obj); | 3647 checkCustomer(obj); |
3648 | 3648 |
3649 var path = (req.url).path; | 3649 var path = (req.url).path; |
3650 var pathOffset = 0; | 3650 var pathOffset = 0; |
3651 var index; | 3651 var index; |
3652 var subPart; | 3652 var subPart; |
3653 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3653 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3654 pathOffset += 1; | 3654 pathOffset += 1; |
3655 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3655 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 21 matching lines...) Expand all Loading... |
3677 } | 3677 } |
3678 } | 3678 } |
3679 | 3679 |
3680 | 3680 |
3681 var h = { | 3681 var h = { |
3682 "content-type" : "application/json; charset=utf-8", | 3682 "content-type" : "application/json; charset=utf-8", |
3683 }; | 3683 }; |
3684 var resp = convert.JSON.encode(buildCustomer()); | 3684 var resp = convert.JSON.encode(buildCustomer()); |
3685 return new async.Future.value(stringResponse(200, h, resp)); | 3685 return new async.Future.value(stringResponse(200, h, resp)); |
3686 }), true); | 3686 }), true); |
3687 res.patch(arg_request, arg_customerKey).then(unittest.expectAsync(((api.Cu
stomer response) { | 3687 res.patch(arg_request, arg_customerKey).then(unittest.expectAsync1(((api.C
ustomer response) { |
3688 checkCustomer(response); | 3688 checkCustomer(response); |
3689 }))); | 3689 }))); |
3690 }); | 3690 }); |
3691 | 3691 |
3692 unittest.test("method--update", () { | 3692 unittest.test("method--update", () { |
3693 | 3693 |
3694 var mock = new HttpServerMock(); | 3694 var mock = new HttpServerMock(); |
3695 api.CustomersResourceApi res = new api.AdminApi(mock).customers; | 3695 api.CustomersResourceApi res = new api.AdminApi(mock).customers; |
3696 var arg_request = buildCustomer(); | 3696 var arg_request = buildCustomer(); |
3697 var arg_customerKey = "foo"; | 3697 var arg_customerKey = "foo"; |
3698 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3698 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3699 var obj = new api.Customer.fromJson(json); | 3699 var obj = new api.Customer.fromJson(json); |
3700 checkCustomer(obj); | 3700 checkCustomer(obj); |
3701 | 3701 |
3702 var path = (req.url).path; | 3702 var path = (req.url).path; |
3703 var pathOffset = 0; | 3703 var pathOffset = 0; |
3704 var index; | 3704 var index; |
3705 var subPart; | 3705 var subPart; |
3706 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3706 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3707 pathOffset += 1; | 3707 pathOffset += 1; |
3708 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3708 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 21 matching lines...) Expand all Loading... |
3730 } | 3730 } |
3731 } | 3731 } |
3732 | 3732 |
3733 | 3733 |
3734 var h = { | 3734 var h = { |
3735 "content-type" : "application/json; charset=utf-8", | 3735 "content-type" : "application/json; charset=utf-8", |
3736 }; | 3736 }; |
3737 var resp = convert.JSON.encode(buildCustomer()); | 3737 var resp = convert.JSON.encode(buildCustomer()); |
3738 return new async.Future.value(stringResponse(200, h, resp)); | 3738 return new async.Future.value(stringResponse(200, h, resp)); |
3739 }), true); | 3739 }), true); |
3740 res.update(arg_request, arg_customerKey).then(unittest.expectAsync(((api.C
ustomer response) { | 3740 res.update(arg_request, arg_customerKey).then(unittest.expectAsync1(((api.
Customer response) { |
3741 checkCustomer(response); | 3741 checkCustomer(response); |
3742 }))); | 3742 }))); |
3743 }); | 3743 }); |
3744 | 3744 |
3745 }); | 3745 }); |
3746 | 3746 |
3747 | 3747 |
3748 unittest.group("resource-DomainAliasesResourceApi", () { | 3748 unittest.group("resource-DomainAliasesResourceApi", () { |
3749 unittest.test("method--delete", () { | 3749 unittest.test("method--delete", () { |
3750 | 3750 |
3751 var mock = new HttpServerMock(); | 3751 var mock = new HttpServerMock(); |
3752 api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; | 3752 api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; |
3753 var arg_customer = "foo"; | 3753 var arg_customer = "foo"; |
3754 var arg_domainAliasName = "foo"; | 3754 var arg_domainAliasName = "foo"; |
3755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3755 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3756 var path = (req.url).path; | 3756 var path = (req.url).path; |
3757 var pathOffset = 0; | 3757 var pathOffset = 0; |
3758 var index; | 3758 var index; |
3759 var subPart; | 3759 var subPart; |
3760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3761 pathOffset += 1; | 3761 pathOffset += 1; |
3762 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3762 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3763 pathOffset += 19; | 3763 pathOffset += 19; |
3764 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3764 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
3765 pathOffset += 9; | 3765 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
3791 } | 3791 } |
3792 } | 3792 } |
3793 | 3793 |
3794 | 3794 |
3795 var h = { | 3795 var h = { |
3796 "content-type" : "application/json; charset=utf-8", | 3796 "content-type" : "application/json; charset=utf-8", |
3797 }; | 3797 }; |
3798 var resp = ""; | 3798 var resp = ""; |
3799 return new async.Future.value(stringResponse(200, h, resp)); | 3799 return new async.Future.value(stringResponse(200, h, resp)); |
3800 }), true); | 3800 }), true); |
3801 res.delete(arg_customer, arg_domainAliasName).then(unittest.expectAsync((_
) {})); | 3801 res.delete(arg_customer, arg_domainAliasName).then(unittest.expectAsync1((
_) {})); |
3802 }); | 3802 }); |
3803 | 3803 |
3804 unittest.test("method--get", () { | 3804 unittest.test("method--get", () { |
3805 | 3805 |
3806 var mock = new HttpServerMock(); | 3806 var mock = new HttpServerMock(); |
3807 api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; | 3807 api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; |
3808 var arg_customer = "foo"; | 3808 var arg_customer = "foo"; |
3809 var arg_domainAliasName = "foo"; | 3809 var arg_domainAliasName = "foo"; |
3810 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3810 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3811 var path = (req.url).path; | 3811 var path = (req.url).path; |
3812 var pathOffset = 0; | 3812 var pathOffset = 0; |
3813 var index; | 3813 var index; |
3814 var subPart; | 3814 var subPart; |
3815 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3815 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3816 pathOffset += 1; | 3816 pathOffset += 1; |
3817 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3817 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3818 pathOffset += 19; | 3818 pathOffset += 19; |
3819 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3819 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
3820 pathOffset += 9; | 3820 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
3846 } | 3846 } |
3847 } | 3847 } |
3848 | 3848 |
3849 | 3849 |
3850 var h = { | 3850 var h = { |
3851 "content-type" : "application/json; charset=utf-8", | 3851 "content-type" : "application/json; charset=utf-8", |
3852 }; | 3852 }; |
3853 var resp = convert.JSON.encode(buildDomainAlias()); | 3853 var resp = convert.JSON.encode(buildDomainAlias()); |
3854 return new async.Future.value(stringResponse(200, h, resp)); | 3854 return new async.Future.value(stringResponse(200, h, resp)); |
3855 }), true); | 3855 }), true); |
3856 res.get(arg_customer, arg_domainAliasName).then(unittest.expectAsync(((api
.DomainAlias response) { | 3856 res.get(arg_customer, arg_domainAliasName).then(unittest.expectAsync1(((ap
i.DomainAlias response) { |
3857 checkDomainAlias(response); | 3857 checkDomainAlias(response); |
3858 }))); | 3858 }))); |
3859 }); | 3859 }); |
3860 | 3860 |
3861 unittest.test("method--insert", () { | 3861 unittest.test("method--insert", () { |
3862 | 3862 |
3863 var mock = new HttpServerMock(); | 3863 var mock = new HttpServerMock(); |
3864 api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; | 3864 api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; |
3865 var arg_request = buildDomainAlias(); | 3865 var arg_request = buildDomainAlias(); |
3866 var arg_customer = "foo"; | 3866 var arg_customer = "foo"; |
3867 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3867 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3868 var obj = new api.DomainAlias.fromJson(json); | 3868 var obj = new api.DomainAlias.fromJson(json); |
3869 checkDomainAlias(obj); | 3869 checkDomainAlias(obj); |
3870 | 3870 |
3871 var path = (req.url).path; | 3871 var path = (req.url).path; |
3872 var pathOffset = 0; | 3872 var pathOffset = 0; |
3873 var index; | 3873 var index; |
3874 var subPart; | 3874 var subPart; |
3875 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3875 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3876 pathOffset += 1; | 3876 pathOffset += 1; |
3877 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3877 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
3903 } | 3903 } |
3904 } | 3904 } |
3905 | 3905 |
3906 | 3906 |
3907 var h = { | 3907 var h = { |
3908 "content-type" : "application/json; charset=utf-8", | 3908 "content-type" : "application/json; charset=utf-8", |
3909 }; | 3909 }; |
3910 var resp = convert.JSON.encode(buildDomainAlias()); | 3910 var resp = convert.JSON.encode(buildDomainAlias()); |
3911 return new async.Future.value(stringResponse(200, h, resp)); | 3911 return new async.Future.value(stringResponse(200, h, resp)); |
3912 }), true); | 3912 }), true); |
3913 res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.Doma
inAlias response) { | 3913 res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.Dom
ainAlias response) { |
3914 checkDomainAlias(response); | 3914 checkDomainAlias(response); |
3915 }))); | 3915 }))); |
3916 }); | 3916 }); |
3917 | 3917 |
3918 unittest.test("method--list", () { | 3918 unittest.test("method--list", () { |
3919 | 3919 |
3920 var mock = new HttpServerMock(); | 3920 var mock = new HttpServerMock(); |
3921 api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; | 3921 api.DomainAliasesResourceApi res = new api.AdminApi(mock).domainAliases; |
3922 var arg_customer = "foo"; | 3922 var arg_customer = "foo"; |
3923 var arg_parentDomainName = "foo"; | 3923 var arg_parentDomainName = "foo"; |
3924 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3924 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3925 var path = (req.url).path; | 3925 var path = (req.url).path; |
3926 var pathOffset = 0; | 3926 var pathOffset = 0; |
3927 var index; | 3927 var index; |
3928 var subPart; | 3928 var subPart; |
3929 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3929 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3930 pathOffset += 1; | 3930 pathOffset += 1; |
3931 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3931 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3932 pathOffset += 19; | 3932 pathOffset += 19; |
3933 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3933 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
3934 pathOffset += 9; | 3934 pathOffset += 9; |
(...skipping 23 matching lines...) Expand all Loading... |
3958 } | 3958 } |
3959 unittest.expect(queryMap["parentDomainName"].first, unittest.equals(arg_
parentDomainName)); | 3959 unittest.expect(queryMap["parentDomainName"].first, unittest.equals(arg_
parentDomainName)); |
3960 | 3960 |
3961 | 3961 |
3962 var h = { | 3962 var h = { |
3963 "content-type" : "application/json; charset=utf-8", | 3963 "content-type" : "application/json; charset=utf-8", |
3964 }; | 3964 }; |
3965 var resp = convert.JSON.encode(buildDomainAliases()); | 3965 var resp = convert.JSON.encode(buildDomainAliases()); |
3966 return new async.Future.value(stringResponse(200, h, resp)); | 3966 return new async.Future.value(stringResponse(200, h, resp)); |
3967 }), true); | 3967 }), true); |
3968 res.list(arg_customer, parentDomainName: arg_parentDomainName).then(unitte
st.expectAsync(((api.DomainAliases response) { | 3968 res.list(arg_customer, parentDomainName: arg_parentDomainName).then(unitte
st.expectAsync1(((api.DomainAliases response) { |
3969 checkDomainAliases(response); | 3969 checkDomainAliases(response); |
3970 }))); | 3970 }))); |
3971 }); | 3971 }); |
3972 | 3972 |
3973 }); | 3973 }); |
3974 | 3974 |
3975 | 3975 |
3976 unittest.group("resource-DomainsResourceApi", () { | 3976 unittest.group("resource-DomainsResourceApi", () { |
3977 unittest.test("method--delete", () { | 3977 unittest.test("method--delete", () { |
3978 | 3978 |
3979 var mock = new HttpServerMock(); | 3979 var mock = new HttpServerMock(); |
3980 api.DomainsResourceApi res = new api.AdminApi(mock).domains; | 3980 api.DomainsResourceApi res = new api.AdminApi(mock).domains; |
3981 var arg_customer = "foo"; | 3981 var arg_customer = "foo"; |
3982 var arg_domainName = "foo"; | 3982 var arg_domainName = "foo"; |
3983 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3983 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3984 var path = (req.url).path; | 3984 var path = (req.url).path; |
3985 var pathOffset = 0; | 3985 var pathOffset = 0; |
3986 var index; | 3986 var index; |
3987 var subPart; | 3987 var subPart; |
3988 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3988 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3989 pathOffset += 1; | 3989 pathOffset += 1; |
3990 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3990 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
3991 pathOffset += 19; | 3991 pathOffset += 19; |
3992 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3992 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
3993 pathOffset += 9; | 3993 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
4019 } | 4019 } |
4020 } | 4020 } |
4021 | 4021 |
4022 | 4022 |
4023 var h = { | 4023 var h = { |
4024 "content-type" : "application/json; charset=utf-8", | 4024 "content-type" : "application/json; charset=utf-8", |
4025 }; | 4025 }; |
4026 var resp = ""; | 4026 var resp = ""; |
4027 return new async.Future.value(stringResponse(200, h, resp)); | 4027 return new async.Future.value(stringResponse(200, h, resp)); |
4028 }), true); | 4028 }), true); |
4029 res.delete(arg_customer, arg_domainName).then(unittest.expectAsync((_) {})
); | 4029 res.delete(arg_customer, arg_domainName).then(unittest.expectAsync1((_) {}
)); |
4030 }); | 4030 }); |
4031 | 4031 |
4032 unittest.test("method--get", () { | 4032 unittest.test("method--get", () { |
4033 | 4033 |
4034 var mock = new HttpServerMock(); | 4034 var mock = new HttpServerMock(); |
4035 api.DomainsResourceApi res = new api.AdminApi(mock).domains; | 4035 api.DomainsResourceApi res = new api.AdminApi(mock).domains; |
4036 var arg_customer = "foo"; | 4036 var arg_customer = "foo"; |
4037 var arg_domainName = "foo"; | 4037 var arg_domainName = "foo"; |
4038 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4038 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4039 var path = (req.url).path; | 4039 var path = (req.url).path; |
4040 var pathOffset = 0; | 4040 var pathOffset = 0; |
4041 var index; | 4041 var index; |
4042 var subPart; | 4042 var subPart; |
4043 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4043 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4044 pathOffset += 1; | 4044 pathOffset += 1; |
4045 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4045 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4046 pathOffset += 19; | 4046 pathOffset += 19; |
4047 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 4047 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
4048 pathOffset += 9; | 4048 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
4074 } | 4074 } |
4075 } | 4075 } |
4076 | 4076 |
4077 | 4077 |
4078 var h = { | 4078 var h = { |
4079 "content-type" : "application/json; charset=utf-8", | 4079 "content-type" : "application/json; charset=utf-8", |
4080 }; | 4080 }; |
4081 var resp = convert.JSON.encode(buildDomains()); | 4081 var resp = convert.JSON.encode(buildDomains()); |
4082 return new async.Future.value(stringResponse(200, h, resp)); | 4082 return new async.Future.value(stringResponse(200, h, resp)); |
4083 }), true); | 4083 }), true); |
4084 res.get(arg_customer, arg_domainName).then(unittest.expectAsync(((api.Doma
ins response) { | 4084 res.get(arg_customer, arg_domainName).then(unittest.expectAsync1(((api.Dom
ains response) { |
4085 checkDomains(response); | 4085 checkDomains(response); |
4086 }))); | 4086 }))); |
4087 }); | 4087 }); |
4088 | 4088 |
4089 unittest.test("method--insert", () { | 4089 unittest.test("method--insert", () { |
4090 | 4090 |
4091 var mock = new HttpServerMock(); | 4091 var mock = new HttpServerMock(); |
4092 api.DomainsResourceApi res = new api.AdminApi(mock).domains; | 4092 api.DomainsResourceApi res = new api.AdminApi(mock).domains; |
4093 var arg_request = buildDomains(); | 4093 var arg_request = buildDomains(); |
4094 var arg_customer = "foo"; | 4094 var arg_customer = "foo"; |
4095 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4095 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4096 var obj = new api.Domains.fromJson(json); | 4096 var obj = new api.Domains.fromJson(json); |
4097 checkDomains(obj); | 4097 checkDomains(obj); |
4098 | 4098 |
4099 var path = (req.url).path; | 4099 var path = (req.url).path; |
4100 var pathOffset = 0; | 4100 var pathOffset = 0; |
4101 var index; | 4101 var index; |
4102 var subPart; | 4102 var subPart; |
4103 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4103 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4104 pathOffset += 1; | 4104 pathOffset += 1; |
4105 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4105 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
4131 } | 4131 } |
4132 } | 4132 } |
4133 | 4133 |
4134 | 4134 |
4135 var h = { | 4135 var h = { |
4136 "content-type" : "application/json; charset=utf-8", | 4136 "content-type" : "application/json; charset=utf-8", |
4137 }; | 4137 }; |
4138 var resp = convert.JSON.encode(buildDomains()); | 4138 var resp = convert.JSON.encode(buildDomains()); |
4139 return new async.Future.value(stringResponse(200, h, resp)); | 4139 return new async.Future.value(stringResponse(200, h, resp)); |
4140 }), true); | 4140 }), true); |
4141 res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.Doma
ins response) { | 4141 res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.Dom
ains response) { |
4142 checkDomains(response); | 4142 checkDomains(response); |
4143 }))); | 4143 }))); |
4144 }); | 4144 }); |
4145 | 4145 |
4146 unittest.test("method--list", () { | 4146 unittest.test("method--list", () { |
4147 | 4147 |
4148 var mock = new HttpServerMock(); | 4148 var mock = new HttpServerMock(); |
4149 api.DomainsResourceApi res = new api.AdminApi(mock).domains; | 4149 api.DomainsResourceApi res = new api.AdminApi(mock).domains; |
4150 var arg_customer = "foo"; | 4150 var arg_customer = "foo"; |
4151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4151 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4152 var path = (req.url).path; | 4152 var path = (req.url).path; |
4153 var pathOffset = 0; | 4153 var pathOffset = 0; |
4154 var index; | 4154 var index; |
4155 var subPart; | 4155 var subPart; |
4156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4157 pathOffset += 1; | 4157 pathOffset += 1; |
4158 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4158 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4159 pathOffset += 19; | 4159 pathOffset += 19; |
4160 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 4160 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
4161 pathOffset += 9; | 4161 pathOffset += 9; |
(...skipping 22 matching lines...) Expand all Loading... |
4184 } | 4184 } |
4185 } | 4185 } |
4186 | 4186 |
4187 | 4187 |
4188 var h = { | 4188 var h = { |
4189 "content-type" : "application/json; charset=utf-8", | 4189 "content-type" : "application/json; charset=utf-8", |
4190 }; | 4190 }; |
4191 var resp = convert.JSON.encode(buildDomains2()); | 4191 var resp = convert.JSON.encode(buildDomains2()); |
4192 return new async.Future.value(stringResponse(200, h, resp)); | 4192 return new async.Future.value(stringResponse(200, h, resp)); |
4193 }), true); | 4193 }), true); |
4194 res.list(arg_customer).then(unittest.expectAsync(((api.Domains2 response)
{ | 4194 res.list(arg_customer).then(unittest.expectAsync1(((api.Domains2 response)
{ |
4195 checkDomains2(response); | 4195 checkDomains2(response); |
4196 }))); | 4196 }))); |
4197 }); | 4197 }); |
4198 | 4198 |
4199 }); | 4199 }); |
4200 | 4200 |
4201 | 4201 |
4202 unittest.group("resource-GroupsResourceApi", () { | 4202 unittest.group("resource-GroupsResourceApi", () { |
4203 unittest.test("method--delete", () { | 4203 unittest.test("method--delete", () { |
4204 | 4204 |
4205 var mock = new HttpServerMock(); | 4205 var mock = new HttpServerMock(); |
4206 api.GroupsResourceApi res = new api.AdminApi(mock).groups; | 4206 api.GroupsResourceApi res = new api.AdminApi(mock).groups; |
4207 var arg_groupKey = "foo"; | 4207 var arg_groupKey = "foo"; |
4208 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4208 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4209 var path = (req.url).path; | 4209 var path = (req.url).path; |
4210 var pathOffset = 0; | 4210 var pathOffset = 0; |
4211 var index; | 4211 var index; |
4212 var subPart; | 4212 var subPart; |
4213 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4213 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4214 pathOffset += 1; | 4214 pathOffset += 1; |
4215 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4215 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4216 pathOffset += 19; | 4216 pathOffset += 19; |
4217 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); | 4217 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); |
4218 pathOffset += 7; | 4218 pathOffset += 7; |
(...skipping 18 matching lines...) Expand all Loading... |
4237 } | 4237 } |
4238 } | 4238 } |
4239 | 4239 |
4240 | 4240 |
4241 var h = { | 4241 var h = { |
4242 "content-type" : "application/json; charset=utf-8", | 4242 "content-type" : "application/json; charset=utf-8", |
4243 }; | 4243 }; |
4244 var resp = ""; | 4244 var resp = ""; |
4245 return new async.Future.value(stringResponse(200, h, resp)); | 4245 return new async.Future.value(stringResponse(200, h, resp)); |
4246 }), true); | 4246 }), true); |
4247 res.delete(arg_groupKey).then(unittest.expectAsync((_) {})); | 4247 res.delete(arg_groupKey).then(unittest.expectAsync1((_) {})); |
4248 }); | 4248 }); |
4249 | 4249 |
4250 unittest.test("method--get", () { | 4250 unittest.test("method--get", () { |
4251 | 4251 |
4252 var mock = new HttpServerMock(); | 4252 var mock = new HttpServerMock(); |
4253 api.GroupsResourceApi res = new api.AdminApi(mock).groups; | 4253 api.GroupsResourceApi res = new api.AdminApi(mock).groups; |
4254 var arg_groupKey = "foo"; | 4254 var arg_groupKey = "foo"; |
4255 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4255 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4256 var path = (req.url).path; | 4256 var path = (req.url).path; |
4257 var pathOffset = 0; | 4257 var pathOffset = 0; |
4258 var index; | 4258 var index; |
4259 var subPart; | 4259 var subPart; |
4260 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4260 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4261 pathOffset += 1; | 4261 pathOffset += 1; |
4262 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4262 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4263 pathOffset += 19; | 4263 pathOffset += 19; |
4264 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); | 4264 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); |
4265 pathOffset += 7; | 4265 pathOffset += 7; |
(...skipping 18 matching lines...) Expand all Loading... |
4284 } | 4284 } |
4285 } | 4285 } |
4286 | 4286 |
4287 | 4287 |
4288 var h = { | 4288 var h = { |
4289 "content-type" : "application/json; charset=utf-8", | 4289 "content-type" : "application/json; charset=utf-8", |
4290 }; | 4290 }; |
4291 var resp = convert.JSON.encode(buildGroup()); | 4291 var resp = convert.JSON.encode(buildGroup()); |
4292 return new async.Future.value(stringResponse(200, h, resp)); | 4292 return new async.Future.value(stringResponse(200, h, resp)); |
4293 }), true); | 4293 }), true); |
4294 res.get(arg_groupKey).then(unittest.expectAsync(((api.Group response) { | 4294 res.get(arg_groupKey).then(unittest.expectAsync1(((api.Group response) { |
4295 checkGroup(response); | 4295 checkGroup(response); |
4296 }))); | 4296 }))); |
4297 }); | 4297 }); |
4298 | 4298 |
4299 unittest.test("method--insert", () { | 4299 unittest.test("method--insert", () { |
4300 | 4300 |
4301 var mock = new HttpServerMock(); | 4301 var mock = new HttpServerMock(); |
4302 api.GroupsResourceApi res = new api.AdminApi(mock).groups; | 4302 api.GroupsResourceApi res = new api.AdminApi(mock).groups; |
4303 var arg_request = buildGroup(); | 4303 var arg_request = buildGroup(); |
4304 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4304 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4305 var obj = new api.Group.fromJson(json); | 4305 var obj = new api.Group.fromJson(json); |
4306 checkGroup(obj); | 4306 checkGroup(obj); |
4307 | 4307 |
4308 var path = (req.url).path; | 4308 var path = (req.url).path; |
4309 var pathOffset = 0; | 4309 var pathOffset = 0; |
4310 var index; | 4310 var index; |
4311 var subPart; | 4311 var subPart; |
4312 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4312 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4313 pathOffset += 1; | 4313 pathOffset += 1; |
4314 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4314 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 18 matching lines...) Expand all Loading... |
4333 } | 4333 } |
4334 } | 4334 } |
4335 | 4335 |
4336 | 4336 |
4337 var h = { | 4337 var h = { |
4338 "content-type" : "application/json; charset=utf-8", | 4338 "content-type" : "application/json; charset=utf-8", |
4339 }; | 4339 }; |
4340 var resp = convert.JSON.encode(buildGroup()); | 4340 var resp = convert.JSON.encode(buildGroup()); |
4341 return new async.Future.value(stringResponse(200, h, resp)); | 4341 return new async.Future.value(stringResponse(200, h, resp)); |
4342 }), true); | 4342 }), true); |
4343 res.insert(arg_request).then(unittest.expectAsync(((api.Group response) { | 4343 res.insert(arg_request).then(unittest.expectAsync1(((api.Group response) { |
4344 checkGroup(response); | 4344 checkGroup(response); |
4345 }))); | 4345 }))); |
4346 }); | 4346 }); |
4347 | 4347 |
4348 unittest.test("method--list", () { | 4348 unittest.test("method--list", () { |
4349 | 4349 |
4350 var mock = new HttpServerMock(); | 4350 var mock = new HttpServerMock(); |
4351 api.GroupsResourceApi res = new api.AdminApi(mock).groups; | 4351 api.GroupsResourceApi res = new api.AdminApi(mock).groups; |
4352 var arg_customer = "foo"; | 4352 var arg_customer = "foo"; |
4353 var arg_domain = "foo"; | 4353 var arg_domain = "foo"; |
4354 var arg_maxResults = 42; | 4354 var arg_maxResults = 42; |
4355 var arg_pageToken = "foo"; | 4355 var arg_pageToken = "foo"; |
4356 var arg_userKey = "foo"; | 4356 var arg_userKey = "foo"; |
4357 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4357 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4358 var path = (req.url).path; | 4358 var path = (req.url).path; |
4359 var pathOffset = 0; | 4359 var pathOffset = 0; |
4360 var index; | 4360 var index; |
4361 var subPart; | 4361 var subPart; |
4362 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4362 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4363 pathOffset += 1; | 4363 pathOffset += 1; |
4364 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4364 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4365 pathOffset += 19; | 4365 pathOffset += 19; |
4366 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("groups")); | 4366 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("groups")); |
4367 pathOffset += 6; | 4367 pathOffset += 6; |
(...skipping 20 matching lines...) Expand all Loading... |
4388 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4388 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4389 unittest.expect(queryMap["userKey"].first, unittest.equals(arg_userKey))
; | 4389 unittest.expect(queryMap["userKey"].first, unittest.equals(arg_userKey))
; |
4390 | 4390 |
4391 | 4391 |
4392 var h = { | 4392 var h = { |
4393 "content-type" : "application/json; charset=utf-8", | 4393 "content-type" : "application/json; charset=utf-8", |
4394 }; | 4394 }; |
4395 var resp = convert.JSON.encode(buildGroups()); | 4395 var resp = convert.JSON.encode(buildGroups()); |
4396 return new async.Future.value(stringResponse(200, h, resp)); | 4396 return new async.Future.value(stringResponse(200, h, resp)); |
4397 }), true); | 4397 }), true); |
4398 res.list(customer: arg_customer, domain: arg_domain, maxResults: arg_maxRe
sults, pageToken: arg_pageToken, userKey: arg_userKey).then(unittest.expectAsync
(((api.Groups response) { | 4398 res.list(customer: arg_customer, domain: arg_domain, maxResults: arg_maxRe
sults, pageToken: arg_pageToken, userKey: arg_userKey).then(unittest.expectAsync
1(((api.Groups response) { |
4399 checkGroups(response); | 4399 checkGroups(response); |
4400 }))); | 4400 }))); |
4401 }); | 4401 }); |
4402 | 4402 |
4403 unittest.test("method--patch", () { | 4403 unittest.test("method--patch", () { |
4404 | 4404 |
4405 var mock = new HttpServerMock(); | 4405 var mock = new HttpServerMock(); |
4406 api.GroupsResourceApi res = new api.AdminApi(mock).groups; | 4406 api.GroupsResourceApi res = new api.AdminApi(mock).groups; |
4407 var arg_request = buildGroup(); | 4407 var arg_request = buildGroup(); |
4408 var arg_groupKey = "foo"; | 4408 var arg_groupKey = "foo"; |
4409 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4409 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4410 var obj = new api.Group.fromJson(json); | 4410 var obj = new api.Group.fromJson(json); |
4411 checkGroup(obj); | 4411 checkGroup(obj); |
4412 | 4412 |
4413 var path = (req.url).path; | 4413 var path = (req.url).path; |
4414 var pathOffset = 0; | 4414 var pathOffset = 0; |
4415 var index; | 4415 var index; |
4416 var subPart; | 4416 var subPart; |
4417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4418 pathOffset += 1; | 4418 pathOffset += 1; |
4419 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4419 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 21 matching lines...) Expand all Loading... |
4441 } | 4441 } |
4442 } | 4442 } |
4443 | 4443 |
4444 | 4444 |
4445 var h = { | 4445 var h = { |
4446 "content-type" : "application/json; charset=utf-8", | 4446 "content-type" : "application/json; charset=utf-8", |
4447 }; | 4447 }; |
4448 var resp = convert.JSON.encode(buildGroup()); | 4448 var resp = convert.JSON.encode(buildGroup()); |
4449 return new async.Future.value(stringResponse(200, h, resp)); | 4449 return new async.Future.value(stringResponse(200, h, resp)); |
4450 }), true); | 4450 }), true); |
4451 res.patch(arg_request, arg_groupKey).then(unittest.expectAsync(((api.Group
response) { | 4451 res.patch(arg_request, arg_groupKey).then(unittest.expectAsync1(((api.Grou
p response) { |
4452 checkGroup(response); | 4452 checkGroup(response); |
4453 }))); | 4453 }))); |
4454 }); | 4454 }); |
4455 | 4455 |
4456 unittest.test("method--update", () { | 4456 unittest.test("method--update", () { |
4457 | 4457 |
4458 var mock = new HttpServerMock(); | 4458 var mock = new HttpServerMock(); |
4459 api.GroupsResourceApi res = new api.AdminApi(mock).groups; | 4459 api.GroupsResourceApi res = new api.AdminApi(mock).groups; |
4460 var arg_request = buildGroup(); | 4460 var arg_request = buildGroup(); |
4461 var arg_groupKey = "foo"; | 4461 var arg_groupKey = "foo"; |
4462 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4462 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4463 var obj = new api.Group.fromJson(json); | 4463 var obj = new api.Group.fromJson(json); |
4464 checkGroup(obj); | 4464 checkGroup(obj); |
4465 | 4465 |
4466 var path = (req.url).path; | 4466 var path = (req.url).path; |
4467 var pathOffset = 0; | 4467 var pathOffset = 0; |
4468 var index; | 4468 var index; |
4469 var subPart; | 4469 var subPart; |
4470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4471 pathOffset += 1; | 4471 pathOffset += 1; |
4472 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4472 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 21 matching lines...) Expand all Loading... |
4494 } | 4494 } |
4495 } | 4495 } |
4496 | 4496 |
4497 | 4497 |
4498 var h = { | 4498 var h = { |
4499 "content-type" : "application/json; charset=utf-8", | 4499 "content-type" : "application/json; charset=utf-8", |
4500 }; | 4500 }; |
4501 var resp = convert.JSON.encode(buildGroup()); | 4501 var resp = convert.JSON.encode(buildGroup()); |
4502 return new async.Future.value(stringResponse(200, h, resp)); | 4502 return new async.Future.value(stringResponse(200, h, resp)); |
4503 }), true); | 4503 }), true); |
4504 res.update(arg_request, arg_groupKey).then(unittest.expectAsync(((api.Grou
p response) { | 4504 res.update(arg_request, arg_groupKey).then(unittest.expectAsync1(((api.Gro
up response) { |
4505 checkGroup(response); | 4505 checkGroup(response); |
4506 }))); | 4506 }))); |
4507 }); | 4507 }); |
4508 | 4508 |
4509 }); | 4509 }); |
4510 | 4510 |
4511 | 4511 |
4512 unittest.group("resource-GroupsAliasesResourceApi", () { | 4512 unittest.group("resource-GroupsAliasesResourceApi", () { |
4513 unittest.test("method--delete", () { | 4513 unittest.test("method--delete", () { |
4514 | 4514 |
4515 var mock = new HttpServerMock(); | 4515 var mock = new HttpServerMock(); |
4516 api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; | 4516 api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; |
4517 var arg_groupKey = "foo"; | 4517 var arg_groupKey = "foo"; |
4518 var arg_alias = "foo"; | 4518 var arg_alias = "foo"; |
4519 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4519 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4520 var path = (req.url).path; | 4520 var path = (req.url).path; |
4521 var pathOffset = 0; | 4521 var pathOffset = 0; |
4522 var index; | 4522 var index; |
4523 var subPart; | 4523 var subPart; |
4524 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4524 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4525 pathOffset += 1; | 4525 pathOffset += 1; |
4526 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4526 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4527 pathOffset += 19; | 4527 pathOffset += 19; |
4528 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); | 4528 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); |
4529 pathOffset += 7; | 4529 pathOffset += 7; |
(...skipping 25 matching lines...) Expand all Loading... |
4555 } | 4555 } |
4556 } | 4556 } |
4557 | 4557 |
4558 | 4558 |
4559 var h = { | 4559 var h = { |
4560 "content-type" : "application/json; charset=utf-8", | 4560 "content-type" : "application/json; charset=utf-8", |
4561 }; | 4561 }; |
4562 var resp = ""; | 4562 var resp = ""; |
4563 return new async.Future.value(stringResponse(200, h, resp)); | 4563 return new async.Future.value(stringResponse(200, h, resp)); |
4564 }), true); | 4564 }), true); |
4565 res.delete(arg_groupKey, arg_alias).then(unittest.expectAsync((_) {})); | 4565 res.delete(arg_groupKey, arg_alias).then(unittest.expectAsync1((_) {})); |
4566 }); | 4566 }); |
4567 | 4567 |
4568 unittest.test("method--insert", () { | 4568 unittest.test("method--insert", () { |
4569 | 4569 |
4570 var mock = new HttpServerMock(); | 4570 var mock = new HttpServerMock(); |
4571 api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; | 4571 api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; |
4572 var arg_request = buildAlias(); | 4572 var arg_request = buildAlias(); |
4573 var arg_groupKey = "foo"; | 4573 var arg_groupKey = "foo"; |
4574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4574 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4575 var obj = new api.Alias.fromJson(json); | 4575 var obj = new api.Alias.fromJson(json); |
4576 checkAlias(obj); | 4576 checkAlias(obj); |
4577 | 4577 |
4578 var path = (req.url).path; | 4578 var path = (req.url).path; |
4579 var pathOffset = 0; | 4579 var pathOffset = 0; |
4580 var index; | 4580 var index; |
4581 var subPart; | 4581 var subPart; |
4582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4583 pathOffset += 1; | 4583 pathOffset += 1; |
4584 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4584 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
4610 } | 4610 } |
4611 } | 4611 } |
4612 | 4612 |
4613 | 4613 |
4614 var h = { | 4614 var h = { |
4615 "content-type" : "application/json; charset=utf-8", | 4615 "content-type" : "application/json; charset=utf-8", |
4616 }; | 4616 }; |
4617 var resp = convert.JSON.encode(buildAlias()); | 4617 var resp = convert.JSON.encode(buildAlias()); |
4618 return new async.Future.value(stringResponse(200, h, resp)); | 4618 return new async.Future.value(stringResponse(200, h, resp)); |
4619 }), true); | 4619 }), true); |
4620 res.insert(arg_request, arg_groupKey).then(unittest.expectAsync(((api.Alia
s response) { | 4620 res.insert(arg_request, arg_groupKey).then(unittest.expectAsync1(((api.Ali
as response) { |
4621 checkAlias(response); | 4621 checkAlias(response); |
4622 }))); | 4622 }))); |
4623 }); | 4623 }); |
4624 | 4624 |
4625 unittest.test("method--list", () { | 4625 unittest.test("method--list", () { |
4626 | 4626 |
4627 var mock = new HttpServerMock(); | 4627 var mock = new HttpServerMock(); |
4628 api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; | 4628 api.GroupsAliasesResourceApi res = new api.AdminApi(mock).groups.aliases; |
4629 var arg_groupKey = "foo"; | 4629 var arg_groupKey = "foo"; |
4630 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4630 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4631 var path = (req.url).path; | 4631 var path = (req.url).path; |
4632 var pathOffset = 0; | 4632 var pathOffset = 0; |
4633 var index; | 4633 var index; |
4634 var subPart; | 4634 var subPart; |
4635 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4635 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4636 pathOffset += 1; | 4636 pathOffset += 1; |
4637 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4637 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4638 pathOffset += 19; | 4638 pathOffset += 19; |
4639 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); | 4639 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); |
4640 pathOffset += 7; | 4640 pathOffset += 7; |
(...skipping 22 matching lines...) Expand all Loading... |
4663 } | 4663 } |
4664 } | 4664 } |
4665 | 4665 |
4666 | 4666 |
4667 var h = { | 4667 var h = { |
4668 "content-type" : "application/json; charset=utf-8", | 4668 "content-type" : "application/json; charset=utf-8", |
4669 }; | 4669 }; |
4670 var resp = convert.JSON.encode(buildAliases()); | 4670 var resp = convert.JSON.encode(buildAliases()); |
4671 return new async.Future.value(stringResponse(200, h, resp)); | 4671 return new async.Future.value(stringResponse(200, h, resp)); |
4672 }), true); | 4672 }), true); |
4673 res.list(arg_groupKey).then(unittest.expectAsync(((api.Aliases response) { | 4673 res.list(arg_groupKey).then(unittest.expectAsync1(((api.Aliases response)
{ |
4674 checkAliases(response); | 4674 checkAliases(response); |
4675 }))); | 4675 }))); |
4676 }); | 4676 }); |
4677 | 4677 |
4678 }); | 4678 }); |
4679 | 4679 |
4680 | 4680 |
4681 unittest.group("resource-MembersResourceApi", () { | 4681 unittest.group("resource-MembersResourceApi", () { |
4682 unittest.test("method--delete", () { | 4682 unittest.test("method--delete", () { |
4683 | 4683 |
4684 var mock = new HttpServerMock(); | 4684 var mock = new HttpServerMock(); |
4685 api.MembersResourceApi res = new api.AdminApi(mock).members; | 4685 api.MembersResourceApi res = new api.AdminApi(mock).members; |
4686 var arg_groupKey = "foo"; | 4686 var arg_groupKey = "foo"; |
4687 var arg_memberKey = "foo"; | 4687 var arg_memberKey = "foo"; |
4688 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4688 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4689 var path = (req.url).path; | 4689 var path = (req.url).path; |
4690 var pathOffset = 0; | 4690 var pathOffset = 0; |
4691 var index; | 4691 var index; |
4692 var subPart; | 4692 var subPart; |
4693 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4693 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4694 pathOffset += 1; | 4694 pathOffset += 1; |
4695 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4695 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4696 pathOffset += 19; | 4696 pathOffset += 19; |
4697 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); | 4697 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); |
4698 pathOffset += 7; | 4698 pathOffset += 7; |
(...skipping 25 matching lines...) Expand all Loading... |
4724 } | 4724 } |
4725 } | 4725 } |
4726 | 4726 |
4727 | 4727 |
4728 var h = { | 4728 var h = { |
4729 "content-type" : "application/json; charset=utf-8", | 4729 "content-type" : "application/json; charset=utf-8", |
4730 }; | 4730 }; |
4731 var resp = ""; | 4731 var resp = ""; |
4732 return new async.Future.value(stringResponse(200, h, resp)); | 4732 return new async.Future.value(stringResponse(200, h, resp)); |
4733 }), true); | 4733 }), true); |
4734 res.delete(arg_groupKey, arg_memberKey).then(unittest.expectAsync((_) {}))
; | 4734 res.delete(arg_groupKey, arg_memberKey).then(unittest.expectAsync1((_) {})
); |
4735 }); | 4735 }); |
4736 | 4736 |
4737 unittest.test("method--get", () { | 4737 unittest.test("method--get", () { |
4738 | 4738 |
4739 var mock = new HttpServerMock(); | 4739 var mock = new HttpServerMock(); |
4740 api.MembersResourceApi res = new api.AdminApi(mock).members; | 4740 api.MembersResourceApi res = new api.AdminApi(mock).members; |
4741 var arg_groupKey = "foo"; | 4741 var arg_groupKey = "foo"; |
4742 var arg_memberKey = "foo"; | 4742 var arg_memberKey = "foo"; |
4743 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4743 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4744 var path = (req.url).path; | 4744 var path = (req.url).path; |
4745 var pathOffset = 0; | 4745 var pathOffset = 0; |
4746 var index; | 4746 var index; |
4747 var subPart; | 4747 var subPart; |
4748 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4748 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4749 pathOffset += 1; | 4749 pathOffset += 1; |
4750 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4750 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4751 pathOffset += 19; | 4751 pathOffset += 19; |
4752 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); | 4752 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); |
4753 pathOffset += 7; | 4753 pathOffset += 7; |
(...skipping 25 matching lines...) Expand all Loading... |
4779 } | 4779 } |
4780 } | 4780 } |
4781 | 4781 |
4782 | 4782 |
4783 var h = { | 4783 var h = { |
4784 "content-type" : "application/json; charset=utf-8", | 4784 "content-type" : "application/json; charset=utf-8", |
4785 }; | 4785 }; |
4786 var resp = convert.JSON.encode(buildMember()); | 4786 var resp = convert.JSON.encode(buildMember()); |
4787 return new async.Future.value(stringResponse(200, h, resp)); | 4787 return new async.Future.value(stringResponse(200, h, resp)); |
4788 }), true); | 4788 }), true); |
4789 res.get(arg_groupKey, arg_memberKey).then(unittest.expectAsync(((api.Membe
r response) { | 4789 res.get(arg_groupKey, arg_memberKey).then(unittest.expectAsync1(((api.Memb
er response) { |
4790 checkMember(response); | 4790 checkMember(response); |
4791 }))); | 4791 }))); |
4792 }); | 4792 }); |
4793 | 4793 |
4794 unittest.test("method--insert", () { | 4794 unittest.test("method--insert", () { |
4795 | 4795 |
4796 var mock = new HttpServerMock(); | 4796 var mock = new HttpServerMock(); |
4797 api.MembersResourceApi res = new api.AdminApi(mock).members; | 4797 api.MembersResourceApi res = new api.AdminApi(mock).members; |
4798 var arg_request = buildMember(); | 4798 var arg_request = buildMember(); |
4799 var arg_groupKey = "foo"; | 4799 var arg_groupKey = "foo"; |
4800 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4800 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4801 var obj = new api.Member.fromJson(json); | 4801 var obj = new api.Member.fromJson(json); |
4802 checkMember(obj); | 4802 checkMember(obj); |
4803 | 4803 |
4804 var path = (req.url).path; | 4804 var path = (req.url).path; |
4805 var pathOffset = 0; | 4805 var pathOffset = 0; |
4806 var index; | 4806 var index; |
4807 var subPart; | 4807 var subPart; |
4808 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4808 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4809 pathOffset += 1; | 4809 pathOffset += 1; |
4810 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4810 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
4836 } | 4836 } |
4837 } | 4837 } |
4838 | 4838 |
4839 | 4839 |
4840 var h = { | 4840 var h = { |
4841 "content-type" : "application/json; charset=utf-8", | 4841 "content-type" : "application/json; charset=utf-8", |
4842 }; | 4842 }; |
4843 var resp = convert.JSON.encode(buildMember()); | 4843 var resp = convert.JSON.encode(buildMember()); |
4844 return new async.Future.value(stringResponse(200, h, resp)); | 4844 return new async.Future.value(stringResponse(200, h, resp)); |
4845 }), true); | 4845 }), true); |
4846 res.insert(arg_request, arg_groupKey).then(unittest.expectAsync(((api.Memb
er response) { | 4846 res.insert(arg_request, arg_groupKey).then(unittest.expectAsync1(((api.Mem
ber response) { |
4847 checkMember(response); | 4847 checkMember(response); |
4848 }))); | 4848 }))); |
4849 }); | 4849 }); |
4850 | 4850 |
4851 unittest.test("method--list", () { | 4851 unittest.test("method--list", () { |
4852 | 4852 |
4853 var mock = new HttpServerMock(); | 4853 var mock = new HttpServerMock(); |
4854 api.MembersResourceApi res = new api.AdminApi(mock).members; | 4854 api.MembersResourceApi res = new api.AdminApi(mock).members; |
4855 var arg_groupKey = "foo"; | 4855 var arg_groupKey = "foo"; |
4856 var arg_maxResults = 42; | 4856 var arg_maxResults = 42; |
4857 var arg_pageToken = "foo"; | 4857 var arg_pageToken = "foo"; |
4858 var arg_roles = "foo"; | 4858 var arg_roles = "foo"; |
4859 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4859 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4860 var path = (req.url).path; | 4860 var path = (req.url).path; |
4861 var pathOffset = 0; | 4861 var pathOffset = 0; |
4862 var index; | 4862 var index; |
4863 var subPart; | 4863 var subPart; |
4864 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4864 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4865 pathOffset += 1; | 4865 pathOffset += 1; |
4866 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4866 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4867 pathOffset += 19; | 4867 pathOffset += 19; |
4868 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); | 4868 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("groups/")); |
4869 pathOffset += 7; | 4869 pathOffset += 7; |
(...skipping 25 matching lines...) Expand all Loading... |
4895 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4895 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4896 unittest.expect(queryMap["roles"].first, unittest.equals(arg_roles)); | 4896 unittest.expect(queryMap["roles"].first, unittest.equals(arg_roles)); |
4897 | 4897 |
4898 | 4898 |
4899 var h = { | 4899 var h = { |
4900 "content-type" : "application/json; charset=utf-8", | 4900 "content-type" : "application/json; charset=utf-8", |
4901 }; | 4901 }; |
4902 var resp = convert.JSON.encode(buildMembers()); | 4902 var resp = convert.JSON.encode(buildMembers()); |
4903 return new async.Future.value(stringResponse(200, h, resp)); | 4903 return new async.Future.value(stringResponse(200, h, resp)); |
4904 }), true); | 4904 }), true); |
4905 res.list(arg_groupKey, maxResults: arg_maxResults, pageToken: arg_pageToke
n, roles: arg_roles).then(unittest.expectAsync(((api.Members response) { | 4905 res.list(arg_groupKey, maxResults: arg_maxResults, pageToken: arg_pageToke
n, roles: arg_roles).then(unittest.expectAsync1(((api.Members response) { |
4906 checkMembers(response); | 4906 checkMembers(response); |
4907 }))); | 4907 }))); |
4908 }); | 4908 }); |
4909 | 4909 |
4910 unittest.test("method--patch", () { | 4910 unittest.test("method--patch", () { |
4911 | 4911 |
4912 var mock = new HttpServerMock(); | 4912 var mock = new HttpServerMock(); |
4913 api.MembersResourceApi res = new api.AdminApi(mock).members; | 4913 api.MembersResourceApi res = new api.AdminApi(mock).members; |
4914 var arg_request = buildMember(); | 4914 var arg_request = buildMember(); |
4915 var arg_groupKey = "foo"; | 4915 var arg_groupKey = "foo"; |
4916 var arg_memberKey = "foo"; | 4916 var arg_memberKey = "foo"; |
4917 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4917 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4918 var obj = new api.Member.fromJson(json); | 4918 var obj = new api.Member.fromJson(json); |
4919 checkMember(obj); | 4919 checkMember(obj); |
4920 | 4920 |
4921 var path = (req.url).path; | 4921 var path = (req.url).path; |
4922 var pathOffset = 0; | 4922 var pathOffset = 0; |
4923 var index; | 4923 var index; |
4924 var subPart; | 4924 var subPart; |
4925 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4925 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4926 pathOffset += 1; | 4926 pathOffset += 1; |
4927 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4927 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
4956 } | 4956 } |
4957 } | 4957 } |
4958 | 4958 |
4959 | 4959 |
4960 var h = { | 4960 var h = { |
4961 "content-type" : "application/json; charset=utf-8", | 4961 "content-type" : "application/json; charset=utf-8", |
4962 }; | 4962 }; |
4963 var resp = convert.JSON.encode(buildMember()); | 4963 var resp = convert.JSON.encode(buildMember()); |
4964 return new async.Future.value(stringResponse(200, h, resp)); | 4964 return new async.Future.value(stringResponse(200, h, resp)); |
4965 }), true); | 4965 }), true); |
4966 res.patch(arg_request, arg_groupKey, arg_memberKey).then(unittest.expectAs
ync(((api.Member response) { | 4966 res.patch(arg_request, arg_groupKey, arg_memberKey).then(unittest.expectAs
ync1(((api.Member response) { |
4967 checkMember(response); | 4967 checkMember(response); |
4968 }))); | 4968 }))); |
4969 }); | 4969 }); |
4970 | 4970 |
4971 unittest.test("method--update", () { | 4971 unittest.test("method--update", () { |
4972 | 4972 |
4973 var mock = new HttpServerMock(); | 4973 var mock = new HttpServerMock(); |
4974 api.MembersResourceApi res = new api.AdminApi(mock).members; | 4974 api.MembersResourceApi res = new api.AdminApi(mock).members; |
4975 var arg_request = buildMember(); | 4975 var arg_request = buildMember(); |
4976 var arg_groupKey = "foo"; | 4976 var arg_groupKey = "foo"; |
4977 var arg_memberKey = "foo"; | 4977 var arg_memberKey = "foo"; |
4978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4978 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4979 var obj = new api.Member.fromJson(json); | 4979 var obj = new api.Member.fromJson(json); |
4980 checkMember(obj); | 4980 checkMember(obj); |
4981 | 4981 |
4982 var path = (req.url).path; | 4982 var path = (req.url).path; |
4983 var pathOffset = 0; | 4983 var pathOffset = 0; |
4984 var index; | 4984 var index; |
4985 var subPart; | 4985 var subPart; |
4986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4987 pathOffset += 1; | 4987 pathOffset += 1; |
4988 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4988 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
5017 } | 5017 } |
5018 } | 5018 } |
5019 | 5019 |
5020 | 5020 |
5021 var h = { | 5021 var h = { |
5022 "content-type" : "application/json; charset=utf-8", | 5022 "content-type" : "application/json; charset=utf-8", |
5023 }; | 5023 }; |
5024 var resp = convert.JSON.encode(buildMember()); | 5024 var resp = convert.JSON.encode(buildMember()); |
5025 return new async.Future.value(stringResponse(200, h, resp)); | 5025 return new async.Future.value(stringResponse(200, h, resp)); |
5026 }), true); | 5026 }), true); |
5027 res.update(arg_request, arg_groupKey, arg_memberKey).then(unittest.expectA
sync(((api.Member response) { | 5027 res.update(arg_request, arg_groupKey, arg_memberKey).then(unittest.expectA
sync1(((api.Member response) { |
5028 checkMember(response); | 5028 checkMember(response); |
5029 }))); | 5029 }))); |
5030 }); | 5030 }); |
5031 | 5031 |
5032 }); | 5032 }); |
5033 | 5033 |
5034 | 5034 |
5035 unittest.group("resource-MobiledevicesResourceApi", () { | 5035 unittest.group("resource-MobiledevicesResourceApi", () { |
5036 unittest.test("method--action", () { | 5036 unittest.test("method--action", () { |
5037 | 5037 |
5038 var mock = new HttpServerMock(); | 5038 var mock = new HttpServerMock(); |
5039 api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; | 5039 api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; |
5040 var arg_request = buildMobileDeviceAction(); | 5040 var arg_request = buildMobileDeviceAction(); |
5041 var arg_customerId = "foo"; | 5041 var arg_customerId = "foo"; |
5042 var arg_resourceId = "foo"; | 5042 var arg_resourceId = "foo"; |
5043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5043 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5044 var obj = new api.MobileDeviceAction.fromJson(json); | 5044 var obj = new api.MobileDeviceAction.fromJson(json); |
5045 checkMobileDeviceAction(obj); | 5045 checkMobileDeviceAction(obj); |
5046 | 5046 |
5047 var path = (req.url).path; | 5047 var path = (req.url).path; |
5048 var pathOffset = 0; | 5048 var pathOffset = 0; |
5049 var index; | 5049 var index; |
5050 var subPart; | 5050 var subPart; |
5051 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5051 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5052 pathOffset += 1; | 5052 pathOffset += 1; |
5053 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5053 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5086 } | 5086 } |
5087 } | 5087 } |
5088 | 5088 |
5089 | 5089 |
5090 var h = { | 5090 var h = { |
5091 "content-type" : "application/json; charset=utf-8", | 5091 "content-type" : "application/json; charset=utf-8", |
5092 }; | 5092 }; |
5093 var resp = ""; | 5093 var resp = ""; |
5094 return new async.Future.value(stringResponse(200, h, resp)); | 5094 return new async.Future.value(stringResponse(200, h, resp)); |
5095 }), true); | 5095 }), true); |
5096 res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expe
ctAsync((_) {})); | 5096 res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expe
ctAsync1((_) {})); |
5097 }); | 5097 }); |
5098 | 5098 |
5099 unittest.test("method--delete", () { | 5099 unittest.test("method--delete", () { |
5100 | 5100 |
5101 var mock = new HttpServerMock(); | 5101 var mock = new HttpServerMock(); |
5102 api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; | 5102 api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; |
5103 var arg_customerId = "foo"; | 5103 var arg_customerId = "foo"; |
5104 var arg_resourceId = "foo"; | 5104 var arg_resourceId = "foo"; |
5105 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5105 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5106 var path = (req.url).path; | 5106 var path = (req.url).path; |
5107 var pathOffset = 0; | 5107 var pathOffset = 0; |
5108 var index; | 5108 var index; |
5109 var subPart; | 5109 var subPart; |
5110 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5110 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5111 pathOffset += 1; | 5111 pathOffset += 1; |
5112 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5112 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5113 pathOffset += 19; | 5113 pathOffset += 19; |
5114 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5114 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5115 pathOffset += 9; | 5115 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
5141 } | 5141 } |
5142 } | 5142 } |
5143 | 5143 |
5144 | 5144 |
5145 var h = { | 5145 var h = { |
5146 "content-type" : "application/json; charset=utf-8", | 5146 "content-type" : "application/json; charset=utf-8", |
5147 }; | 5147 }; |
5148 var resp = ""; | 5148 var resp = ""; |
5149 return new async.Future.value(stringResponse(200, h, resp)); | 5149 return new async.Future.value(stringResponse(200, h, resp)); |
5150 }), true); | 5150 }), true); |
5151 res.delete(arg_customerId, arg_resourceId).then(unittest.expectAsync((_) {
})); | 5151 res.delete(arg_customerId, arg_resourceId).then(unittest.expectAsync1((_)
{})); |
5152 }); | 5152 }); |
5153 | 5153 |
5154 unittest.test("method--get", () { | 5154 unittest.test("method--get", () { |
5155 | 5155 |
5156 var mock = new HttpServerMock(); | 5156 var mock = new HttpServerMock(); |
5157 api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; | 5157 api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; |
5158 var arg_customerId = "foo"; | 5158 var arg_customerId = "foo"; |
5159 var arg_resourceId = "foo"; | 5159 var arg_resourceId = "foo"; |
5160 var arg_projection = "foo"; | 5160 var arg_projection = "foo"; |
5161 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5161 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5162 var path = (req.url).path; | 5162 var path = (req.url).path; |
5163 var pathOffset = 0; | 5163 var pathOffset = 0; |
5164 var index; | 5164 var index; |
5165 var subPart; | 5165 var subPart; |
5166 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5166 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5167 pathOffset += 1; | 5167 pathOffset += 1; |
5168 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5168 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5169 pathOffset += 19; | 5169 pathOffset += 19; |
5170 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5170 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5171 pathOffset += 9; | 5171 pathOffset += 9; |
(...skipping 26 matching lines...) Expand all Loading... |
5198 } | 5198 } |
5199 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); | 5199 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); |
5200 | 5200 |
5201 | 5201 |
5202 var h = { | 5202 var h = { |
5203 "content-type" : "application/json; charset=utf-8", | 5203 "content-type" : "application/json; charset=utf-8", |
5204 }; | 5204 }; |
5205 var resp = convert.JSON.encode(buildMobileDevice()); | 5205 var resp = convert.JSON.encode(buildMobileDevice()); |
5206 return new async.Future.value(stringResponse(200, h, resp)); | 5206 return new async.Future.value(stringResponse(200, h, resp)); |
5207 }), true); | 5207 }), true); |
5208 res.get(arg_customerId, arg_resourceId, projection: arg_projection).then(u
nittest.expectAsync(((api.MobileDevice response) { | 5208 res.get(arg_customerId, arg_resourceId, projection: arg_projection).then(u
nittest.expectAsync1(((api.MobileDevice response) { |
5209 checkMobileDevice(response); | 5209 checkMobileDevice(response); |
5210 }))); | 5210 }))); |
5211 }); | 5211 }); |
5212 | 5212 |
5213 unittest.test("method--list", () { | 5213 unittest.test("method--list", () { |
5214 | 5214 |
5215 var mock = new HttpServerMock(); | 5215 var mock = new HttpServerMock(); |
5216 api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; | 5216 api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; |
5217 var arg_customerId = "foo"; | 5217 var arg_customerId = "foo"; |
5218 var arg_maxResults = 42; | 5218 var arg_maxResults = 42; |
5219 var arg_orderBy = "foo"; | 5219 var arg_orderBy = "foo"; |
5220 var arg_pageToken = "foo"; | 5220 var arg_pageToken = "foo"; |
5221 var arg_projection = "foo"; | 5221 var arg_projection = "foo"; |
5222 var arg_query = "foo"; | 5222 var arg_query = "foo"; |
5223 var arg_sortOrder = "foo"; | 5223 var arg_sortOrder = "foo"; |
5224 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5224 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5225 var path = (req.url).path; | 5225 var path = (req.url).path; |
5226 var pathOffset = 0; | 5226 var pathOffset = 0; |
5227 var index; | 5227 var index; |
5228 var subPart; | 5228 var subPart; |
5229 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5229 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5230 pathOffset += 1; | 5230 pathOffset += 1; |
5231 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5231 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5232 pathOffset += 19; | 5232 pathOffset += 19; |
5233 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5233 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5234 pathOffset += 9; | 5234 pathOffset += 9; |
(...skipping 28 matching lines...) Expand all Loading... |
5263 unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); | 5263 unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); |
5264 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 5264 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
5265 | 5265 |
5266 | 5266 |
5267 var h = { | 5267 var h = { |
5268 "content-type" : "application/json; charset=utf-8", | 5268 "content-type" : "application/json; charset=utf-8", |
5269 }; | 5269 }; |
5270 var resp = convert.JSON.encode(buildMobileDevices()); | 5270 var resp = convert.JSON.encode(buildMobileDevices()); |
5271 return new async.Future.value(stringResponse(200, h, resp)); | 5271 return new async.Future.value(stringResponse(200, h, resp)); |
5272 }), true); | 5272 }), true); |
5273 res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy,
pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sortOrd
er: arg_sortOrder).then(unittest.expectAsync(((api.MobileDevices response) { | 5273 res.list(arg_customerId, maxResults: arg_maxResults, orderBy: arg_orderBy,
pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sortOrd
er: arg_sortOrder).then(unittest.expectAsync1(((api.MobileDevices response) { |
5274 checkMobileDevices(response); | 5274 checkMobileDevices(response); |
5275 }))); | 5275 }))); |
5276 }); | 5276 }); |
5277 | 5277 |
5278 }); | 5278 }); |
5279 | 5279 |
5280 | 5280 |
5281 unittest.group("resource-NotificationsResourceApi", () { | 5281 unittest.group("resource-NotificationsResourceApi", () { |
5282 unittest.test("method--delete", () { | 5282 unittest.test("method--delete", () { |
5283 | 5283 |
5284 var mock = new HttpServerMock(); | 5284 var mock = new HttpServerMock(); |
5285 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; | 5285 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; |
5286 var arg_customer = "foo"; | 5286 var arg_customer = "foo"; |
5287 var arg_notificationId = "foo"; | 5287 var arg_notificationId = "foo"; |
5288 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5288 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5289 var path = (req.url).path; | 5289 var path = (req.url).path; |
5290 var pathOffset = 0; | 5290 var pathOffset = 0; |
5291 var index; | 5291 var index; |
5292 var subPart; | 5292 var subPart; |
5293 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5293 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5294 pathOffset += 1; | 5294 pathOffset += 1; |
5295 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5295 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5296 pathOffset += 19; | 5296 pathOffset += 19; |
5297 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5297 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5298 pathOffset += 9; | 5298 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
5324 } | 5324 } |
5325 } | 5325 } |
5326 | 5326 |
5327 | 5327 |
5328 var h = { | 5328 var h = { |
5329 "content-type" : "application/json; charset=utf-8", | 5329 "content-type" : "application/json; charset=utf-8", |
5330 }; | 5330 }; |
5331 var resp = ""; | 5331 var resp = ""; |
5332 return new async.Future.value(stringResponse(200, h, resp)); | 5332 return new async.Future.value(stringResponse(200, h, resp)); |
5333 }), true); | 5333 }), true); |
5334 res.delete(arg_customer, arg_notificationId).then(unittest.expectAsync((_)
{})); | 5334 res.delete(arg_customer, arg_notificationId).then(unittest.expectAsync1((_
) {})); |
5335 }); | 5335 }); |
5336 | 5336 |
5337 unittest.test("method--get", () { | 5337 unittest.test("method--get", () { |
5338 | 5338 |
5339 var mock = new HttpServerMock(); | 5339 var mock = new HttpServerMock(); |
5340 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; | 5340 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; |
5341 var arg_customer = "foo"; | 5341 var arg_customer = "foo"; |
5342 var arg_notificationId = "foo"; | 5342 var arg_notificationId = "foo"; |
5343 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5343 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5344 var path = (req.url).path; | 5344 var path = (req.url).path; |
5345 var pathOffset = 0; | 5345 var pathOffset = 0; |
5346 var index; | 5346 var index; |
5347 var subPart; | 5347 var subPart; |
5348 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5348 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5349 pathOffset += 1; | 5349 pathOffset += 1; |
5350 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5350 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5351 pathOffset += 19; | 5351 pathOffset += 19; |
5352 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5352 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5353 pathOffset += 9; | 5353 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
5379 } | 5379 } |
5380 } | 5380 } |
5381 | 5381 |
5382 | 5382 |
5383 var h = { | 5383 var h = { |
5384 "content-type" : "application/json; charset=utf-8", | 5384 "content-type" : "application/json; charset=utf-8", |
5385 }; | 5385 }; |
5386 var resp = convert.JSON.encode(buildNotification()); | 5386 var resp = convert.JSON.encode(buildNotification()); |
5387 return new async.Future.value(stringResponse(200, h, resp)); | 5387 return new async.Future.value(stringResponse(200, h, resp)); |
5388 }), true); | 5388 }), true); |
5389 res.get(arg_customer, arg_notificationId).then(unittest.expectAsync(((api.
Notification response) { | 5389 res.get(arg_customer, arg_notificationId).then(unittest.expectAsync1(((api
.Notification response) { |
5390 checkNotification(response); | 5390 checkNotification(response); |
5391 }))); | 5391 }))); |
5392 }); | 5392 }); |
5393 | 5393 |
5394 unittest.test("method--list", () { | 5394 unittest.test("method--list", () { |
5395 | 5395 |
5396 var mock = new HttpServerMock(); | 5396 var mock = new HttpServerMock(); |
5397 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; | 5397 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; |
5398 var arg_customer = "foo"; | 5398 var arg_customer = "foo"; |
5399 var arg_language = "foo"; | 5399 var arg_language = "foo"; |
5400 var arg_maxResults = 42; | 5400 var arg_maxResults = 42; |
5401 var arg_pageToken = "foo"; | 5401 var arg_pageToken = "foo"; |
5402 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5402 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5403 var path = (req.url).path; | 5403 var path = (req.url).path; |
5404 var pathOffset = 0; | 5404 var pathOffset = 0; |
5405 var index; | 5405 var index; |
5406 var subPart; | 5406 var subPart; |
5407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5408 pathOffset += 1; | 5408 pathOffset += 1; |
5409 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5409 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5410 pathOffset += 19; | 5410 pathOffset += 19; |
5411 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5411 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5412 pathOffset += 9; | 5412 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
5438 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5438 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
5439 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5439 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5440 | 5440 |
5441 | 5441 |
5442 var h = { | 5442 var h = { |
5443 "content-type" : "application/json; charset=utf-8", | 5443 "content-type" : "application/json; charset=utf-8", |
5444 }; | 5444 }; |
5445 var resp = convert.JSON.encode(buildNotifications()); | 5445 var resp = convert.JSON.encode(buildNotifications()); |
5446 return new async.Future.value(stringResponse(200, h, resp)); | 5446 return new async.Future.value(stringResponse(200, h, resp)); |
5447 }), true); | 5447 }), true); |
5448 res.list(arg_customer, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync(((api.Notifications respons
e) { | 5448 res.list(arg_customer, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Notifications respon
se) { |
5449 checkNotifications(response); | 5449 checkNotifications(response); |
5450 }))); | 5450 }))); |
5451 }); | 5451 }); |
5452 | 5452 |
5453 unittest.test("method--patch", () { | 5453 unittest.test("method--patch", () { |
5454 | 5454 |
5455 var mock = new HttpServerMock(); | 5455 var mock = new HttpServerMock(); |
5456 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; | 5456 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; |
5457 var arg_request = buildNotification(); | 5457 var arg_request = buildNotification(); |
5458 var arg_customer = "foo"; | 5458 var arg_customer = "foo"; |
5459 var arg_notificationId = "foo"; | 5459 var arg_notificationId = "foo"; |
5460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5460 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5461 var obj = new api.Notification.fromJson(json); | 5461 var obj = new api.Notification.fromJson(json); |
5462 checkNotification(obj); | 5462 checkNotification(obj); |
5463 | 5463 |
5464 var path = (req.url).path; | 5464 var path = (req.url).path; |
5465 var pathOffset = 0; | 5465 var pathOffset = 0; |
5466 var index; | 5466 var index; |
5467 var subPart; | 5467 var subPart; |
5468 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5468 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5469 pathOffset += 1; | 5469 pathOffset += 1; |
5470 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5470 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
5499 } | 5499 } |
5500 } | 5500 } |
5501 | 5501 |
5502 | 5502 |
5503 var h = { | 5503 var h = { |
5504 "content-type" : "application/json; charset=utf-8", | 5504 "content-type" : "application/json; charset=utf-8", |
5505 }; | 5505 }; |
5506 var resp = convert.JSON.encode(buildNotification()); | 5506 var resp = convert.JSON.encode(buildNotification()); |
5507 return new async.Future.value(stringResponse(200, h, resp)); | 5507 return new async.Future.value(stringResponse(200, h, resp)); |
5508 }), true); | 5508 }), true); |
5509 res.patch(arg_request, arg_customer, arg_notificationId).then(unittest.exp
ectAsync(((api.Notification response) { | 5509 res.patch(arg_request, arg_customer, arg_notificationId).then(unittest.exp
ectAsync1(((api.Notification response) { |
5510 checkNotification(response); | 5510 checkNotification(response); |
5511 }))); | 5511 }))); |
5512 }); | 5512 }); |
5513 | 5513 |
5514 unittest.test("method--update", () { | 5514 unittest.test("method--update", () { |
5515 | 5515 |
5516 var mock = new HttpServerMock(); | 5516 var mock = new HttpServerMock(); |
5517 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; | 5517 api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; |
5518 var arg_request = buildNotification(); | 5518 var arg_request = buildNotification(); |
5519 var arg_customer = "foo"; | 5519 var arg_customer = "foo"; |
5520 var arg_notificationId = "foo"; | 5520 var arg_notificationId = "foo"; |
5521 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5521 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5522 var obj = new api.Notification.fromJson(json); | 5522 var obj = new api.Notification.fromJson(json); |
5523 checkNotification(obj); | 5523 checkNotification(obj); |
5524 | 5524 |
5525 var path = (req.url).path; | 5525 var path = (req.url).path; |
5526 var pathOffset = 0; | 5526 var pathOffset = 0; |
5527 var index; | 5527 var index; |
5528 var subPart; | 5528 var subPart; |
5529 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5529 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5530 pathOffset += 1; | 5530 pathOffset += 1; |
5531 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5531 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
5560 } | 5560 } |
5561 } | 5561 } |
5562 | 5562 |
5563 | 5563 |
5564 var h = { | 5564 var h = { |
5565 "content-type" : "application/json; charset=utf-8", | 5565 "content-type" : "application/json; charset=utf-8", |
5566 }; | 5566 }; |
5567 var resp = convert.JSON.encode(buildNotification()); | 5567 var resp = convert.JSON.encode(buildNotification()); |
5568 return new async.Future.value(stringResponse(200, h, resp)); | 5568 return new async.Future.value(stringResponse(200, h, resp)); |
5569 }), true); | 5569 }), true); |
5570 res.update(arg_request, arg_customer, arg_notificationId).then(unittest.ex
pectAsync(((api.Notification response) { | 5570 res.update(arg_request, arg_customer, arg_notificationId).then(unittest.ex
pectAsync1(((api.Notification response) { |
5571 checkNotification(response); | 5571 checkNotification(response); |
5572 }))); | 5572 }))); |
5573 }); | 5573 }); |
5574 | 5574 |
5575 }); | 5575 }); |
5576 | 5576 |
5577 | 5577 |
5578 unittest.group("resource-OrgunitsResourceApi", () { | 5578 unittest.group("resource-OrgunitsResourceApi", () { |
5579 unittest.test("method--delete", () { | 5579 unittest.test("method--delete", () { |
5580 | 5580 |
5581 var mock = new HttpServerMock(); | 5581 var mock = new HttpServerMock(); |
5582 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 5582 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
5583 var arg_customerId = "foo"; | 5583 var arg_customerId = "foo"; |
5584 var arg_orgUnitPath = buildUnnamed768(); | 5584 var arg_orgUnitPath = buildUnnamed775(); |
5585 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5585 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5586 var path = (req.url).path; | 5586 var path = (req.url).path; |
5587 var pathOffset = 0; | 5587 var pathOffset = 0; |
5588 var index; | 5588 var index; |
5589 var subPart; | 5589 var subPart; |
5590 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5590 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5591 pathOffset += 1; | 5591 pathOffset += 1; |
5592 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5592 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5593 pathOffset += 19; | 5593 pathOffset += 19; |
5594 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5594 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5595 pathOffset += 9; | 5595 pathOffset += 9; |
(...skipping 24 matching lines...) Expand all Loading... |
5620 } | 5620 } |
5621 } | 5621 } |
5622 | 5622 |
5623 | 5623 |
5624 var h = { | 5624 var h = { |
5625 "content-type" : "application/json; charset=utf-8", | 5625 "content-type" : "application/json; charset=utf-8", |
5626 }; | 5626 }; |
5627 var resp = ""; | 5627 var resp = ""; |
5628 return new async.Future.value(stringResponse(200, h, resp)); | 5628 return new async.Future.value(stringResponse(200, h, resp)); |
5629 }), true); | 5629 }), true); |
5630 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_)
{})); | 5630 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1((_)
{})); |
5631 }); | 5631 }); |
5632 | 5632 |
5633 unittest.test("method--get", () { | 5633 unittest.test("method--get", () { |
5634 | 5634 |
5635 var mock = new HttpServerMock(); | 5635 var mock = new HttpServerMock(); |
5636 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 5636 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
5637 var arg_customerId = "foo"; | 5637 var arg_customerId = "foo"; |
5638 var arg_orgUnitPath = buildUnnamed769(); | 5638 var arg_orgUnitPath = buildUnnamed776(); |
5639 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5639 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5640 var path = (req.url).path; | 5640 var path = (req.url).path; |
5641 var pathOffset = 0; | 5641 var pathOffset = 0; |
5642 var index; | 5642 var index; |
5643 var subPart; | 5643 var subPart; |
5644 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5644 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5645 pathOffset += 1; | 5645 pathOffset += 1; |
5646 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5646 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5647 pathOffset += 19; | 5647 pathOffset += 19; |
5648 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5648 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5649 pathOffset += 9; | 5649 pathOffset += 9; |
(...skipping 24 matching lines...) Expand all Loading... |
5674 } | 5674 } |
5675 } | 5675 } |
5676 | 5676 |
5677 | 5677 |
5678 var h = { | 5678 var h = { |
5679 "content-type" : "application/json; charset=utf-8", | 5679 "content-type" : "application/json; charset=utf-8", |
5680 }; | 5680 }; |
5681 var resp = convert.JSON.encode(buildOrgUnit()); | 5681 var resp = convert.JSON.encode(buildOrgUnit()); |
5682 return new async.Future.value(stringResponse(200, h, resp)); | 5682 return new async.Future.value(stringResponse(200, h, resp)); |
5683 }), true); | 5683 }), true); |
5684 res.get(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync(((api.O
rgUnit response) { | 5684 res.get(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1(((api.
OrgUnit response) { |
5685 checkOrgUnit(response); | 5685 checkOrgUnit(response); |
5686 }))); | 5686 }))); |
5687 }); | 5687 }); |
5688 | 5688 |
5689 unittest.test("method--insert", () { | 5689 unittest.test("method--insert", () { |
5690 | 5690 |
5691 var mock = new HttpServerMock(); | 5691 var mock = new HttpServerMock(); |
5692 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 5692 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
5693 var arg_request = buildOrgUnit(); | 5693 var arg_request = buildOrgUnit(); |
5694 var arg_customerId = "foo"; | 5694 var arg_customerId = "foo"; |
5695 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5695 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5696 var obj = new api.OrgUnit.fromJson(json); | 5696 var obj = new api.OrgUnit.fromJson(json); |
5697 checkOrgUnit(obj); | 5697 checkOrgUnit(obj); |
5698 | 5698 |
5699 var path = (req.url).path; | 5699 var path = (req.url).path; |
5700 var pathOffset = 0; | 5700 var pathOffset = 0; |
5701 var index; | 5701 var index; |
5702 var subPart; | 5702 var subPart; |
5703 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5703 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5704 pathOffset += 1; | 5704 pathOffset += 1; |
5705 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5705 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
5731 } | 5731 } |
5732 } | 5732 } |
5733 | 5733 |
5734 | 5734 |
5735 var h = { | 5735 var h = { |
5736 "content-type" : "application/json; charset=utf-8", | 5736 "content-type" : "application/json; charset=utf-8", |
5737 }; | 5737 }; |
5738 var resp = convert.JSON.encode(buildOrgUnit()); | 5738 var resp = convert.JSON.encode(buildOrgUnit()); |
5739 return new async.Future.value(stringResponse(200, h, resp)); | 5739 return new async.Future.value(stringResponse(200, h, resp)); |
5740 }), true); | 5740 }), true); |
5741 res.insert(arg_request, arg_customerId).then(unittest.expectAsync(((api.Or
gUnit response) { | 5741 res.insert(arg_request, arg_customerId).then(unittest.expectAsync1(((api.O
rgUnit response) { |
5742 checkOrgUnit(response); | 5742 checkOrgUnit(response); |
5743 }))); | 5743 }))); |
5744 }); | 5744 }); |
5745 | 5745 |
5746 unittest.test("method--list", () { | 5746 unittest.test("method--list", () { |
5747 | 5747 |
5748 var mock = new HttpServerMock(); | 5748 var mock = new HttpServerMock(); |
5749 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 5749 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
5750 var arg_customerId = "foo"; | 5750 var arg_customerId = "foo"; |
5751 var arg_orgUnitPath = "foo"; | 5751 var arg_orgUnitPath = "foo"; |
5752 var arg_type = "foo"; | 5752 var arg_type = "foo"; |
5753 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5753 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5754 var path = (req.url).path; | 5754 var path = (req.url).path; |
5755 var pathOffset = 0; | 5755 var pathOffset = 0; |
5756 var index; | 5756 var index; |
5757 var subPart; | 5757 var subPart; |
5758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5759 pathOffset += 1; | 5759 pathOffset += 1; |
5760 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5760 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5761 pathOffset += 19; | 5761 pathOffset += 19; |
5762 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5762 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5763 pathOffset += 9; | 5763 pathOffset += 9; |
(...skipping 24 matching lines...) Expand all Loading... |
5788 unittest.expect(queryMap["orgUnitPath"].first, unittest.equals(arg_orgUn
itPath)); | 5788 unittest.expect(queryMap["orgUnitPath"].first, unittest.equals(arg_orgUn
itPath)); |
5789 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); | 5789 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); |
5790 | 5790 |
5791 | 5791 |
5792 var h = { | 5792 var h = { |
5793 "content-type" : "application/json; charset=utf-8", | 5793 "content-type" : "application/json; charset=utf-8", |
5794 }; | 5794 }; |
5795 var resp = convert.JSON.encode(buildOrgUnits()); | 5795 var resp = convert.JSON.encode(buildOrgUnits()); |
5796 return new async.Future.value(stringResponse(200, h, resp)); | 5796 return new async.Future.value(stringResponse(200, h, resp)); |
5797 }), true); | 5797 }), true); |
5798 res.list(arg_customerId, orgUnitPath: arg_orgUnitPath, type: arg_type).the
n(unittest.expectAsync(((api.OrgUnits response) { | 5798 res.list(arg_customerId, orgUnitPath: arg_orgUnitPath, type: arg_type).the
n(unittest.expectAsync1(((api.OrgUnits response) { |
5799 checkOrgUnits(response); | 5799 checkOrgUnits(response); |
5800 }))); | 5800 }))); |
5801 }); | 5801 }); |
5802 | 5802 |
5803 unittest.test("method--patch", () { | 5803 unittest.test("method--patch", () { |
5804 | 5804 |
5805 var mock = new HttpServerMock(); | 5805 var mock = new HttpServerMock(); |
5806 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 5806 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
5807 var arg_request = buildOrgUnit(); | 5807 var arg_request = buildOrgUnit(); |
5808 var arg_customerId = "foo"; | 5808 var arg_customerId = "foo"; |
5809 var arg_orgUnitPath = buildUnnamed770(); | 5809 var arg_orgUnitPath = buildUnnamed777(); |
5810 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5810 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5811 var obj = new api.OrgUnit.fromJson(json); | 5811 var obj = new api.OrgUnit.fromJson(json); |
5812 checkOrgUnit(obj); | 5812 checkOrgUnit(obj); |
5813 | 5813 |
5814 var path = (req.url).path; | 5814 var path = (req.url).path; |
5815 var pathOffset = 0; | 5815 var pathOffset = 0; |
5816 var index; | 5816 var index; |
5817 var subPart; | 5817 var subPart; |
5818 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5818 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5819 pathOffset += 1; | 5819 pathOffset += 1; |
5820 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5820 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 27 matching lines...) Expand all Loading... |
5848 } | 5848 } |
5849 } | 5849 } |
5850 | 5850 |
5851 | 5851 |
5852 var h = { | 5852 var h = { |
5853 "content-type" : "application/json; charset=utf-8", | 5853 "content-type" : "application/json; charset=utf-8", |
5854 }; | 5854 }; |
5855 var resp = convert.JSON.encode(buildOrgUnit()); | 5855 var resp = convert.JSON.encode(buildOrgUnit()); |
5856 return new async.Future.value(stringResponse(200, h, resp)); | 5856 return new async.Future.value(stringResponse(200, h, resp)); |
5857 }), true); | 5857 }), true); |
5858 res.patch(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.expe
ctAsync(((api.OrgUnit response) { | 5858 res.patch(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.expe
ctAsync1(((api.OrgUnit response) { |
5859 checkOrgUnit(response); | 5859 checkOrgUnit(response); |
5860 }))); | 5860 }))); |
5861 }); | 5861 }); |
5862 | 5862 |
5863 unittest.test("method--update", () { | 5863 unittest.test("method--update", () { |
5864 | 5864 |
5865 var mock = new HttpServerMock(); | 5865 var mock = new HttpServerMock(); |
5866 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 5866 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
5867 var arg_request = buildOrgUnit(); | 5867 var arg_request = buildOrgUnit(); |
5868 var arg_customerId = "foo"; | 5868 var arg_customerId = "foo"; |
5869 var arg_orgUnitPath = buildUnnamed771(); | 5869 var arg_orgUnitPath = buildUnnamed778(); |
5870 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5870 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5871 var obj = new api.OrgUnit.fromJson(json); | 5871 var obj = new api.OrgUnit.fromJson(json); |
5872 checkOrgUnit(obj); | 5872 checkOrgUnit(obj); |
5873 | 5873 |
5874 var path = (req.url).path; | 5874 var path = (req.url).path; |
5875 var pathOffset = 0; | 5875 var pathOffset = 0; |
5876 var index; | 5876 var index; |
5877 var subPart; | 5877 var subPart; |
5878 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5878 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5879 pathOffset += 1; | 5879 pathOffset += 1; |
5880 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5880 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 27 matching lines...) Expand all Loading... |
5908 } | 5908 } |
5909 } | 5909 } |
5910 | 5910 |
5911 | 5911 |
5912 var h = { | 5912 var h = { |
5913 "content-type" : "application/json; charset=utf-8", | 5913 "content-type" : "application/json; charset=utf-8", |
5914 }; | 5914 }; |
5915 var resp = convert.JSON.encode(buildOrgUnit()); | 5915 var resp = convert.JSON.encode(buildOrgUnit()); |
5916 return new async.Future.value(stringResponse(200, h, resp)); | 5916 return new async.Future.value(stringResponse(200, h, resp)); |
5917 }), true); | 5917 }), true); |
5918 res.update(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.exp
ectAsync(((api.OrgUnit response) { | 5918 res.update(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.exp
ectAsync1(((api.OrgUnit response) { |
5919 checkOrgUnit(response); | 5919 checkOrgUnit(response); |
5920 }))); | 5920 }))); |
5921 }); | 5921 }); |
5922 | 5922 |
5923 }); | 5923 }); |
5924 | 5924 |
5925 | 5925 |
5926 unittest.group("resource-PrivilegesResourceApi", () { | 5926 unittest.group("resource-PrivilegesResourceApi", () { |
5927 unittest.test("method--list", () { | 5927 unittest.test("method--list", () { |
5928 | 5928 |
5929 var mock = new HttpServerMock(); | 5929 var mock = new HttpServerMock(); |
5930 api.PrivilegesResourceApi res = new api.AdminApi(mock).privileges; | 5930 api.PrivilegesResourceApi res = new api.AdminApi(mock).privileges; |
5931 var arg_customer = "foo"; | 5931 var arg_customer = "foo"; |
5932 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5932 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5933 var path = (req.url).path; | 5933 var path = (req.url).path; |
5934 var pathOffset = 0; | 5934 var pathOffset = 0; |
5935 var index; | 5935 var index; |
5936 var subPart; | 5936 var subPart; |
5937 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5937 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5938 pathOffset += 1; | 5938 pathOffset += 1; |
5939 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5939 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5940 pathOffset += 19; | 5940 pathOffset += 19; |
5941 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5941 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
5942 pathOffset += 9; | 5942 pathOffset += 9; |
(...skipping 22 matching lines...) Expand all Loading... |
5965 } | 5965 } |
5966 } | 5966 } |
5967 | 5967 |
5968 | 5968 |
5969 var h = { | 5969 var h = { |
5970 "content-type" : "application/json; charset=utf-8", | 5970 "content-type" : "application/json; charset=utf-8", |
5971 }; | 5971 }; |
5972 var resp = convert.JSON.encode(buildPrivileges()); | 5972 var resp = convert.JSON.encode(buildPrivileges()); |
5973 return new async.Future.value(stringResponse(200, h, resp)); | 5973 return new async.Future.value(stringResponse(200, h, resp)); |
5974 }), true); | 5974 }), true); |
5975 res.list(arg_customer).then(unittest.expectAsync(((api.Privileges response
) { | 5975 res.list(arg_customer).then(unittest.expectAsync1(((api.Privileges respons
e) { |
5976 checkPrivileges(response); | 5976 checkPrivileges(response); |
5977 }))); | 5977 }))); |
5978 }); | 5978 }); |
5979 | 5979 |
5980 }); | 5980 }); |
5981 | 5981 |
5982 | 5982 |
5983 unittest.group("resource-ResourcesCalendarsResourceApi", () { | 5983 unittest.group("resource-ResourcesCalendarsResourceApi", () { |
5984 unittest.test("method--delete", () { | 5984 unittest.test("method--delete", () { |
5985 | 5985 |
5986 var mock = new HttpServerMock(); | 5986 var mock = new HttpServerMock(); |
5987 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; | 5987 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; |
5988 var arg_customer = "foo"; | 5988 var arg_customer = "foo"; |
5989 var arg_calendarResourceId = "foo"; | 5989 var arg_calendarResourceId = "foo"; |
5990 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5990 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5991 var path = (req.url).path; | 5991 var path = (req.url).path; |
5992 var pathOffset = 0; | 5992 var pathOffset = 0; |
5993 var index; | 5993 var index; |
5994 var subPart; | 5994 var subPart; |
5995 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5995 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5996 pathOffset += 1; | 5996 pathOffset += 1; |
5997 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 5997 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
5998 pathOffset += 19; | 5998 pathOffset += 19; |
5999 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 5999 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6000 pathOffset += 9; | 6000 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
6026 } | 6026 } |
6027 } | 6027 } |
6028 | 6028 |
6029 | 6029 |
6030 var h = { | 6030 var h = { |
6031 "content-type" : "application/json; charset=utf-8", | 6031 "content-type" : "application/json; charset=utf-8", |
6032 }; | 6032 }; |
6033 var resp = ""; | 6033 var resp = ""; |
6034 return new async.Future.value(stringResponse(200, h, resp)); | 6034 return new async.Future.value(stringResponse(200, h, resp)); |
6035 }), true); | 6035 }), true); |
6036 res.delete(arg_customer, arg_calendarResourceId).then(unittest.expectAsync
((_) {})); | 6036 res.delete(arg_customer, arg_calendarResourceId).then(unittest.expectAsync
1((_) {})); |
6037 }); | 6037 }); |
6038 | 6038 |
6039 unittest.test("method--get", () { | 6039 unittest.test("method--get", () { |
6040 | 6040 |
6041 var mock = new HttpServerMock(); | 6041 var mock = new HttpServerMock(); |
6042 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; | 6042 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; |
6043 var arg_customer = "foo"; | 6043 var arg_customer = "foo"; |
6044 var arg_calendarResourceId = "foo"; | 6044 var arg_calendarResourceId = "foo"; |
6045 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6045 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6046 var path = (req.url).path; | 6046 var path = (req.url).path; |
6047 var pathOffset = 0; | 6047 var pathOffset = 0; |
6048 var index; | 6048 var index; |
6049 var subPart; | 6049 var subPart; |
6050 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6050 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6051 pathOffset += 1; | 6051 pathOffset += 1; |
6052 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6052 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6053 pathOffset += 19; | 6053 pathOffset += 19; |
6054 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6054 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6055 pathOffset += 9; | 6055 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
6081 } | 6081 } |
6082 } | 6082 } |
6083 | 6083 |
6084 | 6084 |
6085 var h = { | 6085 var h = { |
6086 "content-type" : "application/json; charset=utf-8", | 6086 "content-type" : "application/json; charset=utf-8", |
6087 }; | 6087 }; |
6088 var resp = convert.JSON.encode(buildCalendarResource()); | 6088 var resp = convert.JSON.encode(buildCalendarResource()); |
6089 return new async.Future.value(stringResponse(200, h, resp)); | 6089 return new async.Future.value(stringResponse(200, h, resp)); |
6090 }), true); | 6090 }), true); |
6091 res.get(arg_customer, arg_calendarResourceId).then(unittest.expectAsync(((
api.CalendarResource response) { | 6091 res.get(arg_customer, arg_calendarResourceId).then(unittest.expectAsync1((
(api.CalendarResource response) { |
6092 checkCalendarResource(response); | 6092 checkCalendarResource(response); |
6093 }))); | 6093 }))); |
6094 }); | 6094 }); |
6095 | 6095 |
6096 unittest.test("method--insert", () { | 6096 unittest.test("method--insert", () { |
6097 | 6097 |
6098 var mock = new HttpServerMock(); | 6098 var mock = new HttpServerMock(); |
6099 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; | 6099 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; |
6100 var arg_request = buildCalendarResource(); | 6100 var arg_request = buildCalendarResource(); |
6101 var arg_customer = "foo"; | 6101 var arg_customer = "foo"; |
6102 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6102 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6103 var obj = new api.CalendarResource.fromJson(json); | 6103 var obj = new api.CalendarResource.fromJson(json); |
6104 checkCalendarResource(obj); | 6104 checkCalendarResource(obj); |
6105 | 6105 |
6106 var path = (req.url).path; | 6106 var path = (req.url).path; |
6107 var pathOffset = 0; | 6107 var pathOffset = 0; |
6108 var index; | 6108 var index; |
6109 var subPart; | 6109 var subPart; |
6110 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6110 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6111 pathOffset += 1; | 6111 pathOffset += 1; |
6112 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6112 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
6138 } | 6138 } |
6139 } | 6139 } |
6140 | 6140 |
6141 | 6141 |
6142 var h = { | 6142 var h = { |
6143 "content-type" : "application/json; charset=utf-8", | 6143 "content-type" : "application/json; charset=utf-8", |
6144 }; | 6144 }; |
6145 var resp = convert.JSON.encode(buildCalendarResource()); | 6145 var resp = convert.JSON.encode(buildCalendarResource()); |
6146 return new async.Future.value(stringResponse(200, h, resp)); | 6146 return new async.Future.value(stringResponse(200, h, resp)); |
6147 }), true); | 6147 }), true); |
6148 res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.Cale
ndarResource response) { | 6148 res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.Cal
endarResource response) { |
6149 checkCalendarResource(response); | 6149 checkCalendarResource(response); |
6150 }))); | 6150 }))); |
6151 }); | 6151 }); |
6152 | 6152 |
6153 unittest.test("method--list", () { | 6153 unittest.test("method--list", () { |
6154 | 6154 |
6155 var mock = new HttpServerMock(); | 6155 var mock = new HttpServerMock(); |
6156 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; | 6156 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; |
6157 var arg_customer = "foo"; | 6157 var arg_customer = "foo"; |
6158 var arg_maxResults = 42; | 6158 var arg_maxResults = 42; |
6159 var arg_pageToken = "foo"; | 6159 var arg_pageToken = "foo"; |
6160 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6160 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6161 var path = (req.url).path; | 6161 var path = (req.url).path; |
6162 var pathOffset = 0; | 6162 var pathOffset = 0; |
6163 var index; | 6163 var index; |
6164 var subPart; | 6164 var subPart; |
6165 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6165 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6166 pathOffset += 1; | 6166 pathOffset += 1; |
6167 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6167 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6168 pathOffset += 19; | 6168 pathOffset += 19; |
6169 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6169 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6170 pathOffset += 9; | 6170 pathOffset += 9; |
(...skipping 24 matching lines...) Expand all Loading... |
6195 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6195 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
6196 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6196 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6197 | 6197 |
6198 | 6198 |
6199 var h = { | 6199 var h = { |
6200 "content-type" : "application/json; charset=utf-8", | 6200 "content-type" : "application/json; charset=utf-8", |
6201 }; | 6201 }; |
6202 var resp = convert.JSON.encode(buildCalendarResources()); | 6202 var resp = convert.JSON.encode(buildCalendarResources()); |
6203 return new async.Future.value(stringResponse(200, h, resp)); | 6203 return new async.Future.value(stringResponse(200, h, resp)); |
6204 }), true); | 6204 }), true); |
6205 res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToke
n).then(unittest.expectAsync(((api.CalendarResources response) { | 6205 res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToke
n).then(unittest.expectAsync1(((api.CalendarResources response) { |
6206 checkCalendarResources(response); | 6206 checkCalendarResources(response); |
6207 }))); | 6207 }))); |
6208 }); | 6208 }); |
6209 | 6209 |
6210 unittest.test("method--patch", () { | 6210 unittest.test("method--patch", () { |
6211 | 6211 |
6212 var mock = new HttpServerMock(); | 6212 var mock = new HttpServerMock(); |
6213 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; | 6213 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; |
6214 var arg_request = buildCalendarResource(); | 6214 var arg_request = buildCalendarResource(); |
6215 var arg_customer = "foo"; | 6215 var arg_customer = "foo"; |
6216 var arg_calendarResourceId = "foo"; | 6216 var arg_calendarResourceId = "foo"; |
6217 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6217 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6218 var obj = new api.CalendarResource.fromJson(json); | 6218 var obj = new api.CalendarResource.fromJson(json); |
6219 checkCalendarResource(obj); | 6219 checkCalendarResource(obj); |
6220 | 6220 |
6221 var path = (req.url).path; | 6221 var path = (req.url).path; |
6222 var pathOffset = 0; | 6222 var pathOffset = 0; |
6223 var index; | 6223 var index; |
6224 var subPart; | 6224 var subPart; |
6225 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6225 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6226 pathOffset += 1; | 6226 pathOffset += 1; |
6227 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6227 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
6256 } | 6256 } |
6257 } | 6257 } |
6258 | 6258 |
6259 | 6259 |
6260 var h = { | 6260 var h = { |
6261 "content-type" : "application/json; charset=utf-8", | 6261 "content-type" : "application/json; charset=utf-8", |
6262 }; | 6262 }; |
6263 var resp = convert.JSON.encode(buildCalendarResource()); | 6263 var resp = convert.JSON.encode(buildCalendarResource()); |
6264 return new async.Future.value(stringResponse(200, h, resp)); | 6264 return new async.Future.value(stringResponse(200, h, resp)); |
6265 }), true); | 6265 }), true); |
6266 res.patch(arg_request, arg_customer, arg_calendarResourceId).then(unittest
.expectAsync(((api.CalendarResource response) { | 6266 res.patch(arg_request, arg_customer, arg_calendarResourceId).then(unittest
.expectAsync1(((api.CalendarResource response) { |
6267 checkCalendarResource(response); | 6267 checkCalendarResource(response); |
6268 }))); | 6268 }))); |
6269 }); | 6269 }); |
6270 | 6270 |
6271 unittest.test("method--update", () { | 6271 unittest.test("method--update", () { |
6272 | 6272 |
6273 var mock = new HttpServerMock(); | 6273 var mock = new HttpServerMock(); |
6274 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; | 6274 api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.c
alendars; |
6275 var arg_request = buildCalendarResource(); | 6275 var arg_request = buildCalendarResource(); |
6276 var arg_customer = "foo"; | 6276 var arg_customer = "foo"; |
6277 var arg_calendarResourceId = "foo"; | 6277 var arg_calendarResourceId = "foo"; |
6278 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6278 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6279 var obj = new api.CalendarResource.fromJson(json); | 6279 var obj = new api.CalendarResource.fromJson(json); |
6280 checkCalendarResource(obj); | 6280 checkCalendarResource(obj); |
6281 | 6281 |
6282 var path = (req.url).path; | 6282 var path = (req.url).path; |
6283 var pathOffset = 0; | 6283 var pathOffset = 0; |
6284 var index; | 6284 var index; |
6285 var subPart; | 6285 var subPart; |
6286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6287 pathOffset += 1; | 6287 pathOffset += 1; |
6288 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6288 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
6317 } | 6317 } |
6318 } | 6318 } |
6319 | 6319 |
6320 | 6320 |
6321 var h = { | 6321 var h = { |
6322 "content-type" : "application/json; charset=utf-8", | 6322 "content-type" : "application/json; charset=utf-8", |
6323 }; | 6323 }; |
6324 var resp = convert.JSON.encode(buildCalendarResource()); | 6324 var resp = convert.JSON.encode(buildCalendarResource()); |
6325 return new async.Future.value(stringResponse(200, h, resp)); | 6325 return new async.Future.value(stringResponse(200, h, resp)); |
6326 }), true); | 6326 }), true); |
6327 res.update(arg_request, arg_customer, arg_calendarResourceId).then(unittes
t.expectAsync(((api.CalendarResource response) { | 6327 res.update(arg_request, arg_customer, arg_calendarResourceId).then(unittes
t.expectAsync1(((api.CalendarResource response) { |
6328 checkCalendarResource(response); | 6328 checkCalendarResource(response); |
6329 }))); | 6329 }))); |
6330 }); | 6330 }); |
6331 | 6331 |
6332 }); | 6332 }); |
6333 | 6333 |
6334 | 6334 |
6335 unittest.group("resource-RoleAssignmentsResourceApi", () { | 6335 unittest.group("resource-RoleAssignmentsResourceApi", () { |
6336 unittest.test("method--delete", () { | 6336 unittest.test("method--delete", () { |
6337 | 6337 |
6338 var mock = new HttpServerMock(); | 6338 var mock = new HttpServerMock(); |
6339 api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignment
s; | 6339 api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignment
s; |
6340 var arg_customer = "foo"; | 6340 var arg_customer = "foo"; |
6341 var arg_roleAssignmentId = "foo"; | 6341 var arg_roleAssignmentId = "foo"; |
6342 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6342 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6343 var path = (req.url).path; | 6343 var path = (req.url).path; |
6344 var pathOffset = 0; | 6344 var pathOffset = 0; |
6345 var index; | 6345 var index; |
6346 var subPart; | 6346 var subPart; |
6347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6348 pathOffset += 1; | 6348 pathOffset += 1; |
6349 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6349 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6350 pathOffset += 19; | 6350 pathOffset += 19; |
6351 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6351 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6352 pathOffset += 9; | 6352 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
6378 } | 6378 } |
6379 } | 6379 } |
6380 | 6380 |
6381 | 6381 |
6382 var h = { | 6382 var h = { |
6383 "content-type" : "application/json; charset=utf-8", | 6383 "content-type" : "application/json; charset=utf-8", |
6384 }; | 6384 }; |
6385 var resp = ""; | 6385 var resp = ""; |
6386 return new async.Future.value(stringResponse(200, h, resp)); | 6386 return new async.Future.value(stringResponse(200, h, resp)); |
6387 }), true); | 6387 }), true); |
6388 res.delete(arg_customer, arg_roleAssignmentId).then(unittest.expectAsync((
_) {})); | 6388 res.delete(arg_customer, arg_roleAssignmentId).then(unittest.expectAsync1(
(_) {})); |
6389 }); | 6389 }); |
6390 | 6390 |
6391 unittest.test("method--get", () { | 6391 unittest.test("method--get", () { |
6392 | 6392 |
6393 var mock = new HttpServerMock(); | 6393 var mock = new HttpServerMock(); |
6394 api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignment
s; | 6394 api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignment
s; |
6395 var arg_customer = "foo"; | 6395 var arg_customer = "foo"; |
6396 var arg_roleAssignmentId = "foo"; | 6396 var arg_roleAssignmentId = "foo"; |
6397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6397 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6398 var path = (req.url).path; | 6398 var path = (req.url).path; |
6399 var pathOffset = 0; | 6399 var pathOffset = 0; |
6400 var index; | 6400 var index; |
6401 var subPart; | 6401 var subPart; |
6402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6403 pathOffset += 1; | 6403 pathOffset += 1; |
6404 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6404 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6405 pathOffset += 19; | 6405 pathOffset += 19; |
6406 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6406 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6407 pathOffset += 9; | 6407 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
6433 } | 6433 } |
6434 } | 6434 } |
6435 | 6435 |
6436 | 6436 |
6437 var h = { | 6437 var h = { |
6438 "content-type" : "application/json; charset=utf-8", | 6438 "content-type" : "application/json; charset=utf-8", |
6439 }; | 6439 }; |
6440 var resp = convert.JSON.encode(buildRoleAssignment()); | 6440 var resp = convert.JSON.encode(buildRoleAssignment()); |
6441 return new async.Future.value(stringResponse(200, h, resp)); | 6441 return new async.Future.value(stringResponse(200, h, resp)); |
6442 }), true); | 6442 }), true); |
6443 res.get(arg_customer, arg_roleAssignmentId).then(unittest.expectAsync(((ap
i.RoleAssignment response) { | 6443 res.get(arg_customer, arg_roleAssignmentId).then(unittest.expectAsync1(((a
pi.RoleAssignment response) { |
6444 checkRoleAssignment(response); | 6444 checkRoleAssignment(response); |
6445 }))); | 6445 }))); |
6446 }); | 6446 }); |
6447 | 6447 |
6448 unittest.test("method--insert", () { | 6448 unittest.test("method--insert", () { |
6449 | 6449 |
6450 var mock = new HttpServerMock(); | 6450 var mock = new HttpServerMock(); |
6451 api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignment
s; | 6451 api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignment
s; |
6452 var arg_request = buildRoleAssignment(); | 6452 var arg_request = buildRoleAssignment(); |
6453 var arg_customer = "foo"; | 6453 var arg_customer = "foo"; |
6454 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6454 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6455 var obj = new api.RoleAssignment.fromJson(json); | 6455 var obj = new api.RoleAssignment.fromJson(json); |
6456 checkRoleAssignment(obj); | 6456 checkRoleAssignment(obj); |
6457 | 6457 |
6458 var path = (req.url).path; | 6458 var path = (req.url).path; |
6459 var pathOffset = 0; | 6459 var pathOffset = 0; |
6460 var index; | 6460 var index; |
6461 var subPart; | 6461 var subPart; |
6462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6463 pathOffset += 1; | 6463 pathOffset += 1; |
6464 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6464 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
6490 } | 6490 } |
6491 } | 6491 } |
6492 | 6492 |
6493 | 6493 |
6494 var h = { | 6494 var h = { |
6495 "content-type" : "application/json; charset=utf-8", | 6495 "content-type" : "application/json; charset=utf-8", |
6496 }; | 6496 }; |
6497 var resp = convert.JSON.encode(buildRoleAssignment()); | 6497 var resp = convert.JSON.encode(buildRoleAssignment()); |
6498 return new async.Future.value(stringResponse(200, h, resp)); | 6498 return new async.Future.value(stringResponse(200, h, resp)); |
6499 }), true); | 6499 }), true); |
6500 res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.Role
Assignment response) { | 6500 res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.Rol
eAssignment response) { |
6501 checkRoleAssignment(response); | 6501 checkRoleAssignment(response); |
6502 }))); | 6502 }))); |
6503 }); | 6503 }); |
6504 | 6504 |
6505 unittest.test("method--list", () { | 6505 unittest.test("method--list", () { |
6506 | 6506 |
6507 var mock = new HttpServerMock(); | 6507 var mock = new HttpServerMock(); |
6508 api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignment
s; | 6508 api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignment
s; |
6509 var arg_customer = "foo"; | 6509 var arg_customer = "foo"; |
6510 var arg_maxResults = 42; | 6510 var arg_maxResults = 42; |
6511 var arg_pageToken = "foo"; | 6511 var arg_pageToken = "foo"; |
6512 var arg_roleId = "foo"; | 6512 var arg_roleId = "foo"; |
6513 var arg_userKey = "foo"; | 6513 var arg_userKey = "foo"; |
6514 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6514 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6515 var path = (req.url).path; | 6515 var path = (req.url).path; |
6516 var pathOffset = 0; | 6516 var pathOffset = 0; |
6517 var index; | 6517 var index; |
6518 var subPart; | 6518 var subPart; |
6519 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6519 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6520 pathOffset += 1; | 6520 pathOffset += 1; |
6521 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6521 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6522 pathOffset += 19; | 6522 pathOffset += 19; |
6523 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6523 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6524 pathOffset += 9; | 6524 pathOffset += 9; |
(...skipping 26 matching lines...) Expand all Loading... |
6551 unittest.expect(queryMap["roleId"].first, unittest.equals(arg_roleId)); | 6551 unittest.expect(queryMap["roleId"].first, unittest.equals(arg_roleId)); |
6552 unittest.expect(queryMap["userKey"].first, unittest.equals(arg_userKey))
; | 6552 unittest.expect(queryMap["userKey"].first, unittest.equals(arg_userKey))
; |
6553 | 6553 |
6554 | 6554 |
6555 var h = { | 6555 var h = { |
6556 "content-type" : "application/json; charset=utf-8", | 6556 "content-type" : "application/json; charset=utf-8", |
6557 }; | 6557 }; |
6558 var resp = convert.JSON.encode(buildRoleAssignments()); | 6558 var resp = convert.JSON.encode(buildRoleAssignments()); |
6559 return new async.Future.value(stringResponse(200, h, resp)); | 6559 return new async.Future.value(stringResponse(200, h, resp)); |
6560 }), true); | 6560 }), true); |
6561 res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToke
n, roleId: arg_roleId, userKey: arg_userKey).then(unittest.expectAsync(((api.Rol
eAssignments response) { | 6561 res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToke
n, roleId: arg_roleId, userKey: arg_userKey).then(unittest.expectAsync1(((api.Ro
leAssignments response) { |
6562 checkRoleAssignments(response); | 6562 checkRoleAssignments(response); |
6563 }))); | 6563 }))); |
6564 }); | 6564 }); |
6565 | 6565 |
6566 }); | 6566 }); |
6567 | 6567 |
6568 | 6568 |
6569 unittest.group("resource-RolesResourceApi", () { | 6569 unittest.group("resource-RolesResourceApi", () { |
6570 unittest.test("method--delete", () { | 6570 unittest.test("method--delete", () { |
6571 | 6571 |
6572 var mock = new HttpServerMock(); | 6572 var mock = new HttpServerMock(); |
6573 api.RolesResourceApi res = new api.AdminApi(mock).roles; | 6573 api.RolesResourceApi res = new api.AdminApi(mock).roles; |
6574 var arg_customer = "foo"; | 6574 var arg_customer = "foo"; |
6575 var arg_roleId = "foo"; | 6575 var arg_roleId = "foo"; |
6576 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6576 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6577 var path = (req.url).path; | 6577 var path = (req.url).path; |
6578 var pathOffset = 0; | 6578 var pathOffset = 0; |
6579 var index; | 6579 var index; |
6580 var subPart; | 6580 var subPart; |
6581 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6581 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6582 pathOffset += 1; | 6582 pathOffset += 1; |
6583 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6583 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6584 pathOffset += 19; | 6584 pathOffset += 19; |
6585 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6585 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6586 pathOffset += 9; | 6586 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
6612 } | 6612 } |
6613 } | 6613 } |
6614 | 6614 |
6615 | 6615 |
6616 var h = { | 6616 var h = { |
6617 "content-type" : "application/json; charset=utf-8", | 6617 "content-type" : "application/json; charset=utf-8", |
6618 }; | 6618 }; |
6619 var resp = ""; | 6619 var resp = ""; |
6620 return new async.Future.value(stringResponse(200, h, resp)); | 6620 return new async.Future.value(stringResponse(200, h, resp)); |
6621 }), true); | 6621 }), true); |
6622 res.delete(arg_customer, arg_roleId).then(unittest.expectAsync((_) {})); | 6622 res.delete(arg_customer, arg_roleId).then(unittest.expectAsync1((_) {})); |
6623 }); | 6623 }); |
6624 | 6624 |
6625 unittest.test("method--get", () { | 6625 unittest.test("method--get", () { |
6626 | 6626 |
6627 var mock = new HttpServerMock(); | 6627 var mock = new HttpServerMock(); |
6628 api.RolesResourceApi res = new api.AdminApi(mock).roles; | 6628 api.RolesResourceApi res = new api.AdminApi(mock).roles; |
6629 var arg_customer = "foo"; | 6629 var arg_customer = "foo"; |
6630 var arg_roleId = "foo"; | 6630 var arg_roleId = "foo"; |
6631 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6631 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6632 var path = (req.url).path; | 6632 var path = (req.url).path; |
6633 var pathOffset = 0; | 6633 var pathOffset = 0; |
6634 var index; | 6634 var index; |
6635 var subPart; | 6635 var subPart; |
6636 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6636 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6637 pathOffset += 1; | 6637 pathOffset += 1; |
6638 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6638 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6639 pathOffset += 19; | 6639 pathOffset += 19; |
6640 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6640 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6641 pathOffset += 9; | 6641 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
6667 } | 6667 } |
6668 } | 6668 } |
6669 | 6669 |
6670 | 6670 |
6671 var h = { | 6671 var h = { |
6672 "content-type" : "application/json; charset=utf-8", | 6672 "content-type" : "application/json; charset=utf-8", |
6673 }; | 6673 }; |
6674 var resp = convert.JSON.encode(buildRole()); | 6674 var resp = convert.JSON.encode(buildRole()); |
6675 return new async.Future.value(stringResponse(200, h, resp)); | 6675 return new async.Future.value(stringResponse(200, h, resp)); |
6676 }), true); | 6676 }), true); |
6677 res.get(arg_customer, arg_roleId).then(unittest.expectAsync(((api.Role res
ponse) { | 6677 res.get(arg_customer, arg_roleId).then(unittest.expectAsync1(((api.Role re
sponse) { |
6678 checkRole(response); | 6678 checkRole(response); |
6679 }))); | 6679 }))); |
6680 }); | 6680 }); |
6681 | 6681 |
6682 unittest.test("method--insert", () { | 6682 unittest.test("method--insert", () { |
6683 | 6683 |
6684 var mock = new HttpServerMock(); | 6684 var mock = new HttpServerMock(); |
6685 api.RolesResourceApi res = new api.AdminApi(mock).roles; | 6685 api.RolesResourceApi res = new api.AdminApi(mock).roles; |
6686 var arg_request = buildRole(); | 6686 var arg_request = buildRole(); |
6687 var arg_customer = "foo"; | 6687 var arg_customer = "foo"; |
6688 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6688 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6689 var obj = new api.Role.fromJson(json); | 6689 var obj = new api.Role.fromJson(json); |
6690 checkRole(obj); | 6690 checkRole(obj); |
6691 | 6691 |
6692 var path = (req.url).path; | 6692 var path = (req.url).path; |
6693 var pathOffset = 0; | 6693 var pathOffset = 0; |
6694 var index; | 6694 var index; |
6695 var subPart; | 6695 var subPart; |
6696 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6696 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6697 pathOffset += 1; | 6697 pathOffset += 1; |
6698 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6698 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
6724 } | 6724 } |
6725 } | 6725 } |
6726 | 6726 |
6727 | 6727 |
6728 var h = { | 6728 var h = { |
6729 "content-type" : "application/json; charset=utf-8", | 6729 "content-type" : "application/json; charset=utf-8", |
6730 }; | 6730 }; |
6731 var resp = convert.JSON.encode(buildRole()); | 6731 var resp = convert.JSON.encode(buildRole()); |
6732 return new async.Future.value(stringResponse(200, h, resp)); | 6732 return new async.Future.value(stringResponse(200, h, resp)); |
6733 }), true); | 6733 }), true); |
6734 res.insert(arg_request, arg_customer).then(unittest.expectAsync(((api.Role
response) { | 6734 res.insert(arg_request, arg_customer).then(unittest.expectAsync1(((api.Rol
e response) { |
6735 checkRole(response); | 6735 checkRole(response); |
6736 }))); | 6736 }))); |
6737 }); | 6737 }); |
6738 | 6738 |
6739 unittest.test("method--list", () { | 6739 unittest.test("method--list", () { |
6740 | 6740 |
6741 var mock = new HttpServerMock(); | 6741 var mock = new HttpServerMock(); |
6742 api.RolesResourceApi res = new api.AdminApi(mock).roles; | 6742 api.RolesResourceApi res = new api.AdminApi(mock).roles; |
6743 var arg_customer = "foo"; | 6743 var arg_customer = "foo"; |
6744 var arg_maxResults = 42; | 6744 var arg_maxResults = 42; |
6745 var arg_pageToken = "foo"; | 6745 var arg_pageToken = "foo"; |
6746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6746 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6747 var path = (req.url).path; | 6747 var path = (req.url).path; |
6748 var pathOffset = 0; | 6748 var pathOffset = 0; |
6749 var index; | 6749 var index; |
6750 var subPart; | 6750 var subPart; |
6751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6752 pathOffset += 1; | 6752 pathOffset += 1; |
6753 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6753 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6754 pathOffset += 19; | 6754 pathOffset += 19; |
6755 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6755 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6756 pathOffset += 9; | 6756 pathOffset += 9; |
(...skipping 24 matching lines...) Expand all Loading... |
6781 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6781 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
6782 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6782 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6783 | 6783 |
6784 | 6784 |
6785 var h = { | 6785 var h = { |
6786 "content-type" : "application/json; charset=utf-8", | 6786 "content-type" : "application/json; charset=utf-8", |
6787 }; | 6787 }; |
6788 var resp = convert.JSON.encode(buildRoles()); | 6788 var resp = convert.JSON.encode(buildRoles()); |
6789 return new async.Future.value(stringResponse(200, h, resp)); | 6789 return new async.Future.value(stringResponse(200, h, resp)); |
6790 }), true); | 6790 }), true); |
6791 res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToke
n).then(unittest.expectAsync(((api.Roles response) { | 6791 res.list(arg_customer, maxResults: arg_maxResults, pageToken: arg_pageToke
n).then(unittest.expectAsync1(((api.Roles response) { |
6792 checkRoles(response); | 6792 checkRoles(response); |
6793 }))); | 6793 }))); |
6794 }); | 6794 }); |
6795 | 6795 |
6796 unittest.test("method--patch", () { | 6796 unittest.test("method--patch", () { |
6797 | 6797 |
6798 var mock = new HttpServerMock(); | 6798 var mock = new HttpServerMock(); |
6799 api.RolesResourceApi res = new api.AdminApi(mock).roles; | 6799 api.RolesResourceApi res = new api.AdminApi(mock).roles; |
6800 var arg_request = buildRole(); | 6800 var arg_request = buildRole(); |
6801 var arg_customer = "foo"; | 6801 var arg_customer = "foo"; |
6802 var arg_roleId = "foo"; | 6802 var arg_roleId = "foo"; |
6803 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6803 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6804 var obj = new api.Role.fromJson(json); | 6804 var obj = new api.Role.fromJson(json); |
6805 checkRole(obj); | 6805 checkRole(obj); |
6806 | 6806 |
6807 var path = (req.url).path; | 6807 var path = (req.url).path; |
6808 var pathOffset = 0; | 6808 var pathOffset = 0; |
6809 var index; | 6809 var index; |
6810 var subPart; | 6810 var subPart; |
6811 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6811 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6812 pathOffset += 1; | 6812 pathOffset += 1; |
6813 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6813 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
6842 } | 6842 } |
6843 } | 6843 } |
6844 | 6844 |
6845 | 6845 |
6846 var h = { | 6846 var h = { |
6847 "content-type" : "application/json; charset=utf-8", | 6847 "content-type" : "application/json; charset=utf-8", |
6848 }; | 6848 }; |
6849 var resp = convert.JSON.encode(buildRole()); | 6849 var resp = convert.JSON.encode(buildRole()); |
6850 return new async.Future.value(stringResponse(200, h, resp)); | 6850 return new async.Future.value(stringResponse(200, h, resp)); |
6851 }), true); | 6851 }), true); |
6852 res.patch(arg_request, arg_customer, arg_roleId).then(unittest.expectAsync
(((api.Role response) { | 6852 res.patch(arg_request, arg_customer, arg_roleId).then(unittest.expectAsync
1(((api.Role response) { |
6853 checkRole(response); | 6853 checkRole(response); |
6854 }))); | 6854 }))); |
6855 }); | 6855 }); |
6856 | 6856 |
6857 unittest.test("method--update", () { | 6857 unittest.test("method--update", () { |
6858 | 6858 |
6859 var mock = new HttpServerMock(); | 6859 var mock = new HttpServerMock(); |
6860 api.RolesResourceApi res = new api.AdminApi(mock).roles; | 6860 api.RolesResourceApi res = new api.AdminApi(mock).roles; |
6861 var arg_request = buildRole(); | 6861 var arg_request = buildRole(); |
6862 var arg_customer = "foo"; | 6862 var arg_customer = "foo"; |
6863 var arg_roleId = "foo"; | 6863 var arg_roleId = "foo"; |
6864 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6864 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6865 var obj = new api.Role.fromJson(json); | 6865 var obj = new api.Role.fromJson(json); |
6866 checkRole(obj); | 6866 checkRole(obj); |
6867 | 6867 |
6868 var path = (req.url).path; | 6868 var path = (req.url).path; |
6869 var pathOffset = 0; | 6869 var pathOffset = 0; |
6870 var index; | 6870 var index; |
6871 var subPart; | 6871 var subPart; |
6872 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6872 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6873 pathOffset += 1; | 6873 pathOffset += 1; |
6874 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6874 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
6903 } | 6903 } |
6904 } | 6904 } |
6905 | 6905 |
6906 | 6906 |
6907 var h = { | 6907 var h = { |
6908 "content-type" : "application/json; charset=utf-8", | 6908 "content-type" : "application/json; charset=utf-8", |
6909 }; | 6909 }; |
6910 var resp = convert.JSON.encode(buildRole()); | 6910 var resp = convert.JSON.encode(buildRole()); |
6911 return new async.Future.value(stringResponse(200, h, resp)); | 6911 return new async.Future.value(stringResponse(200, h, resp)); |
6912 }), true); | 6912 }), true); |
6913 res.update(arg_request, arg_customer, arg_roleId).then(unittest.expectAsyn
c(((api.Role response) { | 6913 res.update(arg_request, arg_customer, arg_roleId).then(unittest.expectAsyn
c1(((api.Role response) { |
6914 checkRole(response); | 6914 checkRole(response); |
6915 }))); | 6915 }))); |
6916 }); | 6916 }); |
6917 | 6917 |
6918 }); | 6918 }); |
6919 | 6919 |
6920 | 6920 |
6921 unittest.group("resource-SchemasResourceApi", () { | 6921 unittest.group("resource-SchemasResourceApi", () { |
6922 unittest.test("method--delete", () { | 6922 unittest.test("method--delete", () { |
6923 | 6923 |
6924 var mock = new HttpServerMock(); | 6924 var mock = new HttpServerMock(); |
6925 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; | 6925 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; |
6926 var arg_customerId = "foo"; | 6926 var arg_customerId = "foo"; |
6927 var arg_schemaKey = "foo"; | 6927 var arg_schemaKey = "foo"; |
6928 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6928 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6929 var path = (req.url).path; | 6929 var path = (req.url).path; |
6930 var pathOffset = 0; | 6930 var pathOffset = 0; |
6931 var index; | 6931 var index; |
6932 var subPart; | 6932 var subPart; |
6933 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6933 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6934 pathOffset += 1; | 6934 pathOffset += 1; |
6935 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6935 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6936 pathOffset += 19; | 6936 pathOffset += 19; |
6937 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6937 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6938 pathOffset += 9; | 6938 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
6964 } | 6964 } |
6965 } | 6965 } |
6966 | 6966 |
6967 | 6967 |
6968 var h = { | 6968 var h = { |
6969 "content-type" : "application/json; charset=utf-8", | 6969 "content-type" : "application/json; charset=utf-8", |
6970 }; | 6970 }; |
6971 var resp = ""; | 6971 var resp = ""; |
6972 return new async.Future.value(stringResponse(200, h, resp)); | 6972 return new async.Future.value(stringResponse(200, h, resp)); |
6973 }), true); | 6973 }), true); |
6974 res.delete(arg_customerId, arg_schemaKey).then(unittest.expectAsync((_) {}
)); | 6974 res.delete(arg_customerId, arg_schemaKey).then(unittest.expectAsync1((_) {
})); |
6975 }); | 6975 }); |
6976 | 6976 |
6977 unittest.test("method--get", () { | 6977 unittest.test("method--get", () { |
6978 | 6978 |
6979 var mock = new HttpServerMock(); | 6979 var mock = new HttpServerMock(); |
6980 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; | 6980 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; |
6981 var arg_customerId = "foo"; | 6981 var arg_customerId = "foo"; |
6982 var arg_schemaKey = "foo"; | 6982 var arg_schemaKey = "foo"; |
6983 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6983 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6984 var path = (req.url).path; | 6984 var path = (req.url).path; |
6985 var pathOffset = 0; | 6985 var pathOffset = 0; |
6986 var index; | 6986 var index; |
6987 var subPart; | 6987 var subPart; |
6988 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6988 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6989 pathOffset += 1; | 6989 pathOffset += 1; |
6990 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 6990 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
6991 pathOffset += 19; | 6991 pathOffset += 19; |
6992 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 6992 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
6993 pathOffset += 9; | 6993 pathOffset += 9; |
(...skipping 25 matching lines...) Expand all Loading... |
7019 } | 7019 } |
7020 } | 7020 } |
7021 | 7021 |
7022 | 7022 |
7023 var h = { | 7023 var h = { |
7024 "content-type" : "application/json; charset=utf-8", | 7024 "content-type" : "application/json; charset=utf-8", |
7025 }; | 7025 }; |
7026 var resp = convert.JSON.encode(buildSchema()); | 7026 var resp = convert.JSON.encode(buildSchema()); |
7027 return new async.Future.value(stringResponse(200, h, resp)); | 7027 return new async.Future.value(stringResponse(200, h, resp)); |
7028 }), true); | 7028 }), true); |
7029 res.get(arg_customerId, arg_schemaKey).then(unittest.expectAsync(((api.Sch
ema response) { | 7029 res.get(arg_customerId, arg_schemaKey).then(unittest.expectAsync1(((api.Sc
hema response) { |
7030 checkSchema(response); | 7030 checkSchema(response); |
7031 }))); | 7031 }))); |
7032 }); | 7032 }); |
7033 | 7033 |
7034 unittest.test("method--insert", () { | 7034 unittest.test("method--insert", () { |
7035 | 7035 |
7036 var mock = new HttpServerMock(); | 7036 var mock = new HttpServerMock(); |
7037 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; | 7037 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; |
7038 var arg_request = buildSchema(); | 7038 var arg_request = buildSchema(); |
7039 var arg_customerId = "foo"; | 7039 var arg_customerId = "foo"; |
7040 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7040 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7041 var obj = new api.Schema.fromJson(json); | 7041 var obj = new api.Schema.fromJson(json); |
7042 checkSchema(obj); | 7042 checkSchema(obj); |
7043 | 7043 |
7044 var path = (req.url).path; | 7044 var path = (req.url).path; |
7045 var pathOffset = 0; | 7045 var pathOffset = 0; |
7046 var index; | 7046 var index; |
7047 var subPart; | 7047 var subPart; |
7048 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7048 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7049 pathOffset += 1; | 7049 pathOffset += 1; |
7050 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7050 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
7076 } | 7076 } |
7077 } | 7077 } |
7078 | 7078 |
7079 | 7079 |
7080 var h = { | 7080 var h = { |
7081 "content-type" : "application/json; charset=utf-8", | 7081 "content-type" : "application/json; charset=utf-8", |
7082 }; | 7082 }; |
7083 var resp = convert.JSON.encode(buildSchema()); | 7083 var resp = convert.JSON.encode(buildSchema()); |
7084 return new async.Future.value(stringResponse(200, h, resp)); | 7084 return new async.Future.value(stringResponse(200, h, resp)); |
7085 }), true); | 7085 }), true); |
7086 res.insert(arg_request, arg_customerId).then(unittest.expectAsync(((api.Sc
hema response) { | 7086 res.insert(arg_request, arg_customerId).then(unittest.expectAsync1(((api.S
chema response) { |
7087 checkSchema(response); | 7087 checkSchema(response); |
7088 }))); | 7088 }))); |
7089 }); | 7089 }); |
7090 | 7090 |
7091 unittest.test("method--list", () { | 7091 unittest.test("method--list", () { |
7092 | 7092 |
7093 var mock = new HttpServerMock(); | 7093 var mock = new HttpServerMock(); |
7094 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; | 7094 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; |
7095 var arg_customerId = "foo"; | 7095 var arg_customerId = "foo"; |
7096 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7096 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7097 var path = (req.url).path; | 7097 var path = (req.url).path; |
7098 var pathOffset = 0; | 7098 var pathOffset = 0; |
7099 var index; | 7099 var index; |
7100 var subPart; | 7100 var subPart; |
7101 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7101 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7102 pathOffset += 1; | 7102 pathOffset += 1; |
7103 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7103 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
7104 pathOffset += 19; | 7104 pathOffset += 19; |
7105 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 7105 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
7106 pathOffset += 9; | 7106 pathOffset += 9; |
(...skipping 22 matching lines...) Expand all Loading... |
7129 } | 7129 } |
7130 } | 7130 } |
7131 | 7131 |
7132 | 7132 |
7133 var h = { | 7133 var h = { |
7134 "content-type" : "application/json; charset=utf-8", | 7134 "content-type" : "application/json; charset=utf-8", |
7135 }; | 7135 }; |
7136 var resp = convert.JSON.encode(buildSchemas()); | 7136 var resp = convert.JSON.encode(buildSchemas()); |
7137 return new async.Future.value(stringResponse(200, h, resp)); | 7137 return new async.Future.value(stringResponse(200, h, resp)); |
7138 }), true); | 7138 }), true); |
7139 res.list(arg_customerId).then(unittest.expectAsync(((api.Schemas response)
{ | 7139 res.list(arg_customerId).then(unittest.expectAsync1(((api.Schemas response
) { |
7140 checkSchemas(response); | 7140 checkSchemas(response); |
7141 }))); | 7141 }))); |
7142 }); | 7142 }); |
7143 | 7143 |
7144 unittest.test("method--patch", () { | 7144 unittest.test("method--patch", () { |
7145 | 7145 |
7146 var mock = new HttpServerMock(); | 7146 var mock = new HttpServerMock(); |
7147 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; | 7147 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; |
7148 var arg_request = buildSchema(); | 7148 var arg_request = buildSchema(); |
7149 var arg_customerId = "foo"; | 7149 var arg_customerId = "foo"; |
7150 var arg_schemaKey = "foo"; | 7150 var arg_schemaKey = "foo"; |
7151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7151 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7152 var obj = new api.Schema.fromJson(json); | 7152 var obj = new api.Schema.fromJson(json); |
7153 checkSchema(obj); | 7153 checkSchema(obj); |
7154 | 7154 |
7155 var path = (req.url).path; | 7155 var path = (req.url).path; |
7156 var pathOffset = 0; | 7156 var pathOffset = 0; |
7157 var index; | 7157 var index; |
7158 var subPart; | 7158 var subPart; |
7159 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7159 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7160 pathOffset += 1; | 7160 pathOffset += 1; |
7161 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7161 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
7190 } | 7190 } |
7191 } | 7191 } |
7192 | 7192 |
7193 | 7193 |
7194 var h = { | 7194 var h = { |
7195 "content-type" : "application/json; charset=utf-8", | 7195 "content-type" : "application/json; charset=utf-8", |
7196 }; | 7196 }; |
7197 var resp = convert.JSON.encode(buildSchema()); | 7197 var resp = convert.JSON.encode(buildSchema()); |
7198 return new async.Future.value(stringResponse(200, h, resp)); | 7198 return new async.Future.value(stringResponse(200, h, resp)); |
7199 }), true); | 7199 }), true); |
7200 res.patch(arg_request, arg_customerId, arg_schemaKey).then(unittest.expect
Async(((api.Schema response) { | 7200 res.patch(arg_request, arg_customerId, arg_schemaKey).then(unittest.expect
Async1(((api.Schema response) { |
7201 checkSchema(response); | 7201 checkSchema(response); |
7202 }))); | 7202 }))); |
7203 }); | 7203 }); |
7204 | 7204 |
7205 unittest.test("method--update", () { | 7205 unittest.test("method--update", () { |
7206 | 7206 |
7207 var mock = new HttpServerMock(); | 7207 var mock = new HttpServerMock(); |
7208 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; | 7208 api.SchemasResourceApi res = new api.AdminApi(mock).schemas; |
7209 var arg_request = buildSchema(); | 7209 var arg_request = buildSchema(); |
7210 var arg_customerId = "foo"; | 7210 var arg_customerId = "foo"; |
7211 var arg_schemaKey = "foo"; | 7211 var arg_schemaKey = "foo"; |
7212 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7212 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7213 var obj = new api.Schema.fromJson(json); | 7213 var obj = new api.Schema.fromJson(json); |
7214 checkSchema(obj); | 7214 checkSchema(obj); |
7215 | 7215 |
7216 var path = (req.url).path; | 7216 var path = (req.url).path; |
7217 var pathOffset = 0; | 7217 var pathOffset = 0; |
7218 var index; | 7218 var index; |
7219 var subPart; | 7219 var subPart; |
7220 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7220 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7221 pathOffset += 1; | 7221 pathOffset += 1; |
7222 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7222 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 28 matching lines...) Expand all Loading... |
7251 } | 7251 } |
7252 } | 7252 } |
7253 | 7253 |
7254 | 7254 |
7255 var h = { | 7255 var h = { |
7256 "content-type" : "application/json; charset=utf-8", | 7256 "content-type" : "application/json; charset=utf-8", |
7257 }; | 7257 }; |
7258 var resp = convert.JSON.encode(buildSchema()); | 7258 var resp = convert.JSON.encode(buildSchema()); |
7259 return new async.Future.value(stringResponse(200, h, resp)); | 7259 return new async.Future.value(stringResponse(200, h, resp)); |
7260 }), true); | 7260 }), true); |
7261 res.update(arg_request, arg_customerId, arg_schemaKey).then(unittest.expec
tAsync(((api.Schema response) { | 7261 res.update(arg_request, arg_customerId, arg_schemaKey).then(unittest.expec
tAsync1(((api.Schema response) { |
7262 checkSchema(response); | 7262 checkSchema(response); |
7263 }))); | 7263 }))); |
7264 }); | 7264 }); |
7265 | 7265 |
7266 }); | 7266 }); |
7267 | 7267 |
7268 | 7268 |
7269 unittest.group("resource-TokensResourceApi", () { | 7269 unittest.group("resource-TokensResourceApi", () { |
7270 unittest.test("method--delete", () { | 7270 unittest.test("method--delete", () { |
7271 | 7271 |
7272 var mock = new HttpServerMock(); | 7272 var mock = new HttpServerMock(); |
7273 api.TokensResourceApi res = new api.AdminApi(mock).tokens; | 7273 api.TokensResourceApi res = new api.AdminApi(mock).tokens; |
7274 var arg_userKey = "foo"; | 7274 var arg_userKey = "foo"; |
7275 var arg_clientId = "foo"; | 7275 var arg_clientId = "foo"; |
7276 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7276 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7277 var path = (req.url).path; | 7277 var path = (req.url).path; |
7278 var pathOffset = 0; | 7278 var pathOffset = 0; |
7279 var index; | 7279 var index; |
7280 var subPart; | 7280 var subPart; |
7281 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7281 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7282 pathOffset += 1; | 7282 pathOffset += 1; |
7283 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7283 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
7284 pathOffset += 19; | 7284 pathOffset += 19; |
7285 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 7285 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
7286 pathOffset += 6; | 7286 pathOffset += 6; |
(...skipping 25 matching lines...) Expand all Loading... |
7312 } | 7312 } |
7313 } | 7313 } |
7314 | 7314 |
7315 | 7315 |
7316 var h = { | 7316 var h = { |
7317 "content-type" : "application/json; charset=utf-8", | 7317 "content-type" : "application/json; charset=utf-8", |
7318 }; | 7318 }; |
7319 var resp = ""; | 7319 var resp = ""; |
7320 return new async.Future.value(stringResponse(200, h, resp)); | 7320 return new async.Future.value(stringResponse(200, h, resp)); |
7321 }), true); | 7321 }), true); |
7322 res.delete(arg_userKey, arg_clientId).then(unittest.expectAsync((_) {})); | 7322 res.delete(arg_userKey, arg_clientId).then(unittest.expectAsync1((_) {})); |
7323 }); | 7323 }); |
7324 | 7324 |
7325 unittest.test("method--get", () { | 7325 unittest.test("method--get", () { |
7326 | 7326 |
7327 var mock = new HttpServerMock(); | 7327 var mock = new HttpServerMock(); |
7328 api.TokensResourceApi res = new api.AdminApi(mock).tokens; | 7328 api.TokensResourceApi res = new api.AdminApi(mock).tokens; |
7329 var arg_userKey = "foo"; | 7329 var arg_userKey = "foo"; |
7330 var arg_clientId = "foo"; | 7330 var arg_clientId = "foo"; |
7331 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7331 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7332 var path = (req.url).path; | 7332 var path = (req.url).path; |
7333 var pathOffset = 0; | 7333 var pathOffset = 0; |
7334 var index; | 7334 var index; |
7335 var subPart; | 7335 var subPart; |
7336 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7336 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7337 pathOffset += 1; | 7337 pathOffset += 1; |
7338 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7338 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
7339 pathOffset += 19; | 7339 pathOffset += 19; |
7340 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 7340 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
7341 pathOffset += 6; | 7341 pathOffset += 6; |
(...skipping 25 matching lines...) Expand all Loading... |
7367 } | 7367 } |
7368 } | 7368 } |
7369 | 7369 |
7370 | 7370 |
7371 var h = { | 7371 var h = { |
7372 "content-type" : "application/json; charset=utf-8", | 7372 "content-type" : "application/json; charset=utf-8", |
7373 }; | 7373 }; |
7374 var resp = convert.JSON.encode(buildToken()); | 7374 var resp = convert.JSON.encode(buildToken()); |
7375 return new async.Future.value(stringResponse(200, h, resp)); | 7375 return new async.Future.value(stringResponse(200, h, resp)); |
7376 }), true); | 7376 }), true); |
7377 res.get(arg_userKey, arg_clientId).then(unittest.expectAsync(((api.Token r
esponse) { | 7377 res.get(arg_userKey, arg_clientId).then(unittest.expectAsync1(((api.Token
response) { |
7378 checkToken(response); | 7378 checkToken(response); |
7379 }))); | 7379 }))); |
7380 }); | 7380 }); |
7381 | 7381 |
7382 unittest.test("method--list", () { | 7382 unittest.test("method--list", () { |
7383 | 7383 |
7384 var mock = new HttpServerMock(); | 7384 var mock = new HttpServerMock(); |
7385 api.TokensResourceApi res = new api.AdminApi(mock).tokens; | 7385 api.TokensResourceApi res = new api.AdminApi(mock).tokens; |
7386 var arg_userKey = "foo"; | 7386 var arg_userKey = "foo"; |
7387 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7387 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7388 var path = (req.url).path; | 7388 var path = (req.url).path; |
7389 var pathOffset = 0; | 7389 var pathOffset = 0; |
7390 var index; | 7390 var index; |
7391 var subPart; | 7391 var subPart; |
7392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7393 pathOffset += 1; | 7393 pathOffset += 1; |
7394 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7394 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
7395 pathOffset += 19; | 7395 pathOffset += 19; |
7396 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 7396 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
7397 pathOffset += 6; | 7397 pathOffset += 6; |
(...skipping 22 matching lines...) Expand all Loading... |
7420 } | 7420 } |
7421 } | 7421 } |
7422 | 7422 |
7423 | 7423 |
7424 var h = { | 7424 var h = { |
7425 "content-type" : "application/json; charset=utf-8", | 7425 "content-type" : "application/json; charset=utf-8", |
7426 }; | 7426 }; |
7427 var resp = convert.JSON.encode(buildTokens()); | 7427 var resp = convert.JSON.encode(buildTokens()); |
7428 return new async.Future.value(stringResponse(200, h, resp)); | 7428 return new async.Future.value(stringResponse(200, h, resp)); |
7429 }), true); | 7429 }), true); |
7430 res.list(arg_userKey).then(unittest.expectAsync(((api.Tokens response) { | 7430 res.list(arg_userKey).then(unittest.expectAsync1(((api.Tokens response) { |
7431 checkTokens(response); | 7431 checkTokens(response); |
7432 }))); | 7432 }))); |
7433 }); | 7433 }); |
7434 | 7434 |
7435 }); | 7435 }); |
7436 | 7436 |
7437 | 7437 |
7438 unittest.group("resource-UsersResourceApi", () { | 7438 unittest.group("resource-UsersResourceApi", () { |
7439 unittest.test("method--delete", () { | 7439 unittest.test("method--delete", () { |
7440 | 7440 |
7441 var mock = new HttpServerMock(); | 7441 var mock = new HttpServerMock(); |
7442 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7442 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7443 var arg_userKey = "foo"; | 7443 var arg_userKey = "foo"; |
7444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7444 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7445 var path = (req.url).path; | 7445 var path = (req.url).path; |
7446 var pathOffset = 0; | 7446 var pathOffset = 0; |
7447 var index; | 7447 var index; |
7448 var subPart; | 7448 var subPart; |
7449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7450 pathOffset += 1; | 7450 pathOffset += 1; |
7451 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7451 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
7452 pathOffset += 19; | 7452 pathOffset += 19; |
7453 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 7453 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
7454 pathOffset += 6; | 7454 pathOffset += 6; |
(...skipping 18 matching lines...) Expand all Loading... |
7473 } | 7473 } |
7474 } | 7474 } |
7475 | 7475 |
7476 | 7476 |
7477 var h = { | 7477 var h = { |
7478 "content-type" : "application/json; charset=utf-8", | 7478 "content-type" : "application/json; charset=utf-8", |
7479 }; | 7479 }; |
7480 var resp = ""; | 7480 var resp = ""; |
7481 return new async.Future.value(stringResponse(200, h, resp)); | 7481 return new async.Future.value(stringResponse(200, h, resp)); |
7482 }), true); | 7482 }), true); |
7483 res.delete(arg_userKey).then(unittest.expectAsync((_) {})); | 7483 res.delete(arg_userKey).then(unittest.expectAsync1((_) {})); |
7484 }); | 7484 }); |
7485 | 7485 |
7486 unittest.test("method--get", () { | 7486 unittest.test("method--get", () { |
7487 | 7487 |
7488 var mock = new HttpServerMock(); | 7488 var mock = new HttpServerMock(); |
7489 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7489 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7490 var arg_userKey = "foo"; | 7490 var arg_userKey = "foo"; |
7491 var arg_customFieldMask = "foo"; | 7491 var arg_customFieldMask = "foo"; |
7492 var arg_projection = "foo"; | 7492 var arg_projection = "foo"; |
7493 var arg_viewType = "foo"; | 7493 var arg_viewType = "foo"; |
7494 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7494 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7495 var path = (req.url).path; | 7495 var path = (req.url).path; |
7496 var pathOffset = 0; | 7496 var pathOffset = 0; |
7497 var index; | 7497 var index; |
7498 var subPart; | 7498 var subPart; |
7499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7500 pathOffset += 1; | 7500 pathOffset += 1; |
7501 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7501 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
7502 pathOffset += 19; | 7502 pathOffset += 19; |
7503 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 7503 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
7504 pathOffset += 6; | 7504 pathOffset += 6; |
(...skipping 21 matching lines...) Expand all Loading... |
7526 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); | 7526 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); |
7527 unittest.expect(queryMap["viewType"].first, unittest.equals(arg_viewType
)); | 7527 unittest.expect(queryMap["viewType"].first, unittest.equals(arg_viewType
)); |
7528 | 7528 |
7529 | 7529 |
7530 var h = { | 7530 var h = { |
7531 "content-type" : "application/json; charset=utf-8", | 7531 "content-type" : "application/json; charset=utf-8", |
7532 }; | 7532 }; |
7533 var resp = convert.JSON.encode(buildUser()); | 7533 var resp = convert.JSON.encode(buildUser()); |
7534 return new async.Future.value(stringResponse(200, h, resp)); | 7534 return new async.Future.value(stringResponse(200, h, resp)); |
7535 }), true); | 7535 }), true); |
7536 res.get(arg_userKey, customFieldMask: arg_customFieldMask, projection: arg
_projection, viewType: arg_viewType).then(unittest.expectAsync(((api.User respon
se) { | 7536 res.get(arg_userKey, customFieldMask: arg_customFieldMask, projection: arg
_projection, viewType: arg_viewType).then(unittest.expectAsync1(((api.User respo
nse) { |
7537 checkUser(response); | 7537 checkUser(response); |
7538 }))); | 7538 }))); |
7539 }); | 7539 }); |
7540 | 7540 |
7541 unittest.test("method--insert", () { | 7541 unittest.test("method--insert", () { |
7542 | 7542 |
7543 var mock = new HttpServerMock(); | 7543 var mock = new HttpServerMock(); |
7544 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7544 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7545 var arg_request = buildUser(); | 7545 var arg_request = buildUser(); |
7546 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7546 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7547 var obj = new api.User.fromJson(json); | 7547 var obj = new api.User.fromJson(json); |
7548 checkUser(obj); | 7548 checkUser(obj); |
7549 | 7549 |
7550 var path = (req.url).path; | 7550 var path = (req.url).path; |
7551 var pathOffset = 0; | 7551 var pathOffset = 0; |
7552 var index; | 7552 var index; |
7553 var subPart; | 7553 var subPart; |
7554 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7554 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7555 pathOffset += 1; | 7555 pathOffset += 1; |
7556 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7556 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 18 matching lines...) Expand all Loading... |
7575 } | 7575 } |
7576 } | 7576 } |
7577 | 7577 |
7578 | 7578 |
7579 var h = { | 7579 var h = { |
7580 "content-type" : "application/json; charset=utf-8", | 7580 "content-type" : "application/json; charset=utf-8", |
7581 }; | 7581 }; |
7582 var resp = convert.JSON.encode(buildUser()); | 7582 var resp = convert.JSON.encode(buildUser()); |
7583 return new async.Future.value(stringResponse(200, h, resp)); | 7583 return new async.Future.value(stringResponse(200, h, resp)); |
7584 }), true); | 7584 }), true); |
7585 res.insert(arg_request).then(unittest.expectAsync(((api.User response) { | 7585 res.insert(arg_request).then(unittest.expectAsync1(((api.User response) { |
7586 checkUser(response); | 7586 checkUser(response); |
7587 }))); | 7587 }))); |
7588 }); | 7588 }); |
7589 | 7589 |
7590 unittest.test("method--list", () { | 7590 unittest.test("method--list", () { |
7591 | 7591 |
7592 var mock = new HttpServerMock(); | 7592 var mock = new HttpServerMock(); |
7593 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7593 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7594 var arg_customFieldMask = "foo"; | 7594 var arg_customFieldMask = "foo"; |
7595 var arg_customer = "foo"; | 7595 var arg_customer = "foo"; |
7596 var arg_domain = "foo"; | 7596 var arg_domain = "foo"; |
7597 var arg_event = "foo"; | 7597 var arg_event = "foo"; |
7598 var arg_maxResults = 42; | 7598 var arg_maxResults = 42; |
7599 var arg_orderBy = "foo"; | 7599 var arg_orderBy = "foo"; |
7600 var arg_pageToken = "foo"; | 7600 var arg_pageToken = "foo"; |
7601 var arg_projection = "foo"; | 7601 var arg_projection = "foo"; |
7602 var arg_query = "foo"; | 7602 var arg_query = "foo"; |
7603 var arg_showDeleted = "foo"; | 7603 var arg_showDeleted = "foo"; |
7604 var arg_sortOrder = "foo"; | 7604 var arg_sortOrder = "foo"; |
7605 var arg_viewType = "foo"; | 7605 var arg_viewType = "foo"; |
7606 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7606 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7607 var path = (req.url).path; | 7607 var path = (req.url).path; |
7608 var pathOffset = 0; | 7608 var pathOffset = 0; |
7609 var index; | 7609 var index; |
7610 var subPart; | 7610 var subPart; |
7611 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7611 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7612 pathOffset += 1; | 7612 pathOffset += 1; |
7613 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7613 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
7614 pathOffset += 19; | 7614 pathOffset += 19; |
7615 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("users")); | 7615 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("users")); |
7616 pathOffset += 5; | 7616 pathOffset += 5; |
(...skipping 27 matching lines...) Expand all Loading... |
7644 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 7644 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
7645 unittest.expect(queryMap["viewType"].first, unittest.equals(arg_viewType
)); | 7645 unittest.expect(queryMap["viewType"].first, unittest.equals(arg_viewType
)); |
7646 | 7646 |
7647 | 7647 |
7648 var h = { | 7648 var h = { |
7649 "content-type" : "application/json; charset=utf-8", | 7649 "content-type" : "application/json; charset=utf-8", |
7650 }; | 7650 }; |
7651 var resp = convert.JSON.encode(buildUsers()); | 7651 var resp = convert.JSON.encode(buildUsers()); |
7652 return new async.Future.value(stringResponse(200, h, resp)); | 7652 return new async.Future.value(stringResponse(200, h, resp)); |
7653 }), true); | 7653 }), true); |
7654 res.list(customFieldMask: arg_customFieldMask, customer: arg_customer, dom
ain: arg_domain, event: arg_event, maxResults: arg_maxResults, orderBy: arg_orde
rBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sho
wDeleted: arg_showDeleted, sortOrder: arg_sortOrder, viewType: arg_viewType).the
n(unittest.expectAsync(((api.Users response) { | 7654 res.list(customFieldMask: arg_customFieldMask, customer: arg_customer, dom
ain: arg_domain, event: arg_event, maxResults: arg_maxResults, orderBy: arg_orde
rBy, pageToken: arg_pageToken, projection: arg_projection, query: arg_query, sho
wDeleted: arg_showDeleted, sortOrder: arg_sortOrder, viewType: arg_viewType).the
n(unittest.expectAsync1(((api.Users response) { |
7655 checkUsers(response); | 7655 checkUsers(response); |
7656 }))); | 7656 }))); |
7657 }); | 7657 }); |
7658 | 7658 |
7659 unittest.test("method--makeAdmin", () { | 7659 unittest.test("method--makeAdmin", () { |
7660 | 7660 |
7661 var mock = new HttpServerMock(); | 7661 var mock = new HttpServerMock(); |
7662 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7662 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7663 var arg_request = buildUserMakeAdmin(); | 7663 var arg_request = buildUserMakeAdmin(); |
7664 var arg_userKey = "foo"; | 7664 var arg_userKey = "foo"; |
7665 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7665 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7666 var obj = new api.UserMakeAdmin.fromJson(json); | 7666 var obj = new api.UserMakeAdmin.fromJson(json); |
7667 checkUserMakeAdmin(obj); | 7667 checkUserMakeAdmin(obj); |
7668 | 7668 |
7669 var path = (req.url).path; | 7669 var path = (req.url).path; |
7670 var pathOffset = 0; | 7670 var pathOffset = 0; |
7671 var index; | 7671 var index; |
7672 var subPart; | 7672 var subPart; |
7673 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7673 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7674 pathOffset += 1; | 7674 pathOffset += 1; |
7675 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7675 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
7701 } | 7701 } |
7702 } | 7702 } |
7703 | 7703 |
7704 | 7704 |
7705 var h = { | 7705 var h = { |
7706 "content-type" : "application/json; charset=utf-8", | 7706 "content-type" : "application/json; charset=utf-8", |
7707 }; | 7707 }; |
7708 var resp = ""; | 7708 var resp = ""; |
7709 return new async.Future.value(stringResponse(200, h, resp)); | 7709 return new async.Future.value(stringResponse(200, h, resp)); |
7710 }), true); | 7710 }), true); |
7711 res.makeAdmin(arg_request, arg_userKey).then(unittest.expectAsync((_) {}))
; | 7711 res.makeAdmin(arg_request, arg_userKey).then(unittest.expectAsync1((_) {})
); |
7712 }); | 7712 }); |
7713 | 7713 |
7714 unittest.test("method--patch", () { | 7714 unittest.test("method--patch", () { |
7715 | 7715 |
7716 var mock = new HttpServerMock(); | 7716 var mock = new HttpServerMock(); |
7717 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7717 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7718 var arg_request = buildUser(); | 7718 var arg_request = buildUser(); |
7719 var arg_userKey = "foo"; | 7719 var arg_userKey = "foo"; |
7720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7720 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7721 var obj = new api.User.fromJson(json); | 7721 var obj = new api.User.fromJson(json); |
7722 checkUser(obj); | 7722 checkUser(obj); |
7723 | 7723 |
7724 var path = (req.url).path; | 7724 var path = (req.url).path; |
7725 var pathOffset = 0; | 7725 var pathOffset = 0; |
7726 var index; | 7726 var index; |
7727 var subPart; | 7727 var subPart; |
7728 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7728 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7729 pathOffset += 1; | 7729 pathOffset += 1; |
7730 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7730 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 21 matching lines...) Expand all Loading... |
7752 } | 7752 } |
7753 } | 7753 } |
7754 | 7754 |
7755 | 7755 |
7756 var h = { | 7756 var h = { |
7757 "content-type" : "application/json; charset=utf-8", | 7757 "content-type" : "application/json; charset=utf-8", |
7758 }; | 7758 }; |
7759 var resp = convert.JSON.encode(buildUser()); | 7759 var resp = convert.JSON.encode(buildUser()); |
7760 return new async.Future.value(stringResponse(200, h, resp)); | 7760 return new async.Future.value(stringResponse(200, h, resp)); |
7761 }), true); | 7761 }), true); |
7762 res.patch(arg_request, arg_userKey).then(unittest.expectAsync(((api.User r
esponse) { | 7762 res.patch(arg_request, arg_userKey).then(unittest.expectAsync1(((api.User
response) { |
7763 checkUser(response); | 7763 checkUser(response); |
7764 }))); | 7764 }))); |
7765 }); | 7765 }); |
7766 | 7766 |
7767 unittest.test("method--undelete", () { | 7767 unittest.test("method--undelete", () { |
7768 | 7768 |
7769 var mock = new HttpServerMock(); | 7769 var mock = new HttpServerMock(); |
7770 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7770 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7771 var arg_request = buildUserUndelete(); | 7771 var arg_request = buildUserUndelete(); |
7772 var arg_userKey = "foo"; | 7772 var arg_userKey = "foo"; |
7773 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7773 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7774 var obj = new api.UserUndelete.fromJson(json); | 7774 var obj = new api.UserUndelete.fromJson(json); |
7775 checkUserUndelete(obj); | 7775 checkUserUndelete(obj); |
7776 | 7776 |
7777 var path = (req.url).path; | 7777 var path = (req.url).path; |
7778 var pathOffset = 0; | 7778 var pathOffset = 0; |
7779 var index; | 7779 var index; |
7780 var subPart; | 7780 var subPart; |
7781 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7781 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7782 pathOffset += 1; | 7782 pathOffset += 1; |
7783 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7783 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
7809 } | 7809 } |
7810 } | 7810 } |
7811 | 7811 |
7812 | 7812 |
7813 var h = { | 7813 var h = { |
7814 "content-type" : "application/json; charset=utf-8", | 7814 "content-type" : "application/json; charset=utf-8", |
7815 }; | 7815 }; |
7816 var resp = ""; | 7816 var resp = ""; |
7817 return new async.Future.value(stringResponse(200, h, resp)); | 7817 return new async.Future.value(stringResponse(200, h, resp)); |
7818 }), true); | 7818 }), true); |
7819 res.undelete(arg_request, arg_userKey).then(unittest.expectAsync((_) {})); | 7819 res.undelete(arg_request, arg_userKey).then(unittest.expectAsync1((_) {}))
; |
7820 }); | 7820 }); |
7821 | 7821 |
7822 unittest.test("method--update", () { | 7822 unittest.test("method--update", () { |
7823 | 7823 |
7824 var mock = new HttpServerMock(); | 7824 var mock = new HttpServerMock(); |
7825 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7825 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7826 var arg_request = buildUser(); | 7826 var arg_request = buildUser(); |
7827 var arg_userKey = "foo"; | 7827 var arg_userKey = "foo"; |
7828 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7828 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7829 var obj = new api.User.fromJson(json); | 7829 var obj = new api.User.fromJson(json); |
7830 checkUser(obj); | 7830 checkUser(obj); |
7831 | 7831 |
7832 var path = (req.url).path; | 7832 var path = (req.url).path; |
7833 var pathOffset = 0; | 7833 var pathOffset = 0; |
7834 var index; | 7834 var index; |
7835 var subPart; | 7835 var subPart; |
7836 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7836 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7837 pathOffset += 1; | 7837 pathOffset += 1; |
7838 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7838 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 21 matching lines...) Expand all Loading... |
7860 } | 7860 } |
7861 } | 7861 } |
7862 | 7862 |
7863 | 7863 |
7864 var h = { | 7864 var h = { |
7865 "content-type" : "application/json; charset=utf-8", | 7865 "content-type" : "application/json; charset=utf-8", |
7866 }; | 7866 }; |
7867 var resp = convert.JSON.encode(buildUser()); | 7867 var resp = convert.JSON.encode(buildUser()); |
7868 return new async.Future.value(stringResponse(200, h, resp)); | 7868 return new async.Future.value(stringResponse(200, h, resp)); |
7869 }), true); | 7869 }), true); |
7870 res.update(arg_request, arg_userKey).then(unittest.expectAsync(((api.User
response) { | 7870 res.update(arg_request, arg_userKey).then(unittest.expectAsync1(((api.User
response) { |
7871 checkUser(response); | 7871 checkUser(response); |
7872 }))); | 7872 }))); |
7873 }); | 7873 }); |
7874 | 7874 |
7875 unittest.test("method--watch", () { | 7875 unittest.test("method--watch", () { |
7876 | 7876 |
7877 var mock = new HttpServerMock(); | 7877 var mock = new HttpServerMock(); |
7878 api.UsersResourceApi res = new api.AdminApi(mock).users; | 7878 api.UsersResourceApi res = new api.AdminApi(mock).users; |
7879 var arg_request = buildChannel(); | 7879 var arg_request = buildChannel(); |
7880 var arg_customFieldMask = "foo"; | 7880 var arg_customFieldMask = "foo"; |
7881 var arg_customer = "foo"; | 7881 var arg_customer = "foo"; |
7882 var arg_domain = "foo"; | 7882 var arg_domain = "foo"; |
7883 var arg_event = "foo"; | 7883 var arg_event = "foo"; |
7884 var arg_maxResults = 42; | 7884 var arg_maxResults = 42; |
7885 var arg_orderBy = "foo"; | 7885 var arg_orderBy = "foo"; |
7886 var arg_pageToken = "foo"; | 7886 var arg_pageToken = "foo"; |
7887 var arg_projection = "foo"; | 7887 var arg_projection = "foo"; |
7888 var arg_query = "foo"; | 7888 var arg_query = "foo"; |
7889 var arg_showDeleted = "foo"; | 7889 var arg_showDeleted = "foo"; |
7890 var arg_sortOrder = "foo"; | 7890 var arg_sortOrder = "foo"; |
7891 var arg_viewType = "foo"; | 7891 var arg_viewType = "foo"; |
7892 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7892 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7893 var obj = new api.Channel.fromJson(json); | 7893 var obj = new api.Channel.fromJson(json); |
7894 checkChannel(obj); | 7894 checkChannel(obj); |
7895 | 7895 |
7896 var path = (req.url).path; | 7896 var path = (req.url).path; |
7897 var pathOffset = 0; | 7897 var pathOffset = 0; |
7898 var index; | 7898 var index; |
7899 var subPart; | 7899 var subPart; |
7900 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7900 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7901 pathOffset += 1; | 7901 pathOffset += 1; |
7902 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7902 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 30 matching lines...) Expand all Loading... |
7933 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 7933 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
7934 unittest.expect(queryMap["viewType"].first, unittest.equals(arg_viewType
)); | 7934 unittest.expect(queryMap["viewType"].first, unittest.equals(arg_viewType
)); |
7935 | 7935 |
7936 | 7936 |
7937 var h = { | 7937 var h = { |
7938 "content-type" : "application/json; charset=utf-8", | 7938 "content-type" : "application/json; charset=utf-8", |
7939 }; | 7939 }; |
7940 var resp = convert.JSON.encode(buildChannel()); | 7940 var resp = convert.JSON.encode(buildChannel()); |
7941 return new async.Future.value(stringResponse(200, h, resp)); | 7941 return new async.Future.value(stringResponse(200, h, resp)); |
7942 }), true); | 7942 }), true); |
7943 res.watch(arg_request, customFieldMask: arg_customFieldMask, customer: arg
_customer, domain: arg_domain, event: arg_event, maxResults: arg_maxResults, ord
erBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query:
arg_query, showDeleted: arg_showDeleted, sortOrder: arg_sortOrder, viewType: arg
_viewType).then(unittest.expectAsync(((api.Channel response) { | 7943 res.watch(arg_request, customFieldMask: arg_customFieldMask, customer: arg
_customer, domain: arg_domain, event: arg_event, maxResults: arg_maxResults, ord
erBy: arg_orderBy, pageToken: arg_pageToken, projection: arg_projection, query:
arg_query, showDeleted: arg_showDeleted, sortOrder: arg_sortOrder, viewType: arg
_viewType).then(unittest.expectAsync1(((api.Channel response) { |
7944 checkChannel(response); | 7944 checkChannel(response); |
7945 }))); | 7945 }))); |
7946 }); | 7946 }); |
7947 | 7947 |
7948 }); | 7948 }); |
7949 | 7949 |
7950 | 7950 |
7951 unittest.group("resource-UsersAliasesResourceApi", () { | 7951 unittest.group("resource-UsersAliasesResourceApi", () { |
7952 unittest.test("method--delete", () { | 7952 unittest.test("method--delete", () { |
7953 | 7953 |
7954 var mock = new HttpServerMock(); | 7954 var mock = new HttpServerMock(); |
7955 api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; | 7955 api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; |
7956 var arg_userKey = "foo"; | 7956 var arg_userKey = "foo"; |
7957 var arg_alias = "foo"; | 7957 var arg_alias = "foo"; |
7958 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7958 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7959 var path = (req.url).path; | 7959 var path = (req.url).path; |
7960 var pathOffset = 0; | 7960 var pathOffset = 0; |
7961 var index; | 7961 var index; |
7962 var subPart; | 7962 var subPart; |
7963 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7963 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7964 pathOffset += 1; | 7964 pathOffset += 1; |
7965 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 7965 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
7966 pathOffset += 19; | 7966 pathOffset += 19; |
7967 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 7967 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
7968 pathOffset += 6; | 7968 pathOffset += 6; |
(...skipping 25 matching lines...) Expand all Loading... |
7994 } | 7994 } |
7995 } | 7995 } |
7996 | 7996 |
7997 | 7997 |
7998 var h = { | 7998 var h = { |
7999 "content-type" : "application/json; charset=utf-8", | 7999 "content-type" : "application/json; charset=utf-8", |
8000 }; | 8000 }; |
8001 var resp = ""; | 8001 var resp = ""; |
8002 return new async.Future.value(stringResponse(200, h, resp)); | 8002 return new async.Future.value(stringResponse(200, h, resp)); |
8003 }), true); | 8003 }), true); |
8004 res.delete(arg_userKey, arg_alias).then(unittest.expectAsync((_) {})); | 8004 res.delete(arg_userKey, arg_alias).then(unittest.expectAsync1((_) {})); |
8005 }); | 8005 }); |
8006 | 8006 |
8007 unittest.test("method--insert", () { | 8007 unittest.test("method--insert", () { |
8008 | 8008 |
8009 var mock = new HttpServerMock(); | 8009 var mock = new HttpServerMock(); |
8010 api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; | 8010 api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; |
8011 var arg_request = buildAlias(); | 8011 var arg_request = buildAlias(); |
8012 var arg_userKey = "foo"; | 8012 var arg_userKey = "foo"; |
8013 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8013 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8014 var obj = new api.Alias.fromJson(json); | 8014 var obj = new api.Alias.fromJson(json); |
8015 checkAlias(obj); | 8015 checkAlias(obj); |
8016 | 8016 |
8017 var path = (req.url).path; | 8017 var path = (req.url).path; |
8018 var pathOffset = 0; | 8018 var pathOffset = 0; |
8019 var index; | 8019 var index; |
8020 var subPart; | 8020 var subPart; |
8021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8022 pathOffset += 1; | 8022 pathOffset += 1; |
8023 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8023 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
8049 } | 8049 } |
8050 } | 8050 } |
8051 | 8051 |
8052 | 8052 |
8053 var h = { | 8053 var h = { |
8054 "content-type" : "application/json; charset=utf-8", | 8054 "content-type" : "application/json; charset=utf-8", |
8055 }; | 8055 }; |
8056 var resp = convert.JSON.encode(buildAlias()); | 8056 var resp = convert.JSON.encode(buildAlias()); |
8057 return new async.Future.value(stringResponse(200, h, resp)); | 8057 return new async.Future.value(stringResponse(200, h, resp)); |
8058 }), true); | 8058 }), true); |
8059 res.insert(arg_request, arg_userKey).then(unittest.expectAsync(((api.Alias
response) { | 8059 res.insert(arg_request, arg_userKey).then(unittest.expectAsync1(((api.Alia
s response) { |
8060 checkAlias(response); | 8060 checkAlias(response); |
8061 }))); | 8061 }))); |
8062 }); | 8062 }); |
8063 | 8063 |
8064 unittest.test("method--list", () { | 8064 unittest.test("method--list", () { |
8065 | 8065 |
8066 var mock = new HttpServerMock(); | 8066 var mock = new HttpServerMock(); |
8067 api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; | 8067 api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; |
8068 var arg_userKey = "foo"; | 8068 var arg_userKey = "foo"; |
8069 var arg_event = "foo"; | 8069 var arg_event = "foo"; |
8070 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8070 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8071 var path = (req.url).path; | 8071 var path = (req.url).path; |
8072 var pathOffset = 0; | 8072 var pathOffset = 0; |
8073 var index; | 8073 var index; |
8074 var subPart; | 8074 var subPart; |
8075 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8075 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8076 pathOffset += 1; | 8076 pathOffset += 1; |
8077 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8077 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
8078 pathOffset += 19; | 8078 pathOffset += 19; |
8079 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 8079 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
8080 pathOffset += 6; | 8080 pathOffset += 6; |
(...skipping 23 matching lines...) Expand all Loading... |
8104 } | 8104 } |
8105 unittest.expect(queryMap["event"].first, unittest.equals(arg_event)); | 8105 unittest.expect(queryMap["event"].first, unittest.equals(arg_event)); |
8106 | 8106 |
8107 | 8107 |
8108 var h = { | 8108 var h = { |
8109 "content-type" : "application/json; charset=utf-8", | 8109 "content-type" : "application/json; charset=utf-8", |
8110 }; | 8110 }; |
8111 var resp = convert.JSON.encode(buildAliases()); | 8111 var resp = convert.JSON.encode(buildAliases()); |
8112 return new async.Future.value(stringResponse(200, h, resp)); | 8112 return new async.Future.value(stringResponse(200, h, resp)); |
8113 }), true); | 8113 }), true); |
8114 res.list(arg_userKey, event: arg_event).then(unittest.expectAsync(((api.Al
iases response) { | 8114 res.list(arg_userKey, event: arg_event).then(unittest.expectAsync1(((api.A
liases response) { |
8115 checkAliases(response); | 8115 checkAliases(response); |
8116 }))); | 8116 }))); |
8117 }); | 8117 }); |
8118 | 8118 |
8119 unittest.test("method--watch", () { | 8119 unittest.test("method--watch", () { |
8120 | 8120 |
8121 var mock = new HttpServerMock(); | 8121 var mock = new HttpServerMock(); |
8122 api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; | 8122 api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; |
8123 var arg_request = buildChannel(); | 8123 var arg_request = buildChannel(); |
8124 var arg_userKey = "foo"; | 8124 var arg_userKey = "foo"; |
8125 var arg_event = "foo"; | 8125 var arg_event = "foo"; |
8126 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8126 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8127 var obj = new api.Channel.fromJson(json); | 8127 var obj = new api.Channel.fromJson(json); |
8128 checkChannel(obj); | 8128 checkChannel(obj); |
8129 | 8129 |
8130 var path = (req.url).path; | 8130 var path = (req.url).path; |
8131 var pathOffset = 0; | 8131 var pathOffset = 0; |
8132 var index; | 8132 var index; |
8133 var subPart; | 8133 var subPart; |
8134 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8134 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8135 pathOffset += 1; | 8135 pathOffset += 1; |
8136 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8136 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 26 matching lines...) Expand all Loading... |
8163 } | 8163 } |
8164 unittest.expect(queryMap["event"].first, unittest.equals(arg_event)); | 8164 unittest.expect(queryMap["event"].first, unittest.equals(arg_event)); |
8165 | 8165 |
8166 | 8166 |
8167 var h = { | 8167 var h = { |
8168 "content-type" : "application/json; charset=utf-8", | 8168 "content-type" : "application/json; charset=utf-8", |
8169 }; | 8169 }; |
8170 var resp = convert.JSON.encode(buildChannel()); | 8170 var resp = convert.JSON.encode(buildChannel()); |
8171 return new async.Future.value(stringResponse(200, h, resp)); | 8171 return new async.Future.value(stringResponse(200, h, resp)); |
8172 }), true); | 8172 }), true); |
8173 res.watch(arg_request, arg_userKey, event: arg_event).then(unittest.expect
Async(((api.Channel response) { | 8173 res.watch(arg_request, arg_userKey, event: arg_event).then(unittest.expect
Async1(((api.Channel response) { |
8174 checkChannel(response); | 8174 checkChannel(response); |
8175 }))); | 8175 }))); |
8176 }); | 8176 }); |
8177 | 8177 |
8178 }); | 8178 }); |
8179 | 8179 |
8180 | 8180 |
8181 unittest.group("resource-UsersPhotosResourceApi", () { | 8181 unittest.group("resource-UsersPhotosResourceApi", () { |
8182 unittest.test("method--delete", () { | 8182 unittest.test("method--delete", () { |
8183 | 8183 |
8184 var mock = new HttpServerMock(); | 8184 var mock = new HttpServerMock(); |
8185 api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; | 8185 api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; |
8186 var arg_userKey = "foo"; | 8186 var arg_userKey = "foo"; |
8187 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8187 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8188 var path = (req.url).path; | 8188 var path = (req.url).path; |
8189 var pathOffset = 0; | 8189 var pathOffset = 0; |
8190 var index; | 8190 var index; |
8191 var subPart; | 8191 var subPart; |
8192 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8192 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8193 pathOffset += 1; | 8193 pathOffset += 1; |
8194 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8194 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
8195 pathOffset += 19; | 8195 pathOffset += 19; |
8196 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 8196 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
8197 pathOffset += 6; | 8197 pathOffset += 6; |
(...skipping 22 matching lines...) Expand all Loading... |
8220 } | 8220 } |
8221 } | 8221 } |
8222 | 8222 |
8223 | 8223 |
8224 var h = { | 8224 var h = { |
8225 "content-type" : "application/json; charset=utf-8", | 8225 "content-type" : "application/json; charset=utf-8", |
8226 }; | 8226 }; |
8227 var resp = ""; | 8227 var resp = ""; |
8228 return new async.Future.value(stringResponse(200, h, resp)); | 8228 return new async.Future.value(stringResponse(200, h, resp)); |
8229 }), true); | 8229 }), true); |
8230 res.delete(arg_userKey).then(unittest.expectAsync((_) {})); | 8230 res.delete(arg_userKey).then(unittest.expectAsync1((_) {})); |
8231 }); | 8231 }); |
8232 | 8232 |
8233 unittest.test("method--get", () { | 8233 unittest.test("method--get", () { |
8234 | 8234 |
8235 var mock = new HttpServerMock(); | 8235 var mock = new HttpServerMock(); |
8236 api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; | 8236 api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; |
8237 var arg_userKey = "foo"; | 8237 var arg_userKey = "foo"; |
8238 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8238 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8239 var path = (req.url).path; | 8239 var path = (req.url).path; |
8240 var pathOffset = 0; | 8240 var pathOffset = 0; |
8241 var index; | 8241 var index; |
8242 var subPart; | 8242 var subPart; |
8243 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8243 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8244 pathOffset += 1; | 8244 pathOffset += 1; |
8245 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8245 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
8246 pathOffset += 19; | 8246 pathOffset += 19; |
8247 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 8247 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
8248 pathOffset += 6; | 8248 pathOffset += 6; |
(...skipping 22 matching lines...) Expand all Loading... |
8271 } | 8271 } |
8272 } | 8272 } |
8273 | 8273 |
8274 | 8274 |
8275 var h = { | 8275 var h = { |
8276 "content-type" : "application/json; charset=utf-8", | 8276 "content-type" : "application/json; charset=utf-8", |
8277 }; | 8277 }; |
8278 var resp = convert.JSON.encode(buildUserPhoto()); | 8278 var resp = convert.JSON.encode(buildUserPhoto()); |
8279 return new async.Future.value(stringResponse(200, h, resp)); | 8279 return new async.Future.value(stringResponse(200, h, resp)); |
8280 }), true); | 8280 }), true); |
8281 res.get(arg_userKey).then(unittest.expectAsync(((api.UserPhoto response) { | 8281 res.get(arg_userKey).then(unittest.expectAsync1(((api.UserPhoto response)
{ |
8282 checkUserPhoto(response); | 8282 checkUserPhoto(response); |
8283 }))); | 8283 }))); |
8284 }); | 8284 }); |
8285 | 8285 |
8286 unittest.test("method--patch", () { | 8286 unittest.test("method--patch", () { |
8287 | 8287 |
8288 var mock = new HttpServerMock(); | 8288 var mock = new HttpServerMock(); |
8289 api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; | 8289 api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; |
8290 var arg_request = buildUserPhoto(); | 8290 var arg_request = buildUserPhoto(); |
8291 var arg_userKey = "foo"; | 8291 var arg_userKey = "foo"; |
8292 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8292 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8293 var obj = new api.UserPhoto.fromJson(json); | 8293 var obj = new api.UserPhoto.fromJson(json); |
8294 checkUserPhoto(obj); | 8294 checkUserPhoto(obj); |
8295 | 8295 |
8296 var path = (req.url).path; | 8296 var path = (req.url).path; |
8297 var pathOffset = 0; | 8297 var pathOffset = 0; |
8298 var index; | 8298 var index; |
8299 var subPart; | 8299 var subPart; |
8300 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8300 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8301 pathOffset += 1; | 8301 pathOffset += 1; |
8302 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8302 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
8328 } | 8328 } |
8329 } | 8329 } |
8330 | 8330 |
8331 | 8331 |
8332 var h = { | 8332 var h = { |
8333 "content-type" : "application/json; charset=utf-8", | 8333 "content-type" : "application/json; charset=utf-8", |
8334 }; | 8334 }; |
8335 var resp = convert.JSON.encode(buildUserPhoto()); | 8335 var resp = convert.JSON.encode(buildUserPhoto()); |
8336 return new async.Future.value(stringResponse(200, h, resp)); | 8336 return new async.Future.value(stringResponse(200, h, resp)); |
8337 }), true); | 8337 }), true); |
8338 res.patch(arg_request, arg_userKey).then(unittest.expectAsync(((api.UserPh
oto response) { | 8338 res.patch(arg_request, arg_userKey).then(unittest.expectAsync1(((api.UserP
hoto response) { |
8339 checkUserPhoto(response); | 8339 checkUserPhoto(response); |
8340 }))); | 8340 }))); |
8341 }); | 8341 }); |
8342 | 8342 |
8343 unittest.test("method--update", () { | 8343 unittest.test("method--update", () { |
8344 | 8344 |
8345 var mock = new HttpServerMock(); | 8345 var mock = new HttpServerMock(); |
8346 api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; | 8346 api.UsersPhotosResourceApi res = new api.AdminApi(mock).users.photos; |
8347 var arg_request = buildUserPhoto(); | 8347 var arg_request = buildUserPhoto(); |
8348 var arg_userKey = "foo"; | 8348 var arg_userKey = "foo"; |
8349 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8349 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8350 var obj = new api.UserPhoto.fromJson(json); | 8350 var obj = new api.UserPhoto.fromJson(json); |
8351 checkUserPhoto(obj); | 8351 checkUserPhoto(obj); |
8352 | 8352 |
8353 var path = (req.url).path; | 8353 var path = (req.url).path; |
8354 var pathOffset = 0; | 8354 var pathOffset = 0; |
8355 var index; | 8355 var index; |
8356 var subPart; | 8356 var subPart; |
8357 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8357 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8358 pathOffset += 1; | 8358 pathOffset += 1; |
8359 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8359 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
(...skipping 25 matching lines...) Expand all Loading... |
8385 } | 8385 } |
8386 } | 8386 } |
8387 | 8387 |
8388 | 8388 |
8389 var h = { | 8389 var h = { |
8390 "content-type" : "application/json; charset=utf-8", | 8390 "content-type" : "application/json; charset=utf-8", |
8391 }; | 8391 }; |
8392 var resp = convert.JSON.encode(buildUserPhoto()); | 8392 var resp = convert.JSON.encode(buildUserPhoto()); |
8393 return new async.Future.value(stringResponse(200, h, resp)); | 8393 return new async.Future.value(stringResponse(200, h, resp)); |
8394 }), true); | 8394 }), true); |
8395 res.update(arg_request, arg_userKey).then(unittest.expectAsync(((api.UserP
hoto response) { | 8395 res.update(arg_request, arg_userKey).then(unittest.expectAsync1(((api.User
Photo response) { |
8396 checkUserPhoto(response); | 8396 checkUserPhoto(response); |
8397 }))); | 8397 }))); |
8398 }); | 8398 }); |
8399 | 8399 |
8400 }); | 8400 }); |
8401 | 8401 |
8402 | 8402 |
8403 unittest.group("resource-VerificationCodesResourceApi", () { | 8403 unittest.group("resource-VerificationCodesResourceApi", () { |
8404 unittest.test("method--generate", () { | 8404 unittest.test("method--generate", () { |
8405 | 8405 |
8406 var mock = new HttpServerMock(); | 8406 var mock = new HttpServerMock(); |
8407 api.VerificationCodesResourceApi res = new api.AdminApi(mock).verification
Codes; | 8407 api.VerificationCodesResourceApi res = new api.AdminApi(mock).verification
Codes; |
8408 var arg_userKey = "foo"; | 8408 var arg_userKey = "foo"; |
8409 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8409 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8410 var path = (req.url).path; | 8410 var path = (req.url).path; |
8411 var pathOffset = 0; | 8411 var pathOffset = 0; |
8412 var index; | 8412 var index; |
8413 var subPart; | 8413 var subPart; |
8414 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8414 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8415 pathOffset += 1; | 8415 pathOffset += 1; |
8416 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8416 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
8417 pathOffset += 19; | 8417 pathOffset += 19; |
8418 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 8418 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
8419 pathOffset += 6; | 8419 pathOffset += 6; |
(...skipping 22 matching lines...) Expand all Loading... |
8442 } | 8442 } |
8443 } | 8443 } |
8444 | 8444 |
8445 | 8445 |
8446 var h = { | 8446 var h = { |
8447 "content-type" : "application/json; charset=utf-8", | 8447 "content-type" : "application/json; charset=utf-8", |
8448 }; | 8448 }; |
8449 var resp = ""; | 8449 var resp = ""; |
8450 return new async.Future.value(stringResponse(200, h, resp)); | 8450 return new async.Future.value(stringResponse(200, h, resp)); |
8451 }), true); | 8451 }), true); |
8452 res.generate(arg_userKey).then(unittest.expectAsync((_) {})); | 8452 res.generate(arg_userKey).then(unittest.expectAsync1((_) {})); |
8453 }); | 8453 }); |
8454 | 8454 |
8455 unittest.test("method--invalidate", () { | 8455 unittest.test("method--invalidate", () { |
8456 | 8456 |
8457 var mock = new HttpServerMock(); | 8457 var mock = new HttpServerMock(); |
8458 api.VerificationCodesResourceApi res = new api.AdminApi(mock).verification
Codes; | 8458 api.VerificationCodesResourceApi res = new api.AdminApi(mock).verification
Codes; |
8459 var arg_userKey = "foo"; | 8459 var arg_userKey = "foo"; |
8460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8460 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8461 var path = (req.url).path; | 8461 var path = (req.url).path; |
8462 var pathOffset = 0; | 8462 var pathOffset = 0; |
8463 var index; | 8463 var index; |
8464 var subPart; | 8464 var subPart; |
8465 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8465 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8466 pathOffset += 1; | 8466 pathOffset += 1; |
8467 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8467 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
8468 pathOffset += 19; | 8468 pathOffset += 19; |
8469 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 8469 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
8470 pathOffset += 6; | 8470 pathOffset += 6; |
(...skipping 22 matching lines...) Expand all Loading... |
8493 } | 8493 } |
8494 } | 8494 } |
8495 | 8495 |
8496 | 8496 |
8497 var h = { | 8497 var h = { |
8498 "content-type" : "application/json; charset=utf-8", | 8498 "content-type" : "application/json; charset=utf-8", |
8499 }; | 8499 }; |
8500 var resp = ""; | 8500 var resp = ""; |
8501 return new async.Future.value(stringResponse(200, h, resp)); | 8501 return new async.Future.value(stringResponse(200, h, resp)); |
8502 }), true); | 8502 }), true); |
8503 res.invalidate(arg_userKey).then(unittest.expectAsync((_) {})); | 8503 res.invalidate(arg_userKey).then(unittest.expectAsync1((_) {})); |
8504 }); | 8504 }); |
8505 | 8505 |
8506 unittest.test("method--list", () { | 8506 unittest.test("method--list", () { |
8507 | 8507 |
8508 var mock = new HttpServerMock(); | 8508 var mock = new HttpServerMock(); |
8509 api.VerificationCodesResourceApi res = new api.AdminApi(mock).verification
Codes; | 8509 api.VerificationCodesResourceApi res = new api.AdminApi(mock).verification
Codes; |
8510 var arg_userKey = "foo"; | 8510 var arg_userKey = "foo"; |
8511 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8511 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
8512 var path = (req.url).path; | 8512 var path = (req.url).path; |
8513 var pathOffset = 0; | 8513 var pathOffset = 0; |
8514 var index; | 8514 var index; |
8515 var subPart; | 8515 var subPart; |
8516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
8517 pathOffset += 1; | 8517 pathOffset += 1; |
8518 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 8518 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
8519 pathOffset += 19; | 8519 pathOffset += 19; |
8520 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 8520 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
8521 pathOffset += 6; | 8521 pathOffset += 6; |
(...skipping 22 matching lines...) Expand all Loading... |
8544 } | 8544 } |
8545 } | 8545 } |
8546 | 8546 |
8547 | 8547 |
8548 var h = { | 8548 var h = { |
8549 "content-type" : "application/json; charset=utf-8", | 8549 "content-type" : "application/json; charset=utf-8", |
8550 }; | 8550 }; |
8551 var resp = convert.JSON.encode(buildVerificationCodes()); | 8551 var resp = convert.JSON.encode(buildVerificationCodes()); |
8552 return new async.Future.value(stringResponse(200, h, resp)); | 8552 return new async.Future.value(stringResponse(200, h, resp)); |
8553 }), true); | 8553 }), true); |
8554 res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes re
sponse) { | 8554 res.list(arg_userKey).then(unittest.expectAsync1(((api.VerificationCodes r
esponse) { |
8555 checkVerificationCodes(response); | 8555 checkVerificationCodes(response); |
8556 }))); | 8556 }))); |
8557 }); | 8557 }); |
8558 | 8558 |
8559 }); | 8559 }); |
8560 | 8560 |
8561 | 8561 |
8562 } | 8562 } |
8563 | 8563 |
OLD | NEW |