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

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

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 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.clouddebugger.v2.test; 1 library googleapis.clouddebugger.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 checkAliasContext(api.AliasContext o) { 66 checkAliasContext(api.AliasContext o) {
67 buildCounterAliasContext++; 67 buildCounterAliasContext++;
68 if (buildCounterAliasContext < 3) { 68 if (buildCounterAliasContext < 3) {
69 unittest.expect(o.kind, unittest.equals('foo')); 69 unittest.expect(o.kind, unittest.equals('foo'));
70 unittest.expect(o.name, unittest.equals('foo')); 70 unittest.expect(o.name, unittest.equals('foo'));
71 } 71 }
72 buildCounterAliasContext--; 72 buildCounterAliasContext--;
73 } 73 }
74 74
75 buildUnnamed1116() { 75 buildUnnamed1375() {
76 var o = new core.List<api.Variable>(); 76 var o = new core.List<api.Variable>();
77 o.add(buildVariable()); 77 o.add(buildVariable());
78 o.add(buildVariable()); 78 o.add(buildVariable());
79 return o; 79 return o;
80 } 80 }
81 81
82 checkUnnamed1116(core.List<api.Variable> o) { 82 checkUnnamed1375(core.List<api.Variable> o) {
83 unittest.expect(o, unittest.hasLength(2)); 83 unittest.expect(o, unittest.hasLength(2));
84 checkVariable(o[0]); 84 checkVariable(o[0]);
85 checkVariable(o[1]); 85 checkVariable(o[1]);
86 } 86 }
87 87
88 buildUnnamed1117() { 88 buildUnnamed1376() {
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 checkUnnamed1117(core.List<core.String> o) { 95 checkUnnamed1376(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 buildUnnamed1118() { 101 buildUnnamed1377() {
102 var o = new core.Map<core.String, core.String>();
103 o["x"] = "foo";
104 o["y"] = "foo";
105 return o;
106 }
107
108 checkUnnamed1377(core.Map<core.String, core.String> o) {
109 unittest.expect(o, unittest.hasLength(2));
110 unittest.expect(o["x"], unittest.equals('foo'));
111 unittest.expect(o["y"], unittest.equals('foo'));
112 }
113
114 buildUnnamed1378() {
102 var o = new core.List<api.StackFrame>(); 115 var o = new core.List<api.StackFrame>();
103 o.add(buildStackFrame()); 116 o.add(buildStackFrame());
104 o.add(buildStackFrame()); 117 o.add(buildStackFrame());
105 return o; 118 return o;
106 } 119 }
107 120
108 checkUnnamed1118(core.List<api.StackFrame> o) { 121 checkUnnamed1378(core.List<api.StackFrame> o) {
109 unittest.expect(o, unittest.hasLength(2)); 122 unittest.expect(o, unittest.hasLength(2));
110 checkStackFrame(o[0]); 123 checkStackFrame(o[0]);
111 checkStackFrame(o[1]); 124 checkStackFrame(o[1]);
112 } 125 }
113 126
114 buildUnnamed1119() { 127 buildUnnamed1379() {
115 var o = new core.List<api.Variable>(); 128 var o = new core.List<api.Variable>();
116 o.add(buildVariable()); 129 o.add(buildVariable());
117 o.add(buildVariable()); 130 o.add(buildVariable());
118 return o; 131 return o;
119 } 132 }
120 133
121 checkUnnamed1119(core.List<api.Variable> o) { 134 checkUnnamed1379(core.List<api.Variable> o) {
122 unittest.expect(o, unittest.hasLength(2)); 135 unittest.expect(o, unittest.hasLength(2));
123 checkVariable(o[0]); 136 checkVariable(o[0]);
124 checkVariable(o[1]); 137 checkVariable(o[1]);
125 } 138 }
126 139
127 core.int buildCounterBreakpoint = 0; 140 core.int buildCounterBreakpoint = 0;
128 buildBreakpoint() { 141 buildBreakpoint() {
129 var o = new api.Breakpoint(); 142 var o = new api.Breakpoint();
130 buildCounterBreakpoint++; 143 buildCounterBreakpoint++;
131 if (buildCounterBreakpoint < 3) { 144 if (buildCounterBreakpoint < 3) {
132 o.action = "foo"; 145 o.action = "foo";
133 o.condition = "foo"; 146 o.condition = "foo";
134 o.createTime = "foo"; 147 o.createTime = "foo";
135 o.evaluatedExpressions = buildUnnamed1116(); 148 o.evaluatedExpressions = buildUnnamed1375();
136 o.expressions = buildUnnamed1117(); 149 o.expressions = buildUnnamed1376();
137 o.finalTime = "foo"; 150 o.finalTime = "foo";
138 o.id = "foo"; 151 o.id = "foo";
139 o.isFinalState = true; 152 o.isFinalState = true;
153 o.labels = buildUnnamed1377();
140 o.location = buildSourceLocation(); 154 o.location = buildSourceLocation();
141 o.logLevel = "foo"; 155 o.logLevel = "foo";
142 o.logMessageFormat = "foo"; 156 o.logMessageFormat = "foo";
143 o.stackFrames = buildUnnamed1118(); 157 o.stackFrames = buildUnnamed1378();
144 o.status = buildStatusMessage(); 158 o.status = buildStatusMessage();
145 o.userEmail = "foo"; 159 o.userEmail = "foo";
146 o.variableTable = buildUnnamed1119(); 160 o.variableTable = buildUnnamed1379();
147 } 161 }
148 buildCounterBreakpoint--; 162 buildCounterBreakpoint--;
149 return o; 163 return o;
150 } 164 }
151 165
152 checkBreakpoint(api.Breakpoint o) { 166 checkBreakpoint(api.Breakpoint o) {
153 buildCounterBreakpoint++; 167 buildCounterBreakpoint++;
154 if (buildCounterBreakpoint < 3) { 168 if (buildCounterBreakpoint < 3) {
155 unittest.expect(o.action, unittest.equals('foo')); 169 unittest.expect(o.action, unittest.equals('foo'));
156 unittest.expect(o.condition, unittest.equals('foo')); 170 unittest.expect(o.condition, unittest.equals('foo'));
157 unittest.expect(o.createTime, unittest.equals('foo')); 171 unittest.expect(o.createTime, unittest.equals('foo'));
158 checkUnnamed1116(o.evaluatedExpressions); 172 checkUnnamed1375(o.evaluatedExpressions);
159 checkUnnamed1117(o.expressions); 173 checkUnnamed1376(o.expressions);
160 unittest.expect(o.finalTime, unittest.equals('foo')); 174 unittest.expect(o.finalTime, unittest.equals('foo'));
161 unittest.expect(o.id, unittest.equals('foo')); 175 unittest.expect(o.id, unittest.equals('foo'));
162 unittest.expect(o.isFinalState, unittest.isTrue); 176 unittest.expect(o.isFinalState, unittest.isTrue);
177 checkUnnamed1377(o.labels);
163 checkSourceLocation(o.location); 178 checkSourceLocation(o.location);
164 unittest.expect(o.logLevel, unittest.equals('foo')); 179 unittest.expect(o.logLevel, unittest.equals('foo'));
165 unittest.expect(o.logMessageFormat, unittest.equals('foo')); 180 unittest.expect(o.logMessageFormat, unittest.equals('foo'));
166 checkUnnamed1118(o.stackFrames); 181 checkUnnamed1378(o.stackFrames);
167 checkStatusMessage(o.status); 182 checkStatusMessage(o.status);
168 unittest.expect(o.userEmail, unittest.equals('foo')); 183 unittest.expect(o.userEmail, unittest.equals('foo'));
169 checkUnnamed1119(o.variableTable); 184 checkUnnamed1379(o.variableTable);
170 } 185 }
171 buildCounterBreakpoint--; 186 buildCounterBreakpoint--;
172 } 187 }
173 188
174 core.int buildCounterCloudRepoSourceContext = 0; 189 core.int buildCounterCloudRepoSourceContext = 0;
175 buildCloudRepoSourceContext() { 190 buildCloudRepoSourceContext() {
176 var o = new api.CloudRepoSourceContext(); 191 var o = new api.CloudRepoSourceContext();
177 buildCounterCloudRepoSourceContext++; 192 buildCounterCloudRepoSourceContext++;
178 if (buildCounterCloudRepoSourceContext < 3) { 193 if (buildCounterCloudRepoSourceContext < 3) {
179 o.aliasContext = buildAliasContext(); 194 o.aliasContext = buildAliasContext();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 246
232 checkCloudWorkspaceSourceContext(api.CloudWorkspaceSourceContext o) { 247 checkCloudWorkspaceSourceContext(api.CloudWorkspaceSourceContext o) {
233 buildCounterCloudWorkspaceSourceContext++; 248 buildCounterCloudWorkspaceSourceContext++;
234 if (buildCounterCloudWorkspaceSourceContext < 3) { 249 if (buildCounterCloudWorkspaceSourceContext < 3) {
235 unittest.expect(o.snapshotId, unittest.equals('foo')); 250 unittest.expect(o.snapshotId, unittest.equals('foo'));
236 checkCloudWorkspaceId(o.workspaceId); 251 checkCloudWorkspaceId(o.workspaceId);
237 } 252 }
238 buildCounterCloudWorkspaceSourceContext--; 253 buildCounterCloudWorkspaceSourceContext--;
239 } 254 }
240 255
241 buildUnnamed1120() { 256 buildUnnamed1380() {
242 var o = new core.List<api.ExtendedSourceContext>(); 257 var o = new core.List<api.ExtendedSourceContext>();
243 o.add(buildExtendedSourceContext()); 258 o.add(buildExtendedSourceContext());
244 o.add(buildExtendedSourceContext()); 259 o.add(buildExtendedSourceContext());
245 return o; 260 return o;
246 } 261 }
247 262
248 checkUnnamed1120(core.List<api.ExtendedSourceContext> o) { 263 checkUnnamed1380(core.List<api.ExtendedSourceContext> o) {
249 unittest.expect(o, unittest.hasLength(2)); 264 unittest.expect(o, unittest.hasLength(2));
250 checkExtendedSourceContext(o[0]); 265 checkExtendedSourceContext(o[0]);
251 checkExtendedSourceContext(o[1]); 266 checkExtendedSourceContext(o[1]);
252 } 267 }
253 268
254 buildUnnamed1121() { 269 buildUnnamed1381() {
255 var o = new core.Map<core.String, core.String>(); 270 var o = new core.Map<core.String, core.String>();
256 o["x"] = "foo"; 271 o["x"] = "foo";
257 o["y"] = "foo"; 272 o["y"] = "foo";
258 return o; 273 return o;
259 } 274 }
260 275
261 checkUnnamed1121(core.Map<core.String, core.String> o) { 276 checkUnnamed1381(core.Map<core.String, core.String> o) {
262 unittest.expect(o, unittest.hasLength(2)); 277 unittest.expect(o, unittest.hasLength(2));
263 unittest.expect(o["x"], unittest.equals('foo')); 278 unittest.expect(o["x"], unittest.equals('foo'));
264 unittest.expect(o["y"], unittest.equals('foo')); 279 unittest.expect(o["y"], unittest.equals('foo'));
265 } 280 }
266 281
267 buildUnnamed1122() { 282 buildUnnamed1382() {
268 var o = new core.List<api.SourceContext>(); 283 var o = new core.List<api.SourceContext>();
269 o.add(buildSourceContext()); 284 o.add(buildSourceContext());
270 o.add(buildSourceContext()); 285 o.add(buildSourceContext());
271 return o; 286 return o;
272 } 287 }
273 288
274 checkUnnamed1122(core.List<api.SourceContext> o) { 289 checkUnnamed1382(core.List<api.SourceContext> o) {
275 unittest.expect(o, unittest.hasLength(2)); 290 unittest.expect(o, unittest.hasLength(2));
276 checkSourceContext(o[0]); 291 checkSourceContext(o[0]);
277 checkSourceContext(o[1]); 292 checkSourceContext(o[1]);
278 } 293 }
279 294
280 core.int buildCounterDebuggee = 0; 295 core.int buildCounterDebuggee = 0;
281 buildDebuggee() { 296 buildDebuggee() {
282 var o = new api.Debuggee(); 297 var o = new api.Debuggee();
283 buildCounterDebuggee++; 298 buildCounterDebuggee++;
284 if (buildCounterDebuggee < 3) { 299 if (buildCounterDebuggee < 3) {
285 o.agentVersion = "foo"; 300 o.agentVersion = "foo";
286 o.description = "foo"; 301 o.description = "foo";
287 o.extSourceContexts = buildUnnamed1120(); 302 o.extSourceContexts = buildUnnamed1380();
288 o.id = "foo"; 303 o.id = "foo";
289 o.isDisabled = true; 304 o.isDisabled = true;
290 o.isInactive = true; 305 o.isInactive = true;
291 o.labels = buildUnnamed1121(); 306 o.labels = buildUnnamed1381();
292 o.project = "foo"; 307 o.project = "foo";
293 o.sourceContexts = buildUnnamed1122(); 308 o.sourceContexts = buildUnnamed1382();
294 o.status = buildStatusMessage(); 309 o.status = buildStatusMessage();
295 o.uniquifier = "foo"; 310 o.uniquifier = "foo";
296 } 311 }
297 buildCounterDebuggee--; 312 buildCounterDebuggee--;
298 return o; 313 return o;
299 } 314 }
300 315
301 checkDebuggee(api.Debuggee o) { 316 checkDebuggee(api.Debuggee o) {
302 buildCounterDebuggee++; 317 buildCounterDebuggee++;
303 if (buildCounterDebuggee < 3) { 318 if (buildCounterDebuggee < 3) {
304 unittest.expect(o.agentVersion, unittest.equals('foo')); 319 unittest.expect(o.agentVersion, unittest.equals('foo'));
305 unittest.expect(o.description, unittest.equals('foo')); 320 unittest.expect(o.description, unittest.equals('foo'));
306 checkUnnamed1120(o.extSourceContexts); 321 checkUnnamed1380(o.extSourceContexts);
307 unittest.expect(o.id, unittest.equals('foo')); 322 unittest.expect(o.id, unittest.equals('foo'));
308 unittest.expect(o.isDisabled, unittest.isTrue); 323 unittest.expect(o.isDisabled, unittest.isTrue);
309 unittest.expect(o.isInactive, unittest.isTrue); 324 unittest.expect(o.isInactive, unittest.isTrue);
310 checkUnnamed1121(o.labels); 325 checkUnnamed1381(o.labels);
311 unittest.expect(o.project, unittest.equals('foo')); 326 unittest.expect(o.project, unittest.equals('foo'));
312 checkUnnamed1122(o.sourceContexts); 327 checkUnnamed1382(o.sourceContexts);
313 checkStatusMessage(o.status); 328 checkStatusMessage(o.status);
314 unittest.expect(o.uniquifier, unittest.equals('foo')); 329 unittest.expect(o.uniquifier, unittest.equals('foo'));
315 } 330 }
316 buildCounterDebuggee--; 331 buildCounterDebuggee--;
317 } 332 }
318 333
319 core.int buildCounterEmpty = 0; 334 core.int buildCounterEmpty = 0;
320 buildEmpty() { 335 buildEmpty() {
321 var o = new api.Empty(); 336 var o = new api.Empty();
322 buildCounterEmpty++; 337 buildCounterEmpty++;
323 if (buildCounterEmpty < 3) { 338 if (buildCounterEmpty < 3) {
324 } 339 }
325 buildCounterEmpty--; 340 buildCounterEmpty--;
326 return o; 341 return o;
327 } 342 }
328 343
329 checkEmpty(api.Empty o) { 344 checkEmpty(api.Empty o) {
330 buildCounterEmpty++; 345 buildCounterEmpty++;
331 if (buildCounterEmpty < 3) { 346 if (buildCounterEmpty < 3) {
332 } 347 }
333 buildCounterEmpty--; 348 buildCounterEmpty--;
334 } 349 }
335 350
336 buildUnnamed1123() { 351 buildUnnamed1383() {
337 var o = new core.Map<core.String, core.String>(); 352 var o = new core.Map<core.String, core.String>();
338 o["x"] = "foo"; 353 o["x"] = "foo";
339 o["y"] = "foo"; 354 o["y"] = "foo";
340 return o; 355 return o;
341 } 356 }
342 357
343 checkUnnamed1123(core.Map<core.String, core.String> o) { 358 checkUnnamed1383(core.Map<core.String, core.String> o) {
344 unittest.expect(o, unittest.hasLength(2)); 359 unittest.expect(o, unittest.hasLength(2));
345 unittest.expect(o["x"], unittest.equals('foo')); 360 unittest.expect(o["x"], unittest.equals('foo'));
346 unittest.expect(o["y"], unittest.equals('foo')); 361 unittest.expect(o["y"], unittest.equals('foo'));
347 } 362 }
348 363
349 core.int buildCounterExtendedSourceContext = 0; 364 core.int buildCounterExtendedSourceContext = 0;
350 buildExtendedSourceContext() { 365 buildExtendedSourceContext() {
351 var o = new api.ExtendedSourceContext(); 366 var o = new api.ExtendedSourceContext();
352 buildCounterExtendedSourceContext++; 367 buildCounterExtendedSourceContext++;
353 if (buildCounterExtendedSourceContext < 3) { 368 if (buildCounterExtendedSourceContext < 3) {
354 o.context = buildSourceContext(); 369 o.context = buildSourceContext();
355 o.labels = buildUnnamed1123(); 370 o.labels = buildUnnamed1383();
356 } 371 }
357 buildCounterExtendedSourceContext--; 372 buildCounterExtendedSourceContext--;
358 return o; 373 return o;
359 } 374 }
360 375
361 checkExtendedSourceContext(api.ExtendedSourceContext o) { 376 checkExtendedSourceContext(api.ExtendedSourceContext o) {
362 buildCounterExtendedSourceContext++; 377 buildCounterExtendedSourceContext++;
363 if (buildCounterExtendedSourceContext < 3) { 378 if (buildCounterExtendedSourceContext < 3) {
364 checkSourceContext(o.context); 379 checkSourceContext(o.context);
365 checkUnnamed1123(o.labels); 380 checkUnnamed1383(o.labels);
366 } 381 }
367 buildCounterExtendedSourceContext--; 382 buildCounterExtendedSourceContext--;
368 } 383 }
369 384
370 buildUnnamed1124() { 385 buildUnnamed1384() {
371 var o = new core.List<core.String>(); 386 var o = new core.List<core.String>();
372 o.add("foo"); 387 o.add("foo");
373 o.add("foo"); 388 o.add("foo");
374 return o; 389 return o;
375 } 390 }
376 391
377 checkUnnamed1124(core.List<core.String> o) { 392 checkUnnamed1384(core.List<core.String> o) {
378 unittest.expect(o, unittest.hasLength(2)); 393 unittest.expect(o, unittest.hasLength(2));
379 unittest.expect(o[0], unittest.equals('foo')); 394 unittest.expect(o[0], unittest.equals('foo'));
380 unittest.expect(o[1], unittest.equals('foo')); 395 unittest.expect(o[1], unittest.equals('foo'));
381 } 396 }
382 397
383 core.int buildCounterFormatMessage = 0; 398 core.int buildCounterFormatMessage = 0;
384 buildFormatMessage() { 399 buildFormatMessage() {
385 var o = new api.FormatMessage(); 400 var o = new api.FormatMessage();
386 buildCounterFormatMessage++; 401 buildCounterFormatMessage++;
387 if (buildCounterFormatMessage < 3) { 402 if (buildCounterFormatMessage < 3) {
388 o.format = "foo"; 403 o.format = "foo";
389 o.parameters = buildUnnamed1124(); 404 o.parameters = buildUnnamed1384();
390 } 405 }
391 buildCounterFormatMessage--; 406 buildCounterFormatMessage--;
392 return o; 407 return o;
393 } 408 }
394 409
395 checkFormatMessage(api.FormatMessage o) { 410 checkFormatMessage(api.FormatMessage o) {
396 buildCounterFormatMessage++; 411 buildCounterFormatMessage++;
397 if (buildCounterFormatMessage < 3) { 412 if (buildCounterFormatMessage < 3) {
398 unittest.expect(o.format, unittest.equals('foo')); 413 unittest.expect(o.format, unittest.equals('foo'));
399 checkUnnamed1124(o.parameters); 414 checkUnnamed1384(o.parameters);
400 } 415 }
401 buildCounterFormatMessage--; 416 buildCounterFormatMessage--;
402 } 417 }
403 418
404 core.int buildCounterGerritSourceContext = 0; 419 core.int buildCounterGerritSourceContext = 0;
405 buildGerritSourceContext() { 420 buildGerritSourceContext() {
406 var o = new api.GerritSourceContext(); 421 var o = new api.GerritSourceContext();
407 buildCounterGerritSourceContext++; 422 buildCounterGerritSourceContext++;
408 if (buildCounterGerritSourceContext < 3) { 423 if (buildCounterGerritSourceContext < 3) {
409 o.aliasContext = buildAliasContext(); 424 o.aliasContext = buildAliasContext();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 476
462 checkGitSourceContext(api.GitSourceContext o) { 477 checkGitSourceContext(api.GitSourceContext o) {
463 buildCounterGitSourceContext++; 478 buildCounterGitSourceContext++;
464 if (buildCounterGitSourceContext < 3) { 479 if (buildCounterGitSourceContext < 3) {
465 unittest.expect(o.revisionId, unittest.equals('foo')); 480 unittest.expect(o.revisionId, unittest.equals('foo'));
466 unittest.expect(o.url, unittest.equals('foo')); 481 unittest.expect(o.url, unittest.equals('foo'));
467 } 482 }
468 buildCounterGitSourceContext--; 483 buildCounterGitSourceContext--;
469 } 484 }
470 485
471 buildUnnamed1125() { 486 buildUnnamed1385() {
472 var o = new core.List<api.Breakpoint>(); 487 var o = new core.List<api.Breakpoint>();
473 o.add(buildBreakpoint()); 488 o.add(buildBreakpoint());
474 o.add(buildBreakpoint()); 489 o.add(buildBreakpoint());
475 return o; 490 return o;
476 } 491 }
477 492
478 checkUnnamed1125(core.List<api.Breakpoint> o) { 493 checkUnnamed1385(core.List<api.Breakpoint> o) {
479 unittest.expect(o, unittest.hasLength(2)); 494 unittest.expect(o, unittest.hasLength(2));
480 checkBreakpoint(o[0]); 495 checkBreakpoint(o[0]);
481 checkBreakpoint(o[1]); 496 checkBreakpoint(o[1]);
482 } 497 }
483 498
484 core.int buildCounterListActiveBreakpointsResponse = 0; 499 core.int buildCounterListActiveBreakpointsResponse = 0;
485 buildListActiveBreakpointsResponse() { 500 buildListActiveBreakpointsResponse() {
486 var o = new api.ListActiveBreakpointsResponse(); 501 var o = new api.ListActiveBreakpointsResponse();
487 buildCounterListActiveBreakpointsResponse++; 502 buildCounterListActiveBreakpointsResponse++;
488 if (buildCounterListActiveBreakpointsResponse < 3) { 503 if (buildCounterListActiveBreakpointsResponse < 3) {
489 o.breakpoints = buildUnnamed1125(); 504 o.breakpoints = buildUnnamed1385();
490 o.nextWaitToken = "foo"; 505 o.nextWaitToken = "foo";
491 o.waitExpired = true; 506 o.waitExpired = true;
492 } 507 }
493 buildCounterListActiveBreakpointsResponse--; 508 buildCounterListActiveBreakpointsResponse--;
494 return o; 509 return o;
495 } 510 }
496 511
497 checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { 512 checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) {
498 buildCounterListActiveBreakpointsResponse++; 513 buildCounterListActiveBreakpointsResponse++;
499 if (buildCounterListActiveBreakpointsResponse < 3) { 514 if (buildCounterListActiveBreakpointsResponse < 3) {
500 checkUnnamed1125(o.breakpoints); 515 checkUnnamed1385(o.breakpoints);
501 unittest.expect(o.nextWaitToken, unittest.equals('foo')); 516 unittest.expect(o.nextWaitToken, unittest.equals('foo'));
502 unittest.expect(o.waitExpired, unittest.isTrue); 517 unittest.expect(o.waitExpired, unittest.isTrue);
503 } 518 }
504 buildCounterListActiveBreakpointsResponse--; 519 buildCounterListActiveBreakpointsResponse--;
505 } 520 }
506 521
507 buildUnnamed1126() { 522 buildUnnamed1386() {
508 var o = new core.List<api.Breakpoint>(); 523 var o = new core.List<api.Breakpoint>();
509 o.add(buildBreakpoint()); 524 o.add(buildBreakpoint());
510 o.add(buildBreakpoint()); 525 o.add(buildBreakpoint());
511 return o; 526 return o;
512 } 527 }
513 528
514 checkUnnamed1126(core.List<api.Breakpoint> o) { 529 checkUnnamed1386(core.List<api.Breakpoint> o) {
515 unittest.expect(o, unittest.hasLength(2)); 530 unittest.expect(o, unittest.hasLength(2));
516 checkBreakpoint(o[0]); 531 checkBreakpoint(o[0]);
517 checkBreakpoint(o[1]); 532 checkBreakpoint(o[1]);
518 } 533 }
519 534
520 core.int buildCounterListBreakpointsResponse = 0; 535 core.int buildCounterListBreakpointsResponse = 0;
521 buildListBreakpointsResponse() { 536 buildListBreakpointsResponse() {
522 var o = new api.ListBreakpointsResponse(); 537 var o = new api.ListBreakpointsResponse();
523 buildCounterListBreakpointsResponse++; 538 buildCounterListBreakpointsResponse++;
524 if (buildCounterListBreakpointsResponse < 3) { 539 if (buildCounterListBreakpointsResponse < 3) {
525 o.breakpoints = buildUnnamed1126(); 540 o.breakpoints = buildUnnamed1386();
526 o.nextWaitToken = "foo"; 541 o.nextWaitToken = "foo";
527 } 542 }
528 buildCounterListBreakpointsResponse--; 543 buildCounterListBreakpointsResponse--;
529 return o; 544 return o;
530 } 545 }
531 546
532 checkListBreakpointsResponse(api.ListBreakpointsResponse o) { 547 checkListBreakpointsResponse(api.ListBreakpointsResponse o) {
533 buildCounterListBreakpointsResponse++; 548 buildCounterListBreakpointsResponse++;
534 if (buildCounterListBreakpointsResponse < 3) { 549 if (buildCounterListBreakpointsResponse < 3) {
535 checkUnnamed1126(o.breakpoints); 550 checkUnnamed1386(o.breakpoints);
536 unittest.expect(o.nextWaitToken, unittest.equals('foo')); 551 unittest.expect(o.nextWaitToken, unittest.equals('foo'));
537 } 552 }
538 buildCounterListBreakpointsResponse--; 553 buildCounterListBreakpointsResponse--;
539 } 554 }
540 555
541 buildUnnamed1127() { 556 buildUnnamed1387() {
542 var o = new core.List<api.Debuggee>(); 557 var o = new core.List<api.Debuggee>();
543 o.add(buildDebuggee()); 558 o.add(buildDebuggee());
544 o.add(buildDebuggee()); 559 o.add(buildDebuggee());
545 return o; 560 return o;
546 } 561 }
547 562
548 checkUnnamed1127(core.List<api.Debuggee> o) { 563 checkUnnamed1387(core.List<api.Debuggee> o) {
549 unittest.expect(o, unittest.hasLength(2)); 564 unittest.expect(o, unittest.hasLength(2));
550 checkDebuggee(o[0]); 565 checkDebuggee(o[0]);
551 checkDebuggee(o[1]); 566 checkDebuggee(o[1]);
552 } 567 }
553 568
554 core.int buildCounterListDebuggeesResponse = 0; 569 core.int buildCounterListDebuggeesResponse = 0;
555 buildListDebuggeesResponse() { 570 buildListDebuggeesResponse() {
556 var o = new api.ListDebuggeesResponse(); 571 var o = new api.ListDebuggeesResponse();
557 buildCounterListDebuggeesResponse++; 572 buildCounterListDebuggeesResponse++;
558 if (buildCounterListDebuggeesResponse < 3) { 573 if (buildCounterListDebuggeesResponse < 3) {
559 o.debuggees = buildUnnamed1127(); 574 o.debuggees = buildUnnamed1387();
560 } 575 }
561 buildCounterListDebuggeesResponse--; 576 buildCounterListDebuggeesResponse--;
562 return o; 577 return o;
563 } 578 }
564 579
565 checkListDebuggeesResponse(api.ListDebuggeesResponse o) { 580 checkListDebuggeesResponse(api.ListDebuggeesResponse o) {
566 buildCounterListDebuggeesResponse++; 581 buildCounterListDebuggeesResponse++;
567 if (buildCounterListDebuggeesResponse < 3) { 582 if (buildCounterListDebuggeesResponse < 3) {
568 checkUnnamed1127(o.debuggees); 583 checkUnnamed1387(o.debuggees);
569 } 584 }
570 buildCounterListDebuggeesResponse--; 585 buildCounterListDebuggeesResponse--;
571 } 586 }
572 587
573 core.int buildCounterProjectRepoId = 0; 588 core.int buildCounterProjectRepoId = 0;
574 buildProjectRepoId() { 589 buildProjectRepoId() {
575 var o = new api.ProjectRepoId(); 590 var o = new api.ProjectRepoId();
576 buildCounterProjectRepoId++; 591 buildCounterProjectRepoId++;
577 if (buildCounterProjectRepoId < 3) { 592 if (buildCounterProjectRepoId < 3) {
578 o.projectId = "foo"; 593 o.projectId = "foo";
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 723
709 checkSourceLocation(api.SourceLocation o) { 724 checkSourceLocation(api.SourceLocation o) {
710 buildCounterSourceLocation++; 725 buildCounterSourceLocation++;
711 if (buildCounterSourceLocation < 3) { 726 if (buildCounterSourceLocation < 3) {
712 unittest.expect(o.line, unittest.equals(42)); 727 unittest.expect(o.line, unittest.equals(42));
713 unittest.expect(o.path, unittest.equals('foo')); 728 unittest.expect(o.path, unittest.equals('foo'));
714 } 729 }
715 buildCounterSourceLocation--; 730 buildCounterSourceLocation--;
716 } 731 }
717 732
718 buildUnnamed1128() { 733 buildUnnamed1388() {
719 var o = new core.List<api.Variable>(); 734 var o = new core.List<api.Variable>();
720 o.add(buildVariable()); 735 o.add(buildVariable());
721 o.add(buildVariable()); 736 o.add(buildVariable());
722 return o; 737 return o;
723 } 738 }
724 739
725 checkUnnamed1128(core.List<api.Variable> o) { 740 checkUnnamed1388(core.List<api.Variable> o) {
726 unittest.expect(o, unittest.hasLength(2)); 741 unittest.expect(o, unittest.hasLength(2));
727 checkVariable(o[0]); 742 checkVariable(o[0]);
728 checkVariable(o[1]); 743 checkVariable(o[1]);
729 } 744 }
730 745
731 buildUnnamed1129() { 746 buildUnnamed1389() {
732 var o = new core.List<api.Variable>(); 747 var o = new core.List<api.Variable>();
733 o.add(buildVariable()); 748 o.add(buildVariable());
734 o.add(buildVariable()); 749 o.add(buildVariable());
735 return o; 750 return o;
736 } 751 }
737 752
738 checkUnnamed1129(core.List<api.Variable> o) { 753 checkUnnamed1389(core.List<api.Variable> o) {
739 unittest.expect(o, unittest.hasLength(2)); 754 unittest.expect(o, unittest.hasLength(2));
740 checkVariable(o[0]); 755 checkVariable(o[0]);
741 checkVariable(o[1]); 756 checkVariable(o[1]);
742 } 757 }
743 758
744 core.int buildCounterStackFrame = 0; 759 core.int buildCounterStackFrame = 0;
745 buildStackFrame() { 760 buildStackFrame() {
746 var o = new api.StackFrame(); 761 var o = new api.StackFrame();
747 buildCounterStackFrame++; 762 buildCounterStackFrame++;
748 if (buildCounterStackFrame < 3) { 763 if (buildCounterStackFrame < 3) {
749 o.arguments = buildUnnamed1128(); 764 o.arguments = buildUnnamed1388();
750 o.function = "foo"; 765 o.function = "foo";
751 o.locals = buildUnnamed1129(); 766 o.locals = buildUnnamed1389();
752 o.location = buildSourceLocation(); 767 o.location = buildSourceLocation();
753 } 768 }
754 buildCounterStackFrame--; 769 buildCounterStackFrame--;
755 return o; 770 return o;
756 } 771 }
757 772
758 checkStackFrame(api.StackFrame o) { 773 checkStackFrame(api.StackFrame o) {
759 buildCounterStackFrame++; 774 buildCounterStackFrame++;
760 if (buildCounterStackFrame < 3) { 775 if (buildCounterStackFrame < 3) {
761 checkUnnamed1128(o.arguments); 776 checkUnnamed1388(o.arguments);
762 unittest.expect(o.function, unittest.equals('foo')); 777 unittest.expect(o.function, unittest.equals('foo'));
763 checkUnnamed1129(o.locals); 778 checkUnnamed1389(o.locals);
764 checkSourceLocation(o.location); 779 checkSourceLocation(o.location);
765 } 780 }
766 buildCounterStackFrame--; 781 buildCounterStackFrame--;
767 } 782 }
768 783
769 core.int buildCounterStatusMessage = 0; 784 core.int buildCounterStatusMessage = 0;
770 buildStatusMessage() { 785 buildStatusMessage() {
771 var o = new api.StatusMessage(); 786 var o = new api.StatusMessage();
772 buildCounterStatusMessage++; 787 buildCounterStatusMessage++;
773 if (buildCounterStatusMessage < 3) { 788 if (buildCounterStatusMessage < 3) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 return o; 833 return o;
819 } 834 }
820 835
821 checkUpdateActiveBreakpointResponse(api.UpdateActiveBreakpointResponse o) { 836 checkUpdateActiveBreakpointResponse(api.UpdateActiveBreakpointResponse o) {
822 buildCounterUpdateActiveBreakpointResponse++; 837 buildCounterUpdateActiveBreakpointResponse++;
823 if (buildCounterUpdateActiveBreakpointResponse < 3) { 838 if (buildCounterUpdateActiveBreakpointResponse < 3) {
824 } 839 }
825 buildCounterUpdateActiveBreakpointResponse--; 840 buildCounterUpdateActiveBreakpointResponse--;
826 } 841 }
827 842
828 buildUnnamed1130() { 843 buildUnnamed1390() {
829 var o = new core.List<api.Variable>(); 844 var o = new core.List<api.Variable>();
830 o.add(buildVariable()); 845 o.add(buildVariable());
831 o.add(buildVariable()); 846 o.add(buildVariable());
832 return o; 847 return o;
833 } 848 }
834 849
835 checkUnnamed1130(core.List<api.Variable> o) { 850 checkUnnamed1390(core.List<api.Variable> o) {
836 unittest.expect(o, unittest.hasLength(2)); 851 unittest.expect(o, unittest.hasLength(2));
837 checkVariable(o[0]); 852 checkVariable(o[0]);
838 checkVariable(o[1]); 853 checkVariable(o[1]);
839 } 854 }
840 855
841 core.int buildCounterVariable = 0; 856 core.int buildCounterVariable = 0;
842 buildVariable() { 857 buildVariable() {
843 var o = new api.Variable(); 858 var o = new api.Variable();
844 buildCounterVariable++; 859 buildCounterVariable++;
845 if (buildCounterVariable < 3) { 860 if (buildCounterVariable < 3) {
846 o.members = buildUnnamed1130(); 861 o.members = buildUnnamed1390();
847 o.name = "foo"; 862 o.name = "foo";
848 o.status = buildStatusMessage(); 863 o.status = buildStatusMessage();
849 o.type = "foo"; 864 o.type = "foo";
850 o.value = "foo"; 865 o.value = "foo";
851 o.varTableIndex = 42; 866 o.varTableIndex = 42;
852 } 867 }
853 buildCounterVariable--; 868 buildCounterVariable--;
854 return o; 869 return o;
855 } 870 }
856 871
857 checkVariable(api.Variable o) { 872 checkVariable(api.Variable o) {
858 buildCounterVariable++; 873 buildCounterVariable++;
859 if (buildCounterVariable < 3) { 874 if (buildCounterVariable < 3) {
860 checkUnnamed1130(o.members); 875 checkUnnamed1390(o.members);
861 unittest.expect(o.name, unittest.equals('foo')); 876 unittest.expect(o.name, unittest.equals('foo'));
862 checkStatusMessage(o.status); 877 checkStatusMessage(o.status);
863 unittest.expect(o.type, unittest.equals('foo')); 878 unittest.expect(o.type, unittest.equals('foo'));
864 unittest.expect(o.value, unittest.equals('foo')); 879 unittest.expect(o.value, unittest.equals('foo'));
865 unittest.expect(o.varTableIndex, unittest.equals(42)); 880 unittest.expect(o.varTableIndex, unittest.equals(42));
866 } 881 }
867 buildCounterVariable--; 882 buildCounterVariable--;
868 } 883 }
869 884
870 885
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 }); 1296 });
1282 1297
1283 1298
1284 unittest.group("resource-DebuggerDebuggeesResourceApi", () { 1299 unittest.group("resource-DebuggerDebuggeesResourceApi", () {
1285 unittest.test("method--list", () { 1300 unittest.test("method--list", () {
1286 1301
1287 var mock = new HttpServerMock(); 1302 var mock = new HttpServerMock();
1288 api.DebuggerDebuggeesResourceApi res = new api.ClouddebuggerApi(mock).debu gger.debuggees; 1303 api.DebuggerDebuggeesResourceApi res = new api.ClouddebuggerApi(mock).debu gger.debuggees;
1289 var arg_project = "foo"; 1304 var arg_project = "foo";
1290 var arg_includeInactive = true; 1305 var arg_includeInactive = true;
1306 var arg_clientVersion = "foo";
1291 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1307 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1292 var path = (req.url).path; 1308 var path = (req.url).path;
1293 var pathOffset = 0; 1309 var pathOffset = 0;
1294 var index; 1310 var index;
1295 var subPart; 1311 var subPart;
1296 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1312 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1297 pathOffset += 1; 1313 pathOffset += 1;
1298 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("v2/debugger/debuggees")); 1314 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("v2/debugger/debuggees"));
1299 pathOffset += 21; 1315 pathOffset += 21;
1300 1316
1301 var query = (req.url).query; 1317 var query = (req.url).query;
1302 var queryOffset = 0; 1318 var queryOffset = 0;
1303 var queryMap = {}; 1319 var queryMap = {};
1304 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1320 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1305 parseBool(n) { 1321 parseBool(n) {
1306 if (n == "true") return true; 1322 if (n == "true") return true;
1307 if (n == "false") return false; 1323 if (n == "false") return false;
1308 if (n == null) return null; 1324 if (n == null) return null;
1309 throw new core.ArgumentError("Invalid boolean: $n"); 1325 throw new core.ArgumentError("Invalid boolean: $n");
1310 } 1326 }
1311 if (query.length > 0) { 1327 if (query.length > 0) {
1312 for (var part in query.split("&")) { 1328 for (var part in query.split("&")) {
1313 var keyvalue = part.split("="); 1329 var keyvalue = part.split("=");
1314 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1330 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1315 } 1331 }
1316 } 1332 }
1317 unittest.expect(queryMap["project"].first, unittest.equals(arg_project)) ; 1333 unittest.expect(queryMap["project"].first, unittest.equals(arg_project)) ;
1318 unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg _includeInactive")); 1334 unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg _includeInactive"));
1335 unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_cli entVersion));
1319 1336
1320 1337
1321 var h = { 1338 var h = {
1322 "content-type" : "application/json; charset=utf-8", 1339 "content-type" : "application/json; charset=utf-8",
1323 }; 1340 };
1324 var resp = convert.JSON.encode(buildListDebuggeesResponse()); 1341 var resp = convert.JSON.encode(buildListDebuggeesResponse());
1325 return new async.Future.value(stringResponse(200, h, resp)); 1342 return new async.Future.value(stringResponse(200, h, resp));
1326 }), true); 1343 }), true);
1327 res.list(project: arg_project, includeInactive: arg_includeInactive).then( unittest.expectAsync(((api.ListDebuggeesResponse response) { 1344 res.list(project: arg_project, includeInactive: arg_includeInactive, clien tVersion: arg_clientVersion).then(unittest.expectAsync(((api.ListDebuggeesRespon se response) {
1328 checkListDebuggeesResponse(response); 1345 checkListDebuggeesResponse(response);
1329 }))); 1346 })));
1330 }); 1347 });
1331 1348
1332 }); 1349 });
1333 1350
1334 1351
1335 unittest.group("resource-DebuggerDebuggeesBreakpointsResourceApi", () { 1352 unittest.group("resource-DebuggerDebuggeesBreakpointsResourceApi", () {
1336 unittest.test("method--delete", () { 1353 unittest.test("method--delete", () {
1337 1354
1338 var mock = new HttpServerMock(); 1355 var mock = new HttpServerMock();
1339 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi (mock).debugger.debuggees.breakpoints; 1356 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi (mock).debugger.debuggees.breakpoints;
1340 var arg_debuggeeId = "foo"; 1357 var arg_debuggeeId = "foo";
1341 var arg_breakpointId = "foo"; 1358 var arg_breakpointId = "foo";
1359 var arg_clientVersion = "foo";
1342 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1360 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1343 var path = (req.url).path; 1361 var path = (req.url).path;
1344 var pathOffset = 0; 1362 var pathOffset = 0;
1345 var index; 1363 var index;
1346 var subPart; 1364 var subPart;
1347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1348 pathOffset += 1; 1366 pathOffset += 1;
1349 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("v2/debugger/debuggees/")); 1367 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("v2/debugger/debuggees/"));
1350 pathOffset += 22; 1368 pathOffset += 22;
1351 index = path.indexOf("/breakpoints/", pathOffset); 1369 index = path.indexOf("/breakpoints/", pathOffset);
(...skipping 16 matching lines...) Expand all
1368 if (n == "false") return false; 1386 if (n == "false") return false;
1369 if (n == null) return null; 1387 if (n == null) return null;
1370 throw new core.ArgumentError("Invalid boolean: $n"); 1388 throw new core.ArgumentError("Invalid boolean: $n");
1371 } 1389 }
1372 if (query.length > 0) { 1390 if (query.length > 0) {
1373 for (var part in query.split("&")) { 1391 for (var part in query.split("&")) {
1374 var keyvalue = part.split("="); 1392 var keyvalue = part.split("=");
1375 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1393 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1376 } 1394 }
1377 } 1395 }
1396 unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_cli entVersion));
1378 1397
1379 1398
1380 var h = { 1399 var h = {
1381 "content-type" : "application/json; charset=utf-8", 1400 "content-type" : "application/json; charset=utf-8",
1382 }; 1401 };
1383 var resp = convert.JSON.encode(buildEmpty()); 1402 var resp = convert.JSON.encode(buildEmpty());
1384 return new async.Future.value(stringResponse(200, h, resp)); 1403 return new async.Future.value(stringResponse(200, h, resp));
1385 }), true); 1404 }), true);
1386 res.delete(arg_debuggeeId, arg_breakpointId).then(unittest.expectAsync(((a pi.Empty response) { 1405 res.delete(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVers ion).then(unittest.expectAsync(((api.Empty response) {
1387 checkEmpty(response); 1406 checkEmpty(response);
1388 }))); 1407 })));
1389 }); 1408 });
1390 1409
1391 unittest.test("method--get", () { 1410 unittest.test("method--get", () {
1392 1411
1393 var mock = new HttpServerMock(); 1412 var mock = new HttpServerMock();
1394 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi (mock).debugger.debuggees.breakpoints; 1413 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi (mock).debugger.debuggees.breakpoints;
1395 var arg_debuggeeId = "foo"; 1414 var arg_debuggeeId = "foo";
1396 var arg_breakpointId = "foo"; 1415 var arg_breakpointId = "foo";
1416 var arg_clientVersion = "foo";
1397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1417 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1398 var path = (req.url).path; 1418 var path = (req.url).path;
1399 var pathOffset = 0; 1419 var pathOffset = 0;
1400 var index; 1420 var index;
1401 var subPart; 1421 var subPart;
1402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1422 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1403 pathOffset += 1; 1423 pathOffset += 1;
1404 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("v2/debugger/debuggees/")); 1424 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("v2/debugger/debuggees/"));
1405 pathOffset += 22; 1425 pathOffset += 22;
1406 index = path.indexOf("/breakpoints/", pathOffset); 1426 index = path.indexOf("/breakpoints/", pathOffset);
(...skipping 16 matching lines...) Expand all
1423 if (n == "false") return false; 1443 if (n == "false") return false;
1424 if (n == null) return null; 1444 if (n == null) return null;
1425 throw new core.ArgumentError("Invalid boolean: $n"); 1445 throw new core.ArgumentError("Invalid boolean: $n");
1426 } 1446 }
1427 if (query.length > 0) { 1447 if (query.length > 0) {
1428 for (var part in query.split("&")) { 1448 for (var part in query.split("&")) {
1429 var keyvalue = part.split("="); 1449 var keyvalue = part.split("=");
1430 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1450 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1431 } 1451 }
1432 } 1452 }
1453 unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_cli entVersion));
1433 1454
1434 1455
1435 var h = { 1456 var h = {
1436 "content-type" : "application/json; charset=utf-8", 1457 "content-type" : "application/json; charset=utf-8",
1437 }; 1458 };
1438 var resp = convert.JSON.encode(buildGetBreakpointResponse()); 1459 var resp = convert.JSON.encode(buildGetBreakpointResponse());
1439 return new async.Future.value(stringResponse(200, h, resp)); 1460 return new async.Future.value(stringResponse(200, h, resp));
1440 }), true); 1461 }), true);
1441 res.get(arg_debuggeeId, arg_breakpointId).then(unittest.expectAsync(((api. GetBreakpointResponse response) { 1462 res.get(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion ).then(unittest.expectAsync(((api.GetBreakpointResponse response) {
1442 checkGetBreakpointResponse(response); 1463 checkGetBreakpointResponse(response);
1443 }))); 1464 })));
1444 }); 1465 });
1445 1466
1446 unittest.test("method--list", () { 1467 unittest.test("method--list", () {
1447 1468
1448 var mock = new HttpServerMock(); 1469 var mock = new HttpServerMock();
1449 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi (mock).debugger.debuggees.breakpoints; 1470 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi (mock).debugger.debuggees.breakpoints;
1450 var arg_debuggeeId = "foo"; 1471 var arg_debuggeeId = "foo";
1451 var arg_includeAllUsers = true; 1472 var arg_includeAllUsers = true;
1452 var arg_includeInactive = true; 1473 var arg_includeInactive = true;
1453 var arg_action_value = "foo"; 1474 var arg_action_value = "foo";
1454 var arg_stripResults = true; 1475 var arg_stripResults = true;
1455 var arg_waitToken = "foo"; 1476 var arg_waitToken = "foo";
1477 var arg_clientVersion = "foo";
1456 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1478 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1457 var path = (req.url).path; 1479 var path = (req.url).path;
1458 var pathOffset = 0; 1480 var pathOffset = 0;
1459 var index; 1481 var index;
1460 var subPart; 1482 var subPart;
1461 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1462 pathOffset += 1; 1484 pathOffset += 1;
1463 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("v2/debugger/debuggees/")); 1485 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("v2/debugger/debuggees/"));
1464 pathOffset += 22; 1486 pathOffset += 22;
1465 index = path.indexOf("/breakpoints", pathOffset); 1487 index = path.indexOf("/breakpoints", pathOffset);
(...skipping 18 matching lines...) Expand all
1484 for (var part in query.split("&")) { 1506 for (var part in query.split("&")) {
1485 var keyvalue = part.split("="); 1507 var keyvalue = part.split("=");
1486 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1508 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1487 } 1509 }
1488 } 1510 }
1489 unittest.expect(queryMap["includeAllUsers"].first, unittest.equals("$arg _includeAllUsers")); 1511 unittest.expect(queryMap["includeAllUsers"].first, unittest.equals("$arg _includeAllUsers"));
1490 unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg _includeInactive")); 1512 unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg _includeInactive"));
1491 unittest.expect(queryMap["action.value"].first, unittest.equals(arg_acti on_value)); 1513 unittest.expect(queryMap["action.value"].first, unittest.equals(arg_acti on_value));
1492 unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_st ripResults")); 1514 unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_st ripResults"));
1493 unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitTok en)); 1515 unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitTok en));
1516 unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_cli entVersion));
1494 1517
1495 1518
1496 var h = { 1519 var h = {
1497 "content-type" : "application/json; charset=utf-8", 1520 "content-type" : "application/json; charset=utf-8",
1498 }; 1521 };
1499 var resp = convert.JSON.encode(buildListBreakpointsResponse()); 1522 var resp = convert.JSON.encode(buildListBreakpointsResponse());
1500 return new async.Future.value(stringResponse(200, h, resp)); 1523 return new async.Future.value(stringResponse(200, h, resp));
1501 }), true); 1524 }), true);
1502 res.list(arg_debuggeeId, includeAllUsers: arg_includeAllUsers, includeInac tive: arg_includeInactive, action_value: arg_action_value, stripResults: arg_str ipResults, waitToken: arg_waitToken).then(unittest.expectAsync(((api.ListBreakpo intsResponse response) { 1525 res.list(arg_debuggeeId, includeAllUsers: arg_includeAllUsers, includeInac tive: arg_includeInactive, action_value: arg_action_value, stripResults: arg_str ipResults, waitToken: arg_waitToken, clientVersion: arg_clientVersion).then(unit test.expectAsync(((api.ListBreakpointsResponse response) {
1503 checkListBreakpointsResponse(response); 1526 checkListBreakpointsResponse(response);
1504 }))); 1527 })));
1505 }); 1528 });
1506 1529
1507 unittest.test("method--set", () { 1530 unittest.test("method--set", () {
1508 1531
1509 var mock = new HttpServerMock(); 1532 var mock = new HttpServerMock();
1510 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi (mock).debugger.debuggees.breakpoints; 1533 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi (mock).debugger.debuggees.breakpoints;
1511 var arg_request = buildBreakpoint(); 1534 var arg_request = buildBreakpoint();
1512 var arg_debuggeeId = "foo"; 1535 var arg_debuggeeId = "foo";
1536 var arg_clientVersion = "foo";
1513 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1537 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1514 var obj = new api.Breakpoint.fromJson(json); 1538 var obj = new api.Breakpoint.fromJson(json);
1515 checkBreakpoint(obj); 1539 checkBreakpoint(obj);
1516 1540
1517 var path = (req.url).path; 1541 var path = (req.url).path;
1518 var pathOffset = 0; 1542 var pathOffset = 0;
1519 var index; 1543 var index;
1520 var subPart; 1544 var subPart;
1521 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1545 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1522 pathOffset += 1; 1546 pathOffset += 1;
(...skipping 16 matching lines...) Expand all
1539 if (n == "false") return false; 1563 if (n == "false") return false;
1540 if (n == null) return null; 1564 if (n == null) return null;
1541 throw new core.ArgumentError("Invalid boolean: $n"); 1565 throw new core.ArgumentError("Invalid boolean: $n");
1542 } 1566 }
1543 if (query.length > 0) { 1567 if (query.length > 0) {
1544 for (var part in query.split("&")) { 1568 for (var part in query.split("&")) {
1545 var keyvalue = part.split("="); 1569 var keyvalue = part.split("=");
1546 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1570 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1547 } 1571 }
1548 } 1572 }
1573 unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_cli entVersion));
1549 1574
1550 1575
1551 var h = { 1576 var h = {
1552 "content-type" : "application/json; charset=utf-8", 1577 "content-type" : "application/json; charset=utf-8",
1553 }; 1578 };
1554 var resp = convert.JSON.encode(buildSetBreakpointResponse()); 1579 var resp = convert.JSON.encode(buildSetBreakpointResponse());
1555 return new async.Future.value(stringResponse(200, h, resp)); 1580 return new async.Future.value(stringResponse(200, h, resp));
1556 }), true); 1581 }), true);
1557 res.set(arg_request, arg_debuggeeId).then(unittest.expectAsync(((api.SetBr eakpointResponse response) { 1582 res.set(arg_request, arg_debuggeeId, clientVersion: arg_clientVersion).the n(unittest.expectAsync(((api.SetBreakpointResponse response) {
1558 checkSetBreakpointResponse(response); 1583 checkSetBreakpointResponse(response);
1559 }))); 1584 })));
1560 }); 1585 });
1561 1586
1562 }); 1587 });
1563 1588
1564 1589
1565 } 1590 }
1566 1591
OLDNEW
« no previous file with comments | « generated/googleapis/test/classroom/v1_test.dart ('k') | generated/googleapis/test/cloudlatencytest/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698