| OLD | NEW |
| 1 library googleapis.orkut.v2.test; | 1 library googleapis.orkut.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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 checkAclItems(api.AclItems o) { | 31 checkAclItems(api.AclItems o) { |
| 32 buildCounterAclItems++; | 32 buildCounterAclItems++; |
| 33 if (buildCounterAclItems < 3) { | 33 if (buildCounterAclItems < 3) { |
| 34 unittest.expect(o.id, unittest.equals('foo')); | 34 unittest.expect(o.id, unittest.equals('foo')); |
| 35 unittest.expect(o.type, unittest.equals('foo')); | 35 unittest.expect(o.type, unittest.equals('foo')); |
| 36 } | 36 } |
| 37 buildCounterAclItems--; | 37 buildCounterAclItems--; |
| 38 } | 38 } |
| 39 | 39 |
| 40 buildUnnamed140() { | 40 buildUnnamed143() { |
| 41 var o = new core.List<api.AclItems>(); | 41 var o = new core.List<api.AclItems>(); |
| 42 o.add(buildAclItems()); | 42 o.add(buildAclItems()); |
| 43 o.add(buildAclItems()); | 43 o.add(buildAclItems()); |
| 44 return o; | 44 return o; |
| 45 } | 45 } |
| 46 | 46 |
| 47 checkUnnamed140(core.List<api.AclItems> o) { | 47 checkUnnamed143(core.List<api.AclItems> o) { |
| 48 unittest.expect(o, unittest.hasLength(2)); | 48 unittest.expect(o, unittest.hasLength(2)); |
| 49 checkAclItems(o[0]); | 49 checkAclItems(o[0]); |
| 50 checkAclItems(o[1]); | 50 checkAclItems(o[1]); |
| 51 } | 51 } |
| 52 | 52 |
| 53 core.int buildCounterAcl = 0; | 53 core.int buildCounterAcl = 0; |
| 54 buildAcl() { | 54 buildAcl() { |
| 55 var o = new api.Acl(); | 55 var o = new api.Acl(); |
| 56 buildCounterAcl++; | 56 buildCounterAcl++; |
| 57 if (buildCounterAcl < 3) { | 57 if (buildCounterAcl < 3) { |
| 58 o.description = "foo"; | 58 o.description = "foo"; |
| 59 o.items = buildUnnamed140(); | 59 o.items = buildUnnamed143(); |
| 60 o.kind = "foo"; | 60 o.kind = "foo"; |
| 61 o.totalParticipants = 42; | 61 o.totalParticipants = 42; |
| 62 } | 62 } |
| 63 buildCounterAcl--; | 63 buildCounterAcl--; |
| 64 return o; | 64 return o; |
| 65 } | 65 } |
| 66 | 66 |
| 67 checkAcl(api.Acl o) { | 67 checkAcl(api.Acl o) { |
| 68 buildCounterAcl++; | 68 buildCounterAcl++; |
| 69 if (buildCounterAcl < 3) { | 69 if (buildCounterAcl < 3) { |
| 70 unittest.expect(o.description, unittest.equals('foo')); | 70 unittest.expect(o.description, unittest.equals('foo')); |
| 71 checkUnnamed140(o.items); | 71 checkUnnamed143(o.items); |
| 72 unittest.expect(o.kind, unittest.equals('foo')); | 72 unittest.expect(o.kind, unittest.equals('foo')); |
| 73 unittest.expect(o.totalParticipants, unittest.equals(42)); | 73 unittest.expect(o.totalParticipants, unittest.equals(42)); |
| 74 } | 74 } |
| 75 buildCounterAcl--; | 75 buildCounterAcl--; |
| 76 } | 76 } |
| 77 | 77 |
| 78 buildUnnamed141() { | 78 buildUnnamed144() { |
| 79 var o = new core.List<api.OrkutLinkResource>(); | 79 var o = new core.List<api.OrkutLinkResource>(); |
| 80 o.add(buildOrkutLinkResource()); | 80 o.add(buildOrkutLinkResource()); |
| 81 o.add(buildOrkutLinkResource()); | 81 o.add(buildOrkutLinkResource()); |
| 82 return o; | 82 return o; |
| 83 } | 83 } |
| 84 | 84 |
| 85 checkUnnamed141(core.List<api.OrkutLinkResource> o) { | 85 checkUnnamed144(core.List<api.OrkutLinkResource> o) { |
| 86 unittest.expect(o, unittest.hasLength(2)); | 86 unittest.expect(o, unittest.hasLength(2)); |
| 87 checkOrkutLinkResource(o[0]); | 87 checkOrkutLinkResource(o[0]); |
| 88 checkOrkutLinkResource(o[1]); | 88 checkOrkutLinkResource(o[1]); |
| 89 } | 89 } |
| 90 | 90 |
| 91 buildUnnamed142() { | 91 buildUnnamed145() { |
| 92 var o = new core.List<api.OrkutActivityobjectsResource>(); | 92 var o = new core.List<api.OrkutActivityobjectsResource>(); |
| 93 o.add(buildOrkutActivityobjectsResource()); | 93 o.add(buildOrkutActivityobjectsResource()); |
| 94 o.add(buildOrkutActivityobjectsResource()); | 94 o.add(buildOrkutActivityobjectsResource()); |
| 95 return o; | 95 return o; |
| 96 } | 96 } |
| 97 | 97 |
| 98 checkUnnamed142(core.List<api.OrkutActivityobjectsResource> o) { | 98 checkUnnamed145(core.List<api.OrkutActivityobjectsResource> o) { |
| 99 unittest.expect(o, unittest.hasLength(2)); | 99 unittest.expect(o, unittest.hasLength(2)); |
| 100 checkOrkutActivityobjectsResource(o[0]); | 100 checkOrkutActivityobjectsResource(o[0]); |
| 101 checkOrkutActivityobjectsResource(o[1]); | 101 checkOrkutActivityobjectsResource(o[1]); |
| 102 } | 102 } |
| 103 | 103 |
| 104 buildUnnamed143() { | 104 buildUnnamed146() { |
| 105 var o = new core.List<api.Comment>(); | 105 var o = new core.List<api.Comment>(); |
| 106 o.add(buildComment()); | 106 o.add(buildComment()); |
| 107 o.add(buildComment()); | 107 o.add(buildComment()); |
| 108 return o; | 108 return o; |
| 109 } | 109 } |
| 110 | 110 |
| 111 checkUnnamed143(core.List<api.Comment> o) { | 111 checkUnnamed146(core.List<api.Comment> o) { |
| 112 unittest.expect(o, unittest.hasLength(2)); | 112 unittest.expect(o, unittest.hasLength(2)); |
| 113 checkComment(o[0]); | 113 checkComment(o[0]); |
| 114 checkComment(o[1]); | 114 checkComment(o[1]); |
| 115 } | 115 } |
| 116 | 116 |
| 117 core.int buildCounterActivityObjectReplies = 0; | 117 core.int buildCounterActivityObjectReplies = 0; |
| 118 buildActivityObjectReplies() { | 118 buildActivityObjectReplies() { |
| 119 var o = new api.ActivityObjectReplies(); | 119 var o = new api.ActivityObjectReplies(); |
| 120 buildCounterActivityObjectReplies++; | 120 buildCounterActivityObjectReplies++; |
| 121 if (buildCounterActivityObjectReplies < 3) { | 121 if (buildCounterActivityObjectReplies < 3) { |
| 122 o.items = buildUnnamed143(); | 122 o.items = buildUnnamed146(); |
| 123 o.totalItems = "foo"; | 123 o.totalItems = "foo"; |
| 124 o.url = "foo"; | 124 o.url = "foo"; |
| 125 } | 125 } |
| 126 buildCounterActivityObjectReplies--; | 126 buildCounterActivityObjectReplies--; |
| 127 return o; | 127 return o; |
| 128 } | 128 } |
| 129 | 129 |
| 130 checkActivityObjectReplies(api.ActivityObjectReplies o) { | 130 checkActivityObjectReplies(api.ActivityObjectReplies o) { |
| 131 buildCounterActivityObjectReplies++; | 131 buildCounterActivityObjectReplies++; |
| 132 if (buildCounterActivityObjectReplies < 3) { | 132 if (buildCounterActivityObjectReplies < 3) { |
| 133 checkUnnamed143(o.items); | 133 checkUnnamed146(o.items); |
| 134 unittest.expect(o.totalItems, unittest.equals('foo')); | 134 unittest.expect(o.totalItems, unittest.equals('foo')); |
| 135 unittest.expect(o.url, unittest.equals('foo')); | 135 unittest.expect(o.url, unittest.equals('foo')); |
| 136 } | 136 } |
| 137 buildCounterActivityObjectReplies--; | 137 buildCounterActivityObjectReplies--; |
| 138 } | 138 } |
| 139 | 139 |
| 140 core.int buildCounterActivityObject = 0; | 140 core.int buildCounterActivityObject = 0; |
| 141 buildActivityObject() { | 141 buildActivityObject() { |
| 142 var o = new api.ActivityObject(); | 142 var o = new api.ActivityObject(); |
| 143 buildCounterActivityObject++; | 143 buildCounterActivityObject++; |
| 144 if (buildCounterActivityObject < 3) { | 144 if (buildCounterActivityObject < 3) { |
| 145 o.content = "foo"; | 145 o.content = "foo"; |
| 146 o.items = buildUnnamed142(); | 146 o.items = buildUnnamed145(); |
| 147 o.objectType = "foo"; | 147 o.objectType = "foo"; |
| 148 o.replies = buildActivityObjectReplies(); | 148 o.replies = buildActivityObjectReplies(); |
| 149 } | 149 } |
| 150 buildCounterActivityObject--; | 150 buildCounterActivityObject--; |
| 151 return o; | 151 return o; |
| 152 } | 152 } |
| 153 | 153 |
| 154 checkActivityObject(api.ActivityObject o) { | 154 checkActivityObject(api.ActivityObject o) { |
| 155 buildCounterActivityObject++; | 155 buildCounterActivityObject++; |
| 156 if (buildCounterActivityObject < 3) { | 156 if (buildCounterActivityObject < 3) { |
| 157 unittest.expect(o.content, unittest.equals('foo')); | 157 unittest.expect(o.content, unittest.equals('foo')); |
| 158 checkUnnamed142(o.items); | 158 checkUnnamed145(o.items); |
| 159 unittest.expect(o.objectType, unittest.equals('foo')); | 159 unittest.expect(o.objectType, unittest.equals('foo')); |
| 160 checkActivityObjectReplies(o.replies); | 160 checkActivityObjectReplies(o.replies); |
| 161 } | 161 } |
| 162 buildCounterActivityObject--; | 162 buildCounterActivityObject--; |
| 163 } | 163 } |
| 164 | 164 |
| 165 core.int buildCounterActivity = 0; | 165 core.int buildCounterActivity = 0; |
| 166 buildActivity() { | 166 buildActivity() { |
| 167 var o = new api.Activity(); | 167 var o = new api.Activity(); |
| 168 buildCounterActivity++; | 168 buildCounterActivity++; |
| 169 if (buildCounterActivity < 3) { | 169 if (buildCounterActivity < 3) { |
| 170 o.access = buildAcl(); | 170 o.access = buildAcl(); |
| 171 o.actor = buildOrkutAuthorResource(); | 171 o.actor = buildOrkutAuthorResource(); |
| 172 o.id = "foo"; | 172 o.id = "foo"; |
| 173 o.kind = "foo"; | 173 o.kind = "foo"; |
| 174 o.links = buildUnnamed141(); | 174 o.links = buildUnnamed144(); |
| 175 o.object = buildActivityObject(); | 175 o.object = buildActivityObject(); |
| 176 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 176 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
| 177 o.title = "foo"; | 177 o.title = "foo"; |
| 178 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 178 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 179 o.verb = "foo"; | 179 o.verb = "foo"; |
| 180 } | 180 } |
| 181 buildCounterActivity--; | 181 buildCounterActivity--; |
| 182 return o; | 182 return o; |
| 183 } | 183 } |
| 184 | 184 |
| 185 checkActivity(api.Activity o) { | 185 checkActivity(api.Activity o) { |
| 186 buildCounterActivity++; | 186 buildCounterActivity++; |
| 187 if (buildCounterActivity < 3) { | 187 if (buildCounterActivity < 3) { |
| 188 checkAcl(o.access); | 188 checkAcl(o.access); |
| 189 checkOrkutAuthorResource(o.actor); | 189 checkOrkutAuthorResource(o.actor); |
| 190 unittest.expect(o.id, unittest.equals('foo')); | 190 unittest.expect(o.id, unittest.equals('foo')); |
| 191 unittest.expect(o.kind, unittest.equals('foo')); | 191 unittest.expect(o.kind, unittest.equals('foo')); |
| 192 checkUnnamed141(o.links); | 192 checkUnnamed144(o.links); |
| 193 checkActivityObject(o.object); | 193 checkActivityObject(o.object); |
| 194 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 194 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 195 unittest.expect(o.title, unittest.equals('foo')); | 195 unittest.expect(o.title, unittest.equals('foo')); |
| 196 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 196 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 197 unittest.expect(o.verb, unittest.equals('foo')); | 197 unittest.expect(o.verb, unittest.equals('foo')); |
| 198 } | 198 } |
| 199 buildCounterActivity--; | 199 buildCounterActivity--; |
| 200 } | 200 } |
| 201 | 201 |
| 202 buildUnnamed144() { | 202 buildUnnamed147() { |
| 203 var o = new core.List<api.Activity>(); | 203 var o = new core.List<api.Activity>(); |
| 204 o.add(buildActivity()); | 204 o.add(buildActivity()); |
| 205 o.add(buildActivity()); | 205 o.add(buildActivity()); |
| 206 return o; | 206 return o; |
| 207 } | 207 } |
| 208 | 208 |
| 209 checkUnnamed144(core.List<api.Activity> o) { | 209 checkUnnamed147(core.List<api.Activity> o) { |
| 210 unittest.expect(o, unittest.hasLength(2)); | 210 unittest.expect(o, unittest.hasLength(2)); |
| 211 checkActivity(o[0]); | 211 checkActivity(o[0]); |
| 212 checkActivity(o[1]); | 212 checkActivity(o[1]); |
| 213 } | 213 } |
| 214 | 214 |
| 215 core.int buildCounterActivityList = 0; | 215 core.int buildCounterActivityList = 0; |
| 216 buildActivityList() { | 216 buildActivityList() { |
| 217 var o = new api.ActivityList(); | 217 var o = new api.ActivityList(); |
| 218 buildCounterActivityList++; | 218 buildCounterActivityList++; |
| 219 if (buildCounterActivityList < 3) { | 219 if (buildCounterActivityList < 3) { |
| 220 o.items = buildUnnamed144(); | 220 o.items = buildUnnamed147(); |
| 221 o.kind = "foo"; | 221 o.kind = "foo"; |
| 222 o.nextPageToken = "foo"; | 222 o.nextPageToken = "foo"; |
| 223 } | 223 } |
| 224 buildCounterActivityList--; | 224 buildCounterActivityList--; |
| 225 return o; | 225 return o; |
| 226 } | 226 } |
| 227 | 227 |
| 228 checkActivityList(api.ActivityList o) { | 228 checkActivityList(api.ActivityList o) { |
| 229 buildCounterActivityList++; | 229 buildCounterActivityList++; |
| 230 if (buildCounterActivityList < 3) { | 230 if (buildCounterActivityList < 3) { |
| 231 checkUnnamed144(o.items); | 231 checkUnnamed147(o.items); |
| 232 unittest.expect(o.kind, unittest.equals('foo')); | 232 unittest.expect(o.kind, unittest.equals('foo')); |
| 233 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 233 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 234 } | 234 } |
| 235 buildCounterActivityList--; | 235 buildCounterActivityList--; |
| 236 } | 236 } |
| 237 | 237 |
| 238 core.int buildCounterBadge = 0; | 238 core.int buildCounterBadge = 0; |
| 239 buildBadge() { | 239 buildBadge() { |
| 240 var o = new api.Badge(); | 240 var o = new api.Badge(); |
| 241 buildCounterBadge++; | 241 buildCounterBadge++; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 263 unittest.expect(o.description, unittest.equals('foo')); | 263 unittest.expect(o.description, unittest.equals('foo')); |
| 264 unittest.expect(o.id, unittest.equals('foo')); | 264 unittest.expect(o.id, unittest.equals('foo')); |
| 265 unittest.expect(o.kind, unittest.equals('foo')); | 265 unittest.expect(o.kind, unittest.equals('foo')); |
| 266 unittest.expect(o.sponsorLogo, unittest.equals('foo')); | 266 unittest.expect(o.sponsorLogo, unittest.equals('foo')); |
| 267 unittest.expect(o.sponsorName, unittest.equals('foo')); | 267 unittest.expect(o.sponsorName, unittest.equals('foo')); |
| 268 unittest.expect(o.sponsorUrl, unittest.equals('foo')); | 268 unittest.expect(o.sponsorUrl, unittest.equals('foo')); |
| 269 } | 269 } |
| 270 buildCounterBadge--; | 270 buildCounterBadge--; |
| 271 } | 271 } |
| 272 | 272 |
| 273 buildUnnamed145() { | 273 buildUnnamed148() { |
| 274 var o = new core.List<api.Badge>(); | 274 var o = new core.List<api.Badge>(); |
| 275 o.add(buildBadge()); | 275 o.add(buildBadge()); |
| 276 o.add(buildBadge()); | 276 o.add(buildBadge()); |
| 277 return o; | 277 return o; |
| 278 } | 278 } |
| 279 | 279 |
| 280 checkUnnamed145(core.List<api.Badge> o) { | 280 checkUnnamed148(core.List<api.Badge> o) { |
| 281 unittest.expect(o, unittest.hasLength(2)); | 281 unittest.expect(o, unittest.hasLength(2)); |
| 282 checkBadge(o[0]); | 282 checkBadge(o[0]); |
| 283 checkBadge(o[1]); | 283 checkBadge(o[1]); |
| 284 } | 284 } |
| 285 | 285 |
| 286 core.int buildCounterBadgeList = 0; | 286 core.int buildCounterBadgeList = 0; |
| 287 buildBadgeList() { | 287 buildBadgeList() { |
| 288 var o = new api.BadgeList(); | 288 var o = new api.BadgeList(); |
| 289 buildCounterBadgeList++; | 289 buildCounterBadgeList++; |
| 290 if (buildCounterBadgeList < 3) { | 290 if (buildCounterBadgeList < 3) { |
| 291 o.items = buildUnnamed145(); | 291 o.items = buildUnnamed148(); |
| 292 o.kind = "foo"; | 292 o.kind = "foo"; |
| 293 } | 293 } |
| 294 buildCounterBadgeList--; | 294 buildCounterBadgeList--; |
| 295 return o; | 295 return o; |
| 296 } | 296 } |
| 297 | 297 |
| 298 checkBadgeList(api.BadgeList o) { | 298 checkBadgeList(api.BadgeList o) { |
| 299 buildCounterBadgeList++; | 299 buildCounterBadgeList++; |
| 300 if (buildCounterBadgeList < 3) { | 300 if (buildCounterBadgeList < 3) { |
| 301 checkUnnamed145(o.items); | 301 checkUnnamed148(o.items); |
| 302 unittest.expect(o.kind, unittest.equals('foo')); | 302 unittest.expect(o.kind, unittest.equals('foo')); |
| 303 } | 303 } |
| 304 buildCounterBadgeList--; | 304 buildCounterBadgeList--; |
| 305 } | 305 } |
| 306 | 306 |
| 307 core.int buildCounterCommentInReplyTo = 0; | 307 core.int buildCounterCommentInReplyTo = 0; |
| 308 buildCommentInReplyTo() { | 308 buildCommentInReplyTo() { |
| 309 var o = new api.CommentInReplyTo(); | 309 var o = new api.CommentInReplyTo(); |
| 310 buildCounterCommentInReplyTo++; | 310 buildCounterCommentInReplyTo++; |
| 311 if (buildCounterCommentInReplyTo < 3) { | 311 if (buildCounterCommentInReplyTo < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 322 buildCounterCommentInReplyTo++; | 322 buildCounterCommentInReplyTo++; |
| 323 if (buildCounterCommentInReplyTo < 3) { | 323 if (buildCounterCommentInReplyTo < 3) { |
| 324 unittest.expect(o.href, unittest.equals('foo')); | 324 unittest.expect(o.href, unittest.equals('foo')); |
| 325 unittest.expect(o.ref, unittest.equals('foo')); | 325 unittest.expect(o.ref, unittest.equals('foo')); |
| 326 unittest.expect(o.rel, unittest.equals('foo')); | 326 unittest.expect(o.rel, unittest.equals('foo')); |
| 327 unittest.expect(o.type, unittest.equals('foo')); | 327 unittest.expect(o.type, unittest.equals('foo')); |
| 328 } | 328 } |
| 329 buildCounterCommentInReplyTo--; | 329 buildCounterCommentInReplyTo--; |
| 330 } | 330 } |
| 331 | 331 |
| 332 buildUnnamed146() { | 332 buildUnnamed149() { |
| 333 var o = new core.List<api.OrkutLinkResource>(); | 333 var o = new core.List<api.OrkutLinkResource>(); |
| 334 o.add(buildOrkutLinkResource()); | 334 o.add(buildOrkutLinkResource()); |
| 335 o.add(buildOrkutLinkResource()); | 335 o.add(buildOrkutLinkResource()); |
| 336 return o; | 336 return o; |
| 337 } | 337 } |
| 338 | 338 |
| 339 checkUnnamed146(core.List<api.OrkutLinkResource> o) { | 339 checkUnnamed149(core.List<api.OrkutLinkResource> o) { |
| 340 unittest.expect(o, unittest.hasLength(2)); | 340 unittest.expect(o, unittest.hasLength(2)); |
| 341 checkOrkutLinkResource(o[0]); | 341 checkOrkutLinkResource(o[0]); |
| 342 checkOrkutLinkResource(o[1]); | 342 checkOrkutLinkResource(o[1]); |
| 343 } | 343 } |
| 344 | 344 |
| 345 core.int buildCounterComment = 0; | 345 core.int buildCounterComment = 0; |
| 346 buildComment() { | 346 buildComment() { |
| 347 var o = new api.Comment(); | 347 var o = new api.Comment(); |
| 348 buildCounterComment++; | 348 buildCounterComment++; |
| 349 if (buildCounterComment < 3) { | 349 if (buildCounterComment < 3) { |
| 350 o.actor = buildOrkutAuthorResource(); | 350 o.actor = buildOrkutAuthorResource(); |
| 351 o.content = "foo"; | 351 o.content = "foo"; |
| 352 o.id = "foo"; | 352 o.id = "foo"; |
| 353 o.inReplyTo = buildCommentInReplyTo(); | 353 o.inReplyTo = buildCommentInReplyTo(); |
| 354 o.kind = "foo"; | 354 o.kind = "foo"; |
| 355 o.links = buildUnnamed146(); | 355 o.links = buildUnnamed149(); |
| 356 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 356 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
| 357 } | 357 } |
| 358 buildCounterComment--; | 358 buildCounterComment--; |
| 359 return o; | 359 return o; |
| 360 } | 360 } |
| 361 | 361 |
| 362 checkComment(api.Comment o) { | 362 checkComment(api.Comment o) { |
| 363 buildCounterComment++; | 363 buildCounterComment++; |
| 364 if (buildCounterComment < 3) { | 364 if (buildCounterComment < 3) { |
| 365 checkOrkutAuthorResource(o.actor); | 365 checkOrkutAuthorResource(o.actor); |
| 366 unittest.expect(o.content, unittest.equals('foo')); | 366 unittest.expect(o.content, unittest.equals('foo')); |
| 367 unittest.expect(o.id, unittest.equals('foo')); | 367 unittest.expect(o.id, unittest.equals('foo')); |
| 368 checkCommentInReplyTo(o.inReplyTo); | 368 checkCommentInReplyTo(o.inReplyTo); |
| 369 unittest.expect(o.kind, unittest.equals('foo')); | 369 unittest.expect(o.kind, unittest.equals('foo')); |
| 370 checkUnnamed146(o.links); | 370 checkUnnamed149(o.links); |
| 371 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 371 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 372 } | 372 } |
| 373 buildCounterComment--; | 373 buildCounterComment--; |
| 374 } | 374 } |
| 375 | 375 |
| 376 buildUnnamed147() { | 376 buildUnnamed150() { |
| 377 var o = new core.List<api.Comment>(); | 377 var o = new core.List<api.Comment>(); |
| 378 o.add(buildComment()); | 378 o.add(buildComment()); |
| 379 o.add(buildComment()); | 379 o.add(buildComment()); |
| 380 return o; | 380 return o; |
| 381 } | 381 } |
| 382 | 382 |
| 383 checkUnnamed147(core.List<api.Comment> o) { | 383 checkUnnamed150(core.List<api.Comment> o) { |
| 384 unittest.expect(o, unittest.hasLength(2)); | 384 unittest.expect(o, unittest.hasLength(2)); |
| 385 checkComment(o[0]); | 385 checkComment(o[0]); |
| 386 checkComment(o[1]); | 386 checkComment(o[1]); |
| 387 } | 387 } |
| 388 | 388 |
| 389 core.int buildCounterCommentList = 0; | 389 core.int buildCounterCommentList = 0; |
| 390 buildCommentList() { | 390 buildCommentList() { |
| 391 var o = new api.CommentList(); | 391 var o = new api.CommentList(); |
| 392 buildCounterCommentList++; | 392 buildCounterCommentList++; |
| 393 if (buildCounterCommentList < 3) { | 393 if (buildCounterCommentList < 3) { |
| 394 o.items = buildUnnamed147(); | 394 o.items = buildUnnamed150(); |
| 395 o.kind = "foo"; | 395 o.kind = "foo"; |
| 396 o.nextPageToken = "foo"; | 396 o.nextPageToken = "foo"; |
| 397 o.previousPageToken = "foo"; | 397 o.previousPageToken = "foo"; |
| 398 } | 398 } |
| 399 buildCounterCommentList--; | 399 buildCounterCommentList--; |
| 400 return o; | 400 return o; |
| 401 } | 401 } |
| 402 | 402 |
| 403 checkCommentList(api.CommentList o) { | 403 checkCommentList(api.CommentList o) { |
| 404 buildCounterCommentList++; | 404 buildCounterCommentList++; |
| 405 if (buildCounterCommentList < 3) { | 405 if (buildCounterCommentList < 3) { |
| 406 checkUnnamed147(o.items); | 406 checkUnnamed150(o.items); |
| 407 unittest.expect(o.kind, unittest.equals('foo')); | 407 unittest.expect(o.kind, unittest.equals('foo')); |
| 408 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 408 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 409 unittest.expect(o.previousPageToken, unittest.equals('foo')); | 409 unittest.expect(o.previousPageToken, unittest.equals('foo')); |
| 410 } | 410 } |
| 411 buildCounterCommentList--; | 411 buildCounterCommentList--; |
| 412 } | 412 } |
| 413 | 413 |
| 414 buildUnnamed148() { | 414 buildUnnamed151() { |
| 415 var o = new core.List<api.OrkutAuthorResource>(); | 415 var o = new core.List<api.OrkutAuthorResource>(); |
| 416 o.add(buildOrkutAuthorResource()); | 416 o.add(buildOrkutAuthorResource()); |
| 417 o.add(buildOrkutAuthorResource()); | 417 o.add(buildOrkutAuthorResource()); |
| 418 return o; | 418 return o; |
| 419 } | 419 } |
| 420 | 420 |
| 421 checkUnnamed148(core.List<api.OrkutAuthorResource> o) { | 421 checkUnnamed151(core.List<api.OrkutAuthorResource> o) { |
| 422 unittest.expect(o, unittest.hasLength(2)); | 422 unittest.expect(o, unittest.hasLength(2)); |
| 423 checkOrkutAuthorResource(o[0]); | 423 checkOrkutAuthorResource(o[0]); |
| 424 checkOrkutAuthorResource(o[1]); | 424 checkOrkutAuthorResource(o[1]); |
| 425 } | 425 } |
| 426 | 426 |
| 427 buildUnnamed149() { | 427 buildUnnamed152() { |
| 428 var o = new core.List<api.OrkutLinkResource>(); | 428 var o = new core.List<api.OrkutLinkResource>(); |
| 429 o.add(buildOrkutLinkResource()); | 429 o.add(buildOrkutLinkResource()); |
| 430 o.add(buildOrkutLinkResource()); | 430 o.add(buildOrkutLinkResource()); |
| 431 return o; | 431 return o; |
| 432 } | 432 } |
| 433 | 433 |
| 434 checkUnnamed149(core.List<api.OrkutLinkResource> o) { | 434 checkUnnamed152(core.List<api.OrkutLinkResource> o) { |
| 435 unittest.expect(o, unittest.hasLength(2)); | 435 unittest.expect(o, unittest.hasLength(2)); |
| 436 checkOrkutLinkResource(o[0]); | 436 checkOrkutLinkResource(o[0]); |
| 437 checkOrkutLinkResource(o[1]); | 437 checkOrkutLinkResource(o[1]); |
| 438 } | 438 } |
| 439 | 439 |
| 440 buildUnnamed150() { | 440 buildUnnamed153() { |
| 441 var o = new core.List<api.OrkutAuthorResource>(); | 441 var o = new core.List<api.OrkutAuthorResource>(); |
| 442 o.add(buildOrkutAuthorResource()); | 442 o.add(buildOrkutAuthorResource()); |
| 443 o.add(buildOrkutAuthorResource()); | 443 o.add(buildOrkutAuthorResource()); |
| 444 return o; | 444 return o; |
| 445 } | 445 } |
| 446 | 446 |
| 447 checkUnnamed150(core.List<api.OrkutAuthorResource> o) { | 447 checkUnnamed153(core.List<api.OrkutAuthorResource> o) { |
| 448 unittest.expect(o, unittest.hasLength(2)); | 448 unittest.expect(o, unittest.hasLength(2)); |
| 449 checkOrkutAuthorResource(o[0]); | 449 checkOrkutAuthorResource(o[0]); |
| 450 checkOrkutAuthorResource(o[1]); | 450 checkOrkutAuthorResource(o[1]); |
| 451 } | 451 } |
| 452 | 452 |
| 453 core.int buildCounterCommunity = 0; | 453 core.int buildCounterCommunity = 0; |
| 454 buildCommunity() { | 454 buildCommunity() { |
| 455 var o = new api.Community(); | 455 var o = new api.Community(); |
| 456 buildCounterCommunity++; | 456 buildCounterCommunity++; |
| 457 if (buildCounterCommunity < 3) { | 457 if (buildCounterCommunity < 3) { |
| 458 o.category = "foo"; | 458 o.category = "foo"; |
| 459 o.coOwners = buildUnnamed148(); | 459 o.coOwners = buildUnnamed151(); |
| 460 o.creationDate = core.DateTime.parse("2002-02-27T14:01:02"); | 460 o.creationDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 461 o.description = "foo"; | 461 o.description = "foo"; |
| 462 o.id = 42; | 462 o.id = 42; |
| 463 o.kind = "foo"; | 463 o.kind = "foo"; |
| 464 o.language = "foo"; | 464 o.language = "foo"; |
| 465 o.links = buildUnnamed149(); | 465 o.links = buildUnnamed152(); |
| 466 o.location = "foo"; | 466 o.location = "foo"; |
| 467 o.memberCount = 42; | 467 o.memberCount = 42; |
| 468 o.moderators = buildUnnamed150(); | 468 o.moderators = buildUnnamed153(); |
| 469 o.name = "foo"; | 469 o.name = "foo"; |
| 470 o.owner = buildOrkutAuthorResource(); | 470 o.owner = buildOrkutAuthorResource(); |
| 471 o.photoUrl = "foo"; | 471 o.photoUrl = "foo"; |
| 472 } | 472 } |
| 473 buildCounterCommunity--; | 473 buildCounterCommunity--; |
| 474 return o; | 474 return o; |
| 475 } | 475 } |
| 476 | 476 |
| 477 checkCommunity(api.Community o) { | 477 checkCommunity(api.Community o) { |
| 478 buildCounterCommunity++; | 478 buildCounterCommunity++; |
| 479 if (buildCounterCommunity < 3) { | 479 if (buildCounterCommunity < 3) { |
| 480 unittest.expect(o.category, unittest.equals('foo')); | 480 unittest.expect(o.category, unittest.equals('foo')); |
| 481 checkUnnamed148(o.coOwners); | 481 checkUnnamed151(o.coOwners); |
| 482 unittest.expect(o.creationDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 482 unittest.expect(o.creationDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 483 unittest.expect(o.description, unittest.equals('foo')); | 483 unittest.expect(o.description, unittest.equals('foo')); |
| 484 unittest.expect(o.id, unittest.equals(42)); | 484 unittest.expect(o.id, unittest.equals(42)); |
| 485 unittest.expect(o.kind, unittest.equals('foo')); | 485 unittest.expect(o.kind, unittest.equals('foo')); |
| 486 unittest.expect(o.language, unittest.equals('foo')); | 486 unittest.expect(o.language, unittest.equals('foo')); |
| 487 checkUnnamed149(o.links); | 487 checkUnnamed152(o.links); |
| 488 unittest.expect(o.location, unittest.equals('foo')); | 488 unittest.expect(o.location, unittest.equals('foo')); |
| 489 unittest.expect(o.memberCount, unittest.equals(42)); | 489 unittest.expect(o.memberCount, unittest.equals(42)); |
| 490 checkUnnamed150(o.moderators); | 490 checkUnnamed153(o.moderators); |
| 491 unittest.expect(o.name, unittest.equals('foo')); | 491 unittest.expect(o.name, unittest.equals('foo')); |
| 492 checkOrkutAuthorResource(o.owner); | 492 checkOrkutAuthorResource(o.owner); |
| 493 unittest.expect(o.photoUrl, unittest.equals('foo')); | 493 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 494 } | 494 } |
| 495 buildCounterCommunity--; | 495 buildCounterCommunity--; |
| 496 } | 496 } |
| 497 | 497 |
| 498 buildUnnamed151() { | 498 buildUnnamed154() { |
| 499 var o = new core.List<api.Community>(); | 499 var o = new core.List<api.Community>(); |
| 500 o.add(buildCommunity()); | 500 o.add(buildCommunity()); |
| 501 o.add(buildCommunity()); | 501 o.add(buildCommunity()); |
| 502 return o; | 502 return o; |
| 503 } | 503 } |
| 504 | 504 |
| 505 checkUnnamed151(core.List<api.Community> o) { | 505 checkUnnamed154(core.List<api.Community> o) { |
| 506 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
| 507 checkCommunity(o[0]); | 507 checkCommunity(o[0]); |
| 508 checkCommunity(o[1]); | 508 checkCommunity(o[1]); |
| 509 } | 509 } |
| 510 | 510 |
| 511 core.int buildCounterCommunityList = 0; | 511 core.int buildCounterCommunityList = 0; |
| 512 buildCommunityList() { | 512 buildCommunityList() { |
| 513 var o = new api.CommunityList(); | 513 var o = new api.CommunityList(); |
| 514 buildCounterCommunityList++; | 514 buildCounterCommunityList++; |
| 515 if (buildCounterCommunityList < 3) { | 515 if (buildCounterCommunityList < 3) { |
| 516 o.items = buildUnnamed151(); | 516 o.items = buildUnnamed154(); |
| 517 o.kind = "foo"; | 517 o.kind = "foo"; |
| 518 } | 518 } |
| 519 buildCounterCommunityList--; | 519 buildCounterCommunityList--; |
| 520 return o; | 520 return o; |
| 521 } | 521 } |
| 522 | 522 |
| 523 checkCommunityList(api.CommunityList o) { | 523 checkCommunityList(api.CommunityList o) { |
| 524 buildCounterCommunityList++; | 524 buildCounterCommunityList++; |
| 525 if (buildCounterCommunityList < 3) { | 525 if (buildCounterCommunityList < 3) { |
| 526 checkUnnamed151(o.items); | 526 checkUnnamed154(o.items); |
| 527 unittest.expect(o.kind, unittest.equals('foo')); | 527 unittest.expect(o.kind, unittest.equals('foo')); |
| 528 } | 528 } |
| 529 buildCounterCommunityList--; | 529 buildCounterCommunityList--; |
| 530 } | 530 } |
| 531 | 531 |
| 532 core.int buildCounterCommunityMembers = 0; | 532 core.int buildCounterCommunityMembers = 0; |
| 533 buildCommunityMembers() { | 533 buildCommunityMembers() { |
| 534 var o = new api.CommunityMembers(); | 534 var o = new api.CommunityMembers(); |
| 535 buildCounterCommunityMembers++; | 535 buildCounterCommunityMembers++; |
| 536 if (buildCounterCommunityMembers < 3) { | 536 if (buildCounterCommunityMembers < 3) { |
| 537 o.communityMembershipStatus = buildCommunityMembershipStatus(); | 537 o.communityMembershipStatus = buildCommunityMembershipStatus(); |
| 538 o.kind = "foo"; | 538 o.kind = "foo"; |
| 539 o.person = buildOrkutActivitypersonResource(); | 539 o.person = buildOrkutActivitypersonResource(); |
| 540 } | 540 } |
| 541 buildCounterCommunityMembers--; | 541 buildCounterCommunityMembers--; |
| 542 return o; | 542 return o; |
| 543 } | 543 } |
| 544 | 544 |
| 545 checkCommunityMembers(api.CommunityMembers o) { | 545 checkCommunityMembers(api.CommunityMembers o) { |
| 546 buildCounterCommunityMembers++; | 546 buildCounterCommunityMembers++; |
| 547 if (buildCounterCommunityMembers < 3) { | 547 if (buildCounterCommunityMembers < 3) { |
| 548 checkCommunityMembershipStatus(o.communityMembershipStatus); | 548 checkCommunityMembershipStatus(o.communityMembershipStatus); |
| 549 unittest.expect(o.kind, unittest.equals('foo')); | 549 unittest.expect(o.kind, unittest.equals('foo')); |
| 550 checkOrkutActivitypersonResource(o.person); | 550 checkOrkutActivitypersonResource(o.person); |
| 551 } | 551 } |
| 552 buildCounterCommunityMembers--; | 552 buildCounterCommunityMembers--; |
| 553 } | 553 } |
| 554 | 554 |
| 555 buildUnnamed152() { | 555 buildUnnamed155() { |
| 556 var o = new core.List<api.CommunityMembers>(); | 556 var o = new core.List<api.CommunityMembers>(); |
| 557 o.add(buildCommunityMembers()); | 557 o.add(buildCommunityMembers()); |
| 558 o.add(buildCommunityMembers()); | 558 o.add(buildCommunityMembers()); |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkUnnamed152(core.List<api.CommunityMembers> o) { | 562 checkUnnamed155(core.List<api.CommunityMembers> o) { |
| 563 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
| 564 checkCommunityMembers(o[0]); | 564 checkCommunityMembers(o[0]); |
| 565 checkCommunityMembers(o[1]); | 565 checkCommunityMembers(o[1]); |
| 566 } | 566 } |
| 567 | 567 |
| 568 core.int buildCounterCommunityMembersList = 0; | 568 core.int buildCounterCommunityMembersList = 0; |
| 569 buildCommunityMembersList() { | 569 buildCommunityMembersList() { |
| 570 var o = new api.CommunityMembersList(); | 570 var o = new api.CommunityMembersList(); |
| 571 buildCounterCommunityMembersList++; | 571 buildCounterCommunityMembersList++; |
| 572 if (buildCounterCommunityMembersList < 3) { | 572 if (buildCounterCommunityMembersList < 3) { |
| 573 o.firstPageToken = "foo"; | 573 o.firstPageToken = "foo"; |
| 574 o.items = buildUnnamed152(); | 574 o.items = buildUnnamed155(); |
| 575 o.kind = "foo"; | 575 o.kind = "foo"; |
| 576 o.lastPageToken = "foo"; | 576 o.lastPageToken = "foo"; |
| 577 o.nextPageToken = "foo"; | 577 o.nextPageToken = "foo"; |
| 578 o.prevPageToken = "foo"; | 578 o.prevPageToken = "foo"; |
| 579 } | 579 } |
| 580 buildCounterCommunityMembersList--; | 580 buildCounterCommunityMembersList--; |
| 581 return o; | 581 return o; |
| 582 } | 582 } |
| 583 | 583 |
| 584 checkCommunityMembersList(api.CommunityMembersList o) { | 584 checkCommunityMembersList(api.CommunityMembersList o) { |
| 585 buildCounterCommunityMembersList++; | 585 buildCounterCommunityMembersList++; |
| 586 if (buildCounterCommunityMembersList < 3) { | 586 if (buildCounterCommunityMembersList < 3) { |
| 587 unittest.expect(o.firstPageToken, unittest.equals('foo')); | 587 unittest.expect(o.firstPageToken, unittest.equals('foo')); |
| 588 checkUnnamed152(o.items); | 588 checkUnnamed155(o.items); |
| 589 unittest.expect(o.kind, unittest.equals('foo')); | 589 unittest.expect(o.kind, unittest.equals('foo')); |
| 590 unittest.expect(o.lastPageToken, unittest.equals('foo')); | 590 unittest.expect(o.lastPageToken, unittest.equals('foo')); |
| 591 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 591 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 592 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 592 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
| 593 } | 593 } |
| 594 buildCounterCommunityMembersList--; | 594 buildCounterCommunityMembersList--; |
| 595 } | 595 } |
| 596 | 596 |
| 597 core.int buildCounterCommunityMembershipStatus = 0; | 597 core.int buildCounterCommunityMembershipStatus = 0; |
| 598 buildCommunityMembershipStatus() { | 598 buildCommunityMembershipStatus() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 626 unittest.expect(o.isModerator, unittest.isTrue); | 626 unittest.expect(o.isModerator, unittest.isTrue); |
| 627 unittest.expect(o.isOwner, unittest.isTrue); | 627 unittest.expect(o.isOwner, unittest.isTrue); |
| 628 unittest.expect(o.isRestoreAvailable, unittest.isTrue); | 628 unittest.expect(o.isRestoreAvailable, unittest.isTrue); |
| 629 unittest.expect(o.isTakebackAvailable, unittest.isTrue); | 629 unittest.expect(o.isTakebackAvailable, unittest.isTrue); |
| 630 unittest.expect(o.kind, unittest.equals('foo')); | 630 unittest.expect(o.kind, unittest.equals('foo')); |
| 631 unittest.expect(o.status, unittest.equals('foo')); | 631 unittest.expect(o.status, unittest.equals('foo')); |
| 632 } | 632 } |
| 633 buildCounterCommunityMembershipStatus--; | 633 buildCounterCommunityMembershipStatus--; |
| 634 } | 634 } |
| 635 | 635 |
| 636 buildUnnamed153() { | 636 buildUnnamed156() { |
| 637 var o = new core.List<api.OrkutLinkResource>(); | 637 var o = new core.List<api.OrkutLinkResource>(); |
| 638 o.add(buildOrkutLinkResource()); | 638 o.add(buildOrkutLinkResource()); |
| 639 o.add(buildOrkutLinkResource()); | 639 o.add(buildOrkutLinkResource()); |
| 640 return o; | 640 return o; |
| 641 } | 641 } |
| 642 | 642 |
| 643 checkUnnamed153(core.List<api.OrkutLinkResource> o) { | 643 checkUnnamed156(core.List<api.OrkutLinkResource> o) { |
| 644 unittest.expect(o, unittest.hasLength(2)); | 644 unittest.expect(o, unittest.hasLength(2)); |
| 645 checkOrkutLinkResource(o[0]); | 645 checkOrkutLinkResource(o[0]); |
| 646 checkOrkutLinkResource(o[1]); | 646 checkOrkutLinkResource(o[1]); |
| 647 } | 647 } |
| 648 | 648 |
| 649 core.int buildCounterCommunityMessage = 0; | 649 core.int buildCounterCommunityMessage = 0; |
| 650 buildCommunityMessage() { | 650 buildCommunityMessage() { |
| 651 var o = new api.CommunityMessage(); | 651 var o = new api.CommunityMessage(); |
| 652 buildCounterCommunityMessage++; | 652 buildCounterCommunityMessage++; |
| 653 if (buildCounterCommunityMessage < 3) { | 653 if (buildCounterCommunityMessage < 3) { |
| 654 o.addedDate = core.DateTime.parse("2002-02-27T14:01:02"); | 654 o.addedDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 655 o.author = buildOrkutAuthorResource(); | 655 o.author = buildOrkutAuthorResource(); |
| 656 o.body = "foo"; | 656 o.body = "foo"; |
| 657 o.id = "foo"; | 657 o.id = "foo"; |
| 658 o.isSpam = true; | 658 o.isSpam = true; |
| 659 o.kind = "foo"; | 659 o.kind = "foo"; |
| 660 o.links = buildUnnamed153(); | 660 o.links = buildUnnamed156(); |
| 661 o.subject = "foo"; | 661 o.subject = "foo"; |
| 662 } | 662 } |
| 663 buildCounterCommunityMessage--; | 663 buildCounterCommunityMessage--; |
| 664 return o; | 664 return o; |
| 665 } | 665 } |
| 666 | 666 |
| 667 checkCommunityMessage(api.CommunityMessage o) { | 667 checkCommunityMessage(api.CommunityMessage o) { |
| 668 buildCounterCommunityMessage++; | 668 buildCounterCommunityMessage++; |
| 669 if (buildCounterCommunityMessage < 3) { | 669 if (buildCounterCommunityMessage < 3) { |
| 670 unittest.expect(o.addedDate, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 670 unittest.expect(o.addedDate, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 671 checkOrkutAuthorResource(o.author); | 671 checkOrkutAuthorResource(o.author); |
| 672 unittest.expect(o.body, unittest.equals('foo')); | 672 unittest.expect(o.body, unittest.equals('foo')); |
| 673 unittest.expect(o.id, unittest.equals('foo')); | 673 unittest.expect(o.id, unittest.equals('foo')); |
| 674 unittest.expect(o.isSpam, unittest.isTrue); | 674 unittest.expect(o.isSpam, unittest.isTrue); |
| 675 unittest.expect(o.kind, unittest.equals('foo')); | 675 unittest.expect(o.kind, unittest.equals('foo')); |
| 676 checkUnnamed153(o.links); | 676 checkUnnamed156(o.links); |
| 677 unittest.expect(o.subject, unittest.equals('foo')); | 677 unittest.expect(o.subject, unittest.equals('foo')); |
| 678 } | 678 } |
| 679 buildCounterCommunityMessage--; | 679 buildCounterCommunityMessage--; |
| 680 } | 680 } |
| 681 | 681 |
| 682 buildUnnamed154() { | 682 buildUnnamed157() { |
| 683 var o = new core.List<api.CommunityMessage>(); | 683 var o = new core.List<api.CommunityMessage>(); |
| 684 o.add(buildCommunityMessage()); | 684 o.add(buildCommunityMessage()); |
| 685 o.add(buildCommunityMessage()); | 685 o.add(buildCommunityMessage()); |
| 686 return o; | 686 return o; |
| 687 } | 687 } |
| 688 | 688 |
| 689 checkUnnamed154(core.List<api.CommunityMessage> o) { | 689 checkUnnamed157(core.List<api.CommunityMessage> o) { |
| 690 unittest.expect(o, unittest.hasLength(2)); | 690 unittest.expect(o, unittest.hasLength(2)); |
| 691 checkCommunityMessage(o[0]); | 691 checkCommunityMessage(o[0]); |
| 692 checkCommunityMessage(o[1]); | 692 checkCommunityMessage(o[1]); |
| 693 } | 693 } |
| 694 | 694 |
| 695 core.int buildCounterCommunityMessageList = 0; | 695 core.int buildCounterCommunityMessageList = 0; |
| 696 buildCommunityMessageList() { | 696 buildCommunityMessageList() { |
| 697 var o = new api.CommunityMessageList(); | 697 var o = new api.CommunityMessageList(); |
| 698 buildCounterCommunityMessageList++; | 698 buildCounterCommunityMessageList++; |
| 699 if (buildCounterCommunityMessageList < 3) { | 699 if (buildCounterCommunityMessageList < 3) { |
| 700 o.firstPageToken = "foo"; | 700 o.firstPageToken = "foo"; |
| 701 o.items = buildUnnamed154(); | 701 o.items = buildUnnamed157(); |
| 702 o.kind = "foo"; | 702 o.kind = "foo"; |
| 703 o.lastPageToken = "foo"; | 703 o.lastPageToken = "foo"; |
| 704 o.nextPageToken = "foo"; | 704 o.nextPageToken = "foo"; |
| 705 o.prevPageToken = "foo"; | 705 o.prevPageToken = "foo"; |
| 706 } | 706 } |
| 707 buildCounterCommunityMessageList--; | 707 buildCounterCommunityMessageList--; |
| 708 return o; | 708 return o; |
| 709 } | 709 } |
| 710 | 710 |
| 711 checkCommunityMessageList(api.CommunityMessageList o) { | 711 checkCommunityMessageList(api.CommunityMessageList o) { |
| 712 buildCounterCommunityMessageList++; | 712 buildCounterCommunityMessageList++; |
| 713 if (buildCounterCommunityMessageList < 3) { | 713 if (buildCounterCommunityMessageList < 3) { |
| 714 unittest.expect(o.firstPageToken, unittest.equals('foo')); | 714 unittest.expect(o.firstPageToken, unittest.equals('foo')); |
| 715 checkUnnamed154(o.items); | 715 checkUnnamed157(o.items); |
| 716 unittest.expect(o.kind, unittest.equals('foo')); | 716 unittest.expect(o.kind, unittest.equals('foo')); |
| 717 unittest.expect(o.lastPageToken, unittest.equals('foo')); | 717 unittest.expect(o.lastPageToken, unittest.equals('foo')); |
| 718 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 718 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 719 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 719 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
| 720 } | 720 } |
| 721 buildCounterCommunityMessageList--; | 721 buildCounterCommunityMessageList--; |
| 722 } | 722 } |
| 723 | 723 |
| 724 core.int buildCounterCommunityPollImage = 0; | 724 core.int buildCounterCommunityPollImage = 0; |
| 725 buildCommunityPollImage() { | 725 buildCommunityPollImage() { |
| 726 var o = new api.CommunityPollImage(); | 726 var o = new api.CommunityPollImage(); |
| 727 buildCounterCommunityPollImage++; | 727 buildCounterCommunityPollImage++; |
| 728 if (buildCounterCommunityPollImage < 3) { | 728 if (buildCounterCommunityPollImage < 3) { |
| 729 o.url = "foo"; | 729 o.url = "foo"; |
| 730 } | 730 } |
| 731 buildCounterCommunityPollImage--; | 731 buildCounterCommunityPollImage--; |
| 732 return o; | 732 return o; |
| 733 } | 733 } |
| 734 | 734 |
| 735 checkCommunityPollImage(api.CommunityPollImage o) { | 735 checkCommunityPollImage(api.CommunityPollImage o) { |
| 736 buildCounterCommunityPollImage++; | 736 buildCounterCommunityPollImage++; |
| 737 if (buildCounterCommunityPollImage < 3) { | 737 if (buildCounterCommunityPollImage < 3) { |
| 738 unittest.expect(o.url, unittest.equals('foo')); | 738 unittest.expect(o.url, unittest.equals('foo')); |
| 739 } | 739 } |
| 740 buildCounterCommunityPollImage--; | 740 buildCounterCommunityPollImage--; |
| 741 } | 741 } |
| 742 | 742 |
| 743 buildUnnamed155() { | 743 buildUnnamed158() { |
| 744 var o = new core.List<api.OrkutLinkResource>(); | 744 var o = new core.List<api.OrkutLinkResource>(); |
| 745 o.add(buildOrkutLinkResource()); | 745 o.add(buildOrkutLinkResource()); |
| 746 o.add(buildOrkutLinkResource()); | 746 o.add(buildOrkutLinkResource()); |
| 747 return o; | 747 return o; |
| 748 } | 748 } |
| 749 | 749 |
| 750 checkUnnamed155(core.List<api.OrkutLinkResource> o) { | 750 checkUnnamed158(core.List<api.OrkutLinkResource> o) { |
| 751 unittest.expect(o, unittest.hasLength(2)); | 751 unittest.expect(o, unittest.hasLength(2)); |
| 752 checkOrkutLinkResource(o[0]); | 752 checkOrkutLinkResource(o[0]); |
| 753 checkOrkutLinkResource(o[1]); | 753 checkOrkutLinkResource(o[1]); |
| 754 } | 754 } |
| 755 | 755 |
| 756 buildUnnamed156() { | 756 buildUnnamed159() { |
| 757 var o = new core.List<api.OrkutCommunitypolloptionResource>(); | 757 var o = new core.List<api.OrkutCommunitypolloptionResource>(); |
| 758 o.add(buildOrkutCommunitypolloptionResource()); | 758 o.add(buildOrkutCommunitypolloptionResource()); |
| 759 o.add(buildOrkutCommunitypolloptionResource()); | 759 o.add(buildOrkutCommunitypolloptionResource()); |
| 760 return o; | 760 return o; |
| 761 } | 761 } |
| 762 | 762 |
| 763 checkUnnamed156(core.List<api.OrkutCommunitypolloptionResource> o) { | 763 checkUnnamed159(core.List<api.OrkutCommunitypolloptionResource> o) { |
| 764 unittest.expect(o, unittest.hasLength(2)); | 764 unittest.expect(o, unittest.hasLength(2)); |
| 765 checkOrkutCommunitypolloptionResource(o[0]); | 765 checkOrkutCommunitypolloptionResource(o[0]); |
| 766 checkOrkutCommunitypolloptionResource(o[1]); | 766 checkOrkutCommunitypolloptionResource(o[1]); |
| 767 } | 767 } |
| 768 | 768 |
| 769 buildUnnamed157() { | 769 buildUnnamed160() { |
| 770 var o = new core.List<core.int>(); | 770 var o = new core.List<core.int>(); |
| 771 o.add(42); | 771 o.add(42); |
| 772 o.add(42); | 772 o.add(42); |
| 773 return o; | 773 return o; |
| 774 } | 774 } |
| 775 | 775 |
| 776 checkUnnamed157(core.List<core.int> o) { | 776 checkUnnamed160(core.List<core.int> o) { |
| 777 unittest.expect(o, unittest.hasLength(2)); | 777 unittest.expect(o, unittest.hasLength(2)); |
| 778 unittest.expect(o[0], unittest.equals(42)); | 778 unittest.expect(o[0], unittest.equals(42)); |
| 779 unittest.expect(o[1], unittest.equals(42)); | 779 unittest.expect(o[1], unittest.equals(42)); |
| 780 } | 780 } |
| 781 | 781 |
| 782 core.int buildCounterCommunityPoll = 0; | 782 core.int buildCounterCommunityPoll = 0; |
| 783 buildCommunityPoll() { | 783 buildCommunityPoll() { |
| 784 var o = new api.CommunityPoll(); | 784 var o = new api.CommunityPoll(); |
| 785 buildCounterCommunityPoll++; | 785 buildCounterCommunityPoll++; |
| 786 if (buildCounterCommunityPoll < 3) { | 786 if (buildCounterCommunityPoll < 3) { |
| 787 o.author = buildOrkutAuthorResource(); | 787 o.author = buildOrkutAuthorResource(); |
| 788 o.communityId = 42; | 788 o.communityId = 42; |
| 789 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 789 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 790 o.description = "foo"; | 790 o.description = "foo"; |
| 791 o.endingTime = core.DateTime.parse("2002-02-27T14:01:02"); | 791 o.endingTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 792 o.hasVoted = true; | 792 o.hasVoted = true; |
| 793 o.id = "foo"; | 793 o.id = "foo"; |
| 794 o.image = buildCommunityPollImage(); | 794 o.image = buildCommunityPollImage(); |
| 795 o.isClosed = true; | 795 o.isClosed = true; |
| 796 o.isMultipleAnswers = true; | 796 o.isMultipleAnswers = true; |
| 797 o.isOpenForVoting = true; | 797 o.isOpenForVoting = true; |
| 798 o.isRestricted = true; | 798 o.isRestricted = true; |
| 799 o.isSpam = true; | 799 o.isSpam = true; |
| 800 o.isUsersVotePublic = true; | 800 o.isUsersVotePublic = true; |
| 801 o.isVotingAllowedForNonMembers = true; | 801 o.isVotingAllowedForNonMembers = true; |
| 802 o.kind = "foo"; | 802 o.kind = "foo"; |
| 803 o.lastUpdate = core.DateTime.parse("2002-02-27T14:01:02"); | 803 o.lastUpdate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 804 o.links = buildUnnamed155(); | 804 o.links = buildUnnamed158(); |
| 805 o.options = buildUnnamed156(); | 805 o.options = buildUnnamed159(); |
| 806 o.question = "foo"; | 806 o.question = "foo"; |
| 807 o.totalNumberOfVotes = 42; | 807 o.totalNumberOfVotes = 42; |
| 808 o.votedOptions = buildUnnamed157(); | 808 o.votedOptions = buildUnnamed160(); |
| 809 } | 809 } |
| 810 buildCounterCommunityPoll--; | 810 buildCounterCommunityPoll--; |
| 811 return o; | 811 return o; |
| 812 } | 812 } |
| 813 | 813 |
| 814 checkCommunityPoll(api.CommunityPoll o) { | 814 checkCommunityPoll(api.CommunityPoll o) { |
| 815 buildCounterCommunityPoll++; | 815 buildCounterCommunityPoll++; |
| 816 if (buildCounterCommunityPoll < 3) { | 816 if (buildCounterCommunityPoll < 3) { |
| 817 checkOrkutAuthorResource(o.author); | 817 checkOrkutAuthorResource(o.author); |
| 818 unittest.expect(o.communityId, unittest.equals(42)); | 818 unittest.expect(o.communityId, unittest.equals(42)); |
| 819 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 819 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 820 unittest.expect(o.description, unittest.equals('foo')); | 820 unittest.expect(o.description, unittest.equals('foo')); |
| 821 unittest.expect(o.endingTime, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); | 821 unittest.expect(o.endingTime, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); |
| 822 unittest.expect(o.hasVoted, unittest.isTrue); | 822 unittest.expect(o.hasVoted, unittest.isTrue); |
| 823 unittest.expect(o.id, unittest.equals('foo')); | 823 unittest.expect(o.id, unittest.equals('foo')); |
| 824 checkCommunityPollImage(o.image); | 824 checkCommunityPollImage(o.image); |
| 825 unittest.expect(o.isClosed, unittest.isTrue); | 825 unittest.expect(o.isClosed, unittest.isTrue); |
| 826 unittest.expect(o.isMultipleAnswers, unittest.isTrue); | 826 unittest.expect(o.isMultipleAnswers, unittest.isTrue); |
| 827 unittest.expect(o.isOpenForVoting, unittest.isTrue); | 827 unittest.expect(o.isOpenForVoting, unittest.isTrue); |
| 828 unittest.expect(o.isRestricted, unittest.isTrue); | 828 unittest.expect(o.isRestricted, unittest.isTrue); |
| 829 unittest.expect(o.isSpam, unittest.isTrue); | 829 unittest.expect(o.isSpam, unittest.isTrue); |
| 830 unittest.expect(o.isUsersVotePublic, unittest.isTrue); | 830 unittest.expect(o.isUsersVotePublic, unittest.isTrue); |
| 831 unittest.expect(o.isVotingAllowedForNonMembers, unittest.isTrue); | 831 unittest.expect(o.isVotingAllowedForNonMembers, unittest.isTrue); |
| 832 unittest.expect(o.kind, unittest.equals('foo')); | 832 unittest.expect(o.kind, unittest.equals('foo')); |
| 833 unittest.expect(o.lastUpdate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); | 833 unittest.expect(o.lastUpdate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); |
| 834 checkUnnamed155(o.links); | 834 checkUnnamed158(o.links); |
| 835 checkUnnamed156(o.options); | 835 checkUnnamed159(o.options); |
| 836 unittest.expect(o.question, unittest.equals('foo')); | 836 unittest.expect(o.question, unittest.equals('foo')); |
| 837 unittest.expect(o.totalNumberOfVotes, unittest.equals(42)); | 837 unittest.expect(o.totalNumberOfVotes, unittest.equals(42)); |
| 838 checkUnnamed157(o.votedOptions); | 838 checkUnnamed160(o.votedOptions); |
| 839 } | 839 } |
| 840 buildCounterCommunityPoll--; | 840 buildCounterCommunityPoll--; |
| 841 } | 841 } |
| 842 | 842 |
| 843 core.int buildCounterCommunityPollComment = 0; | 843 core.int buildCounterCommunityPollComment = 0; |
| 844 buildCommunityPollComment() { | 844 buildCommunityPollComment() { |
| 845 var o = new api.CommunityPollComment(); | 845 var o = new api.CommunityPollComment(); |
| 846 buildCounterCommunityPollComment++; | 846 buildCounterCommunityPollComment++; |
| 847 if (buildCounterCommunityPollComment < 3) { | 847 if (buildCounterCommunityPollComment < 3) { |
| 848 o.addedDate = core.DateTime.parse("2002-02-27T14:01:02"); | 848 o.addedDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 860 if (buildCounterCommunityPollComment < 3) { | 860 if (buildCounterCommunityPollComment < 3) { |
| 861 unittest.expect(o.addedDate, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 861 unittest.expect(o.addedDate, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 862 checkOrkutAuthorResource(o.author); | 862 checkOrkutAuthorResource(o.author); |
| 863 unittest.expect(o.body, unittest.equals('foo')); | 863 unittest.expect(o.body, unittest.equals('foo')); |
| 864 unittest.expect(o.id, unittest.equals(42)); | 864 unittest.expect(o.id, unittest.equals(42)); |
| 865 unittest.expect(o.kind, unittest.equals('foo')); | 865 unittest.expect(o.kind, unittest.equals('foo')); |
| 866 } | 866 } |
| 867 buildCounterCommunityPollComment--; | 867 buildCounterCommunityPollComment--; |
| 868 } | 868 } |
| 869 | 869 |
| 870 buildUnnamed158() { | 870 buildUnnamed161() { |
| 871 var o = new core.List<api.CommunityPollComment>(); | 871 var o = new core.List<api.CommunityPollComment>(); |
| 872 o.add(buildCommunityPollComment()); | 872 o.add(buildCommunityPollComment()); |
| 873 o.add(buildCommunityPollComment()); | 873 o.add(buildCommunityPollComment()); |
| 874 return o; | 874 return o; |
| 875 } | 875 } |
| 876 | 876 |
| 877 checkUnnamed158(core.List<api.CommunityPollComment> o) { | 877 checkUnnamed161(core.List<api.CommunityPollComment> o) { |
| 878 unittest.expect(o, unittest.hasLength(2)); | 878 unittest.expect(o, unittest.hasLength(2)); |
| 879 checkCommunityPollComment(o[0]); | 879 checkCommunityPollComment(o[0]); |
| 880 checkCommunityPollComment(o[1]); | 880 checkCommunityPollComment(o[1]); |
| 881 } | 881 } |
| 882 | 882 |
| 883 core.int buildCounterCommunityPollCommentList = 0; | 883 core.int buildCounterCommunityPollCommentList = 0; |
| 884 buildCommunityPollCommentList() { | 884 buildCommunityPollCommentList() { |
| 885 var o = new api.CommunityPollCommentList(); | 885 var o = new api.CommunityPollCommentList(); |
| 886 buildCounterCommunityPollCommentList++; | 886 buildCounterCommunityPollCommentList++; |
| 887 if (buildCounterCommunityPollCommentList < 3) { | 887 if (buildCounterCommunityPollCommentList < 3) { |
| 888 o.firstPageToken = "foo"; | 888 o.firstPageToken = "foo"; |
| 889 o.items = buildUnnamed158(); | 889 o.items = buildUnnamed161(); |
| 890 o.kind = "foo"; | 890 o.kind = "foo"; |
| 891 o.lastPageToken = "foo"; | 891 o.lastPageToken = "foo"; |
| 892 o.nextPageToken = "foo"; | 892 o.nextPageToken = "foo"; |
| 893 o.prevPageToken = "foo"; | 893 o.prevPageToken = "foo"; |
| 894 } | 894 } |
| 895 buildCounterCommunityPollCommentList--; | 895 buildCounterCommunityPollCommentList--; |
| 896 return o; | 896 return o; |
| 897 } | 897 } |
| 898 | 898 |
| 899 checkCommunityPollCommentList(api.CommunityPollCommentList o) { | 899 checkCommunityPollCommentList(api.CommunityPollCommentList o) { |
| 900 buildCounterCommunityPollCommentList++; | 900 buildCounterCommunityPollCommentList++; |
| 901 if (buildCounterCommunityPollCommentList < 3) { | 901 if (buildCounterCommunityPollCommentList < 3) { |
| 902 unittest.expect(o.firstPageToken, unittest.equals('foo')); | 902 unittest.expect(o.firstPageToken, unittest.equals('foo')); |
| 903 checkUnnamed158(o.items); | 903 checkUnnamed161(o.items); |
| 904 unittest.expect(o.kind, unittest.equals('foo')); | 904 unittest.expect(o.kind, unittest.equals('foo')); |
| 905 unittest.expect(o.lastPageToken, unittest.equals('foo')); | 905 unittest.expect(o.lastPageToken, unittest.equals('foo')); |
| 906 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 906 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 907 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 907 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
| 908 } | 908 } |
| 909 buildCounterCommunityPollCommentList--; | 909 buildCounterCommunityPollCommentList--; |
| 910 } | 910 } |
| 911 | 911 |
| 912 buildUnnamed159() { | 912 buildUnnamed162() { |
| 913 var o = new core.List<api.CommunityPoll>(); | 913 var o = new core.List<api.CommunityPoll>(); |
| 914 o.add(buildCommunityPoll()); | 914 o.add(buildCommunityPoll()); |
| 915 o.add(buildCommunityPoll()); | 915 o.add(buildCommunityPoll()); |
| 916 return o; | 916 return o; |
| 917 } | 917 } |
| 918 | 918 |
| 919 checkUnnamed159(core.List<api.CommunityPoll> o) { | 919 checkUnnamed162(core.List<api.CommunityPoll> o) { |
| 920 unittest.expect(o, unittest.hasLength(2)); | 920 unittest.expect(o, unittest.hasLength(2)); |
| 921 checkCommunityPoll(o[0]); | 921 checkCommunityPoll(o[0]); |
| 922 checkCommunityPoll(o[1]); | 922 checkCommunityPoll(o[1]); |
| 923 } | 923 } |
| 924 | 924 |
| 925 core.int buildCounterCommunityPollList = 0; | 925 core.int buildCounterCommunityPollList = 0; |
| 926 buildCommunityPollList() { | 926 buildCommunityPollList() { |
| 927 var o = new api.CommunityPollList(); | 927 var o = new api.CommunityPollList(); |
| 928 buildCounterCommunityPollList++; | 928 buildCounterCommunityPollList++; |
| 929 if (buildCounterCommunityPollList < 3) { | 929 if (buildCounterCommunityPollList < 3) { |
| 930 o.firstPageToken = "foo"; | 930 o.firstPageToken = "foo"; |
| 931 o.items = buildUnnamed159(); | 931 o.items = buildUnnamed162(); |
| 932 o.kind = "foo"; | 932 o.kind = "foo"; |
| 933 o.lastPageToken = "foo"; | 933 o.lastPageToken = "foo"; |
| 934 o.nextPageToken = "foo"; | 934 o.nextPageToken = "foo"; |
| 935 o.prevPageToken = "foo"; | 935 o.prevPageToken = "foo"; |
| 936 } | 936 } |
| 937 buildCounterCommunityPollList--; | 937 buildCounterCommunityPollList--; |
| 938 return o; | 938 return o; |
| 939 } | 939 } |
| 940 | 940 |
| 941 checkCommunityPollList(api.CommunityPollList o) { | 941 checkCommunityPollList(api.CommunityPollList o) { |
| 942 buildCounterCommunityPollList++; | 942 buildCounterCommunityPollList++; |
| 943 if (buildCounterCommunityPollList < 3) { | 943 if (buildCounterCommunityPollList < 3) { |
| 944 unittest.expect(o.firstPageToken, unittest.equals('foo')); | 944 unittest.expect(o.firstPageToken, unittest.equals('foo')); |
| 945 checkUnnamed159(o.items); | 945 checkUnnamed162(o.items); |
| 946 unittest.expect(o.kind, unittest.equals('foo')); | 946 unittest.expect(o.kind, unittest.equals('foo')); |
| 947 unittest.expect(o.lastPageToken, unittest.equals('foo')); | 947 unittest.expect(o.lastPageToken, unittest.equals('foo')); |
| 948 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 948 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 949 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 949 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
| 950 } | 950 } |
| 951 buildCounterCommunityPollList--; | 951 buildCounterCommunityPollList--; |
| 952 } | 952 } |
| 953 | 953 |
| 954 buildUnnamed160() { | 954 buildUnnamed163() { |
| 955 var o = new core.List<core.int>(); | 955 var o = new core.List<core.int>(); |
| 956 o.add(42); | 956 o.add(42); |
| 957 o.add(42); | 957 o.add(42); |
| 958 return o; | 958 return o; |
| 959 } | 959 } |
| 960 | 960 |
| 961 checkUnnamed160(core.List<core.int> o) { | 961 checkUnnamed163(core.List<core.int> o) { |
| 962 unittest.expect(o, unittest.hasLength(2)); | 962 unittest.expect(o, unittest.hasLength(2)); |
| 963 unittest.expect(o[0], unittest.equals(42)); | 963 unittest.expect(o[0], unittest.equals(42)); |
| 964 unittest.expect(o[1], unittest.equals(42)); | 964 unittest.expect(o[1], unittest.equals(42)); |
| 965 } | 965 } |
| 966 | 966 |
| 967 core.int buildCounterCommunityPollVote = 0; | 967 core.int buildCounterCommunityPollVote = 0; |
| 968 buildCommunityPollVote() { | 968 buildCommunityPollVote() { |
| 969 var o = new api.CommunityPollVote(); | 969 var o = new api.CommunityPollVote(); |
| 970 buildCounterCommunityPollVote++; | 970 buildCounterCommunityPollVote++; |
| 971 if (buildCounterCommunityPollVote < 3) { | 971 if (buildCounterCommunityPollVote < 3) { |
| 972 o.isVotevisible = true; | 972 o.isVotevisible = true; |
| 973 o.kind = "foo"; | 973 o.kind = "foo"; |
| 974 o.optionIds = buildUnnamed160(); | 974 o.optionIds = buildUnnamed163(); |
| 975 } | 975 } |
| 976 buildCounterCommunityPollVote--; | 976 buildCounterCommunityPollVote--; |
| 977 return o; | 977 return o; |
| 978 } | 978 } |
| 979 | 979 |
| 980 checkCommunityPollVote(api.CommunityPollVote o) { | 980 checkCommunityPollVote(api.CommunityPollVote o) { |
| 981 buildCounterCommunityPollVote++; | 981 buildCounterCommunityPollVote++; |
| 982 if (buildCounterCommunityPollVote < 3) { | 982 if (buildCounterCommunityPollVote < 3) { |
| 983 unittest.expect(o.isVotevisible, unittest.isTrue); | 983 unittest.expect(o.isVotevisible, unittest.isTrue); |
| 984 unittest.expect(o.kind, unittest.equals('foo')); | 984 unittest.expect(o.kind, unittest.equals('foo')); |
| 985 checkUnnamed160(o.optionIds); | 985 checkUnnamed163(o.optionIds); |
| 986 } | 986 } |
| 987 buildCounterCommunityPollVote--; | 987 buildCounterCommunityPollVote--; |
| 988 } | 988 } |
| 989 | 989 |
| 990 buildUnnamed161() { | 990 buildUnnamed164() { |
| 991 var o = new core.List<api.OrkutLinkResource>(); | 991 var o = new core.List<api.OrkutLinkResource>(); |
| 992 o.add(buildOrkutLinkResource()); | 992 o.add(buildOrkutLinkResource()); |
| 993 o.add(buildOrkutLinkResource()); | 993 o.add(buildOrkutLinkResource()); |
| 994 return o; | 994 return o; |
| 995 } | 995 } |
| 996 | 996 |
| 997 checkUnnamed161(core.List<api.OrkutLinkResource> o) { | 997 checkUnnamed164(core.List<api.OrkutLinkResource> o) { |
| 998 unittest.expect(o, unittest.hasLength(2)); | 998 unittest.expect(o, unittest.hasLength(2)); |
| 999 checkOrkutLinkResource(o[0]); | 999 checkOrkutLinkResource(o[0]); |
| 1000 checkOrkutLinkResource(o[1]); | 1000 checkOrkutLinkResource(o[1]); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 buildUnnamed162() { | 1003 buildUnnamed165() { |
| 1004 var o = new core.List<api.CommunityMessage>(); | 1004 var o = new core.List<api.CommunityMessage>(); |
| 1005 o.add(buildCommunityMessage()); | 1005 o.add(buildCommunityMessage()); |
| 1006 o.add(buildCommunityMessage()); | 1006 o.add(buildCommunityMessage()); |
| 1007 return o; | 1007 return o; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 checkUnnamed162(core.List<api.CommunityMessage> o) { | 1010 checkUnnamed165(core.List<api.CommunityMessage> o) { |
| 1011 unittest.expect(o, unittest.hasLength(2)); | 1011 unittest.expect(o, unittest.hasLength(2)); |
| 1012 checkCommunityMessage(o[0]); | 1012 checkCommunityMessage(o[0]); |
| 1013 checkCommunityMessage(o[1]); | 1013 checkCommunityMessage(o[1]); |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 core.int buildCounterCommunityTopic = 0; | 1016 core.int buildCounterCommunityTopic = 0; |
| 1017 buildCommunityTopic() { | 1017 buildCommunityTopic() { |
| 1018 var o = new api.CommunityTopic(); | 1018 var o = new api.CommunityTopic(); |
| 1019 buildCounterCommunityTopic++; | 1019 buildCounterCommunityTopic++; |
| 1020 if (buildCounterCommunityTopic < 3) { | 1020 if (buildCounterCommunityTopic < 3) { |
| 1021 o.author = buildOrkutAuthorResource(); | 1021 o.author = buildOrkutAuthorResource(); |
| 1022 o.body = "foo"; | 1022 o.body = "foo"; |
| 1023 o.id = "foo"; | 1023 o.id = "foo"; |
| 1024 o.isClosed = true; | 1024 o.isClosed = true; |
| 1025 o.kind = "foo"; | 1025 o.kind = "foo"; |
| 1026 o.lastUpdate = core.DateTime.parse("2002-02-27T14:01:02"); | 1026 o.lastUpdate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1027 o.latestMessageSnippet = "foo"; | 1027 o.latestMessageSnippet = "foo"; |
| 1028 o.links = buildUnnamed161(); | 1028 o.links = buildUnnamed164(); |
| 1029 o.messages = buildUnnamed162(); | 1029 o.messages = buildUnnamed165(); |
| 1030 o.numberOfReplies = 42; | 1030 o.numberOfReplies = 42; |
| 1031 o.title = "foo"; | 1031 o.title = "foo"; |
| 1032 } | 1032 } |
| 1033 buildCounterCommunityTopic--; | 1033 buildCounterCommunityTopic--; |
| 1034 return o; | 1034 return o; |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 checkCommunityTopic(api.CommunityTopic o) { | 1037 checkCommunityTopic(api.CommunityTopic o) { |
| 1038 buildCounterCommunityTopic++; | 1038 buildCounterCommunityTopic++; |
| 1039 if (buildCounterCommunityTopic < 3) { | 1039 if (buildCounterCommunityTopic < 3) { |
| 1040 checkOrkutAuthorResource(o.author); | 1040 checkOrkutAuthorResource(o.author); |
| 1041 unittest.expect(o.body, unittest.equals('foo')); | 1041 unittest.expect(o.body, unittest.equals('foo')); |
| 1042 unittest.expect(o.id, unittest.equals('foo')); | 1042 unittest.expect(o.id, unittest.equals('foo')); |
| 1043 unittest.expect(o.isClosed, unittest.isTrue); | 1043 unittest.expect(o.isClosed, unittest.isTrue); |
| 1044 unittest.expect(o.kind, unittest.equals('foo')); | 1044 unittest.expect(o.kind, unittest.equals('foo')); |
| 1045 unittest.expect(o.lastUpdate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); | 1045 unittest.expect(o.lastUpdate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); |
| 1046 unittest.expect(o.latestMessageSnippet, unittest.equals('foo')); | 1046 unittest.expect(o.latestMessageSnippet, unittest.equals('foo')); |
| 1047 checkUnnamed161(o.links); | 1047 checkUnnamed164(o.links); |
| 1048 checkUnnamed162(o.messages); | 1048 checkUnnamed165(o.messages); |
| 1049 unittest.expect(o.numberOfReplies, unittest.equals(42)); | 1049 unittest.expect(o.numberOfReplies, unittest.equals(42)); |
| 1050 unittest.expect(o.title, unittest.equals('foo')); | 1050 unittest.expect(o.title, unittest.equals('foo')); |
| 1051 } | 1051 } |
| 1052 buildCounterCommunityTopic--; | 1052 buildCounterCommunityTopic--; |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 buildUnnamed163() { | 1055 buildUnnamed166() { |
| 1056 var o = new core.List<api.CommunityTopic>(); | 1056 var o = new core.List<api.CommunityTopic>(); |
| 1057 o.add(buildCommunityTopic()); | 1057 o.add(buildCommunityTopic()); |
| 1058 o.add(buildCommunityTopic()); | 1058 o.add(buildCommunityTopic()); |
| 1059 return o; | 1059 return o; |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 checkUnnamed163(core.List<api.CommunityTopic> o) { | 1062 checkUnnamed166(core.List<api.CommunityTopic> o) { |
| 1063 unittest.expect(o, unittest.hasLength(2)); | 1063 unittest.expect(o, unittest.hasLength(2)); |
| 1064 checkCommunityTopic(o[0]); | 1064 checkCommunityTopic(o[0]); |
| 1065 checkCommunityTopic(o[1]); | 1065 checkCommunityTopic(o[1]); |
| 1066 } | 1066 } |
| 1067 | 1067 |
| 1068 core.int buildCounterCommunityTopicList = 0; | 1068 core.int buildCounterCommunityTopicList = 0; |
| 1069 buildCommunityTopicList() { | 1069 buildCommunityTopicList() { |
| 1070 var o = new api.CommunityTopicList(); | 1070 var o = new api.CommunityTopicList(); |
| 1071 buildCounterCommunityTopicList++; | 1071 buildCounterCommunityTopicList++; |
| 1072 if (buildCounterCommunityTopicList < 3) { | 1072 if (buildCounterCommunityTopicList < 3) { |
| 1073 o.firstPageToken = "foo"; | 1073 o.firstPageToken = "foo"; |
| 1074 o.items = buildUnnamed163(); | 1074 o.items = buildUnnamed166(); |
| 1075 o.kind = "foo"; | 1075 o.kind = "foo"; |
| 1076 o.lastPageToken = "foo"; | 1076 o.lastPageToken = "foo"; |
| 1077 o.nextPageToken = "foo"; | 1077 o.nextPageToken = "foo"; |
| 1078 o.prevPageToken = "foo"; | 1078 o.prevPageToken = "foo"; |
| 1079 } | 1079 } |
| 1080 buildCounterCommunityTopicList--; | 1080 buildCounterCommunityTopicList--; |
| 1081 return o; | 1081 return o; |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 checkCommunityTopicList(api.CommunityTopicList o) { | 1084 checkCommunityTopicList(api.CommunityTopicList o) { |
| 1085 buildCounterCommunityTopicList++; | 1085 buildCounterCommunityTopicList++; |
| 1086 if (buildCounterCommunityTopicList < 3) { | 1086 if (buildCounterCommunityTopicList < 3) { |
| 1087 unittest.expect(o.firstPageToken, unittest.equals('foo')); | 1087 unittest.expect(o.firstPageToken, unittest.equals('foo')); |
| 1088 checkUnnamed163(o.items); | 1088 checkUnnamed166(o.items); |
| 1089 unittest.expect(o.kind, unittest.equals('foo')); | 1089 unittest.expect(o.kind, unittest.equals('foo')); |
| 1090 unittest.expect(o.lastPageToken, unittest.equals('foo')); | 1090 unittest.expect(o.lastPageToken, unittest.equals('foo')); |
| 1091 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1091 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1092 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 1092 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
| 1093 } | 1093 } |
| 1094 buildCounterCommunityTopicList--; | 1094 buildCounterCommunityTopicList--; |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 buildUnnamed164() { | 1097 buildUnnamed167() { |
| 1098 var o = new core.List<api.OrkutCounterResource>(); | 1098 var o = new core.List<api.OrkutCounterResource>(); |
| 1099 o.add(buildOrkutCounterResource()); | 1099 o.add(buildOrkutCounterResource()); |
| 1100 o.add(buildOrkutCounterResource()); | 1100 o.add(buildOrkutCounterResource()); |
| 1101 return o; | 1101 return o; |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 checkUnnamed164(core.List<api.OrkutCounterResource> o) { | 1104 checkUnnamed167(core.List<api.OrkutCounterResource> o) { |
| 1105 unittest.expect(o, unittest.hasLength(2)); | 1105 unittest.expect(o, unittest.hasLength(2)); |
| 1106 checkOrkutCounterResource(o[0]); | 1106 checkOrkutCounterResource(o[0]); |
| 1107 checkOrkutCounterResource(o[1]); | 1107 checkOrkutCounterResource(o[1]); |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 core.int buildCounterCounters = 0; | 1110 core.int buildCounterCounters = 0; |
| 1111 buildCounters() { | 1111 buildCounters() { |
| 1112 var o = new api.Counters(); | 1112 var o = new api.Counters(); |
| 1113 buildCounterCounters++; | 1113 buildCounterCounters++; |
| 1114 if (buildCounterCounters < 3) { | 1114 if (buildCounterCounters < 3) { |
| 1115 o.items = buildUnnamed164(); | 1115 o.items = buildUnnamed167(); |
| 1116 o.kind = "foo"; | 1116 o.kind = "foo"; |
| 1117 } | 1117 } |
| 1118 buildCounterCounters--; | 1118 buildCounterCounters--; |
| 1119 return o; | 1119 return o; |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 checkCounters(api.Counters o) { | 1122 checkCounters(api.Counters o) { |
| 1123 buildCounterCounters++; | 1123 buildCounterCounters++; |
| 1124 if (buildCounterCounters < 3) { | 1124 if (buildCounterCounters < 3) { |
| 1125 checkUnnamed164(o.items); | 1125 checkUnnamed167(o.items); |
| 1126 unittest.expect(o.kind, unittest.equals('foo')); | 1126 unittest.expect(o.kind, unittest.equals('foo')); |
| 1127 } | 1127 } |
| 1128 buildCounterCounters--; | 1128 buildCounterCounters--; |
| 1129 } | 1129 } |
| 1130 | 1130 |
| 1131 buildUnnamed165() { | 1131 buildUnnamed168() { |
| 1132 var o = new core.List<api.OrkutLinkResource>(); | 1132 var o = new core.List<api.OrkutLinkResource>(); |
| 1133 o.add(buildOrkutLinkResource()); | 1133 o.add(buildOrkutLinkResource()); |
| 1134 o.add(buildOrkutLinkResource()); | 1134 o.add(buildOrkutLinkResource()); |
| 1135 return o; | 1135 return o; |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 checkUnnamed165(core.List<api.OrkutLinkResource> o) { | 1138 checkUnnamed168(core.List<api.OrkutLinkResource> o) { |
| 1139 unittest.expect(o, unittest.hasLength(2)); | 1139 unittest.expect(o, unittest.hasLength(2)); |
| 1140 checkOrkutLinkResource(o[0]); | 1140 checkOrkutLinkResource(o[0]); |
| 1141 checkOrkutLinkResource(o[1]); | 1141 checkOrkutLinkResource(o[1]); |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 core.int buildCounterOrkutActivityobjectsResource = 0; | 1144 core.int buildCounterOrkutActivityobjectsResource = 0; |
| 1145 buildOrkutActivityobjectsResource() { | 1145 buildOrkutActivityobjectsResource() { |
| 1146 var o = new api.OrkutActivityobjectsResource(); | 1146 var o = new api.OrkutActivityobjectsResource(); |
| 1147 buildCounterOrkutActivityobjectsResource++; | 1147 buildCounterOrkutActivityobjectsResource++; |
| 1148 if (buildCounterOrkutActivityobjectsResource < 3) { | 1148 if (buildCounterOrkutActivityobjectsResource < 3) { |
| 1149 o.community = buildCommunity(); | 1149 o.community = buildCommunity(); |
| 1150 o.content = "foo"; | 1150 o.content = "foo"; |
| 1151 o.displayName = "foo"; | 1151 o.displayName = "foo"; |
| 1152 o.id = "foo"; | 1152 o.id = "foo"; |
| 1153 o.links = buildUnnamed165(); | 1153 o.links = buildUnnamed168(); |
| 1154 o.objectType = "foo"; | 1154 o.objectType = "foo"; |
| 1155 o.person = buildOrkutActivitypersonResource(); | 1155 o.person = buildOrkutActivitypersonResource(); |
| 1156 } | 1156 } |
| 1157 buildCounterOrkutActivityobjectsResource--; | 1157 buildCounterOrkutActivityobjectsResource--; |
| 1158 return o; | 1158 return o; |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 checkOrkutActivityobjectsResource(api.OrkutActivityobjectsResource o) { | 1161 checkOrkutActivityobjectsResource(api.OrkutActivityobjectsResource o) { |
| 1162 buildCounterOrkutActivityobjectsResource++; | 1162 buildCounterOrkutActivityobjectsResource++; |
| 1163 if (buildCounterOrkutActivityobjectsResource < 3) { | 1163 if (buildCounterOrkutActivityobjectsResource < 3) { |
| 1164 checkCommunity(o.community); | 1164 checkCommunity(o.community); |
| 1165 unittest.expect(o.content, unittest.equals('foo')); | 1165 unittest.expect(o.content, unittest.equals('foo')); |
| 1166 unittest.expect(o.displayName, unittest.equals('foo')); | 1166 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1167 unittest.expect(o.id, unittest.equals('foo')); | 1167 unittest.expect(o.id, unittest.equals('foo')); |
| 1168 checkUnnamed165(o.links); | 1168 checkUnnamed168(o.links); |
| 1169 unittest.expect(o.objectType, unittest.equals('foo')); | 1169 unittest.expect(o.objectType, unittest.equals('foo')); |
| 1170 checkOrkutActivitypersonResource(o.person); | 1170 checkOrkutActivitypersonResource(o.person); |
| 1171 } | 1171 } |
| 1172 buildCounterOrkutActivityobjectsResource--; | 1172 buildCounterOrkutActivityobjectsResource--; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 core.int buildCounterOrkutActivitypersonResourceImage = 0; | 1175 core.int buildCounterOrkutActivitypersonResourceImage = 0; |
| 1176 buildOrkutActivitypersonResourceImage() { | 1176 buildOrkutActivitypersonResourceImage() { |
| 1177 var o = new api.OrkutActivitypersonResourceImage(); | 1177 var o = new api.OrkutActivitypersonResourceImage(); |
| 1178 buildCounterOrkutActivitypersonResourceImage++; | 1178 buildCounterOrkutActivitypersonResourceImage++; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1370 buildCounterOrkutLinkResource++; | 1370 buildCounterOrkutLinkResource++; |
| 1371 if (buildCounterOrkutLinkResource < 3) { | 1371 if (buildCounterOrkutLinkResource < 3) { |
| 1372 unittest.expect(o.href, unittest.equals('foo')); | 1372 unittest.expect(o.href, unittest.equals('foo')); |
| 1373 unittest.expect(o.rel, unittest.equals('foo')); | 1373 unittest.expect(o.rel, unittest.equals('foo')); |
| 1374 unittest.expect(o.title, unittest.equals('foo')); | 1374 unittest.expect(o.title, unittest.equals('foo')); |
| 1375 unittest.expect(o.type, unittest.equals('foo')); | 1375 unittest.expect(o.type, unittest.equals('foo')); |
| 1376 } | 1376 } |
| 1377 buildCounterOrkutLinkResource--; | 1377 buildCounterOrkutLinkResource--; |
| 1378 } | 1378 } |
| 1379 | 1379 |
| 1380 buildUnnamed166() { | 1380 buildUnnamed169() { |
| 1381 var o = new core.List<api.OrkutLinkResource>(); | 1381 var o = new core.List<api.OrkutLinkResource>(); |
| 1382 o.add(buildOrkutLinkResource()); | 1382 o.add(buildOrkutLinkResource()); |
| 1383 o.add(buildOrkutLinkResource()); | 1383 o.add(buildOrkutLinkResource()); |
| 1384 return o; | 1384 return o; |
| 1385 } | 1385 } |
| 1386 | 1386 |
| 1387 checkUnnamed166(core.List<api.OrkutLinkResource> o) { | 1387 checkUnnamed169(core.List<api.OrkutLinkResource> o) { |
| 1388 unittest.expect(o, unittest.hasLength(2)); | 1388 unittest.expect(o, unittest.hasLength(2)); |
| 1389 checkOrkutLinkResource(o[0]); | 1389 checkOrkutLinkResource(o[0]); |
| 1390 checkOrkutLinkResource(o[1]); | 1390 checkOrkutLinkResource(o[1]); |
| 1391 } | 1391 } |
| 1392 | 1392 |
| 1393 core.int buildCounterVisibility = 0; | 1393 core.int buildCounterVisibility = 0; |
| 1394 buildVisibility() { | 1394 buildVisibility() { |
| 1395 var o = new api.Visibility(); | 1395 var o = new api.Visibility(); |
| 1396 buildCounterVisibility++; | 1396 buildCounterVisibility++; |
| 1397 if (buildCounterVisibility < 3) { | 1397 if (buildCounterVisibility < 3) { |
| 1398 o.kind = "foo"; | 1398 o.kind = "foo"; |
| 1399 o.links = buildUnnamed166(); | 1399 o.links = buildUnnamed169(); |
| 1400 o.visibility = "foo"; | 1400 o.visibility = "foo"; |
| 1401 } | 1401 } |
| 1402 buildCounterVisibility--; | 1402 buildCounterVisibility--; |
| 1403 return o; | 1403 return o; |
| 1404 } | 1404 } |
| 1405 | 1405 |
| 1406 checkVisibility(api.Visibility o) { | 1406 checkVisibility(api.Visibility o) { |
| 1407 buildCounterVisibility++; | 1407 buildCounterVisibility++; |
| 1408 if (buildCounterVisibility < 3) { | 1408 if (buildCounterVisibility < 3) { |
| 1409 unittest.expect(o.kind, unittest.equals('foo')); | 1409 unittest.expect(o.kind, unittest.equals('foo')); |
| 1410 checkUnnamed166(o.links); | 1410 checkUnnamed169(o.links); |
| 1411 unittest.expect(o.visibility, unittest.equals('foo')); | 1411 unittest.expect(o.visibility, unittest.equals('foo')); |
| 1412 } | 1412 } |
| 1413 buildCounterVisibility--; | 1413 buildCounterVisibility--; |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 | 1416 |
| 1417 main() { | 1417 main() { |
| 1418 unittest.group("obj-schema-AclItems", () { | 1418 unittest.group("obj-schema-AclItems", () { |
| 1419 unittest.test("to-json--from-json", () { | 1419 unittest.test("to-json--from-json", () { |
| 1420 var o = buildAclItems(); | 1420 var o = buildAclItems(); |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1762 | 1762 |
| 1763 var mock = new common_test.HttpServerMock(); | 1763 var mock = new common_test.HttpServerMock(); |
| 1764 api.AclResourceApi res = new api.OrkutApi(mock).acl; | 1764 api.AclResourceApi res = new api.OrkutApi(mock).acl; |
| 1765 var arg_activityId = "foo"; | 1765 var arg_activityId = "foo"; |
| 1766 var arg_userId = "foo"; | 1766 var arg_userId = "foo"; |
| 1767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1768 var path = (req.url).path; | 1768 var path = (req.url).path; |
| 1769 var pathOffset = 0; | 1769 var pathOffset = 0; |
| 1770 var index; | 1770 var index; |
| 1771 var subPart; | 1771 var subPart; |
| 1772 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 1772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1773 pathOffset += 10; | 1773 pathOffset += 1; |
| 1774 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 1775 pathOffset += 9; |
| 1774 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 1776 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 1775 pathOffset += 11; | 1777 pathOffset += 11; |
| 1776 index = path.indexOf("/acl/", pathOffset); | 1778 index = path.indexOf("/acl/", pathOffset); |
| 1777 unittest.expect(index >= 0, unittest.isTrue); | 1779 unittest.expect(index >= 0, unittest.isTrue); |
| 1778 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1780 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1779 pathOffset = index; | 1781 pathOffset = index; |
| 1780 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 1782 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 1781 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/acl/")); | 1783 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/acl/")); |
| 1782 pathOffset += 5; | 1784 pathOffset += 5; |
| 1783 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1785 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 unittest.test("method--delete", () { | 1820 unittest.test("method--delete", () { |
| 1819 | 1821 |
| 1820 var mock = new common_test.HttpServerMock(); | 1822 var mock = new common_test.HttpServerMock(); |
| 1821 api.ActivitiesResourceApi res = new api.OrkutApi(mock).activities; | 1823 api.ActivitiesResourceApi res = new api.OrkutApi(mock).activities; |
| 1822 var arg_activityId = "foo"; | 1824 var arg_activityId = "foo"; |
| 1823 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1825 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1824 var path = (req.url).path; | 1826 var path = (req.url).path; |
| 1825 var pathOffset = 0; | 1827 var pathOffset = 0; |
| 1826 var index; | 1828 var index; |
| 1827 var subPart; | 1829 var subPart; |
| 1828 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 1830 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1829 pathOffset += 10; | 1831 pathOffset += 1; |
| 1832 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 1833 pathOffset += 9; |
| 1830 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 1834 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 1831 pathOffset += 11; | 1835 pathOffset += 11; |
| 1832 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1836 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 1833 pathOffset = path.length; | 1837 pathOffset = path.length; |
| 1834 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 1838 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 1835 | 1839 |
| 1836 var query = (req.url).query; | 1840 var query = (req.url).query; |
| 1837 var queryOffset = 0; | 1841 var queryOffset = 0; |
| 1838 var queryMap = {}; | 1842 var queryMap = {}; |
| 1839 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1843 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1867 var arg_userId = "foo"; | 1871 var arg_userId = "foo"; |
| 1868 var arg_collection = "foo"; | 1872 var arg_collection = "foo"; |
| 1869 var arg_hl = "foo"; | 1873 var arg_hl = "foo"; |
| 1870 var arg_maxResults = 42; | 1874 var arg_maxResults = 42; |
| 1871 var arg_pageToken = "foo"; | 1875 var arg_pageToken = "foo"; |
| 1872 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1876 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1873 var path = (req.url).path; | 1877 var path = (req.url).path; |
| 1874 var pathOffset = 0; | 1878 var pathOffset = 0; |
| 1875 var index; | 1879 var index; |
| 1876 var subPart; | 1880 var subPart; |
| 1877 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 1881 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1878 pathOffset += 10; | 1882 pathOffset += 1; |
| 1883 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 1884 pathOffset += 9; |
| 1879 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 1885 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 1880 pathOffset += 7; | 1886 pathOffset += 7; |
| 1881 index = path.indexOf("/activities/", pathOffset); | 1887 index = path.indexOf("/activities/", pathOffset); |
| 1882 unittest.expect(index >= 0, unittest.isTrue); | 1888 unittest.expect(index >= 0, unittest.isTrue); |
| 1883 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1889 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1884 pathOffset = index; | 1890 pathOffset = index; |
| 1885 unittest.expect(subPart, unittest.equals("$arg_userId")); | 1891 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 1886 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/activities/")); | 1892 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/activities/")); |
| 1887 pathOffset += 12; | 1893 pathOffset += 12; |
| 1888 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1894 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1928 unittest.test("method--get", () { | 1934 unittest.test("method--get", () { |
| 1929 | 1935 |
| 1930 var mock = new common_test.HttpServerMock(); | 1936 var mock = new common_test.HttpServerMock(); |
| 1931 api.ActivityVisibilityResourceApi res = new api.OrkutApi(mock).activityVis
ibility; | 1937 api.ActivityVisibilityResourceApi res = new api.OrkutApi(mock).activityVis
ibility; |
| 1932 var arg_activityId = "foo"; | 1938 var arg_activityId = "foo"; |
| 1933 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1939 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1934 var path = (req.url).path; | 1940 var path = (req.url).path; |
| 1935 var pathOffset = 0; | 1941 var pathOffset = 0; |
| 1936 var index; | 1942 var index; |
| 1937 var subPart; | 1943 var subPart; |
| 1938 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 1944 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1939 pathOffset += 10; | 1945 pathOffset += 1; |
| 1946 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 1947 pathOffset += 9; |
| 1940 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 1948 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 1941 pathOffset += 11; | 1949 pathOffset += 11; |
| 1942 index = path.indexOf("/visibility", pathOffset); | 1950 index = path.indexOf("/visibility", pathOffset); |
| 1943 unittest.expect(index >= 0, unittest.isTrue); | 1951 unittest.expect(index >= 0, unittest.isTrue); |
| 1944 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1952 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1945 pathOffset = index; | 1953 pathOffset = index; |
| 1946 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 1954 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 1947 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/visibility")); | 1955 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/visibility")); |
| 1948 pathOffset += 11; | 1956 pathOffset += 11; |
| 1949 | 1957 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1983 var arg_request = buildVisibility(); | 1991 var arg_request = buildVisibility(); |
| 1984 var arg_activityId = "foo"; | 1992 var arg_activityId = "foo"; |
| 1985 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1993 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1986 var obj = new api.Visibility.fromJson(json); | 1994 var obj = new api.Visibility.fromJson(json); |
| 1987 checkVisibility(obj); | 1995 checkVisibility(obj); |
| 1988 | 1996 |
| 1989 var path = (req.url).path; | 1997 var path = (req.url).path; |
| 1990 var pathOffset = 0; | 1998 var pathOffset = 0; |
| 1991 var index; | 1999 var index; |
| 1992 var subPart; | 2000 var subPart; |
| 1993 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2001 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1994 pathOffset += 10; | 2002 pathOffset += 1; |
| 2003 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2004 pathOffset += 9; |
| 1995 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 2005 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 1996 pathOffset += 11; | 2006 pathOffset += 11; |
| 1997 index = path.indexOf("/visibility", pathOffset); | 2007 index = path.indexOf("/visibility", pathOffset); |
| 1998 unittest.expect(index >= 0, unittest.isTrue); | 2008 unittest.expect(index >= 0, unittest.isTrue); |
| 1999 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2009 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2000 pathOffset = index; | 2010 pathOffset = index; |
| 2001 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 2011 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 2002 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/visibility")); | 2012 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/visibility")); |
| 2003 pathOffset += 11; | 2013 pathOffset += 11; |
| 2004 | 2014 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2038 var arg_request = buildVisibility(); | 2048 var arg_request = buildVisibility(); |
| 2039 var arg_activityId = "foo"; | 2049 var arg_activityId = "foo"; |
| 2040 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2050 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2041 var obj = new api.Visibility.fromJson(json); | 2051 var obj = new api.Visibility.fromJson(json); |
| 2042 checkVisibility(obj); | 2052 checkVisibility(obj); |
| 2043 | 2053 |
| 2044 var path = (req.url).path; | 2054 var path = (req.url).path; |
| 2045 var pathOffset = 0; | 2055 var pathOffset = 0; |
| 2046 var index; | 2056 var index; |
| 2047 var subPart; | 2057 var subPart; |
| 2048 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2058 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2049 pathOffset += 10; | 2059 pathOffset += 1; |
| 2060 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2061 pathOffset += 9; |
| 2050 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 2062 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 2051 pathOffset += 11; | 2063 pathOffset += 11; |
| 2052 index = path.indexOf("/visibility", pathOffset); | 2064 index = path.indexOf("/visibility", pathOffset); |
| 2053 unittest.expect(index >= 0, unittest.isTrue); | 2065 unittest.expect(index >= 0, unittest.isTrue); |
| 2054 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2066 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2055 pathOffset = index; | 2067 pathOffset = index; |
| 2056 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 2068 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 2057 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/visibility")); | 2069 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/visibility")); |
| 2058 pathOffset += 11; | 2070 pathOffset += 11; |
| 2059 | 2071 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2094 | 2106 |
| 2095 var mock = new common_test.HttpServerMock(); | 2107 var mock = new common_test.HttpServerMock(); |
| 2096 api.BadgesResourceApi res = new api.OrkutApi(mock).badges; | 2108 api.BadgesResourceApi res = new api.OrkutApi(mock).badges; |
| 2097 var arg_userId = "foo"; | 2109 var arg_userId = "foo"; |
| 2098 var arg_badgeId = "foo"; | 2110 var arg_badgeId = "foo"; |
| 2099 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2111 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2100 var path = (req.url).path; | 2112 var path = (req.url).path; |
| 2101 var pathOffset = 0; | 2113 var pathOffset = 0; |
| 2102 var index; | 2114 var index; |
| 2103 var subPart; | 2115 var subPart; |
| 2104 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2116 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2105 pathOffset += 10; | 2117 pathOffset += 1; |
| 2118 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2119 pathOffset += 9; |
| 2106 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 2120 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2107 pathOffset += 7; | 2121 pathOffset += 7; |
| 2108 index = path.indexOf("/badges/", pathOffset); | 2122 index = path.indexOf("/badges/", pathOffset); |
| 2109 unittest.expect(index >= 0, unittest.isTrue); | 2123 unittest.expect(index >= 0, unittest.isTrue); |
| 2110 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2124 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2111 pathOffset = index; | 2125 pathOffset = index; |
| 2112 unittest.expect(subPart, unittest.equals("$arg_userId")); | 2126 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2113 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/badges/")); | 2127 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/badges/")); |
| 2114 pathOffset += 8; | 2128 pathOffset += 8; |
| 2115 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2129 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2148 unittest.test("method--list", () { | 2162 unittest.test("method--list", () { |
| 2149 | 2163 |
| 2150 var mock = new common_test.HttpServerMock(); | 2164 var mock = new common_test.HttpServerMock(); |
| 2151 api.BadgesResourceApi res = new api.OrkutApi(mock).badges; | 2165 api.BadgesResourceApi res = new api.OrkutApi(mock).badges; |
| 2152 var arg_userId = "foo"; | 2166 var arg_userId = "foo"; |
| 2153 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2154 var path = (req.url).path; | 2168 var path = (req.url).path; |
| 2155 var pathOffset = 0; | 2169 var pathOffset = 0; |
| 2156 var index; | 2170 var index; |
| 2157 var subPart; | 2171 var subPart; |
| 2158 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2159 pathOffset += 10; | 2173 pathOffset += 1; |
| 2174 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2175 pathOffset += 9; |
| 2160 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 2176 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2161 pathOffset += 7; | 2177 pathOffset += 7; |
| 2162 index = path.indexOf("/badges", pathOffset); | 2178 index = path.indexOf("/badges", pathOffset); |
| 2163 unittest.expect(index >= 0, unittest.isTrue); | 2179 unittest.expect(index >= 0, unittest.isTrue); |
| 2164 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2180 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2165 pathOffset = index; | 2181 pathOffset = index; |
| 2166 unittest.expect(subPart, unittest.equals("$arg_userId")); | 2182 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2167 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/badges")); | 2183 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/badges")); |
| 2168 pathOffset += 7; | 2184 pathOffset += 7; |
| 2169 | 2185 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2203 unittest.test("method--delete", () { | 2219 unittest.test("method--delete", () { |
| 2204 | 2220 |
| 2205 var mock = new common_test.HttpServerMock(); | 2221 var mock = new common_test.HttpServerMock(); |
| 2206 api.CommentsResourceApi res = new api.OrkutApi(mock).comments; | 2222 api.CommentsResourceApi res = new api.OrkutApi(mock).comments; |
| 2207 var arg_commentId = "foo"; | 2223 var arg_commentId = "foo"; |
| 2208 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2224 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2209 var path = (req.url).path; | 2225 var path = (req.url).path; |
| 2210 var pathOffset = 0; | 2226 var pathOffset = 0; |
| 2211 var index; | 2227 var index; |
| 2212 var subPart; | 2228 var subPart; |
| 2213 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2229 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2214 pathOffset += 10; | 2230 pathOffset += 1; |
| 2231 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2232 pathOffset += 9; |
| 2215 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("comments/")); | 2233 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("comments/")); |
| 2216 pathOffset += 9; | 2234 pathOffset += 9; |
| 2217 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2235 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2218 pathOffset = path.length; | 2236 pathOffset = path.length; |
| 2219 unittest.expect(subPart, unittest.equals("$arg_commentId")); | 2237 unittest.expect(subPart, unittest.equals("$arg_commentId")); |
| 2220 | 2238 |
| 2221 var query = (req.url).query; | 2239 var query = (req.url).query; |
| 2222 var queryOffset = 0; | 2240 var queryOffset = 0; |
| 2223 var queryMap = {}; | 2241 var queryMap = {}; |
| 2224 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2242 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2249 | 2267 |
| 2250 var mock = new common_test.HttpServerMock(); | 2268 var mock = new common_test.HttpServerMock(); |
| 2251 api.CommentsResourceApi res = new api.OrkutApi(mock).comments; | 2269 api.CommentsResourceApi res = new api.OrkutApi(mock).comments; |
| 2252 var arg_commentId = "foo"; | 2270 var arg_commentId = "foo"; |
| 2253 var arg_hl = "foo"; | 2271 var arg_hl = "foo"; |
| 2254 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2272 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2255 var path = (req.url).path; | 2273 var path = (req.url).path; |
| 2256 var pathOffset = 0; | 2274 var pathOffset = 0; |
| 2257 var index; | 2275 var index; |
| 2258 var subPart; | 2276 var subPart; |
| 2259 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2277 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2260 pathOffset += 10; | 2278 pathOffset += 1; |
| 2279 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2280 pathOffset += 9; |
| 2261 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("comments/")); | 2281 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("comments/")); |
| 2262 pathOffset += 9; | 2282 pathOffset += 9; |
| 2263 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2283 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2264 pathOffset = path.length; | 2284 pathOffset = path.length; |
| 2265 unittest.expect(subPart, unittest.equals("$arg_commentId")); | 2285 unittest.expect(subPart, unittest.equals("$arg_commentId")); |
| 2266 | 2286 |
| 2267 var query = (req.url).query; | 2287 var query = (req.url).query; |
| 2268 var queryOffset = 0; | 2288 var queryOffset = 0; |
| 2269 var queryMap = {}; | 2289 var queryMap = {}; |
| 2270 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2290 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2301 var arg_request = buildComment(); | 2321 var arg_request = buildComment(); |
| 2302 var arg_activityId = "foo"; | 2322 var arg_activityId = "foo"; |
| 2303 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2323 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2304 var obj = new api.Comment.fromJson(json); | 2324 var obj = new api.Comment.fromJson(json); |
| 2305 checkComment(obj); | 2325 checkComment(obj); |
| 2306 | 2326 |
| 2307 var path = (req.url).path; | 2327 var path = (req.url).path; |
| 2308 var pathOffset = 0; | 2328 var pathOffset = 0; |
| 2309 var index; | 2329 var index; |
| 2310 var subPart; | 2330 var subPart; |
| 2311 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2331 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2312 pathOffset += 10; | 2332 pathOffset += 1; |
| 2333 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2334 pathOffset += 9; |
| 2313 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 2335 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 2314 pathOffset += 11; | 2336 pathOffset += 11; |
| 2315 index = path.indexOf("/comments", pathOffset); | 2337 index = path.indexOf("/comments", pathOffset); |
| 2316 unittest.expect(index >= 0, unittest.isTrue); | 2338 unittest.expect(index >= 0, unittest.isTrue); |
| 2317 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2339 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2318 pathOffset = index; | 2340 pathOffset = index; |
| 2319 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 2341 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 2320 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); | 2342 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); |
| 2321 pathOffset += 9; | 2343 pathOffset += 9; |
| 2322 | 2344 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2356 var arg_activityId = "foo"; | 2378 var arg_activityId = "foo"; |
| 2357 var arg_hl = "foo"; | 2379 var arg_hl = "foo"; |
| 2358 var arg_maxResults = 42; | 2380 var arg_maxResults = 42; |
| 2359 var arg_orderBy = "foo"; | 2381 var arg_orderBy = "foo"; |
| 2360 var arg_pageToken = "foo"; | 2382 var arg_pageToken = "foo"; |
| 2361 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2383 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2362 var path = (req.url).path; | 2384 var path = (req.url).path; |
| 2363 var pathOffset = 0; | 2385 var pathOffset = 0; |
| 2364 var index; | 2386 var index; |
| 2365 var subPart; | 2387 var subPart; |
| 2366 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2388 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2367 pathOffset += 10; | 2389 pathOffset += 1; |
| 2390 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2391 pathOffset += 9; |
| 2368 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 2392 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 2369 pathOffset += 11; | 2393 pathOffset += 11; |
| 2370 index = path.indexOf("/comments", pathOffset); | 2394 index = path.indexOf("/comments", pathOffset); |
| 2371 unittest.expect(index >= 0, unittest.isTrue); | 2395 unittest.expect(index >= 0, unittest.isTrue); |
| 2372 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2396 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2373 pathOffset = index; | 2397 pathOffset = index; |
| 2374 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 2398 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 2375 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); | 2399 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); |
| 2376 pathOffset += 9; | 2400 pathOffset += 9; |
| 2377 | 2401 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2416 | 2440 |
| 2417 var mock = new common_test.HttpServerMock(); | 2441 var mock = new common_test.HttpServerMock(); |
| 2418 api.CommunitiesResourceApi res = new api.OrkutApi(mock).communities; | 2442 api.CommunitiesResourceApi res = new api.OrkutApi(mock).communities; |
| 2419 var arg_communityId = 42; | 2443 var arg_communityId = 42; |
| 2420 var arg_hl = "foo"; | 2444 var arg_hl = "foo"; |
| 2421 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2445 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2422 var path = (req.url).path; | 2446 var path = (req.url).path; |
| 2423 var pathOffset = 0; | 2447 var pathOffset = 0; |
| 2424 var index; | 2448 var index; |
| 2425 var subPart; | 2449 var subPart; |
| 2426 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2450 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2427 pathOffset += 10; | 2451 pathOffset += 1; |
| 2452 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2453 pathOffset += 9; |
| 2428 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2454 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2429 pathOffset += 12; | 2455 pathOffset += 12; |
| 2430 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2456 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2431 pathOffset = path.length; | 2457 pathOffset = path.length; |
| 2432 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2458 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2433 | 2459 |
| 2434 var query = (req.url).query; | 2460 var query = (req.url).query; |
| 2435 var queryOffset = 0; | 2461 var queryOffset = 0; |
| 2436 var queryMap = {}; | 2462 var queryMap = {}; |
| 2437 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2463 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2467 api.CommunitiesResourceApi res = new api.OrkutApi(mock).communities; | 2493 api.CommunitiesResourceApi res = new api.OrkutApi(mock).communities; |
| 2468 var arg_userId = "foo"; | 2494 var arg_userId = "foo"; |
| 2469 var arg_hl = "foo"; | 2495 var arg_hl = "foo"; |
| 2470 var arg_maxResults = 42; | 2496 var arg_maxResults = 42; |
| 2471 var arg_orderBy = "foo"; | 2497 var arg_orderBy = "foo"; |
| 2472 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2498 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2473 var path = (req.url).path; | 2499 var path = (req.url).path; |
| 2474 var pathOffset = 0; | 2500 var pathOffset = 0; |
| 2475 var index; | 2501 var index; |
| 2476 var subPart; | 2502 var subPart; |
| 2477 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2503 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2478 pathOffset += 10; | 2504 pathOffset += 1; |
| 2505 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2506 pathOffset += 9; |
| 2479 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 2507 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2480 pathOffset += 7; | 2508 pathOffset += 7; |
| 2481 index = path.indexOf("/communities", pathOffset); | 2509 index = path.indexOf("/communities", pathOffset); |
| 2482 unittest.expect(index >= 0, unittest.isTrue); | 2510 unittest.expect(index >= 0, unittest.isTrue); |
| 2483 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2511 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2484 pathOffset = index; | 2512 pathOffset = index; |
| 2485 unittest.expect(subPart, unittest.equals("$arg_userId")); | 2513 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2486 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/communities")); | 2514 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/communities")); |
| 2487 pathOffset += 12; | 2515 pathOffset += 12; |
| 2488 | 2516 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2526 | 2554 |
| 2527 var mock = new common_test.HttpServerMock(); | 2555 var mock = new common_test.HttpServerMock(); |
| 2528 api.CommunityFollowResourceApi res = new api.OrkutApi(mock).communityFollo
w; | 2556 api.CommunityFollowResourceApi res = new api.OrkutApi(mock).communityFollo
w; |
| 2529 var arg_communityId = 42; | 2557 var arg_communityId = 42; |
| 2530 var arg_userId = "foo"; | 2558 var arg_userId = "foo"; |
| 2531 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2532 var path = (req.url).path; | 2560 var path = (req.url).path; |
| 2533 var pathOffset = 0; | 2561 var pathOffset = 0; |
| 2534 var index; | 2562 var index; |
| 2535 var subPart; | 2563 var subPart; |
| 2536 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2537 pathOffset += 10; | 2565 pathOffset += 1; |
| 2566 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2567 pathOffset += 9; |
| 2538 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2568 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2539 pathOffset += 12; | 2569 pathOffset += 12; |
| 2540 index = path.indexOf("/followers/", pathOffset); | 2570 index = path.indexOf("/followers/", pathOffset); |
| 2541 unittest.expect(index >= 0, unittest.isTrue); | 2571 unittest.expect(index >= 0, unittest.isTrue); |
| 2542 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2572 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2543 pathOffset = index; | 2573 pathOffset = index; |
| 2544 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2574 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2545 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/followers/")); | 2575 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/followers/")); |
| 2546 pathOffset += 11; | 2576 pathOffset += 11; |
| 2547 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2577 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2579 | 2609 |
| 2580 var mock = new common_test.HttpServerMock(); | 2610 var mock = new common_test.HttpServerMock(); |
| 2581 api.CommunityFollowResourceApi res = new api.OrkutApi(mock).communityFollo
w; | 2611 api.CommunityFollowResourceApi res = new api.OrkutApi(mock).communityFollo
w; |
| 2582 var arg_communityId = 42; | 2612 var arg_communityId = 42; |
| 2583 var arg_userId = "foo"; | 2613 var arg_userId = "foo"; |
| 2584 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2614 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2585 var path = (req.url).path; | 2615 var path = (req.url).path; |
| 2586 var pathOffset = 0; | 2616 var pathOffset = 0; |
| 2587 var index; | 2617 var index; |
| 2588 var subPart; | 2618 var subPart; |
| 2589 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2619 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2590 pathOffset += 10; | 2620 pathOffset += 1; |
| 2621 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2622 pathOffset += 9; |
| 2591 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2623 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2592 pathOffset += 12; | 2624 pathOffset += 12; |
| 2593 index = path.indexOf("/followers/", pathOffset); | 2625 index = path.indexOf("/followers/", pathOffset); |
| 2594 unittest.expect(index >= 0, unittest.isTrue); | 2626 unittest.expect(index >= 0, unittest.isTrue); |
| 2595 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2627 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2596 pathOffset = index; | 2628 pathOffset = index; |
| 2597 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2629 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2598 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/followers/")); | 2630 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/followers/")); |
| 2599 pathOffset += 11; | 2631 pathOffset += 11; |
| 2600 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2632 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2638 | 2670 |
| 2639 var mock = new common_test.HttpServerMock(); | 2671 var mock = new common_test.HttpServerMock(); |
| 2640 api.CommunityMembersResourceApi res = new api.OrkutApi(mock).communityMemb
ers; | 2672 api.CommunityMembersResourceApi res = new api.OrkutApi(mock).communityMemb
ers; |
| 2641 var arg_communityId = 42; | 2673 var arg_communityId = 42; |
| 2642 var arg_userId = "foo"; | 2674 var arg_userId = "foo"; |
| 2643 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2675 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2644 var path = (req.url).path; | 2676 var path = (req.url).path; |
| 2645 var pathOffset = 0; | 2677 var pathOffset = 0; |
| 2646 var index; | 2678 var index; |
| 2647 var subPart; | 2679 var subPart; |
| 2648 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2680 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2649 pathOffset += 10; | 2681 pathOffset += 1; |
| 2682 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2683 pathOffset += 9; |
| 2650 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2684 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2651 pathOffset += 12; | 2685 pathOffset += 12; |
| 2652 index = path.indexOf("/members/", pathOffset); | 2686 index = path.indexOf("/members/", pathOffset); |
| 2653 unittest.expect(index >= 0, unittest.isTrue); | 2687 unittest.expect(index >= 0, unittest.isTrue); |
| 2654 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2688 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2655 pathOffset = index; | 2689 pathOffset = index; |
| 2656 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2690 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2657 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/members/")); | 2691 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/members/")); |
| 2658 pathOffset += 9; | 2692 pathOffset += 9; |
| 2659 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2693 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2692 var mock = new common_test.HttpServerMock(); | 2726 var mock = new common_test.HttpServerMock(); |
| 2693 api.CommunityMembersResourceApi res = new api.OrkutApi(mock).communityMemb
ers; | 2727 api.CommunityMembersResourceApi res = new api.OrkutApi(mock).communityMemb
ers; |
| 2694 var arg_communityId = 42; | 2728 var arg_communityId = 42; |
| 2695 var arg_userId = "foo"; | 2729 var arg_userId = "foo"; |
| 2696 var arg_hl = "foo"; | 2730 var arg_hl = "foo"; |
| 2697 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2731 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2698 var path = (req.url).path; | 2732 var path = (req.url).path; |
| 2699 var pathOffset = 0; | 2733 var pathOffset = 0; |
| 2700 var index; | 2734 var index; |
| 2701 var subPart; | 2735 var subPart; |
| 2702 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2736 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2703 pathOffset += 10; | 2737 pathOffset += 1; |
| 2738 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2739 pathOffset += 9; |
| 2704 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2740 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2705 pathOffset += 12; | 2741 pathOffset += 12; |
| 2706 index = path.indexOf("/members/", pathOffset); | 2742 index = path.indexOf("/members/", pathOffset); |
| 2707 unittest.expect(index >= 0, unittest.isTrue); | 2743 unittest.expect(index >= 0, unittest.isTrue); |
| 2708 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2744 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2709 pathOffset = index; | 2745 pathOffset = index; |
| 2710 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2746 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2711 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/members/")); | 2747 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/members/")); |
| 2712 pathOffset += 9; | 2748 pathOffset += 9; |
| 2713 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2749 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2748 | 2784 |
| 2749 var mock = new common_test.HttpServerMock(); | 2785 var mock = new common_test.HttpServerMock(); |
| 2750 api.CommunityMembersResourceApi res = new api.OrkutApi(mock).communityMemb
ers; | 2786 api.CommunityMembersResourceApi res = new api.OrkutApi(mock).communityMemb
ers; |
| 2751 var arg_communityId = 42; | 2787 var arg_communityId = 42; |
| 2752 var arg_userId = "foo"; | 2788 var arg_userId = "foo"; |
| 2753 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2789 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2754 var path = (req.url).path; | 2790 var path = (req.url).path; |
| 2755 var pathOffset = 0; | 2791 var pathOffset = 0; |
| 2756 var index; | 2792 var index; |
| 2757 var subPart; | 2793 var subPart; |
| 2758 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2794 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2759 pathOffset += 10; | 2795 pathOffset += 1; |
| 2796 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2797 pathOffset += 9; |
| 2760 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2798 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2761 pathOffset += 12; | 2799 pathOffset += 12; |
| 2762 index = path.indexOf("/members/", pathOffset); | 2800 index = path.indexOf("/members/", pathOffset); |
| 2763 unittest.expect(index >= 0, unittest.isTrue); | 2801 unittest.expect(index >= 0, unittest.isTrue); |
| 2764 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2802 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2765 pathOffset = index; | 2803 pathOffset = index; |
| 2766 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2804 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2767 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/members/")); | 2805 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/members/")); |
| 2768 pathOffset += 9; | 2806 pathOffset += 9; |
| 2769 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2807 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2806 var arg_communityId = 42; | 2844 var arg_communityId = 42; |
| 2807 var arg_friendsOnly = true; | 2845 var arg_friendsOnly = true; |
| 2808 var arg_hl = "foo"; | 2846 var arg_hl = "foo"; |
| 2809 var arg_maxResults = 42; | 2847 var arg_maxResults = 42; |
| 2810 var arg_pageToken = "foo"; | 2848 var arg_pageToken = "foo"; |
| 2811 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2849 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2812 var path = (req.url).path; | 2850 var path = (req.url).path; |
| 2813 var pathOffset = 0; | 2851 var pathOffset = 0; |
| 2814 var index; | 2852 var index; |
| 2815 var subPart; | 2853 var subPart; |
| 2816 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2854 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2817 pathOffset += 10; | 2855 pathOffset += 1; |
| 2856 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2857 pathOffset += 9; |
| 2818 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2858 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2819 pathOffset += 12; | 2859 pathOffset += 12; |
| 2820 index = path.indexOf("/members", pathOffset); | 2860 index = path.indexOf("/members", pathOffset); |
| 2821 unittest.expect(index >= 0, unittest.isTrue); | 2861 unittest.expect(index >= 0, unittest.isTrue); |
| 2822 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2862 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2823 pathOffset = index; | 2863 pathOffset = index; |
| 2824 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2864 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2825 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/members")); | 2865 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/members")); |
| 2826 pathOffset += 8; | 2866 pathOffset += 8; |
| 2827 | 2867 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2867 var mock = new common_test.HttpServerMock(); | 2907 var mock = new common_test.HttpServerMock(); |
| 2868 api.CommunityMessagesResourceApi res = new api.OrkutApi(mock).communityMes
sages; | 2908 api.CommunityMessagesResourceApi res = new api.OrkutApi(mock).communityMes
sages; |
| 2869 var arg_communityId = 42; | 2909 var arg_communityId = 42; |
| 2870 var arg_topicId = "foo"; | 2910 var arg_topicId = "foo"; |
| 2871 var arg_messageId = "foo"; | 2911 var arg_messageId = "foo"; |
| 2872 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2873 var path = (req.url).path; | 2913 var path = (req.url).path; |
| 2874 var pathOffset = 0; | 2914 var pathOffset = 0; |
| 2875 var index; | 2915 var index; |
| 2876 var subPart; | 2916 var subPart; |
| 2877 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2917 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2878 pathOffset += 10; | 2918 pathOffset += 1; |
| 2919 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2920 pathOffset += 9; |
| 2879 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2921 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2880 pathOffset += 12; | 2922 pathOffset += 12; |
| 2881 index = path.indexOf("/topics/", pathOffset); | 2923 index = path.indexOf("/topics/", pathOffset); |
| 2882 unittest.expect(index >= 0, unittest.isTrue); | 2924 unittest.expect(index >= 0, unittest.isTrue); |
| 2883 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2925 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2884 pathOffset = index; | 2926 pathOffset = index; |
| 2885 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2927 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2886 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); | 2928 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); |
| 2887 pathOffset += 8; | 2929 pathOffset += 8; |
| 2888 index = path.indexOf("/messages/", pathOffset); | 2930 index = path.indexOf("/messages/", pathOffset); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2931 var arg_communityId = 42; | 2973 var arg_communityId = 42; |
| 2932 var arg_topicId = "foo"; | 2974 var arg_topicId = "foo"; |
| 2933 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2975 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2934 var obj = new api.CommunityMessage.fromJson(json); | 2976 var obj = new api.CommunityMessage.fromJson(json); |
| 2935 checkCommunityMessage(obj); | 2977 checkCommunityMessage(obj); |
| 2936 | 2978 |
| 2937 var path = (req.url).path; | 2979 var path = (req.url).path; |
| 2938 var pathOffset = 0; | 2980 var pathOffset = 0; |
| 2939 var index; | 2981 var index; |
| 2940 var subPart; | 2982 var subPart; |
| 2941 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 2983 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2942 pathOffset += 10; | 2984 pathOffset += 1; |
| 2985 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 2986 pathOffset += 9; |
| 2943 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 2987 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 2944 pathOffset += 12; | 2988 pathOffset += 12; |
| 2945 index = path.indexOf("/topics/", pathOffset); | 2989 index = path.indexOf("/topics/", pathOffset); |
| 2946 unittest.expect(index >= 0, unittest.isTrue); | 2990 unittest.expect(index >= 0, unittest.isTrue); |
| 2947 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2991 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2948 pathOffset = index; | 2992 pathOffset = index; |
| 2949 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 2993 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 2950 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); | 2994 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); |
| 2951 pathOffset += 8; | 2995 pathOffset += 8; |
| 2952 index = path.indexOf("/messages", pathOffset); | 2996 index = path.indexOf("/messages", pathOffset); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2993 var arg_communityId = 42; | 3037 var arg_communityId = 42; |
| 2994 var arg_topicId = "foo"; | 3038 var arg_topicId = "foo"; |
| 2995 var arg_hl = "foo"; | 3039 var arg_hl = "foo"; |
| 2996 var arg_maxResults = 42; | 3040 var arg_maxResults = 42; |
| 2997 var arg_pageToken = "foo"; | 3041 var arg_pageToken = "foo"; |
| 2998 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3042 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2999 var path = (req.url).path; | 3043 var path = (req.url).path; |
| 3000 var pathOffset = 0; | 3044 var pathOffset = 0; |
| 3001 var index; | 3045 var index; |
| 3002 var subPart; | 3046 var subPart; |
| 3003 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3047 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3004 pathOffset += 10; | 3048 pathOffset += 1; |
| 3049 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3050 pathOffset += 9; |
| 3005 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3051 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3006 pathOffset += 12; | 3052 pathOffset += 12; |
| 3007 index = path.indexOf("/topics/", pathOffset); | 3053 index = path.indexOf("/topics/", pathOffset); |
| 3008 unittest.expect(index >= 0, unittest.isTrue); | 3054 unittest.expect(index >= 0, unittest.isTrue); |
| 3009 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3055 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3010 pathOffset = index; | 3056 pathOffset = index; |
| 3011 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3057 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3012 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); | 3058 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); |
| 3013 pathOffset += 8; | 3059 pathOffset += 8; |
| 3014 index = path.indexOf("/messages", pathOffset); | 3060 index = path.indexOf("/messages", pathOffset); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3063 var arg_communityId = 42; | 3109 var arg_communityId = 42; |
| 3064 var arg_pollId = "foo"; | 3110 var arg_pollId = "foo"; |
| 3065 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3111 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3066 var obj = new api.CommunityPollComment.fromJson(json); | 3112 var obj = new api.CommunityPollComment.fromJson(json); |
| 3067 checkCommunityPollComment(obj); | 3113 checkCommunityPollComment(obj); |
| 3068 | 3114 |
| 3069 var path = (req.url).path; | 3115 var path = (req.url).path; |
| 3070 var pathOffset = 0; | 3116 var pathOffset = 0; |
| 3071 var index; | 3117 var index; |
| 3072 var subPart; | 3118 var subPart; |
| 3073 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3119 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3074 pathOffset += 10; | 3120 pathOffset += 1; |
| 3121 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3122 pathOffset += 9; |
| 3075 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3123 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3076 pathOffset += 12; | 3124 pathOffset += 12; |
| 3077 index = path.indexOf("/polls/", pathOffset); | 3125 index = path.indexOf("/polls/", pathOffset); |
| 3078 unittest.expect(index >= 0, unittest.isTrue); | 3126 unittest.expect(index >= 0, unittest.isTrue); |
| 3079 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3127 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3080 pathOffset = index; | 3128 pathOffset = index; |
| 3081 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3129 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3082 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/polls/")); | 3130 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/polls/")); |
| 3083 pathOffset += 7; | 3131 pathOffset += 7; |
| 3084 index = path.indexOf("/comments", pathOffset); | 3132 index = path.indexOf("/comments", pathOffset); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3125 var arg_communityId = 42; | 3173 var arg_communityId = 42; |
| 3126 var arg_pollId = "foo"; | 3174 var arg_pollId = "foo"; |
| 3127 var arg_hl = "foo"; | 3175 var arg_hl = "foo"; |
| 3128 var arg_maxResults = 42; | 3176 var arg_maxResults = 42; |
| 3129 var arg_pageToken = "foo"; | 3177 var arg_pageToken = "foo"; |
| 3130 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3178 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3131 var path = (req.url).path; | 3179 var path = (req.url).path; |
| 3132 var pathOffset = 0; | 3180 var pathOffset = 0; |
| 3133 var index; | 3181 var index; |
| 3134 var subPart; | 3182 var subPart; |
| 3135 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3183 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3136 pathOffset += 10; | 3184 pathOffset += 1; |
| 3185 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3186 pathOffset += 9; |
| 3137 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3187 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3138 pathOffset += 12; | 3188 pathOffset += 12; |
| 3139 index = path.indexOf("/polls/", pathOffset); | 3189 index = path.indexOf("/polls/", pathOffset); |
| 3140 unittest.expect(index >= 0, unittest.isTrue); | 3190 unittest.expect(index >= 0, unittest.isTrue); |
| 3141 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3191 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3142 pathOffset = index; | 3192 pathOffset = index; |
| 3143 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3193 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3144 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/polls/")); | 3194 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/polls/")); |
| 3145 pathOffset += 7; | 3195 pathOffset += 7; |
| 3146 index = path.indexOf("/comments", pathOffset); | 3196 index = path.indexOf("/comments", pathOffset); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3195 var arg_communityId = 42; | 3245 var arg_communityId = 42; |
| 3196 var arg_pollId = "foo"; | 3246 var arg_pollId = "foo"; |
| 3197 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3247 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3198 var obj = new api.CommunityPollVote.fromJson(json); | 3248 var obj = new api.CommunityPollVote.fromJson(json); |
| 3199 checkCommunityPollVote(obj); | 3249 checkCommunityPollVote(obj); |
| 3200 | 3250 |
| 3201 var path = (req.url).path; | 3251 var path = (req.url).path; |
| 3202 var pathOffset = 0; | 3252 var pathOffset = 0; |
| 3203 var index; | 3253 var index; |
| 3204 var subPart; | 3254 var subPart; |
| 3205 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3255 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3206 pathOffset += 10; | 3256 pathOffset += 1; |
| 3257 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3258 pathOffset += 9; |
| 3207 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3259 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3208 pathOffset += 12; | 3260 pathOffset += 12; |
| 3209 index = path.indexOf("/polls/", pathOffset); | 3261 index = path.indexOf("/polls/", pathOffset); |
| 3210 unittest.expect(index >= 0, unittest.isTrue); | 3262 unittest.expect(index >= 0, unittest.isTrue); |
| 3211 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3263 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3212 pathOffset = index; | 3264 pathOffset = index; |
| 3213 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3265 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3214 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/polls/")); | 3266 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/polls/")); |
| 3215 pathOffset += 7; | 3267 pathOffset += 7; |
| 3216 index = path.indexOf("/votes", pathOffset); | 3268 index = path.indexOf("/votes", pathOffset); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3259 var mock = new common_test.HttpServerMock(); | 3311 var mock = new common_test.HttpServerMock(); |
| 3260 api.CommunityPollsResourceApi res = new api.OrkutApi(mock).communityPolls; | 3312 api.CommunityPollsResourceApi res = new api.OrkutApi(mock).communityPolls; |
| 3261 var arg_communityId = 42; | 3313 var arg_communityId = 42; |
| 3262 var arg_pollId = "foo"; | 3314 var arg_pollId = "foo"; |
| 3263 var arg_hl = "foo"; | 3315 var arg_hl = "foo"; |
| 3264 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3316 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3265 var path = (req.url).path; | 3317 var path = (req.url).path; |
| 3266 var pathOffset = 0; | 3318 var pathOffset = 0; |
| 3267 var index; | 3319 var index; |
| 3268 var subPart; | 3320 var subPart; |
| 3269 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3321 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3270 pathOffset += 10; | 3322 pathOffset += 1; |
| 3323 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3324 pathOffset += 9; |
| 3271 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3325 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3272 pathOffset += 12; | 3326 pathOffset += 12; |
| 3273 index = path.indexOf("/polls/", pathOffset); | 3327 index = path.indexOf("/polls/", pathOffset); |
| 3274 unittest.expect(index >= 0, unittest.isTrue); | 3328 unittest.expect(index >= 0, unittest.isTrue); |
| 3275 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3329 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3276 pathOffset = index; | 3330 pathOffset = index; |
| 3277 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3331 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3278 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/polls/")); | 3332 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/polls/")); |
| 3279 pathOffset += 7; | 3333 pathOffset += 7; |
| 3280 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3334 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3317 api.CommunityPollsResourceApi res = new api.OrkutApi(mock).communityPolls; | 3371 api.CommunityPollsResourceApi res = new api.OrkutApi(mock).communityPolls; |
| 3318 var arg_communityId = 42; | 3372 var arg_communityId = 42; |
| 3319 var arg_hl = "foo"; | 3373 var arg_hl = "foo"; |
| 3320 var arg_maxResults = 42; | 3374 var arg_maxResults = 42; |
| 3321 var arg_pageToken = "foo"; | 3375 var arg_pageToken = "foo"; |
| 3322 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3376 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3323 var path = (req.url).path; | 3377 var path = (req.url).path; |
| 3324 var pathOffset = 0; | 3378 var pathOffset = 0; |
| 3325 var index; | 3379 var index; |
| 3326 var subPart; | 3380 var subPart; |
| 3327 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3381 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3328 pathOffset += 10; | 3382 pathOffset += 1; |
| 3383 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3384 pathOffset += 9; |
| 3329 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3385 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3330 pathOffset += 12; | 3386 pathOffset += 12; |
| 3331 index = path.indexOf("/polls", pathOffset); | 3387 index = path.indexOf("/polls", pathOffset); |
| 3332 unittest.expect(index >= 0, unittest.isTrue); | 3388 unittest.expect(index >= 0, unittest.isTrue); |
| 3333 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3389 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3334 pathOffset = index; | 3390 pathOffset = index; |
| 3335 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3391 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3336 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/polls")); | 3392 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/polls")); |
| 3337 pathOffset += 6; | 3393 pathOffset += 6; |
| 3338 | 3394 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3376 | 3432 |
| 3377 var mock = new common_test.HttpServerMock(); | 3433 var mock = new common_test.HttpServerMock(); |
| 3378 api.CommunityRelatedResourceApi res = new api.OrkutApi(mock).communityRela
ted; | 3434 api.CommunityRelatedResourceApi res = new api.OrkutApi(mock).communityRela
ted; |
| 3379 var arg_communityId = 42; | 3435 var arg_communityId = 42; |
| 3380 var arg_hl = "foo"; | 3436 var arg_hl = "foo"; |
| 3381 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3437 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3382 var path = (req.url).path; | 3438 var path = (req.url).path; |
| 3383 var pathOffset = 0; | 3439 var pathOffset = 0; |
| 3384 var index; | 3440 var index; |
| 3385 var subPart; | 3441 var subPart; |
| 3386 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3442 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3387 pathOffset += 10; | 3443 pathOffset += 1; |
| 3444 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3445 pathOffset += 9; |
| 3388 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3446 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3389 pathOffset += 12; | 3447 pathOffset += 12; |
| 3390 index = path.indexOf("/related", pathOffset); | 3448 index = path.indexOf("/related", pathOffset); |
| 3391 unittest.expect(index >= 0, unittest.isTrue); | 3449 unittest.expect(index >= 0, unittest.isTrue); |
| 3392 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3450 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3393 pathOffset = index; | 3451 pathOffset = index; |
| 3394 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3452 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3395 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/related")); | 3453 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/related")); |
| 3396 pathOffset += 8; | 3454 pathOffset += 8; |
| 3397 | 3455 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3433 | 3491 |
| 3434 var mock = new common_test.HttpServerMock(); | 3492 var mock = new common_test.HttpServerMock(); |
| 3435 api.CommunityTopicsResourceApi res = new api.OrkutApi(mock).communityTopic
s; | 3493 api.CommunityTopicsResourceApi res = new api.OrkutApi(mock).communityTopic
s; |
| 3436 var arg_communityId = 42; | 3494 var arg_communityId = 42; |
| 3437 var arg_topicId = "foo"; | 3495 var arg_topicId = "foo"; |
| 3438 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3496 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3439 var path = (req.url).path; | 3497 var path = (req.url).path; |
| 3440 var pathOffset = 0; | 3498 var pathOffset = 0; |
| 3441 var index; | 3499 var index; |
| 3442 var subPart; | 3500 var subPart; |
| 3443 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3444 pathOffset += 10; | 3502 pathOffset += 1; |
| 3503 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3504 pathOffset += 9; |
| 3445 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3505 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3446 pathOffset += 12; | 3506 pathOffset += 12; |
| 3447 index = path.indexOf("/topics/", pathOffset); | 3507 index = path.indexOf("/topics/", pathOffset); |
| 3448 unittest.expect(index >= 0, unittest.isTrue); | 3508 unittest.expect(index >= 0, unittest.isTrue); |
| 3449 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3509 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3450 pathOffset = index; | 3510 pathOffset = index; |
| 3451 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3511 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3452 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); | 3512 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); |
| 3453 pathOffset += 8; | 3513 pathOffset += 8; |
| 3454 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3514 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3487 var mock = new common_test.HttpServerMock(); | 3547 var mock = new common_test.HttpServerMock(); |
| 3488 api.CommunityTopicsResourceApi res = new api.OrkutApi(mock).communityTopic
s; | 3548 api.CommunityTopicsResourceApi res = new api.OrkutApi(mock).communityTopic
s; |
| 3489 var arg_communityId = 42; | 3549 var arg_communityId = 42; |
| 3490 var arg_topicId = "foo"; | 3550 var arg_topicId = "foo"; |
| 3491 var arg_hl = "foo"; | 3551 var arg_hl = "foo"; |
| 3492 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3552 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3493 var path = (req.url).path; | 3553 var path = (req.url).path; |
| 3494 var pathOffset = 0; | 3554 var pathOffset = 0; |
| 3495 var index; | 3555 var index; |
| 3496 var subPart; | 3556 var subPart; |
| 3497 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3557 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3498 pathOffset += 10; | 3558 pathOffset += 1; |
| 3559 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3560 pathOffset += 9; |
| 3499 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3561 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3500 pathOffset += 12; | 3562 pathOffset += 12; |
| 3501 index = path.indexOf("/topics/", pathOffset); | 3563 index = path.indexOf("/topics/", pathOffset); |
| 3502 unittest.expect(index >= 0, unittest.isTrue); | 3564 unittest.expect(index >= 0, unittest.isTrue); |
| 3503 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3565 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3504 pathOffset = index; | 3566 pathOffset = index; |
| 3505 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3567 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3506 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); | 3568 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/topics/")); |
| 3507 pathOffset += 8; | 3569 pathOffset += 8; |
| 3508 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3570 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3547 var arg_communityId = 42; | 3609 var arg_communityId = 42; |
| 3548 var arg_isShout = true; | 3610 var arg_isShout = true; |
| 3549 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3611 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3550 var obj = new api.CommunityTopic.fromJson(json); | 3612 var obj = new api.CommunityTopic.fromJson(json); |
| 3551 checkCommunityTopic(obj); | 3613 checkCommunityTopic(obj); |
| 3552 | 3614 |
| 3553 var path = (req.url).path; | 3615 var path = (req.url).path; |
| 3554 var pathOffset = 0; | 3616 var pathOffset = 0; |
| 3555 var index; | 3617 var index; |
| 3556 var subPart; | 3618 var subPart; |
| 3557 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3619 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3558 pathOffset += 10; | 3620 pathOffset += 1; |
| 3621 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3622 pathOffset += 9; |
| 3559 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3623 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3560 pathOffset += 12; | 3624 pathOffset += 12; |
| 3561 index = path.indexOf("/topics", pathOffset); | 3625 index = path.indexOf("/topics", pathOffset); |
| 3562 unittest.expect(index >= 0, unittest.isTrue); | 3626 unittest.expect(index >= 0, unittest.isTrue); |
| 3563 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3627 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3564 pathOffset = index; | 3628 pathOffset = index; |
| 3565 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3629 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3566 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/topics")); | 3630 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/topics")); |
| 3567 pathOffset += 7; | 3631 pathOffset += 7; |
| 3568 | 3632 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3602 api.CommunityTopicsResourceApi res = new api.OrkutApi(mock).communityTopic
s; | 3666 api.CommunityTopicsResourceApi res = new api.OrkutApi(mock).communityTopic
s; |
| 3603 var arg_communityId = 42; | 3667 var arg_communityId = 42; |
| 3604 var arg_hl = "foo"; | 3668 var arg_hl = "foo"; |
| 3605 var arg_maxResults = 42; | 3669 var arg_maxResults = 42; |
| 3606 var arg_pageToken = "foo"; | 3670 var arg_pageToken = "foo"; |
| 3607 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3671 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3608 var path = (req.url).path; | 3672 var path = (req.url).path; |
| 3609 var pathOffset = 0; | 3673 var pathOffset = 0; |
| 3610 var index; | 3674 var index; |
| 3611 var subPart; | 3675 var subPart; |
| 3612 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3676 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3613 pathOffset += 10; | 3677 pathOffset += 1; |
| 3678 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3679 pathOffset += 9; |
| 3614 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); | 3680 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("communities/")); |
| 3615 pathOffset += 12; | 3681 pathOffset += 12; |
| 3616 index = path.indexOf("/topics", pathOffset); | 3682 index = path.indexOf("/topics", pathOffset); |
| 3617 unittest.expect(index >= 0, unittest.isTrue); | 3683 unittest.expect(index >= 0, unittest.isTrue); |
| 3618 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3684 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3619 pathOffset = index; | 3685 pathOffset = index; |
| 3620 unittest.expect(subPart, unittest.equals("$arg_communityId")); | 3686 unittest.expect(subPart, unittest.equals("$arg_communityId")); |
| 3621 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/topics")); | 3687 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/topics")); |
| 3622 pathOffset += 7; | 3688 pathOffset += 7; |
| 3623 | 3689 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3660 unittest.test("method--list", () { | 3726 unittest.test("method--list", () { |
| 3661 | 3727 |
| 3662 var mock = new common_test.HttpServerMock(); | 3728 var mock = new common_test.HttpServerMock(); |
| 3663 api.CountersResourceApi res = new api.OrkutApi(mock).counters; | 3729 api.CountersResourceApi res = new api.OrkutApi(mock).counters; |
| 3664 var arg_userId = "foo"; | 3730 var arg_userId = "foo"; |
| 3665 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3731 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3666 var path = (req.url).path; | 3732 var path = (req.url).path; |
| 3667 var pathOffset = 0; | 3733 var pathOffset = 0; |
| 3668 var index; | 3734 var index; |
| 3669 var subPart; | 3735 var subPart; |
| 3670 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3736 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3671 pathOffset += 10; | 3737 pathOffset += 1; |
| 3738 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3739 pathOffset += 9; |
| 3672 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 3740 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 3673 pathOffset += 7; | 3741 pathOffset += 7; |
| 3674 index = path.indexOf("/counters", pathOffset); | 3742 index = path.indexOf("/counters", pathOffset); |
| 3675 unittest.expect(index >= 0, unittest.isTrue); | 3743 unittest.expect(index >= 0, unittest.isTrue); |
| 3676 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3744 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3677 pathOffset = index; | 3745 pathOffset = index; |
| 3678 unittest.expect(subPart, unittest.equals("$arg_userId")); | 3746 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 3679 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/counters")); | 3747 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/counters")); |
| 3680 pathOffset += 9; | 3748 pathOffset += 9; |
| 3681 | 3749 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3718 api.ScrapsResourceApi res = new api.OrkutApi(mock).scraps; | 3786 api.ScrapsResourceApi res = new api.OrkutApi(mock).scraps; |
| 3719 var arg_request = buildActivity(); | 3787 var arg_request = buildActivity(); |
| 3720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3788 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3721 var obj = new api.Activity.fromJson(json); | 3789 var obj = new api.Activity.fromJson(json); |
| 3722 checkActivity(obj); | 3790 checkActivity(obj); |
| 3723 | 3791 |
| 3724 var path = (req.url).path; | 3792 var path = (req.url).path; |
| 3725 var pathOffset = 0; | 3793 var pathOffset = 0; |
| 3726 var index; | 3794 var index; |
| 3727 var subPart; | 3795 var subPart; |
| 3728 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/orkut/v2/")); | 3796 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3729 pathOffset += 10; | 3797 pathOffset += 1; |
| 3798 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("orkut/v2/")); |
| 3799 pathOffset += 9; |
| 3730 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("activities/scraps")); | 3800 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("activities/scraps")); |
| 3731 pathOffset += 17; | 3801 pathOffset += 17; |
| 3732 | 3802 |
| 3733 var query = (req.url).query; | 3803 var query = (req.url).query; |
| 3734 var queryOffset = 0; | 3804 var queryOffset = 0; |
| 3735 var queryMap = {}; | 3805 var queryMap = {}; |
| 3736 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3806 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3737 parseBool(n) { | 3807 parseBool(n) { |
| 3738 if (n == "true") return true; | 3808 if (n == "true") return true; |
| 3739 if (n == "false") return false; | 3809 if (n == "false") return false; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3757 res.insert(arg_request).then(unittest.expectAsync(((api.Activity response)
{ | 3827 res.insert(arg_request).then(unittest.expectAsync(((api.Activity response)
{ |
| 3758 checkActivity(response); | 3828 checkActivity(response); |
| 3759 }))); | 3829 }))); |
| 3760 }); | 3830 }); |
| 3761 | 3831 |
| 3762 }); | 3832 }); |
| 3763 | 3833 |
| 3764 | 3834 |
| 3765 } | 3835 } |
| 3766 | 3836 |
| OLD | NEW |