| OLD | NEW |
| 1 library googleapis.playmoviespartner.v1.test; | 1 library googleapis.playmoviespartner.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed3020() { | 54 buildUnnamed3111() { |
| 55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
| 56 o.add("foo"); | 56 o.add("foo"); |
| 57 o.add("foo"); | 57 o.add("foo"); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed3020(core.List<core.String> o) { | 61 checkUnnamed3111(core.List<core.String> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
| 64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterAvail = 0; | 67 core.int buildCounterAvail = 0; |
| 68 buildAvail() { | 68 buildAvail() { |
| 69 var o = new api.Avail(); | 69 var o = new api.Avail(); |
| 70 buildCounterAvail++; | 70 buildCounterAvail++; |
| 71 if (buildCounterAvail < 3) { | 71 if (buildCounterAvail < 3) { |
| 72 o.altId = "foo"; | 72 o.altId = "foo"; |
| 73 o.availId = "foo"; | 73 o.availId = "foo"; |
| 74 o.captionExemption = "foo"; | 74 o.captionExemption = "foo"; |
| 75 o.captionIncluded = true; | 75 o.captionIncluded = true; |
| 76 o.contentId = "foo"; | 76 o.contentId = "foo"; |
| 77 o.displayName = "foo"; | 77 o.displayName = "foo"; |
| 78 o.encodeId = "foo"; | 78 o.encodeId = "foo"; |
| 79 o.end = "foo"; | 79 o.end = "foo"; |
| 80 o.episodeAltId = "foo"; | 80 o.episodeAltId = "foo"; |
| 81 o.episodeNumber = "foo"; | 81 o.episodeNumber = "foo"; |
| 82 o.episodeTitleInternalAlias = "foo"; | 82 o.episodeTitleInternalAlias = "foo"; |
| 83 o.formatProfile = "foo"; | 83 o.formatProfile = "foo"; |
| 84 o.licenseType = "foo"; | 84 o.licenseType = "foo"; |
| 85 o.pphNames = buildUnnamed3020(); | 85 o.pphNames = buildUnnamed3111(); |
| 86 o.priceType = "foo"; | 86 o.priceType = "foo"; |
| 87 o.priceValue = "foo"; | 87 o.priceValue = "foo"; |
| 88 o.productId = "foo"; | 88 o.productId = "foo"; |
| 89 o.ratingReason = "foo"; | 89 o.ratingReason = "foo"; |
| 90 o.ratingSystem = "foo"; | 90 o.ratingSystem = "foo"; |
| 91 o.ratingValue = "foo"; | 91 o.ratingValue = "foo"; |
| 92 o.releaseDate = "foo"; | 92 o.releaseDate = "foo"; |
| 93 o.seasonAltId = "foo"; | 93 o.seasonAltId = "foo"; |
| 94 o.seasonNumber = "foo"; | 94 o.seasonNumber = "foo"; |
| 95 o.seasonTitleInternalAlias = "foo"; | 95 o.seasonTitleInternalAlias = "foo"; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 116 unittest.expect(o.captionIncluded, unittest.isTrue); | 116 unittest.expect(o.captionIncluded, unittest.isTrue); |
| 117 unittest.expect(o.contentId, unittest.equals('foo')); | 117 unittest.expect(o.contentId, unittest.equals('foo')); |
| 118 unittest.expect(o.displayName, unittest.equals('foo')); | 118 unittest.expect(o.displayName, unittest.equals('foo')); |
| 119 unittest.expect(o.encodeId, unittest.equals('foo')); | 119 unittest.expect(o.encodeId, unittest.equals('foo')); |
| 120 unittest.expect(o.end, unittest.equals('foo')); | 120 unittest.expect(o.end, unittest.equals('foo')); |
| 121 unittest.expect(o.episodeAltId, unittest.equals('foo')); | 121 unittest.expect(o.episodeAltId, unittest.equals('foo')); |
| 122 unittest.expect(o.episodeNumber, unittest.equals('foo')); | 122 unittest.expect(o.episodeNumber, unittest.equals('foo')); |
| 123 unittest.expect(o.episodeTitleInternalAlias, unittest.equals('foo')); | 123 unittest.expect(o.episodeTitleInternalAlias, unittest.equals('foo')); |
| 124 unittest.expect(o.formatProfile, unittest.equals('foo')); | 124 unittest.expect(o.formatProfile, unittest.equals('foo')); |
| 125 unittest.expect(o.licenseType, unittest.equals('foo')); | 125 unittest.expect(o.licenseType, unittest.equals('foo')); |
| 126 checkUnnamed3020(o.pphNames); | 126 checkUnnamed3111(o.pphNames); |
| 127 unittest.expect(o.priceType, unittest.equals('foo')); | 127 unittest.expect(o.priceType, unittest.equals('foo')); |
| 128 unittest.expect(o.priceValue, unittest.equals('foo')); | 128 unittest.expect(o.priceValue, unittest.equals('foo')); |
| 129 unittest.expect(o.productId, unittest.equals('foo')); | 129 unittest.expect(o.productId, unittest.equals('foo')); |
| 130 unittest.expect(o.ratingReason, unittest.equals('foo')); | 130 unittest.expect(o.ratingReason, unittest.equals('foo')); |
| 131 unittest.expect(o.ratingSystem, unittest.equals('foo')); | 131 unittest.expect(o.ratingSystem, unittest.equals('foo')); |
| 132 unittest.expect(o.ratingValue, unittest.equals('foo')); | 132 unittest.expect(o.ratingValue, unittest.equals('foo')); |
| 133 unittest.expect(o.releaseDate, unittest.equals('foo')); | 133 unittest.expect(o.releaseDate, unittest.equals('foo')); |
| 134 unittest.expect(o.seasonAltId, unittest.equals('foo')); | 134 unittest.expect(o.seasonAltId, unittest.equals('foo')); |
| 135 unittest.expect(o.seasonNumber, unittest.equals('foo')); | 135 unittest.expect(o.seasonNumber, unittest.equals('foo')); |
| 136 unittest.expect(o.seasonTitleInternalAlias, unittest.equals('foo')); | 136 unittest.expect(o.seasonTitleInternalAlias, unittest.equals('foo')); |
| 137 unittest.expect(o.seriesAltId, unittest.equals('foo')); | 137 unittest.expect(o.seriesAltId, unittest.equals('foo')); |
| 138 unittest.expect(o.seriesTitleInternalAlias, unittest.equals('foo')); | 138 unittest.expect(o.seriesTitleInternalAlias, unittest.equals('foo')); |
| 139 unittest.expect(o.start, unittest.equals('foo')); | 139 unittest.expect(o.start, unittest.equals('foo')); |
| 140 unittest.expect(o.storeLanguage, unittest.equals('foo')); | 140 unittest.expect(o.storeLanguage, unittest.equals('foo')); |
| 141 unittest.expect(o.suppressionLiftDate, unittest.equals('foo')); | 141 unittest.expect(o.suppressionLiftDate, unittest.equals('foo')); |
| 142 unittest.expect(o.territory, unittest.equals('foo')); | 142 unittest.expect(o.territory, unittest.equals('foo')); |
| 143 unittest.expect(o.titleInternalAlias, unittest.equals('foo')); | 143 unittest.expect(o.titleInternalAlias, unittest.equals('foo')); |
| 144 unittest.expect(o.videoId, unittest.equals('foo')); | 144 unittest.expect(o.videoId, unittest.equals('foo')); |
| 145 unittest.expect(o.workType, unittest.equals('foo')); | 145 unittest.expect(o.workType, unittest.equals('foo')); |
| 146 } | 146 } |
| 147 buildCounterAvail--; | 147 buildCounterAvail--; |
| 148 } | 148 } |
| 149 | 149 |
| 150 buildUnnamed3021() { | 150 buildUnnamed3112() { |
| 151 var o = new core.List<api.Avail>(); | 151 var o = new core.List<api.Avail>(); |
| 152 o.add(buildAvail()); | 152 o.add(buildAvail()); |
| 153 o.add(buildAvail()); | 153 o.add(buildAvail()); |
| 154 return o; | 154 return o; |
| 155 } | 155 } |
| 156 | 156 |
| 157 checkUnnamed3021(core.List<api.Avail> o) { | 157 checkUnnamed3112(core.List<api.Avail> o) { |
| 158 unittest.expect(o, unittest.hasLength(2)); | 158 unittest.expect(o, unittest.hasLength(2)); |
| 159 checkAvail(o[0]); | 159 checkAvail(o[0]); |
| 160 checkAvail(o[1]); | 160 checkAvail(o[1]); |
| 161 } | 161 } |
| 162 | 162 |
| 163 core.int buildCounterListAvailsResponse = 0; | 163 core.int buildCounterListAvailsResponse = 0; |
| 164 buildListAvailsResponse() { | 164 buildListAvailsResponse() { |
| 165 var o = new api.ListAvailsResponse(); | 165 var o = new api.ListAvailsResponse(); |
| 166 buildCounterListAvailsResponse++; | 166 buildCounterListAvailsResponse++; |
| 167 if (buildCounterListAvailsResponse < 3) { | 167 if (buildCounterListAvailsResponse < 3) { |
| 168 o.avails = buildUnnamed3021(); | 168 o.avails = buildUnnamed3112(); |
| 169 o.nextPageToken = "foo"; | 169 o.nextPageToken = "foo"; |
| 170 o.totalSize = 42; | 170 o.totalSize = 42; |
| 171 } | 171 } |
| 172 buildCounterListAvailsResponse--; | 172 buildCounterListAvailsResponse--; |
| 173 return o; | 173 return o; |
| 174 } | 174 } |
| 175 | 175 |
| 176 checkListAvailsResponse(api.ListAvailsResponse o) { | 176 checkListAvailsResponse(api.ListAvailsResponse o) { |
| 177 buildCounterListAvailsResponse++; | 177 buildCounterListAvailsResponse++; |
| 178 if (buildCounterListAvailsResponse < 3) { | 178 if (buildCounterListAvailsResponse < 3) { |
| 179 checkUnnamed3021(o.avails); | 179 checkUnnamed3112(o.avails); |
| 180 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 180 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 181 unittest.expect(o.totalSize, unittest.equals(42)); | 181 unittest.expect(o.totalSize, unittest.equals(42)); |
| 182 } | 182 } |
| 183 buildCounterListAvailsResponse--; | 183 buildCounterListAvailsResponse--; |
| 184 } | 184 } |
| 185 | 185 |
| 186 buildUnnamed3022() { | 186 buildUnnamed3113() { |
| 187 var o = new core.List<api.Order>(); | 187 var o = new core.List<api.Order>(); |
| 188 o.add(buildOrder()); | 188 o.add(buildOrder()); |
| 189 o.add(buildOrder()); | 189 o.add(buildOrder()); |
| 190 return o; | 190 return o; |
| 191 } | 191 } |
| 192 | 192 |
| 193 checkUnnamed3022(core.List<api.Order> o) { | 193 checkUnnamed3113(core.List<api.Order> o) { |
| 194 unittest.expect(o, unittest.hasLength(2)); | 194 unittest.expect(o, unittest.hasLength(2)); |
| 195 checkOrder(o[0]); | 195 checkOrder(o[0]); |
| 196 checkOrder(o[1]); | 196 checkOrder(o[1]); |
| 197 } | 197 } |
| 198 | 198 |
| 199 core.int buildCounterListOrdersResponse = 0; | 199 core.int buildCounterListOrdersResponse = 0; |
| 200 buildListOrdersResponse() { | 200 buildListOrdersResponse() { |
| 201 var o = new api.ListOrdersResponse(); | 201 var o = new api.ListOrdersResponse(); |
| 202 buildCounterListOrdersResponse++; | 202 buildCounterListOrdersResponse++; |
| 203 if (buildCounterListOrdersResponse < 3) { | 203 if (buildCounterListOrdersResponse < 3) { |
| 204 o.nextPageToken = "foo"; | 204 o.nextPageToken = "foo"; |
| 205 o.orders = buildUnnamed3022(); | 205 o.orders = buildUnnamed3113(); |
| 206 o.totalSize = 42; | 206 o.totalSize = 42; |
| 207 } | 207 } |
| 208 buildCounterListOrdersResponse--; | 208 buildCounterListOrdersResponse--; |
| 209 return o; | 209 return o; |
| 210 } | 210 } |
| 211 | 211 |
| 212 checkListOrdersResponse(api.ListOrdersResponse o) { | 212 checkListOrdersResponse(api.ListOrdersResponse o) { |
| 213 buildCounterListOrdersResponse++; | 213 buildCounterListOrdersResponse++; |
| 214 if (buildCounterListOrdersResponse < 3) { | 214 if (buildCounterListOrdersResponse < 3) { |
| 215 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 215 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 216 checkUnnamed3022(o.orders); | 216 checkUnnamed3113(o.orders); |
| 217 unittest.expect(o.totalSize, unittest.equals(42)); | 217 unittest.expect(o.totalSize, unittest.equals(42)); |
| 218 } | 218 } |
| 219 buildCounterListOrdersResponse--; | 219 buildCounterListOrdersResponse--; |
| 220 } | 220 } |
| 221 | 221 |
| 222 buildUnnamed3023() { | 222 buildUnnamed3114() { |
| 223 var o = new core.List<api.StoreInfo>(); | 223 var o = new core.List<api.StoreInfo>(); |
| 224 o.add(buildStoreInfo()); | 224 o.add(buildStoreInfo()); |
| 225 o.add(buildStoreInfo()); | 225 o.add(buildStoreInfo()); |
| 226 return o; | 226 return o; |
| 227 } | 227 } |
| 228 | 228 |
| 229 checkUnnamed3023(core.List<api.StoreInfo> o) { | 229 checkUnnamed3114(core.List<api.StoreInfo> o) { |
| 230 unittest.expect(o, unittest.hasLength(2)); | 230 unittest.expect(o, unittest.hasLength(2)); |
| 231 checkStoreInfo(o[0]); | 231 checkStoreInfo(o[0]); |
| 232 checkStoreInfo(o[1]); | 232 checkStoreInfo(o[1]); |
| 233 } | 233 } |
| 234 | 234 |
| 235 core.int buildCounterListStoreInfosResponse = 0; | 235 core.int buildCounterListStoreInfosResponse = 0; |
| 236 buildListStoreInfosResponse() { | 236 buildListStoreInfosResponse() { |
| 237 var o = new api.ListStoreInfosResponse(); | 237 var o = new api.ListStoreInfosResponse(); |
| 238 buildCounterListStoreInfosResponse++; | 238 buildCounterListStoreInfosResponse++; |
| 239 if (buildCounterListStoreInfosResponse < 3) { | 239 if (buildCounterListStoreInfosResponse < 3) { |
| 240 o.nextPageToken = "foo"; | 240 o.nextPageToken = "foo"; |
| 241 o.storeInfos = buildUnnamed3023(); | 241 o.storeInfos = buildUnnamed3114(); |
| 242 o.totalSize = 42; | 242 o.totalSize = 42; |
| 243 } | 243 } |
| 244 buildCounterListStoreInfosResponse--; | 244 buildCounterListStoreInfosResponse--; |
| 245 return o; | 245 return o; |
| 246 } | 246 } |
| 247 | 247 |
| 248 checkListStoreInfosResponse(api.ListStoreInfosResponse o) { | 248 checkListStoreInfosResponse(api.ListStoreInfosResponse o) { |
| 249 buildCounterListStoreInfosResponse++; | 249 buildCounterListStoreInfosResponse++; |
| 250 if (buildCounterListStoreInfosResponse < 3) { | 250 if (buildCounterListStoreInfosResponse < 3) { |
| 251 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 251 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 252 checkUnnamed3023(o.storeInfos); | 252 checkUnnamed3114(o.storeInfos); |
| 253 unittest.expect(o.totalSize, unittest.equals(42)); | 253 unittest.expect(o.totalSize, unittest.equals(42)); |
| 254 } | 254 } |
| 255 buildCounterListStoreInfosResponse--; | 255 buildCounterListStoreInfosResponse--; |
| 256 } | 256 } |
| 257 | 257 |
| 258 buildUnnamed3024() { | 258 buildUnnamed3115() { |
| 259 var o = new core.List<core.String>(); | 259 var o = new core.List<core.String>(); |
| 260 o.add("foo"); | 260 o.add("foo"); |
| 261 o.add("foo"); | 261 o.add("foo"); |
| 262 return o; | 262 return o; |
| 263 } | 263 } |
| 264 | 264 |
| 265 checkUnnamed3024(core.List<core.String> o) { | 265 checkUnnamed3115(core.List<core.String> o) { |
| 266 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
| 267 unittest.expect(o[0], unittest.equals('foo')); | 267 unittest.expect(o[0], unittest.equals('foo')); |
| 268 unittest.expect(o[1], unittest.equals('foo')); | 268 unittest.expect(o[1], unittest.equals('foo')); |
| 269 } | 269 } |
| 270 | 270 |
| 271 core.int buildCounterOrder = 0; | 271 core.int buildCounterOrder = 0; |
| 272 buildOrder() { | 272 buildOrder() { |
| 273 var o = new api.Order(); | 273 var o = new api.Order(); |
| 274 buildCounterOrder++; | 274 buildCounterOrder++; |
| 275 if (buildCounterOrder < 3) { | 275 if (buildCounterOrder < 3) { |
| 276 o.approvedTime = "foo"; | 276 o.approvedTime = "foo"; |
| 277 o.channelId = "foo"; | 277 o.channelId = "foo"; |
| 278 o.channelName = "foo"; | 278 o.channelName = "foo"; |
| 279 o.countries = buildUnnamed3024(); | 279 o.countries = buildUnnamed3115(); |
| 280 o.customId = "foo"; | 280 o.customId = "foo"; |
| 281 o.earliestAvailStartTime = "foo"; | 281 o.earliestAvailStartTime = "foo"; |
| 282 o.episodeName = "foo"; | 282 o.episodeName = "foo"; |
| 283 o.legacyPriority = "foo"; | 283 o.legacyPriority = "foo"; |
| 284 o.name = "foo"; | 284 o.name = "foo"; |
| 285 o.normalizedPriority = "foo"; | 285 o.normalizedPriority = "foo"; |
| 286 o.orderId = "foo"; | 286 o.orderId = "foo"; |
| 287 o.orderedTime = "foo"; | 287 o.orderedTime = "foo"; |
| 288 o.pphName = "foo"; | 288 o.pphName = "foo"; |
| 289 o.priority = 42.0; | 289 o.priority = 42.0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 300 buildCounterOrder--; | 300 buildCounterOrder--; |
| 301 return o; | 301 return o; |
| 302 } | 302 } |
| 303 | 303 |
| 304 checkOrder(api.Order o) { | 304 checkOrder(api.Order o) { |
| 305 buildCounterOrder++; | 305 buildCounterOrder++; |
| 306 if (buildCounterOrder < 3) { | 306 if (buildCounterOrder < 3) { |
| 307 unittest.expect(o.approvedTime, unittest.equals('foo')); | 307 unittest.expect(o.approvedTime, unittest.equals('foo')); |
| 308 unittest.expect(o.channelId, unittest.equals('foo')); | 308 unittest.expect(o.channelId, unittest.equals('foo')); |
| 309 unittest.expect(o.channelName, unittest.equals('foo')); | 309 unittest.expect(o.channelName, unittest.equals('foo')); |
| 310 checkUnnamed3024(o.countries); | 310 checkUnnamed3115(o.countries); |
| 311 unittest.expect(o.customId, unittest.equals('foo')); | 311 unittest.expect(o.customId, unittest.equals('foo')); |
| 312 unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); | 312 unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); |
| 313 unittest.expect(o.episodeName, unittest.equals('foo')); | 313 unittest.expect(o.episodeName, unittest.equals('foo')); |
| 314 unittest.expect(o.legacyPriority, unittest.equals('foo')); | 314 unittest.expect(o.legacyPriority, unittest.equals('foo')); |
| 315 unittest.expect(o.name, unittest.equals('foo')); | 315 unittest.expect(o.name, unittest.equals('foo')); |
| 316 unittest.expect(o.normalizedPriority, unittest.equals('foo')); | 316 unittest.expect(o.normalizedPriority, unittest.equals('foo')); |
| 317 unittest.expect(o.orderId, unittest.equals('foo')); | 317 unittest.expect(o.orderId, unittest.equals('foo')); |
| 318 unittest.expect(o.orderedTime, unittest.equals('foo')); | 318 unittest.expect(o.orderedTime, unittest.equals('foo')); |
| 319 unittest.expect(o.pphName, unittest.equals('foo')); | 319 unittest.expect(o.pphName, unittest.equals('foo')); |
| 320 unittest.expect(o.priority, unittest.equals(42.0)); | 320 unittest.expect(o.priority, unittest.equals(42.0)); |
| 321 unittest.expect(o.receivedTime, unittest.equals('foo')); | 321 unittest.expect(o.receivedTime, unittest.equals('foo')); |
| 322 unittest.expect(o.rejectionNote, unittest.equals('foo')); | 322 unittest.expect(o.rejectionNote, unittest.equals('foo')); |
| 323 unittest.expect(o.seasonName, unittest.equals('foo')); | 323 unittest.expect(o.seasonName, unittest.equals('foo')); |
| 324 unittest.expect(o.showName, unittest.equals('foo')); | 324 unittest.expect(o.showName, unittest.equals('foo')); |
| 325 unittest.expect(o.status, unittest.equals('foo')); | 325 unittest.expect(o.status, unittest.equals('foo')); |
| 326 unittest.expect(o.statusDetail, unittest.equals('foo')); | 326 unittest.expect(o.statusDetail, unittest.equals('foo')); |
| 327 unittest.expect(o.studioName, unittest.equals('foo')); | 327 unittest.expect(o.studioName, unittest.equals('foo')); |
| 328 unittest.expect(o.type, unittest.equals('foo')); | 328 unittest.expect(o.type, unittest.equals('foo')); |
| 329 unittest.expect(o.videoId, unittest.equals('foo')); | 329 unittest.expect(o.videoId, unittest.equals('foo')); |
| 330 } | 330 } |
| 331 buildCounterOrder--; | 331 buildCounterOrder--; |
| 332 } | 332 } |
| 333 | 333 |
| 334 buildUnnamed3025() { | 334 buildUnnamed3116() { |
| 335 var o = new core.List<core.String>(); | 335 var o = new core.List<core.String>(); |
| 336 o.add("foo"); | 336 o.add("foo"); |
| 337 o.add("foo"); | 337 o.add("foo"); |
| 338 return o; | 338 return o; |
| 339 } | 339 } |
| 340 | 340 |
| 341 checkUnnamed3025(core.List<core.String> o) { | 341 checkUnnamed3116(core.List<core.String> o) { |
| 342 unittest.expect(o, unittest.hasLength(2)); | 342 unittest.expect(o, unittest.hasLength(2)); |
| 343 unittest.expect(o[0], unittest.equals('foo')); | 343 unittest.expect(o[0], unittest.equals('foo')); |
| 344 unittest.expect(o[1], unittest.equals('foo')); | 344 unittest.expect(o[1], unittest.equals('foo')); |
| 345 } | 345 } |
| 346 | 346 |
| 347 buildUnnamed3026() { | 347 buildUnnamed3117() { |
| 348 var o = new core.List<core.String>(); | 348 var o = new core.List<core.String>(); |
| 349 o.add("foo"); | 349 o.add("foo"); |
| 350 o.add("foo"); | 350 o.add("foo"); |
| 351 return o; | 351 return o; |
| 352 } | 352 } |
| 353 | 353 |
| 354 checkUnnamed3026(core.List<core.String> o) { | 354 checkUnnamed3117(core.List<core.String> o) { |
| 355 unittest.expect(o, unittest.hasLength(2)); | 355 unittest.expect(o, unittest.hasLength(2)); |
| 356 unittest.expect(o[0], unittest.equals('foo')); | 356 unittest.expect(o[0], unittest.equals('foo')); |
| 357 unittest.expect(o[1], unittest.equals('foo')); | 357 unittest.expect(o[1], unittest.equals('foo')); |
| 358 } | 358 } |
| 359 | 359 |
| 360 buildUnnamed3027() { | 360 buildUnnamed3118() { |
| 361 var o = new core.List<core.String>(); | 361 var o = new core.List<core.String>(); |
| 362 o.add("foo"); | 362 o.add("foo"); |
| 363 o.add("foo"); | 363 o.add("foo"); |
| 364 return o; | 364 return o; |
| 365 } | 365 } |
| 366 | 366 |
| 367 checkUnnamed3027(core.List<core.String> o) { | 367 checkUnnamed3118(core.List<core.String> o) { |
| 368 unittest.expect(o, unittest.hasLength(2)); | 368 unittest.expect(o, unittest.hasLength(2)); |
| 369 unittest.expect(o[0], unittest.equals('foo')); | 369 unittest.expect(o[0], unittest.equals('foo')); |
| 370 unittest.expect(o[1], unittest.equals('foo')); | 370 unittest.expect(o[1], unittest.equals('foo')); |
| 371 } | 371 } |
| 372 | 372 |
| 373 core.int buildCounterStoreInfo = 0; | 373 core.int buildCounterStoreInfo = 0; |
| 374 buildStoreInfo() { | 374 buildStoreInfo() { |
| 375 var o = new api.StoreInfo(); | 375 var o = new api.StoreInfo(); |
| 376 buildCounterStoreInfo++; | 376 buildCounterStoreInfo++; |
| 377 if (buildCounterStoreInfo < 3) { | 377 if (buildCounterStoreInfo < 3) { |
| 378 o.audioTracks = buildUnnamed3025(); | 378 o.audioTracks = buildUnnamed3116(); |
| 379 o.country = "foo"; | 379 o.country = "foo"; |
| 380 o.editLevelEidr = "foo"; | 380 o.editLevelEidr = "foo"; |
| 381 o.episodeNumber = "foo"; | 381 o.episodeNumber = "foo"; |
| 382 o.hasAudio51 = true; | 382 o.hasAudio51 = true; |
| 383 o.hasEstOffer = true; | 383 o.hasEstOffer = true; |
| 384 o.hasHdOffer = true; | 384 o.hasHdOffer = true; |
| 385 o.hasInfoCards = true; | 385 o.hasInfoCards = true; |
| 386 o.hasSdOffer = true; | 386 o.hasSdOffer = true; |
| 387 o.hasVodOffer = true; | 387 o.hasVodOffer = true; |
| 388 o.liveTime = "foo"; | 388 o.liveTime = "foo"; |
| 389 o.mid = "foo"; | 389 o.mid = "foo"; |
| 390 o.name = "foo"; | 390 o.name = "foo"; |
| 391 o.pphNames = buildUnnamed3026(); | 391 o.pphNames = buildUnnamed3117(); |
| 392 o.seasonId = "foo"; | 392 o.seasonId = "foo"; |
| 393 o.seasonName = "foo"; | 393 o.seasonName = "foo"; |
| 394 o.seasonNumber = "foo"; | 394 o.seasonNumber = "foo"; |
| 395 o.showId = "foo"; | 395 o.showId = "foo"; |
| 396 o.showName = "foo"; | 396 o.showName = "foo"; |
| 397 o.studioName = "foo"; | 397 o.studioName = "foo"; |
| 398 o.subtitles = buildUnnamed3027(); | 398 o.subtitles = buildUnnamed3118(); |
| 399 o.titleLevelEidr = "foo"; | 399 o.titleLevelEidr = "foo"; |
| 400 o.trailerId = "foo"; | 400 o.trailerId = "foo"; |
| 401 o.type = "foo"; | 401 o.type = "foo"; |
| 402 o.videoId = "foo"; | 402 o.videoId = "foo"; |
| 403 } | 403 } |
| 404 buildCounterStoreInfo--; | 404 buildCounterStoreInfo--; |
| 405 return o; | 405 return o; |
| 406 } | 406 } |
| 407 | 407 |
| 408 checkStoreInfo(api.StoreInfo o) { | 408 checkStoreInfo(api.StoreInfo o) { |
| 409 buildCounterStoreInfo++; | 409 buildCounterStoreInfo++; |
| 410 if (buildCounterStoreInfo < 3) { | 410 if (buildCounterStoreInfo < 3) { |
| 411 checkUnnamed3025(o.audioTracks); | 411 checkUnnamed3116(o.audioTracks); |
| 412 unittest.expect(o.country, unittest.equals('foo')); | 412 unittest.expect(o.country, unittest.equals('foo')); |
| 413 unittest.expect(o.editLevelEidr, unittest.equals('foo')); | 413 unittest.expect(o.editLevelEidr, unittest.equals('foo')); |
| 414 unittest.expect(o.episodeNumber, unittest.equals('foo')); | 414 unittest.expect(o.episodeNumber, unittest.equals('foo')); |
| 415 unittest.expect(o.hasAudio51, unittest.isTrue); | 415 unittest.expect(o.hasAudio51, unittest.isTrue); |
| 416 unittest.expect(o.hasEstOffer, unittest.isTrue); | 416 unittest.expect(o.hasEstOffer, unittest.isTrue); |
| 417 unittest.expect(o.hasHdOffer, unittest.isTrue); | 417 unittest.expect(o.hasHdOffer, unittest.isTrue); |
| 418 unittest.expect(o.hasInfoCards, unittest.isTrue); | 418 unittest.expect(o.hasInfoCards, unittest.isTrue); |
| 419 unittest.expect(o.hasSdOffer, unittest.isTrue); | 419 unittest.expect(o.hasSdOffer, unittest.isTrue); |
| 420 unittest.expect(o.hasVodOffer, unittest.isTrue); | 420 unittest.expect(o.hasVodOffer, unittest.isTrue); |
| 421 unittest.expect(o.liveTime, unittest.equals('foo')); | 421 unittest.expect(o.liveTime, unittest.equals('foo')); |
| 422 unittest.expect(o.mid, unittest.equals('foo')); | 422 unittest.expect(o.mid, unittest.equals('foo')); |
| 423 unittest.expect(o.name, unittest.equals('foo')); | 423 unittest.expect(o.name, unittest.equals('foo')); |
| 424 checkUnnamed3026(o.pphNames); | 424 checkUnnamed3117(o.pphNames); |
| 425 unittest.expect(o.seasonId, unittest.equals('foo')); | 425 unittest.expect(o.seasonId, unittest.equals('foo')); |
| 426 unittest.expect(o.seasonName, unittest.equals('foo')); | 426 unittest.expect(o.seasonName, unittest.equals('foo')); |
| 427 unittest.expect(o.seasonNumber, unittest.equals('foo')); | 427 unittest.expect(o.seasonNumber, unittest.equals('foo')); |
| 428 unittest.expect(o.showId, unittest.equals('foo')); | 428 unittest.expect(o.showId, unittest.equals('foo')); |
| 429 unittest.expect(o.showName, unittest.equals('foo')); | 429 unittest.expect(o.showName, unittest.equals('foo')); |
| 430 unittest.expect(o.studioName, unittest.equals('foo')); | 430 unittest.expect(o.studioName, unittest.equals('foo')); |
| 431 checkUnnamed3027(o.subtitles); | 431 checkUnnamed3118(o.subtitles); |
| 432 unittest.expect(o.titleLevelEidr, unittest.equals('foo')); | 432 unittest.expect(o.titleLevelEidr, unittest.equals('foo')); |
| 433 unittest.expect(o.trailerId, unittest.equals('foo')); | 433 unittest.expect(o.trailerId, unittest.equals('foo')); |
| 434 unittest.expect(o.type, unittest.equals('foo')); | 434 unittest.expect(o.type, unittest.equals('foo')); |
| 435 unittest.expect(o.videoId, unittest.equals('foo')); | 435 unittest.expect(o.videoId, unittest.equals('foo')); |
| 436 } | 436 } |
| 437 buildCounterStoreInfo--; | 437 buildCounterStoreInfo--; |
| 438 } | 438 } |
| 439 | 439 |
| 440 buildUnnamed3028() { | 440 buildUnnamed3119() { |
| 441 var o = new core.List<core.String>(); | 441 var o = new core.List<core.String>(); |
| 442 o.add("foo"); | 442 o.add("foo"); |
| 443 o.add("foo"); | 443 o.add("foo"); |
| 444 return o; | 444 return o; |
| 445 } | 445 } |
| 446 | 446 |
| 447 checkUnnamed3028(core.List<core.String> o) { | 447 checkUnnamed3119(core.List<core.String> o) { |
| 448 unittest.expect(o, unittest.hasLength(2)); | 448 unittest.expect(o, unittest.hasLength(2)); |
| 449 unittest.expect(o[0], unittest.equals('foo')); | 449 unittest.expect(o[0], unittest.equals('foo')); |
| 450 unittest.expect(o[1], unittest.equals('foo')); | 450 unittest.expect(o[1], unittest.equals('foo')); |
| 451 } | 451 } |
| 452 | 452 |
| 453 buildUnnamed3029() { | 453 buildUnnamed3120() { |
| 454 var o = new core.List<core.String>(); | 454 var o = new core.List<core.String>(); |
| 455 o.add("foo"); | 455 o.add("foo"); |
| 456 o.add("foo"); | 456 o.add("foo"); |
| 457 return o; | 457 return o; |
| 458 } | 458 } |
| 459 | 459 |
| 460 checkUnnamed3029(core.List<core.String> o) { | 460 checkUnnamed3120(core.List<core.String> o) { |
| 461 unittest.expect(o, unittest.hasLength(2)); | 461 unittest.expect(o, unittest.hasLength(2)); |
| 462 unittest.expect(o[0], unittest.equals('foo')); | 462 unittest.expect(o[0], unittest.equals('foo')); |
| 463 unittest.expect(o[1], unittest.equals('foo')); | 463 unittest.expect(o[1], unittest.equals('foo')); |
| 464 } | 464 } |
| 465 | 465 |
| 466 buildUnnamed3030() { | 466 buildUnnamed3121() { |
| 467 var o = new core.List<core.String>(); | 467 var o = new core.List<core.String>(); |
| 468 o.add("foo"); | 468 o.add("foo"); |
| 469 o.add("foo"); | 469 o.add("foo"); |
| 470 return o; | 470 return o; |
| 471 } | 471 } |
| 472 | 472 |
| 473 checkUnnamed3030(core.List<core.String> o) { | 473 checkUnnamed3121(core.List<core.String> o) { |
| 474 unittest.expect(o, unittest.hasLength(2)); | 474 unittest.expect(o, unittest.hasLength(2)); |
| 475 unittest.expect(o[0], unittest.equals('foo')); | 475 unittest.expect(o[0], unittest.equals('foo')); |
| 476 unittest.expect(o[1], unittest.equals('foo')); | 476 unittest.expect(o[1], unittest.equals('foo')); |
| 477 } | 477 } |
| 478 | 478 |
| 479 buildUnnamed3031() { | 479 buildUnnamed3122() { |
| 480 var o = new core.List<core.String>(); | 480 var o = new core.List<core.String>(); |
| 481 o.add("foo"); | 481 o.add("foo"); |
| 482 o.add("foo"); | 482 o.add("foo"); |
| 483 return o; | 483 return o; |
| 484 } | 484 } |
| 485 | 485 |
| 486 checkUnnamed3031(core.List<core.String> o) { | 486 checkUnnamed3122(core.List<core.String> o) { |
| 487 unittest.expect(o, unittest.hasLength(2)); | 487 unittest.expect(o, unittest.hasLength(2)); |
| 488 unittest.expect(o[0], unittest.equals('foo')); | 488 unittest.expect(o[0], unittest.equals('foo')); |
| 489 unittest.expect(o[1], unittest.equals('foo')); | 489 unittest.expect(o[1], unittest.equals('foo')); |
| 490 } | 490 } |
| 491 | 491 |
| 492 buildUnnamed3032() { | 492 buildUnnamed3123() { |
| 493 var o = new core.List<core.String>(); | 493 var o = new core.List<core.String>(); |
| 494 o.add("foo"); | 494 o.add("foo"); |
| 495 o.add("foo"); | 495 o.add("foo"); |
| 496 return o; | 496 return o; |
| 497 } | 497 } |
| 498 | 498 |
| 499 checkUnnamed3032(core.List<core.String> o) { | 499 checkUnnamed3123(core.List<core.String> o) { |
| 500 unittest.expect(o, unittest.hasLength(2)); | 500 unittest.expect(o, unittest.hasLength(2)); |
| 501 unittest.expect(o[0], unittest.equals('foo')); | 501 unittest.expect(o[0], unittest.equals('foo')); |
| 502 unittest.expect(o[1], unittest.equals('foo')); | 502 unittest.expect(o[1], unittest.equals('foo')); |
| 503 } | 503 } |
| 504 | 504 |
| 505 buildUnnamed3033() { | 505 buildUnnamed3124() { |
| 506 var o = new core.List<core.String>(); | 506 var o = new core.List<core.String>(); |
| 507 o.add("foo"); | 507 o.add("foo"); |
| 508 o.add("foo"); | 508 o.add("foo"); |
| 509 return o; | 509 return o; |
| 510 } | 510 } |
| 511 | 511 |
| 512 checkUnnamed3033(core.List<core.String> o) { | 512 checkUnnamed3124(core.List<core.String> o) { |
| 513 unittest.expect(o, unittest.hasLength(2)); | 513 unittest.expect(o, unittest.hasLength(2)); |
| 514 unittest.expect(o[0], unittest.equals('foo')); | 514 unittest.expect(o[0], unittest.equals('foo')); |
| 515 unittest.expect(o[1], unittest.equals('foo')); | 515 unittest.expect(o[1], unittest.equals('foo')); |
| 516 } | 516 } |
| 517 | 517 |
| 518 buildUnnamed3034() { | 518 buildUnnamed3125() { |
| 519 var o = new core.List<core.String>(); | 519 var o = new core.List<core.String>(); |
| 520 o.add("foo"); | 520 o.add("foo"); |
| 521 o.add("foo"); | 521 o.add("foo"); |
| 522 return o; | 522 return o; |
| 523 } | 523 } |
| 524 | 524 |
| 525 checkUnnamed3034(core.List<core.String> o) { | 525 checkUnnamed3125(core.List<core.String> o) { |
| 526 unittest.expect(o, unittest.hasLength(2)); | 526 unittest.expect(o, unittest.hasLength(2)); |
| 527 unittest.expect(o[0], unittest.equals('foo')); | 527 unittest.expect(o[0], unittest.equals('foo')); |
| 528 unittest.expect(o[1], unittest.equals('foo')); | 528 unittest.expect(o[1], unittest.equals('foo')); |
| 529 } | 529 } |
| 530 | 530 |
| 531 buildUnnamed3035() { | 531 buildUnnamed3126() { |
| 532 var o = new core.List<core.String>(); | 532 var o = new core.List<core.String>(); |
| 533 o.add("foo"); | 533 o.add("foo"); |
| 534 o.add("foo"); | 534 o.add("foo"); |
| 535 return o; | 535 return o; |
| 536 } | 536 } |
| 537 | 537 |
| 538 checkUnnamed3035(core.List<core.String> o) { | 538 checkUnnamed3126(core.List<core.String> o) { |
| 539 unittest.expect(o, unittest.hasLength(2)); | 539 unittest.expect(o, unittest.hasLength(2)); |
| 540 unittest.expect(o[0], unittest.equals('foo')); | 540 unittest.expect(o[0], unittest.equals('foo')); |
| 541 unittest.expect(o[1], unittest.equals('foo')); | 541 unittest.expect(o[1], unittest.equals('foo')); |
| 542 } | 542 } |
| 543 | 543 |
| 544 buildUnnamed3036() { | 544 buildUnnamed3127() { |
| 545 var o = new core.List<core.String>(); | 545 var o = new core.List<core.String>(); |
| 546 o.add("foo"); | 546 o.add("foo"); |
| 547 o.add("foo"); | 547 o.add("foo"); |
| 548 return o; | 548 return o; |
| 549 } | 549 } |
| 550 | 550 |
| 551 checkUnnamed3036(core.List<core.String> o) { | 551 checkUnnamed3127(core.List<core.String> o) { |
| 552 unittest.expect(o, unittest.hasLength(2)); | 552 unittest.expect(o, unittest.hasLength(2)); |
| 553 unittest.expect(o[0], unittest.equals('foo')); | 553 unittest.expect(o[0], unittest.equals('foo')); |
| 554 unittest.expect(o[1], unittest.equals('foo')); | 554 unittest.expect(o[1], unittest.equals('foo')); |
| 555 } | 555 } |
| 556 | 556 |
| 557 buildUnnamed3037() { | 557 buildUnnamed3128() { |
| 558 var o = new core.List<core.String>(); | 558 var o = new core.List<core.String>(); |
| 559 o.add("foo"); | 559 o.add("foo"); |
| 560 o.add("foo"); | 560 o.add("foo"); |
| 561 return o; | 561 return o; |
| 562 } | 562 } |
| 563 | 563 |
| 564 checkUnnamed3037(core.List<core.String> o) { | 564 checkUnnamed3128(core.List<core.String> o) { |
| 565 unittest.expect(o, unittest.hasLength(2)); | 565 unittest.expect(o, unittest.hasLength(2)); |
| 566 unittest.expect(o[0], unittest.equals('foo')); | 566 unittest.expect(o[0], unittest.equals('foo')); |
| 567 unittest.expect(o[1], unittest.equals('foo')); | 567 unittest.expect(o[1], unittest.equals('foo')); |
| 568 } | 568 } |
| 569 | 569 |
| 570 buildUnnamed3038() { | 570 buildUnnamed3129() { |
| 571 var o = new core.List<core.String>(); | 571 var o = new core.List<core.String>(); |
| 572 o.add("foo"); | 572 o.add("foo"); |
| 573 o.add("foo"); | 573 o.add("foo"); |
| 574 return o; | 574 return o; |
| 575 } | 575 } |
| 576 | 576 |
| 577 checkUnnamed3038(core.List<core.String> o) { | 577 checkUnnamed3129(core.List<core.String> o) { |
| 578 unittest.expect(o, unittest.hasLength(2)); | 578 unittest.expect(o, unittest.hasLength(2)); |
| 579 unittest.expect(o[0], unittest.equals('foo')); | 579 unittest.expect(o[0], unittest.equals('foo')); |
| 580 unittest.expect(o[1], unittest.equals('foo')); | 580 unittest.expect(o[1], unittest.equals('foo')); |
| 581 } | 581 } |
| 582 | 582 |
| 583 buildUnnamed3039() { | 583 buildUnnamed3130() { |
| 584 var o = new core.List<core.String>(); | 584 var o = new core.List<core.String>(); |
| 585 o.add("foo"); | 585 o.add("foo"); |
| 586 o.add("foo"); | 586 o.add("foo"); |
| 587 return o; | 587 return o; |
| 588 } | 588 } |
| 589 | 589 |
| 590 checkUnnamed3039(core.List<core.String> o) { | 590 checkUnnamed3130(core.List<core.String> o) { |
| 591 unittest.expect(o, unittest.hasLength(2)); | 591 unittest.expect(o, unittest.hasLength(2)); |
| 592 unittest.expect(o[0], unittest.equals('foo')); | 592 unittest.expect(o[0], unittest.equals('foo')); |
| 593 unittest.expect(o[1], unittest.equals('foo')); | 593 unittest.expect(o[1], unittest.equals('foo')); |
| 594 } | 594 } |
| 595 | 595 |
| 596 buildUnnamed3040() { | 596 buildUnnamed3131() { |
| 597 var o = new core.List<core.String>(); | 597 var o = new core.List<core.String>(); |
| 598 o.add("foo"); | 598 o.add("foo"); |
| 599 o.add("foo"); | 599 o.add("foo"); |
| 600 return o; | 600 return o; |
| 601 } | 601 } |
| 602 | 602 |
| 603 checkUnnamed3040(core.List<core.String> o) { | 603 checkUnnamed3131(core.List<core.String> o) { |
| 604 unittest.expect(o, unittest.hasLength(2)); | 604 unittest.expect(o, unittest.hasLength(2)); |
| 605 unittest.expect(o[0], unittest.equals('foo')); | 605 unittest.expect(o[0], unittest.equals('foo')); |
| 606 unittest.expect(o[1], unittest.equals('foo')); | 606 unittest.expect(o[1], unittest.equals('foo')); |
| 607 } | 607 } |
| 608 | 608 |
| 609 buildUnnamed3041() { | 609 buildUnnamed3132() { |
| 610 var o = new core.List<core.String>(); | 610 var o = new core.List<core.String>(); |
| 611 o.add("foo"); | 611 o.add("foo"); |
| 612 o.add("foo"); | 612 o.add("foo"); |
| 613 return o; | 613 return o; |
| 614 } | 614 } |
| 615 | 615 |
| 616 checkUnnamed3041(core.List<core.String> o) { | 616 checkUnnamed3132(core.List<core.String> o) { |
| 617 unittest.expect(o, unittest.hasLength(2)); | 617 unittest.expect(o, unittest.hasLength(2)); |
| 618 unittest.expect(o[0], unittest.equals('foo')); | 618 unittest.expect(o[0], unittest.equals('foo')); |
| 619 unittest.expect(o[1], unittest.equals('foo')); | 619 unittest.expect(o[1], unittest.equals('foo')); |
| 620 } | 620 } |
| 621 | 621 |
| 622 buildUnnamed3042() { | 622 buildUnnamed3133() { |
| 623 var o = new core.List<core.String>(); | 623 var o = new core.List<core.String>(); |
| 624 o.add("foo"); | 624 o.add("foo"); |
| 625 o.add("foo"); | 625 o.add("foo"); |
| 626 return o; | 626 return o; |
| 627 } | 627 } |
| 628 | 628 |
| 629 checkUnnamed3042(core.List<core.String> o) { | 629 checkUnnamed3133(core.List<core.String> o) { |
| 630 unittest.expect(o, unittest.hasLength(2)); | 630 unittest.expect(o, unittest.hasLength(2)); |
| 631 unittest.expect(o[0], unittest.equals('foo')); | 631 unittest.expect(o[0], unittest.equals('foo')); |
| 632 unittest.expect(o[1], unittest.equals('foo')); | 632 unittest.expect(o[1], unittest.equals('foo')); |
| 633 } | 633 } |
| 634 | 634 |
| 635 | 635 |
| 636 main() { | 636 main() { |
| 637 unittest.group("obj-schema-Avail", () { | 637 unittest.group("obj-schema-Avail", () { |
| 638 unittest.test("to-json--from-json", () { | 638 unittest.test("to-json--from-json", () { |
| 639 var o = buildAvail(); | 639 var o = buildAvail(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 }))); | 744 }))); |
| 745 }); | 745 }); |
| 746 | 746 |
| 747 unittest.test("method--list", () { | 747 unittest.test("method--list", () { |
| 748 | 748 |
| 749 var mock = new HttpServerMock(); | 749 var mock = new HttpServerMock(); |
| 750 api.AccountsAvailsResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.avails; | 750 api.AccountsAvailsResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.avails; |
| 751 var arg_accountId = "foo"; | 751 var arg_accountId = "foo"; |
| 752 var arg_pageSize = 42; | 752 var arg_pageSize = 42; |
| 753 var arg_pageToken = "foo"; | 753 var arg_pageToken = "foo"; |
| 754 var arg_pphNames = buildUnnamed3028(); | 754 var arg_pphNames = buildUnnamed3119(); |
| 755 var arg_studioNames = buildUnnamed3029(); | 755 var arg_studioNames = buildUnnamed3120(); |
| 756 var arg_title = "foo"; | 756 var arg_title = "foo"; |
| 757 var arg_territories = buildUnnamed3030(); | 757 var arg_territories = buildUnnamed3121(); |
| 758 var arg_altId = "foo"; | 758 var arg_altId = "foo"; |
| 759 var arg_videoIds = buildUnnamed3031(); | 759 var arg_videoIds = buildUnnamed3122(); |
| 760 var arg_altIds = buildUnnamed3032(); | 760 var arg_altIds = buildUnnamed3123(); |
| 761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 762 var path = (req.url).path; | 762 var path = (req.url).path; |
| 763 var pathOffset = 0; | 763 var pathOffset = 0; |
| 764 var index; | 764 var index; |
| 765 var subPart; | 765 var subPart; |
| 766 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 766 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 767 pathOffset += 1; | 767 pathOffset += 1; |
| 768 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | 768 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); |
| 769 pathOffset += 12; | 769 pathOffset += 12; |
| 770 index = path.indexOf("/avails", pathOffset); | 770 index = path.indexOf("/avails", pathOffset); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 }))); | 872 }))); |
| 873 }); | 873 }); |
| 874 | 874 |
| 875 unittest.test("method--list", () { | 875 unittest.test("method--list", () { |
| 876 | 876 |
| 877 var mock = new HttpServerMock(); | 877 var mock = new HttpServerMock(); |
| 878 api.AccountsOrdersResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.orders; | 878 api.AccountsOrdersResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.orders; |
| 879 var arg_accountId = "foo"; | 879 var arg_accountId = "foo"; |
| 880 var arg_pageSize = 42; | 880 var arg_pageSize = 42; |
| 881 var arg_pageToken = "foo"; | 881 var arg_pageToken = "foo"; |
| 882 var arg_pphNames = buildUnnamed3033(); | 882 var arg_pphNames = buildUnnamed3124(); |
| 883 var arg_studioNames = buildUnnamed3034(); | 883 var arg_studioNames = buildUnnamed3125(); |
| 884 var arg_name = "foo"; | 884 var arg_name = "foo"; |
| 885 var arg_status = buildUnnamed3035(); | 885 var arg_status = buildUnnamed3126(); |
| 886 var arg_customId = "foo"; | 886 var arg_customId = "foo"; |
| 887 var arg_videoIds = buildUnnamed3036(); | 887 var arg_videoIds = buildUnnamed3127(); |
| 888 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 888 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 889 var path = (req.url).path; | 889 var path = (req.url).path; |
| 890 var pathOffset = 0; | 890 var pathOffset = 0; |
| 891 var index; | 891 var index; |
| 892 var subPart; | 892 var subPart; |
| 893 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 893 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 894 pathOffset += 1; | 894 pathOffset += 1; |
| 895 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | 895 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); |
| 896 pathOffset += 12; | 896 pathOffset += 12; |
| 897 index = path.indexOf("/orders", pathOffset); | 897 index = path.indexOf("/orders", pathOffset); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 | 943 |
| 944 | 944 |
| 945 unittest.group("resource-AccountsStoreInfosResourceApi", () { | 945 unittest.group("resource-AccountsStoreInfosResourceApi", () { |
| 946 unittest.test("method--list", () { | 946 unittest.test("method--list", () { |
| 947 | 947 |
| 948 var mock = new HttpServerMock(); | 948 var mock = new HttpServerMock(); |
| 949 api.AccountsStoreInfosResourceApi res = new api.PlaymoviespartnerApi(mock)
.accounts.storeInfos; | 949 api.AccountsStoreInfosResourceApi res = new api.PlaymoviespartnerApi(mock)
.accounts.storeInfos; |
| 950 var arg_accountId = "foo"; | 950 var arg_accountId = "foo"; |
| 951 var arg_pageSize = 42; | 951 var arg_pageSize = 42; |
| 952 var arg_pageToken = "foo"; | 952 var arg_pageToken = "foo"; |
| 953 var arg_pphNames = buildUnnamed3037(); | 953 var arg_pphNames = buildUnnamed3128(); |
| 954 var arg_studioNames = buildUnnamed3038(); | 954 var arg_studioNames = buildUnnamed3129(); |
| 955 var arg_videoId = "foo"; | 955 var arg_videoId = "foo"; |
| 956 var arg_countries = buildUnnamed3039(); | 956 var arg_countries = buildUnnamed3130(); |
| 957 var arg_name = "foo"; | 957 var arg_name = "foo"; |
| 958 var arg_videoIds = buildUnnamed3040(); | 958 var arg_videoIds = buildUnnamed3131(); |
| 959 var arg_mids = buildUnnamed3041(); | 959 var arg_mids = buildUnnamed3132(); |
| 960 var arg_seasonIds = buildUnnamed3042(); | 960 var arg_seasonIds = buildUnnamed3133(); |
| 961 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 961 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 962 var path = (req.url).path; | 962 var path = (req.url).path; |
| 963 var pathOffset = 0; | 963 var pathOffset = 0; |
| 964 var index; | 964 var index; |
| 965 var subPart; | 965 var subPart; |
| 966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 967 pathOffset += 1; | 967 pathOffset += 1; |
| 968 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | 968 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); |
| 969 pathOffset += 12; | 969 pathOffset += 12; |
| 970 index = path.indexOf("/storeInfos", pathOffset); | 970 index = path.indexOf("/storeInfos", pathOffset); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 res.get(arg_accountId, arg_videoId, arg_country).then(unittest.expectAsync
(((api.StoreInfo response) { | 1079 res.get(arg_accountId, arg_videoId, arg_country).then(unittest.expectAsync
(((api.StoreInfo response) { |
| 1080 checkStoreInfo(response); | 1080 checkStoreInfo(response); |
| 1081 }))); | 1081 }))); |
| 1082 }); | 1082 }); |
| 1083 | 1083 |
| 1084 }); | 1084 }); |
| 1085 | 1085 |
| 1086 | 1086 |
| 1087 } | 1087 } |
| 1088 | 1088 |
| OLD | NEW |