| OLD | NEW |
| 1 library googleapis.cloudresourcemanager.v1.test; | 1 library googleapis.cloudresourcemanager.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed708() { | 54 buildUnnamed2174() { |
| 55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
| 56 o.add("foo"); | 56 o.add("foo"); |
| 57 o.add("foo"); | 57 o.add("foo"); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed708(core.List<core.String> o) { | 61 checkUnnamed2174(core.List<core.String> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
| 64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterBinding = 0; | 67 core.int buildCounterBinding = 0; |
| 68 buildBinding() { | 68 buildBinding() { |
| 69 var o = new api.Binding(); | 69 var o = new api.Binding(); |
| 70 buildCounterBinding++; | 70 buildCounterBinding++; |
| 71 if (buildCounterBinding < 3) { | 71 if (buildCounterBinding < 3) { |
| 72 o.members = buildUnnamed708(); | 72 o.members = buildUnnamed2174(); |
| 73 o.role = "foo"; | 73 o.role = "foo"; |
| 74 } | 74 } |
| 75 buildCounterBinding--; | 75 buildCounterBinding--; |
| 76 return o; | 76 return o; |
| 77 } | 77 } |
| 78 | 78 |
| 79 checkBinding(api.Binding o) { | 79 checkBinding(api.Binding o) { |
| 80 buildCounterBinding++; | 80 buildCounterBinding++; |
| 81 if (buildCounterBinding < 3) { | 81 if (buildCounterBinding < 3) { |
| 82 checkUnnamed708(o.members); | 82 checkUnnamed2174(o.members); |
| 83 unittest.expect(o.role, unittest.equals('foo')); | 83 unittest.expect(o.role, unittest.equals('foo')); |
| 84 } | 84 } |
| 85 buildCounterBinding--; | 85 buildCounterBinding--; |
| 86 } | 86 } |
| 87 | 87 |
| 88 core.int buildCounterEmpty = 0; | 88 core.int buildCounterEmpty = 0; |
| 89 buildEmpty() { | 89 buildEmpty() { |
| 90 var o = new api.Empty(); | 90 var o = new api.Empty(); |
| 91 buildCounterEmpty++; | 91 buildCounterEmpty++; |
| 92 if (buildCounterEmpty < 3) { | 92 if (buildCounterEmpty < 3) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 112 return o; | 112 return o; |
| 113 } | 113 } |
| 114 | 114 |
| 115 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 115 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
| 116 buildCounterGetIamPolicyRequest++; | 116 buildCounterGetIamPolicyRequest++; |
| 117 if (buildCounterGetIamPolicyRequest < 3) { | 117 if (buildCounterGetIamPolicyRequest < 3) { |
| 118 } | 118 } |
| 119 buildCounterGetIamPolicyRequest--; | 119 buildCounterGetIamPolicyRequest--; |
| 120 } | 120 } |
| 121 | 121 |
| 122 buildUnnamed709() { | 122 buildUnnamed2175() { |
| 123 var o = new core.List<api.Project>(); | 123 var o = new core.List<api.Project>(); |
| 124 o.add(buildProject()); | 124 o.add(buildProject()); |
| 125 o.add(buildProject()); | 125 o.add(buildProject()); |
| 126 return o; | 126 return o; |
| 127 } | 127 } |
| 128 | 128 |
| 129 checkUnnamed709(core.List<api.Project> o) { | 129 checkUnnamed2175(core.List<api.Project> o) { |
| 130 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
| 131 checkProject(o[0]); | 131 checkProject(o[0]); |
| 132 checkProject(o[1]); | 132 checkProject(o[1]); |
| 133 } | 133 } |
| 134 | 134 |
| 135 core.int buildCounterListProjectsResponse = 0; | 135 core.int buildCounterListProjectsResponse = 0; |
| 136 buildListProjectsResponse() { | 136 buildListProjectsResponse() { |
| 137 var o = new api.ListProjectsResponse(); | 137 var o = new api.ListProjectsResponse(); |
| 138 buildCounterListProjectsResponse++; | 138 buildCounterListProjectsResponse++; |
| 139 if (buildCounterListProjectsResponse < 3) { | 139 if (buildCounterListProjectsResponse < 3) { |
| 140 o.nextPageToken = "foo"; | 140 o.nextPageToken = "foo"; |
| 141 o.projects = buildUnnamed709(); | 141 o.projects = buildUnnamed2175(); |
| 142 } | 142 } |
| 143 buildCounterListProjectsResponse--; | 143 buildCounterListProjectsResponse--; |
| 144 return o; | 144 return o; |
| 145 } | 145 } |
| 146 | 146 |
| 147 checkListProjectsResponse(api.ListProjectsResponse o) { | 147 checkListProjectsResponse(api.ListProjectsResponse o) { |
| 148 buildCounterListProjectsResponse++; | 148 buildCounterListProjectsResponse++; |
| 149 if (buildCounterListProjectsResponse < 3) { | 149 if (buildCounterListProjectsResponse < 3) { |
| 150 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 150 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 151 checkUnnamed709(o.projects); | 151 checkUnnamed2175(o.projects); |
| 152 } | 152 } |
| 153 buildCounterListProjectsResponse--; | 153 buildCounterListProjectsResponse--; |
| 154 } | 154 } |
| 155 | 155 |
| 156 buildUnnamed710() { | 156 buildUnnamed2176() { |
| 157 var o = new core.Map<core.String, core.Object>(); | 157 var o = new core.Map<core.String, core.Object>(); |
| 158 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 158 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 159 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 159 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 160 return o; | 160 return o; |
| 161 } | 161 } |
| 162 | 162 |
| 163 checkUnnamed710(core.Map<core.String, core.Object> o) { | 163 checkUnnamed2176(core.Map<core.String, core.Object> o) { |
| 164 unittest.expect(o, unittest.hasLength(2)); | 164 unittest.expect(o, unittest.hasLength(2)); |
| 165 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')); | 165 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')); |
| 166 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')); | 166 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')); |
| 167 } | 167 } |
| 168 | 168 |
| 169 buildUnnamed711() { | 169 buildUnnamed2177() { |
| 170 var o = new core.Map<core.String, core.Object>(); | 170 var o = new core.Map<core.String, core.Object>(); |
| 171 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 171 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 172 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 172 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 173 return o; | 173 return o; |
| 174 } | 174 } |
| 175 | 175 |
| 176 checkUnnamed711(core.Map<core.String, core.Object> o) { | 176 checkUnnamed2177(core.Map<core.String, core.Object> o) { |
| 177 unittest.expect(o, unittest.hasLength(2)); | 177 unittest.expect(o, unittest.hasLength(2)); |
| 178 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')); | 178 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')); |
| 179 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')); | 179 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')); |
| 180 } | 180 } |
| 181 | 181 |
| 182 core.int buildCounterOperation = 0; | 182 core.int buildCounterOperation = 0; |
| 183 buildOperation() { | 183 buildOperation() { |
| 184 var o = new api.Operation(); | 184 var o = new api.Operation(); |
| 185 buildCounterOperation++; | 185 buildCounterOperation++; |
| 186 if (buildCounterOperation < 3) { | 186 if (buildCounterOperation < 3) { |
| 187 o.done = true; | 187 o.done = true; |
| 188 o.error = buildStatus(); | 188 o.error = buildStatus(); |
| 189 o.metadata = buildUnnamed710(); | 189 o.metadata = buildUnnamed2176(); |
| 190 o.name = "foo"; | 190 o.name = "foo"; |
| 191 o.response = buildUnnamed711(); | 191 o.response = buildUnnamed2177(); |
| 192 } | 192 } |
| 193 buildCounterOperation--; | 193 buildCounterOperation--; |
| 194 return o; | 194 return o; |
| 195 } | 195 } |
| 196 | 196 |
| 197 checkOperation(api.Operation o) { | 197 checkOperation(api.Operation o) { |
| 198 buildCounterOperation++; | 198 buildCounterOperation++; |
| 199 if (buildCounterOperation < 3) { | 199 if (buildCounterOperation < 3) { |
| 200 unittest.expect(o.done, unittest.isTrue); | 200 unittest.expect(o.done, unittest.isTrue); |
| 201 checkStatus(o.error); | 201 checkStatus(o.error); |
| 202 checkUnnamed710(o.metadata); | 202 checkUnnamed2176(o.metadata); |
| 203 unittest.expect(o.name, unittest.equals('foo')); | 203 unittest.expect(o.name, unittest.equals('foo')); |
| 204 checkUnnamed711(o.response); | 204 checkUnnamed2177(o.response); |
| 205 } | 205 } |
| 206 buildCounterOperation--; | 206 buildCounterOperation--; |
| 207 } | 207 } |
| 208 | 208 |
| 209 buildUnnamed712() { | 209 buildUnnamed2178() { |
| 210 var o = new core.List<api.Binding>(); | 210 var o = new core.List<api.Binding>(); |
| 211 o.add(buildBinding()); | 211 o.add(buildBinding()); |
| 212 o.add(buildBinding()); | 212 o.add(buildBinding()); |
| 213 return o; | 213 return o; |
| 214 } | 214 } |
| 215 | 215 |
| 216 checkUnnamed712(core.List<api.Binding> o) { | 216 checkUnnamed2178(core.List<api.Binding> o) { |
| 217 unittest.expect(o, unittest.hasLength(2)); | 217 unittest.expect(o, unittest.hasLength(2)); |
| 218 checkBinding(o[0]); | 218 checkBinding(o[0]); |
| 219 checkBinding(o[1]); | 219 checkBinding(o[1]); |
| 220 } | 220 } |
| 221 | 221 |
| 222 core.int buildCounterPolicy = 0; | 222 core.int buildCounterPolicy = 0; |
| 223 buildPolicy() { | 223 buildPolicy() { |
| 224 var o = new api.Policy(); | 224 var o = new api.Policy(); |
| 225 buildCounterPolicy++; | 225 buildCounterPolicy++; |
| 226 if (buildCounterPolicy < 3) { | 226 if (buildCounterPolicy < 3) { |
| 227 o.bindings = buildUnnamed712(); | 227 o.bindings = buildUnnamed2178(); |
| 228 o.etag = "foo"; | 228 o.etag = "foo"; |
| 229 o.version = 42; | 229 o.version = 42; |
| 230 } | 230 } |
| 231 buildCounterPolicy--; | 231 buildCounterPolicy--; |
| 232 return o; | 232 return o; |
| 233 } | 233 } |
| 234 | 234 |
| 235 checkPolicy(api.Policy o) { | 235 checkPolicy(api.Policy o) { |
| 236 buildCounterPolicy++; | 236 buildCounterPolicy++; |
| 237 if (buildCounterPolicy < 3) { | 237 if (buildCounterPolicy < 3) { |
| 238 checkUnnamed712(o.bindings); | 238 checkUnnamed2178(o.bindings); |
| 239 unittest.expect(o.etag, unittest.equals('foo')); | 239 unittest.expect(o.etag, unittest.equals('foo')); |
| 240 unittest.expect(o.version, unittest.equals(42)); | 240 unittest.expect(o.version, unittest.equals(42)); |
| 241 } | 241 } |
| 242 buildCounterPolicy--; | 242 buildCounterPolicy--; |
| 243 } | 243 } |
| 244 | 244 |
| 245 buildUnnamed713() { | 245 buildUnnamed2179() { |
| 246 var o = new core.Map<core.String, core.String>(); | 246 var o = new core.Map<core.String, core.String>(); |
| 247 o["x"] = "foo"; | 247 o["x"] = "foo"; |
| 248 o["y"] = "foo"; | 248 o["y"] = "foo"; |
| 249 return o; | 249 return o; |
| 250 } | 250 } |
| 251 | 251 |
| 252 checkUnnamed713(core.Map<core.String, core.String> o) { | 252 checkUnnamed2179(core.Map<core.String, core.String> o) { |
| 253 unittest.expect(o, unittest.hasLength(2)); | 253 unittest.expect(o, unittest.hasLength(2)); |
| 254 unittest.expect(o["x"], unittest.equals('foo')); | 254 unittest.expect(o["x"], unittest.equals('foo')); |
| 255 unittest.expect(o["y"], unittest.equals('foo')); | 255 unittest.expect(o["y"], unittest.equals('foo')); |
| 256 } | 256 } |
| 257 | 257 |
| 258 core.int buildCounterProject = 0; | 258 core.int buildCounterProject = 0; |
| 259 buildProject() { | 259 buildProject() { |
| 260 var o = new api.Project(); | 260 var o = new api.Project(); |
| 261 buildCounterProject++; | 261 buildCounterProject++; |
| 262 if (buildCounterProject < 3) { | 262 if (buildCounterProject < 3) { |
| 263 o.createTime = "foo"; | 263 o.createTime = "foo"; |
| 264 o.labels = buildUnnamed713(); | 264 o.labels = buildUnnamed2179(); |
| 265 o.lifecycleState = "foo"; | 265 o.lifecycleState = "foo"; |
| 266 o.name = "foo"; | 266 o.name = "foo"; |
| 267 o.parent = buildResourceId(); | 267 o.parent = buildResourceId(); |
| 268 o.projectId = "foo"; | 268 o.projectId = "foo"; |
| 269 o.projectNumber = "foo"; | 269 o.projectNumber = "foo"; |
| 270 } | 270 } |
| 271 buildCounterProject--; | 271 buildCounterProject--; |
| 272 return o; | 272 return o; |
| 273 } | 273 } |
| 274 | 274 |
| 275 checkProject(api.Project o) { | 275 checkProject(api.Project o) { |
| 276 buildCounterProject++; | 276 buildCounterProject++; |
| 277 if (buildCounterProject < 3) { | 277 if (buildCounterProject < 3) { |
| 278 unittest.expect(o.createTime, unittest.equals('foo')); | 278 unittest.expect(o.createTime, unittest.equals('foo')); |
| 279 checkUnnamed713(o.labels); | 279 checkUnnamed2179(o.labels); |
| 280 unittest.expect(o.lifecycleState, unittest.equals('foo')); | 280 unittest.expect(o.lifecycleState, unittest.equals('foo')); |
| 281 unittest.expect(o.name, unittest.equals('foo')); | 281 unittest.expect(o.name, unittest.equals('foo')); |
| 282 checkResourceId(o.parent); | 282 checkResourceId(o.parent); |
| 283 unittest.expect(o.projectId, unittest.equals('foo')); | 283 unittest.expect(o.projectId, unittest.equals('foo')); |
| 284 unittest.expect(o.projectNumber, unittest.equals('foo')); | 284 unittest.expect(o.projectNumber, unittest.equals('foo')); |
| 285 } | 285 } |
| 286 buildCounterProject--; | 286 buildCounterProject--; |
| 287 } | 287 } |
| 288 | 288 |
| 289 core.int buildCounterResourceId = 0; | 289 core.int buildCounterResourceId = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 319 } | 319 } |
| 320 | 320 |
| 321 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { | 321 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { |
| 322 buildCounterSetIamPolicyRequest++; | 322 buildCounterSetIamPolicyRequest++; |
| 323 if (buildCounterSetIamPolicyRequest < 3) { | 323 if (buildCounterSetIamPolicyRequest < 3) { |
| 324 checkPolicy(o.policy); | 324 checkPolicy(o.policy); |
| 325 } | 325 } |
| 326 buildCounterSetIamPolicyRequest--; | 326 buildCounterSetIamPolicyRequest--; |
| 327 } | 327 } |
| 328 | 328 |
| 329 buildUnnamed714() { | 329 buildUnnamed2180() { |
| 330 var o = new core.Map<core.String, core.Object>(); | 330 var o = new core.Map<core.String, core.Object>(); |
| 331 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 331 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 332 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 332 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 333 return o; | 333 return o; |
| 334 } | 334 } |
| 335 | 335 |
| 336 checkUnnamed714(core.Map<core.String, core.Object> o) { | 336 checkUnnamed2180(core.Map<core.String, core.Object> o) { |
| 337 unittest.expect(o, unittest.hasLength(2)); | 337 unittest.expect(o, unittest.hasLength(2)); |
| 338 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')); | 338 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')); |
| 339 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')); | 339 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')); |
| 340 } | 340 } |
| 341 | 341 |
| 342 buildUnnamed715() { | 342 buildUnnamed2181() { |
| 343 var o = new core.List<core.Map<core.String, core.Object>>(); | 343 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 344 o.add(buildUnnamed714()); | 344 o.add(buildUnnamed2180()); |
| 345 o.add(buildUnnamed714()); | 345 o.add(buildUnnamed2180()); |
| 346 return o; | 346 return o; |
| 347 } | 347 } |
| 348 | 348 |
| 349 checkUnnamed715(core.List<core.Map<core.String, core.Object>> o) { | 349 checkUnnamed2181(core.List<core.Map<core.String, core.Object>> o) { |
| 350 unittest.expect(o, unittest.hasLength(2)); | 350 unittest.expect(o, unittest.hasLength(2)); |
| 351 checkUnnamed714(o[0]); | 351 checkUnnamed2180(o[0]); |
| 352 checkUnnamed714(o[1]); | 352 checkUnnamed2180(o[1]); |
| 353 } | 353 } |
| 354 | 354 |
| 355 core.int buildCounterStatus = 0; | 355 core.int buildCounterStatus = 0; |
| 356 buildStatus() { | 356 buildStatus() { |
| 357 var o = new api.Status(); | 357 var o = new api.Status(); |
| 358 buildCounterStatus++; | 358 buildCounterStatus++; |
| 359 if (buildCounterStatus < 3) { | 359 if (buildCounterStatus < 3) { |
| 360 o.code = 42; | 360 o.code = 42; |
| 361 o.details = buildUnnamed715(); | 361 o.details = buildUnnamed2181(); |
| 362 o.message = "foo"; | 362 o.message = "foo"; |
| 363 } | 363 } |
| 364 buildCounterStatus--; | 364 buildCounterStatus--; |
| 365 return o; | 365 return o; |
| 366 } | 366 } |
| 367 | 367 |
| 368 checkStatus(api.Status o) { | 368 checkStatus(api.Status o) { |
| 369 buildCounterStatus++; | 369 buildCounterStatus++; |
| 370 if (buildCounterStatus < 3) { | 370 if (buildCounterStatus < 3) { |
| 371 unittest.expect(o.code, unittest.equals(42)); | 371 unittest.expect(o.code, unittest.equals(42)); |
| 372 checkUnnamed715(o.details); | 372 checkUnnamed2181(o.details); |
| 373 unittest.expect(o.message, unittest.equals('foo')); | 373 unittest.expect(o.message, unittest.equals('foo')); |
| 374 } | 374 } |
| 375 buildCounterStatus--; | 375 buildCounterStatus--; |
| 376 } | 376 } |
| 377 | 377 |
| 378 buildUnnamed716() { | 378 buildUnnamed2182() { |
| 379 var o = new core.List<core.String>(); | 379 var o = new core.List<core.String>(); |
| 380 o.add("foo"); | 380 o.add("foo"); |
| 381 o.add("foo"); | 381 o.add("foo"); |
| 382 return o; | 382 return o; |
| 383 } | 383 } |
| 384 | 384 |
| 385 checkUnnamed716(core.List<core.String> o) { | 385 checkUnnamed2182(core.List<core.String> o) { |
| 386 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
| 387 unittest.expect(o[0], unittest.equals('foo')); | 387 unittest.expect(o[0], unittest.equals('foo')); |
| 388 unittest.expect(o[1], unittest.equals('foo')); | 388 unittest.expect(o[1], unittest.equals('foo')); |
| 389 } | 389 } |
| 390 | 390 |
| 391 core.int buildCounterTestIamPermissionsRequest = 0; | 391 core.int buildCounterTestIamPermissionsRequest = 0; |
| 392 buildTestIamPermissionsRequest() { | 392 buildTestIamPermissionsRequest() { |
| 393 var o = new api.TestIamPermissionsRequest(); | 393 var o = new api.TestIamPermissionsRequest(); |
| 394 buildCounterTestIamPermissionsRequest++; | 394 buildCounterTestIamPermissionsRequest++; |
| 395 if (buildCounterTestIamPermissionsRequest < 3) { | 395 if (buildCounterTestIamPermissionsRequest < 3) { |
| 396 o.permissions = buildUnnamed716(); | 396 o.permissions = buildUnnamed2182(); |
| 397 } | 397 } |
| 398 buildCounterTestIamPermissionsRequest--; | 398 buildCounterTestIamPermissionsRequest--; |
| 399 return o; | 399 return o; |
| 400 } | 400 } |
| 401 | 401 |
| 402 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 402 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 403 buildCounterTestIamPermissionsRequest++; | 403 buildCounterTestIamPermissionsRequest++; |
| 404 if (buildCounterTestIamPermissionsRequest < 3) { | 404 if (buildCounterTestIamPermissionsRequest < 3) { |
| 405 checkUnnamed716(o.permissions); | 405 checkUnnamed2182(o.permissions); |
| 406 } | 406 } |
| 407 buildCounterTestIamPermissionsRequest--; | 407 buildCounterTestIamPermissionsRequest--; |
| 408 } | 408 } |
| 409 | 409 |
| 410 buildUnnamed717() { | 410 buildUnnamed2183() { |
| 411 var o = new core.List<core.String>(); | 411 var o = new core.List<core.String>(); |
| 412 o.add("foo"); | 412 o.add("foo"); |
| 413 o.add("foo"); | 413 o.add("foo"); |
| 414 return o; | 414 return o; |
| 415 } | 415 } |
| 416 | 416 |
| 417 checkUnnamed717(core.List<core.String> o) { | 417 checkUnnamed2183(core.List<core.String> o) { |
| 418 unittest.expect(o, unittest.hasLength(2)); | 418 unittest.expect(o, unittest.hasLength(2)); |
| 419 unittest.expect(o[0], unittest.equals('foo')); | 419 unittest.expect(o[0], unittest.equals('foo')); |
| 420 unittest.expect(o[1], unittest.equals('foo')); | 420 unittest.expect(o[1], unittest.equals('foo')); |
| 421 } | 421 } |
| 422 | 422 |
| 423 core.int buildCounterTestIamPermissionsResponse = 0; | 423 core.int buildCounterTestIamPermissionsResponse = 0; |
| 424 buildTestIamPermissionsResponse() { | 424 buildTestIamPermissionsResponse() { |
| 425 var o = new api.TestIamPermissionsResponse(); | 425 var o = new api.TestIamPermissionsResponse(); |
| 426 buildCounterTestIamPermissionsResponse++; | 426 buildCounterTestIamPermissionsResponse++; |
| 427 if (buildCounterTestIamPermissionsResponse < 3) { | 427 if (buildCounterTestIamPermissionsResponse < 3) { |
| 428 o.permissions = buildUnnamed717(); | 428 o.permissions = buildUnnamed2183(); |
| 429 } | 429 } |
| 430 buildCounterTestIamPermissionsResponse--; | 430 buildCounterTestIamPermissionsResponse--; |
| 431 return o; | 431 return o; |
| 432 } | 432 } |
| 433 | 433 |
| 434 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 434 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 435 buildCounterTestIamPermissionsResponse++; | 435 buildCounterTestIamPermissionsResponse++; |
| 436 if (buildCounterTestIamPermissionsResponse < 3) { | 436 if (buildCounterTestIamPermissionsResponse < 3) { |
| 437 checkUnnamed717(o.permissions); | 437 checkUnnamed2183(o.permissions); |
| 438 } | 438 } |
| 439 buildCounterTestIamPermissionsResponse--; | 439 buildCounterTestIamPermissionsResponse--; |
| 440 } | 440 } |
| 441 | 441 |
| 442 core.int buildCounterUndeleteProjectRequest = 0; | 442 core.int buildCounterUndeleteProjectRequest = 0; |
| 443 buildUndeleteProjectRequest() { | 443 buildUndeleteProjectRequest() { |
| 444 var o = new api.UndeleteProjectRequest(); | 444 var o = new api.UndeleteProjectRequest(); |
| 445 buildCounterUndeleteProjectRequest++; | 445 buildCounterUndeleteProjectRequest++; |
| 446 if (buildCounterUndeleteProjectRequest < 3) { | 446 if (buildCounterUndeleteProjectRequest < 3) { |
| 447 } | 447 } |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Pro
ject response) { | 1037 res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Pro
ject response) { |
| 1038 checkProject(response); | 1038 checkProject(response); |
| 1039 }))); | 1039 }))); |
| 1040 }); | 1040 }); |
| 1041 | 1041 |
| 1042 }); | 1042 }); |
| 1043 | 1043 |
| 1044 | 1044 |
| 1045 } | 1045 } |
| 1046 | 1046 |
| OLD | NEW |