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

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

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 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.coordinate.v1.test; 1 library googleapis.coordinate.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;
11 import 'package:googleapis/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test;
14 11
15 import 'package:googleapis/coordinate/v1.dart' as api; 12 import 'package:googleapis/coordinate/v1.dart' as api;
16 13
14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback;
16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback;
20 _expectJson = expectJson;
21 }
22
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) {
24 if (_expectJson) {
25 return request.finalize()
26 .transform(convert.UTF8.decoder)
27 .join('')
28 .then((core.String jsonString) {
29 if (jsonString.isEmpty) {
30 return _callback(request, null);
31 } else {
32 return _callback(request, convert.JSON.decode(jsonString));
33 }
34 });
35 } else {
36 var stream = request.finalize();
37 if (stream == null) {
38 return _callback(request, []);
39 } else {
40 return stream.toBytes().then((data) {
41 return _callback(request, data);
42 });
43 }
44 }
45 }
46 }
47
48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers);
52 }
18 53
19 core.int buildCounterCustomField = 0; 54 core.int buildCounterCustomField = 0;
20 buildCustomField() { 55 buildCustomField() {
21 var o = new api.CustomField(); 56 var o = new api.CustomField();
22 buildCounterCustomField++; 57 buildCounterCustomField++;
23 if (buildCounterCustomField < 3) { 58 if (buildCounterCustomField < 3) {
24 o.customFieldId = "foo"; 59 o.customFieldId = "foo";
25 o.kind = "foo"; 60 o.kind = "foo";
26 o.value = "foo"; 61 o.value = "foo";
27 } 62 }
28 buildCounterCustomField--; 63 buildCounterCustomField--;
29 return o; 64 return o;
30 } 65 }
31 66
32 checkCustomField(api.CustomField o) { 67 checkCustomField(api.CustomField o) {
33 buildCounterCustomField++; 68 buildCounterCustomField++;
34 if (buildCounterCustomField < 3) { 69 if (buildCounterCustomField < 3) {
35 unittest.expect(o.customFieldId, unittest.equals('foo')); 70 unittest.expect(o.customFieldId, unittest.equals('foo'));
36 unittest.expect(o.kind, unittest.equals('foo')); 71 unittest.expect(o.kind, unittest.equals('foo'));
37 unittest.expect(o.value, unittest.equals('foo')); 72 unittest.expect(o.value, unittest.equals('foo'));
38 } 73 }
39 buildCounterCustomField--; 74 buildCounterCustomField--;
40 } 75 }
41 76
42 buildUnnamed747() { 77 buildUnnamed619() {
43 var o = new core.List<api.EnumItemDef>(); 78 var o = new core.List<api.EnumItemDef>();
44 o.add(buildEnumItemDef()); 79 o.add(buildEnumItemDef());
45 o.add(buildEnumItemDef()); 80 o.add(buildEnumItemDef());
46 return o; 81 return o;
47 } 82 }
48 83
49 checkUnnamed747(core.List<api.EnumItemDef> o) { 84 checkUnnamed619(core.List<api.EnumItemDef> o) {
50 unittest.expect(o, unittest.hasLength(2)); 85 unittest.expect(o, unittest.hasLength(2));
51 checkEnumItemDef(o[0]); 86 checkEnumItemDef(o[0]);
52 checkEnumItemDef(o[1]); 87 checkEnumItemDef(o[1]);
53 } 88 }
54 89
55 core.int buildCounterCustomFieldDef = 0; 90 core.int buildCounterCustomFieldDef = 0;
56 buildCustomFieldDef() { 91 buildCustomFieldDef() {
57 var o = new api.CustomFieldDef(); 92 var o = new api.CustomFieldDef();
58 buildCounterCustomFieldDef++; 93 buildCounterCustomFieldDef++;
59 if (buildCounterCustomFieldDef < 3) { 94 if (buildCounterCustomFieldDef < 3) {
60 o.enabled = true; 95 o.enabled = true;
61 o.enumitems = buildUnnamed747(); 96 o.enumitems = buildUnnamed619();
62 o.id = "foo"; 97 o.id = "foo";
63 o.kind = "foo"; 98 o.kind = "foo";
64 o.name = "foo"; 99 o.name = "foo";
65 o.requiredForCheckout = true; 100 o.requiredForCheckout = true;
66 o.type = "foo"; 101 o.type = "foo";
67 } 102 }
68 buildCounterCustomFieldDef--; 103 buildCounterCustomFieldDef--;
69 return o; 104 return o;
70 } 105 }
71 106
72 checkCustomFieldDef(api.CustomFieldDef o) { 107 checkCustomFieldDef(api.CustomFieldDef o) {
73 buildCounterCustomFieldDef++; 108 buildCounterCustomFieldDef++;
74 if (buildCounterCustomFieldDef < 3) { 109 if (buildCounterCustomFieldDef < 3) {
75 unittest.expect(o.enabled, unittest.isTrue); 110 unittest.expect(o.enabled, unittest.isTrue);
76 checkUnnamed747(o.enumitems); 111 checkUnnamed619(o.enumitems);
77 unittest.expect(o.id, unittest.equals('foo')); 112 unittest.expect(o.id, unittest.equals('foo'));
78 unittest.expect(o.kind, unittest.equals('foo')); 113 unittest.expect(o.kind, unittest.equals('foo'));
79 unittest.expect(o.name, unittest.equals('foo')); 114 unittest.expect(o.name, unittest.equals('foo'));
80 unittest.expect(o.requiredForCheckout, unittest.isTrue); 115 unittest.expect(o.requiredForCheckout, unittest.isTrue);
81 unittest.expect(o.type, unittest.equals('foo')); 116 unittest.expect(o.type, unittest.equals('foo'));
82 } 117 }
83 buildCounterCustomFieldDef--; 118 buildCounterCustomFieldDef--;
84 } 119 }
85 120
86 buildUnnamed748() { 121 buildUnnamed620() {
87 var o = new core.List<api.CustomFieldDef>(); 122 var o = new core.List<api.CustomFieldDef>();
88 o.add(buildCustomFieldDef()); 123 o.add(buildCustomFieldDef());
89 o.add(buildCustomFieldDef()); 124 o.add(buildCustomFieldDef());
90 return o; 125 return o;
91 } 126 }
92 127
93 checkUnnamed748(core.List<api.CustomFieldDef> o) { 128 checkUnnamed620(core.List<api.CustomFieldDef> o) {
94 unittest.expect(o, unittest.hasLength(2)); 129 unittest.expect(o, unittest.hasLength(2));
95 checkCustomFieldDef(o[0]); 130 checkCustomFieldDef(o[0]);
96 checkCustomFieldDef(o[1]); 131 checkCustomFieldDef(o[1]);
97 } 132 }
98 133
99 core.int buildCounterCustomFieldDefListResponse = 0; 134 core.int buildCounterCustomFieldDefListResponse = 0;
100 buildCustomFieldDefListResponse() { 135 buildCustomFieldDefListResponse() {
101 var o = new api.CustomFieldDefListResponse(); 136 var o = new api.CustomFieldDefListResponse();
102 buildCounterCustomFieldDefListResponse++; 137 buildCounterCustomFieldDefListResponse++;
103 if (buildCounterCustomFieldDefListResponse < 3) { 138 if (buildCounterCustomFieldDefListResponse < 3) {
104 o.items = buildUnnamed748(); 139 o.items = buildUnnamed620();
105 o.kind = "foo"; 140 o.kind = "foo";
106 } 141 }
107 buildCounterCustomFieldDefListResponse--; 142 buildCounterCustomFieldDefListResponse--;
108 return o; 143 return o;
109 } 144 }
110 145
111 checkCustomFieldDefListResponse(api.CustomFieldDefListResponse o) { 146 checkCustomFieldDefListResponse(api.CustomFieldDefListResponse o) {
112 buildCounterCustomFieldDefListResponse++; 147 buildCounterCustomFieldDefListResponse++;
113 if (buildCounterCustomFieldDefListResponse < 3) { 148 if (buildCounterCustomFieldDefListResponse < 3) {
114 checkUnnamed748(o.items); 149 checkUnnamed620(o.items);
115 unittest.expect(o.kind, unittest.equals('foo')); 150 unittest.expect(o.kind, unittest.equals('foo'));
116 } 151 }
117 buildCounterCustomFieldDefListResponse--; 152 buildCounterCustomFieldDefListResponse--;
118 } 153 }
119 154
120 buildUnnamed749() { 155 buildUnnamed621() {
121 var o = new core.List<api.CustomField>(); 156 var o = new core.List<api.CustomField>();
122 o.add(buildCustomField()); 157 o.add(buildCustomField());
123 o.add(buildCustomField()); 158 o.add(buildCustomField());
124 return o; 159 return o;
125 } 160 }
126 161
127 checkUnnamed749(core.List<api.CustomField> o) { 162 checkUnnamed621(core.List<api.CustomField> o) {
128 unittest.expect(o, unittest.hasLength(2)); 163 unittest.expect(o, unittest.hasLength(2));
129 checkCustomField(o[0]); 164 checkCustomField(o[0]);
130 checkCustomField(o[1]); 165 checkCustomField(o[1]);
131 } 166 }
132 167
133 core.int buildCounterCustomFields = 0; 168 core.int buildCounterCustomFields = 0;
134 buildCustomFields() { 169 buildCustomFields() {
135 var o = new api.CustomFields(); 170 var o = new api.CustomFields();
136 buildCounterCustomFields++; 171 buildCounterCustomFields++;
137 if (buildCounterCustomFields < 3) { 172 if (buildCounterCustomFields < 3) {
138 o.customField = buildUnnamed749(); 173 o.customField = buildUnnamed621();
139 o.kind = "foo"; 174 o.kind = "foo";
140 } 175 }
141 buildCounterCustomFields--; 176 buildCounterCustomFields--;
142 return o; 177 return o;
143 } 178 }
144 179
145 checkCustomFields(api.CustomFields o) { 180 checkCustomFields(api.CustomFields o) {
146 buildCounterCustomFields++; 181 buildCounterCustomFields++;
147 if (buildCounterCustomFields < 3) { 182 if (buildCounterCustomFields < 3) {
148 checkUnnamed749(o.customField); 183 checkUnnamed621(o.customField);
149 unittest.expect(o.kind, unittest.equals('foo')); 184 unittest.expect(o.kind, unittest.equals('foo'));
150 } 185 }
151 buildCounterCustomFields--; 186 buildCounterCustomFields--;
152 } 187 }
153 188
154 core.int buildCounterEnumItemDef = 0; 189 core.int buildCounterEnumItemDef = 0;
155 buildEnumItemDef() { 190 buildEnumItemDef() {
156 var o = new api.EnumItemDef(); 191 var o = new api.EnumItemDef();
157 buildCounterEnumItemDef++; 192 buildCounterEnumItemDef++;
158 if (buildCounterEnumItemDef < 3) { 193 if (buildCounterEnumItemDef < 3) {
159 o.active = true; 194 o.active = true;
160 o.kind = "foo"; 195 o.kind = "foo";
161 o.value = "foo"; 196 o.value = "foo";
162 } 197 }
163 buildCounterEnumItemDef--; 198 buildCounterEnumItemDef--;
164 return o; 199 return o;
165 } 200 }
166 201
167 checkEnumItemDef(api.EnumItemDef o) { 202 checkEnumItemDef(api.EnumItemDef o) {
168 buildCounterEnumItemDef++; 203 buildCounterEnumItemDef++;
169 if (buildCounterEnumItemDef < 3) { 204 if (buildCounterEnumItemDef < 3) {
170 unittest.expect(o.active, unittest.isTrue); 205 unittest.expect(o.active, unittest.isTrue);
171 unittest.expect(o.kind, unittest.equals('foo')); 206 unittest.expect(o.kind, unittest.equals('foo'));
172 unittest.expect(o.value, unittest.equals('foo')); 207 unittest.expect(o.value, unittest.equals('foo'));
173 } 208 }
174 buildCounterEnumItemDef--; 209 buildCounterEnumItemDef--;
175 } 210 }
176 211
177 buildUnnamed750() { 212 buildUnnamed622() {
178 var o = new core.List<api.JobChange>(); 213 var o = new core.List<api.JobChange>();
179 o.add(buildJobChange()); 214 o.add(buildJobChange());
180 o.add(buildJobChange()); 215 o.add(buildJobChange());
181 return o; 216 return o;
182 } 217 }
183 218
184 checkUnnamed750(core.List<api.JobChange> o) { 219 checkUnnamed622(core.List<api.JobChange> o) {
185 unittest.expect(o, unittest.hasLength(2)); 220 unittest.expect(o, unittest.hasLength(2));
186 checkJobChange(o[0]); 221 checkJobChange(o[0]);
187 checkJobChange(o[1]); 222 checkJobChange(o[1]);
188 } 223 }
189 224
190 core.int buildCounterJob = 0; 225 core.int buildCounterJob = 0;
191 buildJob() { 226 buildJob() {
192 var o = new api.Job(); 227 var o = new api.Job();
193 buildCounterJob++; 228 buildCounterJob++;
194 if (buildCounterJob < 3) { 229 if (buildCounterJob < 3) {
195 o.id = "foo"; 230 o.id = "foo";
196 o.jobChange = buildUnnamed750(); 231 o.jobChange = buildUnnamed622();
197 o.kind = "foo"; 232 o.kind = "foo";
198 o.state = buildJobState(); 233 o.state = buildJobState();
199 } 234 }
200 buildCounterJob--; 235 buildCounterJob--;
201 return o; 236 return o;
202 } 237 }
203 238
204 checkJob(api.Job o) { 239 checkJob(api.Job o) {
205 buildCounterJob++; 240 buildCounterJob++;
206 if (buildCounterJob < 3) { 241 if (buildCounterJob < 3) {
207 unittest.expect(o.id, unittest.equals('foo')); 242 unittest.expect(o.id, unittest.equals('foo'));
208 checkUnnamed750(o.jobChange); 243 checkUnnamed622(o.jobChange);
209 unittest.expect(o.kind, unittest.equals('foo')); 244 unittest.expect(o.kind, unittest.equals('foo'));
210 checkJobState(o.state); 245 checkJobState(o.state);
211 } 246 }
212 buildCounterJob--; 247 buildCounterJob--;
213 } 248 }
214 249
215 core.int buildCounterJobChange = 0; 250 core.int buildCounterJobChange = 0;
216 buildJobChange() { 251 buildJobChange() {
217 var o = new api.JobChange(); 252 var o = new api.JobChange();
218 buildCounterJobChange++; 253 buildCounterJobChange++;
219 if (buildCounterJobChange < 3) { 254 if (buildCounterJobChange < 3) {
220 o.kind = "foo"; 255 o.kind = "foo";
221 o.state = buildJobState(); 256 o.state = buildJobState();
222 o.timestamp = "foo"; 257 o.timestamp = "foo";
223 } 258 }
224 buildCounterJobChange--; 259 buildCounterJobChange--;
225 return o; 260 return o;
226 } 261 }
227 262
228 checkJobChange(api.JobChange o) { 263 checkJobChange(api.JobChange o) {
229 buildCounterJobChange++; 264 buildCounterJobChange++;
230 if (buildCounterJobChange < 3) { 265 if (buildCounterJobChange < 3) {
231 unittest.expect(o.kind, unittest.equals('foo')); 266 unittest.expect(o.kind, unittest.equals('foo'));
232 checkJobState(o.state); 267 checkJobState(o.state);
233 unittest.expect(o.timestamp, unittest.equals('foo')); 268 unittest.expect(o.timestamp, unittest.equals('foo'));
234 } 269 }
235 buildCounterJobChange--; 270 buildCounterJobChange--;
236 } 271 }
237 272
238 buildUnnamed751() { 273 buildUnnamed623() {
239 var o = new core.List<api.Job>(); 274 var o = new core.List<api.Job>();
240 o.add(buildJob()); 275 o.add(buildJob());
241 o.add(buildJob()); 276 o.add(buildJob());
242 return o; 277 return o;
243 } 278 }
244 279
245 checkUnnamed751(core.List<api.Job> o) { 280 checkUnnamed623(core.List<api.Job> o) {
246 unittest.expect(o, unittest.hasLength(2)); 281 unittest.expect(o, unittest.hasLength(2));
247 checkJob(o[0]); 282 checkJob(o[0]);
248 checkJob(o[1]); 283 checkJob(o[1]);
249 } 284 }
250 285
251 core.int buildCounterJobListResponse = 0; 286 core.int buildCounterJobListResponse = 0;
252 buildJobListResponse() { 287 buildJobListResponse() {
253 var o = new api.JobListResponse(); 288 var o = new api.JobListResponse();
254 buildCounterJobListResponse++; 289 buildCounterJobListResponse++;
255 if (buildCounterJobListResponse < 3) { 290 if (buildCounterJobListResponse < 3) {
256 o.items = buildUnnamed751(); 291 o.items = buildUnnamed623();
257 o.kind = "foo"; 292 o.kind = "foo";
258 o.nextPageToken = "foo"; 293 o.nextPageToken = "foo";
259 } 294 }
260 buildCounterJobListResponse--; 295 buildCounterJobListResponse--;
261 return o; 296 return o;
262 } 297 }
263 298
264 checkJobListResponse(api.JobListResponse o) { 299 checkJobListResponse(api.JobListResponse o) {
265 buildCounterJobListResponse++; 300 buildCounterJobListResponse++;
266 if (buildCounterJobListResponse < 3) { 301 if (buildCounterJobListResponse < 3) {
267 checkUnnamed751(o.items); 302 checkUnnamed623(o.items);
268 unittest.expect(o.kind, unittest.equals('foo')); 303 unittest.expect(o.kind, unittest.equals('foo'));
269 unittest.expect(o.nextPageToken, unittest.equals('foo')); 304 unittest.expect(o.nextPageToken, unittest.equals('foo'));
270 } 305 }
271 buildCounterJobListResponse--; 306 buildCounterJobListResponse--;
272 } 307 }
273 308
274 buildUnnamed752() { 309 buildUnnamed624() {
275 var o = new core.List<core.String>(); 310 var o = new core.List<core.String>();
276 o.add("foo"); 311 o.add("foo");
277 o.add("foo"); 312 o.add("foo");
278 return o; 313 return o;
279 } 314 }
280 315
281 checkUnnamed752(core.List<core.String> o) { 316 checkUnnamed624(core.List<core.String> o) {
282 unittest.expect(o, unittest.hasLength(2)); 317 unittest.expect(o, unittest.hasLength(2));
283 unittest.expect(o[0], unittest.equals('foo')); 318 unittest.expect(o[0], unittest.equals('foo'));
284 unittest.expect(o[1], unittest.equals('foo')); 319 unittest.expect(o[1], unittest.equals('foo'));
285 } 320 }
286 321
287 core.int buildCounterJobState = 0; 322 core.int buildCounterJobState = 0;
288 buildJobState() { 323 buildJobState() {
289 var o = new api.JobState(); 324 var o = new api.JobState();
290 buildCounterJobState++; 325 buildCounterJobState++;
291 if (buildCounterJobState < 3) { 326 if (buildCounterJobState < 3) {
292 o.assignee = "foo"; 327 o.assignee = "foo";
293 o.customFields = buildCustomFields(); 328 o.customFields = buildCustomFields();
294 o.customerName = "foo"; 329 o.customerName = "foo";
295 o.customerPhoneNumber = "foo"; 330 o.customerPhoneNumber = "foo";
296 o.kind = "foo"; 331 o.kind = "foo";
297 o.location = buildLocation(); 332 o.location = buildLocation();
298 o.note = buildUnnamed752(); 333 o.note = buildUnnamed624();
299 o.progress = "foo"; 334 o.progress = "foo";
300 o.title = "foo"; 335 o.title = "foo";
301 } 336 }
302 buildCounterJobState--; 337 buildCounterJobState--;
303 return o; 338 return o;
304 } 339 }
305 340
306 checkJobState(api.JobState o) { 341 checkJobState(api.JobState o) {
307 buildCounterJobState++; 342 buildCounterJobState++;
308 if (buildCounterJobState < 3) { 343 if (buildCounterJobState < 3) {
309 unittest.expect(o.assignee, unittest.equals('foo')); 344 unittest.expect(o.assignee, unittest.equals('foo'));
310 checkCustomFields(o.customFields); 345 checkCustomFields(o.customFields);
311 unittest.expect(o.customerName, unittest.equals('foo')); 346 unittest.expect(o.customerName, unittest.equals('foo'));
312 unittest.expect(o.customerPhoneNumber, unittest.equals('foo')); 347 unittest.expect(o.customerPhoneNumber, unittest.equals('foo'));
313 unittest.expect(o.kind, unittest.equals('foo')); 348 unittest.expect(o.kind, unittest.equals('foo'));
314 checkLocation(o.location); 349 checkLocation(o.location);
315 checkUnnamed752(o.note); 350 checkUnnamed624(o.note);
316 unittest.expect(o.progress, unittest.equals('foo')); 351 unittest.expect(o.progress, unittest.equals('foo'));
317 unittest.expect(o.title, unittest.equals('foo')); 352 unittest.expect(o.title, unittest.equals('foo'));
318 } 353 }
319 buildCounterJobState--; 354 buildCounterJobState--;
320 } 355 }
321 356
322 buildUnnamed753() { 357 buildUnnamed625() {
323 var o = new core.List<core.String>(); 358 var o = new core.List<core.String>();
324 o.add("foo"); 359 o.add("foo");
325 o.add("foo"); 360 o.add("foo");
326 return o; 361 return o;
327 } 362 }
328 363
329 checkUnnamed753(core.List<core.String> o) { 364 checkUnnamed625(core.List<core.String> o) {
330 unittest.expect(o, unittest.hasLength(2)); 365 unittest.expect(o, unittest.hasLength(2));
331 unittest.expect(o[0], unittest.equals('foo')); 366 unittest.expect(o[0], unittest.equals('foo'));
332 unittest.expect(o[1], unittest.equals('foo')); 367 unittest.expect(o[1], unittest.equals('foo'));
333 } 368 }
334 369
335 core.int buildCounterLocation = 0; 370 core.int buildCounterLocation = 0;
336 buildLocation() { 371 buildLocation() {
337 var o = new api.Location(); 372 var o = new api.Location();
338 buildCounterLocation++; 373 buildCounterLocation++;
339 if (buildCounterLocation < 3) { 374 if (buildCounterLocation < 3) {
340 o.addressLine = buildUnnamed753(); 375 o.addressLine = buildUnnamed625();
341 o.kind = "foo"; 376 o.kind = "foo";
342 o.lat = 42.0; 377 o.lat = 42.0;
343 o.lng = 42.0; 378 o.lng = 42.0;
344 } 379 }
345 buildCounterLocation--; 380 buildCounterLocation--;
346 return o; 381 return o;
347 } 382 }
348 383
349 checkLocation(api.Location o) { 384 checkLocation(api.Location o) {
350 buildCounterLocation++; 385 buildCounterLocation++;
351 if (buildCounterLocation < 3) { 386 if (buildCounterLocation < 3) {
352 checkUnnamed753(o.addressLine); 387 checkUnnamed625(o.addressLine);
353 unittest.expect(o.kind, unittest.equals('foo')); 388 unittest.expect(o.kind, unittest.equals('foo'));
354 unittest.expect(o.lat, unittest.equals(42.0)); 389 unittest.expect(o.lat, unittest.equals(42.0));
355 unittest.expect(o.lng, unittest.equals(42.0)); 390 unittest.expect(o.lng, unittest.equals(42.0));
356 } 391 }
357 buildCounterLocation--; 392 buildCounterLocation--;
358 } 393 }
359 394
360 buildUnnamed754() { 395 buildUnnamed626() {
361 var o = new core.List<api.LocationRecord>(); 396 var o = new core.List<api.LocationRecord>();
362 o.add(buildLocationRecord()); 397 o.add(buildLocationRecord());
363 o.add(buildLocationRecord()); 398 o.add(buildLocationRecord());
364 return o; 399 return o;
365 } 400 }
366 401
367 checkUnnamed754(core.List<api.LocationRecord> o) { 402 checkUnnamed626(core.List<api.LocationRecord> o) {
368 unittest.expect(o, unittest.hasLength(2)); 403 unittest.expect(o, unittest.hasLength(2));
369 checkLocationRecord(o[0]); 404 checkLocationRecord(o[0]);
370 checkLocationRecord(o[1]); 405 checkLocationRecord(o[1]);
371 } 406 }
372 407
373 core.int buildCounterLocationListResponse = 0; 408 core.int buildCounterLocationListResponse = 0;
374 buildLocationListResponse() { 409 buildLocationListResponse() {
375 var o = new api.LocationListResponse(); 410 var o = new api.LocationListResponse();
376 buildCounterLocationListResponse++; 411 buildCounterLocationListResponse++;
377 if (buildCounterLocationListResponse < 3) { 412 if (buildCounterLocationListResponse < 3) {
378 o.items = buildUnnamed754(); 413 o.items = buildUnnamed626();
379 o.kind = "foo"; 414 o.kind = "foo";
380 o.nextPageToken = "foo"; 415 o.nextPageToken = "foo";
381 o.tokenPagination = buildTokenPagination(); 416 o.tokenPagination = buildTokenPagination();
382 } 417 }
383 buildCounterLocationListResponse--; 418 buildCounterLocationListResponse--;
384 return o; 419 return o;
385 } 420 }
386 421
387 checkLocationListResponse(api.LocationListResponse o) { 422 checkLocationListResponse(api.LocationListResponse o) {
388 buildCounterLocationListResponse++; 423 buildCounterLocationListResponse++;
389 if (buildCounterLocationListResponse < 3) { 424 if (buildCounterLocationListResponse < 3) {
390 checkUnnamed754(o.items); 425 checkUnnamed626(o.items);
391 unittest.expect(o.kind, unittest.equals('foo')); 426 unittest.expect(o.kind, unittest.equals('foo'));
392 unittest.expect(o.nextPageToken, unittest.equals('foo')); 427 unittest.expect(o.nextPageToken, unittest.equals('foo'));
393 checkTokenPagination(o.tokenPagination); 428 checkTokenPagination(o.tokenPagination);
394 } 429 }
395 buildCounterLocationListResponse--; 430 buildCounterLocationListResponse--;
396 } 431 }
397 432
398 core.int buildCounterLocationRecord = 0; 433 core.int buildCounterLocationRecord = 0;
399 buildLocationRecord() { 434 buildLocationRecord() {
400 var o = new api.LocationRecord(); 435 var o = new api.LocationRecord();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 checkTeam(api.Team o) { 500 checkTeam(api.Team o) {
466 buildCounterTeam++; 501 buildCounterTeam++;
467 if (buildCounterTeam < 3) { 502 if (buildCounterTeam < 3) {
468 unittest.expect(o.id, unittest.equals('foo')); 503 unittest.expect(o.id, unittest.equals('foo'));
469 unittest.expect(o.kind, unittest.equals('foo')); 504 unittest.expect(o.kind, unittest.equals('foo'));
470 unittest.expect(o.name, unittest.equals('foo')); 505 unittest.expect(o.name, unittest.equals('foo'));
471 } 506 }
472 buildCounterTeam--; 507 buildCounterTeam--;
473 } 508 }
474 509
475 buildUnnamed755() { 510 buildUnnamed627() {
476 var o = new core.List<api.Team>(); 511 var o = new core.List<api.Team>();
477 o.add(buildTeam()); 512 o.add(buildTeam());
478 o.add(buildTeam()); 513 o.add(buildTeam());
479 return o; 514 return o;
480 } 515 }
481 516
482 checkUnnamed755(core.List<api.Team> o) { 517 checkUnnamed627(core.List<api.Team> o) {
483 unittest.expect(o, unittest.hasLength(2)); 518 unittest.expect(o, unittest.hasLength(2));
484 checkTeam(o[0]); 519 checkTeam(o[0]);
485 checkTeam(o[1]); 520 checkTeam(o[1]);
486 } 521 }
487 522
488 core.int buildCounterTeamListResponse = 0; 523 core.int buildCounterTeamListResponse = 0;
489 buildTeamListResponse() { 524 buildTeamListResponse() {
490 var o = new api.TeamListResponse(); 525 var o = new api.TeamListResponse();
491 buildCounterTeamListResponse++; 526 buildCounterTeamListResponse++;
492 if (buildCounterTeamListResponse < 3) { 527 if (buildCounterTeamListResponse < 3) {
493 o.items = buildUnnamed755(); 528 o.items = buildUnnamed627();
494 o.kind = "foo"; 529 o.kind = "foo";
495 } 530 }
496 buildCounterTeamListResponse--; 531 buildCounterTeamListResponse--;
497 return o; 532 return o;
498 } 533 }
499 534
500 checkTeamListResponse(api.TeamListResponse o) { 535 checkTeamListResponse(api.TeamListResponse o) {
501 buildCounterTeamListResponse++; 536 buildCounterTeamListResponse++;
502 if (buildCounterTeamListResponse < 3) { 537 if (buildCounterTeamListResponse < 3) {
503 checkUnnamed755(o.items); 538 checkUnnamed627(o.items);
504 unittest.expect(o.kind, unittest.equals('foo')); 539 unittest.expect(o.kind, unittest.equals('foo'));
505 } 540 }
506 buildCounterTeamListResponse--; 541 buildCounterTeamListResponse--;
507 } 542 }
508 543
509 core.int buildCounterTokenPagination = 0; 544 core.int buildCounterTokenPagination = 0;
510 buildTokenPagination() { 545 buildTokenPagination() {
511 var o = new api.TokenPagination(); 546 var o = new api.TokenPagination();
512 buildCounterTokenPagination++; 547 buildCounterTokenPagination++;
513 if (buildCounterTokenPagination < 3) { 548 if (buildCounterTokenPagination < 3) {
(...skipping 29 matching lines...) Expand all
543 578
544 checkWorker(api.Worker o) { 579 checkWorker(api.Worker o) {
545 buildCounterWorker++; 580 buildCounterWorker++;
546 if (buildCounterWorker < 3) { 581 if (buildCounterWorker < 3) {
547 unittest.expect(o.id, unittest.equals('foo')); 582 unittest.expect(o.id, unittest.equals('foo'));
548 unittest.expect(o.kind, unittest.equals('foo')); 583 unittest.expect(o.kind, unittest.equals('foo'));
549 } 584 }
550 buildCounterWorker--; 585 buildCounterWorker--;
551 } 586 }
552 587
553 buildUnnamed756() { 588 buildUnnamed628() {
554 var o = new core.List<api.Worker>(); 589 var o = new core.List<api.Worker>();
555 o.add(buildWorker()); 590 o.add(buildWorker());
556 o.add(buildWorker()); 591 o.add(buildWorker());
557 return o; 592 return o;
558 } 593 }
559 594
560 checkUnnamed756(core.List<api.Worker> o) { 595 checkUnnamed628(core.List<api.Worker> o) {
561 unittest.expect(o, unittest.hasLength(2)); 596 unittest.expect(o, unittest.hasLength(2));
562 checkWorker(o[0]); 597 checkWorker(o[0]);
563 checkWorker(o[1]); 598 checkWorker(o[1]);
564 } 599 }
565 600
566 core.int buildCounterWorkerListResponse = 0; 601 core.int buildCounterWorkerListResponse = 0;
567 buildWorkerListResponse() { 602 buildWorkerListResponse() {
568 var o = new api.WorkerListResponse(); 603 var o = new api.WorkerListResponse();
569 buildCounterWorkerListResponse++; 604 buildCounterWorkerListResponse++;
570 if (buildCounterWorkerListResponse < 3) { 605 if (buildCounterWorkerListResponse < 3) {
571 o.items = buildUnnamed756(); 606 o.items = buildUnnamed628();
572 o.kind = "foo"; 607 o.kind = "foo";
573 } 608 }
574 buildCounterWorkerListResponse--; 609 buildCounterWorkerListResponse--;
575 return o; 610 return o;
576 } 611 }
577 612
578 checkWorkerListResponse(api.WorkerListResponse o) { 613 checkWorkerListResponse(api.WorkerListResponse o) {
579 buildCounterWorkerListResponse++; 614 buildCounterWorkerListResponse++;
580 if (buildCounterWorkerListResponse < 3) { 615 if (buildCounterWorkerListResponse < 3) {
581 checkUnnamed756(o.items); 616 checkUnnamed628(o.items);
582 unittest.expect(o.kind, unittest.equals('foo')); 617 unittest.expect(o.kind, unittest.equals('foo'));
583 } 618 }
584 buildCounterWorkerListResponse--; 619 buildCounterWorkerListResponse--;
585 } 620 }
586 621
587 buildUnnamed757() { 622 buildUnnamed629() {
588 var o = new core.List<core.String>(); 623 var o = new core.List<core.String>();
589 o.add("foo"); 624 o.add("foo");
590 o.add("foo"); 625 o.add("foo");
591 return o; 626 return o;
592 } 627 }
593 628
594 checkUnnamed757(core.List<core.String> o) { 629 checkUnnamed629(core.List<core.String> o) {
595 unittest.expect(o, unittest.hasLength(2)); 630 unittest.expect(o, unittest.hasLength(2));
596 unittest.expect(o[0], unittest.equals('foo')); 631 unittest.expect(o[0], unittest.equals('foo'));
597 unittest.expect(o[1], unittest.equals('foo')); 632 unittest.expect(o[1], unittest.equals('foo'));
598 } 633 }
599 634
600 buildUnnamed758() { 635 buildUnnamed630() {
601 var o = new core.List<core.String>(); 636 var o = new core.List<core.String>();
602 o.add("foo"); 637 o.add("foo");
603 o.add("foo"); 638 o.add("foo");
604 return o; 639 return o;
605 } 640 }
606 641
607 checkUnnamed758(core.List<core.String> o) { 642 checkUnnamed630(core.List<core.String> o) {
608 unittest.expect(o, unittest.hasLength(2)); 643 unittest.expect(o, unittest.hasLength(2));
609 unittest.expect(o[0], unittest.equals('foo')); 644 unittest.expect(o[0], unittest.equals('foo'));
610 unittest.expect(o[1], unittest.equals('foo')); 645 unittest.expect(o[1], unittest.equals('foo'));
611 } 646 }
612 647
613 buildUnnamed759() { 648 buildUnnamed631() {
614 var o = new core.List<core.String>(); 649 var o = new core.List<core.String>();
615 o.add("foo"); 650 o.add("foo");
616 o.add("foo"); 651 o.add("foo");
617 return o; 652 return o;
618 } 653 }
619 654
620 checkUnnamed759(core.List<core.String> o) { 655 checkUnnamed631(core.List<core.String> o) {
621 unittest.expect(o, unittest.hasLength(2)); 656 unittest.expect(o, unittest.hasLength(2));
622 unittest.expect(o[0], unittest.equals('foo')); 657 unittest.expect(o[0], unittest.equals('foo'));
623 unittest.expect(o[1], unittest.equals('foo')); 658 unittest.expect(o[1], unittest.equals('foo'));
624 } 659 }
625 660
626 661
627 main() { 662 main() {
628 unittest.group("obj-schema-CustomField", () { 663 unittest.group("obj-schema-CustomField", () {
629 unittest.test("to-json--from-json", () { 664 unittest.test("to-json--from-json", () {
630 var o = buildCustomField(); 665 var o = buildCustomField();
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 var o = buildWorkerListResponse(); 818 var o = buildWorkerListResponse();
784 var od = new api.WorkerListResponse.fromJson(o.toJson()); 819 var od = new api.WorkerListResponse.fromJson(o.toJson());
785 checkWorkerListResponse(od); 820 checkWorkerListResponse(od);
786 }); 821 });
787 }); 822 });
788 823
789 824
790 unittest.group("resource-CustomFieldDefResourceApi", () { 825 unittest.group("resource-CustomFieldDefResourceApi", () {
791 unittest.test("method--list", () { 826 unittest.test("method--list", () {
792 827
793 var mock = new common_test.HttpServerMock(); 828 var mock = new HttpServerMock();
794 api.CustomFieldDefResourceApi res = new api.CoordinateApi(mock).customFiel dDef; 829 api.CustomFieldDefResourceApi res = new api.CoordinateApi(mock).customFiel dDef;
795 var arg_teamId = "foo"; 830 var arg_teamId = "foo";
796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 831 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
797 var path = (req.url).path; 832 var path = (req.url).path;
798 var pathOffset = 0; 833 var pathOffset = 0;
799 var index; 834 var index;
800 var subPart; 835 var subPart;
801 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 836 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
802 pathOffset += 1; 837 pathOffset += 1;
803 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("coordinate/v1/")); 838 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("coordinate/v1/"));
(...skipping 23 matching lines...) Expand all
827 var keyvalue = part.split("="); 862 var keyvalue = part.split("=");
828 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 863 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
829 } 864 }
830 } 865 }
831 866
832 867
833 var h = { 868 var h = {
834 "content-type" : "application/json; charset=utf-8", 869 "content-type" : "application/json; charset=utf-8",
835 }; 870 };
836 var resp = convert.JSON.encode(buildCustomFieldDefListResponse()); 871 var resp = convert.JSON.encode(buildCustomFieldDefListResponse());
837 return new async.Future.value(common_test.stringResponse(200, h, resp)); 872 return new async.Future.value(stringResponse(200, h, resp));
838 }), true); 873 }), true);
839 res.list(arg_teamId).then(unittest.expectAsync(((api.CustomFieldDefListRes ponse response) { 874 res.list(arg_teamId).then(unittest.expectAsync(((api.CustomFieldDefListRes ponse response) {
840 checkCustomFieldDefListResponse(response); 875 checkCustomFieldDefListResponse(response);
841 }))); 876 })));
842 }); 877 });
843 878
844 }); 879 });
845 880
846 881
847 unittest.group("resource-JobsResourceApi", () { 882 unittest.group("resource-JobsResourceApi", () {
848 unittest.test("method--get", () { 883 unittest.test("method--get", () {
849 884
850 var mock = new common_test.HttpServerMock(); 885 var mock = new HttpServerMock();
851 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; 886 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs;
852 var arg_teamId = "foo"; 887 var arg_teamId = "foo";
853 var arg_jobId = "foo"; 888 var arg_jobId = "foo";
854 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 889 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
855 var path = (req.url).path; 890 var path = (req.url).path;
856 var pathOffset = 0; 891 var pathOffset = 0;
857 var index; 892 var index;
858 var subPart; 893 var subPart;
859 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 894 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
860 pathOffset += 1; 895 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
888 var keyvalue = part.split("="); 923 var keyvalue = part.split("=");
889 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 924 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
890 } 925 }
891 } 926 }
892 927
893 928
894 var h = { 929 var h = {
895 "content-type" : "application/json; charset=utf-8", 930 "content-type" : "application/json; charset=utf-8",
896 }; 931 };
897 var resp = convert.JSON.encode(buildJob()); 932 var resp = convert.JSON.encode(buildJob());
898 return new async.Future.value(common_test.stringResponse(200, h, resp)); 933 return new async.Future.value(stringResponse(200, h, resp));
899 }), true); 934 }), true);
900 res.get(arg_teamId, arg_jobId).then(unittest.expectAsync(((api.Job respons e) { 935 res.get(arg_teamId, arg_jobId).then(unittest.expectAsync(((api.Job respons e) {
901 checkJob(response); 936 checkJob(response);
902 }))); 937 })));
903 }); 938 });
904 939
905 unittest.test("method--insert", () { 940 unittest.test("method--insert", () {
906 941
907 var mock = new common_test.HttpServerMock(); 942 var mock = new HttpServerMock();
908 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; 943 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs;
909 var arg_request = buildJob(); 944 var arg_request = buildJob();
910 var arg_teamId = "foo"; 945 var arg_teamId = "foo";
911 var arg_address = "foo"; 946 var arg_address = "foo";
912 var arg_lat = 42.0; 947 var arg_lat = 42.0;
913 var arg_lng = 42.0; 948 var arg_lng = 42.0;
914 var arg_title = "foo"; 949 var arg_title = "foo";
915 var arg_assignee = "foo"; 950 var arg_assignee = "foo";
916 var arg_customField = buildUnnamed757(); 951 var arg_customField = buildUnnamed629();
917 var arg_customerName = "foo"; 952 var arg_customerName = "foo";
918 var arg_customerPhoneNumber = "foo"; 953 var arg_customerPhoneNumber = "foo";
919 var arg_note = "foo"; 954 var arg_note = "foo";
920 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 955 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
921 var obj = new api.Job.fromJson(json); 956 var obj = new api.Job.fromJson(json);
922 checkJob(obj); 957 checkJob(obj);
923 958
924 var path = (req.url).path; 959 var path = (req.url).path;
925 var pathOffset = 0; 960 var pathOffset = 0;
926 var index; 961 var index;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 unittest.expect(queryMap["customField"], unittest.equals(arg_customField )); 998 unittest.expect(queryMap["customField"], unittest.equals(arg_customField ));
964 unittest.expect(queryMap["customerName"].first, unittest.equals(arg_cust omerName)); 999 unittest.expect(queryMap["customerName"].first, unittest.equals(arg_cust omerName));
965 unittest.expect(queryMap["customerPhoneNumber"].first, unittest.equals(a rg_customerPhoneNumber)); 1000 unittest.expect(queryMap["customerPhoneNumber"].first, unittest.equals(a rg_customerPhoneNumber));
966 unittest.expect(queryMap["note"].first, unittest.equals(arg_note)); 1001 unittest.expect(queryMap["note"].first, unittest.equals(arg_note));
967 1002
968 1003
969 var h = { 1004 var h = {
970 "content-type" : "application/json; charset=utf-8", 1005 "content-type" : "application/json; charset=utf-8",
971 }; 1006 };
972 var resp = convert.JSON.encode(buildJob()); 1007 var resp = convert.JSON.encode(buildJob());
973 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1008 return new async.Future.value(stringResponse(200, h, resp));
974 }), true); 1009 }), true);
975 res.insert(arg_request, arg_teamId, arg_address, arg_lat, arg_lng, arg_tit le, assignee: arg_assignee, customField: arg_customField, customerName: arg_cust omerName, customerPhoneNumber: arg_customerPhoneNumber, note: arg_note).then(uni ttest.expectAsync(((api.Job response) { 1010 res.insert(arg_request, arg_teamId, arg_address, arg_lat, arg_lng, arg_tit le, assignee: arg_assignee, customField: arg_customField, customerName: arg_cust omerName, customerPhoneNumber: arg_customerPhoneNumber, note: arg_note).then(uni ttest.expectAsync(((api.Job response) {
976 checkJob(response); 1011 checkJob(response);
977 }))); 1012 })));
978 }); 1013 });
979 1014
980 unittest.test("method--list", () { 1015 unittest.test("method--list", () {
981 1016
982 var mock = new common_test.HttpServerMock(); 1017 var mock = new HttpServerMock();
983 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; 1018 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs;
984 var arg_teamId = "foo"; 1019 var arg_teamId = "foo";
985 var arg_maxResults = 42; 1020 var arg_maxResults = 42;
986 var arg_minModifiedTimestampMs = "foo"; 1021 var arg_minModifiedTimestampMs = "foo";
987 var arg_pageToken = "foo"; 1022 var arg_pageToken = "foo";
988 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1023 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
989 var path = (req.url).path; 1024 var path = (req.url).path;
990 var pathOffset = 0; 1025 var pathOffset = 0;
991 var index; 1026 var index;
992 var subPart; 1027 var subPart;
(...skipping 29 matching lines...) Expand all
1022 } 1057 }
1023 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 1058 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
1024 unittest.expect(queryMap["minModifiedTimestampMs"].first, unittest.equal s(arg_minModifiedTimestampMs)); 1059 unittest.expect(queryMap["minModifiedTimestampMs"].first, unittest.equal s(arg_minModifiedTimestampMs));
1025 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1060 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1026 1061
1027 1062
1028 var h = { 1063 var h = {
1029 "content-type" : "application/json; charset=utf-8", 1064 "content-type" : "application/json; charset=utf-8",
1030 }; 1065 };
1031 var resp = convert.JSON.encode(buildJobListResponse()); 1066 var resp = convert.JSON.encode(buildJobListResponse());
1032 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1067 return new async.Future.value(stringResponse(200, h, resp));
1033 }), true); 1068 }), true);
1034 res.list(arg_teamId, maxResults: arg_maxResults, minModifiedTimestampMs: a rg_minModifiedTimestampMs, pageToken: arg_pageToken).then(unittest.expectAsync(( (api.JobListResponse response) { 1069 res.list(arg_teamId, maxResults: arg_maxResults, minModifiedTimestampMs: a rg_minModifiedTimestampMs, pageToken: arg_pageToken).then(unittest.expectAsync(( (api.JobListResponse response) {
1035 checkJobListResponse(response); 1070 checkJobListResponse(response);
1036 }))); 1071 })));
1037 }); 1072 });
1038 1073
1039 unittest.test("method--patch", () { 1074 unittest.test("method--patch", () {
1040 1075
1041 var mock = new common_test.HttpServerMock(); 1076 var mock = new HttpServerMock();
1042 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; 1077 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs;
1043 var arg_request = buildJob(); 1078 var arg_request = buildJob();
1044 var arg_teamId = "foo"; 1079 var arg_teamId = "foo";
1045 var arg_jobId = "foo"; 1080 var arg_jobId = "foo";
1046 var arg_address = "foo"; 1081 var arg_address = "foo";
1047 var arg_assignee = "foo"; 1082 var arg_assignee = "foo";
1048 var arg_customField = buildUnnamed758(); 1083 var arg_customField = buildUnnamed630();
1049 var arg_customerName = "foo"; 1084 var arg_customerName = "foo";
1050 var arg_customerPhoneNumber = "foo"; 1085 var arg_customerPhoneNumber = "foo";
1051 var arg_lat = 42.0; 1086 var arg_lat = 42.0;
1052 var arg_lng = 42.0; 1087 var arg_lng = 42.0;
1053 var arg_note = "foo"; 1088 var arg_note = "foo";
1054 var arg_progress = "foo"; 1089 var arg_progress = "foo";
1055 var arg_title = "foo"; 1090 var arg_title = "foo";
1056 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1091 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1057 var obj = new api.Job.fromJson(json); 1092 var obj = new api.Job.fromJson(json);
1058 checkJob(obj); 1093 checkJob(obj);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 unittest.expect(core.num.parse(queryMap["lng"].first), unittest.equals(a rg_lng)); 1138 unittest.expect(core.num.parse(queryMap["lng"].first), unittest.equals(a rg_lng));
1104 unittest.expect(queryMap["note"].first, unittest.equals(arg_note)); 1139 unittest.expect(queryMap["note"].first, unittest.equals(arg_note));
1105 unittest.expect(queryMap["progress"].first, unittest.equals(arg_progress )); 1140 unittest.expect(queryMap["progress"].first, unittest.equals(arg_progress ));
1106 unittest.expect(queryMap["title"].first, unittest.equals(arg_title)); 1141 unittest.expect(queryMap["title"].first, unittest.equals(arg_title));
1107 1142
1108 1143
1109 var h = { 1144 var h = {
1110 "content-type" : "application/json; charset=utf-8", 1145 "content-type" : "application/json; charset=utf-8",
1111 }; 1146 };
1112 var resp = convert.JSON.encode(buildJob()); 1147 var resp = convert.JSON.encode(buildJob());
1113 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1148 return new async.Future.value(stringResponse(200, h, resp));
1114 }), true); 1149 }), true);
1115 res.patch(arg_request, arg_teamId, arg_jobId, address: arg_address, assign ee: arg_assignee, customField: arg_customField, customerName: arg_customerName, customerPhoneNumber: arg_customerPhoneNumber, lat: arg_lat, lng: arg_lng, note: arg_note, progress: arg_progress, title: arg_title).then(unittest.expectAsync((( api.Job response) { 1150 res.patch(arg_request, arg_teamId, arg_jobId, address: arg_address, assign ee: arg_assignee, customField: arg_customField, customerName: arg_customerName, customerPhoneNumber: arg_customerPhoneNumber, lat: arg_lat, lng: arg_lng, note: arg_note, progress: arg_progress, title: arg_title).then(unittest.expectAsync((( api.Job response) {
1116 checkJob(response); 1151 checkJob(response);
1117 }))); 1152 })));
1118 }); 1153 });
1119 1154
1120 unittest.test("method--update", () { 1155 unittest.test("method--update", () {
1121 1156
1122 var mock = new common_test.HttpServerMock(); 1157 var mock = new HttpServerMock();
1123 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; 1158 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs;
1124 var arg_request = buildJob(); 1159 var arg_request = buildJob();
1125 var arg_teamId = "foo"; 1160 var arg_teamId = "foo";
1126 var arg_jobId = "foo"; 1161 var arg_jobId = "foo";
1127 var arg_address = "foo"; 1162 var arg_address = "foo";
1128 var arg_assignee = "foo"; 1163 var arg_assignee = "foo";
1129 var arg_customField = buildUnnamed759(); 1164 var arg_customField = buildUnnamed631();
1130 var arg_customerName = "foo"; 1165 var arg_customerName = "foo";
1131 var arg_customerPhoneNumber = "foo"; 1166 var arg_customerPhoneNumber = "foo";
1132 var arg_lat = 42.0; 1167 var arg_lat = 42.0;
1133 var arg_lng = 42.0; 1168 var arg_lng = 42.0;
1134 var arg_note = "foo"; 1169 var arg_note = "foo";
1135 var arg_progress = "foo"; 1170 var arg_progress = "foo";
1136 var arg_title = "foo"; 1171 var arg_title = "foo";
1137 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1172 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1138 var obj = new api.Job.fromJson(json); 1173 var obj = new api.Job.fromJson(json);
1139 checkJob(obj); 1174 checkJob(obj);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 unittest.expect(core.num.parse(queryMap["lng"].first), unittest.equals(a rg_lng)); 1219 unittest.expect(core.num.parse(queryMap["lng"].first), unittest.equals(a rg_lng));
1185 unittest.expect(queryMap["note"].first, unittest.equals(arg_note)); 1220 unittest.expect(queryMap["note"].first, unittest.equals(arg_note));
1186 unittest.expect(queryMap["progress"].first, unittest.equals(arg_progress )); 1221 unittest.expect(queryMap["progress"].first, unittest.equals(arg_progress ));
1187 unittest.expect(queryMap["title"].first, unittest.equals(arg_title)); 1222 unittest.expect(queryMap["title"].first, unittest.equals(arg_title));
1188 1223
1189 1224
1190 var h = { 1225 var h = {
1191 "content-type" : "application/json; charset=utf-8", 1226 "content-type" : "application/json; charset=utf-8",
1192 }; 1227 };
1193 var resp = convert.JSON.encode(buildJob()); 1228 var resp = convert.JSON.encode(buildJob());
1194 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1229 return new async.Future.value(stringResponse(200, h, resp));
1195 }), true); 1230 }), true);
1196 res.update(arg_request, arg_teamId, arg_jobId, address: arg_address, assig nee: arg_assignee, customField: arg_customField, customerName: arg_customerName, customerPhoneNumber: arg_customerPhoneNumber, lat: arg_lat, lng: arg_lng, note: arg_note, progress: arg_progress, title: arg_title).then(unittest.expectAsync(( (api.Job response) { 1231 res.update(arg_request, arg_teamId, arg_jobId, address: arg_address, assig nee: arg_assignee, customField: arg_customField, customerName: arg_customerName, customerPhoneNumber: arg_customerPhoneNumber, lat: arg_lat, lng: arg_lng, note: arg_note, progress: arg_progress, title: arg_title).then(unittest.expectAsync(( (api.Job response) {
1197 checkJob(response); 1232 checkJob(response);
1198 }))); 1233 })));
1199 }); 1234 });
1200 1235
1201 }); 1236 });
1202 1237
1203 1238
1204 unittest.group("resource-LocationResourceApi", () { 1239 unittest.group("resource-LocationResourceApi", () {
1205 unittest.test("method--list", () { 1240 unittest.test("method--list", () {
1206 1241
1207 var mock = new common_test.HttpServerMock(); 1242 var mock = new HttpServerMock();
1208 api.LocationResourceApi res = new api.CoordinateApi(mock).location; 1243 api.LocationResourceApi res = new api.CoordinateApi(mock).location;
1209 var arg_teamId = "foo"; 1244 var arg_teamId = "foo";
1210 var arg_workerEmail = "foo"; 1245 var arg_workerEmail = "foo";
1211 var arg_startTimestampMs = "foo"; 1246 var arg_startTimestampMs = "foo";
1212 var arg_maxResults = 42; 1247 var arg_maxResults = 42;
1213 var arg_pageToken = "foo"; 1248 var arg_pageToken = "foo";
1214 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1249 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1215 var path = (req.url).path; 1250 var path = (req.url).path;
1216 var pathOffset = 0; 1251 var pathOffset = 0;
1217 var index; 1252 var index;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 } 1290 }
1256 unittest.expect(queryMap["startTimestampMs"].first, unittest.equals(arg_ startTimestampMs)); 1291 unittest.expect(queryMap["startTimestampMs"].first, unittest.equals(arg_ startTimestampMs));
1257 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 1292 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
1258 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1293 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1259 1294
1260 1295
1261 var h = { 1296 var h = {
1262 "content-type" : "application/json; charset=utf-8", 1297 "content-type" : "application/json; charset=utf-8",
1263 }; 1298 };
1264 var resp = convert.JSON.encode(buildLocationListResponse()); 1299 var resp = convert.JSON.encode(buildLocationListResponse());
1265 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1300 return new async.Future.value(stringResponse(200, h, resp));
1266 }), true); 1301 }), true);
1267 res.list(arg_teamId, arg_workerEmail, arg_startTimestampMs, maxResults: ar g_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Location ListResponse response) { 1302 res.list(arg_teamId, arg_workerEmail, arg_startTimestampMs, maxResults: ar g_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Location ListResponse response) {
1268 checkLocationListResponse(response); 1303 checkLocationListResponse(response);
1269 }))); 1304 })));
1270 }); 1305 });
1271 1306
1272 }); 1307 });
1273 1308
1274 1309
1275 unittest.group("resource-ScheduleResourceApi", () { 1310 unittest.group("resource-ScheduleResourceApi", () {
1276 unittest.test("method--get", () { 1311 unittest.test("method--get", () {
1277 1312
1278 var mock = new common_test.HttpServerMock(); 1313 var mock = new HttpServerMock();
1279 api.ScheduleResourceApi res = new api.CoordinateApi(mock).schedule; 1314 api.ScheduleResourceApi res = new api.CoordinateApi(mock).schedule;
1280 var arg_teamId = "foo"; 1315 var arg_teamId = "foo";
1281 var arg_jobId = "foo"; 1316 var arg_jobId = "foo";
1282 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1317 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1283 var path = (req.url).path; 1318 var path = (req.url).path;
1284 var pathOffset = 0; 1319 var pathOffset = 0;
1285 var index; 1320 var index;
1286 var subPart; 1321 var subPart;
1287 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1322 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1288 pathOffset += 1; 1323 pathOffset += 1;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 var keyvalue = part.split("="); 1355 var keyvalue = part.split("=");
1321 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1356 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1322 } 1357 }
1323 } 1358 }
1324 1359
1325 1360
1326 var h = { 1361 var h = {
1327 "content-type" : "application/json; charset=utf-8", 1362 "content-type" : "application/json; charset=utf-8",
1328 }; 1363 };
1329 var resp = convert.JSON.encode(buildSchedule()); 1364 var resp = convert.JSON.encode(buildSchedule());
1330 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1365 return new async.Future.value(stringResponse(200, h, resp));
1331 }), true); 1366 }), true);
1332 res.get(arg_teamId, arg_jobId).then(unittest.expectAsync(((api.Schedule re sponse) { 1367 res.get(arg_teamId, arg_jobId).then(unittest.expectAsync(((api.Schedule re sponse) {
1333 checkSchedule(response); 1368 checkSchedule(response);
1334 }))); 1369 })));
1335 }); 1370 });
1336 1371
1337 unittest.test("method--patch", () { 1372 unittest.test("method--patch", () {
1338 1373
1339 var mock = new common_test.HttpServerMock(); 1374 var mock = new HttpServerMock();
1340 api.ScheduleResourceApi res = new api.CoordinateApi(mock).schedule; 1375 api.ScheduleResourceApi res = new api.CoordinateApi(mock).schedule;
1341 var arg_request = buildSchedule(); 1376 var arg_request = buildSchedule();
1342 var arg_teamId = "foo"; 1377 var arg_teamId = "foo";
1343 var arg_jobId = "foo"; 1378 var arg_jobId = "foo";
1344 var arg_allDay = true; 1379 var arg_allDay = true;
1345 var arg_duration = "foo"; 1380 var arg_duration = "foo";
1346 var arg_endTime = "foo"; 1381 var arg_endTime = "foo";
1347 var arg_startTime = "foo"; 1382 var arg_startTime = "foo";
1348 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1383 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1349 var obj = new api.Schedule.fromJson(json); 1384 var obj = new api.Schedule.fromJson(json);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 unittest.expect(queryMap["allDay"].first, unittest.equals("$arg_allDay") ); 1428 unittest.expect(queryMap["allDay"].first, unittest.equals("$arg_allDay") );
1394 unittest.expect(queryMap["duration"].first, unittest.equals(arg_duration )); 1429 unittest.expect(queryMap["duration"].first, unittest.equals(arg_duration ));
1395 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)) ; 1430 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)) ;
1396 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me)); 1431 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
1397 1432
1398 1433
1399 var h = { 1434 var h = {
1400 "content-type" : "application/json; charset=utf-8", 1435 "content-type" : "application/json; charset=utf-8",
1401 }; 1436 };
1402 var resp = convert.JSON.encode(buildSchedule()); 1437 var resp = convert.JSON.encode(buildSchedule());
1403 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1438 return new async.Future.value(stringResponse(200, h, resp));
1404 }), true); 1439 }), true);
1405 res.patch(arg_request, arg_teamId, arg_jobId, allDay: arg_allDay, duration : arg_duration, endTime: arg_endTime, startTime: arg_startTime).then(unittest.ex pectAsync(((api.Schedule response) { 1440 res.patch(arg_request, arg_teamId, arg_jobId, allDay: arg_allDay, duration : arg_duration, endTime: arg_endTime, startTime: arg_startTime).then(unittest.ex pectAsync(((api.Schedule response) {
1406 checkSchedule(response); 1441 checkSchedule(response);
1407 }))); 1442 })));
1408 }); 1443 });
1409 1444
1410 unittest.test("method--update", () { 1445 unittest.test("method--update", () {
1411 1446
1412 var mock = new common_test.HttpServerMock(); 1447 var mock = new HttpServerMock();
1413 api.ScheduleResourceApi res = new api.CoordinateApi(mock).schedule; 1448 api.ScheduleResourceApi res = new api.CoordinateApi(mock).schedule;
1414 var arg_request = buildSchedule(); 1449 var arg_request = buildSchedule();
1415 var arg_teamId = "foo"; 1450 var arg_teamId = "foo";
1416 var arg_jobId = "foo"; 1451 var arg_jobId = "foo";
1417 var arg_allDay = true; 1452 var arg_allDay = true;
1418 var arg_duration = "foo"; 1453 var arg_duration = "foo";
1419 var arg_endTime = "foo"; 1454 var arg_endTime = "foo";
1420 var arg_startTime = "foo"; 1455 var arg_startTime = "foo";
1421 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1456 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1422 var obj = new api.Schedule.fromJson(json); 1457 var obj = new api.Schedule.fromJson(json);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 unittest.expect(queryMap["allDay"].first, unittest.equals("$arg_allDay") ); 1501 unittest.expect(queryMap["allDay"].first, unittest.equals("$arg_allDay") );
1467 unittest.expect(queryMap["duration"].first, unittest.equals(arg_duration )); 1502 unittest.expect(queryMap["duration"].first, unittest.equals(arg_duration ));
1468 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)) ; 1503 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)) ;
1469 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me)); 1504 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
1470 1505
1471 1506
1472 var h = { 1507 var h = {
1473 "content-type" : "application/json; charset=utf-8", 1508 "content-type" : "application/json; charset=utf-8",
1474 }; 1509 };
1475 var resp = convert.JSON.encode(buildSchedule()); 1510 var resp = convert.JSON.encode(buildSchedule());
1476 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1511 return new async.Future.value(stringResponse(200, h, resp));
1477 }), true); 1512 }), true);
1478 res.update(arg_request, arg_teamId, arg_jobId, allDay: arg_allDay, duratio n: arg_duration, endTime: arg_endTime, startTime: arg_startTime).then(unittest.e xpectAsync(((api.Schedule response) { 1513 res.update(arg_request, arg_teamId, arg_jobId, allDay: arg_allDay, duratio n: arg_duration, endTime: arg_endTime, startTime: arg_startTime).then(unittest.e xpectAsync(((api.Schedule response) {
1479 checkSchedule(response); 1514 checkSchedule(response);
1480 }))); 1515 })));
1481 }); 1516 });
1482 1517
1483 }); 1518 });
1484 1519
1485 1520
1486 unittest.group("resource-TeamResourceApi", () { 1521 unittest.group("resource-TeamResourceApi", () {
1487 unittest.test("method--list", () { 1522 unittest.test("method--list", () {
1488 1523
1489 var mock = new common_test.HttpServerMock(); 1524 var mock = new HttpServerMock();
1490 api.TeamResourceApi res = new api.CoordinateApi(mock).team; 1525 api.TeamResourceApi res = new api.CoordinateApi(mock).team;
1491 var arg_admin = true; 1526 var arg_admin = true;
1492 var arg_dispatcher = true; 1527 var arg_dispatcher = true;
1493 var arg_worker = true; 1528 var arg_worker = true;
1494 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1529 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1495 var path = (req.url).path; 1530 var path = (req.url).path;
1496 var pathOffset = 0; 1531 var pathOffset = 0;
1497 var index; 1532 var index;
1498 var subPart; 1533 var subPart;
1499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 21 matching lines...) Expand all
1521 } 1556 }
1522 unittest.expect(queryMap["admin"].first, unittest.equals("$arg_admin")); 1557 unittest.expect(queryMap["admin"].first, unittest.equals("$arg_admin"));
1523 unittest.expect(queryMap["dispatcher"].first, unittest.equals("$arg_disp atcher")); 1558 unittest.expect(queryMap["dispatcher"].first, unittest.equals("$arg_disp atcher"));
1524 unittest.expect(queryMap["worker"].first, unittest.equals("$arg_worker") ); 1559 unittest.expect(queryMap["worker"].first, unittest.equals("$arg_worker") );
1525 1560
1526 1561
1527 var h = { 1562 var h = {
1528 "content-type" : "application/json; charset=utf-8", 1563 "content-type" : "application/json; charset=utf-8",
1529 }; 1564 };
1530 var resp = convert.JSON.encode(buildTeamListResponse()); 1565 var resp = convert.JSON.encode(buildTeamListResponse());
1531 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1566 return new async.Future.value(stringResponse(200, h, resp));
1532 }), true); 1567 }), true);
1533 res.list(admin: arg_admin, dispatcher: arg_dispatcher, worker: arg_worker) .then(unittest.expectAsync(((api.TeamListResponse response) { 1568 res.list(admin: arg_admin, dispatcher: arg_dispatcher, worker: arg_worker) .then(unittest.expectAsync(((api.TeamListResponse response) {
1534 checkTeamListResponse(response); 1569 checkTeamListResponse(response);
1535 }))); 1570 })));
1536 }); 1571 });
1537 1572
1538 }); 1573 });
1539 1574
1540 1575
1541 unittest.group("resource-WorkerResourceApi", () { 1576 unittest.group("resource-WorkerResourceApi", () {
1542 unittest.test("method--list", () { 1577 unittest.test("method--list", () {
1543 1578
1544 var mock = new common_test.HttpServerMock(); 1579 var mock = new HttpServerMock();
1545 api.WorkerResourceApi res = new api.CoordinateApi(mock).worker; 1580 api.WorkerResourceApi res = new api.CoordinateApi(mock).worker;
1546 var arg_teamId = "foo"; 1581 var arg_teamId = "foo";
1547 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1582 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1548 var path = (req.url).path; 1583 var path = (req.url).path;
1549 var pathOffset = 0; 1584 var pathOffset = 0;
1550 var index; 1585 var index;
1551 var subPart; 1586 var subPart;
1552 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1587 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1553 pathOffset += 1; 1588 pathOffset += 1;
1554 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("coordinate/v1/")); 1589 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("coordinate/v1/"));
(...skipping 23 matching lines...) Expand all
1578 var keyvalue = part.split("="); 1613 var keyvalue = part.split("=");
1579 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1614 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1580 } 1615 }
1581 } 1616 }
1582 1617
1583 1618
1584 var h = { 1619 var h = {
1585 "content-type" : "application/json; charset=utf-8", 1620 "content-type" : "application/json; charset=utf-8",
1586 }; 1621 };
1587 var resp = convert.JSON.encode(buildWorkerListResponse()); 1622 var resp = convert.JSON.encode(buildWorkerListResponse());
1588 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1623 return new async.Future.value(stringResponse(200, h, resp));
1589 }), true); 1624 }), true);
1590 res.list(arg_teamId).then(unittest.expectAsync(((api.WorkerListResponse re sponse) { 1625 res.list(arg_teamId).then(unittest.expectAsync(((api.WorkerListResponse re sponse) {
1591 checkWorkerListResponse(response); 1626 checkWorkerListResponse(response);
1592 }))); 1627 })));
1593 }); 1628 });
1594 1629
1595 }); 1630 });
1596 1631
1597 1632
1598 } 1633 }
1599 1634
OLDNEW
« no previous file with comments | « generated/googleapis/test/content/v2_test.dart ('k') | generated/googleapis/test/customsearch/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698