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:unittest/unittest.dart' as unittest; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 buildUnnamed753() { | 81 buildUnnamed138() { |
82 var o = new core.List<api.Alias>(); | 82 var o = new core.List<api.Alias>(); |
83 o.add(buildAlias()); | 83 o.add(buildAlias()); |
84 o.add(buildAlias()); | 84 o.add(buildAlias()); |
85 return o; | 85 return o; |
86 } | 86 } |
87 | 87 |
88 checkUnnamed753(core.List<api.Alias> o) { | 88 checkUnnamed138(core.List<api.Alias> o) { |
89 unittest.expect(o, unittest.hasLength(2)); | 89 unittest.expect(o, unittest.hasLength(2)); |
90 checkAlias(o[0]); | 90 checkAlias(o[0]); |
91 checkAlias(o[1]); | 91 checkAlias(o[1]); |
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 = buildUnnamed753(); | 99 o.aliases = buildUnnamed138(); |
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 checkUnnamed753(o.aliases); | 110 checkUnnamed138(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 buildUnnamed754() { | 148 buildUnnamed139() { |
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 checkUnnamed754(core.List<api.Asp> o) { | 155 checkUnnamed139(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 = buildUnnamed754(); | 167 o.items = buildUnnamed139(); |
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 checkUnnamed754(o.items); | 178 checkUnnamed139(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 buildUnnamed755() { | 184 buildUnnamed140() { |
185 var o = new core.Map<core.String, core.String>(); | 185 var o = new core.Map<core.String, core.String>(); |
186 o["x"] = "foo"; | 186 o["x"] = "foo"; |
187 o["y"] = "foo"; | 187 o["y"] = "foo"; |
188 return o; | 188 return o; |
189 } | 189 } |
190 | 190 |
191 checkUnnamed755(core.Map<core.String, core.String> o) { | 191 checkUnnamed140(core.Map<core.String, core.String> o) { |
192 unittest.expect(o, unittest.hasLength(2)); | 192 unittest.expect(o, unittest.hasLength(2)); |
193 unittest.expect(o["x"], unittest.equals('foo')); | 193 unittest.expect(o["x"], unittest.equals('foo')); |
194 unittest.expect(o["y"], unittest.equals('foo')); | 194 unittest.expect(o["y"], unittest.equals('foo')); |
195 } | 195 } |
196 | 196 |
197 core.int buildCounterChannel = 0; | 197 core.int buildCounterChannel = 0; |
198 buildChannel() { | 198 buildChannel() { |
199 var o = new api.Channel(); | 199 var o = new api.Channel(); |
200 buildCounterChannel++; | 200 buildCounterChannel++; |
201 if (buildCounterChannel < 3) { | 201 if (buildCounterChannel < 3) { |
202 o.address = "foo"; | 202 o.address = "foo"; |
203 o.expiration = "foo"; | 203 o.expiration = "foo"; |
204 o.id = "foo"; | 204 o.id = "foo"; |
205 o.kind = "foo"; | 205 o.kind = "foo"; |
206 o.params = buildUnnamed755(); | 206 o.params = buildUnnamed140(); |
207 o.payload = true; | 207 o.payload = true; |
208 o.resourceId = "foo"; | 208 o.resourceId = "foo"; |
209 o.resourceUri = "foo"; | 209 o.resourceUri = "foo"; |
210 o.token = "foo"; | 210 o.token = "foo"; |
211 o.type = "foo"; | 211 o.type = "foo"; |
212 } | 212 } |
213 buildCounterChannel--; | 213 buildCounterChannel--; |
214 return o; | 214 return o; |
215 } | 215 } |
216 | 216 |
217 checkChannel(api.Channel o) { | 217 checkChannel(api.Channel o) { |
218 buildCounterChannel++; | 218 buildCounterChannel++; |
219 if (buildCounterChannel < 3) { | 219 if (buildCounterChannel < 3) { |
220 unittest.expect(o.address, unittest.equals('foo')); | 220 unittest.expect(o.address, unittest.equals('foo')); |
221 unittest.expect(o.expiration, unittest.equals('foo')); | 221 unittest.expect(o.expiration, unittest.equals('foo')); |
222 unittest.expect(o.id, unittest.equals('foo')); | 222 unittest.expect(o.id, unittest.equals('foo')); |
223 unittest.expect(o.kind, unittest.equals('foo')); | 223 unittest.expect(o.kind, unittest.equals('foo')); |
224 checkUnnamed755(o.params); | 224 checkUnnamed140(o.params); |
225 unittest.expect(o.payload, unittest.isTrue); | 225 unittest.expect(o.payload, unittest.isTrue); |
226 unittest.expect(o.resourceId, unittest.equals('foo')); | 226 unittest.expect(o.resourceId, unittest.equals('foo')); |
227 unittest.expect(o.resourceUri, unittest.equals('foo')); | 227 unittest.expect(o.resourceUri, unittest.equals('foo')); |
228 unittest.expect(o.token, unittest.equals('foo')); | 228 unittest.expect(o.token, unittest.equals('foo')); |
229 unittest.expect(o.type, unittest.equals('foo')); | 229 unittest.expect(o.type, unittest.equals('foo')); |
230 } | 230 } |
231 buildCounterChannel--; | 231 buildCounterChannel--; |
232 } | 232 } |
233 | 233 |
234 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0; | 234 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
245 | 245 |
246 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) { | 246 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) { |
247 buildCounterChromeOsDeviceActiveTimeRanges++; | 247 buildCounterChromeOsDeviceActiveTimeRanges++; |
248 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) { | 248 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) { |
249 unittest.expect(o.activeTime, unittest.equals(42)); | 249 unittest.expect(o.activeTime, unittest.equals(42)); |
250 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0
0:00"))); | 250 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0
0:00"))); |
251 } | 251 } |
252 buildCounterChromeOsDeviceActiveTimeRanges--; | 252 buildCounterChromeOsDeviceActiveTimeRanges--; |
253 } | 253 } |
254 | 254 |
255 buildUnnamed756() { | 255 buildUnnamed141() { |
256 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); | 256 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); |
257 o.add(buildChromeOsDeviceActiveTimeRanges()); | 257 o.add(buildChromeOsDeviceActiveTimeRanges()); |
258 o.add(buildChromeOsDeviceActiveTimeRanges()); | 258 o.add(buildChromeOsDeviceActiveTimeRanges()); |
259 return o; | 259 return o; |
260 } | 260 } |
261 | 261 |
262 checkUnnamed756(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { | 262 checkUnnamed141(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { |
263 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
264 checkChromeOsDeviceActiveTimeRanges(o[0]); | 264 checkChromeOsDeviceActiveTimeRanges(o[0]); |
265 checkChromeOsDeviceActiveTimeRanges(o[1]); | 265 checkChromeOsDeviceActiveTimeRanges(o[1]); |
266 } | 266 } |
267 | 267 |
268 core.int buildCounterChromeOsDeviceRecentUsers = 0; | 268 core.int buildCounterChromeOsDeviceRecentUsers = 0; |
269 buildChromeOsDeviceRecentUsers() { | 269 buildChromeOsDeviceRecentUsers() { |
270 var o = new api.ChromeOsDeviceRecentUsers(); | 270 var o = new api.ChromeOsDeviceRecentUsers(); |
271 buildCounterChromeOsDeviceRecentUsers++; | 271 buildCounterChromeOsDeviceRecentUsers++; |
272 if (buildCounterChromeOsDeviceRecentUsers < 3) { | 272 if (buildCounterChromeOsDeviceRecentUsers < 3) { |
273 o.email = "foo"; | 273 o.email = "foo"; |
274 o.type = "foo"; | 274 o.type = "foo"; |
275 } | 275 } |
276 buildCounterChromeOsDeviceRecentUsers--; | 276 buildCounterChromeOsDeviceRecentUsers--; |
277 return o; | 277 return o; |
278 } | 278 } |
279 | 279 |
280 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { | 280 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { |
281 buildCounterChromeOsDeviceRecentUsers++; | 281 buildCounterChromeOsDeviceRecentUsers++; |
282 if (buildCounterChromeOsDeviceRecentUsers < 3) { | 282 if (buildCounterChromeOsDeviceRecentUsers < 3) { |
283 unittest.expect(o.email, unittest.equals('foo')); | 283 unittest.expect(o.email, unittest.equals('foo')); |
284 unittest.expect(o.type, unittest.equals('foo')); | 284 unittest.expect(o.type, unittest.equals('foo')); |
285 } | 285 } |
286 buildCounterChromeOsDeviceRecentUsers--; | 286 buildCounterChromeOsDeviceRecentUsers--; |
287 } | 287 } |
288 | 288 |
289 buildUnnamed757() { | 289 buildUnnamed142() { |
290 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); | 290 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); |
291 o.add(buildChromeOsDeviceRecentUsers()); | 291 o.add(buildChromeOsDeviceRecentUsers()); |
292 o.add(buildChromeOsDeviceRecentUsers()); | 292 o.add(buildChromeOsDeviceRecentUsers()); |
293 return o; | 293 return o; |
294 } | 294 } |
295 | 295 |
296 checkUnnamed757(core.List<api.ChromeOsDeviceRecentUsers> o) { | 296 checkUnnamed142(core.List<api.ChromeOsDeviceRecentUsers> o) { |
297 unittest.expect(o, unittest.hasLength(2)); | 297 unittest.expect(o, unittest.hasLength(2)); |
298 checkChromeOsDeviceRecentUsers(o[0]); | 298 checkChromeOsDeviceRecentUsers(o[0]); |
299 checkChromeOsDeviceRecentUsers(o[1]); | 299 checkChromeOsDeviceRecentUsers(o[1]); |
300 } | 300 } |
301 | 301 |
302 core.int buildCounterChromeOsDevice = 0; | 302 core.int buildCounterChromeOsDevice = 0; |
303 buildChromeOsDevice() { | 303 buildChromeOsDevice() { |
304 var o = new api.ChromeOsDevice(); | 304 var o = new api.ChromeOsDevice(); |
305 buildCounterChromeOsDevice++; | 305 buildCounterChromeOsDevice++; |
306 if (buildCounterChromeOsDevice < 3) { | 306 if (buildCounterChromeOsDevice < 3) { |
307 o.activeTimeRanges = buildUnnamed756(); | 307 o.activeTimeRanges = buildUnnamed141(); |
308 o.annotatedAssetId = "foo"; | 308 o.annotatedAssetId = "foo"; |
309 o.annotatedLocation = "foo"; | 309 o.annotatedLocation = "foo"; |
310 o.annotatedUser = "foo"; | 310 o.annotatedUser = "foo"; |
311 o.bootMode = "foo"; | 311 o.bootMode = "foo"; |
312 o.deviceId = "foo"; | 312 o.deviceId = "foo"; |
313 o.etag = "foo"; | 313 o.etag = "foo"; |
314 o.ethernetMacAddress = "foo"; | 314 o.ethernetMacAddress = "foo"; |
315 o.firmwareVersion = "foo"; | 315 o.firmwareVersion = "foo"; |
316 o.kind = "foo"; | 316 o.kind = "foo"; |
317 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); | 317 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); |
318 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); | 318 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); |
319 o.macAddress = "foo"; | 319 o.macAddress = "foo"; |
320 o.meid = "foo"; | 320 o.meid = "foo"; |
321 o.model = "foo"; | 321 o.model = "foo"; |
322 o.notes = "foo"; | 322 o.notes = "foo"; |
323 o.orderNumber = "foo"; | 323 o.orderNumber = "foo"; |
324 o.orgUnitPath = "foo"; | 324 o.orgUnitPath = "foo"; |
325 o.osVersion = "foo"; | 325 o.osVersion = "foo"; |
326 o.platformVersion = "foo"; | 326 o.platformVersion = "foo"; |
327 o.recentUsers = buildUnnamed757(); | 327 o.recentUsers = buildUnnamed142(); |
328 o.serialNumber = "foo"; | 328 o.serialNumber = "foo"; |
329 o.status = "foo"; | 329 o.status = "foo"; |
330 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); | 330 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); |
331 o.willAutoRenew = true; | 331 o.willAutoRenew = true; |
332 } | 332 } |
333 buildCounterChromeOsDevice--; | 333 buildCounterChromeOsDevice--; |
334 return o; | 334 return o; |
335 } | 335 } |
336 | 336 |
337 checkChromeOsDevice(api.ChromeOsDevice o) { | 337 checkChromeOsDevice(api.ChromeOsDevice o) { |
338 buildCounterChromeOsDevice++; | 338 buildCounterChromeOsDevice++; |
339 if (buildCounterChromeOsDevice < 3) { | 339 if (buildCounterChromeOsDevice < 3) { |
340 checkUnnamed756(o.activeTimeRanges); | 340 checkUnnamed141(o.activeTimeRanges); |
341 unittest.expect(o.annotatedAssetId, unittest.equals('foo')); | 341 unittest.expect(o.annotatedAssetId, unittest.equals('foo')); |
342 unittest.expect(o.annotatedLocation, unittest.equals('foo')); | 342 unittest.expect(o.annotatedLocation, unittest.equals('foo')); |
343 unittest.expect(o.annotatedUser, unittest.equals('foo')); | 343 unittest.expect(o.annotatedUser, unittest.equals('foo')); |
344 unittest.expect(o.bootMode, unittest.equals('foo')); | 344 unittest.expect(o.bootMode, unittest.equals('foo')); |
345 unittest.expect(o.deviceId, unittest.equals('foo')); | 345 unittest.expect(o.deviceId, unittest.equals('foo')); |
346 unittest.expect(o.etag, unittest.equals('foo')); | 346 unittest.expect(o.etag, unittest.equals('foo')); |
347 unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); | 347 unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); |
348 unittest.expect(o.firmwareVersion, unittest.equals('foo')); | 348 unittest.expect(o.firmwareVersion, unittest.equals('foo')); |
349 unittest.expect(o.kind, unittest.equals('foo')); | 349 unittest.expect(o.kind, unittest.equals('foo')); |
350 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); | 350 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); |
351 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 351 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
352 unittest.expect(o.macAddress, unittest.equals('foo')); | 352 unittest.expect(o.macAddress, unittest.equals('foo')); |
353 unittest.expect(o.meid, unittest.equals('foo')); | 353 unittest.expect(o.meid, unittest.equals('foo')); |
354 unittest.expect(o.model, unittest.equals('foo')); | 354 unittest.expect(o.model, unittest.equals('foo')); |
355 unittest.expect(o.notes, unittest.equals('foo')); | 355 unittest.expect(o.notes, unittest.equals('foo')); |
356 unittest.expect(o.orderNumber, unittest.equals('foo')); | 356 unittest.expect(o.orderNumber, unittest.equals('foo')); |
357 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 357 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
358 unittest.expect(o.osVersion, unittest.equals('foo')); | 358 unittest.expect(o.osVersion, unittest.equals('foo')); |
359 unittest.expect(o.platformVersion, unittest.equals('foo')); | 359 unittest.expect(o.platformVersion, unittest.equals('foo')); |
360 checkUnnamed757(o.recentUsers); | 360 checkUnnamed142(o.recentUsers); |
361 unittest.expect(o.serialNumber, unittest.equals('foo')); | 361 unittest.expect(o.serialNumber, unittest.equals('foo')); |
362 unittest.expect(o.status, unittest.equals('foo')); | 362 unittest.expect(o.status, unittest.equals('foo')); |
363 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 363 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
364 unittest.expect(o.willAutoRenew, unittest.isTrue); | 364 unittest.expect(o.willAutoRenew, unittest.isTrue); |
365 } | 365 } |
366 buildCounterChromeOsDevice--; | 366 buildCounterChromeOsDevice--; |
367 } | 367 } |
368 | 368 |
369 buildUnnamed758() { | 369 buildUnnamed143() { |
370 var o = new core.List<api.ChromeOsDevice>(); | 370 var o = new core.List<api.ChromeOsDevice>(); |
371 o.add(buildChromeOsDevice()); | 371 o.add(buildChromeOsDevice()); |
372 o.add(buildChromeOsDevice()); | 372 o.add(buildChromeOsDevice()); |
373 return o; | 373 return o; |
374 } | 374 } |
375 | 375 |
376 checkUnnamed758(core.List<api.ChromeOsDevice> o) { | 376 checkUnnamed143(core.List<api.ChromeOsDevice> o) { |
377 unittest.expect(o, unittest.hasLength(2)); | 377 unittest.expect(o, unittest.hasLength(2)); |
378 checkChromeOsDevice(o[0]); | 378 checkChromeOsDevice(o[0]); |
379 checkChromeOsDevice(o[1]); | 379 checkChromeOsDevice(o[1]); |
380 } | 380 } |
381 | 381 |
382 core.int buildCounterChromeOsDevices = 0; | 382 core.int buildCounterChromeOsDevices = 0; |
383 buildChromeOsDevices() { | 383 buildChromeOsDevices() { |
384 var o = new api.ChromeOsDevices(); | 384 var o = new api.ChromeOsDevices(); |
385 buildCounterChromeOsDevices++; | 385 buildCounterChromeOsDevices++; |
386 if (buildCounterChromeOsDevices < 3) { | 386 if (buildCounterChromeOsDevices < 3) { |
387 o.chromeosdevices = buildUnnamed758(); | 387 o.chromeosdevices = buildUnnamed143(); |
388 o.etag = "foo"; | 388 o.etag = "foo"; |
389 o.kind = "foo"; | 389 o.kind = "foo"; |
390 o.nextPageToken = "foo"; | 390 o.nextPageToken = "foo"; |
391 } | 391 } |
392 buildCounterChromeOsDevices--; | 392 buildCounterChromeOsDevices--; |
393 return o; | 393 return o; |
394 } | 394 } |
395 | 395 |
396 checkChromeOsDevices(api.ChromeOsDevices o) { | 396 checkChromeOsDevices(api.ChromeOsDevices o) { |
397 buildCounterChromeOsDevices++; | 397 buildCounterChromeOsDevices++; |
398 if (buildCounterChromeOsDevices < 3) { | 398 if (buildCounterChromeOsDevices < 3) { |
399 checkUnnamed758(o.chromeosdevices); | 399 checkUnnamed143(o.chromeosdevices); |
400 unittest.expect(o.etag, unittest.equals('foo')); | 400 unittest.expect(o.etag, unittest.equals('foo')); |
401 unittest.expect(o.kind, unittest.equals('foo')); | 401 unittest.expect(o.kind, unittest.equals('foo')); |
402 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 402 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
403 } | 403 } |
404 buildCounterChromeOsDevices--; | 404 buildCounterChromeOsDevices--; |
405 } | 405 } |
406 | 406 |
407 buildUnnamed759() { | 407 buildUnnamed144() { |
408 var o = new core.List<core.String>(); | 408 var o = new core.List<core.String>(); |
409 o.add("foo"); | 409 o.add("foo"); |
410 o.add("foo"); | 410 o.add("foo"); |
411 return o; | 411 return o; |
412 } | 412 } |
413 | 413 |
414 checkUnnamed759(core.List<core.String> o) { | 414 checkUnnamed144(core.List<core.String> o) { |
415 unittest.expect(o, unittest.hasLength(2)); | 415 unittest.expect(o, unittest.hasLength(2)); |
416 unittest.expect(o[0], unittest.equals('foo')); | 416 unittest.expect(o[0], unittest.equals('foo')); |
417 unittest.expect(o[1], unittest.equals('foo')); | 417 unittest.expect(o[1], unittest.equals('foo')); |
418 } | 418 } |
419 | 419 |
420 buildUnnamed760() { | 420 buildUnnamed145() { |
421 var o = new core.List<core.String>(); | 421 var o = new core.List<core.String>(); |
422 o.add("foo"); | 422 o.add("foo"); |
423 o.add("foo"); | 423 o.add("foo"); |
424 return o; | 424 return o; |
425 } | 425 } |
426 | 426 |
427 checkUnnamed760(core.List<core.String> o) { | 427 checkUnnamed145(core.List<core.String> o) { |
428 unittest.expect(o, unittest.hasLength(2)); | 428 unittest.expect(o, unittest.hasLength(2)); |
429 unittest.expect(o[0], unittest.equals('foo')); | 429 unittest.expect(o[0], unittest.equals('foo')); |
430 unittest.expect(o[1], unittest.equals('foo')); | 430 unittest.expect(o[1], unittest.equals('foo')); |
431 } | 431 } |
432 | 432 |
433 core.int buildCounterGroup = 0; | 433 core.int buildCounterGroup = 0; |
434 buildGroup() { | 434 buildGroup() { |
435 var o = new api.Group(); | 435 var o = new api.Group(); |
436 buildCounterGroup++; | 436 buildCounterGroup++; |
437 if (buildCounterGroup < 3) { | 437 if (buildCounterGroup < 3) { |
438 o.adminCreated = true; | 438 o.adminCreated = true; |
439 o.aliases = buildUnnamed759(); | 439 o.aliases = buildUnnamed144(); |
440 o.description = "foo"; | 440 o.description = "foo"; |
441 o.directMembersCount = "foo"; | 441 o.directMembersCount = "foo"; |
442 o.email = "foo"; | 442 o.email = "foo"; |
443 o.etag = "foo"; | 443 o.etag = "foo"; |
444 o.id = "foo"; | 444 o.id = "foo"; |
445 o.kind = "foo"; | 445 o.kind = "foo"; |
446 o.name = "foo"; | 446 o.name = "foo"; |
447 o.nonEditableAliases = buildUnnamed760(); | 447 o.nonEditableAliases = buildUnnamed145(); |
448 } | 448 } |
449 buildCounterGroup--; | 449 buildCounterGroup--; |
450 return o; | 450 return o; |
451 } | 451 } |
452 | 452 |
453 checkGroup(api.Group o) { | 453 checkGroup(api.Group o) { |
454 buildCounterGroup++; | 454 buildCounterGroup++; |
455 if (buildCounterGroup < 3) { | 455 if (buildCounterGroup < 3) { |
456 unittest.expect(o.adminCreated, unittest.isTrue); | 456 unittest.expect(o.adminCreated, unittest.isTrue); |
457 checkUnnamed759(o.aliases); | 457 checkUnnamed144(o.aliases); |
458 unittest.expect(o.description, unittest.equals('foo')); | 458 unittest.expect(o.description, unittest.equals('foo')); |
459 unittest.expect(o.directMembersCount, unittest.equals('foo')); | 459 unittest.expect(o.directMembersCount, unittest.equals('foo')); |
460 unittest.expect(o.email, unittest.equals('foo')); | 460 unittest.expect(o.email, unittest.equals('foo')); |
461 unittest.expect(o.etag, unittest.equals('foo')); | 461 unittest.expect(o.etag, unittest.equals('foo')); |
462 unittest.expect(o.id, unittest.equals('foo')); | 462 unittest.expect(o.id, unittest.equals('foo')); |
463 unittest.expect(o.kind, unittest.equals('foo')); | 463 unittest.expect(o.kind, unittest.equals('foo')); |
464 unittest.expect(o.name, unittest.equals('foo')); | 464 unittest.expect(o.name, unittest.equals('foo')); |
465 checkUnnamed760(o.nonEditableAliases); | 465 checkUnnamed145(o.nonEditableAliases); |
466 } | 466 } |
467 buildCounterGroup--; | 467 buildCounterGroup--; |
468 } | 468 } |
469 | 469 |
470 buildUnnamed761() { | 470 buildUnnamed146() { |
471 var o = new core.List<api.Group>(); | 471 var o = new core.List<api.Group>(); |
472 o.add(buildGroup()); | 472 o.add(buildGroup()); |
473 o.add(buildGroup()); | 473 o.add(buildGroup()); |
474 return o; | 474 return o; |
475 } | 475 } |
476 | 476 |
477 checkUnnamed761(core.List<api.Group> o) { | 477 checkUnnamed146(core.List<api.Group> o) { |
478 unittest.expect(o, unittest.hasLength(2)); | 478 unittest.expect(o, unittest.hasLength(2)); |
479 checkGroup(o[0]); | 479 checkGroup(o[0]); |
480 checkGroup(o[1]); | 480 checkGroup(o[1]); |
481 } | 481 } |
482 | 482 |
483 core.int buildCounterGroups = 0; | 483 core.int buildCounterGroups = 0; |
484 buildGroups() { | 484 buildGroups() { |
485 var o = new api.Groups(); | 485 var o = new api.Groups(); |
486 buildCounterGroups++; | 486 buildCounterGroups++; |
487 if (buildCounterGroups < 3) { | 487 if (buildCounterGroups < 3) { |
488 o.etag = "foo"; | 488 o.etag = "foo"; |
489 o.groups = buildUnnamed761(); | 489 o.groups = buildUnnamed146(); |
490 o.kind = "foo"; | 490 o.kind = "foo"; |
491 o.nextPageToken = "foo"; | 491 o.nextPageToken = "foo"; |
492 } | 492 } |
493 buildCounterGroups--; | 493 buildCounterGroups--; |
494 return o; | 494 return o; |
495 } | 495 } |
496 | 496 |
497 checkGroups(api.Groups o) { | 497 checkGroups(api.Groups o) { |
498 buildCounterGroups++; | 498 buildCounterGroups++; |
499 if (buildCounterGroups < 3) { | 499 if (buildCounterGroups < 3) { |
500 unittest.expect(o.etag, unittest.equals('foo')); | 500 unittest.expect(o.etag, unittest.equals('foo')); |
501 checkUnnamed761(o.groups); | 501 checkUnnamed146(o.groups); |
502 unittest.expect(o.kind, unittest.equals('foo')); | 502 unittest.expect(o.kind, unittest.equals('foo')); |
503 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 503 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
504 } | 504 } |
505 buildCounterGroups--; | 505 buildCounterGroups--; |
506 } | 506 } |
507 | 507 |
508 core.int buildCounterMember = 0; | 508 core.int buildCounterMember = 0; |
509 buildMember() { | 509 buildMember() { |
510 var o = new api.Member(); | 510 var o = new api.Member(); |
511 buildCounterMember++; | 511 buildCounterMember++; |
(...skipping 15 matching lines...) Expand all Loading... |
527 unittest.expect(o.email, unittest.equals('foo')); | 527 unittest.expect(o.email, unittest.equals('foo')); |
528 unittest.expect(o.etag, unittest.equals('foo')); | 528 unittest.expect(o.etag, unittest.equals('foo')); |
529 unittest.expect(o.id, unittest.equals('foo')); | 529 unittest.expect(o.id, unittest.equals('foo')); |
530 unittest.expect(o.kind, unittest.equals('foo')); | 530 unittest.expect(o.kind, unittest.equals('foo')); |
531 unittest.expect(o.role, unittest.equals('foo')); | 531 unittest.expect(o.role, unittest.equals('foo')); |
532 unittest.expect(o.type, unittest.equals('foo')); | 532 unittest.expect(o.type, unittest.equals('foo')); |
533 } | 533 } |
534 buildCounterMember--; | 534 buildCounterMember--; |
535 } | 535 } |
536 | 536 |
537 buildUnnamed762() { | 537 buildUnnamed147() { |
538 var o = new core.List<api.Member>(); | 538 var o = new core.List<api.Member>(); |
539 o.add(buildMember()); | 539 o.add(buildMember()); |
540 o.add(buildMember()); | 540 o.add(buildMember()); |
541 return o; | 541 return o; |
542 } | 542 } |
543 | 543 |
544 checkUnnamed762(core.List<api.Member> o) { | 544 checkUnnamed147(core.List<api.Member> o) { |
545 unittest.expect(o, unittest.hasLength(2)); | 545 unittest.expect(o, unittest.hasLength(2)); |
546 checkMember(o[0]); | 546 checkMember(o[0]); |
547 checkMember(o[1]); | 547 checkMember(o[1]); |
548 } | 548 } |
549 | 549 |
550 core.int buildCounterMembers = 0; | 550 core.int buildCounterMembers = 0; |
551 buildMembers() { | 551 buildMembers() { |
552 var o = new api.Members(); | 552 var o = new api.Members(); |
553 buildCounterMembers++; | 553 buildCounterMembers++; |
554 if (buildCounterMembers < 3) { | 554 if (buildCounterMembers < 3) { |
555 o.etag = "foo"; | 555 o.etag = "foo"; |
556 o.kind = "foo"; | 556 o.kind = "foo"; |
557 o.members = buildUnnamed762(); | 557 o.members = buildUnnamed147(); |
558 o.nextPageToken = "foo"; | 558 o.nextPageToken = "foo"; |
559 } | 559 } |
560 buildCounterMembers--; | 560 buildCounterMembers--; |
561 return o; | 561 return o; |
562 } | 562 } |
563 | 563 |
564 checkMembers(api.Members o) { | 564 checkMembers(api.Members o) { |
565 buildCounterMembers++; | 565 buildCounterMembers++; |
566 if (buildCounterMembers < 3) { | 566 if (buildCounterMembers < 3) { |
567 unittest.expect(o.etag, unittest.equals('foo')); | 567 unittest.expect(o.etag, unittest.equals('foo')); |
568 unittest.expect(o.kind, unittest.equals('foo')); | 568 unittest.expect(o.kind, unittest.equals('foo')); |
569 checkUnnamed762(o.members); | 569 checkUnnamed147(o.members); |
570 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 570 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
571 } | 571 } |
572 buildCounterMembers--; | 572 buildCounterMembers--; |
573 } | 573 } |
574 | 574 |
575 buildUnnamed763() { | 575 buildUnnamed148() { |
576 var o = new core.List<core.String>(); | 576 var o = new core.List<core.String>(); |
577 o.add("foo"); | 577 o.add("foo"); |
578 o.add("foo"); | 578 o.add("foo"); |
579 return o; | 579 return o; |
580 } | 580 } |
581 | 581 |
582 checkUnnamed763(core.List<core.String> o) { | 582 checkUnnamed148(core.List<core.String> o) { |
583 unittest.expect(o, unittest.hasLength(2)); | 583 unittest.expect(o, unittest.hasLength(2)); |
584 unittest.expect(o[0], unittest.equals('foo')); | 584 unittest.expect(o[0], unittest.equals('foo')); |
585 unittest.expect(o[1], unittest.equals('foo')); | 585 unittest.expect(o[1], unittest.equals('foo')); |
586 } | 586 } |
587 | 587 |
588 core.int buildCounterMobileDeviceApplications = 0; | 588 core.int buildCounterMobileDeviceApplications = 0; |
589 buildMobileDeviceApplications() { | 589 buildMobileDeviceApplications() { |
590 var o = new api.MobileDeviceApplications(); | 590 var o = new api.MobileDeviceApplications(); |
591 buildCounterMobileDeviceApplications++; | 591 buildCounterMobileDeviceApplications++; |
592 if (buildCounterMobileDeviceApplications < 3) { | 592 if (buildCounterMobileDeviceApplications < 3) { |
593 o.displayName = "foo"; | 593 o.displayName = "foo"; |
594 o.packageName = "foo"; | 594 o.packageName = "foo"; |
595 o.permission = buildUnnamed763(); | 595 o.permission = buildUnnamed148(); |
596 o.versionCode = 42; | 596 o.versionCode = 42; |
597 o.versionName = "foo"; | 597 o.versionName = "foo"; |
598 } | 598 } |
599 buildCounterMobileDeviceApplications--; | 599 buildCounterMobileDeviceApplications--; |
600 return o; | 600 return o; |
601 } | 601 } |
602 | 602 |
603 checkMobileDeviceApplications(api.MobileDeviceApplications o) { | 603 checkMobileDeviceApplications(api.MobileDeviceApplications o) { |
604 buildCounterMobileDeviceApplications++; | 604 buildCounterMobileDeviceApplications++; |
605 if (buildCounterMobileDeviceApplications < 3) { | 605 if (buildCounterMobileDeviceApplications < 3) { |
606 unittest.expect(o.displayName, unittest.equals('foo')); | 606 unittest.expect(o.displayName, unittest.equals('foo')); |
607 unittest.expect(o.packageName, unittest.equals('foo')); | 607 unittest.expect(o.packageName, unittest.equals('foo')); |
608 checkUnnamed763(o.permission); | 608 checkUnnamed148(o.permission); |
609 unittest.expect(o.versionCode, unittest.equals(42)); | 609 unittest.expect(o.versionCode, unittest.equals(42)); |
610 unittest.expect(o.versionName, unittest.equals('foo')); | 610 unittest.expect(o.versionName, unittest.equals('foo')); |
611 } | 611 } |
612 buildCounterMobileDeviceApplications--; | 612 buildCounterMobileDeviceApplications--; |
613 } | 613 } |
614 | 614 |
615 buildUnnamed764() { | 615 buildUnnamed149() { |
616 var o = new core.List<api.MobileDeviceApplications>(); | 616 var o = new core.List<api.MobileDeviceApplications>(); |
617 o.add(buildMobileDeviceApplications()); | 617 o.add(buildMobileDeviceApplications()); |
618 o.add(buildMobileDeviceApplications()); | 618 o.add(buildMobileDeviceApplications()); |
619 return o; | 619 return o; |
620 } | 620 } |
621 | 621 |
622 checkUnnamed764(core.List<api.MobileDeviceApplications> o) { | 622 checkUnnamed149(core.List<api.MobileDeviceApplications> o) { |
623 unittest.expect(o, unittest.hasLength(2)); | 623 unittest.expect(o, unittest.hasLength(2)); |
624 checkMobileDeviceApplications(o[0]); | 624 checkMobileDeviceApplications(o[0]); |
625 checkMobileDeviceApplications(o[1]); | 625 checkMobileDeviceApplications(o[1]); |
626 } | 626 } |
627 | 627 |
628 buildUnnamed765() { | 628 buildUnnamed150() { |
629 var o = new core.List<core.String>(); | 629 var o = new core.List<core.String>(); |
630 o.add("foo"); | 630 o.add("foo"); |
631 o.add("foo"); | 631 o.add("foo"); |
632 return o; | 632 return o; |
633 } | 633 } |
634 | 634 |
635 checkUnnamed765(core.List<core.String> o) { | 635 checkUnnamed150(core.List<core.String> o) { |
636 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
637 unittest.expect(o[0], unittest.equals('foo')); | 637 unittest.expect(o[0], unittest.equals('foo')); |
638 unittest.expect(o[1], unittest.equals('foo')); | 638 unittest.expect(o[1], unittest.equals('foo')); |
639 } | 639 } |
640 | 640 |
641 buildUnnamed766() { | 641 buildUnnamed151() { |
642 var o = new core.List<core.String>(); | 642 var o = new core.List<core.String>(); |
643 o.add("foo"); | 643 o.add("foo"); |
644 o.add("foo"); | 644 o.add("foo"); |
645 return o; | 645 return o; |
646 } | 646 } |
647 | 647 |
648 checkUnnamed766(core.List<core.String> o) { | 648 checkUnnamed151(core.List<core.String> o) { |
649 unittest.expect(o, unittest.hasLength(2)); | 649 unittest.expect(o, unittest.hasLength(2)); |
650 unittest.expect(o[0], unittest.equals('foo')); | 650 unittest.expect(o[0], unittest.equals('foo')); |
651 unittest.expect(o[1], unittest.equals('foo')); | 651 unittest.expect(o[1], unittest.equals('foo')); |
| 652 } |
| 653 |
| 654 buildUnnamed152() { |
| 655 var o = new core.List<core.String>(); |
| 656 o.add("foo"); |
| 657 o.add("foo"); |
| 658 return o; |
| 659 } |
| 660 |
| 661 checkUnnamed152(core.List<core.String> o) { |
| 662 unittest.expect(o, unittest.hasLength(2)); |
| 663 unittest.expect(o[0], unittest.equals('foo')); |
| 664 unittest.expect(o[1], unittest.equals('foo')); |
652 } | 665 } |
653 | 666 |
654 core.int buildCounterMobileDevice = 0; | 667 core.int buildCounterMobileDevice = 0; |
655 buildMobileDevice() { | 668 buildMobileDevice() { |
656 var o = new api.MobileDevice(); | 669 var o = new api.MobileDevice(); |
657 buildCounterMobileDevice++; | 670 buildCounterMobileDevice++; |
658 if (buildCounterMobileDevice < 3) { | 671 if (buildCounterMobileDevice < 3) { |
659 o.applications = buildUnnamed764(); | 672 o.adbStatus = true; |
| 673 o.applications = buildUnnamed149(); |
660 o.basebandVersion = "foo"; | 674 o.basebandVersion = "foo"; |
661 o.buildNumber = "foo"; | 675 o.buildNumber = "foo"; |
662 o.defaultLanguage = "foo"; | 676 o.defaultLanguage = "foo"; |
| 677 o.developerOptionsStatus = true; |
663 o.deviceCompromisedStatus = "foo"; | 678 o.deviceCompromisedStatus = "foo"; |
664 o.deviceId = "foo"; | 679 o.deviceId = "foo"; |
665 o.email = buildUnnamed765(); | 680 o.email = buildUnnamed150(); |
666 o.etag = "foo"; | 681 o.etag = "foo"; |
667 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); | 682 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); |
668 o.hardwareId = "foo"; | 683 o.hardwareId = "foo"; |
669 o.imei = "foo"; | 684 o.imei = "foo"; |
670 o.kernelVersion = "foo"; | 685 o.kernelVersion = "foo"; |
671 o.kind = "foo"; | 686 o.kind = "foo"; |
672 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); | 687 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); |
673 o.managedAccountIsOnOwnerProfile = true; | 688 o.managedAccountIsOnOwnerProfile = true; |
674 o.meid = "foo"; | 689 o.meid = "foo"; |
675 o.model = "foo"; | 690 o.model = "foo"; |
676 o.name = buildUnnamed766(); | 691 o.name = buildUnnamed151(); |
677 o.networkOperator = "foo"; | 692 o.networkOperator = "foo"; |
678 o.os = "foo"; | 693 o.os = "foo"; |
| 694 o.otherAccountsInfo = buildUnnamed152(); |
679 o.resourceId = "foo"; | 695 o.resourceId = "foo"; |
680 o.serialNumber = "foo"; | 696 o.serialNumber = "foo"; |
681 o.status = "foo"; | 697 o.status = "foo"; |
| 698 o.supportsWorkProfile = true; |
682 o.type = "foo"; | 699 o.type = "foo"; |
| 700 o.unknownSourcesStatus = true; |
683 o.userAgent = "foo"; | 701 o.userAgent = "foo"; |
684 o.wifiMacAddress = "foo"; | 702 o.wifiMacAddress = "foo"; |
685 } | 703 } |
686 buildCounterMobileDevice--; | 704 buildCounterMobileDevice--; |
687 return o; | 705 return o; |
688 } | 706 } |
689 | 707 |
690 checkMobileDevice(api.MobileDevice o) { | 708 checkMobileDevice(api.MobileDevice o) { |
691 buildCounterMobileDevice++; | 709 buildCounterMobileDevice++; |
692 if (buildCounterMobileDevice < 3) { | 710 if (buildCounterMobileDevice < 3) { |
693 checkUnnamed764(o.applications); | 711 unittest.expect(o.adbStatus, unittest.isTrue); |
| 712 checkUnnamed149(o.applications); |
694 unittest.expect(o.basebandVersion, unittest.equals('foo')); | 713 unittest.expect(o.basebandVersion, unittest.equals('foo')); |
695 unittest.expect(o.buildNumber, unittest.equals('foo')); | 714 unittest.expect(o.buildNumber, unittest.equals('foo')); |
696 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 715 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
| 716 unittest.expect(o.developerOptionsStatus, unittest.isTrue); |
697 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); | 717 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); |
698 unittest.expect(o.deviceId, unittest.equals('foo')); | 718 unittest.expect(o.deviceId, unittest.equals('foo')); |
699 checkUnnamed765(o.email); | 719 checkUnnamed150(o.email); |
700 unittest.expect(o.etag, unittest.equals('foo')); | 720 unittest.expect(o.etag, unittest.equals('foo')); |
701 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 721 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
702 unittest.expect(o.hardwareId, unittest.equals('foo')); | 722 unittest.expect(o.hardwareId, unittest.equals('foo')); |
703 unittest.expect(o.imei, unittest.equals('foo')); | 723 unittest.expect(o.imei, unittest.equals('foo')); |
704 unittest.expect(o.kernelVersion, unittest.equals('foo')); | 724 unittest.expect(o.kernelVersion, unittest.equals('foo')); |
705 unittest.expect(o.kind, unittest.equals('foo')); | 725 unittest.expect(o.kind, unittest.equals('foo')); |
706 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 726 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
707 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); | 727 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); |
708 unittest.expect(o.meid, unittest.equals('foo')); | 728 unittest.expect(o.meid, unittest.equals('foo')); |
709 unittest.expect(o.model, unittest.equals('foo')); | 729 unittest.expect(o.model, unittest.equals('foo')); |
710 checkUnnamed766(o.name); | 730 checkUnnamed151(o.name); |
711 unittest.expect(o.networkOperator, unittest.equals('foo')); | 731 unittest.expect(o.networkOperator, unittest.equals('foo')); |
712 unittest.expect(o.os, unittest.equals('foo')); | 732 unittest.expect(o.os, unittest.equals('foo')); |
| 733 checkUnnamed152(o.otherAccountsInfo); |
713 unittest.expect(o.resourceId, unittest.equals('foo')); | 734 unittest.expect(o.resourceId, unittest.equals('foo')); |
714 unittest.expect(o.serialNumber, unittest.equals('foo')); | 735 unittest.expect(o.serialNumber, unittest.equals('foo')); |
715 unittest.expect(o.status, unittest.equals('foo')); | 736 unittest.expect(o.status, unittest.equals('foo')); |
| 737 unittest.expect(o.supportsWorkProfile, unittest.isTrue); |
716 unittest.expect(o.type, unittest.equals('foo')); | 738 unittest.expect(o.type, unittest.equals('foo')); |
| 739 unittest.expect(o.unknownSourcesStatus, unittest.isTrue); |
717 unittest.expect(o.userAgent, unittest.equals('foo')); | 740 unittest.expect(o.userAgent, unittest.equals('foo')); |
718 unittest.expect(o.wifiMacAddress, unittest.equals('foo')); | 741 unittest.expect(o.wifiMacAddress, unittest.equals('foo')); |
719 } | 742 } |
720 buildCounterMobileDevice--; | 743 buildCounterMobileDevice--; |
721 } | 744 } |
722 | 745 |
723 core.int buildCounterMobileDeviceAction = 0; | 746 core.int buildCounterMobileDeviceAction = 0; |
724 buildMobileDeviceAction() { | 747 buildMobileDeviceAction() { |
725 var o = new api.MobileDeviceAction(); | 748 var o = new api.MobileDeviceAction(); |
726 buildCounterMobileDeviceAction++; | 749 buildCounterMobileDeviceAction++; |
727 if (buildCounterMobileDeviceAction < 3) { | 750 if (buildCounterMobileDeviceAction < 3) { |
728 o.action = "foo"; | 751 o.action = "foo"; |
729 } | 752 } |
730 buildCounterMobileDeviceAction--; | 753 buildCounterMobileDeviceAction--; |
731 return o; | 754 return o; |
732 } | 755 } |
733 | 756 |
734 checkMobileDeviceAction(api.MobileDeviceAction o) { | 757 checkMobileDeviceAction(api.MobileDeviceAction o) { |
735 buildCounterMobileDeviceAction++; | 758 buildCounterMobileDeviceAction++; |
736 if (buildCounterMobileDeviceAction < 3) { | 759 if (buildCounterMobileDeviceAction < 3) { |
737 unittest.expect(o.action, unittest.equals('foo')); | 760 unittest.expect(o.action, unittest.equals('foo')); |
738 } | 761 } |
739 buildCounterMobileDeviceAction--; | 762 buildCounterMobileDeviceAction--; |
740 } | 763 } |
741 | 764 |
742 buildUnnamed767() { | 765 buildUnnamed153() { |
743 var o = new core.List<api.MobileDevice>(); | 766 var o = new core.List<api.MobileDevice>(); |
744 o.add(buildMobileDevice()); | 767 o.add(buildMobileDevice()); |
745 o.add(buildMobileDevice()); | 768 o.add(buildMobileDevice()); |
746 return o; | 769 return o; |
747 } | 770 } |
748 | 771 |
749 checkUnnamed767(core.List<api.MobileDevice> o) { | 772 checkUnnamed153(core.List<api.MobileDevice> o) { |
750 unittest.expect(o, unittest.hasLength(2)); | 773 unittest.expect(o, unittest.hasLength(2)); |
751 checkMobileDevice(o[0]); | 774 checkMobileDevice(o[0]); |
752 checkMobileDevice(o[1]); | 775 checkMobileDevice(o[1]); |
753 } | 776 } |
754 | 777 |
755 core.int buildCounterMobileDevices = 0; | 778 core.int buildCounterMobileDevices = 0; |
756 buildMobileDevices() { | 779 buildMobileDevices() { |
757 var o = new api.MobileDevices(); | 780 var o = new api.MobileDevices(); |
758 buildCounterMobileDevices++; | 781 buildCounterMobileDevices++; |
759 if (buildCounterMobileDevices < 3) { | 782 if (buildCounterMobileDevices < 3) { |
760 o.etag = "foo"; | 783 o.etag = "foo"; |
761 o.kind = "foo"; | 784 o.kind = "foo"; |
762 o.mobiledevices = buildUnnamed767(); | 785 o.mobiledevices = buildUnnamed153(); |
763 o.nextPageToken = "foo"; | 786 o.nextPageToken = "foo"; |
764 } | 787 } |
765 buildCounterMobileDevices--; | 788 buildCounterMobileDevices--; |
766 return o; | 789 return o; |
767 } | 790 } |
768 | 791 |
769 checkMobileDevices(api.MobileDevices o) { | 792 checkMobileDevices(api.MobileDevices o) { |
770 buildCounterMobileDevices++; | 793 buildCounterMobileDevices++; |
771 if (buildCounterMobileDevices < 3) { | 794 if (buildCounterMobileDevices < 3) { |
772 unittest.expect(o.etag, unittest.equals('foo')); | 795 unittest.expect(o.etag, unittest.equals('foo')); |
773 unittest.expect(o.kind, unittest.equals('foo')); | 796 unittest.expect(o.kind, unittest.equals('foo')); |
774 checkUnnamed767(o.mobiledevices); | 797 checkUnnamed153(o.mobiledevices); |
775 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 798 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
776 } | 799 } |
777 buildCounterMobileDevices--; | 800 buildCounterMobileDevices--; |
778 } | 801 } |
779 | 802 |
780 core.int buildCounterNotification = 0; | 803 core.int buildCounterNotification = 0; |
781 buildNotification() { | 804 buildNotification() { |
782 var o = new api.Notification(); | 805 var o = new api.Notification(); |
783 buildCounterNotification++; | 806 buildCounterNotification++; |
784 if (buildCounterNotification < 3) { | 807 if (buildCounterNotification < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
803 unittest.expect(o.fromAddress, unittest.equals('foo')); | 826 unittest.expect(o.fromAddress, unittest.equals('foo')); |
804 unittest.expect(o.isUnread, unittest.isTrue); | 827 unittest.expect(o.isUnread, unittest.isTrue); |
805 unittest.expect(o.kind, unittest.equals('foo')); | 828 unittest.expect(o.kind, unittest.equals('foo')); |
806 unittest.expect(o.notificationId, unittest.equals('foo')); | 829 unittest.expect(o.notificationId, unittest.equals('foo')); |
807 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 830 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
808 unittest.expect(o.subject, unittest.equals('foo')); | 831 unittest.expect(o.subject, unittest.equals('foo')); |
809 } | 832 } |
810 buildCounterNotification--; | 833 buildCounterNotification--; |
811 } | 834 } |
812 | 835 |
813 buildUnnamed768() { | 836 buildUnnamed154() { |
814 var o = new core.List<api.Notification>(); | 837 var o = new core.List<api.Notification>(); |
815 o.add(buildNotification()); | 838 o.add(buildNotification()); |
816 o.add(buildNotification()); | 839 o.add(buildNotification()); |
817 return o; | 840 return o; |
818 } | 841 } |
819 | 842 |
820 checkUnnamed768(core.List<api.Notification> o) { | 843 checkUnnamed154(core.List<api.Notification> o) { |
821 unittest.expect(o, unittest.hasLength(2)); | 844 unittest.expect(o, unittest.hasLength(2)); |
822 checkNotification(o[0]); | 845 checkNotification(o[0]); |
823 checkNotification(o[1]); | 846 checkNotification(o[1]); |
824 } | 847 } |
825 | 848 |
826 core.int buildCounterNotifications = 0; | 849 core.int buildCounterNotifications = 0; |
827 buildNotifications() { | 850 buildNotifications() { |
828 var o = new api.Notifications(); | 851 var o = new api.Notifications(); |
829 buildCounterNotifications++; | 852 buildCounterNotifications++; |
830 if (buildCounterNotifications < 3) { | 853 if (buildCounterNotifications < 3) { |
831 o.etag = "foo"; | 854 o.etag = "foo"; |
832 o.items = buildUnnamed768(); | 855 o.items = buildUnnamed154(); |
833 o.kind = "foo"; | 856 o.kind = "foo"; |
834 o.nextPageToken = "foo"; | 857 o.nextPageToken = "foo"; |
835 o.unreadNotificationsCount = 42; | 858 o.unreadNotificationsCount = 42; |
836 } | 859 } |
837 buildCounterNotifications--; | 860 buildCounterNotifications--; |
838 return o; | 861 return o; |
839 } | 862 } |
840 | 863 |
841 checkNotifications(api.Notifications o) { | 864 checkNotifications(api.Notifications o) { |
842 buildCounterNotifications++; | 865 buildCounterNotifications++; |
843 if (buildCounterNotifications < 3) { | 866 if (buildCounterNotifications < 3) { |
844 unittest.expect(o.etag, unittest.equals('foo')); | 867 unittest.expect(o.etag, unittest.equals('foo')); |
845 checkUnnamed768(o.items); | 868 checkUnnamed154(o.items); |
846 unittest.expect(o.kind, unittest.equals('foo')); | 869 unittest.expect(o.kind, unittest.equals('foo')); |
847 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 870 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
848 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); | 871 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); |
849 } | 872 } |
850 buildCounterNotifications--; | 873 buildCounterNotifications--; |
851 } | 874 } |
852 | 875 |
853 core.int buildCounterOrgUnit = 0; | 876 core.int buildCounterOrgUnit = 0; |
854 buildOrgUnit() { | 877 buildOrgUnit() { |
855 var o = new api.OrgUnit(); | 878 var o = new api.OrgUnit(); |
(...skipping 22 matching lines...) Expand all Loading... |
878 unittest.expect(o.kind, unittest.equals('foo')); | 901 unittest.expect(o.kind, unittest.equals('foo')); |
879 unittest.expect(o.name, unittest.equals('foo')); | 902 unittest.expect(o.name, unittest.equals('foo')); |
880 unittest.expect(o.orgUnitId, unittest.equals('foo')); | 903 unittest.expect(o.orgUnitId, unittest.equals('foo')); |
881 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 904 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
882 unittest.expect(o.parentOrgUnitId, unittest.equals('foo')); | 905 unittest.expect(o.parentOrgUnitId, unittest.equals('foo')); |
883 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); | 906 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); |
884 } | 907 } |
885 buildCounterOrgUnit--; | 908 buildCounterOrgUnit--; |
886 } | 909 } |
887 | 910 |
888 buildUnnamed769() { | 911 buildUnnamed155() { |
889 var o = new core.List<api.OrgUnit>(); | 912 var o = new core.List<api.OrgUnit>(); |
890 o.add(buildOrgUnit()); | 913 o.add(buildOrgUnit()); |
891 o.add(buildOrgUnit()); | 914 o.add(buildOrgUnit()); |
892 return o; | 915 return o; |
893 } | 916 } |
894 | 917 |
895 checkUnnamed769(core.List<api.OrgUnit> o) { | 918 checkUnnamed155(core.List<api.OrgUnit> o) { |
896 unittest.expect(o, unittest.hasLength(2)); | 919 unittest.expect(o, unittest.hasLength(2)); |
897 checkOrgUnit(o[0]); | 920 checkOrgUnit(o[0]); |
898 checkOrgUnit(o[1]); | 921 checkOrgUnit(o[1]); |
899 } | 922 } |
900 | 923 |
901 core.int buildCounterOrgUnits = 0; | 924 core.int buildCounterOrgUnits = 0; |
902 buildOrgUnits() { | 925 buildOrgUnits() { |
903 var o = new api.OrgUnits(); | 926 var o = new api.OrgUnits(); |
904 buildCounterOrgUnits++; | 927 buildCounterOrgUnits++; |
905 if (buildCounterOrgUnits < 3) { | 928 if (buildCounterOrgUnits < 3) { |
906 o.etag = "foo"; | 929 o.etag = "foo"; |
907 o.kind = "foo"; | 930 o.kind = "foo"; |
908 o.organizationUnits = buildUnnamed769(); | 931 o.organizationUnits = buildUnnamed155(); |
909 } | 932 } |
910 buildCounterOrgUnits--; | 933 buildCounterOrgUnits--; |
911 return o; | 934 return o; |
912 } | 935 } |
913 | 936 |
914 checkOrgUnits(api.OrgUnits o) { | 937 checkOrgUnits(api.OrgUnits o) { |
915 buildCounterOrgUnits++; | 938 buildCounterOrgUnits++; |
916 if (buildCounterOrgUnits < 3) { | 939 if (buildCounterOrgUnits < 3) { |
917 unittest.expect(o.etag, unittest.equals('foo')); | 940 unittest.expect(o.etag, unittest.equals('foo')); |
918 unittest.expect(o.kind, unittest.equals('foo')); | 941 unittest.expect(o.kind, unittest.equals('foo')); |
919 checkUnnamed769(o.organizationUnits); | 942 checkUnnamed155(o.organizationUnits); |
920 } | 943 } |
921 buildCounterOrgUnits--; | 944 buildCounterOrgUnits--; |
922 } | 945 } |
923 | 946 |
924 buildUnnamed770() { | 947 buildUnnamed156() { |
925 var o = new core.List<api.SchemaFieldSpec>(); | 948 var o = new core.List<api.SchemaFieldSpec>(); |
926 o.add(buildSchemaFieldSpec()); | 949 o.add(buildSchemaFieldSpec()); |
927 o.add(buildSchemaFieldSpec()); | 950 o.add(buildSchemaFieldSpec()); |
928 return o; | 951 return o; |
929 } | 952 } |
930 | 953 |
931 checkUnnamed770(core.List<api.SchemaFieldSpec> o) { | 954 checkUnnamed156(core.List<api.SchemaFieldSpec> o) { |
932 unittest.expect(o, unittest.hasLength(2)); | 955 unittest.expect(o, unittest.hasLength(2)); |
933 checkSchemaFieldSpec(o[0]); | 956 checkSchemaFieldSpec(o[0]); |
934 checkSchemaFieldSpec(o[1]); | 957 checkSchemaFieldSpec(o[1]); |
935 } | 958 } |
936 | 959 |
937 core.int buildCounterSchema = 0; | 960 core.int buildCounterSchema = 0; |
938 buildSchema() { | 961 buildSchema() { |
939 var o = new api.Schema(); | 962 var o = new api.Schema(); |
940 buildCounterSchema++; | 963 buildCounterSchema++; |
941 if (buildCounterSchema < 3) { | 964 if (buildCounterSchema < 3) { |
942 o.etag = "foo"; | 965 o.etag = "foo"; |
943 o.fields = buildUnnamed770(); | 966 o.fields = buildUnnamed156(); |
944 o.kind = "foo"; | 967 o.kind = "foo"; |
945 o.schemaId = "foo"; | 968 o.schemaId = "foo"; |
946 o.schemaName = "foo"; | 969 o.schemaName = "foo"; |
947 } | 970 } |
948 buildCounterSchema--; | 971 buildCounterSchema--; |
949 return o; | 972 return o; |
950 } | 973 } |
951 | 974 |
952 checkSchema(api.Schema o) { | 975 checkSchema(api.Schema o) { |
953 buildCounterSchema++; | 976 buildCounterSchema++; |
954 if (buildCounterSchema < 3) { | 977 if (buildCounterSchema < 3) { |
955 unittest.expect(o.etag, unittest.equals('foo')); | 978 unittest.expect(o.etag, unittest.equals('foo')); |
956 checkUnnamed770(o.fields); | 979 checkUnnamed156(o.fields); |
957 unittest.expect(o.kind, unittest.equals('foo')); | 980 unittest.expect(o.kind, unittest.equals('foo')); |
958 unittest.expect(o.schemaId, unittest.equals('foo')); | 981 unittest.expect(o.schemaId, unittest.equals('foo')); |
959 unittest.expect(o.schemaName, unittest.equals('foo')); | 982 unittest.expect(o.schemaName, unittest.equals('foo')); |
960 } | 983 } |
961 buildCounterSchema--; | 984 buildCounterSchema--; |
962 } | 985 } |
963 | 986 |
964 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; | 987 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; |
965 buildSchemaFieldSpecNumericIndexingSpec() { | 988 buildSchemaFieldSpecNumericIndexingSpec() { |
966 var o = new api.SchemaFieldSpecNumericIndexingSpec(); | 989 var o = new api.SchemaFieldSpecNumericIndexingSpec(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 unittest.expect(o.fieldType, unittest.equals('foo')); | 1033 unittest.expect(o.fieldType, unittest.equals('foo')); |
1011 unittest.expect(o.indexed, unittest.isTrue); | 1034 unittest.expect(o.indexed, unittest.isTrue); |
1012 unittest.expect(o.kind, unittest.equals('foo')); | 1035 unittest.expect(o.kind, unittest.equals('foo')); |
1013 unittest.expect(o.multiValued, unittest.isTrue); | 1036 unittest.expect(o.multiValued, unittest.isTrue); |
1014 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); | 1037 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); |
1015 unittest.expect(o.readAccessType, unittest.equals('foo')); | 1038 unittest.expect(o.readAccessType, unittest.equals('foo')); |
1016 } | 1039 } |
1017 buildCounterSchemaFieldSpec--; | 1040 buildCounterSchemaFieldSpec--; |
1018 } | 1041 } |
1019 | 1042 |
1020 buildUnnamed771() { | 1043 buildUnnamed157() { |
1021 var o = new core.List<api.Schema>(); | 1044 var o = new core.List<api.Schema>(); |
1022 o.add(buildSchema()); | 1045 o.add(buildSchema()); |
1023 o.add(buildSchema()); | 1046 o.add(buildSchema()); |
1024 return o; | 1047 return o; |
1025 } | 1048 } |
1026 | 1049 |
1027 checkUnnamed771(core.List<api.Schema> o) { | 1050 checkUnnamed157(core.List<api.Schema> o) { |
1028 unittest.expect(o, unittest.hasLength(2)); | 1051 unittest.expect(o, unittest.hasLength(2)); |
1029 checkSchema(o[0]); | 1052 checkSchema(o[0]); |
1030 checkSchema(o[1]); | 1053 checkSchema(o[1]); |
1031 } | 1054 } |
1032 | 1055 |
1033 core.int buildCounterSchemas = 0; | 1056 core.int buildCounterSchemas = 0; |
1034 buildSchemas() { | 1057 buildSchemas() { |
1035 var o = new api.Schemas(); | 1058 var o = new api.Schemas(); |
1036 buildCounterSchemas++; | 1059 buildCounterSchemas++; |
1037 if (buildCounterSchemas < 3) { | 1060 if (buildCounterSchemas < 3) { |
1038 o.etag = "foo"; | 1061 o.etag = "foo"; |
1039 o.kind = "foo"; | 1062 o.kind = "foo"; |
1040 o.schemas = buildUnnamed771(); | 1063 o.schemas = buildUnnamed157(); |
1041 } | 1064 } |
1042 buildCounterSchemas--; | 1065 buildCounterSchemas--; |
1043 return o; | 1066 return o; |
1044 } | 1067 } |
1045 | 1068 |
1046 checkSchemas(api.Schemas o) { | 1069 checkSchemas(api.Schemas o) { |
1047 buildCounterSchemas++; | 1070 buildCounterSchemas++; |
1048 if (buildCounterSchemas < 3) { | 1071 if (buildCounterSchemas < 3) { |
1049 unittest.expect(o.etag, unittest.equals('foo')); | 1072 unittest.expect(o.etag, unittest.equals('foo')); |
1050 unittest.expect(o.kind, unittest.equals('foo')); | 1073 unittest.expect(o.kind, unittest.equals('foo')); |
1051 checkUnnamed771(o.schemas); | 1074 checkUnnamed157(o.schemas); |
1052 } | 1075 } |
1053 buildCounterSchemas--; | 1076 buildCounterSchemas--; |
1054 } | 1077 } |
1055 | 1078 |
1056 buildUnnamed772() { | 1079 buildUnnamed158() { |
1057 var o = new core.List<core.String>(); | 1080 var o = new core.List<core.String>(); |
1058 o.add("foo"); | 1081 o.add("foo"); |
1059 o.add("foo"); | 1082 o.add("foo"); |
1060 return o; | 1083 return o; |
1061 } | 1084 } |
1062 | 1085 |
1063 checkUnnamed772(core.List<core.String> o) { | 1086 checkUnnamed158(core.List<core.String> o) { |
1064 unittest.expect(o, unittest.hasLength(2)); | 1087 unittest.expect(o, unittest.hasLength(2)); |
1065 unittest.expect(o[0], unittest.equals('foo')); | 1088 unittest.expect(o[0], unittest.equals('foo')); |
1066 unittest.expect(o[1], unittest.equals('foo')); | 1089 unittest.expect(o[1], unittest.equals('foo')); |
1067 } | 1090 } |
1068 | 1091 |
1069 core.int buildCounterToken = 0; | 1092 core.int buildCounterToken = 0; |
1070 buildToken() { | 1093 buildToken() { |
1071 var o = new api.Token(); | 1094 var o = new api.Token(); |
1072 buildCounterToken++; | 1095 buildCounterToken++; |
1073 if (buildCounterToken < 3) { | 1096 if (buildCounterToken < 3) { |
1074 o.anonymous = true; | 1097 o.anonymous = true; |
1075 o.clientId = "foo"; | 1098 o.clientId = "foo"; |
1076 o.displayText = "foo"; | 1099 o.displayText = "foo"; |
1077 o.etag = "foo"; | 1100 o.etag = "foo"; |
1078 o.kind = "foo"; | 1101 o.kind = "foo"; |
1079 o.nativeApp = true; | 1102 o.nativeApp = true; |
1080 o.scopes = buildUnnamed772(); | 1103 o.scopes = buildUnnamed158(); |
1081 o.userKey = "foo"; | 1104 o.userKey = "foo"; |
1082 } | 1105 } |
1083 buildCounterToken--; | 1106 buildCounterToken--; |
1084 return o; | 1107 return o; |
1085 } | 1108 } |
1086 | 1109 |
1087 checkToken(api.Token o) { | 1110 checkToken(api.Token o) { |
1088 buildCounterToken++; | 1111 buildCounterToken++; |
1089 if (buildCounterToken < 3) { | 1112 if (buildCounterToken < 3) { |
1090 unittest.expect(o.anonymous, unittest.isTrue); | 1113 unittest.expect(o.anonymous, unittest.isTrue); |
1091 unittest.expect(o.clientId, unittest.equals('foo')); | 1114 unittest.expect(o.clientId, unittest.equals('foo')); |
1092 unittest.expect(o.displayText, unittest.equals('foo')); | 1115 unittest.expect(o.displayText, unittest.equals('foo')); |
1093 unittest.expect(o.etag, unittest.equals('foo')); | 1116 unittest.expect(o.etag, unittest.equals('foo')); |
1094 unittest.expect(o.kind, unittest.equals('foo')); | 1117 unittest.expect(o.kind, unittest.equals('foo')); |
1095 unittest.expect(o.nativeApp, unittest.isTrue); | 1118 unittest.expect(o.nativeApp, unittest.isTrue); |
1096 checkUnnamed772(o.scopes); | 1119 checkUnnamed158(o.scopes); |
1097 unittest.expect(o.userKey, unittest.equals('foo')); | 1120 unittest.expect(o.userKey, unittest.equals('foo')); |
1098 } | 1121 } |
1099 buildCounterToken--; | 1122 buildCounterToken--; |
1100 } | 1123 } |
1101 | 1124 |
1102 buildUnnamed773() { | 1125 buildUnnamed159() { |
1103 var o = new core.List<api.Token>(); | 1126 var o = new core.List<api.Token>(); |
1104 o.add(buildToken()); | 1127 o.add(buildToken()); |
1105 o.add(buildToken()); | 1128 o.add(buildToken()); |
1106 return o; | 1129 return o; |
1107 } | 1130 } |
1108 | 1131 |
1109 checkUnnamed773(core.List<api.Token> o) { | 1132 checkUnnamed159(core.List<api.Token> o) { |
1110 unittest.expect(o, unittest.hasLength(2)); | 1133 unittest.expect(o, unittest.hasLength(2)); |
1111 checkToken(o[0]); | 1134 checkToken(o[0]); |
1112 checkToken(o[1]); | 1135 checkToken(o[1]); |
1113 } | 1136 } |
1114 | 1137 |
1115 core.int buildCounterTokens = 0; | 1138 core.int buildCounterTokens = 0; |
1116 buildTokens() { | 1139 buildTokens() { |
1117 var o = new api.Tokens(); | 1140 var o = new api.Tokens(); |
1118 buildCounterTokens++; | 1141 buildCounterTokens++; |
1119 if (buildCounterTokens < 3) { | 1142 if (buildCounterTokens < 3) { |
1120 o.etag = "foo"; | 1143 o.etag = "foo"; |
1121 o.items = buildUnnamed773(); | 1144 o.items = buildUnnamed159(); |
1122 o.kind = "foo"; | 1145 o.kind = "foo"; |
1123 } | 1146 } |
1124 buildCounterTokens--; | 1147 buildCounterTokens--; |
1125 return o; | 1148 return o; |
1126 } | 1149 } |
1127 | 1150 |
1128 checkTokens(api.Tokens o) { | 1151 checkTokens(api.Tokens o) { |
1129 buildCounterTokens++; | 1152 buildCounterTokens++; |
1130 if (buildCounterTokens < 3) { | 1153 if (buildCounterTokens < 3) { |
1131 unittest.expect(o.etag, unittest.equals('foo')); | 1154 unittest.expect(o.etag, unittest.equals('foo')); |
1132 checkUnnamed773(o.items); | 1155 checkUnnamed159(o.items); |
1133 unittest.expect(o.kind, unittest.equals('foo')); | 1156 unittest.expect(o.kind, unittest.equals('foo')); |
1134 } | 1157 } |
1135 buildCounterTokens--; | 1158 buildCounterTokens--; |
1136 } | 1159 } |
1137 | 1160 |
1138 buildUnnamed774() { | 1161 buildUnnamed160() { |
1139 var o = new core.List<core.String>(); | 1162 var o = new core.List<core.String>(); |
1140 o.add("foo"); | 1163 o.add("foo"); |
1141 o.add("foo"); | 1164 o.add("foo"); |
1142 return o; | 1165 return o; |
1143 } | 1166 } |
1144 | 1167 |
1145 checkUnnamed774(core.List<core.String> o) { | 1168 checkUnnamed160(core.List<core.String> o) { |
1146 unittest.expect(o, unittest.hasLength(2)); | 1169 unittest.expect(o, unittest.hasLength(2)); |
1147 unittest.expect(o[0], unittest.equals('foo')); | 1170 unittest.expect(o[0], unittest.equals('foo')); |
1148 unittest.expect(o[1], unittest.equals('foo')); | 1171 unittest.expect(o[1], unittest.equals('foo')); |
1149 } | 1172 } |
1150 | 1173 |
1151 buildUnnamed775() { | 1174 buildUnnamed161() { |
1152 var o = new core.Map<core.String, api.UserCustomProperties>(); | 1175 var o = new core.Map<core.String, api.UserCustomProperties>(); |
1153 o["x"] = buildUserCustomProperties(); | 1176 o["x"] = buildUserCustomProperties(); |
1154 o["y"] = buildUserCustomProperties(); | 1177 o["y"] = buildUserCustomProperties(); |
1155 return o; | 1178 return o; |
1156 } | 1179 } |
1157 | 1180 |
1158 checkUnnamed775(core.Map<core.String, api.UserCustomProperties> o) { | 1181 checkUnnamed161(core.Map<core.String, api.UserCustomProperties> o) { |
1159 unittest.expect(o, unittest.hasLength(2)); | 1182 unittest.expect(o, unittest.hasLength(2)); |
1160 checkUserCustomProperties(o["x"]); | 1183 checkUserCustomProperties(o["x"]); |
1161 checkUserCustomProperties(o["y"]); | 1184 checkUserCustomProperties(o["y"]); |
1162 } | 1185 } |
1163 | 1186 |
1164 buildUnnamed776() { | 1187 buildUnnamed162() { |
1165 var o = new core.List<core.String>(); | 1188 var o = new core.List<core.String>(); |
1166 o.add("foo"); | 1189 o.add("foo"); |
1167 o.add("foo"); | 1190 o.add("foo"); |
1168 return o; | 1191 return o; |
1169 } | 1192 } |
1170 | 1193 |
1171 checkUnnamed776(core.List<core.String> o) { | 1194 checkUnnamed162(core.List<core.String> o) { |
1172 unittest.expect(o, unittest.hasLength(2)); | 1195 unittest.expect(o, unittest.hasLength(2)); |
1173 unittest.expect(o[0], unittest.equals('foo')); | 1196 unittest.expect(o[0], unittest.equals('foo')); |
1174 unittest.expect(o[1], unittest.equals('foo')); | 1197 unittest.expect(o[1], unittest.equals('foo')); |
1175 } | 1198 } |
1176 | 1199 |
1177 core.int buildCounterUser = 0; | 1200 core.int buildCounterUser = 0; |
1178 buildUser() { | 1201 buildUser() { |
1179 var o = new api.User(); | 1202 var o = new api.User(); |
1180 buildCounterUser++; | 1203 buildCounterUser++; |
1181 if (buildCounterUser < 3) { | 1204 if (buildCounterUser < 3) { |
1182 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1205 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1183 o.agreedToTerms = true; | 1206 o.agreedToTerms = true; |
1184 o.aliases = buildUnnamed774(); | 1207 o.aliases = buildUnnamed160(); |
1185 o.changePasswordAtNextLogin = true; | 1208 o.changePasswordAtNextLogin = true; |
1186 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1209 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
1187 o.customSchemas = buildUnnamed775(); | 1210 o.customSchemas = buildUnnamed161(); |
1188 o.customerId = "foo"; | 1211 o.customerId = "foo"; |
1189 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1212 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); |
1190 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1213 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1191 o.etag = "foo"; | 1214 o.etag = "foo"; |
1192 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1215 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1193 o.hashFunction = "foo"; | 1216 o.hashFunction = "foo"; |
1194 o.id = "foo"; | 1217 o.id = "foo"; |
1195 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1218 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1196 o.includeInGlobalAddressList = true; | 1219 o.includeInGlobalAddressList = true; |
1197 o.ipWhitelisted = true; | 1220 o.ipWhitelisted = true; |
1198 o.isAdmin = true; | 1221 o.isAdmin = true; |
1199 o.isDelegatedAdmin = true; | 1222 o.isDelegatedAdmin = true; |
1200 o.isMailboxSetup = true; | 1223 o.isMailboxSetup = true; |
1201 o.kind = "foo"; | 1224 o.kind = "foo"; |
1202 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1225 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); |
1203 o.name = buildUserName(); | 1226 o.name = buildUserName(); |
1204 o.nonEditableAliases = buildUnnamed776(); | 1227 o.nonEditableAliases = buildUnnamed162(); |
1205 o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1228 o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1206 o.orgUnitPath = "foo"; | 1229 o.orgUnitPath = "foo"; |
1207 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1230 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1208 o.password = "foo"; | 1231 o.password = "foo"; |
1209 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1232 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1210 o.primaryEmail = "foo"; | 1233 o.primaryEmail = "foo"; |
1211 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1234 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1212 o.suspended = true; | 1235 o.suspended = true; |
1213 o.suspensionReason = "foo"; | 1236 o.suspensionReason = "foo"; |
1214 o.thumbnailPhotoEtag = "foo"; | 1237 o.thumbnailPhotoEtag = "foo"; |
1215 o.thumbnailPhotoUrl = "foo"; | 1238 o.thumbnailPhotoUrl = "foo"; |
1216 o.websites = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1239 o.websites = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1217 } | 1240 } |
1218 buildCounterUser--; | 1241 buildCounterUser--; |
1219 return o; | 1242 return o; |
1220 } | 1243 } |
1221 | 1244 |
1222 checkUser(api.User o) { | 1245 checkUser(api.User o) { |
1223 buildCounterUser++; | 1246 buildCounterUser++; |
1224 if (buildCounterUser < 3) { | 1247 if (buildCounterUser < 3) { |
1225 var casted1 = (o.addresses) as core.Map; unittest.expect(casted1, unittest.h
asLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["st
ring"], unittest.equals('foo')); | 1248 var casted1 = (o.addresses) as core.Map; unittest.expect(casted1, unittest.h
asLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["st
ring"], unittest.equals('foo')); |
1226 unittest.expect(o.agreedToTerms, unittest.isTrue); | 1249 unittest.expect(o.agreedToTerms, unittest.isTrue); |
1227 checkUnnamed774(o.aliases); | 1250 checkUnnamed160(o.aliases); |
1228 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); | 1251 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); |
1229 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1252 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
1230 checkUnnamed775(o.customSchemas); | 1253 checkUnnamed161(o.customSchemas); |
1231 unittest.expect(o.customerId, unittest.equals('foo')); | 1254 unittest.expect(o.customerId, unittest.equals('foo')); |
1232 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1255 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
1233 var casted2 = (o.emails) as core.Map; unittest.expect(casted2, unittest.hasL
ength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["strin
g"], unittest.equals('foo')); | 1256 var casted2 = (o.emails) as core.Map; unittest.expect(casted2, unittest.hasL
ength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["strin
g"], unittest.equals('foo')); |
1234 unittest.expect(o.etag, unittest.equals('foo')); | 1257 unittest.expect(o.etag, unittest.equals('foo')); |
1235 var casted3 = (o.externalIds) as core.Map; unittest.expect(casted3, unittest
.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); un
ittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["
string"], unittest.equals('foo')); | 1258 var casted3 = (o.externalIds) as core.Map; unittest.expect(casted3, unittest
.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); un
ittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["
string"], unittest.equals('foo')); |
1236 unittest.expect(o.hashFunction, unittest.equals('foo')); | 1259 unittest.expect(o.hashFunction, unittest.equals('foo')); |
1237 unittest.expect(o.id, unittest.equals('foo')); | 1260 unittest.expect(o.id, unittest.equals('foo')); |
1238 var casted4 = (o.ims) as core.Map; unittest.expect(casted4, unittest.hasLeng
th(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"]
, unittest.equals('foo')); | 1261 var casted4 = (o.ims) as core.Map; unittest.expect(casted4, unittest.hasLeng
th(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"]
, unittest.equals('foo')); |
1239 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); | 1262 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); |
1240 unittest.expect(o.ipWhitelisted, unittest.isTrue); | 1263 unittest.expect(o.ipWhitelisted, unittest.isTrue); |
1241 unittest.expect(o.isAdmin, unittest.isTrue); | 1264 unittest.expect(o.isAdmin, unittest.isTrue); |
1242 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); | 1265 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); |
1243 unittest.expect(o.isMailboxSetup, unittest.isTrue); | 1266 unittest.expect(o.isMailboxSetup, unittest.isTrue); |
1244 unittest.expect(o.kind, unittest.equals('foo')); | 1267 unittest.expect(o.kind, unittest.equals('foo')); |
1245 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 1268 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
1246 checkUserName(o.name); | 1269 checkUserName(o.name); |
1247 checkUnnamed776(o.nonEditableAliases); | 1270 checkUnnamed162(o.nonEditableAliases); |
1248 var casted5 = (o.notes) as core.Map; unittest.expect(casted5, unittest.hasLe
ngth(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string
"], unittest.equals('foo')); | 1271 var casted5 = (o.notes) as core.Map; unittest.expect(casted5, unittest.hasLe
ngth(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string
"], unittest.equals('foo')); |
1249 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 1272 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
1250 var casted6 = (o.organizations) as core.Map; unittest.expect(casted6, unitte
st.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3]));
unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6
["string"], unittest.equals('foo')); | 1273 var casted6 = (o.organizations) as core.Map; unittest.expect(casted6, unitte
st.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3]));
unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6
["string"], unittest.equals('foo')); |
1251 unittest.expect(o.password, unittest.equals('foo')); | 1274 unittest.expect(o.password, unittest.equals('foo')); |
1252 var casted7 = (o.phones) as core.Map; unittest.expect(casted7, unittest.hasL
ength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["strin
g"], unittest.equals('foo')); | 1275 var casted7 = (o.phones) as core.Map; unittest.expect(casted7, unittest.hasL
ength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["strin
g"], unittest.equals('foo')); |
1253 unittest.expect(o.primaryEmail, unittest.equals('foo')); | 1276 unittest.expect(o.primaryEmail, unittest.equals('foo')); |
1254 var casted8 = (o.relations) as core.Map; unittest.expect(casted8, unittest.h
asLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["st
ring"], unittest.equals('foo')); | 1277 var casted8 = (o.relations) as core.Map; unittest.expect(casted8, unittest.h
asLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["st
ring"], unittest.equals('foo')); |
1255 unittest.expect(o.suspended, unittest.isTrue); | 1278 unittest.expect(o.suspended, unittest.isTrue); |
1256 unittest.expect(o.suspensionReason, unittest.equals('foo')); | 1279 unittest.expect(o.suspensionReason, unittest.equals('foo')); |
1257 unittest.expect(o.thumbnailPhotoEtag, unittest.equals('foo')); | 1280 unittest.expect(o.thumbnailPhotoEtag, unittest.equals('foo')); |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 buildCounterUserWebsite++; | 1637 buildCounterUserWebsite++; |
1615 if (buildCounterUserWebsite < 3) { | 1638 if (buildCounterUserWebsite < 3) { |
1616 unittest.expect(o.customType, unittest.equals('foo')); | 1639 unittest.expect(o.customType, unittest.equals('foo')); |
1617 unittest.expect(o.primary, unittest.isTrue); | 1640 unittest.expect(o.primary, unittest.isTrue); |
1618 unittest.expect(o.type, unittest.equals('foo')); | 1641 unittest.expect(o.type, unittest.equals('foo')); |
1619 unittest.expect(o.value, unittest.equals('foo')); | 1642 unittest.expect(o.value, unittest.equals('foo')); |
1620 } | 1643 } |
1621 buildCounterUserWebsite--; | 1644 buildCounterUserWebsite--; |
1622 } | 1645 } |
1623 | 1646 |
1624 buildUnnamed777() { | 1647 buildUnnamed163() { |
1625 var o = new core.List<api.User>(); | 1648 var o = new core.List<api.User>(); |
1626 o.add(buildUser()); | 1649 o.add(buildUser()); |
1627 o.add(buildUser()); | 1650 o.add(buildUser()); |
1628 return o; | 1651 return o; |
1629 } | 1652 } |
1630 | 1653 |
1631 checkUnnamed777(core.List<api.User> o) { | 1654 checkUnnamed163(core.List<api.User> o) { |
1632 unittest.expect(o, unittest.hasLength(2)); | 1655 unittest.expect(o, unittest.hasLength(2)); |
1633 checkUser(o[0]); | 1656 checkUser(o[0]); |
1634 checkUser(o[1]); | 1657 checkUser(o[1]); |
1635 } | 1658 } |
1636 | 1659 |
1637 core.int buildCounterUsers = 0; | 1660 core.int buildCounterUsers = 0; |
1638 buildUsers() { | 1661 buildUsers() { |
1639 var o = new api.Users(); | 1662 var o = new api.Users(); |
1640 buildCounterUsers++; | 1663 buildCounterUsers++; |
1641 if (buildCounterUsers < 3) { | 1664 if (buildCounterUsers < 3) { |
1642 o.etag = "foo"; | 1665 o.etag = "foo"; |
1643 o.kind = "foo"; | 1666 o.kind = "foo"; |
1644 o.nextPageToken = "foo"; | 1667 o.nextPageToken = "foo"; |
1645 o.triggerEvent = "foo"; | 1668 o.triggerEvent = "foo"; |
1646 o.users = buildUnnamed777(); | 1669 o.users = buildUnnamed163(); |
1647 } | 1670 } |
1648 buildCounterUsers--; | 1671 buildCounterUsers--; |
1649 return o; | 1672 return o; |
1650 } | 1673 } |
1651 | 1674 |
1652 checkUsers(api.Users o) { | 1675 checkUsers(api.Users o) { |
1653 buildCounterUsers++; | 1676 buildCounterUsers++; |
1654 if (buildCounterUsers < 3) { | 1677 if (buildCounterUsers < 3) { |
1655 unittest.expect(o.etag, unittest.equals('foo')); | 1678 unittest.expect(o.etag, unittest.equals('foo')); |
1656 unittest.expect(o.kind, unittest.equals('foo')); | 1679 unittest.expect(o.kind, unittest.equals('foo')); |
1657 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1680 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1658 unittest.expect(o.triggerEvent, unittest.equals('foo')); | 1681 unittest.expect(o.triggerEvent, unittest.equals('foo')); |
1659 checkUnnamed777(o.users); | 1682 checkUnnamed163(o.users); |
1660 } | 1683 } |
1661 buildCounterUsers--; | 1684 buildCounterUsers--; |
1662 } | 1685 } |
1663 | 1686 |
1664 core.int buildCounterVerificationCode = 0; | 1687 core.int buildCounterVerificationCode = 0; |
1665 buildVerificationCode() { | 1688 buildVerificationCode() { |
1666 var o = new api.VerificationCode(); | 1689 var o = new api.VerificationCode(); |
1667 buildCounterVerificationCode++; | 1690 buildCounterVerificationCode++; |
1668 if (buildCounterVerificationCode < 3) { | 1691 if (buildCounterVerificationCode < 3) { |
1669 o.etag = "foo"; | 1692 o.etag = "foo"; |
1670 o.kind = "foo"; | 1693 o.kind = "foo"; |
1671 o.userId = "foo"; | 1694 o.userId = "foo"; |
1672 o.verificationCode = "foo"; | 1695 o.verificationCode = "foo"; |
1673 } | 1696 } |
1674 buildCounterVerificationCode--; | 1697 buildCounterVerificationCode--; |
1675 return o; | 1698 return o; |
1676 } | 1699 } |
1677 | 1700 |
1678 checkVerificationCode(api.VerificationCode o) { | 1701 checkVerificationCode(api.VerificationCode o) { |
1679 buildCounterVerificationCode++; | 1702 buildCounterVerificationCode++; |
1680 if (buildCounterVerificationCode < 3) { | 1703 if (buildCounterVerificationCode < 3) { |
1681 unittest.expect(o.etag, unittest.equals('foo')); | 1704 unittest.expect(o.etag, unittest.equals('foo')); |
1682 unittest.expect(o.kind, unittest.equals('foo')); | 1705 unittest.expect(o.kind, unittest.equals('foo')); |
1683 unittest.expect(o.userId, unittest.equals('foo')); | 1706 unittest.expect(o.userId, unittest.equals('foo')); |
1684 unittest.expect(o.verificationCode, unittest.equals('foo')); | 1707 unittest.expect(o.verificationCode, unittest.equals('foo')); |
1685 } | 1708 } |
1686 buildCounterVerificationCode--; | 1709 buildCounterVerificationCode--; |
1687 } | 1710 } |
1688 | 1711 |
1689 buildUnnamed778() { | 1712 buildUnnamed164() { |
1690 var o = new core.List<api.VerificationCode>(); | 1713 var o = new core.List<api.VerificationCode>(); |
1691 o.add(buildVerificationCode()); | 1714 o.add(buildVerificationCode()); |
1692 o.add(buildVerificationCode()); | 1715 o.add(buildVerificationCode()); |
1693 return o; | 1716 return o; |
1694 } | 1717 } |
1695 | 1718 |
1696 checkUnnamed778(core.List<api.VerificationCode> o) { | 1719 checkUnnamed164(core.List<api.VerificationCode> o) { |
1697 unittest.expect(o, unittest.hasLength(2)); | 1720 unittest.expect(o, unittest.hasLength(2)); |
1698 checkVerificationCode(o[0]); | 1721 checkVerificationCode(o[0]); |
1699 checkVerificationCode(o[1]); | 1722 checkVerificationCode(o[1]); |
1700 } | 1723 } |
1701 | 1724 |
1702 core.int buildCounterVerificationCodes = 0; | 1725 core.int buildCounterVerificationCodes = 0; |
1703 buildVerificationCodes() { | 1726 buildVerificationCodes() { |
1704 var o = new api.VerificationCodes(); | 1727 var o = new api.VerificationCodes(); |
1705 buildCounterVerificationCodes++; | 1728 buildCounterVerificationCodes++; |
1706 if (buildCounterVerificationCodes < 3) { | 1729 if (buildCounterVerificationCodes < 3) { |
1707 o.etag = "foo"; | 1730 o.etag = "foo"; |
1708 o.items = buildUnnamed778(); | 1731 o.items = buildUnnamed164(); |
1709 o.kind = "foo"; | 1732 o.kind = "foo"; |
1710 } | 1733 } |
1711 buildCounterVerificationCodes--; | 1734 buildCounterVerificationCodes--; |
1712 return o; | 1735 return o; |
1713 } | 1736 } |
1714 | 1737 |
1715 checkVerificationCodes(api.VerificationCodes o) { | 1738 checkVerificationCodes(api.VerificationCodes o) { |
1716 buildCounterVerificationCodes++; | 1739 buildCounterVerificationCodes++; |
1717 if (buildCounterVerificationCodes < 3) { | 1740 if (buildCounterVerificationCodes < 3) { |
1718 unittest.expect(o.etag, unittest.equals('foo')); | 1741 unittest.expect(o.etag, unittest.equals('foo')); |
1719 checkUnnamed778(o.items); | 1742 checkUnnamed164(o.items); |
1720 unittest.expect(o.kind, unittest.equals('foo')); | 1743 unittest.expect(o.kind, unittest.equals('foo')); |
1721 } | 1744 } |
1722 buildCounterVerificationCodes--; | 1745 buildCounterVerificationCodes--; |
1723 } | 1746 } |
1724 | 1747 |
1725 buildUnnamed779() { | 1748 buildUnnamed165() { |
1726 var o = new core.List<core.String>(); | 1749 var o = new core.List<core.String>(); |
1727 o.add("foo"); | 1750 o.add("foo"); |
1728 o.add("foo"); | 1751 o.add("foo"); |
1729 return o; | 1752 return o; |
1730 } | 1753 } |
1731 | 1754 |
1732 checkUnnamed779(core.List<core.String> o) { | 1755 checkUnnamed165(core.List<core.String> o) { |
1733 unittest.expect(o, unittest.hasLength(2)); | 1756 unittest.expect(o, unittest.hasLength(2)); |
1734 unittest.expect(o[0], unittest.equals('foo')); | 1757 unittest.expect(o[0], unittest.equals('foo')); |
1735 unittest.expect(o[1], unittest.equals('foo')); | 1758 unittest.expect(o[1], unittest.equals('foo')); |
1736 } | 1759 } |
1737 | 1760 |
1738 buildUnnamed780() { | 1761 buildUnnamed166() { |
1739 var o = new core.List<core.String>(); | 1762 var o = new core.List<core.String>(); |
1740 o.add("foo"); | 1763 o.add("foo"); |
1741 o.add("foo"); | 1764 o.add("foo"); |
1742 return o; | 1765 return o; |
1743 } | 1766 } |
1744 | 1767 |
1745 checkUnnamed780(core.List<core.String> o) { | 1768 checkUnnamed166(core.List<core.String> o) { |
1746 unittest.expect(o, unittest.hasLength(2)); | 1769 unittest.expect(o, unittest.hasLength(2)); |
1747 unittest.expect(o[0], unittest.equals('foo')); | 1770 unittest.expect(o[0], unittest.equals('foo')); |
1748 unittest.expect(o[1], unittest.equals('foo')); | 1771 unittest.expect(o[1], unittest.equals('foo')); |
1749 } | 1772 } |
1750 | 1773 |
1751 buildUnnamed781() { | 1774 buildUnnamed167() { |
1752 var o = new core.List<core.String>(); | 1775 var o = new core.List<core.String>(); |
1753 o.add("foo"); | 1776 o.add("foo"); |
1754 o.add("foo"); | 1777 o.add("foo"); |
1755 return o; | 1778 return o; |
1756 } | 1779 } |
1757 | 1780 |
1758 checkUnnamed781(core.List<core.String> o) { | 1781 checkUnnamed167(core.List<core.String> o) { |
1759 unittest.expect(o, unittest.hasLength(2)); | 1782 unittest.expect(o, unittest.hasLength(2)); |
1760 unittest.expect(o[0], unittest.equals('foo')); | 1783 unittest.expect(o[0], unittest.equals('foo')); |
1761 unittest.expect(o[1], unittest.equals('foo')); | 1784 unittest.expect(o[1], unittest.equals('foo')); |
1762 } | 1785 } |
1763 | 1786 |
1764 buildUnnamed782() { | 1787 buildUnnamed168() { |
1765 var o = new core.List<core.String>(); | 1788 var o = new core.List<core.String>(); |
1766 o.add("foo"); | 1789 o.add("foo"); |
1767 o.add("foo"); | 1790 o.add("foo"); |
1768 return o; | 1791 return o; |
1769 } | 1792 } |
1770 | 1793 |
1771 checkUnnamed782(core.List<core.String> o) { | 1794 checkUnnamed168(core.List<core.String> o) { |
1772 unittest.expect(o, unittest.hasLength(2)); | 1795 unittest.expect(o, unittest.hasLength(2)); |
1773 unittest.expect(o[0], unittest.equals('foo')); | 1796 unittest.expect(o[0], unittest.equals('foo')); |
1774 unittest.expect(o[1], unittest.equals('foo')); | 1797 unittest.expect(o[1], unittest.equals('foo')); |
1775 } | 1798 } |
1776 | 1799 |
1777 | 1800 |
1778 main() { | 1801 main() { |
1779 unittest.group("obj-schema-Alias", () { | 1802 unittest.group("obj-schema-Alias", () { |
1780 unittest.test("to-json--from-json", () { | 1803 unittest.test("to-json--from-json", () { |
1781 var o = buildAlias(); | 1804 var o = buildAlias(); |
(...skipping 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4028 | 4051 |
4029 }); | 4052 }); |
4030 | 4053 |
4031 | 4054 |
4032 unittest.group("resource-OrgunitsResourceApi", () { | 4055 unittest.group("resource-OrgunitsResourceApi", () { |
4033 unittest.test("method--delete", () { | 4056 unittest.test("method--delete", () { |
4034 | 4057 |
4035 var mock = new HttpServerMock(); | 4058 var mock = new HttpServerMock(); |
4036 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 4059 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
4037 var arg_customerId = "foo"; | 4060 var arg_customerId = "foo"; |
4038 var arg_orgUnitPath = buildUnnamed779(); | 4061 var arg_orgUnitPath = buildUnnamed165(); |
4039 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4062 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4040 var path = (req.url).path; | 4063 var path = (req.url).path; |
4041 var pathOffset = 0; | 4064 var pathOffset = 0; |
4042 var index; | 4065 var index; |
4043 var subPart; | 4066 var subPart; |
4044 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4067 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4045 pathOffset += 1; | 4068 pathOffset += 1; |
4046 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4069 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4047 pathOffset += 19; | 4070 pathOffset += 19; |
4048 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 4071 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4082 return new async.Future.value(stringResponse(200, h, resp)); | 4105 return new async.Future.value(stringResponse(200, h, resp)); |
4083 }), true); | 4106 }), true); |
4084 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_)
{})); | 4107 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_)
{})); |
4085 }); | 4108 }); |
4086 | 4109 |
4087 unittest.test("method--get", () { | 4110 unittest.test("method--get", () { |
4088 | 4111 |
4089 var mock = new HttpServerMock(); | 4112 var mock = new HttpServerMock(); |
4090 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 4113 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
4091 var arg_customerId = "foo"; | 4114 var arg_customerId = "foo"; |
4092 var arg_orgUnitPath = buildUnnamed780(); | 4115 var arg_orgUnitPath = buildUnnamed166(); |
4093 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4116 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4094 var path = (req.url).path; | 4117 var path = (req.url).path; |
4095 var pathOffset = 0; | 4118 var pathOffset = 0; |
4096 var index; | 4119 var index; |
4097 var subPart; | 4120 var subPart; |
4098 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4121 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4099 pathOffset += 1; | 4122 pathOffset += 1; |
4100 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 4123 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
4101 pathOffset += 19; | 4124 pathOffset += 19; |
4102 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 4125 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4253 checkOrgUnits(response); | 4276 checkOrgUnits(response); |
4254 }))); | 4277 }))); |
4255 }); | 4278 }); |
4256 | 4279 |
4257 unittest.test("method--patch", () { | 4280 unittest.test("method--patch", () { |
4258 | 4281 |
4259 var mock = new HttpServerMock(); | 4282 var mock = new HttpServerMock(); |
4260 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 4283 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
4261 var arg_request = buildOrgUnit(); | 4284 var arg_request = buildOrgUnit(); |
4262 var arg_customerId = "foo"; | 4285 var arg_customerId = "foo"; |
4263 var arg_orgUnitPath = buildUnnamed781(); | 4286 var arg_orgUnitPath = buildUnnamed167(); |
4264 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4287 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4265 var obj = new api.OrgUnit.fromJson(json); | 4288 var obj = new api.OrgUnit.fromJson(json); |
4266 checkOrgUnit(obj); | 4289 checkOrgUnit(obj); |
4267 | 4290 |
4268 var path = (req.url).path; | 4291 var path = (req.url).path; |
4269 var pathOffset = 0; | 4292 var pathOffset = 0; |
4270 var index; | 4293 var index; |
4271 var subPart; | 4294 var subPart; |
4272 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4295 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4273 pathOffset += 1; | 4296 pathOffset += 1; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4313 checkOrgUnit(response); | 4336 checkOrgUnit(response); |
4314 }))); | 4337 }))); |
4315 }); | 4338 }); |
4316 | 4339 |
4317 unittest.test("method--update", () { | 4340 unittest.test("method--update", () { |
4318 | 4341 |
4319 var mock = new HttpServerMock(); | 4342 var mock = new HttpServerMock(); |
4320 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 4343 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
4321 var arg_request = buildOrgUnit(); | 4344 var arg_request = buildOrgUnit(); |
4322 var arg_customerId = "foo"; | 4345 var arg_customerId = "foo"; |
4323 var arg_orgUnitPath = buildUnnamed782(); | 4346 var arg_orgUnitPath = buildUnnamed168(); |
4324 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4347 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4325 var obj = new api.OrgUnit.fromJson(json); | 4348 var obj = new api.OrgUnit.fromJson(json); |
4326 checkOrgUnit(obj); | 4349 checkOrgUnit(obj); |
4327 | 4350 |
4328 var path = (req.url).path; | 4351 var path = (req.url).path; |
4329 var pathOffset = 0; | 4352 var pathOffset = 0; |
4330 var index; | 4353 var index; |
4331 var subPart; | 4354 var subPart; |
4332 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4355 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4333 pathOffset += 1; | 4356 pathOffset += 1; |
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6013 res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes re
sponse) { | 6036 res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes re
sponse) { |
6014 checkVerificationCodes(response); | 6037 checkVerificationCodes(response); |
6015 }))); | 6038 }))); |
6016 }); | 6039 }); |
6017 | 6040 |
6018 }); | 6041 }); |
6019 | 6042 |
6020 | 6043 |
6021 } | 6044 } |
6022 | 6045 |
OLD | NEW |