| OLD | NEW |
| 1 library googleapis_beta.pubsub.v1beta2.test; | 1 library googleapis_beta.pubsub.v1beta2.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 buildUnnamed1670() { | 54 buildUnnamed2518() { |
| 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 checkUnnamed1670(core.List<core.String> o) { | 61 checkUnnamed2518(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 buildCounterAcknowledgeRequest = 0; | 67 core.int buildCounterAcknowledgeRequest = 0; |
| 68 buildAcknowledgeRequest() { | 68 buildAcknowledgeRequest() { |
| 69 var o = new api.AcknowledgeRequest(); | 69 var o = new api.AcknowledgeRequest(); |
| 70 buildCounterAcknowledgeRequest++; | 70 buildCounterAcknowledgeRequest++; |
| 71 if (buildCounterAcknowledgeRequest < 3) { | 71 if (buildCounterAcknowledgeRequest < 3) { |
| 72 o.ackIds = buildUnnamed1670(); | 72 o.ackIds = buildUnnamed2518(); |
| 73 } | 73 } |
| 74 buildCounterAcknowledgeRequest--; | 74 buildCounterAcknowledgeRequest--; |
| 75 return o; | 75 return o; |
| 76 } | 76 } |
| 77 | 77 |
| 78 checkAcknowledgeRequest(api.AcknowledgeRequest o) { | 78 checkAcknowledgeRequest(api.AcknowledgeRequest o) { |
| 79 buildCounterAcknowledgeRequest++; | 79 buildCounterAcknowledgeRequest++; |
| 80 if (buildCounterAcknowledgeRequest < 3) { | 80 if (buildCounterAcknowledgeRequest < 3) { |
| 81 checkUnnamed1670(o.ackIds); | 81 checkUnnamed2518(o.ackIds); |
| 82 } | 82 } |
| 83 buildCounterAcknowledgeRequest--; | 83 buildCounterAcknowledgeRequest--; |
| 84 } | 84 } |
| 85 | 85 |
| 86 buildUnnamed1671() { | 86 buildUnnamed2519() { |
| 87 var o = new core.List<core.String>(); | 87 var o = new core.List<core.String>(); |
| 88 o.add("foo"); | 88 o.add("foo"); |
| 89 o.add("foo"); | 89 o.add("foo"); |
| 90 return o; | 90 return o; |
| 91 } | 91 } |
| 92 | 92 |
| 93 checkUnnamed1671(core.List<core.String> o) { | 93 checkUnnamed2519(core.List<core.String> o) { |
| 94 unittest.expect(o, unittest.hasLength(2)); | 94 unittest.expect(o, unittest.hasLength(2)); |
| 95 unittest.expect(o[0], unittest.equals('foo')); | 95 unittest.expect(o[0], unittest.equals('foo')); |
| 96 unittest.expect(o[1], unittest.equals('foo')); | 96 unittest.expect(o[1], unittest.equals('foo')); |
| 97 } | 97 } |
| 98 | 98 |
| 99 core.int buildCounterBinding = 0; | 99 core.int buildCounterBinding = 0; |
| 100 buildBinding() { | 100 buildBinding() { |
| 101 var o = new api.Binding(); | 101 var o = new api.Binding(); |
| 102 buildCounterBinding++; | 102 buildCounterBinding++; |
| 103 if (buildCounterBinding < 3) { | 103 if (buildCounterBinding < 3) { |
| 104 o.members = buildUnnamed1671(); | 104 o.members = buildUnnamed2519(); |
| 105 o.role = "foo"; | 105 o.role = "foo"; |
| 106 } | 106 } |
| 107 buildCounterBinding--; | 107 buildCounterBinding--; |
| 108 return o; | 108 return o; |
| 109 } | 109 } |
| 110 | 110 |
| 111 checkBinding(api.Binding o) { | 111 checkBinding(api.Binding o) { |
| 112 buildCounterBinding++; | 112 buildCounterBinding++; |
| 113 if (buildCounterBinding < 3) { | 113 if (buildCounterBinding < 3) { |
| 114 checkUnnamed1671(o.members); | 114 checkUnnamed2519(o.members); |
| 115 unittest.expect(o.role, unittest.equals('foo')); | 115 unittest.expect(o.role, unittest.equals('foo')); |
| 116 } | 116 } |
| 117 buildCounterBinding--; | 117 buildCounterBinding--; |
| 118 } | 118 } |
| 119 | 119 |
| 120 core.int buildCounterCloudAuditOptions = 0; | 120 core.int buildCounterCloudAuditOptions = 0; |
| 121 buildCloudAuditOptions() { | 121 buildCloudAuditOptions() { |
| 122 var o = new api.CloudAuditOptions(); | 122 var o = new api.CloudAuditOptions(); |
| 123 buildCounterCloudAuditOptions++; | 123 buildCounterCloudAuditOptions++; |
| 124 if (buildCounterCloudAuditOptions < 3) { | 124 if (buildCounterCloudAuditOptions < 3) { |
| 125 } | 125 } |
| 126 buildCounterCloudAuditOptions--; | 126 buildCounterCloudAuditOptions--; |
| 127 return o; | 127 return o; |
| 128 } | 128 } |
| 129 | 129 |
| 130 checkCloudAuditOptions(api.CloudAuditOptions o) { | 130 checkCloudAuditOptions(api.CloudAuditOptions o) { |
| 131 buildCounterCloudAuditOptions++; | 131 buildCounterCloudAuditOptions++; |
| 132 if (buildCounterCloudAuditOptions < 3) { | 132 if (buildCounterCloudAuditOptions < 3) { |
| 133 } | 133 } |
| 134 buildCounterCloudAuditOptions--; | 134 buildCounterCloudAuditOptions--; |
| 135 } | 135 } |
| 136 | 136 |
| 137 buildUnnamed1672() { | 137 buildUnnamed2520() { |
| 138 var o = new core.List<core.String>(); | 138 var o = new core.List<core.String>(); |
| 139 o.add("foo"); | 139 o.add("foo"); |
| 140 o.add("foo"); | 140 o.add("foo"); |
| 141 return o; | 141 return o; |
| 142 } | 142 } |
| 143 | 143 |
| 144 checkUnnamed1672(core.List<core.String> o) { | 144 checkUnnamed2520(core.List<core.String> o) { |
| 145 unittest.expect(o, unittest.hasLength(2)); | 145 unittest.expect(o, unittest.hasLength(2)); |
| 146 unittest.expect(o[0], unittest.equals('foo')); | 146 unittest.expect(o[0], unittest.equals('foo')); |
| 147 unittest.expect(o[1], unittest.equals('foo')); | 147 unittest.expect(o[1], unittest.equals('foo')); |
| 148 } | 148 } |
| 149 | 149 |
| 150 core.int buildCounterCondition = 0; | 150 core.int buildCounterCondition = 0; |
| 151 buildCondition() { | 151 buildCondition() { |
| 152 var o = new api.Condition(); | 152 var o = new api.Condition(); |
| 153 buildCounterCondition++; | 153 buildCounterCondition++; |
| 154 if (buildCounterCondition < 3) { | 154 if (buildCounterCondition < 3) { |
| 155 o.iam = "foo"; | 155 o.iam = "foo"; |
| 156 o.op = "foo"; | 156 o.op = "foo"; |
| 157 o.svc = "foo"; | 157 o.svc = "foo"; |
| 158 o.sys = "foo"; | 158 o.sys = "foo"; |
| 159 o.value = "foo"; | 159 o.value = "foo"; |
| 160 o.values = buildUnnamed1672(); | 160 o.values = buildUnnamed2520(); |
| 161 } | 161 } |
| 162 buildCounterCondition--; | 162 buildCounterCondition--; |
| 163 return o; | 163 return o; |
| 164 } | 164 } |
| 165 | 165 |
| 166 checkCondition(api.Condition o) { | 166 checkCondition(api.Condition o) { |
| 167 buildCounterCondition++; | 167 buildCounterCondition++; |
| 168 if (buildCounterCondition < 3) { | 168 if (buildCounterCondition < 3) { |
| 169 unittest.expect(o.iam, unittest.equals('foo')); | 169 unittest.expect(o.iam, unittest.equals('foo')); |
| 170 unittest.expect(o.op, unittest.equals('foo')); | 170 unittest.expect(o.op, unittest.equals('foo')); |
| 171 unittest.expect(o.svc, unittest.equals('foo')); | 171 unittest.expect(o.svc, unittest.equals('foo')); |
| 172 unittest.expect(o.sys, unittest.equals('foo')); | 172 unittest.expect(o.sys, unittest.equals('foo')); |
| 173 unittest.expect(o.value, unittest.equals('foo')); | 173 unittest.expect(o.value, unittest.equals('foo')); |
| 174 checkUnnamed1672(o.values); | 174 checkUnnamed2520(o.values); |
| 175 } | 175 } |
| 176 buildCounterCondition--; | 176 buildCounterCondition--; |
| 177 } | 177 } |
| 178 | 178 |
| 179 core.int buildCounterCounterOptions = 0; | 179 core.int buildCounterCounterOptions = 0; |
| 180 buildCounterOptions() { | 180 buildCounterOptions() { |
| 181 var o = new api.CounterOptions(); | 181 var o = new api.CounterOptions(); |
| 182 buildCounterCounterOptions++; | 182 buildCounterCounterOptions++; |
| 183 if (buildCounterCounterOptions < 3) { | 183 if (buildCounterCounterOptions < 3) { |
| 184 o.field = "foo"; | 184 o.field = "foo"; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 return o; | 224 return o; |
| 225 } | 225 } |
| 226 | 226 |
| 227 checkEmpty(api.Empty o) { | 227 checkEmpty(api.Empty o) { |
| 228 buildCounterEmpty++; | 228 buildCounterEmpty++; |
| 229 if (buildCounterEmpty < 3) { | 229 if (buildCounterEmpty < 3) { |
| 230 } | 230 } |
| 231 buildCounterEmpty--; | 231 buildCounterEmpty--; |
| 232 } | 232 } |
| 233 | 233 |
| 234 buildUnnamed1673() { | 234 buildUnnamed2521() { |
| 235 var o = new core.List<api.Subscription>(); | 235 var o = new core.List<api.Subscription>(); |
| 236 o.add(buildSubscription()); | 236 o.add(buildSubscription()); |
| 237 o.add(buildSubscription()); | 237 o.add(buildSubscription()); |
| 238 return o; | 238 return o; |
| 239 } | 239 } |
| 240 | 240 |
| 241 checkUnnamed1673(core.List<api.Subscription> o) { | 241 checkUnnamed2521(core.List<api.Subscription> o) { |
| 242 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
| 243 checkSubscription(o[0]); | 243 checkSubscription(o[0]); |
| 244 checkSubscription(o[1]); | 244 checkSubscription(o[1]); |
| 245 } | 245 } |
| 246 | 246 |
| 247 core.int buildCounterListSubscriptionsResponse = 0; | 247 core.int buildCounterListSubscriptionsResponse = 0; |
| 248 buildListSubscriptionsResponse() { | 248 buildListSubscriptionsResponse() { |
| 249 var o = new api.ListSubscriptionsResponse(); | 249 var o = new api.ListSubscriptionsResponse(); |
| 250 buildCounterListSubscriptionsResponse++; | 250 buildCounterListSubscriptionsResponse++; |
| 251 if (buildCounterListSubscriptionsResponse < 3) { | 251 if (buildCounterListSubscriptionsResponse < 3) { |
| 252 o.nextPageToken = "foo"; | 252 o.nextPageToken = "foo"; |
| 253 o.subscriptions = buildUnnamed1673(); | 253 o.subscriptions = buildUnnamed2521(); |
| 254 } | 254 } |
| 255 buildCounterListSubscriptionsResponse--; | 255 buildCounterListSubscriptionsResponse--; |
| 256 return o; | 256 return o; |
| 257 } | 257 } |
| 258 | 258 |
| 259 checkListSubscriptionsResponse(api.ListSubscriptionsResponse o) { | 259 checkListSubscriptionsResponse(api.ListSubscriptionsResponse o) { |
| 260 buildCounterListSubscriptionsResponse++; | 260 buildCounterListSubscriptionsResponse++; |
| 261 if (buildCounterListSubscriptionsResponse < 3) { | 261 if (buildCounterListSubscriptionsResponse < 3) { |
| 262 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 262 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 263 checkUnnamed1673(o.subscriptions); | 263 checkUnnamed2521(o.subscriptions); |
| 264 } | 264 } |
| 265 buildCounterListSubscriptionsResponse--; | 265 buildCounterListSubscriptionsResponse--; |
| 266 } | 266 } |
| 267 | 267 |
| 268 buildUnnamed1674() { | 268 buildUnnamed2522() { |
| 269 var o = new core.List<core.String>(); | 269 var o = new core.List<core.String>(); |
| 270 o.add("foo"); | 270 o.add("foo"); |
| 271 o.add("foo"); | 271 o.add("foo"); |
| 272 return o; | 272 return o; |
| 273 } | 273 } |
| 274 | 274 |
| 275 checkUnnamed1674(core.List<core.String> o) { | 275 checkUnnamed2522(core.List<core.String> o) { |
| 276 unittest.expect(o, unittest.hasLength(2)); | 276 unittest.expect(o, unittest.hasLength(2)); |
| 277 unittest.expect(o[0], unittest.equals('foo')); | 277 unittest.expect(o[0], unittest.equals('foo')); |
| 278 unittest.expect(o[1], unittest.equals('foo')); | 278 unittest.expect(o[1], unittest.equals('foo')); |
| 279 } | 279 } |
| 280 | 280 |
| 281 core.int buildCounterListTopicSubscriptionsResponse = 0; | 281 core.int buildCounterListTopicSubscriptionsResponse = 0; |
| 282 buildListTopicSubscriptionsResponse() { | 282 buildListTopicSubscriptionsResponse() { |
| 283 var o = new api.ListTopicSubscriptionsResponse(); | 283 var o = new api.ListTopicSubscriptionsResponse(); |
| 284 buildCounterListTopicSubscriptionsResponse++; | 284 buildCounterListTopicSubscriptionsResponse++; |
| 285 if (buildCounterListTopicSubscriptionsResponse < 3) { | 285 if (buildCounterListTopicSubscriptionsResponse < 3) { |
| 286 o.nextPageToken = "foo"; | 286 o.nextPageToken = "foo"; |
| 287 o.subscriptions = buildUnnamed1674(); | 287 o.subscriptions = buildUnnamed2522(); |
| 288 } | 288 } |
| 289 buildCounterListTopicSubscriptionsResponse--; | 289 buildCounterListTopicSubscriptionsResponse--; |
| 290 return o; | 290 return o; |
| 291 } | 291 } |
| 292 | 292 |
| 293 checkListTopicSubscriptionsResponse(api.ListTopicSubscriptionsResponse o) { | 293 checkListTopicSubscriptionsResponse(api.ListTopicSubscriptionsResponse o) { |
| 294 buildCounterListTopicSubscriptionsResponse++; | 294 buildCounterListTopicSubscriptionsResponse++; |
| 295 if (buildCounterListTopicSubscriptionsResponse < 3) { | 295 if (buildCounterListTopicSubscriptionsResponse < 3) { |
| 296 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 296 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 297 checkUnnamed1674(o.subscriptions); | 297 checkUnnamed2522(o.subscriptions); |
| 298 } | 298 } |
| 299 buildCounterListTopicSubscriptionsResponse--; | 299 buildCounterListTopicSubscriptionsResponse--; |
| 300 } | 300 } |
| 301 | 301 |
| 302 buildUnnamed1675() { | 302 buildUnnamed2523() { |
| 303 var o = new core.List<api.Topic>(); | 303 var o = new core.List<api.Topic>(); |
| 304 o.add(buildTopic()); | 304 o.add(buildTopic()); |
| 305 o.add(buildTopic()); | 305 o.add(buildTopic()); |
| 306 return o; | 306 return o; |
| 307 } | 307 } |
| 308 | 308 |
| 309 checkUnnamed1675(core.List<api.Topic> o) { | 309 checkUnnamed2523(core.List<api.Topic> o) { |
| 310 unittest.expect(o, unittest.hasLength(2)); | 310 unittest.expect(o, unittest.hasLength(2)); |
| 311 checkTopic(o[0]); | 311 checkTopic(o[0]); |
| 312 checkTopic(o[1]); | 312 checkTopic(o[1]); |
| 313 } | 313 } |
| 314 | 314 |
| 315 core.int buildCounterListTopicsResponse = 0; | 315 core.int buildCounterListTopicsResponse = 0; |
| 316 buildListTopicsResponse() { | 316 buildListTopicsResponse() { |
| 317 var o = new api.ListTopicsResponse(); | 317 var o = new api.ListTopicsResponse(); |
| 318 buildCounterListTopicsResponse++; | 318 buildCounterListTopicsResponse++; |
| 319 if (buildCounterListTopicsResponse < 3) { | 319 if (buildCounterListTopicsResponse < 3) { |
| 320 o.nextPageToken = "foo"; | 320 o.nextPageToken = "foo"; |
| 321 o.topics = buildUnnamed1675(); | 321 o.topics = buildUnnamed2523(); |
| 322 } | 322 } |
| 323 buildCounterListTopicsResponse--; | 323 buildCounterListTopicsResponse--; |
| 324 return o; | 324 return o; |
| 325 } | 325 } |
| 326 | 326 |
| 327 checkListTopicsResponse(api.ListTopicsResponse o) { | 327 checkListTopicsResponse(api.ListTopicsResponse o) { |
| 328 buildCounterListTopicsResponse++; | 328 buildCounterListTopicsResponse++; |
| 329 if (buildCounterListTopicsResponse < 3) { | 329 if (buildCounterListTopicsResponse < 3) { |
| 330 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 330 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 331 checkUnnamed1675(o.topics); | 331 checkUnnamed2523(o.topics); |
| 332 } | 332 } |
| 333 buildCounterListTopicsResponse--; | 333 buildCounterListTopicsResponse--; |
| 334 } | 334 } |
| 335 | 335 |
| 336 core.int buildCounterLogConfig = 0; | 336 core.int buildCounterLogConfig = 0; |
| 337 buildLogConfig() { | 337 buildLogConfig() { |
| 338 var o = new api.LogConfig(); | 338 var o = new api.LogConfig(); |
| 339 buildCounterLogConfig++; | 339 buildCounterLogConfig++; |
| 340 if (buildCounterLogConfig < 3) { | 340 if (buildCounterLogConfig < 3) { |
| 341 o.cloudAudit = buildCloudAuditOptions(); | 341 o.cloudAudit = buildCloudAuditOptions(); |
| 342 o.counter = buildCounterOptions(); | 342 o.counter = buildCounterOptions(); |
| 343 o.dataAccess = buildDataAccessOptions(); | 343 o.dataAccess = buildDataAccessOptions(); |
| 344 } | 344 } |
| 345 buildCounterLogConfig--; | 345 buildCounterLogConfig--; |
| 346 return o; | 346 return o; |
| 347 } | 347 } |
| 348 | 348 |
| 349 checkLogConfig(api.LogConfig o) { | 349 checkLogConfig(api.LogConfig o) { |
| 350 buildCounterLogConfig++; | 350 buildCounterLogConfig++; |
| 351 if (buildCounterLogConfig < 3) { | 351 if (buildCounterLogConfig < 3) { |
| 352 checkCloudAuditOptions(o.cloudAudit); | 352 checkCloudAuditOptions(o.cloudAudit); |
| 353 checkCounterOptions(o.counter); | 353 checkCounterOptions(o.counter); |
| 354 checkDataAccessOptions(o.dataAccess); | 354 checkDataAccessOptions(o.dataAccess); |
| 355 } | 355 } |
| 356 buildCounterLogConfig--; | 356 buildCounterLogConfig--; |
| 357 } | 357 } |
| 358 | 358 |
| 359 buildUnnamed1676() { | 359 buildUnnamed2524() { |
| 360 var o = new core.List<core.String>(); | 360 var o = new core.List<core.String>(); |
| 361 o.add("foo"); | 361 o.add("foo"); |
| 362 o.add("foo"); | 362 o.add("foo"); |
| 363 return o; | 363 return o; |
| 364 } | 364 } |
| 365 | 365 |
| 366 checkUnnamed1676(core.List<core.String> o) { | 366 checkUnnamed2524(core.List<core.String> o) { |
| 367 unittest.expect(o, unittest.hasLength(2)); | 367 unittest.expect(o, unittest.hasLength(2)); |
| 368 unittest.expect(o[0], unittest.equals('foo')); | 368 unittest.expect(o[0], unittest.equals('foo')); |
| 369 unittest.expect(o[1], unittest.equals('foo')); | 369 unittest.expect(o[1], unittest.equals('foo')); |
| 370 } | 370 } |
| 371 | 371 |
| 372 core.int buildCounterModifyAckDeadlineRequest = 0; | 372 core.int buildCounterModifyAckDeadlineRequest = 0; |
| 373 buildModifyAckDeadlineRequest() { | 373 buildModifyAckDeadlineRequest() { |
| 374 var o = new api.ModifyAckDeadlineRequest(); | 374 var o = new api.ModifyAckDeadlineRequest(); |
| 375 buildCounterModifyAckDeadlineRequest++; | 375 buildCounterModifyAckDeadlineRequest++; |
| 376 if (buildCounterModifyAckDeadlineRequest < 3) { | 376 if (buildCounterModifyAckDeadlineRequest < 3) { |
| 377 o.ackDeadlineSeconds = 42; | 377 o.ackDeadlineSeconds = 42; |
| 378 o.ackId = "foo"; | 378 o.ackId = "foo"; |
| 379 o.ackIds = buildUnnamed1676(); | 379 o.ackIds = buildUnnamed2524(); |
| 380 } | 380 } |
| 381 buildCounterModifyAckDeadlineRequest--; | 381 buildCounterModifyAckDeadlineRequest--; |
| 382 return o; | 382 return o; |
| 383 } | 383 } |
| 384 | 384 |
| 385 checkModifyAckDeadlineRequest(api.ModifyAckDeadlineRequest o) { | 385 checkModifyAckDeadlineRequest(api.ModifyAckDeadlineRequest o) { |
| 386 buildCounterModifyAckDeadlineRequest++; | 386 buildCounterModifyAckDeadlineRequest++; |
| 387 if (buildCounterModifyAckDeadlineRequest < 3) { | 387 if (buildCounterModifyAckDeadlineRequest < 3) { |
| 388 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); | 388 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); |
| 389 unittest.expect(o.ackId, unittest.equals('foo')); | 389 unittest.expect(o.ackId, unittest.equals('foo')); |
| 390 checkUnnamed1676(o.ackIds); | 390 checkUnnamed2524(o.ackIds); |
| 391 } | 391 } |
| 392 buildCounterModifyAckDeadlineRequest--; | 392 buildCounterModifyAckDeadlineRequest--; |
| 393 } | 393 } |
| 394 | 394 |
| 395 core.int buildCounterModifyPushConfigRequest = 0; | 395 core.int buildCounterModifyPushConfigRequest = 0; |
| 396 buildModifyPushConfigRequest() { | 396 buildModifyPushConfigRequest() { |
| 397 var o = new api.ModifyPushConfigRequest(); | 397 var o = new api.ModifyPushConfigRequest(); |
| 398 buildCounterModifyPushConfigRequest++; | 398 buildCounterModifyPushConfigRequest++; |
| 399 if (buildCounterModifyPushConfigRequest < 3) { | 399 if (buildCounterModifyPushConfigRequest < 3) { |
| 400 o.pushConfig = buildPushConfig(); | 400 o.pushConfig = buildPushConfig(); |
| 401 } | 401 } |
| 402 buildCounterModifyPushConfigRequest--; | 402 buildCounterModifyPushConfigRequest--; |
| 403 return o; | 403 return o; |
| 404 } | 404 } |
| 405 | 405 |
| 406 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { | 406 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { |
| 407 buildCounterModifyPushConfigRequest++; | 407 buildCounterModifyPushConfigRequest++; |
| 408 if (buildCounterModifyPushConfigRequest < 3) { | 408 if (buildCounterModifyPushConfigRequest < 3) { |
| 409 checkPushConfig(o.pushConfig); | 409 checkPushConfig(o.pushConfig); |
| 410 } | 410 } |
| 411 buildCounterModifyPushConfigRequest--; | 411 buildCounterModifyPushConfigRequest--; |
| 412 } | 412 } |
| 413 | 413 |
| 414 buildUnnamed1677() { | 414 buildUnnamed2525() { |
| 415 var o = new core.List<api.Binding>(); | 415 var o = new core.List<api.Binding>(); |
| 416 o.add(buildBinding()); | 416 o.add(buildBinding()); |
| 417 o.add(buildBinding()); | 417 o.add(buildBinding()); |
| 418 return o; | 418 return o; |
| 419 } | 419 } |
| 420 | 420 |
| 421 checkUnnamed1677(core.List<api.Binding> o) { | 421 checkUnnamed2525(core.List<api.Binding> o) { |
| 422 unittest.expect(o, unittest.hasLength(2)); | 422 unittest.expect(o, unittest.hasLength(2)); |
| 423 checkBinding(o[0]); | 423 checkBinding(o[0]); |
| 424 checkBinding(o[1]); | 424 checkBinding(o[1]); |
| 425 } | 425 } |
| 426 | 426 |
| 427 buildUnnamed1678() { | 427 buildUnnamed2526() { |
| 428 var o = new core.List<api.Rule>(); | 428 var o = new core.List<api.Rule>(); |
| 429 o.add(buildRule()); | 429 o.add(buildRule()); |
| 430 o.add(buildRule()); | 430 o.add(buildRule()); |
| 431 return o; | 431 return o; |
| 432 } | 432 } |
| 433 | 433 |
| 434 checkUnnamed1678(core.List<api.Rule> o) { | 434 checkUnnamed2526(core.List<api.Rule> o) { |
| 435 unittest.expect(o, unittest.hasLength(2)); | 435 unittest.expect(o, unittest.hasLength(2)); |
| 436 checkRule(o[0]); | 436 checkRule(o[0]); |
| 437 checkRule(o[1]); | 437 checkRule(o[1]); |
| 438 } | 438 } |
| 439 | 439 |
| 440 core.int buildCounterPolicy = 0; | 440 core.int buildCounterPolicy = 0; |
| 441 buildPolicy() { | 441 buildPolicy() { |
| 442 var o = new api.Policy(); | 442 var o = new api.Policy(); |
| 443 buildCounterPolicy++; | 443 buildCounterPolicy++; |
| 444 if (buildCounterPolicy < 3) { | 444 if (buildCounterPolicy < 3) { |
| 445 o.bindings = buildUnnamed1677(); | 445 o.bindings = buildUnnamed2525(); |
| 446 o.etag = "foo"; | 446 o.etag = "foo"; |
| 447 o.rules = buildUnnamed1678(); | 447 o.rules = buildUnnamed2526(); |
| 448 o.version = 42; | 448 o.version = 42; |
| 449 } | 449 } |
| 450 buildCounterPolicy--; | 450 buildCounterPolicy--; |
| 451 return o; | 451 return o; |
| 452 } | 452 } |
| 453 | 453 |
| 454 checkPolicy(api.Policy o) { | 454 checkPolicy(api.Policy o) { |
| 455 buildCounterPolicy++; | 455 buildCounterPolicy++; |
| 456 if (buildCounterPolicy < 3) { | 456 if (buildCounterPolicy < 3) { |
| 457 checkUnnamed1677(o.bindings); | 457 checkUnnamed2525(o.bindings); |
| 458 unittest.expect(o.etag, unittest.equals('foo')); | 458 unittest.expect(o.etag, unittest.equals('foo')); |
| 459 checkUnnamed1678(o.rules); | 459 checkUnnamed2526(o.rules); |
| 460 unittest.expect(o.version, unittest.equals(42)); | 460 unittest.expect(o.version, unittest.equals(42)); |
| 461 } | 461 } |
| 462 buildCounterPolicy--; | 462 buildCounterPolicy--; |
| 463 } | 463 } |
| 464 | 464 |
| 465 buildUnnamed1679() { | 465 buildUnnamed2527() { |
| 466 var o = new core.List<api.PubsubMessage>(); | 466 var o = new core.List<api.PubsubMessage>(); |
| 467 o.add(buildPubsubMessage()); | 467 o.add(buildPubsubMessage()); |
| 468 o.add(buildPubsubMessage()); | 468 o.add(buildPubsubMessage()); |
| 469 return o; | 469 return o; |
| 470 } | 470 } |
| 471 | 471 |
| 472 checkUnnamed1679(core.List<api.PubsubMessage> o) { | 472 checkUnnamed2527(core.List<api.PubsubMessage> o) { |
| 473 unittest.expect(o, unittest.hasLength(2)); | 473 unittest.expect(o, unittest.hasLength(2)); |
| 474 checkPubsubMessage(o[0]); | 474 checkPubsubMessage(o[0]); |
| 475 checkPubsubMessage(o[1]); | 475 checkPubsubMessage(o[1]); |
| 476 } | 476 } |
| 477 | 477 |
| 478 core.int buildCounterPublishRequest = 0; | 478 core.int buildCounterPublishRequest = 0; |
| 479 buildPublishRequest() { | 479 buildPublishRequest() { |
| 480 var o = new api.PublishRequest(); | 480 var o = new api.PublishRequest(); |
| 481 buildCounterPublishRequest++; | 481 buildCounterPublishRequest++; |
| 482 if (buildCounterPublishRequest < 3) { | 482 if (buildCounterPublishRequest < 3) { |
| 483 o.messages = buildUnnamed1679(); | 483 o.messages = buildUnnamed2527(); |
| 484 } | 484 } |
| 485 buildCounterPublishRequest--; | 485 buildCounterPublishRequest--; |
| 486 return o; | 486 return o; |
| 487 } | 487 } |
| 488 | 488 |
| 489 checkPublishRequest(api.PublishRequest o) { | 489 checkPublishRequest(api.PublishRequest o) { |
| 490 buildCounterPublishRequest++; | 490 buildCounterPublishRequest++; |
| 491 if (buildCounterPublishRequest < 3) { | 491 if (buildCounterPublishRequest < 3) { |
| 492 checkUnnamed1679(o.messages); | 492 checkUnnamed2527(o.messages); |
| 493 } | 493 } |
| 494 buildCounterPublishRequest--; | 494 buildCounterPublishRequest--; |
| 495 } | 495 } |
| 496 | 496 |
| 497 buildUnnamed1680() { | 497 buildUnnamed2528() { |
| 498 var o = new core.List<core.String>(); | 498 var o = new core.List<core.String>(); |
| 499 o.add("foo"); | 499 o.add("foo"); |
| 500 o.add("foo"); | 500 o.add("foo"); |
| 501 return o; | 501 return o; |
| 502 } | 502 } |
| 503 | 503 |
| 504 checkUnnamed1680(core.List<core.String> o) { | 504 checkUnnamed2528(core.List<core.String> o) { |
| 505 unittest.expect(o, unittest.hasLength(2)); | 505 unittest.expect(o, unittest.hasLength(2)); |
| 506 unittest.expect(o[0], unittest.equals('foo')); | 506 unittest.expect(o[0], unittest.equals('foo')); |
| 507 unittest.expect(o[1], unittest.equals('foo')); | 507 unittest.expect(o[1], unittest.equals('foo')); |
| 508 } | 508 } |
| 509 | 509 |
| 510 core.int buildCounterPublishResponse = 0; | 510 core.int buildCounterPublishResponse = 0; |
| 511 buildPublishResponse() { | 511 buildPublishResponse() { |
| 512 var o = new api.PublishResponse(); | 512 var o = new api.PublishResponse(); |
| 513 buildCounterPublishResponse++; | 513 buildCounterPublishResponse++; |
| 514 if (buildCounterPublishResponse < 3) { | 514 if (buildCounterPublishResponse < 3) { |
| 515 o.messageIds = buildUnnamed1680(); | 515 o.messageIds = buildUnnamed2528(); |
| 516 } | 516 } |
| 517 buildCounterPublishResponse--; | 517 buildCounterPublishResponse--; |
| 518 return o; | 518 return o; |
| 519 } | 519 } |
| 520 | 520 |
| 521 checkPublishResponse(api.PublishResponse o) { | 521 checkPublishResponse(api.PublishResponse o) { |
| 522 buildCounterPublishResponse++; | 522 buildCounterPublishResponse++; |
| 523 if (buildCounterPublishResponse < 3) { | 523 if (buildCounterPublishResponse < 3) { |
| 524 checkUnnamed1680(o.messageIds); | 524 checkUnnamed2528(o.messageIds); |
| 525 } | 525 } |
| 526 buildCounterPublishResponse--; | 526 buildCounterPublishResponse--; |
| 527 } | 527 } |
| 528 | 528 |
| 529 buildUnnamed1681() { | 529 buildUnnamed2529() { |
| 530 var o = new core.Map<core.String, core.String>(); | 530 var o = new core.Map<core.String, core.String>(); |
| 531 o["x"] = "foo"; | 531 o["x"] = "foo"; |
| 532 o["y"] = "foo"; | 532 o["y"] = "foo"; |
| 533 return o; | 533 return o; |
| 534 } | 534 } |
| 535 | 535 |
| 536 checkUnnamed1681(core.Map<core.String, core.String> o) { | 536 checkUnnamed2529(core.Map<core.String, core.String> o) { |
| 537 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
| 538 unittest.expect(o["x"], unittest.equals('foo')); | 538 unittest.expect(o["x"], unittest.equals('foo')); |
| 539 unittest.expect(o["y"], unittest.equals('foo')); | 539 unittest.expect(o["y"], unittest.equals('foo')); |
| 540 } | 540 } |
| 541 | 541 |
| 542 core.int buildCounterPubsubMessage = 0; | 542 core.int buildCounterPubsubMessage = 0; |
| 543 buildPubsubMessage() { | 543 buildPubsubMessage() { |
| 544 var o = new api.PubsubMessage(); | 544 var o = new api.PubsubMessage(); |
| 545 buildCounterPubsubMessage++; | 545 buildCounterPubsubMessage++; |
| 546 if (buildCounterPubsubMessage < 3) { | 546 if (buildCounterPubsubMessage < 3) { |
| 547 o.attributes = buildUnnamed1681(); | 547 o.attributes = buildUnnamed2529(); |
| 548 o.data = "foo"; | 548 o.data = "foo"; |
| 549 o.messageId = "foo"; | 549 o.messageId = "foo"; |
| 550 } | 550 } |
| 551 buildCounterPubsubMessage--; | 551 buildCounterPubsubMessage--; |
| 552 return o; | 552 return o; |
| 553 } | 553 } |
| 554 | 554 |
| 555 checkPubsubMessage(api.PubsubMessage o) { | 555 checkPubsubMessage(api.PubsubMessage o) { |
| 556 buildCounterPubsubMessage++; | 556 buildCounterPubsubMessage++; |
| 557 if (buildCounterPubsubMessage < 3) { | 557 if (buildCounterPubsubMessage < 3) { |
| 558 checkUnnamed1681(o.attributes); | 558 checkUnnamed2529(o.attributes); |
| 559 unittest.expect(o.data, unittest.equals('foo')); | 559 unittest.expect(o.data, unittest.equals('foo')); |
| 560 unittest.expect(o.messageId, unittest.equals('foo')); | 560 unittest.expect(o.messageId, unittest.equals('foo')); |
| 561 } | 561 } |
| 562 buildCounterPubsubMessage--; | 562 buildCounterPubsubMessage--; |
| 563 } | 563 } |
| 564 | 564 |
| 565 core.int buildCounterPullRequest = 0; | 565 core.int buildCounterPullRequest = 0; |
| 566 buildPullRequest() { | 566 buildPullRequest() { |
| 567 var o = new api.PullRequest(); | 567 var o = new api.PullRequest(); |
| 568 buildCounterPullRequest++; | 568 buildCounterPullRequest++; |
| 569 if (buildCounterPullRequest < 3) { | 569 if (buildCounterPullRequest < 3) { |
| 570 o.maxMessages = 42; | 570 o.maxMessages = 42; |
| 571 o.returnImmediately = true; | 571 o.returnImmediately = true; |
| 572 } | 572 } |
| 573 buildCounterPullRequest--; | 573 buildCounterPullRequest--; |
| 574 return o; | 574 return o; |
| 575 } | 575 } |
| 576 | 576 |
| 577 checkPullRequest(api.PullRequest o) { | 577 checkPullRequest(api.PullRequest o) { |
| 578 buildCounterPullRequest++; | 578 buildCounterPullRequest++; |
| 579 if (buildCounterPullRequest < 3) { | 579 if (buildCounterPullRequest < 3) { |
| 580 unittest.expect(o.maxMessages, unittest.equals(42)); | 580 unittest.expect(o.maxMessages, unittest.equals(42)); |
| 581 unittest.expect(o.returnImmediately, unittest.isTrue); | 581 unittest.expect(o.returnImmediately, unittest.isTrue); |
| 582 } | 582 } |
| 583 buildCounterPullRequest--; | 583 buildCounterPullRequest--; |
| 584 } | 584 } |
| 585 | 585 |
| 586 buildUnnamed1682() { | 586 buildUnnamed2530() { |
| 587 var o = new core.List<api.ReceivedMessage>(); | 587 var o = new core.List<api.ReceivedMessage>(); |
| 588 o.add(buildReceivedMessage()); | 588 o.add(buildReceivedMessage()); |
| 589 o.add(buildReceivedMessage()); | 589 o.add(buildReceivedMessage()); |
| 590 return o; | 590 return o; |
| 591 } | 591 } |
| 592 | 592 |
| 593 checkUnnamed1682(core.List<api.ReceivedMessage> o) { | 593 checkUnnamed2530(core.List<api.ReceivedMessage> o) { |
| 594 unittest.expect(o, unittest.hasLength(2)); | 594 unittest.expect(o, unittest.hasLength(2)); |
| 595 checkReceivedMessage(o[0]); | 595 checkReceivedMessage(o[0]); |
| 596 checkReceivedMessage(o[1]); | 596 checkReceivedMessage(o[1]); |
| 597 } | 597 } |
| 598 | 598 |
| 599 core.int buildCounterPullResponse = 0; | 599 core.int buildCounterPullResponse = 0; |
| 600 buildPullResponse() { | 600 buildPullResponse() { |
| 601 var o = new api.PullResponse(); | 601 var o = new api.PullResponse(); |
| 602 buildCounterPullResponse++; | 602 buildCounterPullResponse++; |
| 603 if (buildCounterPullResponse < 3) { | 603 if (buildCounterPullResponse < 3) { |
| 604 o.receivedMessages = buildUnnamed1682(); | 604 o.receivedMessages = buildUnnamed2530(); |
| 605 } | 605 } |
| 606 buildCounterPullResponse--; | 606 buildCounterPullResponse--; |
| 607 return o; | 607 return o; |
| 608 } | 608 } |
| 609 | 609 |
| 610 checkPullResponse(api.PullResponse o) { | 610 checkPullResponse(api.PullResponse o) { |
| 611 buildCounterPullResponse++; | 611 buildCounterPullResponse++; |
| 612 if (buildCounterPullResponse < 3) { | 612 if (buildCounterPullResponse < 3) { |
| 613 checkUnnamed1682(o.receivedMessages); | 613 checkUnnamed2530(o.receivedMessages); |
| 614 } | 614 } |
| 615 buildCounterPullResponse--; | 615 buildCounterPullResponse--; |
| 616 } | 616 } |
| 617 | 617 |
| 618 buildUnnamed1683() { | 618 buildUnnamed2531() { |
| 619 var o = new core.Map<core.String, core.String>(); | 619 var o = new core.Map<core.String, core.String>(); |
| 620 o["x"] = "foo"; | 620 o["x"] = "foo"; |
| 621 o["y"] = "foo"; | 621 o["y"] = "foo"; |
| 622 return o; | 622 return o; |
| 623 } | 623 } |
| 624 | 624 |
| 625 checkUnnamed1683(core.Map<core.String, core.String> o) { | 625 checkUnnamed2531(core.Map<core.String, core.String> o) { |
| 626 unittest.expect(o, unittest.hasLength(2)); | 626 unittest.expect(o, unittest.hasLength(2)); |
| 627 unittest.expect(o["x"], unittest.equals('foo')); | 627 unittest.expect(o["x"], unittest.equals('foo')); |
| 628 unittest.expect(o["y"], unittest.equals('foo')); | 628 unittest.expect(o["y"], unittest.equals('foo')); |
| 629 } | 629 } |
| 630 | 630 |
| 631 core.int buildCounterPushConfig = 0; | 631 core.int buildCounterPushConfig = 0; |
| 632 buildPushConfig() { | 632 buildPushConfig() { |
| 633 var o = new api.PushConfig(); | 633 var o = new api.PushConfig(); |
| 634 buildCounterPushConfig++; | 634 buildCounterPushConfig++; |
| 635 if (buildCounterPushConfig < 3) { | 635 if (buildCounterPushConfig < 3) { |
| 636 o.attributes = buildUnnamed1683(); | 636 o.attributes = buildUnnamed2531(); |
| 637 o.pushEndpoint = "foo"; | 637 o.pushEndpoint = "foo"; |
| 638 } | 638 } |
| 639 buildCounterPushConfig--; | 639 buildCounterPushConfig--; |
| 640 return o; | 640 return o; |
| 641 } | 641 } |
| 642 | 642 |
| 643 checkPushConfig(api.PushConfig o) { | 643 checkPushConfig(api.PushConfig o) { |
| 644 buildCounterPushConfig++; | 644 buildCounterPushConfig++; |
| 645 if (buildCounterPushConfig < 3) { | 645 if (buildCounterPushConfig < 3) { |
| 646 checkUnnamed1683(o.attributes); | 646 checkUnnamed2531(o.attributes); |
| 647 unittest.expect(o.pushEndpoint, unittest.equals('foo')); | 647 unittest.expect(o.pushEndpoint, unittest.equals('foo')); |
| 648 } | 648 } |
| 649 buildCounterPushConfig--; | 649 buildCounterPushConfig--; |
| 650 } | 650 } |
| 651 | 651 |
| 652 core.int buildCounterReceivedMessage = 0; | 652 core.int buildCounterReceivedMessage = 0; |
| 653 buildReceivedMessage() { | 653 buildReceivedMessage() { |
| 654 var o = new api.ReceivedMessage(); | 654 var o = new api.ReceivedMessage(); |
| 655 buildCounterReceivedMessage++; | 655 buildCounterReceivedMessage++; |
| 656 if (buildCounterReceivedMessage < 3) { | 656 if (buildCounterReceivedMessage < 3) { |
| 657 o.ackId = "foo"; | 657 o.ackId = "foo"; |
| 658 o.message = buildPubsubMessage(); | 658 o.message = buildPubsubMessage(); |
| 659 } | 659 } |
| 660 buildCounterReceivedMessage--; | 660 buildCounterReceivedMessage--; |
| 661 return o; | 661 return o; |
| 662 } | 662 } |
| 663 | 663 |
| 664 checkReceivedMessage(api.ReceivedMessage o) { | 664 checkReceivedMessage(api.ReceivedMessage o) { |
| 665 buildCounterReceivedMessage++; | 665 buildCounterReceivedMessage++; |
| 666 if (buildCounterReceivedMessage < 3) { | 666 if (buildCounterReceivedMessage < 3) { |
| 667 unittest.expect(o.ackId, unittest.equals('foo')); | 667 unittest.expect(o.ackId, unittest.equals('foo')); |
| 668 checkPubsubMessage(o.message); | 668 checkPubsubMessage(o.message); |
| 669 } | 669 } |
| 670 buildCounterReceivedMessage--; | 670 buildCounterReceivedMessage--; |
| 671 } | 671 } |
| 672 | 672 |
| 673 buildUnnamed1684() { | 673 buildUnnamed2532() { |
| 674 var o = new core.List<api.Condition>(); | 674 var o = new core.List<api.Condition>(); |
| 675 o.add(buildCondition()); | 675 o.add(buildCondition()); |
| 676 o.add(buildCondition()); | 676 o.add(buildCondition()); |
| 677 return o; | 677 return o; |
| 678 } | 678 } |
| 679 | 679 |
| 680 checkUnnamed1684(core.List<api.Condition> o) { | 680 checkUnnamed2532(core.List<api.Condition> o) { |
| 681 unittest.expect(o, unittest.hasLength(2)); | 681 unittest.expect(o, unittest.hasLength(2)); |
| 682 checkCondition(o[0]); | 682 checkCondition(o[0]); |
| 683 checkCondition(o[1]); | 683 checkCondition(o[1]); |
| 684 } | 684 } |
| 685 | 685 |
| 686 buildUnnamed1685() { | 686 buildUnnamed2533() { |
| 687 var o = new core.List<core.String>(); | 687 var o = new core.List<core.String>(); |
| 688 o.add("foo"); | 688 o.add("foo"); |
| 689 o.add("foo"); | 689 o.add("foo"); |
| 690 return o; | 690 return o; |
| 691 } | 691 } |
| 692 | 692 |
| 693 checkUnnamed1685(core.List<core.String> o) { | 693 checkUnnamed2533(core.List<core.String> o) { |
| 694 unittest.expect(o, unittest.hasLength(2)); | 694 unittest.expect(o, unittest.hasLength(2)); |
| 695 unittest.expect(o[0], unittest.equals('foo')); | 695 unittest.expect(o[0], unittest.equals('foo')); |
| 696 unittest.expect(o[1], unittest.equals('foo')); | 696 unittest.expect(o[1], unittest.equals('foo')); |
| 697 } | 697 } |
| 698 | 698 |
| 699 buildUnnamed1686() { | 699 buildUnnamed2534() { |
| 700 var o = new core.List<api.LogConfig>(); | 700 var o = new core.List<api.LogConfig>(); |
| 701 o.add(buildLogConfig()); | 701 o.add(buildLogConfig()); |
| 702 o.add(buildLogConfig()); | 702 o.add(buildLogConfig()); |
| 703 return o; | 703 return o; |
| 704 } | 704 } |
| 705 | 705 |
| 706 checkUnnamed1686(core.List<api.LogConfig> o) { | 706 checkUnnamed2534(core.List<api.LogConfig> o) { |
| 707 unittest.expect(o, unittest.hasLength(2)); | 707 unittest.expect(o, unittest.hasLength(2)); |
| 708 checkLogConfig(o[0]); | 708 checkLogConfig(o[0]); |
| 709 checkLogConfig(o[1]); | 709 checkLogConfig(o[1]); |
| 710 } | 710 } |
| 711 | 711 |
| 712 buildUnnamed1687() { | 712 buildUnnamed2535() { |
| 713 var o = new core.List<core.String>(); | 713 var o = new core.List<core.String>(); |
| 714 o.add("foo"); | 714 o.add("foo"); |
| 715 o.add("foo"); | 715 o.add("foo"); |
| 716 return o; | 716 return o; |
| 717 } | 717 } |
| 718 | 718 |
| 719 checkUnnamed1687(core.List<core.String> o) { | 719 checkUnnamed2535(core.List<core.String> o) { |
| 720 unittest.expect(o, unittest.hasLength(2)); | 720 unittest.expect(o, unittest.hasLength(2)); |
| 721 unittest.expect(o[0], unittest.equals('foo')); | 721 unittest.expect(o[0], unittest.equals('foo')); |
| 722 unittest.expect(o[1], unittest.equals('foo')); | 722 unittest.expect(o[1], unittest.equals('foo')); |
| 723 } | 723 } |
| 724 | 724 |
| 725 buildUnnamed1688() { | 725 buildUnnamed2536() { |
| 726 var o = new core.List<core.String>(); | 726 var o = new core.List<core.String>(); |
| 727 o.add("foo"); | 727 o.add("foo"); |
| 728 o.add("foo"); | 728 o.add("foo"); |
| 729 return o; | 729 return o; |
| 730 } | 730 } |
| 731 | 731 |
| 732 checkUnnamed1688(core.List<core.String> o) { | 732 checkUnnamed2536(core.List<core.String> o) { |
| 733 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
| 734 unittest.expect(o[0], unittest.equals('foo')); | 734 unittest.expect(o[0], unittest.equals('foo')); |
| 735 unittest.expect(o[1], unittest.equals('foo')); | 735 unittest.expect(o[1], unittest.equals('foo')); |
| 736 } | 736 } |
| 737 | 737 |
| 738 core.int buildCounterRule = 0; | 738 core.int buildCounterRule = 0; |
| 739 buildRule() { | 739 buildRule() { |
| 740 var o = new api.Rule(); | 740 var o = new api.Rule(); |
| 741 buildCounterRule++; | 741 buildCounterRule++; |
| 742 if (buildCounterRule < 3) { | 742 if (buildCounterRule < 3) { |
| 743 o.action = "foo"; | 743 o.action = "foo"; |
| 744 o.conditions = buildUnnamed1684(); | 744 o.conditions = buildUnnamed2532(); |
| 745 o.description = "foo"; | 745 o.description = "foo"; |
| 746 o.in_ = buildUnnamed1685(); | 746 o.in_ = buildUnnamed2533(); |
| 747 o.logConfig = buildUnnamed1686(); | 747 o.logConfig = buildUnnamed2534(); |
| 748 o.notIn = buildUnnamed1687(); | 748 o.notIn = buildUnnamed2535(); |
| 749 o.permissions = buildUnnamed1688(); | 749 o.permissions = buildUnnamed2536(); |
| 750 } | 750 } |
| 751 buildCounterRule--; | 751 buildCounterRule--; |
| 752 return o; | 752 return o; |
| 753 } | 753 } |
| 754 | 754 |
| 755 checkRule(api.Rule o) { | 755 checkRule(api.Rule o) { |
| 756 buildCounterRule++; | 756 buildCounterRule++; |
| 757 if (buildCounterRule < 3) { | 757 if (buildCounterRule < 3) { |
| 758 unittest.expect(o.action, unittest.equals('foo')); | 758 unittest.expect(o.action, unittest.equals('foo')); |
| 759 checkUnnamed1684(o.conditions); | 759 checkUnnamed2532(o.conditions); |
| 760 unittest.expect(o.description, unittest.equals('foo')); | 760 unittest.expect(o.description, unittest.equals('foo')); |
| 761 checkUnnamed1685(o.in_); | 761 checkUnnamed2533(o.in_); |
| 762 checkUnnamed1686(o.logConfig); | 762 checkUnnamed2534(o.logConfig); |
| 763 checkUnnamed1687(o.notIn); | 763 checkUnnamed2535(o.notIn); |
| 764 checkUnnamed1688(o.permissions); | 764 checkUnnamed2536(o.permissions); |
| 765 } | 765 } |
| 766 buildCounterRule--; | 766 buildCounterRule--; |
| 767 } | 767 } |
| 768 | 768 |
| 769 core.int buildCounterSetIamPolicyRequest = 0; | 769 core.int buildCounterSetIamPolicyRequest = 0; |
| 770 buildSetIamPolicyRequest() { | 770 buildSetIamPolicyRequest() { |
| 771 var o = new api.SetIamPolicyRequest(); | 771 var o = new api.SetIamPolicyRequest(); |
| 772 buildCounterSetIamPolicyRequest++; | 772 buildCounterSetIamPolicyRequest++; |
| 773 if (buildCounterSetIamPolicyRequest < 3) { | 773 if (buildCounterSetIamPolicyRequest < 3) { |
| 774 o.policy = buildPolicy(); | 774 o.policy = buildPolicy(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 803 buildCounterSubscription++; | 803 buildCounterSubscription++; |
| 804 if (buildCounterSubscription < 3) { | 804 if (buildCounterSubscription < 3) { |
| 805 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); | 805 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); |
| 806 unittest.expect(o.name, unittest.equals('foo')); | 806 unittest.expect(o.name, unittest.equals('foo')); |
| 807 checkPushConfig(o.pushConfig); | 807 checkPushConfig(o.pushConfig); |
| 808 unittest.expect(o.topic, unittest.equals('foo')); | 808 unittest.expect(o.topic, unittest.equals('foo')); |
| 809 } | 809 } |
| 810 buildCounterSubscription--; | 810 buildCounterSubscription--; |
| 811 } | 811 } |
| 812 | 812 |
| 813 buildUnnamed1689() { | 813 buildUnnamed2537() { |
| 814 var o = new core.List<core.String>(); | 814 var o = new core.List<core.String>(); |
| 815 o.add("foo"); | 815 o.add("foo"); |
| 816 o.add("foo"); | 816 o.add("foo"); |
| 817 return o; | 817 return o; |
| 818 } | 818 } |
| 819 | 819 |
| 820 checkUnnamed1689(core.List<core.String> o) { | 820 checkUnnamed2537(core.List<core.String> o) { |
| 821 unittest.expect(o, unittest.hasLength(2)); | 821 unittest.expect(o, unittest.hasLength(2)); |
| 822 unittest.expect(o[0], unittest.equals('foo')); | 822 unittest.expect(o[0], unittest.equals('foo')); |
| 823 unittest.expect(o[1], unittest.equals('foo')); | 823 unittest.expect(o[1], unittest.equals('foo')); |
| 824 } | 824 } |
| 825 | 825 |
| 826 core.int buildCounterTestIamPermissionsRequest = 0; | 826 core.int buildCounterTestIamPermissionsRequest = 0; |
| 827 buildTestIamPermissionsRequest() { | 827 buildTestIamPermissionsRequest() { |
| 828 var o = new api.TestIamPermissionsRequest(); | 828 var o = new api.TestIamPermissionsRequest(); |
| 829 buildCounterTestIamPermissionsRequest++; | 829 buildCounterTestIamPermissionsRequest++; |
| 830 if (buildCounterTestIamPermissionsRequest < 3) { | 830 if (buildCounterTestIamPermissionsRequest < 3) { |
| 831 o.permissions = buildUnnamed1689(); | 831 o.permissions = buildUnnamed2537(); |
| 832 } | 832 } |
| 833 buildCounterTestIamPermissionsRequest--; | 833 buildCounterTestIamPermissionsRequest--; |
| 834 return o; | 834 return o; |
| 835 } | 835 } |
| 836 | 836 |
| 837 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 837 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 838 buildCounterTestIamPermissionsRequest++; | 838 buildCounterTestIamPermissionsRequest++; |
| 839 if (buildCounterTestIamPermissionsRequest < 3) { | 839 if (buildCounterTestIamPermissionsRequest < 3) { |
| 840 checkUnnamed1689(o.permissions); | 840 checkUnnamed2537(o.permissions); |
| 841 } | 841 } |
| 842 buildCounterTestIamPermissionsRequest--; | 842 buildCounterTestIamPermissionsRequest--; |
| 843 } | 843 } |
| 844 | 844 |
| 845 buildUnnamed1690() { | 845 buildUnnamed2538() { |
| 846 var o = new core.List<core.String>(); | 846 var o = new core.List<core.String>(); |
| 847 o.add("foo"); | 847 o.add("foo"); |
| 848 o.add("foo"); | 848 o.add("foo"); |
| 849 return o; | 849 return o; |
| 850 } | 850 } |
| 851 | 851 |
| 852 checkUnnamed1690(core.List<core.String> o) { | 852 checkUnnamed2538(core.List<core.String> o) { |
| 853 unittest.expect(o, unittest.hasLength(2)); | 853 unittest.expect(o, unittest.hasLength(2)); |
| 854 unittest.expect(o[0], unittest.equals('foo')); | 854 unittest.expect(o[0], unittest.equals('foo')); |
| 855 unittest.expect(o[1], unittest.equals('foo')); | 855 unittest.expect(o[1], unittest.equals('foo')); |
| 856 } | 856 } |
| 857 | 857 |
| 858 core.int buildCounterTestIamPermissionsResponse = 0; | 858 core.int buildCounterTestIamPermissionsResponse = 0; |
| 859 buildTestIamPermissionsResponse() { | 859 buildTestIamPermissionsResponse() { |
| 860 var o = new api.TestIamPermissionsResponse(); | 860 var o = new api.TestIamPermissionsResponse(); |
| 861 buildCounterTestIamPermissionsResponse++; | 861 buildCounterTestIamPermissionsResponse++; |
| 862 if (buildCounterTestIamPermissionsResponse < 3) { | 862 if (buildCounterTestIamPermissionsResponse < 3) { |
| 863 o.permissions = buildUnnamed1690(); | 863 o.permissions = buildUnnamed2538(); |
| 864 } | 864 } |
| 865 buildCounterTestIamPermissionsResponse--; | 865 buildCounterTestIamPermissionsResponse--; |
| 866 return o; | 866 return o; |
| 867 } | 867 } |
| 868 | 868 |
| 869 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 869 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 870 buildCounterTestIamPermissionsResponse++; | 870 buildCounterTestIamPermissionsResponse++; |
| 871 if (buildCounterTestIamPermissionsResponse < 3) { | 871 if (buildCounterTestIamPermissionsResponse < 3) { |
| 872 checkUnnamed1690(o.permissions); | 872 checkUnnamed2538(o.permissions); |
| 873 } | 873 } |
| 874 buildCounterTestIamPermissionsResponse--; | 874 buildCounterTestIamPermissionsResponse--; |
| 875 } | 875 } |
| 876 | 876 |
| 877 core.int buildCounterTopic = 0; | 877 core.int buildCounterTopic = 0; |
| 878 buildTopic() { | 878 buildTopic() { |
| 879 var o = new api.Topic(); | 879 var o = new api.Topic(); |
| 880 buildCounterTopic++; | 880 buildCounterTopic++; |
| 881 if (buildCounterTopic < 3) { | 881 if (buildCounterTopic < 3) { |
| 882 o.name = "foo"; | 882 o.name = "foo"; |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2101 res.list(arg_topic, pageSize: arg_pageSize, pageToken: arg_pageToken).then
(unittest.expectAsync(((api.ListTopicSubscriptionsResponse response) { | 2101 res.list(arg_topic, pageSize: arg_pageSize, pageToken: arg_pageToken).then
(unittest.expectAsync(((api.ListTopicSubscriptionsResponse response) { |
| 2102 checkListTopicSubscriptionsResponse(response); | 2102 checkListTopicSubscriptionsResponse(response); |
| 2103 }))); | 2103 }))); |
| 2104 }); | 2104 }); |
| 2105 | 2105 |
| 2106 }); | 2106 }); |
| 2107 | 2107 |
| 2108 | 2108 |
| 2109 } | 2109 } |
| 2110 | 2110 |
| OLD | NEW |