| OLD | NEW |
| 1 library googleapis.partners.v2.test; | 1 library googleapis.partners.v2.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 checkCertificationExamStatus(api.CertificationExamStatus o) { | 66 checkCertificationExamStatus(api.CertificationExamStatus o) { |
| 67 buildCounterCertificationExamStatus++; | 67 buildCounterCertificationExamStatus++; |
| 68 if (buildCounterCertificationExamStatus < 3) { | 68 if (buildCounterCertificationExamStatus < 3) { |
| 69 unittest.expect(o.numberUsersPass, unittest.equals(42)); | 69 unittest.expect(o.numberUsersPass, unittest.equals(42)); |
| 70 unittest.expect(o.type, unittest.equals('foo')); | 70 unittest.expect(o.type, unittest.equals('foo')); |
| 71 } | 71 } |
| 72 buildCounterCertificationExamStatus--; | 72 buildCounterCertificationExamStatus--; |
| 73 } | 73 } |
| 74 | 74 |
| 75 buildUnnamed1787() { | 75 buildUnnamed1881() { |
| 76 var o = new core.List<api.CertificationExamStatus>(); | 76 var o = new core.List<api.CertificationExamStatus>(); |
| 77 o.add(buildCertificationExamStatus()); | 77 o.add(buildCertificationExamStatus()); |
| 78 o.add(buildCertificationExamStatus()); | 78 o.add(buildCertificationExamStatus()); |
| 79 return o; | 79 return o; |
| 80 } | 80 } |
| 81 | 81 |
| 82 checkUnnamed1787(core.List<api.CertificationExamStatus> o) { | 82 checkUnnamed1881(core.List<api.CertificationExamStatus> o) { |
| 83 unittest.expect(o, unittest.hasLength(2)); | 83 unittest.expect(o, unittest.hasLength(2)); |
| 84 checkCertificationExamStatus(o[0]); | 84 checkCertificationExamStatus(o[0]); |
| 85 checkCertificationExamStatus(o[1]); | 85 checkCertificationExamStatus(o[1]); |
| 86 } | 86 } |
| 87 | 87 |
| 88 core.int buildCounterCertificationStatus = 0; | 88 core.int buildCounterCertificationStatus = 0; |
| 89 buildCertificationStatus() { | 89 buildCertificationStatus() { |
| 90 var o = new api.CertificationStatus(); | 90 var o = new api.CertificationStatus(); |
| 91 buildCounterCertificationStatus++; | 91 buildCounterCertificationStatus++; |
| 92 if (buildCounterCertificationStatus < 3) { | 92 if (buildCounterCertificationStatus < 3) { |
| 93 o.examStatuses = buildUnnamed1787(); | 93 o.examStatuses = buildUnnamed1881(); |
| 94 o.isCertified = true; | 94 o.isCertified = true; |
| 95 o.type = "foo"; | 95 o.type = "foo"; |
| 96 } | 96 } |
| 97 buildCounterCertificationStatus--; | 97 buildCounterCertificationStatus--; |
| 98 return o; | 98 return o; |
| 99 } | 99 } |
| 100 | 100 |
| 101 checkCertificationStatus(api.CertificationStatus o) { | 101 checkCertificationStatus(api.CertificationStatus o) { |
| 102 buildCounterCertificationStatus++; | 102 buildCounterCertificationStatus++; |
| 103 if (buildCounterCertificationStatus < 3) { | 103 if (buildCounterCertificationStatus < 3) { |
| 104 checkUnnamed1787(o.examStatuses); | 104 checkUnnamed1881(o.examStatuses); |
| 105 unittest.expect(o.isCertified, unittest.isTrue); | 105 unittest.expect(o.isCertified, unittest.isTrue); |
| 106 unittest.expect(o.type, unittest.equals('foo')); | 106 unittest.expect(o.type, unittest.equals('foo')); |
| 107 } | 107 } |
| 108 buildCounterCertificationStatus--; | 108 buildCounterCertificationStatus--; |
| 109 } | 109 } |
| 110 | 110 |
| 111 buildUnnamed1788() { | 111 buildUnnamed1882() { |
| 112 var o = new core.List<api.CertificationStatus>(); | 112 var o = new core.List<api.CertificationStatus>(); |
| 113 o.add(buildCertificationStatus()); | 113 o.add(buildCertificationStatus()); |
| 114 o.add(buildCertificationStatus()); | 114 o.add(buildCertificationStatus()); |
| 115 return o; | 115 return o; |
| 116 } | 116 } |
| 117 | 117 |
| 118 checkUnnamed1788(core.List<api.CertificationStatus> o) { | 118 checkUnnamed1882(core.List<api.CertificationStatus> o) { |
| 119 unittest.expect(o, unittest.hasLength(2)); | 119 unittest.expect(o, unittest.hasLength(2)); |
| 120 checkCertificationStatus(o[0]); | 120 checkCertificationStatus(o[0]); |
| 121 checkCertificationStatus(o[1]); | 121 checkCertificationStatus(o[1]); |
| 122 } | 122 } |
| 123 | 123 |
| 124 buildUnnamed1789() { | 124 buildUnnamed1883() { |
| 125 var o = new core.List<core.String>(); | 125 var o = new core.List<core.String>(); |
| 126 o.add("foo"); | 126 o.add("foo"); |
| 127 o.add("foo"); | 127 o.add("foo"); |
| 128 return o; | 128 return o; |
| 129 } | 129 } |
| 130 | 130 |
| 131 checkUnnamed1789(core.List<core.String> o) { | 131 checkUnnamed1883(core.List<core.String> o) { |
| 132 unittest.expect(o, unittest.hasLength(2)); | 132 unittest.expect(o, unittest.hasLength(2)); |
| 133 unittest.expect(o[0], unittest.equals('foo')); | 133 unittest.expect(o[0], unittest.equals('foo')); |
| 134 unittest.expect(o[1], unittest.equals('foo')); | 134 unittest.expect(o[1], unittest.equals('foo')); |
| 135 } | 135 } |
| 136 | 136 |
| 137 buildUnnamed1790() { | 137 buildUnnamed1884() { |
| 138 var o = new core.List<api.LocalizedCompanyInfo>(); | 138 var o = new core.List<api.LocalizedCompanyInfo>(); |
| 139 o.add(buildLocalizedCompanyInfo()); | 139 o.add(buildLocalizedCompanyInfo()); |
| 140 o.add(buildLocalizedCompanyInfo()); | 140 o.add(buildLocalizedCompanyInfo()); |
| 141 return o; | 141 return o; |
| 142 } | 142 } |
| 143 | 143 |
| 144 checkUnnamed1790(core.List<api.LocalizedCompanyInfo> o) { | 144 checkUnnamed1884(core.List<api.LocalizedCompanyInfo> o) { |
| 145 unittest.expect(o, unittest.hasLength(2)); | 145 unittest.expect(o, unittest.hasLength(2)); |
| 146 checkLocalizedCompanyInfo(o[0]); | 146 checkLocalizedCompanyInfo(o[0]); |
| 147 checkLocalizedCompanyInfo(o[1]); | 147 checkLocalizedCompanyInfo(o[1]); |
| 148 } | 148 } |
| 149 | 149 |
| 150 buildUnnamed1791() { | 150 buildUnnamed1885() { |
| 151 var o = new core.List<api.Location>(); | 151 var o = new core.List<api.Location>(); |
| 152 o.add(buildLocation()); | 152 o.add(buildLocation()); |
| 153 o.add(buildLocation()); | 153 o.add(buildLocation()); |
| 154 return o; | 154 return o; |
| 155 } | 155 } |
| 156 | 156 |
| 157 checkUnnamed1791(core.List<api.Location> o) { | 157 checkUnnamed1885(core.List<api.Location> o) { |
| 158 unittest.expect(o, unittest.hasLength(2)); | 158 unittest.expect(o, unittest.hasLength(2)); |
| 159 checkLocation(o[0]); | 159 checkLocation(o[0]); |
| 160 checkLocation(o[1]); | 160 checkLocation(o[1]); |
| 161 } | 161 } |
| 162 | 162 |
| 163 buildUnnamed1792() { | 163 buildUnnamed1886() { |
| 164 var o = new core.List<api.Rank>(); | 164 var o = new core.List<api.Rank>(); |
| 165 o.add(buildRank()); | 165 o.add(buildRank()); |
| 166 o.add(buildRank()); | 166 o.add(buildRank()); |
| 167 return o; | 167 return o; |
| 168 } | 168 } |
| 169 | 169 |
| 170 checkUnnamed1792(core.List<api.Rank> o) { | 170 checkUnnamed1886(core.List<api.Rank> o) { |
| 171 unittest.expect(o, unittest.hasLength(2)); | 171 unittest.expect(o, unittest.hasLength(2)); |
| 172 checkRank(o[0]); | 172 checkRank(o[0]); |
| 173 checkRank(o[1]); | 173 checkRank(o[1]); |
| 174 } | 174 } |
| 175 | 175 |
| 176 buildUnnamed1793() { | 176 buildUnnamed1887() { |
| 177 var o = new core.List<core.String>(); | 177 var o = new core.List<core.String>(); |
| 178 o.add("foo"); | 178 o.add("foo"); |
| 179 o.add("foo"); | 179 o.add("foo"); |
| 180 return o; | 180 return o; |
| 181 } | 181 } |
| 182 | 182 |
| 183 checkUnnamed1793(core.List<core.String> o) { | 183 checkUnnamed1887(core.List<core.String> o) { |
| 184 unittest.expect(o, unittest.hasLength(2)); | 184 unittest.expect(o, unittest.hasLength(2)); |
| 185 unittest.expect(o[0], unittest.equals('foo')); | 185 unittest.expect(o[0], unittest.equals('foo')); |
| 186 unittest.expect(o[1], unittest.equals('foo')); | 186 unittest.expect(o[1], unittest.equals('foo')); |
| 187 } | 187 } |
| 188 | 188 |
| 189 core.int buildCounterCompany = 0; | 189 core.int buildCounterCompany = 0; |
| 190 buildCompany() { | 190 buildCompany() { |
| 191 var o = new api.Company(); | 191 var o = new api.Company(); |
| 192 buildCounterCompany++; | 192 buildCounterCompany++; |
| 193 if (buildCounterCompany < 3) { | 193 if (buildCounterCompany < 3) { |
| 194 o.certificationStatuses = buildUnnamed1788(); | 194 o.certificationStatuses = buildUnnamed1882(); |
| 195 o.convertedMinMonthlyBudget = buildMoney(); | 195 o.convertedMinMonthlyBudget = buildMoney(); |
| 196 o.id = "foo"; | 196 o.id = "foo"; |
| 197 o.industries = buildUnnamed1789(); | 197 o.industries = buildUnnamed1883(); |
| 198 o.localizedInfos = buildUnnamed1790(); | 198 o.localizedInfos = buildUnnamed1884(); |
| 199 o.locations = buildUnnamed1791(); | 199 o.locations = buildUnnamed1885(); |
| 200 o.name = "foo"; | 200 o.name = "foo"; |
| 201 o.originalMinMonthlyBudget = buildMoney(); | 201 o.originalMinMonthlyBudget = buildMoney(); |
| 202 o.publicProfile = buildPublicProfile(); | 202 o.publicProfile = buildPublicProfile(); |
| 203 o.ranks = buildUnnamed1792(); | 203 o.ranks = buildUnnamed1886(); |
| 204 o.services = buildUnnamed1793(); | 204 o.services = buildUnnamed1887(); |
| 205 o.websiteUrl = "foo"; | 205 o.websiteUrl = "foo"; |
| 206 } | 206 } |
| 207 buildCounterCompany--; | 207 buildCounterCompany--; |
| 208 return o; | 208 return o; |
| 209 } | 209 } |
| 210 | 210 |
| 211 checkCompany(api.Company o) { | 211 checkCompany(api.Company o) { |
| 212 buildCounterCompany++; | 212 buildCounterCompany++; |
| 213 if (buildCounterCompany < 3) { | 213 if (buildCounterCompany < 3) { |
| 214 checkUnnamed1788(o.certificationStatuses); | 214 checkUnnamed1882(o.certificationStatuses); |
| 215 checkMoney(o.convertedMinMonthlyBudget); | 215 checkMoney(o.convertedMinMonthlyBudget); |
| 216 unittest.expect(o.id, unittest.equals('foo')); | 216 unittest.expect(o.id, unittest.equals('foo')); |
| 217 checkUnnamed1789(o.industries); | 217 checkUnnamed1883(o.industries); |
| 218 checkUnnamed1790(o.localizedInfos); | 218 checkUnnamed1884(o.localizedInfos); |
| 219 checkUnnamed1791(o.locations); | 219 checkUnnamed1885(o.locations); |
| 220 unittest.expect(o.name, unittest.equals('foo')); | 220 unittest.expect(o.name, unittest.equals('foo')); |
| 221 checkMoney(o.originalMinMonthlyBudget); | 221 checkMoney(o.originalMinMonthlyBudget); |
| 222 checkPublicProfile(o.publicProfile); | 222 checkPublicProfile(o.publicProfile); |
| 223 checkUnnamed1792(o.ranks); | 223 checkUnnamed1886(o.ranks); |
| 224 checkUnnamed1793(o.services); | 224 checkUnnamed1887(o.services); |
| 225 unittest.expect(o.websiteUrl, unittest.equals('foo')); | 225 unittest.expect(o.websiteUrl, unittest.equals('foo')); |
| 226 } | 226 } |
| 227 buildCounterCompany--; | 227 buildCounterCompany--; |
| 228 } | 228 } |
| 229 | 229 |
| 230 core.int buildCounterCreateLeadRequest = 0; | 230 core.int buildCounterCreateLeadRequest = 0; |
| 231 buildCreateLeadRequest() { | 231 buildCreateLeadRequest() { |
| 232 var o = new api.CreateLeadRequest(); | 232 var o = new api.CreateLeadRequest(); |
| 233 buildCounterCreateLeadRequest++; | 233 buildCounterCreateLeadRequest++; |
| 234 if (buildCounterCreateLeadRequest < 3) { | 234 if (buildCounterCreateLeadRequest < 3) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 checkDebugInfo(api.DebugInfo o) { | 289 checkDebugInfo(api.DebugInfo o) { |
| 290 buildCounterDebugInfo++; | 290 buildCounterDebugInfo++; |
| 291 if (buildCounterDebugInfo < 3) { | 291 if (buildCounterDebugInfo < 3) { |
| 292 unittest.expect(o.serverInfo, unittest.equals('foo')); | 292 unittest.expect(o.serverInfo, unittest.equals('foo')); |
| 293 unittest.expect(o.serverTraceInfo, unittest.equals('foo')); | 293 unittest.expect(o.serverTraceInfo, unittest.equals('foo')); |
| 294 unittest.expect(o.serviceUrl, unittest.equals('foo')); | 294 unittest.expect(o.serviceUrl, unittest.equals('foo')); |
| 295 } | 295 } |
| 296 buildCounterDebugInfo--; | 296 buildCounterDebugInfo--; |
| 297 } | 297 } |
| 298 | 298 |
| 299 buildUnnamed1794() { | 299 buildUnnamed1888() { |
| 300 var o = new core.List<core.String>(); | 300 var o = new core.List<core.String>(); |
| 301 o.add("foo"); | 301 o.add("foo"); |
| 302 o.add("foo"); | 302 o.add("foo"); |
| 303 return o; | 303 return o; |
| 304 } | 304 } |
| 305 | 305 |
| 306 checkUnnamed1794(core.List<core.String> o) { | 306 checkUnnamed1888(core.List<core.String> o) { |
| 307 unittest.expect(o, unittest.hasLength(2)); | 307 unittest.expect(o, unittest.hasLength(2)); |
| 308 unittest.expect(o[0], unittest.equals('foo')); | 308 unittest.expect(o[0], unittest.equals('foo')); |
| 309 unittest.expect(o[1], unittest.equals('foo')); | 309 unittest.expect(o[1], unittest.equals('foo')); |
| 310 } | 310 } |
| 311 | 311 |
| 312 core.int buildCounterEventData = 0; | 312 core.int buildCounterEventData = 0; |
| 313 buildEventData() { | 313 buildEventData() { |
| 314 var o = new api.EventData(); | 314 var o = new api.EventData(); |
| 315 buildCounterEventData++; | 315 buildCounterEventData++; |
| 316 if (buildCounterEventData < 3) { | 316 if (buildCounterEventData < 3) { |
| 317 o.key = "foo"; | 317 o.key = "foo"; |
| 318 o.values = buildUnnamed1794(); | 318 o.values = buildUnnamed1888(); |
| 319 } | 319 } |
| 320 buildCounterEventData--; | 320 buildCounterEventData--; |
| 321 return o; | 321 return o; |
| 322 } | 322 } |
| 323 | 323 |
| 324 checkEventData(api.EventData o) { | 324 checkEventData(api.EventData o) { |
| 325 buildCounterEventData++; | 325 buildCounterEventData++; |
| 326 if (buildCounterEventData < 3) { | 326 if (buildCounterEventData < 3) { |
| 327 unittest.expect(o.key, unittest.equals('foo')); | 327 unittest.expect(o.key, unittest.equals('foo')); |
| 328 checkUnnamed1794(o.values); | 328 checkUnnamed1888(o.values); |
| 329 } | 329 } |
| 330 buildCounterEventData--; | 330 buildCounterEventData--; |
| 331 } | 331 } |
| 332 | 332 |
| 333 core.int buildCounterGetCompanyResponse = 0; | 333 core.int buildCounterGetCompanyResponse = 0; |
| 334 buildGetCompanyResponse() { | 334 buildGetCompanyResponse() { |
| 335 var o = new api.GetCompanyResponse(); | 335 var o = new api.GetCompanyResponse(); |
| 336 buildCounterGetCompanyResponse++; | 336 buildCounterGetCompanyResponse++; |
| 337 if (buildCounterGetCompanyResponse < 3) { | 337 if (buildCounterGetCompanyResponse < 3) { |
| 338 o.company = buildCompany(); | 338 o.company = buildCompany(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 365 | 365 |
| 366 checkLatLng(api.LatLng o) { | 366 checkLatLng(api.LatLng o) { |
| 367 buildCounterLatLng++; | 367 buildCounterLatLng++; |
| 368 if (buildCounterLatLng < 3) { | 368 if (buildCounterLatLng < 3) { |
| 369 unittest.expect(o.latitude, unittest.equals(42.0)); | 369 unittest.expect(o.latitude, unittest.equals(42.0)); |
| 370 unittest.expect(o.longitude, unittest.equals(42.0)); | 370 unittest.expect(o.longitude, unittest.equals(42.0)); |
| 371 } | 371 } |
| 372 buildCounterLatLng--; | 372 buildCounterLatLng--; |
| 373 } | 373 } |
| 374 | 374 |
| 375 buildUnnamed1795() { | 375 buildUnnamed1889() { |
| 376 var o = new core.List<core.String>(); | 376 var o = new core.List<core.String>(); |
| 377 o.add("foo"); | 377 o.add("foo"); |
| 378 o.add("foo"); | 378 o.add("foo"); |
| 379 return o; | 379 return o; |
| 380 } | 380 } |
| 381 | 381 |
| 382 checkUnnamed1795(core.List<core.String> o) { | 382 checkUnnamed1889(core.List<core.String> o) { |
| 383 unittest.expect(o, unittest.hasLength(2)); | 383 unittest.expect(o, unittest.hasLength(2)); |
| 384 unittest.expect(o[0], unittest.equals('foo')); | 384 unittest.expect(o[0], unittest.equals('foo')); |
| 385 unittest.expect(o[1], unittest.equals('foo')); | 385 unittest.expect(o[1], unittest.equals('foo')); |
| 386 } | 386 } |
| 387 | 387 |
| 388 core.int buildCounterLead = 0; | 388 core.int buildCounterLead = 0; |
| 389 buildLead() { | 389 buildLead() { |
| 390 var o = new api.Lead(); | 390 var o = new api.Lead(); |
| 391 buildCounterLead++; | 391 buildCounterLead++; |
| 392 if (buildCounterLead < 3) { | 392 if (buildCounterLead < 3) { |
| 393 o.comments = "foo"; | 393 o.comments = "foo"; |
| 394 o.email = "foo"; | 394 o.email = "foo"; |
| 395 o.familyName = "foo"; | 395 o.familyName = "foo"; |
| 396 o.givenName = "foo"; | 396 o.givenName = "foo"; |
| 397 o.gpsMotivations = buildUnnamed1795(); | 397 o.gpsMotivations = buildUnnamed1889(); |
| 398 o.id = "foo"; | 398 o.id = "foo"; |
| 399 o.minMonthlyBudget = buildMoney(); | 399 o.minMonthlyBudget = buildMoney(); |
| 400 o.phoneNumber = "foo"; | 400 o.phoneNumber = "foo"; |
| 401 o.type = "foo"; | 401 o.type = "foo"; |
| 402 o.websiteUrl = "foo"; | 402 o.websiteUrl = "foo"; |
| 403 } | 403 } |
| 404 buildCounterLead--; | 404 buildCounterLead--; |
| 405 return o; | 405 return o; |
| 406 } | 406 } |
| 407 | 407 |
| 408 checkLead(api.Lead o) { | 408 checkLead(api.Lead o) { |
| 409 buildCounterLead++; | 409 buildCounterLead++; |
| 410 if (buildCounterLead < 3) { | 410 if (buildCounterLead < 3) { |
| 411 unittest.expect(o.comments, unittest.equals('foo')); | 411 unittest.expect(o.comments, unittest.equals('foo')); |
| 412 unittest.expect(o.email, unittest.equals('foo')); | 412 unittest.expect(o.email, unittest.equals('foo')); |
| 413 unittest.expect(o.familyName, unittest.equals('foo')); | 413 unittest.expect(o.familyName, unittest.equals('foo')); |
| 414 unittest.expect(o.givenName, unittest.equals('foo')); | 414 unittest.expect(o.givenName, unittest.equals('foo')); |
| 415 checkUnnamed1795(o.gpsMotivations); | 415 checkUnnamed1889(o.gpsMotivations); |
| 416 unittest.expect(o.id, unittest.equals('foo')); | 416 unittest.expect(o.id, unittest.equals('foo')); |
| 417 checkMoney(o.minMonthlyBudget); | 417 checkMoney(o.minMonthlyBudget); |
| 418 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 418 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
| 419 unittest.expect(o.type, unittest.equals('foo')); | 419 unittest.expect(o.type, unittest.equals('foo')); |
| 420 unittest.expect(o.websiteUrl, unittest.equals('foo')); | 420 unittest.expect(o.websiteUrl, unittest.equals('foo')); |
| 421 } | 421 } |
| 422 buildCounterLead--; | 422 buildCounterLead--; |
| 423 } | 423 } |
| 424 | 424 |
| 425 buildUnnamed1796() { | 425 buildUnnamed1890() { |
| 426 var o = new core.List<api.Company>(); | 426 var o = new core.List<api.Company>(); |
| 427 o.add(buildCompany()); | 427 o.add(buildCompany()); |
| 428 o.add(buildCompany()); | 428 o.add(buildCompany()); |
| 429 return o; | 429 return o; |
| 430 } | 430 } |
| 431 | 431 |
| 432 checkUnnamed1796(core.List<api.Company> o) { | 432 checkUnnamed1890(core.List<api.Company> o) { |
| 433 unittest.expect(o, unittest.hasLength(2)); | 433 unittest.expect(o, unittest.hasLength(2)); |
| 434 checkCompany(o[0]); | 434 checkCompany(o[0]); |
| 435 checkCompany(o[1]); | 435 checkCompany(o[1]); |
| 436 } | 436 } |
| 437 | 437 |
| 438 core.int buildCounterListCompaniesResponse = 0; | 438 core.int buildCounterListCompaniesResponse = 0; |
| 439 buildListCompaniesResponse() { | 439 buildListCompaniesResponse() { |
| 440 var o = new api.ListCompaniesResponse(); | 440 var o = new api.ListCompaniesResponse(); |
| 441 buildCounterListCompaniesResponse++; | 441 buildCounterListCompaniesResponse++; |
| 442 if (buildCounterListCompaniesResponse < 3) { | 442 if (buildCounterListCompaniesResponse < 3) { |
| 443 o.companies = buildUnnamed1796(); | 443 o.companies = buildUnnamed1890(); |
| 444 o.nextPageToken = "foo"; | 444 o.nextPageToken = "foo"; |
| 445 o.responseMetadata = buildResponseMetadata(); | 445 o.responseMetadata = buildResponseMetadata(); |
| 446 } | 446 } |
| 447 buildCounterListCompaniesResponse--; | 447 buildCounterListCompaniesResponse--; |
| 448 return o; | 448 return o; |
| 449 } | 449 } |
| 450 | 450 |
| 451 checkListCompaniesResponse(api.ListCompaniesResponse o) { | 451 checkListCompaniesResponse(api.ListCompaniesResponse o) { |
| 452 buildCounterListCompaniesResponse++; | 452 buildCounterListCompaniesResponse++; |
| 453 if (buildCounterListCompaniesResponse < 3) { | 453 if (buildCounterListCompaniesResponse < 3) { |
| 454 checkUnnamed1796(o.companies); | 454 checkUnnamed1890(o.companies); |
| 455 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 455 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 456 checkResponseMetadata(o.responseMetadata); | 456 checkResponseMetadata(o.responseMetadata); |
| 457 } | 457 } |
| 458 buildCounterListCompaniesResponse--; | 458 buildCounterListCompaniesResponse--; |
| 459 } | 459 } |
| 460 | 460 |
| 461 buildUnnamed1797() { | 461 buildUnnamed1891() { |
| 462 var o = new core.List<core.String>(); | 462 var o = new core.List<core.String>(); |
| 463 o.add("foo"); | 463 o.add("foo"); |
| 464 o.add("foo"); | 464 o.add("foo"); |
| 465 return o; | 465 return o; |
| 466 } | 466 } |
| 467 | 467 |
| 468 checkUnnamed1797(core.List<core.String> o) { | 468 checkUnnamed1891(core.List<core.String> o) { |
| 469 unittest.expect(o, unittest.hasLength(2)); | 469 unittest.expect(o, unittest.hasLength(2)); |
| 470 unittest.expect(o[0], unittest.equals('foo')); | 470 unittest.expect(o[0], unittest.equals('foo')); |
| 471 unittest.expect(o[1], unittest.equals('foo')); | 471 unittest.expect(o[1], unittest.equals('foo')); |
| 472 } | 472 } |
| 473 | 473 |
| 474 core.int buildCounterListUserStatesResponse = 0; | 474 core.int buildCounterListUserStatesResponse = 0; |
| 475 buildListUserStatesResponse() { | 475 buildListUserStatesResponse() { |
| 476 var o = new api.ListUserStatesResponse(); | 476 var o = new api.ListUserStatesResponse(); |
| 477 buildCounterListUserStatesResponse++; | 477 buildCounterListUserStatesResponse++; |
| 478 if (buildCounterListUserStatesResponse < 3) { | 478 if (buildCounterListUserStatesResponse < 3) { |
| 479 o.responseMetadata = buildResponseMetadata(); | 479 o.responseMetadata = buildResponseMetadata(); |
| 480 o.userStates = buildUnnamed1797(); | 480 o.userStates = buildUnnamed1891(); |
| 481 } | 481 } |
| 482 buildCounterListUserStatesResponse--; | 482 buildCounterListUserStatesResponse--; |
| 483 return o; | 483 return o; |
| 484 } | 484 } |
| 485 | 485 |
| 486 checkListUserStatesResponse(api.ListUserStatesResponse o) { | 486 checkListUserStatesResponse(api.ListUserStatesResponse o) { |
| 487 buildCounterListUserStatesResponse++; | 487 buildCounterListUserStatesResponse++; |
| 488 if (buildCounterListUserStatesResponse < 3) { | 488 if (buildCounterListUserStatesResponse < 3) { |
| 489 checkResponseMetadata(o.responseMetadata); | 489 checkResponseMetadata(o.responseMetadata); |
| 490 checkUnnamed1797(o.userStates); | 490 checkUnnamed1891(o.userStates); |
| 491 } | 491 } |
| 492 buildCounterListUserStatesResponse--; | 492 buildCounterListUserStatesResponse--; |
| 493 } | 493 } |
| 494 | 494 |
| 495 buildUnnamed1798() { | 495 buildUnnamed1892() { |
| 496 var o = new core.List<core.String>(); | 496 var o = new core.List<core.String>(); |
| 497 o.add("foo"); | 497 o.add("foo"); |
| 498 o.add("foo"); | 498 o.add("foo"); |
| 499 return o; | 499 return o; |
| 500 } | 500 } |
| 501 | 501 |
| 502 checkUnnamed1798(core.List<core.String> o) { | 502 checkUnnamed1892(core.List<core.String> o) { |
| 503 unittest.expect(o, unittest.hasLength(2)); | 503 unittest.expect(o, unittest.hasLength(2)); |
| 504 unittest.expect(o[0], unittest.equals('foo')); | 504 unittest.expect(o[0], unittest.equals('foo')); |
| 505 unittest.expect(o[1], unittest.equals('foo')); | 505 unittest.expect(o[1], unittest.equals('foo')); |
| 506 } | 506 } |
| 507 | 507 |
| 508 core.int buildCounterLocalizedCompanyInfo = 0; | 508 core.int buildCounterLocalizedCompanyInfo = 0; |
| 509 buildLocalizedCompanyInfo() { | 509 buildLocalizedCompanyInfo() { |
| 510 var o = new api.LocalizedCompanyInfo(); | 510 var o = new api.LocalizedCompanyInfo(); |
| 511 buildCounterLocalizedCompanyInfo++; | 511 buildCounterLocalizedCompanyInfo++; |
| 512 if (buildCounterLocalizedCompanyInfo < 3) { | 512 if (buildCounterLocalizedCompanyInfo < 3) { |
| 513 o.countryCodes = buildUnnamed1798(); | 513 o.countryCodes = buildUnnamed1892(); |
| 514 o.displayName = "foo"; | 514 o.displayName = "foo"; |
| 515 o.languageCode = "foo"; | 515 o.languageCode = "foo"; |
| 516 o.overview = "foo"; | 516 o.overview = "foo"; |
| 517 } | 517 } |
| 518 buildCounterLocalizedCompanyInfo--; | 518 buildCounterLocalizedCompanyInfo--; |
| 519 return o; | 519 return o; |
| 520 } | 520 } |
| 521 | 521 |
| 522 checkLocalizedCompanyInfo(api.LocalizedCompanyInfo o) { | 522 checkLocalizedCompanyInfo(api.LocalizedCompanyInfo o) { |
| 523 buildCounterLocalizedCompanyInfo++; | 523 buildCounterLocalizedCompanyInfo++; |
| 524 if (buildCounterLocalizedCompanyInfo < 3) { | 524 if (buildCounterLocalizedCompanyInfo < 3) { |
| 525 checkUnnamed1798(o.countryCodes); | 525 checkUnnamed1892(o.countryCodes); |
| 526 unittest.expect(o.displayName, unittest.equals('foo')); | 526 unittest.expect(o.displayName, unittest.equals('foo')); |
| 527 unittest.expect(o.languageCode, unittest.equals('foo')); | 527 unittest.expect(o.languageCode, unittest.equals('foo')); |
| 528 unittest.expect(o.overview, unittest.equals('foo')); | 528 unittest.expect(o.overview, unittest.equals('foo')); |
| 529 } | 529 } |
| 530 buildCounterLocalizedCompanyInfo--; | 530 buildCounterLocalizedCompanyInfo--; |
| 531 } | 531 } |
| 532 | 532 |
| 533 core.int buildCounterLocation = 0; | 533 core.int buildCounterLocation = 0; |
| 534 buildLocation() { | 534 buildLocation() { |
| 535 var o = new api.Location(); | 535 var o = new api.Location(); |
| 536 buildCounterLocation++; | 536 buildCounterLocation++; |
| 537 if (buildCounterLocation < 3) { | 537 if (buildCounterLocation < 3) { |
| 538 o.address = "foo"; | 538 o.address = "foo"; |
| 539 o.latLng = buildLatLng(); | 539 o.latLng = buildLatLng(); |
| 540 } | 540 } |
| 541 buildCounterLocation--; | 541 buildCounterLocation--; |
| 542 return o; | 542 return o; |
| 543 } | 543 } |
| 544 | 544 |
| 545 checkLocation(api.Location o) { | 545 checkLocation(api.Location o) { |
| 546 buildCounterLocation++; | 546 buildCounterLocation++; |
| 547 if (buildCounterLocation < 3) { | 547 if (buildCounterLocation < 3) { |
| 548 unittest.expect(o.address, unittest.equals('foo')); | 548 unittest.expect(o.address, unittest.equals('foo')); |
| 549 checkLatLng(o.latLng); | 549 checkLatLng(o.latLng); |
| 550 } | 550 } |
| 551 buildCounterLocation--; | 551 buildCounterLocation--; |
| 552 } | 552 } |
| 553 | 553 |
| 554 buildUnnamed1799() { | 554 buildUnnamed1893() { |
| 555 var o = new core.Map<core.String, core.String>(); | 555 var o = new core.Map<core.String, core.String>(); |
| 556 o["x"] = "foo"; | 556 o["x"] = "foo"; |
| 557 o["y"] = "foo"; | 557 o["y"] = "foo"; |
| 558 return o; | 558 return o; |
| 559 } | 559 } |
| 560 | 560 |
| 561 checkUnnamed1799(core.Map<core.String, core.String> o) { | 561 checkUnnamed1893(core.Map<core.String, core.String> o) { |
| 562 unittest.expect(o, unittest.hasLength(2)); | 562 unittest.expect(o, unittest.hasLength(2)); |
| 563 unittest.expect(o["x"], unittest.equals('foo')); | 563 unittest.expect(o["x"], unittest.equals('foo')); |
| 564 unittest.expect(o["y"], unittest.equals('foo')); | 564 unittest.expect(o["y"], unittest.equals('foo')); |
| 565 } | 565 } |
| 566 | 566 |
| 567 core.int buildCounterLogMessageRequest = 0; | 567 core.int buildCounterLogMessageRequest = 0; |
| 568 buildLogMessageRequest() { | 568 buildLogMessageRequest() { |
| 569 var o = new api.LogMessageRequest(); | 569 var o = new api.LogMessageRequest(); |
| 570 buildCounterLogMessageRequest++; | 570 buildCounterLogMessageRequest++; |
| 571 if (buildCounterLogMessageRequest < 3) { | 571 if (buildCounterLogMessageRequest < 3) { |
| 572 o.clientInfo = buildUnnamed1799(); | 572 o.clientInfo = buildUnnamed1893(); |
| 573 o.details = "foo"; | 573 o.details = "foo"; |
| 574 o.level = "foo"; | 574 o.level = "foo"; |
| 575 o.requestMetadata = buildRequestMetadata(); | 575 o.requestMetadata = buildRequestMetadata(); |
| 576 } | 576 } |
| 577 buildCounterLogMessageRequest--; | 577 buildCounterLogMessageRequest--; |
| 578 return o; | 578 return o; |
| 579 } | 579 } |
| 580 | 580 |
| 581 checkLogMessageRequest(api.LogMessageRequest o) { | 581 checkLogMessageRequest(api.LogMessageRequest o) { |
| 582 buildCounterLogMessageRequest++; | 582 buildCounterLogMessageRequest++; |
| 583 if (buildCounterLogMessageRequest < 3) { | 583 if (buildCounterLogMessageRequest < 3) { |
| 584 checkUnnamed1799(o.clientInfo); | 584 checkUnnamed1893(o.clientInfo); |
| 585 unittest.expect(o.details, unittest.equals('foo')); | 585 unittest.expect(o.details, unittest.equals('foo')); |
| 586 unittest.expect(o.level, unittest.equals('foo')); | 586 unittest.expect(o.level, unittest.equals('foo')); |
| 587 checkRequestMetadata(o.requestMetadata); | 587 checkRequestMetadata(o.requestMetadata); |
| 588 } | 588 } |
| 589 buildCounterLogMessageRequest--; | 589 buildCounterLogMessageRequest--; |
| 590 } | 590 } |
| 591 | 591 |
| 592 core.int buildCounterLogMessageResponse = 0; | 592 core.int buildCounterLogMessageResponse = 0; |
| 593 buildLogMessageResponse() { | 593 buildLogMessageResponse() { |
| 594 var o = new api.LogMessageResponse(); | 594 var o = new api.LogMessageResponse(); |
| 595 buildCounterLogMessageResponse++; | 595 buildCounterLogMessageResponse++; |
| 596 if (buildCounterLogMessageResponse < 3) { | 596 if (buildCounterLogMessageResponse < 3) { |
| 597 o.responseMetadata = buildResponseMetadata(); | 597 o.responseMetadata = buildResponseMetadata(); |
| 598 } | 598 } |
| 599 buildCounterLogMessageResponse--; | 599 buildCounterLogMessageResponse--; |
| 600 return o; | 600 return o; |
| 601 } | 601 } |
| 602 | 602 |
| 603 checkLogMessageResponse(api.LogMessageResponse o) { | 603 checkLogMessageResponse(api.LogMessageResponse o) { |
| 604 buildCounterLogMessageResponse++; | 604 buildCounterLogMessageResponse++; |
| 605 if (buildCounterLogMessageResponse < 3) { | 605 if (buildCounterLogMessageResponse < 3) { |
| 606 checkResponseMetadata(o.responseMetadata); | 606 checkResponseMetadata(o.responseMetadata); |
| 607 } | 607 } |
| 608 buildCounterLogMessageResponse--; | 608 buildCounterLogMessageResponse--; |
| 609 } | 609 } |
| 610 | 610 |
| 611 buildUnnamed1800() { | 611 buildUnnamed1894() { |
| 612 var o = new core.List<api.EventData>(); | 612 var o = new core.List<api.EventData>(); |
| 613 o.add(buildEventData()); | 613 o.add(buildEventData()); |
| 614 o.add(buildEventData()); | 614 o.add(buildEventData()); |
| 615 return o; | 615 return o; |
| 616 } | 616 } |
| 617 | 617 |
| 618 checkUnnamed1800(core.List<api.EventData> o) { | 618 checkUnnamed1894(core.List<api.EventData> o) { |
| 619 unittest.expect(o, unittest.hasLength(2)); | 619 unittest.expect(o, unittest.hasLength(2)); |
| 620 checkEventData(o[0]); | 620 checkEventData(o[0]); |
| 621 checkEventData(o[1]); | 621 checkEventData(o[1]); |
| 622 } | 622 } |
| 623 | 623 |
| 624 core.int buildCounterLogUserEventRequest = 0; | 624 core.int buildCounterLogUserEventRequest = 0; |
| 625 buildLogUserEventRequest() { | 625 buildLogUserEventRequest() { |
| 626 var o = new api.LogUserEventRequest(); | 626 var o = new api.LogUserEventRequest(); |
| 627 buildCounterLogUserEventRequest++; | 627 buildCounterLogUserEventRequest++; |
| 628 if (buildCounterLogUserEventRequest < 3) { | 628 if (buildCounterLogUserEventRequest < 3) { |
| 629 o.eventAction = "foo"; | 629 o.eventAction = "foo"; |
| 630 o.eventCategory = "foo"; | 630 o.eventCategory = "foo"; |
| 631 o.eventDatas = buildUnnamed1800(); | 631 o.eventDatas = buildUnnamed1894(); |
| 632 o.eventScope = "foo"; | 632 o.eventScope = "foo"; |
| 633 o.lead = buildLead(); | 633 o.lead = buildLead(); |
| 634 o.requestMetadata = buildRequestMetadata(); | 634 o.requestMetadata = buildRequestMetadata(); |
| 635 o.url = "foo"; | 635 o.url = "foo"; |
| 636 } | 636 } |
| 637 buildCounterLogUserEventRequest--; | 637 buildCounterLogUserEventRequest--; |
| 638 return o; | 638 return o; |
| 639 } | 639 } |
| 640 | 640 |
| 641 checkLogUserEventRequest(api.LogUserEventRequest o) { | 641 checkLogUserEventRequest(api.LogUserEventRequest o) { |
| 642 buildCounterLogUserEventRequest++; | 642 buildCounterLogUserEventRequest++; |
| 643 if (buildCounterLogUserEventRequest < 3) { | 643 if (buildCounterLogUserEventRequest < 3) { |
| 644 unittest.expect(o.eventAction, unittest.equals('foo')); | 644 unittest.expect(o.eventAction, unittest.equals('foo')); |
| 645 unittest.expect(o.eventCategory, unittest.equals('foo')); | 645 unittest.expect(o.eventCategory, unittest.equals('foo')); |
| 646 checkUnnamed1800(o.eventDatas); | 646 checkUnnamed1894(o.eventDatas); |
| 647 unittest.expect(o.eventScope, unittest.equals('foo')); | 647 unittest.expect(o.eventScope, unittest.equals('foo')); |
| 648 checkLead(o.lead); | 648 checkLead(o.lead); |
| 649 checkRequestMetadata(o.requestMetadata); | 649 checkRequestMetadata(o.requestMetadata); |
| 650 unittest.expect(o.url, unittest.equals('foo')); | 650 unittest.expect(o.url, unittest.equals('foo')); |
| 651 } | 651 } |
| 652 buildCounterLogUserEventRequest--; | 652 buildCounterLogUserEventRequest--; |
| 653 } | 653 } |
| 654 | 654 |
| 655 core.int buildCounterLogUserEventResponse = 0; | 655 core.int buildCounterLogUserEventResponse = 0; |
| 656 buildLogUserEventResponse() { | 656 buildLogUserEventResponse() { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 | 754 |
| 755 checkRecaptchaChallenge(api.RecaptchaChallenge o) { | 755 checkRecaptchaChallenge(api.RecaptchaChallenge o) { |
| 756 buildCounterRecaptchaChallenge++; | 756 buildCounterRecaptchaChallenge++; |
| 757 if (buildCounterRecaptchaChallenge < 3) { | 757 if (buildCounterRecaptchaChallenge < 3) { |
| 758 unittest.expect(o.id, unittest.equals('foo')); | 758 unittest.expect(o.id, unittest.equals('foo')); |
| 759 unittest.expect(o.response, unittest.equals('foo')); | 759 unittest.expect(o.response, unittest.equals('foo')); |
| 760 } | 760 } |
| 761 buildCounterRecaptchaChallenge--; | 761 buildCounterRecaptchaChallenge--; |
| 762 } | 762 } |
| 763 | 763 |
| 764 buildUnnamed1801() { | 764 buildUnnamed1895() { |
| 765 var o = new core.List<core.String>(); | 765 var o = new core.List<core.String>(); |
| 766 o.add("foo"); | 766 o.add("foo"); |
| 767 o.add("foo"); | 767 o.add("foo"); |
| 768 return o; | 768 return o; |
| 769 } | 769 } |
| 770 | 770 |
| 771 checkUnnamed1801(core.List<core.String> o) { | 771 checkUnnamed1895(core.List<core.String> o) { |
| 772 unittest.expect(o, unittest.hasLength(2)); | 772 unittest.expect(o, unittest.hasLength(2)); |
| 773 unittest.expect(o[0], unittest.equals('foo')); | 773 unittest.expect(o[0], unittest.equals('foo')); |
| 774 unittest.expect(o[1], unittest.equals('foo')); | 774 unittest.expect(o[1], unittest.equals('foo')); |
| 775 } | 775 } |
| 776 | 776 |
| 777 core.int buildCounterRequestMetadata = 0; | 777 core.int buildCounterRequestMetadata = 0; |
| 778 buildRequestMetadata() { | 778 buildRequestMetadata() { |
| 779 var o = new api.RequestMetadata(); | 779 var o = new api.RequestMetadata(); |
| 780 buildCounterRequestMetadata++; | 780 buildCounterRequestMetadata++; |
| 781 if (buildCounterRequestMetadata < 3) { | 781 if (buildCounterRequestMetadata < 3) { |
| 782 o.experimentIds = buildUnnamed1801(); | 782 o.experimentIds = buildUnnamed1895(); |
| 783 o.locale = "foo"; | 783 o.locale = "foo"; |
| 784 o.partnersSessionId = "foo"; | 784 o.partnersSessionId = "foo"; |
| 785 o.trafficSource = buildTrafficSource(); | 785 o.trafficSource = buildTrafficSource(); |
| 786 o.userOverrides = buildUserOverrides(); | 786 o.userOverrides = buildUserOverrides(); |
| 787 } | 787 } |
| 788 buildCounterRequestMetadata--; | 788 buildCounterRequestMetadata--; |
| 789 return o; | 789 return o; |
| 790 } | 790 } |
| 791 | 791 |
| 792 checkRequestMetadata(api.RequestMetadata o) { | 792 checkRequestMetadata(api.RequestMetadata o) { |
| 793 buildCounterRequestMetadata++; | 793 buildCounterRequestMetadata++; |
| 794 if (buildCounterRequestMetadata < 3) { | 794 if (buildCounterRequestMetadata < 3) { |
| 795 checkUnnamed1801(o.experimentIds); | 795 checkUnnamed1895(o.experimentIds); |
| 796 unittest.expect(o.locale, unittest.equals('foo')); | 796 unittest.expect(o.locale, unittest.equals('foo')); |
| 797 unittest.expect(o.partnersSessionId, unittest.equals('foo')); | 797 unittest.expect(o.partnersSessionId, unittest.equals('foo')); |
| 798 checkTrafficSource(o.trafficSource); | 798 checkTrafficSource(o.trafficSource); |
| 799 checkUserOverrides(o.userOverrides); | 799 checkUserOverrides(o.userOverrides); |
| 800 } | 800 } |
| 801 buildCounterRequestMetadata--; | 801 buildCounterRequestMetadata--; |
| 802 } | 802 } |
| 803 | 803 |
| 804 core.int buildCounterResponseMetadata = 0; | 804 core.int buildCounterResponseMetadata = 0; |
| 805 buildResponseMetadata() { | 805 buildResponseMetadata() { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 | 855 |
| 856 checkUserOverrides(api.UserOverrides o) { | 856 checkUserOverrides(api.UserOverrides o) { |
| 857 buildCounterUserOverrides++; | 857 buildCounterUserOverrides++; |
| 858 if (buildCounterUserOverrides < 3) { | 858 if (buildCounterUserOverrides < 3) { |
| 859 unittest.expect(o.ipAddress, unittest.equals('foo')); | 859 unittest.expect(o.ipAddress, unittest.equals('foo')); |
| 860 unittest.expect(o.userId, unittest.equals('foo')); | 860 unittest.expect(o.userId, unittest.equals('foo')); |
| 861 } | 861 } |
| 862 buildCounterUserOverrides--; | 862 buildCounterUserOverrides--; |
| 863 } | 863 } |
| 864 | 864 |
| 865 buildUnnamed1802() { | 865 buildUnnamed1896() { |
| 866 var o = new core.List<core.String>(); | 866 var o = new core.List<core.String>(); |
| 867 o.add("foo"); | 867 o.add("foo"); |
| 868 o.add("foo"); | 868 o.add("foo"); |
| 869 return o; | 869 return o; |
| 870 } | 870 } |
| 871 | 871 |
| 872 checkUnnamed1802(core.List<core.String> o) { | 872 checkUnnamed1896(core.List<core.String> o) { |
| 873 unittest.expect(o, unittest.hasLength(2)); | 873 unittest.expect(o, unittest.hasLength(2)); |
| 874 unittest.expect(o[0], unittest.equals('foo')); | 874 unittest.expect(o[0], unittest.equals('foo')); |
| 875 unittest.expect(o[1], unittest.equals('foo')); | 875 unittest.expect(o[1], unittest.equals('foo')); |
| 876 } | 876 } |
| 877 | 877 |
| 878 buildUnnamed1803() { | 878 buildUnnamed1897() { |
| 879 var o = new core.List<core.String>(); | 879 var o = new core.List<core.String>(); |
| 880 o.add("foo"); | 880 o.add("foo"); |
| 881 o.add("foo"); | 881 o.add("foo"); |
| 882 return o; | 882 return o; |
| 883 } | 883 } |
| 884 | 884 |
| 885 checkUnnamed1803(core.List<core.String> o) { | 885 checkUnnamed1897(core.List<core.String> o) { |
| 886 unittest.expect(o, unittest.hasLength(2)); | 886 unittest.expect(o, unittest.hasLength(2)); |
| 887 unittest.expect(o[0], unittest.equals('foo')); | 887 unittest.expect(o[0], unittest.equals('foo')); |
| 888 unittest.expect(o[1], unittest.equals('foo')); | 888 unittest.expect(o[1], unittest.equals('foo')); |
| 889 } | 889 } |
| 890 | 890 |
| 891 buildUnnamed1804() { | 891 buildUnnamed1898() { |
| 892 var o = new core.List<core.String>(); | 892 var o = new core.List<core.String>(); |
| 893 o.add("foo"); | 893 o.add("foo"); |
| 894 o.add("foo"); | 894 o.add("foo"); |
| 895 return o; | 895 return o; |
| 896 } | 896 } |
| 897 | 897 |
| 898 checkUnnamed1804(core.List<core.String> o) { | 898 checkUnnamed1898(core.List<core.String> o) { |
| 899 unittest.expect(o, unittest.hasLength(2)); | 899 unittest.expect(o, unittest.hasLength(2)); |
| 900 unittest.expect(o[0], unittest.equals('foo')); | 900 unittest.expect(o[0], unittest.equals('foo')); |
| 901 unittest.expect(o[1], unittest.equals('foo')); | 901 unittest.expect(o[1], unittest.equals('foo')); |
| 902 } | 902 } |
| 903 | 903 |
| 904 buildUnnamed1805() { | 904 buildUnnamed1899() { |
| 905 var o = new core.List<core.String>(); | 905 var o = new core.List<core.String>(); |
| 906 o.add("foo"); | 906 o.add("foo"); |
| 907 o.add("foo"); | 907 o.add("foo"); |
| 908 return o; | 908 return o; |
| 909 } | 909 } |
| 910 | 910 |
| 911 checkUnnamed1805(core.List<core.String> o) { | 911 checkUnnamed1899(core.List<core.String> o) { |
| 912 unittest.expect(o, unittest.hasLength(2)); | 912 unittest.expect(o, unittest.hasLength(2)); |
| 913 unittest.expect(o[0], unittest.equals('foo')); | 913 unittest.expect(o[0], unittest.equals('foo')); |
| 914 unittest.expect(o[1], unittest.equals('foo')); | 914 unittest.expect(o[1], unittest.equals('foo')); |
| 915 } | 915 } |
| 916 | 916 |
| 917 buildUnnamed1806() { | 917 buildUnnamed1900() { |
| 918 var o = new core.List<core.String>(); | 918 var o = new core.List<core.String>(); |
| 919 o.add("foo"); | 919 o.add("foo"); |
| 920 o.add("foo"); | 920 o.add("foo"); |
| 921 return o; | 921 return o; |
| 922 } | 922 } |
| 923 | 923 |
| 924 checkUnnamed1806(core.List<core.String> o) { | 924 checkUnnamed1900(core.List<core.String> o) { |
| 925 unittest.expect(o, unittest.hasLength(2)); | 925 unittest.expect(o, unittest.hasLength(2)); |
| 926 unittest.expect(o[0], unittest.equals('foo')); | 926 unittest.expect(o[0], unittest.equals('foo')); |
| 927 unittest.expect(o[1], unittest.equals('foo')); | 927 unittest.expect(o[1], unittest.equals('foo')); |
| 928 } | 928 } |
| 929 | 929 |
| 930 buildUnnamed1807() { | 930 buildUnnamed1901() { |
| 931 var o = new core.List<core.String>(); | 931 var o = new core.List<core.String>(); |
| 932 o.add("foo"); | 932 o.add("foo"); |
| 933 o.add("foo"); | 933 o.add("foo"); |
| 934 return o; | 934 return o; |
| 935 } | 935 } |
| 936 | 936 |
| 937 checkUnnamed1807(core.List<core.String> o) { | 937 checkUnnamed1901(core.List<core.String> o) { |
| 938 unittest.expect(o, unittest.hasLength(2)); | 938 unittest.expect(o, unittest.hasLength(2)); |
| 939 unittest.expect(o[0], unittest.equals('foo')); | 939 unittest.expect(o[0], unittest.equals('foo')); |
| 940 unittest.expect(o[1], unittest.equals('foo')); | 940 unittest.expect(o[1], unittest.equals('foo')); |
| 941 } | 941 } |
| 942 | 942 |
| 943 buildUnnamed1808() { | 943 buildUnnamed1902() { |
| 944 var o = new core.List<core.String>(); | 944 var o = new core.List<core.String>(); |
| 945 o.add("foo"); | 945 o.add("foo"); |
| 946 o.add("foo"); | 946 o.add("foo"); |
| 947 return o; | 947 return o; |
| 948 } | 948 } |
| 949 | 949 |
| 950 checkUnnamed1808(core.List<core.String> o) { | 950 checkUnnamed1902(core.List<core.String> o) { |
| 951 unittest.expect(o, unittest.hasLength(2)); | 951 unittest.expect(o, unittest.hasLength(2)); |
| 952 unittest.expect(o[0], unittest.equals('foo')); | 952 unittest.expect(o[0], unittest.equals('foo')); |
| 953 unittest.expect(o[1], unittest.equals('foo')); | 953 unittest.expect(o[1], unittest.equals('foo')); |
| 954 } | 954 } |
| 955 | 955 |
| 956 | 956 |
| 957 main() { | 957 main() { |
| 958 unittest.group("obj-schema-CertificationExamStatus", () { | 958 unittest.group("obj-schema-CertificationExamStatus", () { |
| 959 unittest.test("to-json--from-json", () { | 959 unittest.test("to-json--from-json", () { |
| 960 var o = buildCertificationExamStatus(); | 960 var o = buildCertificationExamStatus(); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 unittest.group("resource-CompaniesResourceApi", () { | 1243 unittest.group("resource-CompaniesResourceApi", () { |
| 1244 unittest.test("method--get", () { | 1244 unittest.test("method--get", () { |
| 1245 | 1245 |
| 1246 var mock = new HttpServerMock(); | 1246 var mock = new HttpServerMock(); |
| 1247 api.CompaniesResourceApi res = new api.PartnersApi(mock).companies; | 1247 api.CompaniesResourceApi res = new api.PartnersApi(mock).companies; |
| 1248 var arg_companyId = "foo"; | 1248 var arg_companyId = "foo"; |
| 1249 var arg_requestMetadata_userOverrides_ipAddress = "foo"; | 1249 var arg_requestMetadata_userOverrides_ipAddress = "foo"; |
| 1250 var arg_requestMetadata_userOverrides_userId = "foo"; | 1250 var arg_requestMetadata_userOverrides_userId = "foo"; |
| 1251 var arg_requestMetadata_locale = "foo"; | 1251 var arg_requestMetadata_locale = "foo"; |
| 1252 var arg_requestMetadata_partnersSessionId = "foo"; | 1252 var arg_requestMetadata_partnersSessionId = "foo"; |
| 1253 var arg_requestMetadata_experimentIds = buildUnnamed1802(); | 1253 var arg_requestMetadata_experimentIds = buildUnnamed1896(); |
| 1254 var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; | 1254 var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; |
| 1255 var arg_requestMetadata_trafficSource_trafficSubId = "foo"; | 1255 var arg_requestMetadata_trafficSource_trafficSubId = "foo"; |
| 1256 var arg_view = "foo"; | 1256 var arg_view = "foo"; |
| 1257 var arg_orderBy = "foo"; | 1257 var arg_orderBy = "foo"; |
| 1258 var arg_currencyCode = "foo"; | 1258 var arg_currencyCode = "foo"; |
| 1259 var arg_address = "foo"; | 1259 var arg_address = "foo"; |
| 1260 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1260 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1261 var path = (req.url).path; | 1261 var path = (req.url).path; |
| 1262 var pathOffset = 0; | 1262 var pathOffset = 0; |
| 1263 var index; | 1263 var index; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 }); | 1311 }); |
| 1312 | 1312 |
| 1313 unittest.test("method--list", () { | 1313 unittest.test("method--list", () { |
| 1314 | 1314 |
| 1315 var mock = new HttpServerMock(); | 1315 var mock = new HttpServerMock(); |
| 1316 api.CompaniesResourceApi res = new api.PartnersApi(mock).companies; | 1316 api.CompaniesResourceApi res = new api.PartnersApi(mock).companies; |
| 1317 var arg_requestMetadata_userOverrides_ipAddress = "foo"; | 1317 var arg_requestMetadata_userOverrides_ipAddress = "foo"; |
| 1318 var arg_requestMetadata_userOverrides_userId = "foo"; | 1318 var arg_requestMetadata_userOverrides_userId = "foo"; |
| 1319 var arg_requestMetadata_locale = "foo"; | 1319 var arg_requestMetadata_locale = "foo"; |
| 1320 var arg_requestMetadata_partnersSessionId = "foo"; | 1320 var arg_requestMetadata_partnersSessionId = "foo"; |
| 1321 var arg_requestMetadata_experimentIds = buildUnnamed1803(); | 1321 var arg_requestMetadata_experimentIds = buildUnnamed1897(); |
| 1322 var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; | 1322 var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; |
| 1323 var arg_requestMetadata_trafficSource_trafficSubId = "foo"; | 1323 var arg_requestMetadata_trafficSource_trafficSubId = "foo"; |
| 1324 var arg_pageSize = 42; | 1324 var arg_pageSize = 42; |
| 1325 var arg_pageToken = "foo"; | 1325 var arg_pageToken = "foo"; |
| 1326 var arg_companyName = "foo"; | 1326 var arg_companyName = "foo"; |
| 1327 var arg_view = "foo"; | 1327 var arg_view = "foo"; |
| 1328 var arg_minMonthlyBudget_currencyCode = "foo"; | 1328 var arg_minMonthlyBudget_currencyCode = "foo"; |
| 1329 var arg_minMonthlyBudget_units = "foo"; | 1329 var arg_minMonthlyBudget_units = "foo"; |
| 1330 var arg_minMonthlyBudget_nanos = 42; | 1330 var arg_minMonthlyBudget_nanos = 42; |
| 1331 var arg_maxMonthlyBudget_currencyCode = "foo"; | 1331 var arg_maxMonthlyBudget_currencyCode = "foo"; |
| 1332 var arg_maxMonthlyBudget_units = "foo"; | 1332 var arg_maxMonthlyBudget_units = "foo"; |
| 1333 var arg_maxMonthlyBudget_nanos = 42; | 1333 var arg_maxMonthlyBudget_nanos = 42; |
| 1334 var arg_industries = buildUnnamed1804(); | 1334 var arg_industries = buildUnnamed1898(); |
| 1335 var arg_services = buildUnnamed1805(); | 1335 var arg_services = buildUnnamed1899(); |
| 1336 var arg_languageCodes = buildUnnamed1806(); | 1336 var arg_languageCodes = buildUnnamed1900(); |
| 1337 var arg_address = "foo"; | 1337 var arg_address = "foo"; |
| 1338 var arg_orderBy = "foo"; | 1338 var arg_orderBy = "foo"; |
| 1339 var arg_gpsMotivations = buildUnnamed1807(); | 1339 var arg_gpsMotivations = buildUnnamed1901(); |
| 1340 var arg_websiteUrl = "foo"; | 1340 var arg_websiteUrl = "foo"; |
| 1341 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1341 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1342 var path = (req.url).path; | 1342 var path = (req.url).path; |
| 1343 var pathOffset = 0; | 1343 var pathOffset = 0; |
| 1344 var index; | 1344 var index; |
| 1345 var subPart; | 1345 var subPart; |
| 1346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1347 pathOffset += 1; | 1347 pathOffset += 1; |
| 1348 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v2/companies")); | 1348 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v2/companies")); |
| 1349 pathOffset += 12; | 1349 pathOffset += 12; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 | 1516 |
| 1517 unittest.group("resource-UserStatesResourceApi", () { | 1517 unittest.group("resource-UserStatesResourceApi", () { |
| 1518 unittest.test("method--list", () { | 1518 unittest.test("method--list", () { |
| 1519 | 1519 |
| 1520 var mock = new HttpServerMock(); | 1520 var mock = new HttpServerMock(); |
| 1521 api.UserStatesResourceApi res = new api.PartnersApi(mock).userStates; | 1521 api.UserStatesResourceApi res = new api.PartnersApi(mock).userStates; |
| 1522 var arg_requestMetadata_userOverrides_ipAddress = "foo"; | 1522 var arg_requestMetadata_userOverrides_ipAddress = "foo"; |
| 1523 var arg_requestMetadata_userOverrides_userId = "foo"; | 1523 var arg_requestMetadata_userOverrides_userId = "foo"; |
| 1524 var arg_requestMetadata_locale = "foo"; | 1524 var arg_requestMetadata_locale = "foo"; |
| 1525 var arg_requestMetadata_partnersSessionId = "foo"; | 1525 var arg_requestMetadata_partnersSessionId = "foo"; |
| 1526 var arg_requestMetadata_experimentIds = buildUnnamed1808(); | 1526 var arg_requestMetadata_experimentIds = buildUnnamed1902(); |
| 1527 var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; | 1527 var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; |
| 1528 var arg_requestMetadata_trafficSource_trafficSubId = "foo"; | 1528 var arg_requestMetadata_trafficSource_trafficSubId = "foo"; |
| 1529 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1529 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1530 var path = (req.url).path; | 1530 var path = (req.url).path; |
| 1531 var pathOffset = 0; | 1531 var pathOffset = 0; |
| 1532 var index; | 1532 var index; |
| 1533 var subPart; | 1533 var subPart; |
| 1534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1535 pathOffset += 1; | 1535 pathOffset += 1; |
| 1536 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v2/userStates")); | 1536 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v2/userStates")); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1570 res.list(requestMetadata_userOverrides_ipAddress: arg_requestMetadata_user
Overrides_ipAddress, requestMetadata_userOverrides_userId: arg_requestMetadata_u
serOverrides_userId, requestMetadata_locale: arg_requestMetadata_locale, request
Metadata_partnersSessionId: arg_requestMetadata_partnersSessionId, requestMetada
ta_experimentIds: arg_requestMetadata_experimentIds, requestMetadata_trafficSour
ce_trafficSourceId: arg_requestMetadata_trafficSource_trafficSourceId, requestMe
tadata_trafficSource_trafficSubId: arg_requestMetadata_trafficSource_trafficSubI
d).then(unittest.expectAsync(((api.ListUserStatesResponse response) { | 1570 res.list(requestMetadata_userOverrides_ipAddress: arg_requestMetadata_user
Overrides_ipAddress, requestMetadata_userOverrides_userId: arg_requestMetadata_u
serOverrides_userId, requestMetadata_locale: arg_requestMetadata_locale, request
Metadata_partnersSessionId: arg_requestMetadata_partnersSessionId, requestMetada
ta_experimentIds: arg_requestMetadata_experimentIds, requestMetadata_trafficSour
ce_trafficSourceId: arg_requestMetadata_trafficSource_trafficSourceId, requestMe
tadata_trafficSource_trafficSubId: arg_requestMetadata_trafficSource_trafficSubI
d).then(unittest.expectAsync(((api.ListUserStatesResponse response) { |
| 1571 checkListUserStatesResponse(response); | 1571 checkListUserStatesResponse(response); |
| 1572 }))); | 1572 }))); |
| 1573 }); | 1573 }); |
| 1574 | 1574 |
| 1575 }); | 1575 }); |
| 1576 | 1576 |
| 1577 | 1577 |
| 1578 } | 1578 } |
| 1579 | 1579 |
| OLD | NEW |