Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: generated/googleapis/test/admin/directory_v1_test.dart

Issue 770773002: Api roll 7: 2014-12-01 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 25 matching lines...) Expand all
36 if (buildCounterAlias < 3) { 36 if (buildCounterAlias < 3) {
37 unittest.expect(o.alias, unittest.equals('foo')); 37 unittest.expect(o.alias, unittest.equals('foo'));
38 unittest.expect(o.etag, unittest.equals('foo')); 38 unittest.expect(o.etag, unittest.equals('foo'));
39 unittest.expect(o.id, unittest.equals('foo')); 39 unittest.expect(o.id, unittest.equals('foo'));
40 unittest.expect(o.kind, unittest.equals('foo')); 40 unittest.expect(o.kind, unittest.equals('foo'));
41 unittest.expect(o.primaryEmail, unittest.equals('foo')); 41 unittest.expect(o.primaryEmail, unittest.equals('foo'));
42 } 42 }
43 buildCounterAlias--; 43 buildCounterAlias--;
44 } 44 }
45 45
46 buildUnnamed470() { 46 buildUnnamed90() {
47 var o = new core.List<api.Alias>(); 47 var o = new core.List<api.Alias>();
48 o.add(buildAlias()); 48 o.add(buildAlias());
49 o.add(buildAlias()); 49 o.add(buildAlias());
50 return o; 50 return o;
51 } 51 }
52 52
53 checkUnnamed470(core.List<api.Alias> o) { 53 checkUnnamed90(core.List<api.Alias> o) {
54 unittest.expect(o, unittest.hasLength(2)); 54 unittest.expect(o, unittest.hasLength(2));
55 checkAlias(o[0]); 55 checkAlias(o[0]);
56 checkAlias(o[1]); 56 checkAlias(o[1]);
57 } 57 }
58 58
59 core.int buildCounterAliases = 0; 59 core.int buildCounterAliases = 0;
60 buildAliases() { 60 buildAliases() {
61 var o = new api.Aliases(); 61 var o = new api.Aliases();
62 buildCounterAliases++; 62 buildCounterAliases++;
63 if (buildCounterAliases < 3) { 63 if (buildCounterAliases < 3) {
64 o.aliases = buildUnnamed470(); 64 o.aliases = buildUnnamed90();
65 o.etag = "foo"; 65 o.etag = "foo";
66 o.kind = "foo"; 66 o.kind = "foo";
67 } 67 }
68 buildCounterAliases--; 68 buildCounterAliases--;
69 return o; 69 return o;
70 } 70 }
71 71
72 checkAliases(api.Aliases o) { 72 checkAliases(api.Aliases o) {
73 buildCounterAliases++; 73 buildCounterAliases++;
74 if (buildCounterAliases < 3) { 74 if (buildCounterAliases < 3) {
75 checkUnnamed470(o.aliases); 75 checkUnnamed90(o.aliases);
76 unittest.expect(o.etag, unittest.equals('foo')); 76 unittest.expect(o.etag, unittest.equals('foo'));
77 unittest.expect(o.kind, unittest.equals('foo')); 77 unittest.expect(o.kind, unittest.equals('foo'));
78 } 78 }
79 buildCounterAliases--; 79 buildCounterAliases--;
80 } 80 }
81 81
82 core.int buildCounterAsp = 0; 82 core.int buildCounterAsp = 0;
83 buildAsp() { 83 buildAsp() {
84 var o = new api.Asp(); 84 var o = new api.Asp();
85 buildCounterAsp++; 85 buildCounterAsp++;
(...skipping 17 matching lines...) Expand all
103 unittest.expect(o.creationTime, unittest.equals('foo')); 103 unittest.expect(o.creationTime, unittest.equals('foo'));
104 unittest.expect(o.etag, unittest.equals('foo')); 104 unittest.expect(o.etag, unittest.equals('foo'));
105 unittest.expect(o.kind, unittest.equals('foo')); 105 unittest.expect(o.kind, unittest.equals('foo'));
106 unittest.expect(o.lastTimeUsed, unittest.equals('foo')); 106 unittest.expect(o.lastTimeUsed, unittest.equals('foo'));
107 unittest.expect(o.name, unittest.equals('foo')); 107 unittest.expect(o.name, unittest.equals('foo'));
108 unittest.expect(o.userKey, unittest.equals('foo')); 108 unittest.expect(o.userKey, unittest.equals('foo'));
109 } 109 }
110 buildCounterAsp--; 110 buildCounterAsp--;
111 } 111 }
112 112
113 buildUnnamed471() { 113 buildUnnamed91() {
114 var o = new core.List<api.Asp>(); 114 var o = new core.List<api.Asp>();
115 o.add(buildAsp()); 115 o.add(buildAsp());
116 o.add(buildAsp()); 116 o.add(buildAsp());
117 return o; 117 return o;
118 } 118 }
119 119
120 checkUnnamed471(core.List<api.Asp> o) { 120 checkUnnamed91(core.List<api.Asp> o) {
121 unittest.expect(o, unittest.hasLength(2)); 121 unittest.expect(o, unittest.hasLength(2));
122 checkAsp(o[0]); 122 checkAsp(o[0]);
123 checkAsp(o[1]); 123 checkAsp(o[1]);
124 } 124 }
125 125
126 core.int buildCounterAsps = 0; 126 core.int buildCounterAsps = 0;
127 buildAsps() { 127 buildAsps() {
128 var o = new api.Asps(); 128 var o = new api.Asps();
129 buildCounterAsps++; 129 buildCounterAsps++;
130 if (buildCounterAsps < 3) { 130 if (buildCounterAsps < 3) {
131 o.etag = "foo"; 131 o.etag = "foo";
132 o.items = buildUnnamed471(); 132 o.items = buildUnnamed91();
133 o.kind = "foo"; 133 o.kind = "foo";
134 } 134 }
135 buildCounterAsps--; 135 buildCounterAsps--;
136 return o; 136 return o;
137 } 137 }
138 138
139 checkAsps(api.Asps o) { 139 checkAsps(api.Asps o) {
140 buildCounterAsps++; 140 buildCounterAsps++;
141 if (buildCounterAsps < 3) { 141 if (buildCounterAsps < 3) {
142 unittest.expect(o.etag, unittest.equals('foo')); 142 unittest.expect(o.etag, unittest.equals('foo'));
143 checkUnnamed471(o.items); 143 checkUnnamed91(o.items);
144 unittest.expect(o.kind, unittest.equals('foo')); 144 unittest.expect(o.kind, unittest.equals('foo'));
145 } 145 }
146 buildCounterAsps--; 146 buildCounterAsps--;
147 } 147 }
148 148
149 buildUnnamed472() { 149 buildUnnamed92() {
150 var o = new core.Map<core.String, core.String>(); 150 var o = new core.Map<core.String, core.String>();
151 o["x"] = "foo"; 151 o["x"] = "foo";
152 o["y"] = "foo"; 152 o["y"] = "foo";
153 return o; 153 return o;
154 } 154 }
155 155
156 checkUnnamed472(core.Map<core.String, core.String> o) { 156 checkUnnamed92(core.Map<core.String, core.String> o) {
157 unittest.expect(o, unittest.hasLength(2)); 157 unittest.expect(o, unittest.hasLength(2));
158 unittest.expect(o["x"], unittest.equals('foo')); 158 unittest.expect(o["x"], unittest.equals('foo'));
159 unittest.expect(o["y"], unittest.equals('foo')); 159 unittest.expect(o["y"], unittest.equals('foo'));
160 } 160 }
161 161
162 core.int buildCounterChannel = 0; 162 core.int buildCounterChannel = 0;
163 buildChannel() { 163 buildChannel() {
164 var o = new api.Channel(); 164 var o = new api.Channel();
165 buildCounterChannel++; 165 buildCounterChannel++;
166 if (buildCounterChannel < 3) { 166 if (buildCounterChannel < 3) {
167 o.address = "foo"; 167 o.address = "foo";
168 o.expiration = "foo"; 168 o.expiration = "foo";
169 o.id = "foo"; 169 o.id = "foo";
170 o.kind = "foo"; 170 o.kind = "foo";
171 o.params = buildUnnamed472(); 171 o.params = buildUnnamed92();
172 o.payload = true; 172 o.payload = true;
173 o.resourceId = "foo"; 173 o.resourceId = "foo";
174 o.resourceUri = "foo"; 174 o.resourceUri = "foo";
175 o.token = "foo"; 175 o.token = "foo";
176 o.type = "foo"; 176 o.type = "foo";
177 } 177 }
178 buildCounterChannel--; 178 buildCounterChannel--;
179 return o; 179 return o;
180 } 180 }
181 181
182 checkChannel(api.Channel o) { 182 checkChannel(api.Channel o) {
183 buildCounterChannel++; 183 buildCounterChannel++;
184 if (buildCounterChannel < 3) { 184 if (buildCounterChannel < 3) {
185 unittest.expect(o.address, unittest.equals('foo')); 185 unittest.expect(o.address, unittest.equals('foo'));
186 unittest.expect(o.expiration, unittest.equals('foo')); 186 unittest.expect(o.expiration, unittest.equals('foo'));
187 unittest.expect(o.id, unittest.equals('foo')); 187 unittest.expect(o.id, unittest.equals('foo'));
188 unittest.expect(o.kind, unittest.equals('foo')); 188 unittest.expect(o.kind, unittest.equals('foo'));
189 checkUnnamed472(o.params); 189 checkUnnamed92(o.params);
190 unittest.expect(o.payload, unittest.isTrue); 190 unittest.expect(o.payload, unittest.isTrue);
191 unittest.expect(o.resourceId, unittest.equals('foo')); 191 unittest.expect(o.resourceId, unittest.equals('foo'));
192 unittest.expect(o.resourceUri, unittest.equals('foo')); 192 unittest.expect(o.resourceUri, unittest.equals('foo'));
193 unittest.expect(o.token, unittest.equals('foo')); 193 unittest.expect(o.token, unittest.equals('foo'));
194 unittest.expect(o.type, unittest.equals('foo')); 194 unittest.expect(o.type, unittest.equals('foo'));
195 } 195 }
196 buildCounterChannel--; 196 buildCounterChannel--;
197 } 197 }
198 198
199 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0; 199 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0;
(...skipping 10 matching lines...) Expand all
210 210
211 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) { 211 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) {
212 buildCounterChromeOsDeviceActiveTimeRanges++; 212 buildCounterChromeOsDeviceActiveTimeRanges++;
213 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) { 213 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) {
214 unittest.expect(o.activeTime, unittest.equals(42)); 214 unittest.expect(o.activeTime, unittest.equals(42));
215 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0 0:00"))); 215 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0 0:00")));
216 } 216 }
217 buildCounterChromeOsDeviceActiveTimeRanges--; 217 buildCounterChromeOsDeviceActiveTimeRanges--;
218 } 218 }
219 219
220 buildUnnamed473() { 220 buildUnnamed93() {
221 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); 221 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>();
222 o.add(buildChromeOsDeviceActiveTimeRanges()); 222 o.add(buildChromeOsDeviceActiveTimeRanges());
223 o.add(buildChromeOsDeviceActiveTimeRanges()); 223 o.add(buildChromeOsDeviceActiveTimeRanges());
224 return o; 224 return o;
225 } 225 }
226 226
227 checkUnnamed473(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { 227 checkUnnamed93(core.List<api.ChromeOsDeviceActiveTimeRanges> o) {
228 unittest.expect(o, unittest.hasLength(2)); 228 unittest.expect(o, unittest.hasLength(2));
229 checkChromeOsDeviceActiveTimeRanges(o[0]); 229 checkChromeOsDeviceActiveTimeRanges(o[0]);
230 checkChromeOsDeviceActiveTimeRanges(o[1]); 230 checkChromeOsDeviceActiveTimeRanges(o[1]);
231 } 231 }
232 232
233 core.int buildCounterChromeOsDeviceRecentUsers = 0; 233 core.int buildCounterChromeOsDeviceRecentUsers = 0;
234 buildChromeOsDeviceRecentUsers() { 234 buildChromeOsDeviceRecentUsers() {
235 var o = new api.ChromeOsDeviceRecentUsers(); 235 var o = new api.ChromeOsDeviceRecentUsers();
236 buildCounterChromeOsDeviceRecentUsers++; 236 buildCounterChromeOsDeviceRecentUsers++;
237 if (buildCounterChromeOsDeviceRecentUsers < 3) { 237 if (buildCounterChromeOsDeviceRecentUsers < 3) {
238 o.email = "foo"; 238 o.email = "foo";
239 o.type = "foo"; 239 o.type = "foo";
240 } 240 }
241 buildCounterChromeOsDeviceRecentUsers--; 241 buildCounterChromeOsDeviceRecentUsers--;
242 return o; 242 return o;
243 } 243 }
244 244
245 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { 245 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) {
246 buildCounterChromeOsDeviceRecentUsers++; 246 buildCounterChromeOsDeviceRecentUsers++;
247 if (buildCounterChromeOsDeviceRecentUsers < 3) { 247 if (buildCounterChromeOsDeviceRecentUsers < 3) {
248 unittest.expect(o.email, unittest.equals('foo')); 248 unittest.expect(o.email, unittest.equals('foo'));
249 unittest.expect(o.type, unittest.equals('foo')); 249 unittest.expect(o.type, unittest.equals('foo'));
250 } 250 }
251 buildCounterChromeOsDeviceRecentUsers--; 251 buildCounterChromeOsDeviceRecentUsers--;
252 } 252 }
253 253
254 buildUnnamed474() { 254 buildUnnamed94() {
255 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); 255 var o = new core.List<api.ChromeOsDeviceRecentUsers>();
256 o.add(buildChromeOsDeviceRecentUsers()); 256 o.add(buildChromeOsDeviceRecentUsers());
257 o.add(buildChromeOsDeviceRecentUsers()); 257 o.add(buildChromeOsDeviceRecentUsers());
258 return o; 258 return o;
259 } 259 }
260 260
261 checkUnnamed474(core.List<api.ChromeOsDeviceRecentUsers> o) { 261 checkUnnamed94(core.List<api.ChromeOsDeviceRecentUsers> o) {
262 unittest.expect(o, unittest.hasLength(2)); 262 unittest.expect(o, unittest.hasLength(2));
263 checkChromeOsDeviceRecentUsers(o[0]); 263 checkChromeOsDeviceRecentUsers(o[0]);
264 checkChromeOsDeviceRecentUsers(o[1]); 264 checkChromeOsDeviceRecentUsers(o[1]);
265 } 265 }
266 266
267 core.int buildCounterChromeOsDevice = 0; 267 core.int buildCounterChromeOsDevice = 0;
268 buildChromeOsDevice() { 268 buildChromeOsDevice() {
269 var o = new api.ChromeOsDevice(); 269 var o = new api.ChromeOsDevice();
270 buildCounterChromeOsDevice++; 270 buildCounterChromeOsDevice++;
271 if (buildCounterChromeOsDevice < 3) { 271 if (buildCounterChromeOsDevice < 3) {
272 o.activeTimeRanges = buildUnnamed473(); 272 o.activeTimeRanges = buildUnnamed93();
273 o.annotatedLocation = "foo"; 273 o.annotatedLocation = "foo";
274 o.annotatedUser = "foo"; 274 o.annotatedUser = "foo";
275 o.bootMode = "foo"; 275 o.bootMode = "foo";
276 o.deviceId = "foo"; 276 o.deviceId = "foo";
277 o.etag = "foo"; 277 o.etag = "foo";
278 o.ethernetMacAddress = "foo"; 278 o.ethernetMacAddress = "foo";
279 o.firmwareVersion = "foo"; 279 o.firmwareVersion = "foo";
280 o.kind = "foo"; 280 o.kind = "foo";
281 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); 281 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02");
282 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); 282 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02");
283 o.macAddress = "foo"; 283 o.macAddress = "foo";
284 o.meid = "foo"; 284 o.meid = "foo";
285 o.model = "foo"; 285 o.model = "foo";
286 o.notes = "foo"; 286 o.notes = "foo";
287 o.orderNumber = "foo"; 287 o.orderNumber = "foo";
288 o.orgUnitPath = "foo"; 288 o.orgUnitPath = "foo";
289 o.osVersion = "foo"; 289 o.osVersion = "foo";
290 o.platformVersion = "foo"; 290 o.platformVersion = "foo";
291 o.recentUsers = buildUnnamed474(); 291 o.recentUsers = buildUnnamed94();
292 o.serialNumber = "foo"; 292 o.serialNumber = "foo";
293 o.status = "foo"; 293 o.status = "foo";
294 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); 294 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02");
295 o.willAutoRenew = true; 295 o.willAutoRenew = true;
296 } 296 }
297 buildCounterChromeOsDevice--; 297 buildCounterChromeOsDevice--;
298 return o; 298 return o;
299 } 299 }
300 300
301 checkChromeOsDevice(api.ChromeOsDevice o) { 301 checkChromeOsDevice(api.ChromeOsDevice o) {
302 buildCounterChromeOsDevice++; 302 buildCounterChromeOsDevice++;
303 if (buildCounterChromeOsDevice < 3) { 303 if (buildCounterChromeOsDevice < 3) {
304 checkUnnamed473(o.activeTimeRanges); 304 checkUnnamed93(o.activeTimeRanges);
305 unittest.expect(o.annotatedLocation, unittest.equals('foo')); 305 unittest.expect(o.annotatedLocation, unittest.equals('foo'));
306 unittest.expect(o.annotatedUser, unittest.equals('foo')); 306 unittest.expect(o.annotatedUser, unittest.equals('foo'));
307 unittest.expect(o.bootMode, unittest.equals('foo')); 307 unittest.expect(o.bootMode, unittest.equals('foo'));
308 unittest.expect(o.deviceId, unittest.equals('foo')); 308 unittest.expect(o.deviceId, unittest.equals('foo'));
309 unittest.expect(o.etag, unittest.equals('foo')); 309 unittest.expect(o.etag, unittest.equals('foo'));
310 unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); 310 unittest.expect(o.ethernetMacAddress, unittest.equals('foo'));
311 unittest.expect(o.firmwareVersion, unittest.equals('foo')); 311 unittest.expect(o.firmwareVersion, unittest.equals('foo'));
312 unittest.expect(o.kind, unittest.equals('foo')); 312 unittest.expect(o.kind, unittest.equals('foo'));
313 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02"))); 313 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02")));
314 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02"))); 314 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02")));
315 unittest.expect(o.macAddress, unittest.equals('foo')); 315 unittest.expect(o.macAddress, unittest.equals('foo'));
316 unittest.expect(o.meid, unittest.equals('foo')); 316 unittest.expect(o.meid, unittest.equals('foo'));
317 unittest.expect(o.model, unittest.equals('foo')); 317 unittest.expect(o.model, unittest.equals('foo'));
318 unittest.expect(o.notes, unittest.equals('foo')); 318 unittest.expect(o.notes, unittest.equals('foo'));
319 unittest.expect(o.orderNumber, unittest.equals('foo')); 319 unittest.expect(o.orderNumber, unittest.equals('foo'));
320 unittest.expect(o.orgUnitPath, unittest.equals('foo')); 320 unittest.expect(o.orgUnitPath, unittest.equals('foo'));
321 unittest.expect(o.osVersion, unittest.equals('foo')); 321 unittest.expect(o.osVersion, unittest.equals('foo'));
322 unittest.expect(o.platformVersion, unittest.equals('foo')); 322 unittest.expect(o.platformVersion, unittest.equals('foo'));
323 checkUnnamed474(o.recentUsers); 323 checkUnnamed94(o.recentUsers);
324 unittest.expect(o.serialNumber, unittest.equals('foo')); 324 unittest.expect(o.serialNumber, unittest.equals('foo'));
325 unittest.expect(o.status, unittest.equals('foo')); 325 unittest.expect(o.status, unittest.equals('foo'));
326 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 326 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
327 unittest.expect(o.willAutoRenew, unittest.isTrue); 327 unittest.expect(o.willAutoRenew, unittest.isTrue);
328 } 328 }
329 buildCounterChromeOsDevice--; 329 buildCounterChromeOsDevice--;
330 } 330 }
331 331
332 buildUnnamed475() { 332 buildUnnamed95() {
333 var o = new core.List<api.ChromeOsDevice>(); 333 var o = new core.List<api.ChromeOsDevice>();
334 o.add(buildChromeOsDevice()); 334 o.add(buildChromeOsDevice());
335 o.add(buildChromeOsDevice()); 335 o.add(buildChromeOsDevice());
336 return o; 336 return o;
337 } 337 }
338 338
339 checkUnnamed475(core.List<api.ChromeOsDevice> o) { 339 checkUnnamed95(core.List<api.ChromeOsDevice> o) {
340 unittest.expect(o, unittest.hasLength(2)); 340 unittest.expect(o, unittest.hasLength(2));
341 checkChromeOsDevice(o[0]); 341 checkChromeOsDevice(o[0]);
342 checkChromeOsDevice(o[1]); 342 checkChromeOsDevice(o[1]);
343 } 343 }
344 344
345 core.int buildCounterChromeOsDevices = 0; 345 core.int buildCounterChromeOsDevices = 0;
346 buildChromeOsDevices() { 346 buildChromeOsDevices() {
347 var o = new api.ChromeOsDevices(); 347 var o = new api.ChromeOsDevices();
348 buildCounterChromeOsDevices++; 348 buildCounterChromeOsDevices++;
349 if (buildCounterChromeOsDevices < 3) { 349 if (buildCounterChromeOsDevices < 3) {
350 o.chromeosdevices = buildUnnamed475(); 350 o.chromeosdevices = buildUnnamed95();
351 o.etag = "foo"; 351 o.etag = "foo";
352 o.kind = "foo"; 352 o.kind = "foo";
353 o.nextPageToken = "foo"; 353 o.nextPageToken = "foo";
354 } 354 }
355 buildCounterChromeOsDevices--; 355 buildCounterChromeOsDevices--;
356 return o; 356 return o;
357 } 357 }
358 358
359 checkChromeOsDevices(api.ChromeOsDevices o) { 359 checkChromeOsDevices(api.ChromeOsDevices o) {
360 buildCounterChromeOsDevices++; 360 buildCounterChromeOsDevices++;
361 if (buildCounterChromeOsDevices < 3) { 361 if (buildCounterChromeOsDevices < 3) {
362 checkUnnamed475(o.chromeosdevices); 362 checkUnnamed95(o.chromeosdevices);
363 unittest.expect(o.etag, unittest.equals('foo')); 363 unittest.expect(o.etag, unittest.equals('foo'));
364 unittest.expect(o.kind, unittest.equals('foo')); 364 unittest.expect(o.kind, unittest.equals('foo'));
365 unittest.expect(o.nextPageToken, unittest.equals('foo')); 365 unittest.expect(o.nextPageToken, unittest.equals('foo'));
366 } 366 }
367 buildCounterChromeOsDevices--; 367 buildCounterChromeOsDevices--;
368 } 368 }
369 369
370 buildUnnamed476() { 370 buildUnnamed96() {
371 var o = new core.List<core.String>(); 371 var o = new core.List<core.String>();
372 o.add("foo"); 372 o.add("foo");
373 o.add("foo"); 373 o.add("foo");
374 return o; 374 return o;
375 } 375 }
376 376
377 checkUnnamed476(core.List<core.String> o) { 377 checkUnnamed96(core.List<core.String> o) {
378 unittest.expect(o, unittest.hasLength(2)); 378 unittest.expect(o, unittest.hasLength(2));
379 unittest.expect(o[0], unittest.equals('foo')); 379 unittest.expect(o[0], unittest.equals('foo'));
380 unittest.expect(o[1], unittest.equals('foo')); 380 unittest.expect(o[1], unittest.equals('foo'));
381 } 381 }
382 382
383 buildUnnamed477() { 383 buildUnnamed97() {
384 var o = new core.List<core.String>(); 384 var o = new core.List<core.String>();
385 o.add("foo"); 385 o.add("foo");
386 o.add("foo"); 386 o.add("foo");
387 return o; 387 return o;
388 } 388 }
389 389
390 checkUnnamed477(core.List<core.String> o) { 390 checkUnnamed97(core.List<core.String> o) {
391 unittest.expect(o, unittest.hasLength(2)); 391 unittest.expect(o, unittest.hasLength(2));
392 unittest.expect(o[0], unittest.equals('foo')); 392 unittest.expect(o[0], unittest.equals('foo'));
393 unittest.expect(o[1], unittest.equals('foo')); 393 unittest.expect(o[1], unittest.equals('foo'));
394 } 394 }
395 395
396 core.int buildCounterGroup = 0; 396 core.int buildCounterGroup = 0;
397 buildGroup() { 397 buildGroup() {
398 var o = new api.Group(); 398 var o = new api.Group();
399 buildCounterGroup++; 399 buildCounterGroup++;
400 if (buildCounterGroup < 3) { 400 if (buildCounterGroup < 3) {
401 o.adminCreated = true; 401 o.adminCreated = true;
402 o.aliases = buildUnnamed476(); 402 o.aliases = buildUnnamed96();
403 o.description = "foo"; 403 o.description = "foo";
404 o.directMembersCount = "foo"; 404 o.directMembersCount = "foo";
405 o.email = "foo"; 405 o.email = "foo";
406 o.etag = "foo"; 406 o.etag = "foo";
407 o.id = "foo"; 407 o.id = "foo";
408 o.kind = "foo"; 408 o.kind = "foo";
409 o.name = "foo"; 409 o.name = "foo";
410 o.nonEditableAliases = buildUnnamed477(); 410 o.nonEditableAliases = buildUnnamed97();
411 } 411 }
412 buildCounterGroup--; 412 buildCounterGroup--;
413 return o; 413 return o;
414 } 414 }
415 415
416 checkGroup(api.Group o) { 416 checkGroup(api.Group o) {
417 buildCounterGroup++; 417 buildCounterGroup++;
418 if (buildCounterGroup < 3) { 418 if (buildCounterGroup < 3) {
419 unittest.expect(o.adminCreated, unittest.isTrue); 419 unittest.expect(o.adminCreated, unittest.isTrue);
420 checkUnnamed476(o.aliases); 420 checkUnnamed96(o.aliases);
421 unittest.expect(o.description, unittest.equals('foo')); 421 unittest.expect(o.description, unittest.equals('foo'));
422 unittest.expect(o.directMembersCount, unittest.equals('foo')); 422 unittest.expect(o.directMembersCount, unittest.equals('foo'));
423 unittest.expect(o.email, unittest.equals('foo')); 423 unittest.expect(o.email, unittest.equals('foo'));
424 unittest.expect(o.etag, unittest.equals('foo')); 424 unittest.expect(o.etag, unittest.equals('foo'));
425 unittest.expect(o.id, unittest.equals('foo')); 425 unittest.expect(o.id, unittest.equals('foo'));
426 unittest.expect(o.kind, unittest.equals('foo')); 426 unittest.expect(o.kind, unittest.equals('foo'));
427 unittest.expect(o.name, unittest.equals('foo')); 427 unittest.expect(o.name, unittest.equals('foo'));
428 checkUnnamed477(o.nonEditableAliases); 428 checkUnnamed97(o.nonEditableAliases);
429 } 429 }
430 buildCounterGroup--; 430 buildCounterGroup--;
431 } 431 }
432 432
433 buildUnnamed478() { 433 buildUnnamed98() {
434 var o = new core.List<api.Group>(); 434 var o = new core.List<api.Group>();
435 o.add(buildGroup()); 435 o.add(buildGroup());
436 o.add(buildGroup()); 436 o.add(buildGroup());
437 return o; 437 return o;
438 } 438 }
439 439
440 checkUnnamed478(core.List<api.Group> o) { 440 checkUnnamed98(core.List<api.Group> o) {
441 unittest.expect(o, unittest.hasLength(2)); 441 unittest.expect(o, unittest.hasLength(2));
442 checkGroup(o[0]); 442 checkGroup(o[0]);
443 checkGroup(o[1]); 443 checkGroup(o[1]);
444 } 444 }
445 445
446 core.int buildCounterGroups = 0; 446 core.int buildCounterGroups = 0;
447 buildGroups() { 447 buildGroups() {
448 var o = new api.Groups(); 448 var o = new api.Groups();
449 buildCounterGroups++; 449 buildCounterGroups++;
450 if (buildCounterGroups < 3) { 450 if (buildCounterGroups < 3) {
451 o.etag = "foo"; 451 o.etag = "foo";
452 o.groups = buildUnnamed478(); 452 o.groups = buildUnnamed98();
453 o.kind = "foo"; 453 o.kind = "foo";
454 o.nextPageToken = "foo"; 454 o.nextPageToken = "foo";
455 } 455 }
456 buildCounterGroups--; 456 buildCounterGroups--;
457 return o; 457 return o;
458 } 458 }
459 459
460 checkGroups(api.Groups o) { 460 checkGroups(api.Groups o) {
461 buildCounterGroups++; 461 buildCounterGroups++;
462 if (buildCounterGroups < 3) { 462 if (buildCounterGroups < 3) {
463 unittest.expect(o.etag, unittest.equals('foo')); 463 unittest.expect(o.etag, unittest.equals('foo'));
464 checkUnnamed478(o.groups); 464 checkUnnamed98(o.groups);
465 unittest.expect(o.kind, unittest.equals('foo')); 465 unittest.expect(o.kind, unittest.equals('foo'));
466 unittest.expect(o.nextPageToken, unittest.equals('foo')); 466 unittest.expect(o.nextPageToken, unittest.equals('foo'));
467 } 467 }
468 buildCounterGroups--; 468 buildCounterGroups--;
469 } 469 }
470 470
471 core.int buildCounterMember = 0; 471 core.int buildCounterMember = 0;
472 buildMember() { 472 buildMember() {
473 var o = new api.Member(); 473 var o = new api.Member();
474 buildCounterMember++; 474 buildCounterMember++;
(...skipping 15 matching lines...) Expand all
490 unittest.expect(o.email, unittest.equals('foo')); 490 unittest.expect(o.email, unittest.equals('foo'));
491 unittest.expect(o.etag, unittest.equals('foo')); 491 unittest.expect(o.etag, unittest.equals('foo'));
492 unittest.expect(o.id, unittest.equals('foo')); 492 unittest.expect(o.id, unittest.equals('foo'));
493 unittest.expect(o.kind, unittest.equals('foo')); 493 unittest.expect(o.kind, unittest.equals('foo'));
494 unittest.expect(o.role, unittest.equals('foo')); 494 unittest.expect(o.role, unittest.equals('foo'));
495 unittest.expect(o.type, unittest.equals('foo')); 495 unittest.expect(o.type, unittest.equals('foo'));
496 } 496 }
497 buildCounterMember--; 497 buildCounterMember--;
498 } 498 }
499 499
500 buildUnnamed479() { 500 buildUnnamed99() {
501 var o = new core.List<api.Member>(); 501 var o = new core.List<api.Member>();
502 o.add(buildMember()); 502 o.add(buildMember());
503 o.add(buildMember()); 503 o.add(buildMember());
504 return o; 504 return o;
505 } 505 }
506 506
507 checkUnnamed479(core.List<api.Member> o) { 507 checkUnnamed99(core.List<api.Member> o) {
508 unittest.expect(o, unittest.hasLength(2)); 508 unittest.expect(o, unittest.hasLength(2));
509 checkMember(o[0]); 509 checkMember(o[0]);
510 checkMember(o[1]); 510 checkMember(o[1]);
511 } 511 }
512 512
513 core.int buildCounterMembers = 0; 513 core.int buildCounterMembers = 0;
514 buildMembers() { 514 buildMembers() {
515 var o = new api.Members(); 515 var o = new api.Members();
516 buildCounterMembers++; 516 buildCounterMembers++;
517 if (buildCounterMembers < 3) { 517 if (buildCounterMembers < 3) {
518 o.etag = "foo"; 518 o.etag = "foo";
519 o.kind = "foo"; 519 o.kind = "foo";
520 o.members = buildUnnamed479(); 520 o.members = buildUnnamed99();
521 o.nextPageToken = "foo"; 521 o.nextPageToken = "foo";
522 } 522 }
523 buildCounterMembers--; 523 buildCounterMembers--;
524 return o; 524 return o;
525 } 525 }
526 526
527 checkMembers(api.Members o) { 527 checkMembers(api.Members o) {
528 buildCounterMembers++; 528 buildCounterMembers++;
529 if (buildCounterMembers < 3) { 529 if (buildCounterMembers < 3) {
530 unittest.expect(o.etag, unittest.equals('foo')); 530 unittest.expect(o.etag, unittest.equals('foo'));
531 unittest.expect(o.kind, unittest.equals('foo')); 531 unittest.expect(o.kind, unittest.equals('foo'));
532 checkUnnamed479(o.members); 532 checkUnnamed99(o.members);
533 unittest.expect(o.nextPageToken, unittest.equals('foo')); 533 unittest.expect(o.nextPageToken, unittest.equals('foo'));
534 } 534 }
535 buildCounterMembers--; 535 buildCounterMembers--;
536 } 536 }
537 537
538 buildUnnamed480() { 538 buildUnnamed100() {
539 var o = new core.List<core.String>(); 539 var o = new core.List<core.String>();
540 o.add("foo"); 540 o.add("foo");
541 o.add("foo"); 541 o.add("foo");
542 return o; 542 return o;
543 } 543 }
544 544
545 checkUnnamed480(core.List<core.String> o) { 545 checkUnnamed100(core.List<core.String> o) {
546 unittest.expect(o, unittest.hasLength(2)); 546 unittest.expect(o, unittest.hasLength(2));
547 unittest.expect(o[0], unittest.equals('foo')); 547 unittest.expect(o[0], unittest.equals('foo'));
548 unittest.expect(o[1], unittest.equals('foo')); 548 unittest.expect(o[1], unittest.equals('foo'));
549 } 549 }
550 550
551 core.int buildCounterMobileDeviceApplications = 0; 551 core.int buildCounterMobileDeviceApplications = 0;
552 buildMobileDeviceApplications() { 552 buildMobileDeviceApplications() {
553 var o = new api.MobileDeviceApplications(); 553 var o = new api.MobileDeviceApplications();
554 buildCounterMobileDeviceApplications++; 554 buildCounterMobileDeviceApplications++;
555 if (buildCounterMobileDeviceApplications < 3) { 555 if (buildCounterMobileDeviceApplications < 3) {
556 o.displayName = "foo"; 556 o.displayName = "foo";
557 o.packageName = "foo"; 557 o.packageName = "foo";
558 o.permission = buildUnnamed480(); 558 o.permission = buildUnnamed100();
559 o.versionCode = 42; 559 o.versionCode = 42;
560 o.versionName = "foo"; 560 o.versionName = "foo";
561 } 561 }
562 buildCounterMobileDeviceApplications--; 562 buildCounterMobileDeviceApplications--;
563 return o; 563 return o;
564 } 564 }
565 565
566 checkMobileDeviceApplications(api.MobileDeviceApplications o) { 566 checkMobileDeviceApplications(api.MobileDeviceApplications o) {
567 buildCounterMobileDeviceApplications++; 567 buildCounterMobileDeviceApplications++;
568 if (buildCounterMobileDeviceApplications < 3) { 568 if (buildCounterMobileDeviceApplications < 3) {
569 unittest.expect(o.displayName, unittest.equals('foo')); 569 unittest.expect(o.displayName, unittest.equals('foo'));
570 unittest.expect(o.packageName, unittest.equals('foo')); 570 unittest.expect(o.packageName, unittest.equals('foo'));
571 checkUnnamed480(o.permission); 571 checkUnnamed100(o.permission);
572 unittest.expect(o.versionCode, unittest.equals(42)); 572 unittest.expect(o.versionCode, unittest.equals(42));
573 unittest.expect(o.versionName, unittest.equals('foo')); 573 unittest.expect(o.versionName, unittest.equals('foo'));
574 } 574 }
575 buildCounterMobileDeviceApplications--; 575 buildCounterMobileDeviceApplications--;
576 } 576 }
577 577
578 buildUnnamed481() { 578 buildUnnamed101() {
579 var o = new core.List<api.MobileDeviceApplications>(); 579 var o = new core.List<api.MobileDeviceApplications>();
580 o.add(buildMobileDeviceApplications()); 580 o.add(buildMobileDeviceApplications());
581 o.add(buildMobileDeviceApplications()); 581 o.add(buildMobileDeviceApplications());
582 return o; 582 return o;
583 } 583 }
584 584
585 checkUnnamed481(core.List<api.MobileDeviceApplications> o) { 585 checkUnnamed101(core.List<api.MobileDeviceApplications> o) {
586 unittest.expect(o, unittest.hasLength(2)); 586 unittest.expect(o, unittest.hasLength(2));
587 checkMobileDeviceApplications(o[0]); 587 checkMobileDeviceApplications(o[0]);
588 checkMobileDeviceApplications(o[1]); 588 checkMobileDeviceApplications(o[1]);
589 } 589 }
590 590
591 buildUnnamed482() { 591 buildUnnamed102() {
592 var o = new core.List<core.String>(); 592 var o = new core.List<core.String>();
593 o.add("foo"); 593 o.add("foo");
594 o.add("foo"); 594 o.add("foo");
595 return o; 595 return o;
596 } 596 }
597 597
598 checkUnnamed482(core.List<core.String> o) { 598 checkUnnamed102(core.List<core.String> o) {
599 unittest.expect(o, unittest.hasLength(2)); 599 unittest.expect(o, unittest.hasLength(2));
600 unittest.expect(o[0], unittest.equals('foo')); 600 unittest.expect(o[0], unittest.equals('foo'));
601 unittest.expect(o[1], unittest.equals('foo')); 601 unittest.expect(o[1], unittest.equals('foo'));
602 } 602 }
603 603
604 buildUnnamed483() { 604 buildUnnamed103() {
605 var o = new core.List<core.String>(); 605 var o = new core.List<core.String>();
606 o.add("foo"); 606 o.add("foo");
607 o.add("foo"); 607 o.add("foo");
608 return o; 608 return o;
609 } 609 }
610 610
611 checkUnnamed483(core.List<core.String> o) { 611 checkUnnamed103(core.List<core.String> o) {
612 unittest.expect(o, unittest.hasLength(2)); 612 unittest.expect(o, unittest.hasLength(2));
613 unittest.expect(o[0], unittest.equals('foo')); 613 unittest.expect(o[0], unittest.equals('foo'));
614 unittest.expect(o[1], unittest.equals('foo')); 614 unittest.expect(o[1], unittest.equals('foo'));
615 } 615 }
616 616
617 core.int buildCounterMobileDevice = 0; 617 core.int buildCounterMobileDevice = 0;
618 buildMobileDevice() { 618 buildMobileDevice() {
619 var o = new api.MobileDevice(); 619 var o = new api.MobileDevice();
620 buildCounterMobileDevice++; 620 buildCounterMobileDevice++;
621 if (buildCounterMobileDevice < 3) { 621 if (buildCounterMobileDevice < 3) {
622 o.applications = buildUnnamed481(); 622 o.applications = buildUnnamed101();
623 o.basebandVersion = "foo"; 623 o.basebandVersion = "foo";
624 o.buildNumber = "foo"; 624 o.buildNumber = "foo";
625 o.defaultLanguage = "foo"; 625 o.defaultLanguage = "foo";
626 o.deviceCompromisedStatus = "foo"; 626 o.deviceCompromisedStatus = "foo";
627 o.deviceId = "foo"; 627 o.deviceId = "foo";
628 o.email = buildUnnamed482(); 628 o.email = buildUnnamed102();
629 o.etag = "foo"; 629 o.etag = "foo";
630 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); 630 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02");
631 o.hardwareId = "foo"; 631 o.hardwareId = "foo";
632 o.imei = "foo"; 632 o.imei = "foo";
633 o.kernelVersion = "foo"; 633 o.kernelVersion = "foo";
634 o.kind = "foo"; 634 o.kind = "foo";
635 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); 635 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02");
636 o.managedAccountIsOnOwnerProfile = true; 636 o.managedAccountIsOnOwnerProfile = true;
637 o.meid = "foo"; 637 o.meid = "foo";
638 o.model = "foo"; 638 o.model = "foo";
639 o.name = buildUnnamed483(); 639 o.name = buildUnnamed103();
640 o.networkOperator = "foo"; 640 o.networkOperator = "foo";
641 o.os = "foo"; 641 o.os = "foo";
642 o.resourceId = "foo"; 642 o.resourceId = "foo";
643 o.serialNumber = "foo"; 643 o.serialNumber = "foo";
644 o.status = "foo"; 644 o.status = "foo";
645 o.type = "foo"; 645 o.type = "foo";
646 o.userAgent = "foo"; 646 o.userAgent = "foo";
647 o.wifiMacAddress = "foo"; 647 o.wifiMacAddress = "foo";
648 } 648 }
649 buildCounterMobileDevice--; 649 buildCounterMobileDevice--;
650 return o; 650 return o;
651 } 651 }
652 652
653 checkMobileDevice(api.MobileDevice o) { 653 checkMobileDevice(api.MobileDevice o) {
654 buildCounterMobileDevice++; 654 buildCounterMobileDevice++;
655 if (buildCounterMobileDevice < 3) { 655 if (buildCounterMobileDevice < 3) {
656 checkUnnamed481(o.applications); 656 checkUnnamed101(o.applications);
657 unittest.expect(o.basebandVersion, unittest.equals('foo')); 657 unittest.expect(o.basebandVersion, unittest.equals('foo'));
658 unittest.expect(o.buildNumber, unittest.equals('foo')); 658 unittest.expect(o.buildNumber, unittest.equals('foo'));
659 unittest.expect(o.defaultLanguage, unittest.equals('foo')); 659 unittest.expect(o.defaultLanguage, unittest.equals('foo'));
660 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); 660 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo'));
661 unittest.expect(o.deviceId, unittest.equals('foo')); 661 unittest.expect(o.deviceId, unittest.equals('foo'));
662 checkUnnamed482(o.email); 662 checkUnnamed102(o.email);
663 unittest.expect(o.etag, unittest.equals('foo')); 663 unittest.expect(o.etag, unittest.equals('foo'));
664 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 664 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
665 unittest.expect(o.hardwareId, unittest.equals('foo')); 665 unittest.expect(o.hardwareId, unittest.equals('foo'));
666 unittest.expect(o.imei, unittest.equals('foo')); 666 unittest.expect(o.imei, unittest.equals('foo'));
667 unittest.expect(o.kernelVersion, unittest.equals('foo')); 667 unittest.expect(o.kernelVersion, unittest.equals('foo'));
668 unittest.expect(o.kind, unittest.equals('foo')); 668 unittest.expect(o.kind, unittest.equals('foo'));
669 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02"))); 669 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02")));
670 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); 670 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue);
671 unittest.expect(o.meid, unittest.equals('foo')); 671 unittest.expect(o.meid, unittest.equals('foo'));
672 unittest.expect(o.model, unittest.equals('foo')); 672 unittest.expect(o.model, unittest.equals('foo'));
673 checkUnnamed483(o.name); 673 checkUnnamed103(o.name);
674 unittest.expect(o.networkOperator, unittest.equals('foo')); 674 unittest.expect(o.networkOperator, unittest.equals('foo'));
675 unittest.expect(o.os, unittest.equals('foo')); 675 unittest.expect(o.os, unittest.equals('foo'));
676 unittest.expect(o.resourceId, unittest.equals('foo')); 676 unittest.expect(o.resourceId, unittest.equals('foo'));
677 unittest.expect(o.serialNumber, unittest.equals('foo')); 677 unittest.expect(o.serialNumber, unittest.equals('foo'));
678 unittest.expect(o.status, unittest.equals('foo')); 678 unittest.expect(o.status, unittest.equals('foo'));
679 unittest.expect(o.type, unittest.equals('foo')); 679 unittest.expect(o.type, unittest.equals('foo'));
680 unittest.expect(o.userAgent, unittest.equals('foo')); 680 unittest.expect(o.userAgent, unittest.equals('foo'));
681 unittest.expect(o.wifiMacAddress, unittest.equals('foo')); 681 unittest.expect(o.wifiMacAddress, unittest.equals('foo'));
682 } 682 }
683 buildCounterMobileDevice--; 683 buildCounterMobileDevice--;
(...skipping 11 matching lines...) Expand all
695 } 695 }
696 696
697 checkMobileDeviceAction(api.MobileDeviceAction o) { 697 checkMobileDeviceAction(api.MobileDeviceAction o) {
698 buildCounterMobileDeviceAction++; 698 buildCounterMobileDeviceAction++;
699 if (buildCounterMobileDeviceAction < 3) { 699 if (buildCounterMobileDeviceAction < 3) {
700 unittest.expect(o.action, unittest.equals('foo')); 700 unittest.expect(o.action, unittest.equals('foo'));
701 } 701 }
702 buildCounterMobileDeviceAction--; 702 buildCounterMobileDeviceAction--;
703 } 703 }
704 704
705 buildUnnamed484() { 705 buildUnnamed104() {
706 var o = new core.List<api.MobileDevice>(); 706 var o = new core.List<api.MobileDevice>();
707 o.add(buildMobileDevice()); 707 o.add(buildMobileDevice());
708 o.add(buildMobileDevice()); 708 o.add(buildMobileDevice());
709 return o; 709 return o;
710 } 710 }
711 711
712 checkUnnamed484(core.List<api.MobileDevice> o) { 712 checkUnnamed104(core.List<api.MobileDevice> o) {
713 unittest.expect(o, unittest.hasLength(2)); 713 unittest.expect(o, unittest.hasLength(2));
714 checkMobileDevice(o[0]); 714 checkMobileDevice(o[0]);
715 checkMobileDevice(o[1]); 715 checkMobileDevice(o[1]);
716 } 716 }
717 717
718 core.int buildCounterMobileDevices = 0; 718 core.int buildCounterMobileDevices = 0;
719 buildMobileDevices() { 719 buildMobileDevices() {
720 var o = new api.MobileDevices(); 720 var o = new api.MobileDevices();
721 buildCounterMobileDevices++; 721 buildCounterMobileDevices++;
722 if (buildCounterMobileDevices < 3) { 722 if (buildCounterMobileDevices < 3) {
723 o.etag = "foo"; 723 o.etag = "foo";
724 o.kind = "foo"; 724 o.kind = "foo";
725 o.mobiledevices = buildUnnamed484(); 725 o.mobiledevices = buildUnnamed104();
726 o.nextPageToken = "foo"; 726 o.nextPageToken = "foo";
727 } 727 }
728 buildCounterMobileDevices--; 728 buildCounterMobileDevices--;
729 return o; 729 return o;
730 } 730 }
731 731
732 checkMobileDevices(api.MobileDevices o) { 732 checkMobileDevices(api.MobileDevices o) {
733 buildCounterMobileDevices++; 733 buildCounterMobileDevices++;
734 if (buildCounterMobileDevices < 3) { 734 if (buildCounterMobileDevices < 3) {
735 unittest.expect(o.etag, unittest.equals('foo')); 735 unittest.expect(o.etag, unittest.equals('foo'));
736 unittest.expect(o.kind, unittest.equals('foo')); 736 unittest.expect(o.kind, unittest.equals('foo'));
737 checkUnnamed484(o.mobiledevices); 737 checkUnnamed104(o.mobiledevices);
738 unittest.expect(o.nextPageToken, unittest.equals('foo')); 738 unittest.expect(o.nextPageToken, unittest.equals('foo'));
739 } 739 }
740 buildCounterMobileDevices--; 740 buildCounterMobileDevices--;
741 } 741 }
742 742
743 core.int buildCounterNotification = 0; 743 core.int buildCounterNotification = 0;
744 buildNotification() { 744 buildNotification() {
745 var o = new api.Notification(); 745 var o = new api.Notification();
746 buildCounterNotification++; 746 buildCounterNotification++;
747 if (buildCounterNotification < 3) { 747 if (buildCounterNotification < 3) {
(...skipping 18 matching lines...) Expand all
766 unittest.expect(o.fromAddress, unittest.equals('foo')); 766 unittest.expect(o.fromAddress, unittest.equals('foo'));
767 unittest.expect(o.isUnread, unittest.isTrue); 767 unittest.expect(o.isUnread, unittest.isTrue);
768 unittest.expect(o.kind, unittest.equals('foo')); 768 unittest.expect(o.kind, unittest.equals('foo'));
769 unittest.expect(o.notificationId, unittest.equals('foo')); 769 unittest.expect(o.notificationId, unittest.equals('foo'));
770 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02"))); 770 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T 14:01:02")));
771 unittest.expect(o.subject, unittest.equals('foo')); 771 unittest.expect(o.subject, unittest.equals('foo'));
772 } 772 }
773 buildCounterNotification--; 773 buildCounterNotification--;
774 } 774 }
775 775
776 buildUnnamed485() { 776 buildUnnamed105() {
777 var o = new core.List<api.Notification>(); 777 var o = new core.List<api.Notification>();
778 o.add(buildNotification()); 778 o.add(buildNotification());
779 o.add(buildNotification()); 779 o.add(buildNotification());
780 return o; 780 return o;
781 } 781 }
782 782
783 checkUnnamed485(core.List<api.Notification> o) { 783 checkUnnamed105(core.List<api.Notification> o) {
784 unittest.expect(o, unittest.hasLength(2)); 784 unittest.expect(o, unittest.hasLength(2));
785 checkNotification(o[0]); 785 checkNotification(o[0]);
786 checkNotification(o[1]); 786 checkNotification(o[1]);
787 } 787 }
788 788
789 core.int buildCounterNotifications = 0; 789 core.int buildCounterNotifications = 0;
790 buildNotifications() { 790 buildNotifications() {
791 var o = new api.Notifications(); 791 var o = new api.Notifications();
792 buildCounterNotifications++; 792 buildCounterNotifications++;
793 if (buildCounterNotifications < 3) { 793 if (buildCounterNotifications < 3) {
794 o.etag = "foo"; 794 o.etag = "foo";
795 o.items = buildUnnamed485(); 795 o.items = buildUnnamed105();
796 o.kind = "foo"; 796 o.kind = "foo";
797 o.nextPageToken = "foo"; 797 o.nextPageToken = "foo";
798 o.unreadNotificationsCount = 42; 798 o.unreadNotificationsCount = 42;
799 } 799 }
800 buildCounterNotifications--; 800 buildCounterNotifications--;
801 return o; 801 return o;
802 } 802 }
803 803
804 checkNotifications(api.Notifications o) { 804 checkNotifications(api.Notifications o) {
805 buildCounterNotifications++; 805 buildCounterNotifications++;
806 if (buildCounterNotifications < 3) { 806 if (buildCounterNotifications < 3) {
807 unittest.expect(o.etag, unittest.equals('foo')); 807 unittest.expect(o.etag, unittest.equals('foo'));
808 checkUnnamed485(o.items); 808 checkUnnamed105(o.items);
809 unittest.expect(o.kind, unittest.equals('foo')); 809 unittest.expect(o.kind, unittest.equals('foo'));
810 unittest.expect(o.nextPageToken, unittest.equals('foo')); 810 unittest.expect(o.nextPageToken, unittest.equals('foo'));
811 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); 811 unittest.expect(o.unreadNotificationsCount, unittest.equals(42));
812 } 812 }
813 buildCounterNotifications--; 813 buildCounterNotifications--;
814 } 814 }
815 815
816 core.int buildCounterOrgUnit = 0; 816 core.int buildCounterOrgUnit = 0;
817 buildOrgUnit() { 817 buildOrgUnit() {
818 var o = new api.OrgUnit(); 818 var o = new api.OrgUnit();
(...skipping 18 matching lines...) Expand all
837 unittest.expect(o.description, unittest.equals('foo')); 837 unittest.expect(o.description, unittest.equals('foo'));
838 unittest.expect(o.etag, unittest.equals('foo')); 838 unittest.expect(o.etag, unittest.equals('foo'));
839 unittest.expect(o.kind, unittest.equals('foo')); 839 unittest.expect(o.kind, unittest.equals('foo'));
840 unittest.expect(o.name, unittest.equals('foo')); 840 unittest.expect(o.name, unittest.equals('foo'));
841 unittest.expect(o.orgUnitPath, unittest.equals('foo')); 841 unittest.expect(o.orgUnitPath, unittest.equals('foo'));
842 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); 842 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo'));
843 } 843 }
844 buildCounterOrgUnit--; 844 buildCounterOrgUnit--;
845 } 845 }
846 846
847 buildUnnamed486() { 847 buildUnnamed106() {
848 var o = new core.List<api.OrgUnit>(); 848 var o = new core.List<api.OrgUnit>();
849 o.add(buildOrgUnit()); 849 o.add(buildOrgUnit());
850 o.add(buildOrgUnit()); 850 o.add(buildOrgUnit());
851 return o; 851 return o;
852 } 852 }
853 853
854 checkUnnamed486(core.List<api.OrgUnit> o) { 854 checkUnnamed106(core.List<api.OrgUnit> o) {
855 unittest.expect(o, unittest.hasLength(2)); 855 unittest.expect(o, unittest.hasLength(2));
856 checkOrgUnit(o[0]); 856 checkOrgUnit(o[0]);
857 checkOrgUnit(o[1]); 857 checkOrgUnit(o[1]);
858 } 858 }
859 859
860 core.int buildCounterOrgUnits = 0; 860 core.int buildCounterOrgUnits = 0;
861 buildOrgUnits() { 861 buildOrgUnits() {
862 var o = new api.OrgUnits(); 862 var o = new api.OrgUnits();
863 buildCounterOrgUnits++; 863 buildCounterOrgUnits++;
864 if (buildCounterOrgUnits < 3) { 864 if (buildCounterOrgUnits < 3) {
865 o.etag = "foo"; 865 o.etag = "foo";
866 o.kind = "foo"; 866 o.kind = "foo";
867 o.organizationUnits = buildUnnamed486(); 867 o.organizationUnits = buildUnnamed106();
868 } 868 }
869 buildCounterOrgUnits--; 869 buildCounterOrgUnits--;
870 return o; 870 return o;
871 } 871 }
872 872
873 checkOrgUnits(api.OrgUnits o) { 873 checkOrgUnits(api.OrgUnits o) {
874 buildCounterOrgUnits++; 874 buildCounterOrgUnits++;
875 if (buildCounterOrgUnits < 3) { 875 if (buildCounterOrgUnits < 3) {
876 unittest.expect(o.etag, unittest.equals('foo')); 876 unittest.expect(o.etag, unittest.equals('foo'));
877 unittest.expect(o.kind, unittest.equals('foo')); 877 unittest.expect(o.kind, unittest.equals('foo'));
878 checkUnnamed486(o.organizationUnits); 878 checkUnnamed106(o.organizationUnits);
879 } 879 }
880 buildCounterOrgUnits--; 880 buildCounterOrgUnits--;
881 } 881 }
882 882
883 buildUnnamed487() { 883 buildUnnamed107() {
884 var o = new core.List<api.SchemaFieldSpec>(); 884 var o = new core.List<api.SchemaFieldSpec>();
885 o.add(buildSchemaFieldSpec()); 885 o.add(buildSchemaFieldSpec());
886 o.add(buildSchemaFieldSpec()); 886 o.add(buildSchemaFieldSpec());
887 return o; 887 return o;
888 } 888 }
889 889
890 checkUnnamed487(core.List<api.SchemaFieldSpec> o) { 890 checkUnnamed107(core.List<api.SchemaFieldSpec> o) {
891 unittest.expect(o, unittest.hasLength(2)); 891 unittest.expect(o, unittest.hasLength(2));
892 checkSchemaFieldSpec(o[0]); 892 checkSchemaFieldSpec(o[0]);
893 checkSchemaFieldSpec(o[1]); 893 checkSchemaFieldSpec(o[1]);
894 } 894 }
895 895
896 core.int buildCounterSchema = 0; 896 core.int buildCounterSchema = 0;
897 buildSchema() { 897 buildSchema() {
898 var o = new api.Schema(); 898 var o = new api.Schema();
899 buildCounterSchema++; 899 buildCounterSchema++;
900 if (buildCounterSchema < 3) { 900 if (buildCounterSchema < 3) {
901 o.etag = "foo"; 901 o.etag = "foo";
902 o.fields = buildUnnamed487(); 902 o.fields = buildUnnamed107();
903 o.kind = "foo"; 903 o.kind = "foo";
904 o.schemaId = "foo"; 904 o.schemaId = "foo";
905 o.schemaName = "foo"; 905 o.schemaName = "foo";
906 } 906 }
907 buildCounterSchema--; 907 buildCounterSchema--;
908 return o; 908 return o;
909 } 909 }
910 910
911 checkSchema(api.Schema o) { 911 checkSchema(api.Schema o) {
912 buildCounterSchema++; 912 buildCounterSchema++;
913 if (buildCounterSchema < 3) { 913 if (buildCounterSchema < 3) {
914 unittest.expect(o.etag, unittest.equals('foo')); 914 unittest.expect(o.etag, unittest.equals('foo'));
915 checkUnnamed487(o.fields); 915 checkUnnamed107(o.fields);
916 unittest.expect(o.kind, unittest.equals('foo')); 916 unittest.expect(o.kind, unittest.equals('foo'));
917 unittest.expect(o.schemaId, unittest.equals('foo')); 917 unittest.expect(o.schemaId, unittest.equals('foo'));
918 unittest.expect(o.schemaName, unittest.equals('foo')); 918 unittest.expect(o.schemaName, unittest.equals('foo'));
919 } 919 }
920 buildCounterSchema--; 920 buildCounterSchema--;
921 } 921 }
922 922
923 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; 923 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0;
924 buildSchemaFieldSpecNumericIndexingSpec() { 924 buildSchemaFieldSpecNumericIndexingSpec() {
925 var o = new api.SchemaFieldSpecNumericIndexingSpec(); 925 var o = new api.SchemaFieldSpecNumericIndexingSpec();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 unittest.expect(o.fieldType, unittest.equals('foo')); 969 unittest.expect(o.fieldType, unittest.equals('foo'));
970 unittest.expect(o.indexed, unittest.isTrue); 970 unittest.expect(o.indexed, unittest.isTrue);
971 unittest.expect(o.kind, unittest.equals('foo')); 971 unittest.expect(o.kind, unittest.equals('foo'));
972 unittest.expect(o.multiValued, unittest.isTrue); 972 unittest.expect(o.multiValued, unittest.isTrue);
973 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); 973 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec);
974 unittest.expect(o.readAccessType, unittest.equals('foo')); 974 unittest.expect(o.readAccessType, unittest.equals('foo'));
975 } 975 }
976 buildCounterSchemaFieldSpec--; 976 buildCounterSchemaFieldSpec--;
977 } 977 }
978 978
979 buildUnnamed488() { 979 buildUnnamed108() {
980 var o = new core.List<api.Schema>(); 980 var o = new core.List<api.Schema>();
981 o.add(buildSchema()); 981 o.add(buildSchema());
982 o.add(buildSchema()); 982 o.add(buildSchema());
983 return o; 983 return o;
984 } 984 }
985 985
986 checkUnnamed488(core.List<api.Schema> o) { 986 checkUnnamed108(core.List<api.Schema> o) {
987 unittest.expect(o, unittest.hasLength(2)); 987 unittest.expect(o, unittest.hasLength(2));
988 checkSchema(o[0]); 988 checkSchema(o[0]);
989 checkSchema(o[1]); 989 checkSchema(o[1]);
990 } 990 }
991 991
992 core.int buildCounterSchemas = 0; 992 core.int buildCounterSchemas = 0;
993 buildSchemas() { 993 buildSchemas() {
994 var o = new api.Schemas(); 994 var o = new api.Schemas();
995 buildCounterSchemas++; 995 buildCounterSchemas++;
996 if (buildCounterSchemas < 3) { 996 if (buildCounterSchemas < 3) {
997 o.etag = "foo"; 997 o.etag = "foo";
998 o.kind = "foo"; 998 o.kind = "foo";
999 o.schemas = buildUnnamed488(); 999 o.schemas = buildUnnamed108();
1000 } 1000 }
1001 buildCounterSchemas--; 1001 buildCounterSchemas--;
1002 return o; 1002 return o;
1003 } 1003 }
1004 1004
1005 checkSchemas(api.Schemas o) { 1005 checkSchemas(api.Schemas o) {
1006 buildCounterSchemas++; 1006 buildCounterSchemas++;
1007 if (buildCounterSchemas < 3) { 1007 if (buildCounterSchemas < 3) {
1008 unittest.expect(o.etag, unittest.equals('foo')); 1008 unittest.expect(o.etag, unittest.equals('foo'));
1009 unittest.expect(o.kind, unittest.equals('foo')); 1009 unittest.expect(o.kind, unittest.equals('foo'));
1010 checkUnnamed488(o.schemas); 1010 checkUnnamed108(o.schemas);
1011 } 1011 }
1012 buildCounterSchemas--; 1012 buildCounterSchemas--;
1013 } 1013 }
1014 1014
1015 buildUnnamed489() { 1015 buildUnnamed109() {
1016 var o = new core.List<core.String>(); 1016 var o = new core.List<core.String>();
1017 o.add("foo"); 1017 o.add("foo");
1018 o.add("foo"); 1018 o.add("foo");
1019 return o; 1019 return o;
1020 } 1020 }
1021 1021
1022 checkUnnamed489(core.List<core.String> o) { 1022 checkUnnamed109(core.List<core.String> o) {
1023 unittest.expect(o, unittest.hasLength(2)); 1023 unittest.expect(o, unittest.hasLength(2));
1024 unittest.expect(o[0], unittest.equals('foo')); 1024 unittest.expect(o[0], unittest.equals('foo'));
1025 unittest.expect(o[1], unittest.equals('foo')); 1025 unittest.expect(o[1], unittest.equals('foo'));
1026 } 1026 }
1027 1027
1028 core.int buildCounterToken = 0; 1028 core.int buildCounterToken = 0;
1029 buildToken() { 1029 buildToken() {
1030 var o = new api.Token(); 1030 var o = new api.Token();
1031 buildCounterToken++; 1031 buildCounterToken++;
1032 if (buildCounterToken < 3) { 1032 if (buildCounterToken < 3) {
1033 o.anonymous = true; 1033 o.anonymous = true;
1034 o.clientId = "foo"; 1034 o.clientId = "foo";
1035 o.displayText = "foo"; 1035 o.displayText = "foo";
1036 o.etag = "foo"; 1036 o.etag = "foo";
1037 o.kind = "foo"; 1037 o.kind = "foo";
1038 o.nativeApp = true; 1038 o.nativeApp = true;
1039 o.scopes = buildUnnamed489(); 1039 o.scopes = buildUnnamed109();
1040 o.userKey = "foo"; 1040 o.userKey = "foo";
1041 } 1041 }
1042 buildCounterToken--; 1042 buildCounterToken--;
1043 return o; 1043 return o;
1044 } 1044 }
1045 1045
1046 checkToken(api.Token o) { 1046 checkToken(api.Token o) {
1047 buildCounterToken++; 1047 buildCounterToken++;
1048 if (buildCounterToken < 3) { 1048 if (buildCounterToken < 3) {
1049 unittest.expect(o.anonymous, unittest.isTrue); 1049 unittest.expect(o.anonymous, unittest.isTrue);
1050 unittest.expect(o.clientId, unittest.equals('foo')); 1050 unittest.expect(o.clientId, unittest.equals('foo'));
1051 unittest.expect(o.displayText, unittest.equals('foo')); 1051 unittest.expect(o.displayText, unittest.equals('foo'));
1052 unittest.expect(o.etag, unittest.equals('foo')); 1052 unittest.expect(o.etag, unittest.equals('foo'));
1053 unittest.expect(o.kind, unittest.equals('foo')); 1053 unittest.expect(o.kind, unittest.equals('foo'));
1054 unittest.expect(o.nativeApp, unittest.isTrue); 1054 unittest.expect(o.nativeApp, unittest.isTrue);
1055 checkUnnamed489(o.scopes); 1055 checkUnnamed109(o.scopes);
1056 unittest.expect(o.userKey, unittest.equals('foo')); 1056 unittest.expect(o.userKey, unittest.equals('foo'));
1057 } 1057 }
1058 buildCounterToken--; 1058 buildCounterToken--;
1059 } 1059 }
1060 1060
1061 buildUnnamed490() { 1061 buildUnnamed110() {
1062 var o = new core.List<api.Token>(); 1062 var o = new core.List<api.Token>();
1063 o.add(buildToken()); 1063 o.add(buildToken());
1064 o.add(buildToken()); 1064 o.add(buildToken());
1065 return o; 1065 return o;
1066 } 1066 }
1067 1067
1068 checkUnnamed490(core.List<api.Token> o) { 1068 checkUnnamed110(core.List<api.Token> o) {
1069 unittest.expect(o, unittest.hasLength(2)); 1069 unittest.expect(o, unittest.hasLength(2));
1070 checkToken(o[0]); 1070 checkToken(o[0]);
1071 checkToken(o[1]); 1071 checkToken(o[1]);
1072 } 1072 }
1073 1073
1074 core.int buildCounterTokens = 0; 1074 core.int buildCounterTokens = 0;
1075 buildTokens() { 1075 buildTokens() {
1076 var o = new api.Tokens(); 1076 var o = new api.Tokens();
1077 buildCounterTokens++; 1077 buildCounterTokens++;
1078 if (buildCounterTokens < 3) { 1078 if (buildCounterTokens < 3) {
1079 o.etag = "foo"; 1079 o.etag = "foo";
1080 o.items = buildUnnamed490(); 1080 o.items = buildUnnamed110();
1081 o.kind = "foo"; 1081 o.kind = "foo";
1082 } 1082 }
1083 buildCounterTokens--; 1083 buildCounterTokens--;
1084 return o; 1084 return o;
1085 } 1085 }
1086 1086
1087 checkTokens(api.Tokens o) { 1087 checkTokens(api.Tokens o) {
1088 buildCounterTokens++; 1088 buildCounterTokens++;
1089 if (buildCounterTokens < 3) { 1089 if (buildCounterTokens < 3) {
1090 unittest.expect(o.etag, unittest.equals('foo')); 1090 unittest.expect(o.etag, unittest.equals('foo'));
1091 checkUnnamed490(o.items); 1091 checkUnnamed110(o.items);
1092 unittest.expect(o.kind, unittest.equals('foo')); 1092 unittest.expect(o.kind, unittest.equals('foo'));
1093 } 1093 }
1094 buildCounterTokens--; 1094 buildCounterTokens--;
1095 } 1095 }
1096 1096
1097 buildUnnamed491() { 1097 buildUnnamed111() {
1098 var o = new core.List<core.String>(); 1098 var o = new core.List<core.String>();
1099 o.add("foo"); 1099 o.add("foo");
1100 o.add("foo"); 1100 o.add("foo");
1101 return o; 1101 return o;
1102 } 1102 }
1103 1103
1104 checkUnnamed491(core.List<core.String> o) { 1104 checkUnnamed111(core.List<core.String> o) {
1105 unittest.expect(o, unittest.hasLength(2)); 1105 unittest.expect(o, unittest.hasLength(2));
1106 unittest.expect(o[0], unittest.equals('foo')); 1106 unittest.expect(o[0], unittest.equals('foo'));
1107 unittest.expect(o[1], unittest.equals('foo')); 1107 unittest.expect(o[1], unittest.equals('foo'));
1108 } 1108 }
1109 1109
1110 buildUnnamed492() { 1110 buildUnnamed112() {
1111 var o = new core.Map<core.String, api.UserCustomProperties>(); 1111 var o = new core.Map<core.String, api.UserCustomProperties>();
1112 o["x"] = buildUserCustomProperties(); 1112 o["x"] = buildUserCustomProperties();
1113 o["y"] = buildUserCustomProperties(); 1113 o["y"] = buildUserCustomProperties();
1114 return o; 1114 return o;
1115 } 1115 }
1116 1116
1117 checkUnnamed492(core.Map<core.String, api.UserCustomProperties> o) { 1117 checkUnnamed112(core.Map<core.String, api.UserCustomProperties> o) {
1118 unittest.expect(o, unittest.hasLength(2)); 1118 unittest.expect(o, unittest.hasLength(2));
1119 checkUserCustomProperties(o["x"]); 1119 checkUserCustomProperties(o["x"]);
1120 checkUserCustomProperties(o["y"]); 1120 checkUserCustomProperties(o["y"]);
1121 } 1121 }
1122 1122
1123 buildUnnamed493() { 1123 buildUnnamed113() {
1124 var o = new core.List<core.String>(); 1124 var o = new core.List<core.String>();
1125 o.add("foo"); 1125 o.add("foo");
1126 o.add("foo"); 1126 o.add("foo");
1127 return o; 1127 return o;
1128 } 1128 }
1129 1129
1130 checkUnnamed493(core.List<core.String> o) { 1130 checkUnnamed113(core.List<core.String> o) {
1131 unittest.expect(o, unittest.hasLength(2)); 1131 unittest.expect(o, unittest.hasLength(2));
1132 unittest.expect(o[0], unittest.equals('foo')); 1132 unittest.expect(o[0], unittest.equals('foo'));
1133 unittest.expect(o[1], unittest.equals('foo')); 1133 unittest.expect(o[1], unittest.equals('foo'));
1134 } 1134 }
1135 1135
1136 core.int buildCounterUser = 0; 1136 core.int buildCounterUser = 0;
1137 buildUser() { 1137 buildUser() {
1138 var o = new api.User(); 1138 var o = new api.User();
1139 buildCounterUser++; 1139 buildCounterUser++;
1140 if (buildCounterUser < 3) { 1140 if (buildCounterUser < 3) {
1141 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1141 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1142 o.agreedToTerms = true; 1142 o.agreedToTerms = true;
1143 o.aliases = buildUnnamed491(); 1143 o.aliases = buildUnnamed111();
1144 o.changePasswordAtNextLogin = true; 1144 o.changePasswordAtNextLogin = true;
1145 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); 1145 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02");
1146 o.customSchemas = buildUnnamed492(); 1146 o.customSchemas = buildUnnamed112();
1147 o.customerId = "foo"; 1147 o.customerId = "foo";
1148 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); 1148 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02");
1149 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1149 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1150 o.etag = "foo"; 1150 o.etag = "foo";
1151 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1151 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1152 o.hashFunction = "foo"; 1152 o.hashFunction = "foo";
1153 o.id = "foo"; 1153 o.id = "foo";
1154 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1154 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1155 o.includeInGlobalAddressList = true; 1155 o.includeInGlobalAddressList = true;
1156 o.ipWhitelisted = true; 1156 o.ipWhitelisted = true;
1157 o.isAdmin = true; 1157 o.isAdmin = true;
1158 o.isDelegatedAdmin = true; 1158 o.isDelegatedAdmin = true;
1159 o.isMailboxSetup = true; 1159 o.isMailboxSetup = true;
1160 o.kind = "foo"; 1160 o.kind = "foo";
1161 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); 1161 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02");
1162 o.name = buildUserName(); 1162 o.name = buildUserName();
1163 o.nonEditableAliases = buildUnnamed493(); 1163 o.nonEditableAliases = buildUnnamed113();
1164 o.orgUnitPath = "foo"; 1164 o.orgUnitPath = "foo";
1165 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1165 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1166 o.password = "foo"; 1166 o.password = "foo";
1167 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1167 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1168 o.primaryEmail = "foo"; 1168 o.primaryEmail = "foo";
1169 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1169 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1170 o.suspended = true; 1170 o.suspended = true;
1171 o.suspensionReason = "foo"; 1171 o.suspensionReason = "foo";
1172 o.thumbnailPhotoUrl = "foo"; 1172 o.thumbnailPhotoUrl = "foo";
1173 } 1173 }
1174 buildCounterUser--; 1174 buildCounterUser--;
1175 return o; 1175 return o;
1176 } 1176 }
1177 1177
1178 checkUser(api.User o) { 1178 checkUser(api.User o) {
1179 buildCounterUser++; 1179 buildCounterUser++;
1180 if (buildCounterUser < 3) { 1180 if (buildCounterUser < 3) {
1181 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')); 1181 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'));
1182 unittest.expect(o.agreedToTerms, unittest.isTrue); 1182 unittest.expect(o.agreedToTerms, unittest.isTrue);
1183 checkUnnamed491(o.aliases); 1183 checkUnnamed111(o.aliases);
1184 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); 1184 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue);
1185 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1185 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1186 checkUnnamed492(o.customSchemas); 1186 checkUnnamed112(o.customSchemas);
1187 unittest.expect(o.customerId, unittest.equals('foo')); 1187 unittest.expect(o.customerId, unittest.equals('foo'));
1188 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1188 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1189 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')); 1189 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'));
1190 unittest.expect(o.etag, unittest.equals('foo')); 1190 unittest.expect(o.etag, unittest.equals('foo'));
1191 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')); 1191 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'));
1192 unittest.expect(o.hashFunction, unittest.equals('foo')); 1192 unittest.expect(o.hashFunction, unittest.equals('foo'));
1193 unittest.expect(o.id, unittest.equals('foo')); 1193 unittest.expect(o.id, unittest.equals('foo'));
1194 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')); 1194 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'));
1195 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); 1195 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue);
1196 unittest.expect(o.ipWhitelisted, unittest.isTrue); 1196 unittest.expect(o.ipWhitelisted, unittest.isTrue);
1197 unittest.expect(o.isAdmin, unittest.isTrue); 1197 unittest.expect(o.isAdmin, unittest.isTrue);
1198 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); 1198 unittest.expect(o.isDelegatedAdmin, unittest.isTrue);
1199 unittest.expect(o.isMailboxSetup, unittest.isTrue); 1199 unittest.expect(o.isMailboxSetup, unittest.isTrue);
1200 unittest.expect(o.kind, unittest.equals('foo')); 1200 unittest.expect(o.kind, unittest.equals('foo'));
1201 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02"))); 1201 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02")));
1202 checkUserName(o.name); 1202 checkUserName(o.name);
1203 checkUnnamed493(o.nonEditableAliases); 1203 checkUnnamed113(o.nonEditableAliases);
1204 unittest.expect(o.orgUnitPath, unittest.equals('foo')); 1204 unittest.expect(o.orgUnitPath, unittest.equals('foo'));
1205 var casted5 = (o.organizations) as core.Map; unittest.expect(casted5, unitte st.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5 ["string"], unittest.equals('foo')); 1205 var casted5 = (o.organizations) as core.Map; unittest.expect(casted5, unitte st.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5 ["string"], unittest.equals('foo'));
1206 unittest.expect(o.password, unittest.equals('foo')); 1206 unittest.expect(o.password, unittest.equals('foo'));
1207 var casted6 = (o.phones) as core.Map; unittest.expect(casted6, unittest.hasL ength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittes t.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["strin g"], unittest.equals('foo')); 1207 var casted6 = (o.phones) as core.Map; unittest.expect(casted6, unittest.hasL ength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittes t.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["strin g"], unittest.equals('foo'));
1208 unittest.expect(o.primaryEmail, unittest.equals('foo')); 1208 unittest.expect(o.primaryEmail, unittest.equals('foo'));
1209 var casted7 = (o.relations) as core.Map; unittest.expect(casted7, unittest.h asLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unit test.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["st ring"], unittest.equals('foo')); 1209 var casted7 = (o.relations) as core.Map; unittest.expect(casted7, unittest.h asLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unit test.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["st ring"], unittest.equals('foo'));
1210 unittest.expect(o.suspended, unittest.isTrue); 1210 unittest.expect(o.suspended, unittest.isTrue);
1211 unittest.expect(o.suspensionReason, unittest.equals('foo')); 1211 unittest.expect(o.suspensionReason, unittest.equals('foo'));
1212 unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo')); 1212 unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo'));
1213 } 1213 }
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 } 1521 }
1522 1522
1523 checkUserUndelete(api.UserUndelete o) { 1523 checkUserUndelete(api.UserUndelete o) {
1524 buildCounterUserUndelete++; 1524 buildCounterUserUndelete++;
1525 if (buildCounterUserUndelete < 3) { 1525 if (buildCounterUserUndelete < 3) {
1526 unittest.expect(o.orgUnitPath, unittest.equals('foo')); 1526 unittest.expect(o.orgUnitPath, unittest.equals('foo'));
1527 } 1527 }
1528 buildCounterUserUndelete--; 1528 buildCounterUserUndelete--;
1529 } 1529 }
1530 1530
1531 buildUnnamed494() { 1531 buildUnnamed114() {
1532 var o = new core.List<api.User>(); 1532 var o = new core.List<api.User>();
1533 o.add(buildUser()); 1533 o.add(buildUser());
1534 o.add(buildUser()); 1534 o.add(buildUser());
1535 return o; 1535 return o;
1536 } 1536 }
1537 1537
1538 checkUnnamed494(core.List<api.User> o) { 1538 checkUnnamed114(core.List<api.User> o) {
1539 unittest.expect(o, unittest.hasLength(2)); 1539 unittest.expect(o, unittest.hasLength(2));
1540 checkUser(o[0]); 1540 checkUser(o[0]);
1541 checkUser(o[1]); 1541 checkUser(o[1]);
1542 } 1542 }
1543 1543
1544 core.int buildCounterUsers = 0; 1544 core.int buildCounterUsers = 0;
1545 buildUsers() { 1545 buildUsers() {
1546 var o = new api.Users(); 1546 var o = new api.Users();
1547 buildCounterUsers++; 1547 buildCounterUsers++;
1548 if (buildCounterUsers < 3) { 1548 if (buildCounterUsers < 3) {
1549 o.etag = "foo"; 1549 o.etag = "foo";
1550 o.kind = "foo"; 1550 o.kind = "foo";
1551 o.nextPageToken = "foo"; 1551 o.nextPageToken = "foo";
1552 o.triggerEvent = "foo"; 1552 o.triggerEvent = "foo";
1553 o.users = buildUnnamed494(); 1553 o.users = buildUnnamed114();
1554 } 1554 }
1555 buildCounterUsers--; 1555 buildCounterUsers--;
1556 return o; 1556 return o;
1557 } 1557 }
1558 1558
1559 checkUsers(api.Users o) { 1559 checkUsers(api.Users o) {
1560 buildCounterUsers++; 1560 buildCounterUsers++;
1561 if (buildCounterUsers < 3) { 1561 if (buildCounterUsers < 3) {
1562 unittest.expect(o.etag, unittest.equals('foo')); 1562 unittest.expect(o.etag, unittest.equals('foo'));
1563 unittest.expect(o.kind, unittest.equals('foo')); 1563 unittest.expect(o.kind, unittest.equals('foo'));
1564 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1564 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1565 unittest.expect(o.triggerEvent, unittest.equals('foo')); 1565 unittest.expect(o.triggerEvent, unittest.equals('foo'));
1566 checkUnnamed494(o.users); 1566 checkUnnamed114(o.users);
1567 } 1567 }
1568 buildCounterUsers--; 1568 buildCounterUsers--;
1569 } 1569 }
1570 1570
1571 core.int buildCounterVerificationCode = 0; 1571 core.int buildCounterVerificationCode = 0;
1572 buildVerificationCode() { 1572 buildVerificationCode() {
1573 var o = new api.VerificationCode(); 1573 var o = new api.VerificationCode();
1574 buildCounterVerificationCode++; 1574 buildCounterVerificationCode++;
1575 if (buildCounterVerificationCode < 3) { 1575 if (buildCounterVerificationCode < 3) {
1576 o.etag = "foo"; 1576 o.etag = "foo";
1577 o.kind = "foo"; 1577 o.kind = "foo";
1578 o.userId = "foo"; 1578 o.userId = "foo";
1579 o.verificationCode = "foo"; 1579 o.verificationCode = "foo";
1580 } 1580 }
1581 buildCounterVerificationCode--; 1581 buildCounterVerificationCode--;
1582 return o; 1582 return o;
1583 } 1583 }
1584 1584
1585 checkVerificationCode(api.VerificationCode o) { 1585 checkVerificationCode(api.VerificationCode o) {
1586 buildCounterVerificationCode++; 1586 buildCounterVerificationCode++;
1587 if (buildCounterVerificationCode < 3) { 1587 if (buildCounterVerificationCode < 3) {
1588 unittest.expect(o.etag, unittest.equals('foo')); 1588 unittest.expect(o.etag, unittest.equals('foo'));
1589 unittest.expect(o.kind, unittest.equals('foo')); 1589 unittest.expect(o.kind, unittest.equals('foo'));
1590 unittest.expect(o.userId, unittest.equals('foo')); 1590 unittest.expect(o.userId, unittest.equals('foo'));
1591 unittest.expect(o.verificationCode, unittest.equals('foo')); 1591 unittest.expect(o.verificationCode, unittest.equals('foo'));
1592 } 1592 }
1593 buildCounterVerificationCode--; 1593 buildCounterVerificationCode--;
1594 } 1594 }
1595 1595
1596 buildUnnamed495() { 1596 buildUnnamed115() {
1597 var o = new core.List<api.VerificationCode>(); 1597 var o = new core.List<api.VerificationCode>();
1598 o.add(buildVerificationCode()); 1598 o.add(buildVerificationCode());
1599 o.add(buildVerificationCode()); 1599 o.add(buildVerificationCode());
1600 return o; 1600 return o;
1601 } 1601 }
1602 1602
1603 checkUnnamed495(core.List<api.VerificationCode> o) { 1603 checkUnnamed115(core.List<api.VerificationCode> o) {
1604 unittest.expect(o, unittest.hasLength(2)); 1604 unittest.expect(o, unittest.hasLength(2));
1605 checkVerificationCode(o[0]); 1605 checkVerificationCode(o[0]);
1606 checkVerificationCode(o[1]); 1606 checkVerificationCode(o[1]);
1607 } 1607 }
1608 1608
1609 core.int buildCounterVerificationCodes = 0; 1609 core.int buildCounterVerificationCodes = 0;
1610 buildVerificationCodes() { 1610 buildVerificationCodes() {
1611 var o = new api.VerificationCodes(); 1611 var o = new api.VerificationCodes();
1612 buildCounterVerificationCodes++; 1612 buildCounterVerificationCodes++;
1613 if (buildCounterVerificationCodes < 3) { 1613 if (buildCounterVerificationCodes < 3) {
1614 o.etag = "foo"; 1614 o.etag = "foo";
1615 o.items = buildUnnamed495(); 1615 o.items = buildUnnamed115();
1616 o.kind = "foo"; 1616 o.kind = "foo";
1617 } 1617 }
1618 buildCounterVerificationCodes--; 1618 buildCounterVerificationCodes--;
1619 return o; 1619 return o;
1620 } 1620 }
1621 1621
1622 checkVerificationCodes(api.VerificationCodes o) { 1622 checkVerificationCodes(api.VerificationCodes o) {
1623 buildCounterVerificationCodes++; 1623 buildCounterVerificationCodes++;
1624 if (buildCounterVerificationCodes < 3) { 1624 if (buildCounterVerificationCodes < 3) {
1625 unittest.expect(o.etag, unittest.equals('foo')); 1625 unittest.expect(o.etag, unittest.equals('foo'));
1626 checkUnnamed495(o.items); 1626 checkUnnamed115(o.items);
1627 unittest.expect(o.kind, unittest.equals('foo')); 1627 unittest.expect(o.kind, unittest.equals('foo'));
1628 } 1628 }
1629 buildCounterVerificationCodes--; 1629 buildCounterVerificationCodes--;
1630 } 1630 }
1631 1631
1632 buildUnnamed496() { 1632 buildUnnamed116() {
1633 var o = new core.List<core.String>(); 1633 var o = new core.List<core.String>();
1634 o.add("foo"); 1634 o.add("foo");
1635 o.add("foo"); 1635 o.add("foo");
1636 return o; 1636 return o;
1637 } 1637 }
1638 1638
1639 checkUnnamed496(core.List<core.String> o) { 1639 checkUnnamed116(core.List<core.String> o) {
1640 unittest.expect(o, unittest.hasLength(2)); 1640 unittest.expect(o, unittest.hasLength(2));
1641 unittest.expect(o[0], unittest.equals('foo')); 1641 unittest.expect(o[0], unittest.equals('foo'));
1642 unittest.expect(o[1], unittest.equals('foo')); 1642 unittest.expect(o[1], unittest.equals('foo'));
1643 } 1643 }
1644 1644
1645 buildUnnamed497() { 1645 buildUnnamed117() {
1646 var o = new core.List<core.String>(); 1646 var o = new core.List<core.String>();
1647 o.add("foo"); 1647 o.add("foo");
1648 o.add("foo"); 1648 o.add("foo");
1649 return o; 1649 return o;
1650 } 1650 }
1651 1651
1652 checkUnnamed497(core.List<core.String> o) { 1652 checkUnnamed117(core.List<core.String> o) {
1653 unittest.expect(o, unittest.hasLength(2)); 1653 unittest.expect(o, unittest.hasLength(2));
1654 unittest.expect(o[0], unittest.equals('foo')); 1654 unittest.expect(o[0], unittest.equals('foo'));
1655 unittest.expect(o[1], unittest.equals('foo')); 1655 unittest.expect(o[1], unittest.equals('foo'));
1656 } 1656 }
1657 1657
1658 buildUnnamed498() { 1658 buildUnnamed118() {
1659 var o = new core.List<core.String>(); 1659 var o = new core.List<core.String>();
1660 o.add("foo"); 1660 o.add("foo");
1661 o.add("foo"); 1661 o.add("foo");
1662 return o; 1662 return o;
1663 } 1663 }
1664 1664
1665 checkUnnamed498(core.List<core.String> o) { 1665 checkUnnamed118(core.List<core.String> o) {
1666 unittest.expect(o, unittest.hasLength(2)); 1666 unittest.expect(o, unittest.hasLength(2));
1667 unittest.expect(o[0], unittest.equals('foo')); 1667 unittest.expect(o[0], unittest.equals('foo'));
1668 unittest.expect(o[1], unittest.equals('foo')); 1668 unittest.expect(o[1], unittest.equals('foo'));
1669 } 1669 }
1670 1670
1671 buildUnnamed499() { 1671 buildUnnamed119() {
1672 var o = new core.List<core.String>(); 1672 var o = new core.List<core.String>();
1673 o.add("foo"); 1673 o.add("foo");
1674 o.add("foo"); 1674 o.add("foo");
1675 return o; 1675 return o;
1676 } 1676 }
1677 1677
1678 checkUnnamed499(core.List<core.String> o) { 1678 checkUnnamed119(core.List<core.String> o) {
1679 unittest.expect(o, unittest.hasLength(2)); 1679 unittest.expect(o, unittest.hasLength(2));
1680 unittest.expect(o[0], unittest.equals('foo')); 1680 unittest.expect(o[0], unittest.equals('foo'));
1681 unittest.expect(o[1], unittest.equals('foo')); 1681 unittest.expect(o[1], unittest.equals('foo'));
1682 } 1682 }
1683 1683
1684 1684
1685 main() { 1685 main() {
1686 unittest.group("obj-schema-Alias", () { 1686 unittest.group("obj-schema-Alias", () {
1687 unittest.test("to-json--from-json", () { 1687 unittest.test("to-json--from-json", () {
1688 var o = buildAlias(); 1688 var o = buildAlias();
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after
3917 3917
3918 }); 3918 });
3919 3919
3920 3920
3921 unittest.group("resource-OrgunitsResourceApi", () { 3921 unittest.group("resource-OrgunitsResourceApi", () {
3922 unittest.test("method--delete", () { 3922 unittest.test("method--delete", () {
3923 3923
3924 var mock = new common_test.HttpServerMock(); 3924 var mock = new common_test.HttpServerMock();
3925 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; 3925 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
3926 var arg_customerId = "foo"; 3926 var arg_customerId = "foo";
3927 var arg_orgUnitPath = buildUnnamed496(); 3927 var arg_orgUnitPath = buildUnnamed116();
3928 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3928 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3929 var path = (req.url).path; 3929 var path = (req.url).path;
3930 var pathOffset = 0; 3930 var pathOffset = 0;
3931 var index; 3931 var index;
3932 var subPart; 3932 var subPart;
3933 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3933 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3934 pathOffset += 1; 3934 pathOffset += 1;
3935 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/")); 3935 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/"));
3936 pathOffset += 19; 3936 pathOffset += 19;
3937 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/")); 3937 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/"));
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
3971 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3971 return new async.Future.value(common_test.stringResponse(200, h, resp));
3972 }), true); 3972 }), true);
3973 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_) {})); 3973 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_) {}));
3974 }); 3974 });
3975 3975
3976 unittest.test("method--get", () { 3976 unittest.test("method--get", () {
3977 3977
3978 var mock = new common_test.HttpServerMock(); 3978 var mock = new common_test.HttpServerMock();
3979 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; 3979 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
3980 var arg_customerId = "foo"; 3980 var arg_customerId = "foo";
3981 var arg_orgUnitPath = buildUnnamed497(); 3981 var arg_orgUnitPath = buildUnnamed117();
3982 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3982 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3983 var path = (req.url).path; 3983 var path = (req.url).path;
3984 var pathOffset = 0; 3984 var pathOffset = 0;
3985 var index; 3985 var index;
3986 var subPart; 3986 var subPart;
3987 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3987 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3988 pathOffset += 1; 3988 pathOffset += 1;
3989 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/")); 3989 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("admin/directory/v1/"));
3990 pathOffset += 19; 3990 pathOffset += 19;
3991 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/")); 3991 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("customer/"));
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
4142 checkOrgUnits(response); 4142 checkOrgUnits(response);
4143 }))); 4143 })));
4144 }); 4144 });
4145 4145
4146 unittest.test("method--patch", () { 4146 unittest.test("method--patch", () {
4147 4147
4148 var mock = new common_test.HttpServerMock(); 4148 var mock = new common_test.HttpServerMock();
4149 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; 4149 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
4150 var arg_request = buildOrgUnit(); 4150 var arg_request = buildOrgUnit();
4151 var arg_customerId = "foo"; 4151 var arg_customerId = "foo";
4152 var arg_orgUnitPath = buildUnnamed498(); 4152 var arg_orgUnitPath = buildUnnamed118();
4153 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4153 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4154 var obj = new api.OrgUnit.fromJson(json); 4154 var obj = new api.OrgUnit.fromJson(json);
4155 checkOrgUnit(obj); 4155 checkOrgUnit(obj);
4156 4156
4157 var path = (req.url).path; 4157 var path = (req.url).path;
4158 var pathOffset = 0; 4158 var pathOffset = 0;
4159 var index; 4159 var index;
4160 var subPart; 4160 var subPart;
4161 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4161 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4162 pathOffset += 1; 4162 pathOffset += 1;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
4202 checkOrgUnit(response); 4202 checkOrgUnit(response);
4203 }))); 4203 })));
4204 }); 4204 });
4205 4205
4206 unittest.test("method--update", () { 4206 unittest.test("method--update", () {
4207 4207
4208 var mock = new common_test.HttpServerMock(); 4208 var mock = new common_test.HttpServerMock();
4209 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; 4209 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
4210 var arg_request = buildOrgUnit(); 4210 var arg_request = buildOrgUnit();
4211 var arg_customerId = "foo"; 4211 var arg_customerId = "foo";
4212 var arg_orgUnitPath = buildUnnamed499(); 4212 var arg_orgUnitPath = buildUnnamed119();
4213 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4213 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4214 var obj = new api.OrgUnit.fromJson(json); 4214 var obj = new api.OrgUnit.fromJson(json);
4215 checkOrgUnit(obj); 4215 checkOrgUnit(obj);
4216 4216
4217 var path = (req.url).path; 4217 var path = (req.url).path;
4218 var pathOffset = 0; 4218 var pathOffset = 0;
4219 var index; 4219 var index;
4220 var subPart; 4220 var subPart;
4221 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4221 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4222 pathOffset += 1; 4222 pathOffset += 1;
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
5902 res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes re sponse) { 5902 res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes re sponse) {
5903 checkVerificationCodes(response); 5903 checkVerificationCodes(response);
5904 }))); 5904 })));
5905 }); 5905 });
5906 5906
5907 }); 5907 });
5908 5908
5909 5909
5910 } 5910 }
5911 5911
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698