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

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

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed497() { 54 buildUnnamed1078() {
55 var o = new core.List<api.Variable>(); 55 var o = new core.List<api.Variable>();
56 o.add(buildVariable()); 56 o.add(buildVariable());
57 o.add(buildVariable()); 57 o.add(buildVariable());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed497(core.List<api.Variable> o) { 61 checkUnnamed1078(core.List<api.Variable> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkVariable(o[0]); 63 checkVariable(o[0]);
64 checkVariable(o[1]); 64 checkVariable(o[1]);
65 } 65 }
66 66
67 buildUnnamed498() { 67 buildUnnamed1079() {
68 var o = new core.List<core.String>(); 68 var o = new core.List<core.String>();
69 o.add("foo"); 69 o.add("foo");
70 o.add("foo"); 70 o.add("foo");
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed498(core.List<core.String> o) { 74 checkUnnamed1079(core.List<core.String> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 unittest.expect(o[0], unittest.equals('foo')); 76 unittest.expect(o[0], unittest.equals('foo'));
77 unittest.expect(o[1], unittest.equals('foo')); 77 unittest.expect(o[1], unittest.equals('foo'));
78 } 78 }
79 79
80 buildUnnamed499() { 80 buildUnnamed1080() {
81 var o = new core.List<api.StackFrame>(); 81 var o = new core.List<api.StackFrame>();
82 o.add(buildStackFrame()); 82 o.add(buildStackFrame());
83 o.add(buildStackFrame()); 83 o.add(buildStackFrame());
84 return o; 84 return o;
85 } 85 }
86 86
87 checkUnnamed499(core.List<api.StackFrame> o) { 87 checkUnnamed1080(core.List<api.StackFrame> o) {
88 unittest.expect(o, unittest.hasLength(2)); 88 unittest.expect(o, unittest.hasLength(2));
89 checkStackFrame(o[0]); 89 checkStackFrame(o[0]);
90 checkStackFrame(o[1]); 90 checkStackFrame(o[1]);
91 } 91 }
92 92
93 buildUnnamed500() { 93 buildUnnamed1081() {
94 var o = new core.List<api.Variable>(); 94 var o = new core.List<api.Variable>();
95 o.add(buildVariable()); 95 o.add(buildVariable());
96 o.add(buildVariable()); 96 o.add(buildVariable());
97 return o; 97 return o;
98 } 98 }
99 99
100 checkUnnamed500(core.List<api.Variable> o) { 100 checkUnnamed1081(core.List<api.Variable> o) {
101 unittest.expect(o, unittest.hasLength(2)); 101 unittest.expect(o, unittest.hasLength(2));
102 checkVariable(o[0]); 102 checkVariable(o[0]);
103 checkVariable(o[1]); 103 checkVariable(o[1]);
104 } 104 }
105 105
106 core.int buildCounterBreakpoint = 0; 106 core.int buildCounterBreakpoint = 0;
107 buildBreakpoint() { 107 buildBreakpoint() {
108 var o = new api.Breakpoint(); 108 var o = new api.Breakpoint();
109 buildCounterBreakpoint++; 109 buildCounterBreakpoint++;
110 if (buildCounterBreakpoint < 3) { 110 if (buildCounterBreakpoint < 3) {
111 o.action = "foo"; 111 o.action = "foo";
112 o.condition = "foo"; 112 o.condition = "foo";
113 o.createTime = "foo"; 113 o.createTime = "foo";
114 o.evaluatedExpressions = buildUnnamed497(); 114 o.evaluatedExpressions = buildUnnamed1078();
115 o.expressions = buildUnnamed498(); 115 o.expressions = buildUnnamed1079();
116 o.finalTime = "foo"; 116 o.finalTime = "foo";
117 o.id = "foo"; 117 o.id = "foo";
118 o.isFinalState = true; 118 o.isFinalState = true;
119 o.location = buildSourceLocation(); 119 o.location = buildSourceLocation();
120 o.logLevel = "foo"; 120 o.logLevel = "foo";
121 o.logMessageFormat = "foo"; 121 o.logMessageFormat = "foo";
122 o.stackFrames = buildUnnamed499(); 122 o.stackFrames = buildUnnamed1080();
123 o.status = buildStatusMessage(); 123 o.status = buildStatusMessage();
124 o.userEmail = "foo"; 124 o.userEmail = "foo";
125 o.variableTable = buildUnnamed500(); 125 o.variableTable = buildUnnamed1081();
126 } 126 }
127 buildCounterBreakpoint--; 127 buildCounterBreakpoint--;
128 return o; 128 return o;
129 } 129 }
130 130
131 checkBreakpoint(api.Breakpoint o) { 131 checkBreakpoint(api.Breakpoint o) {
132 buildCounterBreakpoint++; 132 buildCounterBreakpoint++;
133 if (buildCounterBreakpoint < 3) { 133 if (buildCounterBreakpoint < 3) {
134 unittest.expect(o.action, unittest.equals('foo')); 134 unittest.expect(o.action, unittest.equals('foo'));
135 unittest.expect(o.condition, unittest.equals('foo')); 135 unittest.expect(o.condition, unittest.equals('foo'));
136 unittest.expect(o.createTime, unittest.equals('foo')); 136 unittest.expect(o.createTime, unittest.equals('foo'));
137 checkUnnamed497(o.evaluatedExpressions); 137 checkUnnamed1078(o.evaluatedExpressions);
138 checkUnnamed498(o.expressions); 138 checkUnnamed1079(o.expressions);
139 unittest.expect(o.finalTime, unittest.equals('foo')); 139 unittest.expect(o.finalTime, unittest.equals('foo'));
140 unittest.expect(o.id, unittest.equals('foo')); 140 unittest.expect(o.id, unittest.equals('foo'));
141 unittest.expect(o.isFinalState, unittest.isTrue); 141 unittest.expect(o.isFinalState, unittest.isTrue);
142 checkSourceLocation(o.location); 142 checkSourceLocation(o.location);
143 unittest.expect(o.logLevel, unittest.equals('foo')); 143 unittest.expect(o.logLevel, unittest.equals('foo'));
144 unittest.expect(o.logMessageFormat, unittest.equals('foo')); 144 unittest.expect(o.logMessageFormat, unittest.equals('foo'));
145 checkUnnamed499(o.stackFrames); 145 checkUnnamed1080(o.stackFrames);
146 checkStatusMessage(o.status); 146 checkStatusMessage(o.status);
147 unittest.expect(o.userEmail, unittest.equals('foo')); 147 unittest.expect(o.userEmail, unittest.equals('foo'));
148 checkUnnamed500(o.variableTable); 148 checkUnnamed1081(o.variableTable);
149 } 149 }
150 buildCounterBreakpoint--; 150 buildCounterBreakpoint--;
151 } 151 }
152 152
153 core.int buildCounterCloudRepoSourceContext = 0; 153 core.int buildCounterCloudRepoSourceContext = 0;
154 buildCloudRepoSourceContext() { 154 buildCloudRepoSourceContext() {
155 var o = new api.CloudRepoSourceContext(); 155 var o = new api.CloudRepoSourceContext();
156 buildCounterCloudRepoSourceContext++; 156 buildCounterCloudRepoSourceContext++;
157 if (buildCounterCloudRepoSourceContext < 3) { 157 if (buildCounterCloudRepoSourceContext < 3) {
158 o.aliasName = "foo"; 158 o.aliasName = "foo";
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 checkCloudWorkspaceSourceContext(api.CloudWorkspaceSourceContext o) { 209 checkCloudWorkspaceSourceContext(api.CloudWorkspaceSourceContext o) {
210 buildCounterCloudWorkspaceSourceContext++; 210 buildCounterCloudWorkspaceSourceContext++;
211 if (buildCounterCloudWorkspaceSourceContext < 3) { 211 if (buildCounterCloudWorkspaceSourceContext < 3) {
212 unittest.expect(o.snapshotId, unittest.equals('foo')); 212 unittest.expect(o.snapshotId, unittest.equals('foo'));
213 checkCloudWorkspaceId(o.workspaceId); 213 checkCloudWorkspaceId(o.workspaceId);
214 } 214 }
215 buildCounterCloudWorkspaceSourceContext--; 215 buildCounterCloudWorkspaceSourceContext--;
216 } 216 }
217 217
218 buildUnnamed501() { 218 buildUnnamed1082() {
219 var o = new core.Map<core.String, core.String>(); 219 var o = new core.Map<core.String, core.String>();
220 o["x"] = "foo"; 220 o["x"] = "foo";
221 o["y"] = "foo"; 221 o["y"] = "foo";
222 return o; 222 return o;
223 } 223 }
224 224
225 checkUnnamed501(core.Map<core.String, core.String> o) { 225 checkUnnamed1082(core.Map<core.String, core.String> o) {
226 unittest.expect(o, unittest.hasLength(2)); 226 unittest.expect(o, unittest.hasLength(2));
227 unittest.expect(o["x"], unittest.equals('foo')); 227 unittest.expect(o["x"], unittest.equals('foo'));
228 unittest.expect(o["y"], unittest.equals('foo')); 228 unittest.expect(o["y"], unittest.equals('foo'));
229 } 229 }
230 230
231 buildUnnamed502() { 231 buildUnnamed1083() {
232 var o = new core.List<api.SourceContext>(); 232 var o = new core.List<api.SourceContext>();
233 o.add(buildSourceContext()); 233 o.add(buildSourceContext());
234 o.add(buildSourceContext()); 234 o.add(buildSourceContext());
235 return o; 235 return o;
236 } 236 }
237 237
238 checkUnnamed502(core.List<api.SourceContext> o) { 238 checkUnnamed1083(core.List<api.SourceContext> o) {
239 unittest.expect(o, unittest.hasLength(2)); 239 unittest.expect(o, unittest.hasLength(2));
240 checkSourceContext(o[0]); 240 checkSourceContext(o[0]);
241 checkSourceContext(o[1]); 241 checkSourceContext(o[1]);
242 } 242 }
243 243
244 core.int buildCounterDebuggee = 0; 244 core.int buildCounterDebuggee = 0;
245 buildDebuggee() { 245 buildDebuggee() {
246 var o = new api.Debuggee(); 246 var o = new api.Debuggee();
247 buildCounterDebuggee++; 247 buildCounterDebuggee++;
248 if (buildCounterDebuggee < 3) { 248 if (buildCounterDebuggee < 3) {
249 o.agentVersion = "foo"; 249 o.agentVersion = "foo";
250 o.description = "foo"; 250 o.description = "foo";
251 o.id = "foo"; 251 o.id = "foo";
252 o.isDisabled = true; 252 o.isDisabled = true;
253 o.isInactive = true; 253 o.isInactive = true;
254 o.labels = buildUnnamed501(); 254 o.labels = buildUnnamed1082();
255 o.project = "foo"; 255 o.project = "foo";
256 o.sourceContexts = buildUnnamed502(); 256 o.sourceContexts = buildUnnamed1083();
257 o.status = buildStatusMessage(); 257 o.status = buildStatusMessage();
258 o.uniquifier = "foo"; 258 o.uniquifier = "foo";
259 } 259 }
260 buildCounterDebuggee--; 260 buildCounterDebuggee--;
261 return o; 261 return o;
262 } 262 }
263 263
264 checkDebuggee(api.Debuggee o) { 264 checkDebuggee(api.Debuggee o) {
265 buildCounterDebuggee++; 265 buildCounterDebuggee++;
266 if (buildCounterDebuggee < 3) { 266 if (buildCounterDebuggee < 3) {
267 unittest.expect(o.agentVersion, unittest.equals('foo')); 267 unittest.expect(o.agentVersion, unittest.equals('foo'));
268 unittest.expect(o.description, unittest.equals('foo')); 268 unittest.expect(o.description, unittest.equals('foo'));
269 unittest.expect(o.id, unittest.equals('foo')); 269 unittest.expect(o.id, unittest.equals('foo'));
270 unittest.expect(o.isDisabled, unittest.isTrue); 270 unittest.expect(o.isDisabled, unittest.isTrue);
271 unittest.expect(o.isInactive, unittest.isTrue); 271 unittest.expect(o.isInactive, unittest.isTrue);
272 checkUnnamed501(o.labels); 272 checkUnnamed1082(o.labels);
273 unittest.expect(o.project, unittest.equals('foo')); 273 unittest.expect(o.project, unittest.equals('foo'));
274 checkUnnamed502(o.sourceContexts); 274 checkUnnamed1083(o.sourceContexts);
275 checkStatusMessage(o.status); 275 checkStatusMessage(o.status);
276 unittest.expect(o.uniquifier, unittest.equals('foo')); 276 unittest.expect(o.uniquifier, unittest.equals('foo'));
277 } 277 }
278 buildCounterDebuggee--; 278 buildCounterDebuggee--;
279 } 279 }
280 280
281 core.int buildCounterEmpty = 0; 281 core.int buildCounterEmpty = 0;
282 buildEmpty() { 282 buildEmpty() {
283 var o = new api.Empty(); 283 var o = new api.Empty();
284 buildCounterEmpty++; 284 buildCounterEmpty++;
285 if (buildCounterEmpty < 3) { 285 if (buildCounterEmpty < 3) {
286 } 286 }
287 buildCounterEmpty--; 287 buildCounterEmpty--;
288 return o; 288 return o;
289 } 289 }
290 290
291 checkEmpty(api.Empty o) { 291 checkEmpty(api.Empty o) {
292 buildCounterEmpty++; 292 buildCounterEmpty++;
293 if (buildCounterEmpty < 3) { 293 if (buildCounterEmpty < 3) {
294 } 294 }
295 buildCounterEmpty--; 295 buildCounterEmpty--;
296 } 296 }
297 297
298 buildUnnamed503() { 298 buildUnnamed1084() {
299 var o = new core.List<core.String>(); 299 var o = new core.List<core.String>();
300 o.add("foo"); 300 o.add("foo");
301 o.add("foo"); 301 o.add("foo");
302 return o; 302 return o;
303 } 303 }
304 304
305 checkUnnamed503(core.List<core.String> o) { 305 checkUnnamed1084(core.List<core.String> o) {
306 unittest.expect(o, unittest.hasLength(2)); 306 unittest.expect(o, unittest.hasLength(2));
307 unittest.expect(o[0], unittest.equals('foo')); 307 unittest.expect(o[0], unittest.equals('foo'));
308 unittest.expect(o[1], unittest.equals('foo')); 308 unittest.expect(o[1], unittest.equals('foo'));
309 } 309 }
310 310
311 core.int buildCounterFormatMessage = 0; 311 core.int buildCounterFormatMessage = 0;
312 buildFormatMessage() { 312 buildFormatMessage() {
313 var o = new api.FormatMessage(); 313 var o = new api.FormatMessage();
314 buildCounterFormatMessage++; 314 buildCounterFormatMessage++;
315 if (buildCounterFormatMessage < 3) { 315 if (buildCounterFormatMessage < 3) {
316 o.format = "foo"; 316 o.format = "foo";
317 o.parameters = buildUnnamed503(); 317 o.parameters = buildUnnamed1084();
318 } 318 }
319 buildCounterFormatMessage--; 319 buildCounterFormatMessage--;
320 return o; 320 return o;
321 } 321 }
322 322
323 checkFormatMessage(api.FormatMessage o) { 323 checkFormatMessage(api.FormatMessage o) {
324 buildCounterFormatMessage++; 324 buildCounterFormatMessage++;
325 if (buildCounterFormatMessage < 3) { 325 if (buildCounterFormatMessage < 3) {
326 unittest.expect(o.format, unittest.equals('foo')); 326 unittest.expect(o.format, unittest.equals('foo'));
327 checkUnnamed503(o.parameters); 327 checkUnnamed1084(o.parameters);
328 } 328 }
329 buildCounterFormatMessage--; 329 buildCounterFormatMessage--;
330 } 330 }
331 331
332 core.int buildCounterGerritSourceContext = 0; 332 core.int buildCounterGerritSourceContext = 0;
333 buildGerritSourceContext() { 333 buildGerritSourceContext() {
334 var o = new api.GerritSourceContext(); 334 var o = new api.GerritSourceContext();
335 buildCounterGerritSourceContext++; 335 buildCounterGerritSourceContext++;
336 if (buildCounterGerritSourceContext < 3) { 336 if (buildCounterGerritSourceContext < 3) {
337 o.aliasName = "foo"; 337 o.aliasName = "foo";
(...skipping 28 matching lines...) Expand all
366 } 366 }
367 367
368 checkGetBreakpointResponse(api.GetBreakpointResponse o) { 368 checkGetBreakpointResponse(api.GetBreakpointResponse o) {
369 buildCounterGetBreakpointResponse++; 369 buildCounterGetBreakpointResponse++;
370 if (buildCounterGetBreakpointResponse < 3) { 370 if (buildCounterGetBreakpointResponse < 3) {
371 checkBreakpoint(o.breakpoint); 371 checkBreakpoint(o.breakpoint);
372 } 372 }
373 buildCounterGetBreakpointResponse--; 373 buildCounterGetBreakpointResponse--;
374 } 374 }
375 375
376 buildUnnamed504() { 376 core.int buildCounterGitSourceContext = 0;
377 buildGitSourceContext() {
378 var o = new api.GitSourceContext();
379 buildCounterGitSourceContext++;
380 if (buildCounterGitSourceContext < 3) {
381 o.revisionId = "foo";
382 o.url = "foo";
383 }
384 buildCounterGitSourceContext--;
385 return o;
386 }
387
388 checkGitSourceContext(api.GitSourceContext o) {
389 buildCounterGitSourceContext++;
390 if (buildCounterGitSourceContext < 3) {
391 unittest.expect(o.revisionId, unittest.equals('foo'));
392 unittest.expect(o.url, unittest.equals('foo'));
393 }
394 buildCounterGitSourceContext--;
395 }
396
397 buildUnnamed1085() {
377 var o = new core.List<api.Breakpoint>(); 398 var o = new core.List<api.Breakpoint>();
378 o.add(buildBreakpoint()); 399 o.add(buildBreakpoint());
379 o.add(buildBreakpoint()); 400 o.add(buildBreakpoint());
380 return o; 401 return o;
381 } 402 }
382 403
383 checkUnnamed504(core.List<api.Breakpoint> o) { 404 checkUnnamed1085(core.List<api.Breakpoint> o) {
384 unittest.expect(o, unittest.hasLength(2)); 405 unittest.expect(o, unittest.hasLength(2));
385 checkBreakpoint(o[0]); 406 checkBreakpoint(o[0]);
386 checkBreakpoint(o[1]); 407 checkBreakpoint(o[1]);
387 } 408 }
388 409
389 core.int buildCounterListActiveBreakpointsResponse = 0; 410 core.int buildCounterListActiveBreakpointsResponse = 0;
390 buildListActiveBreakpointsResponse() { 411 buildListActiveBreakpointsResponse() {
391 var o = new api.ListActiveBreakpointsResponse(); 412 var o = new api.ListActiveBreakpointsResponse();
392 buildCounterListActiveBreakpointsResponse++; 413 buildCounterListActiveBreakpointsResponse++;
393 if (buildCounterListActiveBreakpointsResponse < 3) { 414 if (buildCounterListActiveBreakpointsResponse < 3) {
394 o.breakpoints = buildUnnamed504(); 415 o.breakpoints = buildUnnamed1085();
395 o.nextWaitToken = "foo"; 416 o.nextWaitToken = "foo";
396 } 417 }
397 buildCounterListActiveBreakpointsResponse--; 418 buildCounterListActiveBreakpointsResponse--;
398 return o; 419 return o;
399 } 420 }
400 421
401 checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { 422 checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) {
402 buildCounterListActiveBreakpointsResponse++; 423 buildCounterListActiveBreakpointsResponse++;
403 if (buildCounterListActiveBreakpointsResponse < 3) { 424 if (buildCounterListActiveBreakpointsResponse < 3) {
404 checkUnnamed504(o.breakpoints); 425 checkUnnamed1085(o.breakpoints);
405 unittest.expect(o.nextWaitToken, unittest.equals('foo')); 426 unittest.expect(o.nextWaitToken, unittest.equals('foo'));
406 } 427 }
407 buildCounterListActiveBreakpointsResponse--; 428 buildCounterListActiveBreakpointsResponse--;
408 } 429 }
409 430
410 buildUnnamed505() { 431 buildUnnamed1086() {
411 var o = new core.List<api.Breakpoint>(); 432 var o = new core.List<api.Breakpoint>();
412 o.add(buildBreakpoint()); 433 o.add(buildBreakpoint());
413 o.add(buildBreakpoint()); 434 o.add(buildBreakpoint());
414 return o; 435 return o;
415 } 436 }
416 437
417 checkUnnamed505(core.List<api.Breakpoint> o) { 438 checkUnnamed1086(core.List<api.Breakpoint> o) {
418 unittest.expect(o, unittest.hasLength(2)); 439 unittest.expect(o, unittest.hasLength(2));
419 checkBreakpoint(o[0]); 440 checkBreakpoint(o[0]);
420 checkBreakpoint(o[1]); 441 checkBreakpoint(o[1]);
421 } 442 }
422 443
423 core.int buildCounterListBreakpointsResponse = 0; 444 core.int buildCounterListBreakpointsResponse = 0;
424 buildListBreakpointsResponse() { 445 buildListBreakpointsResponse() {
425 var o = new api.ListBreakpointsResponse(); 446 var o = new api.ListBreakpointsResponse();
426 buildCounterListBreakpointsResponse++; 447 buildCounterListBreakpointsResponse++;
427 if (buildCounterListBreakpointsResponse < 3) { 448 if (buildCounterListBreakpointsResponse < 3) {
428 o.breakpoints = buildUnnamed505(); 449 o.breakpoints = buildUnnamed1086();
429 o.nextWaitToken = "foo"; 450 o.nextWaitToken = "foo";
430 } 451 }
431 buildCounterListBreakpointsResponse--; 452 buildCounterListBreakpointsResponse--;
432 return o; 453 return o;
433 } 454 }
434 455
435 checkListBreakpointsResponse(api.ListBreakpointsResponse o) { 456 checkListBreakpointsResponse(api.ListBreakpointsResponse o) {
436 buildCounterListBreakpointsResponse++; 457 buildCounterListBreakpointsResponse++;
437 if (buildCounterListBreakpointsResponse < 3) { 458 if (buildCounterListBreakpointsResponse < 3) {
438 checkUnnamed505(o.breakpoints); 459 checkUnnamed1086(o.breakpoints);
439 unittest.expect(o.nextWaitToken, unittest.equals('foo')); 460 unittest.expect(o.nextWaitToken, unittest.equals('foo'));
440 } 461 }
441 buildCounterListBreakpointsResponse--; 462 buildCounterListBreakpointsResponse--;
442 } 463 }
443 464
444 buildUnnamed506() { 465 buildUnnamed1087() {
445 var o = new core.List<api.Debuggee>(); 466 var o = new core.List<api.Debuggee>();
446 o.add(buildDebuggee()); 467 o.add(buildDebuggee());
447 o.add(buildDebuggee()); 468 o.add(buildDebuggee());
448 return o; 469 return o;
449 } 470 }
450 471
451 checkUnnamed506(core.List<api.Debuggee> o) { 472 checkUnnamed1087(core.List<api.Debuggee> o) {
452 unittest.expect(o, unittest.hasLength(2)); 473 unittest.expect(o, unittest.hasLength(2));
453 checkDebuggee(o[0]); 474 checkDebuggee(o[0]);
454 checkDebuggee(o[1]); 475 checkDebuggee(o[1]);
455 } 476 }
456 477
457 core.int buildCounterListDebuggeesResponse = 0; 478 core.int buildCounterListDebuggeesResponse = 0;
458 buildListDebuggeesResponse() { 479 buildListDebuggeesResponse() {
459 var o = new api.ListDebuggeesResponse(); 480 var o = new api.ListDebuggeesResponse();
460 buildCounterListDebuggeesResponse++; 481 buildCounterListDebuggeesResponse++;
461 if (buildCounterListDebuggeesResponse < 3) { 482 if (buildCounterListDebuggeesResponse < 3) {
462 o.debuggees = buildUnnamed506(); 483 o.debuggees = buildUnnamed1087();
463 } 484 }
464 buildCounterListDebuggeesResponse--; 485 buildCounterListDebuggeesResponse--;
465 return o; 486 return o;
466 } 487 }
467 488
468 checkListDebuggeesResponse(api.ListDebuggeesResponse o) { 489 checkListDebuggeesResponse(api.ListDebuggeesResponse o) {
469 buildCounterListDebuggeesResponse++; 490 buildCounterListDebuggeesResponse++;
470 if (buildCounterListDebuggeesResponse < 3) { 491 if (buildCounterListDebuggeesResponse < 3) {
471 checkUnnamed506(o.debuggees); 492 checkUnnamed1087(o.debuggees);
472 } 493 }
473 buildCounterListDebuggeesResponse--; 494 buildCounterListDebuggeesResponse--;
474 } 495 }
475 496
476 core.int buildCounterProjectRepoId = 0; 497 core.int buildCounterProjectRepoId = 0;
477 buildProjectRepoId() { 498 buildProjectRepoId() {
478 var o = new api.ProjectRepoId(); 499 var o = new api.ProjectRepoId();
479 buildCounterProjectRepoId++; 500 buildCounterProjectRepoId++;
480 if (buildCounterProjectRepoId < 3) { 501 if (buildCounterProjectRepoId < 3) {
481 o.projectId = "foo"; 502 o.projectId = "foo";
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 } 594 }
574 595
575 core.int buildCounterSourceContext = 0; 596 core.int buildCounterSourceContext = 0;
576 buildSourceContext() { 597 buildSourceContext() {
577 var o = new api.SourceContext(); 598 var o = new api.SourceContext();
578 buildCounterSourceContext++; 599 buildCounterSourceContext++;
579 if (buildCounterSourceContext < 3) { 600 if (buildCounterSourceContext < 3) {
580 o.cloudRepo = buildCloudRepoSourceContext(); 601 o.cloudRepo = buildCloudRepoSourceContext();
581 o.cloudWorkspace = buildCloudWorkspaceSourceContext(); 602 o.cloudWorkspace = buildCloudWorkspaceSourceContext();
582 o.gerrit = buildGerritSourceContext(); 603 o.gerrit = buildGerritSourceContext();
604 o.git = buildGitSourceContext();
583 } 605 }
584 buildCounterSourceContext--; 606 buildCounterSourceContext--;
585 return o; 607 return o;
586 } 608 }
587 609
588 checkSourceContext(api.SourceContext o) { 610 checkSourceContext(api.SourceContext o) {
589 buildCounterSourceContext++; 611 buildCounterSourceContext++;
590 if (buildCounterSourceContext < 3) { 612 if (buildCounterSourceContext < 3) {
591 checkCloudRepoSourceContext(o.cloudRepo); 613 checkCloudRepoSourceContext(o.cloudRepo);
592 checkCloudWorkspaceSourceContext(o.cloudWorkspace); 614 checkCloudWorkspaceSourceContext(o.cloudWorkspace);
593 checkGerritSourceContext(o.gerrit); 615 checkGerritSourceContext(o.gerrit);
616 checkGitSourceContext(o.git);
594 } 617 }
595 buildCounterSourceContext--; 618 buildCounterSourceContext--;
596 } 619 }
597 620
598 core.int buildCounterSourceLocation = 0; 621 core.int buildCounterSourceLocation = 0;
599 buildSourceLocation() { 622 buildSourceLocation() {
600 var o = new api.SourceLocation(); 623 var o = new api.SourceLocation();
601 buildCounterSourceLocation++; 624 buildCounterSourceLocation++;
602 if (buildCounterSourceLocation < 3) { 625 if (buildCounterSourceLocation < 3) {
603 o.line = 42; 626 o.line = 42;
604 o.path = "foo"; 627 o.path = "foo";
605 } 628 }
606 buildCounterSourceLocation--; 629 buildCounterSourceLocation--;
607 return o; 630 return o;
608 } 631 }
609 632
610 checkSourceLocation(api.SourceLocation o) { 633 checkSourceLocation(api.SourceLocation o) {
611 buildCounterSourceLocation++; 634 buildCounterSourceLocation++;
612 if (buildCounterSourceLocation < 3) { 635 if (buildCounterSourceLocation < 3) {
613 unittest.expect(o.line, unittest.equals(42)); 636 unittest.expect(o.line, unittest.equals(42));
614 unittest.expect(o.path, unittest.equals('foo')); 637 unittest.expect(o.path, unittest.equals('foo'));
615 } 638 }
616 buildCounterSourceLocation--; 639 buildCounterSourceLocation--;
617 } 640 }
618 641
619 buildUnnamed507() { 642 buildUnnamed1088() {
620 var o = new core.List<api.Variable>(); 643 var o = new core.List<api.Variable>();
621 o.add(buildVariable()); 644 o.add(buildVariable());
622 o.add(buildVariable()); 645 o.add(buildVariable());
623 return o; 646 return o;
624 } 647 }
625 648
626 checkUnnamed507(core.List<api.Variable> o) { 649 checkUnnamed1088(core.List<api.Variable> o) {
627 unittest.expect(o, unittest.hasLength(2)); 650 unittest.expect(o, unittest.hasLength(2));
628 checkVariable(o[0]); 651 checkVariable(o[0]);
629 checkVariable(o[1]); 652 checkVariable(o[1]);
630 } 653 }
631 654
632 buildUnnamed508() { 655 buildUnnamed1089() {
633 var o = new core.List<api.Variable>(); 656 var o = new core.List<api.Variable>();
634 o.add(buildVariable()); 657 o.add(buildVariable());
635 o.add(buildVariable()); 658 o.add(buildVariable());
636 return o; 659 return o;
637 } 660 }
638 661
639 checkUnnamed508(core.List<api.Variable> o) { 662 checkUnnamed1089(core.List<api.Variable> o) {
640 unittest.expect(o, unittest.hasLength(2)); 663 unittest.expect(o, unittest.hasLength(2));
641 checkVariable(o[0]); 664 checkVariable(o[0]);
642 checkVariable(o[1]); 665 checkVariable(o[1]);
643 } 666 }
644 667
645 core.int buildCounterStackFrame = 0; 668 core.int buildCounterStackFrame = 0;
646 buildStackFrame() { 669 buildStackFrame() {
647 var o = new api.StackFrame(); 670 var o = new api.StackFrame();
648 buildCounterStackFrame++; 671 buildCounterStackFrame++;
649 if (buildCounterStackFrame < 3) { 672 if (buildCounterStackFrame < 3) {
650 o.arguments = buildUnnamed507(); 673 o.arguments = buildUnnamed1088();
651 o.function = "foo"; 674 o.function = "foo";
652 o.locals = buildUnnamed508(); 675 o.locals = buildUnnamed1089();
653 o.location = buildSourceLocation(); 676 o.location = buildSourceLocation();
654 } 677 }
655 buildCounterStackFrame--; 678 buildCounterStackFrame--;
656 return o; 679 return o;
657 } 680 }
658 681
659 checkStackFrame(api.StackFrame o) { 682 checkStackFrame(api.StackFrame o) {
660 buildCounterStackFrame++; 683 buildCounterStackFrame++;
661 if (buildCounterStackFrame < 3) { 684 if (buildCounterStackFrame < 3) {
662 checkUnnamed507(o.arguments); 685 checkUnnamed1088(o.arguments);
663 unittest.expect(o.function, unittest.equals('foo')); 686 unittest.expect(o.function, unittest.equals('foo'));
664 checkUnnamed508(o.locals); 687 checkUnnamed1089(o.locals);
665 checkSourceLocation(o.location); 688 checkSourceLocation(o.location);
666 } 689 }
667 buildCounterStackFrame--; 690 buildCounterStackFrame--;
668 } 691 }
669 692
670 core.int buildCounterStatusMessage = 0; 693 core.int buildCounterStatusMessage = 0;
671 buildStatusMessage() { 694 buildStatusMessage() {
672 var o = new api.StatusMessage(); 695 var o = new api.StatusMessage();
673 buildCounterStatusMessage++; 696 buildCounterStatusMessage++;
674 if (buildCounterStatusMessage < 3) { 697 if (buildCounterStatusMessage < 3) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 return o; 742 return o;
720 } 743 }
721 744
722 checkUpdateActiveBreakpointResponse(api.UpdateActiveBreakpointResponse o) { 745 checkUpdateActiveBreakpointResponse(api.UpdateActiveBreakpointResponse o) {
723 buildCounterUpdateActiveBreakpointResponse++; 746 buildCounterUpdateActiveBreakpointResponse++;
724 if (buildCounterUpdateActiveBreakpointResponse < 3) { 747 if (buildCounterUpdateActiveBreakpointResponse < 3) {
725 } 748 }
726 buildCounterUpdateActiveBreakpointResponse--; 749 buildCounterUpdateActiveBreakpointResponse--;
727 } 750 }
728 751
729 buildUnnamed509() { 752 buildUnnamed1090() {
730 var o = new core.List<api.Variable>(); 753 var o = new core.List<api.Variable>();
731 o.add(buildVariable()); 754 o.add(buildVariable());
732 o.add(buildVariable()); 755 o.add(buildVariable());
733 return o; 756 return o;
734 } 757 }
735 758
736 checkUnnamed509(core.List<api.Variable> o) { 759 checkUnnamed1090(core.List<api.Variable> o) {
737 unittest.expect(o, unittest.hasLength(2)); 760 unittest.expect(o, unittest.hasLength(2));
738 checkVariable(o[0]); 761 checkVariable(o[0]);
739 checkVariable(o[1]); 762 checkVariable(o[1]);
740 } 763 }
741 764
742 core.int buildCounterVariable = 0; 765 core.int buildCounterVariable = 0;
743 buildVariable() { 766 buildVariable() {
744 var o = new api.Variable(); 767 var o = new api.Variable();
745 buildCounterVariable++; 768 buildCounterVariable++;
746 if (buildCounterVariable < 3) { 769 if (buildCounterVariable < 3) {
747 o.members = buildUnnamed509(); 770 o.members = buildUnnamed1090();
748 o.name = "foo"; 771 o.name = "foo";
749 o.status = buildStatusMessage(); 772 o.status = buildStatusMessage();
750 o.value = "foo"; 773 o.value = "foo";
751 o.varTableIndex = 42; 774 o.varTableIndex = 42;
752 } 775 }
753 buildCounterVariable--; 776 buildCounterVariable--;
754 return o; 777 return o;
755 } 778 }
756 779
757 checkVariable(api.Variable o) { 780 checkVariable(api.Variable o) {
758 buildCounterVariable++; 781 buildCounterVariable++;
759 if (buildCounterVariable < 3) { 782 if (buildCounterVariable < 3) {
760 checkUnnamed509(o.members); 783 checkUnnamed1090(o.members);
761 unittest.expect(o.name, unittest.equals('foo')); 784 unittest.expect(o.name, unittest.equals('foo'));
762 checkStatusMessage(o.status); 785 checkStatusMessage(o.status);
763 unittest.expect(o.value, unittest.equals('foo')); 786 unittest.expect(o.value, unittest.equals('foo'));
764 unittest.expect(o.varTableIndex, unittest.equals(42)); 787 unittest.expect(o.varTableIndex, unittest.equals(42));
765 } 788 }
766 buildCounterVariable--; 789 buildCounterVariable--;
767 } 790 }
768 791
769 792
770 main() { 793 main() {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 865
843 unittest.group("obj-schema-GetBreakpointResponse", () { 866 unittest.group("obj-schema-GetBreakpointResponse", () {
844 unittest.test("to-json--from-json", () { 867 unittest.test("to-json--from-json", () {
845 var o = buildGetBreakpointResponse(); 868 var o = buildGetBreakpointResponse();
846 var od = new api.GetBreakpointResponse.fromJson(o.toJson()); 869 var od = new api.GetBreakpointResponse.fromJson(o.toJson());
847 checkGetBreakpointResponse(od); 870 checkGetBreakpointResponse(od);
848 }); 871 });
849 }); 872 });
850 873
851 874
875 unittest.group("obj-schema-GitSourceContext", () {
876 unittest.test("to-json--from-json", () {
877 var o = buildGitSourceContext();
878 var od = new api.GitSourceContext.fromJson(o.toJson());
879 checkGitSourceContext(od);
880 });
881 });
882
883
852 unittest.group("obj-schema-ListActiveBreakpointsResponse", () { 884 unittest.group("obj-schema-ListActiveBreakpointsResponse", () {
853 unittest.test("to-json--from-json", () { 885 unittest.test("to-json--from-json", () {
854 var o = buildListActiveBreakpointsResponse(); 886 var o = buildListActiveBreakpointsResponse();
855 var od = new api.ListActiveBreakpointsResponse.fromJson(o.toJson()); 887 var od = new api.ListActiveBreakpointsResponse.fromJson(o.toJson());
856 checkListActiveBreakpointsResponse(od); 888 checkListActiveBreakpointsResponse(od);
857 }); 889 });
858 }); 890 });
859 891
860 892
861 unittest.group("obj-schema-ListBreakpointsResponse", () { 893 unittest.group("obj-schema-ListBreakpointsResponse", () {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 res.set(arg_request, arg_debuggeeId).then(unittest.expectAsync(((api.SetBr eakpointResponse response) { 1459 res.set(arg_request, arg_debuggeeId).then(unittest.expectAsync(((api.SetBr eakpointResponse response) {
1428 checkSetBreakpointResponse(response); 1460 checkSetBreakpointResponse(response);
1429 }))); 1461 })));
1430 }); 1462 });
1431 1463
1432 }); 1464 });
1433 1465
1434 1466
1435 } 1467 }
1436 1468
OLDNEW
« no previous file with comments | « generated/googleapis/test/cloudbilling/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