| OLD | NEW |
| 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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 buildUnnamed816() { | 75 buildUnnamed891() { |
| 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 checkUnnamed816(core.List<api.Variable> o) { | 82 checkUnnamed891(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 buildUnnamed817() { | 88 buildUnnamed892() { |
| 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 checkUnnamed817(core.List<core.String> o) { | 95 checkUnnamed892(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 buildUnnamed818() { | 101 buildUnnamed893() { |
| 102 var o = new core.Map<core.String, core.String>(); | 102 var o = new core.Map<core.String, core.String>(); |
| 103 o["x"] = "foo"; | 103 o["x"] = "foo"; |
| 104 o["y"] = "foo"; | 104 o["y"] = "foo"; |
| 105 return o; | 105 return o; |
| 106 } | 106 } |
| 107 | 107 |
| 108 checkUnnamed818(core.Map<core.String, core.String> o) { | 108 checkUnnamed893(core.Map<core.String, core.String> o) { |
| 109 unittest.expect(o, unittest.hasLength(2)); | 109 unittest.expect(o, unittest.hasLength(2)); |
| 110 unittest.expect(o["x"], unittest.equals('foo')); | 110 unittest.expect(o["x"], unittest.equals('foo')); |
| 111 unittest.expect(o["y"], unittest.equals('foo')); | 111 unittest.expect(o["y"], unittest.equals('foo')); |
| 112 } | 112 } |
| 113 | 113 |
| 114 buildUnnamed819() { | 114 buildUnnamed894() { |
| 115 var o = new core.List<api.StackFrame>(); | 115 var o = new core.List<api.StackFrame>(); |
| 116 o.add(buildStackFrame()); | 116 o.add(buildStackFrame()); |
| 117 o.add(buildStackFrame()); | 117 o.add(buildStackFrame()); |
| 118 return o; | 118 return o; |
| 119 } | 119 } |
| 120 | 120 |
| 121 checkUnnamed819(core.List<api.StackFrame> o) { | 121 checkUnnamed894(core.List<api.StackFrame> o) { |
| 122 unittest.expect(o, unittest.hasLength(2)); | 122 unittest.expect(o, unittest.hasLength(2)); |
| 123 checkStackFrame(o[0]); | 123 checkStackFrame(o[0]); |
| 124 checkStackFrame(o[1]); | 124 checkStackFrame(o[1]); |
| 125 } | 125 } |
| 126 | 126 |
| 127 buildUnnamed820() { | 127 buildUnnamed895() { |
| 128 var o = new core.List<api.Variable>(); | 128 var o = new core.List<api.Variable>(); |
| 129 o.add(buildVariable()); | 129 o.add(buildVariable()); |
| 130 o.add(buildVariable()); | 130 o.add(buildVariable()); |
| 131 return o; | 131 return o; |
| 132 } | 132 } |
| 133 | 133 |
| 134 checkUnnamed820(core.List<api.Variable> o) { | 134 checkUnnamed895(core.List<api.Variable> o) { |
| 135 unittest.expect(o, unittest.hasLength(2)); | 135 unittest.expect(o, unittest.hasLength(2)); |
| 136 checkVariable(o[0]); | 136 checkVariable(o[0]); |
| 137 checkVariable(o[1]); | 137 checkVariable(o[1]); |
| 138 } | 138 } |
| 139 | 139 |
| 140 core.int buildCounterBreakpoint = 0; | 140 core.int buildCounterBreakpoint = 0; |
| 141 buildBreakpoint() { | 141 buildBreakpoint() { |
| 142 var o = new api.Breakpoint(); | 142 var o = new api.Breakpoint(); |
| 143 buildCounterBreakpoint++; | 143 buildCounterBreakpoint++; |
| 144 if (buildCounterBreakpoint < 3) { | 144 if (buildCounterBreakpoint < 3) { |
| 145 o.action = "foo"; | 145 o.action = "foo"; |
| 146 o.condition = "foo"; | 146 o.condition = "foo"; |
| 147 o.createTime = "foo"; | 147 o.createTime = "foo"; |
| 148 o.evaluatedExpressions = buildUnnamed816(); | 148 o.evaluatedExpressions = buildUnnamed891(); |
| 149 o.expressions = buildUnnamed817(); | 149 o.expressions = buildUnnamed892(); |
| 150 o.finalTime = "foo"; | 150 o.finalTime = "foo"; |
| 151 o.id = "foo"; | 151 o.id = "foo"; |
| 152 o.isFinalState = true; | 152 o.isFinalState = true; |
| 153 o.labels = buildUnnamed818(); | 153 o.labels = buildUnnamed893(); |
| 154 o.location = buildSourceLocation(); | 154 o.location = buildSourceLocation(); |
| 155 o.logLevel = "foo"; | 155 o.logLevel = "foo"; |
| 156 o.logMessageFormat = "foo"; | 156 o.logMessageFormat = "foo"; |
| 157 o.stackFrames = buildUnnamed819(); | 157 o.stackFrames = buildUnnamed894(); |
| 158 o.status = buildStatusMessage(); | 158 o.status = buildStatusMessage(); |
| 159 o.userEmail = "foo"; | 159 o.userEmail = "foo"; |
| 160 o.variableTable = buildUnnamed820(); | 160 o.variableTable = buildUnnamed895(); |
| 161 } | 161 } |
| 162 buildCounterBreakpoint--; | 162 buildCounterBreakpoint--; |
| 163 return o; | 163 return o; |
| 164 } | 164 } |
| 165 | 165 |
| 166 checkBreakpoint(api.Breakpoint o) { | 166 checkBreakpoint(api.Breakpoint o) { |
| 167 buildCounterBreakpoint++; | 167 buildCounterBreakpoint++; |
| 168 if (buildCounterBreakpoint < 3) { | 168 if (buildCounterBreakpoint < 3) { |
| 169 unittest.expect(o.action, unittest.equals('foo')); | 169 unittest.expect(o.action, unittest.equals('foo')); |
| 170 unittest.expect(o.condition, unittest.equals('foo')); | 170 unittest.expect(o.condition, unittest.equals('foo')); |
| 171 unittest.expect(o.createTime, unittest.equals('foo')); | 171 unittest.expect(o.createTime, unittest.equals('foo')); |
| 172 checkUnnamed816(o.evaluatedExpressions); | 172 checkUnnamed891(o.evaluatedExpressions); |
| 173 checkUnnamed817(o.expressions); | 173 checkUnnamed892(o.expressions); |
| 174 unittest.expect(o.finalTime, unittest.equals('foo')); | 174 unittest.expect(o.finalTime, unittest.equals('foo')); |
| 175 unittest.expect(o.id, unittest.equals('foo')); | 175 unittest.expect(o.id, unittest.equals('foo')); |
| 176 unittest.expect(o.isFinalState, unittest.isTrue); | 176 unittest.expect(o.isFinalState, unittest.isTrue); |
| 177 checkUnnamed818(o.labels); | 177 checkUnnamed893(o.labels); |
| 178 checkSourceLocation(o.location); | 178 checkSourceLocation(o.location); |
| 179 unittest.expect(o.logLevel, unittest.equals('foo')); | 179 unittest.expect(o.logLevel, unittest.equals('foo')); |
| 180 unittest.expect(o.logMessageFormat, unittest.equals('foo')); | 180 unittest.expect(o.logMessageFormat, unittest.equals('foo')); |
| 181 checkUnnamed819(o.stackFrames); | 181 checkUnnamed894(o.stackFrames); |
| 182 checkStatusMessage(o.status); | 182 checkStatusMessage(o.status); |
| 183 unittest.expect(o.userEmail, unittest.equals('foo')); | 183 unittest.expect(o.userEmail, unittest.equals('foo')); |
| 184 checkUnnamed820(o.variableTable); | 184 checkUnnamed895(o.variableTable); |
| 185 } | 185 } |
| 186 buildCounterBreakpoint--; | 186 buildCounterBreakpoint--; |
| 187 } | 187 } |
| 188 | 188 |
| 189 core.int buildCounterCloudRepoSourceContext = 0; | 189 core.int buildCounterCloudRepoSourceContext = 0; |
| 190 buildCloudRepoSourceContext() { | 190 buildCloudRepoSourceContext() { |
| 191 var o = new api.CloudRepoSourceContext(); | 191 var o = new api.CloudRepoSourceContext(); |
| 192 buildCounterCloudRepoSourceContext++; | 192 buildCounterCloudRepoSourceContext++; |
| 193 if (buildCounterCloudRepoSourceContext < 3) { | 193 if (buildCounterCloudRepoSourceContext < 3) { |
| 194 o.aliasContext = buildAliasContext(); | 194 o.aliasContext = buildAliasContext(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 checkCloudWorkspaceSourceContext(api.CloudWorkspaceSourceContext o) { | 247 checkCloudWorkspaceSourceContext(api.CloudWorkspaceSourceContext o) { |
| 248 buildCounterCloudWorkspaceSourceContext++; | 248 buildCounterCloudWorkspaceSourceContext++; |
| 249 if (buildCounterCloudWorkspaceSourceContext < 3) { | 249 if (buildCounterCloudWorkspaceSourceContext < 3) { |
| 250 unittest.expect(o.snapshotId, unittest.equals('foo')); | 250 unittest.expect(o.snapshotId, unittest.equals('foo')); |
| 251 checkCloudWorkspaceId(o.workspaceId); | 251 checkCloudWorkspaceId(o.workspaceId); |
| 252 } | 252 } |
| 253 buildCounterCloudWorkspaceSourceContext--; | 253 buildCounterCloudWorkspaceSourceContext--; |
| 254 } | 254 } |
| 255 | 255 |
| 256 buildUnnamed821() { | 256 buildUnnamed896() { |
| 257 var o = new core.List<api.ExtendedSourceContext>(); | 257 var o = new core.List<api.ExtendedSourceContext>(); |
| 258 o.add(buildExtendedSourceContext()); | 258 o.add(buildExtendedSourceContext()); |
| 259 o.add(buildExtendedSourceContext()); | 259 o.add(buildExtendedSourceContext()); |
| 260 return o; | 260 return o; |
| 261 } | 261 } |
| 262 | 262 |
| 263 checkUnnamed821(core.List<api.ExtendedSourceContext> o) { | 263 checkUnnamed896(core.List<api.ExtendedSourceContext> o) { |
| 264 unittest.expect(o, unittest.hasLength(2)); | 264 unittest.expect(o, unittest.hasLength(2)); |
| 265 checkExtendedSourceContext(o[0]); | 265 checkExtendedSourceContext(o[0]); |
| 266 checkExtendedSourceContext(o[1]); | 266 checkExtendedSourceContext(o[1]); |
| 267 } | 267 } |
| 268 | 268 |
| 269 buildUnnamed822() { | 269 buildUnnamed897() { |
| 270 var o = new core.Map<core.String, core.String>(); | 270 var o = new core.Map<core.String, core.String>(); |
| 271 o["x"] = "foo"; | 271 o["x"] = "foo"; |
| 272 o["y"] = "foo"; | 272 o["y"] = "foo"; |
| 273 return o; | 273 return o; |
| 274 } | 274 } |
| 275 | 275 |
| 276 checkUnnamed822(core.Map<core.String, core.String> o) { | 276 checkUnnamed897(core.Map<core.String, core.String> o) { |
| 277 unittest.expect(o, unittest.hasLength(2)); | 277 unittest.expect(o, unittest.hasLength(2)); |
| 278 unittest.expect(o["x"], unittest.equals('foo')); | 278 unittest.expect(o["x"], unittest.equals('foo')); |
| 279 unittest.expect(o["y"], unittest.equals('foo')); | 279 unittest.expect(o["y"], unittest.equals('foo')); |
| 280 } | 280 } |
| 281 | 281 |
| 282 buildUnnamed823() { | 282 buildUnnamed898() { |
| 283 var o = new core.List<api.SourceContext>(); | 283 var o = new core.List<api.SourceContext>(); |
| 284 o.add(buildSourceContext()); | 284 o.add(buildSourceContext()); |
| 285 o.add(buildSourceContext()); | 285 o.add(buildSourceContext()); |
| 286 return o; | 286 return o; |
| 287 } | 287 } |
| 288 | 288 |
| 289 checkUnnamed823(core.List<api.SourceContext> o) { | 289 checkUnnamed898(core.List<api.SourceContext> o) { |
| 290 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
| 291 checkSourceContext(o[0]); | 291 checkSourceContext(o[0]); |
| 292 checkSourceContext(o[1]); | 292 checkSourceContext(o[1]); |
| 293 } | 293 } |
| 294 | 294 |
| 295 core.int buildCounterDebuggee = 0; | 295 core.int buildCounterDebuggee = 0; |
| 296 buildDebuggee() { | 296 buildDebuggee() { |
| 297 var o = new api.Debuggee(); | 297 var o = new api.Debuggee(); |
| 298 buildCounterDebuggee++; | 298 buildCounterDebuggee++; |
| 299 if (buildCounterDebuggee < 3) { | 299 if (buildCounterDebuggee < 3) { |
| 300 o.agentVersion = "foo"; | 300 o.agentVersion = "foo"; |
| 301 o.description = "foo"; | 301 o.description = "foo"; |
| 302 o.extSourceContexts = buildUnnamed821(); | 302 o.extSourceContexts = buildUnnamed896(); |
| 303 o.id = "foo"; | 303 o.id = "foo"; |
| 304 o.isDisabled = true; | 304 o.isDisabled = true; |
| 305 o.isInactive = true; | 305 o.isInactive = true; |
| 306 o.labels = buildUnnamed822(); | 306 o.labels = buildUnnamed897(); |
| 307 o.project = "foo"; | 307 o.project = "foo"; |
| 308 o.sourceContexts = buildUnnamed823(); | 308 o.sourceContexts = buildUnnamed898(); |
| 309 o.status = buildStatusMessage(); | 309 o.status = buildStatusMessage(); |
| 310 o.uniquifier = "foo"; | 310 o.uniquifier = "foo"; |
| 311 } | 311 } |
| 312 buildCounterDebuggee--; | 312 buildCounterDebuggee--; |
| 313 return o; | 313 return o; |
| 314 } | 314 } |
| 315 | 315 |
| 316 checkDebuggee(api.Debuggee o) { | 316 checkDebuggee(api.Debuggee o) { |
| 317 buildCounterDebuggee++; | 317 buildCounterDebuggee++; |
| 318 if (buildCounterDebuggee < 3) { | 318 if (buildCounterDebuggee < 3) { |
| 319 unittest.expect(o.agentVersion, unittest.equals('foo')); | 319 unittest.expect(o.agentVersion, unittest.equals('foo')); |
| 320 unittest.expect(o.description, unittest.equals('foo')); | 320 unittest.expect(o.description, unittest.equals('foo')); |
| 321 checkUnnamed821(o.extSourceContexts); | 321 checkUnnamed896(o.extSourceContexts); |
| 322 unittest.expect(o.id, unittest.equals('foo')); | 322 unittest.expect(o.id, unittest.equals('foo')); |
| 323 unittest.expect(o.isDisabled, unittest.isTrue); | 323 unittest.expect(o.isDisabled, unittest.isTrue); |
| 324 unittest.expect(o.isInactive, unittest.isTrue); | 324 unittest.expect(o.isInactive, unittest.isTrue); |
| 325 checkUnnamed822(o.labels); | 325 checkUnnamed897(o.labels); |
| 326 unittest.expect(o.project, unittest.equals('foo')); | 326 unittest.expect(o.project, unittest.equals('foo')); |
| 327 checkUnnamed823(o.sourceContexts); | 327 checkUnnamed898(o.sourceContexts); |
| 328 checkStatusMessage(o.status); | 328 checkStatusMessage(o.status); |
| 329 unittest.expect(o.uniquifier, unittest.equals('foo')); | 329 unittest.expect(o.uniquifier, unittest.equals('foo')); |
| 330 } | 330 } |
| 331 buildCounterDebuggee--; | 331 buildCounterDebuggee--; |
| 332 } | 332 } |
| 333 | 333 |
| 334 core.int buildCounterEmpty = 0; | 334 core.int buildCounterEmpty = 0; |
| 335 buildEmpty() { | 335 buildEmpty() { |
| 336 var o = new api.Empty(); | 336 var o = new api.Empty(); |
| 337 buildCounterEmpty++; | 337 buildCounterEmpty++; |
| 338 if (buildCounterEmpty < 3) { | 338 if (buildCounterEmpty < 3) { |
| 339 } | 339 } |
| 340 buildCounterEmpty--; | 340 buildCounterEmpty--; |
| 341 return o; | 341 return o; |
| 342 } | 342 } |
| 343 | 343 |
| 344 checkEmpty(api.Empty o) { | 344 checkEmpty(api.Empty o) { |
| 345 buildCounterEmpty++; | 345 buildCounterEmpty++; |
| 346 if (buildCounterEmpty < 3) { | 346 if (buildCounterEmpty < 3) { |
| 347 } | 347 } |
| 348 buildCounterEmpty--; | 348 buildCounterEmpty--; |
| 349 } | 349 } |
| 350 | 350 |
| 351 buildUnnamed824() { | 351 buildUnnamed899() { |
| 352 var o = new core.Map<core.String, core.String>(); | 352 var o = new core.Map<core.String, core.String>(); |
| 353 o["x"] = "foo"; | 353 o["x"] = "foo"; |
| 354 o["y"] = "foo"; | 354 o["y"] = "foo"; |
| 355 return o; | 355 return o; |
| 356 } | 356 } |
| 357 | 357 |
| 358 checkUnnamed824(core.Map<core.String, core.String> o) { | 358 checkUnnamed899(core.Map<core.String, core.String> o) { |
| 359 unittest.expect(o, unittest.hasLength(2)); | 359 unittest.expect(o, unittest.hasLength(2)); |
| 360 unittest.expect(o["x"], unittest.equals('foo')); | 360 unittest.expect(o["x"], unittest.equals('foo')); |
| 361 unittest.expect(o["y"], unittest.equals('foo')); | 361 unittest.expect(o["y"], unittest.equals('foo')); |
| 362 } | 362 } |
| 363 | 363 |
| 364 core.int buildCounterExtendedSourceContext = 0; | 364 core.int buildCounterExtendedSourceContext = 0; |
| 365 buildExtendedSourceContext() { | 365 buildExtendedSourceContext() { |
| 366 var o = new api.ExtendedSourceContext(); | 366 var o = new api.ExtendedSourceContext(); |
| 367 buildCounterExtendedSourceContext++; | 367 buildCounterExtendedSourceContext++; |
| 368 if (buildCounterExtendedSourceContext < 3) { | 368 if (buildCounterExtendedSourceContext < 3) { |
| 369 o.context = buildSourceContext(); | 369 o.context = buildSourceContext(); |
| 370 o.labels = buildUnnamed824(); | 370 o.labels = buildUnnamed899(); |
| 371 } | 371 } |
| 372 buildCounterExtendedSourceContext--; | 372 buildCounterExtendedSourceContext--; |
| 373 return o; | 373 return o; |
| 374 } | 374 } |
| 375 | 375 |
| 376 checkExtendedSourceContext(api.ExtendedSourceContext o) { | 376 checkExtendedSourceContext(api.ExtendedSourceContext o) { |
| 377 buildCounterExtendedSourceContext++; | 377 buildCounterExtendedSourceContext++; |
| 378 if (buildCounterExtendedSourceContext < 3) { | 378 if (buildCounterExtendedSourceContext < 3) { |
| 379 checkSourceContext(o.context); | 379 checkSourceContext(o.context); |
| 380 checkUnnamed824(o.labels); | 380 checkUnnamed899(o.labels); |
| 381 } | 381 } |
| 382 buildCounterExtendedSourceContext--; | 382 buildCounterExtendedSourceContext--; |
| 383 } | 383 } |
| 384 | 384 |
| 385 buildUnnamed825() { | 385 buildUnnamed900() { |
| 386 var o = new core.List<core.String>(); | 386 var o = new core.List<core.String>(); |
| 387 o.add("foo"); | 387 o.add("foo"); |
| 388 o.add("foo"); | 388 o.add("foo"); |
| 389 return o; | 389 return o; |
| 390 } | 390 } |
| 391 | 391 |
| 392 checkUnnamed825(core.List<core.String> o) { | 392 checkUnnamed900(core.List<core.String> o) { |
| 393 unittest.expect(o, unittest.hasLength(2)); | 393 unittest.expect(o, unittest.hasLength(2)); |
| 394 unittest.expect(o[0], unittest.equals('foo')); | 394 unittest.expect(o[0], unittest.equals('foo')); |
| 395 unittest.expect(o[1], unittest.equals('foo')); | 395 unittest.expect(o[1], unittest.equals('foo')); |
| 396 } | 396 } |
| 397 | 397 |
| 398 core.int buildCounterFormatMessage = 0; | 398 core.int buildCounterFormatMessage = 0; |
| 399 buildFormatMessage() { | 399 buildFormatMessage() { |
| 400 var o = new api.FormatMessage(); | 400 var o = new api.FormatMessage(); |
| 401 buildCounterFormatMessage++; | 401 buildCounterFormatMessage++; |
| 402 if (buildCounterFormatMessage < 3) { | 402 if (buildCounterFormatMessage < 3) { |
| 403 o.format = "foo"; | 403 o.format = "foo"; |
| 404 o.parameters = buildUnnamed825(); | 404 o.parameters = buildUnnamed900(); |
| 405 } | 405 } |
| 406 buildCounterFormatMessage--; | 406 buildCounterFormatMessage--; |
| 407 return o; | 407 return o; |
| 408 } | 408 } |
| 409 | 409 |
| 410 checkFormatMessage(api.FormatMessage o) { | 410 checkFormatMessage(api.FormatMessage o) { |
| 411 buildCounterFormatMessage++; | 411 buildCounterFormatMessage++; |
| 412 if (buildCounterFormatMessage < 3) { | 412 if (buildCounterFormatMessage < 3) { |
| 413 unittest.expect(o.format, unittest.equals('foo')); | 413 unittest.expect(o.format, unittest.equals('foo')); |
| 414 checkUnnamed825(o.parameters); | 414 checkUnnamed900(o.parameters); |
| 415 } | 415 } |
| 416 buildCounterFormatMessage--; | 416 buildCounterFormatMessage--; |
| 417 } | 417 } |
| 418 | 418 |
| 419 core.int buildCounterGerritSourceContext = 0; | 419 core.int buildCounterGerritSourceContext = 0; |
| 420 buildGerritSourceContext() { | 420 buildGerritSourceContext() { |
| 421 var o = new api.GerritSourceContext(); | 421 var o = new api.GerritSourceContext(); |
| 422 buildCounterGerritSourceContext++; | 422 buildCounterGerritSourceContext++; |
| 423 if (buildCounterGerritSourceContext < 3) { | 423 if (buildCounterGerritSourceContext < 3) { |
| 424 o.aliasContext = buildAliasContext(); | 424 o.aliasContext = buildAliasContext(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 | 476 |
| 477 checkGitSourceContext(api.GitSourceContext o) { | 477 checkGitSourceContext(api.GitSourceContext o) { |
| 478 buildCounterGitSourceContext++; | 478 buildCounterGitSourceContext++; |
| 479 if (buildCounterGitSourceContext < 3) { | 479 if (buildCounterGitSourceContext < 3) { |
| 480 unittest.expect(o.revisionId, unittest.equals('foo')); | 480 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 481 unittest.expect(o.url, unittest.equals('foo')); | 481 unittest.expect(o.url, unittest.equals('foo')); |
| 482 } | 482 } |
| 483 buildCounterGitSourceContext--; | 483 buildCounterGitSourceContext--; |
| 484 } | 484 } |
| 485 | 485 |
| 486 buildUnnamed826() { | 486 buildUnnamed901() { |
| 487 var o = new core.List<api.Breakpoint>(); | 487 var o = new core.List<api.Breakpoint>(); |
| 488 o.add(buildBreakpoint()); | 488 o.add(buildBreakpoint()); |
| 489 o.add(buildBreakpoint()); | 489 o.add(buildBreakpoint()); |
| 490 return o; | 490 return o; |
| 491 } | 491 } |
| 492 | 492 |
| 493 checkUnnamed826(core.List<api.Breakpoint> o) { | 493 checkUnnamed901(core.List<api.Breakpoint> o) { |
| 494 unittest.expect(o, unittest.hasLength(2)); | 494 unittest.expect(o, unittest.hasLength(2)); |
| 495 checkBreakpoint(o[0]); | 495 checkBreakpoint(o[0]); |
| 496 checkBreakpoint(o[1]); | 496 checkBreakpoint(o[1]); |
| 497 } | 497 } |
| 498 | 498 |
| 499 core.int buildCounterListActiveBreakpointsResponse = 0; | 499 core.int buildCounterListActiveBreakpointsResponse = 0; |
| 500 buildListActiveBreakpointsResponse() { | 500 buildListActiveBreakpointsResponse() { |
| 501 var o = new api.ListActiveBreakpointsResponse(); | 501 var o = new api.ListActiveBreakpointsResponse(); |
| 502 buildCounterListActiveBreakpointsResponse++; | 502 buildCounterListActiveBreakpointsResponse++; |
| 503 if (buildCounterListActiveBreakpointsResponse < 3) { | 503 if (buildCounterListActiveBreakpointsResponse < 3) { |
| 504 o.breakpoints = buildUnnamed826(); | 504 o.breakpoints = buildUnnamed901(); |
| 505 o.nextWaitToken = "foo"; | 505 o.nextWaitToken = "foo"; |
| 506 o.waitExpired = true; | 506 o.waitExpired = true; |
| 507 } | 507 } |
| 508 buildCounterListActiveBreakpointsResponse--; | 508 buildCounterListActiveBreakpointsResponse--; |
| 509 return o; | 509 return o; |
| 510 } | 510 } |
| 511 | 511 |
| 512 checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { | 512 checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { |
| 513 buildCounterListActiveBreakpointsResponse++; | 513 buildCounterListActiveBreakpointsResponse++; |
| 514 if (buildCounterListActiveBreakpointsResponse < 3) { | 514 if (buildCounterListActiveBreakpointsResponse < 3) { |
| 515 checkUnnamed826(o.breakpoints); | 515 checkUnnamed901(o.breakpoints); |
| 516 unittest.expect(o.nextWaitToken, unittest.equals('foo')); | 516 unittest.expect(o.nextWaitToken, unittest.equals('foo')); |
| 517 unittest.expect(o.waitExpired, unittest.isTrue); | 517 unittest.expect(o.waitExpired, unittest.isTrue); |
| 518 } | 518 } |
| 519 buildCounterListActiveBreakpointsResponse--; | 519 buildCounterListActiveBreakpointsResponse--; |
| 520 } | 520 } |
| 521 | 521 |
| 522 buildUnnamed827() { | 522 buildUnnamed902() { |
| 523 var o = new core.List<api.Breakpoint>(); | 523 var o = new core.List<api.Breakpoint>(); |
| 524 o.add(buildBreakpoint()); | 524 o.add(buildBreakpoint()); |
| 525 o.add(buildBreakpoint()); | 525 o.add(buildBreakpoint()); |
| 526 return o; | 526 return o; |
| 527 } | 527 } |
| 528 | 528 |
| 529 checkUnnamed827(core.List<api.Breakpoint> o) { | 529 checkUnnamed902(core.List<api.Breakpoint> o) { |
| 530 unittest.expect(o, unittest.hasLength(2)); | 530 unittest.expect(o, unittest.hasLength(2)); |
| 531 checkBreakpoint(o[0]); | 531 checkBreakpoint(o[0]); |
| 532 checkBreakpoint(o[1]); | 532 checkBreakpoint(o[1]); |
| 533 } | 533 } |
| 534 | 534 |
| 535 core.int buildCounterListBreakpointsResponse = 0; | 535 core.int buildCounterListBreakpointsResponse = 0; |
| 536 buildListBreakpointsResponse() { | 536 buildListBreakpointsResponse() { |
| 537 var o = new api.ListBreakpointsResponse(); | 537 var o = new api.ListBreakpointsResponse(); |
| 538 buildCounterListBreakpointsResponse++; | 538 buildCounterListBreakpointsResponse++; |
| 539 if (buildCounterListBreakpointsResponse < 3) { | 539 if (buildCounterListBreakpointsResponse < 3) { |
| 540 o.breakpoints = buildUnnamed827(); | 540 o.breakpoints = buildUnnamed902(); |
| 541 o.nextWaitToken = "foo"; | 541 o.nextWaitToken = "foo"; |
| 542 } | 542 } |
| 543 buildCounterListBreakpointsResponse--; | 543 buildCounterListBreakpointsResponse--; |
| 544 return o; | 544 return o; |
| 545 } | 545 } |
| 546 | 546 |
| 547 checkListBreakpointsResponse(api.ListBreakpointsResponse o) { | 547 checkListBreakpointsResponse(api.ListBreakpointsResponse o) { |
| 548 buildCounterListBreakpointsResponse++; | 548 buildCounterListBreakpointsResponse++; |
| 549 if (buildCounterListBreakpointsResponse < 3) { | 549 if (buildCounterListBreakpointsResponse < 3) { |
| 550 checkUnnamed827(o.breakpoints); | 550 checkUnnamed902(o.breakpoints); |
| 551 unittest.expect(o.nextWaitToken, unittest.equals('foo')); | 551 unittest.expect(o.nextWaitToken, unittest.equals('foo')); |
| 552 } | 552 } |
| 553 buildCounterListBreakpointsResponse--; | 553 buildCounterListBreakpointsResponse--; |
| 554 } | 554 } |
| 555 | 555 |
| 556 buildUnnamed828() { | 556 buildUnnamed903() { |
| 557 var o = new core.List<api.Debuggee>(); | 557 var o = new core.List<api.Debuggee>(); |
| 558 o.add(buildDebuggee()); | 558 o.add(buildDebuggee()); |
| 559 o.add(buildDebuggee()); | 559 o.add(buildDebuggee()); |
| 560 return o; | 560 return o; |
| 561 } | 561 } |
| 562 | 562 |
| 563 checkUnnamed828(core.List<api.Debuggee> o) { | 563 checkUnnamed903(core.List<api.Debuggee> o) { |
| 564 unittest.expect(o, unittest.hasLength(2)); | 564 unittest.expect(o, unittest.hasLength(2)); |
| 565 checkDebuggee(o[0]); | 565 checkDebuggee(o[0]); |
| 566 checkDebuggee(o[1]); | 566 checkDebuggee(o[1]); |
| 567 } | 567 } |
| 568 | 568 |
| 569 core.int buildCounterListDebuggeesResponse = 0; | 569 core.int buildCounterListDebuggeesResponse = 0; |
| 570 buildListDebuggeesResponse() { | 570 buildListDebuggeesResponse() { |
| 571 var o = new api.ListDebuggeesResponse(); | 571 var o = new api.ListDebuggeesResponse(); |
| 572 buildCounterListDebuggeesResponse++; | 572 buildCounterListDebuggeesResponse++; |
| 573 if (buildCounterListDebuggeesResponse < 3) { | 573 if (buildCounterListDebuggeesResponse < 3) { |
| 574 o.debuggees = buildUnnamed828(); | 574 o.debuggees = buildUnnamed903(); |
| 575 } | 575 } |
| 576 buildCounterListDebuggeesResponse--; | 576 buildCounterListDebuggeesResponse--; |
| 577 return o; | 577 return o; |
| 578 } | 578 } |
| 579 | 579 |
| 580 checkListDebuggeesResponse(api.ListDebuggeesResponse o) { | 580 checkListDebuggeesResponse(api.ListDebuggeesResponse o) { |
| 581 buildCounterListDebuggeesResponse++; | 581 buildCounterListDebuggeesResponse++; |
| 582 if (buildCounterListDebuggeesResponse < 3) { | 582 if (buildCounterListDebuggeesResponse < 3) { |
| 583 checkUnnamed828(o.debuggees); | 583 checkUnnamed903(o.debuggees); |
| 584 } | 584 } |
| 585 buildCounterListDebuggeesResponse--; | 585 buildCounterListDebuggeesResponse--; |
| 586 } | 586 } |
| 587 | 587 |
| 588 core.int buildCounterProjectRepoId = 0; | 588 core.int buildCounterProjectRepoId = 0; |
| 589 buildProjectRepoId() { | 589 buildProjectRepoId() { |
| 590 var o = new api.ProjectRepoId(); | 590 var o = new api.ProjectRepoId(); |
| 591 buildCounterProjectRepoId++; | 591 buildCounterProjectRepoId++; |
| 592 if (buildCounterProjectRepoId < 3) { | 592 if (buildCounterProjectRepoId < 3) { |
| 593 o.projectId = "foo"; | 593 o.projectId = "foo"; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 | 723 |
| 724 checkSourceLocation(api.SourceLocation o) { | 724 checkSourceLocation(api.SourceLocation o) { |
| 725 buildCounterSourceLocation++; | 725 buildCounterSourceLocation++; |
| 726 if (buildCounterSourceLocation < 3) { | 726 if (buildCounterSourceLocation < 3) { |
| 727 unittest.expect(o.line, unittest.equals(42)); | 727 unittest.expect(o.line, unittest.equals(42)); |
| 728 unittest.expect(o.path, unittest.equals('foo')); | 728 unittest.expect(o.path, unittest.equals('foo')); |
| 729 } | 729 } |
| 730 buildCounterSourceLocation--; | 730 buildCounterSourceLocation--; |
| 731 } | 731 } |
| 732 | 732 |
| 733 buildUnnamed829() { | 733 buildUnnamed904() { |
| 734 var o = new core.List<api.Variable>(); | 734 var o = new core.List<api.Variable>(); |
| 735 o.add(buildVariable()); | 735 o.add(buildVariable()); |
| 736 o.add(buildVariable()); | 736 o.add(buildVariable()); |
| 737 return o; | 737 return o; |
| 738 } | 738 } |
| 739 | 739 |
| 740 checkUnnamed829(core.List<api.Variable> o) { | 740 checkUnnamed904(core.List<api.Variable> o) { |
| 741 unittest.expect(o, unittest.hasLength(2)); | 741 unittest.expect(o, unittest.hasLength(2)); |
| 742 checkVariable(o[0]); | 742 checkVariable(o[0]); |
| 743 checkVariable(o[1]); | 743 checkVariable(o[1]); |
| 744 } | 744 } |
| 745 | 745 |
| 746 buildUnnamed830() { | 746 buildUnnamed905() { |
| 747 var o = new core.List<api.Variable>(); | 747 var o = new core.List<api.Variable>(); |
| 748 o.add(buildVariable()); | 748 o.add(buildVariable()); |
| 749 o.add(buildVariable()); | 749 o.add(buildVariable()); |
| 750 return o; | 750 return o; |
| 751 } | 751 } |
| 752 | 752 |
| 753 checkUnnamed830(core.List<api.Variable> o) { | 753 checkUnnamed905(core.List<api.Variable> o) { |
| 754 unittest.expect(o, unittest.hasLength(2)); | 754 unittest.expect(o, unittest.hasLength(2)); |
| 755 checkVariable(o[0]); | 755 checkVariable(o[0]); |
| 756 checkVariable(o[1]); | 756 checkVariable(o[1]); |
| 757 } | 757 } |
| 758 | 758 |
| 759 core.int buildCounterStackFrame = 0; | 759 core.int buildCounterStackFrame = 0; |
| 760 buildStackFrame() { | 760 buildStackFrame() { |
| 761 var o = new api.StackFrame(); | 761 var o = new api.StackFrame(); |
| 762 buildCounterStackFrame++; | 762 buildCounterStackFrame++; |
| 763 if (buildCounterStackFrame < 3) { | 763 if (buildCounterStackFrame < 3) { |
| 764 o.arguments = buildUnnamed829(); | 764 o.arguments = buildUnnamed904(); |
| 765 o.function = "foo"; | 765 o.function = "foo"; |
| 766 o.locals = buildUnnamed830(); | 766 o.locals = buildUnnamed905(); |
| 767 o.location = buildSourceLocation(); | 767 o.location = buildSourceLocation(); |
| 768 } | 768 } |
| 769 buildCounterStackFrame--; | 769 buildCounterStackFrame--; |
| 770 return o; | 770 return o; |
| 771 } | 771 } |
| 772 | 772 |
| 773 checkStackFrame(api.StackFrame o) { | 773 checkStackFrame(api.StackFrame o) { |
| 774 buildCounterStackFrame++; | 774 buildCounterStackFrame++; |
| 775 if (buildCounterStackFrame < 3) { | 775 if (buildCounterStackFrame < 3) { |
| 776 checkUnnamed829(o.arguments); | 776 checkUnnamed904(o.arguments); |
| 777 unittest.expect(o.function, unittest.equals('foo')); | 777 unittest.expect(o.function, unittest.equals('foo')); |
| 778 checkUnnamed830(o.locals); | 778 checkUnnamed905(o.locals); |
| 779 checkSourceLocation(o.location); | 779 checkSourceLocation(o.location); |
| 780 } | 780 } |
| 781 buildCounterStackFrame--; | 781 buildCounterStackFrame--; |
| 782 } | 782 } |
| 783 | 783 |
| 784 core.int buildCounterStatusMessage = 0; | 784 core.int buildCounterStatusMessage = 0; |
| 785 buildStatusMessage() { | 785 buildStatusMessage() { |
| 786 var o = new api.StatusMessage(); | 786 var o = new api.StatusMessage(); |
| 787 buildCounterStatusMessage++; | 787 buildCounterStatusMessage++; |
| 788 if (buildCounterStatusMessage < 3) { | 788 if (buildCounterStatusMessage < 3) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 return o; | 833 return o; |
| 834 } | 834 } |
| 835 | 835 |
| 836 checkUpdateActiveBreakpointResponse(api.UpdateActiveBreakpointResponse o) { | 836 checkUpdateActiveBreakpointResponse(api.UpdateActiveBreakpointResponse o) { |
| 837 buildCounterUpdateActiveBreakpointResponse++; | 837 buildCounterUpdateActiveBreakpointResponse++; |
| 838 if (buildCounterUpdateActiveBreakpointResponse < 3) { | 838 if (buildCounterUpdateActiveBreakpointResponse < 3) { |
| 839 } | 839 } |
| 840 buildCounterUpdateActiveBreakpointResponse--; | 840 buildCounterUpdateActiveBreakpointResponse--; |
| 841 } | 841 } |
| 842 | 842 |
| 843 buildUnnamed831() { | 843 buildUnnamed906() { |
| 844 var o = new core.List<api.Variable>(); | 844 var o = new core.List<api.Variable>(); |
| 845 o.add(buildVariable()); | 845 o.add(buildVariable()); |
| 846 o.add(buildVariable()); | 846 o.add(buildVariable()); |
| 847 return o; | 847 return o; |
| 848 } | 848 } |
| 849 | 849 |
| 850 checkUnnamed831(core.List<api.Variable> o) { | 850 checkUnnamed906(core.List<api.Variable> o) { |
| 851 unittest.expect(o, unittest.hasLength(2)); | 851 unittest.expect(o, unittest.hasLength(2)); |
| 852 checkVariable(o[0]); | 852 checkVariable(o[0]); |
| 853 checkVariable(o[1]); | 853 checkVariable(o[1]); |
| 854 } | 854 } |
| 855 | 855 |
| 856 core.int buildCounterVariable = 0; | 856 core.int buildCounterVariable = 0; |
| 857 buildVariable() { | 857 buildVariable() { |
| 858 var o = new api.Variable(); | 858 var o = new api.Variable(); |
| 859 buildCounterVariable++; | 859 buildCounterVariable++; |
| 860 if (buildCounterVariable < 3) { | 860 if (buildCounterVariable < 3) { |
| 861 o.members = buildUnnamed831(); | 861 o.members = buildUnnamed906(); |
| 862 o.name = "foo"; | 862 o.name = "foo"; |
| 863 o.status = buildStatusMessage(); | 863 o.status = buildStatusMessage(); |
| 864 o.type = "foo"; | 864 o.type = "foo"; |
| 865 o.value = "foo"; | 865 o.value = "foo"; |
| 866 o.varTableIndex = 42; | 866 o.varTableIndex = 42; |
| 867 } | 867 } |
| 868 buildCounterVariable--; | 868 buildCounterVariable--; |
| 869 return o; | 869 return o; |
| 870 } | 870 } |
| 871 | 871 |
| 872 checkVariable(api.Variable o) { | 872 checkVariable(api.Variable o) { |
| 873 buildCounterVariable++; | 873 buildCounterVariable++; |
| 874 if (buildCounterVariable < 3) { | 874 if (buildCounterVariable < 3) { |
| 875 checkUnnamed831(o.members); | 875 checkUnnamed906(o.members); |
| 876 unittest.expect(o.name, unittest.equals('foo')); | 876 unittest.expect(o.name, unittest.equals('foo')); |
| 877 checkStatusMessage(o.status); | 877 checkStatusMessage(o.status); |
| 878 unittest.expect(o.type, unittest.equals('foo')); | 878 unittest.expect(o.type, unittest.equals('foo')); |
| 879 unittest.expect(o.value, unittest.equals('foo')); | 879 unittest.expect(o.value, unittest.equals('foo')); |
| 880 unittest.expect(o.varTableIndex, unittest.equals(42)); | 880 unittest.expect(o.varTableIndex, unittest.equals(42)); |
| 881 } | 881 } |
| 882 buildCounterVariable--; | 882 buildCounterVariable--; |
| 883 } | 883 } |
| 884 | 884 |
| 885 | 885 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 | 1177 |
| 1178 }); | 1178 }); |
| 1179 | 1179 |
| 1180 | 1180 |
| 1181 unittest.group("resource-ControllerDebuggeesBreakpointsResourceApi", () { | 1181 unittest.group("resource-ControllerDebuggeesBreakpointsResourceApi", () { |
| 1182 unittest.test("method--list", () { | 1182 unittest.test("method--list", () { |
| 1183 | 1183 |
| 1184 var mock = new HttpServerMock(); | 1184 var mock = new HttpServerMock(); |
| 1185 api.ControllerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerA
pi(mock).controller.debuggees.breakpoints; | 1185 api.ControllerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerA
pi(mock).controller.debuggees.breakpoints; |
| 1186 var arg_debuggeeId = "foo"; | 1186 var arg_debuggeeId = "foo"; |
| 1187 var arg_successOnTimeout = true; |
| 1187 var arg_waitToken = "foo"; | 1188 var arg_waitToken = "foo"; |
| 1188 var arg_successOnTimeout = true; | |
| 1189 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 1189 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1190 var path = (req.url).path; | 1190 var path = (req.url).path; |
| 1191 var pathOffset = 0; | 1191 var pathOffset = 0; |
| 1192 var index; | 1192 var index; |
| 1193 var subPart; | 1193 var subPart; |
| 1194 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1194 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1195 pathOffset += 1; | 1195 pathOffset += 1; |
| 1196 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("v2/controller/debuggees/")); | 1196 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("v2/controller/debuggees/")); |
| 1197 pathOffset += 24; | 1197 pathOffset += 24; |
| 1198 index = path.indexOf("/breakpoints", pathOffset); | 1198 index = path.indexOf("/breakpoints", pathOffset); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1212 if (n == "false") return false; | 1212 if (n == "false") return false; |
| 1213 if (n == null) return null; | 1213 if (n == null) return null; |
| 1214 throw new core.ArgumentError("Invalid boolean: $n"); | 1214 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1215 } | 1215 } |
| 1216 if (query.length > 0) { | 1216 if (query.length > 0) { |
| 1217 for (var part in query.split("&")) { | 1217 for (var part in query.split("&")) { |
| 1218 var keyvalue = part.split("="); | 1218 var keyvalue = part.split("="); |
| 1219 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1219 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1220 } | 1220 } |
| 1221 } | 1221 } |
| 1222 unittest.expect(queryMap["successOnTimeout"].first, unittest.equals("$ar
g_successOnTimeout")); |
| 1222 unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitTok
en)); | 1223 unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitTok
en)); |
| 1223 unittest.expect(queryMap["successOnTimeout"].first, unittest.equals("$ar
g_successOnTimeout")); | |
| 1224 | 1224 |
| 1225 | 1225 |
| 1226 var h = { | 1226 var h = { |
| 1227 "content-type" : "application/json; charset=utf-8", | 1227 "content-type" : "application/json; charset=utf-8", |
| 1228 }; | 1228 }; |
| 1229 var resp = convert.JSON.encode(buildListActiveBreakpointsResponse()); | 1229 var resp = convert.JSON.encode(buildListActiveBreakpointsResponse()); |
| 1230 return new async.Future.value(stringResponse(200, h, resp)); | 1230 return new async.Future.value(stringResponse(200, h, resp)); |
| 1231 }), true); | 1231 }), true); |
| 1232 res.list(arg_debuggeeId, waitToken: arg_waitToken, successOnTimeout: arg_s
uccessOnTimeout).then(unittest.expectAsync1(((api.ListActiveBreakpointsResponse
response) { | 1232 res.list(arg_debuggeeId, successOnTimeout: arg_successOnTimeout, waitToken
: arg_waitToken).then(unittest.expectAsync1(((api.ListActiveBreakpointsResponse
response) { |
| 1233 checkListActiveBreakpointsResponse(response); | 1233 checkListActiveBreakpointsResponse(response); |
| 1234 }))); | 1234 }))); |
| 1235 }); | 1235 }); |
| 1236 | 1236 |
| 1237 unittest.test("method--update", () { | 1237 unittest.test("method--update", () { |
| 1238 | 1238 |
| 1239 var mock = new HttpServerMock(); | 1239 var mock = new HttpServerMock(); |
| 1240 api.ControllerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerA
pi(mock).controller.debuggees.breakpoints; | 1240 api.ControllerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerA
pi(mock).controller.debuggees.breakpoints; |
| 1241 var arg_request = buildUpdateActiveBreakpointRequest(); | 1241 var arg_request = buildUpdateActiveBreakpointRequest(); |
| 1242 var arg_debuggeeId = "foo"; | 1242 var arg_debuggeeId = "foo"; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 res.get(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion
).then(unittest.expectAsync1(((api.GetBreakpointResponse response) { | 1462 res.get(arg_debuggeeId, arg_breakpointId, clientVersion: arg_clientVersion
).then(unittest.expectAsync1(((api.GetBreakpointResponse response) { |
| 1463 checkGetBreakpointResponse(response); | 1463 checkGetBreakpointResponse(response); |
| 1464 }))); | 1464 }))); |
| 1465 }); | 1465 }); |
| 1466 | 1466 |
| 1467 unittest.test("method--list", () { | 1467 unittest.test("method--list", () { |
| 1468 | 1468 |
| 1469 var mock = new HttpServerMock(); | 1469 var mock = new HttpServerMock(); |
| 1470 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi
(mock).debugger.debuggees.breakpoints; | 1470 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi
(mock).debugger.debuggees.breakpoints; |
| 1471 var arg_debuggeeId = "foo"; | 1471 var arg_debuggeeId = "foo"; |
| 1472 var arg_stripResults = true; |
| 1472 var arg_waitToken = "foo"; | 1473 var arg_waitToken = "foo"; |
| 1474 var arg_clientVersion = "foo"; |
| 1473 var arg_action_value = "foo"; | 1475 var arg_action_value = "foo"; |
| 1474 var arg_clientVersion = "foo"; | 1476 var arg_includeAllUsers = true; |
| 1475 var arg_includeInactive = true; | 1477 var arg_includeInactive = true; |
| 1476 var arg_includeAllUsers = true; | |
| 1477 var arg_stripResults = true; | |
| 1478 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 1478 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1479 var path = (req.url).path; | 1479 var path = (req.url).path; |
| 1480 var pathOffset = 0; | 1480 var pathOffset = 0; |
| 1481 var index; | 1481 var index; |
| 1482 var subPart; | 1482 var subPart; |
| 1483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1484 pathOffset += 1; | 1484 pathOffset += 1; |
| 1485 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/")); |
| 1486 pathOffset += 22; | 1486 pathOffset += 22; |
| 1487 index = path.indexOf("/breakpoints", pathOffset); | 1487 index = path.indexOf("/breakpoints", pathOffset); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1501 if (n == "false") return false; | 1501 if (n == "false") return false; |
| 1502 if (n == null) return null; | 1502 if (n == null) return null; |
| 1503 throw new core.ArgumentError("Invalid boolean: $n"); | 1503 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1504 } | 1504 } |
| 1505 if (query.length > 0) { | 1505 if (query.length > 0) { |
| 1506 for (var part in query.split("&")) { | 1506 for (var part in query.split("&")) { |
| 1507 var keyvalue = part.split("="); | 1507 var keyvalue = part.split("="); |
| 1508 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])); |
| 1509 } | 1509 } |
| 1510 } | 1510 } |
| 1511 unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_st
ripResults")); |
| 1511 unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitTok
en)); | 1512 unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitTok
en)); |
| 1513 unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_cli
entVersion)); |
| 1512 unittest.expect(queryMap["action.value"].first, unittest.equals(arg_acti
on_value)); | 1514 unittest.expect(queryMap["action.value"].first, unittest.equals(arg_acti
on_value)); |
| 1513 unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_cli
entVersion)); | 1515 unittest.expect(queryMap["includeAllUsers"].first, unittest.equals("$arg
_includeAllUsers")); |
| 1514 unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg
_includeInactive")); | 1516 unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg
_includeInactive")); |
| 1515 unittest.expect(queryMap["includeAllUsers"].first, unittest.equals("$arg
_includeAllUsers")); | |
| 1516 unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_st
ripResults")); | |
| 1517 | 1517 |
| 1518 | 1518 |
| 1519 var h = { | 1519 var h = { |
| 1520 "content-type" : "application/json; charset=utf-8", | 1520 "content-type" : "application/json; charset=utf-8", |
| 1521 }; | 1521 }; |
| 1522 var resp = convert.JSON.encode(buildListBreakpointsResponse()); | 1522 var resp = convert.JSON.encode(buildListBreakpointsResponse()); |
| 1523 return new async.Future.value(stringResponse(200, h, resp)); | 1523 return new async.Future.value(stringResponse(200, h, resp)); |
| 1524 }), true); | 1524 }), true); |
| 1525 res.list(arg_debuggeeId, waitToken: arg_waitToken, action_value: arg_actio
n_value, clientVersion: arg_clientVersion, includeInactive: arg_includeInactive,
includeAllUsers: arg_includeAllUsers, stripResults: arg_stripResults).then(unit
test.expectAsync1(((api.ListBreakpointsResponse response) { | 1525 res.list(arg_debuggeeId, stripResults: arg_stripResults, waitToken: arg_wa
itToken, clientVersion: arg_clientVersion, action_value: arg_action_value, inclu
deAllUsers: arg_includeAllUsers, includeInactive: arg_includeInactive).then(unit
test.expectAsync1(((api.ListBreakpointsResponse response) { |
| 1526 checkListBreakpointsResponse(response); | 1526 checkListBreakpointsResponse(response); |
| 1527 }))); | 1527 }))); |
| 1528 }); | 1528 }); |
| 1529 | 1529 |
| 1530 unittest.test("method--set", () { | 1530 unittest.test("method--set", () { |
| 1531 | 1531 |
| 1532 var mock = new HttpServerMock(); | 1532 var mock = new HttpServerMock(); |
| 1533 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi
(mock).debugger.debuggees.breakpoints; | 1533 api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi
(mock).debugger.debuggees.breakpoints; |
| 1534 var arg_request = buildBreakpoint(); | 1534 var arg_request = buildBreakpoint(); |
| 1535 var arg_debuggeeId = "foo"; | 1535 var arg_debuggeeId = "foo"; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 res.set(arg_request, arg_debuggeeId, clientVersion: arg_clientVersion).the
n(unittest.expectAsync1(((api.SetBreakpointResponse response) { | 1582 res.set(arg_request, arg_debuggeeId, clientVersion: arg_clientVersion).the
n(unittest.expectAsync1(((api.SetBreakpointResponse response) { |
| 1583 checkSetBreakpointResponse(response); | 1583 checkSetBreakpointResponse(response); |
| 1584 }))); | 1584 }))); |
| 1585 }); | 1585 }); |
| 1586 | 1586 |
| 1587 }); | 1587 }); |
| 1588 | 1588 |
| 1589 | 1589 |
| 1590 } | 1590 } |
| 1591 | 1591 |
| OLD | NEW |