| OLD | NEW |
| 1 library googleapis.analytics.v3.test; | 1 library googleapis.analytics.v3.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| 11 | 11 |
| 12 import 'package:googleapis/analytics/v3.dart' as api; | 12 import 'package:googleapis/analytics/v3.dart' as api; |
| 13 | 13 |
| 14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 15 core.Function _callback; |
| 16 core.bool _expectJson; | 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 19 _callback = callback; |
| 20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 } else { | 39 } else { |
| 40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); | 41 return _callback(request, data); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 core.int buildCounterAccountChildLink = 0; | 54 core.int buildCounterAccountChildLink = 0; |
| 55 buildAccountChildLink() { | 55 buildAccountChildLink() { |
| 56 var o = new api.AccountChildLink(); | 56 var o = new api.AccountChildLink(); |
| 57 buildCounterAccountChildLink++; | 57 buildCounterAccountChildLink++; |
| 58 if (buildCounterAccountChildLink < 3) { | 58 if (buildCounterAccountChildLink < 3) { |
| 59 o.href = "foo"; | 59 o.href = "foo"; |
| 60 o.type = "foo"; | 60 o.type = "foo"; |
| 61 } | 61 } |
| 62 buildCounterAccountChildLink--; | 62 buildCounterAccountChildLink--; |
| 63 return o; | 63 return o; |
| 64 } | 64 } |
| 65 | 65 |
| 66 checkAccountChildLink(api.AccountChildLink o) { | 66 checkAccountChildLink(api.AccountChildLink o) { |
| 67 buildCounterAccountChildLink++; | 67 buildCounterAccountChildLink++; |
| 68 if (buildCounterAccountChildLink < 3) { | 68 if (buildCounterAccountChildLink < 3) { |
| 69 unittest.expect(o.href, unittest.equals('foo')); | 69 unittest.expect(o.href, unittest.equals('foo')); |
| 70 unittest.expect(o.type, unittest.equals('foo')); | 70 unittest.expect(o.type, unittest.equals('foo')); |
| 71 } | 71 } |
| 72 buildCounterAccountChildLink--; | 72 buildCounterAccountChildLink--; |
| 73 } | 73 } |
| 74 | 74 |
| 75 buildUnnamed925() { | 75 buildUnnamed932() { |
| 76 var o = new core.List<core.String>(); | 76 var o = new core.List<core.String>(); |
| 77 o.add("foo"); | 77 o.add("foo"); |
| 78 o.add("foo"); | 78 o.add("foo"); |
| 79 return o; | 79 return o; |
| 80 } | 80 } |
| 81 | 81 |
| 82 checkUnnamed925(core.List<core.String> o) { | 82 checkUnnamed932(core.List<core.String> o) { |
| 83 unittest.expect(o, unittest.hasLength(2)); | 83 unittest.expect(o, unittest.hasLength(2)); |
| 84 unittest.expect(o[0], unittest.equals('foo')); | 84 unittest.expect(o[0], unittest.equals('foo')); |
| 85 unittest.expect(o[1], unittest.equals('foo')); | 85 unittest.expect(o[1], unittest.equals('foo')); |
| 86 } | 86 } |
| 87 | 87 |
| 88 core.int buildCounterAccountPermissions = 0; | 88 core.int buildCounterAccountPermissions = 0; |
| 89 buildAccountPermissions() { | 89 buildAccountPermissions() { |
| 90 var o = new api.AccountPermissions(); | 90 var o = new api.AccountPermissions(); |
| 91 buildCounterAccountPermissions++; | 91 buildCounterAccountPermissions++; |
| 92 if (buildCounterAccountPermissions < 3) { | 92 if (buildCounterAccountPermissions < 3) { |
| 93 o.effective = buildUnnamed925(); | 93 o.effective = buildUnnamed932(); |
| 94 } | 94 } |
| 95 buildCounterAccountPermissions--; | 95 buildCounterAccountPermissions--; |
| 96 return o; | 96 return o; |
| 97 } | 97 } |
| 98 | 98 |
| 99 checkAccountPermissions(api.AccountPermissions o) { | 99 checkAccountPermissions(api.AccountPermissions o) { |
| 100 buildCounterAccountPermissions++; | 100 buildCounterAccountPermissions++; |
| 101 if (buildCounterAccountPermissions < 3) { | 101 if (buildCounterAccountPermissions < 3) { |
| 102 checkUnnamed925(o.effective); | 102 checkUnnamed932(o.effective); |
| 103 } | 103 } |
| 104 buildCounterAccountPermissions--; | 104 buildCounterAccountPermissions--; |
| 105 } | 105 } |
| 106 | 106 |
| 107 core.int buildCounterAccount = 0; | 107 core.int buildCounterAccount = 0; |
| 108 buildAccount() { | 108 buildAccount() { |
| 109 var o = new api.Account(); | 109 var o = new api.Account(); |
| 110 buildCounterAccount++; | 110 buildCounterAccount++; |
| 111 if (buildCounterAccount < 3) { | 111 if (buildCounterAccount < 3) { |
| 112 o.childLink = buildAccountChildLink(); | 112 o.childLink = buildAccountChildLink(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 buildCounterAccountRef++; | 157 buildCounterAccountRef++; |
| 158 if (buildCounterAccountRef < 3) { | 158 if (buildCounterAccountRef < 3) { |
| 159 unittest.expect(o.href, unittest.equals('foo')); | 159 unittest.expect(o.href, unittest.equals('foo')); |
| 160 unittest.expect(o.id, unittest.equals('foo')); | 160 unittest.expect(o.id, unittest.equals('foo')); |
| 161 unittest.expect(o.kind, unittest.equals('foo')); | 161 unittest.expect(o.kind, unittest.equals('foo')); |
| 162 unittest.expect(o.name, unittest.equals('foo')); | 162 unittest.expect(o.name, unittest.equals('foo')); |
| 163 } | 163 } |
| 164 buildCounterAccountRef--; | 164 buildCounterAccountRef--; |
| 165 } | 165 } |
| 166 | 166 |
| 167 buildUnnamed926() { | 167 buildUnnamed933() { |
| 168 var o = new core.List<api.AccountSummary>(); | 168 var o = new core.List<api.AccountSummary>(); |
| 169 o.add(buildAccountSummary()); | 169 o.add(buildAccountSummary()); |
| 170 o.add(buildAccountSummary()); | 170 o.add(buildAccountSummary()); |
| 171 return o; | 171 return o; |
| 172 } | 172 } |
| 173 | 173 |
| 174 checkUnnamed926(core.List<api.AccountSummary> o) { | 174 checkUnnamed933(core.List<api.AccountSummary> o) { |
| 175 unittest.expect(o, unittest.hasLength(2)); | 175 unittest.expect(o, unittest.hasLength(2)); |
| 176 checkAccountSummary(o[0]); | 176 checkAccountSummary(o[0]); |
| 177 checkAccountSummary(o[1]); | 177 checkAccountSummary(o[1]); |
| 178 } | 178 } |
| 179 | 179 |
| 180 core.int buildCounterAccountSummaries = 0; | 180 core.int buildCounterAccountSummaries = 0; |
| 181 buildAccountSummaries() { | 181 buildAccountSummaries() { |
| 182 var o = new api.AccountSummaries(); | 182 var o = new api.AccountSummaries(); |
| 183 buildCounterAccountSummaries++; | 183 buildCounterAccountSummaries++; |
| 184 if (buildCounterAccountSummaries < 3) { | 184 if (buildCounterAccountSummaries < 3) { |
| 185 o.items = buildUnnamed926(); | 185 o.items = buildUnnamed933(); |
| 186 o.itemsPerPage = 42; | 186 o.itemsPerPage = 42; |
| 187 o.kind = "foo"; | 187 o.kind = "foo"; |
| 188 o.nextLink = "foo"; | 188 o.nextLink = "foo"; |
| 189 o.previousLink = "foo"; | 189 o.previousLink = "foo"; |
| 190 o.startIndex = 42; | 190 o.startIndex = 42; |
| 191 o.totalResults = 42; | 191 o.totalResults = 42; |
| 192 o.username = "foo"; | 192 o.username = "foo"; |
| 193 } | 193 } |
| 194 buildCounterAccountSummaries--; | 194 buildCounterAccountSummaries--; |
| 195 return o; | 195 return o; |
| 196 } | 196 } |
| 197 | 197 |
| 198 checkAccountSummaries(api.AccountSummaries o) { | 198 checkAccountSummaries(api.AccountSummaries o) { |
| 199 buildCounterAccountSummaries++; | 199 buildCounterAccountSummaries++; |
| 200 if (buildCounterAccountSummaries < 3) { | 200 if (buildCounterAccountSummaries < 3) { |
| 201 checkUnnamed926(o.items); | 201 checkUnnamed933(o.items); |
| 202 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 202 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 203 unittest.expect(o.kind, unittest.equals('foo')); | 203 unittest.expect(o.kind, unittest.equals('foo')); |
| 204 unittest.expect(o.nextLink, unittest.equals('foo')); | 204 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 205 unittest.expect(o.previousLink, unittest.equals('foo')); | 205 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 206 unittest.expect(o.startIndex, unittest.equals(42)); | 206 unittest.expect(o.startIndex, unittest.equals(42)); |
| 207 unittest.expect(o.totalResults, unittest.equals(42)); | 207 unittest.expect(o.totalResults, unittest.equals(42)); |
| 208 unittest.expect(o.username, unittest.equals('foo')); | 208 unittest.expect(o.username, unittest.equals('foo')); |
| 209 } | 209 } |
| 210 buildCounterAccountSummaries--; | 210 buildCounterAccountSummaries--; |
| 211 } | 211 } |
| 212 | 212 |
| 213 buildUnnamed927() { | 213 buildUnnamed934() { |
| 214 var o = new core.List<api.WebPropertySummary>(); | 214 var o = new core.List<api.WebPropertySummary>(); |
| 215 o.add(buildWebPropertySummary()); | 215 o.add(buildWebPropertySummary()); |
| 216 o.add(buildWebPropertySummary()); | 216 o.add(buildWebPropertySummary()); |
| 217 return o; | 217 return o; |
| 218 } | 218 } |
| 219 | 219 |
| 220 checkUnnamed927(core.List<api.WebPropertySummary> o) { | 220 checkUnnamed934(core.List<api.WebPropertySummary> o) { |
| 221 unittest.expect(o, unittest.hasLength(2)); | 221 unittest.expect(o, unittest.hasLength(2)); |
| 222 checkWebPropertySummary(o[0]); | 222 checkWebPropertySummary(o[0]); |
| 223 checkWebPropertySummary(o[1]); | 223 checkWebPropertySummary(o[1]); |
| 224 } | 224 } |
| 225 | 225 |
| 226 core.int buildCounterAccountSummary = 0; | 226 core.int buildCounterAccountSummary = 0; |
| 227 buildAccountSummary() { | 227 buildAccountSummary() { |
| 228 var o = new api.AccountSummary(); | 228 var o = new api.AccountSummary(); |
| 229 buildCounterAccountSummary++; | 229 buildCounterAccountSummary++; |
| 230 if (buildCounterAccountSummary < 3) { | 230 if (buildCounterAccountSummary < 3) { |
| 231 o.id = "foo"; | 231 o.id = "foo"; |
| 232 o.kind = "foo"; | 232 o.kind = "foo"; |
| 233 o.name = "foo"; | 233 o.name = "foo"; |
| 234 o.starred = true; | 234 o.starred = true; |
| 235 o.webProperties = buildUnnamed927(); | 235 o.webProperties = buildUnnamed934(); |
| 236 } | 236 } |
| 237 buildCounterAccountSummary--; | 237 buildCounterAccountSummary--; |
| 238 return o; | 238 return o; |
| 239 } | 239 } |
| 240 | 240 |
| 241 checkAccountSummary(api.AccountSummary o) { | 241 checkAccountSummary(api.AccountSummary o) { |
| 242 buildCounterAccountSummary++; | 242 buildCounterAccountSummary++; |
| 243 if (buildCounterAccountSummary < 3) { | 243 if (buildCounterAccountSummary < 3) { |
| 244 unittest.expect(o.id, unittest.equals('foo')); | 244 unittest.expect(o.id, unittest.equals('foo')); |
| 245 unittest.expect(o.kind, unittest.equals('foo')); | 245 unittest.expect(o.kind, unittest.equals('foo')); |
| 246 unittest.expect(o.name, unittest.equals('foo')); | 246 unittest.expect(o.name, unittest.equals('foo')); |
| 247 unittest.expect(o.starred, unittest.isTrue); | 247 unittest.expect(o.starred, unittest.isTrue); |
| 248 checkUnnamed927(o.webProperties); | 248 checkUnnamed934(o.webProperties); |
| 249 } | 249 } |
| 250 buildCounterAccountSummary--; | 250 buildCounterAccountSummary--; |
| 251 } | 251 } |
| 252 | 252 |
| 253 core.int buildCounterAccountTicket = 0; | 253 core.int buildCounterAccountTicket = 0; |
| 254 buildAccountTicket() { | 254 buildAccountTicket() { |
| 255 var o = new api.AccountTicket(); | 255 var o = new api.AccountTicket(); |
| 256 buildCounterAccountTicket++; | 256 buildCounterAccountTicket++; |
| 257 if (buildCounterAccountTicket < 3) { | 257 if (buildCounterAccountTicket < 3) { |
| 258 o.account = buildAccount(); | 258 o.account = buildAccount(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 272 checkAccount(o.account); | 272 checkAccount(o.account); |
| 273 unittest.expect(o.id, unittest.equals('foo')); | 273 unittest.expect(o.id, unittest.equals('foo')); |
| 274 unittest.expect(o.kind, unittest.equals('foo')); | 274 unittest.expect(o.kind, unittest.equals('foo')); |
| 275 checkProfile(o.profile); | 275 checkProfile(o.profile); |
| 276 unittest.expect(o.redirectUri, unittest.equals('foo')); | 276 unittest.expect(o.redirectUri, unittest.equals('foo')); |
| 277 checkWebproperty(o.webproperty); | 277 checkWebproperty(o.webproperty); |
| 278 } | 278 } |
| 279 buildCounterAccountTicket--; | 279 buildCounterAccountTicket--; |
| 280 } | 280 } |
| 281 | 281 |
| 282 buildUnnamed928() { | 282 buildUnnamed935() { |
| 283 var o = new core.List<api.Account>(); | 283 var o = new core.List<api.Account>(); |
| 284 o.add(buildAccount()); | 284 o.add(buildAccount()); |
| 285 o.add(buildAccount()); | 285 o.add(buildAccount()); |
| 286 return o; | 286 return o; |
| 287 } | 287 } |
| 288 | 288 |
| 289 checkUnnamed928(core.List<api.Account> o) { | 289 checkUnnamed935(core.List<api.Account> o) { |
| 290 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
| 291 checkAccount(o[0]); | 291 checkAccount(o[0]); |
| 292 checkAccount(o[1]); | 292 checkAccount(o[1]); |
| 293 } | 293 } |
| 294 | 294 |
| 295 core.int buildCounterAccounts = 0; | 295 core.int buildCounterAccounts = 0; |
| 296 buildAccounts() { | 296 buildAccounts() { |
| 297 var o = new api.Accounts(); | 297 var o = new api.Accounts(); |
| 298 buildCounterAccounts++; | 298 buildCounterAccounts++; |
| 299 if (buildCounterAccounts < 3) { | 299 if (buildCounterAccounts < 3) { |
| 300 o.items = buildUnnamed928(); | 300 o.items = buildUnnamed935(); |
| 301 o.itemsPerPage = 42; | 301 o.itemsPerPage = 42; |
| 302 o.kind = "foo"; | 302 o.kind = "foo"; |
| 303 o.nextLink = "foo"; | 303 o.nextLink = "foo"; |
| 304 o.previousLink = "foo"; | 304 o.previousLink = "foo"; |
| 305 o.startIndex = 42; | 305 o.startIndex = 42; |
| 306 o.totalResults = 42; | 306 o.totalResults = 42; |
| 307 o.username = "foo"; | 307 o.username = "foo"; |
| 308 } | 308 } |
| 309 buildCounterAccounts--; | 309 buildCounterAccounts--; |
| 310 return o; | 310 return o; |
| 311 } | 311 } |
| 312 | 312 |
| 313 checkAccounts(api.Accounts o) { | 313 checkAccounts(api.Accounts o) { |
| 314 buildCounterAccounts++; | 314 buildCounterAccounts++; |
| 315 if (buildCounterAccounts < 3) { | 315 if (buildCounterAccounts < 3) { |
| 316 checkUnnamed928(o.items); | 316 checkUnnamed935(o.items); |
| 317 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 317 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 318 unittest.expect(o.kind, unittest.equals('foo')); | 318 unittest.expect(o.kind, unittest.equals('foo')); |
| 319 unittest.expect(o.nextLink, unittest.equals('foo')); | 319 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 320 unittest.expect(o.previousLink, unittest.equals('foo')); | 320 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 321 unittest.expect(o.startIndex, unittest.equals(42)); | 321 unittest.expect(o.startIndex, unittest.equals(42)); |
| 322 unittest.expect(o.totalResults, unittest.equals(42)); | 322 unittest.expect(o.totalResults, unittest.equals(42)); |
| 323 unittest.expect(o.username, unittest.equals('foo')); | 323 unittest.expect(o.username, unittest.equals('foo')); |
| 324 } | 324 } |
| 325 buildCounterAccounts--; | 325 buildCounterAccounts--; |
| 326 } | 326 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 341 checkAdWordsAccount(api.AdWordsAccount o) { | 341 checkAdWordsAccount(api.AdWordsAccount o) { |
| 342 buildCounterAdWordsAccount++; | 342 buildCounterAdWordsAccount++; |
| 343 if (buildCounterAdWordsAccount < 3) { | 343 if (buildCounterAdWordsAccount < 3) { |
| 344 unittest.expect(o.autoTaggingEnabled, unittest.isTrue); | 344 unittest.expect(o.autoTaggingEnabled, unittest.isTrue); |
| 345 unittest.expect(o.customerId, unittest.equals('foo')); | 345 unittest.expect(o.customerId, unittest.equals('foo')); |
| 346 unittest.expect(o.kind, unittest.equals('foo')); | 346 unittest.expect(o.kind, unittest.equals('foo')); |
| 347 } | 347 } |
| 348 buildCounterAdWordsAccount--; | 348 buildCounterAdWordsAccount--; |
| 349 } | 349 } |
| 350 | 350 |
| 351 buildUnnamed929() { | 351 buildUnnamed936() { |
| 352 var o = new core.List<core.String>(); | 352 var o = new core.List<core.String>(); |
| 353 o.add("foo"); | 353 o.add("foo"); |
| 354 o.add("foo"); | 354 o.add("foo"); |
| 355 return o; | 355 return o; |
| 356 } | 356 } |
| 357 | 357 |
| 358 checkUnnamed929(core.List<core.String> o) { | 358 checkUnnamed936(core.List<core.String> o) { |
| 359 unittest.expect(o, unittest.hasLength(2)); | 359 unittest.expect(o, unittest.hasLength(2)); |
| 360 unittest.expect(o[0], unittest.equals('foo')); | 360 unittest.expect(o[0], unittest.equals('foo')); |
| 361 unittest.expect(o[1], unittest.equals('foo')); | 361 unittest.expect(o[1], unittest.equals('foo')); |
| 362 } | 362 } |
| 363 | 363 |
| 364 core.int buildCounterAnalyticsDataimportDeleteUploadDataRequest = 0; | 364 core.int buildCounterAnalyticsDataimportDeleteUploadDataRequest = 0; |
| 365 buildAnalyticsDataimportDeleteUploadDataRequest() { | 365 buildAnalyticsDataimportDeleteUploadDataRequest() { |
| 366 var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); | 366 var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); |
| 367 buildCounterAnalyticsDataimportDeleteUploadDataRequest++; | 367 buildCounterAnalyticsDataimportDeleteUploadDataRequest++; |
| 368 if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { | 368 if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { |
| 369 o.customDataImportUids = buildUnnamed929(); | 369 o.customDataImportUids = buildUnnamed936(); |
| 370 } | 370 } |
| 371 buildCounterAnalyticsDataimportDeleteUploadDataRequest--; | 371 buildCounterAnalyticsDataimportDeleteUploadDataRequest--; |
| 372 return o; | 372 return o; |
| 373 } | 373 } |
| 374 | 374 |
| 375 checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUpl
oadDataRequest o) { | 375 checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUpl
oadDataRequest o) { |
| 376 buildCounterAnalyticsDataimportDeleteUploadDataRequest++; | 376 buildCounterAnalyticsDataimportDeleteUploadDataRequest++; |
| 377 if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { | 377 if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { |
| 378 checkUnnamed929(o.customDataImportUids); | 378 checkUnnamed936(o.customDataImportUids); |
| 379 } | 379 } |
| 380 buildCounterAnalyticsDataimportDeleteUploadDataRequest--; | 380 buildCounterAnalyticsDataimportDeleteUploadDataRequest--; |
| 381 } | 381 } |
| 382 | 382 |
| 383 buildUnnamed930() { | 383 buildUnnamed937() { |
| 384 var o = new core.Map<core.String, core.String>(); | 384 var o = new core.Map<core.String, core.String>(); |
| 385 o["x"] = "foo"; | 385 o["x"] = "foo"; |
| 386 o["y"] = "foo"; | 386 o["y"] = "foo"; |
| 387 return o; | 387 return o; |
| 388 } | 388 } |
| 389 | 389 |
| 390 checkUnnamed930(core.Map<core.String, core.String> o) { | 390 checkUnnamed937(core.Map<core.String, core.String> o) { |
| 391 unittest.expect(o, unittest.hasLength(2)); | 391 unittest.expect(o, unittest.hasLength(2)); |
| 392 unittest.expect(o["x"], unittest.equals('foo')); | 392 unittest.expect(o["x"], unittest.equals('foo')); |
| 393 unittest.expect(o["y"], unittest.equals('foo')); | 393 unittest.expect(o["y"], unittest.equals('foo')); |
| 394 } | 394 } |
| 395 | 395 |
| 396 core.int buildCounterColumn = 0; | 396 core.int buildCounterColumn = 0; |
| 397 buildColumn() { | 397 buildColumn() { |
| 398 var o = new api.Column(); | 398 var o = new api.Column(); |
| 399 buildCounterColumn++; | 399 buildCounterColumn++; |
| 400 if (buildCounterColumn < 3) { | 400 if (buildCounterColumn < 3) { |
| 401 o.attributes = buildUnnamed930(); | 401 o.attributes = buildUnnamed937(); |
| 402 o.id = "foo"; | 402 o.id = "foo"; |
| 403 o.kind = "foo"; | 403 o.kind = "foo"; |
| 404 } | 404 } |
| 405 buildCounterColumn--; | 405 buildCounterColumn--; |
| 406 return o; | 406 return o; |
| 407 } | 407 } |
| 408 | 408 |
| 409 checkColumn(api.Column o) { | 409 checkColumn(api.Column o) { |
| 410 buildCounterColumn++; | 410 buildCounterColumn++; |
| 411 if (buildCounterColumn < 3) { | 411 if (buildCounterColumn < 3) { |
| 412 checkUnnamed930(o.attributes); | 412 checkUnnamed937(o.attributes); |
| 413 unittest.expect(o.id, unittest.equals('foo')); | 413 unittest.expect(o.id, unittest.equals('foo')); |
| 414 unittest.expect(o.kind, unittest.equals('foo')); | 414 unittest.expect(o.kind, unittest.equals('foo')); |
| 415 } | 415 } |
| 416 buildCounterColumn--; | 416 buildCounterColumn--; |
| 417 } | 417 } |
| 418 | 418 |
| 419 buildUnnamed931() { | 419 buildUnnamed938() { |
| 420 var o = new core.List<core.String>(); | 420 var o = new core.List<core.String>(); |
| 421 o.add("foo"); | 421 o.add("foo"); |
| 422 o.add("foo"); | 422 o.add("foo"); |
| 423 return o; | 423 return o; |
| 424 } | 424 } |
| 425 | 425 |
| 426 checkUnnamed931(core.List<core.String> o) { | 426 checkUnnamed938(core.List<core.String> o) { |
| 427 unittest.expect(o, unittest.hasLength(2)); | 427 unittest.expect(o, unittest.hasLength(2)); |
| 428 unittest.expect(o[0], unittest.equals('foo')); | 428 unittest.expect(o[0], unittest.equals('foo')); |
| 429 unittest.expect(o[1], unittest.equals('foo')); | 429 unittest.expect(o[1], unittest.equals('foo')); |
| 430 } | 430 } |
| 431 | 431 |
| 432 buildUnnamed932() { | 432 buildUnnamed939() { |
| 433 var o = new core.List<api.Column>(); | 433 var o = new core.List<api.Column>(); |
| 434 o.add(buildColumn()); | 434 o.add(buildColumn()); |
| 435 o.add(buildColumn()); | 435 o.add(buildColumn()); |
| 436 return o; | 436 return o; |
| 437 } | 437 } |
| 438 | 438 |
| 439 checkUnnamed932(core.List<api.Column> o) { | 439 checkUnnamed939(core.List<api.Column> o) { |
| 440 unittest.expect(o, unittest.hasLength(2)); | 440 unittest.expect(o, unittest.hasLength(2)); |
| 441 checkColumn(o[0]); | 441 checkColumn(o[0]); |
| 442 checkColumn(o[1]); | 442 checkColumn(o[1]); |
| 443 } | 443 } |
| 444 | 444 |
| 445 core.int buildCounterColumns = 0; | 445 core.int buildCounterColumns = 0; |
| 446 buildColumns() { | 446 buildColumns() { |
| 447 var o = new api.Columns(); | 447 var o = new api.Columns(); |
| 448 buildCounterColumns++; | 448 buildCounterColumns++; |
| 449 if (buildCounterColumns < 3) { | 449 if (buildCounterColumns < 3) { |
| 450 o.attributeNames = buildUnnamed931(); | 450 o.attributeNames = buildUnnamed938(); |
| 451 o.etag = "foo"; | 451 o.etag = "foo"; |
| 452 o.items = buildUnnamed932(); | 452 o.items = buildUnnamed939(); |
| 453 o.kind = "foo"; | 453 o.kind = "foo"; |
| 454 o.totalResults = 42; | 454 o.totalResults = 42; |
| 455 } | 455 } |
| 456 buildCounterColumns--; | 456 buildCounterColumns--; |
| 457 return o; | 457 return o; |
| 458 } | 458 } |
| 459 | 459 |
| 460 checkColumns(api.Columns o) { | 460 checkColumns(api.Columns o) { |
| 461 buildCounterColumns++; | 461 buildCounterColumns++; |
| 462 if (buildCounterColumns < 3) { | 462 if (buildCounterColumns < 3) { |
| 463 checkUnnamed931(o.attributeNames); | 463 checkUnnamed938(o.attributeNames); |
| 464 unittest.expect(o.etag, unittest.equals('foo')); | 464 unittest.expect(o.etag, unittest.equals('foo')); |
| 465 checkUnnamed932(o.items); | 465 checkUnnamed939(o.items); |
| 466 unittest.expect(o.kind, unittest.equals('foo')); | 466 unittest.expect(o.kind, unittest.equals('foo')); |
| 467 unittest.expect(o.totalResults, unittest.equals(42)); | 467 unittest.expect(o.totalResults, unittest.equals(42)); |
| 468 } | 468 } |
| 469 buildCounterColumns--; | 469 buildCounterColumns--; |
| 470 } | 470 } |
| 471 | 471 |
| 472 core.int buildCounterCustomDataSourceChildLink = 0; | 472 core.int buildCounterCustomDataSourceChildLink = 0; |
| 473 buildCustomDataSourceChildLink() { | 473 buildCustomDataSourceChildLink() { |
| 474 var o = new api.CustomDataSourceChildLink(); | 474 var o = new api.CustomDataSourceChildLink(); |
| 475 buildCounterCustomDataSourceChildLink++; | 475 buildCounterCustomDataSourceChildLink++; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 504 | 504 |
| 505 checkCustomDataSourceParentLink(api.CustomDataSourceParentLink o) { | 505 checkCustomDataSourceParentLink(api.CustomDataSourceParentLink o) { |
| 506 buildCounterCustomDataSourceParentLink++; | 506 buildCounterCustomDataSourceParentLink++; |
| 507 if (buildCounterCustomDataSourceParentLink < 3) { | 507 if (buildCounterCustomDataSourceParentLink < 3) { |
| 508 unittest.expect(o.href, unittest.equals('foo')); | 508 unittest.expect(o.href, unittest.equals('foo')); |
| 509 unittest.expect(o.type, unittest.equals('foo')); | 509 unittest.expect(o.type, unittest.equals('foo')); |
| 510 } | 510 } |
| 511 buildCounterCustomDataSourceParentLink--; | 511 buildCounterCustomDataSourceParentLink--; |
| 512 } | 512 } |
| 513 | 513 |
| 514 buildUnnamed933() { | 514 buildUnnamed940() { |
| 515 var o = new core.List<core.String>(); | 515 var o = new core.List<core.String>(); |
| 516 o.add("foo"); | 516 o.add("foo"); |
| 517 o.add("foo"); | 517 o.add("foo"); |
| 518 return o; | 518 return o; |
| 519 } | 519 } |
| 520 | 520 |
| 521 checkUnnamed933(core.List<core.String> o) { | 521 checkUnnamed940(core.List<core.String> o) { |
| 522 unittest.expect(o, unittest.hasLength(2)); | 522 unittest.expect(o, unittest.hasLength(2)); |
| 523 unittest.expect(o[0], unittest.equals('foo')); | 523 unittest.expect(o[0], unittest.equals('foo')); |
| 524 unittest.expect(o[1], unittest.equals('foo')); | 524 unittest.expect(o[1], unittest.equals('foo')); |
| 525 } | 525 } |
| 526 | 526 |
| 527 core.int buildCounterCustomDataSource = 0; | 527 core.int buildCounterCustomDataSource = 0; |
| 528 buildCustomDataSource() { | 528 buildCustomDataSource() { |
| 529 var o = new api.CustomDataSource(); | 529 var o = new api.CustomDataSource(); |
| 530 buildCounterCustomDataSource++; | 530 buildCounterCustomDataSource++; |
| 531 if (buildCounterCustomDataSource < 3) { | 531 if (buildCounterCustomDataSource < 3) { |
| 532 o.accountId = "foo"; | 532 o.accountId = "foo"; |
| 533 o.childLink = buildCustomDataSourceChildLink(); | 533 o.childLink = buildCustomDataSourceChildLink(); |
| 534 o.created = core.DateTime.parse("2002-02-27T14:01:02"); | 534 o.created = core.DateTime.parse("2002-02-27T14:01:02"); |
| 535 o.description = "foo"; | 535 o.description = "foo"; |
| 536 o.id = "foo"; | 536 o.id = "foo"; |
| 537 o.importBehavior = "foo"; | 537 o.importBehavior = "foo"; |
| 538 o.kind = "foo"; | 538 o.kind = "foo"; |
| 539 o.name = "foo"; | 539 o.name = "foo"; |
| 540 o.parentLink = buildCustomDataSourceParentLink(); | 540 o.parentLink = buildCustomDataSourceParentLink(); |
| 541 o.profilesLinked = buildUnnamed933(); | 541 o.profilesLinked = buildUnnamed940(); |
| 542 o.selfLink = "foo"; | 542 o.selfLink = "foo"; |
| 543 o.type = "foo"; | 543 o.type = "foo"; |
| 544 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 544 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 545 o.uploadType = "foo"; | 545 o.uploadType = "foo"; |
| 546 o.webPropertyId = "foo"; | 546 o.webPropertyId = "foo"; |
| 547 } | 547 } |
| 548 buildCounterCustomDataSource--; | 548 buildCounterCustomDataSource--; |
| 549 return o; | 549 return o; |
| 550 } | 550 } |
| 551 | 551 |
| 552 checkCustomDataSource(api.CustomDataSource o) { | 552 checkCustomDataSource(api.CustomDataSource o) { |
| 553 buildCounterCustomDataSource++; | 553 buildCounterCustomDataSource++; |
| 554 if (buildCounterCustomDataSource < 3) { | 554 if (buildCounterCustomDataSource < 3) { |
| 555 unittest.expect(o.accountId, unittest.equals('foo')); | 555 unittest.expect(o.accountId, unittest.equals('foo')); |
| 556 checkCustomDataSourceChildLink(o.childLink); | 556 checkCustomDataSourceChildLink(o.childLink); |
| 557 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 557 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 558 unittest.expect(o.description, unittest.equals('foo')); | 558 unittest.expect(o.description, unittest.equals('foo')); |
| 559 unittest.expect(o.id, unittest.equals('foo')); | 559 unittest.expect(o.id, unittest.equals('foo')); |
| 560 unittest.expect(o.importBehavior, unittest.equals('foo')); | 560 unittest.expect(o.importBehavior, unittest.equals('foo')); |
| 561 unittest.expect(o.kind, unittest.equals('foo')); | 561 unittest.expect(o.kind, unittest.equals('foo')); |
| 562 unittest.expect(o.name, unittest.equals('foo')); | 562 unittest.expect(o.name, unittest.equals('foo')); |
| 563 checkCustomDataSourceParentLink(o.parentLink); | 563 checkCustomDataSourceParentLink(o.parentLink); |
| 564 checkUnnamed933(o.profilesLinked); | 564 checkUnnamed940(o.profilesLinked); |
| 565 unittest.expect(o.selfLink, unittest.equals('foo')); | 565 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 566 unittest.expect(o.type, unittest.equals('foo')); | 566 unittest.expect(o.type, unittest.equals('foo')); |
| 567 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 567 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 568 unittest.expect(o.uploadType, unittest.equals('foo')); | 568 unittest.expect(o.uploadType, unittest.equals('foo')); |
| 569 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 569 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 570 } | 570 } |
| 571 buildCounterCustomDataSource--; | 571 buildCounterCustomDataSource--; |
| 572 } | 572 } |
| 573 | 573 |
| 574 buildUnnamed934() { | 574 buildUnnamed941() { |
| 575 var o = new core.List<api.CustomDataSource>(); | 575 var o = new core.List<api.CustomDataSource>(); |
| 576 o.add(buildCustomDataSource()); | 576 o.add(buildCustomDataSource()); |
| 577 o.add(buildCustomDataSource()); | 577 o.add(buildCustomDataSource()); |
| 578 return o; | 578 return o; |
| 579 } | 579 } |
| 580 | 580 |
| 581 checkUnnamed934(core.List<api.CustomDataSource> o) { | 581 checkUnnamed941(core.List<api.CustomDataSource> o) { |
| 582 unittest.expect(o, unittest.hasLength(2)); | 582 unittest.expect(o, unittest.hasLength(2)); |
| 583 checkCustomDataSource(o[0]); | 583 checkCustomDataSource(o[0]); |
| 584 checkCustomDataSource(o[1]); | 584 checkCustomDataSource(o[1]); |
| 585 } | 585 } |
| 586 | 586 |
| 587 core.int buildCounterCustomDataSources = 0; | 587 core.int buildCounterCustomDataSources = 0; |
| 588 buildCustomDataSources() { | 588 buildCustomDataSources() { |
| 589 var o = new api.CustomDataSources(); | 589 var o = new api.CustomDataSources(); |
| 590 buildCounterCustomDataSources++; | 590 buildCounterCustomDataSources++; |
| 591 if (buildCounterCustomDataSources < 3) { | 591 if (buildCounterCustomDataSources < 3) { |
| 592 o.items = buildUnnamed934(); | 592 o.items = buildUnnamed941(); |
| 593 o.itemsPerPage = 42; | 593 o.itemsPerPage = 42; |
| 594 o.kind = "foo"; | 594 o.kind = "foo"; |
| 595 o.nextLink = "foo"; | 595 o.nextLink = "foo"; |
| 596 o.previousLink = "foo"; | 596 o.previousLink = "foo"; |
| 597 o.startIndex = 42; | 597 o.startIndex = 42; |
| 598 o.totalResults = 42; | 598 o.totalResults = 42; |
| 599 o.username = "foo"; | 599 o.username = "foo"; |
| 600 } | 600 } |
| 601 buildCounterCustomDataSources--; | 601 buildCounterCustomDataSources--; |
| 602 return o; | 602 return o; |
| 603 } | 603 } |
| 604 | 604 |
| 605 checkCustomDataSources(api.CustomDataSources o) { | 605 checkCustomDataSources(api.CustomDataSources o) { |
| 606 buildCounterCustomDataSources++; | 606 buildCounterCustomDataSources++; |
| 607 if (buildCounterCustomDataSources < 3) { | 607 if (buildCounterCustomDataSources < 3) { |
| 608 checkUnnamed934(o.items); | 608 checkUnnamed941(o.items); |
| 609 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 609 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 610 unittest.expect(o.kind, unittest.equals('foo')); | 610 unittest.expect(o.kind, unittest.equals('foo')); |
| 611 unittest.expect(o.nextLink, unittest.equals('foo')); | 611 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 612 unittest.expect(o.previousLink, unittest.equals('foo')); | 612 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 613 unittest.expect(o.startIndex, unittest.equals(42)); | 613 unittest.expect(o.startIndex, unittest.equals(42)); |
| 614 unittest.expect(o.totalResults, unittest.equals(42)); | 614 unittest.expect(o.totalResults, unittest.equals(42)); |
| 615 unittest.expect(o.username, unittest.equals('foo')); | 615 unittest.expect(o.username, unittest.equals('foo')); |
| 616 } | 616 } |
| 617 buildCounterCustomDataSources--; | 617 buildCounterCustomDataSources--; |
| 618 } | 618 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 unittest.expect(o.name, unittest.equals('foo')); | 672 unittest.expect(o.name, unittest.equals('foo')); |
| 673 checkCustomDimensionParentLink(o.parentLink); | 673 checkCustomDimensionParentLink(o.parentLink); |
| 674 unittest.expect(o.scope, unittest.equals('foo')); | 674 unittest.expect(o.scope, unittest.equals('foo')); |
| 675 unittest.expect(o.selfLink, unittest.equals('foo')); | 675 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 676 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 676 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 677 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 677 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 678 } | 678 } |
| 679 buildCounterCustomDimension--; | 679 buildCounterCustomDimension--; |
| 680 } | 680 } |
| 681 | 681 |
| 682 buildUnnamed935() { | 682 buildUnnamed942() { |
| 683 var o = new core.List<api.CustomDimension>(); | 683 var o = new core.List<api.CustomDimension>(); |
| 684 o.add(buildCustomDimension()); | 684 o.add(buildCustomDimension()); |
| 685 o.add(buildCustomDimension()); | 685 o.add(buildCustomDimension()); |
| 686 return o; | 686 return o; |
| 687 } | 687 } |
| 688 | 688 |
| 689 checkUnnamed935(core.List<api.CustomDimension> o) { | 689 checkUnnamed942(core.List<api.CustomDimension> o) { |
| 690 unittest.expect(o, unittest.hasLength(2)); | 690 unittest.expect(o, unittest.hasLength(2)); |
| 691 checkCustomDimension(o[0]); | 691 checkCustomDimension(o[0]); |
| 692 checkCustomDimension(o[1]); | 692 checkCustomDimension(o[1]); |
| 693 } | 693 } |
| 694 | 694 |
| 695 core.int buildCounterCustomDimensions = 0; | 695 core.int buildCounterCustomDimensions = 0; |
| 696 buildCustomDimensions() { | 696 buildCustomDimensions() { |
| 697 var o = new api.CustomDimensions(); | 697 var o = new api.CustomDimensions(); |
| 698 buildCounterCustomDimensions++; | 698 buildCounterCustomDimensions++; |
| 699 if (buildCounterCustomDimensions < 3) { | 699 if (buildCounterCustomDimensions < 3) { |
| 700 o.items = buildUnnamed935(); | 700 o.items = buildUnnamed942(); |
| 701 o.itemsPerPage = 42; | 701 o.itemsPerPage = 42; |
| 702 o.kind = "foo"; | 702 o.kind = "foo"; |
| 703 o.nextLink = "foo"; | 703 o.nextLink = "foo"; |
| 704 o.previousLink = "foo"; | 704 o.previousLink = "foo"; |
| 705 o.startIndex = 42; | 705 o.startIndex = 42; |
| 706 o.totalResults = 42; | 706 o.totalResults = 42; |
| 707 o.username = "foo"; | 707 o.username = "foo"; |
| 708 } | 708 } |
| 709 buildCounterCustomDimensions--; | 709 buildCounterCustomDimensions--; |
| 710 return o; | 710 return o; |
| 711 } | 711 } |
| 712 | 712 |
| 713 checkCustomDimensions(api.CustomDimensions o) { | 713 checkCustomDimensions(api.CustomDimensions o) { |
| 714 buildCounterCustomDimensions++; | 714 buildCounterCustomDimensions++; |
| 715 if (buildCounterCustomDimensions < 3) { | 715 if (buildCounterCustomDimensions < 3) { |
| 716 checkUnnamed935(o.items); | 716 checkUnnamed942(o.items); |
| 717 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 717 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 718 unittest.expect(o.kind, unittest.equals('foo')); | 718 unittest.expect(o.kind, unittest.equals('foo')); |
| 719 unittest.expect(o.nextLink, unittest.equals('foo')); | 719 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 720 unittest.expect(o.previousLink, unittest.equals('foo')); | 720 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 721 unittest.expect(o.startIndex, unittest.equals(42)); | 721 unittest.expect(o.startIndex, unittest.equals(42)); |
| 722 unittest.expect(o.totalResults, unittest.equals(42)); | 722 unittest.expect(o.totalResults, unittest.equals(42)); |
| 723 unittest.expect(o.username, unittest.equals('foo')); | 723 unittest.expect(o.username, unittest.equals('foo')); |
| 724 } | 724 } |
| 725 buildCounterCustomDimensions--; | 725 buildCounterCustomDimensions--; |
| 726 } | 726 } |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 checkCustomMetricParentLink(o.parentLink); | 786 checkCustomMetricParentLink(o.parentLink); |
| 787 unittest.expect(o.scope, unittest.equals('foo')); | 787 unittest.expect(o.scope, unittest.equals('foo')); |
| 788 unittest.expect(o.selfLink, unittest.equals('foo')); | 788 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 789 unittest.expect(o.type, unittest.equals('foo')); | 789 unittest.expect(o.type, unittest.equals('foo')); |
| 790 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 790 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 791 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 791 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 792 } | 792 } |
| 793 buildCounterCustomMetric--; | 793 buildCounterCustomMetric--; |
| 794 } | 794 } |
| 795 | 795 |
| 796 buildUnnamed936() { | 796 buildUnnamed943() { |
| 797 var o = new core.List<api.CustomMetric>(); | 797 var o = new core.List<api.CustomMetric>(); |
| 798 o.add(buildCustomMetric()); | 798 o.add(buildCustomMetric()); |
| 799 o.add(buildCustomMetric()); | 799 o.add(buildCustomMetric()); |
| 800 return o; | 800 return o; |
| 801 } | 801 } |
| 802 | 802 |
| 803 checkUnnamed936(core.List<api.CustomMetric> o) { | 803 checkUnnamed943(core.List<api.CustomMetric> o) { |
| 804 unittest.expect(o, unittest.hasLength(2)); | 804 unittest.expect(o, unittest.hasLength(2)); |
| 805 checkCustomMetric(o[0]); | 805 checkCustomMetric(o[0]); |
| 806 checkCustomMetric(o[1]); | 806 checkCustomMetric(o[1]); |
| 807 } | 807 } |
| 808 | 808 |
| 809 core.int buildCounterCustomMetrics = 0; | 809 core.int buildCounterCustomMetrics = 0; |
| 810 buildCustomMetrics() { | 810 buildCustomMetrics() { |
| 811 var o = new api.CustomMetrics(); | 811 var o = new api.CustomMetrics(); |
| 812 buildCounterCustomMetrics++; | 812 buildCounterCustomMetrics++; |
| 813 if (buildCounterCustomMetrics < 3) { | 813 if (buildCounterCustomMetrics < 3) { |
| 814 o.items = buildUnnamed936(); | 814 o.items = buildUnnamed943(); |
| 815 o.itemsPerPage = 42; | 815 o.itemsPerPage = 42; |
| 816 o.kind = "foo"; | 816 o.kind = "foo"; |
| 817 o.nextLink = "foo"; | 817 o.nextLink = "foo"; |
| 818 o.previousLink = "foo"; | 818 o.previousLink = "foo"; |
| 819 o.startIndex = 42; | 819 o.startIndex = 42; |
| 820 o.totalResults = 42; | 820 o.totalResults = 42; |
| 821 o.username = "foo"; | 821 o.username = "foo"; |
| 822 } | 822 } |
| 823 buildCounterCustomMetrics--; | 823 buildCounterCustomMetrics--; |
| 824 return o; | 824 return o; |
| 825 } | 825 } |
| 826 | 826 |
| 827 checkCustomMetrics(api.CustomMetrics o) { | 827 checkCustomMetrics(api.CustomMetrics o) { |
| 828 buildCounterCustomMetrics++; | 828 buildCounterCustomMetrics++; |
| 829 if (buildCounterCustomMetrics < 3) { | 829 if (buildCounterCustomMetrics < 3) { |
| 830 checkUnnamed936(o.items); | 830 checkUnnamed943(o.items); |
| 831 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 831 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 832 unittest.expect(o.kind, unittest.equals('foo')); | 832 unittest.expect(o.kind, unittest.equals('foo')); |
| 833 unittest.expect(o.nextLink, unittest.equals('foo')); | 833 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 834 unittest.expect(o.previousLink, unittest.equals('foo')); | 834 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 835 unittest.expect(o.startIndex, unittest.equals(42)); | 835 unittest.expect(o.startIndex, unittest.equals(42)); |
| 836 unittest.expect(o.totalResults, unittest.equals(42)); | 836 unittest.expect(o.totalResults, unittest.equals(42)); |
| 837 unittest.expect(o.username, unittest.equals('foo')); | 837 unittest.expect(o.username, unittest.equals('foo')); |
| 838 } | 838 } |
| 839 buildCounterCustomMetrics--; | 839 buildCounterCustomMetrics--; |
| 840 } | 840 } |
| 841 | 841 |
| 842 buildUnnamed937() { | 842 buildUnnamed944() { |
| 843 var o = new core.List<api.AdWordsAccount>(); | 843 var o = new core.List<api.AdWordsAccount>(); |
| 844 o.add(buildAdWordsAccount()); | 844 o.add(buildAdWordsAccount()); |
| 845 o.add(buildAdWordsAccount()); | 845 o.add(buildAdWordsAccount()); |
| 846 return o; | 846 return o; |
| 847 } | 847 } |
| 848 | 848 |
| 849 checkUnnamed937(core.List<api.AdWordsAccount> o) { | 849 checkUnnamed944(core.List<api.AdWordsAccount> o) { |
| 850 unittest.expect(o, unittest.hasLength(2)); | 850 unittest.expect(o, unittest.hasLength(2)); |
| 851 checkAdWordsAccount(o[0]); | 851 checkAdWordsAccount(o[0]); |
| 852 checkAdWordsAccount(o[1]); | 852 checkAdWordsAccount(o[1]); |
| 853 } | 853 } |
| 854 | 854 |
| 855 core.int buildCounterEntityAdWordsLinkEntity = 0; | 855 core.int buildCounterEntityAdWordsLinkEntity = 0; |
| 856 buildEntityAdWordsLinkEntity() { | 856 buildEntityAdWordsLinkEntity() { |
| 857 var o = new api.EntityAdWordsLinkEntity(); | 857 var o = new api.EntityAdWordsLinkEntity(); |
| 858 buildCounterEntityAdWordsLinkEntity++; | 858 buildCounterEntityAdWordsLinkEntity++; |
| 859 if (buildCounterEntityAdWordsLinkEntity < 3) { | 859 if (buildCounterEntityAdWordsLinkEntity < 3) { |
| 860 o.webPropertyRef = buildWebPropertyRef(); | 860 o.webPropertyRef = buildWebPropertyRef(); |
| 861 } | 861 } |
| 862 buildCounterEntityAdWordsLinkEntity--; | 862 buildCounterEntityAdWordsLinkEntity--; |
| 863 return o; | 863 return o; |
| 864 } | 864 } |
| 865 | 865 |
| 866 checkEntityAdWordsLinkEntity(api.EntityAdWordsLinkEntity o) { | 866 checkEntityAdWordsLinkEntity(api.EntityAdWordsLinkEntity o) { |
| 867 buildCounterEntityAdWordsLinkEntity++; | 867 buildCounterEntityAdWordsLinkEntity++; |
| 868 if (buildCounterEntityAdWordsLinkEntity < 3) { | 868 if (buildCounterEntityAdWordsLinkEntity < 3) { |
| 869 checkWebPropertyRef(o.webPropertyRef); | 869 checkWebPropertyRef(o.webPropertyRef); |
| 870 } | 870 } |
| 871 buildCounterEntityAdWordsLinkEntity--; | 871 buildCounterEntityAdWordsLinkEntity--; |
| 872 } | 872 } |
| 873 | 873 |
| 874 buildUnnamed938() { | 874 buildUnnamed945() { |
| 875 var o = new core.List<core.String>(); | 875 var o = new core.List<core.String>(); |
| 876 o.add("foo"); | 876 o.add("foo"); |
| 877 o.add("foo"); | 877 o.add("foo"); |
| 878 return o; | 878 return o; |
| 879 } | 879 } |
| 880 | 880 |
| 881 checkUnnamed938(core.List<core.String> o) { | 881 checkUnnamed945(core.List<core.String> o) { |
| 882 unittest.expect(o, unittest.hasLength(2)); | 882 unittest.expect(o, unittest.hasLength(2)); |
| 883 unittest.expect(o[0], unittest.equals('foo')); | 883 unittest.expect(o[0], unittest.equals('foo')); |
| 884 unittest.expect(o[1], unittest.equals('foo')); | 884 unittest.expect(o[1], unittest.equals('foo')); |
| 885 } | 885 } |
| 886 | 886 |
| 887 core.int buildCounterEntityAdWordsLink = 0; | 887 core.int buildCounterEntityAdWordsLink = 0; |
| 888 buildEntityAdWordsLink() { | 888 buildEntityAdWordsLink() { |
| 889 var o = new api.EntityAdWordsLink(); | 889 var o = new api.EntityAdWordsLink(); |
| 890 buildCounterEntityAdWordsLink++; | 890 buildCounterEntityAdWordsLink++; |
| 891 if (buildCounterEntityAdWordsLink < 3) { | 891 if (buildCounterEntityAdWordsLink < 3) { |
| 892 o.adWordsAccounts = buildUnnamed937(); | 892 o.adWordsAccounts = buildUnnamed944(); |
| 893 o.entity = buildEntityAdWordsLinkEntity(); | 893 o.entity = buildEntityAdWordsLinkEntity(); |
| 894 o.id = "foo"; | 894 o.id = "foo"; |
| 895 o.kind = "foo"; | 895 o.kind = "foo"; |
| 896 o.name = "foo"; | 896 o.name = "foo"; |
| 897 o.profileIds = buildUnnamed938(); | 897 o.profileIds = buildUnnamed945(); |
| 898 o.selfLink = "foo"; | 898 o.selfLink = "foo"; |
| 899 } | 899 } |
| 900 buildCounterEntityAdWordsLink--; | 900 buildCounterEntityAdWordsLink--; |
| 901 return o; | 901 return o; |
| 902 } | 902 } |
| 903 | 903 |
| 904 checkEntityAdWordsLink(api.EntityAdWordsLink o) { | 904 checkEntityAdWordsLink(api.EntityAdWordsLink o) { |
| 905 buildCounterEntityAdWordsLink++; | 905 buildCounterEntityAdWordsLink++; |
| 906 if (buildCounterEntityAdWordsLink < 3) { | 906 if (buildCounterEntityAdWordsLink < 3) { |
| 907 checkUnnamed937(o.adWordsAccounts); | 907 checkUnnamed944(o.adWordsAccounts); |
| 908 checkEntityAdWordsLinkEntity(o.entity); | 908 checkEntityAdWordsLinkEntity(o.entity); |
| 909 unittest.expect(o.id, unittest.equals('foo')); | 909 unittest.expect(o.id, unittest.equals('foo')); |
| 910 unittest.expect(o.kind, unittest.equals('foo')); | 910 unittest.expect(o.kind, unittest.equals('foo')); |
| 911 unittest.expect(o.name, unittest.equals('foo')); | 911 unittest.expect(o.name, unittest.equals('foo')); |
| 912 checkUnnamed938(o.profileIds); | 912 checkUnnamed945(o.profileIds); |
| 913 unittest.expect(o.selfLink, unittest.equals('foo')); | 913 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 914 } | 914 } |
| 915 buildCounterEntityAdWordsLink--; | 915 buildCounterEntityAdWordsLink--; |
| 916 } | 916 } |
| 917 | 917 |
| 918 buildUnnamed939() { | 918 buildUnnamed946() { |
| 919 var o = new core.List<api.EntityAdWordsLink>(); | 919 var o = new core.List<api.EntityAdWordsLink>(); |
| 920 o.add(buildEntityAdWordsLink()); | 920 o.add(buildEntityAdWordsLink()); |
| 921 o.add(buildEntityAdWordsLink()); | 921 o.add(buildEntityAdWordsLink()); |
| 922 return o; | 922 return o; |
| 923 } | 923 } |
| 924 | 924 |
| 925 checkUnnamed939(core.List<api.EntityAdWordsLink> o) { | 925 checkUnnamed946(core.List<api.EntityAdWordsLink> o) { |
| 926 unittest.expect(o, unittest.hasLength(2)); | 926 unittest.expect(o, unittest.hasLength(2)); |
| 927 checkEntityAdWordsLink(o[0]); | 927 checkEntityAdWordsLink(o[0]); |
| 928 checkEntityAdWordsLink(o[1]); | 928 checkEntityAdWordsLink(o[1]); |
| 929 } | 929 } |
| 930 | 930 |
| 931 core.int buildCounterEntityAdWordsLinks = 0; | 931 core.int buildCounterEntityAdWordsLinks = 0; |
| 932 buildEntityAdWordsLinks() { | 932 buildEntityAdWordsLinks() { |
| 933 var o = new api.EntityAdWordsLinks(); | 933 var o = new api.EntityAdWordsLinks(); |
| 934 buildCounterEntityAdWordsLinks++; | 934 buildCounterEntityAdWordsLinks++; |
| 935 if (buildCounterEntityAdWordsLinks < 3) { | 935 if (buildCounterEntityAdWordsLinks < 3) { |
| 936 o.items = buildUnnamed939(); | 936 o.items = buildUnnamed946(); |
| 937 o.itemsPerPage = 42; | 937 o.itemsPerPage = 42; |
| 938 o.kind = "foo"; | 938 o.kind = "foo"; |
| 939 o.nextLink = "foo"; | 939 o.nextLink = "foo"; |
| 940 o.previousLink = "foo"; | 940 o.previousLink = "foo"; |
| 941 o.startIndex = 42; | 941 o.startIndex = 42; |
| 942 o.totalResults = 42; | 942 o.totalResults = 42; |
| 943 } | 943 } |
| 944 buildCounterEntityAdWordsLinks--; | 944 buildCounterEntityAdWordsLinks--; |
| 945 return o; | 945 return o; |
| 946 } | 946 } |
| 947 | 947 |
| 948 checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { | 948 checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { |
| 949 buildCounterEntityAdWordsLinks++; | 949 buildCounterEntityAdWordsLinks++; |
| 950 if (buildCounterEntityAdWordsLinks < 3) { | 950 if (buildCounterEntityAdWordsLinks < 3) { |
| 951 checkUnnamed939(o.items); | 951 checkUnnamed946(o.items); |
| 952 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 952 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 953 unittest.expect(o.kind, unittest.equals('foo')); | 953 unittest.expect(o.kind, unittest.equals('foo')); |
| 954 unittest.expect(o.nextLink, unittest.equals('foo')); | 954 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 955 unittest.expect(o.previousLink, unittest.equals('foo')); | 955 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 956 unittest.expect(o.startIndex, unittest.equals(42)); | 956 unittest.expect(o.startIndex, unittest.equals(42)); |
| 957 unittest.expect(o.totalResults, unittest.equals(42)); | 957 unittest.expect(o.totalResults, unittest.equals(42)); |
| 958 } | 958 } |
| 959 buildCounterEntityAdWordsLinks--; | 959 buildCounterEntityAdWordsLinks--; |
| 960 } | 960 } |
| 961 | 961 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 975 checkEntityUserLinkEntity(api.EntityUserLinkEntity o) { | 975 checkEntityUserLinkEntity(api.EntityUserLinkEntity o) { |
| 976 buildCounterEntityUserLinkEntity++; | 976 buildCounterEntityUserLinkEntity++; |
| 977 if (buildCounterEntityUserLinkEntity < 3) { | 977 if (buildCounterEntityUserLinkEntity < 3) { |
| 978 checkAccountRef(o.accountRef); | 978 checkAccountRef(o.accountRef); |
| 979 checkProfileRef(o.profileRef); | 979 checkProfileRef(o.profileRef); |
| 980 checkWebPropertyRef(o.webPropertyRef); | 980 checkWebPropertyRef(o.webPropertyRef); |
| 981 } | 981 } |
| 982 buildCounterEntityUserLinkEntity--; | 982 buildCounterEntityUserLinkEntity--; |
| 983 } | 983 } |
| 984 | 984 |
| 985 buildUnnamed940() { | 985 buildUnnamed947() { |
| 986 var o = new core.List<core.String>(); | 986 var o = new core.List<core.String>(); |
| 987 o.add("foo"); | 987 o.add("foo"); |
| 988 o.add("foo"); | 988 o.add("foo"); |
| 989 return o; | 989 return o; |
| 990 } | 990 } |
| 991 | 991 |
| 992 checkUnnamed940(core.List<core.String> o) { | 992 checkUnnamed947(core.List<core.String> o) { |
| 993 unittest.expect(o, unittest.hasLength(2)); | 993 unittest.expect(o, unittest.hasLength(2)); |
| 994 unittest.expect(o[0], unittest.equals('foo')); | 994 unittest.expect(o[0], unittest.equals('foo')); |
| 995 unittest.expect(o[1], unittest.equals('foo')); | 995 unittest.expect(o[1], unittest.equals('foo')); |
| 996 } | 996 } |
| 997 | 997 |
| 998 buildUnnamed941() { | 998 buildUnnamed948() { |
| 999 var o = new core.List<core.String>(); | 999 var o = new core.List<core.String>(); |
| 1000 o.add("foo"); | 1000 o.add("foo"); |
| 1001 o.add("foo"); | 1001 o.add("foo"); |
| 1002 return o; | 1002 return o; |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 checkUnnamed941(core.List<core.String> o) { | 1005 checkUnnamed948(core.List<core.String> o) { |
| 1006 unittest.expect(o, unittest.hasLength(2)); | 1006 unittest.expect(o, unittest.hasLength(2)); |
| 1007 unittest.expect(o[0], unittest.equals('foo')); | 1007 unittest.expect(o[0], unittest.equals('foo')); |
| 1008 unittest.expect(o[1], unittest.equals('foo')); | 1008 unittest.expect(o[1], unittest.equals('foo')); |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 core.int buildCounterEntityUserLinkPermissions = 0; | 1011 core.int buildCounterEntityUserLinkPermissions = 0; |
| 1012 buildEntityUserLinkPermissions() { | 1012 buildEntityUserLinkPermissions() { |
| 1013 var o = new api.EntityUserLinkPermissions(); | 1013 var o = new api.EntityUserLinkPermissions(); |
| 1014 buildCounterEntityUserLinkPermissions++; | 1014 buildCounterEntityUserLinkPermissions++; |
| 1015 if (buildCounterEntityUserLinkPermissions < 3) { | 1015 if (buildCounterEntityUserLinkPermissions < 3) { |
| 1016 o.effective = buildUnnamed940(); | 1016 o.effective = buildUnnamed947(); |
| 1017 o.local = buildUnnamed941(); | 1017 o.local = buildUnnamed948(); |
| 1018 } | 1018 } |
| 1019 buildCounterEntityUserLinkPermissions--; | 1019 buildCounterEntityUserLinkPermissions--; |
| 1020 return o; | 1020 return o; |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { | 1023 checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { |
| 1024 buildCounterEntityUserLinkPermissions++; | 1024 buildCounterEntityUserLinkPermissions++; |
| 1025 if (buildCounterEntityUserLinkPermissions < 3) { | 1025 if (buildCounterEntityUserLinkPermissions < 3) { |
| 1026 checkUnnamed940(o.effective); | 1026 checkUnnamed947(o.effective); |
| 1027 checkUnnamed941(o.local); | 1027 checkUnnamed948(o.local); |
| 1028 } | 1028 } |
| 1029 buildCounterEntityUserLinkPermissions--; | 1029 buildCounterEntityUserLinkPermissions--; |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 core.int buildCounterEntityUserLink = 0; | 1032 core.int buildCounterEntityUserLink = 0; |
| 1033 buildEntityUserLink() { | 1033 buildEntityUserLink() { |
| 1034 var o = new api.EntityUserLink(); | 1034 var o = new api.EntityUserLink(); |
| 1035 buildCounterEntityUserLink++; | 1035 buildCounterEntityUserLink++; |
| 1036 if (buildCounterEntityUserLink < 3) { | 1036 if (buildCounterEntityUserLink < 3) { |
| 1037 o.entity = buildEntityUserLinkEntity(); | 1037 o.entity = buildEntityUserLinkEntity(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1051 checkEntityUserLinkEntity(o.entity); | 1051 checkEntityUserLinkEntity(o.entity); |
| 1052 unittest.expect(o.id, unittest.equals('foo')); | 1052 unittest.expect(o.id, unittest.equals('foo')); |
| 1053 unittest.expect(o.kind, unittest.equals('foo')); | 1053 unittest.expect(o.kind, unittest.equals('foo')); |
| 1054 checkEntityUserLinkPermissions(o.permissions); | 1054 checkEntityUserLinkPermissions(o.permissions); |
| 1055 unittest.expect(o.selfLink, unittest.equals('foo')); | 1055 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1056 checkUserRef(o.userRef); | 1056 checkUserRef(o.userRef); |
| 1057 } | 1057 } |
| 1058 buildCounterEntityUserLink--; | 1058 buildCounterEntityUserLink--; |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 buildUnnamed942() { | 1061 buildUnnamed949() { |
| 1062 var o = new core.List<api.EntityUserLink>(); | 1062 var o = new core.List<api.EntityUserLink>(); |
| 1063 o.add(buildEntityUserLink()); | 1063 o.add(buildEntityUserLink()); |
| 1064 o.add(buildEntityUserLink()); | 1064 o.add(buildEntityUserLink()); |
| 1065 return o; | 1065 return o; |
| 1066 } | 1066 } |
| 1067 | 1067 |
| 1068 checkUnnamed942(core.List<api.EntityUserLink> o) { | 1068 checkUnnamed949(core.List<api.EntityUserLink> o) { |
| 1069 unittest.expect(o, unittest.hasLength(2)); | 1069 unittest.expect(o, unittest.hasLength(2)); |
| 1070 checkEntityUserLink(o[0]); | 1070 checkEntityUserLink(o[0]); |
| 1071 checkEntityUserLink(o[1]); | 1071 checkEntityUserLink(o[1]); |
| 1072 } | 1072 } |
| 1073 | 1073 |
| 1074 core.int buildCounterEntityUserLinks = 0; | 1074 core.int buildCounterEntityUserLinks = 0; |
| 1075 buildEntityUserLinks() { | 1075 buildEntityUserLinks() { |
| 1076 var o = new api.EntityUserLinks(); | 1076 var o = new api.EntityUserLinks(); |
| 1077 buildCounterEntityUserLinks++; | 1077 buildCounterEntityUserLinks++; |
| 1078 if (buildCounterEntityUserLinks < 3) { | 1078 if (buildCounterEntityUserLinks < 3) { |
| 1079 o.items = buildUnnamed942(); | 1079 o.items = buildUnnamed949(); |
| 1080 o.itemsPerPage = 42; | 1080 o.itemsPerPage = 42; |
| 1081 o.kind = "foo"; | 1081 o.kind = "foo"; |
| 1082 o.nextLink = "foo"; | 1082 o.nextLink = "foo"; |
| 1083 o.previousLink = "foo"; | 1083 o.previousLink = "foo"; |
| 1084 o.startIndex = 42; | 1084 o.startIndex = 42; |
| 1085 o.totalResults = 42; | 1085 o.totalResults = 42; |
| 1086 } | 1086 } |
| 1087 buildCounterEntityUserLinks--; | 1087 buildCounterEntityUserLinks--; |
| 1088 return o; | 1088 return o; |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 checkEntityUserLinks(api.EntityUserLinks o) { | 1091 checkEntityUserLinks(api.EntityUserLinks o) { |
| 1092 buildCounterEntityUserLinks++; | 1092 buildCounterEntityUserLinks++; |
| 1093 if (buildCounterEntityUserLinks < 3) { | 1093 if (buildCounterEntityUserLinks < 3) { |
| 1094 checkUnnamed942(o.items); | 1094 checkUnnamed949(o.items); |
| 1095 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 1095 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 1096 unittest.expect(o.kind, unittest.equals('foo')); | 1096 unittest.expect(o.kind, unittest.equals('foo')); |
| 1097 unittest.expect(o.nextLink, unittest.equals('foo')); | 1097 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 1098 unittest.expect(o.previousLink, unittest.equals('foo')); | 1098 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 1099 unittest.expect(o.startIndex, unittest.equals(42)); | 1099 unittest.expect(o.startIndex, unittest.equals(42)); |
| 1100 unittest.expect(o.totalResults, unittest.equals(42)); | 1100 unittest.expect(o.totalResults, unittest.equals(42)); |
| 1101 } | 1101 } |
| 1102 buildCounterEntityUserLinks--; | 1102 buildCounterEntityUserLinks--; |
| 1103 } | 1103 } |
| 1104 | 1104 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 if (buildCounterExperimentVariations < 3) { | 1143 if (buildCounterExperimentVariations < 3) { |
| 1144 unittest.expect(o.name, unittest.equals('foo')); | 1144 unittest.expect(o.name, unittest.equals('foo')); |
| 1145 unittest.expect(o.status, unittest.equals('foo')); | 1145 unittest.expect(o.status, unittest.equals('foo')); |
| 1146 unittest.expect(o.url, unittest.equals('foo')); | 1146 unittest.expect(o.url, unittest.equals('foo')); |
| 1147 unittest.expect(o.weight, unittest.equals(42.0)); | 1147 unittest.expect(o.weight, unittest.equals(42.0)); |
| 1148 unittest.expect(o.won, unittest.isTrue); | 1148 unittest.expect(o.won, unittest.isTrue); |
| 1149 } | 1149 } |
| 1150 buildCounterExperimentVariations--; | 1150 buildCounterExperimentVariations--; |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 buildUnnamed943() { | 1153 buildUnnamed950() { |
| 1154 var o = new core.List<api.ExperimentVariations>(); | 1154 var o = new core.List<api.ExperimentVariations>(); |
| 1155 o.add(buildExperimentVariations()); | 1155 o.add(buildExperimentVariations()); |
| 1156 o.add(buildExperimentVariations()); | 1156 o.add(buildExperimentVariations()); |
| 1157 return o; | 1157 return o; |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 checkUnnamed943(core.List<api.ExperimentVariations> o) { | 1160 checkUnnamed950(core.List<api.ExperimentVariations> o) { |
| 1161 unittest.expect(o, unittest.hasLength(2)); | 1161 unittest.expect(o, unittest.hasLength(2)); |
| 1162 checkExperimentVariations(o[0]); | 1162 checkExperimentVariations(o[0]); |
| 1163 checkExperimentVariations(o[1]); | 1163 checkExperimentVariations(o[1]); |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 core.int buildCounterExperiment = 0; | 1166 core.int buildCounterExperiment = 0; |
| 1167 buildExperiment() { | 1167 buildExperiment() { |
| 1168 var o = new api.Experiment(); | 1168 var o = new api.Experiment(); |
| 1169 buildCounterExperiment++; | 1169 buildCounterExperiment++; |
| 1170 if (buildCounterExperiment < 3) { | 1170 if (buildCounterExperiment < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1185 o.profileId = "foo"; | 1185 o.profileId = "foo"; |
| 1186 o.reasonExperimentEnded = "foo"; | 1186 o.reasonExperimentEnded = "foo"; |
| 1187 o.rewriteVariationUrlsAsOriginal = true; | 1187 o.rewriteVariationUrlsAsOriginal = true; |
| 1188 o.selfLink = "foo"; | 1188 o.selfLink = "foo"; |
| 1189 o.servingFramework = "foo"; | 1189 o.servingFramework = "foo"; |
| 1190 o.snippet = "foo"; | 1190 o.snippet = "foo"; |
| 1191 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1191 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1192 o.status = "foo"; | 1192 o.status = "foo"; |
| 1193 o.trafficCoverage = 42.0; | 1193 o.trafficCoverage = 42.0; |
| 1194 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1194 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1195 o.variations = buildUnnamed943(); | 1195 o.variations = buildUnnamed950(); |
| 1196 o.webPropertyId = "foo"; | 1196 o.webPropertyId = "foo"; |
| 1197 o.winnerConfidenceLevel = 42.0; | 1197 o.winnerConfidenceLevel = 42.0; |
| 1198 o.winnerFound = true; | 1198 o.winnerFound = true; |
| 1199 } | 1199 } |
| 1200 buildCounterExperiment--; | 1200 buildCounterExperiment--; |
| 1201 return o; | 1201 return o; |
| 1202 } | 1202 } |
| 1203 | 1203 |
| 1204 checkExperiment(api.Experiment o) { | 1204 checkExperiment(api.Experiment o) { |
| 1205 buildCounterExperiment++; | 1205 buildCounterExperiment++; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1221 unittest.expect(o.profileId, unittest.equals('foo')); | 1221 unittest.expect(o.profileId, unittest.equals('foo')); |
| 1222 unittest.expect(o.reasonExperimentEnded, unittest.equals('foo')); | 1222 unittest.expect(o.reasonExperimentEnded, unittest.equals('foo')); |
| 1223 unittest.expect(o.rewriteVariationUrlsAsOriginal, unittest.isTrue); | 1223 unittest.expect(o.rewriteVariationUrlsAsOriginal, unittest.isTrue); |
| 1224 unittest.expect(o.selfLink, unittest.equals('foo')); | 1224 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1225 unittest.expect(o.servingFramework, unittest.equals('foo')); | 1225 unittest.expect(o.servingFramework, unittest.equals('foo')); |
| 1226 unittest.expect(o.snippet, unittest.equals('foo')); | 1226 unittest.expect(o.snippet, unittest.equals('foo')); |
| 1227 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 1227 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 1228 unittest.expect(o.status, unittest.equals('foo')); | 1228 unittest.expect(o.status, unittest.equals('foo')); |
| 1229 unittest.expect(o.trafficCoverage, unittest.equals(42.0)); | 1229 unittest.expect(o.trafficCoverage, unittest.equals(42.0)); |
| 1230 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1230 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 1231 checkUnnamed943(o.variations); | 1231 checkUnnamed950(o.variations); |
| 1232 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 1232 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 1233 unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); | 1233 unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); |
| 1234 unittest.expect(o.winnerFound, unittest.isTrue); | 1234 unittest.expect(o.winnerFound, unittest.isTrue); |
| 1235 } | 1235 } |
| 1236 buildCounterExperiment--; | 1236 buildCounterExperiment--; |
| 1237 } | 1237 } |
| 1238 | 1238 |
| 1239 buildUnnamed944() { | 1239 buildUnnamed951() { |
| 1240 var o = new core.List<api.Experiment>(); | 1240 var o = new core.List<api.Experiment>(); |
| 1241 o.add(buildExperiment()); | 1241 o.add(buildExperiment()); |
| 1242 o.add(buildExperiment()); | 1242 o.add(buildExperiment()); |
| 1243 return o; | 1243 return o; |
| 1244 } | 1244 } |
| 1245 | 1245 |
| 1246 checkUnnamed944(core.List<api.Experiment> o) { | 1246 checkUnnamed951(core.List<api.Experiment> o) { |
| 1247 unittest.expect(o, unittest.hasLength(2)); | 1247 unittest.expect(o, unittest.hasLength(2)); |
| 1248 checkExperiment(o[0]); | 1248 checkExperiment(o[0]); |
| 1249 checkExperiment(o[1]); | 1249 checkExperiment(o[1]); |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 core.int buildCounterExperiments = 0; | 1252 core.int buildCounterExperiments = 0; |
| 1253 buildExperiments() { | 1253 buildExperiments() { |
| 1254 var o = new api.Experiments(); | 1254 var o = new api.Experiments(); |
| 1255 buildCounterExperiments++; | 1255 buildCounterExperiments++; |
| 1256 if (buildCounterExperiments < 3) { | 1256 if (buildCounterExperiments < 3) { |
| 1257 o.items = buildUnnamed944(); | 1257 o.items = buildUnnamed951(); |
| 1258 o.itemsPerPage = 42; | 1258 o.itemsPerPage = 42; |
| 1259 o.kind = "foo"; | 1259 o.kind = "foo"; |
| 1260 o.nextLink = "foo"; | 1260 o.nextLink = "foo"; |
| 1261 o.previousLink = "foo"; | 1261 o.previousLink = "foo"; |
| 1262 o.startIndex = 42; | 1262 o.startIndex = 42; |
| 1263 o.totalResults = 42; | 1263 o.totalResults = 42; |
| 1264 o.username = "foo"; | 1264 o.username = "foo"; |
| 1265 } | 1265 } |
| 1266 buildCounterExperiments--; | 1266 buildCounterExperiments--; |
| 1267 return o; | 1267 return o; |
| 1268 } | 1268 } |
| 1269 | 1269 |
| 1270 checkExperiments(api.Experiments o) { | 1270 checkExperiments(api.Experiments o) { |
| 1271 buildCounterExperiments++; | 1271 buildCounterExperiments++; |
| 1272 if (buildCounterExperiments < 3) { | 1272 if (buildCounterExperiments < 3) { |
| 1273 checkUnnamed944(o.items); | 1273 checkUnnamed951(o.items); |
| 1274 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 1274 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 1275 unittest.expect(o.kind, unittest.equals('foo')); | 1275 unittest.expect(o.kind, unittest.equals('foo')); |
| 1276 unittest.expect(o.nextLink, unittest.equals('foo')); | 1276 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 1277 unittest.expect(o.previousLink, unittest.equals('foo')); | 1277 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 1278 unittest.expect(o.startIndex, unittest.equals(42)); | 1278 unittest.expect(o.startIndex, unittest.equals(42)); |
| 1279 unittest.expect(o.totalResults, unittest.equals(42)); | 1279 unittest.expect(o.totalResults, unittest.equals(42)); |
| 1280 unittest.expect(o.username, unittest.equals('foo')); | 1280 unittest.expect(o.username, unittest.equals('foo')); |
| 1281 } | 1281 } |
| 1282 buildCounterExperiments--; | 1282 buildCounterExperiments--; |
| 1283 } | 1283 } |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 if (buildCounterFilterRef < 3) { | 1511 if (buildCounterFilterRef < 3) { |
| 1512 unittest.expect(o.accountId, unittest.equals('foo')); | 1512 unittest.expect(o.accountId, unittest.equals('foo')); |
| 1513 unittest.expect(o.href, unittest.equals('foo')); | 1513 unittest.expect(o.href, unittest.equals('foo')); |
| 1514 unittest.expect(o.id, unittest.equals('foo')); | 1514 unittest.expect(o.id, unittest.equals('foo')); |
| 1515 unittest.expect(o.kind, unittest.equals('foo')); | 1515 unittest.expect(o.kind, unittest.equals('foo')); |
| 1516 unittest.expect(o.name, unittest.equals('foo')); | 1516 unittest.expect(o.name, unittest.equals('foo')); |
| 1517 } | 1517 } |
| 1518 buildCounterFilterRef--; | 1518 buildCounterFilterRef--; |
| 1519 } | 1519 } |
| 1520 | 1520 |
| 1521 buildUnnamed945() { | 1521 buildUnnamed952() { |
| 1522 var o = new core.List<api.Filter>(); | 1522 var o = new core.List<api.Filter>(); |
| 1523 o.add(buildFilter()); | 1523 o.add(buildFilter()); |
| 1524 o.add(buildFilter()); | 1524 o.add(buildFilter()); |
| 1525 return o; | 1525 return o; |
| 1526 } | 1526 } |
| 1527 | 1527 |
| 1528 checkUnnamed945(core.List<api.Filter> o) { | 1528 checkUnnamed952(core.List<api.Filter> o) { |
| 1529 unittest.expect(o, unittest.hasLength(2)); | 1529 unittest.expect(o, unittest.hasLength(2)); |
| 1530 checkFilter(o[0]); | 1530 checkFilter(o[0]); |
| 1531 checkFilter(o[1]); | 1531 checkFilter(o[1]); |
| 1532 } | 1532 } |
| 1533 | 1533 |
| 1534 core.int buildCounterFilters = 0; | 1534 core.int buildCounterFilters = 0; |
| 1535 buildFilters() { | 1535 buildFilters() { |
| 1536 var o = new api.Filters(); | 1536 var o = new api.Filters(); |
| 1537 buildCounterFilters++; | 1537 buildCounterFilters++; |
| 1538 if (buildCounterFilters < 3) { | 1538 if (buildCounterFilters < 3) { |
| 1539 o.items = buildUnnamed945(); | 1539 o.items = buildUnnamed952(); |
| 1540 o.itemsPerPage = 42; | 1540 o.itemsPerPage = 42; |
| 1541 o.kind = "foo"; | 1541 o.kind = "foo"; |
| 1542 o.nextLink = "foo"; | 1542 o.nextLink = "foo"; |
| 1543 o.previousLink = "foo"; | 1543 o.previousLink = "foo"; |
| 1544 o.startIndex = 42; | 1544 o.startIndex = 42; |
| 1545 o.totalResults = 42; | 1545 o.totalResults = 42; |
| 1546 o.username = "foo"; | 1546 o.username = "foo"; |
| 1547 } | 1547 } |
| 1548 buildCounterFilters--; | 1548 buildCounterFilters--; |
| 1549 return o; | 1549 return o; |
| 1550 } | 1550 } |
| 1551 | 1551 |
| 1552 checkFilters(api.Filters o) { | 1552 checkFilters(api.Filters o) { |
| 1553 buildCounterFilters++; | 1553 buildCounterFilters++; |
| 1554 if (buildCounterFilters < 3) { | 1554 if (buildCounterFilters < 3) { |
| 1555 checkUnnamed945(o.items); | 1555 checkUnnamed952(o.items); |
| 1556 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 1556 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 1557 unittest.expect(o.kind, unittest.equals('foo')); | 1557 unittest.expect(o.kind, unittest.equals('foo')); |
| 1558 unittest.expect(o.nextLink, unittest.equals('foo')); | 1558 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 1559 unittest.expect(o.previousLink, unittest.equals('foo')); | 1559 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 1560 unittest.expect(o.startIndex, unittest.equals(42)); | 1560 unittest.expect(o.startIndex, unittest.equals(42)); |
| 1561 unittest.expect(o.totalResults, unittest.equals(42)); | 1561 unittest.expect(o.totalResults, unittest.equals(42)); |
| 1562 unittest.expect(o.username, unittest.equals('foo')); | 1562 unittest.expect(o.username, unittest.equals('foo')); |
| 1563 } | 1563 } |
| 1564 buildCounterFilters--; | 1564 buildCounterFilters--; |
| 1565 } | 1565 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1580 checkGaDataColumnHeaders(api.GaDataColumnHeaders o) { | 1580 checkGaDataColumnHeaders(api.GaDataColumnHeaders o) { |
| 1581 buildCounterGaDataColumnHeaders++; | 1581 buildCounterGaDataColumnHeaders++; |
| 1582 if (buildCounterGaDataColumnHeaders < 3) { | 1582 if (buildCounterGaDataColumnHeaders < 3) { |
| 1583 unittest.expect(o.columnType, unittest.equals('foo')); | 1583 unittest.expect(o.columnType, unittest.equals('foo')); |
| 1584 unittest.expect(o.dataType, unittest.equals('foo')); | 1584 unittest.expect(o.dataType, unittest.equals('foo')); |
| 1585 unittest.expect(o.name, unittest.equals('foo')); | 1585 unittest.expect(o.name, unittest.equals('foo')); |
| 1586 } | 1586 } |
| 1587 buildCounterGaDataColumnHeaders--; | 1587 buildCounterGaDataColumnHeaders--; |
| 1588 } | 1588 } |
| 1589 | 1589 |
| 1590 buildUnnamed946() { | 1590 buildUnnamed953() { |
| 1591 var o = new core.List<api.GaDataColumnHeaders>(); | 1591 var o = new core.List<api.GaDataColumnHeaders>(); |
| 1592 o.add(buildGaDataColumnHeaders()); | 1592 o.add(buildGaDataColumnHeaders()); |
| 1593 o.add(buildGaDataColumnHeaders()); | 1593 o.add(buildGaDataColumnHeaders()); |
| 1594 return o; | 1594 return o; |
| 1595 } | 1595 } |
| 1596 | 1596 |
| 1597 checkUnnamed946(core.List<api.GaDataColumnHeaders> o) { | 1597 checkUnnamed953(core.List<api.GaDataColumnHeaders> o) { |
| 1598 unittest.expect(o, unittest.hasLength(2)); | 1598 unittest.expect(o, unittest.hasLength(2)); |
| 1599 checkGaDataColumnHeaders(o[0]); | 1599 checkGaDataColumnHeaders(o[0]); |
| 1600 checkGaDataColumnHeaders(o[1]); | 1600 checkGaDataColumnHeaders(o[1]); |
| 1601 } | 1601 } |
| 1602 | 1602 |
| 1603 core.int buildCounterGaDataDataTableCols = 0; | 1603 core.int buildCounterGaDataDataTableCols = 0; |
| 1604 buildGaDataDataTableCols() { | 1604 buildGaDataDataTableCols() { |
| 1605 var o = new api.GaDataDataTableCols(); | 1605 var o = new api.GaDataDataTableCols(); |
| 1606 buildCounterGaDataDataTableCols++; | 1606 buildCounterGaDataDataTableCols++; |
| 1607 if (buildCounterGaDataDataTableCols < 3) { | 1607 if (buildCounterGaDataDataTableCols < 3) { |
| 1608 o.id = "foo"; | 1608 o.id = "foo"; |
| 1609 o.label = "foo"; | 1609 o.label = "foo"; |
| 1610 o.type = "foo"; | 1610 o.type = "foo"; |
| 1611 } | 1611 } |
| 1612 buildCounterGaDataDataTableCols--; | 1612 buildCounterGaDataDataTableCols--; |
| 1613 return o; | 1613 return o; |
| 1614 } | 1614 } |
| 1615 | 1615 |
| 1616 checkGaDataDataTableCols(api.GaDataDataTableCols o) { | 1616 checkGaDataDataTableCols(api.GaDataDataTableCols o) { |
| 1617 buildCounterGaDataDataTableCols++; | 1617 buildCounterGaDataDataTableCols++; |
| 1618 if (buildCounterGaDataDataTableCols < 3) { | 1618 if (buildCounterGaDataDataTableCols < 3) { |
| 1619 unittest.expect(o.id, unittest.equals('foo')); | 1619 unittest.expect(o.id, unittest.equals('foo')); |
| 1620 unittest.expect(o.label, unittest.equals('foo')); | 1620 unittest.expect(o.label, unittest.equals('foo')); |
| 1621 unittest.expect(o.type, unittest.equals('foo')); | 1621 unittest.expect(o.type, unittest.equals('foo')); |
| 1622 } | 1622 } |
| 1623 buildCounterGaDataDataTableCols--; | 1623 buildCounterGaDataDataTableCols--; |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 buildUnnamed947() { | 1626 buildUnnamed954() { |
| 1627 var o = new core.List<api.GaDataDataTableCols>(); | 1627 var o = new core.List<api.GaDataDataTableCols>(); |
| 1628 o.add(buildGaDataDataTableCols()); | 1628 o.add(buildGaDataDataTableCols()); |
| 1629 o.add(buildGaDataDataTableCols()); | 1629 o.add(buildGaDataDataTableCols()); |
| 1630 return o; | 1630 return o; |
| 1631 } | 1631 } |
| 1632 | 1632 |
| 1633 checkUnnamed947(core.List<api.GaDataDataTableCols> o) { | 1633 checkUnnamed954(core.List<api.GaDataDataTableCols> o) { |
| 1634 unittest.expect(o, unittest.hasLength(2)); | 1634 unittest.expect(o, unittest.hasLength(2)); |
| 1635 checkGaDataDataTableCols(o[0]); | 1635 checkGaDataDataTableCols(o[0]); |
| 1636 checkGaDataDataTableCols(o[1]); | 1636 checkGaDataDataTableCols(o[1]); |
| 1637 } | 1637 } |
| 1638 | 1638 |
| 1639 core.int buildCounterGaDataDataTableRowsC = 0; | 1639 core.int buildCounterGaDataDataTableRowsC = 0; |
| 1640 buildGaDataDataTableRowsC() { | 1640 buildGaDataDataTableRowsC() { |
| 1641 var o = new api.GaDataDataTableRowsC(); | 1641 var o = new api.GaDataDataTableRowsC(); |
| 1642 buildCounterGaDataDataTableRowsC++; | 1642 buildCounterGaDataDataTableRowsC++; |
| 1643 if (buildCounterGaDataDataTableRowsC < 3) { | 1643 if (buildCounterGaDataDataTableRowsC < 3) { |
| 1644 o.v = "foo"; | 1644 o.v = "foo"; |
| 1645 } | 1645 } |
| 1646 buildCounterGaDataDataTableRowsC--; | 1646 buildCounterGaDataDataTableRowsC--; |
| 1647 return o; | 1647 return o; |
| 1648 } | 1648 } |
| 1649 | 1649 |
| 1650 checkGaDataDataTableRowsC(api.GaDataDataTableRowsC o) { | 1650 checkGaDataDataTableRowsC(api.GaDataDataTableRowsC o) { |
| 1651 buildCounterGaDataDataTableRowsC++; | 1651 buildCounterGaDataDataTableRowsC++; |
| 1652 if (buildCounterGaDataDataTableRowsC < 3) { | 1652 if (buildCounterGaDataDataTableRowsC < 3) { |
| 1653 unittest.expect(o.v, unittest.equals('foo')); | 1653 unittest.expect(o.v, unittest.equals('foo')); |
| 1654 } | 1654 } |
| 1655 buildCounterGaDataDataTableRowsC--; | 1655 buildCounterGaDataDataTableRowsC--; |
| 1656 } | 1656 } |
| 1657 | 1657 |
| 1658 buildUnnamed948() { | 1658 buildUnnamed955() { |
| 1659 var o = new core.List<api.GaDataDataTableRowsC>(); | 1659 var o = new core.List<api.GaDataDataTableRowsC>(); |
| 1660 o.add(buildGaDataDataTableRowsC()); | 1660 o.add(buildGaDataDataTableRowsC()); |
| 1661 o.add(buildGaDataDataTableRowsC()); | 1661 o.add(buildGaDataDataTableRowsC()); |
| 1662 return o; | 1662 return o; |
| 1663 } | 1663 } |
| 1664 | 1664 |
| 1665 checkUnnamed948(core.List<api.GaDataDataTableRowsC> o) { | 1665 checkUnnamed955(core.List<api.GaDataDataTableRowsC> o) { |
| 1666 unittest.expect(o, unittest.hasLength(2)); | 1666 unittest.expect(o, unittest.hasLength(2)); |
| 1667 checkGaDataDataTableRowsC(o[0]); | 1667 checkGaDataDataTableRowsC(o[0]); |
| 1668 checkGaDataDataTableRowsC(o[1]); | 1668 checkGaDataDataTableRowsC(o[1]); |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 core.int buildCounterGaDataDataTableRows = 0; | 1671 core.int buildCounterGaDataDataTableRows = 0; |
| 1672 buildGaDataDataTableRows() { | 1672 buildGaDataDataTableRows() { |
| 1673 var o = new api.GaDataDataTableRows(); | 1673 var o = new api.GaDataDataTableRows(); |
| 1674 buildCounterGaDataDataTableRows++; | 1674 buildCounterGaDataDataTableRows++; |
| 1675 if (buildCounterGaDataDataTableRows < 3) { | 1675 if (buildCounterGaDataDataTableRows < 3) { |
| 1676 o.c = buildUnnamed948(); | 1676 o.c = buildUnnamed955(); |
| 1677 } | 1677 } |
| 1678 buildCounterGaDataDataTableRows--; | 1678 buildCounterGaDataDataTableRows--; |
| 1679 return o; | 1679 return o; |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 checkGaDataDataTableRows(api.GaDataDataTableRows o) { | 1682 checkGaDataDataTableRows(api.GaDataDataTableRows o) { |
| 1683 buildCounterGaDataDataTableRows++; | 1683 buildCounterGaDataDataTableRows++; |
| 1684 if (buildCounterGaDataDataTableRows < 3) { | 1684 if (buildCounterGaDataDataTableRows < 3) { |
| 1685 checkUnnamed948(o.c); | 1685 checkUnnamed955(o.c); |
| 1686 } | 1686 } |
| 1687 buildCounterGaDataDataTableRows--; | 1687 buildCounterGaDataDataTableRows--; |
| 1688 } | 1688 } |
| 1689 | 1689 |
| 1690 buildUnnamed949() { | 1690 buildUnnamed956() { |
| 1691 var o = new core.List<api.GaDataDataTableRows>(); | 1691 var o = new core.List<api.GaDataDataTableRows>(); |
| 1692 o.add(buildGaDataDataTableRows()); | 1692 o.add(buildGaDataDataTableRows()); |
| 1693 o.add(buildGaDataDataTableRows()); | 1693 o.add(buildGaDataDataTableRows()); |
| 1694 return o; | 1694 return o; |
| 1695 } | 1695 } |
| 1696 | 1696 |
| 1697 checkUnnamed949(core.List<api.GaDataDataTableRows> o) { | 1697 checkUnnamed956(core.List<api.GaDataDataTableRows> o) { |
| 1698 unittest.expect(o, unittest.hasLength(2)); | 1698 unittest.expect(o, unittest.hasLength(2)); |
| 1699 checkGaDataDataTableRows(o[0]); | 1699 checkGaDataDataTableRows(o[0]); |
| 1700 checkGaDataDataTableRows(o[1]); | 1700 checkGaDataDataTableRows(o[1]); |
| 1701 } | 1701 } |
| 1702 | 1702 |
| 1703 core.int buildCounterGaDataDataTable = 0; | 1703 core.int buildCounterGaDataDataTable = 0; |
| 1704 buildGaDataDataTable() { | 1704 buildGaDataDataTable() { |
| 1705 var o = new api.GaDataDataTable(); | 1705 var o = new api.GaDataDataTable(); |
| 1706 buildCounterGaDataDataTable++; | 1706 buildCounterGaDataDataTable++; |
| 1707 if (buildCounterGaDataDataTable < 3) { | 1707 if (buildCounterGaDataDataTable < 3) { |
| 1708 o.cols = buildUnnamed947(); | 1708 o.cols = buildUnnamed954(); |
| 1709 o.rows = buildUnnamed949(); | 1709 o.rows = buildUnnamed956(); |
| 1710 } | 1710 } |
| 1711 buildCounterGaDataDataTable--; | 1711 buildCounterGaDataDataTable--; |
| 1712 return o; | 1712 return o; |
| 1713 } | 1713 } |
| 1714 | 1714 |
| 1715 checkGaDataDataTable(api.GaDataDataTable o) { | 1715 checkGaDataDataTable(api.GaDataDataTable o) { |
| 1716 buildCounterGaDataDataTable++; | 1716 buildCounterGaDataDataTable++; |
| 1717 if (buildCounterGaDataDataTable < 3) { | 1717 if (buildCounterGaDataDataTable < 3) { |
| 1718 checkUnnamed947(o.cols); | 1718 checkUnnamed954(o.cols); |
| 1719 checkUnnamed949(o.rows); | 1719 checkUnnamed956(o.rows); |
| 1720 } | 1720 } |
| 1721 buildCounterGaDataDataTable--; | 1721 buildCounterGaDataDataTable--; |
| 1722 } | 1722 } |
| 1723 | 1723 |
| 1724 core.int buildCounterGaDataProfileInfo = 0; | 1724 core.int buildCounterGaDataProfileInfo = 0; |
| 1725 buildGaDataProfileInfo() { | 1725 buildGaDataProfileInfo() { |
| 1726 var o = new api.GaDataProfileInfo(); | 1726 var o = new api.GaDataProfileInfo(); |
| 1727 buildCounterGaDataProfileInfo++; | 1727 buildCounterGaDataProfileInfo++; |
| 1728 if (buildCounterGaDataProfileInfo < 3) { | 1728 if (buildCounterGaDataProfileInfo < 3) { |
| 1729 o.accountId = "foo"; | 1729 o.accountId = "foo"; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1743 unittest.expect(o.accountId, unittest.equals('foo')); | 1743 unittest.expect(o.accountId, unittest.equals('foo')); |
| 1744 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); | 1744 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); |
| 1745 unittest.expect(o.profileId, unittest.equals('foo')); | 1745 unittest.expect(o.profileId, unittest.equals('foo')); |
| 1746 unittest.expect(o.profileName, unittest.equals('foo')); | 1746 unittest.expect(o.profileName, unittest.equals('foo')); |
| 1747 unittest.expect(o.tableId, unittest.equals('foo')); | 1747 unittest.expect(o.tableId, unittest.equals('foo')); |
| 1748 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 1748 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 1749 } | 1749 } |
| 1750 buildCounterGaDataProfileInfo--; | 1750 buildCounterGaDataProfileInfo--; |
| 1751 } | 1751 } |
| 1752 | 1752 |
| 1753 buildUnnamed950() { | 1753 buildUnnamed957() { |
| 1754 var o = new core.List<core.String>(); | 1754 var o = new core.List<core.String>(); |
| 1755 o.add("foo"); | 1755 o.add("foo"); |
| 1756 o.add("foo"); | 1756 o.add("foo"); |
| 1757 return o; | 1757 return o; |
| 1758 } | 1758 } |
| 1759 | 1759 |
| 1760 checkUnnamed950(core.List<core.String> o) { | 1760 checkUnnamed957(core.List<core.String> o) { |
| 1761 unittest.expect(o, unittest.hasLength(2)); | 1761 unittest.expect(o, unittest.hasLength(2)); |
| 1762 unittest.expect(o[0], unittest.equals('foo')); | 1762 unittest.expect(o[0], unittest.equals('foo')); |
| 1763 unittest.expect(o[1], unittest.equals('foo')); | 1763 unittest.expect(o[1], unittest.equals('foo')); |
| 1764 } | 1764 } |
| 1765 | 1765 |
| 1766 buildUnnamed951() { | 1766 buildUnnamed958() { |
| 1767 var o = new core.List<core.String>(); | 1767 var o = new core.List<core.String>(); |
| 1768 o.add("foo"); | 1768 o.add("foo"); |
| 1769 o.add("foo"); | 1769 o.add("foo"); |
| 1770 return o; | 1770 return o; |
| 1771 } | 1771 } |
| 1772 | 1772 |
| 1773 checkUnnamed951(core.List<core.String> o) { | 1773 checkUnnamed958(core.List<core.String> o) { |
| 1774 unittest.expect(o, unittest.hasLength(2)); | 1774 unittest.expect(o, unittest.hasLength(2)); |
| 1775 unittest.expect(o[0], unittest.equals('foo')); | 1775 unittest.expect(o[0], unittest.equals('foo')); |
| 1776 unittest.expect(o[1], unittest.equals('foo')); | 1776 unittest.expect(o[1], unittest.equals('foo')); |
| 1777 } | 1777 } |
| 1778 | 1778 |
| 1779 core.int buildCounterGaDataQuery = 0; | 1779 core.int buildCounterGaDataQuery = 0; |
| 1780 buildGaDataQuery() { | 1780 buildGaDataQuery() { |
| 1781 var o = new api.GaDataQuery(); | 1781 var o = new api.GaDataQuery(); |
| 1782 buildCounterGaDataQuery++; | 1782 buildCounterGaDataQuery++; |
| 1783 if (buildCounterGaDataQuery < 3) { | 1783 if (buildCounterGaDataQuery < 3) { |
| 1784 o.dimensions = "foo"; | 1784 o.dimensions = "foo"; |
| 1785 o.end_date = "foo"; | 1785 o.end_date = "foo"; |
| 1786 o.filters = "foo"; | 1786 o.filters = "foo"; |
| 1787 o.ids = "foo"; | 1787 o.ids = "foo"; |
| 1788 o.max_results = 42; | 1788 o.max_results = 42; |
| 1789 o.metrics = buildUnnamed950(); | 1789 o.metrics = buildUnnamed957(); |
| 1790 o.samplingLevel = "foo"; | 1790 o.samplingLevel = "foo"; |
| 1791 o.segment = "foo"; | 1791 o.segment = "foo"; |
| 1792 o.sort = buildUnnamed951(); | 1792 o.sort = buildUnnamed958(); |
| 1793 o.start_date = "foo"; | 1793 o.start_date = "foo"; |
| 1794 o.start_index = 42; | 1794 o.start_index = 42; |
| 1795 } | 1795 } |
| 1796 buildCounterGaDataQuery--; | 1796 buildCounterGaDataQuery--; |
| 1797 return o; | 1797 return o; |
| 1798 } | 1798 } |
| 1799 | 1799 |
| 1800 checkGaDataQuery(api.GaDataQuery o) { | 1800 checkGaDataQuery(api.GaDataQuery o) { |
| 1801 buildCounterGaDataQuery++; | 1801 buildCounterGaDataQuery++; |
| 1802 if (buildCounterGaDataQuery < 3) { | 1802 if (buildCounterGaDataQuery < 3) { |
| 1803 unittest.expect(o.dimensions, unittest.equals('foo')); | 1803 unittest.expect(o.dimensions, unittest.equals('foo')); |
| 1804 unittest.expect(o.end_date, unittest.equals('foo')); | 1804 unittest.expect(o.end_date, unittest.equals('foo')); |
| 1805 unittest.expect(o.filters, unittest.equals('foo')); | 1805 unittest.expect(o.filters, unittest.equals('foo')); |
| 1806 unittest.expect(o.ids, unittest.equals('foo')); | 1806 unittest.expect(o.ids, unittest.equals('foo')); |
| 1807 unittest.expect(o.max_results, unittest.equals(42)); | 1807 unittest.expect(o.max_results, unittest.equals(42)); |
| 1808 checkUnnamed950(o.metrics); | 1808 checkUnnamed957(o.metrics); |
| 1809 unittest.expect(o.samplingLevel, unittest.equals('foo')); | 1809 unittest.expect(o.samplingLevel, unittest.equals('foo')); |
| 1810 unittest.expect(o.segment, unittest.equals('foo')); | 1810 unittest.expect(o.segment, unittest.equals('foo')); |
| 1811 checkUnnamed951(o.sort); | 1811 checkUnnamed958(o.sort); |
| 1812 unittest.expect(o.start_date, unittest.equals('foo')); | 1812 unittest.expect(o.start_date, unittest.equals('foo')); |
| 1813 unittest.expect(o.start_index, unittest.equals(42)); | 1813 unittest.expect(o.start_index, unittest.equals(42)); |
| 1814 } | 1814 } |
| 1815 buildCounterGaDataQuery--; | 1815 buildCounterGaDataQuery--; |
| 1816 } | 1816 } |
| 1817 | 1817 |
| 1818 buildUnnamed952() { | 1818 buildUnnamed959() { |
| 1819 var o = new core.List<core.String>(); | 1819 var o = new core.List<core.String>(); |
| 1820 o.add("foo"); | 1820 o.add("foo"); |
| 1821 o.add("foo"); | 1821 o.add("foo"); |
| 1822 return o; | 1822 return o; |
| 1823 } | 1823 } |
| 1824 | 1824 |
| 1825 checkUnnamed952(core.List<core.String> o) { | 1825 checkUnnamed959(core.List<core.String> o) { |
| 1826 unittest.expect(o, unittest.hasLength(2)); | 1826 unittest.expect(o, unittest.hasLength(2)); |
| 1827 unittest.expect(o[0], unittest.equals('foo')); | 1827 unittest.expect(o[0], unittest.equals('foo')); |
| 1828 unittest.expect(o[1], unittest.equals('foo')); | 1828 unittest.expect(o[1], unittest.equals('foo')); |
| 1829 } | 1829 } |
| 1830 | 1830 |
| 1831 buildUnnamed953() { | 1831 buildUnnamed960() { |
| 1832 var o = new core.List<core.List<core.String>>(); | 1832 var o = new core.List<core.List<core.String>>(); |
| 1833 o.add(buildUnnamed952()); | 1833 o.add(buildUnnamed959()); |
| 1834 o.add(buildUnnamed952()); | 1834 o.add(buildUnnamed959()); |
| 1835 return o; | 1835 return o; |
| 1836 } | 1836 } |
| 1837 | 1837 |
| 1838 checkUnnamed953(core.List<core.List<core.String>> o) { | 1838 checkUnnamed960(core.List<core.List<core.String>> o) { |
| 1839 unittest.expect(o, unittest.hasLength(2)); | 1839 unittest.expect(o, unittest.hasLength(2)); |
| 1840 checkUnnamed952(o[0]); | 1840 checkUnnamed959(o[0]); |
| 1841 checkUnnamed952(o[1]); | 1841 checkUnnamed959(o[1]); |
| 1842 } | 1842 } |
| 1843 | 1843 |
| 1844 buildUnnamed954() { | 1844 buildUnnamed961() { |
| 1845 var o = new core.Map<core.String, core.String>(); | 1845 var o = new core.Map<core.String, core.String>(); |
| 1846 o["x"] = "foo"; | 1846 o["x"] = "foo"; |
| 1847 o["y"] = "foo"; | 1847 o["y"] = "foo"; |
| 1848 return o; | 1848 return o; |
| 1849 } | 1849 } |
| 1850 | 1850 |
| 1851 checkUnnamed954(core.Map<core.String, core.String> o) { | 1851 checkUnnamed961(core.Map<core.String, core.String> o) { |
| 1852 unittest.expect(o, unittest.hasLength(2)); | 1852 unittest.expect(o, unittest.hasLength(2)); |
| 1853 unittest.expect(o["x"], unittest.equals('foo')); | 1853 unittest.expect(o["x"], unittest.equals('foo')); |
| 1854 unittest.expect(o["y"], unittest.equals('foo')); | 1854 unittest.expect(o["y"], unittest.equals('foo')); |
| 1855 } | 1855 } |
| 1856 | 1856 |
| 1857 core.int buildCounterGaData = 0; | 1857 core.int buildCounterGaData = 0; |
| 1858 buildGaData() { | 1858 buildGaData() { |
| 1859 var o = new api.GaData(); | 1859 var o = new api.GaData(); |
| 1860 buildCounterGaData++; | 1860 buildCounterGaData++; |
| 1861 if (buildCounterGaData < 3) { | 1861 if (buildCounterGaData < 3) { |
| 1862 o.columnHeaders = buildUnnamed946(); | 1862 o.columnHeaders = buildUnnamed953(); |
| 1863 o.containsSampledData = true; | 1863 o.containsSampledData = true; |
| 1864 o.dataLastRefreshed = "foo"; | 1864 o.dataLastRefreshed = "foo"; |
| 1865 o.dataTable = buildGaDataDataTable(); | 1865 o.dataTable = buildGaDataDataTable(); |
| 1866 o.id = "foo"; | 1866 o.id = "foo"; |
| 1867 o.itemsPerPage = 42; | 1867 o.itemsPerPage = 42; |
| 1868 o.kind = "foo"; | 1868 o.kind = "foo"; |
| 1869 o.nextLink = "foo"; | 1869 o.nextLink = "foo"; |
| 1870 o.previousLink = "foo"; | 1870 o.previousLink = "foo"; |
| 1871 o.profileInfo = buildGaDataProfileInfo(); | 1871 o.profileInfo = buildGaDataProfileInfo(); |
| 1872 o.query = buildGaDataQuery(); | 1872 o.query = buildGaDataQuery(); |
| 1873 o.rows = buildUnnamed953(); | 1873 o.rows = buildUnnamed960(); |
| 1874 o.sampleSize = "foo"; | 1874 o.sampleSize = "foo"; |
| 1875 o.sampleSpace = "foo"; | 1875 o.sampleSpace = "foo"; |
| 1876 o.selfLink = "foo"; | 1876 o.selfLink = "foo"; |
| 1877 o.totalResults = 42; | 1877 o.totalResults = 42; |
| 1878 o.totalsForAllResults = buildUnnamed954(); | 1878 o.totalsForAllResults = buildUnnamed961(); |
| 1879 } | 1879 } |
| 1880 buildCounterGaData--; | 1880 buildCounterGaData--; |
| 1881 return o; | 1881 return o; |
| 1882 } | 1882 } |
| 1883 | 1883 |
| 1884 checkGaData(api.GaData o) { | 1884 checkGaData(api.GaData o) { |
| 1885 buildCounterGaData++; | 1885 buildCounterGaData++; |
| 1886 if (buildCounterGaData < 3) { | 1886 if (buildCounterGaData < 3) { |
| 1887 checkUnnamed946(o.columnHeaders); | 1887 checkUnnamed953(o.columnHeaders); |
| 1888 unittest.expect(o.containsSampledData, unittest.isTrue); | 1888 unittest.expect(o.containsSampledData, unittest.isTrue); |
| 1889 unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); | 1889 unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); |
| 1890 checkGaDataDataTable(o.dataTable); | 1890 checkGaDataDataTable(o.dataTable); |
| 1891 unittest.expect(o.id, unittest.equals('foo')); | 1891 unittest.expect(o.id, unittest.equals('foo')); |
| 1892 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 1892 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 1893 unittest.expect(o.kind, unittest.equals('foo')); | 1893 unittest.expect(o.kind, unittest.equals('foo')); |
| 1894 unittest.expect(o.nextLink, unittest.equals('foo')); | 1894 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 1895 unittest.expect(o.previousLink, unittest.equals('foo')); | 1895 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 1896 checkGaDataProfileInfo(o.profileInfo); | 1896 checkGaDataProfileInfo(o.profileInfo); |
| 1897 checkGaDataQuery(o.query); | 1897 checkGaDataQuery(o.query); |
| 1898 checkUnnamed953(o.rows); | 1898 checkUnnamed960(o.rows); |
| 1899 unittest.expect(o.sampleSize, unittest.equals('foo')); | 1899 unittest.expect(o.sampleSize, unittest.equals('foo')); |
| 1900 unittest.expect(o.sampleSpace, unittest.equals('foo')); | 1900 unittest.expect(o.sampleSpace, unittest.equals('foo')); |
| 1901 unittest.expect(o.selfLink, unittest.equals('foo')); | 1901 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1902 unittest.expect(o.totalResults, unittest.equals(42)); | 1902 unittest.expect(o.totalResults, unittest.equals(42)); |
| 1903 checkUnnamed954(o.totalsForAllResults); | 1903 checkUnnamed961(o.totalsForAllResults); |
| 1904 } | 1904 } |
| 1905 buildCounterGaData--; | 1905 buildCounterGaData--; |
| 1906 } | 1906 } |
| 1907 | 1907 |
| 1908 core.int buildCounterGoalEventDetailsEventConditions = 0; | 1908 core.int buildCounterGoalEventDetailsEventConditions = 0; |
| 1909 buildGoalEventDetailsEventConditions() { | 1909 buildGoalEventDetailsEventConditions() { |
| 1910 var o = new api.GoalEventDetailsEventConditions(); | 1910 var o = new api.GoalEventDetailsEventConditions(); |
| 1911 buildCounterGoalEventDetailsEventConditions++; | 1911 buildCounterGoalEventDetailsEventConditions++; |
| 1912 if (buildCounterGoalEventDetailsEventConditions < 3) { | 1912 if (buildCounterGoalEventDetailsEventConditions < 3) { |
| 1913 o.comparisonType = "foo"; | 1913 o.comparisonType = "foo"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1925 if (buildCounterGoalEventDetailsEventConditions < 3) { | 1925 if (buildCounterGoalEventDetailsEventConditions < 3) { |
| 1926 unittest.expect(o.comparisonType, unittest.equals('foo')); | 1926 unittest.expect(o.comparisonType, unittest.equals('foo')); |
| 1927 unittest.expect(o.comparisonValue, unittest.equals('foo')); | 1927 unittest.expect(o.comparisonValue, unittest.equals('foo')); |
| 1928 unittest.expect(o.expression, unittest.equals('foo')); | 1928 unittest.expect(o.expression, unittest.equals('foo')); |
| 1929 unittest.expect(o.matchType, unittest.equals('foo')); | 1929 unittest.expect(o.matchType, unittest.equals('foo')); |
| 1930 unittest.expect(o.type, unittest.equals('foo')); | 1930 unittest.expect(o.type, unittest.equals('foo')); |
| 1931 } | 1931 } |
| 1932 buildCounterGoalEventDetailsEventConditions--; | 1932 buildCounterGoalEventDetailsEventConditions--; |
| 1933 } | 1933 } |
| 1934 | 1934 |
| 1935 buildUnnamed955() { | 1935 buildUnnamed962() { |
| 1936 var o = new core.List<api.GoalEventDetailsEventConditions>(); | 1936 var o = new core.List<api.GoalEventDetailsEventConditions>(); |
| 1937 o.add(buildGoalEventDetailsEventConditions()); | 1937 o.add(buildGoalEventDetailsEventConditions()); |
| 1938 o.add(buildGoalEventDetailsEventConditions()); | 1938 o.add(buildGoalEventDetailsEventConditions()); |
| 1939 return o; | 1939 return o; |
| 1940 } | 1940 } |
| 1941 | 1941 |
| 1942 checkUnnamed955(core.List<api.GoalEventDetailsEventConditions> o) { | 1942 checkUnnamed962(core.List<api.GoalEventDetailsEventConditions> o) { |
| 1943 unittest.expect(o, unittest.hasLength(2)); | 1943 unittest.expect(o, unittest.hasLength(2)); |
| 1944 checkGoalEventDetailsEventConditions(o[0]); | 1944 checkGoalEventDetailsEventConditions(o[0]); |
| 1945 checkGoalEventDetailsEventConditions(o[1]); | 1945 checkGoalEventDetailsEventConditions(o[1]); |
| 1946 } | 1946 } |
| 1947 | 1947 |
| 1948 core.int buildCounterGoalEventDetails = 0; | 1948 core.int buildCounterGoalEventDetails = 0; |
| 1949 buildGoalEventDetails() { | 1949 buildGoalEventDetails() { |
| 1950 var o = new api.GoalEventDetails(); | 1950 var o = new api.GoalEventDetails(); |
| 1951 buildCounterGoalEventDetails++; | 1951 buildCounterGoalEventDetails++; |
| 1952 if (buildCounterGoalEventDetails < 3) { | 1952 if (buildCounterGoalEventDetails < 3) { |
| 1953 o.eventConditions = buildUnnamed955(); | 1953 o.eventConditions = buildUnnamed962(); |
| 1954 o.useEventValue = true; | 1954 o.useEventValue = true; |
| 1955 } | 1955 } |
| 1956 buildCounterGoalEventDetails--; | 1956 buildCounterGoalEventDetails--; |
| 1957 return o; | 1957 return o; |
| 1958 } | 1958 } |
| 1959 | 1959 |
| 1960 checkGoalEventDetails(api.GoalEventDetails o) { | 1960 checkGoalEventDetails(api.GoalEventDetails o) { |
| 1961 buildCounterGoalEventDetails++; | 1961 buildCounterGoalEventDetails++; |
| 1962 if (buildCounterGoalEventDetails < 3) { | 1962 if (buildCounterGoalEventDetails < 3) { |
| 1963 checkUnnamed955(o.eventConditions); | 1963 checkUnnamed962(o.eventConditions); |
| 1964 unittest.expect(o.useEventValue, unittest.isTrue); | 1964 unittest.expect(o.useEventValue, unittest.isTrue); |
| 1965 } | 1965 } |
| 1966 buildCounterGoalEventDetails--; | 1966 buildCounterGoalEventDetails--; |
| 1967 } | 1967 } |
| 1968 | 1968 |
| 1969 core.int buildCounterGoalParentLink = 0; | 1969 core.int buildCounterGoalParentLink = 0; |
| 1970 buildGoalParentLink() { | 1970 buildGoalParentLink() { |
| 1971 var o = new api.GoalParentLink(); | 1971 var o = new api.GoalParentLink(); |
| 1972 buildCounterGoalParentLink++; | 1972 buildCounterGoalParentLink++; |
| 1973 if (buildCounterGoalParentLink < 3) { | 1973 if (buildCounterGoalParentLink < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2003 checkGoalUrlDestinationDetailsSteps(api.GoalUrlDestinationDetailsSteps o) { | 2003 checkGoalUrlDestinationDetailsSteps(api.GoalUrlDestinationDetailsSteps o) { |
| 2004 buildCounterGoalUrlDestinationDetailsSteps++; | 2004 buildCounterGoalUrlDestinationDetailsSteps++; |
| 2005 if (buildCounterGoalUrlDestinationDetailsSteps < 3) { | 2005 if (buildCounterGoalUrlDestinationDetailsSteps < 3) { |
| 2006 unittest.expect(o.name, unittest.equals('foo')); | 2006 unittest.expect(o.name, unittest.equals('foo')); |
| 2007 unittest.expect(o.number, unittest.equals(42)); | 2007 unittest.expect(o.number, unittest.equals(42)); |
| 2008 unittest.expect(o.url, unittest.equals('foo')); | 2008 unittest.expect(o.url, unittest.equals('foo')); |
| 2009 } | 2009 } |
| 2010 buildCounterGoalUrlDestinationDetailsSteps--; | 2010 buildCounterGoalUrlDestinationDetailsSteps--; |
| 2011 } | 2011 } |
| 2012 | 2012 |
| 2013 buildUnnamed956() { | 2013 buildUnnamed963() { |
| 2014 var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); | 2014 var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); |
| 2015 o.add(buildGoalUrlDestinationDetailsSteps()); | 2015 o.add(buildGoalUrlDestinationDetailsSteps()); |
| 2016 o.add(buildGoalUrlDestinationDetailsSteps()); | 2016 o.add(buildGoalUrlDestinationDetailsSteps()); |
| 2017 return o; | 2017 return o; |
| 2018 } | 2018 } |
| 2019 | 2019 |
| 2020 checkUnnamed956(core.List<api.GoalUrlDestinationDetailsSteps> o) { | 2020 checkUnnamed963(core.List<api.GoalUrlDestinationDetailsSteps> o) { |
| 2021 unittest.expect(o, unittest.hasLength(2)); | 2021 unittest.expect(o, unittest.hasLength(2)); |
| 2022 checkGoalUrlDestinationDetailsSteps(o[0]); | 2022 checkGoalUrlDestinationDetailsSteps(o[0]); |
| 2023 checkGoalUrlDestinationDetailsSteps(o[1]); | 2023 checkGoalUrlDestinationDetailsSteps(o[1]); |
| 2024 } | 2024 } |
| 2025 | 2025 |
| 2026 core.int buildCounterGoalUrlDestinationDetails = 0; | 2026 core.int buildCounterGoalUrlDestinationDetails = 0; |
| 2027 buildGoalUrlDestinationDetails() { | 2027 buildGoalUrlDestinationDetails() { |
| 2028 var o = new api.GoalUrlDestinationDetails(); | 2028 var o = new api.GoalUrlDestinationDetails(); |
| 2029 buildCounterGoalUrlDestinationDetails++; | 2029 buildCounterGoalUrlDestinationDetails++; |
| 2030 if (buildCounterGoalUrlDestinationDetails < 3) { | 2030 if (buildCounterGoalUrlDestinationDetails < 3) { |
| 2031 o.caseSensitive = true; | 2031 o.caseSensitive = true; |
| 2032 o.firstStepRequired = true; | 2032 o.firstStepRequired = true; |
| 2033 o.matchType = "foo"; | 2033 o.matchType = "foo"; |
| 2034 o.steps = buildUnnamed956(); | 2034 o.steps = buildUnnamed963(); |
| 2035 o.url = "foo"; | 2035 o.url = "foo"; |
| 2036 } | 2036 } |
| 2037 buildCounterGoalUrlDestinationDetails--; | 2037 buildCounterGoalUrlDestinationDetails--; |
| 2038 return o; | 2038 return o; |
| 2039 } | 2039 } |
| 2040 | 2040 |
| 2041 checkGoalUrlDestinationDetails(api.GoalUrlDestinationDetails o) { | 2041 checkGoalUrlDestinationDetails(api.GoalUrlDestinationDetails o) { |
| 2042 buildCounterGoalUrlDestinationDetails++; | 2042 buildCounterGoalUrlDestinationDetails++; |
| 2043 if (buildCounterGoalUrlDestinationDetails < 3) { | 2043 if (buildCounterGoalUrlDestinationDetails < 3) { |
| 2044 unittest.expect(o.caseSensitive, unittest.isTrue); | 2044 unittest.expect(o.caseSensitive, unittest.isTrue); |
| 2045 unittest.expect(o.firstStepRequired, unittest.isTrue); | 2045 unittest.expect(o.firstStepRequired, unittest.isTrue); |
| 2046 unittest.expect(o.matchType, unittest.equals('foo')); | 2046 unittest.expect(o.matchType, unittest.equals('foo')); |
| 2047 checkUnnamed956(o.steps); | 2047 checkUnnamed963(o.steps); |
| 2048 unittest.expect(o.url, unittest.equals('foo')); | 2048 unittest.expect(o.url, unittest.equals('foo')); |
| 2049 } | 2049 } |
| 2050 buildCounterGoalUrlDestinationDetails--; | 2050 buildCounterGoalUrlDestinationDetails--; |
| 2051 } | 2051 } |
| 2052 | 2052 |
| 2053 core.int buildCounterGoalVisitNumPagesDetails = 0; | 2053 core.int buildCounterGoalVisitNumPagesDetails = 0; |
| 2054 buildGoalVisitNumPagesDetails() { | 2054 buildGoalVisitNumPagesDetails() { |
| 2055 var o = new api.GoalVisitNumPagesDetails(); | 2055 var o = new api.GoalVisitNumPagesDetails(); |
| 2056 buildCounterGoalVisitNumPagesDetails++; | 2056 buildCounterGoalVisitNumPagesDetails++; |
| 2057 if (buildCounterGoalVisitNumPagesDetails < 3) { | 2057 if (buildCounterGoalVisitNumPagesDetails < 3) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2138 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 2139 checkGoalUrlDestinationDetails(o.urlDestinationDetails); | 2139 checkGoalUrlDestinationDetails(o.urlDestinationDetails); |
| 2140 unittest.expect(o.value, unittest.equals(42.0)); | 2140 unittest.expect(o.value, unittest.equals(42.0)); |
| 2141 checkGoalVisitNumPagesDetails(o.visitNumPagesDetails); | 2141 checkGoalVisitNumPagesDetails(o.visitNumPagesDetails); |
| 2142 checkGoalVisitTimeOnSiteDetails(o.visitTimeOnSiteDetails); | 2142 checkGoalVisitTimeOnSiteDetails(o.visitTimeOnSiteDetails); |
| 2143 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 2143 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 2144 } | 2144 } |
| 2145 buildCounterGoal--; | 2145 buildCounterGoal--; |
| 2146 } | 2146 } |
| 2147 | 2147 |
| 2148 buildUnnamed957() { | 2148 buildUnnamed964() { |
| 2149 var o = new core.List<api.Goal>(); | 2149 var o = new core.List<api.Goal>(); |
| 2150 o.add(buildGoal()); | 2150 o.add(buildGoal()); |
| 2151 o.add(buildGoal()); | 2151 o.add(buildGoal()); |
| 2152 return o; | 2152 return o; |
| 2153 } | 2153 } |
| 2154 | 2154 |
| 2155 checkUnnamed957(core.List<api.Goal> o) { | 2155 checkUnnamed964(core.List<api.Goal> o) { |
| 2156 unittest.expect(o, unittest.hasLength(2)); | 2156 unittest.expect(o, unittest.hasLength(2)); |
| 2157 checkGoal(o[0]); | 2157 checkGoal(o[0]); |
| 2158 checkGoal(o[1]); | 2158 checkGoal(o[1]); |
| 2159 } | 2159 } |
| 2160 | 2160 |
| 2161 core.int buildCounterGoals = 0; | 2161 core.int buildCounterGoals = 0; |
| 2162 buildGoals() { | 2162 buildGoals() { |
| 2163 var o = new api.Goals(); | 2163 var o = new api.Goals(); |
| 2164 buildCounterGoals++; | 2164 buildCounterGoals++; |
| 2165 if (buildCounterGoals < 3) { | 2165 if (buildCounterGoals < 3) { |
| 2166 o.items = buildUnnamed957(); | 2166 o.items = buildUnnamed964(); |
| 2167 o.itemsPerPage = 42; | 2167 o.itemsPerPage = 42; |
| 2168 o.kind = "foo"; | 2168 o.kind = "foo"; |
| 2169 o.nextLink = "foo"; | 2169 o.nextLink = "foo"; |
| 2170 o.previousLink = "foo"; | 2170 o.previousLink = "foo"; |
| 2171 o.startIndex = 42; | 2171 o.startIndex = 42; |
| 2172 o.totalResults = 42; | 2172 o.totalResults = 42; |
| 2173 o.username = "foo"; | 2173 o.username = "foo"; |
| 2174 } | 2174 } |
| 2175 buildCounterGoals--; | 2175 buildCounterGoals--; |
| 2176 return o; | 2176 return o; |
| 2177 } | 2177 } |
| 2178 | 2178 |
| 2179 checkGoals(api.Goals o) { | 2179 checkGoals(api.Goals o) { |
| 2180 buildCounterGoals++; | 2180 buildCounterGoals++; |
| 2181 if (buildCounterGoals < 3) { | 2181 if (buildCounterGoals < 3) { |
| 2182 checkUnnamed957(o.items); | 2182 checkUnnamed964(o.items); |
| 2183 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 2183 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 2184 unittest.expect(o.kind, unittest.equals('foo')); | 2184 unittest.expect(o.kind, unittest.equals('foo')); |
| 2185 unittest.expect(o.nextLink, unittest.equals('foo')); | 2185 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 2186 unittest.expect(o.previousLink, unittest.equals('foo')); | 2186 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 2187 unittest.expect(o.startIndex, unittest.equals(42)); | 2187 unittest.expect(o.startIndex, unittest.equals(42)); |
| 2188 unittest.expect(o.totalResults, unittest.equals(42)); | 2188 unittest.expect(o.totalResults, unittest.equals(42)); |
| 2189 unittest.expect(o.username, unittest.equals('foo')); | 2189 unittest.expect(o.username, unittest.equals('foo')); |
| 2190 } | 2190 } |
| 2191 buildCounterGoals--; | 2191 buildCounterGoals--; |
| 2192 } | 2192 } |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2271 checkMcfDataColumnHeaders(api.McfDataColumnHeaders o) { | 2271 checkMcfDataColumnHeaders(api.McfDataColumnHeaders o) { |
| 2272 buildCounterMcfDataColumnHeaders++; | 2272 buildCounterMcfDataColumnHeaders++; |
| 2273 if (buildCounterMcfDataColumnHeaders < 3) { | 2273 if (buildCounterMcfDataColumnHeaders < 3) { |
| 2274 unittest.expect(o.columnType, unittest.equals('foo')); | 2274 unittest.expect(o.columnType, unittest.equals('foo')); |
| 2275 unittest.expect(o.dataType, unittest.equals('foo')); | 2275 unittest.expect(o.dataType, unittest.equals('foo')); |
| 2276 unittest.expect(o.name, unittest.equals('foo')); | 2276 unittest.expect(o.name, unittest.equals('foo')); |
| 2277 } | 2277 } |
| 2278 buildCounterMcfDataColumnHeaders--; | 2278 buildCounterMcfDataColumnHeaders--; |
| 2279 } | 2279 } |
| 2280 | 2280 |
| 2281 buildUnnamed958() { | 2281 buildUnnamed965() { |
| 2282 var o = new core.List<api.McfDataColumnHeaders>(); | 2282 var o = new core.List<api.McfDataColumnHeaders>(); |
| 2283 o.add(buildMcfDataColumnHeaders()); | 2283 o.add(buildMcfDataColumnHeaders()); |
| 2284 o.add(buildMcfDataColumnHeaders()); | 2284 o.add(buildMcfDataColumnHeaders()); |
| 2285 return o; | 2285 return o; |
| 2286 } | 2286 } |
| 2287 | 2287 |
| 2288 checkUnnamed958(core.List<api.McfDataColumnHeaders> o) { | 2288 checkUnnamed965(core.List<api.McfDataColumnHeaders> o) { |
| 2289 unittest.expect(o, unittest.hasLength(2)); | 2289 unittest.expect(o, unittest.hasLength(2)); |
| 2290 checkMcfDataColumnHeaders(o[0]); | 2290 checkMcfDataColumnHeaders(o[0]); |
| 2291 checkMcfDataColumnHeaders(o[1]); | 2291 checkMcfDataColumnHeaders(o[1]); |
| 2292 } | 2292 } |
| 2293 | 2293 |
| 2294 core.int buildCounterMcfDataProfileInfo = 0; | 2294 core.int buildCounterMcfDataProfileInfo = 0; |
| 2295 buildMcfDataProfileInfo() { | 2295 buildMcfDataProfileInfo() { |
| 2296 var o = new api.McfDataProfileInfo(); | 2296 var o = new api.McfDataProfileInfo(); |
| 2297 buildCounterMcfDataProfileInfo++; | 2297 buildCounterMcfDataProfileInfo++; |
| 2298 if (buildCounterMcfDataProfileInfo < 3) { | 2298 if (buildCounterMcfDataProfileInfo < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2313 unittest.expect(o.accountId, unittest.equals('foo')); | 2313 unittest.expect(o.accountId, unittest.equals('foo')); |
| 2314 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); | 2314 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); |
| 2315 unittest.expect(o.profileId, unittest.equals('foo')); | 2315 unittest.expect(o.profileId, unittest.equals('foo')); |
| 2316 unittest.expect(o.profileName, unittest.equals('foo')); | 2316 unittest.expect(o.profileName, unittest.equals('foo')); |
| 2317 unittest.expect(o.tableId, unittest.equals('foo')); | 2317 unittest.expect(o.tableId, unittest.equals('foo')); |
| 2318 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 2318 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 2319 } | 2319 } |
| 2320 buildCounterMcfDataProfileInfo--; | 2320 buildCounterMcfDataProfileInfo--; |
| 2321 } | 2321 } |
| 2322 | 2322 |
| 2323 buildUnnamed959() { | 2323 buildUnnamed966() { |
| 2324 var o = new core.List<core.String>(); | 2324 var o = new core.List<core.String>(); |
| 2325 o.add("foo"); | 2325 o.add("foo"); |
| 2326 o.add("foo"); | 2326 o.add("foo"); |
| 2327 return o; | 2327 return o; |
| 2328 } | 2328 } |
| 2329 | 2329 |
| 2330 checkUnnamed959(core.List<core.String> o) { | 2330 checkUnnamed966(core.List<core.String> o) { |
| 2331 unittest.expect(o, unittest.hasLength(2)); | 2331 unittest.expect(o, unittest.hasLength(2)); |
| 2332 unittest.expect(o[0], unittest.equals('foo')); | 2332 unittest.expect(o[0], unittest.equals('foo')); |
| 2333 unittest.expect(o[1], unittest.equals('foo')); | 2333 unittest.expect(o[1], unittest.equals('foo')); |
| 2334 } | 2334 } |
| 2335 | 2335 |
| 2336 buildUnnamed960() { | 2336 buildUnnamed967() { |
| 2337 var o = new core.List<core.String>(); | 2337 var o = new core.List<core.String>(); |
| 2338 o.add("foo"); | 2338 o.add("foo"); |
| 2339 o.add("foo"); | 2339 o.add("foo"); |
| 2340 return o; | 2340 return o; |
| 2341 } | 2341 } |
| 2342 | 2342 |
| 2343 checkUnnamed960(core.List<core.String> o) { | 2343 checkUnnamed967(core.List<core.String> o) { |
| 2344 unittest.expect(o, unittest.hasLength(2)); | 2344 unittest.expect(o, unittest.hasLength(2)); |
| 2345 unittest.expect(o[0], unittest.equals('foo')); | 2345 unittest.expect(o[0], unittest.equals('foo')); |
| 2346 unittest.expect(o[1], unittest.equals('foo')); | 2346 unittest.expect(o[1], unittest.equals('foo')); |
| 2347 } | 2347 } |
| 2348 | 2348 |
| 2349 core.int buildCounterMcfDataQuery = 0; | 2349 core.int buildCounterMcfDataQuery = 0; |
| 2350 buildMcfDataQuery() { | 2350 buildMcfDataQuery() { |
| 2351 var o = new api.McfDataQuery(); | 2351 var o = new api.McfDataQuery(); |
| 2352 buildCounterMcfDataQuery++; | 2352 buildCounterMcfDataQuery++; |
| 2353 if (buildCounterMcfDataQuery < 3) { | 2353 if (buildCounterMcfDataQuery < 3) { |
| 2354 o.dimensions = "foo"; | 2354 o.dimensions = "foo"; |
| 2355 o.end_date = "foo"; | 2355 o.end_date = "foo"; |
| 2356 o.filters = "foo"; | 2356 o.filters = "foo"; |
| 2357 o.ids = "foo"; | 2357 o.ids = "foo"; |
| 2358 o.max_results = 42; | 2358 o.max_results = 42; |
| 2359 o.metrics = buildUnnamed959(); | 2359 o.metrics = buildUnnamed966(); |
| 2360 o.samplingLevel = "foo"; | 2360 o.samplingLevel = "foo"; |
| 2361 o.segment = "foo"; | 2361 o.segment = "foo"; |
| 2362 o.sort = buildUnnamed960(); | 2362 o.sort = buildUnnamed967(); |
| 2363 o.start_date = "foo"; | 2363 o.start_date = "foo"; |
| 2364 o.start_index = 42; | 2364 o.start_index = 42; |
| 2365 } | 2365 } |
| 2366 buildCounterMcfDataQuery--; | 2366 buildCounterMcfDataQuery--; |
| 2367 return o; | 2367 return o; |
| 2368 } | 2368 } |
| 2369 | 2369 |
| 2370 checkMcfDataQuery(api.McfDataQuery o) { | 2370 checkMcfDataQuery(api.McfDataQuery o) { |
| 2371 buildCounterMcfDataQuery++; | 2371 buildCounterMcfDataQuery++; |
| 2372 if (buildCounterMcfDataQuery < 3) { | 2372 if (buildCounterMcfDataQuery < 3) { |
| 2373 unittest.expect(o.dimensions, unittest.equals('foo')); | 2373 unittest.expect(o.dimensions, unittest.equals('foo')); |
| 2374 unittest.expect(o.end_date, unittest.equals('foo')); | 2374 unittest.expect(o.end_date, unittest.equals('foo')); |
| 2375 unittest.expect(o.filters, unittest.equals('foo')); | 2375 unittest.expect(o.filters, unittest.equals('foo')); |
| 2376 unittest.expect(o.ids, unittest.equals('foo')); | 2376 unittest.expect(o.ids, unittest.equals('foo')); |
| 2377 unittest.expect(o.max_results, unittest.equals(42)); | 2377 unittest.expect(o.max_results, unittest.equals(42)); |
| 2378 checkUnnamed959(o.metrics); | 2378 checkUnnamed966(o.metrics); |
| 2379 unittest.expect(o.samplingLevel, unittest.equals('foo')); | 2379 unittest.expect(o.samplingLevel, unittest.equals('foo')); |
| 2380 unittest.expect(o.segment, unittest.equals('foo')); | 2380 unittest.expect(o.segment, unittest.equals('foo')); |
| 2381 checkUnnamed960(o.sort); | 2381 checkUnnamed967(o.sort); |
| 2382 unittest.expect(o.start_date, unittest.equals('foo')); | 2382 unittest.expect(o.start_date, unittest.equals('foo')); |
| 2383 unittest.expect(o.start_index, unittest.equals(42)); | 2383 unittest.expect(o.start_index, unittest.equals(42)); |
| 2384 } | 2384 } |
| 2385 buildCounterMcfDataQuery--; | 2385 buildCounterMcfDataQuery--; |
| 2386 } | 2386 } |
| 2387 | 2387 |
| 2388 core.int buildCounterMcfDataRowsConversionPathValue = 0; | 2388 core.int buildCounterMcfDataRowsConversionPathValue = 0; |
| 2389 buildMcfDataRowsConversionPathValue() { | 2389 buildMcfDataRowsConversionPathValue() { |
| 2390 var o = new api.McfDataRowsConversionPathValue(); | 2390 var o = new api.McfDataRowsConversionPathValue(); |
| 2391 buildCounterMcfDataRowsConversionPathValue++; | 2391 buildCounterMcfDataRowsConversionPathValue++; |
| 2392 if (buildCounterMcfDataRowsConversionPathValue < 3) { | 2392 if (buildCounterMcfDataRowsConversionPathValue < 3) { |
| 2393 o.interactionType = "foo"; | 2393 o.interactionType = "foo"; |
| 2394 o.nodeValue = "foo"; | 2394 o.nodeValue = "foo"; |
| 2395 } | 2395 } |
| 2396 buildCounterMcfDataRowsConversionPathValue--; | 2396 buildCounterMcfDataRowsConversionPathValue--; |
| 2397 return o; | 2397 return o; |
| 2398 } | 2398 } |
| 2399 | 2399 |
| 2400 checkMcfDataRowsConversionPathValue(api.McfDataRowsConversionPathValue o) { | 2400 checkMcfDataRowsConversionPathValue(api.McfDataRowsConversionPathValue o) { |
| 2401 buildCounterMcfDataRowsConversionPathValue++; | 2401 buildCounterMcfDataRowsConversionPathValue++; |
| 2402 if (buildCounterMcfDataRowsConversionPathValue < 3) { | 2402 if (buildCounterMcfDataRowsConversionPathValue < 3) { |
| 2403 unittest.expect(o.interactionType, unittest.equals('foo')); | 2403 unittest.expect(o.interactionType, unittest.equals('foo')); |
| 2404 unittest.expect(o.nodeValue, unittest.equals('foo')); | 2404 unittest.expect(o.nodeValue, unittest.equals('foo')); |
| 2405 } | 2405 } |
| 2406 buildCounterMcfDataRowsConversionPathValue--; | 2406 buildCounterMcfDataRowsConversionPathValue--; |
| 2407 } | 2407 } |
| 2408 | 2408 |
| 2409 buildUnnamed961() { | 2409 buildUnnamed968() { |
| 2410 var o = new core.List<api.McfDataRowsConversionPathValue>(); | 2410 var o = new core.List<api.McfDataRowsConversionPathValue>(); |
| 2411 o.add(buildMcfDataRowsConversionPathValue()); | 2411 o.add(buildMcfDataRowsConversionPathValue()); |
| 2412 o.add(buildMcfDataRowsConversionPathValue()); | 2412 o.add(buildMcfDataRowsConversionPathValue()); |
| 2413 return o; | 2413 return o; |
| 2414 } | 2414 } |
| 2415 | 2415 |
| 2416 checkUnnamed961(core.List<api.McfDataRowsConversionPathValue> o) { | 2416 checkUnnamed968(core.List<api.McfDataRowsConversionPathValue> o) { |
| 2417 unittest.expect(o, unittest.hasLength(2)); | 2417 unittest.expect(o, unittest.hasLength(2)); |
| 2418 checkMcfDataRowsConversionPathValue(o[0]); | 2418 checkMcfDataRowsConversionPathValue(o[0]); |
| 2419 checkMcfDataRowsConversionPathValue(o[1]); | 2419 checkMcfDataRowsConversionPathValue(o[1]); |
| 2420 } | 2420 } |
| 2421 | 2421 |
| 2422 core.int buildCounterMcfDataRows = 0; | 2422 core.int buildCounterMcfDataRows = 0; |
| 2423 buildMcfDataRows() { | 2423 buildMcfDataRows() { |
| 2424 var o = new api.McfDataRows(); | 2424 var o = new api.McfDataRows(); |
| 2425 buildCounterMcfDataRows++; | 2425 buildCounterMcfDataRows++; |
| 2426 if (buildCounterMcfDataRows < 3) { | 2426 if (buildCounterMcfDataRows < 3) { |
| 2427 o.conversionPathValue = buildUnnamed961(); | 2427 o.conversionPathValue = buildUnnamed968(); |
| 2428 o.primitiveValue = "foo"; | 2428 o.primitiveValue = "foo"; |
| 2429 } | 2429 } |
| 2430 buildCounterMcfDataRows--; | 2430 buildCounterMcfDataRows--; |
| 2431 return o; | 2431 return o; |
| 2432 } | 2432 } |
| 2433 | 2433 |
| 2434 checkMcfDataRows(api.McfDataRows o) { | 2434 checkMcfDataRows(api.McfDataRows o) { |
| 2435 buildCounterMcfDataRows++; | 2435 buildCounterMcfDataRows++; |
| 2436 if (buildCounterMcfDataRows < 3) { | 2436 if (buildCounterMcfDataRows < 3) { |
| 2437 checkUnnamed961(o.conversionPathValue); | 2437 checkUnnamed968(o.conversionPathValue); |
| 2438 unittest.expect(o.primitiveValue, unittest.equals('foo')); | 2438 unittest.expect(o.primitiveValue, unittest.equals('foo')); |
| 2439 } | 2439 } |
| 2440 buildCounterMcfDataRows--; | 2440 buildCounterMcfDataRows--; |
| 2441 } | 2441 } |
| 2442 | 2442 |
| 2443 buildUnnamed962() { | 2443 buildUnnamed969() { |
| 2444 var o = new core.List<api.McfDataRows>(); | 2444 var o = new core.List<api.McfDataRows>(); |
| 2445 o.add(buildMcfDataRows()); | 2445 o.add(buildMcfDataRows()); |
| 2446 o.add(buildMcfDataRows()); | 2446 o.add(buildMcfDataRows()); |
| 2447 return o; | 2447 return o; |
| 2448 } | 2448 } |
| 2449 | 2449 |
| 2450 checkUnnamed962(core.List<api.McfDataRows> o) { | 2450 checkUnnamed969(core.List<api.McfDataRows> o) { |
| 2451 unittest.expect(o, unittest.hasLength(2)); | 2451 unittest.expect(o, unittest.hasLength(2)); |
| 2452 checkMcfDataRows(o[0]); | 2452 checkMcfDataRows(o[0]); |
| 2453 checkMcfDataRows(o[1]); | 2453 checkMcfDataRows(o[1]); |
| 2454 } | 2454 } |
| 2455 | 2455 |
| 2456 buildUnnamed963() { | 2456 buildUnnamed970() { |
| 2457 var o = new core.List<core.List<api.McfDataRows>>(); | 2457 var o = new core.List<core.List<api.McfDataRows>>(); |
| 2458 o.add(buildUnnamed962()); | 2458 o.add(buildUnnamed969()); |
| 2459 o.add(buildUnnamed962()); | 2459 o.add(buildUnnamed969()); |
| 2460 return o; | 2460 return o; |
| 2461 } | 2461 } |
| 2462 | 2462 |
| 2463 checkUnnamed963(core.List<core.List<api.McfDataRows>> o) { | 2463 checkUnnamed970(core.List<core.List<api.McfDataRows>> o) { |
| 2464 unittest.expect(o, unittest.hasLength(2)); | 2464 unittest.expect(o, unittest.hasLength(2)); |
| 2465 checkUnnamed962(o[0]); | 2465 checkUnnamed969(o[0]); |
| 2466 checkUnnamed962(o[1]); | 2466 checkUnnamed969(o[1]); |
| 2467 } | 2467 } |
| 2468 | 2468 |
| 2469 buildUnnamed964() { | 2469 buildUnnamed971() { |
| 2470 var o = new core.Map<core.String, core.String>(); | 2470 var o = new core.Map<core.String, core.String>(); |
| 2471 o["x"] = "foo"; | 2471 o["x"] = "foo"; |
| 2472 o["y"] = "foo"; | 2472 o["y"] = "foo"; |
| 2473 return o; | 2473 return o; |
| 2474 } | 2474 } |
| 2475 | 2475 |
| 2476 checkUnnamed964(core.Map<core.String, core.String> o) { | 2476 checkUnnamed971(core.Map<core.String, core.String> o) { |
| 2477 unittest.expect(o, unittest.hasLength(2)); | 2477 unittest.expect(o, unittest.hasLength(2)); |
| 2478 unittest.expect(o["x"], unittest.equals('foo')); | 2478 unittest.expect(o["x"], unittest.equals('foo')); |
| 2479 unittest.expect(o["y"], unittest.equals('foo')); | 2479 unittest.expect(o["y"], unittest.equals('foo')); |
| 2480 } | 2480 } |
| 2481 | 2481 |
| 2482 core.int buildCounterMcfData = 0; | 2482 core.int buildCounterMcfData = 0; |
| 2483 buildMcfData() { | 2483 buildMcfData() { |
| 2484 var o = new api.McfData(); | 2484 var o = new api.McfData(); |
| 2485 buildCounterMcfData++; | 2485 buildCounterMcfData++; |
| 2486 if (buildCounterMcfData < 3) { | 2486 if (buildCounterMcfData < 3) { |
| 2487 o.columnHeaders = buildUnnamed958(); | 2487 o.columnHeaders = buildUnnamed965(); |
| 2488 o.containsSampledData = true; | 2488 o.containsSampledData = true; |
| 2489 o.id = "foo"; | 2489 o.id = "foo"; |
| 2490 o.itemsPerPage = 42; | 2490 o.itemsPerPage = 42; |
| 2491 o.kind = "foo"; | 2491 o.kind = "foo"; |
| 2492 o.nextLink = "foo"; | 2492 o.nextLink = "foo"; |
| 2493 o.previousLink = "foo"; | 2493 o.previousLink = "foo"; |
| 2494 o.profileInfo = buildMcfDataProfileInfo(); | 2494 o.profileInfo = buildMcfDataProfileInfo(); |
| 2495 o.query = buildMcfDataQuery(); | 2495 o.query = buildMcfDataQuery(); |
| 2496 o.rows = buildUnnamed963(); | 2496 o.rows = buildUnnamed970(); |
| 2497 o.sampleSize = "foo"; | 2497 o.sampleSize = "foo"; |
| 2498 o.sampleSpace = "foo"; | 2498 o.sampleSpace = "foo"; |
| 2499 o.selfLink = "foo"; | 2499 o.selfLink = "foo"; |
| 2500 o.totalResults = 42; | 2500 o.totalResults = 42; |
| 2501 o.totalsForAllResults = buildUnnamed964(); | 2501 o.totalsForAllResults = buildUnnamed971(); |
| 2502 } | 2502 } |
| 2503 buildCounterMcfData--; | 2503 buildCounterMcfData--; |
| 2504 return o; | 2504 return o; |
| 2505 } | 2505 } |
| 2506 | 2506 |
| 2507 checkMcfData(api.McfData o) { | 2507 checkMcfData(api.McfData o) { |
| 2508 buildCounterMcfData++; | 2508 buildCounterMcfData++; |
| 2509 if (buildCounterMcfData < 3) { | 2509 if (buildCounterMcfData < 3) { |
| 2510 checkUnnamed958(o.columnHeaders); | 2510 checkUnnamed965(o.columnHeaders); |
| 2511 unittest.expect(o.containsSampledData, unittest.isTrue); | 2511 unittest.expect(o.containsSampledData, unittest.isTrue); |
| 2512 unittest.expect(o.id, unittest.equals('foo')); | 2512 unittest.expect(o.id, unittest.equals('foo')); |
| 2513 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 2513 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 2514 unittest.expect(o.kind, unittest.equals('foo')); | 2514 unittest.expect(o.kind, unittest.equals('foo')); |
| 2515 unittest.expect(o.nextLink, unittest.equals('foo')); | 2515 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 2516 unittest.expect(o.previousLink, unittest.equals('foo')); | 2516 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 2517 checkMcfDataProfileInfo(o.profileInfo); | 2517 checkMcfDataProfileInfo(o.profileInfo); |
| 2518 checkMcfDataQuery(o.query); | 2518 checkMcfDataQuery(o.query); |
| 2519 checkUnnamed963(o.rows); | 2519 checkUnnamed970(o.rows); |
| 2520 unittest.expect(o.sampleSize, unittest.equals('foo')); | 2520 unittest.expect(o.sampleSize, unittest.equals('foo')); |
| 2521 unittest.expect(o.sampleSpace, unittest.equals('foo')); | 2521 unittest.expect(o.sampleSpace, unittest.equals('foo')); |
| 2522 unittest.expect(o.selfLink, unittest.equals('foo')); | 2522 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2523 unittest.expect(o.totalResults, unittest.equals(42)); | 2523 unittest.expect(o.totalResults, unittest.equals(42)); |
| 2524 checkUnnamed964(o.totalsForAllResults); | 2524 checkUnnamed971(o.totalsForAllResults); |
| 2525 } | 2525 } |
| 2526 buildCounterMcfData--; | 2526 buildCounterMcfData--; |
| 2527 } | 2527 } |
| 2528 | 2528 |
| 2529 core.int buildCounterProfileChildLink = 0; | 2529 core.int buildCounterProfileChildLink = 0; |
| 2530 buildProfileChildLink() { | 2530 buildProfileChildLink() { |
| 2531 var o = new api.ProfileChildLink(); | 2531 var o = new api.ProfileChildLink(); |
| 2532 buildCounterProfileChildLink++; | 2532 buildCounterProfileChildLink++; |
| 2533 if (buildCounterProfileChildLink < 3) { | 2533 if (buildCounterProfileChildLink < 3) { |
| 2534 o.href = "foo"; | 2534 o.href = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2561 | 2561 |
| 2562 checkProfileParentLink(api.ProfileParentLink o) { | 2562 checkProfileParentLink(api.ProfileParentLink o) { |
| 2563 buildCounterProfileParentLink++; | 2563 buildCounterProfileParentLink++; |
| 2564 if (buildCounterProfileParentLink < 3) { | 2564 if (buildCounterProfileParentLink < 3) { |
| 2565 unittest.expect(o.href, unittest.equals('foo')); | 2565 unittest.expect(o.href, unittest.equals('foo')); |
| 2566 unittest.expect(o.type, unittest.equals('foo')); | 2566 unittest.expect(o.type, unittest.equals('foo')); |
| 2567 } | 2567 } |
| 2568 buildCounterProfileParentLink--; | 2568 buildCounterProfileParentLink--; |
| 2569 } | 2569 } |
| 2570 | 2570 |
| 2571 buildUnnamed965() { | 2571 buildUnnamed972() { |
| 2572 var o = new core.List<core.String>(); | 2572 var o = new core.List<core.String>(); |
| 2573 o.add("foo"); | 2573 o.add("foo"); |
| 2574 o.add("foo"); | 2574 o.add("foo"); |
| 2575 return o; | 2575 return o; |
| 2576 } | 2576 } |
| 2577 | 2577 |
| 2578 checkUnnamed965(core.List<core.String> o) { | 2578 checkUnnamed972(core.List<core.String> o) { |
| 2579 unittest.expect(o, unittest.hasLength(2)); | 2579 unittest.expect(o, unittest.hasLength(2)); |
| 2580 unittest.expect(o[0], unittest.equals('foo')); | 2580 unittest.expect(o[0], unittest.equals('foo')); |
| 2581 unittest.expect(o[1], unittest.equals('foo')); | 2581 unittest.expect(o[1], unittest.equals('foo')); |
| 2582 } | 2582 } |
| 2583 | 2583 |
| 2584 core.int buildCounterProfilePermissions = 0; | 2584 core.int buildCounterProfilePermissions = 0; |
| 2585 buildProfilePermissions() { | 2585 buildProfilePermissions() { |
| 2586 var o = new api.ProfilePermissions(); | 2586 var o = new api.ProfilePermissions(); |
| 2587 buildCounterProfilePermissions++; | 2587 buildCounterProfilePermissions++; |
| 2588 if (buildCounterProfilePermissions < 3) { | 2588 if (buildCounterProfilePermissions < 3) { |
| 2589 o.effective = buildUnnamed965(); | 2589 o.effective = buildUnnamed972(); |
| 2590 } | 2590 } |
| 2591 buildCounterProfilePermissions--; | 2591 buildCounterProfilePermissions--; |
| 2592 return o; | 2592 return o; |
| 2593 } | 2593 } |
| 2594 | 2594 |
| 2595 checkProfilePermissions(api.ProfilePermissions o) { | 2595 checkProfilePermissions(api.ProfilePermissions o) { |
| 2596 buildCounterProfilePermissions++; | 2596 buildCounterProfilePermissions++; |
| 2597 if (buildCounterProfilePermissions < 3) { | 2597 if (buildCounterProfilePermissions < 3) { |
| 2598 checkUnnamed965(o.effective); | 2598 checkUnnamed972(o.effective); |
| 2599 } | 2599 } |
| 2600 buildCounterProfilePermissions--; | 2600 buildCounterProfilePermissions--; |
| 2601 } | 2601 } |
| 2602 | 2602 |
| 2603 core.int buildCounterProfile = 0; | 2603 core.int buildCounterProfile = 0; |
| 2604 buildProfile() { | 2604 buildProfile() { |
| 2605 var o = new api.Profile(); | 2605 var o = new api.Profile(); |
| 2606 buildCounterProfile++; | 2606 buildCounterProfile++; |
| 2607 if (buildCounterProfile < 3) { | 2607 if (buildCounterProfile < 3) { |
| 2608 o.accountId = "foo"; | 2608 o.accountId = "foo"; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2691 checkFilterRef(o.filterRef); | 2691 checkFilterRef(o.filterRef); |
| 2692 unittest.expect(o.id, unittest.equals('foo')); | 2692 unittest.expect(o.id, unittest.equals('foo')); |
| 2693 unittest.expect(o.kind, unittest.equals('foo')); | 2693 unittest.expect(o.kind, unittest.equals('foo')); |
| 2694 checkProfileRef(o.profileRef); | 2694 checkProfileRef(o.profileRef); |
| 2695 unittest.expect(o.rank, unittest.equals(42)); | 2695 unittest.expect(o.rank, unittest.equals(42)); |
| 2696 unittest.expect(o.selfLink, unittest.equals('foo')); | 2696 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2697 } | 2697 } |
| 2698 buildCounterProfileFilterLink--; | 2698 buildCounterProfileFilterLink--; |
| 2699 } | 2699 } |
| 2700 | 2700 |
| 2701 buildUnnamed966() { | 2701 buildUnnamed973() { |
| 2702 var o = new core.List<api.ProfileFilterLink>(); | 2702 var o = new core.List<api.ProfileFilterLink>(); |
| 2703 o.add(buildProfileFilterLink()); | 2703 o.add(buildProfileFilterLink()); |
| 2704 o.add(buildProfileFilterLink()); | 2704 o.add(buildProfileFilterLink()); |
| 2705 return o; | 2705 return o; |
| 2706 } | 2706 } |
| 2707 | 2707 |
| 2708 checkUnnamed966(core.List<api.ProfileFilterLink> o) { | 2708 checkUnnamed973(core.List<api.ProfileFilterLink> o) { |
| 2709 unittest.expect(o, unittest.hasLength(2)); | 2709 unittest.expect(o, unittest.hasLength(2)); |
| 2710 checkProfileFilterLink(o[0]); | 2710 checkProfileFilterLink(o[0]); |
| 2711 checkProfileFilterLink(o[1]); | 2711 checkProfileFilterLink(o[1]); |
| 2712 } | 2712 } |
| 2713 | 2713 |
| 2714 core.int buildCounterProfileFilterLinks = 0; | 2714 core.int buildCounterProfileFilterLinks = 0; |
| 2715 buildProfileFilterLinks() { | 2715 buildProfileFilterLinks() { |
| 2716 var o = new api.ProfileFilterLinks(); | 2716 var o = new api.ProfileFilterLinks(); |
| 2717 buildCounterProfileFilterLinks++; | 2717 buildCounterProfileFilterLinks++; |
| 2718 if (buildCounterProfileFilterLinks < 3) { | 2718 if (buildCounterProfileFilterLinks < 3) { |
| 2719 o.items = buildUnnamed966(); | 2719 o.items = buildUnnamed973(); |
| 2720 o.itemsPerPage = 42; | 2720 o.itemsPerPage = 42; |
| 2721 o.kind = "foo"; | 2721 o.kind = "foo"; |
| 2722 o.nextLink = "foo"; | 2722 o.nextLink = "foo"; |
| 2723 o.previousLink = "foo"; | 2723 o.previousLink = "foo"; |
| 2724 o.startIndex = 42; | 2724 o.startIndex = 42; |
| 2725 o.totalResults = 42; | 2725 o.totalResults = 42; |
| 2726 o.username = "foo"; | 2726 o.username = "foo"; |
| 2727 } | 2727 } |
| 2728 buildCounterProfileFilterLinks--; | 2728 buildCounterProfileFilterLinks--; |
| 2729 return o; | 2729 return o; |
| 2730 } | 2730 } |
| 2731 | 2731 |
| 2732 checkProfileFilterLinks(api.ProfileFilterLinks o) { | 2732 checkProfileFilterLinks(api.ProfileFilterLinks o) { |
| 2733 buildCounterProfileFilterLinks++; | 2733 buildCounterProfileFilterLinks++; |
| 2734 if (buildCounterProfileFilterLinks < 3) { | 2734 if (buildCounterProfileFilterLinks < 3) { |
| 2735 checkUnnamed966(o.items); | 2735 checkUnnamed973(o.items); |
| 2736 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 2736 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 2737 unittest.expect(o.kind, unittest.equals('foo')); | 2737 unittest.expect(o.kind, unittest.equals('foo')); |
| 2738 unittest.expect(o.nextLink, unittest.equals('foo')); | 2738 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 2739 unittest.expect(o.previousLink, unittest.equals('foo')); | 2739 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 2740 unittest.expect(o.startIndex, unittest.equals(42)); | 2740 unittest.expect(o.startIndex, unittest.equals(42)); |
| 2741 unittest.expect(o.totalResults, unittest.equals(42)); | 2741 unittest.expect(o.totalResults, unittest.equals(42)); |
| 2742 unittest.expect(o.username, unittest.equals('foo')); | 2742 unittest.expect(o.username, unittest.equals('foo')); |
| 2743 } | 2743 } |
| 2744 buildCounterProfileFilterLinks--; | 2744 buildCounterProfileFilterLinks--; |
| 2745 } | 2745 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2795 if (buildCounterProfileSummary < 3) { | 2795 if (buildCounterProfileSummary < 3) { |
| 2796 unittest.expect(o.id, unittest.equals('foo')); | 2796 unittest.expect(o.id, unittest.equals('foo')); |
| 2797 unittest.expect(o.kind, unittest.equals('foo')); | 2797 unittest.expect(o.kind, unittest.equals('foo')); |
| 2798 unittest.expect(o.name, unittest.equals('foo')); | 2798 unittest.expect(o.name, unittest.equals('foo')); |
| 2799 unittest.expect(o.starred, unittest.isTrue); | 2799 unittest.expect(o.starred, unittest.isTrue); |
| 2800 unittest.expect(o.type, unittest.equals('foo')); | 2800 unittest.expect(o.type, unittest.equals('foo')); |
| 2801 } | 2801 } |
| 2802 buildCounterProfileSummary--; | 2802 buildCounterProfileSummary--; |
| 2803 } | 2803 } |
| 2804 | 2804 |
| 2805 buildUnnamed967() { | 2805 buildUnnamed974() { |
| 2806 var o = new core.List<api.Profile>(); | 2806 var o = new core.List<api.Profile>(); |
| 2807 o.add(buildProfile()); | 2807 o.add(buildProfile()); |
| 2808 o.add(buildProfile()); | 2808 o.add(buildProfile()); |
| 2809 return o; | 2809 return o; |
| 2810 } | 2810 } |
| 2811 | 2811 |
| 2812 checkUnnamed967(core.List<api.Profile> o) { | 2812 checkUnnamed974(core.List<api.Profile> o) { |
| 2813 unittest.expect(o, unittest.hasLength(2)); | 2813 unittest.expect(o, unittest.hasLength(2)); |
| 2814 checkProfile(o[0]); | 2814 checkProfile(o[0]); |
| 2815 checkProfile(o[1]); | 2815 checkProfile(o[1]); |
| 2816 } | 2816 } |
| 2817 | 2817 |
| 2818 core.int buildCounterProfiles = 0; | 2818 core.int buildCounterProfiles = 0; |
| 2819 buildProfiles() { | 2819 buildProfiles() { |
| 2820 var o = new api.Profiles(); | 2820 var o = new api.Profiles(); |
| 2821 buildCounterProfiles++; | 2821 buildCounterProfiles++; |
| 2822 if (buildCounterProfiles < 3) { | 2822 if (buildCounterProfiles < 3) { |
| 2823 o.items = buildUnnamed967(); | 2823 o.items = buildUnnamed974(); |
| 2824 o.itemsPerPage = 42; | 2824 o.itemsPerPage = 42; |
| 2825 o.kind = "foo"; | 2825 o.kind = "foo"; |
| 2826 o.nextLink = "foo"; | 2826 o.nextLink = "foo"; |
| 2827 o.previousLink = "foo"; | 2827 o.previousLink = "foo"; |
| 2828 o.startIndex = 42; | 2828 o.startIndex = 42; |
| 2829 o.totalResults = 42; | 2829 o.totalResults = 42; |
| 2830 o.username = "foo"; | 2830 o.username = "foo"; |
| 2831 } | 2831 } |
| 2832 buildCounterProfiles--; | 2832 buildCounterProfiles--; |
| 2833 return o; | 2833 return o; |
| 2834 } | 2834 } |
| 2835 | 2835 |
| 2836 checkProfiles(api.Profiles o) { | 2836 checkProfiles(api.Profiles o) { |
| 2837 buildCounterProfiles++; | 2837 buildCounterProfiles++; |
| 2838 if (buildCounterProfiles < 3) { | 2838 if (buildCounterProfiles < 3) { |
| 2839 checkUnnamed967(o.items); | 2839 checkUnnamed974(o.items); |
| 2840 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 2840 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 2841 unittest.expect(o.kind, unittest.equals('foo')); | 2841 unittest.expect(o.kind, unittest.equals('foo')); |
| 2842 unittest.expect(o.nextLink, unittest.equals('foo')); | 2842 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 2843 unittest.expect(o.previousLink, unittest.equals('foo')); | 2843 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 2844 unittest.expect(o.startIndex, unittest.equals(42)); | 2844 unittest.expect(o.startIndex, unittest.equals(42)); |
| 2845 unittest.expect(o.totalResults, unittest.equals(42)); | 2845 unittest.expect(o.totalResults, unittest.equals(42)); |
| 2846 unittest.expect(o.username, unittest.equals('foo')); | 2846 unittest.expect(o.username, unittest.equals('foo')); |
| 2847 } | 2847 } |
| 2848 buildCounterProfiles--; | 2848 buildCounterProfiles--; |
| 2849 } | 2849 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2864 checkRealtimeDataColumnHeaders(api.RealtimeDataColumnHeaders o) { | 2864 checkRealtimeDataColumnHeaders(api.RealtimeDataColumnHeaders o) { |
| 2865 buildCounterRealtimeDataColumnHeaders++; | 2865 buildCounterRealtimeDataColumnHeaders++; |
| 2866 if (buildCounterRealtimeDataColumnHeaders < 3) { | 2866 if (buildCounterRealtimeDataColumnHeaders < 3) { |
| 2867 unittest.expect(o.columnType, unittest.equals('foo')); | 2867 unittest.expect(o.columnType, unittest.equals('foo')); |
| 2868 unittest.expect(o.dataType, unittest.equals('foo')); | 2868 unittest.expect(o.dataType, unittest.equals('foo')); |
| 2869 unittest.expect(o.name, unittest.equals('foo')); | 2869 unittest.expect(o.name, unittest.equals('foo')); |
| 2870 } | 2870 } |
| 2871 buildCounterRealtimeDataColumnHeaders--; | 2871 buildCounterRealtimeDataColumnHeaders--; |
| 2872 } | 2872 } |
| 2873 | 2873 |
| 2874 buildUnnamed968() { | 2874 buildUnnamed975() { |
| 2875 var o = new core.List<api.RealtimeDataColumnHeaders>(); | 2875 var o = new core.List<api.RealtimeDataColumnHeaders>(); |
| 2876 o.add(buildRealtimeDataColumnHeaders()); | 2876 o.add(buildRealtimeDataColumnHeaders()); |
| 2877 o.add(buildRealtimeDataColumnHeaders()); | 2877 o.add(buildRealtimeDataColumnHeaders()); |
| 2878 return o; | 2878 return o; |
| 2879 } | 2879 } |
| 2880 | 2880 |
| 2881 checkUnnamed968(core.List<api.RealtimeDataColumnHeaders> o) { | 2881 checkUnnamed975(core.List<api.RealtimeDataColumnHeaders> o) { |
| 2882 unittest.expect(o, unittest.hasLength(2)); | 2882 unittest.expect(o, unittest.hasLength(2)); |
| 2883 checkRealtimeDataColumnHeaders(o[0]); | 2883 checkRealtimeDataColumnHeaders(o[0]); |
| 2884 checkRealtimeDataColumnHeaders(o[1]); | 2884 checkRealtimeDataColumnHeaders(o[1]); |
| 2885 } | 2885 } |
| 2886 | 2886 |
| 2887 core.int buildCounterRealtimeDataProfileInfo = 0; | 2887 core.int buildCounterRealtimeDataProfileInfo = 0; |
| 2888 buildRealtimeDataProfileInfo() { | 2888 buildRealtimeDataProfileInfo() { |
| 2889 var o = new api.RealtimeDataProfileInfo(); | 2889 var o = new api.RealtimeDataProfileInfo(); |
| 2890 buildCounterRealtimeDataProfileInfo++; | 2890 buildCounterRealtimeDataProfileInfo++; |
| 2891 if (buildCounterRealtimeDataProfileInfo < 3) { | 2891 if (buildCounterRealtimeDataProfileInfo < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2906 unittest.expect(o.accountId, unittest.equals('foo')); | 2906 unittest.expect(o.accountId, unittest.equals('foo')); |
| 2907 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); | 2907 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); |
| 2908 unittest.expect(o.profileId, unittest.equals('foo')); | 2908 unittest.expect(o.profileId, unittest.equals('foo')); |
| 2909 unittest.expect(o.profileName, unittest.equals('foo')); | 2909 unittest.expect(o.profileName, unittest.equals('foo')); |
| 2910 unittest.expect(o.tableId, unittest.equals('foo')); | 2910 unittest.expect(o.tableId, unittest.equals('foo')); |
| 2911 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 2911 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 2912 } | 2912 } |
| 2913 buildCounterRealtimeDataProfileInfo--; | 2913 buildCounterRealtimeDataProfileInfo--; |
| 2914 } | 2914 } |
| 2915 | 2915 |
| 2916 buildUnnamed969() { | 2916 buildUnnamed976() { |
| 2917 var o = new core.List<core.String>(); | 2917 var o = new core.List<core.String>(); |
| 2918 o.add("foo"); | 2918 o.add("foo"); |
| 2919 o.add("foo"); | 2919 o.add("foo"); |
| 2920 return o; | 2920 return o; |
| 2921 } | 2921 } |
| 2922 | 2922 |
| 2923 checkUnnamed969(core.List<core.String> o) { | 2923 checkUnnamed976(core.List<core.String> o) { |
| 2924 unittest.expect(o, unittest.hasLength(2)); | 2924 unittest.expect(o, unittest.hasLength(2)); |
| 2925 unittest.expect(o[0], unittest.equals('foo')); | 2925 unittest.expect(o[0], unittest.equals('foo')); |
| 2926 unittest.expect(o[1], unittest.equals('foo')); | 2926 unittest.expect(o[1], unittest.equals('foo')); |
| 2927 } | 2927 } |
| 2928 | 2928 |
| 2929 buildUnnamed970() { | 2929 buildUnnamed977() { |
| 2930 var o = new core.List<core.String>(); | 2930 var o = new core.List<core.String>(); |
| 2931 o.add("foo"); | 2931 o.add("foo"); |
| 2932 o.add("foo"); | 2932 o.add("foo"); |
| 2933 return o; | 2933 return o; |
| 2934 } | 2934 } |
| 2935 | 2935 |
| 2936 checkUnnamed970(core.List<core.String> o) { | 2936 checkUnnamed977(core.List<core.String> o) { |
| 2937 unittest.expect(o, unittest.hasLength(2)); | 2937 unittest.expect(o, unittest.hasLength(2)); |
| 2938 unittest.expect(o[0], unittest.equals('foo')); | 2938 unittest.expect(o[0], unittest.equals('foo')); |
| 2939 unittest.expect(o[1], unittest.equals('foo')); | 2939 unittest.expect(o[1], unittest.equals('foo')); |
| 2940 } | 2940 } |
| 2941 | 2941 |
| 2942 core.int buildCounterRealtimeDataQuery = 0; | 2942 core.int buildCounterRealtimeDataQuery = 0; |
| 2943 buildRealtimeDataQuery() { | 2943 buildRealtimeDataQuery() { |
| 2944 var o = new api.RealtimeDataQuery(); | 2944 var o = new api.RealtimeDataQuery(); |
| 2945 buildCounterRealtimeDataQuery++; | 2945 buildCounterRealtimeDataQuery++; |
| 2946 if (buildCounterRealtimeDataQuery < 3) { | 2946 if (buildCounterRealtimeDataQuery < 3) { |
| 2947 o.dimensions = "foo"; | 2947 o.dimensions = "foo"; |
| 2948 o.filters = "foo"; | 2948 o.filters = "foo"; |
| 2949 o.ids = "foo"; | 2949 o.ids = "foo"; |
| 2950 o.max_results = 42; | 2950 o.max_results = 42; |
| 2951 o.metrics = buildUnnamed969(); | 2951 o.metrics = buildUnnamed976(); |
| 2952 o.sort = buildUnnamed970(); | 2952 o.sort = buildUnnamed977(); |
| 2953 } | 2953 } |
| 2954 buildCounterRealtimeDataQuery--; | 2954 buildCounterRealtimeDataQuery--; |
| 2955 return o; | 2955 return o; |
| 2956 } | 2956 } |
| 2957 | 2957 |
| 2958 checkRealtimeDataQuery(api.RealtimeDataQuery o) { | 2958 checkRealtimeDataQuery(api.RealtimeDataQuery o) { |
| 2959 buildCounterRealtimeDataQuery++; | 2959 buildCounterRealtimeDataQuery++; |
| 2960 if (buildCounterRealtimeDataQuery < 3) { | 2960 if (buildCounterRealtimeDataQuery < 3) { |
| 2961 unittest.expect(o.dimensions, unittest.equals('foo')); | 2961 unittest.expect(o.dimensions, unittest.equals('foo')); |
| 2962 unittest.expect(o.filters, unittest.equals('foo')); | 2962 unittest.expect(o.filters, unittest.equals('foo')); |
| 2963 unittest.expect(o.ids, unittest.equals('foo')); | 2963 unittest.expect(o.ids, unittest.equals('foo')); |
| 2964 unittest.expect(o.max_results, unittest.equals(42)); | 2964 unittest.expect(o.max_results, unittest.equals(42)); |
| 2965 checkUnnamed969(o.metrics); | 2965 checkUnnamed976(o.metrics); |
| 2966 checkUnnamed970(o.sort); | 2966 checkUnnamed977(o.sort); |
| 2967 } | 2967 } |
| 2968 buildCounterRealtimeDataQuery--; | 2968 buildCounterRealtimeDataQuery--; |
| 2969 } | 2969 } |
| 2970 | 2970 |
| 2971 buildUnnamed971() { | 2971 buildUnnamed978() { |
| 2972 var o = new core.List<core.String>(); | 2972 var o = new core.List<core.String>(); |
| 2973 o.add("foo"); | 2973 o.add("foo"); |
| 2974 o.add("foo"); | 2974 o.add("foo"); |
| 2975 return o; | 2975 return o; |
| 2976 } | 2976 } |
| 2977 | 2977 |
| 2978 checkUnnamed971(core.List<core.String> o) { | 2978 checkUnnamed978(core.List<core.String> o) { |
| 2979 unittest.expect(o, unittest.hasLength(2)); | 2979 unittest.expect(o, unittest.hasLength(2)); |
| 2980 unittest.expect(o[0], unittest.equals('foo')); | 2980 unittest.expect(o[0], unittest.equals('foo')); |
| 2981 unittest.expect(o[1], unittest.equals('foo')); | 2981 unittest.expect(o[1], unittest.equals('foo')); |
| 2982 } | 2982 } |
| 2983 | 2983 |
| 2984 buildUnnamed972() { | 2984 buildUnnamed979() { |
| 2985 var o = new core.List<core.List<core.String>>(); | 2985 var o = new core.List<core.List<core.String>>(); |
| 2986 o.add(buildUnnamed971()); | 2986 o.add(buildUnnamed978()); |
| 2987 o.add(buildUnnamed971()); | 2987 o.add(buildUnnamed978()); |
| 2988 return o; | 2988 return o; |
| 2989 } | 2989 } |
| 2990 | 2990 |
| 2991 checkUnnamed972(core.List<core.List<core.String>> o) { | 2991 checkUnnamed979(core.List<core.List<core.String>> o) { |
| 2992 unittest.expect(o, unittest.hasLength(2)); | 2992 unittest.expect(o, unittest.hasLength(2)); |
| 2993 checkUnnamed971(o[0]); | 2993 checkUnnamed978(o[0]); |
| 2994 checkUnnamed971(o[1]); | 2994 checkUnnamed978(o[1]); |
| 2995 } | 2995 } |
| 2996 | 2996 |
| 2997 buildUnnamed973() { | 2997 buildUnnamed980() { |
| 2998 var o = new core.Map<core.String, core.String>(); | 2998 var o = new core.Map<core.String, core.String>(); |
| 2999 o["x"] = "foo"; | 2999 o["x"] = "foo"; |
| 3000 o["y"] = "foo"; | 3000 o["y"] = "foo"; |
| 3001 return o; | 3001 return o; |
| 3002 } | 3002 } |
| 3003 | 3003 |
| 3004 checkUnnamed973(core.Map<core.String, core.String> o) { | 3004 checkUnnamed980(core.Map<core.String, core.String> o) { |
| 3005 unittest.expect(o, unittest.hasLength(2)); | 3005 unittest.expect(o, unittest.hasLength(2)); |
| 3006 unittest.expect(o["x"], unittest.equals('foo')); | 3006 unittest.expect(o["x"], unittest.equals('foo')); |
| 3007 unittest.expect(o["y"], unittest.equals('foo')); | 3007 unittest.expect(o["y"], unittest.equals('foo')); |
| 3008 } | 3008 } |
| 3009 | 3009 |
| 3010 core.int buildCounterRealtimeData = 0; | 3010 core.int buildCounterRealtimeData = 0; |
| 3011 buildRealtimeData() { | 3011 buildRealtimeData() { |
| 3012 var o = new api.RealtimeData(); | 3012 var o = new api.RealtimeData(); |
| 3013 buildCounterRealtimeData++; | 3013 buildCounterRealtimeData++; |
| 3014 if (buildCounterRealtimeData < 3) { | 3014 if (buildCounterRealtimeData < 3) { |
| 3015 o.columnHeaders = buildUnnamed968(); | 3015 o.columnHeaders = buildUnnamed975(); |
| 3016 o.id = "foo"; | 3016 o.id = "foo"; |
| 3017 o.kind = "foo"; | 3017 o.kind = "foo"; |
| 3018 o.profileInfo = buildRealtimeDataProfileInfo(); | 3018 o.profileInfo = buildRealtimeDataProfileInfo(); |
| 3019 o.query = buildRealtimeDataQuery(); | 3019 o.query = buildRealtimeDataQuery(); |
| 3020 o.rows = buildUnnamed972(); | 3020 o.rows = buildUnnamed979(); |
| 3021 o.selfLink = "foo"; | 3021 o.selfLink = "foo"; |
| 3022 o.totalResults = 42; | 3022 o.totalResults = 42; |
| 3023 o.totalsForAllResults = buildUnnamed973(); | 3023 o.totalsForAllResults = buildUnnamed980(); |
| 3024 } | 3024 } |
| 3025 buildCounterRealtimeData--; | 3025 buildCounterRealtimeData--; |
| 3026 return o; | 3026 return o; |
| 3027 } | 3027 } |
| 3028 | 3028 |
| 3029 checkRealtimeData(api.RealtimeData o) { | 3029 checkRealtimeData(api.RealtimeData o) { |
| 3030 buildCounterRealtimeData++; | 3030 buildCounterRealtimeData++; |
| 3031 if (buildCounterRealtimeData < 3) { | 3031 if (buildCounterRealtimeData < 3) { |
| 3032 checkUnnamed968(o.columnHeaders); | 3032 checkUnnamed975(o.columnHeaders); |
| 3033 unittest.expect(o.id, unittest.equals('foo')); | 3033 unittest.expect(o.id, unittest.equals('foo')); |
| 3034 unittest.expect(o.kind, unittest.equals('foo')); | 3034 unittest.expect(o.kind, unittest.equals('foo')); |
| 3035 checkRealtimeDataProfileInfo(o.profileInfo); | 3035 checkRealtimeDataProfileInfo(o.profileInfo); |
| 3036 checkRealtimeDataQuery(o.query); | 3036 checkRealtimeDataQuery(o.query); |
| 3037 checkUnnamed972(o.rows); | 3037 checkUnnamed979(o.rows); |
| 3038 unittest.expect(o.selfLink, unittest.equals('foo')); | 3038 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3039 unittest.expect(o.totalResults, unittest.equals(42)); | 3039 unittest.expect(o.totalResults, unittest.equals(42)); |
| 3040 checkUnnamed973(o.totalsForAllResults); | 3040 checkUnnamed980(o.totalsForAllResults); |
| 3041 } | 3041 } |
| 3042 buildCounterRealtimeData--; | 3042 buildCounterRealtimeData--; |
| 3043 } | 3043 } |
| 3044 | 3044 |
| 3045 core.int buildCounterRemarketingAudienceAudienceDefinition = 0; | 3045 core.int buildCounterRemarketingAudienceAudienceDefinition = 0; |
| 3046 buildRemarketingAudienceAudienceDefinition() { | 3046 buildRemarketingAudienceAudienceDefinition() { |
| 3047 var o = new api.RemarketingAudienceAudienceDefinition(); | 3047 var o = new api.RemarketingAudienceAudienceDefinition(); |
| 3048 buildCounterRemarketingAudienceAudienceDefinition++; | 3048 buildCounterRemarketingAudienceAudienceDefinition++; |
| 3049 if (buildCounterRemarketingAudienceAudienceDefinition < 3) { | 3049 if (buildCounterRemarketingAudienceAudienceDefinition < 3) { |
| 3050 o.includeConditions = buildIncludeConditions(); | 3050 o.includeConditions = buildIncludeConditions(); |
| 3051 } | 3051 } |
| 3052 buildCounterRemarketingAudienceAudienceDefinition--; | 3052 buildCounterRemarketingAudienceAudienceDefinition--; |
| 3053 return o; | 3053 return o; |
| 3054 } | 3054 } |
| 3055 | 3055 |
| 3056 checkRemarketingAudienceAudienceDefinition(api.RemarketingAudienceAudienceDefini
tion o) { | 3056 checkRemarketingAudienceAudienceDefinition(api.RemarketingAudienceAudienceDefini
tion o) { |
| 3057 buildCounterRemarketingAudienceAudienceDefinition++; | 3057 buildCounterRemarketingAudienceAudienceDefinition++; |
| 3058 if (buildCounterRemarketingAudienceAudienceDefinition < 3) { | 3058 if (buildCounterRemarketingAudienceAudienceDefinition < 3) { |
| 3059 checkIncludeConditions(o.includeConditions); | 3059 checkIncludeConditions(o.includeConditions); |
| 3060 } | 3060 } |
| 3061 buildCounterRemarketingAudienceAudienceDefinition--; | 3061 buildCounterRemarketingAudienceAudienceDefinition--; |
| 3062 } | 3062 } |
| 3063 | 3063 |
| 3064 buildUnnamed974() { | 3064 buildUnnamed981() { |
| 3065 var o = new core.List<api.LinkedForeignAccount>(); | 3065 var o = new core.List<api.LinkedForeignAccount>(); |
| 3066 o.add(buildLinkedForeignAccount()); | 3066 o.add(buildLinkedForeignAccount()); |
| 3067 o.add(buildLinkedForeignAccount()); | 3067 o.add(buildLinkedForeignAccount()); |
| 3068 return o; | 3068 return o; |
| 3069 } | 3069 } |
| 3070 | 3070 |
| 3071 checkUnnamed974(core.List<api.LinkedForeignAccount> o) { | 3071 checkUnnamed981(core.List<api.LinkedForeignAccount> o) { |
| 3072 unittest.expect(o, unittest.hasLength(2)); | 3072 unittest.expect(o, unittest.hasLength(2)); |
| 3073 checkLinkedForeignAccount(o[0]); | 3073 checkLinkedForeignAccount(o[0]); |
| 3074 checkLinkedForeignAccount(o[1]); | 3074 checkLinkedForeignAccount(o[1]); |
| 3075 } | 3075 } |
| 3076 | 3076 |
| 3077 buildUnnamed975() { | 3077 buildUnnamed982() { |
| 3078 var o = new core.List<core.String>(); | 3078 var o = new core.List<core.String>(); |
| 3079 o.add("foo"); | 3079 o.add("foo"); |
| 3080 o.add("foo"); | 3080 o.add("foo"); |
| 3081 return o; | 3081 return o; |
| 3082 } | 3082 } |
| 3083 | 3083 |
| 3084 checkUnnamed975(core.List<core.String> o) { | 3084 checkUnnamed982(core.List<core.String> o) { |
| 3085 unittest.expect(o, unittest.hasLength(2)); | 3085 unittest.expect(o, unittest.hasLength(2)); |
| 3086 unittest.expect(o[0], unittest.equals('foo')); | 3086 unittest.expect(o[0], unittest.equals('foo')); |
| 3087 unittest.expect(o[1], unittest.equals('foo')); | 3087 unittest.expect(o[1], unittest.equals('foo')); |
| 3088 } | 3088 } |
| 3089 | 3089 |
| 3090 core.int buildCounterRemarketingAudienceStateBasedAudienceDefinitionExcludeCondi
tions = 0; | 3090 core.int buildCounterRemarketingAudienceStateBasedAudienceDefinitionExcludeCondi
tions = 0; |
| 3091 buildRemarketingAudienceStateBasedAudienceDefinitionExcludeConditions() { | 3091 buildRemarketingAudienceStateBasedAudienceDefinitionExcludeConditions() { |
| 3092 var o = new api.RemarketingAudienceStateBasedAudienceDefinitionExcludeConditio
ns(); | 3092 var o = new api.RemarketingAudienceStateBasedAudienceDefinitionExcludeConditio
ns(); |
| 3093 buildCounterRemarketingAudienceStateBasedAudienceDefinitionExcludeConditions++
; | 3093 buildCounterRemarketingAudienceStateBasedAudienceDefinitionExcludeConditions++
; |
| 3094 if (buildCounterRemarketingAudienceStateBasedAudienceDefinitionExcludeConditio
ns < 3) { | 3094 if (buildCounterRemarketingAudienceStateBasedAudienceDefinitionExcludeConditio
ns < 3) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3135 buildCounterRemarketingAudience++; | 3135 buildCounterRemarketingAudience++; |
| 3136 if (buildCounterRemarketingAudience < 3) { | 3136 if (buildCounterRemarketingAudience < 3) { |
| 3137 o.accountId = "foo"; | 3137 o.accountId = "foo"; |
| 3138 o.audienceDefinition = buildRemarketingAudienceAudienceDefinition(); | 3138 o.audienceDefinition = buildRemarketingAudienceAudienceDefinition(); |
| 3139 o.audienceType = "foo"; | 3139 o.audienceType = "foo"; |
| 3140 o.created = core.DateTime.parse("2002-02-27T14:01:02"); | 3140 o.created = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3141 o.description = "foo"; | 3141 o.description = "foo"; |
| 3142 o.id = "foo"; | 3142 o.id = "foo"; |
| 3143 o.internalWebPropertyId = "foo"; | 3143 o.internalWebPropertyId = "foo"; |
| 3144 o.kind = "foo"; | 3144 o.kind = "foo"; |
| 3145 o.linkedAdAccounts = buildUnnamed974(); | 3145 o.linkedAdAccounts = buildUnnamed981(); |
| 3146 o.linkedViews = buildUnnamed975(); | 3146 o.linkedViews = buildUnnamed982(); |
| 3147 o.name = "foo"; | 3147 o.name = "foo"; |
| 3148 o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceD
efinition(); | 3148 o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceD
efinition(); |
| 3149 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 3149 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3150 o.webPropertyId = "foo"; | 3150 o.webPropertyId = "foo"; |
| 3151 } | 3151 } |
| 3152 buildCounterRemarketingAudience--; | 3152 buildCounterRemarketingAudience--; |
| 3153 return o; | 3153 return o; |
| 3154 } | 3154 } |
| 3155 | 3155 |
| 3156 checkRemarketingAudience(api.RemarketingAudience o) { | 3156 checkRemarketingAudience(api.RemarketingAudience o) { |
| 3157 buildCounterRemarketingAudience++; | 3157 buildCounterRemarketingAudience++; |
| 3158 if (buildCounterRemarketingAudience < 3) { | 3158 if (buildCounterRemarketingAudience < 3) { |
| 3159 unittest.expect(o.accountId, unittest.equals('foo')); | 3159 unittest.expect(o.accountId, unittest.equals('foo')); |
| 3160 checkRemarketingAudienceAudienceDefinition(o.audienceDefinition); | 3160 checkRemarketingAudienceAudienceDefinition(o.audienceDefinition); |
| 3161 unittest.expect(o.audienceType, unittest.equals('foo')); | 3161 unittest.expect(o.audienceType, unittest.equals('foo')); |
| 3162 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 3162 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 3163 unittest.expect(o.description, unittest.equals('foo')); | 3163 unittest.expect(o.description, unittest.equals('foo')); |
| 3164 unittest.expect(o.id, unittest.equals('foo')); | 3164 unittest.expect(o.id, unittest.equals('foo')); |
| 3165 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); | 3165 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); |
| 3166 unittest.expect(o.kind, unittest.equals('foo')); | 3166 unittest.expect(o.kind, unittest.equals('foo')); |
| 3167 checkUnnamed974(o.linkedAdAccounts); | 3167 checkUnnamed981(o.linkedAdAccounts); |
| 3168 checkUnnamed975(o.linkedViews); | 3168 checkUnnamed982(o.linkedViews); |
| 3169 unittest.expect(o.name, unittest.equals('foo')); | 3169 unittest.expect(o.name, unittest.equals('foo')); |
| 3170 checkRemarketingAudienceStateBasedAudienceDefinition(o.stateBasedAudienceDef
inition); | 3170 checkRemarketingAudienceStateBasedAudienceDefinition(o.stateBasedAudienceDef
inition); |
| 3171 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 3171 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 3172 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 3172 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 3173 } | 3173 } |
| 3174 buildCounterRemarketingAudience--; | 3174 buildCounterRemarketingAudience--; |
| 3175 } | 3175 } |
| 3176 | 3176 |
| 3177 buildUnnamed976() { | 3177 buildUnnamed983() { |
| 3178 var o = new core.List<api.RemarketingAudience>(); | 3178 var o = new core.List<api.RemarketingAudience>(); |
| 3179 o.add(buildRemarketingAudience()); | 3179 o.add(buildRemarketingAudience()); |
| 3180 o.add(buildRemarketingAudience()); | 3180 o.add(buildRemarketingAudience()); |
| 3181 return o; | 3181 return o; |
| 3182 } | 3182 } |
| 3183 | 3183 |
| 3184 checkUnnamed976(core.List<api.RemarketingAudience> o) { | 3184 checkUnnamed983(core.List<api.RemarketingAudience> o) { |
| 3185 unittest.expect(o, unittest.hasLength(2)); | 3185 unittest.expect(o, unittest.hasLength(2)); |
| 3186 checkRemarketingAudience(o[0]); | 3186 checkRemarketingAudience(o[0]); |
| 3187 checkRemarketingAudience(o[1]); | 3187 checkRemarketingAudience(o[1]); |
| 3188 } | 3188 } |
| 3189 | 3189 |
| 3190 core.int buildCounterRemarketingAudiences = 0; | 3190 core.int buildCounterRemarketingAudiences = 0; |
| 3191 buildRemarketingAudiences() { | 3191 buildRemarketingAudiences() { |
| 3192 var o = new api.RemarketingAudiences(); | 3192 var o = new api.RemarketingAudiences(); |
| 3193 buildCounterRemarketingAudiences++; | 3193 buildCounterRemarketingAudiences++; |
| 3194 if (buildCounterRemarketingAudiences < 3) { | 3194 if (buildCounterRemarketingAudiences < 3) { |
| 3195 o.items = buildUnnamed976(); | 3195 o.items = buildUnnamed983(); |
| 3196 o.itemsPerPage = 42; | 3196 o.itemsPerPage = 42; |
| 3197 o.kind = "foo"; | 3197 o.kind = "foo"; |
| 3198 o.nextLink = "foo"; | 3198 o.nextLink = "foo"; |
| 3199 o.previousLink = "foo"; | 3199 o.previousLink = "foo"; |
| 3200 o.startIndex = 42; | 3200 o.startIndex = 42; |
| 3201 o.totalResults = 42; | 3201 o.totalResults = 42; |
| 3202 o.username = "foo"; | 3202 o.username = "foo"; |
| 3203 } | 3203 } |
| 3204 buildCounterRemarketingAudiences--; | 3204 buildCounterRemarketingAudiences--; |
| 3205 return o; | 3205 return o; |
| 3206 } | 3206 } |
| 3207 | 3207 |
| 3208 checkRemarketingAudiences(api.RemarketingAudiences o) { | 3208 checkRemarketingAudiences(api.RemarketingAudiences o) { |
| 3209 buildCounterRemarketingAudiences++; | 3209 buildCounterRemarketingAudiences++; |
| 3210 if (buildCounterRemarketingAudiences < 3) { | 3210 if (buildCounterRemarketingAudiences < 3) { |
| 3211 checkUnnamed976(o.items); | 3211 checkUnnamed983(o.items); |
| 3212 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 3212 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 3213 unittest.expect(o.kind, unittest.equals('foo')); | 3213 unittest.expect(o.kind, unittest.equals('foo')); |
| 3214 unittest.expect(o.nextLink, unittest.equals('foo')); | 3214 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 3215 unittest.expect(o.previousLink, unittest.equals('foo')); | 3215 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 3216 unittest.expect(o.startIndex, unittest.equals(42)); | 3216 unittest.expect(o.startIndex, unittest.equals(42)); |
| 3217 unittest.expect(o.totalResults, unittest.equals(42)); | 3217 unittest.expect(o.totalResults, unittest.equals(42)); |
| 3218 unittest.expect(o.username, unittest.equals('foo')); | 3218 unittest.expect(o.username, unittest.equals('foo')); |
| 3219 } | 3219 } |
| 3220 buildCounterRemarketingAudiences--; | 3220 buildCounterRemarketingAudiences--; |
| 3221 } | 3221 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3248 unittest.expect(o.kind, unittest.equals('foo')); | 3248 unittest.expect(o.kind, unittest.equals('foo')); |
| 3249 unittest.expect(o.name, unittest.equals('foo')); | 3249 unittest.expect(o.name, unittest.equals('foo')); |
| 3250 unittest.expect(o.segmentId, unittest.equals('foo')); | 3250 unittest.expect(o.segmentId, unittest.equals('foo')); |
| 3251 unittest.expect(o.selfLink, unittest.equals('foo')); | 3251 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3252 unittest.expect(o.type, unittest.equals('foo')); | 3252 unittest.expect(o.type, unittest.equals('foo')); |
| 3253 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 3253 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 3254 } | 3254 } |
| 3255 buildCounterSegment--; | 3255 buildCounterSegment--; |
| 3256 } | 3256 } |
| 3257 | 3257 |
| 3258 buildUnnamed977() { | 3258 buildUnnamed984() { |
| 3259 var o = new core.List<api.Segment>(); | 3259 var o = new core.List<api.Segment>(); |
| 3260 o.add(buildSegment()); | 3260 o.add(buildSegment()); |
| 3261 o.add(buildSegment()); | 3261 o.add(buildSegment()); |
| 3262 return o; | 3262 return o; |
| 3263 } | 3263 } |
| 3264 | 3264 |
| 3265 checkUnnamed977(core.List<api.Segment> o) { | 3265 checkUnnamed984(core.List<api.Segment> o) { |
| 3266 unittest.expect(o, unittest.hasLength(2)); | 3266 unittest.expect(o, unittest.hasLength(2)); |
| 3267 checkSegment(o[0]); | 3267 checkSegment(o[0]); |
| 3268 checkSegment(o[1]); | 3268 checkSegment(o[1]); |
| 3269 } | 3269 } |
| 3270 | 3270 |
| 3271 core.int buildCounterSegments = 0; | 3271 core.int buildCounterSegments = 0; |
| 3272 buildSegments() { | 3272 buildSegments() { |
| 3273 var o = new api.Segments(); | 3273 var o = new api.Segments(); |
| 3274 buildCounterSegments++; | 3274 buildCounterSegments++; |
| 3275 if (buildCounterSegments < 3) { | 3275 if (buildCounterSegments < 3) { |
| 3276 o.items = buildUnnamed977(); | 3276 o.items = buildUnnamed984(); |
| 3277 o.itemsPerPage = 42; | 3277 o.itemsPerPage = 42; |
| 3278 o.kind = "foo"; | 3278 o.kind = "foo"; |
| 3279 o.nextLink = "foo"; | 3279 o.nextLink = "foo"; |
| 3280 o.previousLink = "foo"; | 3280 o.previousLink = "foo"; |
| 3281 o.startIndex = 42; | 3281 o.startIndex = 42; |
| 3282 o.totalResults = 42; | 3282 o.totalResults = 42; |
| 3283 o.username = "foo"; | 3283 o.username = "foo"; |
| 3284 } | 3284 } |
| 3285 buildCounterSegments--; | 3285 buildCounterSegments--; |
| 3286 return o; | 3286 return o; |
| 3287 } | 3287 } |
| 3288 | 3288 |
| 3289 checkSegments(api.Segments o) { | 3289 checkSegments(api.Segments o) { |
| 3290 buildCounterSegments++; | 3290 buildCounterSegments++; |
| 3291 if (buildCounterSegments < 3) { | 3291 if (buildCounterSegments < 3) { |
| 3292 checkUnnamed977(o.items); | 3292 checkUnnamed984(o.items); |
| 3293 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 3293 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 3294 unittest.expect(o.kind, unittest.equals('foo')); | 3294 unittest.expect(o.kind, unittest.equals('foo')); |
| 3295 unittest.expect(o.nextLink, unittest.equals('foo')); | 3295 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 3296 unittest.expect(o.previousLink, unittest.equals('foo')); | 3296 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 3297 unittest.expect(o.startIndex, unittest.equals(42)); | 3297 unittest.expect(o.startIndex, unittest.equals(42)); |
| 3298 unittest.expect(o.totalResults, unittest.equals(42)); | 3298 unittest.expect(o.totalResults, unittest.equals(42)); |
| 3299 unittest.expect(o.username, unittest.equals('foo')); | 3299 unittest.expect(o.username, unittest.equals('foo')); |
| 3300 } | 3300 } |
| 3301 buildCounterSegments--; | 3301 buildCounterSegments--; |
| 3302 } | 3302 } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3389 unittest.expect(o.selfLink, unittest.equals('foo')); | 3389 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3390 unittest.expect(o.start_date, unittest.equals('foo')); | 3390 unittest.expect(o.start_date, unittest.equals('foo')); |
| 3391 unittest.expect(o.status, unittest.equals('foo')); | 3391 unittest.expect(o.status, unittest.equals('foo')); |
| 3392 unittest.expect(o.title, unittest.equals('foo')); | 3392 unittest.expect(o.title, unittest.equals('foo')); |
| 3393 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 3393 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 3394 unittest.expect(o.webPropertyId, unittest.equals('foo')); | 3394 unittest.expect(o.webPropertyId, unittest.equals('foo')); |
| 3395 } | 3395 } |
| 3396 buildCounterUnsampledReport--; | 3396 buildCounterUnsampledReport--; |
| 3397 } | 3397 } |
| 3398 | 3398 |
| 3399 buildUnnamed978() { | 3399 buildUnnamed985() { |
| 3400 var o = new core.List<api.UnsampledReport>(); | 3400 var o = new core.List<api.UnsampledReport>(); |
| 3401 o.add(buildUnsampledReport()); | 3401 o.add(buildUnsampledReport()); |
| 3402 o.add(buildUnsampledReport()); | 3402 o.add(buildUnsampledReport()); |
| 3403 return o; | 3403 return o; |
| 3404 } | 3404 } |
| 3405 | 3405 |
| 3406 checkUnnamed978(core.List<api.UnsampledReport> o) { | 3406 checkUnnamed985(core.List<api.UnsampledReport> o) { |
| 3407 unittest.expect(o, unittest.hasLength(2)); | 3407 unittest.expect(o, unittest.hasLength(2)); |
| 3408 checkUnsampledReport(o[0]); | 3408 checkUnsampledReport(o[0]); |
| 3409 checkUnsampledReport(o[1]); | 3409 checkUnsampledReport(o[1]); |
| 3410 } | 3410 } |
| 3411 | 3411 |
| 3412 core.int buildCounterUnsampledReports = 0; | 3412 core.int buildCounterUnsampledReports = 0; |
| 3413 buildUnsampledReports() { | 3413 buildUnsampledReports() { |
| 3414 var o = new api.UnsampledReports(); | 3414 var o = new api.UnsampledReports(); |
| 3415 buildCounterUnsampledReports++; | 3415 buildCounterUnsampledReports++; |
| 3416 if (buildCounterUnsampledReports < 3) { | 3416 if (buildCounterUnsampledReports < 3) { |
| 3417 o.items = buildUnnamed978(); | 3417 o.items = buildUnnamed985(); |
| 3418 o.itemsPerPage = 42; | 3418 o.itemsPerPage = 42; |
| 3419 o.kind = "foo"; | 3419 o.kind = "foo"; |
| 3420 o.nextLink = "foo"; | 3420 o.nextLink = "foo"; |
| 3421 o.previousLink = "foo"; | 3421 o.previousLink = "foo"; |
| 3422 o.startIndex = 42; | 3422 o.startIndex = 42; |
| 3423 o.totalResults = 42; | 3423 o.totalResults = 42; |
| 3424 o.username = "foo"; | 3424 o.username = "foo"; |
| 3425 } | 3425 } |
| 3426 buildCounterUnsampledReports--; | 3426 buildCounterUnsampledReports--; |
| 3427 return o; | 3427 return o; |
| 3428 } | 3428 } |
| 3429 | 3429 |
| 3430 checkUnsampledReports(api.UnsampledReports o) { | 3430 checkUnsampledReports(api.UnsampledReports o) { |
| 3431 buildCounterUnsampledReports++; | 3431 buildCounterUnsampledReports++; |
| 3432 if (buildCounterUnsampledReports < 3) { | 3432 if (buildCounterUnsampledReports < 3) { |
| 3433 checkUnnamed978(o.items); | 3433 checkUnnamed985(o.items); |
| 3434 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 3434 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 3435 unittest.expect(o.kind, unittest.equals('foo')); | 3435 unittest.expect(o.kind, unittest.equals('foo')); |
| 3436 unittest.expect(o.nextLink, unittest.equals('foo')); | 3436 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 3437 unittest.expect(o.previousLink, unittest.equals('foo')); | 3437 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 3438 unittest.expect(o.startIndex, unittest.equals(42)); | 3438 unittest.expect(o.startIndex, unittest.equals(42)); |
| 3439 unittest.expect(o.totalResults, unittest.equals(42)); | 3439 unittest.expect(o.totalResults, unittest.equals(42)); |
| 3440 unittest.expect(o.username, unittest.equals('foo')); | 3440 unittest.expect(o.username, unittest.equals('foo')); |
| 3441 } | 3441 } |
| 3442 buildCounterUnsampledReports--; | 3442 buildCounterUnsampledReports--; |
| 3443 } | 3443 } |
| 3444 | 3444 |
| 3445 buildUnnamed979() { | 3445 buildUnnamed986() { |
| 3446 var o = new core.List<core.String>(); | 3446 var o = new core.List<core.String>(); |
| 3447 o.add("foo"); | 3447 o.add("foo"); |
| 3448 o.add("foo"); | 3448 o.add("foo"); |
| 3449 return o; | 3449 return o; |
| 3450 } | 3450 } |
| 3451 | 3451 |
| 3452 checkUnnamed979(core.List<core.String> o) { | 3452 checkUnnamed986(core.List<core.String> o) { |
| 3453 unittest.expect(o, unittest.hasLength(2)); | 3453 unittest.expect(o, unittest.hasLength(2)); |
| 3454 unittest.expect(o[0], unittest.equals('foo')); | 3454 unittest.expect(o[0], unittest.equals('foo')); |
| 3455 unittest.expect(o[1], unittest.equals('foo')); | 3455 unittest.expect(o[1], unittest.equals('foo')); |
| 3456 } | 3456 } |
| 3457 | 3457 |
| 3458 core.int buildCounterUpload = 0; | 3458 core.int buildCounterUpload = 0; |
| 3459 buildUpload() { | 3459 buildUpload() { |
| 3460 var o = new api.Upload(); | 3460 var o = new api.Upload(); |
| 3461 buildCounterUpload++; | 3461 buildCounterUpload++; |
| 3462 if (buildCounterUpload < 3) { | 3462 if (buildCounterUpload < 3) { |
| 3463 o.accountId = "foo"; | 3463 o.accountId = "foo"; |
| 3464 o.customDataSourceId = "foo"; | 3464 o.customDataSourceId = "foo"; |
| 3465 o.errors = buildUnnamed979(); | 3465 o.errors = buildUnnamed986(); |
| 3466 o.id = "foo"; | 3466 o.id = "foo"; |
| 3467 o.kind = "foo"; | 3467 o.kind = "foo"; |
| 3468 o.status = "foo"; | 3468 o.status = "foo"; |
| 3469 } | 3469 } |
| 3470 buildCounterUpload--; | 3470 buildCounterUpload--; |
| 3471 return o; | 3471 return o; |
| 3472 } | 3472 } |
| 3473 | 3473 |
| 3474 checkUpload(api.Upload o) { | 3474 checkUpload(api.Upload o) { |
| 3475 buildCounterUpload++; | 3475 buildCounterUpload++; |
| 3476 if (buildCounterUpload < 3) { | 3476 if (buildCounterUpload < 3) { |
| 3477 unittest.expect(o.accountId, unittest.equals('foo')); | 3477 unittest.expect(o.accountId, unittest.equals('foo')); |
| 3478 unittest.expect(o.customDataSourceId, unittest.equals('foo')); | 3478 unittest.expect(o.customDataSourceId, unittest.equals('foo')); |
| 3479 checkUnnamed979(o.errors); | 3479 checkUnnamed986(o.errors); |
| 3480 unittest.expect(o.id, unittest.equals('foo')); | 3480 unittest.expect(o.id, unittest.equals('foo')); |
| 3481 unittest.expect(o.kind, unittest.equals('foo')); | 3481 unittest.expect(o.kind, unittest.equals('foo')); |
| 3482 unittest.expect(o.status, unittest.equals('foo')); | 3482 unittest.expect(o.status, unittest.equals('foo')); |
| 3483 } | 3483 } |
| 3484 buildCounterUpload--; | 3484 buildCounterUpload--; |
| 3485 } | 3485 } |
| 3486 | 3486 |
| 3487 buildUnnamed980() { | 3487 buildUnnamed987() { |
| 3488 var o = new core.List<api.Upload>(); | 3488 var o = new core.List<api.Upload>(); |
| 3489 o.add(buildUpload()); | 3489 o.add(buildUpload()); |
| 3490 o.add(buildUpload()); | 3490 o.add(buildUpload()); |
| 3491 return o; | 3491 return o; |
| 3492 } | 3492 } |
| 3493 | 3493 |
| 3494 checkUnnamed980(core.List<api.Upload> o) { | 3494 checkUnnamed987(core.List<api.Upload> o) { |
| 3495 unittest.expect(o, unittest.hasLength(2)); | 3495 unittest.expect(o, unittest.hasLength(2)); |
| 3496 checkUpload(o[0]); | 3496 checkUpload(o[0]); |
| 3497 checkUpload(o[1]); | 3497 checkUpload(o[1]); |
| 3498 } | 3498 } |
| 3499 | 3499 |
| 3500 core.int buildCounterUploads = 0; | 3500 core.int buildCounterUploads = 0; |
| 3501 buildUploads() { | 3501 buildUploads() { |
| 3502 var o = new api.Uploads(); | 3502 var o = new api.Uploads(); |
| 3503 buildCounterUploads++; | 3503 buildCounterUploads++; |
| 3504 if (buildCounterUploads < 3) { | 3504 if (buildCounterUploads < 3) { |
| 3505 o.items = buildUnnamed980(); | 3505 o.items = buildUnnamed987(); |
| 3506 o.itemsPerPage = 42; | 3506 o.itemsPerPage = 42; |
| 3507 o.kind = "foo"; | 3507 o.kind = "foo"; |
| 3508 o.nextLink = "foo"; | 3508 o.nextLink = "foo"; |
| 3509 o.previousLink = "foo"; | 3509 o.previousLink = "foo"; |
| 3510 o.startIndex = 42; | 3510 o.startIndex = 42; |
| 3511 o.totalResults = 42; | 3511 o.totalResults = 42; |
| 3512 } | 3512 } |
| 3513 buildCounterUploads--; | 3513 buildCounterUploads--; |
| 3514 return o; | 3514 return o; |
| 3515 } | 3515 } |
| 3516 | 3516 |
| 3517 checkUploads(api.Uploads o) { | 3517 checkUploads(api.Uploads o) { |
| 3518 buildCounterUploads++; | 3518 buildCounterUploads++; |
| 3519 if (buildCounterUploads < 3) { | 3519 if (buildCounterUploads < 3) { |
| 3520 checkUnnamed980(o.items); | 3520 checkUnnamed987(o.items); |
| 3521 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 3521 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 3522 unittest.expect(o.kind, unittest.equals('foo')); | 3522 unittest.expect(o.kind, unittest.equals('foo')); |
| 3523 unittest.expect(o.nextLink, unittest.equals('foo')); | 3523 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 3524 unittest.expect(o.previousLink, unittest.equals('foo')); | 3524 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 3525 unittest.expect(o.startIndex, unittest.equals(42)); | 3525 unittest.expect(o.startIndex, unittest.equals(42)); |
| 3526 unittest.expect(o.totalResults, unittest.equals(42)); | 3526 unittest.expect(o.totalResults, unittest.equals(42)); |
| 3527 } | 3527 } |
| 3528 buildCounterUploads--; | 3528 buildCounterUploads--; |
| 3529 } | 3529 } |
| 3530 | 3530 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3573 unittest.expect(o.accountId, unittest.equals('foo')); | 3573 unittest.expect(o.accountId, unittest.equals('foo')); |
| 3574 unittest.expect(o.href, unittest.equals('foo')); | 3574 unittest.expect(o.href, unittest.equals('foo')); |
| 3575 unittest.expect(o.id, unittest.equals('foo')); | 3575 unittest.expect(o.id, unittest.equals('foo')); |
| 3576 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); | 3576 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); |
| 3577 unittest.expect(o.kind, unittest.equals('foo')); | 3577 unittest.expect(o.kind, unittest.equals('foo')); |
| 3578 unittest.expect(o.name, unittest.equals('foo')); | 3578 unittest.expect(o.name, unittest.equals('foo')); |
| 3579 } | 3579 } |
| 3580 buildCounterWebPropertyRef--; | 3580 buildCounterWebPropertyRef--; |
| 3581 } | 3581 } |
| 3582 | 3582 |
| 3583 buildUnnamed981() { | 3583 buildUnnamed988() { |
| 3584 var o = new core.List<api.ProfileSummary>(); | 3584 var o = new core.List<api.ProfileSummary>(); |
| 3585 o.add(buildProfileSummary()); | 3585 o.add(buildProfileSummary()); |
| 3586 o.add(buildProfileSummary()); | 3586 o.add(buildProfileSummary()); |
| 3587 return o; | 3587 return o; |
| 3588 } | 3588 } |
| 3589 | 3589 |
| 3590 checkUnnamed981(core.List<api.ProfileSummary> o) { | 3590 checkUnnamed988(core.List<api.ProfileSummary> o) { |
| 3591 unittest.expect(o, unittest.hasLength(2)); | 3591 unittest.expect(o, unittest.hasLength(2)); |
| 3592 checkProfileSummary(o[0]); | 3592 checkProfileSummary(o[0]); |
| 3593 checkProfileSummary(o[1]); | 3593 checkProfileSummary(o[1]); |
| 3594 } | 3594 } |
| 3595 | 3595 |
| 3596 core.int buildCounterWebPropertySummary = 0; | 3596 core.int buildCounterWebPropertySummary = 0; |
| 3597 buildWebPropertySummary() { | 3597 buildWebPropertySummary() { |
| 3598 var o = new api.WebPropertySummary(); | 3598 var o = new api.WebPropertySummary(); |
| 3599 buildCounterWebPropertySummary++; | 3599 buildCounterWebPropertySummary++; |
| 3600 if (buildCounterWebPropertySummary < 3) { | 3600 if (buildCounterWebPropertySummary < 3) { |
| 3601 o.id = "foo"; | 3601 o.id = "foo"; |
| 3602 o.internalWebPropertyId = "foo"; | 3602 o.internalWebPropertyId = "foo"; |
| 3603 o.kind = "foo"; | 3603 o.kind = "foo"; |
| 3604 o.level = "foo"; | 3604 o.level = "foo"; |
| 3605 o.name = "foo"; | 3605 o.name = "foo"; |
| 3606 o.profiles = buildUnnamed981(); | 3606 o.profiles = buildUnnamed988(); |
| 3607 o.starred = true; | 3607 o.starred = true; |
| 3608 o.websiteUrl = "foo"; | 3608 o.websiteUrl = "foo"; |
| 3609 } | 3609 } |
| 3610 buildCounterWebPropertySummary--; | 3610 buildCounterWebPropertySummary--; |
| 3611 return o; | 3611 return o; |
| 3612 } | 3612 } |
| 3613 | 3613 |
| 3614 checkWebPropertySummary(api.WebPropertySummary o) { | 3614 checkWebPropertySummary(api.WebPropertySummary o) { |
| 3615 buildCounterWebPropertySummary++; | 3615 buildCounterWebPropertySummary++; |
| 3616 if (buildCounterWebPropertySummary < 3) { | 3616 if (buildCounterWebPropertySummary < 3) { |
| 3617 unittest.expect(o.id, unittest.equals('foo')); | 3617 unittest.expect(o.id, unittest.equals('foo')); |
| 3618 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); | 3618 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); |
| 3619 unittest.expect(o.kind, unittest.equals('foo')); | 3619 unittest.expect(o.kind, unittest.equals('foo')); |
| 3620 unittest.expect(o.level, unittest.equals('foo')); | 3620 unittest.expect(o.level, unittest.equals('foo')); |
| 3621 unittest.expect(o.name, unittest.equals('foo')); | 3621 unittest.expect(o.name, unittest.equals('foo')); |
| 3622 checkUnnamed981(o.profiles); | 3622 checkUnnamed988(o.profiles); |
| 3623 unittest.expect(o.starred, unittest.isTrue); | 3623 unittest.expect(o.starred, unittest.isTrue); |
| 3624 unittest.expect(o.websiteUrl, unittest.equals('foo')); | 3624 unittest.expect(o.websiteUrl, unittest.equals('foo')); |
| 3625 } | 3625 } |
| 3626 buildCounterWebPropertySummary--; | 3626 buildCounterWebPropertySummary--; |
| 3627 } | 3627 } |
| 3628 | 3628 |
| 3629 buildUnnamed982() { | 3629 buildUnnamed989() { |
| 3630 var o = new core.List<api.Webproperty>(); | 3630 var o = new core.List<api.Webproperty>(); |
| 3631 o.add(buildWebproperty()); | 3631 o.add(buildWebproperty()); |
| 3632 o.add(buildWebproperty()); | 3632 o.add(buildWebproperty()); |
| 3633 return o; | 3633 return o; |
| 3634 } | 3634 } |
| 3635 | 3635 |
| 3636 checkUnnamed982(core.List<api.Webproperty> o) { | 3636 checkUnnamed989(core.List<api.Webproperty> o) { |
| 3637 unittest.expect(o, unittest.hasLength(2)); | 3637 unittest.expect(o, unittest.hasLength(2)); |
| 3638 checkWebproperty(o[0]); | 3638 checkWebproperty(o[0]); |
| 3639 checkWebproperty(o[1]); | 3639 checkWebproperty(o[1]); |
| 3640 } | 3640 } |
| 3641 | 3641 |
| 3642 core.int buildCounterWebproperties = 0; | 3642 core.int buildCounterWebproperties = 0; |
| 3643 buildWebproperties() { | 3643 buildWebproperties() { |
| 3644 var o = new api.Webproperties(); | 3644 var o = new api.Webproperties(); |
| 3645 buildCounterWebproperties++; | 3645 buildCounterWebproperties++; |
| 3646 if (buildCounterWebproperties < 3) { | 3646 if (buildCounterWebproperties < 3) { |
| 3647 o.items = buildUnnamed982(); | 3647 o.items = buildUnnamed989(); |
| 3648 o.itemsPerPage = 42; | 3648 o.itemsPerPage = 42; |
| 3649 o.kind = "foo"; | 3649 o.kind = "foo"; |
| 3650 o.nextLink = "foo"; | 3650 o.nextLink = "foo"; |
| 3651 o.previousLink = "foo"; | 3651 o.previousLink = "foo"; |
| 3652 o.startIndex = 42; | 3652 o.startIndex = 42; |
| 3653 o.totalResults = 42; | 3653 o.totalResults = 42; |
| 3654 o.username = "foo"; | 3654 o.username = "foo"; |
| 3655 } | 3655 } |
| 3656 buildCounterWebproperties--; | 3656 buildCounterWebproperties--; |
| 3657 return o; | 3657 return o; |
| 3658 } | 3658 } |
| 3659 | 3659 |
| 3660 checkWebproperties(api.Webproperties o) { | 3660 checkWebproperties(api.Webproperties o) { |
| 3661 buildCounterWebproperties++; | 3661 buildCounterWebproperties++; |
| 3662 if (buildCounterWebproperties < 3) { | 3662 if (buildCounterWebproperties < 3) { |
| 3663 checkUnnamed982(o.items); | 3663 checkUnnamed989(o.items); |
| 3664 unittest.expect(o.itemsPerPage, unittest.equals(42)); | 3664 unittest.expect(o.itemsPerPage, unittest.equals(42)); |
| 3665 unittest.expect(o.kind, unittest.equals('foo')); | 3665 unittest.expect(o.kind, unittest.equals('foo')); |
| 3666 unittest.expect(o.nextLink, unittest.equals('foo')); | 3666 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 3667 unittest.expect(o.previousLink, unittest.equals('foo')); | 3667 unittest.expect(o.previousLink, unittest.equals('foo')); |
| 3668 unittest.expect(o.startIndex, unittest.equals(42)); | 3668 unittest.expect(o.startIndex, unittest.equals(42)); |
| 3669 unittest.expect(o.totalResults, unittest.equals(42)); | 3669 unittest.expect(o.totalResults, unittest.equals(42)); |
| 3670 unittest.expect(o.username, unittest.equals('foo')); | 3670 unittest.expect(o.username, unittest.equals('foo')); |
| 3671 } | 3671 } |
| 3672 buildCounterWebproperties--; | 3672 buildCounterWebproperties--; |
| 3673 } | 3673 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3707 | 3707 |
| 3708 checkWebpropertyParentLink(api.WebpropertyParentLink o) { | 3708 checkWebpropertyParentLink(api.WebpropertyParentLink o) { |
| 3709 buildCounterWebpropertyParentLink++; | 3709 buildCounterWebpropertyParentLink++; |
| 3710 if (buildCounterWebpropertyParentLink < 3) { | 3710 if (buildCounterWebpropertyParentLink < 3) { |
| 3711 unittest.expect(o.href, unittest.equals('foo')); | 3711 unittest.expect(o.href, unittest.equals('foo')); |
| 3712 unittest.expect(o.type, unittest.equals('foo')); | 3712 unittest.expect(o.type, unittest.equals('foo')); |
| 3713 } | 3713 } |
| 3714 buildCounterWebpropertyParentLink--; | 3714 buildCounterWebpropertyParentLink--; |
| 3715 } | 3715 } |
| 3716 | 3716 |
| 3717 buildUnnamed983() { | 3717 buildUnnamed990() { |
| 3718 var o = new core.List<core.String>(); | 3718 var o = new core.List<core.String>(); |
| 3719 o.add("foo"); | 3719 o.add("foo"); |
| 3720 o.add("foo"); | 3720 o.add("foo"); |
| 3721 return o; | 3721 return o; |
| 3722 } | 3722 } |
| 3723 | 3723 |
| 3724 checkUnnamed983(core.List<core.String> o) { | 3724 checkUnnamed990(core.List<core.String> o) { |
| 3725 unittest.expect(o, unittest.hasLength(2)); | 3725 unittest.expect(o, unittest.hasLength(2)); |
| 3726 unittest.expect(o[0], unittest.equals('foo')); | 3726 unittest.expect(o[0], unittest.equals('foo')); |
| 3727 unittest.expect(o[1], unittest.equals('foo')); | 3727 unittest.expect(o[1], unittest.equals('foo')); |
| 3728 } | 3728 } |
| 3729 | 3729 |
| 3730 core.int buildCounterWebpropertyPermissions = 0; | 3730 core.int buildCounterWebpropertyPermissions = 0; |
| 3731 buildWebpropertyPermissions() { | 3731 buildWebpropertyPermissions() { |
| 3732 var o = new api.WebpropertyPermissions(); | 3732 var o = new api.WebpropertyPermissions(); |
| 3733 buildCounterWebpropertyPermissions++; | 3733 buildCounterWebpropertyPermissions++; |
| 3734 if (buildCounterWebpropertyPermissions < 3) { | 3734 if (buildCounterWebpropertyPermissions < 3) { |
| 3735 o.effective = buildUnnamed983(); | 3735 o.effective = buildUnnamed990(); |
| 3736 } | 3736 } |
| 3737 buildCounterWebpropertyPermissions--; | 3737 buildCounterWebpropertyPermissions--; |
| 3738 return o; | 3738 return o; |
| 3739 } | 3739 } |
| 3740 | 3740 |
| 3741 checkWebpropertyPermissions(api.WebpropertyPermissions o) { | 3741 checkWebpropertyPermissions(api.WebpropertyPermissions o) { |
| 3742 buildCounterWebpropertyPermissions++; | 3742 buildCounterWebpropertyPermissions++; |
| 3743 if (buildCounterWebpropertyPermissions < 3) { | 3743 if (buildCounterWebpropertyPermissions < 3) { |
| 3744 checkUnnamed983(o.effective); | 3744 checkUnnamed990(o.effective); |
| 3745 } | 3745 } |
| 3746 buildCounterWebpropertyPermissions--; | 3746 buildCounterWebpropertyPermissions--; |
| 3747 } | 3747 } |
| 3748 | 3748 |
| 3749 core.int buildCounterWebproperty = 0; | 3749 core.int buildCounterWebproperty = 0; |
| 3750 buildWebproperty() { | 3750 buildWebproperty() { |
| 3751 var o = new api.Webproperty(); | 3751 var o = new api.Webproperty(); |
| 3752 buildCounterWebproperty++; | 3752 buildCounterWebproperty++; |
| 3753 if (buildCounterWebproperty < 3) { | 3753 if (buildCounterWebproperty < 3) { |
| 3754 o.accountId = "foo"; | 3754 o.accountId = "foo"; |
| (...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4719 var arg_metrics = "foo"; | 4719 var arg_metrics = "foo"; |
| 4720 var arg_dimensions = "foo"; | 4720 var arg_dimensions = "foo"; |
| 4721 var arg_filters = "foo"; | 4721 var arg_filters = "foo"; |
| 4722 var arg_include_empty_rows = true; | 4722 var arg_include_empty_rows = true; |
| 4723 var arg_max_results = 42; | 4723 var arg_max_results = 42; |
| 4724 var arg_output = "foo"; | 4724 var arg_output = "foo"; |
| 4725 var arg_samplingLevel = "foo"; | 4725 var arg_samplingLevel = "foo"; |
| 4726 var arg_segment = "foo"; | 4726 var arg_segment = "foo"; |
| 4727 var arg_sort = "foo"; | 4727 var arg_sort = "foo"; |
| 4728 var arg_start_index = 42; | 4728 var arg_start_index = 42; |
| 4729 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4729 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4730 var path = (req.url).path; | 4730 var path = (req.url).path; |
| 4731 var pathOffset = 0; | 4731 var pathOffset = 0; |
| 4732 var index; | 4732 var index; |
| 4733 var subPart; | 4733 var subPart; |
| 4734 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4734 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4735 pathOffset += 1; | 4735 pathOffset += 1; |
| 4736 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 4736 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 4737 pathOffset += 13; | 4737 pathOffset += 13; |
| 4738 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("data/ga")); | 4738 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("data/ga")); |
| 4739 pathOffset += 7; | 4739 pathOffset += 7; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 4768 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); | 4768 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); |
| 4769 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 4769 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 4770 | 4770 |
| 4771 | 4771 |
| 4772 var h = { | 4772 var h = { |
| 4773 "content-type" : "application/json; charset=utf-8", | 4773 "content-type" : "application/json; charset=utf-8", |
| 4774 }; | 4774 }; |
| 4775 var resp = convert.JSON.encode(buildGaData()); | 4775 var resp = convert.JSON.encode(buildGaData()); |
| 4776 return new async.Future.value(stringResponse(200, h, resp)); | 4776 return new async.Future.value(stringResponse(200, h, resp)); |
| 4777 }), true); | 4777 }), true); |
| 4778 res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: ar
g_dimensions, filters: arg_filters, include_empty_rows: arg_include_empty_rows,
max_results: arg_max_results, output: arg_output, samplingLevel: arg_samplingLev
el, segment: arg_segment, sort: arg_sort, start_index: arg_start_index).then(uni
ttest.expectAsync(((api.GaData response) { | 4778 res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: ar
g_dimensions, filters: arg_filters, include_empty_rows: arg_include_empty_rows,
max_results: arg_max_results, output: arg_output, samplingLevel: arg_samplingLev
el, segment: arg_segment, sort: arg_sort, start_index: arg_start_index).then(uni
ttest.expectAsync1(((api.GaData response) { |
| 4779 checkGaData(response); | 4779 checkGaData(response); |
| 4780 }))); | 4780 }))); |
| 4781 }); | 4781 }); |
| 4782 | 4782 |
| 4783 }); | 4783 }); |
| 4784 | 4784 |
| 4785 | 4785 |
| 4786 unittest.group("resource-DataMcfResourceApi", () { | 4786 unittest.group("resource-DataMcfResourceApi", () { |
| 4787 unittest.test("method--get", () { | 4787 unittest.test("method--get", () { |
| 4788 | 4788 |
| 4789 var mock = new HttpServerMock(); | 4789 var mock = new HttpServerMock(); |
| 4790 api.DataMcfResourceApi res = new api.AnalyticsApi(mock).data.mcf; | 4790 api.DataMcfResourceApi res = new api.AnalyticsApi(mock).data.mcf; |
| 4791 var arg_ids = "foo"; | 4791 var arg_ids = "foo"; |
| 4792 var arg_start_date = "foo"; | 4792 var arg_start_date = "foo"; |
| 4793 var arg_end_date = "foo"; | 4793 var arg_end_date = "foo"; |
| 4794 var arg_metrics = "foo"; | 4794 var arg_metrics = "foo"; |
| 4795 var arg_dimensions = "foo"; | 4795 var arg_dimensions = "foo"; |
| 4796 var arg_filters = "foo"; | 4796 var arg_filters = "foo"; |
| 4797 var arg_max_results = 42; | 4797 var arg_max_results = 42; |
| 4798 var arg_samplingLevel = "foo"; | 4798 var arg_samplingLevel = "foo"; |
| 4799 var arg_sort = "foo"; | 4799 var arg_sort = "foo"; |
| 4800 var arg_start_index = 42; | 4800 var arg_start_index = 42; |
| 4801 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4801 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4802 var path = (req.url).path; | 4802 var path = (req.url).path; |
| 4803 var pathOffset = 0; | 4803 var pathOffset = 0; |
| 4804 var index; | 4804 var index; |
| 4805 var subPart; | 4805 var subPart; |
| 4806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4807 pathOffset += 1; | 4807 pathOffset += 1; |
| 4808 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 4808 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 4809 pathOffset += 13; | 4809 pathOffset += 13; |
| 4810 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("data/mcf")); | 4810 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("data/mcf")); |
| 4811 pathOffset += 8; | 4811 pathOffset += 8; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4837 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); | 4837 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); |
| 4838 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 4838 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 4839 | 4839 |
| 4840 | 4840 |
| 4841 var h = { | 4841 var h = { |
| 4842 "content-type" : "application/json; charset=utf-8", | 4842 "content-type" : "application/json; charset=utf-8", |
| 4843 }; | 4843 }; |
| 4844 var resp = convert.JSON.encode(buildMcfData()); | 4844 var resp = convert.JSON.encode(buildMcfData()); |
| 4845 return new async.Future.value(stringResponse(200, h, resp)); | 4845 return new async.Future.value(stringResponse(200, h, resp)); |
| 4846 }), true); | 4846 }), true); |
| 4847 res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: ar
g_dimensions, filters: arg_filters, max_results: arg_max_results, samplingLevel:
arg_samplingLevel, sort: arg_sort, start_index: arg_start_index).then(unittest.
expectAsync(((api.McfData response) { | 4847 res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: ar
g_dimensions, filters: arg_filters, max_results: arg_max_results, samplingLevel:
arg_samplingLevel, sort: arg_sort, start_index: arg_start_index).then(unittest.
expectAsync1(((api.McfData response) { |
| 4848 checkMcfData(response); | 4848 checkMcfData(response); |
| 4849 }))); | 4849 }))); |
| 4850 }); | 4850 }); |
| 4851 | 4851 |
| 4852 }); | 4852 }); |
| 4853 | 4853 |
| 4854 | 4854 |
| 4855 unittest.group("resource-DataRealtimeResourceApi", () { | 4855 unittest.group("resource-DataRealtimeResourceApi", () { |
| 4856 unittest.test("method--get", () { | 4856 unittest.test("method--get", () { |
| 4857 | 4857 |
| 4858 var mock = new HttpServerMock(); | 4858 var mock = new HttpServerMock(); |
| 4859 api.DataRealtimeResourceApi res = new api.AnalyticsApi(mock).data.realtime
; | 4859 api.DataRealtimeResourceApi res = new api.AnalyticsApi(mock).data.realtime
; |
| 4860 var arg_ids = "foo"; | 4860 var arg_ids = "foo"; |
| 4861 var arg_metrics = "foo"; | 4861 var arg_metrics = "foo"; |
| 4862 var arg_dimensions = "foo"; | 4862 var arg_dimensions = "foo"; |
| 4863 var arg_filters = "foo"; | 4863 var arg_filters = "foo"; |
| 4864 var arg_max_results = 42; | 4864 var arg_max_results = 42; |
| 4865 var arg_sort = "foo"; | 4865 var arg_sort = "foo"; |
| 4866 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4866 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4867 var path = (req.url).path; | 4867 var path = (req.url).path; |
| 4868 var pathOffset = 0; | 4868 var pathOffset = 0; |
| 4869 var index; | 4869 var index; |
| 4870 var subPart; | 4870 var subPart; |
| 4871 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4871 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4872 pathOffset += 1; | 4872 pathOffset += 1; |
| 4873 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 4873 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 4874 pathOffset += 13; | 4874 pathOffset += 13; |
| 4875 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("data/realtime")); | 4875 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("data/realtime")); |
| 4876 pathOffset += 13; | 4876 pathOffset += 13; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4898 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 4898 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 4899 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); | 4899 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); |
| 4900 | 4900 |
| 4901 | 4901 |
| 4902 var h = { | 4902 var h = { |
| 4903 "content-type" : "application/json; charset=utf-8", | 4903 "content-type" : "application/json; charset=utf-8", |
| 4904 }; | 4904 }; |
| 4905 var resp = convert.JSON.encode(buildRealtimeData()); | 4905 var resp = convert.JSON.encode(buildRealtimeData()); |
| 4906 return new async.Future.value(stringResponse(200, h, resp)); | 4906 return new async.Future.value(stringResponse(200, h, resp)); |
| 4907 }), true); | 4907 }), true); |
| 4908 res.get(arg_ids, arg_metrics, dimensions: arg_dimensions, filters: arg_fil
ters, max_results: arg_max_results, sort: arg_sort).then(unittest.expectAsync(((
api.RealtimeData response) { | 4908 res.get(arg_ids, arg_metrics, dimensions: arg_dimensions, filters: arg_fil
ters, max_results: arg_max_results, sort: arg_sort).then(unittest.expectAsync1((
(api.RealtimeData response) { |
| 4909 checkRealtimeData(response); | 4909 checkRealtimeData(response); |
| 4910 }))); | 4910 }))); |
| 4911 }); | 4911 }); |
| 4912 | 4912 |
| 4913 }); | 4913 }); |
| 4914 | 4914 |
| 4915 | 4915 |
| 4916 unittest.group("resource-ManagementAccountSummariesResourceApi", () { | 4916 unittest.group("resource-ManagementAccountSummariesResourceApi", () { |
| 4917 unittest.test("method--list", () { | 4917 unittest.test("method--list", () { |
| 4918 | 4918 |
| 4919 var mock = new HttpServerMock(); | 4919 var mock = new HttpServerMock(); |
| 4920 api.ManagementAccountSummariesResourceApi res = new api.AnalyticsApi(mock)
.management.accountSummaries; | 4920 api.ManagementAccountSummariesResourceApi res = new api.AnalyticsApi(mock)
.management.accountSummaries; |
| 4921 var arg_max_results = 42; | 4921 var arg_max_results = 42; |
| 4922 var arg_start_index = 42; | 4922 var arg_start_index = 42; |
| 4923 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4923 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4924 var path = (req.url).path; | 4924 var path = (req.url).path; |
| 4925 var pathOffset = 0; | 4925 var pathOffset = 0; |
| 4926 var index; | 4926 var index; |
| 4927 var subPart; | 4927 var subPart; |
| 4928 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4928 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4929 pathOffset += 1; | 4929 pathOffset += 1; |
| 4930 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 4930 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 4931 pathOffset += 13; | 4931 pathOffset += 13; |
| 4932 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("management/accountSummaries")); | 4932 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("management/accountSummaries")); |
| 4933 pathOffset += 27; | 4933 pathOffset += 27; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4951 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 4951 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 4952 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 4952 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 4953 | 4953 |
| 4954 | 4954 |
| 4955 var h = { | 4955 var h = { |
| 4956 "content-type" : "application/json; charset=utf-8", | 4956 "content-type" : "application/json; charset=utf-8", |
| 4957 }; | 4957 }; |
| 4958 var resp = convert.JSON.encode(buildAccountSummaries()); | 4958 var resp = convert.JSON.encode(buildAccountSummaries()); |
| 4959 return new async.Future.value(stringResponse(200, h, resp)); | 4959 return new async.Future.value(stringResponse(200, h, resp)); |
| 4960 }), true); | 4960 }), true); |
| 4961 res.list(max_results: arg_max_results, start_index: arg_start_index).then(
unittest.expectAsync(((api.AccountSummaries response) { | 4961 res.list(max_results: arg_max_results, start_index: arg_start_index).then(
unittest.expectAsync1(((api.AccountSummaries response) { |
| 4962 checkAccountSummaries(response); | 4962 checkAccountSummaries(response); |
| 4963 }))); | 4963 }))); |
| 4964 }); | 4964 }); |
| 4965 | 4965 |
| 4966 }); | 4966 }); |
| 4967 | 4967 |
| 4968 | 4968 |
| 4969 unittest.group("resource-ManagementAccountUserLinksResourceApi", () { | 4969 unittest.group("resource-ManagementAccountUserLinksResourceApi", () { |
| 4970 unittest.test("method--delete", () { | 4970 unittest.test("method--delete", () { |
| 4971 | 4971 |
| 4972 var mock = new HttpServerMock(); | 4972 var mock = new HttpServerMock(); |
| 4973 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.accountUserLinks; | 4973 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.accountUserLinks; |
| 4974 var arg_accountId = "foo"; | 4974 var arg_accountId = "foo"; |
| 4975 var arg_linkId = "foo"; | 4975 var arg_linkId = "foo"; |
| 4976 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4976 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4977 var path = (req.url).path; | 4977 var path = (req.url).path; |
| 4978 var pathOffset = 0; | 4978 var pathOffset = 0; |
| 4979 var index; | 4979 var index; |
| 4980 var subPart; | 4980 var subPart; |
| 4981 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4981 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4982 pathOffset += 1; | 4982 pathOffset += 1; |
| 4983 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 4983 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 4984 pathOffset += 13; | 4984 pathOffset += 13; |
| 4985 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 4985 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 4986 pathOffset += 20; | 4986 pathOffset += 20; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5012 } | 5012 } |
| 5013 } | 5013 } |
| 5014 | 5014 |
| 5015 | 5015 |
| 5016 var h = { | 5016 var h = { |
| 5017 "content-type" : "application/json; charset=utf-8", | 5017 "content-type" : "application/json; charset=utf-8", |
| 5018 }; | 5018 }; |
| 5019 var resp = ""; | 5019 var resp = ""; |
| 5020 return new async.Future.value(stringResponse(200, h, resp)); | 5020 return new async.Future.value(stringResponse(200, h, resp)); |
| 5021 }), true); | 5021 }), true); |
| 5022 res.delete(arg_accountId, arg_linkId).then(unittest.expectAsync((_) {})); | 5022 res.delete(arg_accountId, arg_linkId).then(unittest.expectAsync1((_) {})); |
| 5023 }); | 5023 }); |
| 5024 | 5024 |
| 5025 unittest.test("method--insert", () { | 5025 unittest.test("method--insert", () { |
| 5026 | 5026 |
| 5027 var mock = new HttpServerMock(); | 5027 var mock = new HttpServerMock(); |
| 5028 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.accountUserLinks; | 5028 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.accountUserLinks; |
| 5029 var arg_request = buildEntityUserLink(); | 5029 var arg_request = buildEntityUserLink(); |
| 5030 var arg_accountId = "foo"; | 5030 var arg_accountId = "foo"; |
| 5031 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5031 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5032 var obj = new api.EntityUserLink.fromJson(json); | 5032 var obj = new api.EntityUserLink.fromJson(json); |
| 5033 checkEntityUserLink(obj); | 5033 checkEntityUserLink(obj); |
| 5034 | 5034 |
| 5035 var path = (req.url).path; | 5035 var path = (req.url).path; |
| 5036 var pathOffset = 0; | 5036 var pathOffset = 0; |
| 5037 var index; | 5037 var index; |
| 5038 var subPart; | 5038 var subPart; |
| 5039 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5039 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5040 pathOffset += 1; | 5040 pathOffset += 1; |
| 5041 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5041 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5067 } | 5067 } |
| 5068 } | 5068 } |
| 5069 | 5069 |
| 5070 | 5070 |
| 5071 var h = { | 5071 var h = { |
| 5072 "content-type" : "application/json; charset=utf-8", | 5072 "content-type" : "application/json; charset=utf-8", |
| 5073 }; | 5073 }; |
| 5074 var resp = convert.JSON.encode(buildEntityUserLink()); | 5074 var resp = convert.JSON.encode(buildEntityUserLink()); |
| 5075 return new async.Future.value(stringResponse(200, h, resp)); | 5075 return new async.Future.value(stringResponse(200, h, resp)); |
| 5076 }), true); | 5076 }), true); |
| 5077 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Ent
ityUserLink response) { | 5077 res.insert(arg_request, arg_accountId).then(unittest.expectAsync1(((api.En
tityUserLink response) { |
| 5078 checkEntityUserLink(response); | 5078 checkEntityUserLink(response); |
| 5079 }))); | 5079 }))); |
| 5080 }); | 5080 }); |
| 5081 | 5081 |
| 5082 unittest.test("method--list", () { | 5082 unittest.test("method--list", () { |
| 5083 | 5083 |
| 5084 var mock = new HttpServerMock(); | 5084 var mock = new HttpServerMock(); |
| 5085 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.accountUserLinks; | 5085 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.accountUserLinks; |
| 5086 var arg_accountId = "foo"; | 5086 var arg_accountId = "foo"; |
| 5087 var arg_max_results = 42; | 5087 var arg_max_results = 42; |
| 5088 var arg_start_index = 42; | 5088 var arg_start_index = 42; |
| 5089 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5089 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5090 var path = (req.url).path; | 5090 var path = (req.url).path; |
| 5091 var pathOffset = 0; | 5091 var pathOffset = 0; |
| 5092 var index; | 5092 var index; |
| 5093 var subPart; | 5093 var subPart; |
| 5094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5095 pathOffset += 1; | 5095 pathOffset += 1; |
| 5096 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5096 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 5097 pathOffset += 13; | 5097 pathOffset += 13; |
| 5098 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 5098 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 5099 pathOffset += 20; | 5099 pathOffset += 20; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5124 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 5124 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 5125 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 5125 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 5126 | 5126 |
| 5127 | 5127 |
| 5128 var h = { | 5128 var h = { |
| 5129 "content-type" : "application/json; charset=utf-8", | 5129 "content-type" : "application/json; charset=utf-8", |
| 5130 }; | 5130 }; |
| 5131 var resp = convert.JSON.encode(buildEntityUserLinks()); | 5131 var resp = convert.JSON.encode(buildEntityUserLinks()); |
| 5132 return new async.Future.value(stringResponse(200, h, resp)); | 5132 return new async.Future.value(stringResponse(200, h, resp)); |
| 5133 }), true); | 5133 }), true); |
| 5134 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta
rt_index).then(unittest.expectAsync(((api.EntityUserLinks response) { | 5134 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta
rt_index).then(unittest.expectAsync1(((api.EntityUserLinks response) { |
| 5135 checkEntityUserLinks(response); | 5135 checkEntityUserLinks(response); |
| 5136 }))); | 5136 }))); |
| 5137 }); | 5137 }); |
| 5138 | 5138 |
| 5139 unittest.test("method--update", () { | 5139 unittest.test("method--update", () { |
| 5140 | 5140 |
| 5141 var mock = new HttpServerMock(); | 5141 var mock = new HttpServerMock(); |
| 5142 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.accountUserLinks; | 5142 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.accountUserLinks; |
| 5143 var arg_request = buildEntityUserLink(); | 5143 var arg_request = buildEntityUserLink(); |
| 5144 var arg_accountId = "foo"; | 5144 var arg_accountId = "foo"; |
| 5145 var arg_linkId = "foo"; | 5145 var arg_linkId = "foo"; |
| 5146 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5146 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5147 var obj = new api.EntityUserLink.fromJson(json); | 5147 var obj = new api.EntityUserLink.fromJson(json); |
| 5148 checkEntityUserLink(obj); | 5148 checkEntityUserLink(obj); |
| 5149 | 5149 |
| 5150 var path = (req.url).path; | 5150 var path = (req.url).path; |
| 5151 var pathOffset = 0; | 5151 var pathOffset = 0; |
| 5152 var index; | 5152 var index; |
| 5153 var subPart; | 5153 var subPart; |
| 5154 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5154 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5155 pathOffset += 1; | 5155 pathOffset += 1; |
| 5156 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5156 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 5185 } | 5185 } |
| 5186 } | 5186 } |
| 5187 | 5187 |
| 5188 | 5188 |
| 5189 var h = { | 5189 var h = { |
| 5190 "content-type" : "application/json; charset=utf-8", | 5190 "content-type" : "application/json; charset=utf-8", |
| 5191 }; | 5191 }; |
| 5192 var resp = convert.JSON.encode(buildEntityUserLink()); | 5192 var resp = convert.JSON.encode(buildEntityUserLink()); |
| 5193 return new async.Future.value(stringResponse(200, h, resp)); | 5193 return new async.Future.value(stringResponse(200, h, resp)); |
| 5194 }), true); | 5194 }), true); |
| 5195 res.update(arg_request, arg_accountId, arg_linkId).then(unittest.expectAsy
nc(((api.EntityUserLink response) { | 5195 res.update(arg_request, arg_accountId, arg_linkId).then(unittest.expectAsy
nc1(((api.EntityUserLink response) { |
| 5196 checkEntityUserLink(response); | 5196 checkEntityUserLink(response); |
| 5197 }))); | 5197 }))); |
| 5198 }); | 5198 }); |
| 5199 | 5199 |
| 5200 }); | 5200 }); |
| 5201 | 5201 |
| 5202 | 5202 |
| 5203 unittest.group("resource-ManagementAccountsResourceApi", () { | 5203 unittest.group("resource-ManagementAccountsResourceApi", () { |
| 5204 unittest.test("method--list", () { | 5204 unittest.test("method--list", () { |
| 5205 | 5205 |
| 5206 var mock = new HttpServerMock(); | 5206 var mock = new HttpServerMock(); |
| 5207 api.ManagementAccountsResourceApi res = new api.AnalyticsApi(mock).managem
ent.accounts; | 5207 api.ManagementAccountsResourceApi res = new api.AnalyticsApi(mock).managem
ent.accounts; |
| 5208 var arg_max_results = 42; | 5208 var arg_max_results = 42; |
| 5209 var arg_start_index = 42; | 5209 var arg_start_index = 42; |
| 5210 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5210 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5211 var path = (req.url).path; | 5211 var path = (req.url).path; |
| 5212 var pathOffset = 0; | 5212 var pathOffset = 0; |
| 5213 var index; | 5213 var index; |
| 5214 var subPart; | 5214 var subPart; |
| 5215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5216 pathOffset += 1; | 5216 pathOffset += 1; |
| 5217 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5217 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 5218 pathOffset += 13; | 5218 pathOffset += 13; |
| 5219 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("management/accounts")); | 5219 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("management/accounts")); |
| 5220 pathOffset += 19; | 5220 pathOffset += 19; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5238 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 5238 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 5239 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 5239 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 5240 | 5240 |
| 5241 | 5241 |
| 5242 var h = { | 5242 var h = { |
| 5243 "content-type" : "application/json; charset=utf-8", | 5243 "content-type" : "application/json; charset=utf-8", |
| 5244 }; | 5244 }; |
| 5245 var resp = convert.JSON.encode(buildAccounts()); | 5245 var resp = convert.JSON.encode(buildAccounts()); |
| 5246 return new async.Future.value(stringResponse(200, h, resp)); | 5246 return new async.Future.value(stringResponse(200, h, resp)); |
| 5247 }), true); | 5247 }), true); |
| 5248 res.list(max_results: arg_max_results, start_index: arg_start_index).then(
unittest.expectAsync(((api.Accounts response) { | 5248 res.list(max_results: arg_max_results, start_index: arg_start_index).then(
unittest.expectAsync1(((api.Accounts response) { |
| 5249 checkAccounts(response); | 5249 checkAccounts(response); |
| 5250 }))); | 5250 }))); |
| 5251 }); | 5251 }); |
| 5252 | 5252 |
| 5253 }); | 5253 }); |
| 5254 | 5254 |
| 5255 | 5255 |
| 5256 unittest.group("resource-ManagementCustomDataSourcesResourceApi", () { | 5256 unittest.group("resource-ManagementCustomDataSourcesResourceApi", () { |
| 5257 unittest.test("method--list", () { | 5257 unittest.test("method--list", () { |
| 5258 | 5258 |
| 5259 var mock = new HttpServerMock(); | 5259 var mock = new HttpServerMock(); |
| 5260 api.ManagementCustomDataSourcesResourceApi res = new api.AnalyticsApi(mock
).management.customDataSources; | 5260 api.ManagementCustomDataSourcesResourceApi res = new api.AnalyticsApi(mock
).management.customDataSources; |
| 5261 var arg_accountId = "foo"; | 5261 var arg_accountId = "foo"; |
| 5262 var arg_webPropertyId = "foo"; | 5262 var arg_webPropertyId = "foo"; |
| 5263 var arg_max_results = 42; | 5263 var arg_max_results = 42; |
| 5264 var arg_start_index = 42; | 5264 var arg_start_index = 42; |
| 5265 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5265 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5266 var path = (req.url).path; | 5266 var path = (req.url).path; |
| 5267 var pathOffset = 0; | 5267 var pathOffset = 0; |
| 5268 var index; | 5268 var index; |
| 5269 var subPart; | 5269 var subPart; |
| 5270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5271 pathOffset += 1; | 5271 pathOffset += 1; |
| 5272 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5272 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 5273 pathOffset += 13; | 5273 pathOffset += 13; |
| 5274 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 5274 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 5275 pathOffset += 20; | 5275 pathOffset += 20; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5307 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 5307 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 5308 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 5308 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 5309 | 5309 |
| 5310 | 5310 |
| 5311 var h = { | 5311 var h = { |
| 5312 "content-type" : "application/json; charset=utf-8", | 5312 "content-type" : "application/json; charset=utf-8", |
| 5313 }; | 5313 }; |
| 5314 var resp = convert.JSON.encode(buildCustomDataSources()); | 5314 var resp = convert.JSON.encode(buildCustomDataSources()); |
| 5315 return new async.Future.value(stringResponse(200, h, resp)); | 5315 return new async.Future.value(stringResponse(200, h, resp)); |
| 5316 }), true); | 5316 }), true); |
| 5317 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomDataSources r
esponse) { | 5317 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync1(((api.CustomDataSources
response) { |
| 5318 checkCustomDataSources(response); | 5318 checkCustomDataSources(response); |
| 5319 }))); | 5319 }))); |
| 5320 }); | 5320 }); |
| 5321 | 5321 |
| 5322 }); | 5322 }); |
| 5323 | 5323 |
| 5324 | 5324 |
| 5325 unittest.group("resource-ManagementCustomDimensionsResourceApi", () { | 5325 unittest.group("resource-ManagementCustomDimensionsResourceApi", () { |
| 5326 unittest.test("method--get", () { | 5326 unittest.test("method--get", () { |
| 5327 | 5327 |
| 5328 var mock = new HttpServerMock(); | 5328 var mock = new HttpServerMock(); |
| 5329 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; | 5329 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; |
| 5330 var arg_accountId = "foo"; | 5330 var arg_accountId = "foo"; |
| 5331 var arg_webPropertyId = "foo"; | 5331 var arg_webPropertyId = "foo"; |
| 5332 var arg_customDimensionId = "foo"; | 5332 var arg_customDimensionId = "foo"; |
| 5333 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5333 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5334 var path = (req.url).path; | 5334 var path = (req.url).path; |
| 5335 var pathOffset = 0; | 5335 var pathOffset = 0; |
| 5336 var index; | 5336 var index; |
| 5337 var subPart; | 5337 var subPart; |
| 5338 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5338 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5339 pathOffset += 1; | 5339 pathOffset += 1; |
| 5340 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5340 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 5341 pathOffset += 13; | 5341 pathOffset += 13; |
| 5342 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 5342 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 5343 pathOffset += 20; | 5343 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5376 } | 5376 } |
| 5377 } | 5377 } |
| 5378 | 5378 |
| 5379 | 5379 |
| 5380 var h = { | 5380 var h = { |
| 5381 "content-type" : "application/json; charset=utf-8", | 5381 "content-type" : "application/json; charset=utf-8", |
| 5382 }; | 5382 }; |
| 5383 var resp = convert.JSON.encode(buildCustomDimension()); | 5383 var resp = convert.JSON.encode(buildCustomDimension()); |
| 5384 return new async.Future.value(stringResponse(200, h, resp)); | 5384 return new async.Future.value(stringResponse(200, h, resp)); |
| 5385 }), true); | 5385 }), true); |
| 5386 res.get(arg_accountId, arg_webPropertyId, arg_customDimensionId).then(unit
test.expectAsync(((api.CustomDimension response) { | 5386 res.get(arg_accountId, arg_webPropertyId, arg_customDimensionId).then(unit
test.expectAsync1(((api.CustomDimension response) { |
| 5387 checkCustomDimension(response); | 5387 checkCustomDimension(response); |
| 5388 }))); | 5388 }))); |
| 5389 }); | 5389 }); |
| 5390 | 5390 |
| 5391 unittest.test("method--insert", () { | 5391 unittest.test("method--insert", () { |
| 5392 | 5392 |
| 5393 var mock = new HttpServerMock(); | 5393 var mock = new HttpServerMock(); |
| 5394 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; | 5394 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; |
| 5395 var arg_request = buildCustomDimension(); | 5395 var arg_request = buildCustomDimension(); |
| 5396 var arg_accountId = "foo"; | 5396 var arg_accountId = "foo"; |
| 5397 var arg_webPropertyId = "foo"; | 5397 var arg_webPropertyId = "foo"; |
| 5398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5398 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5399 var obj = new api.CustomDimension.fromJson(json); | 5399 var obj = new api.CustomDimension.fromJson(json); |
| 5400 checkCustomDimension(obj); | 5400 checkCustomDimension(obj); |
| 5401 | 5401 |
| 5402 var path = (req.url).path; | 5402 var path = (req.url).path; |
| 5403 var pathOffset = 0; | 5403 var pathOffset = 0; |
| 5404 var index; | 5404 var index; |
| 5405 var subPart; | 5405 var subPart; |
| 5406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5407 pathOffset += 1; | 5407 pathOffset += 1; |
| 5408 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5408 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5441 } | 5441 } |
| 5442 } | 5442 } |
| 5443 | 5443 |
| 5444 | 5444 |
| 5445 var h = { | 5445 var h = { |
| 5446 "content-type" : "application/json; charset=utf-8", | 5446 "content-type" : "application/json; charset=utf-8", |
| 5447 }; | 5447 }; |
| 5448 var resp = convert.JSON.encode(buildCustomDimension()); | 5448 var resp = convert.JSON.encode(buildCustomDimension()); |
| 5449 return new async.Future.value(stringResponse(200, h, resp)); | 5449 return new async.Future.value(stringResponse(200, h, resp)); |
| 5450 }), true); | 5450 }), true); |
| 5451 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync(((api.CustomDimension response) { | 5451 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync1(((api.CustomDimension response) { |
| 5452 checkCustomDimension(response); | 5452 checkCustomDimension(response); |
| 5453 }))); | 5453 }))); |
| 5454 }); | 5454 }); |
| 5455 | 5455 |
| 5456 unittest.test("method--list", () { | 5456 unittest.test("method--list", () { |
| 5457 | 5457 |
| 5458 var mock = new HttpServerMock(); | 5458 var mock = new HttpServerMock(); |
| 5459 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; | 5459 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; |
| 5460 var arg_accountId = "foo"; | 5460 var arg_accountId = "foo"; |
| 5461 var arg_webPropertyId = "foo"; | 5461 var arg_webPropertyId = "foo"; |
| 5462 var arg_max_results = 42; | 5462 var arg_max_results = 42; |
| 5463 var arg_start_index = 42; | 5463 var arg_start_index = 42; |
| 5464 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5464 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5465 var path = (req.url).path; | 5465 var path = (req.url).path; |
| 5466 var pathOffset = 0; | 5466 var pathOffset = 0; |
| 5467 var index; | 5467 var index; |
| 5468 var subPart; | 5468 var subPart; |
| 5469 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5469 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5470 pathOffset += 1; | 5470 pathOffset += 1; |
| 5471 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5471 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 5472 pathOffset += 13; | 5472 pathOffset += 13; |
| 5473 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 5473 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 5474 pathOffset += 20; | 5474 pathOffset += 20; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5506 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 5506 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 5507 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 5507 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 5508 | 5508 |
| 5509 | 5509 |
| 5510 var h = { | 5510 var h = { |
| 5511 "content-type" : "application/json; charset=utf-8", | 5511 "content-type" : "application/json; charset=utf-8", |
| 5512 }; | 5512 }; |
| 5513 var resp = convert.JSON.encode(buildCustomDimensions()); | 5513 var resp = convert.JSON.encode(buildCustomDimensions()); |
| 5514 return new async.Future.value(stringResponse(200, h, resp)); | 5514 return new async.Future.value(stringResponse(200, h, resp)); |
| 5515 }), true); | 5515 }), true); |
| 5516 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomDimensions re
sponse) { | 5516 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync1(((api.CustomDimensions r
esponse) { |
| 5517 checkCustomDimensions(response); | 5517 checkCustomDimensions(response); |
| 5518 }))); | 5518 }))); |
| 5519 }); | 5519 }); |
| 5520 | 5520 |
| 5521 unittest.test("method--patch", () { | 5521 unittest.test("method--patch", () { |
| 5522 | 5522 |
| 5523 var mock = new HttpServerMock(); | 5523 var mock = new HttpServerMock(); |
| 5524 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; | 5524 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; |
| 5525 var arg_request = buildCustomDimension(); | 5525 var arg_request = buildCustomDimension(); |
| 5526 var arg_accountId = "foo"; | 5526 var arg_accountId = "foo"; |
| 5527 var arg_webPropertyId = "foo"; | 5527 var arg_webPropertyId = "foo"; |
| 5528 var arg_customDimensionId = "foo"; | 5528 var arg_customDimensionId = "foo"; |
| 5529 var arg_ignoreCustomDataSourceLinks = true; | 5529 var arg_ignoreCustomDataSourceLinks = true; |
| 5530 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5530 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5531 var obj = new api.CustomDimension.fromJson(json); | 5531 var obj = new api.CustomDimension.fromJson(json); |
| 5532 checkCustomDimension(obj); | 5532 checkCustomDimension(obj); |
| 5533 | 5533 |
| 5534 var path = (req.url).path; | 5534 var path = (req.url).path; |
| 5535 var pathOffset = 0; | 5535 var pathOffset = 0; |
| 5536 var index; | 5536 var index; |
| 5537 var subPart; | 5537 var subPart; |
| 5538 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5538 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5539 pathOffset += 1; | 5539 pathOffset += 1; |
| 5540 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5540 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5577 } | 5577 } |
| 5578 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest.
equals("$arg_ignoreCustomDataSourceLinks")); | 5578 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest.
equals("$arg_ignoreCustomDataSourceLinks")); |
| 5579 | 5579 |
| 5580 | 5580 |
| 5581 var h = { | 5581 var h = { |
| 5582 "content-type" : "application/json; charset=utf-8", | 5582 "content-type" : "application/json; charset=utf-8", |
| 5583 }; | 5583 }; |
| 5584 var resp = convert.JSON.encode(buildCustomDimension()); | 5584 var resp = convert.JSON.encode(buildCustomDimension()); |
| 5585 return new async.Future.value(stringResponse(200, h, resp)); | 5585 return new async.Future.value(stringResponse(200, h, resp)); |
| 5586 }), true); | 5586 }), true); |
| 5587 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensi
onId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittes
t.expectAsync(((api.CustomDimension response) { | 5587 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensi
onId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittes
t.expectAsync1(((api.CustomDimension response) { |
| 5588 checkCustomDimension(response); | 5588 checkCustomDimension(response); |
| 5589 }))); | 5589 }))); |
| 5590 }); | 5590 }); |
| 5591 | 5591 |
| 5592 unittest.test("method--update", () { | 5592 unittest.test("method--update", () { |
| 5593 | 5593 |
| 5594 var mock = new HttpServerMock(); | 5594 var mock = new HttpServerMock(); |
| 5595 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; | 5595 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock)
.management.customDimensions; |
| 5596 var arg_request = buildCustomDimension(); | 5596 var arg_request = buildCustomDimension(); |
| 5597 var arg_accountId = "foo"; | 5597 var arg_accountId = "foo"; |
| 5598 var arg_webPropertyId = "foo"; | 5598 var arg_webPropertyId = "foo"; |
| 5599 var arg_customDimensionId = "foo"; | 5599 var arg_customDimensionId = "foo"; |
| 5600 var arg_ignoreCustomDataSourceLinks = true; | 5600 var arg_ignoreCustomDataSourceLinks = true; |
| 5601 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5601 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5602 var obj = new api.CustomDimension.fromJson(json); | 5602 var obj = new api.CustomDimension.fromJson(json); |
| 5603 checkCustomDimension(obj); | 5603 checkCustomDimension(obj); |
| 5604 | 5604 |
| 5605 var path = (req.url).path; | 5605 var path = (req.url).path; |
| 5606 var pathOffset = 0; | 5606 var pathOffset = 0; |
| 5607 var index; | 5607 var index; |
| 5608 var subPart; | 5608 var subPart; |
| 5609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5610 pathOffset += 1; | 5610 pathOffset += 1; |
| 5611 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5611 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5648 } | 5648 } |
| 5649 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest.
equals("$arg_ignoreCustomDataSourceLinks")); | 5649 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest.
equals("$arg_ignoreCustomDataSourceLinks")); |
| 5650 | 5650 |
| 5651 | 5651 |
| 5652 var h = { | 5652 var h = { |
| 5653 "content-type" : "application/json; charset=utf-8", | 5653 "content-type" : "application/json; charset=utf-8", |
| 5654 }; | 5654 }; |
| 5655 var resp = convert.JSON.encode(buildCustomDimension()); | 5655 var resp = convert.JSON.encode(buildCustomDimension()); |
| 5656 return new async.Future.value(stringResponse(200, h, resp)); | 5656 return new async.Future.value(stringResponse(200, h, resp)); |
| 5657 }), true); | 5657 }), true); |
| 5658 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customDimens
ionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unitte
st.expectAsync(((api.CustomDimension response) { | 5658 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customDimens
ionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unitte
st.expectAsync1(((api.CustomDimension response) { |
| 5659 checkCustomDimension(response); | 5659 checkCustomDimension(response); |
| 5660 }))); | 5660 }))); |
| 5661 }); | 5661 }); |
| 5662 | 5662 |
| 5663 }); | 5663 }); |
| 5664 | 5664 |
| 5665 | 5665 |
| 5666 unittest.group("resource-ManagementCustomMetricsResourceApi", () { | 5666 unittest.group("resource-ManagementCustomMetricsResourceApi", () { |
| 5667 unittest.test("method--get", () { | 5667 unittest.test("method--get", () { |
| 5668 | 5668 |
| 5669 var mock = new HttpServerMock(); | 5669 var mock = new HttpServerMock(); |
| 5670 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; | 5670 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; |
| 5671 var arg_accountId = "foo"; | 5671 var arg_accountId = "foo"; |
| 5672 var arg_webPropertyId = "foo"; | 5672 var arg_webPropertyId = "foo"; |
| 5673 var arg_customMetricId = "foo"; | 5673 var arg_customMetricId = "foo"; |
| 5674 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5674 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5675 var path = (req.url).path; | 5675 var path = (req.url).path; |
| 5676 var pathOffset = 0; | 5676 var pathOffset = 0; |
| 5677 var index; | 5677 var index; |
| 5678 var subPart; | 5678 var subPart; |
| 5679 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5679 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5680 pathOffset += 1; | 5680 pathOffset += 1; |
| 5681 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5681 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 5682 pathOffset += 13; | 5682 pathOffset += 13; |
| 5683 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 5683 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 5684 pathOffset += 20; | 5684 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5717 } | 5717 } |
| 5718 } | 5718 } |
| 5719 | 5719 |
| 5720 | 5720 |
| 5721 var h = { | 5721 var h = { |
| 5722 "content-type" : "application/json; charset=utf-8", | 5722 "content-type" : "application/json; charset=utf-8", |
| 5723 }; | 5723 }; |
| 5724 var resp = convert.JSON.encode(buildCustomMetric()); | 5724 var resp = convert.JSON.encode(buildCustomMetric()); |
| 5725 return new async.Future.value(stringResponse(200, h, resp)); | 5725 return new async.Future.value(stringResponse(200, h, resp)); |
| 5726 }), true); | 5726 }), true); |
| 5727 res.get(arg_accountId, arg_webPropertyId, arg_customMetricId).then(unittes
t.expectAsync(((api.CustomMetric response) { | 5727 res.get(arg_accountId, arg_webPropertyId, arg_customMetricId).then(unittes
t.expectAsync1(((api.CustomMetric response) { |
| 5728 checkCustomMetric(response); | 5728 checkCustomMetric(response); |
| 5729 }))); | 5729 }))); |
| 5730 }); | 5730 }); |
| 5731 | 5731 |
| 5732 unittest.test("method--insert", () { | 5732 unittest.test("method--insert", () { |
| 5733 | 5733 |
| 5734 var mock = new HttpServerMock(); | 5734 var mock = new HttpServerMock(); |
| 5735 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; | 5735 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; |
| 5736 var arg_request = buildCustomMetric(); | 5736 var arg_request = buildCustomMetric(); |
| 5737 var arg_accountId = "foo"; | 5737 var arg_accountId = "foo"; |
| 5738 var arg_webPropertyId = "foo"; | 5738 var arg_webPropertyId = "foo"; |
| 5739 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5739 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5740 var obj = new api.CustomMetric.fromJson(json); | 5740 var obj = new api.CustomMetric.fromJson(json); |
| 5741 checkCustomMetric(obj); | 5741 checkCustomMetric(obj); |
| 5742 | 5742 |
| 5743 var path = (req.url).path; | 5743 var path = (req.url).path; |
| 5744 var pathOffset = 0; | 5744 var pathOffset = 0; |
| 5745 var index; | 5745 var index; |
| 5746 var subPart; | 5746 var subPart; |
| 5747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5748 pathOffset += 1; | 5748 pathOffset += 1; |
| 5749 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5749 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5782 } | 5782 } |
| 5783 } | 5783 } |
| 5784 | 5784 |
| 5785 | 5785 |
| 5786 var h = { | 5786 var h = { |
| 5787 "content-type" : "application/json; charset=utf-8", | 5787 "content-type" : "application/json; charset=utf-8", |
| 5788 }; | 5788 }; |
| 5789 var resp = convert.JSON.encode(buildCustomMetric()); | 5789 var resp = convert.JSON.encode(buildCustomMetric()); |
| 5790 return new async.Future.value(stringResponse(200, h, resp)); | 5790 return new async.Future.value(stringResponse(200, h, resp)); |
| 5791 }), true); | 5791 }), true); |
| 5792 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync(((api.CustomMetric response) { | 5792 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync1(((api.CustomMetric response) { |
| 5793 checkCustomMetric(response); | 5793 checkCustomMetric(response); |
| 5794 }))); | 5794 }))); |
| 5795 }); | 5795 }); |
| 5796 | 5796 |
| 5797 unittest.test("method--list", () { | 5797 unittest.test("method--list", () { |
| 5798 | 5798 |
| 5799 var mock = new HttpServerMock(); | 5799 var mock = new HttpServerMock(); |
| 5800 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; | 5800 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; |
| 5801 var arg_accountId = "foo"; | 5801 var arg_accountId = "foo"; |
| 5802 var arg_webPropertyId = "foo"; | 5802 var arg_webPropertyId = "foo"; |
| 5803 var arg_max_results = 42; | 5803 var arg_max_results = 42; |
| 5804 var arg_start_index = 42; | 5804 var arg_start_index = 42; |
| 5805 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5805 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5806 var path = (req.url).path; | 5806 var path = (req.url).path; |
| 5807 var pathOffset = 0; | 5807 var pathOffset = 0; |
| 5808 var index; | 5808 var index; |
| 5809 var subPart; | 5809 var subPart; |
| 5810 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5810 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5811 pathOffset += 1; | 5811 pathOffset += 1; |
| 5812 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5812 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 5813 pathOffset += 13; | 5813 pathOffset += 13; |
| 5814 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 5814 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 5815 pathOffset += 20; | 5815 pathOffset += 20; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5847 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 5847 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 5848 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 5848 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 5849 | 5849 |
| 5850 | 5850 |
| 5851 var h = { | 5851 var h = { |
| 5852 "content-type" : "application/json; charset=utf-8", | 5852 "content-type" : "application/json; charset=utf-8", |
| 5853 }; | 5853 }; |
| 5854 var resp = convert.JSON.encode(buildCustomMetrics()); | 5854 var resp = convert.JSON.encode(buildCustomMetrics()); |
| 5855 return new async.Future.value(stringResponse(200, h, resp)); | 5855 return new async.Future.value(stringResponse(200, h, resp)); |
| 5856 }), true); | 5856 }), true); |
| 5857 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomMetrics respo
nse) { | 5857 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync1(((api.CustomMetrics resp
onse) { |
| 5858 checkCustomMetrics(response); | 5858 checkCustomMetrics(response); |
| 5859 }))); | 5859 }))); |
| 5860 }); | 5860 }); |
| 5861 | 5861 |
| 5862 unittest.test("method--patch", () { | 5862 unittest.test("method--patch", () { |
| 5863 | 5863 |
| 5864 var mock = new HttpServerMock(); | 5864 var mock = new HttpServerMock(); |
| 5865 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; | 5865 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; |
| 5866 var arg_request = buildCustomMetric(); | 5866 var arg_request = buildCustomMetric(); |
| 5867 var arg_accountId = "foo"; | 5867 var arg_accountId = "foo"; |
| 5868 var arg_webPropertyId = "foo"; | 5868 var arg_webPropertyId = "foo"; |
| 5869 var arg_customMetricId = "foo"; | 5869 var arg_customMetricId = "foo"; |
| 5870 var arg_ignoreCustomDataSourceLinks = true; | 5870 var arg_ignoreCustomDataSourceLinks = true; |
| 5871 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5871 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5872 var obj = new api.CustomMetric.fromJson(json); | 5872 var obj = new api.CustomMetric.fromJson(json); |
| 5873 checkCustomMetric(obj); | 5873 checkCustomMetric(obj); |
| 5874 | 5874 |
| 5875 var path = (req.url).path; | 5875 var path = (req.url).path; |
| 5876 var pathOffset = 0; | 5876 var pathOffset = 0; |
| 5877 var index; | 5877 var index; |
| 5878 var subPart; | 5878 var subPart; |
| 5879 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5879 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5880 pathOffset += 1; | 5880 pathOffset += 1; |
| 5881 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5881 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5918 } | 5918 } |
| 5919 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest.
equals("$arg_ignoreCustomDataSourceLinks")); | 5919 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest.
equals("$arg_ignoreCustomDataSourceLinks")); |
| 5920 | 5920 |
| 5921 | 5921 |
| 5922 var h = { | 5922 var h = { |
| 5923 "content-type" : "application/json; charset=utf-8", | 5923 "content-type" : "application/json; charset=utf-8", |
| 5924 }; | 5924 }; |
| 5925 var resp = convert.JSON.encode(buildCustomMetric()); | 5925 var resp = convert.JSON.encode(buildCustomMetric()); |
| 5926 return new async.Future.value(stringResponse(200, h, resp)); | 5926 return new async.Future.value(stringResponse(200, h, resp)); |
| 5927 }), true); | 5927 }), true); |
| 5928 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricI
d, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.e
xpectAsync(((api.CustomMetric response) { | 5928 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricI
d, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.e
xpectAsync1(((api.CustomMetric response) { |
| 5929 checkCustomMetric(response); | 5929 checkCustomMetric(response); |
| 5930 }))); | 5930 }))); |
| 5931 }); | 5931 }); |
| 5932 | 5932 |
| 5933 unittest.test("method--update", () { | 5933 unittest.test("method--update", () { |
| 5934 | 5934 |
| 5935 var mock = new HttpServerMock(); | 5935 var mock = new HttpServerMock(); |
| 5936 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; | 5936 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma
nagement.customMetrics; |
| 5937 var arg_request = buildCustomMetric(); | 5937 var arg_request = buildCustomMetric(); |
| 5938 var arg_accountId = "foo"; | 5938 var arg_accountId = "foo"; |
| 5939 var arg_webPropertyId = "foo"; | 5939 var arg_webPropertyId = "foo"; |
| 5940 var arg_customMetricId = "foo"; | 5940 var arg_customMetricId = "foo"; |
| 5941 var arg_ignoreCustomDataSourceLinks = true; | 5941 var arg_ignoreCustomDataSourceLinks = true; |
| 5942 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5942 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5943 var obj = new api.CustomMetric.fromJson(json); | 5943 var obj = new api.CustomMetric.fromJson(json); |
| 5944 checkCustomMetric(obj); | 5944 checkCustomMetric(obj); |
| 5945 | 5945 |
| 5946 var path = (req.url).path; | 5946 var path = (req.url).path; |
| 5947 var pathOffset = 0; | 5947 var pathOffset = 0; |
| 5948 var index; | 5948 var index; |
| 5949 var subPart; | 5949 var subPart; |
| 5950 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5950 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5951 pathOffset += 1; | 5951 pathOffset += 1; |
| 5952 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 5952 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5989 } | 5989 } |
| 5990 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest.
equals("$arg_ignoreCustomDataSourceLinks")); | 5990 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest.
equals("$arg_ignoreCustomDataSourceLinks")); |
| 5991 | 5991 |
| 5992 | 5992 |
| 5993 var h = { | 5993 var h = { |
| 5994 "content-type" : "application/json; charset=utf-8", | 5994 "content-type" : "application/json; charset=utf-8", |
| 5995 }; | 5995 }; |
| 5996 var resp = convert.JSON.encode(buildCustomMetric()); | 5996 var resp = convert.JSON.encode(buildCustomMetric()); |
| 5997 return new async.Future.value(stringResponse(200, h, resp)); | 5997 return new async.Future.value(stringResponse(200, h, resp)); |
| 5998 }), true); | 5998 }), true); |
| 5999 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customMetric
Id, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.
expectAsync(((api.CustomMetric response) { | 5999 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customMetric
Id, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.
expectAsync1(((api.CustomMetric response) { |
| 6000 checkCustomMetric(response); | 6000 checkCustomMetric(response); |
| 6001 }))); | 6001 }))); |
| 6002 }); | 6002 }); |
| 6003 | 6003 |
| 6004 }); | 6004 }); |
| 6005 | 6005 |
| 6006 | 6006 |
| 6007 unittest.group("resource-ManagementExperimentsResourceApi", () { | 6007 unittest.group("resource-ManagementExperimentsResourceApi", () { |
| 6008 unittest.test("method--delete", () { | 6008 unittest.test("method--delete", () { |
| 6009 | 6009 |
| 6010 var mock = new HttpServerMock(); | 6010 var mock = new HttpServerMock(); |
| 6011 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; | 6011 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; |
| 6012 var arg_accountId = "foo"; | 6012 var arg_accountId = "foo"; |
| 6013 var arg_webPropertyId = "foo"; | 6013 var arg_webPropertyId = "foo"; |
| 6014 var arg_profileId = "foo"; | 6014 var arg_profileId = "foo"; |
| 6015 var arg_experimentId = "foo"; | 6015 var arg_experimentId = "foo"; |
| 6016 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6016 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6017 var path = (req.url).path; | 6017 var path = (req.url).path; |
| 6018 var pathOffset = 0; | 6018 var pathOffset = 0; |
| 6019 var index; | 6019 var index; |
| 6020 var subPart; | 6020 var subPart; |
| 6021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6022 pathOffset += 1; | 6022 pathOffset += 1; |
| 6023 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6023 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 6024 pathOffset += 13; | 6024 pathOffset += 13; |
| 6025 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 6025 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 6026 pathOffset += 20; | 6026 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6066 } | 6066 } |
| 6067 } | 6067 } |
| 6068 | 6068 |
| 6069 | 6069 |
| 6070 var h = { | 6070 var h = { |
| 6071 "content-type" : "application/json; charset=utf-8", | 6071 "content-type" : "application/json; charset=utf-8", |
| 6072 }; | 6072 }; |
| 6073 var resp = ""; | 6073 var resp = ""; |
| 6074 return new async.Future.value(stringResponse(200, h, resp)); | 6074 return new async.Future.value(stringResponse(200, h, resp)); |
| 6075 }), true); | 6075 }), true); |
| 6076 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_experiment
Id).then(unittest.expectAsync((_) {})); | 6076 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_experiment
Id).then(unittest.expectAsync1((_) {})); |
| 6077 }); | 6077 }); |
| 6078 | 6078 |
| 6079 unittest.test("method--get", () { | 6079 unittest.test("method--get", () { |
| 6080 | 6080 |
| 6081 var mock = new HttpServerMock(); | 6081 var mock = new HttpServerMock(); |
| 6082 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; | 6082 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; |
| 6083 var arg_accountId = "foo"; | 6083 var arg_accountId = "foo"; |
| 6084 var arg_webPropertyId = "foo"; | 6084 var arg_webPropertyId = "foo"; |
| 6085 var arg_profileId = "foo"; | 6085 var arg_profileId = "foo"; |
| 6086 var arg_experimentId = "foo"; | 6086 var arg_experimentId = "foo"; |
| 6087 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6087 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6088 var path = (req.url).path; | 6088 var path = (req.url).path; |
| 6089 var pathOffset = 0; | 6089 var pathOffset = 0; |
| 6090 var index; | 6090 var index; |
| 6091 var subPart; | 6091 var subPart; |
| 6092 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6092 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6093 pathOffset += 1; | 6093 pathOffset += 1; |
| 6094 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6094 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 6095 pathOffset += 13; | 6095 pathOffset += 13; |
| 6096 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 6096 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 6097 pathOffset += 20; | 6097 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6137 } | 6137 } |
| 6138 } | 6138 } |
| 6139 | 6139 |
| 6140 | 6140 |
| 6141 var h = { | 6141 var h = { |
| 6142 "content-type" : "application/json; charset=utf-8", | 6142 "content-type" : "application/json; charset=utf-8", |
| 6143 }; | 6143 }; |
| 6144 var resp = convert.JSON.encode(buildExperiment()); | 6144 var resp = convert.JSON.encode(buildExperiment()); |
| 6145 return new async.Future.value(stringResponse(200, h, resp)); | 6145 return new async.Future.value(stringResponse(200, h, resp)); |
| 6146 }), true); | 6146 }), true); |
| 6147 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId)
.then(unittest.expectAsync(((api.Experiment response) { | 6147 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId)
.then(unittest.expectAsync1(((api.Experiment response) { |
| 6148 checkExperiment(response); | 6148 checkExperiment(response); |
| 6149 }))); | 6149 }))); |
| 6150 }); | 6150 }); |
| 6151 | 6151 |
| 6152 unittest.test("method--insert", () { | 6152 unittest.test("method--insert", () { |
| 6153 | 6153 |
| 6154 var mock = new HttpServerMock(); | 6154 var mock = new HttpServerMock(); |
| 6155 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; | 6155 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; |
| 6156 var arg_request = buildExperiment(); | 6156 var arg_request = buildExperiment(); |
| 6157 var arg_accountId = "foo"; | 6157 var arg_accountId = "foo"; |
| 6158 var arg_webPropertyId = "foo"; | 6158 var arg_webPropertyId = "foo"; |
| 6159 var arg_profileId = "foo"; | 6159 var arg_profileId = "foo"; |
| 6160 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6160 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6161 var obj = new api.Experiment.fromJson(json); | 6161 var obj = new api.Experiment.fromJson(json); |
| 6162 checkExperiment(obj); | 6162 checkExperiment(obj); |
| 6163 | 6163 |
| 6164 var path = (req.url).path; | 6164 var path = (req.url).path; |
| 6165 var pathOffset = 0; | 6165 var pathOffset = 0; |
| 6166 var index; | 6166 var index; |
| 6167 var subPart; | 6167 var subPart; |
| 6168 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6168 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6169 pathOffset += 1; | 6169 pathOffset += 1; |
| 6170 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6170 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6210 } | 6210 } |
| 6211 } | 6211 } |
| 6212 | 6212 |
| 6213 | 6213 |
| 6214 var h = { | 6214 var h = { |
| 6215 "content-type" : "application/json; charset=utf-8", | 6215 "content-type" : "application/json; charset=utf-8", |
| 6216 }; | 6216 }; |
| 6217 var resp = convert.JSON.encode(buildExperiment()); | 6217 var resp = convert.JSON.encode(buildExperiment()); |
| 6218 return new async.Future.value(stringResponse(200, h, resp)); | 6218 return new async.Future.value(stringResponse(200, h, resp)); |
| 6219 }), true); | 6219 }), true); |
| 6220 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync(((api.Experiment response) { | 6220 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync1(((api.Experiment response) { |
| 6221 checkExperiment(response); | 6221 checkExperiment(response); |
| 6222 }))); | 6222 }))); |
| 6223 }); | 6223 }); |
| 6224 | 6224 |
| 6225 unittest.test("method--list", () { | 6225 unittest.test("method--list", () { |
| 6226 | 6226 |
| 6227 var mock = new HttpServerMock(); | 6227 var mock = new HttpServerMock(); |
| 6228 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; | 6228 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; |
| 6229 var arg_accountId = "foo"; | 6229 var arg_accountId = "foo"; |
| 6230 var arg_webPropertyId = "foo"; | 6230 var arg_webPropertyId = "foo"; |
| 6231 var arg_profileId = "foo"; | 6231 var arg_profileId = "foo"; |
| 6232 var arg_max_results = 42; | 6232 var arg_max_results = 42; |
| 6233 var arg_start_index = 42; | 6233 var arg_start_index = 42; |
| 6234 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6234 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6235 var path = (req.url).path; | 6235 var path = (req.url).path; |
| 6236 var pathOffset = 0; | 6236 var pathOffset = 0; |
| 6237 var index; | 6237 var index; |
| 6238 var subPart; | 6238 var subPart; |
| 6239 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6239 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6240 pathOffset += 1; | 6240 pathOffset += 1; |
| 6241 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6241 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 6242 pathOffset += 13; | 6242 pathOffset += 13; |
| 6243 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 6243 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 6244 pathOffset += 20; | 6244 pathOffset += 20; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6283 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 6283 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 6284 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 6284 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 6285 | 6285 |
| 6286 | 6286 |
| 6287 var h = { | 6287 var h = { |
| 6288 "content-type" : "application/json; charset=utf-8", | 6288 "content-type" : "application/json; charset=utf-8", |
| 6289 }; | 6289 }; |
| 6290 var resp = convert.JSON.encode(buildExperiments()); | 6290 var resp = convert.JSON.encode(buildExperiments()); |
| 6291 return new async.Future.value(stringResponse(200, h, resp)); | 6291 return new async.Future.value(stringResponse(200, h, resp)); |
| 6292 }), true); | 6292 }), true); |
| 6293 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Expe
riments response) { | 6293 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Exp
eriments response) { |
| 6294 checkExperiments(response); | 6294 checkExperiments(response); |
| 6295 }))); | 6295 }))); |
| 6296 }); | 6296 }); |
| 6297 | 6297 |
| 6298 unittest.test("method--patch", () { | 6298 unittest.test("method--patch", () { |
| 6299 | 6299 |
| 6300 var mock = new HttpServerMock(); | 6300 var mock = new HttpServerMock(); |
| 6301 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; | 6301 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; |
| 6302 var arg_request = buildExperiment(); | 6302 var arg_request = buildExperiment(); |
| 6303 var arg_accountId = "foo"; | 6303 var arg_accountId = "foo"; |
| 6304 var arg_webPropertyId = "foo"; | 6304 var arg_webPropertyId = "foo"; |
| 6305 var arg_profileId = "foo"; | 6305 var arg_profileId = "foo"; |
| 6306 var arg_experimentId = "foo"; | 6306 var arg_experimentId = "foo"; |
| 6307 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6307 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6308 var obj = new api.Experiment.fromJson(json); | 6308 var obj = new api.Experiment.fromJson(json); |
| 6309 checkExperiment(obj); | 6309 checkExperiment(obj); |
| 6310 | 6310 |
| 6311 var path = (req.url).path; | 6311 var path = (req.url).path; |
| 6312 var pathOffset = 0; | 6312 var pathOffset = 0; |
| 6313 var index; | 6313 var index; |
| 6314 var subPart; | 6314 var subPart; |
| 6315 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6315 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6316 pathOffset += 1; | 6316 pathOffset += 1; |
| 6317 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6317 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6360 } | 6360 } |
| 6361 } | 6361 } |
| 6362 | 6362 |
| 6363 | 6363 |
| 6364 var h = { | 6364 var h = { |
| 6365 "content-type" : "application/json; charset=utf-8", | 6365 "content-type" : "application/json; charset=utf-8", |
| 6366 }; | 6366 }; |
| 6367 var resp = convert.JSON.encode(buildExperiment()); | 6367 var resp = convert.JSON.encode(buildExperiment()); |
| 6368 return new async.Future.value(stringResponse(200, h, resp)); | 6368 return new async.Future.value(stringResponse(200, h, resp)); |
| 6369 }), true); | 6369 }), true); |
| 6370 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar
g_experimentId).then(unittest.expectAsync(((api.Experiment response) { | 6370 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar
g_experimentId).then(unittest.expectAsync1(((api.Experiment response) { |
| 6371 checkExperiment(response); | 6371 checkExperiment(response); |
| 6372 }))); | 6372 }))); |
| 6373 }); | 6373 }); |
| 6374 | 6374 |
| 6375 unittest.test("method--update", () { | 6375 unittest.test("method--update", () { |
| 6376 | 6376 |
| 6377 var mock = new HttpServerMock(); | 6377 var mock = new HttpServerMock(); |
| 6378 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; | 6378 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana
gement.experiments; |
| 6379 var arg_request = buildExperiment(); | 6379 var arg_request = buildExperiment(); |
| 6380 var arg_accountId = "foo"; | 6380 var arg_accountId = "foo"; |
| 6381 var arg_webPropertyId = "foo"; | 6381 var arg_webPropertyId = "foo"; |
| 6382 var arg_profileId = "foo"; | 6382 var arg_profileId = "foo"; |
| 6383 var arg_experimentId = "foo"; | 6383 var arg_experimentId = "foo"; |
| 6384 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6384 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6385 var obj = new api.Experiment.fromJson(json); | 6385 var obj = new api.Experiment.fromJson(json); |
| 6386 checkExperiment(obj); | 6386 checkExperiment(obj); |
| 6387 | 6387 |
| 6388 var path = (req.url).path; | 6388 var path = (req.url).path; |
| 6389 var pathOffset = 0; | 6389 var pathOffset = 0; |
| 6390 var index; | 6390 var index; |
| 6391 var subPart; | 6391 var subPart; |
| 6392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6393 pathOffset += 1; | 6393 pathOffset += 1; |
| 6394 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6394 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6437 } | 6437 } |
| 6438 } | 6438 } |
| 6439 | 6439 |
| 6440 | 6440 |
| 6441 var h = { | 6441 var h = { |
| 6442 "content-type" : "application/json; charset=utf-8", | 6442 "content-type" : "application/json; charset=utf-8", |
| 6443 }; | 6443 }; |
| 6444 var resp = convert.JSON.encode(buildExperiment()); | 6444 var resp = convert.JSON.encode(buildExperiment()); |
| 6445 return new async.Future.value(stringResponse(200, h, resp)); | 6445 return new async.Future.value(stringResponse(200, h, resp)); |
| 6446 }), true); | 6446 }), true); |
| 6447 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a
rg_experimentId).then(unittest.expectAsync(((api.Experiment response) { | 6447 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a
rg_experimentId).then(unittest.expectAsync1(((api.Experiment response) { |
| 6448 checkExperiment(response); | 6448 checkExperiment(response); |
| 6449 }))); | 6449 }))); |
| 6450 }); | 6450 }); |
| 6451 | 6451 |
| 6452 }); | 6452 }); |
| 6453 | 6453 |
| 6454 | 6454 |
| 6455 unittest.group("resource-ManagementFiltersResourceApi", () { | 6455 unittest.group("resource-ManagementFiltersResourceApi", () { |
| 6456 unittest.test("method--delete", () { | 6456 unittest.test("method--delete", () { |
| 6457 | 6457 |
| 6458 var mock = new HttpServerMock(); | 6458 var mock = new HttpServerMock(); |
| 6459 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; | 6459 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; |
| 6460 var arg_accountId = "foo"; | 6460 var arg_accountId = "foo"; |
| 6461 var arg_filterId = "foo"; | 6461 var arg_filterId = "foo"; |
| 6462 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6462 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6463 var path = (req.url).path; | 6463 var path = (req.url).path; |
| 6464 var pathOffset = 0; | 6464 var pathOffset = 0; |
| 6465 var index; | 6465 var index; |
| 6466 var subPart; | 6466 var subPart; |
| 6467 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6467 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6468 pathOffset += 1; | 6468 pathOffset += 1; |
| 6469 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6469 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 6470 pathOffset += 13; | 6470 pathOffset += 13; |
| 6471 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 6471 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 6472 pathOffset += 20; | 6472 pathOffset += 20; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6498 } | 6498 } |
| 6499 } | 6499 } |
| 6500 | 6500 |
| 6501 | 6501 |
| 6502 var h = { | 6502 var h = { |
| 6503 "content-type" : "application/json; charset=utf-8", | 6503 "content-type" : "application/json; charset=utf-8", |
| 6504 }; | 6504 }; |
| 6505 var resp = convert.JSON.encode(buildFilter()); | 6505 var resp = convert.JSON.encode(buildFilter()); |
| 6506 return new async.Future.value(stringResponse(200, h, resp)); | 6506 return new async.Future.value(stringResponse(200, h, resp)); |
| 6507 }), true); | 6507 }), true); |
| 6508 res.delete(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Fi
lter response) { | 6508 res.delete(arg_accountId, arg_filterId).then(unittest.expectAsync1(((api.F
ilter response) { |
| 6509 checkFilter(response); | 6509 checkFilter(response); |
| 6510 }))); | 6510 }))); |
| 6511 }); | 6511 }); |
| 6512 | 6512 |
| 6513 unittest.test("method--get", () { | 6513 unittest.test("method--get", () { |
| 6514 | 6514 |
| 6515 var mock = new HttpServerMock(); | 6515 var mock = new HttpServerMock(); |
| 6516 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; | 6516 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; |
| 6517 var arg_accountId = "foo"; | 6517 var arg_accountId = "foo"; |
| 6518 var arg_filterId = "foo"; | 6518 var arg_filterId = "foo"; |
| 6519 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6519 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6520 var path = (req.url).path; | 6520 var path = (req.url).path; |
| 6521 var pathOffset = 0; | 6521 var pathOffset = 0; |
| 6522 var index; | 6522 var index; |
| 6523 var subPart; | 6523 var subPart; |
| 6524 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6524 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6525 pathOffset += 1; | 6525 pathOffset += 1; |
| 6526 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6526 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 6527 pathOffset += 13; | 6527 pathOffset += 13; |
| 6528 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 6528 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 6529 pathOffset += 20; | 6529 pathOffset += 20; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6555 } | 6555 } |
| 6556 } | 6556 } |
| 6557 | 6557 |
| 6558 | 6558 |
| 6559 var h = { | 6559 var h = { |
| 6560 "content-type" : "application/json; charset=utf-8", | 6560 "content-type" : "application/json; charset=utf-8", |
| 6561 }; | 6561 }; |
| 6562 var resp = convert.JSON.encode(buildFilter()); | 6562 var resp = convert.JSON.encode(buildFilter()); |
| 6563 return new async.Future.value(stringResponse(200, h, resp)); | 6563 return new async.Future.value(stringResponse(200, h, resp)); |
| 6564 }), true); | 6564 }), true); |
| 6565 res.get(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filte
r response) { | 6565 res.get(arg_accountId, arg_filterId).then(unittest.expectAsync1(((api.Filt
er response) { |
| 6566 checkFilter(response); | 6566 checkFilter(response); |
| 6567 }))); | 6567 }))); |
| 6568 }); | 6568 }); |
| 6569 | 6569 |
| 6570 unittest.test("method--insert", () { | 6570 unittest.test("method--insert", () { |
| 6571 | 6571 |
| 6572 var mock = new HttpServerMock(); | 6572 var mock = new HttpServerMock(); |
| 6573 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; | 6573 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; |
| 6574 var arg_request = buildFilter(); | 6574 var arg_request = buildFilter(); |
| 6575 var arg_accountId = "foo"; | 6575 var arg_accountId = "foo"; |
| 6576 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6576 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6577 var obj = new api.Filter.fromJson(json); | 6577 var obj = new api.Filter.fromJson(json); |
| 6578 checkFilter(obj); | 6578 checkFilter(obj); |
| 6579 | 6579 |
| 6580 var path = (req.url).path; | 6580 var path = (req.url).path; |
| 6581 var pathOffset = 0; | 6581 var pathOffset = 0; |
| 6582 var index; | 6582 var index; |
| 6583 var subPart; | 6583 var subPart; |
| 6584 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6584 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6585 pathOffset += 1; | 6585 pathOffset += 1; |
| 6586 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6586 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6612 } | 6612 } |
| 6613 } | 6613 } |
| 6614 | 6614 |
| 6615 | 6615 |
| 6616 var h = { | 6616 var h = { |
| 6617 "content-type" : "application/json; charset=utf-8", | 6617 "content-type" : "application/json; charset=utf-8", |
| 6618 }; | 6618 }; |
| 6619 var resp = convert.JSON.encode(buildFilter()); | 6619 var resp = convert.JSON.encode(buildFilter()); |
| 6620 return new async.Future.value(stringResponse(200, h, resp)); | 6620 return new async.Future.value(stringResponse(200, h, resp)); |
| 6621 }), true); | 6621 }), true); |
| 6622 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Fil
ter response) { | 6622 res.insert(arg_request, arg_accountId).then(unittest.expectAsync1(((api.Fi
lter response) { |
| 6623 checkFilter(response); | 6623 checkFilter(response); |
| 6624 }))); | 6624 }))); |
| 6625 }); | 6625 }); |
| 6626 | 6626 |
| 6627 unittest.test("method--list", () { | 6627 unittest.test("method--list", () { |
| 6628 | 6628 |
| 6629 var mock = new HttpServerMock(); | 6629 var mock = new HttpServerMock(); |
| 6630 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; | 6630 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; |
| 6631 var arg_accountId = "foo"; | 6631 var arg_accountId = "foo"; |
| 6632 var arg_max_results = 42; | 6632 var arg_max_results = 42; |
| 6633 var arg_start_index = 42; | 6633 var arg_start_index = 42; |
| 6634 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6634 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6635 var path = (req.url).path; | 6635 var path = (req.url).path; |
| 6636 var pathOffset = 0; | 6636 var pathOffset = 0; |
| 6637 var index; | 6637 var index; |
| 6638 var subPart; | 6638 var subPart; |
| 6639 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6639 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6640 pathOffset += 1; | 6640 pathOffset += 1; |
| 6641 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6641 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 6642 pathOffset += 13; | 6642 pathOffset += 13; |
| 6643 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 6643 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 6644 pathOffset += 20; | 6644 pathOffset += 20; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 6669 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 6669 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 6670 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 6670 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 6671 | 6671 |
| 6672 | 6672 |
| 6673 var h = { | 6673 var h = { |
| 6674 "content-type" : "application/json; charset=utf-8", | 6674 "content-type" : "application/json; charset=utf-8", |
| 6675 }; | 6675 }; |
| 6676 var resp = convert.JSON.encode(buildFilters()); | 6676 var resp = convert.JSON.encode(buildFilters()); |
| 6677 return new async.Future.value(stringResponse(200, h, resp)); | 6677 return new async.Future.value(stringResponse(200, h, resp)); |
| 6678 }), true); | 6678 }), true); |
| 6679 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta
rt_index).then(unittest.expectAsync(((api.Filters response) { | 6679 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta
rt_index).then(unittest.expectAsync1(((api.Filters response) { |
| 6680 checkFilters(response); | 6680 checkFilters(response); |
| 6681 }))); | 6681 }))); |
| 6682 }); | 6682 }); |
| 6683 | 6683 |
| 6684 unittest.test("method--patch", () { | 6684 unittest.test("method--patch", () { |
| 6685 | 6685 |
| 6686 var mock = new HttpServerMock(); | 6686 var mock = new HttpServerMock(); |
| 6687 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; | 6687 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; |
| 6688 var arg_request = buildFilter(); | 6688 var arg_request = buildFilter(); |
| 6689 var arg_accountId = "foo"; | 6689 var arg_accountId = "foo"; |
| 6690 var arg_filterId = "foo"; | 6690 var arg_filterId = "foo"; |
| 6691 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6691 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6692 var obj = new api.Filter.fromJson(json); | 6692 var obj = new api.Filter.fromJson(json); |
| 6693 checkFilter(obj); | 6693 checkFilter(obj); |
| 6694 | 6694 |
| 6695 var path = (req.url).path; | 6695 var path = (req.url).path; |
| 6696 var pathOffset = 0; | 6696 var pathOffset = 0; |
| 6697 var index; | 6697 var index; |
| 6698 var subPart; | 6698 var subPart; |
| 6699 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6699 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6700 pathOffset += 1; | 6700 pathOffset += 1; |
| 6701 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6701 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 6730 } | 6730 } |
| 6731 } | 6731 } |
| 6732 | 6732 |
| 6733 | 6733 |
| 6734 var h = { | 6734 var h = { |
| 6735 "content-type" : "application/json; charset=utf-8", | 6735 "content-type" : "application/json; charset=utf-8", |
| 6736 }; | 6736 }; |
| 6737 var resp = convert.JSON.encode(buildFilter()); | 6737 var resp = convert.JSON.encode(buildFilter()); |
| 6738 return new async.Future.value(stringResponse(200, h, resp)); | 6738 return new async.Future.value(stringResponse(200, h, resp)); |
| 6739 }), true); | 6739 }), true); |
| 6740 res.patch(arg_request, arg_accountId, arg_filterId).then(unittest.expectAs
ync(((api.Filter response) { | 6740 res.patch(arg_request, arg_accountId, arg_filterId).then(unittest.expectAs
ync1(((api.Filter response) { |
| 6741 checkFilter(response); | 6741 checkFilter(response); |
| 6742 }))); | 6742 }))); |
| 6743 }); | 6743 }); |
| 6744 | 6744 |
| 6745 unittest.test("method--update", () { | 6745 unittest.test("method--update", () { |
| 6746 | 6746 |
| 6747 var mock = new HttpServerMock(); | 6747 var mock = new HttpServerMock(); |
| 6748 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; | 6748 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme
nt.filters; |
| 6749 var arg_request = buildFilter(); | 6749 var arg_request = buildFilter(); |
| 6750 var arg_accountId = "foo"; | 6750 var arg_accountId = "foo"; |
| 6751 var arg_filterId = "foo"; | 6751 var arg_filterId = "foo"; |
| 6752 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6752 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6753 var obj = new api.Filter.fromJson(json); | 6753 var obj = new api.Filter.fromJson(json); |
| 6754 checkFilter(obj); | 6754 checkFilter(obj); |
| 6755 | 6755 |
| 6756 var path = (req.url).path; | 6756 var path = (req.url).path; |
| 6757 var pathOffset = 0; | 6757 var pathOffset = 0; |
| 6758 var index; | 6758 var index; |
| 6759 var subPart; | 6759 var subPart; |
| 6760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6761 pathOffset += 1; | 6761 pathOffset += 1; |
| 6762 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6762 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 6791 } | 6791 } |
| 6792 } | 6792 } |
| 6793 | 6793 |
| 6794 | 6794 |
| 6795 var h = { | 6795 var h = { |
| 6796 "content-type" : "application/json; charset=utf-8", | 6796 "content-type" : "application/json; charset=utf-8", |
| 6797 }; | 6797 }; |
| 6798 var resp = convert.JSON.encode(buildFilter()); | 6798 var resp = convert.JSON.encode(buildFilter()); |
| 6799 return new async.Future.value(stringResponse(200, h, resp)); | 6799 return new async.Future.value(stringResponse(200, h, resp)); |
| 6800 }), true); | 6800 }), true); |
| 6801 res.update(arg_request, arg_accountId, arg_filterId).then(unittest.expectA
sync(((api.Filter response) { | 6801 res.update(arg_request, arg_accountId, arg_filterId).then(unittest.expectA
sync1(((api.Filter response) { |
| 6802 checkFilter(response); | 6802 checkFilter(response); |
| 6803 }))); | 6803 }))); |
| 6804 }); | 6804 }); |
| 6805 | 6805 |
| 6806 }); | 6806 }); |
| 6807 | 6807 |
| 6808 | 6808 |
| 6809 unittest.group("resource-ManagementGoalsResourceApi", () { | 6809 unittest.group("resource-ManagementGoalsResourceApi", () { |
| 6810 unittest.test("method--get", () { | 6810 unittest.test("method--get", () { |
| 6811 | 6811 |
| 6812 var mock = new HttpServerMock(); | 6812 var mock = new HttpServerMock(); |
| 6813 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; | 6813 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; |
| 6814 var arg_accountId = "foo"; | 6814 var arg_accountId = "foo"; |
| 6815 var arg_webPropertyId = "foo"; | 6815 var arg_webPropertyId = "foo"; |
| 6816 var arg_profileId = "foo"; | 6816 var arg_profileId = "foo"; |
| 6817 var arg_goalId = "foo"; | 6817 var arg_goalId = "foo"; |
| 6818 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6818 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6819 var path = (req.url).path; | 6819 var path = (req.url).path; |
| 6820 var pathOffset = 0; | 6820 var pathOffset = 0; |
| 6821 var index; | 6821 var index; |
| 6822 var subPart; | 6822 var subPart; |
| 6823 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6823 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6824 pathOffset += 1; | 6824 pathOffset += 1; |
| 6825 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6825 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 6826 pathOffset += 13; | 6826 pathOffset += 13; |
| 6827 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 6827 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 6828 pathOffset += 20; | 6828 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6868 } | 6868 } |
| 6869 } | 6869 } |
| 6870 | 6870 |
| 6871 | 6871 |
| 6872 var h = { | 6872 var h = { |
| 6873 "content-type" : "application/json; charset=utf-8", | 6873 "content-type" : "application/json; charset=utf-8", |
| 6874 }; | 6874 }; |
| 6875 var resp = convert.JSON.encode(buildGoal()); | 6875 var resp = convert.JSON.encode(buildGoal()); |
| 6876 return new async.Future.value(stringResponse(200, h, resp)); | 6876 return new async.Future.value(stringResponse(200, h, resp)); |
| 6877 }), true); | 6877 }), true); |
| 6878 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(
unittest.expectAsync(((api.Goal response) { | 6878 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then(
unittest.expectAsync1(((api.Goal response) { |
| 6879 checkGoal(response); | 6879 checkGoal(response); |
| 6880 }))); | 6880 }))); |
| 6881 }); | 6881 }); |
| 6882 | 6882 |
| 6883 unittest.test("method--insert", () { | 6883 unittest.test("method--insert", () { |
| 6884 | 6884 |
| 6885 var mock = new HttpServerMock(); | 6885 var mock = new HttpServerMock(); |
| 6886 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; | 6886 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; |
| 6887 var arg_request = buildGoal(); | 6887 var arg_request = buildGoal(); |
| 6888 var arg_accountId = "foo"; | 6888 var arg_accountId = "foo"; |
| 6889 var arg_webPropertyId = "foo"; | 6889 var arg_webPropertyId = "foo"; |
| 6890 var arg_profileId = "foo"; | 6890 var arg_profileId = "foo"; |
| 6891 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6891 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6892 var obj = new api.Goal.fromJson(json); | 6892 var obj = new api.Goal.fromJson(json); |
| 6893 checkGoal(obj); | 6893 checkGoal(obj); |
| 6894 | 6894 |
| 6895 var path = (req.url).path; | 6895 var path = (req.url).path; |
| 6896 var pathOffset = 0; | 6896 var pathOffset = 0; |
| 6897 var index; | 6897 var index; |
| 6898 var subPart; | 6898 var subPart; |
| 6899 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6899 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6900 pathOffset += 1; | 6900 pathOffset += 1; |
| 6901 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6901 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6941 } | 6941 } |
| 6942 } | 6942 } |
| 6943 | 6943 |
| 6944 | 6944 |
| 6945 var h = { | 6945 var h = { |
| 6946 "content-type" : "application/json; charset=utf-8", | 6946 "content-type" : "application/json; charset=utf-8", |
| 6947 }; | 6947 }; |
| 6948 var resp = convert.JSON.encode(buildGoal()); | 6948 var resp = convert.JSON.encode(buildGoal()); |
| 6949 return new async.Future.value(stringResponse(200, h, resp)); | 6949 return new async.Future.value(stringResponse(200, h, resp)); |
| 6950 }), true); | 6950 }), true); |
| 6951 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync(((api.Goal response) { | 6951 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync1(((api.Goal response) { |
| 6952 checkGoal(response); | 6952 checkGoal(response); |
| 6953 }))); | 6953 }))); |
| 6954 }); | 6954 }); |
| 6955 | 6955 |
| 6956 unittest.test("method--list", () { | 6956 unittest.test("method--list", () { |
| 6957 | 6957 |
| 6958 var mock = new HttpServerMock(); | 6958 var mock = new HttpServerMock(); |
| 6959 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; | 6959 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; |
| 6960 var arg_accountId = "foo"; | 6960 var arg_accountId = "foo"; |
| 6961 var arg_webPropertyId = "foo"; | 6961 var arg_webPropertyId = "foo"; |
| 6962 var arg_profileId = "foo"; | 6962 var arg_profileId = "foo"; |
| 6963 var arg_max_results = 42; | 6963 var arg_max_results = 42; |
| 6964 var arg_start_index = 42; | 6964 var arg_start_index = 42; |
| 6965 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6965 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6966 var path = (req.url).path; | 6966 var path = (req.url).path; |
| 6967 var pathOffset = 0; | 6967 var pathOffset = 0; |
| 6968 var index; | 6968 var index; |
| 6969 var subPart; | 6969 var subPart; |
| 6970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6971 pathOffset += 1; | 6971 pathOffset += 1; |
| 6972 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 6972 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 6973 pathOffset += 13; | 6973 pathOffset += 13; |
| 6974 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 6974 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 6975 pathOffset += 20; | 6975 pathOffset += 20; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7014 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 7014 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 7015 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 7015 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 7016 | 7016 |
| 7017 | 7017 |
| 7018 var h = { | 7018 var h = { |
| 7019 "content-type" : "application/json; charset=utf-8", | 7019 "content-type" : "application/json; charset=utf-8", |
| 7020 }; | 7020 }; |
| 7021 var resp = convert.JSON.encode(buildGoals()); | 7021 var resp = convert.JSON.encode(buildGoals()); |
| 7022 return new async.Future.value(stringResponse(200, h, resp)); | 7022 return new async.Future.value(stringResponse(200, h, resp)); |
| 7023 }), true); | 7023 }), true); |
| 7024 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Goal
s response) { | 7024 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Goa
ls response) { |
| 7025 checkGoals(response); | 7025 checkGoals(response); |
| 7026 }))); | 7026 }))); |
| 7027 }); | 7027 }); |
| 7028 | 7028 |
| 7029 unittest.test("method--patch", () { | 7029 unittest.test("method--patch", () { |
| 7030 | 7030 |
| 7031 var mock = new HttpServerMock(); | 7031 var mock = new HttpServerMock(); |
| 7032 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; | 7032 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; |
| 7033 var arg_request = buildGoal(); | 7033 var arg_request = buildGoal(); |
| 7034 var arg_accountId = "foo"; | 7034 var arg_accountId = "foo"; |
| 7035 var arg_webPropertyId = "foo"; | 7035 var arg_webPropertyId = "foo"; |
| 7036 var arg_profileId = "foo"; | 7036 var arg_profileId = "foo"; |
| 7037 var arg_goalId = "foo"; | 7037 var arg_goalId = "foo"; |
| 7038 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7038 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7039 var obj = new api.Goal.fromJson(json); | 7039 var obj = new api.Goal.fromJson(json); |
| 7040 checkGoal(obj); | 7040 checkGoal(obj); |
| 7041 | 7041 |
| 7042 var path = (req.url).path; | 7042 var path = (req.url).path; |
| 7043 var pathOffset = 0; | 7043 var pathOffset = 0; |
| 7044 var index; | 7044 var index; |
| 7045 var subPart; | 7045 var subPart; |
| 7046 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7046 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7047 pathOffset += 1; | 7047 pathOffset += 1; |
| 7048 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7048 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7091 } | 7091 } |
| 7092 } | 7092 } |
| 7093 | 7093 |
| 7094 | 7094 |
| 7095 var h = { | 7095 var h = { |
| 7096 "content-type" : "application/json; charset=utf-8", | 7096 "content-type" : "application/json; charset=utf-8", |
| 7097 }; | 7097 }; |
| 7098 var resp = convert.JSON.encode(buildGoal()); | 7098 var resp = convert.JSON.encode(buildGoal()); |
| 7099 return new async.Future.value(stringResponse(200, h, resp)); | 7099 return new async.Future.value(stringResponse(200, h, resp)); |
| 7100 }), true); | 7100 }), true); |
| 7101 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar
g_goalId).then(unittest.expectAsync(((api.Goal response) { | 7101 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar
g_goalId).then(unittest.expectAsync1(((api.Goal response) { |
| 7102 checkGoal(response); | 7102 checkGoal(response); |
| 7103 }))); | 7103 }))); |
| 7104 }); | 7104 }); |
| 7105 | 7105 |
| 7106 unittest.test("method--update", () { | 7106 unittest.test("method--update", () { |
| 7107 | 7107 |
| 7108 var mock = new HttpServerMock(); | 7108 var mock = new HttpServerMock(); |
| 7109 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; | 7109 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management
.goals; |
| 7110 var arg_request = buildGoal(); | 7110 var arg_request = buildGoal(); |
| 7111 var arg_accountId = "foo"; | 7111 var arg_accountId = "foo"; |
| 7112 var arg_webPropertyId = "foo"; | 7112 var arg_webPropertyId = "foo"; |
| 7113 var arg_profileId = "foo"; | 7113 var arg_profileId = "foo"; |
| 7114 var arg_goalId = "foo"; | 7114 var arg_goalId = "foo"; |
| 7115 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7115 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7116 var obj = new api.Goal.fromJson(json); | 7116 var obj = new api.Goal.fromJson(json); |
| 7117 checkGoal(obj); | 7117 checkGoal(obj); |
| 7118 | 7118 |
| 7119 var path = (req.url).path; | 7119 var path = (req.url).path; |
| 7120 var pathOffset = 0; | 7120 var pathOffset = 0; |
| 7121 var index; | 7121 var index; |
| 7122 var subPart; | 7122 var subPart; |
| 7123 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7123 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7124 pathOffset += 1; | 7124 pathOffset += 1; |
| 7125 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7125 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7168 } | 7168 } |
| 7169 } | 7169 } |
| 7170 | 7170 |
| 7171 | 7171 |
| 7172 var h = { | 7172 var h = { |
| 7173 "content-type" : "application/json; charset=utf-8", | 7173 "content-type" : "application/json; charset=utf-8", |
| 7174 }; | 7174 }; |
| 7175 var resp = convert.JSON.encode(buildGoal()); | 7175 var resp = convert.JSON.encode(buildGoal()); |
| 7176 return new async.Future.value(stringResponse(200, h, resp)); | 7176 return new async.Future.value(stringResponse(200, h, resp)); |
| 7177 }), true); | 7177 }), true); |
| 7178 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a
rg_goalId).then(unittest.expectAsync(((api.Goal response) { | 7178 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a
rg_goalId).then(unittest.expectAsync1(((api.Goal response) { |
| 7179 checkGoal(response); | 7179 checkGoal(response); |
| 7180 }))); | 7180 }))); |
| 7181 }); | 7181 }); |
| 7182 | 7182 |
| 7183 }); | 7183 }); |
| 7184 | 7184 |
| 7185 | 7185 |
| 7186 unittest.group("resource-ManagementProfileFilterLinksResourceApi", () { | 7186 unittest.group("resource-ManagementProfileFilterLinksResourceApi", () { |
| 7187 unittest.test("method--delete", () { | 7187 unittest.test("method--delete", () { |
| 7188 | 7188 |
| 7189 var mock = new HttpServerMock(); | 7189 var mock = new HttpServerMock(); |
| 7190 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; | 7190 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; |
| 7191 var arg_accountId = "foo"; | 7191 var arg_accountId = "foo"; |
| 7192 var arg_webPropertyId = "foo"; | 7192 var arg_webPropertyId = "foo"; |
| 7193 var arg_profileId = "foo"; | 7193 var arg_profileId = "foo"; |
| 7194 var arg_linkId = "foo"; | 7194 var arg_linkId = "foo"; |
| 7195 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7195 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7196 var path = (req.url).path; | 7196 var path = (req.url).path; |
| 7197 var pathOffset = 0; | 7197 var pathOffset = 0; |
| 7198 var index; | 7198 var index; |
| 7199 var subPart; | 7199 var subPart; |
| 7200 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7200 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7201 pathOffset += 1; | 7201 pathOffset += 1; |
| 7202 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7202 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 7203 pathOffset += 13; | 7203 pathOffset += 13; |
| 7204 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 7204 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 7205 pathOffset += 20; | 7205 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7245 } | 7245 } |
| 7246 } | 7246 } |
| 7247 | 7247 |
| 7248 | 7248 |
| 7249 var h = { | 7249 var h = { |
| 7250 "content-type" : "application/json; charset=utf-8", | 7250 "content-type" : "application/json; charset=utf-8", |
| 7251 }; | 7251 }; |
| 7252 var resp = ""; | 7252 var resp = ""; |
| 7253 return new async.Future.value(stringResponse(200, h, resp)); | 7253 return new async.Future.value(stringResponse(200, h, resp)); |
| 7254 }), true); | 7254 }), true); |
| 7255 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).th
en(unittest.expectAsync((_) {})); | 7255 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).th
en(unittest.expectAsync1((_) {})); |
| 7256 }); | 7256 }); |
| 7257 | 7257 |
| 7258 unittest.test("method--get", () { | 7258 unittest.test("method--get", () { |
| 7259 | 7259 |
| 7260 var mock = new HttpServerMock(); | 7260 var mock = new HttpServerMock(); |
| 7261 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; | 7261 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; |
| 7262 var arg_accountId = "foo"; | 7262 var arg_accountId = "foo"; |
| 7263 var arg_webPropertyId = "foo"; | 7263 var arg_webPropertyId = "foo"; |
| 7264 var arg_profileId = "foo"; | 7264 var arg_profileId = "foo"; |
| 7265 var arg_linkId = "foo"; | 7265 var arg_linkId = "foo"; |
| 7266 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7266 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7267 var path = (req.url).path; | 7267 var path = (req.url).path; |
| 7268 var pathOffset = 0; | 7268 var pathOffset = 0; |
| 7269 var index; | 7269 var index; |
| 7270 var subPart; | 7270 var subPart; |
| 7271 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7271 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7272 pathOffset += 1; | 7272 pathOffset += 1; |
| 7273 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7273 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 7274 pathOffset += 13; | 7274 pathOffset += 13; |
| 7275 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 7275 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 7276 pathOffset += 20; | 7276 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7316 } | 7316 } |
| 7317 } | 7317 } |
| 7318 | 7318 |
| 7319 | 7319 |
| 7320 var h = { | 7320 var h = { |
| 7321 "content-type" : "application/json; charset=utf-8", | 7321 "content-type" : "application/json; charset=utf-8", |
| 7322 }; | 7322 }; |
| 7323 var resp = convert.JSON.encode(buildProfileFilterLink()); | 7323 var resp = convert.JSON.encode(buildProfileFilterLink()); |
| 7324 return new async.Future.value(stringResponse(200, h, resp)); | 7324 return new async.Future.value(stringResponse(200, h, resp)); |
| 7325 }), true); | 7325 }), true); |
| 7326 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(
unittest.expectAsync(((api.ProfileFilterLink response) { | 7326 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then(
unittest.expectAsync1(((api.ProfileFilterLink response) { |
| 7327 checkProfileFilterLink(response); | 7327 checkProfileFilterLink(response); |
| 7328 }))); | 7328 }))); |
| 7329 }); | 7329 }); |
| 7330 | 7330 |
| 7331 unittest.test("method--insert", () { | 7331 unittest.test("method--insert", () { |
| 7332 | 7332 |
| 7333 var mock = new HttpServerMock(); | 7333 var mock = new HttpServerMock(); |
| 7334 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; | 7334 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; |
| 7335 var arg_request = buildProfileFilterLink(); | 7335 var arg_request = buildProfileFilterLink(); |
| 7336 var arg_accountId = "foo"; | 7336 var arg_accountId = "foo"; |
| 7337 var arg_webPropertyId = "foo"; | 7337 var arg_webPropertyId = "foo"; |
| 7338 var arg_profileId = "foo"; | 7338 var arg_profileId = "foo"; |
| 7339 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7339 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7340 var obj = new api.ProfileFilterLink.fromJson(json); | 7340 var obj = new api.ProfileFilterLink.fromJson(json); |
| 7341 checkProfileFilterLink(obj); | 7341 checkProfileFilterLink(obj); |
| 7342 | 7342 |
| 7343 var path = (req.url).path; | 7343 var path = (req.url).path; |
| 7344 var pathOffset = 0; | 7344 var pathOffset = 0; |
| 7345 var index; | 7345 var index; |
| 7346 var subPart; | 7346 var subPart; |
| 7347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7348 pathOffset += 1; | 7348 pathOffset += 1; |
| 7349 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7349 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7389 } | 7389 } |
| 7390 } | 7390 } |
| 7391 | 7391 |
| 7392 | 7392 |
| 7393 var h = { | 7393 var h = { |
| 7394 "content-type" : "application/json; charset=utf-8", | 7394 "content-type" : "application/json; charset=utf-8", |
| 7395 }; | 7395 }; |
| 7396 var resp = convert.JSON.encode(buildProfileFilterLink()); | 7396 var resp = convert.JSON.encode(buildProfileFilterLink()); |
| 7397 return new async.Future.value(stringResponse(200, h, resp)); | 7397 return new async.Future.value(stringResponse(200, h, resp)); |
| 7398 }), true); | 7398 }), true); |
| 7399 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync(((api.ProfileFilterLink response) { | 7399 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync1(((api.ProfileFilterLink response) { |
| 7400 checkProfileFilterLink(response); | 7400 checkProfileFilterLink(response); |
| 7401 }))); | 7401 }))); |
| 7402 }); | 7402 }); |
| 7403 | 7403 |
| 7404 unittest.test("method--list", () { | 7404 unittest.test("method--list", () { |
| 7405 | 7405 |
| 7406 var mock = new HttpServerMock(); | 7406 var mock = new HttpServerMock(); |
| 7407 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; | 7407 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; |
| 7408 var arg_accountId = "foo"; | 7408 var arg_accountId = "foo"; |
| 7409 var arg_webPropertyId = "foo"; | 7409 var arg_webPropertyId = "foo"; |
| 7410 var arg_profileId = "foo"; | 7410 var arg_profileId = "foo"; |
| 7411 var arg_max_results = 42; | 7411 var arg_max_results = 42; |
| 7412 var arg_start_index = 42; | 7412 var arg_start_index = 42; |
| 7413 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7413 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7414 var path = (req.url).path; | 7414 var path = (req.url).path; |
| 7415 var pathOffset = 0; | 7415 var pathOffset = 0; |
| 7416 var index; | 7416 var index; |
| 7417 var subPart; | 7417 var subPart; |
| 7418 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7418 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7419 pathOffset += 1; | 7419 pathOffset += 1; |
| 7420 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7420 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 7421 pathOffset += 13; | 7421 pathOffset += 13; |
| 7422 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 7422 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 7423 pathOffset += 20; | 7423 pathOffset += 20; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7462 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 7462 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 7463 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 7463 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 7464 | 7464 |
| 7465 | 7465 |
| 7466 var h = { | 7466 var h = { |
| 7467 "content-type" : "application/json; charset=utf-8", | 7467 "content-type" : "application/json; charset=utf-8", |
| 7468 }; | 7468 }; |
| 7469 var resp = convert.JSON.encode(buildProfileFilterLinks()); | 7469 var resp = convert.JSON.encode(buildProfileFilterLinks()); |
| 7470 return new async.Future.value(stringResponse(200, h, resp)); | 7470 return new async.Future.value(stringResponse(200, h, resp)); |
| 7471 }), true); | 7471 }), true); |
| 7472 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Prof
ileFilterLinks response) { | 7472 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Pro
fileFilterLinks response) { |
| 7473 checkProfileFilterLinks(response); | 7473 checkProfileFilterLinks(response); |
| 7474 }))); | 7474 }))); |
| 7475 }); | 7475 }); |
| 7476 | 7476 |
| 7477 unittest.test("method--patch", () { | 7477 unittest.test("method--patch", () { |
| 7478 | 7478 |
| 7479 var mock = new HttpServerMock(); | 7479 var mock = new HttpServerMock(); |
| 7480 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; | 7480 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; |
| 7481 var arg_request = buildProfileFilterLink(); | 7481 var arg_request = buildProfileFilterLink(); |
| 7482 var arg_accountId = "foo"; | 7482 var arg_accountId = "foo"; |
| 7483 var arg_webPropertyId = "foo"; | 7483 var arg_webPropertyId = "foo"; |
| 7484 var arg_profileId = "foo"; | 7484 var arg_profileId = "foo"; |
| 7485 var arg_linkId = "foo"; | 7485 var arg_linkId = "foo"; |
| 7486 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7486 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7487 var obj = new api.ProfileFilterLink.fromJson(json); | 7487 var obj = new api.ProfileFilterLink.fromJson(json); |
| 7488 checkProfileFilterLink(obj); | 7488 checkProfileFilterLink(obj); |
| 7489 | 7489 |
| 7490 var path = (req.url).path; | 7490 var path = (req.url).path; |
| 7491 var pathOffset = 0; | 7491 var pathOffset = 0; |
| 7492 var index; | 7492 var index; |
| 7493 var subPart; | 7493 var subPart; |
| 7494 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7494 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7495 pathOffset += 1; | 7495 pathOffset += 1; |
| 7496 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7496 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7539 } | 7539 } |
| 7540 } | 7540 } |
| 7541 | 7541 |
| 7542 | 7542 |
| 7543 var h = { | 7543 var h = { |
| 7544 "content-type" : "application/json; charset=utf-8", | 7544 "content-type" : "application/json; charset=utf-8", |
| 7545 }; | 7545 }; |
| 7546 var resp = convert.JSON.encode(buildProfileFilterLink()); | 7546 var resp = convert.JSON.encode(buildProfileFilterLink()); |
| 7547 return new async.Future.value(stringResponse(200, h, resp)); | 7547 return new async.Future.value(stringResponse(200, h, resp)); |
| 7548 }), true); | 7548 }), true); |
| 7549 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar
g_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) { | 7549 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar
g_linkId).then(unittest.expectAsync1(((api.ProfileFilterLink response) { |
| 7550 checkProfileFilterLink(response); | 7550 checkProfileFilterLink(response); |
| 7551 }))); | 7551 }))); |
| 7552 }); | 7552 }); |
| 7553 | 7553 |
| 7554 unittest.test("method--update", () { | 7554 unittest.test("method--update", () { |
| 7555 | 7555 |
| 7556 var mock = new HttpServerMock(); | 7556 var mock = new HttpServerMock(); |
| 7557 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; | 7557 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc
k).management.profileFilterLinks; |
| 7558 var arg_request = buildProfileFilterLink(); | 7558 var arg_request = buildProfileFilterLink(); |
| 7559 var arg_accountId = "foo"; | 7559 var arg_accountId = "foo"; |
| 7560 var arg_webPropertyId = "foo"; | 7560 var arg_webPropertyId = "foo"; |
| 7561 var arg_profileId = "foo"; | 7561 var arg_profileId = "foo"; |
| 7562 var arg_linkId = "foo"; | 7562 var arg_linkId = "foo"; |
| 7563 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7563 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7564 var obj = new api.ProfileFilterLink.fromJson(json); | 7564 var obj = new api.ProfileFilterLink.fromJson(json); |
| 7565 checkProfileFilterLink(obj); | 7565 checkProfileFilterLink(obj); |
| 7566 | 7566 |
| 7567 var path = (req.url).path; | 7567 var path = (req.url).path; |
| 7568 var pathOffset = 0; | 7568 var pathOffset = 0; |
| 7569 var index; | 7569 var index; |
| 7570 var subPart; | 7570 var subPart; |
| 7571 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7571 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7572 pathOffset += 1; | 7572 pathOffset += 1; |
| 7573 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7573 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7616 } | 7616 } |
| 7617 } | 7617 } |
| 7618 | 7618 |
| 7619 | 7619 |
| 7620 var h = { | 7620 var h = { |
| 7621 "content-type" : "application/json; charset=utf-8", | 7621 "content-type" : "application/json; charset=utf-8", |
| 7622 }; | 7622 }; |
| 7623 var resp = convert.JSON.encode(buildProfileFilterLink()); | 7623 var resp = convert.JSON.encode(buildProfileFilterLink()); |
| 7624 return new async.Future.value(stringResponse(200, h, resp)); | 7624 return new async.Future.value(stringResponse(200, h, resp)); |
| 7625 }), true); | 7625 }), true); |
| 7626 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a
rg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) { | 7626 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a
rg_linkId).then(unittest.expectAsync1(((api.ProfileFilterLink response) { |
| 7627 checkProfileFilterLink(response); | 7627 checkProfileFilterLink(response); |
| 7628 }))); | 7628 }))); |
| 7629 }); | 7629 }); |
| 7630 | 7630 |
| 7631 }); | 7631 }); |
| 7632 | 7632 |
| 7633 | 7633 |
| 7634 unittest.group("resource-ManagementProfileUserLinksResourceApi", () { | 7634 unittest.group("resource-ManagementProfileUserLinksResourceApi", () { |
| 7635 unittest.test("method--delete", () { | 7635 unittest.test("method--delete", () { |
| 7636 | 7636 |
| 7637 var mock = new HttpServerMock(); | 7637 var mock = new HttpServerMock(); |
| 7638 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.profileUserLinks; | 7638 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.profileUserLinks; |
| 7639 var arg_accountId = "foo"; | 7639 var arg_accountId = "foo"; |
| 7640 var arg_webPropertyId = "foo"; | 7640 var arg_webPropertyId = "foo"; |
| 7641 var arg_profileId = "foo"; | 7641 var arg_profileId = "foo"; |
| 7642 var arg_linkId = "foo"; | 7642 var arg_linkId = "foo"; |
| 7643 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7643 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7644 var path = (req.url).path; | 7644 var path = (req.url).path; |
| 7645 var pathOffset = 0; | 7645 var pathOffset = 0; |
| 7646 var index; | 7646 var index; |
| 7647 var subPart; | 7647 var subPart; |
| 7648 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7648 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7649 pathOffset += 1; | 7649 pathOffset += 1; |
| 7650 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7650 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 7651 pathOffset += 13; | 7651 pathOffset += 13; |
| 7652 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 7652 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 7653 pathOffset += 20; | 7653 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7693 } | 7693 } |
| 7694 } | 7694 } |
| 7695 | 7695 |
| 7696 | 7696 |
| 7697 var h = { | 7697 var h = { |
| 7698 "content-type" : "application/json; charset=utf-8", | 7698 "content-type" : "application/json; charset=utf-8", |
| 7699 }; | 7699 }; |
| 7700 var resp = ""; | 7700 var resp = ""; |
| 7701 return new async.Future.value(stringResponse(200, h, resp)); | 7701 return new async.Future.value(stringResponse(200, h, resp)); |
| 7702 }), true); | 7702 }), true); |
| 7703 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).th
en(unittest.expectAsync((_) {})); | 7703 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).th
en(unittest.expectAsync1((_) {})); |
| 7704 }); | 7704 }); |
| 7705 | 7705 |
| 7706 unittest.test("method--insert", () { | 7706 unittest.test("method--insert", () { |
| 7707 | 7707 |
| 7708 var mock = new HttpServerMock(); | 7708 var mock = new HttpServerMock(); |
| 7709 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.profileUserLinks; | 7709 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.profileUserLinks; |
| 7710 var arg_request = buildEntityUserLink(); | 7710 var arg_request = buildEntityUserLink(); |
| 7711 var arg_accountId = "foo"; | 7711 var arg_accountId = "foo"; |
| 7712 var arg_webPropertyId = "foo"; | 7712 var arg_webPropertyId = "foo"; |
| 7713 var arg_profileId = "foo"; | 7713 var arg_profileId = "foo"; |
| 7714 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7714 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7715 var obj = new api.EntityUserLink.fromJson(json); | 7715 var obj = new api.EntityUserLink.fromJson(json); |
| 7716 checkEntityUserLink(obj); | 7716 checkEntityUserLink(obj); |
| 7717 | 7717 |
| 7718 var path = (req.url).path; | 7718 var path = (req.url).path; |
| 7719 var pathOffset = 0; | 7719 var pathOffset = 0; |
| 7720 var index; | 7720 var index; |
| 7721 var subPart; | 7721 var subPart; |
| 7722 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7722 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7723 pathOffset += 1; | 7723 pathOffset += 1; |
| 7724 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7724 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7764 } | 7764 } |
| 7765 } | 7765 } |
| 7766 | 7766 |
| 7767 | 7767 |
| 7768 var h = { | 7768 var h = { |
| 7769 "content-type" : "application/json; charset=utf-8", | 7769 "content-type" : "application/json; charset=utf-8", |
| 7770 }; | 7770 }; |
| 7771 var resp = convert.JSON.encode(buildEntityUserLink()); | 7771 var resp = convert.JSON.encode(buildEntityUserLink()); |
| 7772 return new async.Future.value(stringResponse(200, h, resp)); | 7772 return new async.Future.value(stringResponse(200, h, resp)); |
| 7773 }), true); | 7773 }), true); |
| 7774 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync(((api.EntityUserLink response) { | 7774 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync1(((api.EntityUserLink response) { |
| 7775 checkEntityUserLink(response); | 7775 checkEntityUserLink(response); |
| 7776 }))); | 7776 }))); |
| 7777 }); | 7777 }); |
| 7778 | 7778 |
| 7779 unittest.test("method--list", () { | 7779 unittest.test("method--list", () { |
| 7780 | 7780 |
| 7781 var mock = new HttpServerMock(); | 7781 var mock = new HttpServerMock(); |
| 7782 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.profileUserLinks; | 7782 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.profileUserLinks; |
| 7783 var arg_accountId = "foo"; | 7783 var arg_accountId = "foo"; |
| 7784 var arg_webPropertyId = "foo"; | 7784 var arg_webPropertyId = "foo"; |
| 7785 var arg_profileId = "foo"; | 7785 var arg_profileId = "foo"; |
| 7786 var arg_max_results = 42; | 7786 var arg_max_results = 42; |
| 7787 var arg_start_index = 42; | 7787 var arg_start_index = 42; |
| 7788 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7788 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7789 var path = (req.url).path; | 7789 var path = (req.url).path; |
| 7790 var pathOffset = 0; | 7790 var pathOffset = 0; |
| 7791 var index; | 7791 var index; |
| 7792 var subPart; | 7792 var subPart; |
| 7793 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7793 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7794 pathOffset += 1; | 7794 pathOffset += 1; |
| 7795 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7795 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 7796 pathOffset += 13; | 7796 pathOffset += 13; |
| 7797 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 7797 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 7798 pathOffset += 20; | 7798 pathOffset += 20; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7837 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 7837 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 7838 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 7838 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 7839 | 7839 |
| 7840 | 7840 |
| 7841 var h = { | 7841 var h = { |
| 7842 "content-type" : "application/json; charset=utf-8", | 7842 "content-type" : "application/json; charset=utf-8", |
| 7843 }; | 7843 }; |
| 7844 var resp = convert.JSON.encode(buildEntityUserLinks()); | 7844 var resp = convert.JSON.encode(buildEntityUserLinks()); |
| 7845 return new async.Future.value(stringResponse(200, h, resp)); | 7845 return new async.Future.value(stringResponse(200, h, resp)); |
| 7846 }), true); | 7846 }), true); |
| 7847 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Enti
tyUserLinks response) { | 7847 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Ent
ityUserLinks response) { |
| 7848 checkEntityUserLinks(response); | 7848 checkEntityUserLinks(response); |
| 7849 }))); | 7849 }))); |
| 7850 }); | 7850 }); |
| 7851 | 7851 |
| 7852 unittest.test("method--update", () { | 7852 unittest.test("method--update", () { |
| 7853 | 7853 |
| 7854 var mock = new HttpServerMock(); | 7854 var mock = new HttpServerMock(); |
| 7855 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.profileUserLinks; | 7855 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock)
.management.profileUserLinks; |
| 7856 var arg_request = buildEntityUserLink(); | 7856 var arg_request = buildEntityUserLink(); |
| 7857 var arg_accountId = "foo"; | 7857 var arg_accountId = "foo"; |
| 7858 var arg_webPropertyId = "foo"; | 7858 var arg_webPropertyId = "foo"; |
| 7859 var arg_profileId = "foo"; | 7859 var arg_profileId = "foo"; |
| 7860 var arg_linkId = "foo"; | 7860 var arg_linkId = "foo"; |
| 7861 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7861 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7862 var obj = new api.EntityUserLink.fromJson(json); | 7862 var obj = new api.EntityUserLink.fromJson(json); |
| 7863 checkEntityUserLink(obj); | 7863 checkEntityUserLink(obj); |
| 7864 | 7864 |
| 7865 var path = (req.url).path; | 7865 var path = (req.url).path; |
| 7866 var pathOffset = 0; | 7866 var pathOffset = 0; |
| 7867 var index; | 7867 var index; |
| 7868 var subPart; | 7868 var subPart; |
| 7869 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7869 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7870 pathOffset += 1; | 7870 pathOffset += 1; |
| 7871 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7871 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7914 } | 7914 } |
| 7915 } | 7915 } |
| 7916 | 7916 |
| 7917 | 7917 |
| 7918 var h = { | 7918 var h = { |
| 7919 "content-type" : "application/json; charset=utf-8", | 7919 "content-type" : "application/json; charset=utf-8", |
| 7920 }; | 7920 }; |
| 7921 var resp = convert.JSON.encode(buildEntityUserLink()); | 7921 var resp = convert.JSON.encode(buildEntityUserLink()); |
| 7922 return new async.Future.value(stringResponse(200, h, resp)); | 7922 return new async.Future.value(stringResponse(200, h, resp)); |
| 7923 }), true); | 7923 }), true); |
| 7924 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a
rg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) { | 7924 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a
rg_linkId).then(unittest.expectAsync1(((api.EntityUserLink response) { |
| 7925 checkEntityUserLink(response); | 7925 checkEntityUserLink(response); |
| 7926 }))); | 7926 }))); |
| 7927 }); | 7927 }); |
| 7928 | 7928 |
| 7929 }); | 7929 }); |
| 7930 | 7930 |
| 7931 | 7931 |
| 7932 unittest.group("resource-ManagementProfilesResourceApi", () { | 7932 unittest.group("resource-ManagementProfilesResourceApi", () { |
| 7933 unittest.test("method--delete", () { | 7933 unittest.test("method--delete", () { |
| 7934 | 7934 |
| 7935 var mock = new HttpServerMock(); | 7935 var mock = new HttpServerMock(); |
| 7936 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; | 7936 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; |
| 7937 var arg_accountId = "foo"; | 7937 var arg_accountId = "foo"; |
| 7938 var arg_webPropertyId = "foo"; | 7938 var arg_webPropertyId = "foo"; |
| 7939 var arg_profileId = "foo"; | 7939 var arg_profileId = "foo"; |
| 7940 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7940 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 7941 var path = (req.url).path; | 7941 var path = (req.url).path; |
| 7942 var pathOffset = 0; | 7942 var pathOffset = 0; |
| 7943 var index; | 7943 var index; |
| 7944 var subPart; | 7944 var subPart; |
| 7945 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7945 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7946 pathOffset += 1; | 7946 pathOffset += 1; |
| 7947 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 7947 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 7948 pathOffset += 13; | 7948 pathOffset += 13; |
| 7949 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 7949 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 7950 pathOffset += 20; | 7950 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7983 } | 7983 } |
| 7984 } | 7984 } |
| 7985 | 7985 |
| 7986 | 7986 |
| 7987 var h = { | 7987 var h = { |
| 7988 "content-type" : "application/json; charset=utf-8", | 7988 "content-type" : "application/json; charset=utf-8", |
| 7989 }; | 7989 }; |
| 7990 var resp = ""; | 7990 var resp = ""; |
| 7991 return new async.Future.value(stringResponse(200, h, resp)); | 7991 return new async.Future.value(stringResponse(200, h, resp)); |
| 7992 }), true); | 7992 }), true); |
| 7993 res.delete(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.
expectAsync((_) {})); | 7993 res.delete(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.
expectAsync1((_) {})); |
| 7994 }); | 7994 }); |
| 7995 | 7995 |
| 7996 unittest.test("method--get", () { | 7996 unittest.test("method--get", () { |
| 7997 | 7997 |
| 7998 var mock = new HttpServerMock(); | 7998 var mock = new HttpServerMock(); |
| 7999 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; | 7999 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; |
| 8000 var arg_accountId = "foo"; | 8000 var arg_accountId = "foo"; |
| 8001 var arg_webPropertyId = "foo"; | 8001 var arg_webPropertyId = "foo"; |
| 8002 var arg_profileId = "foo"; | 8002 var arg_profileId = "foo"; |
| 8003 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8003 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8004 var path = (req.url).path; | 8004 var path = (req.url).path; |
| 8005 var pathOffset = 0; | 8005 var pathOffset = 0; |
| 8006 var index; | 8006 var index; |
| 8007 var subPart; | 8007 var subPart; |
| 8008 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8008 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8009 pathOffset += 1; | 8009 pathOffset += 1; |
| 8010 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8010 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 8011 pathOffset += 13; | 8011 pathOffset += 13; |
| 8012 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 8012 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 8013 pathOffset += 20; | 8013 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8046 } | 8046 } |
| 8047 } | 8047 } |
| 8048 | 8048 |
| 8049 | 8049 |
| 8050 var h = { | 8050 var h = { |
| 8051 "content-type" : "application/json; charset=utf-8", | 8051 "content-type" : "application/json; charset=utf-8", |
| 8052 }; | 8052 }; |
| 8053 var resp = convert.JSON.encode(buildProfile()); | 8053 var resp = convert.JSON.encode(buildProfile()); |
| 8054 return new async.Future.value(stringResponse(200, h, resp)); | 8054 return new async.Future.value(stringResponse(200, h, resp)); |
| 8055 }), true); | 8055 }), true); |
| 8056 res.get(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.exp
ectAsync(((api.Profile response) { | 8056 res.get(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.exp
ectAsync1(((api.Profile response) { |
| 8057 checkProfile(response); | 8057 checkProfile(response); |
| 8058 }))); | 8058 }))); |
| 8059 }); | 8059 }); |
| 8060 | 8060 |
| 8061 unittest.test("method--insert", () { | 8061 unittest.test("method--insert", () { |
| 8062 | 8062 |
| 8063 var mock = new HttpServerMock(); | 8063 var mock = new HttpServerMock(); |
| 8064 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; | 8064 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; |
| 8065 var arg_request = buildProfile(); | 8065 var arg_request = buildProfile(); |
| 8066 var arg_accountId = "foo"; | 8066 var arg_accountId = "foo"; |
| 8067 var arg_webPropertyId = "foo"; | 8067 var arg_webPropertyId = "foo"; |
| 8068 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8068 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8069 var obj = new api.Profile.fromJson(json); | 8069 var obj = new api.Profile.fromJson(json); |
| 8070 checkProfile(obj); | 8070 checkProfile(obj); |
| 8071 | 8071 |
| 8072 var path = (req.url).path; | 8072 var path = (req.url).path; |
| 8073 var pathOffset = 0; | 8073 var pathOffset = 0; |
| 8074 var index; | 8074 var index; |
| 8075 var subPart; | 8075 var subPart; |
| 8076 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8076 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8077 pathOffset += 1; | 8077 pathOffset += 1; |
| 8078 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8078 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8111 } | 8111 } |
| 8112 } | 8112 } |
| 8113 | 8113 |
| 8114 | 8114 |
| 8115 var h = { | 8115 var h = { |
| 8116 "content-type" : "application/json; charset=utf-8", | 8116 "content-type" : "application/json; charset=utf-8", |
| 8117 }; | 8117 }; |
| 8118 var resp = convert.JSON.encode(buildProfile()); | 8118 var resp = convert.JSON.encode(buildProfile()); |
| 8119 return new async.Future.value(stringResponse(200, h, resp)); | 8119 return new async.Future.value(stringResponse(200, h, resp)); |
| 8120 }), true); | 8120 }), true); |
| 8121 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync(((api.Profile response) { | 8121 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync1(((api.Profile response) { |
| 8122 checkProfile(response); | 8122 checkProfile(response); |
| 8123 }))); | 8123 }))); |
| 8124 }); | 8124 }); |
| 8125 | 8125 |
| 8126 unittest.test("method--list", () { | 8126 unittest.test("method--list", () { |
| 8127 | 8127 |
| 8128 var mock = new HttpServerMock(); | 8128 var mock = new HttpServerMock(); |
| 8129 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; | 8129 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; |
| 8130 var arg_accountId = "foo"; | 8130 var arg_accountId = "foo"; |
| 8131 var arg_webPropertyId = "foo"; | 8131 var arg_webPropertyId = "foo"; |
| 8132 var arg_max_results = 42; | 8132 var arg_max_results = 42; |
| 8133 var arg_start_index = 42; | 8133 var arg_start_index = 42; |
| 8134 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8134 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8135 var path = (req.url).path; | 8135 var path = (req.url).path; |
| 8136 var pathOffset = 0; | 8136 var pathOffset = 0; |
| 8137 var index; | 8137 var index; |
| 8138 var subPart; | 8138 var subPart; |
| 8139 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8139 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8140 pathOffset += 1; | 8140 pathOffset += 1; |
| 8141 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8141 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 8142 pathOffset += 13; | 8142 pathOffset += 13; |
| 8143 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 8143 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 8144 pathOffset += 20; | 8144 pathOffset += 20; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8176 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 8176 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 8177 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 8177 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 8178 | 8178 |
| 8179 | 8179 |
| 8180 var h = { | 8180 var h = { |
| 8181 "content-type" : "application/json; charset=utf-8", | 8181 "content-type" : "application/json; charset=utf-8", |
| 8182 }; | 8182 }; |
| 8183 var resp = convert.JSON.encode(buildProfiles()); | 8183 var resp = convert.JSON.encode(buildProfiles()); |
| 8184 return new async.Future.value(stringResponse(200, h, resp)); | 8184 return new async.Future.value(stringResponse(200, h, resp)); |
| 8185 }), true); | 8185 }), true); |
| 8186 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync(((api.Profiles response)
{ | 8186 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync1(((api.Profiles response)
{ |
| 8187 checkProfiles(response); | 8187 checkProfiles(response); |
| 8188 }))); | 8188 }))); |
| 8189 }); | 8189 }); |
| 8190 | 8190 |
| 8191 unittest.test("method--patch", () { | 8191 unittest.test("method--patch", () { |
| 8192 | 8192 |
| 8193 var mock = new HttpServerMock(); | 8193 var mock = new HttpServerMock(); |
| 8194 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; | 8194 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; |
| 8195 var arg_request = buildProfile(); | 8195 var arg_request = buildProfile(); |
| 8196 var arg_accountId = "foo"; | 8196 var arg_accountId = "foo"; |
| 8197 var arg_webPropertyId = "foo"; | 8197 var arg_webPropertyId = "foo"; |
| 8198 var arg_profileId = "foo"; | 8198 var arg_profileId = "foo"; |
| 8199 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8199 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8200 var obj = new api.Profile.fromJson(json); | 8200 var obj = new api.Profile.fromJson(json); |
| 8201 checkProfile(obj); | 8201 checkProfile(obj); |
| 8202 | 8202 |
| 8203 var path = (req.url).path; | 8203 var path = (req.url).path; |
| 8204 var pathOffset = 0; | 8204 var pathOffset = 0; |
| 8205 var index; | 8205 var index; |
| 8206 var subPart; | 8206 var subPart; |
| 8207 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8207 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8208 pathOffset += 1; | 8208 pathOffset += 1; |
| 8209 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8209 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8245 } | 8245 } |
| 8246 } | 8246 } |
| 8247 | 8247 |
| 8248 | 8248 |
| 8249 var h = { | 8249 var h = { |
| 8250 "content-type" : "application/json; charset=utf-8", | 8250 "content-type" : "application/json; charset=utf-8", |
| 8251 }; | 8251 }; |
| 8252 var resp = convert.JSON.encode(buildProfile()); | 8252 var resp = convert.JSON.encode(buildProfile()); |
| 8253 return new async.Future.value(stringResponse(200, h, resp)); | 8253 return new async.Future.value(stringResponse(200, h, resp)); |
| 8254 }), true); | 8254 }), true); |
| 8255 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).th
en(unittest.expectAsync(((api.Profile response) { | 8255 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).th
en(unittest.expectAsync1(((api.Profile response) { |
| 8256 checkProfile(response); | 8256 checkProfile(response); |
| 8257 }))); | 8257 }))); |
| 8258 }); | 8258 }); |
| 8259 | 8259 |
| 8260 unittest.test("method--update", () { | 8260 unittest.test("method--update", () { |
| 8261 | 8261 |
| 8262 var mock = new HttpServerMock(); | 8262 var mock = new HttpServerMock(); |
| 8263 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; | 8263 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem
ent.profiles; |
| 8264 var arg_request = buildProfile(); | 8264 var arg_request = buildProfile(); |
| 8265 var arg_accountId = "foo"; | 8265 var arg_accountId = "foo"; |
| 8266 var arg_webPropertyId = "foo"; | 8266 var arg_webPropertyId = "foo"; |
| 8267 var arg_profileId = "foo"; | 8267 var arg_profileId = "foo"; |
| 8268 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8268 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8269 var obj = new api.Profile.fromJson(json); | 8269 var obj = new api.Profile.fromJson(json); |
| 8270 checkProfile(obj); | 8270 checkProfile(obj); |
| 8271 | 8271 |
| 8272 var path = (req.url).path; | 8272 var path = (req.url).path; |
| 8273 var pathOffset = 0; | 8273 var pathOffset = 0; |
| 8274 var index; | 8274 var index; |
| 8275 var subPart; | 8275 var subPart; |
| 8276 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8276 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8277 pathOffset += 1; | 8277 pathOffset += 1; |
| 8278 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8278 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8314 } | 8314 } |
| 8315 } | 8315 } |
| 8316 | 8316 |
| 8317 | 8317 |
| 8318 var h = { | 8318 var h = { |
| 8319 "content-type" : "application/json; charset=utf-8", | 8319 "content-type" : "application/json; charset=utf-8", |
| 8320 }; | 8320 }; |
| 8321 var resp = convert.JSON.encode(buildProfile()); | 8321 var resp = convert.JSON.encode(buildProfile()); |
| 8322 return new async.Future.value(stringResponse(200, h, resp)); | 8322 return new async.Future.value(stringResponse(200, h, resp)); |
| 8323 }), true); | 8323 }), true); |
| 8324 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync(((api.Profile response) { | 8324 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync1(((api.Profile response) { |
| 8325 checkProfile(response); | 8325 checkProfile(response); |
| 8326 }))); | 8326 }))); |
| 8327 }); | 8327 }); |
| 8328 | 8328 |
| 8329 }); | 8329 }); |
| 8330 | 8330 |
| 8331 | 8331 |
| 8332 unittest.group("resource-ManagementRemarketingAudienceResourceApi", () { | 8332 unittest.group("resource-ManagementRemarketingAudienceResourceApi", () { |
| 8333 unittest.test("method--delete", () { | 8333 unittest.test("method--delete", () { |
| 8334 | 8334 |
| 8335 var mock = new HttpServerMock(); | 8335 var mock = new HttpServerMock(); |
| 8336 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; | 8336 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; |
| 8337 var arg_accountId = "foo"; | 8337 var arg_accountId = "foo"; |
| 8338 var arg_webPropertyId = "foo"; | 8338 var arg_webPropertyId = "foo"; |
| 8339 var arg_remarketingAudienceId = "foo"; | 8339 var arg_remarketingAudienceId = "foo"; |
| 8340 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8340 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8341 var path = (req.url).path; | 8341 var path = (req.url).path; |
| 8342 var pathOffset = 0; | 8342 var pathOffset = 0; |
| 8343 var index; | 8343 var index; |
| 8344 var subPart; | 8344 var subPart; |
| 8345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8346 pathOffset += 1; | 8346 pathOffset += 1; |
| 8347 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8347 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 8348 pathOffset += 13; | 8348 pathOffset += 13; |
| 8349 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 8349 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 8350 pathOffset += 20; | 8350 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8383 } | 8383 } |
| 8384 } | 8384 } |
| 8385 | 8385 |
| 8386 | 8386 |
| 8387 var h = { | 8387 var h = { |
| 8388 "content-type" : "application/json; charset=utf-8", | 8388 "content-type" : "application/json; charset=utf-8", |
| 8389 }; | 8389 }; |
| 8390 var resp = ""; | 8390 var resp = ""; |
| 8391 return new async.Future.value(stringResponse(200, h, resp)); | 8391 return new async.Future.value(stringResponse(200, h, resp)); |
| 8392 }), true); | 8392 }), true); |
| 8393 res.delete(arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).th
en(unittest.expectAsync((_) {})); | 8393 res.delete(arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).th
en(unittest.expectAsync1((_) {})); |
| 8394 }); | 8394 }); |
| 8395 | 8395 |
| 8396 unittest.test("method--get", () { | 8396 unittest.test("method--get", () { |
| 8397 | 8397 |
| 8398 var mock = new HttpServerMock(); | 8398 var mock = new HttpServerMock(); |
| 8399 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; | 8399 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; |
| 8400 var arg_accountId = "foo"; | 8400 var arg_accountId = "foo"; |
| 8401 var arg_webPropertyId = "foo"; | 8401 var arg_webPropertyId = "foo"; |
| 8402 var arg_remarketingAudienceId = "foo"; | 8402 var arg_remarketingAudienceId = "foo"; |
| 8403 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8403 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8404 var path = (req.url).path; | 8404 var path = (req.url).path; |
| 8405 var pathOffset = 0; | 8405 var pathOffset = 0; |
| 8406 var index; | 8406 var index; |
| 8407 var subPart; | 8407 var subPart; |
| 8408 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8408 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8409 pathOffset += 1; | 8409 pathOffset += 1; |
| 8410 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8410 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 8411 pathOffset += 13; | 8411 pathOffset += 13; |
| 8412 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 8412 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 8413 pathOffset += 20; | 8413 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8446 } | 8446 } |
| 8447 } | 8447 } |
| 8448 | 8448 |
| 8449 | 8449 |
| 8450 var h = { | 8450 var h = { |
| 8451 "content-type" : "application/json; charset=utf-8", | 8451 "content-type" : "application/json; charset=utf-8", |
| 8452 }; | 8452 }; |
| 8453 var resp = convert.JSON.encode(buildRemarketingAudience()); | 8453 var resp = convert.JSON.encode(buildRemarketingAudience()); |
| 8454 return new async.Future.value(stringResponse(200, h, resp)); | 8454 return new async.Future.value(stringResponse(200, h, resp)); |
| 8455 }), true); | 8455 }), true); |
| 8456 res.get(arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(
unittest.expectAsync(((api.RemarketingAudience response) { | 8456 res.get(arg_accountId, arg_webPropertyId, arg_remarketingAudienceId).then(
unittest.expectAsync1(((api.RemarketingAudience response) { |
| 8457 checkRemarketingAudience(response); | 8457 checkRemarketingAudience(response); |
| 8458 }))); | 8458 }))); |
| 8459 }); | 8459 }); |
| 8460 | 8460 |
| 8461 unittest.test("method--insert", () { | 8461 unittest.test("method--insert", () { |
| 8462 | 8462 |
| 8463 var mock = new HttpServerMock(); | 8463 var mock = new HttpServerMock(); |
| 8464 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; | 8464 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; |
| 8465 var arg_request = buildRemarketingAudience(); | 8465 var arg_request = buildRemarketingAudience(); |
| 8466 var arg_accountId = "foo"; | 8466 var arg_accountId = "foo"; |
| 8467 var arg_webPropertyId = "foo"; | 8467 var arg_webPropertyId = "foo"; |
| 8468 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8468 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8469 var obj = new api.RemarketingAudience.fromJson(json); | 8469 var obj = new api.RemarketingAudience.fromJson(json); |
| 8470 checkRemarketingAudience(obj); | 8470 checkRemarketingAudience(obj); |
| 8471 | 8471 |
| 8472 var path = (req.url).path; | 8472 var path = (req.url).path; |
| 8473 var pathOffset = 0; | 8473 var pathOffset = 0; |
| 8474 var index; | 8474 var index; |
| 8475 var subPart; | 8475 var subPart; |
| 8476 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8476 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8477 pathOffset += 1; | 8477 pathOffset += 1; |
| 8478 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8478 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8511 } | 8511 } |
| 8512 } | 8512 } |
| 8513 | 8513 |
| 8514 | 8514 |
| 8515 var h = { | 8515 var h = { |
| 8516 "content-type" : "application/json; charset=utf-8", | 8516 "content-type" : "application/json; charset=utf-8", |
| 8517 }; | 8517 }; |
| 8518 var resp = convert.JSON.encode(buildRemarketingAudience()); | 8518 var resp = convert.JSON.encode(buildRemarketingAudience()); |
| 8519 return new async.Future.value(stringResponse(200, h, resp)); | 8519 return new async.Future.value(stringResponse(200, h, resp)); |
| 8520 }), true); | 8520 }), true); |
| 8521 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync(((api.RemarketingAudience response) { | 8521 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync1(((api.RemarketingAudience response) { |
| 8522 checkRemarketingAudience(response); | 8522 checkRemarketingAudience(response); |
| 8523 }))); | 8523 }))); |
| 8524 }); | 8524 }); |
| 8525 | 8525 |
| 8526 unittest.test("method--list", () { | 8526 unittest.test("method--list", () { |
| 8527 | 8527 |
| 8528 var mock = new HttpServerMock(); | 8528 var mock = new HttpServerMock(); |
| 8529 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; | 8529 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; |
| 8530 var arg_accountId = "foo"; | 8530 var arg_accountId = "foo"; |
| 8531 var arg_webPropertyId = "foo"; | 8531 var arg_webPropertyId = "foo"; |
| 8532 var arg_max_results = 42; | 8532 var arg_max_results = 42; |
| 8533 var arg_start_index = 42; | 8533 var arg_start_index = 42; |
| 8534 var arg_type = "foo"; | 8534 var arg_type = "foo"; |
| 8535 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8535 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8536 var path = (req.url).path; | 8536 var path = (req.url).path; |
| 8537 var pathOffset = 0; | 8537 var pathOffset = 0; |
| 8538 var index; | 8538 var index; |
| 8539 var subPart; | 8539 var subPart; |
| 8540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8541 pathOffset += 1; | 8541 pathOffset += 1; |
| 8542 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8542 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 8543 pathOffset += 13; | 8543 pathOffset += 13; |
| 8544 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 8544 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 8545 pathOffset += 20; | 8545 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8578 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 8578 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 8579 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); | 8579 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); |
| 8580 | 8580 |
| 8581 | 8581 |
| 8582 var h = { | 8582 var h = { |
| 8583 "content-type" : "application/json; charset=utf-8", | 8583 "content-type" : "application/json; charset=utf-8", |
| 8584 }; | 8584 }; |
| 8585 var resp = convert.JSON.encode(buildRemarketingAudiences()); | 8585 var resp = convert.JSON.encode(buildRemarketingAudiences()); |
| 8586 return new async.Future.value(stringResponse(200, h, resp)); | 8586 return new async.Future.value(stringResponse(200, h, resp)); |
| 8587 }), true); | 8587 }), true); |
| 8588 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index, type: arg_type).then(unittest.expectAsync(((api.Rem
arketingAudiences response) { | 8588 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index, type: arg_type).then(unittest.expectAsync1(((api.Re
marketingAudiences response) { |
| 8589 checkRemarketingAudiences(response); | 8589 checkRemarketingAudiences(response); |
| 8590 }))); | 8590 }))); |
| 8591 }); | 8591 }); |
| 8592 | 8592 |
| 8593 unittest.test("method--patch", () { | 8593 unittest.test("method--patch", () { |
| 8594 | 8594 |
| 8595 var mock = new HttpServerMock(); | 8595 var mock = new HttpServerMock(); |
| 8596 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; | 8596 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; |
| 8597 var arg_request = buildRemarketingAudience(); | 8597 var arg_request = buildRemarketingAudience(); |
| 8598 var arg_accountId = "foo"; | 8598 var arg_accountId = "foo"; |
| 8599 var arg_webPropertyId = "foo"; | 8599 var arg_webPropertyId = "foo"; |
| 8600 var arg_remarketingAudienceId = "foo"; | 8600 var arg_remarketingAudienceId = "foo"; |
| 8601 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8601 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8602 var obj = new api.RemarketingAudience.fromJson(json); | 8602 var obj = new api.RemarketingAudience.fromJson(json); |
| 8603 checkRemarketingAudience(obj); | 8603 checkRemarketingAudience(obj); |
| 8604 | 8604 |
| 8605 var path = (req.url).path; | 8605 var path = (req.url).path; |
| 8606 var pathOffset = 0; | 8606 var pathOffset = 0; |
| 8607 var index; | 8607 var index; |
| 8608 var subPart; | 8608 var subPart; |
| 8609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8610 pathOffset += 1; | 8610 pathOffset += 1; |
| 8611 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8611 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8647 } | 8647 } |
| 8648 } | 8648 } |
| 8649 | 8649 |
| 8650 | 8650 |
| 8651 var h = { | 8651 var h = { |
| 8652 "content-type" : "application/json; charset=utf-8", | 8652 "content-type" : "application/json; charset=utf-8", |
| 8653 }; | 8653 }; |
| 8654 var resp = convert.JSON.encode(buildRemarketingAudience()); | 8654 var resp = convert.JSON.encode(buildRemarketingAudience()); |
| 8655 return new async.Future.value(stringResponse(200, h, resp)); | 8655 return new async.Future.value(stringResponse(200, h, resp)); |
| 8656 }), true); | 8656 }), true); |
| 8657 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_remarketingAu
dienceId).then(unittest.expectAsync(((api.RemarketingAudience response) { | 8657 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_remarketingAu
dienceId).then(unittest.expectAsync1(((api.RemarketingAudience response) { |
| 8658 checkRemarketingAudience(response); | 8658 checkRemarketingAudience(response); |
| 8659 }))); | 8659 }))); |
| 8660 }); | 8660 }); |
| 8661 | 8661 |
| 8662 unittest.test("method--update", () { | 8662 unittest.test("method--update", () { |
| 8663 | 8663 |
| 8664 var mock = new HttpServerMock(); | 8664 var mock = new HttpServerMock(); |
| 8665 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; | 8665 api.ManagementRemarketingAudienceResourceApi res = new api.AnalyticsApi(mo
ck).management.remarketingAudience; |
| 8666 var arg_request = buildRemarketingAudience(); | 8666 var arg_request = buildRemarketingAudience(); |
| 8667 var arg_accountId = "foo"; | 8667 var arg_accountId = "foo"; |
| 8668 var arg_webPropertyId = "foo"; | 8668 var arg_webPropertyId = "foo"; |
| 8669 var arg_remarketingAudienceId = "foo"; | 8669 var arg_remarketingAudienceId = "foo"; |
| 8670 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8670 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8671 var obj = new api.RemarketingAudience.fromJson(json); | 8671 var obj = new api.RemarketingAudience.fromJson(json); |
| 8672 checkRemarketingAudience(obj); | 8672 checkRemarketingAudience(obj); |
| 8673 | 8673 |
| 8674 var path = (req.url).path; | 8674 var path = (req.url).path; |
| 8675 var pathOffset = 0; | 8675 var pathOffset = 0; |
| 8676 var index; | 8676 var index; |
| 8677 var subPart; | 8677 var subPart; |
| 8678 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8678 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8679 pathOffset += 1; | 8679 pathOffset += 1; |
| 8680 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8680 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8716 } | 8716 } |
| 8717 } | 8717 } |
| 8718 | 8718 |
| 8719 | 8719 |
| 8720 var h = { | 8720 var h = { |
| 8721 "content-type" : "application/json; charset=utf-8", | 8721 "content-type" : "application/json; charset=utf-8", |
| 8722 }; | 8722 }; |
| 8723 var resp = convert.JSON.encode(buildRemarketingAudience()); | 8723 var resp = convert.JSON.encode(buildRemarketingAudience()); |
| 8724 return new async.Future.value(stringResponse(200, h, resp)); | 8724 return new async.Future.value(stringResponse(200, h, resp)); |
| 8725 }), true); | 8725 }), true); |
| 8726 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_remarketingA
udienceId).then(unittest.expectAsync(((api.RemarketingAudience response) { | 8726 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_remarketingA
udienceId).then(unittest.expectAsync1(((api.RemarketingAudience response) { |
| 8727 checkRemarketingAudience(response); | 8727 checkRemarketingAudience(response); |
| 8728 }))); | 8728 }))); |
| 8729 }); | 8729 }); |
| 8730 | 8730 |
| 8731 }); | 8731 }); |
| 8732 | 8732 |
| 8733 | 8733 |
| 8734 unittest.group("resource-ManagementSegmentsResourceApi", () { | 8734 unittest.group("resource-ManagementSegmentsResourceApi", () { |
| 8735 unittest.test("method--list", () { | 8735 unittest.test("method--list", () { |
| 8736 | 8736 |
| 8737 var mock = new HttpServerMock(); | 8737 var mock = new HttpServerMock(); |
| 8738 api.ManagementSegmentsResourceApi res = new api.AnalyticsApi(mock).managem
ent.segments; | 8738 api.ManagementSegmentsResourceApi res = new api.AnalyticsApi(mock).managem
ent.segments; |
| 8739 var arg_max_results = 42; | 8739 var arg_max_results = 42; |
| 8740 var arg_start_index = 42; | 8740 var arg_start_index = 42; |
| 8741 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8741 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8742 var path = (req.url).path; | 8742 var path = (req.url).path; |
| 8743 var pathOffset = 0; | 8743 var pathOffset = 0; |
| 8744 var index; | 8744 var index; |
| 8745 var subPart; | 8745 var subPart; |
| 8746 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8746 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8747 pathOffset += 1; | 8747 pathOffset += 1; |
| 8748 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8748 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 8749 pathOffset += 13; | 8749 pathOffset += 13; |
| 8750 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("management/segments")); | 8750 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("management/segments")); |
| 8751 pathOffset += 19; | 8751 pathOffset += 19; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 8769 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 8769 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 8770 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 8770 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 8771 | 8771 |
| 8772 | 8772 |
| 8773 var h = { | 8773 var h = { |
| 8774 "content-type" : "application/json; charset=utf-8", | 8774 "content-type" : "application/json; charset=utf-8", |
| 8775 }; | 8775 }; |
| 8776 var resp = convert.JSON.encode(buildSegments()); | 8776 var resp = convert.JSON.encode(buildSegments()); |
| 8777 return new async.Future.value(stringResponse(200, h, resp)); | 8777 return new async.Future.value(stringResponse(200, h, resp)); |
| 8778 }), true); | 8778 }), true); |
| 8779 res.list(max_results: arg_max_results, start_index: arg_start_index).then(
unittest.expectAsync(((api.Segments response) { | 8779 res.list(max_results: arg_max_results, start_index: arg_start_index).then(
unittest.expectAsync1(((api.Segments response) { |
| 8780 checkSegments(response); | 8780 checkSegments(response); |
| 8781 }))); | 8781 }))); |
| 8782 }); | 8782 }); |
| 8783 | 8783 |
| 8784 }); | 8784 }); |
| 8785 | 8785 |
| 8786 | 8786 |
| 8787 unittest.group("resource-ManagementUnsampledReportsResourceApi", () { | 8787 unittest.group("resource-ManagementUnsampledReportsResourceApi", () { |
| 8788 unittest.test("method--delete", () { | 8788 unittest.test("method--delete", () { |
| 8789 | 8789 |
| 8790 var mock = new HttpServerMock(); | 8790 var mock = new HttpServerMock(); |
| 8791 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock)
.management.unsampledReports; | 8791 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock)
.management.unsampledReports; |
| 8792 var arg_accountId = "foo"; | 8792 var arg_accountId = "foo"; |
| 8793 var arg_webPropertyId = "foo"; | 8793 var arg_webPropertyId = "foo"; |
| 8794 var arg_profileId = "foo"; | 8794 var arg_profileId = "foo"; |
| 8795 var arg_unsampledReportId = "foo"; | 8795 var arg_unsampledReportId = "foo"; |
| 8796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8796 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8797 var path = (req.url).path; | 8797 var path = (req.url).path; |
| 8798 var pathOffset = 0; | 8798 var pathOffset = 0; |
| 8799 var index; | 8799 var index; |
| 8800 var subPart; | 8800 var subPart; |
| 8801 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8801 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8802 pathOffset += 1; | 8802 pathOffset += 1; |
| 8803 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8803 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 8804 pathOffset += 13; | 8804 pathOffset += 13; |
| 8805 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 8805 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 8806 pathOffset += 20; | 8806 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8846 } | 8846 } |
| 8847 } | 8847 } |
| 8848 | 8848 |
| 8849 | 8849 |
| 8850 var h = { | 8850 var h = { |
| 8851 "content-type" : "application/json; charset=utf-8", | 8851 "content-type" : "application/json; charset=utf-8", |
| 8852 }; | 8852 }; |
| 8853 var resp = ""; | 8853 var resp = ""; |
| 8854 return new async.Future.value(stringResponse(200, h, resp)); | 8854 return new async.Future.value(stringResponse(200, h, resp)); |
| 8855 }), true); | 8855 }), true); |
| 8856 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledR
eportId).then(unittest.expectAsync((_) {})); | 8856 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledR
eportId).then(unittest.expectAsync1((_) {})); |
| 8857 }); | 8857 }); |
| 8858 | 8858 |
| 8859 unittest.test("method--get", () { | 8859 unittest.test("method--get", () { |
| 8860 | 8860 |
| 8861 var mock = new HttpServerMock(); | 8861 var mock = new HttpServerMock(); |
| 8862 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock)
.management.unsampledReports; | 8862 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock)
.management.unsampledReports; |
| 8863 var arg_accountId = "foo"; | 8863 var arg_accountId = "foo"; |
| 8864 var arg_webPropertyId = "foo"; | 8864 var arg_webPropertyId = "foo"; |
| 8865 var arg_profileId = "foo"; | 8865 var arg_profileId = "foo"; |
| 8866 var arg_unsampledReportId = "foo"; | 8866 var arg_unsampledReportId = "foo"; |
| 8867 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8867 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8868 var path = (req.url).path; | 8868 var path = (req.url).path; |
| 8869 var pathOffset = 0; | 8869 var pathOffset = 0; |
| 8870 var index; | 8870 var index; |
| 8871 var subPart; | 8871 var subPart; |
| 8872 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8872 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8873 pathOffset += 1; | 8873 pathOffset += 1; |
| 8874 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8874 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 8875 pathOffset += 13; | 8875 pathOffset += 13; |
| 8876 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 8876 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 8877 pathOffset += 20; | 8877 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8917 } | 8917 } |
| 8918 } | 8918 } |
| 8919 | 8919 |
| 8920 | 8920 |
| 8921 var h = { | 8921 var h = { |
| 8922 "content-type" : "application/json; charset=utf-8", | 8922 "content-type" : "application/json; charset=utf-8", |
| 8923 }; | 8923 }; |
| 8924 var resp = convert.JSON.encode(buildUnsampledReport()); | 8924 var resp = convert.JSON.encode(buildUnsampledReport()); |
| 8925 return new async.Future.value(stringResponse(200, h, resp)); | 8925 return new async.Future.value(stringResponse(200, h, resp)); |
| 8926 }), true); | 8926 }), true); |
| 8927 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledRepo
rtId).then(unittest.expectAsync(((api.UnsampledReport response) { | 8927 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledRepo
rtId).then(unittest.expectAsync1(((api.UnsampledReport response) { |
| 8928 checkUnsampledReport(response); | 8928 checkUnsampledReport(response); |
| 8929 }))); | 8929 }))); |
| 8930 }); | 8930 }); |
| 8931 | 8931 |
| 8932 unittest.test("method--insert", () { | 8932 unittest.test("method--insert", () { |
| 8933 | 8933 |
| 8934 var mock = new HttpServerMock(); | 8934 var mock = new HttpServerMock(); |
| 8935 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock)
.management.unsampledReports; | 8935 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock)
.management.unsampledReports; |
| 8936 var arg_request = buildUnsampledReport(); | 8936 var arg_request = buildUnsampledReport(); |
| 8937 var arg_accountId = "foo"; | 8937 var arg_accountId = "foo"; |
| 8938 var arg_webPropertyId = "foo"; | 8938 var arg_webPropertyId = "foo"; |
| 8939 var arg_profileId = "foo"; | 8939 var arg_profileId = "foo"; |
| 8940 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8940 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 8941 var obj = new api.UnsampledReport.fromJson(json); | 8941 var obj = new api.UnsampledReport.fromJson(json); |
| 8942 checkUnsampledReport(obj); | 8942 checkUnsampledReport(obj); |
| 8943 | 8943 |
| 8944 var path = (req.url).path; | 8944 var path = (req.url).path; |
| 8945 var pathOffset = 0; | 8945 var pathOffset = 0; |
| 8946 var index; | 8946 var index; |
| 8947 var subPart; | 8947 var subPart; |
| 8948 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8948 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8949 pathOffset += 1; | 8949 pathOffset += 1; |
| 8950 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 8950 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8990 } | 8990 } |
| 8991 } | 8991 } |
| 8992 | 8992 |
| 8993 | 8993 |
| 8994 var h = { | 8994 var h = { |
| 8995 "content-type" : "application/json; charset=utf-8", | 8995 "content-type" : "application/json; charset=utf-8", |
| 8996 }; | 8996 }; |
| 8997 var resp = convert.JSON.encode(buildUnsampledReport()); | 8997 var resp = convert.JSON.encode(buildUnsampledReport()); |
| 8998 return new async.Future.value(stringResponse(200, h, resp)); | 8998 return new async.Future.value(stringResponse(200, h, resp)); |
| 8999 }), true); | 8999 }), true); |
| 9000 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync(((api.UnsampledReport response) { | 9000 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t
hen(unittest.expectAsync1(((api.UnsampledReport response) { |
| 9001 checkUnsampledReport(response); | 9001 checkUnsampledReport(response); |
| 9002 }))); | 9002 }))); |
| 9003 }); | 9003 }); |
| 9004 | 9004 |
| 9005 unittest.test("method--list", () { | 9005 unittest.test("method--list", () { |
| 9006 | 9006 |
| 9007 var mock = new HttpServerMock(); | 9007 var mock = new HttpServerMock(); |
| 9008 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock)
.management.unsampledReports; | 9008 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock)
.management.unsampledReports; |
| 9009 var arg_accountId = "foo"; | 9009 var arg_accountId = "foo"; |
| 9010 var arg_webPropertyId = "foo"; | 9010 var arg_webPropertyId = "foo"; |
| 9011 var arg_profileId = "foo"; | 9011 var arg_profileId = "foo"; |
| 9012 var arg_max_results = 42; | 9012 var arg_max_results = 42; |
| 9013 var arg_start_index = 42; | 9013 var arg_start_index = 42; |
| 9014 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9014 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9015 var path = (req.url).path; | 9015 var path = (req.url).path; |
| 9016 var pathOffset = 0; | 9016 var pathOffset = 0; |
| 9017 var index; | 9017 var index; |
| 9018 var subPart; | 9018 var subPart; |
| 9019 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9019 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9020 pathOffset += 1; | 9020 pathOffset += 1; |
| 9021 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9021 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9022 pathOffset += 13; | 9022 pathOffset += 13; |
| 9023 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9023 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9024 pathOffset += 20; | 9024 pathOffset += 20; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9063 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 9063 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 9064 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 9064 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 9065 | 9065 |
| 9066 | 9066 |
| 9067 var h = { | 9067 var h = { |
| 9068 "content-type" : "application/json; charset=utf-8", | 9068 "content-type" : "application/json; charset=utf-8", |
| 9069 }; | 9069 }; |
| 9070 var resp = convert.JSON.encode(buildUnsampledReports()); | 9070 var resp = convert.JSON.encode(buildUnsampledReports()); |
| 9071 return new async.Future.value(stringResponse(200, h, resp)); | 9071 return new async.Future.value(stringResponse(200, h, resp)); |
| 9072 }), true); | 9072 }), true); |
| 9073 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Unsa
mpledReports response) { | 9073 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg
_max_results, start_index: arg_start_index).then(unittest.expectAsync1(((api.Uns
ampledReports response) { |
| 9074 checkUnsampledReports(response); | 9074 checkUnsampledReports(response); |
| 9075 }))); | 9075 }))); |
| 9076 }); | 9076 }); |
| 9077 | 9077 |
| 9078 }); | 9078 }); |
| 9079 | 9079 |
| 9080 | 9080 |
| 9081 unittest.group("resource-ManagementUploadsResourceApi", () { | 9081 unittest.group("resource-ManagementUploadsResourceApi", () { |
| 9082 unittest.test("method--deleteUploadData", () { | 9082 unittest.test("method--deleteUploadData", () { |
| 9083 | 9083 |
| 9084 var mock = new HttpServerMock(); | 9084 var mock = new HttpServerMock(); |
| 9085 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme
nt.uploads; | 9085 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme
nt.uploads; |
| 9086 var arg_request = buildAnalyticsDataimportDeleteUploadDataRequest(); | 9086 var arg_request = buildAnalyticsDataimportDeleteUploadDataRequest(); |
| 9087 var arg_accountId = "foo"; | 9087 var arg_accountId = "foo"; |
| 9088 var arg_webPropertyId = "foo"; | 9088 var arg_webPropertyId = "foo"; |
| 9089 var arg_customDataSourceId = "foo"; | 9089 var arg_customDataSourceId = "foo"; |
| 9090 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9090 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9091 var obj = new api.AnalyticsDataimportDeleteUploadDataRequest.fromJson(js
on); | 9091 var obj = new api.AnalyticsDataimportDeleteUploadDataRequest.fromJson(js
on); |
| 9092 checkAnalyticsDataimportDeleteUploadDataRequest(obj); | 9092 checkAnalyticsDataimportDeleteUploadDataRequest(obj); |
| 9093 | 9093 |
| 9094 var path = (req.url).path; | 9094 var path = (req.url).path; |
| 9095 var pathOffset = 0; | 9095 var pathOffset = 0; |
| 9096 var index; | 9096 var index; |
| 9097 var subPart; | 9097 var subPart; |
| 9098 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9098 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9099 pathOffset += 1; | 9099 pathOffset += 1; |
| 9100 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9100 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9140 } | 9140 } |
| 9141 } | 9141 } |
| 9142 | 9142 |
| 9143 | 9143 |
| 9144 var h = { | 9144 var h = { |
| 9145 "content-type" : "application/json; charset=utf-8", | 9145 "content-type" : "application/json; charset=utf-8", |
| 9146 }; | 9146 }; |
| 9147 var resp = ""; | 9147 var resp = ""; |
| 9148 return new async.Future.value(stringResponse(200, h, resp)); | 9148 return new async.Future.value(stringResponse(200, h, resp)); |
| 9149 }), true); | 9149 }), true); |
| 9150 res.deleteUploadData(arg_request, arg_accountId, arg_webPropertyId, arg_cu
stomDataSourceId).then(unittest.expectAsync((_) {})); | 9150 res.deleteUploadData(arg_request, arg_accountId, arg_webPropertyId, arg_cu
stomDataSourceId).then(unittest.expectAsync1((_) {})); |
| 9151 }); | 9151 }); |
| 9152 | 9152 |
| 9153 unittest.test("method--get", () { | 9153 unittest.test("method--get", () { |
| 9154 | 9154 |
| 9155 var mock = new HttpServerMock(); | 9155 var mock = new HttpServerMock(); |
| 9156 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme
nt.uploads; | 9156 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme
nt.uploads; |
| 9157 var arg_accountId = "foo"; | 9157 var arg_accountId = "foo"; |
| 9158 var arg_webPropertyId = "foo"; | 9158 var arg_webPropertyId = "foo"; |
| 9159 var arg_customDataSourceId = "foo"; | 9159 var arg_customDataSourceId = "foo"; |
| 9160 var arg_uploadId = "foo"; | 9160 var arg_uploadId = "foo"; |
| 9161 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9161 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9162 var path = (req.url).path; | 9162 var path = (req.url).path; |
| 9163 var pathOffset = 0; | 9163 var pathOffset = 0; |
| 9164 var index; | 9164 var index; |
| 9165 var subPart; | 9165 var subPart; |
| 9166 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9166 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9167 pathOffset += 1; | 9167 pathOffset += 1; |
| 9168 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9168 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9169 pathOffset += 13; | 9169 pathOffset += 13; |
| 9170 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9170 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9171 pathOffset += 20; | 9171 pathOffset += 20; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9211 } | 9211 } |
| 9212 } | 9212 } |
| 9213 | 9213 |
| 9214 | 9214 |
| 9215 var h = { | 9215 var h = { |
| 9216 "content-type" : "application/json; charset=utf-8", | 9216 "content-type" : "application/json; charset=utf-8", |
| 9217 }; | 9217 }; |
| 9218 var resp = convert.JSON.encode(buildUpload()); | 9218 var resp = convert.JSON.encode(buildUpload()); |
| 9219 return new async.Future.value(stringResponse(200, h, resp)); | 9219 return new async.Future.value(stringResponse(200, h, resp)); |
| 9220 }), true); | 9220 }), true); |
| 9221 res.get(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_uplo
adId).then(unittest.expectAsync(((api.Upload response) { | 9221 res.get(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_uplo
adId).then(unittest.expectAsync1(((api.Upload response) { |
| 9222 checkUpload(response); | 9222 checkUpload(response); |
| 9223 }))); | 9223 }))); |
| 9224 }); | 9224 }); |
| 9225 | 9225 |
| 9226 unittest.test("method--list", () { | 9226 unittest.test("method--list", () { |
| 9227 | 9227 |
| 9228 var mock = new HttpServerMock(); | 9228 var mock = new HttpServerMock(); |
| 9229 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme
nt.uploads; | 9229 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme
nt.uploads; |
| 9230 var arg_accountId = "foo"; | 9230 var arg_accountId = "foo"; |
| 9231 var arg_webPropertyId = "foo"; | 9231 var arg_webPropertyId = "foo"; |
| 9232 var arg_customDataSourceId = "foo"; | 9232 var arg_customDataSourceId = "foo"; |
| 9233 var arg_max_results = 42; | 9233 var arg_max_results = 42; |
| 9234 var arg_start_index = 42; | 9234 var arg_start_index = 42; |
| 9235 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9235 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9236 var path = (req.url).path; | 9236 var path = (req.url).path; |
| 9237 var pathOffset = 0; | 9237 var pathOffset = 0; |
| 9238 var index; | 9238 var index; |
| 9239 var subPart; | 9239 var subPart; |
| 9240 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9240 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9241 pathOffset += 1; | 9241 pathOffset += 1; |
| 9242 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9242 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9243 pathOffset += 13; | 9243 pathOffset += 13; |
| 9244 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9244 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9245 pathOffset += 20; | 9245 pathOffset += 20; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9284 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 9284 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 9285 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 9285 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 9286 | 9286 |
| 9287 | 9287 |
| 9288 var h = { | 9288 var h = { |
| 9289 "content-type" : "application/json; charset=utf-8", | 9289 "content-type" : "application/json; charset=utf-8", |
| 9290 }; | 9290 }; |
| 9291 var resp = convert.JSON.encode(buildUploads()); | 9291 var resp = convert.JSON.encode(buildUploads()); |
| 9292 return new async.Future.value(stringResponse(200, h, resp)); | 9292 return new async.Future.value(stringResponse(200, h, resp)); |
| 9293 }), true); | 9293 }), true); |
| 9294 res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, max_res
ults: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync((
(api.Uploads response) { | 9294 res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, max_res
ults: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync1(
((api.Uploads response) { |
| 9295 checkUploads(response); | 9295 checkUploads(response); |
| 9296 }))); | 9296 }))); |
| 9297 }); | 9297 }); |
| 9298 | 9298 |
| 9299 unittest.test("method--uploadData", () { | 9299 unittest.test("method--uploadData", () { |
| 9300 // TODO: Implement tests for media upload; | 9300 // TODO: Implement tests for media upload; |
| 9301 // TODO: Implement tests for media download; | 9301 // TODO: Implement tests for media download; |
| 9302 | 9302 |
| 9303 var mock = new HttpServerMock(); | 9303 var mock = new HttpServerMock(); |
| 9304 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme
nt.uploads; | 9304 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme
nt.uploads; |
| 9305 var arg_accountId = "foo"; | 9305 var arg_accountId = "foo"; |
| 9306 var arg_webPropertyId = "foo"; | 9306 var arg_webPropertyId = "foo"; |
| 9307 var arg_customDataSourceId = "foo"; | 9307 var arg_customDataSourceId = "foo"; |
| 9308 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9308 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9309 var path = (req.url).path; | 9309 var path = (req.url).path; |
| 9310 var pathOffset = 0; | 9310 var pathOffset = 0; |
| 9311 var index; | 9311 var index; |
| 9312 var subPart; | 9312 var subPart; |
| 9313 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9313 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9314 pathOffset += 1; | 9314 pathOffset += 1; |
| 9315 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9315 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9316 pathOffset += 13; | 9316 pathOffset += 13; |
| 9317 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9317 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9318 pathOffset += 20; | 9318 pathOffset += 20; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9355 } | 9355 } |
| 9356 } | 9356 } |
| 9357 | 9357 |
| 9358 | 9358 |
| 9359 var h = { | 9359 var h = { |
| 9360 "content-type" : "application/json; charset=utf-8", | 9360 "content-type" : "application/json; charset=utf-8", |
| 9361 }; | 9361 }; |
| 9362 var resp = convert.JSON.encode(buildUpload()); | 9362 var resp = convert.JSON.encode(buildUpload()); |
| 9363 return new async.Future.value(stringResponse(200, h, resp)); | 9363 return new async.Future.value(stringResponse(200, h, resp)); |
| 9364 }), true); | 9364 }), true); |
| 9365 res.uploadData(arg_accountId, arg_webPropertyId, arg_customDataSourceId).t
hen(unittest.expectAsync(((api.Upload response) { | 9365 res.uploadData(arg_accountId, arg_webPropertyId, arg_customDataSourceId).t
hen(unittest.expectAsync1(((api.Upload response) { |
| 9366 checkUpload(response); | 9366 checkUpload(response); |
| 9367 }))); | 9367 }))); |
| 9368 }); | 9368 }); |
| 9369 | 9369 |
| 9370 }); | 9370 }); |
| 9371 | 9371 |
| 9372 | 9372 |
| 9373 unittest.group("resource-ManagementWebPropertyAdWordsLinksResourceApi", () { | 9373 unittest.group("resource-ManagementWebPropertyAdWordsLinksResourceApi", () { |
| 9374 unittest.test("method--delete", () { | 9374 unittest.test("method--delete", () { |
| 9375 | 9375 |
| 9376 var mock = new HttpServerMock(); | 9376 var mock = new HttpServerMock(); |
| 9377 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; | 9377 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; |
| 9378 var arg_accountId = "foo"; | 9378 var arg_accountId = "foo"; |
| 9379 var arg_webPropertyId = "foo"; | 9379 var arg_webPropertyId = "foo"; |
| 9380 var arg_webPropertyAdWordsLinkId = "foo"; | 9380 var arg_webPropertyAdWordsLinkId = "foo"; |
| 9381 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9381 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9382 var path = (req.url).path; | 9382 var path = (req.url).path; |
| 9383 var pathOffset = 0; | 9383 var pathOffset = 0; |
| 9384 var index; | 9384 var index; |
| 9385 var subPart; | 9385 var subPart; |
| 9386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9387 pathOffset += 1; | 9387 pathOffset += 1; |
| 9388 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9388 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9389 pathOffset += 13; | 9389 pathOffset += 13; |
| 9390 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9390 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9391 pathOffset += 20; | 9391 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9424 } | 9424 } |
| 9425 } | 9425 } |
| 9426 | 9426 |
| 9427 | 9427 |
| 9428 var h = { | 9428 var h = { |
| 9429 "content-type" : "application/json; charset=utf-8", | 9429 "content-type" : "application/json; charset=utf-8", |
| 9430 }; | 9430 }; |
| 9431 var resp = ""; | 9431 var resp = ""; |
| 9432 return new async.Future.value(stringResponse(200, h, resp)); | 9432 return new async.Future.value(stringResponse(200, h, resp)); |
| 9433 }), true); | 9433 }), true); |
| 9434 res.delete(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId)
.then(unittest.expectAsync((_) {})); | 9434 res.delete(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId)
.then(unittest.expectAsync1((_) {})); |
| 9435 }); | 9435 }); |
| 9436 | 9436 |
| 9437 unittest.test("method--get", () { | 9437 unittest.test("method--get", () { |
| 9438 | 9438 |
| 9439 var mock = new HttpServerMock(); | 9439 var mock = new HttpServerMock(); |
| 9440 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; | 9440 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; |
| 9441 var arg_accountId = "foo"; | 9441 var arg_accountId = "foo"; |
| 9442 var arg_webPropertyId = "foo"; | 9442 var arg_webPropertyId = "foo"; |
| 9443 var arg_webPropertyAdWordsLinkId = "foo"; | 9443 var arg_webPropertyAdWordsLinkId = "foo"; |
| 9444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9444 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9445 var path = (req.url).path; | 9445 var path = (req.url).path; |
| 9446 var pathOffset = 0; | 9446 var pathOffset = 0; |
| 9447 var index; | 9447 var index; |
| 9448 var subPart; | 9448 var subPart; |
| 9449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9450 pathOffset += 1; | 9450 pathOffset += 1; |
| 9451 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9451 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9452 pathOffset += 13; | 9452 pathOffset += 13; |
| 9453 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9453 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9454 pathOffset += 20; | 9454 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9487 } | 9487 } |
| 9488 } | 9488 } |
| 9489 | 9489 |
| 9490 | 9490 |
| 9491 var h = { | 9491 var h = { |
| 9492 "content-type" : "application/json; charset=utf-8", | 9492 "content-type" : "application/json; charset=utf-8", |
| 9493 }; | 9493 }; |
| 9494 var resp = convert.JSON.encode(buildEntityAdWordsLink()); | 9494 var resp = convert.JSON.encode(buildEntityAdWordsLink()); |
| 9495 return new async.Future.value(stringResponse(200, h, resp)); | 9495 return new async.Future.value(stringResponse(200, h, resp)); |
| 9496 }), true); | 9496 }), true); |
| 9497 res.get(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).th
en(unittest.expectAsync(((api.EntityAdWordsLink response) { | 9497 res.get(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).th
en(unittest.expectAsync1(((api.EntityAdWordsLink response) { |
| 9498 checkEntityAdWordsLink(response); | 9498 checkEntityAdWordsLink(response); |
| 9499 }))); | 9499 }))); |
| 9500 }); | 9500 }); |
| 9501 | 9501 |
| 9502 unittest.test("method--insert", () { | 9502 unittest.test("method--insert", () { |
| 9503 | 9503 |
| 9504 var mock = new HttpServerMock(); | 9504 var mock = new HttpServerMock(); |
| 9505 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; | 9505 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; |
| 9506 var arg_request = buildEntityAdWordsLink(); | 9506 var arg_request = buildEntityAdWordsLink(); |
| 9507 var arg_accountId = "foo"; | 9507 var arg_accountId = "foo"; |
| 9508 var arg_webPropertyId = "foo"; | 9508 var arg_webPropertyId = "foo"; |
| 9509 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9509 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9510 var obj = new api.EntityAdWordsLink.fromJson(json); | 9510 var obj = new api.EntityAdWordsLink.fromJson(json); |
| 9511 checkEntityAdWordsLink(obj); | 9511 checkEntityAdWordsLink(obj); |
| 9512 | 9512 |
| 9513 var path = (req.url).path; | 9513 var path = (req.url).path; |
| 9514 var pathOffset = 0; | 9514 var pathOffset = 0; |
| 9515 var index; | 9515 var index; |
| 9516 var subPart; | 9516 var subPart; |
| 9517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9518 pathOffset += 1; | 9518 pathOffset += 1; |
| 9519 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9519 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9552 } | 9552 } |
| 9553 } | 9553 } |
| 9554 | 9554 |
| 9555 | 9555 |
| 9556 var h = { | 9556 var h = { |
| 9557 "content-type" : "application/json; charset=utf-8", | 9557 "content-type" : "application/json; charset=utf-8", |
| 9558 }; | 9558 }; |
| 9559 var resp = convert.JSON.encode(buildEntityAdWordsLink()); | 9559 var resp = convert.JSON.encode(buildEntityAdWordsLink()); |
| 9560 return new async.Future.value(stringResponse(200, h, resp)); | 9560 return new async.Future.value(stringResponse(200, h, resp)); |
| 9561 }), true); | 9561 }), true); |
| 9562 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync(((api.EntityAdWordsLink response) { | 9562 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync1(((api.EntityAdWordsLink response) { |
| 9563 checkEntityAdWordsLink(response); | 9563 checkEntityAdWordsLink(response); |
| 9564 }))); | 9564 }))); |
| 9565 }); | 9565 }); |
| 9566 | 9566 |
| 9567 unittest.test("method--list", () { | 9567 unittest.test("method--list", () { |
| 9568 | 9568 |
| 9569 var mock = new HttpServerMock(); | 9569 var mock = new HttpServerMock(); |
| 9570 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; | 9570 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; |
| 9571 var arg_accountId = "foo"; | 9571 var arg_accountId = "foo"; |
| 9572 var arg_webPropertyId = "foo"; | 9572 var arg_webPropertyId = "foo"; |
| 9573 var arg_max_results = 42; | 9573 var arg_max_results = 42; |
| 9574 var arg_start_index = 42; | 9574 var arg_start_index = 42; |
| 9575 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9575 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9576 var path = (req.url).path; | 9576 var path = (req.url).path; |
| 9577 var pathOffset = 0; | 9577 var pathOffset = 0; |
| 9578 var index; | 9578 var index; |
| 9579 var subPart; | 9579 var subPart; |
| 9580 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9580 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9581 pathOffset += 1; | 9581 pathOffset += 1; |
| 9582 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9582 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9583 pathOffset += 13; | 9583 pathOffset += 13; |
| 9584 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9584 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9585 pathOffset += 20; | 9585 pathOffset += 20; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9617 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 9617 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 9618 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 9618 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 9619 | 9619 |
| 9620 | 9620 |
| 9621 var h = { | 9621 var h = { |
| 9622 "content-type" : "application/json; charset=utf-8", | 9622 "content-type" : "application/json; charset=utf-8", |
| 9623 }; | 9623 }; |
| 9624 var resp = convert.JSON.encode(buildEntityAdWordsLinks()); | 9624 var resp = convert.JSON.encode(buildEntityAdWordsLinks()); |
| 9625 return new async.Future.value(stringResponse(200, h, resp)); | 9625 return new async.Future.value(stringResponse(200, h, resp)); |
| 9626 }), true); | 9626 }), true); |
| 9627 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync(((api.EntityAdWordsLinks
response) { | 9627 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync1(((api.EntityAdWordsLinks
response) { |
| 9628 checkEntityAdWordsLinks(response); | 9628 checkEntityAdWordsLinks(response); |
| 9629 }))); | 9629 }))); |
| 9630 }); | 9630 }); |
| 9631 | 9631 |
| 9632 unittest.test("method--patch", () { | 9632 unittest.test("method--patch", () { |
| 9633 | 9633 |
| 9634 var mock = new HttpServerMock(); | 9634 var mock = new HttpServerMock(); |
| 9635 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; | 9635 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; |
| 9636 var arg_request = buildEntityAdWordsLink(); | 9636 var arg_request = buildEntityAdWordsLink(); |
| 9637 var arg_accountId = "foo"; | 9637 var arg_accountId = "foo"; |
| 9638 var arg_webPropertyId = "foo"; | 9638 var arg_webPropertyId = "foo"; |
| 9639 var arg_webPropertyAdWordsLinkId = "foo"; | 9639 var arg_webPropertyAdWordsLinkId = "foo"; |
| 9640 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9640 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9641 var obj = new api.EntityAdWordsLink.fromJson(json); | 9641 var obj = new api.EntityAdWordsLink.fromJson(json); |
| 9642 checkEntityAdWordsLink(obj); | 9642 checkEntityAdWordsLink(obj); |
| 9643 | 9643 |
| 9644 var path = (req.url).path; | 9644 var path = (req.url).path; |
| 9645 var pathOffset = 0; | 9645 var pathOffset = 0; |
| 9646 var index; | 9646 var index; |
| 9647 var subPart; | 9647 var subPart; |
| 9648 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9648 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9649 pathOffset += 1; | 9649 pathOffset += 1; |
| 9650 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9650 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9686 } | 9686 } |
| 9687 } | 9687 } |
| 9688 | 9688 |
| 9689 | 9689 |
| 9690 var h = { | 9690 var h = { |
| 9691 "content-type" : "application/json; charset=utf-8", | 9691 "content-type" : "application/json; charset=utf-8", |
| 9692 }; | 9692 }; |
| 9693 var resp = convert.JSON.encode(buildEntityAdWordsLink()); | 9693 var resp = convert.JSON.encode(buildEntityAdWordsLink()); |
| 9694 return new async.Future.value(stringResponse(200, h, resp)); | 9694 return new async.Future.value(stringResponse(200, h, resp)); |
| 9695 }), true); | 9695 }), true); |
| 9696 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAd
WordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) { | 9696 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAd
WordsLinkId).then(unittest.expectAsync1(((api.EntityAdWordsLink response) { |
| 9697 checkEntityAdWordsLink(response); | 9697 checkEntityAdWordsLink(response); |
| 9698 }))); | 9698 }))); |
| 9699 }); | 9699 }); |
| 9700 | 9700 |
| 9701 unittest.test("method--update", () { | 9701 unittest.test("method--update", () { |
| 9702 | 9702 |
| 9703 var mock = new HttpServerMock(); | 9703 var mock = new HttpServerMock(); |
| 9704 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; | 9704 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp
i(mock).management.webPropertyAdWordsLinks; |
| 9705 var arg_request = buildEntityAdWordsLink(); | 9705 var arg_request = buildEntityAdWordsLink(); |
| 9706 var arg_accountId = "foo"; | 9706 var arg_accountId = "foo"; |
| 9707 var arg_webPropertyId = "foo"; | 9707 var arg_webPropertyId = "foo"; |
| 9708 var arg_webPropertyAdWordsLinkId = "foo"; | 9708 var arg_webPropertyAdWordsLinkId = "foo"; |
| 9709 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9709 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9710 var obj = new api.EntityAdWordsLink.fromJson(json); | 9710 var obj = new api.EntityAdWordsLink.fromJson(json); |
| 9711 checkEntityAdWordsLink(obj); | 9711 checkEntityAdWordsLink(obj); |
| 9712 | 9712 |
| 9713 var path = (req.url).path; | 9713 var path = (req.url).path; |
| 9714 var pathOffset = 0; | 9714 var pathOffset = 0; |
| 9715 var index; | 9715 var index; |
| 9716 var subPart; | 9716 var subPart; |
| 9717 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9717 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9718 pathOffset += 1; | 9718 pathOffset += 1; |
| 9719 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9719 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9755 } | 9755 } |
| 9756 } | 9756 } |
| 9757 | 9757 |
| 9758 | 9758 |
| 9759 var h = { | 9759 var h = { |
| 9760 "content-type" : "application/json; charset=utf-8", | 9760 "content-type" : "application/json; charset=utf-8", |
| 9761 }; | 9761 }; |
| 9762 var resp = convert.JSON.encode(buildEntityAdWordsLink()); | 9762 var resp = convert.JSON.encode(buildEntityAdWordsLink()); |
| 9763 return new async.Future.value(stringResponse(200, h, resp)); | 9763 return new async.Future.value(stringResponse(200, h, resp)); |
| 9764 }), true); | 9764 }), true); |
| 9765 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyA
dWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) { | 9765 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyA
dWordsLinkId).then(unittest.expectAsync1(((api.EntityAdWordsLink response) { |
| 9766 checkEntityAdWordsLink(response); | 9766 checkEntityAdWordsLink(response); |
| 9767 }))); | 9767 }))); |
| 9768 }); | 9768 }); |
| 9769 | 9769 |
| 9770 }); | 9770 }); |
| 9771 | 9771 |
| 9772 | 9772 |
| 9773 unittest.group("resource-ManagementWebpropertiesResourceApi", () { | 9773 unittest.group("resource-ManagementWebpropertiesResourceApi", () { |
| 9774 unittest.test("method--get", () { | 9774 unittest.test("method--get", () { |
| 9775 | 9775 |
| 9776 var mock = new HttpServerMock(); | 9776 var mock = new HttpServerMock(); |
| 9777 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; | 9777 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; |
| 9778 var arg_accountId = "foo"; | 9778 var arg_accountId = "foo"; |
| 9779 var arg_webPropertyId = "foo"; | 9779 var arg_webPropertyId = "foo"; |
| 9780 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9780 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9781 var path = (req.url).path; | 9781 var path = (req.url).path; |
| 9782 var pathOffset = 0; | 9782 var pathOffset = 0; |
| 9783 var index; | 9783 var index; |
| 9784 var subPart; | 9784 var subPart; |
| 9785 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9785 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9786 pathOffset += 1; | 9786 pathOffset += 1; |
| 9787 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9787 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9788 pathOffset += 13; | 9788 pathOffset += 13; |
| 9789 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9789 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9790 pathOffset += 20; | 9790 pathOffset += 20; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 9816 } | 9816 } |
| 9817 } | 9817 } |
| 9818 | 9818 |
| 9819 | 9819 |
| 9820 var h = { | 9820 var h = { |
| 9821 "content-type" : "application/json; charset=utf-8", | 9821 "content-type" : "application/json; charset=utf-8", |
| 9822 }; | 9822 }; |
| 9823 var resp = convert.JSON.encode(buildWebproperty()); | 9823 var resp = convert.JSON.encode(buildWebproperty()); |
| 9824 return new async.Future.value(stringResponse(200, h, resp)); | 9824 return new async.Future.value(stringResponse(200, h, resp)); |
| 9825 }), true); | 9825 }), true); |
| 9826 res.get(arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api.
Webproperty response) { | 9826 res.get(arg_accountId, arg_webPropertyId).then(unittest.expectAsync1(((api
.Webproperty response) { |
| 9827 checkWebproperty(response); | 9827 checkWebproperty(response); |
| 9828 }))); | 9828 }))); |
| 9829 }); | 9829 }); |
| 9830 | 9830 |
| 9831 unittest.test("method--insert", () { | 9831 unittest.test("method--insert", () { |
| 9832 | 9832 |
| 9833 var mock = new HttpServerMock(); | 9833 var mock = new HttpServerMock(); |
| 9834 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; | 9834 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; |
| 9835 var arg_request = buildWebproperty(); | 9835 var arg_request = buildWebproperty(); |
| 9836 var arg_accountId = "foo"; | 9836 var arg_accountId = "foo"; |
| 9837 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9837 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9838 var obj = new api.Webproperty.fromJson(json); | 9838 var obj = new api.Webproperty.fromJson(json); |
| 9839 checkWebproperty(obj); | 9839 checkWebproperty(obj); |
| 9840 | 9840 |
| 9841 var path = (req.url).path; | 9841 var path = (req.url).path; |
| 9842 var pathOffset = 0; | 9842 var pathOffset = 0; |
| 9843 var index; | 9843 var index; |
| 9844 var subPart; | 9844 var subPart; |
| 9845 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9845 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9846 pathOffset += 1; | 9846 pathOffset += 1; |
| 9847 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9847 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 9873 } | 9873 } |
| 9874 } | 9874 } |
| 9875 | 9875 |
| 9876 | 9876 |
| 9877 var h = { | 9877 var h = { |
| 9878 "content-type" : "application/json; charset=utf-8", | 9878 "content-type" : "application/json; charset=utf-8", |
| 9879 }; | 9879 }; |
| 9880 var resp = convert.JSON.encode(buildWebproperty()); | 9880 var resp = convert.JSON.encode(buildWebproperty()); |
| 9881 return new async.Future.value(stringResponse(200, h, resp)); | 9881 return new async.Future.value(stringResponse(200, h, resp)); |
| 9882 }), true); | 9882 }), true); |
| 9883 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Web
property response) { | 9883 res.insert(arg_request, arg_accountId).then(unittest.expectAsync1(((api.We
bproperty response) { |
| 9884 checkWebproperty(response); | 9884 checkWebproperty(response); |
| 9885 }))); | 9885 }))); |
| 9886 }); | 9886 }); |
| 9887 | 9887 |
| 9888 unittest.test("method--list", () { | 9888 unittest.test("method--list", () { |
| 9889 | 9889 |
| 9890 var mock = new HttpServerMock(); | 9890 var mock = new HttpServerMock(); |
| 9891 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; | 9891 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; |
| 9892 var arg_accountId = "foo"; | 9892 var arg_accountId = "foo"; |
| 9893 var arg_max_results = 42; | 9893 var arg_max_results = 42; |
| 9894 var arg_start_index = 42; | 9894 var arg_start_index = 42; |
| 9895 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9895 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9896 var path = (req.url).path; | 9896 var path = (req.url).path; |
| 9897 var pathOffset = 0; | 9897 var pathOffset = 0; |
| 9898 var index; | 9898 var index; |
| 9899 var subPart; | 9899 var subPart; |
| 9900 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9900 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9901 pathOffset += 1; | 9901 pathOffset += 1; |
| 9902 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9902 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 9903 pathOffset += 13; | 9903 pathOffset += 13; |
| 9904 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 9904 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 9905 pathOffset += 20; | 9905 pathOffset += 20; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 9930 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 9930 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 9931 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 9931 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 9932 | 9932 |
| 9933 | 9933 |
| 9934 var h = { | 9934 var h = { |
| 9935 "content-type" : "application/json; charset=utf-8", | 9935 "content-type" : "application/json; charset=utf-8", |
| 9936 }; | 9936 }; |
| 9937 var resp = convert.JSON.encode(buildWebproperties()); | 9937 var resp = convert.JSON.encode(buildWebproperties()); |
| 9938 return new async.Future.value(stringResponse(200, h, resp)); | 9938 return new async.Future.value(stringResponse(200, h, resp)); |
| 9939 }), true); | 9939 }), true); |
| 9940 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta
rt_index).then(unittest.expectAsync(((api.Webproperties response) { | 9940 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta
rt_index).then(unittest.expectAsync1(((api.Webproperties response) { |
| 9941 checkWebproperties(response); | 9941 checkWebproperties(response); |
| 9942 }))); | 9942 }))); |
| 9943 }); | 9943 }); |
| 9944 | 9944 |
| 9945 unittest.test("method--patch", () { | 9945 unittest.test("method--patch", () { |
| 9946 | 9946 |
| 9947 var mock = new HttpServerMock(); | 9947 var mock = new HttpServerMock(); |
| 9948 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; | 9948 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; |
| 9949 var arg_request = buildWebproperty(); | 9949 var arg_request = buildWebproperty(); |
| 9950 var arg_accountId = "foo"; | 9950 var arg_accountId = "foo"; |
| 9951 var arg_webPropertyId = "foo"; | 9951 var arg_webPropertyId = "foo"; |
| 9952 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9952 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 9953 var obj = new api.Webproperty.fromJson(json); | 9953 var obj = new api.Webproperty.fromJson(json); |
| 9954 checkWebproperty(obj); | 9954 checkWebproperty(obj); |
| 9955 | 9955 |
| 9956 var path = (req.url).path; | 9956 var path = (req.url).path; |
| 9957 var pathOffset = 0; | 9957 var pathOffset = 0; |
| 9958 var index; | 9958 var index; |
| 9959 var subPart; | 9959 var subPart; |
| 9960 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9960 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9961 pathOffset += 1; | 9961 pathOffset += 1; |
| 9962 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 9962 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 9991 } | 9991 } |
| 9992 } | 9992 } |
| 9993 | 9993 |
| 9994 | 9994 |
| 9995 var h = { | 9995 var h = { |
| 9996 "content-type" : "application/json; charset=utf-8", | 9996 "content-type" : "application/json; charset=utf-8", |
| 9997 }; | 9997 }; |
| 9998 var resp = convert.JSON.encode(buildWebproperty()); | 9998 var resp = convert.JSON.encode(buildWebproperty()); |
| 9999 return new async.Future.value(stringResponse(200, h, resp)); | 9999 return new async.Future.value(stringResponse(200, h, resp)); |
| 10000 }), true); | 10000 }), true); |
| 10001 res.patch(arg_request, arg_accountId, arg_webPropertyId).then(unittest.exp
ectAsync(((api.Webproperty response) { | 10001 res.patch(arg_request, arg_accountId, arg_webPropertyId).then(unittest.exp
ectAsync1(((api.Webproperty response) { |
| 10002 checkWebproperty(response); | 10002 checkWebproperty(response); |
| 10003 }))); | 10003 }))); |
| 10004 }); | 10004 }); |
| 10005 | 10005 |
| 10006 unittest.test("method--update", () { | 10006 unittest.test("method--update", () { |
| 10007 | 10007 |
| 10008 var mock = new HttpServerMock(); | 10008 var mock = new HttpServerMock(); |
| 10009 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; | 10009 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma
nagement.webproperties; |
| 10010 var arg_request = buildWebproperty(); | 10010 var arg_request = buildWebproperty(); |
| 10011 var arg_accountId = "foo"; | 10011 var arg_accountId = "foo"; |
| 10012 var arg_webPropertyId = "foo"; | 10012 var arg_webPropertyId = "foo"; |
| 10013 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10013 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 10014 var obj = new api.Webproperty.fromJson(json); | 10014 var obj = new api.Webproperty.fromJson(json); |
| 10015 checkWebproperty(obj); | 10015 checkWebproperty(obj); |
| 10016 | 10016 |
| 10017 var path = (req.url).path; | 10017 var path = (req.url).path; |
| 10018 var pathOffset = 0; | 10018 var pathOffset = 0; |
| 10019 var index; | 10019 var index; |
| 10020 var subPart; | 10020 var subPart; |
| 10021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10022 pathOffset += 1; | 10022 pathOffset += 1; |
| 10023 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 10023 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 10052 } | 10052 } |
| 10053 } | 10053 } |
| 10054 | 10054 |
| 10055 | 10055 |
| 10056 var h = { | 10056 var h = { |
| 10057 "content-type" : "application/json; charset=utf-8", | 10057 "content-type" : "application/json; charset=utf-8", |
| 10058 }; | 10058 }; |
| 10059 var resp = convert.JSON.encode(buildWebproperty()); | 10059 var resp = convert.JSON.encode(buildWebproperty()); |
| 10060 return new async.Future.value(stringResponse(200, h, resp)); | 10060 return new async.Future.value(stringResponse(200, h, resp)); |
| 10061 }), true); | 10061 }), true); |
| 10062 res.update(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync(((api.Webproperty response) { | 10062 res.update(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync1(((api.Webproperty response) { |
| 10063 checkWebproperty(response); | 10063 checkWebproperty(response); |
| 10064 }))); | 10064 }))); |
| 10065 }); | 10065 }); |
| 10066 | 10066 |
| 10067 }); | 10067 }); |
| 10068 | 10068 |
| 10069 | 10069 |
| 10070 unittest.group("resource-ManagementWebpropertyUserLinksResourceApi", () { | 10070 unittest.group("resource-ManagementWebpropertyUserLinksResourceApi", () { |
| 10071 unittest.test("method--delete", () { | 10071 unittest.test("method--delete", () { |
| 10072 | 10072 |
| 10073 var mock = new HttpServerMock(); | 10073 var mock = new HttpServerMock(); |
| 10074 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m
ock).management.webpropertyUserLinks; | 10074 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m
ock).management.webpropertyUserLinks; |
| 10075 var arg_accountId = "foo"; | 10075 var arg_accountId = "foo"; |
| 10076 var arg_webPropertyId = "foo"; | 10076 var arg_webPropertyId = "foo"; |
| 10077 var arg_linkId = "foo"; | 10077 var arg_linkId = "foo"; |
| 10078 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10078 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 10079 var path = (req.url).path; | 10079 var path = (req.url).path; |
| 10080 var pathOffset = 0; | 10080 var pathOffset = 0; |
| 10081 var index; | 10081 var index; |
| 10082 var subPart; | 10082 var subPart; |
| 10083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10084 pathOffset += 1; | 10084 pathOffset += 1; |
| 10085 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 10085 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 10086 pathOffset += 13; | 10086 pathOffset += 13; |
| 10087 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 10087 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 10088 pathOffset += 20; | 10088 pathOffset += 20; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10121 } | 10121 } |
| 10122 } | 10122 } |
| 10123 | 10123 |
| 10124 | 10124 |
| 10125 var h = { | 10125 var h = { |
| 10126 "content-type" : "application/json; charset=utf-8", | 10126 "content-type" : "application/json; charset=utf-8", |
| 10127 }; | 10127 }; |
| 10128 var resp = ""; | 10128 var resp = ""; |
| 10129 return new async.Future.value(stringResponse(200, h, resp)); | 10129 return new async.Future.value(stringResponse(200, h, resp)); |
| 10130 }), true); | 10130 }), true); |
| 10131 res.delete(arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.exp
ectAsync((_) {})); | 10131 res.delete(arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.exp
ectAsync1((_) {})); |
| 10132 }); | 10132 }); |
| 10133 | 10133 |
| 10134 unittest.test("method--insert", () { | 10134 unittest.test("method--insert", () { |
| 10135 | 10135 |
| 10136 var mock = new HttpServerMock(); | 10136 var mock = new HttpServerMock(); |
| 10137 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m
ock).management.webpropertyUserLinks; | 10137 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m
ock).management.webpropertyUserLinks; |
| 10138 var arg_request = buildEntityUserLink(); | 10138 var arg_request = buildEntityUserLink(); |
| 10139 var arg_accountId = "foo"; | 10139 var arg_accountId = "foo"; |
| 10140 var arg_webPropertyId = "foo"; | 10140 var arg_webPropertyId = "foo"; |
| 10141 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10141 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 10142 var obj = new api.EntityUserLink.fromJson(json); | 10142 var obj = new api.EntityUserLink.fromJson(json); |
| 10143 checkEntityUserLink(obj); | 10143 checkEntityUserLink(obj); |
| 10144 | 10144 |
| 10145 var path = (req.url).path; | 10145 var path = (req.url).path; |
| 10146 var pathOffset = 0; | 10146 var pathOffset = 0; |
| 10147 var index; | 10147 var index; |
| 10148 var subPart; | 10148 var subPart; |
| 10149 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10149 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10150 pathOffset += 1; | 10150 pathOffset += 1; |
| 10151 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 10151 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10184 } | 10184 } |
| 10185 } | 10185 } |
| 10186 | 10186 |
| 10187 | 10187 |
| 10188 var h = { | 10188 var h = { |
| 10189 "content-type" : "application/json; charset=utf-8", | 10189 "content-type" : "application/json; charset=utf-8", |
| 10190 }; | 10190 }; |
| 10191 var resp = convert.JSON.encode(buildEntityUserLink()); | 10191 var resp = convert.JSON.encode(buildEntityUserLink()); |
| 10192 return new async.Future.value(stringResponse(200, h, resp)); | 10192 return new async.Future.value(stringResponse(200, h, resp)); |
| 10193 }), true); | 10193 }), true); |
| 10194 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync(((api.EntityUserLink response) { | 10194 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex
pectAsync1(((api.EntityUserLink response) { |
| 10195 checkEntityUserLink(response); | 10195 checkEntityUserLink(response); |
| 10196 }))); | 10196 }))); |
| 10197 }); | 10197 }); |
| 10198 | 10198 |
| 10199 unittest.test("method--list", () { | 10199 unittest.test("method--list", () { |
| 10200 | 10200 |
| 10201 var mock = new HttpServerMock(); | 10201 var mock = new HttpServerMock(); |
| 10202 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m
ock).management.webpropertyUserLinks; | 10202 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m
ock).management.webpropertyUserLinks; |
| 10203 var arg_accountId = "foo"; | 10203 var arg_accountId = "foo"; |
| 10204 var arg_webPropertyId = "foo"; | 10204 var arg_webPropertyId = "foo"; |
| 10205 var arg_max_results = 42; | 10205 var arg_max_results = 42; |
| 10206 var arg_start_index = 42; | 10206 var arg_start_index = 42; |
| 10207 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10207 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 10208 var path = (req.url).path; | 10208 var path = (req.url).path; |
| 10209 var pathOffset = 0; | 10209 var pathOffset = 0; |
| 10210 var index; | 10210 var index; |
| 10211 var subPart; | 10211 var subPart; |
| 10212 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10212 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10213 pathOffset += 1; | 10213 pathOffset += 1; |
| 10214 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 10214 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 10215 pathOffset += 13; | 10215 pathOffset += 13; |
| 10216 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); | 10216 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("management/accounts/")); |
| 10217 pathOffset += 20; | 10217 pathOffset += 20; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10249 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); | 10249 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.
equals(arg_max_results)); |
| 10250 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); | 10250 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.
equals(arg_start_index)); |
| 10251 | 10251 |
| 10252 | 10252 |
| 10253 var h = { | 10253 var h = { |
| 10254 "content-type" : "application/json; charset=utf-8", | 10254 "content-type" : "application/json; charset=utf-8", |
| 10255 }; | 10255 }; |
| 10256 var resp = convert.JSON.encode(buildEntityUserLinks()); | 10256 var resp = convert.JSON.encode(buildEntityUserLinks()); |
| 10257 return new async.Future.value(stringResponse(200, h, resp)); | 10257 return new async.Future.value(stringResponse(200, h, resp)); |
| 10258 }), true); | 10258 }), true); |
| 10259 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks res
ponse) { | 10259 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s
tart_index: arg_start_index).then(unittest.expectAsync1(((api.EntityUserLinks re
sponse) { |
| 10260 checkEntityUserLinks(response); | 10260 checkEntityUserLinks(response); |
| 10261 }))); | 10261 }))); |
| 10262 }); | 10262 }); |
| 10263 | 10263 |
| 10264 unittest.test("method--update", () { | 10264 unittest.test("method--update", () { |
| 10265 | 10265 |
| 10266 var mock = new HttpServerMock(); | 10266 var mock = new HttpServerMock(); |
| 10267 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m
ock).management.webpropertyUserLinks; | 10267 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m
ock).management.webpropertyUserLinks; |
| 10268 var arg_request = buildEntityUserLink(); | 10268 var arg_request = buildEntityUserLink(); |
| 10269 var arg_accountId = "foo"; | 10269 var arg_accountId = "foo"; |
| 10270 var arg_webPropertyId = "foo"; | 10270 var arg_webPropertyId = "foo"; |
| 10271 var arg_linkId = "foo"; | 10271 var arg_linkId = "foo"; |
| 10272 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10272 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 10273 var obj = new api.EntityUserLink.fromJson(json); | 10273 var obj = new api.EntityUserLink.fromJson(json); |
| 10274 checkEntityUserLink(obj); | 10274 checkEntityUserLink(obj); |
| 10275 | 10275 |
| 10276 var path = (req.url).path; | 10276 var path = (req.url).path; |
| 10277 var pathOffset = 0; | 10277 var pathOffset = 0; |
| 10278 var index; | 10278 var index; |
| 10279 var subPart; | 10279 var subPart; |
| 10280 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10280 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10281 pathOffset += 1; | 10281 pathOffset += 1; |
| 10282 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 10282 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10318 } | 10318 } |
| 10319 } | 10319 } |
| 10320 | 10320 |
| 10321 | 10321 |
| 10322 var h = { | 10322 var h = { |
| 10323 "content-type" : "application/json; charset=utf-8", | 10323 "content-type" : "application/json; charset=utf-8", |
| 10324 }; | 10324 }; |
| 10325 var resp = convert.JSON.encode(buildEntityUserLink()); | 10325 var resp = convert.JSON.encode(buildEntityUserLink()); |
| 10326 return new async.Future.value(stringResponse(200, h, resp)); | 10326 return new async.Future.value(stringResponse(200, h, resp)); |
| 10327 }), true); | 10327 }), true); |
| 10328 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_linkId).then
(unittest.expectAsync(((api.EntityUserLink response) { | 10328 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_linkId).then
(unittest.expectAsync1(((api.EntityUserLink response) { |
| 10329 checkEntityUserLink(response); | 10329 checkEntityUserLink(response); |
| 10330 }))); | 10330 }))); |
| 10331 }); | 10331 }); |
| 10332 | 10332 |
| 10333 }); | 10333 }); |
| 10334 | 10334 |
| 10335 | 10335 |
| 10336 unittest.group("resource-MetadataColumnsResourceApi", () { | 10336 unittest.group("resource-MetadataColumnsResourceApi", () { |
| 10337 unittest.test("method--list", () { | 10337 unittest.test("method--list", () { |
| 10338 | 10338 |
| 10339 var mock = new HttpServerMock(); | 10339 var mock = new HttpServerMock(); |
| 10340 api.MetadataColumnsResourceApi res = new api.AnalyticsApi(mock).metadata.c
olumns; | 10340 api.MetadataColumnsResourceApi res = new api.AnalyticsApi(mock).metadata.c
olumns; |
| 10341 var arg_reportType = "foo"; | 10341 var arg_reportType = "foo"; |
| 10342 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10342 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 10343 var path = (req.url).path; | 10343 var path = (req.url).path; |
| 10344 var pathOffset = 0; | 10344 var pathOffset = 0; |
| 10345 var index; | 10345 var index; |
| 10346 var subPart; | 10346 var subPart; |
| 10347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10348 pathOffset += 1; | 10348 pathOffset += 1; |
| 10349 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 10349 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| 10350 pathOffset += 13; | 10350 pathOffset += 13; |
| 10351 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("metadata/")); | 10351 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("metadata/")); |
| 10352 pathOffset += 9; | 10352 pathOffset += 9; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 10375 } | 10375 } |
| 10376 } | 10376 } |
| 10377 | 10377 |
| 10378 | 10378 |
| 10379 var h = { | 10379 var h = { |
| 10380 "content-type" : "application/json; charset=utf-8", | 10380 "content-type" : "application/json; charset=utf-8", |
| 10381 }; | 10381 }; |
| 10382 var resp = convert.JSON.encode(buildColumns()); | 10382 var resp = convert.JSON.encode(buildColumns()); |
| 10383 return new async.Future.value(stringResponse(200, h, resp)); | 10383 return new async.Future.value(stringResponse(200, h, resp)); |
| 10384 }), true); | 10384 }), true); |
| 10385 res.list(arg_reportType).then(unittest.expectAsync(((api.Columns response)
{ | 10385 res.list(arg_reportType).then(unittest.expectAsync1(((api.Columns response
) { |
| 10386 checkColumns(response); | 10386 checkColumns(response); |
| 10387 }))); | 10387 }))); |
| 10388 }); | 10388 }); |
| 10389 | 10389 |
| 10390 }); | 10390 }); |
| 10391 | 10391 |
| 10392 | 10392 |
| 10393 unittest.group("resource-ProvisioningResourceApi", () { | 10393 unittest.group("resource-ProvisioningResourceApi", () { |
| 10394 unittest.test("method--createAccountTicket", () { | 10394 unittest.test("method--createAccountTicket", () { |
| 10395 | 10395 |
| 10396 var mock = new HttpServerMock(); | 10396 var mock = new HttpServerMock(); |
| 10397 api.ProvisioningResourceApi res = new api.AnalyticsApi(mock).provisioning; | 10397 api.ProvisioningResourceApi res = new api.AnalyticsApi(mock).provisioning; |
| 10398 var arg_request = buildAccountTicket(); | 10398 var arg_request = buildAccountTicket(); |
| 10399 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10399 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 10400 var obj = new api.AccountTicket.fromJson(json); | 10400 var obj = new api.AccountTicket.fromJson(json); |
| 10401 checkAccountTicket(obj); | 10401 checkAccountTicket(obj); |
| 10402 | 10402 |
| 10403 var path = (req.url).path; | 10403 var path = (req.url).path; |
| 10404 var pathOffset = 0; | 10404 var pathOffset = 0; |
| 10405 var index; | 10405 var index; |
| 10406 var subPart; | 10406 var subPart; |
| 10407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10408 pathOffset += 1; | 10408 pathOffset += 1; |
| 10409 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); | 10409 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("analytics/v3/")); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10428 } | 10428 } |
| 10429 } | 10429 } |
| 10430 | 10430 |
| 10431 | 10431 |
| 10432 var h = { | 10432 var h = { |
| 10433 "content-type" : "application/json; charset=utf-8", | 10433 "content-type" : "application/json; charset=utf-8", |
| 10434 }; | 10434 }; |
| 10435 var resp = convert.JSON.encode(buildAccountTicket()); | 10435 var resp = convert.JSON.encode(buildAccountTicket()); |
| 10436 return new async.Future.value(stringResponse(200, h, resp)); | 10436 return new async.Future.value(stringResponse(200, h, resp)); |
| 10437 }), true); | 10437 }), true); |
| 10438 res.createAccountTicket(arg_request).then(unittest.expectAsync(((api.Accou
ntTicket response) { | 10438 res.createAccountTicket(arg_request).then(unittest.expectAsync1(((api.Acco
untTicket response) { |
| 10439 checkAccountTicket(response); | 10439 checkAccountTicket(response); |
| 10440 }))); | 10440 }))); |
| 10441 }); | 10441 }); |
| 10442 | 10442 |
| 10443 }); | 10443 }); |
| 10444 | 10444 |
| 10445 | 10445 |
| 10446 } | 10446 } |
| 10447 | 10447 |
| OLD | NEW |