| OLD | NEW |
| 1 library googleapis_beta.pubsub.v1beta2.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; |
| 11 | 11 |
| 12 import 'package:googleapis_beta/pubsub/v1beta2.dart' as api; | 12 import 'package:googleapis/pubsub/v1.dart' as api; |
| 13 | 13 |
| 14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 15 core.Function _callback; |
| 16 core.bool _expectJson; | 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 19 _callback = callback; |
| 20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 21 matching lines...) Expand all 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 buildUnnamed2039() { |
| 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 checkUnnamed2039(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 = buildUnnamed2039(); |
| 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 checkUnnamed2039(o.ackIds); |
| 82 } | 82 } |
| 83 buildCounterAcknowledgeRequest--; | 83 buildCounterAcknowledgeRequest--; |
| 84 } | 84 } |
| 85 | 85 |
| 86 buildUnnamed1671() { | 86 buildUnnamed2040() { |
| 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 checkUnnamed2040(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 = buildUnnamed2040(); |
| 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 checkUnnamed2040(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 buildUnnamed2041() { |
| 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 checkUnnamed2041(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 = buildUnnamed2041(); |
| 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 checkUnnamed2041(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 buildUnnamed2042() { |
| 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 checkUnnamed2042(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 = buildUnnamed2042(); |
| 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 checkUnnamed2042(o.subscriptions); |
| 264 } | 264 } |
| 265 buildCounterListSubscriptionsResponse--; | 265 buildCounterListSubscriptionsResponse--; |
| 266 } | 266 } |
| 267 | 267 |
| 268 buildUnnamed1674() { | 268 buildUnnamed2043() { |
| 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 checkUnnamed2043(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 = buildUnnamed2043(); |
| 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 checkUnnamed2043(o.subscriptions); |
| 298 } | 298 } |
| 299 buildCounterListTopicSubscriptionsResponse--; | 299 buildCounterListTopicSubscriptionsResponse--; |
| 300 } | 300 } |
| 301 | 301 |
| 302 buildUnnamed1675() { | 302 buildUnnamed2044() { |
| 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 checkUnnamed2044(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 = buildUnnamed2044(); |
| 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 checkUnnamed2044(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 buildUnnamed2045() { |
| 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 checkUnnamed2045(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.ackIds = buildUnnamed2045(); |
| 379 o.ackIds = buildUnnamed1676(); | |
| 380 } | 379 } |
| 381 buildCounterModifyAckDeadlineRequest--; | 380 buildCounterModifyAckDeadlineRequest--; |
| 382 return o; | 381 return o; |
| 383 } | 382 } |
| 384 | 383 |
| 385 checkModifyAckDeadlineRequest(api.ModifyAckDeadlineRequest o) { | 384 checkModifyAckDeadlineRequest(api.ModifyAckDeadlineRequest o) { |
| 386 buildCounterModifyAckDeadlineRequest++; | 385 buildCounterModifyAckDeadlineRequest++; |
| 387 if (buildCounterModifyAckDeadlineRequest < 3) { | 386 if (buildCounterModifyAckDeadlineRequest < 3) { |
| 388 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); | 387 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); |
| 389 unittest.expect(o.ackId, unittest.equals('foo')); | 388 checkUnnamed2045(o.ackIds); |
| 390 checkUnnamed1676(o.ackIds); | |
| 391 } | 389 } |
| 392 buildCounterModifyAckDeadlineRequest--; | 390 buildCounterModifyAckDeadlineRequest--; |
| 393 } | 391 } |
| 394 | 392 |
| 395 core.int buildCounterModifyPushConfigRequest = 0; | 393 core.int buildCounterModifyPushConfigRequest = 0; |
| 396 buildModifyPushConfigRequest() { | 394 buildModifyPushConfigRequest() { |
| 397 var o = new api.ModifyPushConfigRequest(); | 395 var o = new api.ModifyPushConfigRequest(); |
| 398 buildCounterModifyPushConfigRequest++; | 396 buildCounterModifyPushConfigRequest++; |
| 399 if (buildCounterModifyPushConfigRequest < 3) { | 397 if (buildCounterModifyPushConfigRequest < 3) { |
| 400 o.pushConfig = buildPushConfig(); | 398 o.pushConfig = buildPushConfig(); |
| 401 } | 399 } |
| 402 buildCounterModifyPushConfigRequest--; | 400 buildCounterModifyPushConfigRequest--; |
| 403 return o; | 401 return o; |
| 404 } | 402 } |
| 405 | 403 |
| 406 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { | 404 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { |
| 407 buildCounterModifyPushConfigRequest++; | 405 buildCounterModifyPushConfigRequest++; |
| 408 if (buildCounterModifyPushConfigRequest < 3) { | 406 if (buildCounterModifyPushConfigRequest < 3) { |
| 409 checkPushConfig(o.pushConfig); | 407 checkPushConfig(o.pushConfig); |
| 410 } | 408 } |
| 411 buildCounterModifyPushConfigRequest--; | 409 buildCounterModifyPushConfigRequest--; |
| 412 } | 410 } |
| 413 | 411 |
| 414 buildUnnamed1677() { | 412 buildUnnamed2046() { |
| 415 var o = new core.List<api.Binding>(); | 413 var o = new core.List<api.Binding>(); |
| 416 o.add(buildBinding()); | 414 o.add(buildBinding()); |
| 417 o.add(buildBinding()); | 415 o.add(buildBinding()); |
| 418 return o; | 416 return o; |
| 419 } | 417 } |
| 420 | 418 |
| 421 checkUnnamed1677(core.List<api.Binding> o) { | 419 checkUnnamed2046(core.List<api.Binding> o) { |
| 422 unittest.expect(o, unittest.hasLength(2)); | 420 unittest.expect(o, unittest.hasLength(2)); |
| 423 checkBinding(o[0]); | 421 checkBinding(o[0]); |
| 424 checkBinding(o[1]); | 422 checkBinding(o[1]); |
| 425 } | 423 } |
| 426 | 424 |
| 427 buildUnnamed1678() { | 425 buildUnnamed2047() { |
| 428 var o = new core.List<api.Rule>(); | 426 var o = new core.List<api.Rule>(); |
| 429 o.add(buildRule()); | 427 o.add(buildRule()); |
| 430 o.add(buildRule()); | 428 o.add(buildRule()); |
| 431 return o; | 429 return o; |
| 432 } | 430 } |
| 433 | 431 |
| 434 checkUnnamed1678(core.List<api.Rule> o) { | 432 checkUnnamed2047(core.List<api.Rule> o) { |
| 435 unittest.expect(o, unittest.hasLength(2)); | 433 unittest.expect(o, unittest.hasLength(2)); |
| 436 checkRule(o[0]); | 434 checkRule(o[0]); |
| 437 checkRule(o[1]); | 435 checkRule(o[1]); |
| 438 } | 436 } |
| 439 | 437 |
| 440 core.int buildCounterPolicy = 0; | 438 core.int buildCounterPolicy = 0; |
| 441 buildPolicy() { | 439 buildPolicy() { |
| 442 var o = new api.Policy(); | 440 var o = new api.Policy(); |
| 443 buildCounterPolicy++; | 441 buildCounterPolicy++; |
| 444 if (buildCounterPolicy < 3) { | 442 if (buildCounterPolicy < 3) { |
| 445 o.bindings = buildUnnamed1677(); | 443 o.bindings = buildUnnamed2046(); |
| 446 o.etag = "foo"; | 444 o.etag = "foo"; |
| 447 o.rules = buildUnnamed1678(); | 445 o.rules = buildUnnamed2047(); |
| 448 o.version = 42; | 446 o.version = 42; |
| 449 } | 447 } |
| 450 buildCounterPolicy--; | 448 buildCounterPolicy--; |
| 451 return o; | 449 return o; |
| 452 } | 450 } |
| 453 | 451 |
| 454 checkPolicy(api.Policy o) { | 452 checkPolicy(api.Policy o) { |
| 455 buildCounterPolicy++; | 453 buildCounterPolicy++; |
| 456 if (buildCounterPolicy < 3) { | 454 if (buildCounterPolicy < 3) { |
| 457 checkUnnamed1677(o.bindings); | 455 checkUnnamed2046(o.bindings); |
| 458 unittest.expect(o.etag, unittest.equals('foo')); | 456 unittest.expect(o.etag, unittest.equals('foo')); |
| 459 checkUnnamed1678(o.rules); | 457 checkUnnamed2047(o.rules); |
| 460 unittest.expect(o.version, unittest.equals(42)); | 458 unittest.expect(o.version, unittest.equals(42)); |
| 461 } | 459 } |
| 462 buildCounterPolicy--; | 460 buildCounterPolicy--; |
| 463 } | 461 } |
| 464 | 462 |
| 465 buildUnnamed1679() { | 463 buildUnnamed2048() { |
| 466 var o = new core.List<api.PubsubMessage>(); | 464 var o = new core.List<api.PubsubMessage>(); |
| 467 o.add(buildPubsubMessage()); | 465 o.add(buildPubsubMessage()); |
| 468 o.add(buildPubsubMessage()); | 466 o.add(buildPubsubMessage()); |
| 469 return o; | 467 return o; |
| 470 } | 468 } |
| 471 | 469 |
| 472 checkUnnamed1679(core.List<api.PubsubMessage> o) { | 470 checkUnnamed2048(core.List<api.PubsubMessage> o) { |
| 473 unittest.expect(o, unittest.hasLength(2)); | 471 unittest.expect(o, unittest.hasLength(2)); |
| 474 checkPubsubMessage(o[0]); | 472 checkPubsubMessage(o[0]); |
| 475 checkPubsubMessage(o[1]); | 473 checkPubsubMessage(o[1]); |
| 476 } | 474 } |
| 477 | 475 |
| 478 core.int buildCounterPublishRequest = 0; | 476 core.int buildCounterPublishRequest = 0; |
| 479 buildPublishRequest() { | 477 buildPublishRequest() { |
| 480 var o = new api.PublishRequest(); | 478 var o = new api.PublishRequest(); |
| 481 buildCounterPublishRequest++; | 479 buildCounterPublishRequest++; |
| 482 if (buildCounterPublishRequest < 3) { | 480 if (buildCounterPublishRequest < 3) { |
| 483 o.messages = buildUnnamed1679(); | 481 o.messages = buildUnnamed2048(); |
| 484 } | 482 } |
| 485 buildCounterPublishRequest--; | 483 buildCounterPublishRequest--; |
| 486 return o; | 484 return o; |
| 487 } | 485 } |
| 488 | 486 |
| 489 checkPublishRequest(api.PublishRequest o) { | 487 checkPublishRequest(api.PublishRequest o) { |
| 490 buildCounterPublishRequest++; | 488 buildCounterPublishRequest++; |
| 491 if (buildCounterPublishRequest < 3) { | 489 if (buildCounterPublishRequest < 3) { |
| 492 checkUnnamed1679(o.messages); | 490 checkUnnamed2048(o.messages); |
| 493 } | 491 } |
| 494 buildCounterPublishRequest--; | 492 buildCounterPublishRequest--; |
| 495 } | 493 } |
| 496 | 494 |
| 497 buildUnnamed1680() { | 495 buildUnnamed2049() { |
| 498 var o = new core.List<core.String>(); | 496 var o = new core.List<core.String>(); |
| 499 o.add("foo"); | 497 o.add("foo"); |
| 500 o.add("foo"); | 498 o.add("foo"); |
| 501 return o; | 499 return o; |
| 502 } | 500 } |
| 503 | 501 |
| 504 checkUnnamed1680(core.List<core.String> o) { | 502 checkUnnamed2049(core.List<core.String> o) { |
| 505 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
| 506 unittest.expect(o[0], unittest.equals('foo')); | 504 unittest.expect(o[0], unittest.equals('foo')); |
| 507 unittest.expect(o[1], unittest.equals('foo')); | 505 unittest.expect(o[1], unittest.equals('foo')); |
| 508 } | 506 } |
| 509 | 507 |
| 510 core.int buildCounterPublishResponse = 0; | 508 core.int buildCounterPublishResponse = 0; |
| 511 buildPublishResponse() { | 509 buildPublishResponse() { |
| 512 var o = new api.PublishResponse(); | 510 var o = new api.PublishResponse(); |
| 513 buildCounterPublishResponse++; | 511 buildCounterPublishResponse++; |
| 514 if (buildCounterPublishResponse < 3) { | 512 if (buildCounterPublishResponse < 3) { |
| 515 o.messageIds = buildUnnamed1680(); | 513 o.messageIds = buildUnnamed2049(); |
| 516 } | 514 } |
| 517 buildCounterPublishResponse--; | 515 buildCounterPublishResponse--; |
| 518 return o; | 516 return o; |
| 519 } | 517 } |
| 520 | 518 |
| 521 checkPublishResponse(api.PublishResponse o) { | 519 checkPublishResponse(api.PublishResponse o) { |
| 522 buildCounterPublishResponse++; | 520 buildCounterPublishResponse++; |
| 523 if (buildCounterPublishResponse < 3) { | 521 if (buildCounterPublishResponse < 3) { |
| 524 checkUnnamed1680(o.messageIds); | 522 checkUnnamed2049(o.messageIds); |
| 525 } | 523 } |
| 526 buildCounterPublishResponse--; | 524 buildCounterPublishResponse--; |
| 527 } | 525 } |
| 528 | 526 |
| 529 buildUnnamed1681() { | 527 buildUnnamed2050() { |
| 530 var o = new core.Map<core.String, core.String>(); | 528 var o = new core.Map<core.String, core.String>(); |
| 531 o["x"] = "foo"; | 529 o["x"] = "foo"; |
| 532 o["y"] = "foo"; | 530 o["y"] = "foo"; |
| 533 return o; | 531 return o; |
| 534 } | 532 } |
| 535 | 533 |
| 536 checkUnnamed1681(core.Map<core.String, core.String> o) { | 534 checkUnnamed2050(core.Map<core.String, core.String> o) { |
| 537 unittest.expect(o, unittest.hasLength(2)); | 535 unittest.expect(o, unittest.hasLength(2)); |
| 538 unittest.expect(o["x"], unittest.equals('foo')); | 536 unittest.expect(o["x"], unittest.equals('foo')); |
| 539 unittest.expect(o["y"], unittest.equals('foo')); | 537 unittest.expect(o["y"], unittest.equals('foo')); |
| 540 } | 538 } |
| 541 | 539 |
| 542 core.int buildCounterPubsubMessage = 0; | 540 core.int buildCounterPubsubMessage = 0; |
| 543 buildPubsubMessage() { | 541 buildPubsubMessage() { |
| 544 var o = new api.PubsubMessage(); | 542 var o = new api.PubsubMessage(); |
| 545 buildCounterPubsubMessage++; | 543 buildCounterPubsubMessage++; |
| 546 if (buildCounterPubsubMessage < 3) { | 544 if (buildCounterPubsubMessage < 3) { |
| 547 o.attributes = buildUnnamed1681(); | 545 o.attributes = buildUnnamed2050(); |
| 548 o.data = "foo"; | 546 o.data = "foo"; |
| 549 o.messageId = "foo"; | 547 o.messageId = "foo"; |
| 550 } | 548 } |
| 551 buildCounterPubsubMessage--; | 549 buildCounterPubsubMessage--; |
| 552 return o; | 550 return o; |
| 553 } | 551 } |
| 554 | 552 |
| 555 checkPubsubMessage(api.PubsubMessage o) { | 553 checkPubsubMessage(api.PubsubMessage o) { |
| 556 buildCounterPubsubMessage++; | 554 buildCounterPubsubMessage++; |
| 557 if (buildCounterPubsubMessage < 3) { | 555 if (buildCounterPubsubMessage < 3) { |
| 558 checkUnnamed1681(o.attributes); | 556 checkUnnamed2050(o.attributes); |
| 559 unittest.expect(o.data, unittest.equals('foo')); | 557 unittest.expect(o.data, unittest.equals('foo')); |
| 560 unittest.expect(o.messageId, unittest.equals('foo')); | 558 unittest.expect(o.messageId, unittest.equals('foo')); |
| 561 } | 559 } |
| 562 buildCounterPubsubMessage--; | 560 buildCounterPubsubMessage--; |
| 563 } | 561 } |
| 564 | 562 |
| 565 core.int buildCounterPullRequest = 0; | 563 core.int buildCounterPullRequest = 0; |
| 566 buildPullRequest() { | 564 buildPullRequest() { |
| 567 var o = new api.PullRequest(); | 565 var o = new api.PullRequest(); |
| 568 buildCounterPullRequest++; | 566 buildCounterPullRequest++; |
| 569 if (buildCounterPullRequest < 3) { | 567 if (buildCounterPullRequest < 3) { |
| 570 o.maxMessages = 42; | 568 o.maxMessages = 42; |
| 571 o.returnImmediately = true; | 569 o.returnImmediately = true; |
| 572 } | 570 } |
| 573 buildCounterPullRequest--; | 571 buildCounterPullRequest--; |
| 574 return o; | 572 return o; |
| 575 } | 573 } |
| 576 | 574 |
| 577 checkPullRequest(api.PullRequest o) { | 575 checkPullRequest(api.PullRequest o) { |
| 578 buildCounterPullRequest++; | 576 buildCounterPullRequest++; |
| 579 if (buildCounterPullRequest < 3) { | 577 if (buildCounterPullRequest < 3) { |
| 580 unittest.expect(o.maxMessages, unittest.equals(42)); | 578 unittest.expect(o.maxMessages, unittest.equals(42)); |
| 581 unittest.expect(o.returnImmediately, unittest.isTrue); | 579 unittest.expect(o.returnImmediately, unittest.isTrue); |
| 582 } | 580 } |
| 583 buildCounterPullRequest--; | 581 buildCounterPullRequest--; |
| 584 } | 582 } |
| 585 | 583 |
| 586 buildUnnamed1682() { | 584 buildUnnamed2051() { |
| 587 var o = new core.List<api.ReceivedMessage>(); | 585 var o = new core.List<api.ReceivedMessage>(); |
| 588 o.add(buildReceivedMessage()); | 586 o.add(buildReceivedMessage()); |
| 589 o.add(buildReceivedMessage()); | 587 o.add(buildReceivedMessage()); |
| 590 return o; | 588 return o; |
| 591 } | 589 } |
| 592 | 590 |
| 593 checkUnnamed1682(core.List<api.ReceivedMessage> o) { | 591 checkUnnamed2051(core.List<api.ReceivedMessage> o) { |
| 594 unittest.expect(o, unittest.hasLength(2)); | 592 unittest.expect(o, unittest.hasLength(2)); |
| 595 checkReceivedMessage(o[0]); | 593 checkReceivedMessage(o[0]); |
| 596 checkReceivedMessage(o[1]); | 594 checkReceivedMessage(o[1]); |
| 597 } | 595 } |
| 598 | 596 |
| 599 core.int buildCounterPullResponse = 0; | 597 core.int buildCounterPullResponse = 0; |
| 600 buildPullResponse() { | 598 buildPullResponse() { |
| 601 var o = new api.PullResponse(); | 599 var o = new api.PullResponse(); |
| 602 buildCounterPullResponse++; | 600 buildCounterPullResponse++; |
| 603 if (buildCounterPullResponse < 3) { | 601 if (buildCounterPullResponse < 3) { |
| 604 o.receivedMessages = buildUnnamed1682(); | 602 o.receivedMessages = buildUnnamed2051(); |
| 605 } | 603 } |
| 606 buildCounterPullResponse--; | 604 buildCounterPullResponse--; |
| 607 return o; | 605 return o; |
| 608 } | 606 } |
| 609 | 607 |
| 610 checkPullResponse(api.PullResponse o) { | 608 checkPullResponse(api.PullResponse o) { |
| 611 buildCounterPullResponse++; | 609 buildCounterPullResponse++; |
| 612 if (buildCounterPullResponse < 3) { | 610 if (buildCounterPullResponse < 3) { |
| 613 checkUnnamed1682(o.receivedMessages); | 611 checkUnnamed2051(o.receivedMessages); |
| 614 } | 612 } |
| 615 buildCounterPullResponse--; | 613 buildCounterPullResponse--; |
| 616 } | 614 } |
| 617 | 615 |
| 618 buildUnnamed1683() { | 616 buildUnnamed2052() { |
| 619 var o = new core.Map<core.String, core.String>(); | 617 var o = new core.Map<core.String, core.String>(); |
| 620 o["x"] = "foo"; | 618 o["x"] = "foo"; |
| 621 o["y"] = "foo"; | 619 o["y"] = "foo"; |
| 622 return o; | 620 return o; |
| 623 } | 621 } |
| 624 | 622 |
| 625 checkUnnamed1683(core.Map<core.String, core.String> o) { | 623 checkUnnamed2052(core.Map<core.String, core.String> o) { |
| 626 unittest.expect(o, unittest.hasLength(2)); | 624 unittest.expect(o, unittest.hasLength(2)); |
| 627 unittest.expect(o["x"], unittest.equals('foo')); | 625 unittest.expect(o["x"], unittest.equals('foo')); |
| 628 unittest.expect(o["y"], unittest.equals('foo')); | 626 unittest.expect(o["y"], unittest.equals('foo')); |
| 629 } | 627 } |
| 630 | 628 |
| 631 core.int buildCounterPushConfig = 0; | 629 core.int buildCounterPushConfig = 0; |
| 632 buildPushConfig() { | 630 buildPushConfig() { |
| 633 var o = new api.PushConfig(); | 631 var o = new api.PushConfig(); |
| 634 buildCounterPushConfig++; | 632 buildCounterPushConfig++; |
| 635 if (buildCounterPushConfig < 3) { | 633 if (buildCounterPushConfig < 3) { |
| 636 o.attributes = buildUnnamed1683(); | 634 o.attributes = buildUnnamed2052(); |
| 637 o.pushEndpoint = "foo"; | 635 o.pushEndpoint = "foo"; |
| 638 } | 636 } |
| 639 buildCounterPushConfig--; | 637 buildCounterPushConfig--; |
| 640 return o; | 638 return o; |
| 641 } | 639 } |
| 642 | 640 |
| 643 checkPushConfig(api.PushConfig o) { | 641 checkPushConfig(api.PushConfig o) { |
| 644 buildCounterPushConfig++; | 642 buildCounterPushConfig++; |
| 645 if (buildCounterPushConfig < 3) { | 643 if (buildCounterPushConfig < 3) { |
| 646 checkUnnamed1683(o.attributes); | 644 checkUnnamed2052(o.attributes); |
| 647 unittest.expect(o.pushEndpoint, unittest.equals('foo')); | 645 unittest.expect(o.pushEndpoint, unittest.equals('foo')); |
| 648 } | 646 } |
| 649 buildCounterPushConfig--; | 647 buildCounterPushConfig--; |
| 650 } | 648 } |
| 651 | 649 |
| 652 core.int buildCounterReceivedMessage = 0; | 650 core.int buildCounterReceivedMessage = 0; |
| 653 buildReceivedMessage() { | 651 buildReceivedMessage() { |
| 654 var o = new api.ReceivedMessage(); | 652 var o = new api.ReceivedMessage(); |
| 655 buildCounterReceivedMessage++; | 653 buildCounterReceivedMessage++; |
| 656 if (buildCounterReceivedMessage < 3) { | 654 if (buildCounterReceivedMessage < 3) { |
| 657 o.ackId = "foo"; | 655 o.ackId = "foo"; |
| 658 o.message = buildPubsubMessage(); | 656 o.message = buildPubsubMessage(); |
| 659 } | 657 } |
| 660 buildCounterReceivedMessage--; | 658 buildCounterReceivedMessage--; |
| 661 return o; | 659 return o; |
| 662 } | 660 } |
| 663 | 661 |
| 664 checkReceivedMessage(api.ReceivedMessage o) { | 662 checkReceivedMessage(api.ReceivedMessage o) { |
| 665 buildCounterReceivedMessage++; | 663 buildCounterReceivedMessage++; |
| 666 if (buildCounterReceivedMessage < 3) { | 664 if (buildCounterReceivedMessage < 3) { |
| 667 unittest.expect(o.ackId, unittest.equals('foo')); | 665 unittest.expect(o.ackId, unittest.equals('foo')); |
| 668 checkPubsubMessage(o.message); | 666 checkPubsubMessage(o.message); |
| 669 } | 667 } |
| 670 buildCounterReceivedMessage--; | 668 buildCounterReceivedMessage--; |
| 671 } | 669 } |
| 672 | 670 |
| 673 buildUnnamed1684() { | 671 buildUnnamed2053() { |
| 674 var o = new core.List<api.Condition>(); | 672 var o = new core.List<api.Condition>(); |
| 675 o.add(buildCondition()); | 673 o.add(buildCondition()); |
| 676 o.add(buildCondition()); | 674 o.add(buildCondition()); |
| 677 return o; | 675 return o; |
| 678 } | 676 } |
| 679 | 677 |
| 680 checkUnnamed1684(core.List<api.Condition> o) { | 678 checkUnnamed2053(core.List<api.Condition> o) { |
| 681 unittest.expect(o, unittest.hasLength(2)); | 679 unittest.expect(o, unittest.hasLength(2)); |
| 682 checkCondition(o[0]); | 680 checkCondition(o[0]); |
| 683 checkCondition(o[1]); | 681 checkCondition(o[1]); |
| 684 } | 682 } |
| 685 | 683 |
| 686 buildUnnamed1685() { | 684 buildUnnamed2054() { |
| 687 var o = new core.List<core.String>(); | 685 var o = new core.List<core.String>(); |
| 688 o.add("foo"); | 686 o.add("foo"); |
| 689 o.add("foo"); | 687 o.add("foo"); |
| 690 return o; | 688 return o; |
| 691 } | 689 } |
| 692 | 690 |
| 693 checkUnnamed1685(core.List<core.String> o) { | 691 checkUnnamed2054(core.List<core.String> o) { |
| 694 unittest.expect(o, unittest.hasLength(2)); | 692 unittest.expect(o, unittest.hasLength(2)); |
| 695 unittest.expect(o[0], unittest.equals('foo')); | 693 unittest.expect(o[0], unittest.equals('foo')); |
| 696 unittest.expect(o[1], unittest.equals('foo')); | 694 unittest.expect(o[1], unittest.equals('foo')); |
| 697 } | 695 } |
| 698 | 696 |
| 699 buildUnnamed1686() { | 697 buildUnnamed2055() { |
| 700 var o = new core.List<api.LogConfig>(); | 698 var o = new core.List<api.LogConfig>(); |
| 701 o.add(buildLogConfig()); | 699 o.add(buildLogConfig()); |
| 702 o.add(buildLogConfig()); | 700 o.add(buildLogConfig()); |
| 703 return o; | 701 return o; |
| 704 } | 702 } |
| 705 | 703 |
| 706 checkUnnamed1686(core.List<api.LogConfig> o) { | 704 checkUnnamed2055(core.List<api.LogConfig> o) { |
| 707 unittest.expect(o, unittest.hasLength(2)); | 705 unittest.expect(o, unittest.hasLength(2)); |
| 708 checkLogConfig(o[0]); | 706 checkLogConfig(o[0]); |
| 709 checkLogConfig(o[1]); | 707 checkLogConfig(o[1]); |
| 710 } | 708 } |
| 711 | 709 |
| 712 buildUnnamed1687() { | 710 buildUnnamed2056() { |
| 713 var o = new core.List<core.String>(); | 711 var o = new core.List<core.String>(); |
| 714 o.add("foo"); | 712 o.add("foo"); |
| 715 o.add("foo"); | 713 o.add("foo"); |
| 716 return o; | 714 return o; |
| 717 } | 715 } |
| 718 | 716 |
| 719 checkUnnamed1687(core.List<core.String> o) { | 717 checkUnnamed2056(core.List<core.String> o) { |
| 720 unittest.expect(o, unittest.hasLength(2)); | 718 unittest.expect(o, unittest.hasLength(2)); |
| 721 unittest.expect(o[0], unittest.equals('foo')); | 719 unittest.expect(o[0], unittest.equals('foo')); |
| 722 unittest.expect(o[1], unittest.equals('foo')); | 720 unittest.expect(o[1], unittest.equals('foo')); |
| 723 } | 721 } |
| 724 | 722 |
| 725 buildUnnamed1688() { | 723 buildUnnamed2057() { |
| 726 var o = new core.List<core.String>(); | 724 var o = new core.List<core.String>(); |
| 727 o.add("foo"); | 725 o.add("foo"); |
| 728 o.add("foo"); | 726 o.add("foo"); |
| 729 return o; | 727 return o; |
| 730 } | 728 } |
| 731 | 729 |
| 732 checkUnnamed1688(core.List<core.String> o) { | 730 checkUnnamed2057(core.List<core.String> o) { |
| 733 unittest.expect(o, unittest.hasLength(2)); | 731 unittest.expect(o, unittest.hasLength(2)); |
| 734 unittest.expect(o[0], unittest.equals('foo')); | 732 unittest.expect(o[0], unittest.equals('foo')); |
| 735 unittest.expect(o[1], unittest.equals('foo')); | 733 unittest.expect(o[1], unittest.equals('foo')); |
| 736 } | 734 } |
| 737 | 735 |
| 738 core.int buildCounterRule = 0; | 736 core.int buildCounterRule = 0; |
| 739 buildRule() { | 737 buildRule() { |
| 740 var o = new api.Rule(); | 738 var o = new api.Rule(); |
| 741 buildCounterRule++; | 739 buildCounterRule++; |
| 742 if (buildCounterRule < 3) { | 740 if (buildCounterRule < 3) { |
| 743 o.action = "foo"; | 741 o.action = "foo"; |
| 744 o.conditions = buildUnnamed1684(); | 742 o.conditions = buildUnnamed2053(); |
| 745 o.description = "foo"; | 743 o.description = "foo"; |
| 746 o.in_ = buildUnnamed1685(); | 744 o.in_ = buildUnnamed2054(); |
| 747 o.logConfig = buildUnnamed1686(); | 745 o.logConfig = buildUnnamed2055(); |
| 748 o.notIn = buildUnnamed1687(); | 746 o.notIn = buildUnnamed2056(); |
| 749 o.permissions = buildUnnamed1688(); | 747 o.permissions = buildUnnamed2057(); |
| 750 } | 748 } |
| 751 buildCounterRule--; | 749 buildCounterRule--; |
| 752 return o; | 750 return o; |
| 753 } | 751 } |
| 754 | 752 |
| 755 checkRule(api.Rule o) { | 753 checkRule(api.Rule o) { |
| 756 buildCounterRule++; | 754 buildCounterRule++; |
| 757 if (buildCounterRule < 3) { | 755 if (buildCounterRule < 3) { |
| 758 unittest.expect(o.action, unittest.equals('foo')); | 756 unittest.expect(o.action, unittest.equals('foo')); |
| 759 checkUnnamed1684(o.conditions); | 757 checkUnnamed2053(o.conditions); |
| 760 unittest.expect(o.description, unittest.equals('foo')); | 758 unittest.expect(o.description, unittest.equals('foo')); |
| 761 checkUnnamed1685(o.in_); | 759 checkUnnamed2054(o.in_); |
| 762 checkUnnamed1686(o.logConfig); | 760 checkUnnamed2055(o.logConfig); |
| 763 checkUnnamed1687(o.notIn); | 761 checkUnnamed2056(o.notIn); |
| 764 checkUnnamed1688(o.permissions); | 762 checkUnnamed2057(o.permissions); |
| 765 } | 763 } |
| 766 buildCounterRule--; | 764 buildCounterRule--; |
| 767 } | 765 } |
| 768 | 766 |
| 769 core.int buildCounterSetIamPolicyRequest = 0; | 767 core.int buildCounterSetIamPolicyRequest = 0; |
| 770 buildSetIamPolicyRequest() { | 768 buildSetIamPolicyRequest() { |
| 771 var o = new api.SetIamPolicyRequest(); | 769 var o = new api.SetIamPolicyRequest(); |
| 772 buildCounterSetIamPolicyRequest++; | 770 buildCounterSetIamPolicyRequest++; |
| 773 if (buildCounterSetIamPolicyRequest < 3) { | 771 if (buildCounterSetIamPolicyRequest < 3) { |
| 774 o.policy = buildPolicy(); | 772 o.policy = buildPolicy(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 803 buildCounterSubscription++; | 801 buildCounterSubscription++; |
| 804 if (buildCounterSubscription < 3) { | 802 if (buildCounterSubscription < 3) { |
| 805 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); | 803 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); |
| 806 unittest.expect(o.name, unittest.equals('foo')); | 804 unittest.expect(o.name, unittest.equals('foo')); |
| 807 checkPushConfig(o.pushConfig); | 805 checkPushConfig(o.pushConfig); |
| 808 unittest.expect(o.topic, unittest.equals('foo')); | 806 unittest.expect(o.topic, unittest.equals('foo')); |
| 809 } | 807 } |
| 810 buildCounterSubscription--; | 808 buildCounterSubscription--; |
| 811 } | 809 } |
| 812 | 810 |
| 813 buildUnnamed1689() { | 811 buildUnnamed2058() { |
| 814 var o = new core.List<core.String>(); | 812 var o = new core.List<core.String>(); |
| 815 o.add("foo"); | 813 o.add("foo"); |
| 816 o.add("foo"); | 814 o.add("foo"); |
| 817 return o; | 815 return o; |
| 818 } | 816 } |
| 819 | 817 |
| 820 checkUnnamed1689(core.List<core.String> o) { | 818 checkUnnamed2058(core.List<core.String> o) { |
| 821 unittest.expect(o, unittest.hasLength(2)); | 819 unittest.expect(o, unittest.hasLength(2)); |
| 822 unittest.expect(o[0], unittest.equals('foo')); | 820 unittest.expect(o[0], unittest.equals('foo')); |
| 823 unittest.expect(o[1], unittest.equals('foo')); | 821 unittest.expect(o[1], unittest.equals('foo')); |
| 824 } | 822 } |
| 825 | 823 |
| 826 core.int buildCounterTestIamPermissionsRequest = 0; | 824 core.int buildCounterTestIamPermissionsRequest = 0; |
| 827 buildTestIamPermissionsRequest() { | 825 buildTestIamPermissionsRequest() { |
| 828 var o = new api.TestIamPermissionsRequest(); | 826 var o = new api.TestIamPermissionsRequest(); |
| 829 buildCounterTestIamPermissionsRequest++; | 827 buildCounterTestIamPermissionsRequest++; |
| 830 if (buildCounterTestIamPermissionsRequest < 3) { | 828 if (buildCounterTestIamPermissionsRequest < 3) { |
| 831 o.permissions = buildUnnamed1689(); | 829 o.permissions = buildUnnamed2058(); |
| 832 } | 830 } |
| 833 buildCounterTestIamPermissionsRequest--; | 831 buildCounterTestIamPermissionsRequest--; |
| 834 return o; | 832 return o; |
| 835 } | 833 } |
| 836 | 834 |
| 837 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 835 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 838 buildCounterTestIamPermissionsRequest++; | 836 buildCounterTestIamPermissionsRequest++; |
| 839 if (buildCounterTestIamPermissionsRequest < 3) { | 837 if (buildCounterTestIamPermissionsRequest < 3) { |
| 840 checkUnnamed1689(o.permissions); | 838 checkUnnamed2058(o.permissions); |
| 841 } | 839 } |
| 842 buildCounterTestIamPermissionsRequest--; | 840 buildCounterTestIamPermissionsRequest--; |
| 843 } | 841 } |
| 844 | 842 |
| 845 buildUnnamed1690() { | 843 buildUnnamed2059() { |
| 846 var o = new core.List<core.String>(); | 844 var o = new core.List<core.String>(); |
| 847 o.add("foo"); | 845 o.add("foo"); |
| 848 o.add("foo"); | 846 o.add("foo"); |
| 849 return o; | 847 return o; |
| 850 } | 848 } |
| 851 | 849 |
| 852 checkUnnamed1690(core.List<core.String> o) { | 850 checkUnnamed2059(core.List<core.String> o) { |
| 853 unittest.expect(o, unittest.hasLength(2)); | 851 unittest.expect(o, unittest.hasLength(2)); |
| 854 unittest.expect(o[0], unittest.equals('foo')); | 852 unittest.expect(o[0], unittest.equals('foo')); |
| 855 unittest.expect(o[1], unittest.equals('foo')); | 853 unittest.expect(o[1], unittest.equals('foo')); |
| 856 } | 854 } |
| 857 | 855 |
| 858 core.int buildCounterTestIamPermissionsResponse = 0; | 856 core.int buildCounterTestIamPermissionsResponse = 0; |
| 859 buildTestIamPermissionsResponse() { | 857 buildTestIamPermissionsResponse() { |
| 860 var o = new api.TestIamPermissionsResponse(); | 858 var o = new api.TestIamPermissionsResponse(); |
| 861 buildCounterTestIamPermissionsResponse++; | 859 buildCounterTestIamPermissionsResponse++; |
| 862 if (buildCounterTestIamPermissionsResponse < 3) { | 860 if (buildCounterTestIamPermissionsResponse < 3) { |
| 863 o.permissions = buildUnnamed1690(); | 861 o.permissions = buildUnnamed2059(); |
| 864 } | 862 } |
| 865 buildCounterTestIamPermissionsResponse--; | 863 buildCounterTestIamPermissionsResponse--; |
| 866 return o; | 864 return o; |
| 867 } | 865 } |
| 868 | 866 |
| 869 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 867 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 870 buildCounterTestIamPermissionsResponse++; | 868 buildCounterTestIamPermissionsResponse++; |
| 871 if (buildCounterTestIamPermissionsResponse < 3) { | 869 if (buildCounterTestIamPermissionsResponse < 3) { |
| 872 checkUnnamed1690(o.permissions); | 870 checkUnnamed2059(o.permissions); |
| 873 } | 871 } |
| 874 buildCounterTestIamPermissionsResponse--; | 872 buildCounterTestIamPermissionsResponse--; |
| 875 } | 873 } |
| 876 | 874 |
| 877 core.int buildCounterTopic = 0; | 875 core.int buildCounterTopic = 0; |
| 878 buildTopic() { | 876 buildTopic() { |
| 879 var o = new api.Topic(); | 877 var o = new api.Topic(); |
| 880 buildCounterTopic++; | 878 buildCounterTopic++; |
| 881 if (buildCounterTopic < 3) { | 879 if (buildCounterTopic < 3) { |
| 882 o.name = "foo"; | 880 o.name = "foo"; |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1146 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1149 var obj = new api.AcknowledgeRequest.fromJson(json); | 1147 var obj = new api.AcknowledgeRequest.fromJson(json); |
| 1150 checkAcknowledgeRequest(obj); | 1148 checkAcknowledgeRequest(obj); |
| 1151 | 1149 |
| 1152 var path = (req.url).path; | 1150 var path = (req.url).path; |
| 1153 var pathOffset = 0; | 1151 var pathOffset = 0; |
| 1154 var index; | 1152 var index; |
| 1155 var subPart; | 1153 var subPart; |
| 1156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1154 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1157 pathOffset += 1; | 1155 pathOffset += 1; |
| 1158 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1156 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1159 pathOffset += 8; | 1157 pathOffset += 3; |
| 1160 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1158 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1161 | 1159 |
| 1162 var query = (req.url).query; | 1160 var query = (req.url).query; |
| 1163 var queryOffset = 0; | 1161 var queryOffset = 0; |
| 1164 var queryMap = {}; | 1162 var queryMap = {}; |
| 1165 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1163 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1166 parseBool(n) { | 1164 parseBool(n) { |
| 1167 if (n == "true") return true; | 1165 if (n == "true") return true; |
| 1168 if (n == "false") return false; | 1166 if (n == "false") return false; |
| 1169 if (n == null) return null; | 1167 if (n == null) return null; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1197 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1195 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1198 var obj = new api.Subscription.fromJson(json); | 1196 var obj = new api.Subscription.fromJson(json); |
| 1199 checkSubscription(obj); | 1197 checkSubscription(obj); |
| 1200 | 1198 |
| 1201 var path = (req.url).path; | 1199 var path = (req.url).path; |
| 1202 var pathOffset = 0; | 1200 var pathOffset = 0; |
| 1203 var index; | 1201 var index; |
| 1204 var subPart; | 1202 var subPart; |
| 1205 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1203 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1206 pathOffset += 1; | 1204 pathOffset += 1; |
| 1207 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1205 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1208 pathOffset += 8; | 1206 pathOffset += 3; |
| 1209 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1207 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1210 | 1208 |
| 1211 var query = (req.url).query; | 1209 var query = (req.url).query; |
| 1212 var queryOffset = 0; | 1210 var queryOffset = 0; |
| 1213 var queryMap = {}; | 1211 var queryMap = {}; |
| 1214 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1212 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1215 parseBool(n) { | 1213 parseBool(n) { |
| 1216 if (n == "true") return true; | 1214 if (n == "true") return true; |
| 1217 if (n == "false") return false; | 1215 if (n == "false") return false; |
| 1218 if (n == null) return null; | 1216 if (n == null) return null; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1242 var mock = new HttpServerMock(); | 1240 var mock = new HttpServerMock(); |
| 1243 api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).project
s.subscriptions; | 1241 api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).project
s.subscriptions; |
| 1244 var arg_subscription = "foo"; | 1242 var arg_subscription = "foo"; |
| 1245 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1243 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1246 var path = (req.url).path; | 1244 var path = (req.url).path; |
| 1247 var pathOffset = 0; | 1245 var pathOffset = 0; |
| 1248 var index; | 1246 var index; |
| 1249 var subPart; | 1247 var subPart; |
| 1250 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1248 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1251 pathOffset += 1; | 1249 pathOffset += 1; |
| 1252 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1250 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1253 pathOffset += 8; | 1251 pathOffset += 3; |
| 1254 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1252 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1255 | 1253 |
| 1256 var query = (req.url).query; | 1254 var query = (req.url).query; |
| 1257 var queryOffset = 0; | 1255 var queryOffset = 0; |
| 1258 var queryMap = {}; | 1256 var queryMap = {}; |
| 1259 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1257 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1260 parseBool(n) { | 1258 parseBool(n) { |
| 1261 if (n == "true") return true; | 1259 if (n == "true") return true; |
| 1262 if (n == "false") return false; | 1260 if (n == "false") return false; |
| 1263 if (n == null) return null; | 1261 if (n == null) return null; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1287 var mock = new HttpServerMock(); | 1285 var mock = new HttpServerMock(); |
| 1288 api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).project
s.subscriptions; | 1286 api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).project
s.subscriptions; |
| 1289 var arg_subscription = "foo"; | 1287 var arg_subscription = "foo"; |
| 1290 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1288 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1291 var path = (req.url).path; | 1289 var path = (req.url).path; |
| 1292 var pathOffset = 0; | 1290 var pathOffset = 0; |
| 1293 var index; | 1291 var index; |
| 1294 var subPart; | 1292 var subPart; |
| 1295 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1293 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1296 pathOffset += 1; | 1294 pathOffset += 1; |
| 1297 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1295 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1298 pathOffset += 8; | 1296 pathOffset += 3; |
| 1299 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1297 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1300 | 1298 |
| 1301 var query = (req.url).query; | 1299 var query = (req.url).query; |
| 1302 var queryOffset = 0; | 1300 var queryOffset = 0; |
| 1303 var queryMap = {}; | 1301 var queryMap = {}; |
| 1304 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1302 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1305 parseBool(n) { | 1303 parseBool(n) { |
| 1306 if (n == "true") return true; | 1304 if (n == "true") return true; |
| 1307 if (n == "false") return false; | 1305 if (n == "false") return false; |
| 1308 if (n == null) return null; | 1306 if (n == null) return null; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1332 var mock = new HttpServerMock(); | 1330 var mock = new HttpServerMock(); |
| 1333 api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).project
s.subscriptions; | 1331 api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).project
s.subscriptions; |
| 1334 var arg_resource = "foo"; | 1332 var arg_resource = "foo"; |
| 1335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1333 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1336 var path = (req.url).path; | 1334 var path = (req.url).path; |
| 1337 var pathOffset = 0; | 1335 var pathOffset = 0; |
| 1338 var index; | 1336 var index; |
| 1339 var subPart; | 1337 var subPart; |
| 1340 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1338 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1341 pathOffset += 1; | 1339 pathOffset += 1; |
| 1342 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1340 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1343 pathOffset += 8; | 1341 pathOffset += 3; |
| 1344 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1342 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1345 | 1343 |
| 1346 var query = (req.url).query; | 1344 var query = (req.url).query; |
| 1347 var queryOffset = 0; | 1345 var queryOffset = 0; |
| 1348 var queryMap = {}; | 1346 var queryMap = {}; |
| 1349 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1347 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1350 parseBool(n) { | 1348 parseBool(n) { |
| 1351 if (n == "true") return true; | 1349 if (n == "true") return true; |
| 1352 if (n == "false") return false; | 1350 if (n == "false") return false; |
| 1353 if (n == null) return null; | 1351 if (n == null) return null; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1379 var arg_project = "foo"; | 1377 var arg_project = "foo"; |
| 1380 var arg_pageSize = 42; | 1378 var arg_pageSize = 42; |
| 1381 var arg_pageToken = "foo"; | 1379 var arg_pageToken = "foo"; |
| 1382 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1380 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1383 var path = (req.url).path; | 1381 var path = (req.url).path; |
| 1384 var pathOffset = 0; | 1382 var pathOffset = 0; |
| 1385 var index; | 1383 var index; |
| 1386 var subPart; | 1384 var subPart; |
| 1387 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1385 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1388 pathOffset += 1; | 1386 pathOffset += 1; |
| 1389 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1387 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1390 pathOffset += 8; | 1388 pathOffset += 3; |
| 1391 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1389 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1392 | 1390 |
| 1393 var query = (req.url).query; | 1391 var query = (req.url).query; |
| 1394 var queryOffset = 0; | 1392 var queryOffset = 0; |
| 1395 var queryMap = {}; | 1393 var queryMap = {}; |
| 1396 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1394 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1397 parseBool(n) { | 1395 parseBool(n) { |
| 1398 if (n == "true") return true; | 1396 if (n == "true") return true; |
| 1399 if (n == "false") return false; | 1397 if (n == "false") return false; |
| 1400 if (n == null) return null; | 1398 if (n == null) return null; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1430 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1428 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1431 var obj = new api.ModifyAckDeadlineRequest.fromJson(json); | 1429 var obj = new api.ModifyAckDeadlineRequest.fromJson(json); |
| 1432 checkModifyAckDeadlineRequest(obj); | 1430 checkModifyAckDeadlineRequest(obj); |
| 1433 | 1431 |
| 1434 var path = (req.url).path; | 1432 var path = (req.url).path; |
| 1435 var pathOffset = 0; | 1433 var pathOffset = 0; |
| 1436 var index; | 1434 var index; |
| 1437 var subPart; | 1435 var subPart; |
| 1438 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1439 pathOffset += 1; | 1437 pathOffset += 1; |
| 1440 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1438 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1441 pathOffset += 8; | 1439 pathOffset += 3; |
| 1442 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1440 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1443 | 1441 |
| 1444 var query = (req.url).query; | 1442 var query = (req.url).query; |
| 1445 var queryOffset = 0; | 1443 var queryOffset = 0; |
| 1446 var queryMap = {}; | 1444 var queryMap = {}; |
| 1447 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1445 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1448 parseBool(n) { | 1446 parseBool(n) { |
| 1449 if (n == "true") return true; | 1447 if (n == "true") return true; |
| 1450 if (n == "false") return false; | 1448 if (n == "false") return false; |
| 1451 if (n == null) return null; | 1449 if (n == null) return null; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1479 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1477 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1480 var obj = new api.ModifyPushConfigRequest.fromJson(json); | 1478 var obj = new api.ModifyPushConfigRequest.fromJson(json); |
| 1481 checkModifyPushConfigRequest(obj); | 1479 checkModifyPushConfigRequest(obj); |
| 1482 | 1480 |
| 1483 var path = (req.url).path; | 1481 var path = (req.url).path; |
| 1484 var pathOffset = 0; | 1482 var pathOffset = 0; |
| 1485 var index; | 1483 var index; |
| 1486 var subPart; | 1484 var subPart; |
| 1487 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1488 pathOffset += 1; | 1486 pathOffset += 1; |
| 1489 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1487 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1490 pathOffset += 8; | 1488 pathOffset += 3; |
| 1491 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1489 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1492 | 1490 |
| 1493 var query = (req.url).query; | 1491 var query = (req.url).query; |
| 1494 var queryOffset = 0; | 1492 var queryOffset = 0; |
| 1495 var queryMap = {}; | 1493 var queryMap = {}; |
| 1496 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1494 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1497 parseBool(n) { | 1495 parseBool(n) { |
| 1498 if (n == "true") return true; | 1496 if (n == "true") return true; |
| 1499 if (n == "false") return false; | 1497 if (n == "false") return false; |
| 1500 if (n == null) return null; | 1498 if (n == null) return null; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1528 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1529 var obj = new api.PullRequest.fromJson(json); | 1527 var obj = new api.PullRequest.fromJson(json); |
| 1530 checkPullRequest(obj); | 1528 checkPullRequest(obj); |
| 1531 | 1529 |
| 1532 var path = (req.url).path; | 1530 var path = (req.url).path; |
| 1533 var pathOffset = 0; | 1531 var pathOffset = 0; |
| 1534 var index; | 1532 var index; |
| 1535 var subPart; | 1533 var subPart; |
| 1536 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1537 pathOffset += 1; | 1535 pathOffset += 1; |
| 1538 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1536 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1539 pathOffset += 8; | 1537 pathOffset += 3; |
| 1540 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1538 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1541 | 1539 |
| 1542 var query = (req.url).query; | 1540 var query = (req.url).query; |
| 1543 var queryOffset = 0; | 1541 var queryOffset = 0; |
| 1544 var queryMap = {}; | 1542 var queryMap = {}; |
| 1545 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1543 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1546 parseBool(n) { | 1544 parseBool(n) { |
| 1547 if (n == "true") return true; | 1545 if (n == "true") return true; |
| 1548 if (n == "false") return false; | 1546 if (n == "false") return false; |
| 1549 if (n == null) return null; | 1547 if (n == null) return null; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1577 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1575 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1578 var obj = new api.SetIamPolicyRequest.fromJson(json); | 1576 var obj = new api.SetIamPolicyRequest.fromJson(json); |
| 1579 checkSetIamPolicyRequest(obj); | 1577 checkSetIamPolicyRequest(obj); |
| 1580 | 1578 |
| 1581 var path = (req.url).path; | 1579 var path = (req.url).path; |
| 1582 var pathOffset = 0; | 1580 var pathOffset = 0; |
| 1583 var index; | 1581 var index; |
| 1584 var subPart; | 1582 var subPart; |
| 1585 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1583 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1586 pathOffset += 1; | 1584 pathOffset += 1; |
| 1587 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1585 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1588 pathOffset += 8; | 1586 pathOffset += 3; |
| 1589 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1587 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1590 | 1588 |
| 1591 var query = (req.url).query; | 1589 var query = (req.url).query; |
| 1592 var queryOffset = 0; | 1590 var queryOffset = 0; |
| 1593 var queryMap = {}; | 1591 var queryMap = {}; |
| 1594 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1592 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1595 parseBool(n) { | 1593 parseBool(n) { |
| 1596 if (n == "true") return true; | 1594 if (n == "true") return true; |
| 1597 if (n == "false") return false; | 1595 if (n == "false") return false; |
| 1598 if (n == null) return null; | 1596 if (n == null) return null; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1626 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1624 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1627 var obj = new api.TestIamPermissionsRequest.fromJson(json); | 1625 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
| 1628 checkTestIamPermissionsRequest(obj); | 1626 checkTestIamPermissionsRequest(obj); |
| 1629 | 1627 |
| 1630 var path = (req.url).path; | 1628 var path = (req.url).path; |
| 1631 var pathOffset = 0; | 1629 var pathOffset = 0; |
| 1632 var index; | 1630 var index; |
| 1633 var subPart; | 1631 var subPart; |
| 1634 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1632 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1635 pathOffset += 1; | 1633 pathOffset += 1; |
| 1636 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1634 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1637 pathOffset += 8; | 1635 pathOffset += 3; |
| 1638 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1636 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1639 | 1637 |
| 1640 var query = (req.url).query; | 1638 var query = (req.url).query; |
| 1641 var queryOffset = 0; | 1639 var queryOffset = 0; |
| 1642 var queryMap = {}; | 1640 var queryMap = {}; |
| 1643 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1641 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1644 parseBool(n) { | 1642 parseBool(n) { |
| 1645 if (n == "true") return true; | 1643 if (n == "true") return true; |
| 1646 if (n == "false") return false; | 1644 if (n == "false") return false; |
| 1647 if (n == null) return null; | 1645 if (n == null) return null; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1679 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1677 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1680 var obj = new api.Topic.fromJson(json); | 1678 var obj = new api.Topic.fromJson(json); |
| 1681 checkTopic(obj); | 1679 checkTopic(obj); |
| 1682 | 1680 |
| 1683 var path = (req.url).path; | 1681 var path = (req.url).path; |
| 1684 var pathOffset = 0; | 1682 var pathOffset = 0; |
| 1685 var index; | 1683 var index; |
| 1686 var subPart; | 1684 var subPart; |
| 1687 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1685 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1688 pathOffset += 1; | 1686 pathOffset += 1; |
| 1689 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1687 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1690 pathOffset += 8; | 1688 pathOffset += 3; |
| 1691 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1689 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1692 | 1690 |
| 1693 var query = (req.url).query; | 1691 var query = (req.url).query; |
| 1694 var queryOffset = 0; | 1692 var queryOffset = 0; |
| 1695 var queryMap = {}; | 1693 var queryMap = {}; |
| 1696 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1694 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1697 parseBool(n) { | 1695 parseBool(n) { |
| 1698 if (n == "true") return true; | 1696 if (n == "true") return true; |
| 1699 if (n == "false") return false; | 1697 if (n == "false") return false; |
| 1700 if (n == null) return null; | 1698 if (n == null) return null; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1724 var mock = new HttpServerMock(); | 1722 var mock = new HttpServerMock(); |
| 1725 api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topic
s; | 1723 api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topic
s; |
| 1726 var arg_topic = "foo"; | 1724 var arg_topic = "foo"; |
| 1727 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1725 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1728 var path = (req.url).path; | 1726 var path = (req.url).path; |
| 1729 var pathOffset = 0; | 1727 var pathOffset = 0; |
| 1730 var index; | 1728 var index; |
| 1731 var subPart; | 1729 var subPart; |
| 1732 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1730 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1733 pathOffset += 1; | 1731 pathOffset += 1; |
| 1734 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1732 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1735 pathOffset += 8; | 1733 pathOffset += 3; |
| 1736 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1734 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1737 | 1735 |
| 1738 var query = (req.url).query; | 1736 var query = (req.url).query; |
| 1739 var queryOffset = 0; | 1737 var queryOffset = 0; |
| 1740 var queryMap = {}; | 1738 var queryMap = {}; |
| 1741 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1739 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1742 parseBool(n) { | 1740 parseBool(n) { |
| 1743 if (n == "true") return true; | 1741 if (n == "true") return true; |
| 1744 if (n == "false") return false; | 1742 if (n == "false") return false; |
| 1745 if (n == null) return null; | 1743 if (n == null) return null; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1769 var mock = new HttpServerMock(); | 1767 var mock = new HttpServerMock(); |
| 1770 api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topic
s; | 1768 api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topic
s; |
| 1771 var arg_topic = "foo"; | 1769 var arg_topic = "foo"; |
| 1772 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1770 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1773 var path = (req.url).path; | 1771 var path = (req.url).path; |
| 1774 var pathOffset = 0; | 1772 var pathOffset = 0; |
| 1775 var index; | 1773 var index; |
| 1776 var subPart; | 1774 var subPart; |
| 1777 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1775 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1778 pathOffset += 1; | 1776 pathOffset += 1; |
| 1779 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1777 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1780 pathOffset += 8; | 1778 pathOffset += 3; |
| 1781 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1779 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1782 | 1780 |
| 1783 var query = (req.url).query; | 1781 var query = (req.url).query; |
| 1784 var queryOffset = 0; | 1782 var queryOffset = 0; |
| 1785 var queryMap = {}; | 1783 var queryMap = {}; |
| 1786 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1784 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1787 parseBool(n) { | 1785 parseBool(n) { |
| 1788 if (n == "true") return true; | 1786 if (n == "true") return true; |
| 1789 if (n == "false") return false; | 1787 if (n == "false") return false; |
| 1790 if (n == null) return null; | 1788 if (n == null) return null; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1814 var mock = new HttpServerMock(); | 1812 var mock = new HttpServerMock(); |
| 1815 api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topic
s; | 1813 api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topic
s; |
| 1816 var arg_resource = "foo"; | 1814 var arg_resource = "foo"; |
| 1817 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1815 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1818 var path = (req.url).path; | 1816 var path = (req.url).path; |
| 1819 var pathOffset = 0; | 1817 var pathOffset = 0; |
| 1820 var index; | 1818 var index; |
| 1821 var subPart; | 1819 var subPart; |
| 1822 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1820 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1823 pathOffset += 1; | 1821 pathOffset += 1; |
| 1824 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1822 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1825 pathOffset += 8; | 1823 pathOffset += 3; |
| 1826 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1824 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1827 | 1825 |
| 1828 var query = (req.url).query; | 1826 var query = (req.url).query; |
| 1829 var queryOffset = 0; | 1827 var queryOffset = 0; |
| 1830 var queryMap = {}; | 1828 var queryMap = {}; |
| 1831 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1829 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1832 parseBool(n) { | 1830 parseBool(n) { |
| 1833 if (n == "true") return true; | 1831 if (n == "true") return true; |
| 1834 if (n == "false") return false; | 1832 if (n == "false") return false; |
| 1835 if (n == null) return null; | 1833 if (n == null) return null; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1861 var arg_project = "foo"; | 1859 var arg_project = "foo"; |
| 1862 var arg_pageSize = 42; | 1860 var arg_pageSize = 42; |
| 1863 var arg_pageToken = "foo"; | 1861 var arg_pageToken = "foo"; |
| 1864 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1862 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1865 var path = (req.url).path; | 1863 var path = (req.url).path; |
| 1866 var pathOffset = 0; | 1864 var pathOffset = 0; |
| 1867 var index; | 1865 var index; |
| 1868 var subPart; | 1866 var subPart; |
| 1869 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1867 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1870 pathOffset += 1; | 1868 pathOffset += 1; |
| 1871 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1869 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1872 pathOffset += 8; | 1870 pathOffset += 3; |
| 1873 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1871 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1874 | 1872 |
| 1875 var query = (req.url).query; | 1873 var query = (req.url).query; |
| 1876 var queryOffset = 0; | 1874 var queryOffset = 0; |
| 1877 var queryMap = {}; | 1875 var queryMap = {}; |
| 1878 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1876 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1879 parseBool(n) { | 1877 parseBool(n) { |
| 1880 if (n == "true") return true; | 1878 if (n == "true") return true; |
| 1881 if (n == "false") return false; | 1879 if (n == "false") return false; |
| 1882 if (n == null) return null; | 1880 if (n == null) return null; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1910 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1913 var obj = new api.PublishRequest.fromJson(json); | 1911 var obj = new api.PublishRequest.fromJson(json); |
| 1914 checkPublishRequest(obj); | 1912 checkPublishRequest(obj); |
| 1915 | 1913 |
| 1916 var path = (req.url).path; | 1914 var path = (req.url).path; |
| 1917 var pathOffset = 0; | 1915 var pathOffset = 0; |
| 1918 var index; | 1916 var index; |
| 1919 var subPart; | 1917 var subPart; |
| 1920 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1918 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1921 pathOffset += 1; | 1919 pathOffset += 1; |
| 1922 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1920 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1923 pathOffset += 8; | 1921 pathOffset += 3; |
| 1924 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1922 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1925 | 1923 |
| 1926 var query = (req.url).query; | 1924 var query = (req.url).query; |
| 1927 var queryOffset = 0; | 1925 var queryOffset = 0; |
| 1928 var queryMap = {}; | 1926 var queryMap = {}; |
| 1929 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1927 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1930 parseBool(n) { | 1928 parseBool(n) { |
| 1931 if (n == "true") return true; | 1929 if (n == "true") return true; |
| 1932 if (n == "false") return false; | 1930 if (n == "false") return false; |
| 1933 if (n == null) return null; | 1931 if (n == null) return null; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1961 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1959 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1962 var obj = new api.SetIamPolicyRequest.fromJson(json); | 1960 var obj = new api.SetIamPolicyRequest.fromJson(json); |
| 1963 checkSetIamPolicyRequest(obj); | 1961 checkSetIamPolicyRequest(obj); |
| 1964 | 1962 |
| 1965 var path = (req.url).path; | 1963 var path = (req.url).path; |
| 1966 var pathOffset = 0; | 1964 var pathOffset = 0; |
| 1967 var index; | 1965 var index; |
| 1968 var subPart; | 1966 var subPart; |
| 1969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1967 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1970 pathOffset += 1; | 1968 pathOffset += 1; |
| 1971 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 1969 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1972 pathOffset += 8; | 1970 pathOffset += 3; |
| 1973 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1971 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1974 | 1972 |
| 1975 var query = (req.url).query; | 1973 var query = (req.url).query; |
| 1976 var queryOffset = 0; | 1974 var queryOffset = 0; |
| 1977 var queryMap = {}; | 1975 var queryMap = {}; |
| 1978 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1976 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1979 parseBool(n) { | 1977 parseBool(n) { |
| 1980 if (n == "true") return true; | 1978 if (n == "true") return true; |
| 1981 if (n == "false") return false; | 1979 if (n == "false") return false; |
| 1982 if (n == null) return null; | 1980 if (n == null) return null; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2010 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2008 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2011 var obj = new api.TestIamPermissionsRequest.fromJson(json); | 2009 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
| 2012 checkTestIamPermissionsRequest(obj); | 2010 checkTestIamPermissionsRequest(obj); |
| 2013 | 2011 |
| 2014 var path = (req.url).path; | 2012 var path = (req.url).path; |
| 2015 var pathOffset = 0; | 2013 var pathOffset = 0; |
| 2016 var index; | 2014 var index; |
| 2017 var subPart; | 2015 var subPart; |
| 2018 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2019 pathOffset += 1; | 2017 pathOffset += 1; |
| 2020 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 2018 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 2021 pathOffset += 8; | 2019 pathOffset += 3; |
| 2022 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2020 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2023 | 2021 |
| 2024 var query = (req.url).query; | 2022 var query = (req.url).query; |
| 2025 var queryOffset = 0; | 2023 var queryOffset = 0; |
| 2026 var queryMap = {}; | 2024 var queryMap = {}; |
| 2027 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2025 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2028 parseBool(n) { | 2026 parseBool(n) { |
| 2029 if (n == "true") return true; | 2027 if (n == "true") return true; |
| 2030 if (n == "false") return false; | 2028 if (n == "false") return false; |
| 2031 if (n == null) return null; | 2029 if (n == null) return null; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2061 var arg_topic = "foo"; | 2059 var arg_topic = "foo"; |
| 2062 var arg_pageSize = 42; | 2060 var arg_pageSize = 42; |
| 2063 var arg_pageToken = "foo"; | 2061 var arg_pageToken = "foo"; |
| 2064 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2062 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2065 var path = (req.url).path; | 2063 var path = (req.url).path; |
| 2066 var pathOffset = 0; | 2064 var pathOffset = 0; |
| 2067 var index; | 2065 var index; |
| 2068 var subPart; | 2066 var subPart; |
| 2069 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2067 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2070 pathOffset += 1; | 2068 pathOffset += 1; |
| 2071 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); | 2069 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 2072 pathOffset += 8; | 2070 pathOffset += 3; |
| 2073 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2071 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2074 | 2072 |
| 2075 var query = (req.url).query; | 2073 var query = (req.url).query; |
| 2076 var queryOffset = 0; | 2074 var queryOffset = 0; |
| 2077 var queryMap = {}; | 2075 var queryMap = {}; |
| 2078 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2076 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2079 parseBool(n) { | 2077 parseBool(n) { |
| 2080 if (n == "true") return true; | 2078 if (n == "true") return true; |
| 2081 if (n == "false") return false; | 2079 if (n == "false") return false; |
| 2082 if (n == null) return null; | 2080 if (n == null) return null; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2101 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) { |
| 2102 checkListTopicSubscriptionsResponse(response); | 2100 checkListTopicSubscriptionsResponse(response); |
| 2103 }))); | 2101 }))); |
| 2104 }); | 2102 }); |
| 2105 | 2103 |
| 2106 }); | 2104 }); |
| 2107 | 2105 |
| 2108 | 2106 |
| 2109 } | 2107 } |
| 2110 | 2108 |
| OLD | NEW |