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

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

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 3 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.consumersurveys.v2.test; 1 library googleapis.consumersurveys.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 buildUnnamed879() { 54 buildUnnamed21() {
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 checkUnnamed879(core.List<api.FieldMask> o) { 61 checkUnnamed21(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 = buildUnnamed879(); 72 o.fields = buildUnnamed21();
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 checkUnnamed879(o.fields); 82 checkUnnamed21(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 buildUnnamed880() { 88 buildUnnamed22() {
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 checkUnnamed880(core.List<core.String> o) { 95 checkUnnamed22(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 = buildUnnamed880(); 111 o.owners = buildUnnamed22();
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 checkUnnamed880(o.owners); 125 checkUnnamed22(o.owners);
126 } 126 }
127 buildCounterMobileAppPanel--; 127 buildCounterMobileAppPanel--;
128 } 128 }
129 129
130 buildUnnamed881() { 130 buildUnnamed23() {
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 checkUnnamed881(core.List<api.MobileAppPanel> o) { 137 checkUnnamed23(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 = buildUnnamed881(); 150 o.resources = buildUnnamed23();
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 checkUnnamed881(o.resources); 162 checkUnnamed23(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 buildUnnamed882() { 210 buildUnnamed24() {
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 checkUnnamed882(core.List<api.FieldMask> o) { 217 checkUnnamed24(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 = buildUnnamed882(); 228 o.fields = buildUnnamed24();
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 checkUnnamed882(o.fields); 238 checkUnnamed24(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 buildUnnamed883() { 244 buildUnnamed25() {
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 checkUnnamed883(core.List<core.String> o) { 251 checkUnnamed25(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 buildUnnamed884() { 257 buildUnnamed26() {
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 checkUnnamed884(core.List<api.SurveyQuestion> o) { 264 checkUnnamed26(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 = buildUnnamed883(); 279 o.owners = buildUnnamed25();
280 o.questions = buildUnnamed884(); 280 o.questions = buildUnnamed26();
281 o.state = "foo"; 281 o.state = "foo";
282 o.surveyUrlId = "foo"; 282 o.surveyUrlId = "foo";
283 o.title = "foo"; 283 o.title = "foo";
284 o.wantedResponseCount = 42; 284 o.wantedResponseCount = 42;
285 } 285 }
286 buildCounterSurvey--; 286 buildCounterSurvey--;
287 return o; 287 return o;
288 } 288 }
289 289
290 checkSurvey(api.Survey o) { 290 checkSurvey(api.Survey o) {
291 buildCounterSurvey++; 291 buildCounterSurvey++;
292 if (buildCounterSurvey < 3) { 292 if (buildCounterSurvey < 3) {
293 checkSurveyAudience(o.audience); 293 checkSurveyAudience(o.audience);
294 checkSurveyCost(o.cost); 294 checkSurveyCost(o.cost);
295 unittest.expect(o.customerData, unittest.equals('foo')); 295 unittest.expect(o.customerData, unittest.equals('foo'));
296 unittest.expect(o.description, unittest.equals('foo')); 296 unittest.expect(o.description, unittest.equals('foo'));
297 checkUnnamed883(o.owners); 297 checkUnnamed25(o.owners);
298 checkUnnamed884(o.questions); 298 checkUnnamed26(o.questions);
299 unittest.expect(o.state, unittest.equals('foo')); 299 unittest.expect(o.state, unittest.equals('foo'));
300 unittest.expect(o.surveyUrlId, unittest.equals('foo')); 300 unittest.expect(o.surveyUrlId, unittest.equals('foo'));
301 unittest.expect(o.title, unittest.equals('foo')); 301 unittest.expect(o.title, unittest.equals('foo'));
302 unittest.expect(o.wantedResponseCount, unittest.equals(42)); 302 unittest.expect(o.wantedResponseCount, unittest.equals(42));
303 } 303 }
304 buildCounterSurvey--; 304 buildCounterSurvey--;
305 } 305 }
306 306
307 buildUnnamed885() { 307 buildUnnamed27() {
308 var o = new core.List<core.String>(); 308 var o = new core.List<core.String>();
309 o.add("foo"); 309 o.add("foo");
310 o.add("foo"); 310 o.add("foo");
311 return o; 311 return o;
312 } 312 }
313 313
314 checkUnnamed885(core.List<core.String> o) { 314 checkUnnamed27(core.List<core.String> o) {
315 unittest.expect(o, unittest.hasLength(2)); 315 unittest.expect(o, unittest.hasLength(2));
316 unittest.expect(o[0], unittest.equals('foo')); 316 unittest.expect(o[0], unittest.equals('foo'));
317 unittest.expect(o[1], unittest.equals('foo')); 317 unittest.expect(o[1], unittest.equals('foo'));
318 } 318 }
319 319
320 buildUnnamed886() { 320 buildUnnamed28() {
321 var o = new core.List<core.String>(); 321 var o = new core.List<core.String>();
322 o.add("foo"); 322 o.add("foo");
323 o.add("foo"); 323 o.add("foo");
324 return o; 324 return o;
325 } 325 }
326 326
327 checkUnnamed886(core.List<core.String> o) { 327 checkUnnamed28(core.List<core.String> o) {
328 unittest.expect(o, unittest.hasLength(2)); 328 unittest.expect(o, unittest.hasLength(2));
329 unittest.expect(o[0], unittest.equals('foo')); 329 unittest.expect(o[0], unittest.equals('foo'));
330 unittest.expect(o[1], unittest.equals('foo')); 330 unittest.expect(o[1], unittest.equals('foo'));
331 } 331 }
332 332
333 core.int buildCounterSurveyAudience = 0; 333 core.int buildCounterSurveyAudience = 0;
334 buildSurveyAudience() { 334 buildSurveyAudience() {
335 var o = new api.SurveyAudience(); 335 var o = new api.SurveyAudience();
336 buildCounterSurveyAudience++; 336 buildCounterSurveyAudience++;
337 if (buildCounterSurveyAudience < 3) { 337 if (buildCounterSurveyAudience < 3) {
338 o.ages = buildUnnamed885(); 338 o.ages = buildUnnamed27();
339 o.country = "foo"; 339 o.country = "foo";
340 o.countrySubdivision = "foo"; 340 o.countrySubdivision = "foo";
341 o.gender = "foo"; 341 o.gender = "foo";
342 o.languages = buildUnnamed886(); 342 o.languages = buildUnnamed28();
343 o.mobileAppPanelId = "foo"; 343 o.mobileAppPanelId = "foo";
344 o.populationSource = "foo"; 344 o.populationSource = "foo";
345 } 345 }
346 buildCounterSurveyAudience--; 346 buildCounterSurveyAudience--;
347 return o; 347 return o;
348 } 348 }
349 349
350 checkSurveyAudience(api.SurveyAudience o) { 350 checkSurveyAudience(api.SurveyAudience o) {
351 buildCounterSurveyAudience++; 351 buildCounterSurveyAudience++;
352 if (buildCounterSurveyAudience < 3) { 352 if (buildCounterSurveyAudience < 3) {
353 checkUnnamed885(o.ages); 353 checkUnnamed27(o.ages);
354 unittest.expect(o.country, unittest.equals('foo')); 354 unittest.expect(o.country, unittest.equals('foo'));
355 unittest.expect(o.countrySubdivision, unittest.equals('foo')); 355 unittest.expect(o.countrySubdivision, unittest.equals('foo'));
356 unittest.expect(o.gender, unittest.equals('foo')); 356 unittest.expect(o.gender, unittest.equals('foo'));
357 checkUnnamed886(o.languages); 357 checkUnnamed28(o.languages);
358 unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); 358 unittest.expect(o.mobileAppPanelId, unittest.equals('foo'));
359 unittest.expect(o.populationSource, unittest.equals('foo')); 359 unittest.expect(o.populationSource, unittest.equals('foo'));
360 } 360 }
361 buildCounterSurveyAudience--; 361 buildCounterSurveyAudience--;
362 } 362 }
363 363
364 core.int buildCounterSurveyCost = 0; 364 core.int buildCounterSurveyCost = 0;
365 buildSurveyCost() { 365 buildSurveyCost() {
366 var o = new api.SurveyCost(); 366 var o = new api.SurveyCost();
367 buildCounterSurveyCost++; 367 buildCounterSurveyCost++;
(...skipping 11 matching lines...) Expand all
379 buildCounterSurveyCost++; 379 buildCounterSurveyCost++;
380 if (buildCounterSurveyCost < 3) { 380 if (buildCounterSurveyCost < 3) {
381 unittest.expect(o.costPerResponseNanos, unittest.equals('foo')); 381 unittest.expect(o.costPerResponseNanos, unittest.equals('foo'));
382 unittest.expect(o.currencyCode, unittest.equals('foo')); 382 unittest.expect(o.currencyCode, unittest.equals('foo'));
383 unittest.expect(o.maxCostPerResponseNanos, unittest.equals('foo')); 383 unittest.expect(o.maxCostPerResponseNanos, unittest.equals('foo'));
384 unittest.expect(o.nanos, unittest.equals('foo')); 384 unittest.expect(o.nanos, unittest.equals('foo'));
385 } 385 }
386 buildCounterSurveyCost--; 386 buildCounterSurveyCost--;
387 } 387 }
388 388
389 buildUnnamed887() { 389 buildUnnamed29() {
390 var o = new core.List<core.String>(); 390 var o = new core.List<core.String>();
391 o.add("foo"); 391 o.add("foo");
392 o.add("foo"); 392 o.add("foo");
393 return o; 393 return o;
394 } 394 }
395 395
396 checkUnnamed887(core.List<core.String> o) { 396 checkUnnamed29(core.List<core.String> o) {
397 unittest.expect(o, unittest.hasLength(2)); 397 unittest.expect(o, unittest.hasLength(2));
398 unittest.expect(o[0], unittest.equals('foo')); 398 unittest.expect(o[0], unittest.equals('foo'));
399 unittest.expect(o[1], unittest.equals('foo')); 399 unittest.expect(o[1], unittest.equals('foo'));
400 } 400 }
401 401
402 buildUnnamed888() { 402 buildUnnamed30() {
403 var o = new core.List<api.SurveyQuestionImage>(); 403 var o = new core.List<api.SurveyQuestionImage>();
404 o.add(buildSurveyQuestionImage()); 404 o.add(buildSurveyQuestionImage());
405 o.add(buildSurveyQuestionImage()); 405 o.add(buildSurveyQuestionImage());
406 return o; 406 return o;
407 } 407 }
408 408
409 checkUnnamed888(core.List<api.SurveyQuestionImage> o) { 409 checkUnnamed30(core.List<api.SurveyQuestionImage> o) {
410 unittest.expect(o, unittest.hasLength(2)); 410 unittest.expect(o, unittest.hasLength(2));
411 checkSurveyQuestionImage(o[0]); 411 checkSurveyQuestionImage(o[0]);
412 checkSurveyQuestionImage(o[1]); 412 checkSurveyQuestionImage(o[1]);
413 } 413 }
414 414
415 buildUnnamed889() { 415 buildUnnamed31() {
416 var o = new core.List<core.String>(); 416 var o = new core.List<core.String>();
417 o.add("foo"); 417 o.add("foo");
418 o.add("foo"); 418 o.add("foo");
419 return o; 419 return o;
420 } 420 }
421 421
422 checkUnnamed889(core.List<core.String> o) { 422 checkUnnamed31(core.List<core.String> o) {
423 unittest.expect(o, unittest.hasLength(2)); 423 unittest.expect(o, unittest.hasLength(2));
424 unittest.expect(o[0], unittest.equals('foo')); 424 unittest.expect(o[0], unittest.equals('foo'));
425 unittest.expect(o[1], unittest.equals('foo')); 425 unittest.expect(o[1], unittest.equals('foo'));
426 } 426 }
427 427
428 buildUnnamed890() { 428 buildUnnamed32() {
429 var o = new core.List<core.String>(); 429 var o = new core.List<core.String>();
430 o.add("foo"); 430 o.add("foo");
431 o.add("foo"); 431 o.add("foo");
432 return o; 432 return o;
433 } 433 }
434 434
435 checkUnnamed890(core.List<core.String> o) { 435 checkUnnamed32(core.List<core.String> o) {
436 unittest.expect(o, unittest.hasLength(2)); 436 unittest.expect(o, unittest.hasLength(2));
437 unittest.expect(o[0], unittest.equals('foo')); 437 unittest.expect(o[0], unittest.equals('foo'));
438 unittest.expect(o[1], unittest.equals('foo')); 438 unittest.expect(o[1], unittest.equals('foo'));
439 } 439 }
440 440
441 core.int buildCounterSurveyQuestion = 0; 441 core.int buildCounterSurveyQuestion = 0;
442 buildSurveyQuestion() { 442 buildSurveyQuestion() {
443 var o = new api.SurveyQuestion(); 443 var o = new api.SurveyQuestion();
444 buildCounterSurveyQuestion++; 444 buildCounterSurveyQuestion++;
445 if (buildCounterSurveyQuestion < 3) { 445 if (buildCounterSurveyQuestion < 3) {
446 o.answerOrder = "foo"; 446 o.answerOrder = "foo";
447 o.answers = buildUnnamed887(); 447 o.answers = buildUnnamed29();
448 o.hasOther = true; 448 o.hasOther = true;
449 o.highValueLabel = "foo"; 449 o.highValueLabel = "foo";
450 o.images = buildUnnamed888(); 450 o.images = buildUnnamed30();
451 o.lastAnswerPositionPinned = true; 451 o.lastAnswerPositionPinned = true;
452 o.lowValueLabel = "foo"; 452 o.lowValueLabel = "foo";
453 o.mustPickSuggestion = true; 453 o.mustPickSuggestion = true;
454 o.numStars = "foo"; 454 o.numStars = "foo";
455 o.openTextPlaceholder = "foo"; 455 o.openTextPlaceholder = "foo";
456 o.openTextSuggestions = buildUnnamed889(); 456 o.openTextSuggestions = buildUnnamed31();
457 o.question = "foo"; 457 o.question = "foo";
458 o.sentimentText = "foo"; 458 o.sentimentText = "foo";
459 o.singleLineResponse = true; 459 o.singleLineResponse = true;
460 o.thresholdAnswers = buildUnnamed890(); 460 o.thresholdAnswers = buildUnnamed32();
461 o.type = "foo"; 461 o.type = "foo";
462 o.unitOfMeasurementLabel = "foo"; 462 o.unitOfMeasurementLabel = "foo";
463 o.videoId = "foo"; 463 o.videoId = "foo";
464 } 464 }
465 buildCounterSurveyQuestion--; 465 buildCounterSurveyQuestion--;
466 return o; 466 return o;
467 } 467 }
468 468
469 checkSurveyQuestion(api.SurveyQuestion o) { 469 checkSurveyQuestion(api.SurveyQuestion o) {
470 buildCounterSurveyQuestion++; 470 buildCounterSurveyQuestion++;
471 if (buildCounterSurveyQuestion < 3) { 471 if (buildCounterSurveyQuestion < 3) {
472 unittest.expect(o.answerOrder, unittest.equals('foo')); 472 unittest.expect(o.answerOrder, unittest.equals('foo'));
473 checkUnnamed887(o.answers); 473 checkUnnamed29(o.answers);
474 unittest.expect(o.hasOther, unittest.isTrue); 474 unittest.expect(o.hasOther, unittest.isTrue);
475 unittest.expect(o.highValueLabel, unittest.equals('foo')); 475 unittest.expect(o.highValueLabel, unittest.equals('foo'));
476 checkUnnamed888(o.images); 476 checkUnnamed30(o.images);
477 unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue); 477 unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue);
478 unittest.expect(o.lowValueLabel, unittest.equals('foo')); 478 unittest.expect(o.lowValueLabel, unittest.equals('foo'));
479 unittest.expect(o.mustPickSuggestion, unittest.isTrue); 479 unittest.expect(o.mustPickSuggestion, unittest.isTrue);
480 unittest.expect(o.numStars, unittest.equals('foo')); 480 unittest.expect(o.numStars, unittest.equals('foo'));
481 unittest.expect(o.openTextPlaceholder, unittest.equals('foo')); 481 unittest.expect(o.openTextPlaceholder, unittest.equals('foo'));
482 checkUnnamed889(o.openTextSuggestions); 482 checkUnnamed31(o.openTextSuggestions);
483 unittest.expect(o.question, unittest.equals('foo')); 483 unittest.expect(o.question, unittest.equals('foo'));
484 unittest.expect(o.sentimentText, unittest.equals('foo')); 484 unittest.expect(o.sentimentText, unittest.equals('foo'));
485 unittest.expect(o.singleLineResponse, unittest.isTrue); 485 unittest.expect(o.singleLineResponse, unittest.isTrue);
486 checkUnnamed890(o.thresholdAnswers); 486 checkUnnamed32(o.thresholdAnswers);
487 unittest.expect(o.type, unittest.equals('foo')); 487 unittest.expect(o.type, unittest.equals('foo'));
488 unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); 488 unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo'));
489 unittest.expect(o.videoId, unittest.equals('foo')); 489 unittest.expect(o.videoId, unittest.equals('foo'));
490 } 490 }
491 buildCounterSurveyQuestion--; 491 buildCounterSurveyQuestion--;
492 } 492 }
493 493
494 core.int buildCounterSurveyQuestionImage = 0; 494 core.int buildCounterSurveyQuestionImage = 0;
495 buildSurveyQuestionImage() { 495 buildSurveyQuestionImage() {
496 var o = new api.SurveyQuestionImage(); 496 var o = new api.SurveyQuestionImage();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 } 547 }
548 548
549 checkSurveysDeleteResponse(api.SurveysDeleteResponse o) { 549 checkSurveysDeleteResponse(api.SurveysDeleteResponse o) {
550 buildCounterSurveysDeleteResponse++; 550 buildCounterSurveysDeleteResponse++;
551 if (buildCounterSurveysDeleteResponse < 3) { 551 if (buildCounterSurveysDeleteResponse < 3) {
552 unittest.expect(o.requestId, unittest.equals('foo')); 552 unittest.expect(o.requestId, unittest.equals('foo'));
553 } 553 }
554 buildCounterSurveysDeleteResponse--; 554 buildCounterSurveysDeleteResponse--;
555 } 555 }
556 556
557 buildUnnamed891() { 557 buildUnnamed33() {
558 var o = new core.List<api.Survey>(); 558 var o = new core.List<api.Survey>();
559 o.add(buildSurvey()); 559 o.add(buildSurvey());
560 o.add(buildSurvey()); 560 o.add(buildSurvey());
561 return o; 561 return o;
562 } 562 }
563 563
564 checkUnnamed891(core.List<api.Survey> o) { 564 checkUnnamed33(core.List<api.Survey> o) {
565 unittest.expect(o, unittest.hasLength(2)); 565 unittest.expect(o, unittest.hasLength(2));
566 checkSurvey(o[0]); 566 checkSurvey(o[0]);
567 checkSurvey(o[1]); 567 checkSurvey(o[1]);
568 } 568 }
569 569
570 core.int buildCounterSurveysListResponse = 0; 570 core.int buildCounterSurveysListResponse = 0;
571 buildSurveysListResponse() { 571 buildSurveysListResponse() {
572 var o = new api.SurveysListResponse(); 572 var o = new api.SurveysListResponse();
573 buildCounterSurveysListResponse++; 573 buildCounterSurveysListResponse++;
574 if (buildCounterSurveysListResponse < 3) { 574 if (buildCounterSurveysListResponse < 3) {
575 o.pageInfo = buildPageInfo(); 575 o.pageInfo = buildPageInfo();
576 o.requestId = "foo"; 576 o.requestId = "foo";
577 o.resources = buildUnnamed891(); 577 o.resources = buildUnnamed33();
578 o.tokenPagination = buildTokenPagination(); 578 o.tokenPagination = buildTokenPagination();
579 } 579 }
580 buildCounterSurveysListResponse--; 580 buildCounterSurveysListResponse--;
581 return o; 581 return o;
582 } 582 }
583 583
584 checkSurveysListResponse(api.SurveysListResponse o) { 584 checkSurveysListResponse(api.SurveysListResponse o) {
585 buildCounterSurveysListResponse++; 585 buildCounterSurveysListResponse++;
586 if (buildCounterSurveysListResponse < 3) { 586 if (buildCounterSurveysListResponse < 3) {
587 checkPageInfo(o.pageInfo); 587 checkPageInfo(o.pageInfo);
588 unittest.expect(o.requestId, unittest.equals('foo')); 588 unittest.expect(o.requestId, unittest.equals('foo'));
589 checkUnnamed891(o.resources); 589 checkUnnamed33(o.resources);
590 checkTokenPagination(o.tokenPagination); 590 checkTokenPagination(o.tokenPagination);
591 } 591 }
592 buildCounterSurveysListResponse--; 592 buildCounterSurveysListResponse--;
593 } 593 }
594 594
595 core.int buildCounterSurveysStartRequest = 0; 595 core.int buildCounterSurveysStartRequest = 0;
596 buildSurveysStartRequest() { 596 buildSurveysStartRequest() {
597 var o = new api.SurveysStartRequest(); 597 var o = new api.SurveysStartRequest();
598 buildCounterSurveysStartRequest++; 598 buildCounterSurveysStartRequest++;
599 if (buildCounterSurveysStartRequest < 3) { 599 if (buildCounterSurveysStartRequest < 3) {
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.S urvey response) { 1418 res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.S urvey response) {
1419 checkSurvey(response); 1419 checkSurvey(response);
1420 }))); 1420 })));
1421 }); 1421 });
1422 1422
1423 }); 1423 });
1424 1424
1425 1425
1426 } 1426 }
1427 1427
OLDNEW
« no previous file with comments | « generated/googleapis/test/compute/v1_test.dart ('k') | generated/googleapis/test/container/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698