| OLD | NEW |
| 1 library googleapis.servicecontrol.v1.test; | 1 library googleapis.servicecontrol.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:test/test.dart' as unittest; |
| 11 | 11 |
| 12 import 'package:googleapis/servicecontrol/v1.dart' as api; | 12 import 'package:googleapis/servicecontrol/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; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 } else { | 39 } else { |
| 40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); | 41 return _callback(request, data); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| 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<core.String, core.String> headers, core.String bod
y) { |
| 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 core.int buildCounterAllocateQuotaRequest = 0; | 54 core.int buildCounterAllocateQuotaRequest = 0; |
| 55 buildAllocateQuotaRequest() { | 55 buildAllocateQuotaRequest() { |
| 56 var o = new api.AllocateQuotaRequest(); | 56 var o = new api.AllocateQuotaRequest(); |
| 57 buildCounterAllocateQuotaRequest++; | 57 buildCounterAllocateQuotaRequest++; |
| 58 if (buildCounterAllocateQuotaRequest < 3) { | 58 if (buildCounterAllocateQuotaRequest < 3) { |
| 59 o.allocateOperation = buildQuotaOperation(); | 59 o.allocateOperation = buildQuotaOperation(); |
| 60 o.allocationMode = "foo"; | 60 o.allocationMode = "foo"; |
| 61 o.serviceConfigId = "foo"; | 61 o.serviceConfigId = "foo"; |
| 62 } | 62 } |
| 63 buildCounterAllocateQuotaRequest--; | 63 buildCounterAllocateQuotaRequest--; |
| 64 return o; | 64 return o; |
| 65 } | 65 } |
| 66 | 66 |
| 67 checkAllocateQuotaRequest(api.AllocateQuotaRequest o) { | 67 checkAllocateQuotaRequest(api.AllocateQuotaRequest o) { |
| 68 buildCounterAllocateQuotaRequest++; | 68 buildCounterAllocateQuotaRequest++; |
| 69 if (buildCounterAllocateQuotaRequest < 3) { | 69 if (buildCounterAllocateQuotaRequest < 3) { |
| 70 checkQuotaOperation(o.allocateOperation); | 70 checkQuotaOperation(o.allocateOperation); |
| 71 unittest.expect(o.allocationMode, unittest.equals('foo')); | 71 unittest.expect(o.allocationMode, unittest.equals('foo')); |
| 72 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 72 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 73 } | 73 } |
| 74 buildCounterAllocateQuotaRequest--; | 74 buildCounterAllocateQuotaRequest--; |
| 75 } | 75 } |
| 76 | 76 |
| 77 buildUnnamed1546() { | 77 buildUnnamed1553() { |
| 78 var o = new core.List<api.QuotaError>(); | 78 var o = new core.List<api.QuotaError>(); |
| 79 o.add(buildQuotaError()); | 79 o.add(buildQuotaError()); |
| 80 o.add(buildQuotaError()); | 80 o.add(buildQuotaError()); |
| 81 return o; | 81 return o; |
| 82 } | 82 } |
| 83 | 83 |
| 84 checkUnnamed1546(core.List<api.QuotaError> o) { | 84 checkUnnamed1553(core.List<api.QuotaError> o) { |
| 85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
| 86 checkQuotaError(o[0]); | 86 checkQuotaError(o[0]); |
| 87 checkQuotaError(o[1]); | 87 checkQuotaError(o[1]); |
| 88 } | 88 } |
| 89 | 89 |
| 90 buildUnnamed1547() { | 90 buildUnnamed1554() { |
| 91 var o = new core.List<api.MetricValueSet>(); | 91 var o = new core.List<api.MetricValueSet>(); |
| 92 o.add(buildMetricValueSet()); | 92 o.add(buildMetricValueSet()); |
| 93 o.add(buildMetricValueSet()); | 93 o.add(buildMetricValueSet()); |
| 94 return o; | 94 return o; |
| 95 } | 95 } |
| 96 | 96 |
| 97 checkUnnamed1547(core.List<api.MetricValueSet> o) { | 97 checkUnnamed1554(core.List<api.MetricValueSet> o) { |
| 98 unittest.expect(o, unittest.hasLength(2)); | 98 unittest.expect(o, unittest.hasLength(2)); |
| 99 checkMetricValueSet(o[0]); | 99 checkMetricValueSet(o[0]); |
| 100 checkMetricValueSet(o[1]); | 100 checkMetricValueSet(o[1]); |
| 101 } | 101 } |
| 102 | 102 |
| 103 core.int buildCounterAllocateQuotaResponse = 0; | 103 core.int buildCounterAllocateQuotaResponse = 0; |
| 104 buildAllocateQuotaResponse() { | 104 buildAllocateQuotaResponse() { |
| 105 var o = new api.AllocateQuotaResponse(); | 105 var o = new api.AllocateQuotaResponse(); |
| 106 buildCounterAllocateQuotaResponse++; | 106 buildCounterAllocateQuotaResponse++; |
| 107 if (buildCounterAllocateQuotaResponse < 3) { | 107 if (buildCounterAllocateQuotaResponse < 3) { |
| 108 o.allocateErrors = buildUnnamed1546(); | 108 o.allocateErrors = buildUnnamed1553(); |
| 109 o.operationId = "foo"; | 109 o.operationId = "foo"; |
| 110 o.quotaMetrics = buildUnnamed1547(); | 110 o.quotaMetrics = buildUnnamed1554(); |
| 111 o.serviceConfigId = "foo"; | 111 o.serviceConfigId = "foo"; |
| 112 } | 112 } |
| 113 buildCounterAllocateQuotaResponse--; | 113 buildCounterAllocateQuotaResponse--; |
| 114 return o; | 114 return o; |
| 115 } | 115 } |
| 116 | 116 |
| 117 checkAllocateQuotaResponse(api.AllocateQuotaResponse o) { | 117 checkAllocateQuotaResponse(api.AllocateQuotaResponse o) { |
| 118 buildCounterAllocateQuotaResponse++; | 118 buildCounterAllocateQuotaResponse++; |
| 119 if (buildCounterAllocateQuotaResponse < 3) { | 119 if (buildCounterAllocateQuotaResponse < 3) { |
| 120 checkUnnamed1546(o.allocateErrors); | 120 checkUnnamed1553(o.allocateErrors); |
| 121 unittest.expect(o.operationId, unittest.equals('foo')); | 121 unittest.expect(o.operationId, unittest.equals('foo')); |
| 122 checkUnnamed1547(o.quotaMetrics); | 122 checkUnnamed1554(o.quotaMetrics); |
| 123 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 123 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 124 } | 124 } |
| 125 buildCounterAllocateQuotaResponse--; | 125 buildCounterAllocateQuotaResponse--; |
| 126 } | 126 } |
| 127 | 127 |
| 128 buildUnnamed1548() { | 128 buildUnnamed1555() { |
| 129 var o = new core.List<api.AuthorizationInfo>(); | 129 var o = new core.List<api.AuthorizationInfo>(); |
| 130 o.add(buildAuthorizationInfo()); | 130 o.add(buildAuthorizationInfo()); |
| 131 o.add(buildAuthorizationInfo()); | 131 o.add(buildAuthorizationInfo()); |
| 132 return o; | 132 return o; |
| 133 } | 133 } |
| 134 | 134 |
| 135 checkUnnamed1548(core.List<api.AuthorizationInfo> o) { | 135 checkUnnamed1555(core.List<api.AuthorizationInfo> o) { |
| 136 unittest.expect(o, unittest.hasLength(2)); | 136 unittest.expect(o, unittest.hasLength(2)); |
| 137 checkAuthorizationInfo(o[0]); | 137 checkAuthorizationInfo(o[0]); |
| 138 checkAuthorizationInfo(o[1]); | 138 checkAuthorizationInfo(o[1]); |
| 139 } | 139 } |
| 140 | 140 |
| 141 buildUnnamed1549() { | 141 buildUnnamed1556() { |
| 142 var o = new core.Map<core.String, core.Object>(); | 142 var o = new core.Map<core.String, core.Object>(); |
| 143 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 143 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 144 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 144 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 145 return o; | 145 return o; |
| 146 } | 146 } |
| 147 | 147 |
| 148 checkUnnamed1549(core.Map<core.String, core.Object> o) { | 148 checkUnnamed1556(core.Map<core.String, core.Object> o) { |
| 149 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
| 150 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 150 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 151 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 151 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 152 } | 152 } |
| 153 | 153 |
| 154 buildUnnamed1550() { | 154 buildUnnamed1557() { |
| 155 var o = new core.Map<core.String, core.Object>(); | 155 var o = new core.Map<core.String, core.Object>(); |
| 156 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 156 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 157 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 157 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 158 return o; | 158 return o; |
| 159 } | 159 } |
| 160 | 160 |
| 161 checkUnnamed1550(core.Map<core.String, core.Object> o) { | 161 checkUnnamed1557(core.Map<core.String, core.Object> o) { |
| 162 unittest.expect(o, unittest.hasLength(2)); | 162 unittest.expect(o, unittest.hasLength(2)); |
| 163 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 163 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 164 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 164 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 165 } | 165 } |
| 166 | 166 |
| 167 buildUnnamed1551() { | 167 buildUnnamed1558() { |
| 168 var o = new core.Map<core.String, core.Object>(); | 168 var o = new core.Map<core.String, core.Object>(); |
| 169 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 169 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 170 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 170 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 171 return o; | 171 return o; |
| 172 } | 172 } |
| 173 | 173 |
| 174 checkUnnamed1551(core.Map<core.String, core.Object> o) { | 174 checkUnnamed1558(core.Map<core.String, core.Object> o) { |
| 175 unittest.expect(o, unittest.hasLength(2)); | 175 unittest.expect(o, unittest.hasLength(2)); |
| 176 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 176 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 177 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 177 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 178 } | 178 } |
| 179 | 179 |
| 180 core.int buildCounterAuditLog = 0; | 180 core.int buildCounterAuditLog = 0; |
| 181 buildAuditLog() { | 181 buildAuditLog() { |
| 182 var o = new api.AuditLog(); | 182 var o = new api.AuditLog(); |
| 183 buildCounterAuditLog++; | 183 buildCounterAuditLog++; |
| 184 if (buildCounterAuditLog < 3) { | 184 if (buildCounterAuditLog < 3) { |
| 185 o.authenticationInfo = buildAuthenticationInfo(); | 185 o.authenticationInfo = buildAuthenticationInfo(); |
| 186 o.authorizationInfo = buildUnnamed1548(); | 186 o.authorizationInfo = buildUnnamed1555(); |
| 187 o.methodName = "foo"; | 187 o.methodName = "foo"; |
| 188 o.numResponseItems = "foo"; | 188 o.numResponseItems = "foo"; |
| 189 o.request = buildUnnamed1549(); | 189 o.request = buildUnnamed1556(); |
| 190 o.requestMetadata = buildRequestMetadata(); | 190 o.requestMetadata = buildRequestMetadata(); |
| 191 o.resourceName = "foo"; | 191 o.resourceName = "foo"; |
| 192 o.response = buildUnnamed1550(); | 192 o.response = buildUnnamed1557(); |
| 193 o.serviceData = buildUnnamed1551(); | 193 o.serviceData = buildUnnamed1558(); |
| 194 o.serviceName = "foo"; | 194 o.serviceName = "foo"; |
| 195 o.status = buildStatus(); | 195 o.status = buildStatus(); |
| 196 } | 196 } |
| 197 buildCounterAuditLog--; | 197 buildCounterAuditLog--; |
| 198 return o; | 198 return o; |
| 199 } | 199 } |
| 200 | 200 |
| 201 checkAuditLog(api.AuditLog o) { | 201 checkAuditLog(api.AuditLog o) { |
| 202 buildCounterAuditLog++; | 202 buildCounterAuditLog++; |
| 203 if (buildCounterAuditLog < 3) { | 203 if (buildCounterAuditLog < 3) { |
| 204 checkAuthenticationInfo(o.authenticationInfo); | 204 checkAuthenticationInfo(o.authenticationInfo); |
| 205 checkUnnamed1548(o.authorizationInfo); | 205 checkUnnamed1555(o.authorizationInfo); |
| 206 unittest.expect(o.methodName, unittest.equals('foo')); | 206 unittest.expect(o.methodName, unittest.equals('foo')); |
| 207 unittest.expect(o.numResponseItems, unittest.equals('foo')); | 207 unittest.expect(o.numResponseItems, unittest.equals('foo')); |
| 208 checkUnnamed1549(o.request); | 208 checkUnnamed1556(o.request); |
| 209 checkRequestMetadata(o.requestMetadata); | 209 checkRequestMetadata(o.requestMetadata); |
| 210 unittest.expect(o.resourceName, unittest.equals('foo')); | 210 unittest.expect(o.resourceName, unittest.equals('foo')); |
| 211 checkUnnamed1550(o.response); | 211 checkUnnamed1557(o.response); |
| 212 checkUnnamed1551(o.serviceData); | 212 checkUnnamed1558(o.serviceData); |
| 213 unittest.expect(o.serviceName, unittest.equals('foo')); | 213 unittest.expect(o.serviceName, unittest.equals('foo')); |
| 214 checkStatus(o.status); | 214 checkStatus(o.status); |
| 215 } | 215 } |
| 216 buildCounterAuditLog--; | 216 buildCounterAuditLog--; |
| 217 } | 217 } |
| 218 | 218 |
| 219 core.int buildCounterAuthenticationInfo = 0; | 219 core.int buildCounterAuthenticationInfo = 0; |
| 220 buildAuthenticationInfo() { | 220 buildAuthenticationInfo() { |
| 221 var o = new api.AuthenticationInfo(); | 221 var o = new api.AuthenticationInfo(); |
| 222 buildCounterAuthenticationInfo++; | 222 buildCounterAuthenticationInfo++; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 274 |
| 275 checkCheckError(api.CheckError o) { | 275 checkCheckError(api.CheckError o) { |
| 276 buildCounterCheckError++; | 276 buildCounterCheckError++; |
| 277 if (buildCounterCheckError < 3) { | 277 if (buildCounterCheckError < 3) { |
| 278 unittest.expect(o.code, unittest.equals('foo')); | 278 unittest.expect(o.code, unittest.equals('foo')); |
| 279 unittest.expect(o.detail, unittest.equals('foo')); | 279 unittest.expect(o.detail, unittest.equals('foo')); |
| 280 } | 280 } |
| 281 buildCounterCheckError--; | 281 buildCounterCheckError--; |
| 282 } | 282 } |
| 283 | 283 |
| 284 buildUnnamed1552() { | 284 buildUnnamed1559() { |
| 285 var o = new core.List<core.String>(); | 285 var o = new core.List<core.String>(); |
| 286 o.add("foo"); | 286 o.add("foo"); |
| 287 o.add("foo"); | 287 o.add("foo"); |
| 288 return o; | 288 return o; |
| 289 } | 289 } |
| 290 | 290 |
| 291 checkUnnamed1552(core.List<core.String> o) { | 291 checkUnnamed1559(core.List<core.String> o) { |
| 292 unittest.expect(o, unittest.hasLength(2)); | 292 unittest.expect(o, unittest.hasLength(2)); |
| 293 unittest.expect(o[0], unittest.equals('foo')); | 293 unittest.expect(o[0], unittest.equals('foo')); |
| 294 unittest.expect(o[1], unittest.equals('foo')); | 294 unittest.expect(o[1], unittest.equals('foo')); |
| 295 } | 295 } |
| 296 | 296 |
| 297 core.int buildCounterCheckInfo = 0; | 297 core.int buildCounterCheckInfo = 0; |
| 298 buildCheckInfo() { | 298 buildCheckInfo() { |
| 299 var o = new api.CheckInfo(); | 299 var o = new api.CheckInfo(); |
| 300 buildCounterCheckInfo++; | 300 buildCounterCheckInfo++; |
| 301 if (buildCounterCheckInfo < 3) { | 301 if (buildCounterCheckInfo < 3) { |
| 302 o.unusedArguments = buildUnnamed1552(); | 302 o.unusedArguments = buildUnnamed1559(); |
| 303 } | 303 } |
| 304 buildCounterCheckInfo--; | 304 buildCounterCheckInfo--; |
| 305 return o; | 305 return o; |
| 306 } | 306 } |
| 307 | 307 |
| 308 checkCheckInfo(api.CheckInfo o) { | 308 checkCheckInfo(api.CheckInfo o) { |
| 309 buildCounterCheckInfo++; | 309 buildCounterCheckInfo++; |
| 310 if (buildCounterCheckInfo < 3) { | 310 if (buildCounterCheckInfo < 3) { |
| 311 checkUnnamed1552(o.unusedArguments); | 311 checkUnnamed1559(o.unusedArguments); |
| 312 } | 312 } |
| 313 buildCounterCheckInfo--; | 313 buildCounterCheckInfo--; |
| 314 } | 314 } |
| 315 | 315 |
| 316 core.int buildCounterCheckRequest = 0; | 316 core.int buildCounterCheckRequest = 0; |
| 317 buildCheckRequest() { | 317 buildCheckRequest() { |
| 318 var o = new api.CheckRequest(); | 318 var o = new api.CheckRequest(); |
| 319 buildCounterCheckRequest++; | 319 buildCounterCheckRequest++; |
| 320 if (buildCounterCheckRequest < 3) { | 320 if (buildCounterCheckRequest < 3) { |
| 321 o.operation = buildOperation(); | 321 o.operation = buildOperation(); |
| 322 o.requestProjectSettings = true; | 322 o.requestProjectSettings = true; |
| 323 o.serviceConfigId = "foo"; | 323 o.serviceConfigId = "foo"; |
| 324 o.skipActivationCheck = true; | 324 o.skipActivationCheck = true; |
| 325 } | 325 } |
| 326 buildCounterCheckRequest--; | 326 buildCounterCheckRequest--; |
| 327 return o; | 327 return o; |
| 328 } | 328 } |
| 329 | 329 |
| 330 checkCheckRequest(api.CheckRequest o) { | 330 checkCheckRequest(api.CheckRequest o) { |
| 331 buildCounterCheckRequest++; | 331 buildCounterCheckRequest++; |
| 332 if (buildCounterCheckRequest < 3) { | 332 if (buildCounterCheckRequest < 3) { |
| 333 checkOperation(o.operation); | 333 checkOperation(o.operation); |
| 334 unittest.expect(o.requestProjectSettings, unittest.isTrue); | 334 unittest.expect(o.requestProjectSettings, unittest.isTrue); |
| 335 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 335 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 336 unittest.expect(o.skipActivationCheck, unittest.isTrue); | 336 unittest.expect(o.skipActivationCheck, unittest.isTrue); |
| 337 } | 337 } |
| 338 buildCounterCheckRequest--; | 338 buildCounterCheckRequest--; |
| 339 } | 339 } |
| 340 | 340 |
| 341 buildUnnamed1553() { | 341 buildUnnamed1560() { |
| 342 var o = new core.List<api.CheckError>(); | 342 var o = new core.List<api.CheckError>(); |
| 343 o.add(buildCheckError()); | 343 o.add(buildCheckError()); |
| 344 o.add(buildCheckError()); | 344 o.add(buildCheckError()); |
| 345 return o; | 345 return o; |
| 346 } | 346 } |
| 347 | 347 |
| 348 checkUnnamed1553(core.List<api.CheckError> o) { | 348 checkUnnamed1560(core.List<api.CheckError> o) { |
| 349 unittest.expect(o, unittest.hasLength(2)); | 349 unittest.expect(o, unittest.hasLength(2)); |
| 350 checkCheckError(o[0]); | 350 checkCheckError(o[0]); |
| 351 checkCheckError(o[1]); | 351 checkCheckError(o[1]); |
| 352 } | 352 } |
| 353 | 353 |
| 354 core.int buildCounterCheckResponse = 0; | 354 core.int buildCounterCheckResponse = 0; |
| 355 buildCheckResponse() { | 355 buildCheckResponse() { |
| 356 var o = new api.CheckResponse(); | 356 var o = new api.CheckResponse(); |
| 357 buildCounterCheckResponse++; | 357 buildCounterCheckResponse++; |
| 358 if (buildCounterCheckResponse < 3) { | 358 if (buildCounterCheckResponse < 3) { |
| 359 o.checkErrors = buildUnnamed1553(); | 359 o.checkErrors = buildUnnamed1560(); |
| 360 o.checkInfo = buildCheckInfo(); | 360 o.checkInfo = buildCheckInfo(); |
| 361 o.operationId = "foo"; | 361 o.operationId = "foo"; |
| 362 o.quotaInfo = buildQuotaInfo(); | 362 o.quotaInfo = buildQuotaInfo(); |
| 363 o.serviceConfigId = "foo"; | 363 o.serviceConfigId = "foo"; |
| 364 } | 364 } |
| 365 buildCounterCheckResponse--; | 365 buildCounterCheckResponse--; |
| 366 return o; | 366 return o; |
| 367 } | 367 } |
| 368 | 368 |
| 369 checkCheckResponse(api.CheckResponse o) { | 369 checkCheckResponse(api.CheckResponse o) { |
| 370 buildCounterCheckResponse++; | 370 buildCounterCheckResponse++; |
| 371 if (buildCounterCheckResponse < 3) { | 371 if (buildCounterCheckResponse < 3) { |
| 372 checkUnnamed1553(o.checkErrors); | 372 checkUnnamed1560(o.checkErrors); |
| 373 checkCheckInfo(o.checkInfo); | 373 checkCheckInfo(o.checkInfo); |
| 374 unittest.expect(o.operationId, unittest.equals('foo')); | 374 unittest.expect(o.operationId, unittest.equals('foo')); |
| 375 checkQuotaInfo(o.quotaInfo); | 375 checkQuotaInfo(o.quotaInfo); |
| 376 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 376 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 377 } | 377 } |
| 378 buildCounterCheckResponse--; | 378 buildCounterCheckResponse--; |
| 379 } | 379 } |
| 380 | 380 |
| 381 buildUnnamed1554() { | 381 buildUnnamed1561() { |
| 382 var o = new core.List<core.String>(); | 382 var o = new core.List<core.String>(); |
| 383 o.add("foo"); | 383 o.add("foo"); |
| 384 o.add("foo"); | 384 o.add("foo"); |
| 385 return o; | 385 return o; |
| 386 } | 386 } |
| 387 | 387 |
| 388 checkUnnamed1554(core.List<core.String> o) { | 388 checkUnnamed1561(core.List<core.String> o) { |
| 389 unittest.expect(o, unittest.hasLength(2)); | 389 unittest.expect(o, unittest.hasLength(2)); |
| 390 unittest.expect(o[0], unittest.equals('foo')); | 390 unittest.expect(o[0], unittest.equals('foo')); |
| 391 unittest.expect(o[1], unittest.equals('foo')); | 391 unittest.expect(o[1], unittest.equals('foo')); |
| 392 } | 392 } |
| 393 | 393 |
| 394 core.int buildCounterDistribution = 0; | 394 core.int buildCounterDistribution = 0; |
| 395 buildDistribution() { | 395 buildDistribution() { |
| 396 var o = new api.Distribution(); | 396 var o = new api.Distribution(); |
| 397 buildCounterDistribution++; | 397 buildCounterDistribution++; |
| 398 if (buildCounterDistribution < 3) { | 398 if (buildCounterDistribution < 3) { |
| 399 o.bucketCounts = buildUnnamed1554(); | 399 o.bucketCounts = buildUnnamed1561(); |
| 400 o.count = "foo"; | 400 o.count = "foo"; |
| 401 o.explicitBuckets = buildExplicitBuckets(); | 401 o.explicitBuckets = buildExplicitBuckets(); |
| 402 o.exponentialBuckets = buildExponentialBuckets(); | 402 o.exponentialBuckets = buildExponentialBuckets(); |
| 403 o.linearBuckets = buildLinearBuckets(); | 403 o.linearBuckets = buildLinearBuckets(); |
| 404 o.maximum = 42.0; | 404 o.maximum = 42.0; |
| 405 o.mean = 42.0; | 405 o.mean = 42.0; |
| 406 o.minimum = 42.0; | 406 o.minimum = 42.0; |
| 407 o.sumOfSquaredDeviation = 42.0; | 407 o.sumOfSquaredDeviation = 42.0; |
| 408 } | 408 } |
| 409 buildCounterDistribution--; | 409 buildCounterDistribution--; |
| 410 return o; | 410 return o; |
| 411 } | 411 } |
| 412 | 412 |
| 413 checkDistribution(api.Distribution o) { | 413 checkDistribution(api.Distribution o) { |
| 414 buildCounterDistribution++; | 414 buildCounterDistribution++; |
| 415 if (buildCounterDistribution < 3) { | 415 if (buildCounterDistribution < 3) { |
| 416 checkUnnamed1554(o.bucketCounts); | 416 checkUnnamed1561(o.bucketCounts); |
| 417 unittest.expect(o.count, unittest.equals('foo')); | 417 unittest.expect(o.count, unittest.equals('foo')); |
| 418 checkExplicitBuckets(o.explicitBuckets); | 418 checkExplicitBuckets(o.explicitBuckets); |
| 419 checkExponentialBuckets(o.exponentialBuckets); | 419 checkExponentialBuckets(o.exponentialBuckets); |
| 420 checkLinearBuckets(o.linearBuckets); | 420 checkLinearBuckets(o.linearBuckets); |
| 421 unittest.expect(o.maximum, unittest.equals(42.0)); | 421 unittest.expect(o.maximum, unittest.equals(42.0)); |
| 422 unittest.expect(o.mean, unittest.equals(42.0)); | 422 unittest.expect(o.mean, unittest.equals(42.0)); |
| 423 unittest.expect(o.minimum, unittest.equals(42.0)); | 423 unittest.expect(o.minimum, unittest.equals(42.0)); |
| 424 unittest.expect(o.sumOfSquaredDeviation, unittest.equals(42.0)); | 424 unittest.expect(o.sumOfSquaredDeviation, unittest.equals(42.0)); |
| 425 } | 425 } |
| 426 buildCounterDistribution--; | 426 buildCounterDistribution--; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 440 | 440 |
| 441 checkEndReconciliationRequest(api.EndReconciliationRequest o) { | 441 checkEndReconciliationRequest(api.EndReconciliationRequest o) { |
| 442 buildCounterEndReconciliationRequest++; | 442 buildCounterEndReconciliationRequest++; |
| 443 if (buildCounterEndReconciliationRequest < 3) { | 443 if (buildCounterEndReconciliationRequest < 3) { |
| 444 checkQuotaOperation(o.reconciliationOperation); | 444 checkQuotaOperation(o.reconciliationOperation); |
| 445 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 445 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 446 } | 446 } |
| 447 buildCounterEndReconciliationRequest--; | 447 buildCounterEndReconciliationRequest--; |
| 448 } | 448 } |
| 449 | 449 |
| 450 buildUnnamed1555() { | 450 buildUnnamed1562() { |
| 451 var o = new core.List<api.MetricValueSet>(); | 451 var o = new core.List<api.MetricValueSet>(); |
| 452 o.add(buildMetricValueSet()); | 452 o.add(buildMetricValueSet()); |
| 453 o.add(buildMetricValueSet()); | 453 o.add(buildMetricValueSet()); |
| 454 return o; | 454 return o; |
| 455 } | 455 } |
| 456 | 456 |
| 457 checkUnnamed1555(core.List<api.MetricValueSet> o) { | 457 checkUnnamed1562(core.List<api.MetricValueSet> o) { |
| 458 unittest.expect(o, unittest.hasLength(2)); | 458 unittest.expect(o, unittest.hasLength(2)); |
| 459 checkMetricValueSet(o[0]); | 459 checkMetricValueSet(o[0]); |
| 460 checkMetricValueSet(o[1]); | 460 checkMetricValueSet(o[1]); |
| 461 } | 461 } |
| 462 | 462 |
| 463 buildUnnamed1556() { | 463 buildUnnamed1563() { |
| 464 var o = new core.List<api.QuotaError>(); | 464 var o = new core.List<api.QuotaError>(); |
| 465 o.add(buildQuotaError()); | 465 o.add(buildQuotaError()); |
| 466 o.add(buildQuotaError()); | 466 o.add(buildQuotaError()); |
| 467 return o; | 467 return o; |
| 468 } | 468 } |
| 469 | 469 |
| 470 checkUnnamed1556(core.List<api.QuotaError> o) { | 470 checkUnnamed1563(core.List<api.QuotaError> o) { |
| 471 unittest.expect(o, unittest.hasLength(2)); | 471 unittest.expect(o, unittest.hasLength(2)); |
| 472 checkQuotaError(o[0]); | 472 checkQuotaError(o[0]); |
| 473 checkQuotaError(o[1]); | 473 checkQuotaError(o[1]); |
| 474 } | 474 } |
| 475 | 475 |
| 476 core.int buildCounterEndReconciliationResponse = 0; | 476 core.int buildCounterEndReconciliationResponse = 0; |
| 477 buildEndReconciliationResponse() { | 477 buildEndReconciliationResponse() { |
| 478 var o = new api.EndReconciliationResponse(); | 478 var o = new api.EndReconciliationResponse(); |
| 479 buildCounterEndReconciliationResponse++; | 479 buildCounterEndReconciliationResponse++; |
| 480 if (buildCounterEndReconciliationResponse < 3) { | 480 if (buildCounterEndReconciliationResponse < 3) { |
| 481 o.operationId = "foo"; | 481 o.operationId = "foo"; |
| 482 o.quotaMetrics = buildUnnamed1555(); | 482 o.quotaMetrics = buildUnnamed1562(); |
| 483 o.reconciliationErrors = buildUnnamed1556(); | 483 o.reconciliationErrors = buildUnnamed1563(); |
| 484 o.serviceConfigId = "foo"; | 484 o.serviceConfigId = "foo"; |
| 485 } | 485 } |
| 486 buildCounterEndReconciliationResponse--; | 486 buildCounterEndReconciliationResponse--; |
| 487 return o; | 487 return o; |
| 488 } | 488 } |
| 489 | 489 |
| 490 checkEndReconciliationResponse(api.EndReconciliationResponse o) { | 490 checkEndReconciliationResponse(api.EndReconciliationResponse o) { |
| 491 buildCounterEndReconciliationResponse++; | 491 buildCounterEndReconciliationResponse++; |
| 492 if (buildCounterEndReconciliationResponse < 3) { | 492 if (buildCounterEndReconciliationResponse < 3) { |
| 493 unittest.expect(o.operationId, unittest.equals('foo')); | 493 unittest.expect(o.operationId, unittest.equals('foo')); |
| 494 checkUnnamed1555(o.quotaMetrics); | 494 checkUnnamed1562(o.quotaMetrics); |
| 495 checkUnnamed1556(o.reconciliationErrors); | 495 checkUnnamed1563(o.reconciliationErrors); |
| 496 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 496 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 497 } | 497 } |
| 498 buildCounterEndReconciliationResponse--; | 498 buildCounterEndReconciliationResponse--; |
| 499 } | 499 } |
| 500 | 500 |
| 501 buildUnnamed1557() { | 501 buildUnnamed1564() { |
| 502 var o = new core.List<core.double>(); | 502 var o = new core.List<core.double>(); |
| 503 o.add(42.0); | 503 o.add(42.0); |
| 504 o.add(42.0); | 504 o.add(42.0); |
| 505 return o; | 505 return o; |
| 506 } | 506 } |
| 507 | 507 |
| 508 checkUnnamed1557(core.List<core.double> o) { | 508 checkUnnamed1564(core.List<core.double> o) { |
| 509 unittest.expect(o, unittest.hasLength(2)); | 509 unittest.expect(o, unittest.hasLength(2)); |
| 510 unittest.expect(o[0], unittest.equals(42.0)); | 510 unittest.expect(o[0], unittest.equals(42.0)); |
| 511 unittest.expect(o[1], unittest.equals(42.0)); | 511 unittest.expect(o[1], unittest.equals(42.0)); |
| 512 } | 512 } |
| 513 | 513 |
| 514 core.int buildCounterExplicitBuckets = 0; | 514 core.int buildCounterExplicitBuckets = 0; |
| 515 buildExplicitBuckets() { | 515 buildExplicitBuckets() { |
| 516 var o = new api.ExplicitBuckets(); | 516 var o = new api.ExplicitBuckets(); |
| 517 buildCounterExplicitBuckets++; | 517 buildCounterExplicitBuckets++; |
| 518 if (buildCounterExplicitBuckets < 3) { | 518 if (buildCounterExplicitBuckets < 3) { |
| 519 o.bounds = buildUnnamed1557(); | 519 o.bounds = buildUnnamed1564(); |
| 520 } | 520 } |
| 521 buildCounterExplicitBuckets--; | 521 buildCounterExplicitBuckets--; |
| 522 return o; | 522 return o; |
| 523 } | 523 } |
| 524 | 524 |
| 525 checkExplicitBuckets(api.ExplicitBuckets o) { | 525 checkExplicitBuckets(api.ExplicitBuckets o) { |
| 526 buildCounterExplicitBuckets++; | 526 buildCounterExplicitBuckets++; |
| 527 if (buildCounterExplicitBuckets < 3) { | 527 if (buildCounterExplicitBuckets < 3) { |
| 528 checkUnnamed1557(o.bounds); | 528 checkUnnamed1564(o.bounds); |
| 529 } | 529 } |
| 530 buildCounterExplicitBuckets--; | 530 buildCounterExplicitBuckets--; |
| 531 } | 531 } |
| 532 | 532 |
| 533 core.int buildCounterExponentialBuckets = 0; | 533 core.int buildCounterExponentialBuckets = 0; |
| 534 buildExponentialBuckets() { | 534 buildExponentialBuckets() { |
| 535 var o = new api.ExponentialBuckets(); | 535 var o = new api.ExponentialBuckets(); |
| 536 buildCounterExponentialBuckets++; | 536 buildCounterExponentialBuckets++; |
| 537 if (buildCounterExponentialBuckets < 3) { | 537 if (buildCounterExponentialBuckets < 3) { |
| 538 o.growthFactor = 42.0; | 538 o.growthFactor = 42.0; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 569 checkLinearBuckets(api.LinearBuckets o) { | 569 checkLinearBuckets(api.LinearBuckets o) { |
| 570 buildCounterLinearBuckets++; | 570 buildCounterLinearBuckets++; |
| 571 if (buildCounterLinearBuckets < 3) { | 571 if (buildCounterLinearBuckets < 3) { |
| 572 unittest.expect(o.numFiniteBuckets, unittest.equals(42)); | 572 unittest.expect(o.numFiniteBuckets, unittest.equals(42)); |
| 573 unittest.expect(o.offset, unittest.equals(42.0)); | 573 unittest.expect(o.offset, unittest.equals(42.0)); |
| 574 unittest.expect(o.width, unittest.equals(42.0)); | 574 unittest.expect(o.width, unittest.equals(42.0)); |
| 575 } | 575 } |
| 576 buildCounterLinearBuckets--; | 576 buildCounterLinearBuckets--; |
| 577 } | 577 } |
| 578 | 578 |
| 579 buildUnnamed1558() { | 579 buildUnnamed1565() { |
| 580 var o = new core.Map<core.String, core.String>(); | 580 var o = new core.Map<core.String, core.String>(); |
| 581 o["x"] = "foo"; | 581 o["x"] = "foo"; |
| 582 o["y"] = "foo"; | 582 o["y"] = "foo"; |
| 583 return o; | 583 return o; |
| 584 } | 584 } |
| 585 | 585 |
| 586 checkUnnamed1558(core.Map<core.String, core.String> o) { | 586 checkUnnamed1565(core.Map<core.String, core.String> o) { |
| 587 unittest.expect(o, unittest.hasLength(2)); | 587 unittest.expect(o, unittest.hasLength(2)); |
| 588 unittest.expect(o["x"], unittest.equals('foo')); | 588 unittest.expect(o["x"], unittest.equals('foo')); |
| 589 unittest.expect(o["y"], unittest.equals('foo')); | 589 unittest.expect(o["y"], unittest.equals('foo')); |
| 590 } | 590 } |
| 591 | 591 |
| 592 buildUnnamed1559() { | 592 buildUnnamed1566() { |
| 593 var o = new core.Map<core.String, core.Object>(); | 593 var o = new core.Map<core.String, core.Object>(); |
| 594 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 594 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 595 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 595 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 596 return o; | 596 return o; |
| 597 } | 597 } |
| 598 | 598 |
| 599 checkUnnamed1559(core.Map<core.String, core.Object> o) { | 599 checkUnnamed1566(core.Map<core.String, core.Object> o) { |
| 600 unittest.expect(o, unittest.hasLength(2)); | 600 unittest.expect(o, unittest.hasLength(2)); |
| 601 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 601 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
| 602 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 602 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
| 603 } | 603 } |
| 604 | 604 |
| 605 buildUnnamed1560() { | 605 buildUnnamed1567() { |
| 606 var o = new core.Map<core.String, core.Object>(); | 606 var o = new core.Map<core.String, core.Object>(); |
| 607 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 607 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 608 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 608 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 609 return o; | 609 return o; |
| 610 } | 610 } |
| 611 | 611 |
| 612 checkUnnamed1560(core.Map<core.String, core.Object> o) { | 612 checkUnnamed1567(core.Map<core.String, core.Object> o) { |
| 613 unittest.expect(o, unittest.hasLength(2)); | 613 unittest.expect(o, unittest.hasLength(2)); |
| 614 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); | 614 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); |
| 615 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); | 615 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); |
| 616 } | 616 } |
| 617 | 617 |
| 618 core.int buildCounterLogEntry = 0; | 618 core.int buildCounterLogEntry = 0; |
| 619 buildLogEntry() { | 619 buildLogEntry() { |
| 620 var o = new api.LogEntry(); | 620 var o = new api.LogEntry(); |
| 621 buildCounterLogEntry++; | 621 buildCounterLogEntry++; |
| 622 if (buildCounterLogEntry < 3) { | 622 if (buildCounterLogEntry < 3) { |
| 623 o.insertId = "foo"; | 623 o.insertId = "foo"; |
| 624 o.labels = buildUnnamed1558(); | 624 o.labels = buildUnnamed1565(); |
| 625 o.name = "foo"; | 625 o.name = "foo"; |
| 626 o.protoPayload = buildUnnamed1559(); | 626 o.protoPayload = buildUnnamed1566(); |
| 627 o.severity = "foo"; | 627 o.severity = "foo"; |
| 628 o.structPayload = buildUnnamed1560(); | 628 o.structPayload = buildUnnamed1567(); |
| 629 o.textPayload = "foo"; | 629 o.textPayload = "foo"; |
| 630 o.timestamp = "foo"; | 630 o.timestamp = "foo"; |
| 631 } | 631 } |
| 632 buildCounterLogEntry--; | 632 buildCounterLogEntry--; |
| 633 return o; | 633 return o; |
| 634 } | 634 } |
| 635 | 635 |
| 636 checkLogEntry(api.LogEntry o) { | 636 checkLogEntry(api.LogEntry o) { |
| 637 buildCounterLogEntry++; | 637 buildCounterLogEntry++; |
| 638 if (buildCounterLogEntry < 3) { | 638 if (buildCounterLogEntry < 3) { |
| 639 unittest.expect(o.insertId, unittest.equals('foo')); | 639 unittest.expect(o.insertId, unittest.equals('foo')); |
| 640 checkUnnamed1558(o.labels); | 640 checkUnnamed1565(o.labels); |
| 641 unittest.expect(o.name, unittest.equals('foo')); | 641 unittest.expect(o.name, unittest.equals('foo')); |
| 642 checkUnnamed1559(o.protoPayload); | 642 checkUnnamed1566(o.protoPayload); |
| 643 unittest.expect(o.severity, unittest.equals('foo')); | 643 unittest.expect(o.severity, unittest.equals('foo')); |
| 644 checkUnnamed1560(o.structPayload); | 644 checkUnnamed1567(o.structPayload); |
| 645 unittest.expect(o.textPayload, unittest.equals('foo')); | 645 unittest.expect(o.textPayload, unittest.equals('foo')); |
| 646 unittest.expect(o.timestamp, unittest.equals('foo')); | 646 unittest.expect(o.timestamp, unittest.equals('foo')); |
| 647 } | 647 } |
| 648 buildCounterLogEntry--; | 648 buildCounterLogEntry--; |
| 649 } | 649 } |
| 650 | 650 |
| 651 buildUnnamed1561() { | 651 buildUnnamed1568() { |
| 652 var o = new core.Map<core.String, core.String>(); | 652 var o = new core.Map<core.String, core.String>(); |
| 653 o["x"] = "foo"; | 653 o["x"] = "foo"; |
| 654 o["y"] = "foo"; | 654 o["y"] = "foo"; |
| 655 return o; | 655 return o; |
| 656 } | 656 } |
| 657 | 657 |
| 658 checkUnnamed1561(core.Map<core.String, core.String> o) { | 658 checkUnnamed1568(core.Map<core.String, core.String> o) { |
| 659 unittest.expect(o, unittest.hasLength(2)); | 659 unittest.expect(o, unittest.hasLength(2)); |
| 660 unittest.expect(o["x"], unittest.equals('foo')); | 660 unittest.expect(o["x"], unittest.equals('foo')); |
| 661 unittest.expect(o["y"], unittest.equals('foo')); | 661 unittest.expect(o["y"], unittest.equals('foo')); |
| 662 } | 662 } |
| 663 | 663 |
| 664 core.int buildCounterMetricValue = 0; | 664 core.int buildCounterMetricValue = 0; |
| 665 buildMetricValue() { | 665 buildMetricValue() { |
| 666 var o = new api.MetricValue(); | 666 var o = new api.MetricValue(); |
| 667 buildCounterMetricValue++; | 667 buildCounterMetricValue++; |
| 668 if (buildCounterMetricValue < 3) { | 668 if (buildCounterMetricValue < 3) { |
| 669 o.boolValue = true; | 669 o.boolValue = true; |
| 670 o.distributionValue = buildDistribution(); | 670 o.distributionValue = buildDistribution(); |
| 671 o.doubleValue = 42.0; | 671 o.doubleValue = 42.0; |
| 672 o.endTime = "foo"; | 672 o.endTime = "foo"; |
| 673 o.int64Value = "foo"; | 673 o.int64Value = "foo"; |
| 674 o.labels = buildUnnamed1561(); | 674 o.labels = buildUnnamed1568(); |
| 675 o.moneyValue = buildMoney(); | 675 o.moneyValue = buildMoney(); |
| 676 o.startTime = "foo"; | 676 o.startTime = "foo"; |
| 677 o.stringValue = "foo"; | 677 o.stringValue = "foo"; |
| 678 } | 678 } |
| 679 buildCounterMetricValue--; | 679 buildCounterMetricValue--; |
| 680 return o; | 680 return o; |
| 681 } | 681 } |
| 682 | 682 |
| 683 checkMetricValue(api.MetricValue o) { | 683 checkMetricValue(api.MetricValue o) { |
| 684 buildCounterMetricValue++; | 684 buildCounterMetricValue++; |
| 685 if (buildCounterMetricValue < 3) { | 685 if (buildCounterMetricValue < 3) { |
| 686 unittest.expect(o.boolValue, unittest.isTrue); | 686 unittest.expect(o.boolValue, unittest.isTrue); |
| 687 checkDistribution(o.distributionValue); | 687 checkDistribution(o.distributionValue); |
| 688 unittest.expect(o.doubleValue, unittest.equals(42.0)); | 688 unittest.expect(o.doubleValue, unittest.equals(42.0)); |
| 689 unittest.expect(o.endTime, unittest.equals('foo')); | 689 unittest.expect(o.endTime, unittest.equals('foo')); |
| 690 unittest.expect(o.int64Value, unittest.equals('foo')); | 690 unittest.expect(o.int64Value, unittest.equals('foo')); |
| 691 checkUnnamed1561(o.labels); | 691 checkUnnamed1568(o.labels); |
| 692 checkMoney(o.moneyValue); | 692 checkMoney(o.moneyValue); |
| 693 unittest.expect(o.startTime, unittest.equals('foo')); | 693 unittest.expect(o.startTime, unittest.equals('foo')); |
| 694 unittest.expect(o.stringValue, unittest.equals('foo')); | 694 unittest.expect(o.stringValue, unittest.equals('foo')); |
| 695 } | 695 } |
| 696 buildCounterMetricValue--; | 696 buildCounterMetricValue--; |
| 697 } | 697 } |
| 698 | 698 |
| 699 buildUnnamed1562() { | 699 buildUnnamed1569() { |
| 700 var o = new core.List<api.MetricValue>(); | 700 var o = new core.List<api.MetricValue>(); |
| 701 o.add(buildMetricValue()); | 701 o.add(buildMetricValue()); |
| 702 o.add(buildMetricValue()); | 702 o.add(buildMetricValue()); |
| 703 return o; | 703 return o; |
| 704 } | 704 } |
| 705 | 705 |
| 706 checkUnnamed1562(core.List<api.MetricValue> o) { | 706 checkUnnamed1569(core.List<api.MetricValue> o) { |
| 707 unittest.expect(o, unittest.hasLength(2)); | 707 unittest.expect(o, unittest.hasLength(2)); |
| 708 checkMetricValue(o[0]); | 708 checkMetricValue(o[0]); |
| 709 checkMetricValue(o[1]); | 709 checkMetricValue(o[1]); |
| 710 } | 710 } |
| 711 | 711 |
| 712 core.int buildCounterMetricValueSet = 0; | 712 core.int buildCounterMetricValueSet = 0; |
| 713 buildMetricValueSet() { | 713 buildMetricValueSet() { |
| 714 var o = new api.MetricValueSet(); | 714 var o = new api.MetricValueSet(); |
| 715 buildCounterMetricValueSet++; | 715 buildCounterMetricValueSet++; |
| 716 if (buildCounterMetricValueSet < 3) { | 716 if (buildCounterMetricValueSet < 3) { |
| 717 o.metricName = "foo"; | 717 o.metricName = "foo"; |
| 718 o.metricValues = buildUnnamed1562(); | 718 o.metricValues = buildUnnamed1569(); |
| 719 } | 719 } |
| 720 buildCounterMetricValueSet--; | 720 buildCounterMetricValueSet--; |
| 721 return o; | 721 return o; |
| 722 } | 722 } |
| 723 | 723 |
| 724 checkMetricValueSet(api.MetricValueSet o) { | 724 checkMetricValueSet(api.MetricValueSet o) { |
| 725 buildCounterMetricValueSet++; | 725 buildCounterMetricValueSet++; |
| 726 if (buildCounterMetricValueSet < 3) { | 726 if (buildCounterMetricValueSet < 3) { |
| 727 unittest.expect(o.metricName, unittest.equals('foo')); | 727 unittest.expect(o.metricName, unittest.equals('foo')); |
| 728 checkUnnamed1562(o.metricValues); | 728 checkUnnamed1569(o.metricValues); |
| 729 } | 729 } |
| 730 buildCounterMetricValueSet--; | 730 buildCounterMetricValueSet--; |
| 731 } | 731 } |
| 732 | 732 |
| 733 core.int buildCounterMoney = 0; | 733 core.int buildCounterMoney = 0; |
| 734 buildMoney() { | 734 buildMoney() { |
| 735 var o = new api.Money(); | 735 var o = new api.Money(); |
| 736 buildCounterMoney++; | 736 buildCounterMoney++; |
| 737 if (buildCounterMoney < 3) { | 737 if (buildCounterMoney < 3) { |
| 738 o.currencyCode = "foo"; | 738 o.currencyCode = "foo"; |
| 739 o.nanos = 42; | 739 o.nanos = 42; |
| 740 o.units = "foo"; | 740 o.units = "foo"; |
| 741 } | 741 } |
| 742 buildCounterMoney--; | 742 buildCounterMoney--; |
| 743 return o; | 743 return o; |
| 744 } | 744 } |
| 745 | 745 |
| 746 checkMoney(api.Money o) { | 746 checkMoney(api.Money o) { |
| 747 buildCounterMoney++; | 747 buildCounterMoney++; |
| 748 if (buildCounterMoney < 3) { | 748 if (buildCounterMoney < 3) { |
| 749 unittest.expect(o.currencyCode, unittest.equals('foo')); | 749 unittest.expect(o.currencyCode, unittest.equals('foo')); |
| 750 unittest.expect(o.nanos, unittest.equals(42)); | 750 unittest.expect(o.nanos, unittest.equals(42)); |
| 751 unittest.expect(o.units, unittest.equals('foo')); | 751 unittest.expect(o.units, unittest.equals('foo')); |
| 752 } | 752 } |
| 753 buildCounterMoney--; | 753 buildCounterMoney--; |
| 754 } | 754 } |
| 755 | 755 |
| 756 buildUnnamed1563() { | 756 buildUnnamed1570() { |
| 757 var o = new core.Map<core.String, core.String>(); | 757 var o = new core.Map<core.String, core.String>(); |
| 758 o["x"] = "foo"; | 758 o["x"] = "foo"; |
| 759 o["y"] = "foo"; | 759 o["y"] = "foo"; |
| 760 return o; | 760 return o; |
| 761 } | 761 } |
| 762 | 762 |
| 763 checkUnnamed1563(core.Map<core.String, core.String> o) { | 763 checkUnnamed1570(core.Map<core.String, core.String> o) { |
| 764 unittest.expect(o, unittest.hasLength(2)); | 764 unittest.expect(o, unittest.hasLength(2)); |
| 765 unittest.expect(o["x"], unittest.equals('foo')); | 765 unittest.expect(o["x"], unittest.equals('foo')); |
| 766 unittest.expect(o["y"], unittest.equals('foo')); | 766 unittest.expect(o["y"], unittest.equals('foo')); |
| 767 } | 767 } |
| 768 | 768 |
| 769 buildUnnamed1564() { | 769 buildUnnamed1571() { |
| 770 var o = new core.List<api.LogEntry>(); | 770 var o = new core.List<api.LogEntry>(); |
| 771 o.add(buildLogEntry()); | 771 o.add(buildLogEntry()); |
| 772 o.add(buildLogEntry()); | 772 o.add(buildLogEntry()); |
| 773 return o; | 773 return o; |
| 774 } | 774 } |
| 775 | 775 |
| 776 checkUnnamed1564(core.List<api.LogEntry> o) { | 776 checkUnnamed1571(core.List<api.LogEntry> o) { |
| 777 unittest.expect(o, unittest.hasLength(2)); | 777 unittest.expect(o, unittest.hasLength(2)); |
| 778 checkLogEntry(o[0]); | 778 checkLogEntry(o[0]); |
| 779 checkLogEntry(o[1]); | 779 checkLogEntry(o[1]); |
| 780 } | 780 } |
| 781 | 781 |
| 782 buildUnnamed1565() { | 782 buildUnnamed1572() { |
| 783 var o = new core.List<api.MetricValueSet>(); | 783 var o = new core.List<api.MetricValueSet>(); |
| 784 o.add(buildMetricValueSet()); | 784 o.add(buildMetricValueSet()); |
| 785 o.add(buildMetricValueSet()); | 785 o.add(buildMetricValueSet()); |
| 786 return o; | 786 return o; |
| 787 } | 787 } |
| 788 | 788 |
| 789 checkUnnamed1565(core.List<api.MetricValueSet> o) { | 789 checkUnnamed1572(core.List<api.MetricValueSet> o) { |
| 790 unittest.expect(o, unittest.hasLength(2)); | 790 unittest.expect(o, unittest.hasLength(2)); |
| 791 checkMetricValueSet(o[0]); | 791 checkMetricValueSet(o[0]); |
| 792 checkMetricValueSet(o[1]); | 792 checkMetricValueSet(o[1]); |
| 793 } | 793 } |
| 794 | 794 |
| 795 buildUnnamed1566() { | 795 buildUnnamed1573() { |
| 796 var o = new core.Map<core.String, core.String>(); | 796 var o = new core.Map<core.String, core.String>(); |
| 797 o["x"] = "foo"; | 797 o["x"] = "foo"; |
| 798 o["y"] = "foo"; | 798 o["y"] = "foo"; |
| 799 return o; | 799 return o; |
| 800 } | 800 } |
| 801 | 801 |
| 802 checkUnnamed1566(core.Map<core.String, core.String> o) { | 802 checkUnnamed1573(core.Map<core.String, core.String> o) { |
| 803 unittest.expect(o, unittest.hasLength(2)); | 803 unittest.expect(o, unittest.hasLength(2)); |
| 804 unittest.expect(o["x"], unittest.equals('foo')); | 804 unittest.expect(o["x"], unittest.equals('foo')); |
| 805 unittest.expect(o["y"], unittest.equals('foo')); | 805 unittest.expect(o["y"], unittest.equals('foo')); |
| 806 } | 806 } |
| 807 | 807 |
| 808 core.int buildCounterOperation = 0; | 808 core.int buildCounterOperation = 0; |
| 809 buildOperation() { | 809 buildOperation() { |
| 810 var o = new api.Operation(); | 810 var o = new api.Operation(); |
| 811 buildCounterOperation++; | 811 buildCounterOperation++; |
| 812 if (buildCounterOperation < 3) { | 812 if (buildCounterOperation < 3) { |
| 813 o.consumerId = "foo"; | 813 o.consumerId = "foo"; |
| 814 o.endTime = "foo"; | 814 o.endTime = "foo"; |
| 815 o.importance = "foo"; | 815 o.importance = "foo"; |
| 816 o.labels = buildUnnamed1563(); | 816 o.labels = buildUnnamed1570(); |
| 817 o.logEntries = buildUnnamed1564(); | 817 o.logEntries = buildUnnamed1571(); |
| 818 o.metricValueSets = buildUnnamed1565(); | 818 o.metricValueSets = buildUnnamed1572(); |
| 819 o.operationId = "foo"; | 819 o.operationId = "foo"; |
| 820 o.operationName = "foo"; | 820 o.operationName = "foo"; |
| 821 o.quotaProperties = buildQuotaProperties(); | 821 o.quotaProperties = buildQuotaProperties(); |
| 822 o.resourceContainer = "foo"; | 822 o.resourceContainer = "foo"; |
| 823 o.startTime = "foo"; | 823 o.startTime = "foo"; |
| 824 o.userLabels = buildUnnamed1566(); | 824 o.userLabels = buildUnnamed1573(); |
| 825 } | 825 } |
| 826 buildCounterOperation--; | 826 buildCounterOperation--; |
| 827 return o; | 827 return o; |
| 828 } | 828 } |
| 829 | 829 |
| 830 checkOperation(api.Operation o) { | 830 checkOperation(api.Operation o) { |
| 831 buildCounterOperation++; | 831 buildCounterOperation++; |
| 832 if (buildCounterOperation < 3) { | 832 if (buildCounterOperation < 3) { |
| 833 unittest.expect(o.consumerId, unittest.equals('foo')); | 833 unittest.expect(o.consumerId, unittest.equals('foo')); |
| 834 unittest.expect(o.endTime, unittest.equals('foo')); | 834 unittest.expect(o.endTime, unittest.equals('foo')); |
| 835 unittest.expect(o.importance, unittest.equals('foo')); | 835 unittest.expect(o.importance, unittest.equals('foo')); |
| 836 checkUnnamed1563(o.labels); | 836 checkUnnamed1570(o.labels); |
| 837 checkUnnamed1564(o.logEntries); | 837 checkUnnamed1571(o.logEntries); |
| 838 checkUnnamed1565(o.metricValueSets); | 838 checkUnnamed1572(o.metricValueSets); |
| 839 unittest.expect(o.operationId, unittest.equals('foo')); | 839 unittest.expect(o.operationId, unittest.equals('foo')); |
| 840 unittest.expect(o.operationName, unittest.equals('foo')); | 840 unittest.expect(o.operationName, unittest.equals('foo')); |
| 841 checkQuotaProperties(o.quotaProperties); | 841 checkQuotaProperties(o.quotaProperties); |
| 842 unittest.expect(o.resourceContainer, unittest.equals('foo')); | 842 unittest.expect(o.resourceContainer, unittest.equals('foo')); |
| 843 unittest.expect(o.startTime, unittest.equals('foo')); | 843 unittest.expect(o.startTime, unittest.equals('foo')); |
| 844 checkUnnamed1566(o.userLabels); | 844 checkUnnamed1573(o.userLabels); |
| 845 } | 845 } |
| 846 buildCounterOperation--; | 846 buildCounterOperation--; |
| 847 } | 847 } |
| 848 | 848 |
| 849 core.int buildCounterQuotaError = 0; | 849 core.int buildCounterQuotaError = 0; |
| 850 buildQuotaError() { | 850 buildQuotaError() { |
| 851 var o = new api.QuotaError(); | 851 var o = new api.QuotaError(); |
| 852 buildCounterQuotaError++; | 852 buildCounterQuotaError++; |
| 853 if (buildCounterQuotaError < 3) { | 853 if (buildCounterQuotaError < 3) { |
| 854 o.code = "foo"; | 854 o.code = "foo"; |
| 855 o.description = "foo"; | 855 o.description = "foo"; |
| 856 o.subject = "foo"; | 856 o.subject = "foo"; |
| 857 } | 857 } |
| 858 buildCounterQuotaError--; | 858 buildCounterQuotaError--; |
| 859 return o; | 859 return o; |
| 860 } | 860 } |
| 861 | 861 |
| 862 checkQuotaError(api.QuotaError o) { | 862 checkQuotaError(api.QuotaError o) { |
| 863 buildCounterQuotaError++; | 863 buildCounterQuotaError++; |
| 864 if (buildCounterQuotaError < 3) { | 864 if (buildCounterQuotaError < 3) { |
| 865 unittest.expect(o.code, unittest.equals('foo')); | 865 unittest.expect(o.code, unittest.equals('foo')); |
| 866 unittest.expect(o.description, unittest.equals('foo')); | 866 unittest.expect(o.description, unittest.equals('foo')); |
| 867 unittest.expect(o.subject, unittest.equals('foo')); | 867 unittest.expect(o.subject, unittest.equals('foo')); |
| 868 } | 868 } |
| 869 buildCounterQuotaError--; | 869 buildCounterQuotaError--; |
| 870 } | 870 } |
| 871 | 871 |
| 872 buildUnnamed1567() { | 872 buildUnnamed1574() { |
| 873 var o = new core.List<core.String>(); | 873 var o = new core.List<core.String>(); |
| 874 o.add("foo"); | 874 o.add("foo"); |
| 875 o.add("foo"); | 875 o.add("foo"); |
| 876 return o; | 876 return o; |
| 877 } | 877 } |
| 878 | 878 |
| 879 checkUnnamed1567(core.List<core.String> o) { | 879 checkUnnamed1574(core.List<core.String> o) { |
| 880 unittest.expect(o, unittest.hasLength(2)); | 880 unittest.expect(o, unittest.hasLength(2)); |
| 881 unittest.expect(o[0], unittest.equals('foo')); | 881 unittest.expect(o[0], unittest.equals('foo')); |
| 882 unittest.expect(o[1], unittest.equals('foo')); | 882 unittest.expect(o[1], unittest.equals('foo')); |
| 883 } | 883 } |
| 884 | 884 |
| 885 buildUnnamed1568() { | 885 buildUnnamed1575() { |
| 886 var o = new core.Map<core.String, core.int>(); | 886 var o = new core.Map<core.String, core.int>(); |
| 887 o["x"] = 42; | 887 o["x"] = 42; |
| 888 o["y"] = 42; | 888 o["y"] = 42; |
| 889 return o; | 889 return o; |
| 890 } | 890 } |
| 891 | 891 |
| 892 checkUnnamed1568(core.Map<core.String, core.int> o) { | 892 checkUnnamed1575(core.Map<core.String, core.int> o) { |
| 893 unittest.expect(o, unittest.hasLength(2)); | 893 unittest.expect(o, unittest.hasLength(2)); |
| 894 unittest.expect(o["x"], unittest.equals(42)); | 894 unittest.expect(o["x"], unittest.equals(42)); |
| 895 unittest.expect(o["y"], unittest.equals(42)); | 895 unittest.expect(o["y"], unittest.equals(42)); |
| 896 } | 896 } |
| 897 | 897 |
| 898 buildUnnamed1569() { | 898 buildUnnamed1576() { |
| 899 var o = new core.List<api.MetricValueSet>(); | 899 var o = new core.List<api.MetricValueSet>(); |
| 900 o.add(buildMetricValueSet()); | 900 o.add(buildMetricValueSet()); |
| 901 o.add(buildMetricValueSet()); | 901 o.add(buildMetricValueSet()); |
| 902 return o; | 902 return o; |
| 903 } | 903 } |
| 904 | 904 |
| 905 checkUnnamed1569(core.List<api.MetricValueSet> o) { | 905 checkUnnamed1576(core.List<api.MetricValueSet> o) { |
| 906 unittest.expect(o, unittest.hasLength(2)); | 906 unittest.expect(o, unittest.hasLength(2)); |
| 907 checkMetricValueSet(o[0]); | 907 checkMetricValueSet(o[0]); |
| 908 checkMetricValueSet(o[1]); | 908 checkMetricValueSet(o[1]); |
| 909 } | 909 } |
| 910 | 910 |
| 911 core.int buildCounterQuotaInfo = 0; | 911 core.int buildCounterQuotaInfo = 0; |
| 912 buildQuotaInfo() { | 912 buildQuotaInfo() { |
| 913 var o = new api.QuotaInfo(); | 913 var o = new api.QuotaInfo(); |
| 914 buildCounterQuotaInfo++; | 914 buildCounterQuotaInfo++; |
| 915 if (buildCounterQuotaInfo < 3) { | 915 if (buildCounterQuotaInfo < 3) { |
| 916 o.limitExceeded = buildUnnamed1567(); | 916 o.limitExceeded = buildUnnamed1574(); |
| 917 o.quotaConsumed = buildUnnamed1568(); | 917 o.quotaConsumed = buildUnnamed1575(); |
| 918 o.quotaMetrics = buildUnnamed1569(); | 918 o.quotaMetrics = buildUnnamed1576(); |
| 919 } | 919 } |
| 920 buildCounterQuotaInfo--; | 920 buildCounterQuotaInfo--; |
| 921 return o; | 921 return o; |
| 922 } | 922 } |
| 923 | 923 |
| 924 checkQuotaInfo(api.QuotaInfo o) { | 924 checkQuotaInfo(api.QuotaInfo o) { |
| 925 buildCounterQuotaInfo++; | 925 buildCounterQuotaInfo++; |
| 926 if (buildCounterQuotaInfo < 3) { | 926 if (buildCounterQuotaInfo < 3) { |
| 927 checkUnnamed1567(o.limitExceeded); | 927 checkUnnamed1574(o.limitExceeded); |
| 928 checkUnnamed1568(o.quotaConsumed); | 928 checkUnnamed1575(o.quotaConsumed); |
| 929 checkUnnamed1569(o.quotaMetrics); | 929 checkUnnamed1576(o.quotaMetrics); |
| 930 } | 930 } |
| 931 buildCounterQuotaInfo--; | 931 buildCounterQuotaInfo--; |
| 932 } | 932 } |
| 933 | 933 |
| 934 buildUnnamed1570() { | 934 buildUnnamed1577() { |
| 935 var o = new core.Map<core.String, core.String>(); | 935 var o = new core.Map<core.String, core.String>(); |
| 936 o["x"] = "foo"; | 936 o["x"] = "foo"; |
| 937 o["y"] = "foo"; | 937 o["y"] = "foo"; |
| 938 return o; | 938 return o; |
| 939 } | 939 } |
| 940 | 940 |
| 941 checkUnnamed1570(core.Map<core.String, core.String> o) { | 941 checkUnnamed1577(core.Map<core.String, core.String> o) { |
| 942 unittest.expect(o, unittest.hasLength(2)); | 942 unittest.expect(o, unittest.hasLength(2)); |
| 943 unittest.expect(o["x"], unittest.equals('foo')); | 943 unittest.expect(o["x"], unittest.equals('foo')); |
| 944 unittest.expect(o["y"], unittest.equals('foo')); | 944 unittest.expect(o["y"], unittest.equals('foo')); |
| 945 } | 945 } |
| 946 | 946 |
| 947 buildUnnamed1571() { | 947 buildUnnamed1578() { |
| 948 var o = new core.List<api.MetricValueSet>(); | 948 var o = new core.List<api.MetricValueSet>(); |
| 949 o.add(buildMetricValueSet()); | 949 o.add(buildMetricValueSet()); |
| 950 o.add(buildMetricValueSet()); | 950 o.add(buildMetricValueSet()); |
| 951 return o; | 951 return o; |
| 952 } | 952 } |
| 953 | 953 |
| 954 checkUnnamed1571(core.List<api.MetricValueSet> o) { | 954 checkUnnamed1578(core.List<api.MetricValueSet> o) { |
| 955 unittest.expect(o, unittest.hasLength(2)); | 955 unittest.expect(o, unittest.hasLength(2)); |
| 956 checkMetricValueSet(o[0]); | 956 checkMetricValueSet(o[0]); |
| 957 checkMetricValueSet(o[1]); | 957 checkMetricValueSet(o[1]); |
| 958 } | 958 } |
| 959 | 959 |
| 960 core.int buildCounterQuotaOperation = 0; | 960 core.int buildCounterQuotaOperation = 0; |
| 961 buildQuotaOperation() { | 961 buildQuotaOperation() { |
| 962 var o = new api.QuotaOperation(); | 962 var o = new api.QuotaOperation(); |
| 963 buildCounterQuotaOperation++; | 963 buildCounterQuotaOperation++; |
| 964 if (buildCounterQuotaOperation < 3) { | 964 if (buildCounterQuotaOperation < 3) { |
| 965 o.consumerId = "foo"; | 965 o.consumerId = "foo"; |
| 966 o.labels = buildUnnamed1570(); | 966 o.labels = buildUnnamed1577(); |
| 967 o.methodName = "foo"; | 967 o.methodName = "foo"; |
| 968 o.operationId = "foo"; | 968 o.operationId = "foo"; |
| 969 o.quotaMetrics = buildUnnamed1571(); | 969 o.quotaMetrics = buildUnnamed1578(); |
| 970 o.quotaMode = "foo"; | 970 o.quotaMode = "foo"; |
| 971 } | 971 } |
| 972 buildCounterQuotaOperation--; | 972 buildCounterQuotaOperation--; |
| 973 return o; | 973 return o; |
| 974 } | 974 } |
| 975 | 975 |
| 976 checkQuotaOperation(api.QuotaOperation o) { | 976 checkQuotaOperation(api.QuotaOperation o) { |
| 977 buildCounterQuotaOperation++; | 977 buildCounterQuotaOperation++; |
| 978 if (buildCounterQuotaOperation < 3) { | 978 if (buildCounterQuotaOperation < 3) { |
| 979 unittest.expect(o.consumerId, unittest.equals('foo')); | 979 unittest.expect(o.consumerId, unittest.equals('foo')); |
| 980 checkUnnamed1570(o.labels); | 980 checkUnnamed1577(o.labels); |
| 981 unittest.expect(o.methodName, unittest.equals('foo')); | 981 unittest.expect(o.methodName, unittest.equals('foo')); |
| 982 unittest.expect(o.operationId, unittest.equals('foo')); | 982 unittest.expect(o.operationId, unittest.equals('foo')); |
| 983 checkUnnamed1571(o.quotaMetrics); | 983 checkUnnamed1578(o.quotaMetrics); |
| 984 unittest.expect(o.quotaMode, unittest.equals('foo')); | 984 unittest.expect(o.quotaMode, unittest.equals('foo')); |
| 985 } | 985 } |
| 986 buildCounterQuotaOperation--; | 986 buildCounterQuotaOperation--; |
| 987 } | 987 } |
| 988 | 988 |
| 989 buildUnnamed1572() { | 989 buildUnnamed1579() { |
| 990 var o = new core.Map<core.String, core.String>(); | 990 var o = new core.Map<core.String, core.String>(); |
| 991 o["x"] = "foo"; | 991 o["x"] = "foo"; |
| 992 o["y"] = "foo"; | 992 o["y"] = "foo"; |
| 993 return o; | 993 return o; |
| 994 } | 994 } |
| 995 | 995 |
| 996 checkUnnamed1572(core.Map<core.String, core.String> o) { | 996 checkUnnamed1579(core.Map<core.String, core.String> o) { |
| 997 unittest.expect(o, unittest.hasLength(2)); | 997 unittest.expect(o, unittest.hasLength(2)); |
| 998 unittest.expect(o["x"], unittest.equals('foo')); | 998 unittest.expect(o["x"], unittest.equals('foo')); |
| 999 unittest.expect(o["y"], unittest.equals('foo')); | 999 unittest.expect(o["y"], unittest.equals('foo')); |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 core.int buildCounterQuotaProperties = 0; | 1002 core.int buildCounterQuotaProperties = 0; |
| 1003 buildQuotaProperties() { | 1003 buildQuotaProperties() { |
| 1004 var o = new api.QuotaProperties(); | 1004 var o = new api.QuotaProperties(); |
| 1005 buildCounterQuotaProperties++; | 1005 buildCounterQuotaProperties++; |
| 1006 if (buildCounterQuotaProperties < 3) { | 1006 if (buildCounterQuotaProperties < 3) { |
| 1007 o.limitByIds = buildUnnamed1572(); | 1007 o.limitByIds = buildUnnamed1579(); |
| 1008 o.quotaMode = "foo"; | 1008 o.quotaMode = "foo"; |
| 1009 } | 1009 } |
| 1010 buildCounterQuotaProperties--; | 1010 buildCounterQuotaProperties--; |
| 1011 return o; | 1011 return o; |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 checkQuotaProperties(api.QuotaProperties o) { | 1014 checkQuotaProperties(api.QuotaProperties o) { |
| 1015 buildCounterQuotaProperties++; | 1015 buildCounterQuotaProperties++; |
| 1016 if (buildCounterQuotaProperties < 3) { | 1016 if (buildCounterQuotaProperties < 3) { |
| 1017 checkUnnamed1572(o.limitByIds); | 1017 checkUnnamed1579(o.limitByIds); |
| 1018 unittest.expect(o.quotaMode, unittest.equals('foo')); | 1018 unittest.expect(o.quotaMode, unittest.equals('foo')); |
| 1019 } | 1019 } |
| 1020 buildCounterQuotaProperties--; | 1020 buildCounterQuotaProperties--; |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 core.int buildCounterReleaseQuotaRequest = 0; | 1023 core.int buildCounterReleaseQuotaRequest = 0; |
| 1024 buildReleaseQuotaRequest() { | 1024 buildReleaseQuotaRequest() { |
| 1025 var o = new api.ReleaseQuotaRequest(); | 1025 var o = new api.ReleaseQuotaRequest(); |
| 1026 buildCounterReleaseQuotaRequest++; | 1026 buildCounterReleaseQuotaRequest++; |
| 1027 if (buildCounterReleaseQuotaRequest < 3) { | 1027 if (buildCounterReleaseQuotaRequest < 3) { |
| 1028 o.releaseOperation = buildQuotaOperation(); | 1028 o.releaseOperation = buildQuotaOperation(); |
| 1029 o.serviceConfigId = "foo"; | 1029 o.serviceConfigId = "foo"; |
| 1030 } | 1030 } |
| 1031 buildCounterReleaseQuotaRequest--; | 1031 buildCounterReleaseQuotaRequest--; |
| 1032 return o; | 1032 return o; |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 checkReleaseQuotaRequest(api.ReleaseQuotaRequest o) { | 1035 checkReleaseQuotaRequest(api.ReleaseQuotaRequest o) { |
| 1036 buildCounterReleaseQuotaRequest++; | 1036 buildCounterReleaseQuotaRequest++; |
| 1037 if (buildCounterReleaseQuotaRequest < 3) { | 1037 if (buildCounterReleaseQuotaRequest < 3) { |
| 1038 checkQuotaOperation(o.releaseOperation); | 1038 checkQuotaOperation(o.releaseOperation); |
| 1039 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 1039 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 1040 } | 1040 } |
| 1041 buildCounterReleaseQuotaRequest--; | 1041 buildCounterReleaseQuotaRequest--; |
| 1042 } | 1042 } |
| 1043 | 1043 |
| 1044 buildUnnamed1573() { | 1044 buildUnnamed1580() { |
| 1045 var o = new core.List<api.MetricValueSet>(); | 1045 var o = new core.List<api.MetricValueSet>(); |
| 1046 o.add(buildMetricValueSet()); | 1046 o.add(buildMetricValueSet()); |
| 1047 o.add(buildMetricValueSet()); | 1047 o.add(buildMetricValueSet()); |
| 1048 return o; | 1048 return o; |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 checkUnnamed1573(core.List<api.MetricValueSet> o) { | 1051 checkUnnamed1580(core.List<api.MetricValueSet> o) { |
| 1052 unittest.expect(o, unittest.hasLength(2)); | 1052 unittest.expect(o, unittest.hasLength(2)); |
| 1053 checkMetricValueSet(o[0]); | 1053 checkMetricValueSet(o[0]); |
| 1054 checkMetricValueSet(o[1]); | 1054 checkMetricValueSet(o[1]); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 buildUnnamed1574() { | 1057 buildUnnamed1581() { |
| 1058 var o = new core.List<api.QuotaError>(); | 1058 var o = new core.List<api.QuotaError>(); |
| 1059 o.add(buildQuotaError()); | 1059 o.add(buildQuotaError()); |
| 1060 o.add(buildQuotaError()); | 1060 o.add(buildQuotaError()); |
| 1061 return o; | 1061 return o; |
| 1062 } | 1062 } |
| 1063 | 1063 |
| 1064 checkUnnamed1574(core.List<api.QuotaError> o) { | 1064 checkUnnamed1581(core.List<api.QuotaError> o) { |
| 1065 unittest.expect(o, unittest.hasLength(2)); | 1065 unittest.expect(o, unittest.hasLength(2)); |
| 1066 checkQuotaError(o[0]); | 1066 checkQuotaError(o[0]); |
| 1067 checkQuotaError(o[1]); | 1067 checkQuotaError(o[1]); |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 core.int buildCounterReleaseQuotaResponse = 0; | 1070 core.int buildCounterReleaseQuotaResponse = 0; |
| 1071 buildReleaseQuotaResponse() { | 1071 buildReleaseQuotaResponse() { |
| 1072 var o = new api.ReleaseQuotaResponse(); | 1072 var o = new api.ReleaseQuotaResponse(); |
| 1073 buildCounterReleaseQuotaResponse++; | 1073 buildCounterReleaseQuotaResponse++; |
| 1074 if (buildCounterReleaseQuotaResponse < 3) { | 1074 if (buildCounterReleaseQuotaResponse < 3) { |
| 1075 o.operationId = "foo"; | 1075 o.operationId = "foo"; |
| 1076 o.quotaMetrics = buildUnnamed1573(); | 1076 o.quotaMetrics = buildUnnamed1580(); |
| 1077 o.releaseErrors = buildUnnamed1574(); | 1077 o.releaseErrors = buildUnnamed1581(); |
| 1078 o.serviceConfigId = "foo"; | 1078 o.serviceConfigId = "foo"; |
| 1079 } | 1079 } |
| 1080 buildCounterReleaseQuotaResponse--; | 1080 buildCounterReleaseQuotaResponse--; |
| 1081 return o; | 1081 return o; |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 checkReleaseQuotaResponse(api.ReleaseQuotaResponse o) { | 1084 checkReleaseQuotaResponse(api.ReleaseQuotaResponse o) { |
| 1085 buildCounterReleaseQuotaResponse++; | 1085 buildCounterReleaseQuotaResponse++; |
| 1086 if (buildCounterReleaseQuotaResponse < 3) { | 1086 if (buildCounterReleaseQuotaResponse < 3) { |
| 1087 unittest.expect(o.operationId, unittest.equals('foo')); | 1087 unittest.expect(o.operationId, unittest.equals('foo')); |
| 1088 checkUnnamed1573(o.quotaMetrics); | 1088 checkUnnamed1580(o.quotaMetrics); |
| 1089 checkUnnamed1574(o.releaseErrors); | 1089 checkUnnamed1581(o.releaseErrors); |
| 1090 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 1090 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 1091 } | 1091 } |
| 1092 buildCounterReleaseQuotaResponse--; | 1092 buildCounterReleaseQuotaResponse--; |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 core.int buildCounterReportError = 0; | 1095 core.int buildCounterReportError = 0; |
| 1096 buildReportError() { | 1096 buildReportError() { |
| 1097 var o = new api.ReportError(); | 1097 var o = new api.ReportError(); |
| 1098 buildCounterReportError++; | 1098 buildCounterReportError++; |
| 1099 if (buildCounterReportError < 3) { | 1099 if (buildCounterReportError < 3) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1127 | 1127 |
| 1128 checkReportInfo(api.ReportInfo o) { | 1128 checkReportInfo(api.ReportInfo o) { |
| 1129 buildCounterReportInfo++; | 1129 buildCounterReportInfo++; |
| 1130 if (buildCounterReportInfo < 3) { | 1130 if (buildCounterReportInfo < 3) { |
| 1131 unittest.expect(o.operationId, unittest.equals('foo')); | 1131 unittest.expect(o.operationId, unittest.equals('foo')); |
| 1132 checkQuotaInfo(o.quotaInfo); | 1132 checkQuotaInfo(o.quotaInfo); |
| 1133 } | 1133 } |
| 1134 buildCounterReportInfo--; | 1134 buildCounterReportInfo--; |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 buildUnnamed1575() { | 1137 buildUnnamed1582() { |
| 1138 var o = new core.List<api.Operation>(); | 1138 var o = new core.List<api.Operation>(); |
| 1139 o.add(buildOperation()); | 1139 o.add(buildOperation()); |
| 1140 o.add(buildOperation()); | 1140 o.add(buildOperation()); |
| 1141 return o; | 1141 return o; |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 checkUnnamed1575(core.List<api.Operation> o) { | 1144 checkUnnamed1582(core.List<api.Operation> o) { |
| 1145 unittest.expect(o, unittest.hasLength(2)); | 1145 unittest.expect(o, unittest.hasLength(2)); |
| 1146 checkOperation(o[0]); | 1146 checkOperation(o[0]); |
| 1147 checkOperation(o[1]); | 1147 checkOperation(o[1]); |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 core.int buildCounterReportRequest = 0; | 1150 core.int buildCounterReportRequest = 0; |
| 1151 buildReportRequest() { | 1151 buildReportRequest() { |
| 1152 var o = new api.ReportRequest(); | 1152 var o = new api.ReportRequest(); |
| 1153 buildCounterReportRequest++; | 1153 buildCounterReportRequest++; |
| 1154 if (buildCounterReportRequest < 3) { | 1154 if (buildCounterReportRequest < 3) { |
| 1155 o.operations = buildUnnamed1575(); | 1155 o.operations = buildUnnamed1582(); |
| 1156 o.serviceConfigId = "foo"; | 1156 o.serviceConfigId = "foo"; |
| 1157 } | 1157 } |
| 1158 buildCounterReportRequest--; | 1158 buildCounterReportRequest--; |
| 1159 return o; | 1159 return o; |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 checkReportRequest(api.ReportRequest o) { | 1162 checkReportRequest(api.ReportRequest o) { |
| 1163 buildCounterReportRequest++; | 1163 buildCounterReportRequest++; |
| 1164 if (buildCounterReportRequest < 3) { | 1164 if (buildCounterReportRequest < 3) { |
| 1165 checkUnnamed1575(o.operations); | 1165 checkUnnamed1582(o.operations); |
| 1166 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 1166 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 1167 } | 1167 } |
| 1168 buildCounterReportRequest--; | 1168 buildCounterReportRequest--; |
| 1169 } | 1169 } |
| 1170 | 1170 |
| 1171 buildUnnamed1576() { | 1171 buildUnnamed1583() { |
| 1172 var o = new core.List<api.ReportError>(); | 1172 var o = new core.List<api.ReportError>(); |
| 1173 o.add(buildReportError()); | 1173 o.add(buildReportError()); |
| 1174 o.add(buildReportError()); | 1174 o.add(buildReportError()); |
| 1175 return o; | 1175 return o; |
| 1176 } | 1176 } |
| 1177 | 1177 |
| 1178 checkUnnamed1576(core.List<api.ReportError> o) { | 1178 checkUnnamed1583(core.List<api.ReportError> o) { |
| 1179 unittest.expect(o, unittest.hasLength(2)); | 1179 unittest.expect(o, unittest.hasLength(2)); |
| 1180 checkReportError(o[0]); | 1180 checkReportError(o[0]); |
| 1181 checkReportError(o[1]); | 1181 checkReportError(o[1]); |
| 1182 } | 1182 } |
| 1183 | 1183 |
| 1184 buildUnnamed1577() { | 1184 buildUnnamed1584() { |
| 1185 var o = new core.List<api.ReportInfo>(); | 1185 var o = new core.List<api.ReportInfo>(); |
| 1186 o.add(buildReportInfo()); | 1186 o.add(buildReportInfo()); |
| 1187 o.add(buildReportInfo()); | 1187 o.add(buildReportInfo()); |
| 1188 return o; | 1188 return o; |
| 1189 } | 1189 } |
| 1190 | 1190 |
| 1191 checkUnnamed1577(core.List<api.ReportInfo> o) { | 1191 checkUnnamed1584(core.List<api.ReportInfo> o) { |
| 1192 unittest.expect(o, unittest.hasLength(2)); | 1192 unittest.expect(o, unittest.hasLength(2)); |
| 1193 checkReportInfo(o[0]); | 1193 checkReportInfo(o[0]); |
| 1194 checkReportInfo(o[1]); | 1194 checkReportInfo(o[1]); |
| 1195 } | 1195 } |
| 1196 | 1196 |
| 1197 core.int buildCounterReportResponse = 0; | 1197 core.int buildCounterReportResponse = 0; |
| 1198 buildReportResponse() { | 1198 buildReportResponse() { |
| 1199 var o = new api.ReportResponse(); | 1199 var o = new api.ReportResponse(); |
| 1200 buildCounterReportResponse++; | 1200 buildCounterReportResponse++; |
| 1201 if (buildCounterReportResponse < 3) { | 1201 if (buildCounterReportResponse < 3) { |
| 1202 o.reportErrors = buildUnnamed1576(); | 1202 o.reportErrors = buildUnnamed1583(); |
| 1203 o.reportInfos = buildUnnamed1577(); | 1203 o.reportInfos = buildUnnamed1584(); |
| 1204 o.serviceConfigId = "foo"; | 1204 o.serviceConfigId = "foo"; |
| 1205 } | 1205 } |
| 1206 buildCounterReportResponse--; | 1206 buildCounterReportResponse--; |
| 1207 return o; | 1207 return o; |
| 1208 } | 1208 } |
| 1209 | 1209 |
| 1210 checkReportResponse(api.ReportResponse o) { | 1210 checkReportResponse(api.ReportResponse o) { |
| 1211 buildCounterReportResponse++; | 1211 buildCounterReportResponse++; |
| 1212 if (buildCounterReportResponse < 3) { | 1212 if (buildCounterReportResponse < 3) { |
| 1213 checkUnnamed1576(o.reportErrors); | 1213 checkUnnamed1583(o.reportErrors); |
| 1214 checkUnnamed1577(o.reportInfos); | 1214 checkUnnamed1584(o.reportInfos); |
| 1215 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 1215 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 1216 } | 1216 } |
| 1217 buildCounterReportResponse--; | 1217 buildCounterReportResponse--; |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 core.int buildCounterRequestMetadata = 0; | 1220 core.int buildCounterRequestMetadata = 0; |
| 1221 buildRequestMetadata() { | 1221 buildRequestMetadata() { |
| 1222 var o = new api.RequestMetadata(); | 1222 var o = new api.RequestMetadata(); |
| 1223 buildCounterRequestMetadata++; | 1223 buildCounterRequestMetadata++; |
| 1224 if (buildCounterRequestMetadata < 3) { | 1224 if (buildCounterRequestMetadata < 3) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1252 | 1252 |
| 1253 checkStartReconciliationRequest(api.StartReconciliationRequest o) { | 1253 checkStartReconciliationRequest(api.StartReconciliationRequest o) { |
| 1254 buildCounterStartReconciliationRequest++; | 1254 buildCounterStartReconciliationRequest++; |
| 1255 if (buildCounterStartReconciliationRequest < 3) { | 1255 if (buildCounterStartReconciliationRequest < 3) { |
| 1256 checkQuotaOperation(o.reconciliationOperation); | 1256 checkQuotaOperation(o.reconciliationOperation); |
| 1257 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 1257 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 1258 } | 1258 } |
| 1259 buildCounterStartReconciliationRequest--; | 1259 buildCounterStartReconciliationRequest--; |
| 1260 } | 1260 } |
| 1261 | 1261 |
| 1262 buildUnnamed1578() { | 1262 buildUnnamed1585() { |
| 1263 var o = new core.List<api.MetricValueSet>(); | 1263 var o = new core.List<api.MetricValueSet>(); |
| 1264 o.add(buildMetricValueSet()); | 1264 o.add(buildMetricValueSet()); |
| 1265 o.add(buildMetricValueSet()); | 1265 o.add(buildMetricValueSet()); |
| 1266 return o; | 1266 return o; |
| 1267 } | 1267 } |
| 1268 | 1268 |
| 1269 checkUnnamed1578(core.List<api.MetricValueSet> o) { | 1269 checkUnnamed1585(core.List<api.MetricValueSet> o) { |
| 1270 unittest.expect(o, unittest.hasLength(2)); | 1270 unittest.expect(o, unittest.hasLength(2)); |
| 1271 checkMetricValueSet(o[0]); | 1271 checkMetricValueSet(o[0]); |
| 1272 checkMetricValueSet(o[1]); | 1272 checkMetricValueSet(o[1]); |
| 1273 } | 1273 } |
| 1274 | 1274 |
| 1275 buildUnnamed1579() { | 1275 buildUnnamed1586() { |
| 1276 var o = new core.List<api.QuotaError>(); | 1276 var o = new core.List<api.QuotaError>(); |
| 1277 o.add(buildQuotaError()); | 1277 o.add(buildQuotaError()); |
| 1278 o.add(buildQuotaError()); | 1278 o.add(buildQuotaError()); |
| 1279 return o; | 1279 return o; |
| 1280 } | 1280 } |
| 1281 | 1281 |
| 1282 checkUnnamed1579(core.List<api.QuotaError> o) { | 1282 checkUnnamed1586(core.List<api.QuotaError> o) { |
| 1283 unittest.expect(o, unittest.hasLength(2)); | 1283 unittest.expect(o, unittest.hasLength(2)); |
| 1284 checkQuotaError(o[0]); | 1284 checkQuotaError(o[0]); |
| 1285 checkQuotaError(o[1]); | 1285 checkQuotaError(o[1]); |
| 1286 } | 1286 } |
| 1287 | 1287 |
| 1288 core.int buildCounterStartReconciliationResponse = 0; | 1288 core.int buildCounterStartReconciliationResponse = 0; |
| 1289 buildStartReconciliationResponse() { | 1289 buildStartReconciliationResponse() { |
| 1290 var o = new api.StartReconciliationResponse(); | 1290 var o = new api.StartReconciliationResponse(); |
| 1291 buildCounterStartReconciliationResponse++; | 1291 buildCounterStartReconciliationResponse++; |
| 1292 if (buildCounterStartReconciliationResponse < 3) { | 1292 if (buildCounterStartReconciliationResponse < 3) { |
| 1293 o.operationId = "foo"; | 1293 o.operationId = "foo"; |
| 1294 o.quotaMetrics = buildUnnamed1578(); | 1294 o.quotaMetrics = buildUnnamed1585(); |
| 1295 o.reconciliationErrors = buildUnnamed1579(); | 1295 o.reconciliationErrors = buildUnnamed1586(); |
| 1296 o.serviceConfigId = "foo"; | 1296 o.serviceConfigId = "foo"; |
| 1297 } | 1297 } |
| 1298 buildCounterStartReconciliationResponse--; | 1298 buildCounterStartReconciliationResponse--; |
| 1299 return o; | 1299 return o; |
| 1300 } | 1300 } |
| 1301 | 1301 |
| 1302 checkStartReconciliationResponse(api.StartReconciliationResponse o) { | 1302 checkStartReconciliationResponse(api.StartReconciliationResponse o) { |
| 1303 buildCounterStartReconciliationResponse++; | 1303 buildCounterStartReconciliationResponse++; |
| 1304 if (buildCounterStartReconciliationResponse < 3) { | 1304 if (buildCounterStartReconciliationResponse < 3) { |
| 1305 unittest.expect(o.operationId, unittest.equals('foo')); | 1305 unittest.expect(o.operationId, unittest.equals('foo')); |
| 1306 checkUnnamed1578(o.quotaMetrics); | 1306 checkUnnamed1585(o.quotaMetrics); |
| 1307 checkUnnamed1579(o.reconciliationErrors); | 1307 checkUnnamed1586(o.reconciliationErrors); |
| 1308 unittest.expect(o.serviceConfigId, unittest.equals('foo')); | 1308 unittest.expect(o.serviceConfigId, unittest.equals('foo')); |
| 1309 } | 1309 } |
| 1310 buildCounterStartReconciliationResponse--; | 1310 buildCounterStartReconciliationResponse--; |
| 1311 } | 1311 } |
| 1312 | 1312 |
| 1313 buildUnnamed1580() { | 1313 buildUnnamed1587() { |
| 1314 var o = new core.Map<core.String, core.Object>(); | 1314 var o = new core.Map<core.String, core.Object>(); |
| 1315 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1315 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1316 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1316 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1317 return o; | 1317 return o; |
| 1318 } | 1318 } |
| 1319 | 1319 |
| 1320 checkUnnamed1580(core.Map<core.String, core.Object> o) { | 1320 checkUnnamed1587(core.Map<core.String, core.Object> o) { |
| 1321 unittest.expect(o, unittest.hasLength(2)); | 1321 unittest.expect(o, unittest.hasLength(2)); |
| 1322 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); | 1322 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); |
| 1323 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen
gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri
ng"], unittest.equals('foo')); | 1323 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen
gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri
ng"], unittest.equals('foo')); |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 buildUnnamed1581() { | 1326 buildUnnamed1588() { |
| 1327 var o = new core.List<core.Map<core.String, core.Object>>(); | 1327 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1328 o.add(buildUnnamed1580()); | 1328 o.add(buildUnnamed1587()); |
| 1329 o.add(buildUnnamed1580()); | 1329 o.add(buildUnnamed1587()); |
| 1330 return o; | 1330 return o; |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 checkUnnamed1581(core.List<core.Map<core.String, core.Object>> o) { | 1333 checkUnnamed1588(core.List<core.Map<core.String, core.Object>> o) { |
| 1334 unittest.expect(o, unittest.hasLength(2)); | 1334 unittest.expect(o, unittest.hasLength(2)); |
| 1335 checkUnnamed1580(o[0]); | 1335 checkUnnamed1587(o[0]); |
| 1336 checkUnnamed1580(o[1]); | 1336 checkUnnamed1587(o[1]); |
| 1337 } | 1337 } |
| 1338 | 1338 |
| 1339 core.int buildCounterStatus = 0; | 1339 core.int buildCounterStatus = 0; |
| 1340 buildStatus() { | 1340 buildStatus() { |
| 1341 var o = new api.Status(); | 1341 var o = new api.Status(); |
| 1342 buildCounterStatus++; | 1342 buildCounterStatus++; |
| 1343 if (buildCounterStatus < 3) { | 1343 if (buildCounterStatus < 3) { |
| 1344 o.code = 42; | 1344 o.code = 42; |
| 1345 o.details = buildUnnamed1581(); | 1345 o.details = buildUnnamed1588(); |
| 1346 o.message = "foo"; | 1346 o.message = "foo"; |
| 1347 } | 1347 } |
| 1348 buildCounterStatus--; | 1348 buildCounterStatus--; |
| 1349 return o; | 1349 return o; |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 checkStatus(api.Status o) { | 1352 checkStatus(api.Status o) { |
| 1353 buildCounterStatus++; | 1353 buildCounterStatus++; |
| 1354 if (buildCounterStatus < 3) { | 1354 if (buildCounterStatus < 3) { |
| 1355 unittest.expect(o.code, unittest.equals(42)); | 1355 unittest.expect(o.code, unittest.equals(42)); |
| 1356 checkUnnamed1581(o.details); | 1356 checkUnnamed1588(o.details); |
| 1357 unittest.expect(o.message, unittest.equals('foo')); | 1357 unittest.expect(o.message, unittest.equals('foo')); |
| 1358 } | 1358 } |
| 1359 buildCounterStatus--; | 1359 buildCounterStatus--; |
| 1360 } | 1360 } |
| 1361 | 1361 |
| 1362 | 1362 |
| 1363 main() { | 1363 main() { |
| 1364 unittest.group("obj-schema-AllocateQuotaRequest", () { | 1364 unittest.group("obj-schema-AllocateQuotaRequest", () { |
| 1365 unittest.test("to-json--from-json", () { | 1365 unittest.test("to-json--from-json", () { |
| 1366 var o = buildAllocateQuotaRequest(); | 1366 var o = buildAllocateQuotaRequest(); |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 }); | 1667 }); |
| 1668 | 1668 |
| 1669 | 1669 |
| 1670 unittest.group("resource-ServicesResourceApi", () { | 1670 unittest.group("resource-ServicesResourceApi", () { |
| 1671 unittest.test("method--allocateQuota", () { | 1671 unittest.test("method--allocateQuota", () { |
| 1672 | 1672 |
| 1673 var mock = new HttpServerMock(); | 1673 var mock = new HttpServerMock(); |
| 1674 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; | 1674 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; |
| 1675 var arg_request = buildAllocateQuotaRequest(); | 1675 var arg_request = buildAllocateQuotaRequest(); |
| 1676 var arg_serviceName = "foo"; | 1676 var arg_serviceName = "foo"; |
| 1677 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1677 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1678 var obj = new api.AllocateQuotaRequest.fromJson(json); | 1678 var obj = new api.AllocateQuotaRequest.fromJson(json); |
| 1679 checkAllocateQuotaRequest(obj); | 1679 checkAllocateQuotaRequest(obj); |
| 1680 | 1680 |
| 1681 var path = (req.url).path; | 1681 var path = (req.url).path; |
| 1682 var pathOffset = 0; | 1682 var pathOffset = 0; |
| 1683 var index; | 1683 var index; |
| 1684 var subPart; | 1684 var subPart; |
| 1685 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1685 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1686 pathOffset += 1; | 1686 pathOffset += 1; |
| 1687 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 1687 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1711 } | 1711 } |
| 1712 } | 1712 } |
| 1713 | 1713 |
| 1714 | 1714 |
| 1715 var h = { | 1715 var h = { |
| 1716 "content-type" : "application/json; charset=utf-8", | 1716 "content-type" : "application/json; charset=utf-8", |
| 1717 }; | 1717 }; |
| 1718 var resp = convert.JSON.encode(buildAllocateQuotaResponse()); | 1718 var resp = convert.JSON.encode(buildAllocateQuotaResponse()); |
| 1719 return new async.Future.value(stringResponse(200, h, resp)); | 1719 return new async.Future.value(stringResponse(200, h, resp)); |
| 1720 }), true); | 1720 }), true); |
| 1721 res.allocateQuota(arg_request, arg_serviceName).then(unittest.expectAsync(
((api.AllocateQuotaResponse response) { | 1721 res.allocateQuota(arg_request, arg_serviceName).then(unittest.expectAsync1
(((api.AllocateQuotaResponse response) { |
| 1722 checkAllocateQuotaResponse(response); | 1722 checkAllocateQuotaResponse(response); |
| 1723 }))); | 1723 }))); |
| 1724 }); | 1724 }); |
| 1725 | 1725 |
| 1726 unittest.test("method--check", () { | 1726 unittest.test("method--check", () { |
| 1727 | 1727 |
| 1728 var mock = new HttpServerMock(); | 1728 var mock = new HttpServerMock(); |
| 1729 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; | 1729 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; |
| 1730 var arg_request = buildCheckRequest(); | 1730 var arg_request = buildCheckRequest(); |
| 1731 var arg_serviceName = "foo"; | 1731 var arg_serviceName = "foo"; |
| 1732 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1732 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1733 var obj = new api.CheckRequest.fromJson(json); | 1733 var obj = new api.CheckRequest.fromJson(json); |
| 1734 checkCheckRequest(obj); | 1734 checkCheckRequest(obj); |
| 1735 | 1735 |
| 1736 var path = (req.url).path; | 1736 var path = (req.url).path; |
| 1737 var pathOffset = 0; | 1737 var pathOffset = 0; |
| 1738 var index; | 1738 var index; |
| 1739 var subPart; | 1739 var subPart; |
| 1740 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1740 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1741 pathOffset += 1; | 1741 pathOffset += 1; |
| 1742 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 1742 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1766 } | 1766 } |
| 1767 } | 1767 } |
| 1768 | 1768 |
| 1769 | 1769 |
| 1770 var h = { | 1770 var h = { |
| 1771 "content-type" : "application/json; charset=utf-8", | 1771 "content-type" : "application/json; charset=utf-8", |
| 1772 }; | 1772 }; |
| 1773 var resp = convert.JSON.encode(buildCheckResponse()); | 1773 var resp = convert.JSON.encode(buildCheckResponse()); |
| 1774 return new async.Future.value(stringResponse(200, h, resp)); | 1774 return new async.Future.value(stringResponse(200, h, resp)); |
| 1775 }), true); | 1775 }), true); |
| 1776 res.check(arg_request, arg_serviceName).then(unittest.expectAsync(((api.Ch
eckResponse response) { | 1776 res.check(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.C
heckResponse response) { |
| 1777 checkCheckResponse(response); | 1777 checkCheckResponse(response); |
| 1778 }))); | 1778 }))); |
| 1779 }); | 1779 }); |
| 1780 | 1780 |
| 1781 unittest.test("method--endReconciliation", () { | 1781 unittest.test("method--endReconciliation", () { |
| 1782 | 1782 |
| 1783 var mock = new HttpServerMock(); | 1783 var mock = new HttpServerMock(); |
| 1784 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; | 1784 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; |
| 1785 var arg_request = buildEndReconciliationRequest(); | 1785 var arg_request = buildEndReconciliationRequest(); |
| 1786 var arg_serviceName = "foo"; | 1786 var arg_serviceName = "foo"; |
| 1787 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1787 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1788 var obj = new api.EndReconciliationRequest.fromJson(json); | 1788 var obj = new api.EndReconciliationRequest.fromJson(json); |
| 1789 checkEndReconciliationRequest(obj); | 1789 checkEndReconciliationRequest(obj); |
| 1790 | 1790 |
| 1791 var path = (req.url).path; | 1791 var path = (req.url).path; |
| 1792 var pathOffset = 0; | 1792 var pathOffset = 0; |
| 1793 var index; | 1793 var index; |
| 1794 var subPart; | 1794 var subPart; |
| 1795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1796 pathOffset += 1; | 1796 pathOffset += 1; |
| 1797 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 1797 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1821 } | 1821 } |
| 1822 } | 1822 } |
| 1823 | 1823 |
| 1824 | 1824 |
| 1825 var h = { | 1825 var h = { |
| 1826 "content-type" : "application/json; charset=utf-8", | 1826 "content-type" : "application/json; charset=utf-8", |
| 1827 }; | 1827 }; |
| 1828 var resp = convert.JSON.encode(buildEndReconciliationResponse()); | 1828 var resp = convert.JSON.encode(buildEndReconciliationResponse()); |
| 1829 return new async.Future.value(stringResponse(200, h, resp)); | 1829 return new async.Future.value(stringResponse(200, h, resp)); |
| 1830 }), true); | 1830 }), true); |
| 1831 res.endReconciliation(arg_request, arg_serviceName).then(unittest.expectAs
ync(((api.EndReconciliationResponse response) { | 1831 res.endReconciliation(arg_request, arg_serviceName).then(unittest.expectAs
ync1(((api.EndReconciliationResponse response) { |
| 1832 checkEndReconciliationResponse(response); | 1832 checkEndReconciliationResponse(response); |
| 1833 }))); | 1833 }))); |
| 1834 }); | 1834 }); |
| 1835 | 1835 |
| 1836 unittest.test("method--releaseQuota", () { | 1836 unittest.test("method--releaseQuota", () { |
| 1837 | 1837 |
| 1838 var mock = new HttpServerMock(); | 1838 var mock = new HttpServerMock(); |
| 1839 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; | 1839 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; |
| 1840 var arg_request = buildReleaseQuotaRequest(); | 1840 var arg_request = buildReleaseQuotaRequest(); |
| 1841 var arg_serviceName = "foo"; | 1841 var arg_serviceName = "foo"; |
| 1842 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1842 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1843 var obj = new api.ReleaseQuotaRequest.fromJson(json); | 1843 var obj = new api.ReleaseQuotaRequest.fromJson(json); |
| 1844 checkReleaseQuotaRequest(obj); | 1844 checkReleaseQuotaRequest(obj); |
| 1845 | 1845 |
| 1846 var path = (req.url).path; | 1846 var path = (req.url).path; |
| 1847 var pathOffset = 0; | 1847 var pathOffset = 0; |
| 1848 var index; | 1848 var index; |
| 1849 var subPart; | 1849 var subPart; |
| 1850 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1850 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1851 pathOffset += 1; | 1851 pathOffset += 1; |
| 1852 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 1852 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1876 } | 1876 } |
| 1877 } | 1877 } |
| 1878 | 1878 |
| 1879 | 1879 |
| 1880 var h = { | 1880 var h = { |
| 1881 "content-type" : "application/json; charset=utf-8", | 1881 "content-type" : "application/json; charset=utf-8", |
| 1882 }; | 1882 }; |
| 1883 var resp = convert.JSON.encode(buildReleaseQuotaResponse()); | 1883 var resp = convert.JSON.encode(buildReleaseQuotaResponse()); |
| 1884 return new async.Future.value(stringResponse(200, h, resp)); | 1884 return new async.Future.value(stringResponse(200, h, resp)); |
| 1885 }), true); | 1885 }), true); |
| 1886 res.releaseQuota(arg_request, arg_serviceName).then(unittest.expectAsync((
(api.ReleaseQuotaResponse response) { | 1886 res.releaseQuota(arg_request, arg_serviceName).then(unittest.expectAsync1(
((api.ReleaseQuotaResponse response) { |
| 1887 checkReleaseQuotaResponse(response); | 1887 checkReleaseQuotaResponse(response); |
| 1888 }))); | 1888 }))); |
| 1889 }); | 1889 }); |
| 1890 | 1890 |
| 1891 unittest.test("method--report", () { | 1891 unittest.test("method--report", () { |
| 1892 | 1892 |
| 1893 var mock = new HttpServerMock(); | 1893 var mock = new HttpServerMock(); |
| 1894 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; | 1894 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; |
| 1895 var arg_request = buildReportRequest(); | 1895 var arg_request = buildReportRequest(); |
| 1896 var arg_serviceName = "foo"; | 1896 var arg_serviceName = "foo"; |
| 1897 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1897 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1898 var obj = new api.ReportRequest.fromJson(json); | 1898 var obj = new api.ReportRequest.fromJson(json); |
| 1899 checkReportRequest(obj); | 1899 checkReportRequest(obj); |
| 1900 | 1900 |
| 1901 var path = (req.url).path; | 1901 var path = (req.url).path; |
| 1902 var pathOffset = 0; | 1902 var pathOffset = 0; |
| 1903 var index; | 1903 var index; |
| 1904 var subPart; | 1904 var subPart; |
| 1905 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1905 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1906 pathOffset += 1; | 1906 pathOffset += 1; |
| 1907 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 1907 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1931 } | 1931 } |
| 1932 } | 1932 } |
| 1933 | 1933 |
| 1934 | 1934 |
| 1935 var h = { | 1935 var h = { |
| 1936 "content-type" : "application/json; charset=utf-8", | 1936 "content-type" : "application/json; charset=utf-8", |
| 1937 }; | 1937 }; |
| 1938 var resp = convert.JSON.encode(buildReportResponse()); | 1938 var resp = convert.JSON.encode(buildReportResponse()); |
| 1939 return new async.Future.value(stringResponse(200, h, resp)); | 1939 return new async.Future.value(stringResponse(200, h, resp)); |
| 1940 }), true); | 1940 }), true); |
| 1941 res.report(arg_request, arg_serviceName).then(unittest.expectAsync(((api.R
eportResponse response) { | 1941 res.report(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.
ReportResponse response) { |
| 1942 checkReportResponse(response); | 1942 checkReportResponse(response); |
| 1943 }))); | 1943 }))); |
| 1944 }); | 1944 }); |
| 1945 | 1945 |
| 1946 unittest.test("method--startReconciliation", () { | 1946 unittest.test("method--startReconciliation", () { |
| 1947 | 1947 |
| 1948 var mock = new HttpServerMock(); | 1948 var mock = new HttpServerMock(); |
| 1949 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; | 1949 api.ServicesResourceApi res = new api.ServicecontrolApi(mock).services; |
| 1950 var arg_request = buildStartReconciliationRequest(); | 1950 var arg_request = buildStartReconciliationRequest(); |
| 1951 var arg_serviceName = "foo"; | 1951 var arg_serviceName = "foo"; |
| 1952 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1952 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1953 var obj = new api.StartReconciliationRequest.fromJson(json); | 1953 var obj = new api.StartReconciliationRequest.fromJson(json); |
| 1954 checkStartReconciliationRequest(obj); | 1954 checkStartReconciliationRequest(obj); |
| 1955 | 1955 |
| 1956 var path = (req.url).path; | 1956 var path = (req.url).path; |
| 1957 var pathOffset = 0; | 1957 var pathOffset = 0; |
| 1958 var index; | 1958 var index; |
| 1959 var subPart; | 1959 var subPart; |
| 1960 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1960 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1961 pathOffset += 1; | 1961 pathOffset += 1; |
| 1962 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 1962 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1986 } | 1986 } |
| 1987 } | 1987 } |
| 1988 | 1988 |
| 1989 | 1989 |
| 1990 var h = { | 1990 var h = { |
| 1991 "content-type" : "application/json; charset=utf-8", | 1991 "content-type" : "application/json; charset=utf-8", |
| 1992 }; | 1992 }; |
| 1993 var resp = convert.JSON.encode(buildStartReconciliationResponse()); | 1993 var resp = convert.JSON.encode(buildStartReconciliationResponse()); |
| 1994 return new async.Future.value(stringResponse(200, h, resp)); | 1994 return new async.Future.value(stringResponse(200, h, resp)); |
| 1995 }), true); | 1995 }), true); |
| 1996 res.startReconciliation(arg_request, arg_serviceName).then(unittest.expect
Async(((api.StartReconciliationResponse response) { | 1996 res.startReconciliation(arg_request, arg_serviceName).then(unittest.expect
Async1(((api.StartReconciliationResponse response) { |
| 1997 checkStartReconciliationResponse(response); | 1997 checkStartReconciliationResponse(response); |
| 1998 }))); | 1998 }))); |
| 1999 }); | 1999 }); |
| 2000 | 2000 |
| 2001 }); | 2001 }); |
| 2002 | 2002 |
| 2003 | 2003 |
| 2004 } | 2004 } |
| 2005 | 2005 |
| OLD | NEW |