| OLD | NEW |
| 1 library googleapis.pubsub.v1.test; | 1 library googleapis.pubsub.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 buildUnnamed2039() { | 54 buildUnnamed1313() { |
| 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 checkUnnamed2039(core.List<core.String> o) { | 61 checkUnnamed1313(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 = buildUnnamed2039(); | 72 o.ackIds = buildUnnamed1313(); |
| 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 checkUnnamed2039(o.ackIds); | 81 checkUnnamed1313(o.ackIds); |
| 82 } | 82 } |
| 83 buildCounterAcknowledgeRequest--; | 83 buildCounterAcknowledgeRequest--; |
| 84 } | 84 } |
| 85 | 85 |
| 86 buildUnnamed2040() { | 86 buildUnnamed1314() { |
| 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 checkUnnamed2040(core.List<core.String> o) { | 93 checkUnnamed1314(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 = buildUnnamed2040(); | 104 o.members = buildUnnamed1314(); |
| 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 checkUnnamed2040(o.members); | 114 checkUnnamed1314(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 buildUnnamed2041() { | 137 buildUnnamed1315() { |
| 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 checkUnnamed2041(core.List<core.String> o) { | 144 checkUnnamed1315(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 = buildUnnamed2041(); | 160 o.values = buildUnnamed1315(); |
| 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 checkUnnamed2041(o.values); | 174 checkUnnamed1315(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 buildUnnamed2042() { | 234 buildUnnamed1316() { |
| 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 checkUnnamed2042(core.List<api.Subscription> o) { | 241 checkUnnamed1316(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 = buildUnnamed2042(); | 253 o.subscriptions = buildUnnamed1316(); |
| 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 checkUnnamed2042(o.subscriptions); | 263 checkUnnamed1316(o.subscriptions); |
| 264 } | 264 } |
| 265 buildCounterListSubscriptionsResponse--; | 265 buildCounterListSubscriptionsResponse--; |
| 266 } | 266 } |
| 267 | 267 |
| 268 buildUnnamed2043() { | 268 buildUnnamed1317() { |
| 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 checkUnnamed2043(core.List<core.String> o) { | 275 checkUnnamed1317(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 = buildUnnamed2043(); | 287 o.subscriptions = buildUnnamed1317(); |
| 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 checkUnnamed2043(o.subscriptions); | 297 checkUnnamed1317(o.subscriptions); |
| 298 } | 298 } |
| 299 buildCounterListTopicSubscriptionsResponse--; | 299 buildCounterListTopicSubscriptionsResponse--; |
| 300 } | 300 } |
| 301 | 301 |
| 302 buildUnnamed2044() { | 302 buildUnnamed1318() { |
| 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 checkUnnamed2044(core.List<api.Topic> o) { | 309 checkUnnamed1318(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 = buildUnnamed2044(); | 321 o.topics = buildUnnamed1318(); |
| 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 checkUnnamed2044(o.topics); | 331 checkUnnamed1318(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 buildUnnamed2045() { | 359 buildUnnamed1319() { |
| 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 checkUnnamed2045(core.List<core.String> o) { | 366 checkUnnamed1319(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.ackIds = buildUnnamed2045(); | 378 o.ackIds = buildUnnamed1319(); |
| 379 } | 379 } |
| 380 buildCounterModifyAckDeadlineRequest--; | 380 buildCounterModifyAckDeadlineRequest--; |
| 381 return o; | 381 return o; |
| 382 } | 382 } |
| 383 | 383 |
| 384 checkModifyAckDeadlineRequest(api.ModifyAckDeadlineRequest o) { | 384 checkModifyAckDeadlineRequest(api.ModifyAckDeadlineRequest o) { |
| 385 buildCounterModifyAckDeadlineRequest++; | 385 buildCounterModifyAckDeadlineRequest++; |
| 386 if (buildCounterModifyAckDeadlineRequest < 3) { | 386 if (buildCounterModifyAckDeadlineRequest < 3) { |
| 387 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); | 387 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); |
| 388 checkUnnamed2045(o.ackIds); | 388 checkUnnamed1319(o.ackIds); |
| 389 } | 389 } |
| 390 buildCounterModifyAckDeadlineRequest--; | 390 buildCounterModifyAckDeadlineRequest--; |
| 391 } | 391 } |
| 392 | 392 |
| 393 core.int buildCounterModifyPushConfigRequest = 0; | 393 core.int buildCounterModifyPushConfigRequest = 0; |
| 394 buildModifyPushConfigRequest() { | 394 buildModifyPushConfigRequest() { |
| 395 var o = new api.ModifyPushConfigRequest(); | 395 var o = new api.ModifyPushConfigRequest(); |
| 396 buildCounterModifyPushConfigRequest++; | 396 buildCounterModifyPushConfigRequest++; |
| 397 if (buildCounterModifyPushConfigRequest < 3) { | 397 if (buildCounterModifyPushConfigRequest < 3) { |
| 398 o.pushConfig = buildPushConfig(); | 398 o.pushConfig = buildPushConfig(); |
| 399 } | 399 } |
| 400 buildCounterModifyPushConfigRequest--; | 400 buildCounterModifyPushConfigRequest--; |
| 401 return o; | 401 return o; |
| 402 } | 402 } |
| 403 | 403 |
| 404 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { | 404 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { |
| 405 buildCounterModifyPushConfigRequest++; | 405 buildCounterModifyPushConfigRequest++; |
| 406 if (buildCounterModifyPushConfigRequest < 3) { | 406 if (buildCounterModifyPushConfigRequest < 3) { |
| 407 checkPushConfig(o.pushConfig); | 407 checkPushConfig(o.pushConfig); |
| 408 } | 408 } |
| 409 buildCounterModifyPushConfigRequest--; | 409 buildCounterModifyPushConfigRequest--; |
| 410 } | 410 } |
| 411 | 411 |
| 412 buildUnnamed2046() { | 412 buildUnnamed1320() { |
| 413 var o = new core.List<api.Binding>(); | 413 var o = new core.List<api.Binding>(); |
| 414 o.add(buildBinding()); | 414 o.add(buildBinding()); |
| 415 o.add(buildBinding()); | 415 o.add(buildBinding()); |
| 416 return o; | 416 return o; |
| 417 } | 417 } |
| 418 | 418 |
| 419 checkUnnamed2046(core.List<api.Binding> o) { | 419 checkUnnamed1320(core.List<api.Binding> o) { |
| 420 unittest.expect(o, unittest.hasLength(2)); | 420 unittest.expect(o, unittest.hasLength(2)); |
| 421 checkBinding(o[0]); | 421 checkBinding(o[0]); |
| 422 checkBinding(o[1]); | 422 checkBinding(o[1]); |
| 423 } | 423 } |
| 424 | 424 |
| 425 buildUnnamed2047() { | 425 buildUnnamed1321() { |
| 426 var o = new core.List<api.Rule>(); | 426 var o = new core.List<api.Rule>(); |
| 427 o.add(buildRule()); | 427 o.add(buildRule()); |
| 428 o.add(buildRule()); | 428 o.add(buildRule()); |
| 429 return o; | 429 return o; |
| 430 } | 430 } |
| 431 | 431 |
| 432 checkUnnamed2047(core.List<api.Rule> o) { | 432 checkUnnamed1321(core.List<api.Rule> o) { |
| 433 unittest.expect(o, unittest.hasLength(2)); | 433 unittest.expect(o, unittest.hasLength(2)); |
| 434 checkRule(o[0]); | 434 checkRule(o[0]); |
| 435 checkRule(o[1]); | 435 checkRule(o[1]); |
| 436 } | 436 } |
| 437 | 437 |
| 438 core.int buildCounterPolicy = 0; | 438 core.int buildCounterPolicy = 0; |
| 439 buildPolicy() { | 439 buildPolicy() { |
| 440 var o = new api.Policy(); | 440 var o = new api.Policy(); |
| 441 buildCounterPolicy++; | 441 buildCounterPolicy++; |
| 442 if (buildCounterPolicy < 3) { | 442 if (buildCounterPolicy < 3) { |
| 443 o.bindings = buildUnnamed2046(); | 443 o.bindings = buildUnnamed1320(); |
| 444 o.etag = "foo"; | 444 o.etag = "foo"; |
| 445 o.rules = buildUnnamed2047(); | 445 o.rules = buildUnnamed1321(); |
| 446 o.version = 42; | 446 o.version = 42; |
| 447 } | 447 } |
| 448 buildCounterPolicy--; | 448 buildCounterPolicy--; |
| 449 return o; | 449 return o; |
| 450 } | 450 } |
| 451 | 451 |
| 452 checkPolicy(api.Policy o) { | 452 checkPolicy(api.Policy o) { |
| 453 buildCounterPolicy++; | 453 buildCounterPolicy++; |
| 454 if (buildCounterPolicy < 3) { | 454 if (buildCounterPolicy < 3) { |
| 455 checkUnnamed2046(o.bindings); | 455 checkUnnamed1320(o.bindings); |
| 456 unittest.expect(o.etag, unittest.equals('foo')); | 456 unittest.expect(o.etag, unittest.equals('foo')); |
| 457 checkUnnamed2047(o.rules); | 457 checkUnnamed1321(o.rules); |
| 458 unittest.expect(o.version, unittest.equals(42)); | 458 unittest.expect(o.version, unittest.equals(42)); |
| 459 } | 459 } |
| 460 buildCounterPolicy--; | 460 buildCounterPolicy--; |
| 461 } | 461 } |
| 462 | 462 |
| 463 buildUnnamed2048() { | 463 buildUnnamed1322() { |
| 464 var o = new core.List<api.PubsubMessage>(); | 464 var o = new core.List<api.PubsubMessage>(); |
| 465 o.add(buildPubsubMessage()); | 465 o.add(buildPubsubMessage()); |
| 466 o.add(buildPubsubMessage()); | 466 o.add(buildPubsubMessage()); |
| 467 return o; | 467 return o; |
| 468 } | 468 } |
| 469 | 469 |
| 470 checkUnnamed2048(core.List<api.PubsubMessage> o) { | 470 checkUnnamed1322(core.List<api.PubsubMessage> o) { |
| 471 unittest.expect(o, unittest.hasLength(2)); | 471 unittest.expect(o, unittest.hasLength(2)); |
| 472 checkPubsubMessage(o[0]); | 472 checkPubsubMessage(o[0]); |
| 473 checkPubsubMessage(o[1]); | 473 checkPubsubMessage(o[1]); |
| 474 } | 474 } |
| 475 | 475 |
| 476 core.int buildCounterPublishRequest = 0; | 476 core.int buildCounterPublishRequest = 0; |
| 477 buildPublishRequest() { | 477 buildPublishRequest() { |
| 478 var o = new api.PublishRequest(); | 478 var o = new api.PublishRequest(); |
| 479 buildCounterPublishRequest++; | 479 buildCounterPublishRequest++; |
| 480 if (buildCounterPublishRequest < 3) { | 480 if (buildCounterPublishRequest < 3) { |
| 481 o.messages = buildUnnamed2048(); | 481 o.messages = buildUnnamed1322(); |
| 482 } | 482 } |
| 483 buildCounterPublishRequest--; | 483 buildCounterPublishRequest--; |
| 484 return o; | 484 return o; |
| 485 } | 485 } |
| 486 | 486 |
| 487 checkPublishRequest(api.PublishRequest o) { | 487 checkPublishRequest(api.PublishRequest o) { |
| 488 buildCounterPublishRequest++; | 488 buildCounterPublishRequest++; |
| 489 if (buildCounterPublishRequest < 3) { | 489 if (buildCounterPublishRequest < 3) { |
| 490 checkUnnamed2048(o.messages); | 490 checkUnnamed1322(o.messages); |
| 491 } | 491 } |
| 492 buildCounterPublishRequest--; | 492 buildCounterPublishRequest--; |
| 493 } | 493 } |
| 494 | 494 |
| 495 buildUnnamed2049() { | 495 buildUnnamed1323() { |
| 496 var o = new core.List<core.String>(); | 496 var o = new core.List<core.String>(); |
| 497 o.add("foo"); | 497 o.add("foo"); |
| 498 o.add("foo"); | 498 o.add("foo"); |
| 499 return o; | 499 return o; |
| 500 } | 500 } |
| 501 | 501 |
| 502 checkUnnamed2049(core.List<core.String> o) { | 502 checkUnnamed1323(core.List<core.String> o) { |
| 503 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
| 504 unittest.expect(o[0], unittest.equals('foo')); | 504 unittest.expect(o[0], unittest.equals('foo')); |
| 505 unittest.expect(o[1], unittest.equals('foo')); | 505 unittest.expect(o[1], unittest.equals('foo')); |
| 506 } | 506 } |
| 507 | 507 |
| 508 core.int buildCounterPublishResponse = 0; | 508 core.int buildCounterPublishResponse = 0; |
| 509 buildPublishResponse() { | 509 buildPublishResponse() { |
| 510 var o = new api.PublishResponse(); | 510 var o = new api.PublishResponse(); |
| 511 buildCounterPublishResponse++; | 511 buildCounterPublishResponse++; |
| 512 if (buildCounterPublishResponse < 3) { | 512 if (buildCounterPublishResponse < 3) { |
| 513 o.messageIds = buildUnnamed2049(); | 513 o.messageIds = buildUnnamed1323(); |
| 514 } | 514 } |
| 515 buildCounterPublishResponse--; | 515 buildCounterPublishResponse--; |
| 516 return o; | 516 return o; |
| 517 } | 517 } |
| 518 | 518 |
| 519 checkPublishResponse(api.PublishResponse o) { | 519 checkPublishResponse(api.PublishResponse o) { |
| 520 buildCounterPublishResponse++; | 520 buildCounterPublishResponse++; |
| 521 if (buildCounterPublishResponse < 3) { | 521 if (buildCounterPublishResponse < 3) { |
| 522 checkUnnamed2049(o.messageIds); | 522 checkUnnamed1323(o.messageIds); |
| 523 } | 523 } |
| 524 buildCounterPublishResponse--; | 524 buildCounterPublishResponse--; |
| 525 } | 525 } |
| 526 | 526 |
| 527 buildUnnamed2050() { | 527 buildUnnamed1324() { |
| 528 var o = new core.Map<core.String, core.String>(); | 528 var o = new core.Map<core.String, core.String>(); |
| 529 o["x"] = "foo"; | 529 o["x"] = "foo"; |
| 530 o["y"] = "foo"; | 530 o["y"] = "foo"; |
| 531 return o; | 531 return o; |
| 532 } | 532 } |
| 533 | 533 |
| 534 checkUnnamed2050(core.Map<core.String, core.String> o) { | 534 checkUnnamed1324(core.Map<core.String, core.String> o) { |
| 535 unittest.expect(o, unittest.hasLength(2)); | 535 unittest.expect(o, unittest.hasLength(2)); |
| 536 unittest.expect(o["x"], unittest.equals('foo')); | 536 unittest.expect(o["x"], unittest.equals('foo')); |
| 537 unittest.expect(o["y"], unittest.equals('foo')); | 537 unittest.expect(o["y"], unittest.equals('foo')); |
| 538 } | 538 } |
| 539 | 539 |
| 540 core.int buildCounterPubsubMessage = 0; | 540 core.int buildCounterPubsubMessage = 0; |
| 541 buildPubsubMessage() { | 541 buildPubsubMessage() { |
| 542 var o = new api.PubsubMessage(); | 542 var o = new api.PubsubMessage(); |
| 543 buildCounterPubsubMessage++; | 543 buildCounterPubsubMessage++; |
| 544 if (buildCounterPubsubMessage < 3) { | 544 if (buildCounterPubsubMessage < 3) { |
| 545 o.attributes = buildUnnamed2050(); | 545 o.attributes = buildUnnamed1324(); |
| 546 o.data = "foo"; | 546 o.data = "foo"; |
| 547 o.messageId = "foo"; | 547 o.messageId = "foo"; |
| 548 } | 548 } |
| 549 buildCounterPubsubMessage--; | 549 buildCounterPubsubMessage--; |
| 550 return o; | 550 return o; |
| 551 } | 551 } |
| 552 | 552 |
| 553 checkPubsubMessage(api.PubsubMessage o) { | 553 checkPubsubMessage(api.PubsubMessage o) { |
| 554 buildCounterPubsubMessage++; | 554 buildCounterPubsubMessage++; |
| 555 if (buildCounterPubsubMessage < 3) { | 555 if (buildCounterPubsubMessage < 3) { |
| 556 checkUnnamed2050(o.attributes); | 556 checkUnnamed1324(o.attributes); |
| 557 unittest.expect(o.data, unittest.equals('foo')); | 557 unittest.expect(o.data, unittest.equals('foo')); |
| 558 unittest.expect(o.messageId, unittest.equals('foo')); | 558 unittest.expect(o.messageId, unittest.equals('foo')); |
| 559 } | 559 } |
| 560 buildCounterPubsubMessage--; | 560 buildCounterPubsubMessage--; |
| 561 } | 561 } |
| 562 | 562 |
| 563 core.int buildCounterPullRequest = 0; | 563 core.int buildCounterPullRequest = 0; |
| 564 buildPullRequest() { | 564 buildPullRequest() { |
| 565 var o = new api.PullRequest(); | 565 var o = new api.PullRequest(); |
| 566 buildCounterPullRequest++; | 566 buildCounterPullRequest++; |
| 567 if (buildCounterPullRequest < 3) { | 567 if (buildCounterPullRequest < 3) { |
| 568 o.maxMessages = 42; | 568 o.maxMessages = 42; |
| 569 o.returnImmediately = true; | 569 o.returnImmediately = true; |
| 570 } | 570 } |
| 571 buildCounterPullRequest--; | 571 buildCounterPullRequest--; |
| 572 return o; | 572 return o; |
| 573 } | 573 } |
| 574 | 574 |
| 575 checkPullRequest(api.PullRequest o) { | 575 checkPullRequest(api.PullRequest o) { |
| 576 buildCounterPullRequest++; | 576 buildCounterPullRequest++; |
| 577 if (buildCounterPullRequest < 3) { | 577 if (buildCounterPullRequest < 3) { |
| 578 unittest.expect(o.maxMessages, unittest.equals(42)); | 578 unittest.expect(o.maxMessages, unittest.equals(42)); |
| 579 unittest.expect(o.returnImmediately, unittest.isTrue); | 579 unittest.expect(o.returnImmediately, unittest.isTrue); |
| 580 } | 580 } |
| 581 buildCounterPullRequest--; | 581 buildCounterPullRequest--; |
| 582 } | 582 } |
| 583 | 583 |
| 584 buildUnnamed2051() { | 584 buildUnnamed1325() { |
| 585 var o = new core.List<api.ReceivedMessage>(); | 585 var o = new core.List<api.ReceivedMessage>(); |
| 586 o.add(buildReceivedMessage()); | 586 o.add(buildReceivedMessage()); |
| 587 o.add(buildReceivedMessage()); | 587 o.add(buildReceivedMessage()); |
| 588 return o; | 588 return o; |
| 589 } | 589 } |
| 590 | 590 |
| 591 checkUnnamed2051(core.List<api.ReceivedMessage> o) { | 591 checkUnnamed1325(core.List<api.ReceivedMessage> o) { |
| 592 unittest.expect(o, unittest.hasLength(2)); | 592 unittest.expect(o, unittest.hasLength(2)); |
| 593 checkReceivedMessage(o[0]); | 593 checkReceivedMessage(o[0]); |
| 594 checkReceivedMessage(o[1]); | 594 checkReceivedMessage(o[1]); |
| 595 } | 595 } |
| 596 | 596 |
| 597 core.int buildCounterPullResponse = 0; | 597 core.int buildCounterPullResponse = 0; |
| 598 buildPullResponse() { | 598 buildPullResponse() { |
| 599 var o = new api.PullResponse(); | 599 var o = new api.PullResponse(); |
| 600 buildCounterPullResponse++; | 600 buildCounterPullResponse++; |
| 601 if (buildCounterPullResponse < 3) { | 601 if (buildCounterPullResponse < 3) { |
| 602 o.receivedMessages = buildUnnamed2051(); | 602 o.receivedMessages = buildUnnamed1325(); |
| 603 } | 603 } |
| 604 buildCounterPullResponse--; | 604 buildCounterPullResponse--; |
| 605 return o; | 605 return o; |
| 606 } | 606 } |
| 607 | 607 |
| 608 checkPullResponse(api.PullResponse o) { | 608 checkPullResponse(api.PullResponse o) { |
| 609 buildCounterPullResponse++; | 609 buildCounterPullResponse++; |
| 610 if (buildCounterPullResponse < 3) { | 610 if (buildCounterPullResponse < 3) { |
| 611 checkUnnamed2051(o.receivedMessages); | 611 checkUnnamed1325(o.receivedMessages); |
| 612 } | 612 } |
| 613 buildCounterPullResponse--; | 613 buildCounterPullResponse--; |
| 614 } | 614 } |
| 615 | 615 |
| 616 buildUnnamed2052() { | 616 buildUnnamed1326() { |
| 617 var o = new core.Map<core.String, core.String>(); | 617 var o = new core.Map<core.String, core.String>(); |
| 618 o["x"] = "foo"; | 618 o["x"] = "foo"; |
| 619 o["y"] = "foo"; | 619 o["y"] = "foo"; |
| 620 return o; | 620 return o; |
| 621 } | 621 } |
| 622 | 622 |
| 623 checkUnnamed2052(core.Map<core.String, core.String> o) { | 623 checkUnnamed1326(core.Map<core.String, core.String> o) { |
| 624 unittest.expect(o, unittest.hasLength(2)); | 624 unittest.expect(o, unittest.hasLength(2)); |
| 625 unittest.expect(o["x"], unittest.equals('foo')); | 625 unittest.expect(o["x"], unittest.equals('foo')); |
| 626 unittest.expect(o["y"], unittest.equals('foo')); | 626 unittest.expect(o["y"], unittest.equals('foo')); |
| 627 } | 627 } |
| 628 | 628 |
| 629 core.int buildCounterPushConfig = 0; | 629 core.int buildCounterPushConfig = 0; |
| 630 buildPushConfig() { | 630 buildPushConfig() { |
| 631 var o = new api.PushConfig(); | 631 var o = new api.PushConfig(); |
| 632 buildCounterPushConfig++; | 632 buildCounterPushConfig++; |
| 633 if (buildCounterPushConfig < 3) { | 633 if (buildCounterPushConfig < 3) { |
| 634 o.attributes = buildUnnamed2052(); | 634 o.attributes = buildUnnamed1326(); |
| 635 o.pushEndpoint = "foo"; | 635 o.pushEndpoint = "foo"; |
| 636 } | 636 } |
| 637 buildCounterPushConfig--; | 637 buildCounterPushConfig--; |
| 638 return o; | 638 return o; |
| 639 } | 639 } |
| 640 | 640 |
| 641 checkPushConfig(api.PushConfig o) { | 641 checkPushConfig(api.PushConfig o) { |
| 642 buildCounterPushConfig++; | 642 buildCounterPushConfig++; |
| 643 if (buildCounterPushConfig < 3) { | 643 if (buildCounterPushConfig < 3) { |
| 644 checkUnnamed2052(o.attributes); | 644 checkUnnamed1326(o.attributes); |
| 645 unittest.expect(o.pushEndpoint, unittest.equals('foo')); | 645 unittest.expect(o.pushEndpoint, unittest.equals('foo')); |
| 646 } | 646 } |
| 647 buildCounterPushConfig--; | 647 buildCounterPushConfig--; |
| 648 } | 648 } |
| 649 | 649 |
| 650 core.int buildCounterReceivedMessage = 0; | 650 core.int buildCounterReceivedMessage = 0; |
| 651 buildReceivedMessage() { | 651 buildReceivedMessage() { |
| 652 var o = new api.ReceivedMessage(); | 652 var o = new api.ReceivedMessage(); |
| 653 buildCounterReceivedMessage++; | 653 buildCounterReceivedMessage++; |
| 654 if (buildCounterReceivedMessage < 3) { | 654 if (buildCounterReceivedMessage < 3) { |
| 655 o.ackId = "foo"; | 655 o.ackId = "foo"; |
| 656 o.message = buildPubsubMessage(); | 656 o.message = buildPubsubMessage(); |
| 657 } | 657 } |
| 658 buildCounterReceivedMessage--; | 658 buildCounterReceivedMessage--; |
| 659 return o; | 659 return o; |
| 660 } | 660 } |
| 661 | 661 |
| 662 checkReceivedMessage(api.ReceivedMessage o) { | 662 checkReceivedMessage(api.ReceivedMessage o) { |
| 663 buildCounterReceivedMessage++; | 663 buildCounterReceivedMessage++; |
| 664 if (buildCounterReceivedMessage < 3) { | 664 if (buildCounterReceivedMessage < 3) { |
| 665 unittest.expect(o.ackId, unittest.equals('foo')); | 665 unittest.expect(o.ackId, unittest.equals('foo')); |
| 666 checkPubsubMessage(o.message); | 666 checkPubsubMessage(o.message); |
| 667 } | 667 } |
| 668 buildCounterReceivedMessage--; | 668 buildCounterReceivedMessage--; |
| 669 } | 669 } |
| 670 | 670 |
| 671 buildUnnamed2053() { | 671 buildUnnamed1327() { |
| 672 var o = new core.List<api.Condition>(); | 672 var o = new core.List<api.Condition>(); |
| 673 o.add(buildCondition()); | 673 o.add(buildCondition()); |
| 674 o.add(buildCondition()); | 674 o.add(buildCondition()); |
| 675 return o; | 675 return o; |
| 676 } | 676 } |
| 677 | 677 |
| 678 checkUnnamed2053(core.List<api.Condition> o) { | 678 checkUnnamed1327(core.List<api.Condition> o) { |
| 679 unittest.expect(o, unittest.hasLength(2)); | 679 unittest.expect(o, unittest.hasLength(2)); |
| 680 checkCondition(o[0]); | 680 checkCondition(o[0]); |
| 681 checkCondition(o[1]); | 681 checkCondition(o[1]); |
| 682 } | 682 } |
| 683 | 683 |
| 684 buildUnnamed2054() { | 684 buildUnnamed1328() { |
| 685 var o = new core.List<core.String>(); | 685 var o = new core.List<core.String>(); |
| 686 o.add("foo"); | 686 o.add("foo"); |
| 687 o.add("foo"); | 687 o.add("foo"); |
| 688 return o; | 688 return o; |
| 689 } | 689 } |
| 690 | 690 |
| 691 checkUnnamed2054(core.List<core.String> o) { | 691 checkUnnamed1328(core.List<core.String> o) { |
| 692 unittest.expect(o, unittest.hasLength(2)); | 692 unittest.expect(o, unittest.hasLength(2)); |
| 693 unittest.expect(o[0], unittest.equals('foo')); | 693 unittest.expect(o[0], unittest.equals('foo')); |
| 694 unittest.expect(o[1], unittest.equals('foo')); | 694 unittest.expect(o[1], unittest.equals('foo')); |
| 695 } | 695 } |
| 696 | 696 |
| 697 buildUnnamed2055() { | 697 buildUnnamed1329() { |
| 698 var o = new core.List<api.LogConfig>(); | 698 var o = new core.List<api.LogConfig>(); |
| 699 o.add(buildLogConfig()); | 699 o.add(buildLogConfig()); |
| 700 o.add(buildLogConfig()); | 700 o.add(buildLogConfig()); |
| 701 return o; | 701 return o; |
| 702 } | 702 } |
| 703 | 703 |
| 704 checkUnnamed2055(core.List<api.LogConfig> o) { | 704 checkUnnamed1329(core.List<api.LogConfig> o) { |
| 705 unittest.expect(o, unittest.hasLength(2)); | 705 unittest.expect(o, unittest.hasLength(2)); |
| 706 checkLogConfig(o[0]); | 706 checkLogConfig(o[0]); |
| 707 checkLogConfig(o[1]); | 707 checkLogConfig(o[1]); |
| 708 } | 708 } |
| 709 | 709 |
| 710 buildUnnamed2056() { | 710 buildUnnamed1330() { |
| 711 var o = new core.List<core.String>(); | 711 var o = new core.List<core.String>(); |
| 712 o.add("foo"); | 712 o.add("foo"); |
| 713 o.add("foo"); | 713 o.add("foo"); |
| 714 return o; | 714 return o; |
| 715 } | 715 } |
| 716 | 716 |
| 717 checkUnnamed2056(core.List<core.String> o) { | 717 checkUnnamed1330(core.List<core.String> o) { |
| 718 unittest.expect(o, unittest.hasLength(2)); | 718 unittest.expect(o, unittest.hasLength(2)); |
| 719 unittest.expect(o[0], unittest.equals('foo')); | 719 unittest.expect(o[0], unittest.equals('foo')); |
| 720 unittest.expect(o[1], unittest.equals('foo')); | 720 unittest.expect(o[1], unittest.equals('foo')); |
| 721 } | 721 } |
| 722 | 722 |
| 723 buildUnnamed2057() { | 723 buildUnnamed1331() { |
| 724 var o = new core.List<core.String>(); | 724 var o = new core.List<core.String>(); |
| 725 o.add("foo"); | 725 o.add("foo"); |
| 726 o.add("foo"); | 726 o.add("foo"); |
| 727 return o; | 727 return o; |
| 728 } | 728 } |
| 729 | 729 |
| 730 checkUnnamed2057(core.List<core.String> o) { | 730 checkUnnamed1331(core.List<core.String> o) { |
| 731 unittest.expect(o, unittest.hasLength(2)); | 731 unittest.expect(o, unittest.hasLength(2)); |
| 732 unittest.expect(o[0], unittest.equals('foo')); | 732 unittest.expect(o[0], unittest.equals('foo')); |
| 733 unittest.expect(o[1], unittest.equals('foo')); | 733 unittest.expect(o[1], unittest.equals('foo')); |
| 734 } | 734 } |
| 735 | 735 |
| 736 core.int buildCounterRule = 0; | 736 core.int buildCounterRule = 0; |
| 737 buildRule() { | 737 buildRule() { |
| 738 var o = new api.Rule(); | 738 var o = new api.Rule(); |
| 739 buildCounterRule++; | 739 buildCounterRule++; |
| 740 if (buildCounterRule < 3) { | 740 if (buildCounterRule < 3) { |
| 741 o.action = "foo"; | 741 o.action = "foo"; |
| 742 o.conditions = buildUnnamed2053(); | 742 o.conditions = buildUnnamed1327(); |
| 743 o.description = "foo"; | 743 o.description = "foo"; |
| 744 o.in_ = buildUnnamed2054(); | 744 o.in_ = buildUnnamed1328(); |
| 745 o.logConfig = buildUnnamed2055(); | 745 o.logConfig = buildUnnamed1329(); |
| 746 o.notIn = buildUnnamed2056(); | 746 o.notIn = buildUnnamed1330(); |
| 747 o.permissions = buildUnnamed2057(); | 747 o.permissions = buildUnnamed1331(); |
| 748 } | 748 } |
| 749 buildCounterRule--; | 749 buildCounterRule--; |
| 750 return o; | 750 return o; |
| 751 } | 751 } |
| 752 | 752 |
| 753 checkRule(api.Rule o) { | 753 checkRule(api.Rule o) { |
| 754 buildCounterRule++; | 754 buildCounterRule++; |
| 755 if (buildCounterRule < 3) { | 755 if (buildCounterRule < 3) { |
| 756 unittest.expect(o.action, unittest.equals('foo')); | 756 unittest.expect(o.action, unittest.equals('foo')); |
| 757 checkUnnamed2053(o.conditions); | 757 checkUnnamed1327(o.conditions); |
| 758 unittest.expect(o.description, unittest.equals('foo')); | 758 unittest.expect(o.description, unittest.equals('foo')); |
| 759 checkUnnamed2054(o.in_); | 759 checkUnnamed1328(o.in_); |
| 760 checkUnnamed2055(o.logConfig); | 760 checkUnnamed1329(o.logConfig); |
| 761 checkUnnamed2056(o.notIn); | 761 checkUnnamed1330(o.notIn); |
| 762 checkUnnamed2057(o.permissions); | 762 checkUnnamed1331(o.permissions); |
| 763 } | 763 } |
| 764 buildCounterRule--; | 764 buildCounterRule--; |
| 765 } | 765 } |
| 766 | 766 |
| 767 core.int buildCounterSetIamPolicyRequest = 0; | 767 core.int buildCounterSetIamPolicyRequest = 0; |
| 768 buildSetIamPolicyRequest() { | 768 buildSetIamPolicyRequest() { |
| 769 var o = new api.SetIamPolicyRequest(); | 769 var o = new api.SetIamPolicyRequest(); |
| 770 buildCounterSetIamPolicyRequest++; | 770 buildCounterSetIamPolicyRequest++; |
| 771 if (buildCounterSetIamPolicyRequest < 3) { | 771 if (buildCounterSetIamPolicyRequest < 3) { |
| 772 o.policy = buildPolicy(); | 772 o.policy = buildPolicy(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 801 buildCounterSubscription++; | 801 buildCounterSubscription++; |
| 802 if (buildCounterSubscription < 3) { | 802 if (buildCounterSubscription < 3) { |
| 803 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); | 803 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); |
| 804 unittest.expect(o.name, unittest.equals('foo')); | 804 unittest.expect(o.name, unittest.equals('foo')); |
| 805 checkPushConfig(o.pushConfig); | 805 checkPushConfig(o.pushConfig); |
| 806 unittest.expect(o.topic, unittest.equals('foo')); | 806 unittest.expect(o.topic, unittest.equals('foo')); |
| 807 } | 807 } |
| 808 buildCounterSubscription--; | 808 buildCounterSubscription--; |
| 809 } | 809 } |
| 810 | 810 |
| 811 buildUnnamed2058() { | 811 buildUnnamed1332() { |
| 812 var o = new core.List<core.String>(); | 812 var o = new core.List<core.String>(); |
| 813 o.add("foo"); | 813 o.add("foo"); |
| 814 o.add("foo"); | 814 o.add("foo"); |
| 815 return o; | 815 return o; |
| 816 } | 816 } |
| 817 | 817 |
| 818 checkUnnamed2058(core.List<core.String> o) { | 818 checkUnnamed1332(core.List<core.String> o) { |
| 819 unittest.expect(o, unittest.hasLength(2)); | 819 unittest.expect(o, unittest.hasLength(2)); |
| 820 unittest.expect(o[0], unittest.equals('foo')); | 820 unittest.expect(o[0], unittest.equals('foo')); |
| 821 unittest.expect(o[1], unittest.equals('foo')); | 821 unittest.expect(o[1], unittest.equals('foo')); |
| 822 } | 822 } |
| 823 | 823 |
| 824 core.int buildCounterTestIamPermissionsRequest = 0; | 824 core.int buildCounterTestIamPermissionsRequest = 0; |
| 825 buildTestIamPermissionsRequest() { | 825 buildTestIamPermissionsRequest() { |
| 826 var o = new api.TestIamPermissionsRequest(); | 826 var o = new api.TestIamPermissionsRequest(); |
| 827 buildCounterTestIamPermissionsRequest++; | 827 buildCounterTestIamPermissionsRequest++; |
| 828 if (buildCounterTestIamPermissionsRequest < 3) { | 828 if (buildCounterTestIamPermissionsRequest < 3) { |
| 829 o.permissions = buildUnnamed2058(); | 829 o.permissions = buildUnnamed1332(); |
| 830 } | 830 } |
| 831 buildCounterTestIamPermissionsRequest--; | 831 buildCounterTestIamPermissionsRequest--; |
| 832 return o; | 832 return o; |
| 833 } | 833 } |
| 834 | 834 |
| 835 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 835 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 836 buildCounterTestIamPermissionsRequest++; | 836 buildCounterTestIamPermissionsRequest++; |
| 837 if (buildCounterTestIamPermissionsRequest < 3) { | 837 if (buildCounterTestIamPermissionsRequest < 3) { |
| 838 checkUnnamed2058(o.permissions); | 838 checkUnnamed1332(o.permissions); |
| 839 } | 839 } |
| 840 buildCounterTestIamPermissionsRequest--; | 840 buildCounterTestIamPermissionsRequest--; |
| 841 } | 841 } |
| 842 | 842 |
| 843 buildUnnamed2059() { | 843 buildUnnamed1333() { |
| 844 var o = new core.List<core.String>(); | 844 var o = new core.List<core.String>(); |
| 845 o.add("foo"); | 845 o.add("foo"); |
| 846 o.add("foo"); | 846 o.add("foo"); |
| 847 return o; | 847 return o; |
| 848 } | 848 } |
| 849 | 849 |
| 850 checkUnnamed2059(core.List<core.String> o) { | 850 checkUnnamed1333(core.List<core.String> o) { |
| 851 unittest.expect(o, unittest.hasLength(2)); | 851 unittest.expect(o, unittest.hasLength(2)); |
| 852 unittest.expect(o[0], unittest.equals('foo')); | 852 unittest.expect(o[0], unittest.equals('foo')); |
| 853 unittest.expect(o[1], unittest.equals('foo')); | 853 unittest.expect(o[1], unittest.equals('foo')); |
| 854 } | 854 } |
| 855 | 855 |
| 856 core.int buildCounterTestIamPermissionsResponse = 0; | 856 core.int buildCounterTestIamPermissionsResponse = 0; |
| 857 buildTestIamPermissionsResponse() { | 857 buildTestIamPermissionsResponse() { |
| 858 var o = new api.TestIamPermissionsResponse(); | 858 var o = new api.TestIamPermissionsResponse(); |
| 859 buildCounterTestIamPermissionsResponse++; | 859 buildCounterTestIamPermissionsResponse++; |
| 860 if (buildCounterTestIamPermissionsResponse < 3) { | 860 if (buildCounterTestIamPermissionsResponse < 3) { |
| 861 o.permissions = buildUnnamed2059(); | 861 o.permissions = buildUnnamed1333(); |
| 862 } | 862 } |
| 863 buildCounterTestIamPermissionsResponse--; | 863 buildCounterTestIamPermissionsResponse--; |
| 864 return o; | 864 return o; |
| 865 } | 865 } |
| 866 | 866 |
| 867 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 867 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 868 buildCounterTestIamPermissionsResponse++; | 868 buildCounterTestIamPermissionsResponse++; |
| 869 if (buildCounterTestIamPermissionsResponse < 3) { | 869 if (buildCounterTestIamPermissionsResponse < 3) { |
| 870 checkUnnamed2059(o.permissions); | 870 checkUnnamed1333(o.permissions); |
| 871 } | 871 } |
| 872 buildCounterTestIamPermissionsResponse--; | 872 buildCounterTestIamPermissionsResponse--; |
| 873 } | 873 } |
| 874 | 874 |
| 875 core.int buildCounterTopic = 0; | 875 core.int buildCounterTopic = 0; |
| 876 buildTopic() { | 876 buildTopic() { |
| 877 var o = new api.Topic(); | 877 var o = new api.Topic(); |
| 878 buildCounterTopic++; | 878 buildCounterTopic++; |
| 879 if (buildCounterTopic < 3) { | 879 if (buildCounterTopic < 3) { |
| 880 o.name = "foo"; | 880 o.name = "foo"; |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2099 res.list(arg_topic, pageSize: arg_pageSize, pageToken: arg_pageToken).then
(unittest.expectAsync(((api.ListTopicSubscriptionsResponse response) { | 2099 res.list(arg_topic, pageSize: arg_pageSize, pageToken: arg_pageToken).then
(unittest.expectAsync(((api.ListTopicSubscriptionsResponse response) { |
| 2100 checkListTopicSubscriptionsResponse(response); | 2100 checkListTopicSubscriptionsResponse(response); |
| 2101 }))); | 2101 }))); |
| 2102 }); | 2102 }); |
| 2103 | 2103 |
| 2104 }); | 2104 }); |
| 2105 | 2105 |
| 2106 | 2106 |
| 2107 } | 2107 } |
| 2108 | 2108 |
| OLD | NEW |