| OLD | NEW |
| 1 library googleapis.cloudresourcemanager.v2beta1.test; | 1 library googleapis.cloudresourcemanager.v2beta1.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
| 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 buildUnnamed83() { | 54 buildUnnamed88() { |
| 55 var o = new core.List<api.AuditLogConfig>(); | 55 var o = new core.List<api.AuditLogConfig>(); |
| 56 o.add(buildAuditLogConfig()); | 56 o.add(buildAuditLogConfig()); |
| 57 o.add(buildAuditLogConfig()); | 57 o.add(buildAuditLogConfig()); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed83(core.List<api.AuditLogConfig> o) { | 61 checkUnnamed88(core.List<api.AuditLogConfig> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkAuditLogConfig(o[0]); | 63 checkAuditLogConfig(o[0]); |
| 64 checkAuditLogConfig(o[1]); | 64 checkAuditLogConfig(o[1]); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterAuditConfig = 0; | 67 core.int buildCounterAuditConfig = 0; |
| 68 buildAuditConfig() { | 68 buildAuditConfig() { |
| 69 var o = new api.AuditConfig(); | 69 var o = new api.AuditConfig(); |
| 70 buildCounterAuditConfig++; | 70 buildCounterAuditConfig++; |
| 71 if (buildCounterAuditConfig < 3) { | 71 if (buildCounterAuditConfig < 3) { |
| 72 o.auditLogConfigs = buildUnnamed83(); | 72 o.auditLogConfigs = buildUnnamed88(); |
| 73 o.service = "foo"; | 73 o.service = "foo"; |
| 74 } | 74 } |
| 75 buildCounterAuditConfig--; | 75 buildCounterAuditConfig--; |
| 76 return o; | 76 return o; |
| 77 } | 77 } |
| 78 | 78 |
| 79 checkAuditConfig(api.AuditConfig o) { | 79 checkAuditConfig(api.AuditConfig o) { |
| 80 buildCounterAuditConfig++; | 80 buildCounterAuditConfig++; |
| 81 if (buildCounterAuditConfig < 3) { | 81 if (buildCounterAuditConfig < 3) { |
| 82 checkUnnamed83(o.auditLogConfigs); | 82 checkUnnamed88(o.auditLogConfigs); |
| 83 unittest.expect(o.service, unittest.equals('foo')); | 83 unittest.expect(o.service, unittest.equals('foo')); |
| 84 } | 84 } |
| 85 buildCounterAuditConfig--; | 85 buildCounterAuditConfig--; |
| 86 } | 86 } |
| 87 | 87 |
| 88 buildUnnamed84() { | 88 buildUnnamed89() { |
| 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 checkUnnamed84(core.List<core.String> o) { | 95 checkUnnamed89(core.List<core.String> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
| 97 unittest.expect(o[0], unittest.equals('foo')); | 97 unittest.expect(o[0], unittest.equals('foo')); |
| 98 unittest.expect(o[1], unittest.equals('foo')); | 98 unittest.expect(o[1], unittest.equals('foo')); |
| 99 } | 99 } |
| 100 | 100 |
| 101 core.int buildCounterAuditLogConfig = 0; | 101 core.int buildCounterAuditLogConfig = 0; |
| 102 buildAuditLogConfig() { | 102 buildAuditLogConfig() { |
| 103 var o = new api.AuditLogConfig(); | 103 var o = new api.AuditLogConfig(); |
| 104 buildCounterAuditLogConfig++; | 104 buildCounterAuditLogConfig++; |
| 105 if (buildCounterAuditLogConfig < 3) { | 105 if (buildCounterAuditLogConfig < 3) { |
| 106 o.exemptedMembers = buildUnnamed84(); | 106 o.exemptedMembers = buildUnnamed89(); |
| 107 o.logType = "foo"; | 107 o.logType = "foo"; |
| 108 } | 108 } |
| 109 buildCounterAuditLogConfig--; | 109 buildCounterAuditLogConfig--; |
| 110 return o; | 110 return o; |
| 111 } | 111 } |
| 112 | 112 |
| 113 checkAuditLogConfig(api.AuditLogConfig o) { | 113 checkAuditLogConfig(api.AuditLogConfig o) { |
| 114 buildCounterAuditLogConfig++; | 114 buildCounterAuditLogConfig++; |
| 115 if (buildCounterAuditLogConfig < 3) { | 115 if (buildCounterAuditLogConfig < 3) { |
| 116 checkUnnamed84(o.exemptedMembers); | 116 checkUnnamed89(o.exemptedMembers); |
| 117 unittest.expect(o.logType, unittest.equals('foo')); | 117 unittest.expect(o.logType, unittest.equals('foo')); |
| 118 } | 118 } |
| 119 buildCounterAuditLogConfig--; | 119 buildCounterAuditLogConfig--; |
| 120 } | 120 } |
| 121 | 121 |
| 122 buildUnnamed85() { | 122 buildUnnamed90() { |
| 123 var o = new core.List<core.String>(); | 123 var o = new core.List<core.String>(); |
| 124 o.add("foo"); | 124 o.add("foo"); |
| 125 o.add("foo"); | 125 o.add("foo"); |
| 126 return o; | 126 return o; |
| 127 } | 127 } |
| 128 | 128 |
| 129 checkUnnamed85(core.List<core.String> o) { | 129 checkUnnamed90(core.List<core.String> o) { |
| 130 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
| 131 unittest.expect(o[0], unittest.equals('foo')); | 131 unittest.expect(o[0], unittest.equals('foo')); |
| 132 unittest.expect(o[1], unittest.equals('foo')); | 132 unittest.expect(o[1], unittest.equals('foo')); |
| 133 } | 133 } |
| 134 | 134 |
| 135 core.int buildCounterBinding = 0; | 135 core.int buildCounterBinding = 0; |
| 136 buildBinding() { | 136 buildBinding() { |
| 137 var o = new api.Binding(); | 137 var o = new api.Binding(); |
| 138 buildCounterBinding++; | 138 buildCounterBinding++; |
| 139 if (buildCounterBinding < 3) { | 139 if (buildCounterBinding < 3) { |
| 140 o.members = buildUnnamed85(); | 140 o.members = buildUnnamed90(); |
| 141 o.role = "foo"; | 141 o.role = "foo"; |
| 142 } | 142 } |
| 143 buildCounterBinding--; | 143 buildCounterBinding--; |
| 144 return o; | 144 return o; |
| 145 } | 145 } |
| 146 | 146 |
| 147 checkBinding(api.Binding o) { | 147 checkBinding(api.Binding o) { |
| 148 buildCounterBinding++; | 148 buildCounterBinding++; |
| 149 if (buildCounterBinding < 3) { | 149 if (buildCounterBinding < 3) { |
| 150 checkUnnamed85(o.members); | 150 checkUnnamed90(o.members); |
| 151 unittest.expect(o.role, unittest.equals('foo')); | 151 unittest.expect(o.role, unittest.equals('foo')); |
| 152 } | 152 } |
| 153 buildCounterBinding--; | 153 buildCounterBinding--; |
| 154 } | 154 } |
| 155 | 155 |
| 156 core.int buildCounterFolder = 0; | 156 core.int buildCounterFolder = 0; |
| 157 buildFolder() { | 157 buildFolder() { |
| 158 var o = new api.Folder(); | 158 var o = new api.Folder(); |
| 159 buildCounterFolder++; | 159 buildCounterFolder++; |
| 160 if (buildCounterFolder < 3) { | 160 if (buildCounterFolder < 3) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 return o; | 234 return o; |
| 235 } | 235 } |
| 236 | 236 |
| 237 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 237 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
| 238 buildCounterGetIamPolicyRequest++; | 238 buildCounterGetIamPolicyRequest++; |
| 239 if (buildCounterGetIamPolicyRequest < 3) { | 239 if (buildCounterGetIamPolicyRequest < 3) { |
| 240 } | 240 } |
| 241 buildCounterGetIamPolicyRequest--; | 241 buildCounterGetIamPolicyRequest--; |
| 242 } | 242 } |
| 243 | 243 |
| 244 buildUnnamed86() { | 244 buildUnnamed91() { |
| 245 var o = new core.List<api.Folder>(); | 245 var o = new core.List<api.Folder>(); |
| 246 o.add(buildFolder()); | 246 o.add(buildFolder()); |
| 247 o.add(buildFolder()); | 247 o.add(buildFolder()); |
| 248 return o; | 248 return o; |
| 249 } | 249 } |
| 250 | 250 |
| 251 checkUnnamed86(core.List<api.Folder> o) { | 251 checkUnnamed91(core.List<api.Folder> o) { |
| 252 unittest.expect(o, unittest.hasLength(2)); | 252 unittest.expect(o, unittest.hasLength(2)); |
| 253 checkFolder(o[0]); | 253 checkFolder(o[0]); |
| 254 checkFolder(o[1]); | 254 checkFolder(o[1]); |
| 255 } | 255 } |
| 256 | 256 |
| 257 core.int buildCounterListFoldersResponse = 0; | 257 core.int buildCounterListFoldersResponse = 0; |
| 258 buildListFoldersResponse() { | 258 buildListFoldersResponse() { |
| 259 var o = new api.ListFoldersResponse(); | 259 var o = new api.ListFoldersResponse(); |
| 260 buildCounterListFoldersResponse++; | 260 buildCounterListFoldersResponse++; |
| 261 if (buildCounterListFoldersResponse < 3) { | 261 if (buildCounterListFoldersResponse < 3) { |
| 262 o.folders = buildUnnamed86(); | 262 o.folders = buildUnnamed91(); |
| 263 o.nextPageToken = "foo"; | 263 o.nextPageToken = "foo"; |
| 264 } | 264 } |
| 265 buildCounterListFoldersResponse--; | 265 buildCounterListFoldersResponse--; |
| 266 return o; | 266 return o; |
| 267 } | 267 } |
| 268 | 268 |
| 269 checkListFoldersResponse(api.ListFoldersResponse o) { | 269 checkListFoldersResponse(api.ListFoldersResponse o) { |
| 270 buildCounterListFoldersResponse++; | 270 buildCounterListFoldersResponse++; |
| 271 if (buildCounterListFoldersResponse < 3) { | 271 if (buildCounterListFoldersResponse < 3) { |
| 272 checkUnnamed86(o.folders); | 272 checkUnnamed91(o.folders); |
| 273 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 273 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 274 } | 274 } |
| 275 buildCounterListFoldersResponse--; | 275 buildCounterListFoldersResponse--; |
| 276 } | 276 } |
| 277 | 277 |
| 278 core.int buildCounterMoveFolderRequest = 0; | 278 core.int buildCounterMoveFolderRequest = 0; |
| 279 buildMoveFolderRequest() { | 279 buildMoveFolderRequest() { |
| 280 var o = new api.MoveFolderRequest(); | 280 var o = new api.MoveFolderRequest(); |
| 281 buildCounterMoveFolderRequest++; | 281 buildCounterMoveFolderRequest++; |
| 282 if (buildCounterMoveFolderRequest < 3) { | 282 if (buildCounterMoveFolderRequest < 3) { |
| 283 o.destinationParent = "foo"; | 283 o.destinationParent = "foo"; |
| 284 } | 284 } |
| 285 buildCounterMoveFolderRequest--; | 285 buildCounterMoveFolderRequest--; |
| 286 return o; | 286 return o; |
| 287 } | 287 } |
| 288 | 288 |
| 289 checkMoveFolderRequest(api.MoveFolderRequest o) { | 289 checkMoveFolderRequest(api.MoveFolderRequest o) { |
| 290 buildCounterMoveFolderRequest++; | 290 buildCounterMoveFolderRequest++; |
| 291 if (buildCounterMoveFolderRequest < 3) { | 291 if (buildCounterMoveFolderRequest < 3) { |
| 292 unittest.expect(o.destinationParent, unittest.equals('foo')); | 292 unittest.expect(o.destinationParent, unittest.equals('foo')); |
| 293 } | 293 } |
| 294 buildCounterMoveFolderRequest--; | 294 buildCounterMoveFolderRequest--; |
| 295 } | 295 } |
| 296 | 296 |
| 297 buildUnnamed87() { | 297 buildUnnamed92() { |
| 298 var o = new core.Map<core.String, core.Object>(); | 298 var o = new core.Map<core.String, core.Object>(); |
| 299 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 299 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 300 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 300 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 301 return o; | 301 return o; |
| 302 } | 302 } |
| 303 | 303 |
| 304 checkUnnamed87(core.Map<core.String, core.Object> o) { | 304 checkUnnamed92(core.Map<core.String, core.Object> o) { |
| 305 unittest.expect(o, unittest.hasLength(2)); | 305 unittest.expect(o, unittest.hasLength(2)); |
| 306 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 306 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 307 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 307 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 308 } | 308 } |
| 309 | 309 |
| 310 buildUnnamed88() { | 310 buildUnnamed93() { |
| 311 var o = new core.Map<core.String, core.Object>(); | 311 var o = new core.Map<core.String, core.Object>(); |
| 312 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 312 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 313 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 313 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 314 return o; | 314 return o; |
| 315 } | 315 } |
| 316 | 316 |
| 317 checkUnnamed88(core.Map<core.String, core.Object> o) { | 317 checkUnnamed93(core.Map<core.String, core.Object> o) { |
| 318 unittest.expect(o, unittest.hasLength(2)); | 318 unittest.expect(o, unittest.hasLength(2)); |
| 319 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 319 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 320 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 320 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 321 } | 321 } |
| 322 | 322 |
| 323 core.int buildCounterOperation = 0; | 323 core.int buildCounterOperation = 0; |
| 324 buildOperation() { | 324 buildOperation() { |
| 325 var o = new api.Operation(); | 325 var o = new api.Operation(); |
| 326 buildCounterOperation++; | 326 buildCounterOperation++; |
| 327 if (buildCounterOperation < 3) { | 327 if (buildCounterOperation < 3) { |
| 328 o.done = true; | 328 o.done = true; |
| 329 o.error = buildStatus(); | 329 o.error = buildStatus(); |
| 330 o.metadata = buildUnnamed87(); | 330 o.metadata = buildUnnamed92(); |
| 331 o.name = "foo"; | 331 o.name = "foo"; |
| 332 o.response = buildUnnamed88(); | 332 o.response = buildUnnamed93(); |
| 333 } | 333 } |
| 334 buildCounterOperation--; | 334 buildCounterOperation--; |
| 335 return o; | 335 return o; |
| 336 } | 336 } |
| 337 | 337 |
| 338 checkOperation(api.Operation o) { | 338 checkOperation(api.Operation o) { |
| 339 buildCounterOperation++; | 339 buildCounterOperation++; |
| 340 if (buildCounterOperation < 3) { | 340 if (buildCounterOperation < 3) { |
| 341 unittest.expect(o.done, unittest.isTrue); | 341 unittest.expect(o.done, unittest.isTrue); |
| 342 checkStatus(o.error); | 342 checkStatus(o.error); |
| 343 checkUnnamed87(o.metadata); | 343 checkUnnamed92(o.metadata); |
| 344 unittest.expect(o.name, unittest.equals('foo')); | 344 unittest.expect(o.name, unittest.equals('foo')); |
| 345 checkUnnamed88(o.response); | 345 checkUnnamed93(o.response); |
| 346 } | 346 } |
| 347 buildCounterOperation--; | 347 buildCounterOperation--; |
| 348 } | 348 } |
| 349 | 349 |
| 350 buildUnnamed89() { | 350 buildUnnamed94() { |
| 351 var o = new core.List<api.AuditConfig>(); | 351 var o = new core.List<api.AuditConfig>(); |
| 352 o.add(buildAuditConfig()); | 352 o.add(buildAuditConfig()); |
| 353 o.add(buildAuditConfig()); | 353 o.add(buildAuditConfig()); |
| 354 return o; | 354 return o; |
| 355 } | 355 } |
| 356 | 356 |
| 357 checkUnnamed89(core.List<api.AuditConfig> o) { | 357 checkUnnamed94(core.List<api.AuditConfig> o) { |
| 358 unittest.expect(o, unittest.hasLength(2)); | 358 unittest.expect(o, unittest.hasLength(2)); |
| 359 checkAuditConfig(o[0]); | 359 checkAuditConfig(o[0]); |
| 360 checkAuditConfig(o[1]); | 360 checkAuditConfig(o[1]); |
| 361 } | 361 } |
| 362 | 362 |
| 363 buildUnnamed90() { | 363 buildUnnamed95() { |
| 364 var o = new core.List<api.Binding>(); | 364 var o = new core.List<api.Binding>(); |
| 365 o.add(buildBinding()); | 365 o.add(buildBinding()); |
| 366 o.add(buildBinding()); | 366 o.add(buildBinding()); |
| 367 return o; | 367 return o; |
| 368 } | 368 } |
| 369 | 369 |
| 370 checkUnnamed90(core.List<api.Binding> o) { | 370 checkUnnamed95(core.List<api.Binding> o) { |
| 371 unittest.expect(o, unittest.hasLength(2)); | 371 unittest.expect(o, unittest.hasLength(2)); |
| 372 checkBinding(o[0]); | 372 checkBinding(o[0]); |
| 373 checkBinding(o[1]); | 373 checkBinding(o[1]); |
| 374 } | 374 } |
| 375 | 375 |
| 376 core.int buildCounterPolicy = 0; | 376 core.int buildCounterPolicy = 0; |
| 377 buildPolicy() { | 377 buildPolicy() { |
| 378 var o = new api.Policy(); | 378 var o = new api.Policy(); |
| 379 buildCounterPolicy++; | 379 buildCounterPolicy++; |
| 380 if (buildCounterPolicy < 3) { | 380 if (buildCounterPolicy < 3) { |
| 381 o.auditConfigs = buildUnnamed89(); | 381 o.auditConfigs = buildUnnamed94(); |
| 382 o.bindings = buildUnnamed90(); | 382 o.bindings = buildUnnamed95(); |
| 383 o.etag = "foo"; | 383 o.etag = "foo"; |
| 384 o.version = 42; | 384 o.version = 42; |
| 385 } | 385 } |
| 386 buildCounterPolicy--; | 386 buildCounterPolicy--; |
| 387 return o; | 387 return o; |
| 388 } | 388 } |
| 389 | 389 |
| 390 checkPolicy(api.Policy o) { | 390 checkPolicy(api.Policy o) { |
| 391 buildCounterPolicy++; | 391 buildCounterPolicy++; |
| 392 if (buildCounterPolicy < 3) { | 392 if (buildCounterPolicy < 3) { |
| 393 checkUnnamed89(o.auditConfigs); | 393 checkUnnamed94(o.auditConfigs); |
| 394 checkUnnamed90(o.bindings); | 394 checkUnnamed95(o.bindings); |
| 395 unittest.expect(o.etag, unittest.equals('foo')); | 395 unittest.expect(o.etag, unittest.equals('foo')); |
| 396 unittest.expect(o.version, unittest.equals(42)); | 396 unittest.expect(o.version, unittest.equals(42)); |
| 397 } | 397 } |
| 398 buildCounterPolicy--; | 398 buildCounterPolicy--; |
| 399 } | 399 } |
| 400 | 400 |
| 401 core.int buildCounterProjectCreationStatus = 0; | 401 core.int buildCounterProjectCreationStatus = 0; |
| 402 buildProjectCreationStatus() { | 402 buildProjectCreationStatus() { |
| 403 var o = new api.ProjectCreationStatus(); | 403 var o = new api.ProjectCreationStatus(); |
| 404 buildCounterProjectCreationStatus++; | 404 buildCounterProjectCreationStatus++; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 checkSearchFoldersRequest(api.SearchFoldersRequest o) { | 437 checkSearchFoldersRequest(api.SearchFoldersRequest o) { |
| 438 buildCounterSearchFoldersRequest++; | 438 buildCounterSearchFoldersRequest++; |
| 439 if (buildCounterSearchFoldersRequest < 3) { | 439 if (buildCounterSearchFoldersRequest < 3) { |
| 440 unittest.expect(o.pageSize, unittest.equals(42)); | 440 unittest.expect(o.pageSize, unittest.equals(42)); |
| 441 unittest.expect(o.pageToken, unittest.equals('foo')); | 441 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 442 unittest.expect(o.query, unittest.equals('foo')); | 442 unittest.expect(o.query, unittest.equals('foo')); |
| 443 } | 443 } |
| 444 buildCounterSearchFoldersRequest--; | 444 buildCounterSearchFoldersRequest--; |
| 445 } | 445 } |
| 446 | 446 |
| 447 buildUnnamed91() { | 447 buildUnnamed96() { |
| 448 var o = new core.List<api.Folder>(); | 448 var o = new core.List<api.Folder>(); |
| 449 o.add(buildFolder()); | 449 o.add(buildFolder()); |
| 450 o.add(buildFolder()); | 450 o.add(buildFolder()); |
| 451 return o; | 451 return o; |
| 452 } | 452 } |
| 453 | 453 |
| 454 checkUnnamed91(core.List<api.Folder> o) { | 454 checkUnnamed96(core.List<api.Folder> o) { |
| 455 unittest.expect(o, unittest.hasLength(2)); | 455 unittest.expect(o, unittest.hasLength(2)); |
| 456 checkFolder(o[0]); | 456 checkFolder(o[0]); |
| 457 checkFolder(o[1]); | 457 checkFolder(o[1]); |
| 458 } | 458 } |
| 459 | 459 |
| 460 core.int buildCounterSearchFoldersResponse = 0; | 460 core.int buildCounterSearchFoldersResponse = 0; |
| 461 buildSearchFoldersResponse() { | 461 buildSearchFoldersResponse() { |
| 462 var o = new api.SearchFoldersResponse(); | 462 var o = new api.SearchFoldersResponse(); |
| 463 buildCounterSearchFoldersResponse++; | 463 buildCounterSearchFoldersResponse++; |
| 464 if (buildCounterSearchFoldersResponse < 3) { | 464 if (buildCounterSearchFoldersResponse < 3) { |
| 465 o.folders = buildUnnamed91(); | 465 o.folders = buildUnnamed96(); |
| 466 o.nextPageToken = "foo"; | 466 o.nextPageToken = "foo"; |
| 467 } | 467 } |
| 468 buildCounterSearchFoldersResponse--; | 468 buildCounterSearchFoldersResponse--; |
| 469 return o; | 469 return o; |
| 470 } | 470 } |
| 471 | 471 |
| 472 checkSearchFoldersResponse(api.SearchFoldersResponse o) { | 472 checkSearchFoldersResponse(api.SearchFoldersResponse o) { |
| 473 buildCounterSearchFoldersResponse++; | 473 buildCounterSearchFoldersResponse++; |
| 474 if (buildCounterSearchFoldersResponse < 3) { | 474 if (buildCounterSearchFoldersResponse < 3) { |
| 475 checkUnnamed91(o.folders); | 475 checkUnnamed96(o.folders); |
| 476 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 476 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 477 } | 477 } |
| 478 buildCounterSearchFoldersResponse--; | 478 buildCounterSearchFoldersResponse--; |
| 479 } | 479 } |
| 480 | 480 |
| 481 core.int buildCounterSetIamPolicyRequest = 0; | 481 core.int buildCounterSetIamPolicyRequest = 0; |
| 482 buildSetIamPolicyRequest() { | 482 buildSetIamPolicyRequest() { |
| 483 var o = new api.SetIamPolicyRequest(); | 483 var o = new api.SetIamPolicyRequest(); |
| 484 buildCounterSetIamPolicyRequest++; | 484 buildCounterSetIamPolicyRequest++; |
| 485 if (buildCounterSetIamPolicyRequest < 3) { | 485 if (buildCounterSetIamPolicyRequest < 3) { |
| 486 o.policy = buildPolicy(); | 486 o.policy = buildPolicy(); |
| 487 o.updateMask = "foo"; | 487 o.updateMask = "foo"; |
| 488 } | 488 } |
| 489 buildCounterSetIamPolicyRequest--; | 489 buildCounterSetIamPolicyRequest--; |
| 490 return o; | 490 return o; |
| 491 } | 491 } |
| 492 | 492 |
| 493 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { | 493 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { |
| 494 buildCounterSetIamPolicyRequest++; | 494 buildCounterSetIamPolicyRequest++; |
| 495 if (buildCounterSetIamPolicyRequest < 3) { | 495 if (buildCounterSetIamPolicyRequest < 3) { |
| 496 checkPolicy(o.policy); | 496 checkPolicy(o.policy); |
| 497 unittest.expect(o.updateMask, unittest.equals('foo')); | 497 unittest.expect(o.updateMask, unittest.equals('foo')); |
| 498 } | 498 } |
| 499 buildCounterSetIamPolicyRequest--; | 499 buildCounterSetIamPolicyRequest--; |
| 500 } | 500 } |
| 501 | 501 |
| 502 buildUnnamed92() { | 502 buildUnnamed97() { |
| 503 var o = new core.Map<core.String, core.Object>(); | 503 var o = new core.Map<core.String, core.Object>(); |
| 504 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 504 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 505 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 505 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 506 return o; | 506 return o; |
| 507 } | 507 } |
| 508 | 508 |
| 509 checkUnnamed92(core.Map<core.String, core.Object> o) { | 509 checkUnnamed97(core.Map<core.String, core.Object> o) { |
| 510 unittest.expect(o, unittest.hasLength(2)); | 510 unittest.expect(o, unittest.hasLength(2)); |
| 511 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 511 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 512 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 512 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 513 } | 513 } |
| 514 | 514 |
| 515 buildUnnamed93() { | 515 buildUnnamed98() { |
| 516 var o = new core.List<core.Map<core.String, core.Object>>(); | 516 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 517 o.add(buildUnnamed92()); | 517 o.add(buildUnnamed97()); |
| 518 o.add(buildUnnamed92()); | 518 o.add(buildUnnamed97()); |
| 519 return o; | 519 return o; |
| 520 } | 520 } |
| 521 | 521 |
| 522 checkUnnamed93(core.List<core.Map<core.String, core.Object>> o) { | 522 checkUnnamed98(core.List<core.Map<core.String, core.Object>> o) { |
| 523 unittest.expect(o, unittest.hasLength(2)); | 523 unittest.expect(o, unittest.hasLength(2)); |
| 524 checkUnnamed92(o[0]); | 524 checkUnnamed97(o[0]); |
| 525 checkUnnamed92(o[1]); | 525 checkUnnamed97(o[1]); |
| 526 } | 526 } |
| 527 | 527 |
| 528 core.int buildCounterStatus = 0; | 528 core.int buildCounterStatus = 0; |
| 529 buildStatus() { | 529 buildStatus() { |
| 530 var o = new api.Status(); | 530 var o = new api.Status(); |
| 531 buildCounterStatus++; | 531 buildCounterStatus++; |
| 532 if (buildCounterStatus < 3) { | 532 if (buildCounterStatus < 3) { |
| 533 o.code = 42; | 533 o.code = 42; |
| 534 o.details = buildUnnamed93(); | 534 o.details = buildUnnamed98(); |
| 535 o.message = "foo"; | 535 o.message = "foo"; |
| 536 } | 536 } |
| 537 buildCounterStatus--; | 537 buildCounterStatus--; |
| 538 return o; | 538 return o; |
| 539 } | 539 } |
| 540 | 540 |
| 541 checkStatus(api.Status o) { | 541 checkStatus(api.Status o) { |
| 542 buildCounterStatus++; | 542 buildCounterStatus++; |
| 543 if (buildCounterStatus < 3) { | 543 if (buildCounterStatus < 3) { |
| 544 unittest.expect(o.code, unittest.equals(42)); | 544 unittest.expect(o.code, unittest.equals(42)); |
| 545 checkUnnamed93(o.details); | 545 checkUnnamed98(o.details); |
| 546 unittest.expect(o.message, unittest.equals('foo')); | 546 unittest.expect(o.message, unittest.equals('foo')); |
| 547 } | 547 } |
| 548 buildCounterStatus--; | 548 buildCounterStatus--; |
| 549 } | 549 } |
| 550 | 550 |
| 551 buildUnnamed94() { | 551 buildUnnamed99() { |
| 552 var o = new core.List<core.String>(); | 552 var o = new core.List<core.String>(); |
| 553 o.add("foo"); | 553 o.add("foo"); |
| 554 o.add("foo"); | 554 o.add("foo"); |
| 555 return o; | 555 return o; |
| 556 } | 556 } |
| 557 | 557 |
| 558 checkUnnamed94(core.List<core.String> o) { | 558 checkUnnamed99(core.List<core.String> o) { |
| 559 unittest.expect(o, unittest.hasLength(2)); | 559 unittest.expect(o, unittest.hasLength(2)); |
| 560 unittest.expect(o[0], unittest.equals('foo')); | 560 unittest.expect(o[0], unittest.equals('foo')); |
| 561 unittest.expect(o[1], unittest.equals('foo')); | 561 unittest.expect(o[1], unittest.equals('foo')); |
| 562 } | 562 } |
| 563 | 563 |
| 564 core.int buildCounterTestIamPermissionsRequest = 0; | 564 core.int buildCounterTestIamPermissionsRequest = 0; |
| 565 buildTestIamPermissionsRequest() { | 565 buildTestIamPermissionsRequest() { |
| 566 var o = new api.TestIamPermissionsRequest(); | 566 var o = new api.TestIamPermissionsRequest(); |
| 567 buildCounterTestIamPermissionsRequest++; | 567 buildCounterTestIamPermissionsRequest++; |
| 568 if (buildCounterTestIamPermissionsRequest < 3) { | 568 if (buildCounterTestIamPermissionsRequest < 3) { |
| 569 o.permissions = buildUnnamed94(); | 569 o.permissions = buildUnnamed99(); |
| 570 } | 570 } |
| 571 buildCounterTestIamPermissionsRequest--; | 571 buildCounterTestIamPermissionsRequest--; |
| 572 return o; | 572 return o; |
| 573 } | 573 } |
| 574 | 574 |
| 575 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 575 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 576 buildCounterTestIamPermissionsRequest++; | 576 buildCounterTestIamPermissionsRequest++; |
| 577 if (buildCounterTestIamPermissionsRequest < 3) { | 577 if (buildCounterTestIamPermissionsRequest < 3) { |
| 578 checkUnnamed94(o.permissions); | 578 checkUnnamed99(o.permissions); |
| 579 } | 579 } |
| 580 buildCounterTestIamPermissionsRequest--; | 580 buildCounterTestIamPermissionsRequest--; |
| 581 } | 581 } |
| 582 | 582 |
| 583 buildUnnamed95() { | 583 buildUnnamed100() { |
| 584 var o = new core.List<core.String>(); | 584 var o = new core.List<core.String>(); |
| 585 o.add("foo"); | 585 o.add("foo"); |
| 586 o.add("foo"); | 586 o.add("foo"); |
| 587 return o; | 587 return o; |
| 588 } | 588 } |
| 589 | 589 |
| 590 checkUnnamed95(core.List<core.String> o) { | 590 checkUnnamed100(core.List<core.String> o) { |
| 591 unittest.expect(o, unittest.hasLength(2)); | 591 unittest.expect(o, unittest.hasLength(2)); |
| 592 unittest.expect(o[0], unittest.equals('foo')); | 592 unittest.expect(o[0], unittest.equals('foo')); |
| 593 unittest.expect(o[1], unittest.equals('foo')); | 593 unittest.expect(o[1], unittest.equals('foo')); |
| 594 } | 594 } |
| 595 | 595 |
| 596 core.int buildCounterTestIamPermissionsResponse = 0; | 596 core.int buildCounterTestIamPermissionsResponse = 0; |
| 597 buildTestIamPermissionsResponse() { | 597 buildTestIamPermissionsResponse() { |
| 598 var o = new api.TestIamPermissionsResponse(); | 598 var o = new api.TestIamPermissionsResponse(); |
| 599 buildCounterTestIamPermissionsResponse++; | 599 buildCounterTestIamPermissionsResponse++; |
| 600 if (buildCounterTestIamPermissionsResponse < 3) { | 600 if (buildCounterTestIamPermissionsResponse < 3) { |
| 601 o.permissions = buildUnnamed95(); | 601 o.permissions = buildUnnamed100(); |
| 602 } | 602 } |
| 603 buildCounterTestIamPermissionsResponse--; | 603 buildCounterTestIamPermissionsResponse--; |
| 604 return o; | 604 return o; |
| 605 } | 605 } |
| 606 | 606 |
| 607 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 607 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 608 buildCounterTestIamPermissionsResponse++; | 608 buildCounterTestIamPermissionsResponse++; |
| 609 if (buildCounterTestIamPermissionsResponse < 3) { | 609 if (buildCounterTestIamPermissionsResponse < 3) { |
| 610 checkUnnamed95(o.permissions); | 610 checkUnnamed100(o.permissions); |
| 611 } | 611 } |
| 612 buildCounterTestIamPermissionsResponse--; | 612 buildCounterTestIamPermissionsResponse--; |
| 613 } | 613 } |
| 614 | 614 |
| 615 core.int buildCounterUndeleteFolderRequest = 0; | 615 core.int buildCounterUndeleteFolderRequest = 0; |
| 616 buildUndeleteFolderRequest() { | 616 buildUndeleteFolderRequest() { |
| 617 var o = new api.UndeleteFolderRequest(); | 617 var o = new api.UndeleteFolderRequest(); |
| 618 buildCounterUndeleteFolderRequest++; | 618 buildCounterUndeleteFolderRequest++; |
| 619 if (buildCounterUndeleteFolderRequest < 3) { | 619 if (buildCounterUndeleteFolderRequest < 3) { |
| 620 } | 620 } |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 res.undelete(arg_request, arg_name).then(unittest.expectAsync1(((api.Folde
r response) { | 1334 res.undelete(arg_request, arg_name).then(unittest.expectAsync1(((api.Folde
r response) { |
| 1335 checkFolder(response); | 1335 checkFolder(response); |
| 1336 }))); | 1336 }))); |
| 1337 }); | 1337 }); |
| 1338 | 1338 |
| 1339 }); | 1339 }); |
| 1340 | 1340 |
| 1341 | 1341 |
| 1342 } | 1342 } |
| 1343 | 1343 |
| OLD | NEW |