| OLD | NEW |
| 1 library googleapis_beta.cloudresourcemanager.v1beta1.test; | 1 library googleapis_beta.cloudresourcemanager.v1beta1.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 | 64 |
| 65 checkAncestor(api.Ancestor o) { | 65 checkAncestor(api.Ancestor o) { |
| 66 buildCounterAncestor++; | 66 buildCounterAncestor++; |
| 67 if (buildCounterAncestor < 3) { | 67 if (buildCounterAncestor < 3) { |
| 68 checkResourceId(o.resourceId); | 68 checkResourceId(o.resourceId); |
| 69 } | 69 } |
| 70 buildCounterAncestor--; | 70 buildCounterAncestor--; |
| 71 } | 71 } |
| 72 | 72 |
| 73 buildUnnamed3467() { | 73 buildUnnamed4096() { |
| 74 var o = new core.List<core.String>(); | 74 var o = new core.List<core.String>(); |
| 75 o.add("foo"); | 75 o.add("foo"); |
| 76 o.add("foo"); | 76 o.add("foo"); |
| 77 return o; | 77 return o; |
| 78 } | 78 } |
| 79 | 79 |
| 80 checkUnnamed3467(core.List<core.String> o) { | 80 checkUnnamed4096(core.List<core.String> o) { |
| 81 unittest.expect(o, unittest.hasLength(2)); | 81 unittest.expect(o, unittest.hasLength(2)); |
| 82 unittest.expect(o[0], unittest.equals('foo')); | 82 unittest.expect(o[0], unittest.equals('foo')); |
| 83 unittest.expect(o[1], unittest.equals('foo')); | 83 unittest.expect(o[1], unittest.equals('foo')); |
| 84 } | 84 } |
| 85 | 85 |
| 86 core.int buildCounterBinding = 0; | 86 core.int buildCounterBinding = 0; |
| 87 buildBinding() { | 87 buildBinding() { |
| 88 var o = new api.Binding(); | 88 var o = new api.Binding(); |
| 89 buildCounterBinding++; | 89 buildCounterBinding++; |
| 90 if (buildCounterBinding < 3) { | 90 if (buildCounterBinding < 3) { |
| 91 o.members = buildUnnamed3467(); | 91 o.members = buildUnnamed4096(); |
| 92 o.role = "foo"; | 92 o.role = "foo"; |
| 93 } | 93 } |
| 94 buildCounterBinding--; | 94 buildCounterBinding--; |
| 95 return o; | 95 return o; |
| 96 } | 96 } |
| 97 | 97 |
| 98 checkBinding(api.Binding o) { | 98 checkBinding(api.Binding o) { |
| 99 buildCounterBinding++; | 99 buildCounterBinding++; |
| 100 if (buildCounterBinding < 3) { | 100 if (buildCounterBinding < 3) { |
| 101 checkUnnamed3467(o.members); | 101 checkUnnamed4096(o.members); |
| 102 unittest.expect(o.role, unittest.equals('foo')); | 102 unittest.expect(o.role, unittest.equals('foo')); |
| 103 } | 103 } |
| 104 buildCounterBinding--; | 104 buildCounterBinding--; |
| 105 } | 105 } |
| 106 | 106 |
| 107 core.int buildCounterEmpty = 0; | 107 core.int buildCounterEmpty = 0; |
| 108 buildEmpty() { | 108 buildEmpty() { |
| 109 var o = new api.Empty(); | 109 var o = new api.Empty(); |
| 110 buildCounterEmpty++; | 110 buildCounterEmpty++; |
| 111 if (buildCounterEmpty < 3) { | 111 if (buildCounterEmpty < 3) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 131 return o; | 131 return o; |
| 132 } | 132 } |
| 133 | 133 |
| 134 checkGetAncestryRequest(api.GetAncestryRequest o) { | 134 checkGetAncestryRequest(api.GetAncestryRequest o) { |
| 135 buildCounterGetAncestryRequest++; | 135 buildCounterGetAncestryRequest++; |
| 136 if (buildCounterGetAncestryRequest < 3) { | 136 if (buildCounterGetAncestryRequest < 3) { |
| 137 } | 137 } |
| 138 buildCounterGetAncestryRequest--; | 138 buildCounterGetAncestryRequest--; |
| 139 } | 139 } |
| 140 | 140 |
| 141 buildUnnamed3468() { | 141 buildUnnamed4097() { |
| 142 var o = new core.List<api.Ancestor>(); | 142 var o = new core.List<api.Ancestor>(); |
| 143 o.add(buildAncestor()); | 143 o.add(buildAncestor()); |
| 144 o.add(buildAncestor()); | 144 o.add(buildAncestor()); |
| 145 return o; | 145 return o; |
| 146 } | 146 } |
| 147 | 147 |
| 148 checkUnnamed3468(core.List<api.Ancestor> o) { | 148 checkUnnamed4097(core.List<api.Ancestor> o) { |
| 149 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
| 150 checkAncestor(o[0]); | 150 checkAncestor(o[0]); |
| 151 checkAncestor(o[1]); | 151 checkAncestor(o[1]); |
| 152 } | 152 } |
| 153 | 153 |
| 154 core.int buildCounterGetAncestryResponse = 0; | 154 core.int buildCounterGetAncestryResponse = 0; |
| 155 buildGetAncestryResponse() { | 155 buildGetAncestryResponse() { |
| 156 var o = new api.GetAncestryResponse(); | 156 var o = new api.GetAncestryResponse(); |
| 157 buildCounterGetAncestryResponse++; | 157 buildCounterGetAncestryResponse++; |
| 158 if (buildCounterGetAncestryResponse < 3) { | 158 if (buildCounterGetAncestryResponse < 3) { |
| 159 o.ancestor = buildUnnamed3468(); | 159 o.ancestor = buildUnnamed4097(); |
| 160 } | 160 } |
| 161 buildCounterGetAncestryResponse--; | 161 buildCounterGetAncestryResponse--; |
| 162 return o; | 162 return o; |
| 163 } | 163 } |
| 164 | 164 |
| 165 checkGetAncestryResponse(api.GetAncestryResponse o) { | 165 checkGetAncestryResponse(api.GetAncestryResponse o) { |
| 166 buildCounterGetAncestryResponse++; | 166 buildCounterGetAncestryResponse++; |
| 167 if (buildCounterGetAncestryResponse < 3) { | 167 if (buildCounterGetAncestryResponse < 3) { |
| 168 checkUnnamed3468(o.ancestor); | 168 checkUnnamed4097(o.ancestor); |
| 169 } | 169 } |
| 170 buildCounterGetAncestryResponse--; | 170 buildCounterGetAncestryResponse--; |
| 171 } | 171 } |
| 172 | 172 |
| 173 core.int buildCounterGetIamPolicyRequest = 0; | 173 core.int buildCounterGetIamPolicyRequest = 0; |
| 174 buildGetIamPolicyRequest() { | 174 buildGetIamPolicyRequest() { |
| 175 var o = new api.GetIamPolicyRequest(); | 175 var o = new api.GetIamPolicyRequest(); |
| 176 buildCounterGetIamPolicyRequest++; | 176 buildCounterGetIamPolicyRequest++; |
| 177 if (buildCounterGetIamPolicyRequest < 3) { | 177 if (buildCounterGetIamPolicyRequest < 3) { |
| 178 } | 178 } |
| 179 buildCounterGetIamPolicyRequest--; | 179 buildCounterGetIamPolicyRequest--; |
| 180 return o; | 180 return o; |
| 181 } | 181 } |
| 182 | 182 |
| 183 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 183 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
| 184 buildCounterGetIamPolicyRequest++; | 184 buildCounterGetIamPolicyRequest++; |
| 185 if (buildCounterGetIamPolicyRequest < 3) { | 185 if (buildCounterGetIamPolicyRequest < 3) { |
| 186 } | 186 } |
| 187 buildCounterGetIamPolicyRequest--; | 187 buildCounterGetIamPolicyRequest--; |
| 188 } | 188 } |
| 189 | 189 |
| 190 buildUnnamed3469() { | 190 buildUnnamed4098() { |
| 191 var o = new core.List<api.Organization>(); | 191 var o = new core.List<api.Organization>(); |
| 192 o.add(buildOrganization()); | 192 o.add(buildOrganization()); |
| 193 o.add(buildOrganization()); | 193 o.add(buildOrganization()); |
| 194 return o; | 194 return o; |
| 195 } | 195 } |
| 196 | 196 |
| 197 checkUnnamed3469(core.List<api.Organization> o) { | 197 checkUnnamed4098(core.List<api.Organization> o) { |
| 198 unittest.expect(o, unittest.hasLength(2)); | 198 unittest.expect(o, unittest.hasLength(2)); |
| 199 checkOrganization(o[0]); | 199 checkOrganization(o[0]); |
| 200 checkOrganization(o[1]); | 200 checkOrganization(o[1]); |
| 201 } | 201 } |
| 202 | 202 |
| 203 core.int buildCounterListOrganizationsResponse = 0; | 203 core.int buildCounterListOrganizationsResponse = 0; |
| 204 buildListOrganizationsResponse() { | 204 buildListOrganizationsResponse() { |
| 205 var o = new api.ListOrganizationsResponse(); | 205 var o = new api.ListOrganizationsResponse(); |
| 206 buildCounterListOrganizationsResponse++; | 206 buildCounterListOrganizationsResponse++; |
| 207 if (buildCounterListOrganizationsResponse < 3) { | 207 if (buildCounterListOrganizationsResponse < 3) { |
| 208 o.nextPageToken = "foo"; | 208 o.nextPageToken = "foo"; |
| 209 o.organizations = buildUnnamed3469(); | 209 o.organizations = buildUnnamed4098(); |
| 210 } | 210 } |
| 211 buildCounterListOrganizationsResponse--; | 211 buildCounterListOrganizationsResponse--; |
| 212 return o; | 212 return o; |
| 213 } | 213 } |
| 214 | 214 |
| 215 checkListOrganizationsResponse(api.ListOrganizationsResponse o) { | 215 checkListOrganizationsResponse(api.ListOrganizationsResponse o) { |
| 216 buildCounterListOrganizationsResponse++; | 216 buildCounterListOrganizationsResponse++; |
| 217 if (buildCounterListOrganizationsResponse < 3) { | 217 if (buildCounterListOrganizationsResponse < 3) { |
| 218 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 218 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 219 checkUnnamed3469(o.organizations); | 219 checkUnnamed4098(o.organizations); |
| 220 } | 220 } |
| 221 buildCounterListOrganizationsResponse--; | 221 buildCounterListOrganizationsResponse--; |
| 222 } | 222 } |
| 223 | 223 |
| 224 buildUnnamed3470() { | 224 buildUnnamed4099() { |
| 225 var o = new core.List<api.Project>(); | 225 var o = new core.List<api.Project>(); |
| 226 o.add(buildProject()); | 226 o.add(buildProject()); |
| 227 o.add(buildProject()); | 227 o.add(buildProject()); |
| 228 return o; | 228 return o; |
| 229 } | 229 } |
| 230 | 230 |
| 231 checkUnnamed3470(core.List<api.Project> o) { | 231 checkUnnamed4099(core.List<api.Project> o) { |
| 232 unittest.expect(o, unittest.hasLength(2)); | 232 unittest.expect(o, unittest.hasLength(2)); |
| 233 checkProject(o[0]); | 233 checkProject(o[0]); |
| 234 checkProject(o[1]); | 234 checkProject(o[1]); |
| 235 } | 235 } |
| 236 | 236 |
| 237 core.int buildCounterListProjectsResponse = 0; | 237 core.int buildCounterListProjectsResponse = 0; |
| 238 buildListProjectsResponse() { | 238 buildListProjectsResponse() { |
| 239 var o = new api.ListProjectsResponse(); | 239 var o = new api.ListProjectsResponse(); |
| 240 buildCounterListProjectsResponse++; | 240 buildCounterListProjectsResponse++; |
| 241 if (buildCounterListProjectsResponse < 3) { | 241 if (buildCounterListProjectsResponse < 3) { |
| 242 o.nextPageToken = "foo"; | 242 o.nextPageToken = "foo"; |
| 243 o.projects = buildUnnamed3470(); | 243 o.projects = buildUnnamed4099(); |
| 244 } | 244 } |
| 245 buildCounterListProjectsResponse--; | 245 buildCounterListProjectsResponse--; |
| 246 return o; | 246 return o; |
| 247 } | 247 } |
| 248 | 248 |
| 249 checkListProjectsResponse(api.ListProjectsResponse o) { | 249 checkListProjectsResponse(api.ListProjectsResponse o) { |
| 250 buildCounterListProjectsResponse++; | 250 buildCounterListProjectsResponse++; |
| 251 if (buildCounterListProjectsResponse < 3) { | 251 if (buildCounterListProjectsResponse < 3) { |
| 252 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 252 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 253 checkUnnamed3470(o.projects); | 253 checkUnnamed4099(o.projects); |
| 254 } | 254 } |
| 255 buildCounterListProjectsResponse--; | 255 buildCounterListProjectsResponse--; |
| 256 } | 256 } |
| 257 | 257 |
| 258 core.int buildCounterOrganization = 0; | 258 core.int buildCounterOrganization = 0; |
| 259 buildOrganization() { | 259 buildOrganization() { |
| 260 var o = new api.Organization(); | 260 var o = new api.Organization(); |
| 261 buildCounterOrganization++; | 261 buildCounterOrganization++; |
| 262 if (buildCounterOrganization < 3) { | 262 if (buildCounterOrganization < 3) { |
| 263 o.creationTime = "foo"; | 263 o.creationTime = "foo"; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 } | 296 } |
| 297 | 297 |
| 298 checkOrganizationOwner(api.OrganizationOwner o) { | 298 checkOrganizationOwner(api.OrganizationOwner o) { |
| 299 buildCounterOrganizationOwner++; | 299 buildCounterOrganizationOwner++; |
| 300 if (buildCounterOrganizationOwner < 3) { | 300 if (buildCounterOrganizationOwner < 3) { |
| 301 unittest.expect(o.directoryCustomerId, unittest.equals('foo')); | 301 unittest.expect(o.directoryCustomerId, unittest.equals('foo')); |
| 302 } | 302 } |
| 303 buildCounterOrganizationOwner--; | 303 buildCounterOrganizationOwner--; |
| 304 } | 304 } |
| 305 | 305 |
| 306 buildUnnamed3471() { | 306 buildUnnamed4100() { |
| 307 var o = new core.List<api.Binding>(); | 307 var o = new core.List<api.Binding>(); |
| 308 o.add(buildBinding()); | 308 o.add(buildBinding()); |
| 309 o.add(buildBinding()); | 309 o.add(buildBinding()); |
| 310 return o; | 310 return o; |
| 311 } | 311 } |
| 312 | 312 |
| 313 checkUnnamed3471(core.List<api.Binding> o) { | 313 checkUnnamed4100(core.List<api.Binding> o) { |
| 314 unittest.expect(o, unittest.hasLength(2)); | 314 unittest.expect(o, unittest.hasLength(2)); |
| 315 checkBinding(o[0]); | 315 checkBinding(o[0]); |
| 316 checkBinding(o[1]); | 316 checkBinding(o[1]); |
| 317 } | 317 } |
| 318 | 318 |
| 319 core.int buildCounterPolicy = 0; | 319 core.int buildCounterPolicy = 0; |
| 320 buildPolicy() { | 320 buildPolicy() { |
| 321 var o = new api.Policy(); | 321 var o = new api.Policy(); |
| 322 buildCounterPolicy++; | 322 buildCounterPolicy++; |
| 323 if (buildCounterPolicy < 3) { | 323 if (buildCounterPolicy < 3) { |
| 324 o.bindings = buildUnnamed3471(); | 324 o.bindings = buildUnnamed4100(); |
| 325 o.etag = "foo"; | 325 o.etag = "foo"; |
| 326 o.version = 42; | 326 o.version = 42; |
| 327 } | 327 } |
| 328 buildCounterPolicy--; | 328 buildCounterPolicy--; |
| 329 return o; | 329 return o; |
| 330 } | 330 } |
| 331 | 331 |
| 332 checkPolicy(api.Policy o) { | 332 checkPolicy(api.Policy o) { |
| 333 buildCounterPolicy++; | 333 buildCounterPolicy++; |
| 334 if (buildCounterPolicy < 3) { | 334 if (buildCounterPolicy < 3) { |
| 335 checkUnnamed3471(o.bindings); | 335 checkUnnamed4100(o.bindings); |
| 336 unittest.expect(o.etag, unittest.equals('foo')); | 336 unittest.expect(o.etag, unittest.equals('foo')); |
| 337 unittest.expect(o.version, unittest.equals(42)); | 337 unittest.expect(o.version, unittest.equals(42)); |
| 338 } | 338 } |
| 339 buildCounterPolicy--; | 339 buildCounterPolicy--; |
| 340 } | 340 } |
| 341 | 341 |
| 342 buildUnnamed3472() { | 342 buildUnnamed4101() { |
| 343 var o = new core.Map<core.String, core.String>(); | 343 var o = new core.Map<core.String, core.String>(); |
| 344 o["x"] = "foo"; | 344 o["x"] = "foo"; |
| 345 o["y"] = "foo"; | 345 o["y"] = "foo"; |
| 346 return o; | 346 return o; |
| 347 } | 347 } |
| 348 | 348 |
| 349 checkUnnamed3472(core.Map<core.String, core.String> o) { | 349 checkUnnamed4101(core.Map<core.String, core.String> o) { |
| 350 unittest.expect(o, unittest.hasLength(2)); | 350 unittest.expect(o, unittest.hasLength(2)); |
| 351 unittest.expect(o["x"], unittest.equals('foo')); | 351 unittest.expect(o["x"], unittest.equals('foo')); |
| 352 unittest.expect(o["y"], unittest.equals('foo')); | 352 unittest.expect(o["y"], unittest.equals('foo')); |
| 353 } | 353 } |
| 354 | 354 |
| 355 core.int buildCounterProject = 0; | 355 core.int buildCounterProject = 0; |
| 356 buildProject() { | 356 buildProject() { |
| 357 var o = new api.Project(); | 357 var o = new api.Project(); |
| 358 buildCounterProject++; | 358 buildCounterProject++; |
| 359 if (buildCounterProject < 3) { | 359 if (buildCounterProject < 3) { |
| 360 o.createTime = "foo"; | 360 o.createTime = "foo"; |
| 361 o.labels = buildUnnamed3472(); | 361 o.labels = buildUnnamed4101(); |
| 362 o.lifecycleState = "foo"; | 362 o.lifecycleState = "foo"; |
| 363 o.name = "foo"; | 363 o.name = "foo"; |
| 364 o.parent = buildResourceId(); | 364 o.parent = buildResourceId(); |
| 365 o.projectId = "foo"; | 365 o.projectId = "foo"; |
| 366 o.projectNumber = "foo"; | 366 o.projectNumber = "foo"; |
| 367 } | 367 } |
| 368 buildCounterProject--; | 368 buildCounterProject--; |
| 369 return o; | 369 return o; |
| 370 } | 370 } |
| 371 | 371 |
| 372 checkProject(api.Project o) { | 372 checkProject(api.Project o) { |
| 373 buildCounterProject++; | 373 buildCounterProject++; |
| 374 if (buildCounterProject < 3) { | 374 if (buildCounterProject < 3) { |
| 375 unittest.expect(o.createTime, unittest.equals('foo')); | 375 unittest.expect(o.createTime, unittest.equals('foo')); |
| 376 checkUnnamed3472(o.labels); | 376 checkUnnamed4101(o.labels); |
| 377 unittest.expect(o.lifecycleState, unittest.equals('foo')); | 377 unittest.expect(o.lifecycleState, unittest.equals('foo')); |
| 378 unittest.expect(o.name, unittest.equals('foo')); | 378 unittest.expect(o.name, unittest.equals('foo')); |
| 379 checkResourceId(o.parent); | 379 checkResourceId(o.parent); |
| 380 unittest.expect(o.projectId, unittest.equals('foo')); | 380 unittest.expect(o.projectId, unittest.equals('foo')); |
| 381 unittest.expect(o.projectNumber, unittest.equals('foo')); | 381 unittest.expect(o.projectNumber, unittest.equals('foo')); |
| 382 } | 382 } |
| 383 buildCounterProject--; | 383 buildCounterProject--; |
| 384 } | 384 } |
| 385 | 385 |
| 386 core.int buildCounterResourceId = 0; | 386 core.int buildCounterResourceId = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 416 } | 416 } |
| 417 | 417 |
| 418 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { | 418 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { |
| 419 buildCounterSetIamPolicyRequest++; | 419 buildCounterSetIamPolicyRequest++; |
| 420 if (buildCounterSetIamPolicyRequest < 3) { | 420 if (buildCounterSetIamPolicyRequest < 3) { |
| 421 checkPolicy(o.policy); | 421 checkPolicy(o.policy); |
| 422 } | 422 } |
| 423 buildCounterSetIamPolicyRequest--; | 423 buildCounterSetIamPolicyRequest--; |
| 424 } | 424 } |
| 425 | 425 |
| 426 buildUnnamed3473() { | 426 buildUnnamed4102() { |
| 427 var o = new core.List<core.String>(); | 427 var o = new core.List<core.String>(); |
| 428 o.add("foo"); | 428 o.add("foo"); |
| 429 o.add("foo"); | 429 o.add("foo"); |
| 430 return o; | 430 return o; |
| 431 } | 431 } |
| 432 | 432 |
| 433 checkUnnamed3473(core.List<core.String> o) { | 433 checkUnnamed4102(core.List<core.String> o) { |
| 434 unittest.expect(o, unittest.hasLength(2)); | 434 unittest.expect(o, unittest.hasLength(2)); |
| 435 unittest.expect(o[0], unittest.equals('foo')); | 435 unittest.expect(o[0], unittest.equals('foo')); |
| 436 unittest.expect(o[1], unittest.equals('foo')); | 436 unittest.expect(o[1], unittest.equals('foo')); |
| 437 } | 437 } |
| 438 | 438 |
| 439 core.int buildCounterTestIamPermissionsRequest = 0; | 439 core.int buildCounterTestIamPermissionsRequest = 0; |
| 440 buildTestIamPermissionsRequest() { | 440 buildTestIamPermissionsRequest() { |
| 441 var o = new api.TestIamPermissionsRequest(); | 441 var o = new api.TestIamPermissionsRequest(); |
| 442 buildCounterTestIamPermissionsRequest++; | 442 buildCounterTestIamPermissionsRequest++; |
| 443 if (buildCounterTestIamPermissionsRequest < 3) { | 443 if (buildCounterTestIamPermissionsRequest < 3) { |
| 444 o.permissions = buildUnnamed3473(); | 444 o.permissions = buildUnnamed4102(); |
| 445 } | 445 } |
| 446 buildCounterTestIamPermissionsRequest--; | 446 buildCounterTestIamPermissionsRequest--; |
| 447 return o; | 447 return o; |
| 448 } | 448 } |
| 449 | 449 |
| 450 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 450 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 451 buildCounterTestIamPermissionsRequest++; | 451 buildCounterTestIamPermissionsRequest++; |
| 452 if (buildCounterTestIamPermissionsRequest < 3) { | 452 if (buildCounterTestIamPermissionsRequest < 3) { |
| 453 checkUnnamed3473(o.permissions); | 453 checkUnnamed4102(o.permissions); |
| 454 } | 454 } |
| 455 buildCounterTestIamPermissionsRequest--; | 455 buildCounterTestIamPermissionsRequest--; |
| 456 } | 456 } |
| 457 | 457 |
| 458 buildUnnamed3474() { | 458 buildUnnamed4103() { |
| 459 var o = new core.List<core.String>(); | 459 var o = new core.List<core.String>(); |
| 460 o.add("foo"); | 460 o.add("foo"); |
| 461 o.add("foo"); | 461 o.add("foo"); |
| 462 return o; | 462 return o; |
| 463 } | 463 } |
| 464 | 464 |
| 465 checkUnnamed3474(core.List<core.String> o) { | 465 checkUnnamed4103(core.List<core.String> o) { |
| 466 unittest.expect(o, unittest.hasLength(2)); | 466 unittest.expect(o, unittest.hasLength(2)); |
| 467 unittest.expect(o[0], unittest.equals('foo')); | 467 unittest.expect(o[0], unittest.equals('foo')); |
| 468 unittest.expect(o[1], unittest.equals('foo')); | 468 unittest.expect(o[1], unittest.equals('foo')); |
| 469 } | 469 } |
| 470 | 470 |
| 471 core.int buildCounterTestIamPermissionsResponse = 0; | 471 core.int buildCounterTestIamPermissionsResponse = 0; |
| 472 buildTestIamPermissionsResponse() { | 472 buildTestIamPermissionsResponse() { |
| 473 var o = new api.TestIamPermissionsResponse(); | 473 var o = new api.TestIamPermissionsResponse(); |
| 474 buildCounterTestIamPermissionsResponse++; | 474 buildCounterTestIamPermissionsResponse++; |
| 475 if (buildCounterTestIamPermissionsResponse < 3) { | 475 if (buildCounterTestIamPermissionsResponse < 3) { |
| 476 o.permissions = buildUnnamed3474(); | 476 o.permissions = buildUnnamed4103(); |
| 477 } | 477 } |
| 478 buildCounterTestIamPermissionsResponse--; | 478 buildCounterTestIamPermissionsResponse--; |
| 479 return o; | 479 return o; |
| 480 } | 480 } |
| 481 | 481 |
| 482 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 482 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 483 buildCounterTestIamPermissionsResponse++; | 483 buildCounterTestIamPermissionsResponse++; |
| 484 if (buildCounterTestIamPermissionsResponse < 3) { | 484 if (buildCounterTestIamPermissionsResponse < 3) { |
| 485 checkUnnamed3474(o.permissions); | 485 checkUnnamed4103(o.permissions); |
| 486 } | 486 } |
| 487 buildCounterTestIamPermissionsResponse--; | 487 buildCounterTestIamPermissionsResponse--; |
| 488 } | 488 } |
| 489 | 489 |
| 490 core.int buildCounterUndeleteProjectRequest = 0; | 490 core.int buildCounterUndeleteProjectRequest = 0; |
| 491 buildUndeleteProjectRequest() { | 491 buildUndeleteProjectRequest() { |
| 492 var o = new api.UndeleteProjectRequest(); | 492 var o = new api.UndeleteProjectRequest(); |
| 493 buildCounterUndeleteProjectRequest++; | 493 buildCounterUndeleteProjectRequest++; |
| 494 if (buildCounterUndeleteProjectRequest < 3) { | 494 if (buildCounterUndeleteProjectRequest < 3) { |
| 495 } | 495 } |
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Pro
ject response) { | 1470 res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Pro
ject response) { |
| 1471 checkProject(response); | 1471 checkProject(response); |
| 1472 }))); | 1472 }))); |
| 1473 }); | 1473 }); |
| 1474 | 1474 |
| 1475 }); | 1475 }); |
| 1476 | 1476 |
| 1477 | 1477 |
| 1478 } | 1478 } |
| 1479 | 1479 |
| OLD | NEW |