| OLD | NEW |
| 1 library googleapis.drive.v2.test; | 1 library googleapis.drive.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; |
| 11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
| 13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
| 14 | 14 |
| 15 import 'package:googleapis/drive/v2.dart' as api; | 15 import 'package:googleapis/drive/v2.dart' as api; |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 buildUnnamed394() { | 19 buildUnnamed419() { |
| 20 var o = new core.List<core.String>(); | 20 var o = new core.List<core.String>(); |
| 21 o.add("foo"); | 21 o.add("foo"); |
| 22 o.add("foo"); | 22 o.add("foo"); |
| 23 return o; | 23 return o; |
| 24 } | 24 } |
| 25 | 25 |
| 26 checkUnnamed394(core.List<core.String> o) { | 26 checkUnnamed419(core.List<core.String> o) { |
| 27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
| 28 unittest.expect(o[0], unittest.equals('foo')); | 28 unittest.expect(o[0], unittest.equals('foo')); |
| 29 unittest.expect(o[1], unittest.equals('foo')); | 29 unittest.expect(o[1], unittest.equals('foo')); |
| 30 } | 30 } |
| 31 | 31 |
| 32 core.int buildCounterAboutAdditionalRoleInfoRoleSets = 0; | 32 core.int buildCounterAboutAdditionalRoleInfoRoleSets = 0; |
| 33 buildAboutAdditionalRoleInfoRoleSets() { | 33 buildAboutAdditionalRoleInfoRoleSets() { |
| 34 var o = new api.AboutAdditionalRoleInfoRoleSets(); | 34 var o = new api.AboutAdditionalRoleInfoRoleSets(); |
| 35 buildCounterAboutAdditionalRoleInfoRoleSets++; | 35 buildCounterAboutAdditionalRoleInfoRoleSets++; |
| 36 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { | 36 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { |
| 37 o.additionalRoles = buildUnnamed394(); | 37 o.additionalRoles = buildUnnamed419(); |
| 38 o.primaryRole = "foo"; | 38 o.primaryRole = "foo"; |
| 39 } | 39 } |
| 40 buildCounterAboutAdditionalRoleInfoRoleSets--; | 40 buildCounterAboutAdditionalRoleInfoRoleSets--; |
| 41 return o; | 41 return o; |
| 42 } | 42 } |
| 43 | 43 |
| 44 checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { | 44 checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { |
| 45 buildCounterAboutAdditionalRoleInfoRoleSets++; | 45 buildCounterAboutAdditionalRoleInfoRoleSets++; |
| 46 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { | 46 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { |
| 47 checkUnnamed394(o.additionalRoles); | 47 checkUnnamed419(o.additionalRoles); |
| 48 unittest.expect(o.primaryRole, unittest.equals('foo')); | 48 unittest.expect(o.primaryRole, unittest.equals('foo')); |
| 49 } | 49 } |
| 50 buildCounterAboutAdditionalRoleInfoRoleSets--; | 50 buildCounterAboutAdditionalRoleInfoRoleSets--; |
| 51 } | 51 } |
| 52 | 52 |
| 53 buildUnnamed395() { | 53 buildUnnamed420() { |
| 54 var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); | 54 var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); |
| 55 o.add(buildAboutAdditionalRoleInfoRoleSets()); | 55 o.add(buildAboutAdditionalRoleInfoRoleSets()); |
| 56 o.add(buildAboutAdditionalRoleInfoRoleSets()); | 56 o.add(buildAboutAdditionalRoleInfoRoleSets()); |
| 57 return o; | 57 return o; |
| 58 } | 58 } |
| 59 | 59 |
| 60 checkUnnamed395(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { | 60 checkUnnamed420(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { |
| 61 unittest.expect(o, unittest.hasLength(2)); | 61 unittest.expect(o, unittest.hasLength(2)); |
| 62 checkAboutAdditionalRoleInfoRoleSets(o[0]); | 62 checkAboutAdditionalRoleInfoRoleSets(o[0]); |
| 63 checkAboutAdditionalRoleInfoRoleSets(o[1]); | 63 checkAboutAdditionalRoleInfoRoleSets(o[1]); |
| 64 } | 64 } |
| 65 | 65 |
| 66 core.int buildCounterAboutAdditionalRoleInfo = 0; | 66 core.int buildCounterAboutAdditionalRoleInfo = 0; |
| 67 buildAboutAdditionalRoleInfo() { | 67 buildAboutAdditionalRoleInfo() { |
| 68 var o = new api.AboutAdditionalRoleInfo(); | 68 var o = new api.AboutAdditionalRoleInfo(); |
| 69 buildCounterAboutAdditionalRoleInfo++; | 69 buildCounterAboutAdditionalRoleInfo++; |
| 70 if (buildCounterAboutAdditionalRoleInfo < 3) { | 70 if (buildCounterAboutAdditionalRoleInfo < 3) { |
| 71 o.roleSets = buildUnnamed395(); | 71 o.roleSets = buildUnnamed420(); |
| 72 o.type = "foo"; | 72 o.type = "foo"; |
| 73 } | 73 } |
| 74 buildCounterAboutAdditionalRoleInfo--; | 74 buildCounterAboutAdditionalRoleInfo--; |
| 75 return o; | 75 return o; |
| 76 } | 76 } |
| 77 | 77 |
| 78 checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { | 78 checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { |
| 79 buildCounterAboutAdditionalRoleInfo++; | 79 buildCounterAboutAdditionalRoleInfo++; |
| 80 if (buildCounterAboutAdditionalRoleInfo < 3) { | 80 if (buildCounterAboutAdditionalRoleInfo < 3) { |
| 81 checkUnnamed395(o.roleSets); | 81 checkUnnamed420(o.roleSets); |
| 82 unittest.expect(o.type, unittest.equals('foo')); | 82 unittest.expect(o.type, unittest.equals('foo')); |
| 83 } | 83 } |
| 84 buildCounterAboutAdditionalRoleInfo--; | 84 buildCounterAboutAdditionalRoleInfo--; |
| 85 } | 85 } |
| 86 | 86 |
| 87 buildUnnamed396() { | 87 buildUnnamed421() { |
| 88 var o = new core.List<api.AboutAdditionalRoleInfo>(); | 88 var o = new core.List<api.AboutAdditionalRoleInfo>(); |
| 89 o.add(buildAboutAdditionalRoleInfo()); | 89 o.add(buildAboutAdditionalRoleInfo()); |
| 90 o.add(buildAboutAdditionalRoleInfo()); | 90 o.add(buildAboutAdditionalRoleInfo()); |
| 91 return o; | 91 return o; |
| 92 } | 92 } |
| 93 | 93 |
| 94 checkUnnamed396(core.List<api.AboutAdditionalRoleInfo> o) { | 94 checkUnnamed421(core.List<api.AboutAdditionalRoleInfo> o) { |
| 95 unittest.expect(o, unittest.hasLength(2)); | 95 unittest.expect(o, unittest.hasLength(2)); |
| 96 checkAboutAdditionalRoleInfo(o[0]); | 96 checkAboutAdditionalRoleInfo(o[0]); |
| 97 checkAboutAdditionalRoleInfo(o[1]); | 97 checkAboutAdditionalRoleInfo(o[1]); |
| 98 } | 98 } |
| 99 | 99 |
| 100 buildUnnamed397() { | 100 buildUnnamed422() { |
| 101 var o = new core.List<core.String>(); | 101 var o = new core.List<core.String>(); |
| 102 o.add("foo"); | 102 o.add("foo"); |
| 103 o.add("foo"); | 103 o.add("foo"); |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkUnnamed397(core.List<core.String> o) { | 107 checkUnnamed422(core.List<core.String> o) { |
| 108 unittest.expect(o, unittest.hasLength(2)); | 108 unittest.expect(o, unittest.hasLength(2)); |
| 109 unittest.expect(o[0], unittest.equals('foo')); | 109 unittest.expect(o[0], unittest.equals('foo')); |
| 110 unittest.expect(o[1], unittest.equals('foo')); | 110 unittest.expect(o[1], unittest.equals('foo')); |
| 111 } | 111 } |
| 112 | 112 |
| 113 core.int buildCounterAboutExportFormats = 0; | 113 core.int buildCounterAboutExportFormats = 0; |
| 114 buildAboutExportFormats() { | 114 buildAboutExportFormats() { |
| 115 var o = new api.AboutExportFormats(); | 115 var o = new api.AboutExportFormats(); |
| 116 buildCounterAboutExportFormats++; | 116 buildCounterAboutExportFormats++; |
| 117 if (buildCounterAboutExportFormats < 3) { | 117 if (buildCounterAboutExportFormats < 3) { |
| 118 o.source = "foo"; | 118 o.source = "foo"; |
| 119 o.targets = buildUnnamed397(); | 119 o.targets = buildUnnamed422(); |
| 120 } | 120 } |
| 121 buildCounterAboutExportFormats--; | 121 buildCounterAboutExportFormats--; |
| 122 return o; | 122 return o; |
| 123 } | 123 } |
| 124 | 124 |
| 125 checkAboutExportFormats(api.AboutExportFormats o) { | 125 checkAboutExportFormats(api.AboutExportFormats o) { |
| 126 buildCounterAboutExportFormats++; | 126 buildCounterAboutExportFormats++; |
| 127 if (buildCounterAboutExportFormats < 3) { | 127 if (buildCounterAboutExportFormats < 3) { |
| 128 unittest.expect(o.source, unittest.equals('foo')); | 128 unittest.expect(o.source, unittest.equals('foo')); |
| 129 checkUnnamed397(o.targets); | 129 checkUnnamed422(o.targets); |
| 130 } | 130 } |
| 131 buildCounterAboutExportFormats--; | 131 buildCounterAboutExportFormats--; |
| 132 } | 132 } |
| 133 | 133 |
| 134 buildUnnamed398() { | 134 buildUnnamed423() { |
| 135 var o = new core.List<api.AboutExportFormats>(); | 135 var o = new core.List<api.AboutExportFormats>(); |
| 136 o.add(buildAboutExportFormats()); | 136 o.add(buildAboutExportFormats()); |
| 137 o.add(buildAboutExportFormats()); | 137 o.add(buildAboutExportFormats()); |
| 138 return o; | 138 return o; |
| 139 } | 139 } |
| 140 | 140 |
| 141 checkUnnamed398(core.List<api.AboutExportFormats> o) { | 141 checkUnnamed423(core.List<api.AboutExportFormats> o) { |
| 142 unittest.expect(o, unittest.hasLength(2)); | 142 unittest.expect(o, unittest.hasLength(2)); |
| 143 checkAboutExportFormats(o[0]); | 143 checkAboutExportFormats(o[0]); |
| 144 checkAboutExportFormats(o[1]); | 144 checkAboutExportFormats(o[1]); |
| 145 } | 145 } |
| 146 | 146 |
| 147 core.int buildCounterAboutFeatures = 0; | 147 core.int buildCounterAboutFeatures = 0; |
| 148 buildAboutFeatures() { | 148 buildAboutFeatures() { |
| 149 var o = new api.AboutFeatures(); | 149 var o = new api.AboutFeatures(); |
| 150 buildCounterAboutFeatures++; | 150 buildCounterAboutFeatures++; |
| 151 if (buildCounterAboutFeatures < 3) { | 151 if (buildCounterAboutFeatures < 3) { |
| 152 o.featureName = "foo"; | 152 o.featureName = "foo"; |
| 153 o.featureRate = 42.0; | 153 o.featureRate = 42.0; |
| 154 } | 154 } |
| 155 buildCounterAboutFeatures--; | 155 buildCounterAboutFeatures--; |
| 156 return o; | 156 return o; |
| 157 } | 157 } |
| 158 | 158 |
| 159 checkAboutFeatures(api.AboutFeatures o) { | 159 checkAboutFeatures(api.AboutFeatures o) { |
| 160 buildCounterAboutFeatures++; | 160 buildCounterAboutFeatures++; |
| 161 if (buildCounterAboutFeatures < 3) { | 161 if (buildCounterAboutFeatures < 3) { |
| 162 unittest.expect(o.featureName, unittest.equals('foo')); | 162 unittest.expect(o.featureName, unittest.equals('foo')); |
| 163 unittest.expect(o.featureRate, unittest.equals(42.0)); | 163 unittest.expect(o.featureRate, unittest.equals(42.0)); |
| 164 } | 164 } |
| 165 buildCounterAboutFeatures--; | 165 buildCounterAboutFeatures--; |
| 166 } | 166 } |
| 167 | 167 |
| 168 buildUnnamed399() { | 168 buildUnnamed424() { |
| 169 var o = new core.List<api.AboutFeatures>(); | 169 var o = new core.List<api.AboutFeatures>(); |
| 170 o.add(buildAboutFeatures()); | 170 o.add(buildAboutFeatures()); |
| 171 o.add(buildAboutFeatures()); | 171 o.add(buildAboutFeatures()); |
| 172 return o; | 172 return o; |
| 173 } | 173 } |
| 174 | 174 |
| 175 checkUnnamed399(core.List<api.AboutFeatures> o) { | 175 checkUnnamed424(core.List<api.AboutFeatures> o) { |
| 176 unittest.expect(o, unittest.hasLength(2)); | 176 unittest.expect(o, unittest.hasLength(2)); |
| 177 checkAboutFeatures(o[0]); | 177 checkAboutFeatures(o[0]); |
| 178 checkAboutFeatures(o[1]); | 178 checkAboutFeatures(o[1]); |
| 179 } | 179 } |
| 180 | 180 |
| 181 buildUnnamed400() { | 181 buildUnnamed425() { |
| 182 var o = new core.List<core.String>(); | 182 var o = new core.List<core.String>(); |
| 183 o.add("foo"); | 183 o.add("foo"); |
| 184 o.add("foo"); | 184 o.add("foo"); |
| 185 return o; | 185 return o; |
| 186 } | 186 } |
| 187 | 187 |
| 188 checkUnnamed400(core.List<core.String> o) { | 188 checkUnnamed425(core.List<core.String> o) { |
| 189 unittest.expect(o, unittest.hasLength(2)); | 189 unittest.expect(o, unittest.hasLength(2)); |
| 190 unittest.expect(o[0], unittest.equals('foo')); | 190 unittest.expect(o[0], unittest.equals('foo')); |
| 191 unittest.expect(o[1], unittest.equals('foo')); | 191 unittest.expect(o[1], unittest.equals('foo')); |
| 192 } | 192 } |
| 193 | 193 |
| 194 core.int buildCounterAboutImportFormats = 0; | 194 core.int buildCounterAboutImportFormats = 0; |
| 195 buildAboutImportFormats() { | 195 buildAboutImportFormats() { |
| 196 var o = new api.AboutImportFormats(); | 196 var o = new api.AboutImportFormats(); |
| 197 buildCounterAboutImportFormats++; | 197 buildCounterAboutImportFormats++; |
| 198 if (buildCounterAboutImportFormats < 3) { | 198 if (buildCounterAboutImportFormats < 3) { |
| 199 o.source = "foo"; | 199 o.source = "foo"; |
| 200 o.targets = buildUnnamed400(); | 200 o.targets = buildUnnamed425(); |
| 201 } | 201 } |
| 202 buildCounterAboutImportFormats--; | 202 buildCounterAboutImportFormats--; |
| 203 return o; | 203 return o; |
| 204 } | 204 } |
| 205 | 205 |
| 206 checkAboutImportFormats(api.AboutImportFormats o) { | 206 checkAboutImportFormats(api.AboutImportFormats o) { |
| 207 buildCounterAboutImportFormats++; | 207 buildCounterAboutImportFormats++; |
| 208 if (buildCounterAboutImportFormats < 3) { | 208 if (buildCounterAboutImportFormats < 3) { |
| 209 unittest.expect(o.source, unittest.equals('foo')); | 209 unittest.expect(o.source, unittest.equals('foo')); |
| 210 checkUnnamed400(o.targets); | 210 checkUnnamed425(o.targets); |
| 211 } | 211 } |
| 212 buildCounterAboutImportFormats--; | 212 buildCounterAboutImportFormats--; |
| 213 } | 213 } |
| 214 | 214 |
| 215 buildUnnamed401() { | 215 buildUnnamed426() { |
| 216 var o = new core.List<api.AboutImportFormats>(); | 216 var o = new core.List<api.AboutImportFormats>(); |
| 217 o.add(buildAboutImportFormats()); | 217 o.add(buildAboutImportFormats()); |
| 218 o.add(buildAboutImportFormats()); | 218 o.add(buildAboutImportFormats()); |
| 219 return o; | 219 return o; |
| 220 } | 220 } |
| 221 | 221 |
| 222 checkUnnamed401(core.List<api.AboutImportFormats> o) { | 222 checkUnnamed426(core.List<api.AboutImportFormats> o) { |
| 223 unittest.expect(o, unittest.hasLength(2)); | 223 unittest.expect(o, unittest.hasLength(2)); |
| 224 checkAboutImportFormats(o[0]); | 224 checkAboutImportFormats(o[0]); |
| 225 checkAboutImportFormats(o[1]); | 225 checkAboutImportFormats(o[1]); |
| 226 } | 226 } |
| 227 | 227 |
| 228 core.int buildCounterAboutMaxUploadSizes = 0; | 228 core.int buildCounterAboutMaxUploadSizes = 0; |
| 229 buildAboutMaxUploadSizes() { | 229 buildAboutMaxUploadSizes() { |
| 230 var o = new api.AboutMaxUploadSizes(); | 230 var o = new api.AboutMaxUploadSizes(); |
| 231 buildCounterAboutMaxUploadSizes++; | 231 buildCounterAboutMaxUploadSizes++; |
| 232 if (buildCounterAboutMaxUploadSizes < 3) { | 232 if (buildCounterAboutMaxUploadSizes < 3) { |
| 233 o.size = "foo"; | 233 o.size = "foo"; |
| 234 o.type = "foo"; | 234 o.type = "foo"; |
| 235 } | 235 } |
| 236 buildCounterAboutMaxUploadSizes--; | 236 buildCounterAboutMaxUploadSizes--; |
| 237 return o; | 237 return o; |
| 238 } | 238 } |
| 239 | 239 |
| 240 checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) { | 240 checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) { |
| 241 buildCounterAboutMaxUploadSizes++; | 241 buildCounterAboutMaxUploadSizes++; |
| 242 if (buildCounterAboutMaxUploadSizes < 3) { | 242 if (buildCounterAboutMaxUploadSizes < 3) { |
| 243 unittest.expect(o.size, unittest.equals('foo')); | 243 unittest.expect(o.size, unittest.equals('foo')); |
| 244 unittest.expect(o.type, unittest.equals('foo')); | 244 unittest.expect(o.type, unittest.equals('foo')); |
| 245 } | 245 } |
| 246 buildCounterAboutMaxUploadSizes--; | 246 buildCounterAboutMaxUploadSizes--; |
| 247 } | 247 } |
| 248 | 248 |
| 249 buildUnnamed402() { | 249 buildUnnamed427() { |
| 250 var o = new core.List<api.AboutMaxUploadSizes>(); | 250 var o = new core.List<api.AboutMaxUploadSizes>(); |
| 251 o.add(buildAboutMaxUploadSizes()); | 251 o.add(buildAboutMaxUploadSizes()); |
| 252 o.add(buildAboutMaxUploadSizes()); | 252 o.add(buildAboutMaxUploadSizes()); |
| 253 return o; | 253 return o; |
| 254 } | 254 } |
| 255 | 255 |
| 256 checkUnnamed402(core.List<api.AboutMaxUploadSizes> o) { | 256 checkUnnamed427(core.List<api.AboutMaxUploadSizes> o) { |
| 257 unittest.expect(o, unittest.hasLength(2)); | 257 unittest.expect(o, unittest.hasLength(2)); |
| 258 checkAboutMaxUploadSizes(o[0]); | 258 checkAboutMaxUploadSizes(o[0]); |
| 259 checkAboutMaxUploadSizes(o[1]); | 259 checkAboutMaxUploadSizes(o[1]); |
| 260 } | 260 } |
| 261 | 261 |
| 262 core.int buildCounterAboutQuotaBytesByService = 0; | 262 core.int buildCounterAboutQuotaBytesByService = 0; |
| 263 buildAboutQuotaBytesByService() { | 263 buildAboutQuotaBytesByService() { |
| 264 var o = new api.AboutQuotaBytesByService(); | 264 var o = new api.AboutQuotaBytesByService(); |
| 265 buildCounterAboutQuotaBytesByService++; | 265 buildCounterAboutQuotaBytesByService++; |
| 266 if (buildCounterAboutQuotaBytesByService < 3) { | 266 if (buildCounterAboutQuotaBytesByService < 3) { |
| 267 o.bytesUsed = "foo"; | 267 o.bytesUsed = "foo"; |
| 268 o.serviceName = "foo"; | 268 o.serviceName = "foo"; |
| 269 } | 269 } |
| 270 buildCounterAboutQuotaBytesByService--; | 270 buildCounterAboutQuotaBytesByService--; |
| 271 return o; | 271 return o; |
| 272 } | 272 } |
| 273 | 273 |
| 274 checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) { | 274 checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) { |
| 275 buildCounterAboutQuotaBytesByService++; | 275 buildCounterAboutQuotaBytesByService++; |
| 276 if (buildCounterAboutQuotaBytesByService < 3) { | 276 if (buildCounterAboutQuotaBytesByService < 3) { |
| 277 unittest.expect(o.bytesUsed, unittest.equals('foo')); | 277 unittest.expect(o.bytesUsed, unittest.equals('foo')); |
| 278 unittest.expect(o.serviceName, unittest.equals('foo')); | 278 unittest.expect(o.serviceName, unittest.equals('foo')); |
| 279 } | 279 } |
| 280 buildCounterAboutQuotaBytesByService--; | 280 buildCounterAboutQuotaBytesByService--; |
| 281 } | 281 } |
| 282 | 282 |
| 283 buildUnnamed403() { | 283 buildUnnamed428() { |
| 284 var o = new core.List<api.AboutQuotaBytesByService>(); | 284 var o = new core.List<api.AboutQuotaBytesByService>(); |
| 285 o.add(buildAboutQuotaBytesByService()); | 285 o.add(buildAboutQuotaBytesByService()); |
| 286 o.add(buildAboutQuotaBytesByService()); | 286 o.add(buildAboutQuotaBytesByService()); |
| 287 return o; | 287 return o; |
| 288 } | 288 } |
| 289 | 289 |
| 290 checkUnnamed403(core.List<api.AboutQuotaBytesByService> o) { | 290 checkUnnamed428(core.List<api.AboutQuotaBytesByService> o) { |
| 291 unittest.expect(o, unittest.hasLength(2)); | 291 unittest.expect(o, unittest.hasLength(2)); |
| 292 checkAboutQuotaBytesByService(o[0]); | 292 checkAboutQuotaBytesByService(o[0]); |
| 293 checkAboutQuotaBytesByService(o[1]); | 293 checkAboutQuotaBytesByService(o[1]); |
| 294 } | 294 } |
| 295 | 295 |
| 296 core.int buildCounterAbout = 0; | 296 core.int buildCounterAbout = 0; |
| 297 buildAbout() { | 297 buildAbout() { |
| 298 var o = new api.About(); | 298 var o = new api.About(); |
| 299 buildCounterAbout++; | 299 buildCounterAbout++; |
| 300 if (buildCounterAbout < 3) { | 300 if (buildCounterAbout < 3) { |
| 301 o.additionalRoleInfo = buildUnnamed396(); | 301 o.additionalRoleInfo = buildUnnamed421(); |
| 302 o.domainSharingPolicy = "foo"; | 302 o.domainSharingPolicy = "foo"; |
| 303 o.etag = "foo"; | 303 o.etag = "foo"; |
| 304 o.exportFormats = buildUnnamed398(); | 304 o.exportFormats = buildUnnamed423(); |
| 305 o.features = buildUnnamed399(); | 305 o.features = buildUnnamed424(); |
| 306 o.importFormats = buildUnnamed401(); | 306 o.importFormats = buildUnnamed426(); |
| 307 o.isCurrentAppInstalled = true; | 307 o.isCurrentAppInstalled = true; |
| 308 o.kind = "foo"; | 308 o.kind = "foo"; |
| 309 o.languageCode = "foo"; | 309 o.languageCode = "foo"; |
| 310 o.largestChangeId = "foo"; | 310 o.largestChangeId = "foo"; |
| 311 o.maxUploadSizes = buildUnnamed402(); | 311 o.maxUploadSizes = buildUnnamed427(); |
| 312 o.name = "foo"; | 312 o.name = "foo"; |
| 313 o.permissionId = "foo"; | 313 o.permissionId = "foo"; |
| 314 o.quotaBytesByService = buildUnnamed403(); | 314 o.quotaBytesByService = buildUnnamed428(); |
| 315 o.quotaBytesTotal = "foo"; | 315 o.quotaBytesTotal = "foo"; |
| 316 o.quotaBytesUsed = "foo"; | 316 o.quotaBytesUsed = "foo"; |
| 317 o.quotaBytesUsedAggregate = "foo"; | 317 o.quotaBytesUsedAggregate = "foo"; |
| 318 o.quotaBytesUsedInTrash = "foo"; | 318 o.quotaBytesUsedInTrash = "foo"; |
| 319 o.quotaType = "foo"; | 319 o.quotaType = "foo"; |
| 320 o.remainingChangeIds = "foo"; | 320 o.remainingChangeIds = "foo"; |
| 321 o.rootFolderId = "foo"; | 321 o.rootFolderId = "foo"; |
| 322 o.selfLink = "foo"; | 322 o.selfLink = "foo"; |
| 323 o.user = buildUser(); | 323 o.user = buildUser(); |
| 324 } | 324 } |
| 325 buildCounterAbout--; | 325 buildCounterAbout--; |
| 326 return o; | 326 return o; |
| 327 } | 327 } |
| 328 | 328 |
| 329 checkAbout(api.About o) { | 329 checkAbout(api.About o) { |
| 330 buildCounterAbout++; | 330 buildCounterAbout++; |
| 331 if (buildCounterAbout < 3) { | 331 if (buildCounterAbout < 3) { |
| 332 checkUnnamed396(o.additionalRoleInfo); | 332 checkUnnamed421(o.additionalRoleInfo); |
| 333 unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); | 333 unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); |
| 334 unittest.expect(o.etag, unittest.equals('foo')); | 334 unittest.expect(o.etag, unittest.equals('foo')); |
| 335 checkUnnamed398(o.exportFormats); | 335 checkUnnamed423(o.exportFormats); |
| 336 checkUnnamed399(o.features); | 336 checkUnnamed424(o.features); |
| 337 checkUnnamed401(o.importFormats); | 337 checkUnnamed426(o.importFormats); |
| 338 unittest.expect(o.isCurrentAppInstalled, unittest.isTrue); | 338 unittest.expect(o.isCurrentAppInstalled, unittest.isTrue); |
| 339 unittest.expect(o.kind, unittest.equals('foo')); | 339 unittest.expect(o.kind, unittest.equals('foo')); |
| 340 unittest.expect(o.languageCode, unittest.equals('foo')); | 340 unittest.expect(o.languageCode, unittest.equals('foo')); |
| 341 unittest.expect(o.largestChangeId, unittest.equals('foo')); | 341 unittest.expect(o.largestChangeId, unittest.equals('foo')); |
| 342 checkUnnamed402(o.maxUploadSizes); | 342 checkUnnamed427(o.maxUploadSizes); |
| 343 unittest.expect(o.name, unittest.equals('foo')); | 343 unittest.expect(o.name, unittest.equals('foo')); |
| 344 unittest.expect(o.permissionId, unittest.equals('foo')); | 344 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 345 checkUnnamed403(o.quotaBytesByService); | 345 checkUnnamed428(o.quotaBytesByService); |
| 346 unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); | 346 unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); |
| 347 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); | 347 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); |
| 348 unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); | 348 unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); |
| 349 unittest.expect(o.quotaBytesUsedInTrash, unittest.equals('foo')); | 349 unittest.expect(o.quotaBytesUsedInTrash, unittest.equals('foo')); |
| 350 unittest.expect(o.quotaType, unittest.equals('foo')); | 350 unittest.expect(o.quotaType, unittest.equals('foo')); |
| 351 unittest.expect(o.remainingChangeIds, unittest.equals('foo')); | 351 unittest.expect(o.remainingChangeIds, unittest.equals('foo')); |
| 352 unittest.expect(o.rootFolderId, unittest.equals('foo')); | 352 unittest.expect(o.rootFolderId, unittest.equals('foo')); |
| 353 unittest.expect(o.selfLink, unittest.equals('foo')); | 353 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 354 checkUser(o.user); | 354 checkUser(o.user); |
| 355 } | 355 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 372 checkAppIcons(api.AppIcons o) { | 372 checkAppIcons(api.AppIcons o) { |
| 373 buildCounterAppIcons++; | 373 buildCounterAppIcons++; |
| 374 if (buildCounterAppIcons < 3) { | 374 if (buildCounterAppIcons < 3) { |
| 375 unittest.expect(o.category, unittest.equals('foo')); | 375 unittest.expect(o.category, unittest.equals('foo')); |
| 376 unittest.expect(o.iconUrl, unittest.equals('foo')); | 376 unittest.expect(o.iconUrl, unittest.equals('foo')); |
| 377 unittest.expect(o.size, unittest.equals(42)); | 377 unittest.expect(o.size, unittest.equals(42)); |
| 378 } | 378 } |
| 379 buildCounterAppIcons--; | 379 buildCounterAppIcons--; |
| 380 } | 380 } |
| 381 | 381 |
| 382 buildUnnamed404() { | 382 buildUnnamed429() { |
| 383 var o = new core.List<api.AppIcons>(); | 383 var o = new core.List<api.AppIcons>(); |
| 384 o.add(buildAppIcons()); | 384 o.add(buildAppIcons()); |
| 385 o.add(buildAppIcons()); | 385 o.add(buildAppIcons()); |
| 386 return o; | 386 return o; |
| 387 } | 387 } |
| 388 | 388 |
| 389 checkUnnamed404(core.List<api.AppIcons> o) { | 389 checkUnnamed429(core.List<api.AppIcons> o) { |
| 390 unittest.expect(o, unittest.hasLength(2)); | 390 unittest.expect(o, unittest.hasLength(2)); |
| 391 checkAppIcons(o[0]); | 391 checkAppIcons(o[0]); |
| 392 checkAppIcons(o[1]); | 392 checkAppIcons(o[1]); |
| 393 } | 393 } |
| 394 | 394 |
| 395 buildUnnamed405() { | 395 buildUnnamed430() { |
| 396 var o = new core.List<core.String>(); | 396 var o = new core.List<core.String>(); |
| 397 o.add("foo"); | 397 o.add("foo"); |
| 398 o.add("foo"); | 398 o.add("foo"); |
| 399 return o; | 399 return o; |
| 400 } | 400 } |
| 401 | 401 |
| 402 checkUnnamed405(core.List<core.String> o) { | 402 checkUnnamed430(core.List<core.String> o) { |
| 403 unittest.expect(o, unittest.hasLength(2)); | 403 unittest.expect(o, unittest.hasLength(2)); |
| 404 unittest.expect(o[0], unittest.equals('foo')); | 404 unittest.expect(o[0], unittest.equals('foo')); |
| 405 unittest.expect(o[1], unittest.equals('foo')); | 405 unittest.expect(o[1], unittest.equals('foo')); |
| 406 } | 406 } |
| 407 | 407 |
| 408 buildUnnamed406() { | 408 buildUnnamed431() { |
| 409 var o = new core.List<core.String>(); | 409 var o = new core.List<core.String>(); |
| 410 o.add("foo"); | 410 o.add("foo"); |
| 411 o.add("foo"); | 411 o.add("foo"); |
| 412 return o; | 412 return o; |
| 413 } | 413 } |
| 414 | 414 |
| 415 checkUnnamed406(core.List<core.String> o) { | 415 checkUnnamed431(core.List<core.String> o) { |
| 416 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
| 417 unittest.expect(o[0], unittest.equals('foo')); | 417 unittest.expect(o[0], unittest.equals('foo')); |
| 418 unittest.expect(o[1], unittest.equals('foo')); | 418 unittest.expect(o[1], unittest.equals('foo')); |
| 419 } | 419 } |
| 420 | 420 |
| 421 buildUnnamed407() { | 421 buildUnnamed432() { |
| 422 var o = new core.List<core.String>(); | 422 var o = new core.List<core.String>(); |
| 423 o.add("foo"); | 423 o.add("foo"); |
| 424 o.add("foo"); | 424 o.add("foo"); |
| 425 return o; | 425 return o; |
| 426 } | 426 } |
| 427 | 427 |
| 428 checkUnnamed407(core.List<core.String> o) { | 428 checkUnnamed432(core.List<core.String> o) { |
| 429 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
| 430 unittest.expect(o[0], unittest.equals('foo')); | 430 unittest.expect(o[0], unittest.equals('foo')); |
| 431 unittest.expect(o[1], unittest.equals('foo')); | 431 unittest.expect(o[1], unittest.equals('foo')); |
| 432 } | 432 } |
| 433 | 433 |
| 434 buildUnnamed408() { | 434 buildUnnamed433() { |
| 435 var o = new core.List<core.String>(); | 435 var o = new core.List<core.String>(); |
| 436 o.add("foo"); | 436 o.add("foo"); |
| 437 o.add("foo"); | 437 o.add("foo"); |
| 438 return o; | 438 return o; |
| 439 } | 439 } |
| 440 | 440 |
| 441 checkUnnamed408(core.List<core.String> o) { | 441 checkUnnamed433(core.List<core.String> o) { |
| 442 unittest.expect(o, unittest.hasLength(2)); | 442 unittest.expect(o, unittest.hasLength(2)); |
| 443 unittest.expect(o[0], unittest.equals('foo')); | 443 unittest.expect(o[0], unittest.equals('foo')); |
| 444 unittest.expect(o[1], unittest.equals('foo')); | 444 unittest.expect(o[1], unittest.equals('foo')); |
| 445 } | 445 } |
| 446 | 446 |
| 447 core.int buildCounterApp = 0; | 447 core.int buildCounterApp = 0; |
| 448 buildApp() { | 448 buildApp() { |
| 449 var o = new api.App(); | 449 var o = new api.App(); |
| 450 buildCounterApp++; | 450 buildCounterApp++; |
| 451 if (buildCounterApp < 3) { | 451 if (buildCounterApp < 3) { |
| 452 o.authorized = true; | 452 o.authorized = true; |
| 453 o.createInFolderTemplate = "foo"; | 453 o.createInFolderTemplate = "foo"; |
| 454 o.createUrl = "foo"; | 454 o.createUrl = "foo"; |
| 455 o.hasDriveWideScope = true; | 455 o.hasDriveWideScope = true; |
| 456 o.icons = buildUnnamed404(); | 456 o.icons = buildUnnamed429(); |
| 457 o.id = "foo"; | 457 o.id = "foo"; |
| 458 o.installed = true; | 458 o.installed = true; |
| 459 o.kind = "foo"; | 459 o.kind = "foo"; |
| 460 o.longDescription = "foo"; | 460 o.longDescription = "foo"; |
| 461 o.name = "foo"; | 461 o.name = "foo"; |
| 462 o.objectType = "foo"; | 462 o.objectType = "foo"; |
| 463 o.openUrlTemplate = "foo"; | 463 o.openUrlTemplate = "foo"; |
| 464 o.primaryFileExtensions = buildUnnamed405(); | 464 o.primaryFileExtensions = buildUnnamed430(); |
| 465 o.primaryMimeTypes = buildUnnamed406(); | 465 o.primaryMimeTypes = buildUnnamed431(); |
| 466 o.productId = "foo"; | 466 o.productId = "foo"; |
| 467 o.productUrl = "foo"; | 467 o.productUrl = "foo"; |
| 468 o.secondaryFileExtensions = buildUnnamed407(); | 468 o.secondaryFileExtensions = buildUnnamed432(); |
| 469 o.secondaryMimeTypes = buildUnnamed408(); | 469 o.secondaryMimeTypes = buildUnnamed433(); |
| 470 o.shortDescription = "foo"; | 470 o.shortDescription = "foo"; |
| 471 o.supportsCreate = true; | 471 o.supportsCreate = true; |
| 472 o.supportsImport = true; | 472 o.supportsImport = true; |
| 473 o.supportsMultiOpen = true; | 473 o.supportsMultiOpen = true; |
| 474 o.supportsOfflineCreate = true; | 474 o.supportsOfflineCreate = true; |
| 475 o.useByDefault = true; | 475 o.useByDefault = true; |
| 476 } | 476 } |
| 477 buildCounterApp--; | 477 buildCounterApp--; |
| 478 return o; | 478 return o; |
| 479 } | 479 } |
| 480 | 480 |
| 481 checkApp(api.App o) { | 481 checkApp(api.App o) { |
| 482 buildCounterApp++; | 482 buildCounterApp++; |
| 483 if (buildCounterApp < 3) { | 483 if (buildCounterApp < 3) { |
| 484 unittest.expect(o.authorized, unittest.isTrue); | 484 unittest.expect(o.authorized, unittest.isTrue); |
| 485 unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); | 485 unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); |
| 486 unittest.expect(o.createUrl, unittest.equals('foo')); | 486 unittest.expect(o.createUrl, unittest.equals('foo')); |
| 487 unittest.expect(o.hasDriveWideScope, unittest.isTrue); | 487 unittest.expect(o.hasDriveWideScope, unittest.isTrue); |
| 488 checkUnnamed404(o.icons); | 488 checkUnnamed429(o.icons); |
| 489 unittest.expect(o.id, unittest.equals('foo')); | 489 unittest.expect(o.id, unittest.equals('foo')); |
| 490 unittest.expect(o.installed, unittest.isTrue); | 490 unittest.expect(o.installed, unittest.isTrue); |
| 491 unittest.expect(o.kind, unittest.equals('foo')); | 491 unittest.expect(o.kind, unittest.equals('foo')); |
| 492 unittest.expect(o.longDescription, unittest.equals('foo')); | 492 unittest.expect(o.longDescription, unittest.equals('foo')); |
| 493 unittest.expect(o.name, unittest.equals('foo')); | 493 unittest.expect(o.name, unittest.equals('foo')); |
| 494 unittest.expect(o.objectType, unittest.equals('foo')); | 494 unittest.expect(o.objectType, unittest.equals('foo')); |
| 495 unittest.expect(o.openUrlTemplate, unittest.equals('foo')); | 495 unittest.expect(o.openUrlTemplate, unittest.equals('foo')); |
| 496 checkUnnamed405(o.primaryFileExtensions); | 496 checkUnnamed430(o.primaryFileExtensions); |
| 497 checkUnnamed406(o.primaryMimeTypes); | 497 checkUnnamed431(o.primaryMimeTypes); |
| 498 unittest.expect(o.productId, unittest.equals('foo')); | 498 unittest.expect(o.productId, unittest.equals('foo')); |
| 499 unittest.expect(o.productUrl, unittest.equals('foo')); | 499 unittest.expect(o.productUrl, unittest.equals('foo')); |
| 500 checkUnnamed407(o.secondaryFileExtensions); | 500 checkUnnamed432(o.secondaryFileExtensions); |
| 501 checkUnnamed408(o.secondaryMimeTypes); | 501 checkUnnamed433(o.secondaryMimeTypes); |
| 502 unittest.expect(o.shortDescription, unittest.equals('foo')); | 502 unittest.expect(o.shortDescription, unittest.equals('foo')); |
| 503 unittest.expect(o.supportsCreate, unittest.isTrue); | 503 unittest.expect(o.supportsCreate, unittest.isTrue); |
| 504 unittest.expect(o.supportsImport, unittest.isTrue); | 504 unittest.expect(o.supportsImport, unittest.isTrue); |
| 505 unittest.expect(o.supportsMultiOpen, unittest.isTrue); | 505 unittest.expect(o.supportsMultiOpen, unittest.isTrue); |
| 506 unittest.expect(o.supportsOfflineCreate, unittest.isTrue); | 506 unittest.expect(o.supportsOfflineCreate, unittest.isTrue); |
| 507 unittest.expect(o.useByDefault, unittest.isTrue); | 507 unittest.expect(o.useByDefault, unittest.isTrue); |
| 508 } | 508 } |
| 509 buildCounterApp--; | 509 buildCounterApp--; |
| 510 } | 510 } |
| 511 | 511 |
| 512 buildUnnamed409() { | 512 buildUnnamed434() { |
| 513 var o = new core.List<core.String>(); | 513 var o = new core.List<core.String>(); |
| 514 o.add("foo"); | 514 o.add("foo"); |
| 515 o.add("foo"); | 515 o.add("foo"); |
| 516 return o; | 516 return o; |
| 517 } | 517 } |
| 518 | 518 |
| 519 checkUnnamed409(core.List<core.String> o) { | 519 checkUnnamed434(core.List<core.String> o) { |
| 520 unittest.expect(o, unittest.hasLength(2)); | 520 unittest.expect(o, unittest.hasLength(2)); |
| 521 unittest.expect(o[0], unittest.equals('foo')); | 521 unittest.expect(o[0], unittest.equals('foo')); |
| 522 unittest.expect(o[1], unittest.equals('foo')); | 522 unittest.expect(o[1], unittest.equals('foo')); |
| 523 } | 523 } |
| 524 | 524 |
| 525 buildUnnamed410() { | 525 buildUnnamed435() { |
| 526 var o = new core.List<api.App>(); | 526 var o = new core.List<api.App>(); |
| 527 o.add(buildApp()); | 527 o.add(buildApp()); |
| 528 o.add(buildApp()); | 528 o.add(buildApp()); |
| 529 return o; | 529 return o; |
| 530 } | 530 } |
| 531 | 531 |
| 532 checkUnnamed410(core.List<api.App> o) { | 532 checkUnnamed435(core.List<api.App> o) { |
| 533 unittest.expect(o, unittest.hasLength(2)); | 533 unittest.expect(o, unittest.hasLength(2)); |
| 534 checkApp(o[0]); | 534 checkApp(o[0]); |
| 535 checkApp(o[1]); | 535 checkApp(o[1]); |
| 536 } | 536 } |
| 537 | 537 |
| 538 core.int buildCounterAppList = 0; | 538 core.int buildCounterAppList = 0; |
| 539 buildAppList() { | 539 buildAppList() { |
| 540 var o = new api.AppList(); | 540 var o = new api.AppList(); |
| 541 buildCounterAppList++; | 541 buildCounterAppList++; |
| 542 if (buildCounterAppList < 3) { | 542 if (buildCounterAppList < 3) { |
| 543 o.defaultAppIds = buildUnnamed409(); | 543 o.defaultAppIds = buildUnnamed434(); |
| 544 o.etag = "foo"; | 544 o.etag = "foo"; |
| 545 o.items = buildUnnamed410(); | 545 o.items = buildUnnamed435(); |
| 546 o.kind = "foo"; | 546 o.kind = "foo"; |
| 547 o.selfLink = "foo"; | 547 o.selfLink = "foo"; |
| 548 } | 548 } |
| 549 buildCounterAppList--; | 549 buildCounterAppList--; |
| 550 return o; | 550 return o; |
| 551 } | 551 } |
| 552 | 552 |
| 553 checkAppList(api.AppList o) { | 553 checkAppList(api.AppList o) { |
| 554 buildCounterAppList++; | 554 buildCounterAppList++; |
| 555 if (buildCounterAppList < 3) { | 555 if (buildCounterAppList < 3) { |
| 556 checkUnnamed409(o.defaultAppIds); | 556 checkUnnamed434(o.defaultAppIds); |
| 557 unittest.expect(o.etag, unittest.equals('foo')); | 557 unittest.expect(o.etag, unittest.equals('foo')); |
| 558 checkUnnamed410(o.items); | 558 checkUnnamed435(o.items); |
| 559 unittest.expect(o.kind, unittest.equals('foo')); | 559 unittest.expect(o.kind, unittest.equals('foo')); |
| 560 unittest.expect(o.selfLink, unittest.equals('foo')); | 560 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 561 } | 561 } |
| 562 buildCounterAppList--; | 562 buildCounterAppList--; |
| 563 } | 563 } |
| 564 | 564 |
| 565 core.int buildCounterChange = 0; | 565 core.int buildCounterChange = 0; |
| 566 buildChange() { | 566 buildChange() { |
| 567 var o = new api.Change(); | 567 var o = new api.Change(); |
| 568 buildCounterChange++; | 568 buildCounterChange++; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 586 checkFile(o.file); | 586 checkFile(o.file); |
| 587 unittest.expect(o.fileId, unittest.equals('foo')); | 587 unittest.expect(o.fileId, unittest.equals('foo')); |
| 588 unittest.expect(o.id, unittest.equals('foo')); | 588 unittest.expect(o.id, unittest.equals('foo')); |
| 589 unittest.expect(o.kind, unittest.equals('foo')); | 589 unittest.expect(o.kind, unittest.equals('foo')); |
| 590 unittest.expect(o.modificationDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 590 unittest.expect(o.modificationDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 591 unittest.expect(o.selfLink, unittest.equals('foo')); | 591 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 592 } | 592 } |
| 593 buildCounterChange--; | 593 buildCounterChange--; |
| 594 } | 594 } |
| 595 | 595 |
| 596 buildUnnamed411() { | 596 buildUnnamed436() { |
| 597 var o = new core.List<api.Change>(); | 597 var o = new core.List<api.Change>(); |
| 598 o.add(buildChange()); | 598 o.add(buildChange()); |
| 599 o.add(buildChange()); | 599 o.add(buildChange()); |
| 600 return o; | 600 return o; |
| 601 } | 601 } |
| 602 | 602 |
| 603 checkUnnamed411(core.List<api.Change> o) { | 603 checkUnnamed436(core.List<api.Change> o) { |
| 604 unittest.expect(o, unittest.hasLength(2)); | 604 unittest.expect(o, unittest.hasLength(2)); |
| 605 checkChange(o[0]); | 605 checkChange(o[0]); |
| 606 checkChange(o[1]); | 606 checkChange(o[1]); |
| 607 } | 607 } |
| 608 | 608 |
| 609 core.int buildCounterChangeList = 0; | 609 core.int buildCounterChangeList = 0; |
| 610 buildChangeList() { | 610 buildChangeList() { |
| 611 var o = new api.ChangeList(); | 611 var o = new api.ChangeList(); |
| 612 buildCounterChangeList++; | 612 buildCounterChangeList++; |
| 613 if (buildCounterChangeList < 3) { | 613 if (buildCounterChangeList < 3) { |
| 614 o.etag = "foo"; | 614 o.etag = "foo"; |
| 615 o.items = buildUnnamed411(); | 615 o.items = buildUnnamed436(); |
| 616 o.kind = "foo"; | 616 o.kind = "foo"; |
| 617 o.largestChangeId = "foo"; | 617 o.largestChangeId = "foo"; |
| 618 o.nextLink = "foo"; | 618 o.nextLink = "foo"; |
| 619 o.nextPageToken = "foo"; | 619 o.nextPageToken = "foo"; |
| 620 o.selfLink = "foo"; | 620 o.selfLink = "foo"; |
| 621 } | 621 } |
| 622 buildCounterChangeList--; | 622 buildCounterChangeList--; |
| 623 return o; | 623 return o; |
| 624 } | 624 } |
| 625 | 625 |
| 626 checkChangeList(api.ChangeList o) { | 626 checkChangeList(api.ChangeList o) { |
| 627 buildCounterChangeList++; | 627 buildCounterChangeList++; |
| 628 if (buildCounterChangeList < 3) { | 628 if (buildCounterChangeList < 3) { |
| 629 unittest.expect(o.etag, unittest.equals('foo')); | 629 unittest.expect(o.etag, unittest.equals('foo')); |
| 630 checkUnnamed411(o.items); | 630 checkUnnamed436(o.items); |
| 631 unittest.expect(o.kind, unittest.equals('foo')); | 631 unittest.expect(o.kind, unittest.equals('foo')); |
| 632 unittest.expect(o.largestChangeId, unittest.equals('foo')); | 632 unittest.expect(o.largestChangeId, unittest.equals('foo')); |
| 633 unittest.expect(o.nextLink, unittest.equals('foo')); | 633 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 634 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 634 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 635 unittest.expect(o.selfLink, unittest.equals('foo')); | 635 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 636 } | 636 } |
| 637 buildCounterChangeList--; | 637 buildCounterChangeList--; |
| 638 } | 638 } |
| 639 | 639 |
| 640 buildUnnamed412() { | 640 buildUnnamed437() { |
| 641 var o = new core.Map<core.String, core.String>(); | 641 var o = new core.Map<core.String, core.String>(); |
| 642 o["x"] = "foo"; | 642 o["x"] = "foo"; |
| 643 o["y"] = "foo"; | 643 o["y"] = "foo"; |
| 644 return o; | 644 return o; |
| 645 } | 645 } |
| 646 | 646 |
| 647 checkUnnamed412(core.Map<core.String, core.String> o) { | 647 checkUnnamed437(core.Map<core.String, core.String> o) { |
| 648 unittest.expect(o, unittest.hasLength(2)); | 648 unittest.expect(o, unittest.hasLength(2)); |
| 649 unittest.expect(o["x"], unittest.equals('foo')); | 649 unittest.expect(o["x"], unittest.equals('foo')); |
| 650 unittest.expect(o["y"], unittest.equals('foo')); | 650 unittest.expect(o["y"], unittest.equals('foo')); |
| 651 } | 651 } |
| 652 | 652 |
| 653 core.int buildCounterChannel = 0; | 653 core.int buildCounterChannel = 0; |
| 654 buildChannel() { | 654 buildChannel() { |
| 655 var o = new api.Channel(); | 655 var o = new api.Channel(); |
| 656 buildCounterChannel++; | 656 buildCounterChannel++; |
| 657 if (buildCounterChannel < 3) { | 657 if (buildCounterChannel < 3) { |
| 658 o.address = "foo"; | 658 o.address = "foo"; |
| 659 o.expiration = "foo"; | 659 o.expiration = "foo"; |
| 660 o.id = "foo"; | 660 o.id = "foo"; |
| 661 o.kind = "foo"; | 661 o.kind = "foo"; |
| 662 o.params = buildUnnamed412(); | 662 o.params = buildUnnamed437(); |
| 663 o.payload = true; | 663 o.payload = true; |
| 664 o.resourceId = "foo"; | 664 o.resourceId = "foo"; |
| 665 o.resourceUri = "foo"; | 665 o.resourceUri = "foo"; |
| 666 o.token = "foo"; | 666 o.token = "foo"; |
| 667 o.type = "foo"; | 667 o.type = "foo"; |
| 668 } | 668 } |
| 669 buildCounterChannel--; | 669 buildCounterChannel--; |
| 670 return o; | 670 return o; |
| 671 } | 671 } |
| 672 | 672 |
| 673 checkChannel(api.Channel o) { | 673 checkChannel(api.Channel o) { |
| 674 buildCounterChannel++; | 674 buildCounterChannel++; |
| 675 if (buildCounterChannel < 3) { | 675 if (buildCounterChannel < 3) { |
| 676 unittest.expect(o.address, unittest.equals('foo')); | 676 unittest.expect(o.address, unittest.equals('foo')); |
| 677 unittest.expect(o.expiration, unittest.equals('foo')); | 677 unittest.expect(o.expiration, unittest.equals('foo')); |
| 678 unittest.expect(o.id, unittest.equals('foo')); | 678 unittest.expect(o.id, unittest.equals('foo')); |
| 679 unittest.expect(o.kind, unittest.equals('foo')); | 679 unittest.expect(o.kind, unittest.equals('foo')); |
| 680 checkUnnamed412(o.params); | 680 checkUnnamed437(o.params); |
| 681 unittest.expect(o.payload, unittest.isTrue); | 681 unittest.expect(o.payload, unittest.isTrue); |
| 682 unittest.expect(o.resourceId, unittest.equals('foo')); | 682 unittest.expect(o.resourceId, unittest.equals('foo')); |
| 683 unittest.expect(o.resourceUri, unittest.equals('foo')); | 683 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 684 unittest.expect(o.token, unittest.equals('foo')); | 684 unittest.expect(o.token, unittest.equals('foo')); |
| 685 unittest.expect(o.type, unittest.equals('foo')); | 685 unittest.expect(o.type, unittest.equals('foo')); |
| 686 } | 686 } |
| 687 buildCounterChannel--; | 687 buildCounterChannel--; |
| 688 } | 688 } |
| 689 | 689 |
| 690 buildUnnamed413() { | 690 buildUnnamed438() { |
| 691 var o = new core.List<api.ChildReference>(); | 691 var o = new core.List<api.ChildReference>(); |
| 692 o.add(buildChildReference()); | 692 o.add(buildChildReference()); |
| 693 o.add(buildChildReference()); | 693 o.add(buildChildReference()); |
| 694 return o; | 694 return o; |
| 695 } | 695 } |
| 696 | 696 |
| 697 checkUnnamed413(core.List<api.ChildReference> o) { | 697 checkUnnamed438(core.List<api.ChildReference> o) { |
| 698 unittest.expect(o, unittest.hasLength(2)); | 698 unittest.expect(o, unittest.hasLength(2)); |
| 699 checkChildReference(o[0]); | 699 checkChildReference(o[0]); |
| 700 checkChildReference(o[1]); | 700 checkChildReference(o[1]); |
| 701 } | 701 } |
| 702 | 702 |
| 703 core.int buildCounterChildList = 0; | 703 core.int buildCounterChildList = 0; |
| 704 buildChildList() { | 704 buildChildList() { |
| 705 var o = new api.ChildList(); | 705 var o = new api.ChildList(); |
| 706 buildCounterChildList++; | 706 buildCounterChildList++; |
| 707 if (buildCounterChildList < 3) { | 707 if (buildCounterChildList < 3) { |
| 708 o.etag = "foo"; | 708 o.etag = "foo"; |
| 709 o.items = buildUnnamed413(); | 709 o.items = buildUnnamed438(); |
| 710 o.kind = "foo"; | 710 o.kind = "foo"; |
| 711 o.nextLink = "foo"; | 711 o.nextLink = "foo"; |
| 712 o.nextPageToken = "foo"; | 712 o.nextPageToken = "foo"; |
| 713 o.selfLink = "foo"; | 713 o.selfLink = "foo"; |
| 714 } | 714 } |
| 715 buildCounterChildList--; | 715 buildCounterChildList--; |
| 716 return o; | 716 return o; |
| 717 } | 717 } |
| 718 | 718 |
| 719 checkChildList(api.ChildList o) { | 719 checkChildList(api.ChildList o) { |
| 720 buildCounterChildList++; | 720 buildCounterChildList++; |
| 721 if (buildCounterChildList < 3) { | 721 if (buildCounterChildList < 3) { |
| 722 unittest.expect(o.etag, unittest.equals('foo')); | 722 unittest.expect(o.etag, unittest.equals('foo')); |
| 723 checkUnnamed413(o.items); | 723 checkUnnamed438(o.items); |
| 724 unittest.expect(o.kind, unittest.equals('foo')); | 724 unittest.expect(o.kind, unittest.equals('foo')); |
| 725 unittest.expect(o.nextLink, unittest.equals('foo')); | 725 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 726 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 726 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 727 unittest.expect(o.selfLink, unittest.equals('foo')); | 727 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 728 } | 728 } |
| 729 buildCounterChildList--; | 729 buildCounterChildList--; |
| 730 } | 730 } |
| 731 | 731 |
| 732 core.int buildCounterChildReference = 0; | 732 core.int buildCounterChildReference = 0; |
| 733 buildChildReference() { | 733 buildChildReference() { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 768 |
| 769 checkCommentContext(api.CommentContext o) { | 769 checkCommentContext(api.CommentContext o) { |
| 770 buildCounterCommentContext++; | 770 buildCounterCommentContext++; |
| 771 if (buildCounterCommentContext < 3) { | 771 if (buildCounterCommentContext < 3) { |
| 772 unittest.expect(o.type, unittest.equals('foo')); | 772 unittest.expect(o.type, unittest.equals('foo')); |
| 773 unittest.expect(o.value, unittest.equals('foo')); | 773 unittest.expect(o.value, unittest.equals('foo')); |
| 774 } | 774 } |
| 775 buildCounterCommentContext--; | 775 buildCounterCommentContext--; |
| 776 } | 776 } |
| 777 | 777 |
| 778 buildUnnamed414() { | 778 buildUnnamed439() { |
| 779 var o = new core.List<api.CommentReply>(); | 779 var o = new core.List<api.CommentReply>(); |
| 780 o.add(buildCommentReply()); | 780 o.add(buildCommentReply()); |
| 781 o.add(buildCommentReply()); | 781 o.add(buildCommentReply()); |
| 782 return o; | 782 return o; |
| 783 } | 783 } |
| 784 | 784 |
| 785 checkUnnamed414(core.List<api.CommentReply> o) { | 785 checkUnnamed439(core.List<api.CommentReply> o) { |
| 786 unittest.expect(o, unittest.hasLength(2)); | 786 unittest.expect(o, unittest.hasLength(2)); |
| 787 checkCommentReply(o[0]); | 787 checkCommentReply(o[0]); |
| 788 checkCommentReply(o[1]); | 788 checkCommentReply(o[1]); |
| 789 } | 789 } |
| 790 | 790 |
| 791 core.int buildCounterComment = 0; | 791 core.int buildCounterComment = 0; |
| 792 buildComment() { | 792 buildComment() { |
| 793 var o = new api.Comment(); | 793 var o = new api.Comment(); |
| 794 buildCounterComment++; | 794 buildCounterComment++; |
| 795 if (buildCounterComment < 3) { | 795 if (buildCounterComment < 3) { |
| 796 o.anchor = "foo"; | 796 o.anchor = "foo"; |
| 797 o.author = buildUser(); | 797 o.author = buildUser(); |
| 798 o.commentId = "foo"; | 798 o.commentId = "foo"; |
| 799 o.content = "foo"; | 799 o.content = "foo"; |
| 800 o.context = buildCommentContext(); | 800 o.context = buildCommentContext(); |
| 801 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); | 801 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 802 o.deleted = true; | 802 o.deleted = true; |
| 803 o.fileId = "foo"; | 803 o.fileId = "foo"; |
| 804 o.fileTitle = "foo"; | 804 o.fileTitle = "foo"; |
| 805 o.htmlContent = "foo"; | 805 o.htmlContent = "foo"; |
| 806 o.kind = "foo"; | 806 o.kind = "foo"; |
| 807 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); | 807 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 808 o.replies = buildUnnamed414(); | 808 o.replies = buildUnnamed439(); |
| 809 o.selfLink = "foo"; | 809 o.selfLink = "foo"; |
| 810 o.status = "foo"; | 810 o.status = "foo"; |
| 811 } | 811 } |
| 812 buildCounterComment--; | 812 buildCounterComment--; |
| 813 return o; | 813 return o; |
| 814 } | 814 } |
| 815 | 815 |
| 816 checkComment(api.Comment o) { | 816 checkComment(api.Comment o) { |
| 817 buildCounterComment++; | 817 buildCounterComment++; |
| 818 if (buildCounterComment < 3) { | 818 if (buildCounterComment < 3) { |
| 819 unittest.expect(o.anchor, unittest.equals('foo')); | 819 unittest.expect(o.anchor, unittest.equals('foo')); |
| 820 checkUser(o.author); | 820 checkUser(o.author); |
| 821 unittest.expect(o.commentId, unittest.equals('foo')); | 821 unittest.expect(o.commentId, unittest.equals('foo')); |
| 822 unittest.expect(o.content, unittest.equals('foo')); | 822 unittest.expect(o.content, unittest.equals('foo')); |
| 823 checkCommentContext(o.context); | 823 checkCommentContext(o.context); |
| 824 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 824 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 825 unittest.expect(o.deleted, unittest.isTrue); | 825 unittest.expect(o.deleted, unittest.isTrue); |
| 826 unittest.expect(o.fileId, unittest.equals('foo')); | 826 unittest.expect(o.fileId, unittest.equals('foo')); |
| 827 unittest.expect(o.fileTitle, unittest.equals('foo')); | 827 unittest.expect(o.fileTitle, unittest.equals('foo')); |
| 828 unittest.expect(o.htmlContent, unittest.equals('foo')); | 828 unittest.expect(o.htmlContent, unittest.equals('foo')); |
| 829 unittest.expect(o.kind, unittest.equals('foo')); | 829 unittest.expect(o.kind, unittest.equals('foo')); |
| 830 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 830 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 831 checkUnnamed414(o.replies); | 831 checkUnnamed439(o.replies); |
| 832 unittest.expect(o.selfLink, unittest.equals('foo')); | 832 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 833 unittest.expect(o.status, unittest.equals('foo')); | 833 unittest.expect(o.status, unittest.equals('foo')); |
| 834 } | 834 } |
| 835 buildCounterComment--; | 835 buildCounterComment--; |
| 836 } | 836 } |
| 837 | 837 |
| 838 buildUnnamed415() { | 838 buildUnnamed440() { |
| 839 var o = new core.List<api.Comment>(); | 839 var o = new core.List<api.Comment>(); |
| 840 o.add(buildComment()); | 840 o.add(buildComment()); |
| 841 o.add(buildComment()); | 841 o.add(buildComment()); |
| 842 return o; | 842 return o; |
| 843 } | 843 } |
| 844 | 844 |
| 845 checkUnnamed415(core.List<api.Comment> o) { | 845 checkUnnamed440(core.List<api.Comment> o) { |
| 846 unittest.expect(o, unittest.hasLength(2)); | 846 unittest.expect(o, unittest.hasLength(2)); |
| 847 checkComment(o[0]); | 847 checkComment(o[0]); |
| 848 checkComment(o[1]); | 848 checkComment(o[1]); |
| 849 } | 849 } |
| 850 | 850 |
| 851 core.int buildCounterCommentList = 0; | 851 core.int buildCounterCommentList = 0; |
| 852 buildCommentList() { | 852 buildCommentList() { |
| 853 var o = new api.CommentList(); | 853 var o = new api.CommentList(); |
| 854 buildCounterCommentList++; | 854 buildCounterCommentList++; |
| 855 if (buildCounterCommentList < 3) { | 855 if (buildCounterCommentList < 3) { |
| 856 o.items = buildUnnamed415(); | 856 o.items = buildUnnamed440(); |
| 857 o.kind = "foo"; | 857 o.kind = "foo"; |
| 858 o.nextLink = "foo"; | 858 o.nextLink = "foo"; |
| 859 o.nextPageToken = "foo"; | 859 o.nextPageToken = "foo"; |
| 860 o.selfLink = "foo"; | 860 o.selfLink = "foo"; |
| 861 } | 861 } |
| 862 buildCounterCommentList--; | 862 buildCounterCommentList--; |
| 863 return o; | 863 return o; |
| 864 } | 864 } |
| 865 | 865 |
| 866 checkCommentList(api.CommentList o) { | 866 checkCommentList(api.CommentList o) { |
| 867 buildCounterCommentList++; | 867 buildCounterCommentList++; |
| 868 if (buildCounterCommentList < 3) { | 868 if (buildCounterCommentList < 3) { |
| 869 checkUnnamed415(o.items); | 869 checkUnnamed440(o.items); |
| 870 unittest.expect(o.kind, unittest.equals('foo')); | 870 unittest.expect(o.kind, unittest.equals('foo')); |
| 871 unittest.expect(o.nextLink, unittest.equals('foo')); | 871 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 872 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 872 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 873 unittest.expect(o.selfLink, unittest.equals('foo')); | 873 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 874 } | 874 } |
| 875 buildCounterCommentList--; | 875 buildCounterCommentList--; |
| 876 } | 876 } |
| 877 | 877 |
| 878 core.int buildCounterCommentReply = 0; | 878 core.int buildCounterCommentReply = 0; |
| 879 buildCommentReply() { | 879 buildCommentReply() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 903 unittest.expect(o.deleted, unittest.isTrue); | 903 unittest.expect(o.deleted, unittest.isTrue); |
| 904 unittest.expect(o.htmlContent, unittest.equals('foo')); | 904 unittest.expect(o.htmlContent, unittest.equals('foo')); |
| 905 unittest.expect(o.kind, unittest.equals('foo')); | 905 unittest.expect(o.kind, unittest.equals('foo')); |
| 906 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 906 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 907 unittest.expect(o.replyId, unittest.equals('foo')); | 907 unittest.expect(o.replyId, unittest.equals('foo')); |
| 908 unittest.expect(o.verb, unittest.equals('foo')); | 908 unittest.expect(o.verb, unittest.equals('foo')); |
| 909 } | 909 } |
| 910 buildCounterCommentReply--; | 910 buildCounterCommentReply--; |
| 911 } | 911 } |
| 912 | 912 |
| 913 buildUnnamed416() { | 913 buildUnnamed441() { |
| 914 var o = new core.List<api.CommentReply>(); | 914 var o = new core.List<api.CommentReply>(); |
| 915 o.add(buildCommentReply()); | 915 o.add(buildCommentReply()); |
| 916 o.add(buildCommentReply()); | 916 o.add(buildCommentReply()); |
| 917 return o; | 917 return o; |
| 918 } | 918 } |
| 919 | 919 |
| 920 checkUnnamed416(core.List<api.CommentReply> o) { | 920 checkUnnamed441(core.List<api.CommentReply> o) { |
| 921 unittest.expect(o, unittest.hasLength(2)); | 921 unittest.expect(o, unittest.hasLength(2)); |
| 922 checkCommentReply(o[0]); | 922 checkCommentReply(o[0]); |
| 923 checkCommentReply(o[1]); | 923 checkCommentReply(o[1]); |
| 924 } | 924 } |
| 925 | 925 |
| 926 core.int buildCounterCommentReplyList = 0; | 926 core.int buildCounterCommentReplyList = 0; |
| 927 buildCommentReplyList() { | 927 buildCommentReplyList() { |
| 928 var o = new api.CommentReplyList(); | 928 var o = new api.CommentReplyList(); |
| 929 buildCounterCommentReplyList++; | 929 buildCounterCommentReplyList++; |
| 930 if (buildCounterCommentReplyList < 3) { | 930 if (buildCounterCommentReplyList < 3) { |
| 931 o.items = buildUnnamed416(); | 931 o.items = buildUnnamed441(); |
| 932 o.kind = "foo"; | 932 o.kind = "foo"; |
| 933 o.nextLink = "foo"; | 933 o.nextLink = "foo"; |
| 934 o.nextPageToken = "foo"; | 934 o.nextPageToken = "foo"; |
| 935 o.selfLink = "foo"; | 935 o.selfLink = "foo"; |
| 936 } | 936 } |
| 937 buildCounterCommentReplyList--; | 937 buildCounterCommentReplyList--; |
| 938 return o; | 938 return o; |
| 939 } | 939 } |
| 940 | 940 |
| 941 checkCommentReplyList(api.CommentReplyList o) { | 941 checkCommentReplyList(api.CommentReplyList o) { |
| 942 buildCounterCommentReplyList++; | 942 buildCounterCommentReplyList++; |
| 943 if (buildCounterCommentReplyList < 3) { | 943 if (buildCounterCommentReplyList < 3) { |
| 944 checkUnnamed416(o.items); | 944 checkUnnamed441(o.items); |
| 945 unittest.expect(o.kind, unittest.equals('foo')); | 945 unittest.expect(o.kind, unittest.equals('foo')); |
| 946 unittest.expect(o.nextLink, unittest.equals('foo')); | 946 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 947 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 947 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 948 unittest.expect(o.selfLink, unittest.equals('foo')); | 948 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 949 } | 949 } |
| 950 buildCounterCommentReplyList--; | 950 buildCounterCommentReplyList--; |
| 951 } | 951 } |
| 952 | 952 |
| 953 buildUnnamed417() { | 953 buildUnnamed442() { |
| 954 var o = new core.Map<core.String, core.String>(); | 954 var o = new core.Map<core.String, core.String>(); |
| 955 o["x"] = "foo"; | 955 o["x"] = "foo"; |
| 956 o["y"] = "foo"; | 956 o["y"] = "foo"; |
| 957 return o; | 957 return o; |
| 958 } | 958 } |
| 959 | 959 |
| 960 checkUnnamed417(core.Map<core.String, core.String> o) { | 960 checkUnnamed442(core.Map<core.String, core.String> o) { |
| 961 unittest.expect(o, unittest.hasLength(2)); | 961 unittest.expect(o, unittest.hasLength(2)); |
| 962 unittest.expect(o["x"], unittest.equals('foo')); | 962 unittest.expect(o["x"], unittest.equals('foo')); |
| 963 unittest.expect(o["y"], unittest.equals('foo')); | 963 unittest.expect(o["y"], unittest.equals('foo')); |
| 964 } | 964 } |
| 965 | 965 |
| 966 core.int buildCounterFileImageMediaMetadataLocation = 0; | 966 core.int buildCounterFileImageMediaMetadataLocation = 0; |
| 967 buildFileImageMediaMetadataLocation() { | 967 buildFileImageMediaMetadataLocation() { |
| 968 var o = new api.FileImageMediaMetadataLocation(); | 968 var o = new api.FileImageMediaMetadataLocation(); |
| 969 buildCounterFileImageMediaMetadataLocation++; | 969 buildCounterFileImageMediaMetadataLocation++; |
| 970 if (buildCounterFileImageMediaMetadataLocation < 3) { | 970 if (buildCounterFileImageMediaMetadataLocation < 3) { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 if (buildCounterFileLabels < 3) { | 1084 if (buildCounterFileLabels < 3) { |
| 1085 unittest.expect(o.hidden, unittest.isTrue); | 1085 unittest.expect(o.hidden, unittest.isTrue); |
| 1086 unittest.expect(o.restricted, unittest.isTrue); | 1086 unittest.expect(o.restricted, unittest.isTrue); |
| 1087 unittest.expect(o.starred, unittest.isTrue); | 1087 unittest.expect(o.starred, unittest.isTrue); |
| 1088 unittest.expect(o.trashed, unittest.isTrue); | 1088 unittest.expect(o.trashed, unittest.isTrue); |
| 1089 unittest.expect(o.viewed, unittest.isTrue); | 1089 unittest.expect(o.viewed, unittest.isTrue); |
| 1090 } | 1090 } |
| 1091 buildCounterFileLabels--; | 1091 buildCounterFileLabels--; |
| 1092 } | 1092 } |
| 1093 | 1093 |
| 1094 buildUnnamed418() { | 1094 buildUnnamed443() { |
| 1095 var o = new core.Map<core.String, core.String>(); | 1095 var o = new core.Map<core.String, core.String>(); |
| 1096 o["x"] = "foo"; | 1096 o["x"] = "foo"; |
| 1097 o["y"] = "foo"; | 1097 o["y"] = "foo"; |
| 1098 return o; | 1098 return o; |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 checkUnnamed418(core.Map<core.String, core.String> o) { | 1101 checkUnnamed443(core.Map<core.String, core.String> o) { |
| 1102 unittest.expect(o, unittest.hasLength(2)); | 1102 unittest.expect(o, unittest.hasLength(2)); |
| 1103 unittest.expect(o["x"], unittest.equals('foo')); | 1103 unittest.expect(o["x"], unittest.equals('foo')); |
| 1104 unittest.expect(o["y"], unittest.equals('foo')); | 1104 unittest.expect(o["y"], unittest.equals('foo')); |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 buildUnnamed419() { | 1107 buildUnnamed444() { |
| 1108 var o = new core.List<core.String>(); | 1108 var o = new core.List<core.String>(); |
| 1109 o.add("foo"); | 1109 o.add("foo"); |
| 1110 o.add("foo"); | 1110 o.add("foo"); |
| 1111 return o; | 1111 return o; |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 checkUnnamed419(core.List<core.String> o) { | 1114 checkUnnamed444(core.List<core.String> o) { |
| 1115 unittest.expect(o, unittest.hasLength(2)); | 1115 unittest.expect(o, unittest.hasLength(2)); |
| 1116 unittest.expect(o[0], unittest.equals('foo')); | 1116 unittest.expect(o[0], unittest.equals('foo')); |
| 1117 unittest.expect(o[1], unittest.equals('foo')); | 1117 unittest.expect(o[1], unittest.equals('foo')); |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 buildUnnamed420() { | 1120 buildUnnamed445() { |
| 1121 var o = new core.List<api.User>(); | 1121 var o = new core.List<api.User>(); |
| 1122 o.add(buildUser()); | 1122 o.add(buildUser()); |
| 1123 o.add(buildUser()); | 1123 o.add(buildUser()); |
| 1124 return o; | 1124 return o; |
| 1125 } | 1125 } |
| 1126 | 1126 |
| 1127 checkUnnamed420(core.List<api.User> o) { | 1127 checkUnnamed445(core.List<api.User> o) { |
| 1128 unittest.expect(o, unittest.hasLength(2)); | 1128 unittest.expect(o, unittest.hasLength(2)); |
| 1129 checkUser(o[0]); | 1129 checkUser(o[0]); |
| 1130 checkUser(o[1]); | 1130 checkUser(o[1]); |
| 1131 } | 1131 } |
| 1132 | 1132 |
| 1133 buildUnnamed421() { | 1133 buildUnnamed446() { |
| 1134 var o = new core.List<api.ParentReference>(); | 1134 var o = new core.List<api.ParentReference>(); |
| 1135 o.add(buildParentReference()); | 1135 o.add(buildParentReference()); |
| 1136 o.add(buildParentReference()); | 1136 o.add(buildParentReference()); |
| 1137 return o; | 1137 return o; |
| 1138 } | 1138 } |
| 1139 | 1139 |
| 1140 checkUnnamed421(core.List<api.ParentReference> o) { | 1140 checkUnnamed446(core.List<api.ParentReference> o) { |
| 1141 unittest.expect(o, unittest.hasLength(2)); | 1141 unittest.expect(o, unittest.hasLength(2)); |
| 1142 checkParentReference(o[0]); | 1142 checkParentReference(o[0]); |
| 1143 checkParentReference(o[1]); | 1143 checkParentReference(o[1]); |
| 1144 } | 1144 } |
| 1145 | 1145 |
| 1146 buildUnnamed422() { | 1146 buildUnnamed447() { |
| 1147 var o = new core.List<api.Permission>(); | 1147 var o = new core.List<api.Permission>(); |
| 1148 o.add(buildPermission()); | 1148 o.add(buildPermission()); |
| 1149 o.add(buildPermission()); | 1149 o.add(buildPermission()); |
| 1150 return o; | 1150 return o; |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 checkUnnamed422(core.List<api.Permission> o) { | 1153 checkUnnamed447(core.List<api.Permission> o) { |
| 1154 unittest.expect(o, unittest.hasLength(2)); | 1154 unittest.expect(o, unittest.hasLength(2)); |
| 1155 checkPermission(o[0]); | 1155 checkPermission(o[0]); |
| 1156 checkPermission(o[1]); | 1156 checkPermission(o[1]); |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 buildUnnamed423() { | 1159 buildUnnamed448() { |
| 1160 var o = new core.List<api.Property>(); | 1160 var o = new core.List<api.Property>(); |
| 1161 o.add(buildProperty()); | 1161 o.add(buildProperty()); |
| 1162 o.add(buildProperty()); | 1162 o.add(buildProperty()); |
| 1163 return o; | 1163 return o; |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 checkUnnamed423(core.List<api.Property> o) { | 1166 checkUnnamed448(core.List<api.Property> o) { |
| 1167 unittest.expect(o, unittest.hasLength(2)); | 1167 unittest.expect(o, unittest.hasLength(2)); |
| 1168 checkProperty(o[0]); | 1168 checkProperty(o[0]); |
| 1169 checkProperty(o[1]); | 1169 checkProperty(o[1]); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 core.int buildCounterFileThumbnail = 0; | 1172 core.int buildCounterFileThumbnail = 0; |
| 1173 buildFileThumbnail() { | 1173 buildFileThumbnail() { |
| 1174 var o = new api.FileThumbnail(); | 1174 var o = new api.FileThumbnail(); |
| 1175 buildCounterFileThumbnail++; | 1175 buildCounterFileThumbnail++; |
| 1176 if (buildCounterFileThumbnail < 3) { | 1176 if (buildCounterFileThumbnail < 3) { |
| 1177 o.image = "foo"; | 1177 o.image = "foo"; |
| 1178 o.mimeType = "foo"; | 1178 o.mimeType = "foo"; |
| 1179 } | 1179 } |
| 1180 buildCounterFileThumbnail--; | 1180 buildCounterFileThumbnail--; |
| 1181 return o; | 1181 return o; |
| 1182 } | 1182 } |
| 1183 | 1183 |
| 1184 checkFileThumbnail(api.FileThumbnail o) { | 1184 checkFileThumbnail(api.FileThumbnail o) { |
| 1185 buildCounterFileThumbnail++; | 1185 buildCounterFileThumbnail++; |
| 1186 if (buildCounterFileThumbnail < 3) { | 1186 if (buildCounterFileThumbnail < 3) { |
| 1187 unittest.expect(o.image, unittest.equals('foo')); | 1187 unittest.expect(o.image, unittest.equals('foo')); |
| 1188 unittest.expect(o.mimeType, unittest.equals('foo')); | 1188 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1189 } | 1189 } |
| 1190 buildCounterFileThumbnail--; | 1190 buildCounterFileThumbnail--; |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 core.int buildCounterFileVideoMediaMetadata = 0; |
| 1194 buildFileVideoMediaMetadata() { |
| 1195 var o = new api.FileVideoMediaMetadata(); |
| 1196 buildCounterFileVideoMediaMetadata++; |
| 1197 if (buildCounterFileVideoMediaMetadata < 3) { |
| 1198 o.durationMillis = "foo"; |
| 1199 o.height = 42; |
| 1200 o.width = 42; |
| 1201 } |
| 1202 buildCounterFileVideoMediaMetadata--; |
| 1203 return o; |
| 1204 } |
| 1205 |
| 1206 checkFileVideoMediaMetadata(api.FileVideoMediaMetadata o) { |
| 1207 buildCounterFileVideoMediaMetadata++; |
| 1208 if (buildCounterFileVideoMediaMetadata < 3) { |
| 1209 unittest.expect(o.durationMillis, unittest.equals('foo')); |
| 1210 unittest.expect(o.height, unittest.equals(42)); |
| 1211 unittest.expect(o.width, unittest.equals(42)); |
| 1212 } |
| 1213 buildCounterFileVideoMediaMetadata--; |
| 1214 } |
| 1215 |
| 1193 core.int buildCounterFile = 0; | 1216 core.int buildCounterFile = 0; |
| 1194 buildFile() { | 1217 buildFile() { |
| 1195 var o = new api.File(); | 1218 var o = new api.File(); |
| 1196 buildCounterFile++; | 1219 buildCounterFile++; |
| 1197 if (buildCounterFile < 3) { | 1220 if (buildCounterFile < 3) { |
| 1198 o.alternateLink = "foo"; | 1221 o.alternateLink = "foo"; |
| 1199 o.appDataContents = true; | 1222 o.appDataContents = true; |
| 1200 o.copyable = true; | 1223 o.copyable = true; |
| 1201 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1224 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1202 o.defaultOpenWithLink = "foo"; | 1225 o.defaultOpenWithLink = "foo"; |
| 1203 o.description = "foo"; | 1226 o.description = "foo"; |
| 1204 o.downloadUrl = "foo"; | 1227 o.downloadUrl = "foo"; |
| 1205 o.editable = true; | 1228 o.editable = true; |
| 1206 o.embedLink = "foo"; | 1229 o.embedLink = "foo"; |
| 1207 o.etag = "foo"; | 1230 o.etag = "foo"; |
| 1208 o.explicitlyTrashed = true; | 1231 o.explicitlyTrashed = true; |
| 1209 o.exportLinks = buildUnnamed417(); | 1232 o.exportLinks = buildUnnamed442(); |
| 1210 o.fileExtension = "foo"; | 1233 o.fileExtension = "foo"; |
| 1211 o.fileSize = "foo"; | 1234 o.fileSize = "foo"; |
| 1212 o.headRevisionId = "foo"; | 1235 o.headRevisionId = "foo"; |
| 1213 o.iconLink = "foo"; | 1236 o.iconLink = "foo"; |
| 1214 o.id = "foo"; | 1237 o.id = "foo"; |
| 1215 o.imageMediaMetadata = buildFileImageMediaMetadata(); | 1238 o.imageMediaMetadata = buildFileImageMediaMetadata(); |
| 1216 o.indexableText = buildFileIndexableText(); | 1239 o.indexableText = buildFileIndexableText(); |
| 1217 o.kind = "foo"; | 1240 o.kind = "foo"; |
| 1218 o.labels = buildFileLabels(); | 1241 o.labels = buildFileLabels(); |
| 1219 o.lastModifyingUser = buildUser(); | 1242 o.lastModifyingUser = buildUser(); |
| 1220 o.lastModifyingUserName = "foo"; | 1243 o.lastModifyingUserName = "foo"; |
| 1221 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1244 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1222 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1245 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1223 o.md5Checksum = "foo"; | 1246 o.md5Checksum = "foo"; |
| 1224 o.mimeType = "foo"; | 1247 o.mimeType = "foo"; |
| 1225 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1248 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1226 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1249 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1227 o.openWithLinks = buildUnnamed418(); | 1250 o.openWithLinks = buildUnnamed443(); |
| 1228 o.originalFilename = "foo"; | 1251 o.originalFilename = "foo"; |
| 1229 o.ownerNames = buildUnnamed419(); | 1252 o.ownerNames = buildUnnamed444(); |
| 1230 o.owners = buildUnnamed420(); | 1253 o.owners = buildUnnamed445(); |
| 1231 o.parents = buildUnnamed421(); | 1254 o.parents = buildUnnamed446(); |
| 1232 o.permissions = buildUnnamed422(); | 1255 o.permissions = buildUnnamed447(); |
| 1233 o.properties = buildUnnamed423(); | 1256 o.properties = buildUnnamed448(); |
| 1234 o.quotaBytesUsed = "foo"; | 1257 o.quotaBytesUsed = "foo"; |
| 1235 o.selfLink = "foo"; | 1258 o.selfLink = "foo"; |
| 1236 o.shared = true; | 1259 o.shared = true; |
| 1237 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1260 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1238 o.sharingUser = buildUser(); | 1261 o.sharingUser = buildUser(); |
| 1239 o.thumbnail = buildFileThumbnail(); | 1262 o.thumbnail = buildFileThumbnail(); |
| 1240 o.thumbnailLink = "foo"; | 1263 o.thumbnailLink = "foo"; |
| 1241 o.title = "foo"; | 1264 o.title = "foo"; |
| 1242 o.userPermission = buildPermission(); | 1265 o.userPermission = buildPermission(); |
| 1243 o.version = "foo"; | 1266 o.version = "foo"; |
| 1267 o.videoMediaMetadata = buildFileVideoMediaMetadata(); |
| 1244 o.webContentLink = "foo"; | 1268 o.webContentLink = "foo"; |
| 1245 o.webViewLink = "foo"; | 1269 o.webViewLink = "foo"; |
| 1246 o.writersCanShare = true; | 1270 o.writersCanShare = true; |
| 1247 } | 1271 } |
| 1248 buildCounterFile--; | 1272 buildCounterFile--; |
| 1249 return o; | 1273 return o; |
| 1250 } | 1274 } |
| 1251 | 1275 |
| 1252 checkFile(api.File o) { | 1276 checkFile(api.File o) { |
| 1253 buildCounterFile++; | 1277 buildCounterFile++; |
| 1254 if (buildCounterFile < 3) { | 1278 if (buildCounterFile < 3) { |
| 1255 unittest.expect(o.alternateLink, unittest.equals('foo')); | 1279 unittest.expect(o.alternateLink, unittest.equals('foo')); |
| 1256 unittest.expect(o.appDataContents, unittest.isTrue); | 1280 unittest.expect(o.appDataContents, unittest.isTrue); |
| 1257 unittest.expect(o.copyable, unittest.isTrue); | 1281 unittest.expect(o.copyable, unittest.isTrue); |
| 1258 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 1282 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 1259 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo')); | 1283 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo')); |
| 1260 unittest.expect(o.description, unittest.equals('foo')); | 1284 unittest.expect(o.description, unittest.equals('foo')); |
| 1261 unittest.expect(o.downloadUrl, unittest.equals('foo')); | 1285 unittest.expect(o.downloadUrl, unittest.equals('foo')); |
| 1262 unittest.expect(o.editable, unittest.isTrue); | 1286 unittest.expect(o.editable, unittest.isTrue); |
| 1263 unittest.expect(o.embedLink, unittest.equals('foo')); | 1287 unittest.expect(o.embedLink, unittest.equals('foo')); |
| 1264 unittest.expect(o.etag, unittest.equals('foo')); | 1288 unittest.expect(o.etag, unittest.equals('foo')); |
| 1265 unittest.expect(o.explicitlyTrashed, unittest.isTrue); | 1289 unittest.expect(o.explicitlyTrashed, unittest.isTrue); |
| 1266 checkUnnamed417(o.exportLinks); | 1290 checkUnnamed442(o.exportLinks); |
| 1267 unittest.expect(o.fileExtension, unittest.equals('foo')); | 1291 unittest.expect(o.fileExtension, unittest.equals('foo')); |
| 1268 unittest.expect(o.fileSize, unittest.equals('foo')); | 1292 unittest.expect(o.fileSize, unittest.equals('foo')); |
| 1269 unittest.expect(o.headRevisionId, unittest.equals('foo')); | 1293 unittest.expect(o.headRevisionId, unittest.equals('foo')); |
| 1270 unittest.expect(o.iconLink, unittest.equals('foo')); | 1294 unittest.expect(o.iconLink, unittest.equals('foo')); |
| 1271 unittest.expect(o.id, unittest.equals('foo')); | 1295 unittest.expect(o.id, unittest.equals('foo')); |
| 1272 checkFileImageMediaMetadata(o.imageMediaMetadata); | 1296 checkFileImageMediaMetadata(o.imageMediaMetadata); |
| 1273 checkFileIndexableText(o.indexableText); | 1297 checkFileIndexableText(o.indexableText); |
| 1274 unittest.expect(o.kind, unittest.equals('foo')); | 1298 unittest.expect(o.kind, unittest.equals('foo')); |
| 1275 checkFileLabels(o.labels); | 1299 checkFileLabels(o.labels); |
| 1276 checkUser(o.lastModifyingUser); | 1300 checkUser(o.lastModifyingUser); |
| 1277 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); | 1301 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); |
| 1278 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); | 1302 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); |
| 1279 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse(
"2002-02-27T14:01:02"))); | 1303 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse(
"2002-02-27T14:01:02"))); |
| 1280 unittest.expect(o.md5Checksum, unittest.equals('foo')); | 1304 unittest.expect(o.md5Checksum, unittest.equals('foo')); |
| 1281 unittest.expect(o.mimeType, unittest.equals('foo')); | 1305 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1282 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1306 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 1283 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1307 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1284 checkUnnamed418(o.openWithLinks); | 1308 checkUnnamed443(o.openWithLinks); |
| 1285 unittest.expect(o.originalFilename, unittest.equals('foo')); | 1309 unittest.expect(o.originalFilename, unittest.equals('foo')); |
| 1286 checkUnnamed419(o.ownerNames); | 1310 checkUnnamed444(o.ownerNames); |
| 1287 checkUnnamed420(o.owners); | 1311 checkUnnamed445(o.owners); |
| 1288 checkUnnamed421(o.parents); | 1312 checkUnnamed446(o.parents); |
| 1289 checkUnnamed422(o.permissions); | 1313 checkUnnamed447(o.permissions); |
| 1290 checkUnnamed423(o.properties); | 1314 checkUnnamed448(o.properties); |
| 1291 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); | 1315 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); |
| 1292 unittest.expect(o.selfLink, unittest.equals('foo')); | 1316 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1293 unittest.expect(o.shared, unittest.isTrue); | 1317 unittest.expect(o.shared, unittest.isTrue); |
| 1294 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1318 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 1295 checkUser(o.sharingUser); | 1319 checkUser(o.sharingUser); |
| 1296 checkFileThumbnail(o.thumbnail); | 1320 checkFileThumbnail(o.thumbnail); |
| 1297 unittest.expect(o.thumbnailLink, unittest.equals('foo')); | 1321 unittest.expect(o.thumbnailLink, unittest.equals('foo')); |
| 1298 unittest.expect(o.title, unittest.equals('foo')); | 1322 unittest.expect(o.title, unittest.equals('foo')); |
| 1299 checkPermission(o.userPermission); | 1323 checkPermission(o.userPermission); |
| 1300 unittest.expect(o.version, unittest.equals('foo')); | 1324 unittest.expect(o.version, unittest.equals('foo')); |
| 1325 checkFileVideoMediaMetadata(o.videoMediaMetadata); |
| 1301 unittest.expect(o.webContentLink, unittest.equals('foo')); | 1326 unittest.expect(o.webContentLink, unittest.equals('foo')); |
| 1302 unittest.expect(o.webViewLink, unittest.equals('foo')); | 1327 unittest.expect(o.webViewLink, unittest.equals('foo')); |
| 1303 unittest.expect(o.writersCanShare, unittest.isTrue); | 1328 unittest.expect(o.writersCanShare, unittest.isTrue); |
| 1304 } | 1329 } |
| 1305 buildCounterFile--; | 1330 buildCounterFile--; |
| 1306 } | 1331 } |
| 1307 | 1332 |
| 1308 buildUnnamed424() { | 1333 buildUnnamed449() { |
| 1309 var o = new core.List<api.File>(); | 1334 var o = new core.List<api.File>(); |
| 1310 o.add(buildFile()); | 1335 o.add(buildFile()); |
| 1311 o.add(buildFile()); | 1336 o.add(buildFile()); |
| 1312 return o; | 1337 return o; |
| 1313 } | 1338 } |
| 1314 | 1339 |
| 1315 checkUnnamed424(core.List<api.File> o) { | 1340 checkUnnamed449(core.List<api.File> o) { |
| 1316 unittest.expect(o, unittest.hasLength(2)); | 1341 unittest.expect(o, unittest.hasLength(2)); |
| 1317 checkFile(o[0]); | 1342 checkFile(o[0]); |
| 1318 checkFile(o[1]); | 1343 checkFile(o[1]); |
| 1319 } | 1344 } |
| 1320 | 1345 |
| 1321 core.int buildCounterFileList = 0; | 1346 core.int buildCounterFileList = 0; |
| 1322 buildFileList() { | 1347 buildFileList() { |
| 1323 var o = new api.FileList(); | 1348 var o = new api.FileList(); |
| 1324 buildCounterFileList++; | 1349 buildCounterFileList++; |
| 1325 if (buildCounterFileList < 3) { | 1350 if (buildCounterFileList < 3) { |
| 1326 o.etag = "foo"; | 1351 o.etag = "foo"; |
| 1327 o.items = buildUnnamed424(); | 1352 o.items = buildUnnamed449(); |
| 1328 o.kind = "foo"; | 1353 o.kind = "foo"; |
| 1329 o.nextLink = "foo"; | 1354 o.nextLink = "foo"; |
| 1330 o.nextPageToken = "foo"; | 1355 o.nextPageToken = "foo"; |
| 1331 o.selfLink = "foo"; | 1356 o.selfLink = "foo"; |
| 1332 } | 1357 } |
| 1333 buildCounterFileList--; | 1358 buildCounterFileList--; |
| 1334 return o; | 1359 return o; |
| 1335 } | 1360 } |
| 1336 | 1361 |
| 1337 checkFileList(api.FileList o) { | 1362 checkFileList(api.FileList o) { |
| 1338 buildCounterFileList++; | 1363 buildCounterFileList++; |
| 1339 if (buildCounterFileList < 3) { | 1364 if (buildCounterFileList < 3) { |
| 1340 unittest.expect(o.etag, unittest.equals('foo')); | 1365 unittest.expect(o.etag, unittest.equals('foo')); |
| 1341 checkUnnamed424(o.items); | 1366 checkUnnamed449(o.items); |
| 1342 unittest.expect(o.kind, unittest.equals('foo')); | 1367 unittest.expect(o.kind, unittest.equals('foo')); |
| 1343 unittest.expect(o.nextLink, unittest.equals('foo')); | 1368 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 1344 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1369 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1345 unittest.expect(o.selfLink, unittest.equals('foo')); | 1370 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1346 } | 1371 } |
| 1347 buildCounterFileList--; | 1372 buildCounterFileList--; |
| 1348 } | 1373 } |
| 1349 | 1374 |
| 1350 buildUnnamed425() { | 1375 buildUnnamed450() { |
| 1351 var o = new core.List<api.ParentReference>(); | 1376 var o = new core.List<api.ParentReference>(); |
| 1352 o.add(buildParentReference()); | 1377 o.add(buildParentReference()); |
| 1353 o.add(buildParentReference()); | 1378 o.add(buildParentReference()); |
| 1354 return o; | 1379 return o; |
| 1355 } | 1380 } |
| 1356 | 1381 |
| 1357 checkUnnamed425(core.List<api.ParentReference> o) { | 1382 checkUnnamed450(core.List<api.ParentReference> o) { |
| 1358 unittest.expect(o, unittest.hasLength(2)); | 1383 unittest.expect(o, unittest.hasLength(2)); |
| 1359 checkParentReference(o[0]); | 1384 checkParentReference(o[0]); |
| 1360 checkParentReference(o[1]); | 1385 checkParentReference(o[1]); |
| 1361 } | 1386 } |
| 1362 | 1387 |
| 1363 core.int buildCounterParentList = 0; | 1388 core.int buildCounterParentList = 0; |
| 1364 buildParentList() { | 1389 buildParentList() { |
| 1365 var o = new api.ParentList(); | 1390 var o = new api.ParentList(); |
| 1366 buildCounterParentList++; | 1391 buildCounterParentList++; |
| 1367 if (buildCounterParentList < 3) { | 1392 if (buildCounterParentList < 3) { |
| 1368 o.etag = "foo"; | 1393 o.etag = "foo"; |
| 1369 o.items = buildUnnamed425(); | 1394 o.items = buildUnnamed450(); |
| 1370 o.kind = "foo"; | 1395 o.kind = "foo"; |
| 1371 o.selfLink = "foo"; | 1396 o.selfLink = "foo"; |
| 1372 } | 1397 } |
| 1373 buildCounterParentList--; | 1398 buildCounterParentList--; |
| 1374 return o; | 1399 return o; |
| 1375 } | 1400 } |
| 1376 | 1401 |
| 1377 checkParentList(api.ParentList o) { | 1402 checkParentList(api.ParentList o) { |
| 1378 buildCounterParentList++; | 1403 buildCounterParentList++; |
| 1379 if (buildCounterParentList < 3) { | 1404 if (buildCounterParentList < 3) { |
| 1380 unittest.expect(o.etag, unittest.equals('foo')); | 1405 unittest.expect(o.etag, unittest.equals('foo')); |
| 1381 checkUnnamed425(o.items); | 1406 checkUnnamed450(o.items); |
| 1382 unittest.expect(o.kind, unittest.equals('foo')); | 1407 unittest.expect(o.kind, unittest.equals('foo')); |
| 1383 unittest.expect(o.selfLink, unittest.equals('foo')); | 1408 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1384 } | 1409 } |
| 1385 buildCounterParentList--; | 1410 buildCounterParentList--; |
| 1386 } | 1411 } |
| 1387 | 1412 |
| 1388 core.int buildCounterParentReference = 0; | 1413 core.int buildCounterParentReference = 0; |
| 1389 buildParentReference() { | 1414 buildParentReference() { |
| 1390 var o = new api.ParentReference(); | 1415 var o = new api.ParentReference(); |
| 1391 buildCounterParentReference++; | 1416 buildCounterParentReference++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1405 if (buildCounterParentReference < 3) { | 1430 if (buildCounterParentReference < 3) { |
| 1406 unittest.expect(o.id, unittest.equals('foo')); | 1431 unittest.expect(o.id, unittest.equals('foo')); |
| 1407 unittest.expect(o.isRoot, unittest.isTrue); | 1432 unittest.expect(o.isRoot, unittest.isTrue); |
| 1408 unittest.expect(o.kind, unittest.equals('foo')); | 1433 unittest.expect(o.kind, unittest.equals('foo')); |
| 1409 unittest.expect(o.parentLink, unittest.equals('foo')); | 1434 unittest.expect(o.parentLink, unittest.equals('foo')); |
| 1410 unittest.expect(o.selfLink, unittest.equals('foo')); | 1435 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1411 } | 1436 } |
| 1412 buildCounterParentReference--; | 1437 buildCounterParentReference--; |
| 1413 } | 1438 } |
| 1414 | 1439 |
| 1415 buildUnnamed426() { | 1440 buildUnnamed451() { |
| 1416 var o = new core.List<core.String>(); | 1441 var o = new core.List<core.String>(); |
| 1417 o.add("foo"); | 1442 o.add("foo"); |
| 1418 o.add("foo"); | 1443 o.add("foo"); |
| 1419 return o; | 1444 return o; |
| 1420 } | 1445 } |
| 1421 | 1446 |
| 1422 checkUnnamed426(core.List<core.String> o) { | 1447 checkUnnamed451(core.List<core.String> o) { |
| 1423 unittest.expect(o, unittest.hasLength(2)); | 1448 unittest.expect(o, unittest.hasLength(2)); |
| 1424 unittest.expect(o[0], unittest.equals('foo')); | 1449 unittest.expect(o[0], unittest.equals('foo')); |
| 1425 unittest.expect(o[1], unittest.equals('foo')); | 1450 unittest.expect(o[1], unittest.equals('foo')); |
| 1426 } | 1451 } |
| 1427 | 1452 |
| 1428 core.int buildCounterPermission = 0; | 1453 core.int buildCounterPermission = 0; |
| 1429 buildPermission() { | 1454 buildPermission() { |
| 1430 var o = new api.Permission(); | 1455 var o = new api.Permission(); |
| 1431 buildCounterPermission++; | 1456 buildCounterPermission++; |
| 1432 if (buildCounterPermission < 3) { | 1457 if (buildCounterPermission < 3) { |
| 1433 o.additionalRoles = buildUnnamed426(); | 1458 o.additionalRoles = buildUnnamed451(); |
| 1434 o.authKey = "foo"; | 1459 o.authKey = "foo"; |
| 1435 o.domain = "foo"; | 1460 o.domain = "foo"; |
| 1436 o.emailAddress = "foo"; | 1461 o.emailAddress = "foo"; |
| 1437 o.etag = "foo"; | 1462 o.etag = "foo"; |
| 1438 o.id = "foo"; | 1463 o.id = "foo"; |
| 1439 o.kind = "foo"; | 1464 o.kind = "foo"; |
| 1440 o.name = "foo"; | 1465 o.name = "foo"; |
| 1441 o.photoLink = "foo"; | 1466 o.photoLink = "foo"; |
| 1442 o.role = "foo"; | 1467 o.role = "foo"; |
| 1443 o.selfLink = "foo"; | 1468 o.selfLink = "foo"; |
| 1444 o.type = "foo"; | 1469 o.type = "foo"; |
| 1445 o.value = "foo"; | 1470 o.value = "foo"; |
| 1446 o.withLink = true; | 1471 o.withLink = true; |
| 1447 } | 1472 } |
| 1448 buildCounterPermission--; | 1473 buildCounterPermission--; |
| 1449 return o; | 1474 return o; |
| 1450 } | 1475 } |
| 1451 | 1476 |
| 1452 checkPermission(api.Permission o) { | 1477 checkPermission(api.Permission o) { |
| 1453 buildCounterPermission++; | 1478 buildCounterPermission++; |
| 1454 if (buildCounterPermission < 3) { | 1479 if (buildCounterPermission < 3) { |
| 1455 checkUnnamed426(o.additionalRoles); | 1480 checkUnnamed451(o.additionalRoles); |
| 1456 unittest.expect(o.authKey, unittest.equals('foo')); | 1481 unittest.expect(o.authKey, unittest.equals('foo')); |
| 1457 unittest.expect(o.domain, unittest.equals('foo')); | 1482 unittest.expect(o.domain, unittest.equals('foo')); |
| 1458 unittest.expect(o.emailAddress, unittest.equals('foo')); | 1483 unittest.expect(o.emailAddress, unittest.equals('foo')); |
| 1459 unittest.expect(o.etag, unittest.equals('foo')); | 1484 unittest.expect(o.etag, unittest.equals('foo')); |
| 1460 unittest.expect(o.id, unittest.equals('foo')); | 1485 unittest.expect(o.id, unittest.equals('foo')); |
| 1461 unittest.expect(o.kind, unittest.equals('foo')); | 1486 unittest.expect(o.kind, unittest.equals('foo')); |
| 1462 unittest.expect(o.name, unittest.equals('foo')); | 1487 unittest.expect(o.name, unittest.equals('foo')); |
| 1463 unittest.expect(o.photoLink, unittest.equals('foo')); | 1488 unittest.expect(o.photoLink, unittest.equals('foo')); |
| 1464 unittest.expect(o.role, unittest.equals('foo')); | 1489 unittest.expect(o.role, unittest.equals('foo')); |
| 1465 unittest.expect(o.selfLink, unittest.equals('foo')); | 1490 unittest.expect(o.selfLink, unittest.equals('foo')); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1484 | 1509 |
| 1485 checkPermissionId(api.PermissionId o) { | 1510 checkPermissionId(api.PermissionId o) { |
| 1486 buildCounterPermissionId++; | 1511 buildCounterPermissionId++; |
| 1487 if (buildCounterPermissionId < 3) { | 1512 if (buildCounterPermissionId < 3) { |
| 1488 unittest.expect(o.id, unittest.equals('foo')); | 1513 unittest.expect(o.id, unittest.equals('foo')); |
| 1489 unittest.expect(o.kind, unittest.equals('foo')); | 1514 unittest.expect(o.kind, unittest.equals('foo')); |
| 1490 } | 1515 } |
| 1491 buildCounterPermissionId--; | 1516 buildCounterPermissionId--; |
| 1492 } | 1517 } |
| 1493 | 1518 |
| 1494 buildUnnamed427() { | 1519 buildUnnamed452() { |
| 1495 var o = new core.List<api.Permission>(); | 1520 var o = new core.List<api.Permission>(); |
| 1496 o.add(buildPermission()); | 1521 o.add(buildPermission()); |
| 1497 o.add(buildPermission()); | 1522 o.add(buildPermission()); |
| 1498 return o; | 1523 return o; |
| 1499 } | 1524 } |
| 1500 | 1525 |
| 1501 checkUnnamed427(core.List<api.Permission> o) { | 1526 checkUnnamed452(core.List<api.Permission> o) { |
| 1502 unittest.expect(o, unittest.hasLength(2)); | 1527 unittest.expect(o, unittest.hasLength(2)); |
| 1503 checkPermission(o[0]); | 1528 checkPermission(o[0]); |
| 1504 checkPermission(o[1]); | 1529 checkPermission(o[1]); |
| 1505 } | 1530 } |
| 1506 | 1531 |
| 1507 core.int buildCounterPermissionList = 0; | 1532 core.int buildCounterPermissionList = 0; |
| 1508 buildPermissionList() { | 1533 buildPermissionList() { |
| 1509 var o = new api.PermissionList(); | 1534 var o = new api.PermissionList(); |
| 1510 buildCounterPermissionList++; | 1535 buildCounterPermissionList++; |
| 1511 if (buildCounterPermissionList < 3) { | 1536 if (buildCounterPermissionList < 3) { |
| 1512 o.etag = "foo"; | 1537 o.etag = "foo"; |
| 1513 o.items = buildUnnamed427(); | 1538 o.items = buildUnnamed452(); |
| 1514 o.kind = "foo"; | 1539 o.kind = "foo"; |
| 1515 o.selfLink = "foo"; | 1540 o.selfLink = "foo"; |
| 1516 } | 1541 } |
| 1517 buildCounterPermissionList--; | 1542 buildCounterPermissionList--; |
| 1518 return o; | 1543 return o; |
| 1519 } | 1544 } |
| 1520 | 1545 |
| 1521 checkPermissionList(api.PermissionList o) { | 1546 checkPermissionList(api.PermissionList o) { |
| 1522 buildCounterPermissionList++; | 1547 buildCounterPermissionList++; |
| 1523 if (buildCounterPermissionList < 3) { | 1548 if (buildCounterPermissionList < 3) { |
| 1524 unittest.expect(o.etag, unittest.equals('foo')); | 1549 unittest.expect(o.etag, unittest.equals('foo')); |
| 1525 checkUnnamed427(o.items); | 1550 checkUnnamed452(o.items); |
| 1526 unittest.expect(o.kind, unittest.equals('foo')); | 1551 unittest.expect(o.kind, unittest.equals('foo')); |
| 1527 unittest.expect(o.selfLink, unittest.equals('foo')); | 1552 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1528 } | 1553 } |
| 1529 buildCounterPermissionList--; | 1554 buildCounterPermissionList--; |
| 1530 } | 1555 } |
| 1531 | 1556 |
| 1532 core.int buildCounterProperty = 0; | 1557 core.int buildCounterProperty = 0; |
| 1533 buildProperty() { | 1558 buildProperty() { |
| 1534 var o = new api.Property(); | 1559 var o = new api.Property(); |
| 1535 buildCounterProperty++; | 1560 buildCounterProperty++; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1551 unittest.expect(o.etag, unittest.equals('foo')); | 1576 unittest.expect(o.etag, unittest.equals('foo')); |
| 1552 unittest.expect(o.key, unittest.equals('foo')); | 1577 unittest.expect(o.key, unittest.equals('foo')); |
| 1553 unittest.expect(o.kind, unittest.equals('foo')); | 1578 unittest.expect(o.kind, unittest.equals('foo')); |
| 1554 unittest.expect(o.selfLink, unittest.equals('foo')); | 1579 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1555 unittest.expect(o.value, unittest.equals('foo')); | 1580 unittest.expect(o.value, unittest.equals('foo')); |
| 1556 unittest.expect(o.visibility, unittest.equals('foo')); | 1581 unittest.expect(o.visibility, unittest.equals('foo')); |
| 1557 } | 1582 } |
| 1558 buildCounterProperty--; | 1583 buildCounterProperty--; |
| 1559 } | 1584 } |
| 1560 | 1585 |
| 1561 buildUnnamed428() { | 1586 buildUnnamed453() { |
| 1562 var o = new core.List<api.Property>(); | 1587 var o = new core.List<api.Property>(); |
| 1563 o.add(buildProperty()); | 1588 o.add(buildProperty()); |
| 1564 o.add(buildProperty()); | 1589 o.add(buildProperty()); |
| 1565 return o; | 1590 return o; |
| 1566 } | 1591 } |
| 1567 | 1592 |
| 1568 checkUnnamed428(core.List<api.Property> o) { | 1593 checkUnnamed453(core.List<api.Property> o) { |
| 1569 unittest.expect(o, unittest.hasLength(2)); | 1594 unittest.expect(o, unittest.hasLength(2)); |
| 1570 checkProperty(o[0]); | 1595 checkProperty(o[0]); |
| 1571 checkProperty(o[1]); | 1596 checkProperty(o[1]); |
| 1572 } | 1597 } |
| 1573 | 1598 |
| 1574 core.int buildCounterPropertyList = 0; | 1599 core.int buildCounterPropertyList = 0; |
| 1575 buildPropertyList() { | 1600 buildPropertyList() { |
| 1576 var o = new api.PropertyList(); | 1601 var o = new api.PropertyList(); |
| 1577 buildCounterPropertyList++; | 1602 buildCounterPropertyList++; |
| 1578 if (buildCounterPropertyList < 3) { | 1603 if (buildCounterPropertyList < 3) { |
| 1579 o.etag = "foo"; | 1604 o.etag = "foo"; |
| 1580 o.items = buildUnnamed428(); | 1605 o.items = buildUnnamed453(); |
| 1581 o.kind = "foo"; | 1606 o.kind = "foo"; |
| 1582 o.selfLink = "foo"; | 1607 o.selfLink = "foo"; |
| 1583 } | 1608 } |
| 1584 buildCounterPropertyList--; | 1609 buildCounterPropertyList--; |
| 1585 return o; | 1610 return o; |
| 1586 } | 1611 } |
| 1587 | 1612 |
| 1588 checkPropertyList(api.PropertyList o) { | 1613 checkPropertyList(api.PropertyList o) { |
| 1589 buildCounterPropertyList++; | 1614 buildCounterPropertyList++; |
| 1590 if (buildCounterPropertyList < 3) { | 1615 if (buildCounterPropertyList < 3) { |
| 1591 unittest.expect(o.etag, unittest.equals('foo')); | 1616 unittest.expect(o.etag, unittest.equals('foo')); |
| 1592 checkUnnamed428(o.items); | 1617 checkUnnamed453(o.items); |
| 1593 unittest.expect(o.kind, unittest.equals('foo')); | 1618 unittest.expect(o.kind, unittest.equals('foo')); |
| 1594 unittest.expect(o.selfLink, unittest.equals('foo')); | 1619 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1595 } | 1620 } |
| 1596 buildCounterPropertyList--; | 1621 buildCounterPropertyList--; |
| 1597 } | 1622 } |
| 1598 | 1623 |
| 1599 buildUnnamed429() { | 1624 buildUnnamed454() { |
| 1600 var o = new core.Map<core.String, core.String>(); | 1625 var o = new core.Map<core.String, core.String>(); |
| 1601 o["x"] = "foo"; | 1626 o["x"] = "foo"; |
| 1602 o["y"] = "foo"; | 1627 o["y"] = "foo"; |
| 1603 return o; | 1628 return o; |
| 1604 } | 1629 } |
| 1605 | 1630 |
| 1606 checkUnnamed429(core.Map<core.String, core.String> o) { | 1631 checkUnnamed454(core.Map<core.String, core.String> o) { |
| 1607 unittest.expect(o, unittest.hasLength(2)); | 1632 unittest.expect(o, unittest.hasLength(2)); |
| 1608 unittest.expect(o["x"], unittest.equals('foo')); | 1633 unittest.expect(o["x"], unittest.equals('foo')); |
| 1609 unittest.expect(o["y"], unittest.equals('foo')); | 1634 unittest.expect(o["y"], unittest.equals('foo')); |
| 1610 } | 1635 } |
| 1611 | 1636 |
| 1612 core.int buildCounterRevision = 0; | 1637 core.int buildCounterRevision = 0; |
| 1613 buildRevision() { | 1638 buildRevision() { |
| 1614 var o = new api.Revision(); | 1639 var o = new api.Revision(); |
| 1615 buildCounterRevision++; | 1640 buildCounterRevision++; |
| 1616 if (buildCounterRevision < 3) { | 1641 if (buildCounterRevision < 3) { |
| 1617 o.downloadUrl = "foo"; | 1642 o.downloadUrl = "foo"; |
| 1618 o.etag = "foo"; | 1643 o.etag = "foo"; |
| 1619 o.exportLinks = buildUnnamed429(); | 1644 o.exportLinks = buildUnnamed454(); |
| 1620 o.fileSize = "foo"; | 1645 o.fileSize = "foo"; |
| 1621 o.id = "foo"; | 1646 o.id = "foo"; |
| 1622 o.kind = "foo"; | 1647 o.kind = "foo"; |
| 1623 o.lastModifyingUser = buildUser(); | 1648 o.lastModifyingUser = buildUser(); |
| 1624 o.lastModifyingUserName = "foo"; | 1649 o.lastModifyingUserName = "foo"; |
| 1625 o.md5Checksum = "foo"; | 1650 o.md5Checksum = "foo"; |
| 1626 o.mimeType = "foo"; | 1651 o.mimeType = "foo"; |
| 1627 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1652 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1628 o.originalFilename = "foo"; | 1653 o.originalFilename = "foo"; |
| 1629 o.pinned = true; | 1654 o.pinned = true; |
| 1630 o.publishAuto = true; | 1655 o.publishAuto = true; |
| 1631 o.published = true; | 1656 o.published = true; |
| 1632 o.publishedLink = "foo"; | 1657 o.publishedLink = "foo"; |
| 1633 o.publishedOutsideDomain = true; | 1658 o.publishedOutsideDomain = true; |
| 1634 o.selfLink = "foo"; | 1659 o.selfLink = "foo"; |
| 1635 } | 1660 } |
| 1636 buildCounterRevision--; | 1661 buildCounterRevision--; |
| 1637 return o; | 1662 return o; |
| 1638 } | 1663 } |
| 1639 | 1664 |
| 1640 checkRevision(api.Revision o) { | 1665 checkRevision(api.Revision o) { |
| 1641 buildCounterRevision++; | 1666 buildCounterRevision++; |
| 1642 if (buildCounterRevision < 3) { | 1667 if (buildCounterRevision < 3) { |
| 1643 unittest.expect(o.downloadUrl, unittest.equals('foo')); | 1668 unittest.expect(o.downloadUrl, unittest.equals('foo')); |
| 1644 unittest.expect(o.etag, unittest.equals('foo')); | 1669 unittest.expect(o.etag, unittest.equals('foo')); |
| 1645 checkUnnamed429(o.exportLinks); | 1670 checkUnnamed454(o.exportLinks); |
| 1646 unittest.expect(o.fileSize, unittest.equals('foo')); | 1671 unittest.expect(o.fileSize, unittest.equals('foo')); |
| 1647 unittest.expect(o.id, unittest.equals('foo')); | 1672 unittest.expect(o.id, unittest.equals('foo')); |
| 1648 unittest.expect(o.kind, unittest.equals('foo')); | 1673 unittest.expect(o.kind, unittest.equals('foo')); |
| 1649 checkUser(o.lastModifyingUser); | 1674 checkUser(o.lastModifyingUser); |
| 1650 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); | 1675 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); |
| 1651 unittest.expect(o.md5Checksum, unittest.equals('foo')); | 1676 unittest.expect(o.md5Checksum, unittest.equals('foo')); |
| 1652 unittest.expect(o.mimeType, unittest.equals('foo')); | 1677 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1653 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1678 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1654 unittest.expect(o.originalFilename, unittest.equals('foo')); | 1679 unittest.expect(o.originalFilename, unittest.equals('foo')); |
| 1655 unittest.expect(o.pinned, unittest.isTrue); | 1680 unittest.expect(o.pinned, unittest.isTrue); |
| 1656 unittest.expect(o.publishAuto, unittest.isTrue); | 1681 unittest.expect(o.publishAuto, unittest.isTrue); |
| 1657 unittest.expect(o.published, unittest.isTrue); | 1682 unittest.expect(o.published, unittest.isTrue); |
| 1658 unittest.expect(o.publishedLink, unittest.equals('foo')); | 1683 unittest.expect(o.publishedLink, unittest.equals('foo')); |
| 1659 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); | 1684 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); |
| 1660 unittest.expect(o.selfLink, unittest.equals('foo')); | 1685 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1661 } | 1686 } |
| 1662 buildCounterRevision--; | 1687 buildCounterRevision--; |
| 1663 } | 1688 } |
| 1664 | 1689 |
| 1665 buildUnnamed430() { | 1690 buildUnnamed455() { |
| 1666 var o = new core.List<api.Revision>(); | 1691 var o = new core.List<api.Revision>(); |
| 1667 o.add(buildRevision()); | 1692 o.add(buildRevision()); |
| 1668 o.add(buildRevision()); | 1693 o.add(buildRevision()); |
| 1669 return o; | 1694 return o; |
| 1670 } | 1695 } |
| 1671 | 1696 |
| 1672 checkUnnamed430(core.List<api.Revision> o) { | 1697 checkUnnamed455(core.List<api.Revision> o) { |
| 1673 unittest.expect(o, unittest.hasLength(2)); | 1698 unittest.expect(o, unittest.hasLength(2)); |
| 1674 checkRevision(o[0]); | 1699 checkRevision(o[0]); |
| 1675 checkRevision(o[1]); | 1700 checkRevision(o[1]); |
| 1676 } | 1701 } |
| 1677 | 1702 |
| 1678 core.int buildCounterRevisionList = 0; | 1703 core.int buildCounterRevisionList = 0; |
| 1679 buildRevisionList() { | 1704 buildRevisionList() { |
| 1680 var o = new api.RevisionList(); | 1705 var o = new api.RevisionList(); |
| 1681 buildCounterRevisionList++; | 1706 buildCounterRevisionList++; |
| 1682 if (buildCounterRevisionList < 3) { | 1707 if (buildCounterRevisionList < 3) { |
| 1683 o.etag = "foo"; | 1708 o.etag = "foo"; |
| 1684 o.items = buildUnnamed430(); | 1709 o.items = buildUnnamed455(); |
| 1685 o.kind = "foo"; | 1710 o.kind = "foo"; |
| 1686 o.selfLink = "foo"; | 1711 o.selfLink = "foo"; |
| 1687 } | 1712 } |
| 1688 buildCounterRevisionList--; | 1713 buildCounterRevisionList--; |
| 1689 return o; | 1714 return o; |
| 1690 } | 1715 } |
| 1691 | 1716 |
| 1692 checkRevisionList(api.RevisionList o) { | 1717 checkRevisionList(api.RevisionList o) { |
| 1693 buildCounterRevisionList++; | 1718 buildCounterRevisionList++; |
| 1694 if (buildCounterRevisionList < 3) { | 1719 if (buildCounterRevisionList < 3) { |
| 1695 unittest.expect(o.etag, unittest.equals('foo')); | 1720 unittest.expect(o.etag, unittest.equals('foo')); |
| 1696 checkUnnamed430(o.items); | 1721 checkUnnamed455(o.items); |
| 1697 unittest.expect(o.kind, unittest.equals('foo')); | 1722 unittest.expect(o.kind, unittest.equals('foo')); |
| 1698 unittest.expect(o.selfLink, unittest.equals('foo')); | 1723 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1699 } | 1724 } |
| 1700 buildCounterRevisionList--; | 1725 buildCounterRevisionList--; |
| 1701 } | 1726 } |
| 1702 | 1727 |
| 1703 core.int buildCounterUserPicture = 0; | 1728 core.int buildCounterUserPicture = 0; |
| 1704 buildUserPicture() { | 1729 buildUserPicture() { |
| 1705 var o = new api.UserPicture(); | 1730 var o = new api.UserPicture(); |
| 1706 buildCounterUserPicture++; | 1731 buildCounterUserPicture++; |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 | 2002 |
| 1978 unittest.group("obj-schema-FileThumbnail", () { | 2003 unittest.group("obj-schema-FileThumbnail", () { |
| 1979 unittest.test("to-json--from-json", () { | 2004 unittest.test("to-json--from-json", () { |
| 1980 var o = buildFileThumbnail(); | 2005 var o = buildFileThumbnail(); |
| 1981 var od = new api.FileThumbnail.fromJson(o.toJson()); | 2006 var od = new api.FileThumbnail.fromJson(o.toJson()); |
| 1982 checkFileThumbnail(od); | 2007 checkFileThumbnail(od); |
| 1983 }); | 2008 }); |
| 1984 }); | 2009 }); |
| 1985 | 2010 |
| 1986 | 2011 |
| 2012 unittest.group("obj-schema-FileVideoMediaMetadata", () { |
| 2013 unittest.test("to-json--from-json", () { |
| 2014 var o = buildFileVideoMediaMetadata(); |
| 2015 var od = new api.FileVideoMediaMetadata.fromJson(o.toJson()); |
| 2016 checkFileVideoMediaMetadata(od); |
| 2017 }); |
| 2018 }); |
| 2019 |
| 2020 |
| 1987 unittest.group("obj-schema-File", () { | 2021 unittest.group("obj-schema-File", () { |
| 1988 unittest.test("to-json--from-json", () { | 2022 unittest.test("to-json--from-json", () { |
| 1989 var o = buildFile(); | 2023 var o = buildFile(); |
| 1990 var od = new api.File.fromJson(o.toJson()); | 2024 var od = new api.File.fromJson(o.toJson()); |
| 1991 checkFile(od); | 2025 checkFile(od); |
| 1992 }); | 2026 }); |
| 1993 }); | 2027 }); |
| 1994 | 2028 |
| 1995 | 2029 |
| 1996 unittest.group("obj-schema-FileList", () { | 2030 unittest.group("obj-schema-FileList", () { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2107 var mock = new common_test.HttpServerMock(); | 2141 var mock = new common_test.HttpServerMock(); |
| 2108 api.AboutResourceApi res = new api.DriveApi(mock).about; | 2142 api.AboutResourceApi res = new api.DriveApi(mock).about; |
| 2109 var arg_includeSubscribed = true; | 2143 var arg_includeSubscribed = true; |
| 2110 var arg_maxChangeIdCount = "foo"; | 2144 var arg_maxChangeIdCount = "foo"; |
| 2111 var arg_startChangeId = "foo"; | 2145 var arg_startChangeId = "foo"; |
| 2112 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2146 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2113 var path = (req.url).path; | 2147 var path = (req.url).path; |
| 2114 var pathOffset = 0; | 2148 var pathOffset = 0; |
| 2115 var index; | 2149 var index; |
| 2116 var subPart; | 2150 var subPart; |
| 2117 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2151 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2118 pathOffset += 10; | 2152 pathOffset += 1; |
| 2153 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2154 pathOffset += 9; |
| 2119 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("about")); | 2155 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("about")); |
| 2120 pathOffset += 5; | 2156 pathOffset += 5; |
| 2121 | 2157 |
| 2122 var query = (req.url).query; | 2158 var query = (req.url).query; |
| 2123 var queryOffset = 0; | 2159 var queryOffset = 0; |
| 2124 var queryMap = {}; | 2160 var queryMap = {}; |
| 2125 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2161 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2126 parseBool(n) { | 2162 parseBool(n) { |
| 2127 if (n == "true") return true; | 2163 if (n == "true") return true; |
| 2128 if (n == "false") return false; | 2164 if (n == "false") return false; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2158 unittest.test("method--get", () { | 2194 unittest.test("method--get", () { |
| 2159 | 2195 |
| 2160 var mock = new common_test.HttpServerMock(); | 2196 var mock = new common_test.HttpServerMock(); |
| 2161 api.AppsResourceApi res = new api.DriveApi(mock).apps; | 2197 api.AppsResourceApi res = new api.DriveApi(mock).apps; |
| 2162 var arg_appId = "foo"; | 2198 var arg_appId = "foo"; |
| 2163 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2199 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2164 var path = (req.url).path; | 2200 var path = (req.url).path; |
| 2165 var pathOffset = 0; | 2201 var pathOffset = 0; |
| 2166 var index; | 2202 var index; |
| 2167 var subPart; | 2203 var subPart; |
| 2168 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2204 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2169 pathOffset += 10; | 2205 pathOffset += 1; |
| 2206 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2207 pathOffset += 9; |
| 2170 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("apps/")); | 2208 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("apps/")); |
| 2171 pathOffset += 5; | 2209 pathOffset += 5; |
| 2172 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2210 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2173 pathOffset = path.length; | 2211 pathOffset = path.length; |
| 2174 unittest.expect(subPart, unittest.equals("$arg_appId")); | 2212 unittest.expect(subPart, unittest.equals("$arg_appId")); |
| 2175 | 2213 |
| 2176 var query = (req.url).query; | 2214 var query = (req.url).query; |
| 2177 var queryOffset = 0; | 2215 var queryOffset = 0; |
| 2178 var queryMap = {}; | 2216 var queryMap = {}; |
| 2179 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2217 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2207 var mock = new common_test.HttpServerMock(); | 2245 var mock = new common_test.HttpServerMock(); |
| 2208 api.AppsResourceApi res = new api.DriveApi(mock).apps; | 2246 api.AppsResourceApi res = new api.DriveApi(mock).apps; |
| 2209 var arg_appFilterExtensions = "foo"; | 2247 var arg_appFilterExtensions = "foo"; |
| 2210 var arg_appFilterMimeTypes = "foo"; | 2248 var arg_appFilterMimeTypes = "foo"; |
| 2211 var arg_languageCode = "foo"; | 2249 var arg_languageCode = "foo"; |
| 2212 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2250 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2213 var path = (req.url).path; | 2251 var path = (req.url).path; |
| 2214 var pathOffset = 0; | 2252 var pathOffset = 0; |
| 2215 var index; | 2253 var index; |
| 2216 var subPart; | 2254 var subPart; |
| 2217 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2255 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2218 pathOffset += 10; | 2256 pathOffset += 1; |
| 2257 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2258 pathOffset += 9; |
| 2219 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("apps")); | 2259 unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equ
als("apps")); |
| 2220 pathOffset += 4; | 2260 pathOffset += 4; |
| 2221 | 2261 |
| 2222 var query = (req.url).query; | 2262 var query = (req.url).query; |
| 2223 var queryOffset = 0; | 2263 var queryOffset = 0; |
| 2224 var queryMap = {}; | 2264 var queryMap = {}; |
| 2225 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2265 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2226 parseBool(n) { | 2266 parseBool(n) { |
| 2227 if (n == "true") return true; | 2267 if (n == "true") return true; |
| 2228 if (n == "false") return false; | 2268 if (n == "false") return false; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2258 unittest.test("method--get", () { | 2298 unittest.test("method--get", () { |
| 2259 | 2299 |
| 2260 var mock = new common_test.HttpServerMock(); | 2300 var mock = new common_test.HttpServerMock(); |
| 2261 api.ChangesResourceApi res = new api.DriveApi(mock).changes; | 2301 api.ChangesResourceApi res = new api.DriveApi(mock).changes; |
| 2262 var arg_changeId = "foo"; | 2302 var arg_changeId = "foo"; |
| 2263 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2303 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2264 var path = (req.url).path; | 2304 var path = (req.url).path; |
| 2265 var pathOffset = 0; | 2305 var pathOffset = 0; |
| 2266 var index; | 2306 var index; |
| 2267 var subPart; | 2307 var subPart; |
| 2268 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2308 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2269 pathOffset += 10; | 2309 pathOffset += 1; |
| 2310 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2311 pathOffset += 9; |
| 2270 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("changes/")); | 2312 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("changes/")); |
| 2271 pathOffset += 8; | 2313 pathOffset += 8; |
| 2272 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2314 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2273 pathOffset = path.length; | 2315 pathOffset = path.length; |
| 2274 unittest.expect(subPart, unittest.equals("$arg_changeId")); | 2316 unittest.expect(subPart, unittest.equals("$arg_changeId")); |
| 2275 | 2317 |
| 2276 var query = (req.url).query; | 2318 var query = (req.url).query; |
| 2277 var queryOffset = 0; | 2319 var queryOffset = 0; |
| 2278 var queryMap = {}; | 2320 var queryMap = {}; |
| 2279 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2321 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2309 var arg_includeDeleted = true; | 2351 var arg_includeDeleted = true; |
| 2310 var arg_includeSubscribed = true; | 2352 var arg_includeSubscribed = true; |
| 2311 var arg_maxResults = 42; | 2353 var arg_maxResults = 42; |
| 2312 var arg_pageToken = "foo"; | 2354 var arg_pageToken = "foo"; |
| 2313 var arg_startChangeId = "foo"; | 2355 var arg_startChangeId = "foo"; |
| 2314 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2356 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2315 var path = (req.url).path; | 2357 var path = (req.url).path; |
| 2316 var pathOffset = 0; | 2358 var pathOffset = 0; |
| 2317 var index; | 2359 var index; |
| 2318 var subPart; | 2360 var subPart; |
| 2319 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2361 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2320 pathOffset += 10; | 2362 pathOffset += 1; |
| 2363 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2364 pathOffset += 9; |
| 2321 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("changes")); | 2365 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("changes")); |
| 2322 pathOffset += 7; | 2366 pathOffset += 7; |
| 2323 | 2367 |
| 2324 var query = (req.url).query; | 2368 var query = (req.url).query; |
| 2325 var queryOffset = 0; | 2369 var queryOffset = 0; |
| 2326 var queryMap = {}; | 2370 var queryMap = {}; |
| 2327 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2371 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2328 parseBool(n) { | 2372 parseBool(n) { |
| 2329 if (n == "true") return true; | 2373 if (n == "true") return true; |
| 2330 if (n == "false") return false; | 2374 if (n == "false") return false; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2366 var arg_pageToken = "foo"; | 2410 var arg_pageToken = "foo"; |
| 2367 var arg_startChangeId = "foo"; | 2411 var arg_startChangeId = "foo"; |
| 2368 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2412 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2369 var obj = new api.Channel.fromJson(json); | 2413 var obj = new api.Channel.fromJson(json); |
| 2370 checkChannel(obj); | 2414 checkChannel(obj); |
| 2371 | 2415 |
| 2372 var path = (req.url).path; | 2416 var path = (req.url).path; |
| 2373 var pathOffset = 0; | 2417 var pathOffset = 0; |
| 2374 var index; | 2418 var index; |
| 2375 var subPart; | 2419 var subPart; |
| 2376 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2420 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2377 pathOffset += 10; | 2421 pathOffset += 1; |
| 2422 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2423 pathOffset += 9; |
| 2378 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("changes/watch")); | 2424 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("changes/watch")); |
| 2379 pathOffset += 13; | 2425 pathOffset += 13; |
| 2380 | 2426 |
| 2381 var query = (req.url).query; | 2427 var query = (req.url).query; |
| 2382 var queryOffset = 0; | 2428 var queryOffset = 0; |
| 2383 var queryMap = {}; | 2429 var queryMap = {}; |
| 2384 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2430 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2385 parseBool(n) { | 2431 parseBool(n) { |
| 2386 if (n == "true") return true; | 2432 if (n == "true") return true; |
| 2387 if (n == "false") return false; | 2433 if (n == "false") return false; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2422 api.ChannelsResourceApi res = new api.DriveApi(mock).channels; | 2468 api.ChannelsResourceApi res = new api.DriveApi(mock).channels; |
| 2423 var arg_request = buildChannel(); | 2469 var arg_request = buildChannel(); |
| 2424 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2470 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2425 var obj = new api.Channel.fromJson(json); | 2471 var obj = new api.Channel.fromJson(json); |
| 2426 checkChannel(obj); | 2472 checkChannel(obj); |
| 2427 | 2473 |
| 2428 var path = (req.url).path; | 2474 var path = (req.url).path; |
| 2429 var pathOffset = 0; | 2475 var pathOffset = 0; |
| 2430 var index; | 2476 var index; |
| 2431 var subPart; | 2477 var subPart; |
| 2432 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2478 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2433 pathOffset += 10; | 2479 pathOffset += 1; |
| 2480 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2481 pathOffset += 9; |
| 2434 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("channels/stop")); | 2482 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("channels/stop")); |
| 2435 pathOffset += 13; | 2483 pathOffset += 13; |
| 2436 | 2484 |
| 2437 var query = (req.url).query; | 2485 var query = (req.url).query; |
| 2438 var queryOffset = 0; | 2486 var queryOffset = 0; |
| 2439 var queryMap = {}; | 2487 var queryMap = {}; |
| 2440 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2488 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2441 parseBool(n) { | 2489 parseBool(n) { |
| 2442 if (n == "true") return true; | 2490 if (n == "true") return true; |
| 2443 if (n == "false") return false; | 2491 if (n == "false") return false; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 2469 | 2517 |
| 2470 var mock = new common_test.HttpServerMock(); | 2518 var mock = new common_test.HttpServerMock(); |
| 2471 api.ChildrenResourceApi res = new api.DriveApi(mock).children; | 2519 api.ChildrenResourceApi res = new api.DriveApi(mock).children; |
| 2472 var arg_folderId = "foo"; | 2520 var arg_folderId = "foo"; |
| 2473 var arg_childId = "foo"; | 2521 var arg_childId = "foo"; |
| 2474 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2522 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2475 var path = (req.url).path; | 2523 var path = (req.url).path; |
| 2476 var pathOffset = 0; | 2524 var pathOffset = 0; |
| 2477 var index; | 2525 var index; |
| 2478 var subPart; | 2526 var subPart; |
| 2479 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2527 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2480 pathOffset += 10; | 2528 pathOffset += 1; |
| 2529 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2530 pathOffset += 9; |
| 2481 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2531 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2482 pathOffset += 6; | 2532 pathOffset += 6; |
| 2483 index = path.indexOf("/children/", pathOffset); | 2533 index = path.indexOf("/children/", pathOffset); |
| 2484 unittest.expect(index >= 0, unittest.isTrue); | 2534 unittest.expect(index >= 0, unittest.isTrue); |
| 2485 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2535 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2486 pathOffset = index; | 2536 pathOffset = index; |
| 2487 unittest.expect(subPart, unittest.equals("$arg_folderId")); | 2537 unittest.expect(subPart, unittest.equals("$arg_folderId")); |
| 2488 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/children/")); | 2538 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/children/")); |
| 2489 pathOffset += 10; | 2539 pathOffset += 10; |
| 2490 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2540 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2522 | 2572 |
| 2523 var mock = new common_test.HttpServerMock(); | 2573 var mock = new common_test.HttpServerMock(); |
| 2524 api.ChildrenResourceApi res = new api.DriveApi(mock).children; | 2574 api.ChildrenResourceApi res = new api.DriveApi(mock).children; |
| 2525 var arg_folderId = "foo"; | 2575 var arg_folderId = "foo"; |
| 2526 var arg_childId = "foo"; | 2576 var arg_childId = "foo"; |
| 2527 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2577 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2528 var path = (req.url).path; | 2578 var path = (req.url).path; |
| 2529 var pathOffset = 0; | 2579 var pathOffset = 0; |
| 2530 var index; | 2580 var index; |
| 2531 var subPart; | 2581 var subPart; |
| 2532 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2533 pathOffset += 10; | 2583 pathOffset += 1; |
| 2584 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2585 pathOffset += 9; |
| 2534 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2586 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2535 pathOffset += 6; | 2587 pathOffset += 6; |
| 2536 index = path.indexOf("/children/", pathOffset); | 2588 index = path.indexOf("/children/", pathOffset); |
| 2537 unittest.expect(index >= 0, unittest.isTrue); | 2589 unittest.expect(index >= 0, unittest.isTrue); |
| 2538 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2590 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2539 pathOffset = index; | 2591 pathOffset = index; |
| 2540 unittest.expect(subPart, unittest.equals("$arg_folderId")); | 2592 unittest.expect(subPart, unittest.equals("$arg_folderId")); |
| 2541 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/children/")); | 2593 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/children/")); |
| 2542 pathOffset += 10; | 2594 pathOffset += 10; |
| 2543 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2595 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2580 var arg_request = buildChildReference(); | 2632 var arg_request = buildChildReference(); |
| 2581 var arg_folderId = "foo"; | 2633 var arg_folderId = "foo"; |
| 2582 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2634 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2583 var obj = new api.ChildReference.fromJson(json); | 2635 var obj = new api.ChildReference.fromJson(json); |
| 2584 checkChildReference(obj); | 2636 checkChildReference(obj); |
| 2585 | 2637 |
| 2586 var path = (req.url).path; | 2638 var path = (req.url).path; |
| 2587 var pathOffset = 0; | 2639 var pathOffset = 0; |
| 2588 var index; | 2640 var index; |
| 2589 var subPart; | 2641 var subPart; |
| 2590 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2642 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2591 pathOffset += 10; | 2643 pathOffset += 1; |
| 2644 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2645 pathOffset += 9; |
| 2592 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2646 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2593 pathOffset += 6; | 2647 pathOffset += 6; |
| 2594 index = path.indexOf("/children", pathOffset); | 2648 index = path.indexOf("/children", pathOffset); |
| 2595 unittest.expect(index >= 0, unittest.isTrue); | 2649 unittest.expect(index >= 0, unittest.isTrue); |
| 2596 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2650 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2597 pathOffset = index; | 2651 pathOffset = index; |
| 2598 unittest.expect(subPart, unittest.equals("$arg_folderId")); | 2652 unittest.expect(subPart, unittest.equals("$arg_folderId")); |
| 2599 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/children")); | 2653 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/children")); |
| 2600 pathOffset += 9; | 2654 pathOffset += 9; |
| 2601 | 2655 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2634 api.ChildrenResourceApi res = new api.DriveApi(mock).children; | 2688 api.ChildrenResourceApi res = new api.DriveApi(mock).children; |
| 2635 var arg_folderId = "foo"; | 2689 var arg_folderId = "foo"; |
| 2636 var arg_maxResults = 42; | 2690 var arg_maxResults = 42; |
| 2637 var arg_pageToken = "foo"; | 2691 var arg_pageToken = "foo"; |
| 2638 var arg_q = "foo"; | 2692 var arg_q = "foo"; |
| 2639 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2693 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2640 var path = (req.url).path; | 2694 var path = (req.url).path; |
| 2641 var pathOffset = 0; | 2695 var pathOffset = 0; |
| 2642 var index; | 2696 var index; |
| 2643 var subPart; | 2697 var subPart; |
| 2644 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2698 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2645 pathOffset += 10; | 2699 pathOffset += 1; |
| 2700 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2701 pathOffset += 9; |
| 2646 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2702 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2647 pathOffset += 6; | 2703 pathOffset += 6; |
| 2648 index = path.indexOf("/children", pathOffset); | 2704 index = path.indexOf("/children", pathOffset); |
| 2649 unittest.expect(index >= 0, unittest.isTrue); | 2705 unittest.expect(index >= 0, unittest.isTrue); |
| 2650 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2706 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2651 pathOffset = index; | 2707 pathOffset = index; |
| 2652 unittest.expect(subPart, unittest.equals("$arg_folderId")); | 2708 unittest.expect(subPart, unittest.equals("$arg_folderId")); |
| 2653 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/children")); | 2709 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/children")); |
| 2654 pathOffset += 9; | 2710 pathOffset += 9; |
| 2655 | 2711 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2693 | 2749 |
| 2694 var mock = new common_test.HttpServerMock(); | 2750 var mock = new common_test.HttpServerMock(); |
| 2695 api.CommentsResourceApi res = new api.DriveApi(mock).comments; | 2751 api.CommentsResourceApi res = new api.DriveApi(mock).comments; |
| 2696 var arg_fileId = "foo"; | 2752 var arg_fileId = "foo"; |
| 2697 var arg_commentId = "foo"; | 2753 var arg_commentId = "foo"; |
| 2698 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2754 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2699 var path = (req.url).path; | 2755 var path = (req.url).path; |
| 2700 var pathOffset = 0; | 2756 var pathOffset = 0; |
| 2701 var index; | 2757 var index; |
| 2702 var subPart; | 2758 var subPart; |
| 2703 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2704 pathOffset += 10; | 2760 pathOffset += 1; |
| 2761 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2762 pathOffset += 9; |
| 2705 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2763 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2706 pathOffset += 6; | 2764 pathOffset += 6; |
| 2707 index = path.indexOf("/comments/", pathOffset); | 2765 index = path.indexOf("/comments/", pathOffset); |
| 2708 unittest.expect(index >= 0, unittest.isTrue); | 2766 unittest.expect(index >= 0, unittest.isTrue); |
| 2709 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2767 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2710 pathOffset = index; | 2768 pathOffset = index; |
| 2711 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 2769 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 2712 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 2770 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 2713 pathOffset += 10; | 2771 pathOffset += 10; |
| 2714 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2772 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2747 var mock = new common_test.HttpServerMock(); | 2805 var mock = new common_test.HttpServerMock(); |
| 2748 api.CommentsResourceApi res = new api.DriveApi(mock).comments; | 2806 api.CommentsResourceApi res = new api.DriveApi(mock).comments; |
| 2749 var arg_fileId = "foo"; | 2807 var arg_fileId = "foo"; |
| 2750 var arg_commentId = "foo"; | 2808 var arg_commentId = "foo"; |
| 2751 var arg_includeDeleted = true; | 2809 var arg_includeDeleted = true; |
| 2752 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2810 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2753 var path = (req.url).path; | 2811 var path = (req.url).path; |
| 2754 var pathOffset = 0; | 2812 var pathOffset = 0; |
| 2755 var index; | 2813 var index; |
| 2756 var subPart; | 2814 var subPart; |
| 2757 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2815 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2758 pathOffset += 10; | 2816 pathOffset += 1; |
| 2817 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2818 pathOffset += 9; |
| 2759 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2819 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2760 pathOffset += 6; | 2820 pathOffset += 6; |
| 2761 index = path.indexOf("/comments/", pathOffset); | 2821 index = path.indexOf("/comments/", pathOffset); |
| 2762 unittest.expect(index >= 0, unittest.isTrue); | 2822 unittest.expect(index >= 0, unittest.isTrue); |
| 2763 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2823 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2764 pathOffset = index; | 2824 pathOffset = index; |
| 2765 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 2825 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 2766 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 2826 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 2767 pathOffset += 10; | 2827 pathOffset += 10; |
| 2768 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2828 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2806 var arg_request = buildComment(); | 2866 var arg_request = buildComment(); |
| 2807 var arg_fileId = "foo"; | 2867 var arg_fileId = "foo"; |
| 2808 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2868 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2809 var obj = new api.Comment.fromJson(json); | 2869 var obj = new api.Comment.fromJson(json); |
| 2810 checkComment(obj); | 2870 checkComment(obj); |
| 2811 | 2871 |
| 2812 var path = (req.url).path; | 2872 var path = (req.url).path; |
| 2813 var pathOffset = 0; | 2873 var pathOffset = 0; |
| 2814 var index; | 2874 var index; |
| 2815 var subPart; | 2875 var subPart; |
| 2816 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2876 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2817 pathOffset += 10; | 2877 pathOffset += 1; |
| 2878 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2879 pathOffset += 9; |
| 2818 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2880 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2819 pathOffset += 6; | 2881 pathOffset += 6; |
| 2820 index = path.indexOf("/comments", pathOffset); | 2882 index = path.indexOf("/comments", pathOffset); |
| 2821 unittest.expect(index >= 0, unittest.isTrue); | 2883 unittest.expect(index >= 0, unittest.isTrue); |
| 2822 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2884 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2823 pathOffset = index; | 2885 pathOffset = index; |
| 2824 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 2886 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 2825 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); | 2887 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); |
| 2826 pathOffset += 9; | 2888 pathOffset += 9; |
| 2827 | 2889 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2861 var arg_fileId = "foo"; | 2923 var arg_fileId = "foo"; |
| 2862 var arg_includeDeleted = true; | 2924 var arg_includeDeleted = true; |
| 2863 var arg_maxResults = 42; | 2925 var arg_maxResults = 42; |
| 2864 var arg_pageToken = "foo"; | 2926 var arg_pageToken = "foo"; |
| 2865 var arg_updatedMin = "foo"; | 2927 var arg_updatedMin = "foo"; |
| 2866 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2928 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2867 var path = (req.url).path; | 2929 var path = (req.url).path; |
| 2868 var pathOffset = 0; | 2930 var pathOffset = 0; |
| 2869 var index; | 2931 var index; |
| 2870 var subPart; | 2932 var subPart; |
| 2871 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2933 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2872 pathOffset += 10; | 2934 pathOffset += 1; |
| 2935 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2936 pathOffset += 9; |
| 2873 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2937 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2874 pathOffset += 6; | 2938 pathOffset += 6; |
| 2875 index = path.indexOf("/comments", pathOffset); | 2939 index = path.indexOf("/comments", pathOffset); |
| 2876 unittest.expect(index >= 0, unittest.isTrue); | 2940 unittest.expect(index >= 0, unittest.isTrue); |
| 2877 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2941 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2878 pathOffset = index; | 2942 pathOffset = index; |
| 2879 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 2943 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 2880 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); | 2944 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); |
| 2881 pathOffset += 9; | 2945 pathOffset += 9; |
| 2882 | 2946 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2921 var arg_fileId = "foo"; | 2985 var arg_fileId = "foo"; |
| 2922 var arg_commentId = "foo"; | 2986 var arg_commentId = "foo"; |
| 2923 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2987 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2924 var obj = new api.Comment.fromJson(json); | 2988 var obj = new api.Comment.fromJson(json); |
| 2925 checkComment(obj); | 2989 checkComment(obj); |
| 2926 | 2990 |
| 2927 var path = (req.url).path; | 2991 var path = (req.url).path; |
| 2928 var pathOffset = 0; | 2992 var pathOffset = 0; |
| 2929 var index; | 2993 var index; |
| 2930 var subPart; | 2994 var subPart; |
| 2931 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 2995 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2932 pathOffset += 10; | 2996 pathOffset += 1; |
| 2997 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 2998 pathOffset += 9; |
| 2933 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 2999 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2934 pathOffset += 6; | 3000 pathOffset += 6; |
| 2935 index = path.indexOf("/comments/", pathOffset); | 3001 index = path.indexOf("/comments/", pathOffset); |
| 2936 unittest.expect(index >= 0, unittest.isTrue); | 3002 unittest.expect(index >= 0, unittest.isTrue); |
| 2937 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3003 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2938 pathOffset = index; | 3004 pathOffset = index; |
| 2939 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3005 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 2940 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 3006 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 2941 pathOffset += 10; | 3007 pathOffset += 10; |
| 2942 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3008 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2980 var arg_fileId = "foo"; | 3046 var arg_fileId = "foo"; |
| 2981 var arg_commentId = "foo"; | 3047 var arg_commentId = "foo"; |
| 2982 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3048 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2983 var obj = new api.Comment.fromJson(json); | 3049 var obj = new api.Comment.fromJson(json); |
| 2984 checkComment(obj); | 3050 checkComment(obj); |
| 2985 | 3051 |
| 2986 var path = (req.url).path; | 3052 var path = (req.url).path; |
| 2987 var pathOffset = 0; | 3053 var pathOffset = 0; |
| 2988 var index; | 3054 var index; |
| 2989 var subPart; | 3055 var subPart; |
| 2990 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3056 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2991 pathOffset += 10; | 3057 pathOffset += 1; |
| 3058 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3059 pathOffset += 9; |
| 2992 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3060 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 2993 pathOffset += 6; | 3061 pathOffset += 6; |
| 2994 index = path.indexOf("/comments/", pathOffset); | 3062 index = path.indexOf("/comments/", pathOffset); |
| 2995 unittest.expect(index >= 0, unittest.isTrue); | 3063 unittest.expect(index >= 0, unittest.isTrue); |
| 2996 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3064 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2997 pathOffset = index; | 3065 pathOffset = index; |
| 2998 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3066 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 2999 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 3067 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 3000 pathOffset += 10; | 3068 pathOffset += 10; |
| 3001 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3069 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3049 var arg_timedTextTrackName = "foo"; | 3117 var arg_timedTextTrackName = "foo"; |
| 3050 var arg_visibility = "foo"; | 3118 var arg_visibility = "foo"; |
| 3051 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3119 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3052 var obj = new api.File.fromJson(json); | 3120 var obj = new api.File.fromJson(json); |
| 3053 checkFile(obj); | 3121 checkFile(obj); |
| 3054 | 3122 |
| 3055 var path = (req.url).path; | 3123 var path = (req.url).path; |
| 3056 var pathOffset = 0; | 3124 var pathOffset = 0; |
| 3057 var index; | 3125 var index; |
| 3058 var subPart; | 3126 var subPart; |
| 3059 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3127 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3060 pathOffset += 10; | 3128 pathOffset += 1; |
| 3129 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3130 pathOffset += 9; |
| 3061 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3131 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3062 pathOffset += 6; | 3132 pathOffset += 6; |
| 3063 index = path.indexOf("/copy", pathOffset); | 3133 index = path.indexOf("/copy", pathOffset); |
| 3064 unittest.expect(index >= 0, unittest.isTrue); | 3134 unittest.expect(index >= 0, unittest.isTrue); |
| 3065 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3135 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3066 pathOffset = index; | 3136 pathOffset = index; |
| 3067 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3137 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3068 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/copy")); | 3138 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/copy")); |
| 3069 pathOffset += 5; | 3139 pathOffset += 5; |
| 3070 | 3140 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3107 unittest.test("method--delete", () { | 3177 unittest.test("method--delete", () { |
| 3108 | 3178 |
| 3109 var mock = new common_test.HttpServerMock(); | 3179 var mock = new common_test.HttpServerMock(); |
| 3110 api.FilesResourceApi res = new api.DriveApi(mock).files; | 3180 api.FilesResourceApi res = new api.DriveApi(mock).files; |
| 3111 var arg_fileId = "foo"; | 3181 var arg_fileId = "foo"; |
| 3112 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3182 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3113 var path = (req.url).path; | 3183 var path = (req.url).path; |
| 3114 var pathOffset = 0; | 3184 var pathOffset = 0; |
| 3115 var index; | 3185 var index; |
| 3116 var subPart; | 3186 var subPart; |
| 3117 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3187 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3118 pathOffset += 10; | 3188 pathOffset += 1; |
| 3189 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3190 pathOffset += 9; |
| 3119 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3191 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3120 pathOffset += 6; | 3192 pathOffset += 6; |
| 3121 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3193 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3122 pathOffset = path.length; | 3194 pathOffset = path.length; |
| 3123 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3195 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3124 | 3196 |
| 3125 var query = (req.url).query; | 3197 var query = (req.url).query; |
| 3126 var queryOffset = 0; | 3198 var queryOffset = 0; |
| 3127 var queryMap = {}; | 3199 var queryMap = {}; |
| 3128 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3200 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 3151 | 3223 |
| 3152 unittest.test("method--emptyTrash", () { | 3224 unittest.test("method--emptyTrash", () { |
| 3153 | 3225 |
| 3154 var mock = new common_test.HttpServerMock(); | 3226 var mock = new common_test.HttpServerMock(); |
| 3155 api.FilesResourceApi res = new api.DriveApi(mock).files; | 3227 api.FilesResourceApi res = new api.DriveApi(mock).files; |
| 3156 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3228 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3157 var path = (req.url).path; | 3229 var path = (req.url).path; |
| 3158 var pathOffset = 0; | 3230 var pathOffset = 0; |
| 3159 var index; | 3231 var index; |
| 3160 var subPart; | 3232 var subPart; |
| 3161 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3233 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3162 pathOffset += 10; | 3234 pathOffset += 1; |
| 3235 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3236 pathOffset += 9; |
| 3163 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("files/trash")); | 3237 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("files/trash")); |
| 3164 pathOffset += 11; | 3238 pathOffset += 11; |
| 3165 | 3239 |
| 3166 var query = (req.url).query; | 3240 var query = (req.url).query; |
| 3167 var queryOffset = 0; | 3241 var queryOffset = 0; |
| 3168 var queryMap = {}; | 3242 var queryMap = {}; |
| 3169 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3243 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3170 parseBool(n) { | 3244 parseBool(n) { |
| 3171 if (n == "true") return true; | 3245 if (n == "true") return true; |
| 3172 if (n == "false") return false; | 3246 if (n == "false") return false; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 3195 var mock = new common_test.HttpServerMock(); | 3269 var mock = new common_test.HttpServerMock(); |
| 3196 api.FilesResourceApi res = new api.DriveApi(mock).files; | 3270 api.FilesResourceApi res = new api.DriveApi(mock).files; |
| 3197 var arg_fileId = "foo"; | 3271 var arg_fileId = "foo"; |
| 3198 var arg_projection = "foo"; | 3272 var arg_projection = "foo"; |
| 3199 var arg_updateViewedDate = true; | 3273 var arg_updateViewedDate = true; |
| 3200 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3201 var path = (req.url).path; | 3275 var path = (req.url).path; |
| 3202 var pathOffset = 0; | 3276 var pathOffset = 0; |
| 3203 var index; | 3277 var index; |
| 3204 var subPart; | 3278 var subPart; |
| 3205 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3206 pathOffset += 10; | 3280 pathOffset += 1; |
| 3281 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3282 pathOffset += 9; |
| 3207 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3283 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3208 pathOffset += 6; | 3284 pathOffset += 6; |
| 3209 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3285 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3210 pathOffset = path.length; | 3286 pathOffset = path.length; |
| 3211 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3287 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3212 | 3288 |
| 3213 var query = (req.url).query; | 3289 var query = (req.url).query; |
| 3214 var queryOffset = 0; | 3290 var queryOffset = 0; |
| 3215 var queryMap = {}; | 3291 var queryMap = {}; |
| 3216 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3292 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3257 var arg_useContentAsIndexableText = true; | 3333 var arg_useContentAsIndexableText = true; |
| 3258 var arg_visibility = "foo"; | 3334 var arg_visibility = "foo"; |
| 3259 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3260 var obj = new api.File.fromJson(json); | 3336 var obj = new api.File.fromJson(json); |
| 3261 checkFile(obj); | 3337 checkFile(obj); |
| 3262 | 3338 |
| 3263 var path = (req.url).path; | 3339 var path = (req.url).path; |
| 3264 var pathOffset = 0; | 3340 var pathOffset = 0; |
| 3265 var index; | 3341 var index; |
| 3266 var subPart; | 3342 var subPart; |
| 3267 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3343 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3268 pathOffset += 10; | 3344 pathOffset += 1; |
| 3345 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3346 pathOffset += 9; |
| 3269 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("files")); | 3347 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("files")); |
| 3270 pathOffset += 5; | 3348 pathOffset += 5; |
| 3271 | 3349 |
| 3272 var query = (req.url).query; | 3350 var query = (req.url).query; |
| 3273 var queryOffset = 0; | 3351 var queryOffset = 0; |
| 3274 var queryMap = {}; | 3352 var queryMap = {}; |
| 3275 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3353 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3276 parseBool(n) { | 3354 parseBool(n) { |
| 3277 if (n == "true") return true; | 3355 if (n == "true") return true; |
| 3278 if (n == "false") return false; | 3356 if (n == "false") return false; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3313 var arg_corpus = "foo"; | 3391 var arg_corpus = "foo"; |
| 3314 var arg_maxResults = 42; | 3392 var arg_maxResults = 42; |
| 3315 var arg_pageToken = "foo"; | 3393 var arg_pageToken = "foo"; |
| 3316 var arg_projection = "foo"; | 3394 var arg_projection = "foo"; |
| 3317 var arg_q = "foo"; | 3395 var arg_q = "foo"; |
| 3318 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3396 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3319 var path = (req.url).path; | 3397 var path = (req.url).path; |
| 3320 var pathOffset = 0; | 3398 var pathOffset = 0; |
| 3321 var index; | 3399 var index; |
| 3322 var subPart; | 3400 var subPart; |
| 3323 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3401 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3324 pathOffset += 10; | 3402 pathOffset += 1; |
| 3403 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3404 pathOffset += 9; |
| 3325 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("files")); | 3405 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("files")); |
| 3326 pathOffset += 5; | 3406 pathOffset += 5; |
| 3327 | 3407 |
| 3328 var query = (req.url).query; | 3408 var query = (req.url).query; |
| 3329 var queryOffset = 0; | 3409 var queryOffset = 0; |
| 3330 var queryMap = {}; | 3410 var queryMap = {}; |
| 3331 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3411 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3332 parseBool(n) { | 3412 parseBool(n) { |
| 3333 if (n == "true") return true; | 3413 if (n == "true") return true; |
| 3334 if (n == "false") return false; | 3414 if (n == "false") return false; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3378 var arg_updateViewedDate = true; | 3458 var arg_updateViewedDate = true; |
| 3379 var arg_useContentAsIndexableText = true; | 3459 var arg_useContentAsIndexableText = true; |
| 3380 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3381 var obj = new api.File.fromJson(json); | 3461 var obj = new api.File.fromJson(json); |
| 3382 checkFile(obj); | 3462 checkFile(obj); |
| 3383 | 3463 |
| 3384 var path = (req.url).path; | 3464 var path = (req.url).path; |
| 3385 var pathOffset = 0; | 3465 var pathOffset = 0; |
| 3386 var index; | 3466 var index; |
| 3387 var subPart; | 3467 var subPart; |
| 3388 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3468 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3389 pathOffset += 10; | 3469 pathOffset += 1; |
| 3470 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3471 pathOffset += 9; |
| 3390 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3472 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3391 pathOffset += 6; | 3473 pathOffset += 6; |
| 3392 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3474 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3393 pathOffset = path.length; | 3475 pathOffset = path.length; |
| 3394 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3476 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3395 | 3477 |
| 3396 var query = (req.url).query; | 3478 var query = (req.url).query; |
| 3397 var queryOffset = 0; | 3479 var queryOffset = 0; |
| 3398 var queryMap = {}; | 3480 var queryMap = {}; |
| 3399 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3481 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3437 unittest.test("method--touch", () { | 3519 unittest.test("method--touch", () { |
| 3438 | 3520 |
| 3439 var mock = new common_test.HttpServerMock(); | 3521 var mock = new common_test.HttpServerMock(); |
| 3440 api.FilesResourceApi res = new api.DriveApi(mock).files; | 3522 api.FilesResourceApi res = new api.DriveApi(mock).files; |
| 3441 var arg_fileId = "foo"; | 3523 var arg_fileId = "foo"; |
| 3442 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3524 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3443 var path = (req.url).path; | 3525 var path = (req.url).path; |
| 3444 var pathOffset = 0; | 3526 var pathOffset = 0; |
| 3445 var index; | 3527 var index; |
| 3446 var subPart; | 3528 var subPart; |
| 3447 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3529 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3448 pathOffset += 10; | 3530 pathOffset += 1; |
| 3531 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3532 pathOffset += 9; |
| 3449 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3533 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3450 pathOffset += 6; | 3534 pathOffset += 6; |
| 3451 index = path.indexOf("/touch", pathOffset); | 3535 index = path.indexOf("/touch", pathOffset); |
| 3452 unittest.expect(index >= 0, unittest.isTrue); | 3536 unittest.expect(index >= 0, unittest.isTrue); |
| 3453 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3537 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3454 pathOffset = index; | 3538 pathOffset = index; |
| 3455 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3539 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3456 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/touch")); | 3540 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/touch")); |
| 3457 pathOffset += 6; | 3541 pathOffset += 6; |
| 3458 | 3542 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3488 unittest.test("method--trash", () { | 3572 unittest.test("method--trash", () { |
| 3489 | 3573 |
| 3490 var mock = new common_test.HttpServerMock(); | 3574 var mock = new common_test.HttpServerMock(); |
| 3491 api.FilesResourceApi res = new api.DriveApi(mock).files; | 3575 api.FilesResourceApi res = new api.DriveApi(mock).files; |
| 3492 var arg_fileId = "foo"; | 3576 var arg_fileId = "foo"; |
| 3493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3577 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3494 var path = (req.url).path; | 3578 var path = (req.url).path; |
| 3495 var pathOffset = 0; | 3579 var pathOffset = 0; |
| 3496 var index; | 3580 var index; |
| 3497 var subPart; | 3581 var subPart; |
| 3498 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3499 pathOffset += 10; | 3583 pathOffset += 1; |
| 3584 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3585 pathOffset += 9; |
| 3500 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3586 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3501 pathOffset += 6; | 3587 pathOffset += 6; |
| 3502 index = path.indexOf("/trash", pathOffset); | 3588 index = path.indexOf("/trash", pathOffset); |
| 3503 unittest.expect(index >= 0, unittest.isTrue); | 3589 unittest.expect(index >= 0, unittest.isTrue); |
| 3504 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3590 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3505 pathOffset = index; | 3591 pathOffset = index; |
| 3506 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3592 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3507 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/trash")); | 3593 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/trash")); |
| 3508 pathOffset += 6; | 3594 pathOffset += 6; |
| 3509 | 3595 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3539 unittest.test("method--untrash", () { | 3625 unittest.test("method--untrash", () { |
| 3540 | 3626 |
| 3541 var mock = new common_test.HttpServerMock(); | 3627 var mock = new common_test.HttpServerMock(); |
| 3542 api.FilesResourceApi res = new api.DriveApi(mock).files; | 3628 api.FilesResourceApi res = new api.DriveApi(mock).files; |
| 3543 var arg_fileId = "foo"; | 3629 var arg_fileId = "foo"; |
| 3544 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3630 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3545 var path = (req.url).path; | 3631 var path = (req.url).path; |
| 3546 var pathOffset = 0; | 3632 var pathOffset = 0; |
| 3547 var index; | 3633 var index; |
| 3548 var subPart; | 3634 var subPart; |
| 3549 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3635 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3550 pathOffset += 10; | 3636 pathOffset += 1; |
| 3637 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3638 pathOffset += 9; |
| 3551 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3639 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3552 pathOffset += 6; | 3640 pathOffset += 6; |
| 3553 index = path.indexOf("/untrash", pathOffset); | 3641 index = path.indexOf("/untrash", pathOffset); |
| 3554 unittest.expect(index >= 0, unittest.isTrue); | 3642 unittest.expect(index >= 0, unittest.isTrue); |
| 3555 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3643 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3556 pathOffset = index; | 3644 pathOffset = index; |
| 3557 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3645 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3558 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/untrash")); | 3646 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/untrash")); |
| 3559 pathOffset += 8; | 3647 pathOffset += 8; |
| 3560 | 3648 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3608 var arg_updateViewedDate = true; | 3696 var arg_updateViewedDate = true; |
| 3609 var arg_useContentAsIndexableText = true; | 3697 var arg_useContentAsIndexableText = true; |
| 3610 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3698 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3611 var obj = new api.File.fromJson(json); | 3699 var obj = new api.File.fromJson(json); |
| 3612 checkFile(obj); | 3700 checkFile(obj); |
| 3613 | 3701 |
| 3614 var path = (req.url).path; | 3702 var path = (req.url).path; |
| 3615 var pathOffset = 0; | 3703 var pathOffset = 0; |
| 3616 var index; | 3704 var index; |
| 3617 var subPart; | 3705 var subPart; |
| 3618 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3706 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3619 pathOffset += 10; | 3707 pathOffset += 1; |
| 3708 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3709 pathOffset += 9; |
| 3620 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3710 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3621 pathOffset += 6; | 3711 pathOffset += 6; |
| 3622 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3712 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3623 pathOffset = path.length; | 3713 pathOffset = path.length; |
| 3624 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3714 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3625 | 3715 |
| 3626 var query = (req.url).query; | 3716 var query = (req.url).query; |
| 3627 var queryOffset = 0; | 3717 var queryOffset = 0; |
| 3628 var queryMap = {}; | 3718 var queryMap = {}; |
| 3629 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3719 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3673 var arg_projection = "foo"; | 3763 var arg_projection = "foo"; |
| 3674 var arg_updateViewedDate = true; | 3764 var arg_updateViewedDate = true; |
| 3675 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3765 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3676 var obj = new api.Channel.fromJson(json); | 3766 var obj = new api.Channel.fromJson(json); |
| 3677 checkChannel(obj); | 3767 checkChannel(obj); |
| 3678 | 3768 |
| 3679 var path = (req.url).path; | 3769 var path = (req.url).path; |
| 3680 var pathOffset = 0; | 3770 var pathOffset = 0; |
| 3681 var index; | 3771 var index; |
| 3682 var subPart; | 3772 var subPart; |
| 3683 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3773 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3684 pathOffset += 10; | 3774 pathOffset += 1; |
| 3775 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3776 pathOffset += 9; |
| 3685 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3777 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3686 pathOffset += 6; | 3778 pathOffset += 6; |
| 3687 index = path.indexOf("/watch", pathOffset); | 3779 index = path.indexOf("/watch", pathOffset); |
| 3688 unittest.expect(index >= 0, unittest.isTrue); | 3780 unittest.expect(index >= 0, unittest.isTrue); |
| 3689 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3781 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3690 pathOffset = index; | 3782 pathOffset = index; |
| 3691 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3783 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3692 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/watch")); | 3784 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/watch")); |
| 3693 pathOffset += 6; | 3785 pathOffset += 6; |
| 3694 | 3786 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3731 | 3823 |
| 3732 var mock = new common_test.HttpServerMock(); | 3824 var mock = new common_test.HttpServerMock(); |
| 3733 api.ParentsResourceApi res = new api.DriveApi(mock).parents; | 3825 api.ParentsResourceApi res = new api.DriveApi(mock).parents; |
| 3734 var arg_fileId = "foo"; | 3826 var arg_fileId = "foo"; |
| 3735 var arg_parentId = "foo"; | 3827 var arg_parentId = "foo"; |
| 3736 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3828 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3737 var path = (req.url).path; | 3829 var path = (req.url).path; |
| 3738 var pathOffset = 0; | 3830 var pathOffset = 0; |
| 3739 var index; | 3831 var index; |
| 3740 var subPart; | 3832 var subPart; |
| 3741 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3833 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3742 pathOffset += 10; | 3834 pathOffset += 1; |
| 3835 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3836 pathOffset += 9; |
| 3743 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3837 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3744 pathOffset += 6; | 3838 pathOffset += 6; |
| 3745 index = path.indexOf("/parents/", pathOffset); | 3839 index = path.indexOf("/parents/", pathOffset); |
| 3746 unittest.expect(index >= 0, unittest.isTrue); | 3840 unittest.expect(index >= 0, unittest.isTrue); |
| 3747 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3841 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3748 pathOffset = index; | 3842 pathOffset = index; |
| 3749 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3843 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3750 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/parents/")); | 3844 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/parents/")); |
| 3751 pathOffset += 9; | 3845 pathOffset += 9; |
| 3752 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3846 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3784 | 3878 |
| 3785 var mock = new common_test.HttpServerMock(); | 3879 var mock = new common_test.HttpServerMock(); |
| 3786 api.ParentsResourceApi res = new api.DriveApi(mock).parents; | 3880 api.ParentsResourceApi res = new api.DriveApi(mock).parents; |
| 3787 var arg_fileId = "foo"; | 3881 var arg_fileId = "foo"; |
| 3788 var arg_parentId = "foo"; | 3882 var arg_parentId = "foo"; |
| 3789 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3790 var path = (req.url).path; | 3884 var path = (req.url).path; |
| 3791 var pathOffset = 0; | 3885 var pathOffset = 0; |
| 3792 var index; | 3886 var index; |
| 3793 var subPart; | 3887 var subPart; |
| 3794 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3795 pathOffset += 10; | 3889 pathOffset += 1; |
| 3890 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3891 pathOffset += 9; |
| 3796 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3892 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3797 pathOffset += 6; | 3893 pathOffset += 6; |
| 3798 index = path.indexOf("/parents/", pathOffset); | 3894 index = path.indexOf("/parents/", pathOffset); |
| 3799 unittest.expect(index >= 0, unittest.isTrue); | 3895 unittest.expect(index >= 0, unittest.isTrue); |
| 3800 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3896 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3801 pathOffset = index; | 3897 pathOffset = index; |
| 3802 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3898 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3803 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/parents/")); | 3899 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/parents/")); |
| 3804 pathOffset += 9; | 3900 pathOffset += 9; |
| 3805 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3901 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3842 var arg_request = buildParentReference(); | 3938 var arg_request = buildParentReference(); |
| 3843 var arg_fileId = "foo"; | 3939 var arg_fileId = "foo"; |
| 3844 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3940 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3845 var obj = new api.ParentReference.fromJson(json); | 3941 var obj = new api.ParentReference.fromJson(json); |
| 3846 checkParentReference(obj); | 3942 checkParentReference(obj); |
| 3847 | 3943 |
| 3848 var path = (req.url).path; | 3944 var path = (req.url).path; |
| 3849 var pathOffset = 0; | 3945 var pathOffset = 0; |
| 3850 var index; | 3946 var index; |
| 3851 var subPart; | 3947 var subPart; |
| 3852 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 3948 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3853 pathOffset += 10; | 3949 pathOffset += 1; |
| 3950 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3951 pathOffset += 9; |
| 3854 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 3952 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3855 pathOffset += 6; | 3953 pathOffset += 6; |
| 3856 index = path.indexOf("/parents", pathOffset); | 3954 index = path.indexOf("/parents", pathOffset); |
| 3857 unittest.expect(index >= 0, unittest.isTrue); | 3955 unittest.expect(index >= 0, unittest.isTrue); |
| 3858 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3956 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3859 pathOffset = index; | 3957 pathOffset = index; |
| 3860 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 3958 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3861 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/parents")); | 3959 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/parents")); |
| 3862 pathOffset += 8; | 3960 pathOffset += 8; |
| 3863 | 3961 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3893 unittest.test("method--list", () { | 3991 unittest.test("method--list", () { |
| 3894 | 3992 |
| 3895 var mock = new common_test.HttpServerMock(); | 3993 var mock = new common_test.HttpServerMock(); |
| 3896 api.ParentsResourceApi res = new api.DriveApi(mock).parents; | 3994 api.ParentsResourceApi res = new api.DriveApi(mock).parents; |
| 3897 var arg_fileId = "foo"; | 3995 var arg_fileId = "foo"; |
| 3898 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3996 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3899 var path = (req.url).path; | 3997 var path = (req.url).path; |
| 3900 var pathOffset = 0; | 3998 var pathOffset = 0; |
| 3901 var index; | 3999 var index; |
| 3902 var subPart; | 4000 var subPart; |
| 3903 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4001 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3904 pathOffset += 10; | 4002 pathOffset += 1; |
| 4003 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4004 pathOffset += 9; |
| 3905 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4005 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3906 pathOffset += 6; | 4006 pathOffset += 6; |
| 3907 index = path.indexOf("/parents", pathOffset); | 4007 index = path.indexOf("/parents", pathOffset); |
| 3908 unittest.expect(index >= 0, unittest.isTrue); | 4008 unittest.expect(index >= 0, unittest.isTrue); |
| 3909 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4009 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3910 pathOffset = index; | 4010 pathOffset = index; |
| 3911 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4011 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3912 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/parents")); | 4012 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/parents")); |
| 3913 pathOffset += 8; | 4013 pathOffset += 8; |
| 3914 | 4014 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3949 | 4049 |
| 3950 var mock = new common_test.HttpServerMock(); | 4050 var mock = new common_test.HttpServerMock(); |
| 3951 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; | 4051 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; |
| 3952 var arg_fileId = "foo"; | 4052 var arg_fileId = "foo"; |
| 3953 var arg_permissionId = "foo"; | 4053 var arg_permissionId = "foo"; |
| 3954 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4054 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3955 var path = (req.url).path; | 4055 var path = (req.url).path; |
| 3956 var pathOffset = 0; | 4056 var pathOffset = 0; |
| 3957 var index; | 4057 var index; |
| 3958 var subPart; | 4058 var subPart; |
| 3959 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4059 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3960 pathOffset += 10; | 4060 pathOffset += 1; |
| 4061 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4062 pathOffset += 9; |
| 3961 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4063 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 3962 pathOffset += 6; | 4064 pathOffset += 6; |
| 3963 index = path.indexOf("/permissions/", pathOffset); | 4065 index = path.indexOf("/permissions/", pathOffset); |
| 3964 unittest.expect(index >= 0, unittest.isTrue); | 4066 unittest.expect(index >= 0, unittest.isTrue); |
| 3965 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4067 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3966 pathOffset = index; | 4068 pathOffset = index; |
| 3967 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4069 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 3968 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/permissions/")); | 4070 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/permissions/")); |
| 3969 pathOffset += 13; | 4071 pathOffset += 13; |
| 3970 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4072 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4002 | 4104 |
| 4003 var mock = new common_test.HttpServerMock(); | 4105 var mock = new common_test.HttpServerMock(); |
| 4004 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; | 4106 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; |
| 4005 var arg_fileId = "foo"; | 4107 var arg_fileId = "foo"; |
| 4006 var arg_permissionId = "foo"; | 4108 var arg_permissionId = "foo"; |
| 4007 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4109 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4008 var path = (req.url).path; | 4110 var path = (req.url).path; |
| 4009 var pathOffset = 0; | 4111 var pathOffset = 0; |
| 4010 var index; | 4112 var index; |
| 4011 var subPart; | 4113 var subPart; |
| 4012 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4114 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4013 pathOffset += 10; | 4115 pathOffset += 1; |
| 4116 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4117 pathOffset += 9; |
| 4014 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4118 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4015 pathOffset += 6; | 4119 pathOffset += 6; |
| 4016 index = path.indexOf("/permissions/", pathOffset); | 4120 index = path.indexOf("/permissions/", pathOffset); |
| 4017 unittest.expect(index >= 0, unittest.isTrue); | 4121 unittest.expect(index >= 0, unittest.isTrue); |
| 4018 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4122 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4019 pathOffset = index; | 4123 pathOffset = index; |
| 4020 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4124 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4021 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/permissions/")); | 4125 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/permissions/")); |
| 4022 pathOffset += 13; | 4126 pathOffset += 13; |
| 4023 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4127 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4056 unittest.test("method--getIdForEmail", () { | 4160 unittest.test("method--getIdForEmail", () { |
| 4057 | 4161 |
| 4058 var mock = new common_test.HttpServerMock(); | 4162 var mock = new common_test.HttpServerMock(); |
| 4059 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; | 4163 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; |
| 4060 var arg_email = "foo"; | 4164 var arg_email = "foo"; |
| 4061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4062 var path = (req.url).path; | 4166 var path = (req.url).path; |
| 4063 var pathOffset = 0; | 4167 var pathOffset = 0; |
| 4064 var index; | 4168 var index; |
| 4065 var subPart; | 4169 var subPart; |
| 4066 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4170 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4067 pathOffset += 10; | 4171 pathOffset += 1; |
| 4172 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4173 pathOffset += 9; |
| 4068 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("permissionIds/")); | 4174 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("permissionIds/")); |
| 4069 pathOffset += 14; | 4175 pathOffset += 14; |
| 4070 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4176 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 4071 pathOffset = path.length; | 4177 pathOffset = path.length; |
| 4072 unittest.expect(subPart, unittest.equals("$arg_email")); | 4178 unittest.expect(subPart, unittest.equals("$arg_email")); |
| 4073 | 4179 |
| 4074 var query = (req.url).query; | 4180 var query = (req.url).query; |
| 4075 var queryOffset = 0; | 4181 var queryOffset = 0; |
| 4076 var queryMap = {}; | 4182 var queryMap = {}; |
| 4077 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4183 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4109 var arg_emailMessage = "foo"; | 4215 var arg_emailMessage = "foo"; |
| 4110 var arg_sendNotificationEmails = true; | 4216 var arg_sendNotificationEmails = true; |
| 4111 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4217 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4112 var obj = new api.Permission.fromJson(json); | 4218 var obj = new api.Permission.fromJson(json); |
| 4113 checkPermission(obj); | 4219 checkPermission(obj); |
| 4114 | 4220 |
| 4115 var path = (req.url).path; | 4221 var path = (req.url).path; |
| 4116 var pathOffset = 0; | 4222 var pathOffset = 0; |
| 4117 var index; | 4223 var index; |
| 4118 var subPart; | 4224 var subPart; |
| 4119 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4225 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4120 pathOffset += 10; | 4226 pathOffset += 1; |
| 4227 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4228 pathOffset += 9; |
| 4121 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4229 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4122 pathOffset += 6; | 4230 pathOffset += 6; |
| 4123 index = path.indexOf("/permissions", pathOffset); | 4231 index = path.indexOf("/permissions", pathOffset); |
| 4124 unittest.expect(index >= 0, unittest.isTrue); | 4232 unittest.expect(index >= 0, unittest.isTrue); |
| 4125 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4233 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4126 pathOffset = index; | 4234 pathOffset = index; |
| 4127 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4235 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4128 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/permissions")); | 4236 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/permissions")); |
| 4129 pathOffset += 12; | 4237 pathOffset += 12; |
| 4130 | 4238 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4162 unittest.test("method--list", () { | 4270 unittest.test("method--list", () { |
| 4163 | 4271 |
| 4164 var mock = new common_test.HttpServerMock(); | 4272 var mock = new common_test.HttpServerMock(); |
| 4165 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; | 4273 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; |
| 4166 var arg_fileId = "foo"; | 4274 var arg_fileId = "foo"; |
| 4167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4275 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4168 var path = (req.url).path; | 4276 var path = (req.url).path; |
| 4169 var pathOffset = 0; | 4277 var pathOffset = 0; |
| 4170 var index; | 4278 var index; |
| 4171 var subPart; | 4279 var subPart; |
| 4172 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4280 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4173 pathOffset += 10; | 4281 pathOffset += 1; |
| 4282 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4283 pathOffset += 9; |
| 4174 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4284 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4175 pathOffset += 6; | 4285 pathOffset += 6; |
| 4176 index = path.indexOf("/permissions", pathOffset); | 4286 index = path.indexOf("/permissions", pathOffset); |
| 4177 unittest.expect(index >= 0, unittest.isTrue); | 4287 unittest.expect(index >= 0, unittest.isTrue); |
| 4178 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4288 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4179 pathOffset = index; | 4289 pathOffset = index; |
| 4180 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4290 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4181 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/permissions")); | 4291 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/permissions")); |
| 4182 pathOffset += 12; | 4292 pathOffset += 12; |
| 4183 | 4293 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4219 var arg_permissionId = "foo"; | 4329 var arg_permissionId = "foo"; |
| 4220 var arg_transferOwnership = true; | 4330 var arg_transferOwnership = true; |
| 4221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4331 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4222 var obj = new api.Permission.fromJson(json); | 4332 var obj = new api.Permission.fromJson(json); |
| 4223 checkPermission(obj); | 4333 checkPermission(obj); |
| 4224 | 4334 |
| 4225 var path = (req.url).path; | 4335 var path = (req.url).path; |
| 4226 var pathOffset = 0; | 4336 var pathOffset = 0; |
| 4227 var index; | 4337 var index; |
| 4228 var subPart; | 4338 var subPart; |
| 4229 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4339 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4230 pathOffset += 10; | 4340 pathOffset += 1; |
| 4341 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4342 pathOffset += 9; |
| 4231 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4343 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4232 pathOffset += 6; | 4344 pathOffset += 6; |
| 4233 index = path.indexOf("/permissions/", pathOffset); | 4345 index = path.indexOf("/permissions/", pathOffset); |
| 4234 unittest.expect(index >= 0, unittest.isTrue); | 4346 unittest.expect(index >= 0, unittest.isTrue); |
| 4235 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4347 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4236 pathOffset = index; | 4348 pathOffset = index; |
| 4237 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4349 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4238 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/permissions/")); | 4350 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/permissions/")); |
| 4239 pathOffset += 13; | 4351 pathOffset += 13; |
| 4240 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4352 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4280 var arg_permissionId = "foo"; | 4392 var arg_permissionId = "foo"; |
| 4281 var arg_transferOwnership = true; | 4393 var arg_transferOwnership = true; |
| 4282 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4394 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4283 var obj = new api.Permission.fromJson(json); | 4395 var obj = new api.Permission.fromJson(json); |
| 4284 checkPermission(obj); | 4396 checkPermission(obj); |
| 4285 | 4397 |
| 4286 var path = (req.url).path; | 4398 var path = (req.url).path; |
| 4287 var pathOffset = 0; | 4399 var pathOffset = 0; |
| 4288 var index; | 4400 var index; |
| 4289 var subPart; | 4401 var subPart; |
| 4290 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4291 pathOffset += 10; | 4403 pathOffset += 1; |
| 4404 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4405 pathOffset += 9; |
| 4292 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4406 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4293 pathOffset += 6; | 4407 pathOffset += 6; |
| 4294 index = path.indexOf("/permissions/", pathOffset); | 4408 index = path.indexOf("/permissions/", pathOffset); |
| 4295 unittest.expect(index >= 0, unittest.isTrue); | 4409 unittest.expect(index >= 0, unittest.isTrue); |
| 4296 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4410 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4297 pathOffset = index; | 4411 pathOffset = index; |
| 4298 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4412 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4299 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/permissions/")); | 4413 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/permissions/")); |
| 4300 pathOffset += 13; | 4414 pathOffset += 13; |
| 4301 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4415 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4341 var mock = new common_test.HttpServerMock(); | 4455 var mock = new common_test.HttpServerMock(); |
| 4342 api.PropertiesResourceApi res = new api.DriveApi(mock).properties; | 4456 api.PropertiesResourceApi res = new api.DriveApi(mock).properties; |
| 4343 var arg_fileId = "foo"; | 4457 var arg_fileId = "foo"; |
| 4344 var arg_propertyKey = "foo"; | 4458 var arg_propertyKey = "foo"; |
| 4345 var arg_visibility = "foo"; | 4459 var arg_visibility = "foo"; |
| 4346 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4347 var path = (req.url).path; | 4461 var path = (req.url).path; |
| 4348 var pathOffset = 0; | 4462 var pathOffset = 0; |
| 4349 var index; | 4463 var index; |
| 4350 var subPart; | 4464 var subPart; |
| 4351 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4465 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4352 pathOffset += 10; | 4466 pathOffset += 1; |
| 4467 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4468 pathOffset += 9; |
| 4353 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4469 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4354 pathOffset += 6; | 4470 pathOffset += 6; |
| 4355 index = path.indexOf("/properties/", pathOffset); | 4471 index = path.indexOf("/properties/", pathOffset); |
| 4356 unittest.expect(index >= 0, unittest.isTrue); | 4472 unittest.expect(index >= 0, unittest.isTrue); |
| 4357 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4473 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4358 pathOffset = index; | 4474 pathOffset = index; |
| 4359 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4475 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4360 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/properties/")); | 4476 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/properties/")); |
| 4361 pathOffset += 12; | 4477 pathOffset += 12; |
| 4362 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4478 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4396 var mock = new common_test.HttpServerMock(); | 4512 var mock = new common_test.HttpServerMock(); |
| 4397 api.PropertiesResourceApi res = new api.DriveApi(mock).properties; | 4513 api.PropertiesResourceApi res = new api.DriveApi(mock).properties; |
| 4398 var arg_fileId = "foo"; | 4514 var arg_fileId = "foo"; |
| 4399 var arg_propertyKey = "foo"; | 4515 var arg_propertyKey = "foo"; |
| 4400 var arg_visibility = "foo"; | 4516 var arg_visibility = "foo"; |
| 4401 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4517 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4402 var path = (req.url).path; | 4518 var path = (req.url).path; |
| 4403 var pathOffset = 0; | 4519 var pathOffset = 0; |
| 4404 var index; | 4520 var index; |
| 4405 var subPart; | 4521 var subPart; |
| 4406 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4522 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4407 pathOffset += 10; | 4523 pathOffset += 1; |
| 4524 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4525 pathOffset += 9; |
| 4408 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4526 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4409 pathOffset += 6; | 4527 pathOffset += 6; |
| 4410 index = path.indexOf("/properties/", pathOffset); | 4528 index = path.indexOf("/properties/", pathOffset); |
| 4411 unittest.expect(index >= 0, unittest.isTrue); | 4529 unittest.expect(index >= 0, unittest.isTrue); |
| 4412 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4530 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4413 pathOffset = index; | 4531 pathOffset = index; |
| 4414 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4532 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4415 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/properties/")); | 4533 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/properties/")); |
| 4416 pathOffset += 12; | 4534 pathOffset += 12; |
| 4417 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4535 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4455 var arg_request = buildProperty(); | 4573 var arg_request = buildProperty(); |
| 4456 var arg_fileId = "foo"; | 4574 var arg_fileId = "foo"; |
| 4457 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4575 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4458 var obj = new api.Property.fromJson(json); | 4576 var obj = new api.Property.fromJson(json); |
| 4459 checkProperty(obj); | 4577 checkProperty(obj); |
| 4460 | 4578 |
| 4461 var path = (req.url).path; | 4579 var path = (req.url).path; |
| 4462 var pathOffset = 0; | 4580 var pathOffset = 0; |
| 4463 var index; | 4581 var index; |
| 4464 var subPart; | 4582 var subPart; |
| 4465 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4583 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4466 pathOffset += 10; | 4584 pathOffset += 1; |
| 4585 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4586 pathOffset += 9; |
| 4467 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4587 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4468 pathOffset += 6; | 4588 pathOffset += 6; |
| 4469 index = path.indexOf("/properties", pathOffset); | 4589 index = path.indexOf("/properties", pathOffset); |
| 4470 unittest.expect(index >= 0, unittest.isTrue); | 4590 unittest.expect(index >= 0, unittest.isTrue); |
| 4471 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4591 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4472 pathOffset = index; | 4592 pathOffset = index; |
| 4473 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4593 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4474 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/properties")); | 4594 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/properties")); |
| 4475 pathOffset += 11; | 4595 pathOffset += 11; |
| 4476 | 4596 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 4506 unittest.test("method--list", () { | 4626 unittest.test("method--list", () { |
| 4507 | 4627 |
| 4508 var mock = new common_test.HttpServerMock(); | 4628 var mock = new common_test.HttpServerMock(); |
| 4509 api.PropertiesResourceApi res = new api.DriveApi(mock).properties; | 4629 api.PropertiesResourceApi res = new api.DriveApi(mock).properties; |
| 4510 var arg_fileId = "foo"; | 4630 var arg_fileId = "foo"; |
| 4511 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4631 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4512 var path = (req.url).path; | 4632 var path = (req.url).path; |
| 4513 var pathOffset = 0; | 4633 var pathOffset = 0; |
| 4514 var index; | 4634 var index; |
| 4515 var subPart; | 4635 var subPart; |
| 4516 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4636 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4517 pathOffset += 10; | 4637 pathOffset += 1; |
| 4638 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4639 pathOffset += 9; |
| 4518 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4640 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4519 pathOffset += 6; | 4641 pathOffset += 6; |
| 4520 index = path.indexOf("/properties", pathOffset); | 4642 index = path.indexOf("/properties", pathOffset); |
| 4521 unittest.expect(index >= 0, unittest.isTrue); | 4643 unittest.expect(index >= 0, unittest.isTrue); |
| 4522 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4644 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4523 pathOffset = index; | 4645 pathOffset = index; |
| 4524 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4646 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4525 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/properties")); | 4647 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/properties")); |
| 4526 pathOffset += 11; | 4648 pathOffset += 11; |
| 4527 | 4649 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4563 var arg_propertyKey = "foo"; | 4685 var arg_propertyKey = "foo"; |
| 4564 var arg_visibility = "foo"; | 4686 var arg_visibility = "foo"; |
| 4565 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4687 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4566 var obj = new api.Property.fromJson(json); | 4688 var obj = new api.Property.fromJson(json); |
| 4567 checkProperty(obj); | 4689 checkProperty(obj); |
| 4568 | 4690 |
| 4569 var path = (req.url).path; | 4691 var path = (req.url).path; |
| 4570 var pathOffset = 0; | 4692 var pathOffset = 0; |
| 4571 var index; | 4693 var index; |
| 4572 var subPart; | 4694 var subPart; |
| 4573 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4695 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4574 pathOffset += 10; | 4696 pathOffset += 1; |
| 4697 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4698 pathOffset += 9; |
| 4575 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4699 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4576 pathOffset += 6; | 4700 pathOffset += 6; |
| 4577 index = path.indexOf("/properties/", pathOffset); | 4701 index = path.indexOf("/properties/", pathOffset); |
| 4578 unittest.expect(index >= 0, unittest.isTrue); | 4702 unittest.expect(index >= 0, unittest.isTrue); |
| 4579 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4703 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4580 pathOffset = index; | 4704 pathOffset = index; |
| 4581 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4705 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4582 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/properties/")); | 4706 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/properties/")); |
| 4583 pathOffset += 12; | 4707 pathOffset += 12; |
| 4584 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4708 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4624 var arg_propertyKey = "foo"; | 4748 var arg_propertyKey = "foo"; |
| 4625 var arg_visibility = "foo"; | 4749 var arg_visibility = "foo"; |
| 4626 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4750 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4627 var obj = new api.Property.fromJson(json); | 4751 var obj = new api.Property.fromJson(json); |
| 4628 checkProperty(obj); | 4752 checkProperty(obj); |
| 4629 | 4753 |
| 4630 var path = (req.url).path; | 4754 var path = (req.url).path; |
| 4631 var pathOffset = 0; | 4755 var pathOffset = 0; |
| 4632 var index; | 4756 var index; |
| 4633 var subPart; | 4757 var subPart; |
| 4634 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4635 pathOffset += 10; | 4759 pathOffset += 1; |
| 4760 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4761 pathOffset += 9; |
| 4636 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4762 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4637 pathOffset += 6; | 4763 pathOffset += 6; |
| 4638 index = path.indexOf("/properties/", pathOffset); | 4764 index = path.indexOf("/properties/", pathOffset); |
| 4639 unittest.expect(index >= 0, unittest.isTrue); | 4765 unittest.expect(index >= 0, unittest.isTrue); |
| 4640 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4766 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4641 pathOffset = index; | 4767 pathOffset = index; |
| 4642 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4768 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4643 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/properties/")); | 4769 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/properties/")); |
| 4644 pathOffset += 12; | 4770 pathOffset += 12; |
| 4645 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4771 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4686 | 4812 |
| 4687 var mock = new common_test.HttpServerMock(); | 4813 var mock = new common_test.HttpServerMock(); |
| 4688 api.RealtimeResourceApi res = new api.DriveApi(mock).realtime; | 4814 api.RealtimeResourceApi res = new api.DriveApi(mock).realtime; |
| 4689 var arg_fileId = "foo"; | 4815 var arg_fileId = "foo"; |
| 4690 var arg_revision = 42; | 4816 var arg_revision = 42; |
| 4691 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4817 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4692 var path = (req.url).path; | 4818 var path = (req.url).path; |
| 4693 var pathOffset = 0; | 4819 var pathOffset = 0; |
| 4694 var index; | 4820 var index; |
| 4695 var subPart; | 4821 var subPart; |
| 4696 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4822 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4697 pathOffset += 10; | 4823 pathOffset += 1; |
| 4824 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4825 pathOffset += 9; |
| 4698 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4826 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4699 pathOffset += 6; | 4827 pathOffset += 6; |
| 4700 index = path.indexOf("/realtime", pathOffset); | 4828 index = path.indexOf("/realtime", pathOffset); |
| 4701 unittest.expect(index >= 0, unittest.isTrue); | 4829 unittest.expect(index >= 0, unittest.isTrue); |
| 4702 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4830 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4703 pathOffset = index; | 4831 pathOffset = index; |
| 4704 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4832 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4705 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/realtime")); | 4833 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/realtime")); |
| 4706 pathOffset += 9; | 4834 pathOffset += 9; |
| 4707 | 4835 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4739 | 4867 |
| 4740 var mock = new common_test.HttpServerMock(); | 4868 var mock = new common_test.HttpServerMock(); |
| 4741 api.RealtimeResourceApi res = new api.DriveApi(mock).realtime; | 4869 api.RealtimeResourceApi res = new api.DriveApi(mock).realtime; |
| 4742 var arg_fileId = "foo"; | 4870 var arg_fileId = "foo"; |
| 4743 var arg_baseRevision = "foo"; | 4871 var arg_baseRevision = "foo"; |
| 4744 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4872 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4745 var path = (req.url).path; | 4873 var path = (req.url).path; |
| 4746 var pathOffset = 0; | 4874 var pathOffset = 0; |
| 4747 var index; | 4875 var index; |
| 4748 var subPart; | 4876 var subPart; |
| 4749 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4877 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4750 pathOffset += 10; | 4878 pathOffset += 1; |
| 4879 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4880 pathOffset += 9; |
| 4751 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4881 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4752 pathOffset += 6; | 4882 pathOffset += 6; |
| 4753 index = path.indexOf("/realtime", pathOffset); | 4883 index = path.indexOf("/realtime", pathOffset); |
| 4754 unittest.expect(index >= 0, unittest.isTrue); | 4884 unittest.expect(index >= 0, unittest.isTrue); |
| 4755 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4885 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4756 pathOffset = index; | 4886 pathOffset = index; |
| 4757 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4887 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4758 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/realtime")); | 4888 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/realtime")); |
| 4759 pathOffset += 9; | 4889 pathOffset += 9; |
| 4760 | 4890 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4795 var mock = new common_test.HttpServerMock(); | 4925 var mock = new common_test.HttpServerMock(); |
| 4796 api.RepliesResourceApi res = new api.DriveApi(mock).replies; | 4926 api.RepliesResourceApi res = new api.DriveApi(mock).replies; |
| 4797 var arg_fileId = "foo"; | 4927 var arg_fileId = "foo"; |
| 4798 var arg_commentId = "foo"; | 4928 var arg_commentId = "foo"; |
| 4799 var arg_replyId = "foo"; | 4929 var arg_replyId = "foo"; |
| 4800 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4930 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4801 var path = (req.url).path; | 4931 var path = (req.url).path; |
| 4802 var pathOffset = 0; | 4932 var pathOffset = 0; |
| 4803 var index; | 4933 var index; |
| 4804 var subPart; | 4934 var subPart; |
| 4805 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4935 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4806 pathOffset += 10; | 4936 pathOffset += 1; |
| 4937 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 4938 pathOffset += 9; |
| 4807 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 4939 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4808 pathOffset += 6; | 4940 pathOffset += 6; |
| 4809 index = path.indexOf("/comments/", pathOffset); | 4941 index = path.indexOf("/comments/", pathOffset); |
| 4810 unittest.expect(index >= 0, unittest.isTrue); | 4942 unittest.expect(index >= 0, unittest.isTrue); |
| 4811 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4943 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4812 pathOffset = index; | 4944 pathOffset = index; |
| 4813 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 4945 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4814 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 4946 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 4815 pathOffset += 10; | 4947 pathOffset += 10; |
| 4816 index = path.indexOf("/replies/", pathOffset); | 4948 index = path.indexOf("/replies/", pathOffset); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4857 api.RepliesResourceApi res = new api.DriveApi(mock).replies; | 4989 api.RepliesResourceApi res = new api.DriveApi(mock).replies; |
| 4858 var arg_fileId = "foo"; | 4990 var arg_fileId = "foo"; |
| 4859 var arg_commentId = "foo"; | 4991 var arg_commentId = "foo"; |
| 4860 var arg_replyId = "foo"; | 4992 var arg_replyId = "foo"; |
| 4861 var arg_includeDeleted = true; | 4993 var arg_includeDeleted = true; |
| 4862 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4994 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4863 var path = (req.url).path; | 4995 var path = (req.url).path; |
| 4864 var pathOffset = 0; | 4996 var pathOffset = 0; |
| 4865 var index; | 4997 var index; |
| 4866 var subPart; | 4998 var subPart; |
| 4867 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 4999 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4868 pathOffset += 10; | 5000 pathOffset += 1; |
| 5001 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5002 pathOffset += 9; |
| 4869 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5003 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4870 pathOffset += 6; | 5004 pathOffset += 6; |
| 4871 index = path.indexOf("/comments/", pathOffset); | 5005 index = path.indexOf("/comments/", pathOffset); |
| 4872 unittest.expect(index >= 0, unittest.isTrue); | 5006 unittest.expect(index >= 0, unittest.isTrue); |
| 4873 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5007 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4874 pathOffset = index; | 5008 pathOffset = index; |
| 4875 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5009 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4876 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 5010 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 4877 pathOffset += 10; | 5011 pathOffset += 10; |
| 4878 index = path.indexOf("/replies/", pathOffset); | 5012 index = path.indexOf("/replies/", pathOffset); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4924 var arg_fileId = "foo"; | 5058 var arg_fileId = "foo"; |
| 4925 var arg_commentId = "foo"; | 5059 var arg_commentId = "foo"; |
| 4926 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5060 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4927 var obj = new api.CommentReply.fromJson(json); | 5061 var obj = new api.CommentReply.fromJson(json); |
| 4928 checkCommentReply(obj); | 5062 checkCommentReply(obj); |
| 4929 | 5063 |
| 4930 var path = (req.url).path; | 5064 var path = (req.url).path; |
| 4931 var pathOffset = 0; | 5065 var pathOffset = 0; |
| 4932 var index; | 5066 var index; |
| 4933 var subPart; | 5067 var subPart; |
| 4934 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5068 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4935 pathOffset += 10; | 5069 pathOffset += 1; |
| 5070 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5071 pathOffset += 9; |
| 4936 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5072 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4937 pathOffset += 6; | 5073 pathOffset += 6; |
| 4938 index = path.indexOf("/comments/", pathOffset); | 5074 index = path.indexOf("/comments/", pathOffset); |
| 4939 unittest.expect(index >= 0, unittest.isTrue); | 5075 unittest.expect(index >= 0, unittest.isTrue); |
| 4940 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5076 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 4941 pathOffset = index; | 5077 pathOffset = index; |
| 4942 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5078 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 4943 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 5079 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 4944 pathOffset += 10; | 5080 pathOffset += 10; |
| 4945 index = path.indexOf("/replies", pathOffset); | 5081 index = path.indexOf("/replies", pathOffset); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4986 var arg_fileId = "foo"; | 5122 var arg_fileId = "foo"; |
| 4987 var arg_commentId = "foo"; | 5123 var arg_commentId = "foo"; |
| 4988 var arg_includeDeleted = true; | 5124 var arg_includeDeleted = true; |
| 4989 var arg_maxResults = 42; | 5125 var arg_maxResults = 42; |
| 4990 var arg_pageToken = "foo"; | 5126 var arg_pageToken = "foo"; |
| 4991 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5127 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4992 var path = (req.url).path; | 5128 var path = (req.url).path; |
| 4993 var pathOffset = 0; | 5129 var pathOffset = 0; |
| 4994 var index; | 5130 var index; |
| 4995 var subPart; | 5131 var subPart; |
| 4996 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5132 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4997 pathOffset += 10; | 5133 pathOffset += 1; |
| 5134 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5135 pathOffset += 9; |
| 4998 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5136 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 4999 pathOffset += 6; | 5137 pathOffset += 6; |
| 5000 index = path.indexOf("/comments/", pathOffset); | 5138 index = path.indexOf("/comments/", pathOffset); |
| 5001 unittest.expect(index >= 0, unittest.isTrue); | 5139 unittest.expect(index >= 0, unittest.isTrue); |
| 5002 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5140 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5003 pathOffset = index; | 5141 pathOffset = index; |
| 5004 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5142 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 5005 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 5143 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 5006 pathOffset += 10; | 5144 pathOffset += 10; |
| 5007 index = path.indexOf("/replies", pathOffset); | 5145 index = path.indexOf("/replies", pathOffset); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5053 var arg_commentId = "foo"; | 5191 var arg_commentId = "foo"; |
| 5054 var arg_replyId = "foo"; | 5192 var arg_replyId = "foo"; |
| 5055 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5193 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5056 var obj = new api.CommentReply.fromJson(json); | 5194 var obj = new api.CommentReply.fromJson(json); |
| 5057 checkCommentReply(obj); | 5195 checkCommentReply(obj); |
| 5058 | 5196 |
| 5059 var path = (req.url).path; | 5197 var path = (req.url).path; |
| 5060 var pathOffset = 0; | 5198 var pathOffset = 0; |
| 5061 var index; | 5199 var index; |
| 5062 var subPart; | 5200 var subPart; |
| 5063 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5201 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5064 pathOffset += 10; | 5202 pathOffset += 1; |
| 5203 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5204 pathOffset += 9; |
| 5065 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5205 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 5066 pathOffset += 6; | 5206 pathOffset += 6; |
| 5067 index = path.indexOf("/comments/", pathOffset); | 5207 index = path.indexOf("/comments/", pathOffset); |
| 5068 unittest.expect(index >= 0, unittest.isTrue); | 5208 unittest.expect(index >= 0, unittest.isTrue); |
| 5069 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5209 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5070 pathOffset = index; | 5210 pathOffset = index; |
| 5071 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5211 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 5072 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 5212 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 5073 pathOffset += 10; | 5213 pathOffset += 10; |
| 5074 index = path.indexOf("/replies/", pathOffset); | 5214 index = path.indexOf("/replies/", pathOffset); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5120 var arg_commentId = "foo"; | 5260 var arg_commentId = "foo"; |
| 5121 var arg_replyId = "foo"; | 5261 var arg_replyId = "foo"; |
| 5122 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5262 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5123 var obj = new api.CommentReply.fromJson(json); | 5263 var obj = new api.CommentReply.fromJson(json); |
| 5124 checkCommentReply(obj); | 5264 checkCommentReply(obj); |
| 5125 | 5265 |
| 5126 var path = (req.url).path; | 5266 var path = (req.url).path; |
| 5127 var pathOffset = 0; | 5267 var pathOffset = 0; |
| 5128 var index; | 5268 var index; |
| 5129 var subPart; | 5269 var subPart; |
| 5130 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5131 pathOffset += 10; | 5271 pathOffset += 1; |
| 5272 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5273 pathOffset += 9; |
| 5132 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5274 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 5133 pathOffset += 6; | 5275 pathOffset += 6; |
| 5134 index = path.indexOf("/comments/", pathOffset); | 5276 index = path.indexOf("/comments/", pathOffset); |
| 5135 unittest.expect(index >= 0, unittest.isTrue); | 5277 unittest.expect(index >= 0, unittest.isTrue); |
| 5136 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5278 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5137 pathOffset = index; | 5279 pathOffset = index; |
| 5138 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5280 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 5139 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); | 5281 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/comments/")); |
| 5140 pathOffset += 10; | 5282 pathOffset += 10; |
| 5141 index = path.indexOf("/replies/", pathOffset); | 5283 index = path.indexOf("/replies/", pathOffset); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5186 | 5328 |
| 5187 var mock = new common_test.HttpServerMock(); | 5329 var mock = new common_test.HttpServerMock(); |
| 5188 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; | 5330 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; |
| 5189 var arg_fileId = "foo"; | 5331 var arg_fileId = "foo"; |
| 5190 var arg_revisionId = "foo"; | 5332 var arg_revisionId = "foo"; |
| 5191 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5333 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5192 var path = (req.url).path; | 5334 var path = (req.url).path; |
| 5193 var pathOffset = 0; | 5335 var pathOffset = 0; |
| 5194 var index; | 5336 var index; |
| 5195 var subPart; | 5337 var subPart; |
| 5196 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5338 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5197 pathOffset += 10; | 5339 pathOffset += 1; |
| 5340 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5341 pathOffset += 9; |
| 5198 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5342 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 5199 pathOffset += 6; | 5343 pathOffset += 6; |
| 5200 index = path.indexOf("/revisions/", pathOffset); | 5344 index = path.indexOf("/revisions/", pathOffset); |
| 5201 unittest.expect(index >= 0, unittest.isTrue); | 5345 unittest.expect(index >= 0, unittest.isTrue); |
| 5202 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5346 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5203 pathOffset = index; | 5347 pathOffset = index; |
| 5204 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5348 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 5205 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/revisions/")); | 5349 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/revisions/")); |
| 5206 pathOffset += 11; | 5350 pathOffset += 11; |
| 5207 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5351 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5239 | 5383 |
| 5240 var mock = new common_test.HttpServerMock(); | 5384 var mock = new common_test.HttpServerMock(); |
| 5241 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; | 5385 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; |
| 5242 var arg_fileId = "foo"; | 5386 var arg_fileId = "foo"; |
| 5243 var arg_revisionId = "foo"; | 5387 var arg_revisionId = "foo"; |
| 5244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5388 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5245 var path = (req.url).path; | 5389 var path = (req.url).path; |
| 5246 var pathOffset = 0; | 5390 var pathOffset = 0; |
| 5247 var index; | 5391 var index; |
| 5248 var subPart; | 5392 var subPart; |
| 5249 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5393 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5250 pathOffset += 10; | 5394 pathOffset += 1; |
| 5395 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5396 pathOffset += 9; |
| 5251 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5397 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 5252 pathOffset += 6; | 5398 pathOffset += 6; |
| 5253 index = path.indexOf("/revisions/", pathOffset); | 5399 index = path.indexOf("/revisions/", pathOffset); |
| 5254 unittest.expect(index >= 0, unittest.isTrue); | 5400 unittest.expect(index >= 0, unittest.isTrue); |
| 5255 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5401 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5256 pathOffset = index; | 5402 pathOffset = index; |
| 5257 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5403 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 5258 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/revisions/")); | 5404 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/revisions/")); |
| 5259 pathOffset += 11; | 5405 pathOffset += 11; |
| 5260 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5406 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5293 unittest.test("method--list", () { | 5439 unittest.test("method--list", () { |
| 5294 | 5440 |
| 5295 var mock = new common_test.HttpServerMock(); | 5441 var mock = new common_test.HttpServerMock(); |
| 5296 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; | 5442 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; |
| 5297 var arg_fileId = "foo"; | 5443 var arg_fileId = "foo"; |
| 5298 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5299 var path = (req.url).path; | 5445 var path = (req.url).path; |
| 5300 var pathOffset = 0; | 5446 var pathOffset = 0; |
| 5301 var index; | 5447 var index; |
| 5302 var subPart; | 5448 var subPart; |
| 5303 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5304 pathOffset += 10; | 5450 pathOffset += 1; |
| 5451 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5452 pathOffset += 9; |
| 5305 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5453 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 5306 pathOffset += 6; | 5454 pathOffset += 6; |
| 5307 index = path.indexOf("/revisions", pathOffset); | 5455 index = path.indexOf("/revisions", pathOffset); |
| 5308 unittest.expect(index >= 0, unittest.isTrue); | 5456 unittest.expect(index >= 0, unittest.isTrue); |
| 5309 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5457 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5310 pathOffset = index; | 5458 pathOffset = index; |
| 5311 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5459 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 5312 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/revisions")); | 5460 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/revisions")); |
| 5313 pathOffset += 10; | 5461 pathOffset += 10; |
| 5314 | 5462 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5349 var arg_fileId = "foo"; | 5497 var arg_fileId = "foo"; |
| 5350 var arg_revisionId = "foo"; | 5498 var arg_revisionId = "foo"; |
| 5351 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5499 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5352 var obj = new api.Revision.fromJson(json); | 5500 var obj = new api.Revision.fromJson(json); |
| 5353 checkRevision(obj); | 5501 checkRevision(obj); |
| 5354 | 5502 |
| 5355 var path = (req.url).path; | 5503 var path = (req.url).path; |
| 5356 var pathOffset = 0; | 5504 var pathOffset = 0; |
| 5357 var index; | 5505 var index; |
| 5358 var subPart; | 5506 var subPart; |
| 5359 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5507 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5360 pathOffset += 10; | 5508 pathOffset += 1; |
| 5509 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5510 pathOffset += 9; |
| 5361 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5511 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 5362 pathOffset += 6; | 5512 pathOffset += 6; |
| 5363 index = path.indexOf("/revisions/", pathOffset); | 5513 index = path.indexOf("/revisions/", pathOffset); |
| 5364 unittest.expect(index >= 0, unittest.isTrue); | 5514 unittest.expect(index >= 0, unittest.isTrue); |
| 5365 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5515 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5366 pathOffset = index; | 5516 pathOffset = index; |
| 5367 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5517 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 5368 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/revisions/")); | 5518 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/revisions/")); |
| 5369 pathOffset += 11; | 5519 pathOffset += 11; |
| 5370 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5520 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5408 var arg_fileId = "foo"; | 5558 var arg_fileId = "foo"; |
| 5409 var arg_revisionId = "foo"; | 5559 var arg_revisionId = "foo"; |
| 5410 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5560 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5411 var obj = new api.Revision.fromJson(json); | 5561 var obj = new api.Revision.fromJson(json); |
| 5412 checkRevision(obj); | 5562 checkRevision(obj); |
| 5413 | 5563 |
| 5414 var path = (req.url).path; | 5564 var path = (req.url).path; |
| 5415 var pathOffset = 0; | 5565 var pathOffset = 0; |
| 5416 var index; | 5566 var index; |
| 5417 var subPart; | 5567 var subPart; |
| 5418 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/drive/v2/")); | 5568 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5419 pathOffset += 10; | 5569 pathOffset += 1; |
| 5570 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 5571 pathOffset += 9; |
| 5420 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); | 5572 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("files/")); |
| 5421 pathOffset += 6; | 5573 pathOffset += 6; |
| 5422 index = path.indexOf("/revisions/", pathOffset); | 5574 index = path.indexOf("/revisions/", pathOffset); |
| 5423 unittest.expect(index >= 0, unittest.isTrue); | 5575 unittest.expect(index >= 0, unittest.isTrue); |
| 5424 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5576 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5425 pathOffset = index; | 5577 pathOffset = index; |
| 5426 unittest.expect(subPart, unittest.equals("$arg_fileId")); | 5578 unittest.expect(subPart, unittest.equals("$arg_fileId")); |
| 5427 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/revisions/")); | 5579 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/revisions/")); |
| 5428 pathOffset += 11; | 5580 pathOffset += 11; |
| 5429 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5581 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5457 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs
ync(((api.Revision response) { | 5609 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs
ync(((api.Revision response) { |
| 5458 checkRevision(response); | 5610 checkRevision(response); |
| 5459 }))); | 5611 }))); |
| 5460 }); | 5612 }); |
| 5461 | 5613 |
| 5462 }); | 5614 }); |
| 5463 | 5615 |
| 5464 | 5616 |
| 5465 } | 5617 } |
| 5466 | 5618 |
| OLD | NEW |