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

Side by Side Diff: generated/googleapis/test/classroom/v1_test.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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.classroom.v1.test; 1 library googleapis.classroom.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 checkAssignment(api.Assignment o) { 65 checkAssignment(api.Assignment o) {
66 buildCounterAssignment++; 66 buildCounterAssignment++;
67 if (buildCounterAssignment < 3) { 67 if (buildCounterAssignment < 3) {
68 checkDriveFolder(o.studentWorkFolder); 68 checkDriveFolder(o.studentWorkFolder);
69 } 69 }
70 buildCounterAssignment--; 70 buildCounterAssignment--;
71 } 71 }
72 72
73 buildUnnamed879() { 73 buildUnnamed903() {
74 var o = new core.List<api.Attachment>(); 74 var o = new core.List<api.Attachment>();
75 o.add(buildAttachment()); 75 o.add(buildAttachment());
76 o.add(buildAttachment()); 76 o.add(buildAttachment());
77 return o; 77 return o;
78 } 78 }
79 79
80 checkUnnamed879(core.List<api.Attachment> o) { 80 checkUnnamed903(core.List<api.Attachment> o) {
81 unittest.expect(o, unittest.hasLength(2)); 81 unittest.expect(o, unittest.hasLength(2));
82 checkAttachment(o[0]); 82 checkAttachment(o[0]);
83 checkAttachment(o[1]); 83 checkAttachment(o[1]);
84 } 84 }
85 85
86 core.int buildCounterAssignmentSubmission = 0; 86 core.int buildCounterAssignmentSubmission = 0;
87 buildAssignmentSubmission() { 87 buildAssignmentSubmission() {
88 var o = new api.AssignmentSubmission(); 88 var o = new api.AssignmentSubmission();
89 buildCounterAssignmentSubmission++; 89 buildCounterAssignmentSubmission++;
90 if (buildCounterAssignmentSubmission < 3) { 90 if (buildCounterAssignmentSubmission < 3) {
91 o.attachments = buildUnnamed879(); 91 o.attachments = buildUnnamed903();
92 } 92 }
93 buildCounterAssignmentSubmission--; 93 buildCounterAssignmentSubmission--;
94 return o; 94 return o;
95 } 95 }
96 96
97 checkAssignmentSubmission(api.AssignmentSubmission o) { 97 checkAssignmentSubmission(api.AssignmentSubmission o) {
98 buildCounterAssignmentSubmission++; 98 buildCounterAssignmentSubmission++;
99 if (buildCounterAssignmentSubmission < 3) { 99 if (buildCounterAssignmentSubmission < 3) {
100 checkUnnamed879(o.attachments); 100 checkUnnamed903(o.attachments);
101 } 101 }
102 buildCounterAssignmentSubmission--; 102 buildCounterAssignmentSubmission--;
103 } 103 }
104 104
105 core.int buildCounterAttachment = 0; 105 core.int buildCounterAttachment = 0;
106 buildAttachment() { 106 buildAttachment() {
107 var o = new api.Attachment(); 107 var o = new api.Attachment();
108 buildCounterAttachment++; 108 buildCounterAttachment++;
109 if (buildCounterAttachment < 3) { 109 if (buildCounterAttachment < 3) {
110 o.driveFile = buildDriveFile(); 110 o.driveFile = buildDriveFile();
111 o.form = buildForm(); 111 o.form = buildForm();
112 o.link = buildLink(); 112 o.link = buildLink();
113 o.youTubeVideo = buildYouTubeVideo(); 113 o.youTubeVideo = buildYouTubeVideo();
114 } 114 }
115 buildCounterAttachment--; 115 buildCounterAttachment--;
116 return o; 116 return o;
117 } 117 }
118 118
119 checkAttachment(api.Attachment o) { 119 checkAttachment(api.Attachment o) {
120 buildCounterAttachment++; 120 buildCounterAttachment++;
121 if (buildCounterAttachment < 3) { 121 if (buildCounterAttachment < 3) {
122 checkDriveFile(o.driveFile); 122 checkDriveFile(o.driveFile);
123 checkForm(o.form); 123 checkForm(o.form);
124 checkLink(o.link); 124 checkLink(o.link);
125 checkYouTubeVideo(o.youTubeVideo); 125 checkYouTubeVideo(o.youTubeVideo);
126 } 126 }
127 buildCounterAttachment--; 127 buildCounterAttachment--;
128 } 128 }
129 129
130 buildUnnamed880() { 130 buildUnnamed904() {
131 var o = new core.List<api.CourseMaterialSet>(); 131 var o = new core.List<api.CourseMaterialSet>();
132 o.add(buildCourseMaterialSet()); 132 o.add(buildCourseMaterialSet());
133 o.add(buildCourseMaterialSet()); 133 o.add(buildCourseMaterialSet());
134 return o; 134 return o;
135 } 135 }
136 136
137 checkUnnamed880(core.List<api.CourseMaterialSet> o) { 137 checkUnnamed904(core.List<api.CourseMaterialSet> o) {
138 unittest.expect(o, unittest.hasLength(2)); 138 unittest.expect(o, unittest.hasLength(2));
139 checkCourseMaterialSet(o[0]); 139 checkCourseMaterialSet(o[0]);
140 checkCourseMaterialSet(o[1]); 140 checkCourseMaterialSet(o[1]);
141 } 141 }
142 142
143 core.int buildCounterCourse = 0; 143 core.int buildCounterCourse = 0;
144 buildCourse() { 144 buildCourse() {
145 var o = new api.Course(); 145 var o = new api.Course();
146 buildCounterCourse++; 146 buildCounterCourse++;
147 if (buildCounterCourse < 3) { 147 if (buildCounterCourse < 3) {
148 o.alternateLink = "foo"; 148 o.alternateLink = "foo";
149 o.courseGroupEmail = "foo"; 149 o.courseGroupEmail = "foo";
150 o.courseMaterialSets = buildUnnamed880(); 150 o.courseMaterialSets = buildUnnamed904();
151 o.courseState = "foo"; 151 o.courseState = "foo";
152 o.creationTime = "foo"; 152 o.creationTime = "foo";
153 o.description = "foo"; 153 o.description = "foo";
154 o.descriptionHeading = "foo"; 154 o.descriptionHeading = "foo";
155 o.enrollmentCode = "foo"; 155 o.enrollmentCode = "foo";
156 o.guardiansEnabled = true;
156 o.id = "foo"; 157 o.id = "foo";
157 o.name = "foo"; 158 o.name = "foo";
158 o.ownerId = "foo"; 159 o.ownerId = "foo";
159 o.room = "foo"; 160 o.room = "foo";
160 o.section = "foo"; 161 o.section = "foo";
161 o.teacherFolder = buildDriveFolder(); 162 o.teacherFolder = buildDriveFolder();
162 o.teacherGroupEmail = "foo"; 163 o.teacherGroupEmail = "foo";
163 o.updateTime = "foo"; 164 o.updateTime = "foo";
164 } 165 }
165 buildCounterCourse--; 166 buildCounterCourse--;
166 return o; 167 return o;
167 } 168 }
168 169
169 checkCourse(api.Course o) { 170 checkCourse(api.Course o) {
170 buildCounterCourse++; 171 buildCounterCourse++;
171 if (buildCounterCourse < 3) { 172 if (buildCounterCourse < 3) {
172 unittest.expect(o.alternateLink, unittest.equals('foo')); 173 unittest.expect(o.alternateLink, unittest.equals('foo'));
173 unittest.expect(o.courseGroupEmail, unittest.equals('foo')); 174 unittest.expect(o.courseGroupEmail, unittest.equals('foo'));
174 checkUnnamed880(o.courseMaterialSets); 175 checkUnnamed904(o.courseMaterialSets);
175 unittest.expect(o.courseState, unittest.equals('foo')); 176 unittest.expect(o.courseState, unittest.equals('foo'));
176 unittest.expect(o.creationTime, unittest.equals('foo')); 177 unittest.expect(o.creationTime, unittest.equals('foo'));
177 unittest.expect(o.description, unittest.equals('foo')); 178 unittest.expect(o.description, unittest.equals('foo'));
178 unittest.expect(o.descriptionHeading, unittest.equals('foo')); 179 unittest.expect(o.descriptionHeading, unittest.equals('foo'));
179 unittest.expect(o.enrollmentCode, unittest.equals('foo')); 180 unittest.expect(o.enrollmentCode, unittest.equals('foo'));
181 unittest.expect(o.guardiansEnabled, unittest.isTrue);
180 unittest.expect(o.id, unittest.equals('foo')); 182 unittest.expect(o.id, unittest.equals('foo'));
181 unittest.expect(o.name, unittest.equals('foo')); 183 unittest.expect(o.name, unittest.equals('foo'));
182 unittest.expect(o.ownerId, unittest.equals('foo')); 184 unittest.expect(o.ownerId, unittest.equals('foo'));
183 unittest.expect(o.room, unittest.equals('foo')); 185 unittest.expect(o.room, unittest.equals('foo'));
184 unittest.expect(o.section, unittest.equals('foo')); 186 unittest.expect(o.section, unittest.equals('foo'));
185 checkDriveFolder(o.teacherFolder); 187 checkDriveFolder(o.teacherFolder);
186 unittest.expect(o.teacherGroupEmail, unittest.equals('foo')); 188 unittest.expect(o.teacherGroupEmail, unittest.equals('foo'));
187 unittest.expect(o.updateTime, unittest.equals('foo')); 189 unittest.expect(o.updateTime, unittest.equals('foo'));
188 } 190 }
189 buildCounterCourse--; 191 buildCounterCourse--;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 buildCounterCourseMaterial++; 228 buildCounterCourseMaterial++;
227 if (buildCounterCourseMaterial < 3) { 229 if (buildCounterCourseMaterial < 3) {
228 checkDriveFile(o.driveFile); 230 checkDriveFile(o.driveFile);
229 checkForm(o.form); 231 checkForm(o.form);
230 checkLink(o.link); 232 checkLink(o.link);
231 checkYouTubeVideo(o.youTubeVideo); 233 checkYouTubeVideo(o.youTubeVideo);
232 } 234 }
233 buildCounterCourseMaterial--; 235 buildCounterCourseMaterial--;
234 } 236 }
235 237
236 buildUnnamed881() { 238 buildUnnamed905() {
237 var o = new core.List<api.CourseMaterial>(); 239 var o = new core.List<api.CourseMaterial>();
238 o.add(buildCourseMaterial()); 240 o.add(buildCourseMaterial());
239 o.add(buildCourseMaterial()); 241 o.add(buildCourseMaterial());
240 return o; 242 return o;
241 } 243 }
242 244
243 checkUnnamed881(core.List<api.CourseMaterial> o) { 245 checkUnnamed905(core.List<api.CourseMaterial> o) {
244 unittest.expect(o, unittest.hasLength(2)); 246 unittest.expect(o, unittest.hasLength(2));
245 checkCourseMaterial(o[0]); 247 checkCourseMaterial(o[0]);
246 checkCourseMaterial(o[1]); 248 checkCourseMaterial(o[1]);
247 } 249 }
248 250
249 core.int buildCounterCourseMaterialSet = 0; 251 core.int buildCounterCourseMaterialSet = 0;
250 buildCourseMaterialSet() { 252 buildCourseMaterialSet() {
251 var o = new api.CourseMaterialSet(); 253 var o = new api.CourseMaterialSet();
252 buildCounterCourseMaterialSet++; 254 buildCounterCourseMaterialSet++;
253 if (buildCounterCourseMaterialSet < 3) { 255 if (buildCounterCourseMaterialSet < 3) {
254 o.materials = buildUnnamed881(); 256 o.materials = buildUnnamed905();
255 o.title = "foo"; 257 o.title = "foo";
256 } 258 }
257 buildCounterCourseMaterialSet--; 259 buildCounterCourseMaterialSet--;
258 return o; 260 return o;
259 } 261 }
260 262
261 checkCourseMaterialSet(api.CourseMaterialSet o) { 263 checkCourseMaterialSet(api.CourseMaterialSet o) {
262 buildCounterCourseMaterialSet++; 264 buildCounterCourseMaterialSet++;
263 if (buildCounterCourseMaterialSet < 3) { 265 if (buildCounterCourseMaterialSet < 3) {
264 checkUnnamed881(o.materials); 266 checkUnnamed905(o.materials);
265 unittest.expect(o.title, unittest.equals('foo')); 267 unittest.expect(o.title, unittest.equals('foo'));
266 } 268 }
267 buildCounterCourseMaterialSet--; 269 buildCounterCourseMaterialSet--;
268 } 270 }
269 271
270 buildUnnamed882() { 272 buildUnnamed906() {
271 var o = new core.List<api.Material>(); 273 var o = new core.List<api.Material>();
272 o.add(buildMaterial()); 274 o.add(buildMaterial());
273 o.add(buildMaterial()); 275 o.add(buildMaterial());
274 return o; 276 return o;
275 } 277 }
276 278
277 checkUnnamed882(core.List<api.Material> o) { 279 checkUnnamed906(core.List<api.Material> o) {
278 unittest.expect(o, unittest.hasLength(2)); 280 unittest.expect(o, unittest.hasLength(2));
279 checkMaterial(o[0]); 281 checkMaterial(o[0]);
280 checkMaterial(o[1]); 282 checkMaterial(o[1]);
281 } 283 }
282 284
283 core.int buildCounterCourseWork = 0; 285 core.int buildCounterCourseWork = 0;
284 buildCourseWork() { 286 buildCourseWork() {
285 var o = new api.CourseWork(); 287 var o = new api.CourseWork();
286 buildCounterCourseWork++; 288 buildCounterCourseWork++;
287 if (buildCounterCourseWork < 3) { 289 if (buildCounterCourseWork < 3) {
288 o.alternateLink = "foo"; 290 o.alternateLink = "foo";
289 o.assignment = buildAssignment(); 291 o.assignment = buildAssignment();
290 o.associatedWithDeveloper = true; 292 o.associatedWithDeveloper = true;
291 o.courseId = "foo"; 293 o.courseId = "foo";
292 o.creationTime = "foo"; 294 o.creationTime = "foo";
293 o.description = "foo"; 295 o.description = "foo";
294 o.dueDate = buildDate(); 296 o.dueDate = buildDate();
295 o.dueTime = buildTimeOfDay(); 297 o.dueTime = buildTimeOfDay();
296 o.id = "foo"; 298 o.id = "foo";
297 o.materials = buildUnnamed882(); 299 o.materials = buildUnnamed906();
298 o.maxPoints = 42.0; 300 o.maxPoints = 42.0;
299 o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); 301 o.multipleChoiceQuestion = buildMultipleChoiceQuestion();
300 o.state = "foo"; 302 o.state = "foo";
301 o.submissionModificationMode = "foo"; 303 o.submissionModificationMode = "foo";
302 o.title = "foo"; 304 o.title = "foo";
303 o.updateTime = "foo"; 305 o.updateTime = "foo";
304 o.workType = "foo"; 306 o.workType = "foo";
305 } 307 }
306 buildCounterCourseWork--; 308 buildCounterCourseWork--;
307 return o; 309 return o;
308 } 310 }
309 311
310 checkCourseWork(api.CourseWork o) { 312 checkCourseWork(api.CourseWork o) {
311 buildCounterCourseWork++; 313 buildCounterCourseWork++;
312 if (buildCounterCourseWork < 3) { 314 if (buildCounterCourseWork < 3) {
313 unittest.expect(o.alternateLink, unittest.equals('foo')); 315 unittest.expect(o.alternateLink, unittest.equals('foo'));
314 checkAssignment(o.assignment); 316 checkAssignment(o.assignment);
315 unittest.expect(o.associatedWithDeveloper, unittest.isTrue); 317 unittest.expect(o.associatedWithDeveloper, unittest.isTrue);
316 unittest.expect(o.courseId, unittest.equals('foo')); 318 unittest.expect(o.courseId, unittest.equals('foo'));
317 unittest.expect(o.creationTime, unittest.equals('foo')); 319 unittest.expect(o.creationTime, unittest.equals('foo'));
318 unittest.expect(o.description, unittest.equals('foo')); 320 unittest.expect(o.description, unittest.equals('foo'));
319 checkDate(o.dueDate); 321 checkDate(o.dueDate);
320 checkTimeOfDay(o.dueTime); 322 checkTimeOfDay(o.dueTime);
321 unittest.expect(o.id, unittest.equals('foo')); 323 unittest.expect(o.id, unittest.equals('foo'));
322 checkUnnamed882(o.materials); 324 checkUnnamed906(o.materials);
323 unittest.expect(o.maxPoints, unittest.equals(42.0)); 325 unittest.expect(o.maxPoints, unittest.equals(42.0));
324 checkMultipleChoiceQuestion(o.multipleChoiceQuestion); 326 checkMultipleChoiceQuestion(o.multipleChoiceQuestion);
325 unittest.expect(o.state, unittest.equals('foo')); 327 unittest.expect(o.state, unittest.equals('foo'));
326 unittest.expect(o.submissionModificationMode, unittest.equals('foo')); 328 unittest.expect(o.submissionModificationMode, unittest.equals('foo'));
327 unittest.expect(o.title, unittest.equals('foo')); 329 unittest.expect(o.title, unittest.equals('foo'));
328 unittest.expect(o.updateTime, unittest.equals('foo')); 330 unittest.expect(o.updateTime, unittest.equals('foo'));
329 unittest.expect(o.workType, unittest.equals('foo')); 331 unittest.expect(o.workType, unittest.equals('foo'));
330 } 332 }
331 buildCounterCourseWork--; 333 buildCounterCourseWork--;
332 } 334 }
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 checkLink(api.Link o) { 558 checkLink(api.Link o) {
557 buildCounterLink++; 559 buildCounterLink++;
558 if (buildCounterLink < 3) { 560 if (buildCounterLink < 3) {
559 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); 561 unittest.expect(o.thumbnailUrl, unittest.equals('foo'));
560 unittest.expect(o.title, unittest.equals('foo')); 562 unittest.expect(o.title, unittest.equals('foo'));
561 unittest.expect(o.url, unittest.equals('foo')); 563 unittest.expect(o.url, unittest.equals('foo'));
562 } 564 }
563 buildCounterLink--; 565 buildCounterLink--;
564 } 566 }
565 567
566 buildUnnamed883() { 568 buildUnnamed907() {
567 var o = new core.List<api.CourseAlias>(); 569 var o = new core.List<api.CourseAlias>();
568 o.add(buildCourseAlias()); 570 o.add(buildCourseAlias());
569 o.add(buildCourseAlias()); 571 o.add(buildCourseAlias());
570 return o; 572 return o;
571 } 573 }
572 574
573 checkUnnamed883(core.List<api.CourseAlias> o) { 575 checkUnnamed907(core.List<api.CourseAlias> o) {
574 unittest.expect(o, unittest.hasLength(2)); 576 unittest.expect(o, unittest.hasLength(2));
575 checkCourseAlias(o[0]); 577 checkCourseAlias(o[0]);
576 checkCourseAlias(o[1]); 578 checkCourseAlias(o[1]);
577 } 579 }
578 580
579 core.int buildCounterListCourseAliasesResponse = 0; 581 core.int buildCounterListCourseAliasesResponse = 0;
580 buildListCourseAliasesResponse() { 582 buildListCourseAliasesResponse() {
581 var o = new api.ListCourseAliasesResponse(); 583 var o = new api.ListCourseAliasesResponse();
582 buildCounterListCourseAliasesResponse++; 584 buildCounterListCourseAliasesResponse++;
583 if (buildCounterListCourseAliasesResponse < 3) { 585 if (buildCounterListCourseAliasesResponse < 3) {
584 o.aliases = buildUnnamed883(); 586 o.aliases = buildUnnamed907();
585 o.nextPageToken = "foo"; 587 o.nextPageToken = "foo";
586 } 588 }
587 buildCounterListCourseAliasesResponse--; 589 buildCounterListCourseAliasesResponse--;
588 return o; 590 return o;
589 } 591 }
590 592
591 checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { 593 checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) {
592 buildCounterListCourseAliasesResponse++; 594 buildCounterListCourseAliasesResponse++;
593 if (buildCounterListCourseAliasesResponse < 3) { 595 if (buildCounterListCourseAliasesResponse < 3) {
594 checkUnnamed883(o.aliases); 596 checkUnnamed907(o.aliases);
595 unittest.expect(o.nextPageToken, unittest.equals('foo')); 597 unittest.expect(o.nextPageToken, unittest.equals('foo'));
596 } 598 }
597 buildCounterListCourseAliasesResponse--; 599 buildCounterListCourseAliasesResponse--;
598 } 600 }
599 601
600 buildUnnamed884() { 602 buildUnnamed908() {
601 var o = new core.List<api.CourseWork>(); 603 var o = new core.List<api.CourseWork>();
602 o.add(buildCourseWork()); 604 o.add(buildCourseWork());
603 o.add(buildCourseWork()); 605 o.add(buildCourseWork());
604 return o; 606 return o;
605 } 607 }
606 608
607 checkUnnamed884(core.List<api.CourseWork> o) { 609 checkUnnamed908(core.List<api.CourseWork> o) {
608 unittest.expect(o, unittest.hasLength(2)); 610 unittest.expect(o, unittest.hasLength(2));
609 checkCourseWork(o[0]); 611 checkCourseWork(o[0]);
610 checkCourseWork(o[1]); 612 checkCourseWork(o[1]);
611 } 613 }
612 614
613 core.int buildCounterListCourseWorkResponse = 0; 615 core.int buildCounterListCourseWorkResponse = 0;
614 buildListCourseWorkResponse() { 616 buildListCourseWorkResponse() {
615 var o = new api.ListCourseWorkResponse(); 617 var o = new api.ListCourseWorkResponse();
616 buildCounterListCourseWorkResponse++; 618 buildCounterListCourseWorkResponse++;
617 if (buildCounterListCourseWorkResponse < 3) { 619 if (buildCounterListCourseWorkResponse < 3) {
618 o.courseWork = buildUnnamed884(); 620 o.courseWork = buildUnnamed908();
619 o.nextPageToken = "foo"; 621 o.nextPageToken = "foo";
620 } 622 }
621 buildCounterListCourseWorkResponse--; 623 buildCounterListCourseWorkResponse--;
622 return o; 624 return o;
623 } 625 }
624 626
625 checkListCourseWorkResponse(api.ListCourseWorkResponse o) { 627 checkListCourseWorkResponse(api.ListCourseWorkResponse o) {
626 buildCounterListCourseWorkResponse++; 628 buildCounterListCourseWorkResponse++;
627 if (buildCounterListCourseWorkResponse < 3) { 629 if (buildCounterListCourseWorkResponse < 3) {
628 checkUnnamed884(o.courseWork); 630 checkUnnamed908(o.courseWork);
629 unittest.expect(o.nextPageToken, unittest.equals('foo')); 631 unittest.expect(o.nextPageToken, unittest.equals('foo'));
630 } 632 }
631 buildCounterListCourseWorkResponse--; 633 buildCounterListCourseWorkResponse--;
632 } 634 }
633 635
634 buildUnnamed885() { 636 buildUnnamed909() {
635 var o = new core.List<api.Course>(); 637 var o = new core.List<api.Course>();
636 o.add(buildCourse()); 638 o.add(buildCourse());
637 o.add(buildCourse()); 639 o.add(buildCourse());
638 return o; 640 return o;
639 } 641 }
640 642
641 checkUnnamed885(core.List<api.Course> o) { 643 checkUnnamed909(core.List<api.Course> o) {
642 unittest.expect(o, unittest.hasLength(2)); 644 unittest.expect(o, unittest.hasLength(2));
643 checkCourse(o[0]); 645 checkCourse(o[0]);
644 checkCourse(o[1]); 646 checkCourse(o[1]);
645 } 647 }
646 648
647 core.int buildCounterListCoursesResponse = 0; 649 core.int buildCounterListCoursesResponse = 0;
648 buildListCoursesResponse() { 650 buildListCoursesResponse() {
649 var o = new api.ListCoursesResponse(); 651 var o = new api.ListCoursesResponse();
650 buildCounterListCoursesResponse++; 652 buildCounterListCoursesResponse++;
651 if (buildCounterListCoursesResponse < 3) { 653 if (buildCounterListCoursesResponse < 3) {
652 o.courses = buildUnnamed885(); 654 o.courses = buildUnnamed909();
653 o.nextPageToken = "foo"; 655 o.nextPageToken = "foo";
654 } 656 }
655 buildCounterListCoursesResponse--; 657 buildCounterListCoursesResponse--;
656 return o; 658 return o;
657 } 659 }
658 660
659 checkListCoursesResponse(api.ListCoursesResponse o) { 661 checkListCoursesResponse(api.ListCoursesResponse o) {
660 buildCounterListCoursesResponse++; 662 buildCounterListCoursesResponse++;
661 if (buildCounterListCoursesResponse < 3) { 663 if (buildCounterListCoursesResponse < 3) {
662 checkUnnamed885(o.courses); 664 checkUnnamed909(o.courses);
663 unittest.expect(o.nextPageToken, unittest.equals('foo')); 665 unittest.expect(o.nextPageToken, unittest.equals('foo'));
664 } 666 }
665 buildCounterListCoursesResponse--; 667 buildCounterListCoursesResponse--;
666 } 668 }
667 669
668 buildUnnamed886() { 670 buildUnnamed910() {
669 var o = new core.List<api.GuardianInvitation>(); 671 var o = new core.List<api.GuardianInvitation>();
670 o.add(buildGuardianInvitation()); 672 o.add(buildGuardianInvitation());
671 o.add(buildGuardianInvitation()); 673 o.add(buildGuardianInvitation());
672 return o; 674 return o;
673 } 675 }
674 676
675 checkUnnamed886(core.List<api.GuardianInvitation> o) { 677 checkUnnamed910(core.List<api.GuardianInvitation> o) {
676 unittest.expect(o, unittest.hasLength(2)); 678 unittest.expect(o, unittest.hasLength(2));
677 checkGuardianInvitation(o[0]); 679 checkGuardianInvitation(o[0]);
678 checkGuardianInvitation(o[1]); 680 checkGuardianInvitation(o[1]);
679 } 681 }
680 682
681 core.int buildCounterListGuardianInvitationsResponse = 0; 683 core.int buildCounterListGuardianInvitationsResponse = 0;
682 buildListGuardianInvitationsResponse() { 684 buildListGuardianInvitationsResponse() {
683 var o = new api.ListGuardianInvitationsResponse(); 685 var o = new api.ListGuardianInvitationsResponse();
684 buildCounterListGuardianInvitationsResponse++; 686 buildCounterListGuardianInvitationsResponse++;
685 if (buildCounterListGuardianInvitationsResponse < 3) { 687 if (buildCounterListGuardianInvitationsResponse < 3) {
686 o.guardianInvitations = buildUnnamed886(); 688 o.guardianInvitations = buildUnnamed910();
687 o.nextPageToken = "foo"; 689 o.nextPageToken = "foo";
688 } 690 }
689 buildCounterListGuardianInvitationsResponse--; 691 buildCounterListGuardianInvitationsResponse--;
690 return o; 692 return o;
691 } 693 }
692 694
693 checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) { 695 checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) {
694 buildCounterListGuardianInvitationsResponse++; 696 buildCounterListGuardianInvitationsResponse++;
695 if (buildCounterListGuardianInvitationsResponse < 3) { 697 if (buildCounterListGuardianInvitationsResponse < 3) {
696 checkUnnamed886(o.guardianInvitations); 698 checkUnnamed910(o.guardianInvitations);
697 unittest.expect(o.nextPageToken, unittest.equals('foo')); 699 unittest.expect(o.nextPageToken, unittest.equals('foo'));
698 } 700 }
699 buildCounterListGuardianInvitationsResponse--; 701 buildCounterListGuardianInvitationsResponse--;
700 } 702 }
701 703
702 buildUnnamed887() { 704 buildUnnamed911() {
703 var o = new core.List<api.Guardian>(); 705 var o = new core.List<api.Guardian>();
704 o.add(buildGuardian()); 706 o.add(buildGuardian());
705 o.add(buildGuardian()); 707 o.add(buildGuardian());
706 return o; 708 return o;
707 } 709 }
708 710
709 checkUnnamed887(core.List<api.Guardian> o) { 711 checkUnnamed911(core.List<api.Guardian> o) {
710 unittest.expect(o, unittest.hasLength(2)); 712 unittest.expect(o, unittest.hasLength(2));
711 checkGuardian(o[0]); 713 checkGuardian(o[0]);
712 checkGuardian(o[1]); 714 checkGuardian(o[1]);
713 } 715 }
714 716
715 core.int buildCounterListGuardiansResponse = 0; 717 core.int buildCounterListGuardiansResponse = 0;
716 buildListGuardiansResponse() { 718 buildListGuardiansResponse() {
717 var o = new api.ListGuardiansResponse(); 719 var o = new api.ListGuardiansResponse();
718 buildCounterListGuardiansResponse++; 720 buildCounterListGuardiansResponse++;
719 if (buildCounterListGuardiansResponse < 3) { 721 if (buildCounterListGuardiansResponse < 3) {
720 o.guardians = buildUnnamed887(); 722 o.guardians = buildUnnamed911();
721 o.nextPageToken = "foo"; 723 o.nextPageToken = "foo";
722 } 724 }
723 buildCounterListGuardiansResponse--; 725 buildCounterListGuardiansResponse--;
724 return o; 726 return o;
725 } 727 }
726 728
727 checkListGuardiansResponse(api.ListGuardiansResponse o) { 729 checkListGuardiansResponse(api.ListGuardiansResponse o) {
728 buildCounterListGuardiansResponse++; 730 buildCounterListGuardiansResponse++;
729 if (buildCounterListGuardiansResponse < 3) { 731 if (buildCounterListGuardiansResponse < 3) {
730 checkUnnamed887(o.guardians); 732 checkUnnamed911(o.guardians);
731 unittest.expect(o.nextPageToken, unittest.equals('foo')); 733 unittest.expect(o.nextPageToken, unittest.equals('foo'));
732 } 734 }
733 buildCounterListGuardiansResponse--; 735 buildCounterListGuardiansResponse--;
734 } 736 }
735 737
736 buildUnnamed888() { 738 buildUnnamed912() {
737 var o = new core.List<api.Invitation>(); 739 var o = new core.List<api.Invitation>();
738 o.add(buildInvitation()); 740 o.add(buildInvitation());
739 o.add(buildInvitation()); 741 o.add(buildInvitation());
740 return o; 742 return o;
741 } 743 }
742 744
743 checkUnnamed888(core.List<api.Invitation> o) { 745 checkUnnamed912(core.List<api.Invitation> o) {
744 unittest.expect(o, unittest.hasLength(2)); 746 unittest.expect(o, unittest.hasLength(2));
745 checkInvitation(o[0]); 747 checkInvitation(o[0]);
746 checkInvitation(o[1]); 748 checkInvitation(o[1]);
747 } 749 }
748 750
749 core.int buildCounterListInvitationsResponse = 0; 751 core.int buildCounterListInvitationsResponse = 0;
750 buildListInvitationsResponse() { 752 buildListInvitationsResponse() {
751 var o = new api.ListInvitationsResponse(); 753 var o = new api.ListInvitationsResponse();
752 buildCounterListInvitationsResponse++; 754 buildCounterListInvitationsResponse++;
753 if (buildCounterListInvitationsResponse < 3) { 755 if (buildCounterListInvitationsResponse < 3) {
754 o.invitations = buildUnnamed888(); 756 o.invitations = buildUnnamed912();
755 o.nextPageToken = "foo"; 757 o.nextPageToken = "foo";
756 } 758 }
757 buildCounterListInvitationsResponse--; 759 buildCounterListInvitationsResponse--;
758 return o; 760 return o;
759 } 761 }
760 762
761 checkListInvitationsResponse(api.ListInvitationsResponse o) { 763 checkListInvitationsResponse(api.ListInvitationsResponse o) {
762 buildCounterListInvitationsResponse++; 764 buildCounterListInvitationsResponse++;
763 if (buildCounterListInvitationsResponse < 3) { 765 if (buildCounterListInvitationsResponse < 3) {
764 checkUnnamed888(o.invitations); 766 checkUnnamed912(o.invitations);
765 unittest.expect(o.nextPageToken, unittest.equals('foo')); 767 unittest.expect(o.nextPageToken, unittest.equals('foo'));
766 } 768 }
767 buildCounterListInvitationsResponse--; 769 buildCounterListInvitationsResponse--;
768 } 770 }
769 771
770 buildUnnamed889() { 772 buildUnnamed913() {
771 var o = new core.List<api.StudentSubmission>(); 773 var o = new core.List<api.StudentSubmission>();
772 o.add(buildStudentSubmission()); 774 o.add(buildStudentSubmission());
773 o.add(buildStudentSubmission()); 775 o.add(buildStudentSubmission());
774 return o; 776 return o;
775 } 777 }
776 778
777 checkUnnamed889(core.List<api.StudentSubmission> o) { 779 checkUnnamed913(core.List<api.StudentSubmission> o) {
778 unittest.expect(o, unittest.hasLength(2)); 780 unittest.expect(o, unittest.hasLength(2));
779 checkStudentSubmission(o[0]); 781 checkStudentSubmission(o[0]);
780 checkStudentSubmission(o[1]); 782 checkStudentSubmission(o[1]);
781 } 783 }
782 784
783 core.int buildCounterListStudentSubmissionsResponse = 0; 785 core.int buildCounterListStudentSubmissionsResponse = 0;
784 buildListStudentSubmissionsResponse() { 786 buildListStudentSubmissionsResponse() {
785 var o = new api.ListStudentSubmissionsResponse(); 787 var o = new api.ListStudentSubmissionsResponse();
786 buildCounterListStudentSubmissionsResponse++; 788 buildCounterListStudentSubmissionsResponse++;
787 if (buildCounterListStudentSubmissionsResponse < 3) { 789 if (buildCounterListStudentSubmissionsResponse < 3) {
788 o.nextPageToken = "foo"; 790 o.nextPageToken = "foo";
789 o.studentSubmissions = buildUnnamed889(); 791 o.studentSubmissions = buildUnnamed913();
790 } 792 }
791 buildCounterListStudentSubmissionsResponse--; 793 buildCounterListStudentSubmissionsResponse--;
792 return o; 794 return o;
793 } 795 }
794 796
795 checkListStudentSubmissionsResponse(api.ListStudentSubmissionsResponse o) { 797 checkListStudentSubmissionsResponse(api.ListStudentSubmissionsResponse o) {
796 buildCounterListStudentSubmissionsResponse++; 798 buildCounterListStudentSubmissionsResponse++;
797 if (buildCounterListStudentSubmissionsResponse < 3) { 799 if (buildCounterListStudentSubmissionsResponse < 3) {
798 unittest.expect(o.nextPageToken, unittest.equals('foo')); 800 unittest.expect(o.nextPageToken, unittest.equals('foo'));
799 checkUnnamed889(o.studentSubmissions); 801 checkUnnamed913(o.studentSubmissions);
800 } 802 }
801 buildCounterListStudentSubmissionsResponse--; 803 buildCounterListStudentSubmissionsResponse--;
802 } 804 }
803 805
804 buildUnnamed890() { 806 buildUnnamed914() {
805 var o = new core.List<api.Student>(); 807 var o = new core.List<api.Student>();
806 o.add(buildStudent()); 808 o.add(buildStudent());
807 o.add(buildStudent()); 809 o.add(buildStudent());
808 return o; 810 return o;
809 } 811 }
810 812
811 checkUnnamed890(core.List<api.Student> o) { 813 checkUnnamed914(core.List<api.Student> o) {
812 unittest.expect(o, unittest.hasLength(2)); 814 unittest.expect(o, unittest.hasLength(2));
813 checkStudent(o[0]); 815 checkStudent(o[0]);
814 checkStudent(o[1]); 816 checkStudent(o[1]);
815 } 817 }
816 818
817 core.int buildCounterListStudentsResponse = 0; 819 core.int buildCounterListStudentsResponse = 0;
818 buildListStudentsResponse() { 820 buildListStudentsResponse() {
819 var o = new api.ListStudentsResponse(); 821 var o = new api.ListStudentsResponse();
820 buildCounterListStudentsResponse++; 822 buildCounterListStudentsResponse++;
821 if (buildCounterListStudentsResponse < 3) { 823 if (buildCounterListStudentsResponse < 3) {
822 o.nextPageToken = "foo"; 824 o.nextPageToken = "foo";
823 o.students = buildUnnamed890(); 825 o.students = buildUnnamed914();
824 } 826 }
825 buildCounterListStudentsResponse--; 827 buildCounterListStudentsResponse--;
826 return o; 828 return o;
827 } 829 }
828 830
829 checkListStudentsResponse(api.ListStudentsResponse o) { 831 checkListStudentsResponse(api.ListStudentsResponse o) {
830 buildCounterListStudentsResponse++; 832 buildCounterListStudentsResponse++;
831 if (buildCounterListStudentsResponse < 3) { 833 if (buildCounterListStudentsResponse < 3) {
832 unittest.expect(o.nextPageToken, unittest.equals('foo')); 834 unittest.expect(o.nextPageToken, unittest.equals('foo'));
833 checkUnnamed890(o.students); 835 checkUnnamed914(o.students);
834 } 836 }
835 buildCounterListStudentsResponse--; 837 buildCounterListStudentsResponse--;
836 } 838 }
837 839
838 buildUnnamed891() { 840 buildUnnamed915() {
839 var o = new core.List<api.Teacher>(); 841 var o = new core.List<api.Teacher>();
840 o.add(buildTeacher()); 842 o.add(buildTeacher());
841 o.add(buildTeacher()); 843 o.add(buildTeacher());
842 return o; 844 return o;
843 } 845 }
844 846
845 checkUnnamed891(core.List<api.Teacher> o) { 847 checkUnnamed915(core.List<api.Teacher> o) {
846 unittest.expect(o, unittest.hasLength(2)); 848 unittest.expect(o, unittest.hasLength(2));
847 checkTeacher(o[0]); 849 checkTeacher(o[0]);
848 checkTeacher(o[1]); 850 checkTeacher(o[1]);
849 } 851 }
850 852
851 core.int buildCounterListTeachersResponse = 0; 853 core.int buildCounterListTeachersResponse = 0;
852 buildListTeachersResponse() { 854 buildListTeachersResponse() {
853 var o = new api.ListTeachersResponse(); 855 var o = new api.ListTeachersResponse();
854 buildCounterListTeachersResponse++; 856 buildCounterListTeachersResponse++;
855 if (buildCounterListTeachersResponse < 3) { 857 if (buildCounterListTeachersResponse < 3) {
856 o.nextPageToken = "foo"; 858 o.nextPageToken = "foo";
857 o.teachers = buildUnnamed891(); 859 o.teachers = buildUnnamed915();
858 } 860 }
859 buildCounterListTeachersResponse--; 861 buildCounterListTeachersResponse--;
860 return o; 862 return o;
861 } 863 }
862 864
863 checkListTeachersResponse(api.ListTeachersResponse o) { 865 checkListTeachersResponse(api.ListTeachersResponse o) {
864 buildCounterListTeachersResponse++; 866 buildCounterListTeachersResponse++;
865 if (buildCounterListTeachersResponse < 3) { 867 if (buildCounterListTeachersResponse < 3) {
866 unittest.expect(o.nextPageToken, unittest.equals('foo')); 868 unittest.expect(o.nextPageToken, unittest.equals('foo'));
867 checkUnnamed891(o.teachers); 869 checkUnnamed915(o.teachers);
868 } 870 }
869 buildCounterListTeachersResponse--; 871 buildCounterListTeachersResponse--;
870 } 872 }
871 873
872 core.int buildCounterMaterial = 0; 874 core.int buildCounterMaterial = 0;
873 buildMaterial() { 875 buildMaterial() {
874 var o = new api.Material(); 876 var o = new api.Material();
875 buildCounterMaterial++; 877 buildCounterMaterial++;
876 if (buildCounterMaterial < 3) { 878 if (buildCounterMaterial < 3) {
877 o.driveFile = buildSharedDriveFile(); 879 o.driveFile = buildSharedDriveFile();
878 o.form = buildForm(); 880 o.form = buildForm();
879 o.link = buildLink(); 881 o.link = buildLink();
880 o.youtubeVideo = buildYouTubeVideo(); 882 o.youtubeVideo = buildYouTubeVideo();
881 } 883 }
882 buildCounterMaterial--; 884 buildCounterMaterial--;
883 return o; 885 return o;
884 } 886 }
885 887
886 checkMaterial(api.Material o) { 888 checkMaterial(api.Material o) {
887 buildCounterMaterial++; 889 buildCounterMaterial++;
888 if (buildCounterMaterial < 3) { 890 if (buildCounterMaterial < 3) {
889 checkSharedDriveFile(o.driveFile); 891 checkSharedDriveFile(o.driveFile);
890 checkForm(o.form); 892 checkForm(o.form);
891 checkLink(o.link); 893 checkLink(o.link);
892 checkYouTubeVideo(o.youtubeVideo); 894 checkYouTubeVideo(o.youtubeVideo);
893 } 895 }
894 buildCounterMaterial--; 896 buildCounterMaterial--;
895 } 897 }
896 898
897 buildUnnamed892() { 899 buildUnnamed916() {
898 var o = new core.List<api.Attachment>(); 900 var o = new core.List<api.Attachment>();
899 o.add(buildAttachment()); 901 o.add(buildAttachment());
900 o.add(buildAttachment()); 902 o.add(buildAttachment());
901 return o; 903 return o;
902 } 904 }
903 905
904 checkUnnamed892(core.List<api.Attachment> o) { 906 checkUnnamed916(core.List<api.Attachment> o) {
905 unittest.expect(o, unittest.hasLength(2)); 907 unittest.expect(o, unittest.hasLength(2));
906 checkAttachment(o[0]); 908 checkAttachment(o[0]);
907 checkAttachment(o[1]); 909 checkAttachment(o[1]);
908 } 910 }
909 911
910 core.int buildCounterModifyAttachmentsRequest = 0; 912 core.int buildCounterModifyAttachmentsRequest = 0;
911 buildModifyAttachmentsRequest() { 913 buildModifyAttachmentsRequest() {
912 var o = new api.ModifyAttachmentsRequest(); 914 var o = new api.ModifyAttachmentsRequest();
913 buildCounterModifyAttachmentsRequest++; 915 buildCounterModifyAttachmentsRequest++;
914 if (buildCounterModifyAttachmentsRequest < 3) { 916 if (buildCounterModifyAttachmentsRequest < 3) {
915 o.addAttachments = buildUnnamed892(); 917 o.addAttachments = buildUnnamed916();
916 } 918 }
917 buildCounterModifyAttachmentsRequest--; 919 buildCounterModifyAttachmentsRequest--;
918 return o; 920 return o;
919 } 921 }
920 922
921 checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { 923 checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) {
922 buildCounterModifyAttachmentsRequest++; 924 buildCounterModifyAttachmentsRequest++;
923 if (buildCounterModifyAttachmentsRequest < 3) { 925 if (buildCounterModifyAttachmentsRequest < 3) {
924 checkUnnamed892(o.addAttachments); 926 checkUnnamed916(o.addAttachments);
925 } 927 }
926 buildCounterModifyAttachmentsRequest--; 928 buildCounterModifyAttachmentsRequest--;
927 } 929 }
928 930
929 buildUnnamed893() { 931 buildUnnamed917() {
930 var o = new core.List<core.String>(); 932 var o = new core.List<core.String>();
931 o.add("foo"); 933 o.add("foo");
932 o.add("foo"); 934 o.add("foo");
933 return o; 935 return o;
934 } 936 }
935 937
936 checkUnnamed893(core.List<core.String> o) { 938 checkUnnamed917(core.List<core.String> o) {
937 unittest.expect(o, unittest.hasLength(2)); 939 unittest.expect(o, unittest.hasLength(2));
938 unittest.expect(o[0], unittest.equals('foo')); 940 unittest.expect(o[0], unittest.equals('foo'));
939 unittest.expect(o[1], unittest.equals('foo')); 941 unittest.expect(o[1], unittest.equals('foo'));
940 } 942 }
941 943
942 core.int buildCounterMultipleChoiceQuestion = 0; 944 core.int buildCounterMultipleChoiceQuestion = 0;
943 buildMultipleChoiceQuestion() { 945 buildMultipleChoiceQuestion() {
944 var o = new api.MultipleChoiceQuestion(); 946 var o = new api.MultipleChoiceQuestion();
945 buildCounterMultipleChoiceQuestion++; 947 buildCounterMultipleChoiceQuestion++;
946 if (buildCounterMultipleChoiceQuestion < 3) { 948 if (buildCounterMultipleChoiceQuestion < 3) {
947 o.choices = buildUnnamed893(); 949 o.choices = buildUnnamed917();
948 } 950 }
949 buildCounterMultipleChoiceQuestion--; 951 buildCounterMultipleChoiceQuestion--;
950 return o; 952 return o;
951 } 953 }
952 954
953 checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { 955 checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) {
954 buildCounterMultipleChoiceQuestion++; 956 buildCounterMultipleChoiceQuestion++;
955 if (buildCounterMultipleChoiceQuestion < 3) { 957 if (buildCounterMultipleChoiceQuestion < 3) {
956 checkUnnamed893(o.choices); 958 checkUnnamed917(o.choices);
957 } 959 }
958 buildCounterMultipleChoiceQuestion--; 960 buildCounterMultipleChoiceQuestion--;
959 } 961 }
960 962
961 core.int buildCounterMultipleChoiceSubmission = 0; 963 core.int buildCounterMultipleChoiceSubmission = 0;
962 buildMultipleChoiceSubmission() { 964 buildMultipleChoiceSubmission() {
963 var o = new api.MultipleChoiceSubmission(); 965 var o = new api.MultipleChoiceSubmission();
964 buildCounterMultipleChoiceSubmission++; 966 buildCounterMultipleChoiceSubmission++;
965 if (buildCounterMultipleChoiceSubmission < 3) { 967 if (buildCounterMultipleChoiceSubmission < 3) {
966 o.answer = "foo"; 968 o.answer = "foo";
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 return o; 1208 return o;
1207 } 1209 }
1208 1210
1209 checkTurnInStudentSubmissionRequest(api.TurnInStudentSubmissionRequest o) { 1211 checkTurnInStudentSubmissionRequest(api.TurnInStudentSubmissionRequest o) {
1210 buildCounterTurnInStudentSubmissionRequest++; 1212 buildCounterTurnInStudentSubmissionRequest++;
1211 if (buildCounterTurnInStudentSubmissionRequest < 3) { 1213 if (buildCounterTurnInStudentSubmissionRequest < 3) {
1212 } 1214 }
1213 buildCounterTurnInStudentSubmissionRequest--; 1215 buildCounterTurnInStudentSubmissionRequest--;
1214 } 1216 }
1215 1217
1216 buildUnnamed894() { 1218 buildUnnamed918() {
1217 var o = new core.List<api.GlobalPermission>(); 1219 var o = new core.List<api.GlobalPermission>();
1218 o.add(buildGlobalPermission()); 1220 o.add(buildGlobalPermission());
1219 o.add(buildGlobalPermission()); 1221 o.add(buildGlobalPermission());
1220 return o; 1222 return o;
1221 } 1223 }
1222 1224
1223 checkUnnamed894(core.List<api.GlobalPermission> o) { 1225 checkUnnamed918(core.List<api.GlobalPermission> o) {
1224 unittest.expect(o, unittest.hasLength(2)); 1226 unittest.expect(o, unittest.hasLength(2));
1225 checkGlobalPermission(o[0]); 1227 checkGlobalPermission(o[0]);
1226 checkGlobalPermission(o[1]); 1228 checkGlobalPermission(o[1]);
1227 } 1229 }
1228 1230
1229 core.int buildCounterUserProfile = 0; 1231 core.int buildCounterUserProfile = 0;
1230 buildUserProfile() { 1232 buildUserProfile() {
1231 var o = new api.UserProfile(); 1233 var o = new api.UserProfile();
1232 buildCounterUserProfile++; 1234 buildCounterUserProfile++;
1233 if (buildCounterUserProfile < 3) { 1235 if (buildCounterUserProfile < 3) {
1234 o.emailAddress = "foo"; 1236 o.emailAddress = "foo";
1235 o.id = "foo"; 1237 o.id = "foo";
1236 o.name = buildName(); 1238 o.name = buildName();
1237 o.permissions = buildUnnamed894(); 1239 o.permissions = buildUnnamed918();
1238 o.photoUrl = "foo"; 1240 o.photoUrl = "foo";
1239 } 1241 }
1240 buildCounterUserProfile--; 1242 buildCounterUserProfile--;
1241 return o; 1243 return o;
1242 } 1244 }
1243 1245
1244 checkUserProfile(api.UserProfile o) { 1246 checkUserProfile(api.UserProfile o) {
1245 buildCounterUserProfile++; 1247 buildCounterUserProfile++;
1246 if (buildCounterUserProfile < 3) { 1248 if (buildCounterUserProfile < 3) {
1247 unittest.expect(o.emailAddress, unittest.equals('foo')); 1249 unittest.expect(o.emailAddress, unittest.equals('foo'));
1248 unittest.expect(o.id, unittest.equals('foo')); 1250 unittest.expect(o.id, unittest.equals('foo'));
1249 checkName(o.name); 1251 checkName(o.name);
1250 checkUnnamed894(o.permissions); 1252 checkUnnamed918(o.permissions);
1251 unittest.expect(o.photoUrl, unittest.equals('foo')); 1253 unittest.expect(o.photoUrl, unittest.equals('foo'));
1252 } 1254 }
1253 buildCounterUserProfile--; 1255 buildCounterUserProfile--;
1254 } 1256 }
1255 1257
1256 core.int buildCounterYouTubeVideo = 0; 1258 core.int buildCounterYouTubeVideo = 0;
1257 buildYouTubeVideo() { 1259 buildYouTubeVideo() {
1258 var o = new api.YouTubeVideo(); 1260 var o = new api.YouTubeVideo();
1259 buildCounterYouTubeVideo++; 1261 buildCounterYouTubeVideo++;
1260 if (buildCounterYouTubeVideo < 3) { 1262 if (buildCounterYouTubeVideo < 3) {
(...skipping 10 matching lines...) Expand all
1271 buildCounterYouTubeVideo++; 1273 buildCounterYouTubeVideo++;
1272 if (buildCounterYouTubeVideo < 3) { 1274 if (buildCounterYouTubeVideo < 3) {
1273 unittest.expect(o.alternateLink, unittest.equals('foo')); 1275 unittest.expect(o.alternateLink, unittest.equals('foo'));
1274 unittest.expect(o.id, unittest.equals('foo')); 1276 unittest.expect(o.id, unittest.equals('foo'));
1275 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); 1277 unittest.expect(o.thumbnailUrl, unittest.equals('foo'));
1276 unittest.expect(o.title, unittest.equals('foo')); 1278 unittest.expect(o.title, unittest.equals('foo'));
1277 } 1279 }
1278 buildCounterYouTubeVideo--; 1280 buildCounterYouTubeVideo--;
1279 } 1281 }
1280 1282
1281 buildUnnamed895() { 1283 buildUnnamed919() {
1282 var o = new core.List<core.String>(); 1284 var o = new core.List<core.String>();
1283 o.add("foo"); 1285 o.add("foo");
1284 o.add("foo"); 1286 o.add("foo");
1285 return o; 1287 return o;
1286 } 1288 }
1287 1289
1288 checkUnnamed895(core.List<core.String> o) { 1290 checkUnnamed919(core.List<core.String> o) {
1289 unittest.expect(o, unittest.hasLength(2)); 1291 unittest.expect(o, unittest.hasLength(2));
1290 unittest.expect(o[0], unittest.equals('foo')); 1292 unittest.expect(o[0], unittest.equals('foo'));
1291 unittest.expect(o[1], unittest.equals('foo')); 1293 unittest.expect(o[1], unittest.equals('foo'));
1292 } 1294 }
1293 1295
1294 buildUnnamed896() { 1296 buildUnnamed920() {
1295 var o = new core.List<core.String>(); 1297 var o = new core.List<core.String>();
1296 o.add("foo"); 1298 o.add("foo");
1297 o.add("foo"); 1299 o.add("foo");
1298 return o; 1300 return o;
1299 } 1301 }
1300 1302
1301 checkUnnamed896(core.List<core.String> o) { 1303 checkUnnamed920(core.List<core.String> o) {
1302 unittest.expect(o, unittest.hasLength(2)); 1304 unittest.expect(o, unittest.hasLength(2));
1303 unittest.expect(o[0], unittest.equals('foo')); 1305 unittest.expect(o[0], unittest.equals('foo'));
1304 unittest.expect(o[1], unittest.equals('foo')); 1306 unittest.expect(o[1], unittest.equals('foo'));
1305 } 1307 }
1306 1308
1307 buildUnnamed897() { 1309 buildUnnamed921() {
1308 var o = new core.List<core.String>(); 1310 var o = new core.List<core.String>();
1309 o.add("foo"); 1311 o.add("foo");
1310 o.add("foo"); 1312 o.add("foo");
1311 return o; 1313 return o;
1312 } 1314 }
1313 1315
1314 checkUnnamed897(core.List<core.String> o) { 1316 checkUnnamed921(core.List<core.String> o) {
1315 unittest.expect(o, unittest.hasLength(2)); 1317 unittest.expect(o, unittest.hasLength(2));
1316 unittest.expect(o[0], unittest.equals('foo')); 1318 unittest.expect(o[0], unittest.equals('foo'));
1317 unittest.expect(o[1], unittest.equals('foo')); 1319 unittest.expect(o[1], unittest.equals('foo'));
1320 }
1321
1322 buildUnnamed922() {
1323 var o = new core.List<core.String>();
1324 o.add("foo");
1325 o.add("foo");
1326 return o;
1327 }
1328
1329 checkUnnamed922(core.List<core.String> o) {
1330 unittest.expect(o, unittest.hasLength(2));
1331 unittest.expect(o[0], unittest.equals('foo'));
1332 unittest.expect(o[1], unittest.equals('foo'));
1318 } 1333 }
1319 1334
1320 1335
1321 main() { 1336 main() {
1322 unittest.group("obj-schema-Assignment", () { 1337 unittest.group("obj-schema-Assignment", () {
1323 unittest.test("to-json--from-json", () { 1338 unittest.test("to-json--from-json", () {
1324 var o = buildAssignment(); 1339 var o = buildAssignment();
1325 var od = new api.Assignment.fromJson(o.toJson()); 1340 var od = new api.Assignment.fromJson(o.toJson());
1326 checkAssignment(od); 1341 checkAssignment(od);
1327 }); 1342 });
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 checkCourse(response); 1862 checkCourse(response);
1848 }))); 1863 })));
1849 }); 1864 });
1850 1865
1851 unittest.test("method--list", () { 1866 unittest.test("method--list", () {
1852 1867
1853 var mock = new HttpServerMock(); 1868 var mock = new HttpServerMock();
1854 api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; 1869 api.CoursesResourceApi res = new api.ClassroomApi(mock).courses;
1855 var arg_studentId = "foo"; 1870 var arg_studentId = "foo";
1856 var arg_teacherId = "foo"; 1871 var arg_teacherId = "foo";
1872 var arg_courseStates = buildUnnamed919();
1857 var arg_pageSize = 42; 1873 var arg_pageSize = 42;
1858 var arg_pageToken = "foo"; 1874 var arg_pageToken = "foo";
1859 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1875 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1860 var path = (req.url).path; 1876 var path = (req.url).path;
1861 var pathOffset = 0; 1877 var pathOffset = 0;
1862 var index; 1878 var index;
1863 var subPart; 1879 var subPart;
1864 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1880 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1865 pathOffset += 1; 1881 pathOffset += 1;
1866 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("v1/courses")); 1882 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("v1/courses"));
(...skipping 10 matching lines...) Expand all
1877 throw new core.ArgumentError("Invalid boolean: $n"); 1893 throw new core.ArgumentError("Invalid boolean: $n");
1878 } 1894 }
1879 if (query.length > 0) { 1895 if (query.length > 0) {
1880 for (var part in query.split("&")) { 1896 for (var part in query.split("&")) {
1881 var keyvalue = part.split("="); 1897 var keyvalue = part.split("=");
1882 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1898 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1883 } 1899 }
1884 } 1900 }
1885 unittest.expect(queryMap["studentId"].first, unittest.equals(arg_student Id)); 1901 unittest.expect(queryMap["studentId"].first, unittest.equals(arg_student Id));
1886 unittest.expect(queryMap["teacherId"].first, unittest.equals(arg_teacher Id)); 1902 unittest.expect(queryMap["teacherId"].first, unittest.equals(arg_teacher Id));
1903 unittest.expect(queryMap["courseStates"], unittest.equals(arg_courseStat es));
1887 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 1904 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1888 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1905 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1889 1906
1890 1907
1891 var h = { 1908 var h = {
1892 "content-type" : "application/json; charset=utf-8", 1909 "content-type" : "application/json; charset=utf-8",
1893 }; 1910 };
1894 var resp = convert.JSON.encode(buildListCoursesResponse()); 1911 var resp = convert.JSON.encode(buildListCoursesResponse());
1895 return new async.Future.value(stringResponse(200, h, resp)); 1912 return new async.Future.value(stringResponse(200, h, resp));
1896 }), true); 1913 }), true);
1897 res.list(studentId: arg_studentId, teacherId: arg_teacherId, pageSize: arg _pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListCourses Response response) { 1914 res.list(studentId: arg_studentId, teacherId: arg_teacherId, courseStates: arg_courseStates, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unitte st.expectAsync(((api.ListCoursesResponse response) {
1898 checkListCoursesResponse(response); 1915 checkListCoursesResponse(response);
1899 }))); 1916 })));
1900 }); 1917 });
1901 1918
1902 unittest.test("method--patch", () { 1919 unittest.test("method--patch", () {
1903 1920
1904 var mock = new HttpServerMock(); 1921 var mock = new HttpServerMock();
1905 api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; 1922 api.CoursesResourceApi res = new api.ClassroomApi(mock).courses;
1906 var arg_request = buildCourse(); 1923 var arg_request = buildCourse();
1907 var arg_id = "foo"; 1924 var arg_id = "foo";
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2284 res.get(arg_courseId, arg_id).then(unittest.expectAsync(((api.CourseWork r esponse) { 2301 res.get(arg_courseId, arg_id).then(unittest.expectAsync(((api.CourseWork r esponse) {
2285 checkCourseWork(response); 2302 checkCourseWork(response);
2286 }))); 2303 })));
2287 }); 2304 });
2288 2305
2289 unittest.test("method--list", () { 2306 unittest.test("method--list", () {
2290 2307
2291 var mock = new HttpServerMock(); 2308 var mock = new HttpServerMock();
2292 api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses. courseWork; 2309 api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses. courseWork;
2293 var arg_courseId = "foo"; 2310 var arg_courseId = "foo";
2294 var arg_courseWorkStates = buildUnnamed895(); 2311 var arg_courseWorkStates = buildUnnamed920();
2295 var arg_orderBy = "foo"; 2312 var arg_orderBy = "foo";
2296 var arg_pageSize = 42; 2313 var arg_pageSize = 42;
2297 var arg_pageToken = "foo"; 2314 var arg_pageToken = "foo";
2298 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2315 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2299 var path = (req.url).path; 2316 var path = (req.url).path;
2300 var pathOffset = 0; 2317 var pathOffset = 0;
2301 var index; 2318 var index;
2302 var subPart; 2319 var subPart;
2303 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2304 pathOffset += 1; 2321 pathOffset += 1;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2412 }))); 2429 })));
2413 }); 2430 });
2414 2431
2415 unittest.test("method--list", () { 2432 unittest.test("method--list", () {
2416 2433
2417 var mock = new HttpServerMock(); 2434 var mock = new HttpServerMock();
2418 api.CoursesCourseWorkStudentSubmissionsResourceApi res = new api.Classroom Api(mock).courses.courseWork.studentSubmissions; 2435 api.CoursesCourseWorkStudentSubmissionsResourceApi res = new api.Classroom Api(mock).courses.courseWork.studentSubmissions;
2419 var arg_courseId = "foo"; 2436 var arg_courseId = "foo";
2420 var arg_courseWorkId = "foo"; 2437 var arg_courseWorkId = "foo";
2421 var arg_userId = "foo"; 2438 var arg_userId = "foo";
2422 var arg_states = buildUnnamed896(); 2439 var arg_states = buildUnnamed921();
2423 var arg_late = "foo"; 2440 var arg_late = "foo";
2424 var arg_pageSize = 42; 2441 var arg_pageSize = 42;
2425 var arg_pageToken = "foo"; 2442 var arg_pageToken = "foo";
2426 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2443 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2427 var path = (req.url).path; 2444 var path = (req.url).path;
2428 var pathOffset = 0; 2445 var pathOffset = 0;
2429 var index; 2446 var index;
2430 var subPart; 2447 var subPart;
2431 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2448 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2432 pathOffset += 1; 2449 pathOffset += 1;
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
3695 checkGuardianInvitation(response); 3712 checkGuardianInvitation(response);
3696 }))); 3713 })));
3697 }); 3714 });
3698 3715
3699 unittest.test("method--list", () { 3716 unittest.test("method--list", () {
3700 3717
3701 var mock = new HttpServerMock(); 3718 var mock = new HttpServerMock();
3702 api.UserProfilesGuardianInvitationsResourceApi res = new api.ClassroomApi( mock).userProfiles.guardianInvitations; 3719 api.UserProfilesGuardianInvitationsResourceApi res = new api.ClassroomApi( mock).userProfiles.guardianInvitations;
3703 var arg_studentId = "foo"; 3720 var arg_studentId = "foo";
3704 var arg_invitedEmailAddress = "foo"; 3721 var arg_invitedEmailAddress = "foo";
3705 var arg_states = buildUnnamed897(); 3722 var arg_states = buildUnnamed922();
3706 var arg_pageToken = "foo"; 3723 var arg_pageToken = "foo";
3707 var arg_pageSize = 42; 3724 var arg_pageSize = 42;
3708 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3725 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3709 var path = (req.url).path; 3726 var path = (req.url).path;
3710 var pathOffset = 0; 3727 var pathOffset = 0;
3711 var index; 3728 var index;
3712 var subPart; 3729 var subPart;
3713 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3730 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3714 pathOffset += 1; 3731 pathOffset += 1;
3715 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("v1/userProfiles/")); 3732 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("v1/userProfiles/"));
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
3985 res.list(arg_studentId, invitedEmailAddress: arg_invitedEmailAddress, page Token: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.Li stGuardiansResponse response) { 4002 res.list(arg_studentId, invitedEmailAddress: arg_invitedEmailAddress, page Token: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.Li stGuardiansResponse response) {
3986 checkListGuardiansResponse(response); 4003 checkListGuardiansResponse(response);
3987 }))); 4004 })));
3988 }); 4005 });
3989 4006
3990 }); 4007 });
3991 4008
3992 4009
3993 } 4010 }
3994 4011
OLDNEW
« no previous file with comments | « generated/googleapis/test/civicinfo/v2_test.dart ('k') | generated/googleapis/test/cloudbuild/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698