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

Side by Side Diff: generated/googleapis/test/surveys/v2_test.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months 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.surveys.v2.test; 1 library googleapis.surveys.v2.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed1972() { 54 buildUnnamed2066() {
55 var o = new core.List<api.FieldMask>(); 55 var o = new core.List<api.FieldMask>();
56 o.add(buildFieldMask()); 56 o.add(buildFieldMask());
57 o.add(buildFieldMask()); 57 o.add(buildFieldMask());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed1972(core.List<api.FieldMask> o) { 61 checkUnnamed2066(core.List<api.FieldMask> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkFieldMask(o[0]); 63 checkFieldMask(o[0]);
64 checkFieldMask(o[1]); 64 checkFieldMask(o[1]);
65 } 65 }
66 66
67 core.int buildCounterFieldMask = 0; 67 core.int buildCounterFieldMask = 0;
68 buildFieldMask() { 68 buildFieldMask() {
69 var o = new api.FieldMask(); 69 var o = new api.FieldMask();
70 buildCounterFieldMask++; 70 buildCounterFieldMask++;
71 if (buildCounterFieldMask < 3) { 71 if (buildCounterFieldMask < 3) {
72 o.fields = buildUnnamed1972(); 72 o.fields = buildUnnamed2066();
73 o.id = 42; 73 o.id = 42;
74 } 74 }
75 buildCounterFieldMask--; 75 buildCounterFieldMask--;
76 return o; 76 return o;
77 } 77 }
78 78
79 checkFieldMask(api.FieldMask o) { 79 checkFieldMask(api.FieldMask o) {
80 buildCounterFieldMask++; 80 buildCounterFieldMask++;
81 if (buildCounterFieldMask < 3) { 81 if (buildCounterFieldMask < 3) {
82 checkUnnamed1972(o.fields); 82 checkUnnamed2066(o.fields);
83 unittest.expect(o.id, unittest.equals(42)); 83 unittest.expect(o.id, unittest.equals(42));
84 } 84 }
85 buildCounterFieldMask--; 85 buildCounterFieldMask--;
86 } 86 }
87 87
88 buildUnnamed1973() { 88 buildUnnamed2067() {
89 var o = new core.List<core.String>(); 89 var o = new core.List<core.String>();
90 o.add("foo"); 90 o.add("foo");
91 o.add("foo"); 91 o.add("foo");
92 return o; 92 return o;
93 } 93 }
94 94
95 checkUnnamed1973(core.List<core.String> o) { 95 checkUnnamed2067(core.List<core.String> o) {
96 unittest.expect(o, unittest.hasLength(2)); 96 unittest.expect(o, unittest.hasLength(2));
97 unittest.expect(o[0], unittest.equals('foo')); 97 unittest.expect(o[0], unittest.equals('foo'));
98 unittest.expect(o[1], unittest.equals('foo')); 98 unittest.expect(o[1], unittest.equals('foo'));
99 } 99 }
100 100
101 core.int buildCounterMobileAppPanel = 0; 101 core.int buildCounterMobileAppPanel = 0;
102 buildMobileAppPanel() { 102 buildMobileAppPanel() {
103 var o = new api.MobileAppPanel(); 103 var o = new api.MobileAppPanel();
104 buildCounterMobileAppPanel++; 104 buildCounterMobileAppPanel++;
105 if (buildCounterMobileAppPanel < 3) { 105 if (buildCounterMobileAppPanel < 3) {
106 o.country = "foo"; 106 o.country = "foo";
107 o.isPublicPanel = true; 107 o.isPublicPanel = true;
108 o.language = "foo"; 108 o.language = "foo";
109 o.mobileAppPanelId = "foo"; 109 o.mobileAppPanelId = "foo";
110 o.name = "foo"; 110 o.name = "foo";
111 o.owners = buildUnnamed1973(); 111 o.owners = buildUnnamed2067();
112 } 112 }
113 buildCounterMobileAppPanel--; 113 buildCounterMobileAppPanel--;
114 return o; 114 return o;
115 } 115 }
116 116
117 checkMobileAppPanel(api.MobileAppPanel o) { 117 checkMobileAppPanel(api.MobileAppPanel o) {
118 buildCounterMobileAppPanel++; 118 buildCounterMobileAppPanel++;
119 if (buildCounterMobileAppPanel < 3) { 119 if (buildCounterMobileAppPanel < 3) {
120 unittest.expect(o.country, unittest.equals('foo')); 120 unittest.expect(o.country, unittest.equals('foo'));
121 unittest.expect(o.isPublicPanel, unittest.isTrue); 121 unittest.expect(o.isPublicPanel, unittest.isTrue);
122 unittest.expect(o.language, unittest.equals('foo')); 122 unittest.expect(o.language, unittest.equals('foo'));
123 unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); 123 unittest.expect(o.mobileAppPanelId, unittest.equals('foo'));
124 unittest.expect(o.name, unittest.equals('foo')); 124 unittest.expect(o.name, unittest.equals('foo'));
125 checkUnnamed1973(o.owners); 125 checkUnnamed2067(o.owners);
126 } 126 }
127 buildCounterMobileAppPanel--; 127 buildCounterMobileAppPanel--;
128 } 128 }
129 129
130 buildUnnamed1974() { 130 buildUnnamed2068() {
131 var o = new core.List<api.MobileAppPanel>(); 131 var o = new core.List<api.MobileAppPanel>();
132 o.add(buildMobileAppPanel()); 132 o.add(buildMobileAppPanel());
133 o.add(buildMobileAppPanel()); 133 o.add(buildMobileAppPanel());
134 return o; 134 return o;
135 } 135 }
136 136
137 checkUnnamed1974(core.List<api.MobileAppPanel> o) { 137 checkUnnamed2068(core.List<api.MobileAppPanel> o) {
138 unittest.expect(o, unittest.hasLength(2)); 138 unittest.expect(o, unittest.hasLength(2));
139 checkMobileAppPanel(o[0]); 139 checkMobileAppPanel(o[0]);
140 checkMobileAppPanel(o[1]); 140 checkMobileAppPanel(o[1]);
141 } 141 }
142 142
143 core.int buildCounterMobileAppPanelsListResponse = 0; 143 core.int buildCounterMobileAppPanelsListResponse = 0;
144 buildMobileAppPanelsListResponse() { 144 buildMobileAppPanelsListResponse() {
145 var o = new api.MobileAppPanelsListResponse(); 145 var o = new api.MobileAppPanelsListResponse();
146 buildCounterMobileAppPanelsListResponse++; 146 buildCounterMobileAppPanelsListResponse++;
147 if (buildCounterMobileAppPanelsListResponse < 3) { 147 if (buildCounterMobileAppPanelsListResponse < 3) {
148 o.pageInfo = buildPageInfo(); 148 o.pageInfo = buildPageInfo();
149 o.requestId = "foo"; 149 o.requestId = "foo";
150 o.resources = buildUnnamed1974(); 150 o.resources = buildUnnamed2068();
151 o.tokenPagination = buildTokenPagination(); 151 o.tokenPagination = buildTokenPagination();
152 } 152 }
153 buildCounterMobileAppPanelsListResponse--; 153 buildCounterMobileAppPanelsListResponse--;
154 return o; 154 return o;
155 } 155 }
156 156
157 checkMobileAppPanelsListResponse(api.MobileAppPanelsListResponse o) { 157 checkMobileAppPanelsListResponse(api.MobileAppPanelsListResponse o) {
158 buildCounterMobileAppPanelsListResponse++; 158 buildCounterMobileAppPanelsListResponse++;
159 if (buildCounterMobileAppPanelsListResponse < 3) { 159 if (buildCounterMobileAppPanelsListResponse < 3) {
160 checkPageInfo(o.pageInfo); 160 checkPageInfo(o.pageInfo);
161 unittest.expect(o.requestId, unittest.equals('foo')); 161 unittest.expect(o.requestId, unittest.equals('foo'));
162 checkUnnamed1974(o.resources); 162 checkUnnamed2068(o.resources);
163 checkTokenPagination(o.tokenPagination); 163 checkTokenPagination(o.tokenPagination);
164 } 164 }
165 buildCounterMobileAppPanelsListResponse--; 165 buildCounterMobileAppPanelsListResponse--;
166 } 166 }
167 167
168 core.int buildCounterPageInfo = 0; 168 core.int buildCounterPageInfo = 0;
169 buildPageInfo() { 169 buildPageInfo() {
170 var o = new api.PageInfo(); 170 var o = new api.PageInfo();
171 buildCounterPageInfo++; 171 buildCounterPageInfo++;
172 if (buildCounterPageInfo < 3) { 172 if (buildCounterPageInfo < 3) {
(...skipping 27 matching lines...) Expand all
200 } 200 }
201 201
202 checkResultsGetRequest(api.ResultsGetRequest o) { 202 checkResultsGetRequest(api.ResultsGetRequest o) {
203 buildCounterResultsGetRequest++; 203 buildCounterResultsGetRequest++;
204 if (buildCounterResultsGetRequest < 3) { 204 if (buildCounterResultsGetRequest < 3) {
205 checkResultsMask(o.resultMask); 205 checkResultsMask(o.resultMask);
206 } 206 }
207 buildCounterResultsGetRequest--; 207 buildCounterResultsGetRequest--;
208 } 208 }
209 209
210 buildUnnamed1975() { 210 buildUnnamed2069() {
211 var o = new core.List<api.FieldMask>(); 211 var o = new core.List<api.FieldMask>();
212 o.add(buildFieldMask()); 212 o.add(buildFieldMask());
213 o.add(buildFieldMask()); 213 o.add(buildFieldMask());
214 return o; 214 return o;
215 } 215 }
216 216
217 checkUnnamed1975(core.List<api.FieldMask> o) { 217 checkUnnamed2069(core.List<api.FieldMask> o) {
218 unittest.expect(o, unittest.hasLength(2)); 218 unittest.expect(o, unittest.hasLength(2));
219 checkFieldMask(o[0]); 219 checkFieldMask(o[0]);
220 checkFieldMask(o[1]); 220 checkFieldMask(o[1]);
221 } 221 }
222 222
223 core.int buildCounterResultsMask = 0; 223 core.int buildCounterResultsMask = 0;
224 buildResultsMask() { 224 buildResultsMask() {
225 var o = new api.ResultsMask(); 225 var o = new api.ResultsMask();
226 buildCounterResultsMask++; 226 buildCounterResultsMask++;
227 if (buildCounterResultsMask < 3) { 227 if (buildCounterResultsMask < 3) {
228 o.fields = buildUnnamed1975(); 228 o.fields = buildUnnamed2069();
229 o.projection = "foo"; 229 o.projection = "foo";
230 } 230 }
231 buildCounterResultsMask--; 231 buildCounterResultsMask--;
232 return o; 232 return o;
233 } 233 }
234 234
235 checkResultsMask(api.ResultsMask o) { 235 checkResultsMask(api.ResultsMask o) {
236 buildCounterResultsMask++; 236 buildCounterResultsMask++;
237 if (buildCounterResultsMask < 3) { 237 if (buildCounterResultsMask < 3) {
238 checkUnnamed1975(o.fields); 238 checkUnnamed2069(o.fields);
239 unittest.expect(o.projection, unittest.equals('foo')); 239 unittest.expect(o.projection, unittest.equals('foo'));
240 } 240 }
241 buildCounterResultsMask--; 241 buildCounterResultsMask--;
242 } 242 }
243 243
244 buildUnnamed1976() { 244 buildUnnamed2070() {
245 var o = new core.List<core.String>(); 245 var o = new core.List<core.String>();
246 o.add("foo"); 246 o.add("foo");
247 o.add("foo"); 247 o.add("foo");
248 return o; 248 return o;
249 } 249 }
250 250
251 checkUnnamed1976(core.List<core.String> o) { 251 checkUnnamed2070(core.List<core.String> o) {
252 unittest.expect(o, unittest.hasLength(2)); 252 unittest.expect(o, unittest.hasLength(2));
253 unittest.expect(o[0], unittest.equals('foo')); 253 unittest.expect(o[0], unittest.equals('foo'));
254 unittest.expect(o[1], unittest.equals('foo')); 254 unittest.expect(o[1], unittest.equals('foo'));
255 } 255 }
256 256
257 buildUnnamed1977() { 257 buildUnnamed2071() {
258 var o = new core.List<api.SurveyQuestion>(); 258 var o = new core.List<api.SurveyQuestion>();
259 o.add(buildSurveyQuestion()); 259 o.add(buildSurveyQuestion());
260 o.add(buildSurveyQuestion()); 260 o.add(buildSurveyQuestion());
261 return o; 261 return o;
262 } 262 }
263 263
264 checkUnnamed1977(core.List<api.SurveyQuestion> o) { 264 checkUnnamed2071(core.List<api.SurveyQuestion> o) {
265 unittest.expect(o, unittest.hasLength(2)); 265 unittest.expect(o, unittest.hasLength(2));
266 checkSurveyQuestion(o[0]); 266 checkSurveyQuestion(o[0]);
267 checkSurveyQuestion(o[1]); 267 checkSurveyQuestion(o[1]);
268 } 268 }
269 269
270 core.int buildCounterSurvey = 0; 270 core.int buildCounterSurvey = 0;
271 buildSurvey() { 271 buildSurvey() {
272 var o = new api.Survey(); 272 var o = new api.Survey();
273 buildCounterSurvey++; 273 buildCounterSurvey++;
274 if (buildCounterSurvey < 3) { 274 if (buildCounterSurvey < 3) {
275 o.audience = buildSurveyAudience(); 275 o.audience = buildSurveyAudience();
276 o.cost = buildSurveyCost(); 276 o.cost = buildSurveyCost();
277 o.customerData = "foo"; 277 o.customerData = "foo";
278 o.description = "foo"; 278 o.description = "foo";
279 o.owners = buildUnnamed1976(); 279 o.owners = buildUnnamed2070();
280 o.questions = buildUnnamed1977(); 280 o.questions = buildUnnamed2071();
281 o.rejectionReason = buildSurveyRejection(); 281 o.rejectionReason = buildSurveyRejection();
282 o.state = "foo"; 282 o.state = "foo";
283 o.surveyUrlId = "foo"; 283 o.surveyUrlId = "foo";
284 o.title = "foo"; 284 o.title = "foo";
285 o.wantedResponseCount = 42; 285 o.wantedResponseCount = 42;
286 } 286 }
287 buildCounterSurvey--; 287 buildCounterSurvey--;
288 return o; 288 return o;
289 } 289 }
290 290
291 checkSurvey(api.Survey o) { 291 checkSurvey(api.Survey o) {
292 buildCounterSurvey++; 292 buildCounterSurvey++;
293 if (buildCounterSurvey < 3) { 293 if (buildCounterSurvey < 3) {
294 checkSurveyAudience(o.audience); 294 checkSurveyAudience(o.audience);
295 checkSurveyCost(o.cost); 295 checkSurveyCost(o.cost);
296 unittest.expect(o.customerData, unittest.equals('foo')); 296 unittest.expect(o.customerData, unittest.equals('foo'));
297 unittest.expect(o.description, unittest.equals('foo')); 297 unittest.expect(o.description, unittest.equals('foo'));
298 checkUnnamed1976(o.owners); 298 checkUnnamed2070(o.owners);
299 checkUnnamed1977(o.questions); 299 checkUnnamed2071(o.questions);
300 checkSurveyRejection(o.rejectionReason); 300 checkSurveyRejection(o.rejectionReason);
301 unittest.expect(o.state, unittest.equals('foo')); 301 unittest.expect(o.state, unittest.equals('foo'));
302 unittest.expect(o.surveyUrlId, unittest.equals('foo')); 302 unittest.expect(o.surveyUrlId, unittest.equals('foo'));
303 unittest.expect(o.title, unittest.equals('foo')); 303 unittest.expect(o.title, unittest.equals('foo'));
304 unittest.expect(o.wantedResponseCount, unittest.equals(42)); 304 unittest.expect(o.wantedResponseCount, unittest.equals(42));
305 } 305 }
306 buildCounterSurvey--; 306 buildCounterSurvey--;
307 } 307 }
308 308
309 buildUnnamed1978() { 309 buildUnnamed2072() {
310 var o = new core.List<core.String>(); 310 var o = new core.List<core.String>();
311 o.add("foo"); 311 o.add("foo");
312 o.add("foo"); 312 o.add("foo");
313 return o; 313 return o;
314 } 314 }
315 315
316 checkUnnamed1978(core.List<core.String> o) { 316 checkUnnamed2072(core.List<core.String> o) {
317 unittest.expect(o, unittest.hasLength(2)); 317 unittest.expect(o, unittest.hasLength(2));
318 unittest.expect(o[0], unittest.equals('foo')); 318 unittest.expect(o[0], unittest.equals('foo'));
319 unittest.expect(o[1], unittest.equals('foo')); 319 unittest.expect(o[1], unittest.equals('foo'));
320 } 320 }
321 321
322 buildUnnamed1979() { 322 buildUnnamed2073() {
323 var o = new core.List<core.String>(); 323 var o = new core.List<core.String>();
324 o.add("foo"); 324 o.add("foo");
325 o.add("foo"); 325 o.add("foo");
326 return o; 326 return o;
327 } 327 }
328 328
329 checkUnnamed1979(core.List<core.String> o) { 329 checkUnnamed2073(core.List<core.String> o) {
330 unittest.expect(o, unittest.hasLength(2)); 330 unittest.expect(o, unittest.hasLength(2));
331 unittest.expect(o[0], unittest.equals('foo')); 331 unittest.expect(o[0], unittest.equals('foo'));
332 unittest.expect(o[1], unittest.equals('foo')); 332 unittest.expect(o[1], unittest.equals('foo'));
333 } 333 }
334 334
335 core.int buildCounterSurveyAudience = 0; 335 core.int buildCounterSurveyAudience = 0;
336 buildSurveyAudience() { 336 buildSurveyAudience() {
337 var o = new api.SurveyAudience(); 337 var o = new api.SurveyAudience();
338 buildCounterSurveyAudience++; 338 buildCounterSurveyAudience++;
339 if (buildCounterSurveyAudience < 3) { 339 if (buildCounterSurveyAudience < 3) {
340 o.ages = buildUnnamed1978(); 340 o.ages = buildUnnamed2072();
341 o.country = "foo"; 341 o.country = "foo";
342 o.countrySubdivision = "foo"; 342 o.countrySubdivision = "foo";
343 o.gender = "foo"; 343 o.gender = "foo";
344 o.languages = buildUnnamed1979(); 344 o.languages = buildUnnamed2073();
345 o.mobileAppPanelId = "foo"; 345 o.mobileAppPanelId = "foo";
346 o.populationSource = "foo"; 346 o.populationSource = "foo";
347 } 347 }
348 buildCounterSurveyAudience--; 348 buildCounterSurveyAudience--;
349 return o; 349 return o;
350 } 350 }
351 351
352 checkSurveyAudience(api.SurveyAudience o) { 352 checkSurveyAudience(api.SurveyAudience o) {
353 buildCounterSurveyAudience++; 353 buildCounterSurveyAudience++;
354 if (buildCounterSurveyAudience < 3) { 354 if (buildCounterSurveyAudience < 3) {
355 checkUnnamed1978(o.ages); 355 checkUnnamed2072(o.ages);
356 unittest.expect(o.country, unittest.equals('foo')); 356 unittest.expect(o.country, unittest.equals('foo'));
357 unittest.expect(o.countrySubdivision, unittest.equals('foo')); 357 unittest.expect(o.countrySubdivision, unittest.equals('foo'));
358 unittest.expect(o.gender, unittest.equals('foo')); 358 unittest.expect(o.gender, unittest.equals('foo'));
359 checkUnnamed1979(o.languages); 359 checkUnnamed2073(o.languages);
360 unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); 360 unittest.expect(o.mobileAppPanelId, unittest.equals('foo'));
361 unittest.expect(o.populationSource, unittest.equals('foo')); 361 unittest.expect(o.populationSource, unittest.equals('foo'));
362 } 362 }
363 buildCounterSurveyAudience--; 363 buildCounterSurveyAudience--;
364 } 364 }
365 365
366 core.int buildCounterSurveyCost = 0; 366 core.int buildCounterSurveyCost = 0;
367 buildSurveyCost() { 367 buildSurveyCost() {
368 var o = new api.SurveyCost(); 368 var o = new api.SurveyCost();
369 buildCounterSurveyCost++; 369 buildCounterSurveyCost++;
(...skipping 11 matching lines...) Expand all
381 buildCounterSurveyCost++; 381 buildCounterSurveyCost++;
382 if (buildCounterSurveyCost < 3) { 382 if (buildCounterSurveyCost < 3) {
383 unittest.expect(o.costPerResponseNanos, unittest.equals('foo')); 383 unittest.expect(o.costPerResponseNanos, unittest.equals('foo'));
384 unittest.expect(o.currencyCode, unittest.equals('foo')); 384 unittest.expect(o.currencyCode, unittest.equals('foo'));
385 unittest.expect(o.maxCostPerResponseNanos, unittest.equals('foo')); 385 unittest.expect(o.maxCostPerResponseNanos, unittest.equals('foo'));
386 unittest.expect(o.nanos, unittest.equals('foo')); 386 unittest.expect(o.nanos, unittest.equals('foo'));
387 } 387 }
388 buildCounterSurveyCost--; 388 buildCounterSurveyCost--;
389 } 389 }
390 390
391 buildUnnamed1980() { 391 buildUnnamed2074() {
392 var o = new core.List<core.String>(); 392 var o = new core.List<core.String>();
393 o.add("foo"); 393 o.add("foo");
394 o.add("foo"); 394 o.add("foo");
395 return o; 395 return o;
396 } 396 }
397 397
398 checkUnnamed1980(core.List<core.String> o) { 398 checkUnnamed2074(core.List<core.String> o) {
399 unittest.expect(o, unittest.hasLength(2)); 399 unittest.expect(o, unittest.hasLength(2));
400 unittest.expect(o[0], unittest.equals('foo')); 400 unittest.expect(o[0], unittest.equals('foo'));
401 unittest.expect(o[1], unittest.equals('foo')); 401 unittest.expect(o[1], unittest.equals('foo'));
402 } 402 }
403 403
404 buildUnnamed1981() { 404 buildUnnamed2075() {
405 var o = new core.List<api.SurveyQuestionImage>(); 405 var o = new core.List<api.SurveyQuestionImage>();
406 o.add(buildSurveyQuestionImage()); 406 o.add(buildSurveyQuestionImage());
407 o.add(buildSurveyQuestionImage()); 407 o.add(buildSurveyQuestionImage());
408 return o; 408 return o;
409 } 409 }
410 410
411 checkUnnamed1981(core.List<api.SurveyQuestionImage> o) { 411 checkUnnamed2075(core.List<api.SurveyQuestionImage> o) {
412 unittest.expect(o, unittest.hasLength(2)); 412 unittest.expect(o, unittest.hasLength(2));
413 checkSurveyQuestionImage(o[0]); 413 checkSurveyQuestionImage(o[0]);
414 checkSurveyQuestionImage(o[1]); 414 checkSurveyQuestionImage(o[1]);
415 } 415 }
416 416
417 buildUnnamed1982() { 417 buildUnnamed2076() {
418 var o = new core.List<core.String>(); 418 var o = new core.List<core.String>();
419 o.add("foo"); 419 o.add("foo");
420 o.add("foo"); 420 o.add("foo");
421 return o; 421 return o;
422 } 422 }
423 423
424 checkUnnamed1982(core.List<core.String> o) { 424 checkUnnamed2076(core.List<core.String> o) {
425 unittest.expect(o, unittest.hasLength(2)); 425 unittest.expect(o, unittest.hasLength(2));
426 unittest.expect(o[0], unittest.equals('foo')); 426 unittest.expect(o[0], unittest.equals('foo'));
427 unittest.expect(o[1], unittest.equals('foo')); 427 unittest.expect(o[1], unittest.equals('foo'));
428 } 428 }
429 429
430 buildUnnamed1983() { 430 buildUnnamed2077() {
431 var o = new core.List<core.String>(); 431 var o = new core.List<core.String>();
432 o.add("foo"); 432 o.add("foo");
433 o.add("foo"); 433 o.add("foo");
434 return o; 434 return o;
435 } 435 }
436 436
437 checkUnnamed1983(core.List<core.String> o) { 437 checkUnnamed2077(core.List<core.String> o) {
438 unittest.expect(o, unittest.hasLength(2)); 438 unittest.expect(o, unittest.hasLength(2));
439 unittest.expect(o[0], unittest.equals('foo')); 439 unittest.expect(o[0], unittest.equals('foo'));
440 unittest.expect(o[1], unittest.equals('foo')); 440 unittest.expect(o[1], unittest.equals('foo'));
441 } 441 }
442 442
443 core.int buildCounterSurveyQuestion = 0; 443 core.int buildCounterSurveyQuestion = 0;
444 buildSurveyQuestion() { 444 buildSurveyQuestion() {
445 var o = new api.SurveyQuestion(); 445 var o = new api.SurveyQuestion();
446 buildCounterSurveyQuestion++; 446 buildCounterSurveyQuestion++;
447 if (buildCounterSurveyQuestion < 3) { 447 if (buildCounterSurveyQuestion < 3) {
448 o.answerOrder = "foo"; 448 o.answerOrder = "foo";
449 o.answers = buildUnnamed1980(); 449 o.answers = buildUnnamed2074();
450 o.hasOther = true; 450 o.hasOther = true;
451 o.highValueLabel = "foo"; 451 o.highValueLabel = "foo";
452 o.images = buildUnnamed1981(); 452 o.images = buildUnnamed2075();
453 o.lastAnswerPositionPinned = true; 453 o.lastAnswerPositionPinned = true;
454 o.lowValueLabel = "foo"; 454 o.lowValueLabel = "foo";
455 o.mustPickSuggestion = true; 455 o.mustPickSuggestion = true;
456 o.numStars = "foo"; 456 o.numStars = "foo";
457 o.openTextPlaceholder = "foo"; 457 o.openTextPlaceholder = "foo";
458 o.openTextSuggestions = buildUnnamed1982(); 458 o.openTextSuggestions = buildUnnamed2076();
459 o.question = "foo"; 459 o.question = "foo";
460 o.sentimentText = "foo"; 460 o.sentimentText = "foo";
461 o.singleLineResponse = true; 461 o.singleLineResponse = true;
462 o.thresholdAnswers = buildUnnamed1983(); 462 o.thresholdAnswers = buildUnnamed2077();
463 o.type = "foo"; 463 o.type = "foo";
464 o.unitOfMeasurementLabel = "foo"; 464 o.unitOfMeasurementLabel = "foo";
465 o.videoId = "foo"; 465 o.videoId = "foo";
466 } 466 }
467 buildCounterSurveyQuestion--; 467 buildCounterSurveyQuestion--;
468 return o; 468 return o;
469 } 469 }
470 470
471 checkSurveyQuestion(api.SurveyQuestion o) { 471 checkSurveyQuestion(api.SurveyQuestion o) {
472 buildCounterSurveyQuestion++; 472 buildCounterSurveyQuestion++;
473 if (buildCounterSurveyQuestion < 3) { 473 if (buildCounterSurveyQuestion < 3) {
474 unittest.expect(o.answerOrder, unittest.equals('foo')); 474 unittest.expect(o.answerOrder, unittest.equals('foo'));
475 checkUnnamed1980(o.answers); 475 checkUnnamed2074(o.answers);
476 unittest.expect(o.hasOther, unittest.isTrue); 476 unittest.expect(o.hasOther, unittest.isTrue);
477 unittest.expect(o.highValueLabel, unittest.equals('foo')); 477 unittest.expect(o.highValueLabel, unittest.equals('foo'));
478 checkUnnamed1981(o.images); 478 checkUnnamed2075(o.images);
479 unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue); 479 unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue);
480 unittest.expect(o.lowValueLabel, unittest.equals('foo')); 480 unittest.expect(o.lowValueLabel, unittest.equals('foo'));
481 unittest.expect(o.mustPickSuggestion, unittest.isTrue); 481 unittest.expect(o.mustPickSuggestion, unittest.isTrue);
482 unittest.expect(o.numStars, unittest.equals('foo')); 482 unittest.expect(o.numStars, unittest.equals('foo'));
483 unittest.expect(o.openTextPlaceholder, unittest.equals('foo')); 483 unittest.expect(o.openTextPlaceholder, unittest.equals('foo'));
484 checkUnnamed1982(o.openTextSuggestions); 484 checkUnnamed2076(o.openTextSuggestions);
485 unittest.expect(o.question, unittest.equals('foo')); 485 unittest.expect(o.question, unittest.equals('foo'));
486 unittest.expect(o.sentimentText, unittest.equals('foo')); 486 unittest.expect(o.sentimentText, unittest.equals('foo'));
487 unittest.expect(o.singleLineResponse, unittest.isTrue); 487 unittest.expect(o.singleLineResponse, unittest.isTrue);
488 checkUnnamed1983(o.thresholdAnswers); 488 checkUnnamed2077(o.thresholdAnswers);
489 unittest.expect(o.type, unittest.equals('foo')); 489 unittest.expect(o.type, unittest.equals('foo'));
490 unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); 490 unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo'));
491 unittest.expect(o.videoId, unittest.equals('foo')); 491 unittest.expect(o.videoId, unittest.equals('foo'));
492 } 492 }
493 buildCounterSurveyQuestion--; 493 buildCounterSurveyQuestion--;
494 } 494 }
495 495
496 core.int buildCounterSurveyQuestionImage = 0; 496 core.int buildCounterSurveyQuestionImage = 0;
497 buildSurveyQuestionImage() { 497 buildSurveyQuestionImage() {
498 var o = new api.SurveyQuestionImage(); 498 var o = new api.SurveyQuestionImage();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 } 570 }
571 571
572 checkSurveysDeleteResponse(api.SurveysDeleteResponse o) { 572 checkSurveysDeleteResponse(api.SurveysDeleteResponse o) {
573 buildCounterSurveysDeleteResponse++; 573 buildCounterSurveysDeleteResponse++;
574 if (buildCounterSurveysDeleteResponse < 3) { 574 if (buildCounterSurveysDeleteResponse < 3) {
575 unittest.expect(o.requestId, unittest.equals('foo')); 575 unittest.expect(o.requestId, unittest.equals('foo'));
576 } 576 }
577 buildCounterSurveysDeleteResponse--; 577 buildCounterSurveysDeleteResponse--;
578 } 578 }
579 579
580 buildUnnamed1984() { 580 buildUnnamed2078() {
581 var o = new core.List<api.Survey>(); 581 var o = new core.List<api.Survey>();
582 o.add(buildSurvey()); 582 o.add(buildSurvey());
583 o.add(buildSurvey()); 583 o.add(buildSurvey());
584 return o; 584 return o;
585 } 585 }
586 586
587 checkUnnamed1984(core.List<api.Survey> o) { 587 checkUnnamed2078(core.List<api.Survey> o) {
588 unittest.expect(o, unittest.hasLength(2)); 588 unittest.expect(o, unittest.hasLength(2));
589 checkSurvey(o[0]); 589 checkSurvey(o[0]);
590 checkSurvey(o[1]); 590 checkSurvey(o[1]);
591 } 591 }
592 592
593 core.int buildCounterSurveysListResponse = 0; 593 core.int buildCounterSurveysListResponse = 0;
594 buildSurveysListResponse() { 594 buildSurveysListResponse() {
595 var o = new api.SurveysListResponse(); 595 var o = new api.SurveysListResponse();
596 buildCounterSurveysListResponse++; 596 buildCounterSurveysListResponse++;
597 if (buildCounterSurveysListResponse < 3) { 597 if (buildCounterSurveysListResponse < 3) {
598 o.pageInfo = buildPageInfo(); 598 o.pageInfo = buildPageInfo();
599 o.requestId = "foo"; 599 o.requestId = "foo";
600 o.resources = buildUnnamed1984(); 600 o.resources = buildUnnamed2078();
601 o.tokenPagination = buildTokenPagination(); 601 o.tokenPagination = buildTokenPagination();
602 } 602 }
603 buildCounterSurveysListResponse--; 603 buildCounterSurveysListResponse--;
604 return o; 604 return o;
605 } 605 }
606 606
607 checkSurveysListResponse(api.SurveysListResponse o) { 607 checkSurveysListResponse(api.SurveysListResponse o) {
608 buildCounterSurveysListResponse++; 608 buildCounterSurveysListResponse++;
609 if (buildCounterSurveysListResponse < 3) { 609 if (buildCounterSurveysListResponse < 3) {
610 checkPageInfo(o.pageInfo); 610 checkPageInfo(o.pageInfo);
611 unittest.expect(o.requestId, unittest.equals('foo')); 611 unittest.expect(o.requestId, unittest.equals('foo'));
612 checkUnnamed1984(o.resources); 612 checkUnnamed2078(o.resources);
613 checkTokenPagination(o.tokenPagination); 613 checkTokenPagination(o.tokenPagination);
614 } 614 }
615 buildCounterSurveysListResponse--; 615 buildCounterSurveysListResponse--;
616 } 616 }
617 617
618 core.int buildCounterSurveysStartRequest = 0; 618 core.int buildCounterSurveysStartRequest = 0;
619 buildSurveysStartRequest() { 619 buildSurveysStartRequest() {
620 var o = new api.SurveysStartRequest(); 620 var o = new api.SurveysStartRequest();
621 buildCounterSurveysStartRequest++; 621 buildCounterSurveysStartRequest++;
622 if (buildCounterSurveysStartRequest < 3) { 622 if (buildCounterSurveysStartRequest < 3) {
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.S urvey response) { 1450 res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.S urvey response) {
1451 checkSurvey(response); 1451 checkSurvey(response);
1452 }))); 1452 })));
1453 }); 1453 });
1454 1454
1455 }); 1455 });
1456 1456
1457 1457
1458 } 1458 }
1459 1459
OLDNEW
« no previous file with comments | « generated/googleapis/test/storagetransfer/v1_test.dart ('k') | generated/googleapis/test/tagmanager/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698