| OLD | NEW |
| 1 library googleapis.doubleclickbidmanager.v1.test; | 1 library googleapis.doubleclickbidmanager.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed1103() { | 54 buildUnnamed1112() { |
| 55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
| 56 o.add("foo"); | 56 o.add("foo"); |
| 57 o.add("foo"); | 57 o.add("foo"); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed1103(core.List<core.String> o) { | 61 checkUnnamed1112(core.List<core.String> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
| 64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterDownloadLineItemsRequest = 0; | 67 core.int buildCounterDownloadLineItemsRequest = 0; |
| 68 buildDownloadLineItemsRequest() { | 68 buildDownloadLineItemsRequest() { |
| 69 var o = new api.DownloadLineItemsRequest(); | 69 var o = new api.DownloadLineItemsRequest(); |
| 70 buildCounterDownloadLineItemsRequest++; | 70 buildCounterDownloadLineItemsRequest++; |
| 71 if (buildCounterDownloadLineItemsRequest < 3) { | 71 if (buildCounterDownloadLineItemsRequest < 3) { |
| 72 o.fileSpec = "foo"; | 72 o.fileSpec = "foo"; |
| 73 o.filterIds = buildUnnamed1103(); | 73 o.filterIds = buildUnnamed1112(); |
| 74 o.filterType = "foo"; | 74 o.filterType = "foo"; |
| 75 o.format = "foo"; | 75 o.format = "foo"; |
| 76 } | 76 } |
| 77 buildCounterDownloadLineItemsRequest--; | 77 buildCounterDownloadLineItemsRequest--; |
| 78 return o; | 78 return o; |
| 79 } | 79 } |
| 80 | 80 |
| 81 checkDownloadLineItemsRequest(api.DownloadLineItemsRequest o) { | 81 checkDownloadLineItemsRequest(api.DownloadLineItemsRequest o) { |
| 82 buildCounterDownloadLineItemsRequest++; | 82 buildCounterDownloadLineItemsRequest++; |
| 83 if (buildCounterDownloadLineItemsRequest < 3) { | 83 if (buildCounterDownloadLineItemsRequest < 3) { |
| 84 unittest.expect(o.fileSpec, unittest.equals('foo')); | 84 unittest.expect(o.fileSpec, unittest.equals('foo')); |
| 85 checkUnnamed1103(o.filterIds); | 85 checkUnnamed1112(o.filterIds); |
| 86 unittest.expect(o.filterType, unittest.equals('foo')); | 86 unittest.expect(o.filterType, unittest.equals('foo')); |
| 87 unittest.expect(o.format, unittest.equals('foo')); | 87 unittest.expect(o.format, unittest.equals('foo')); |
| 88 } | 88 } |
| 89 buildCounterDownloadLineItemsRequest--; | 89 buildCounterDownloadLineItemsRequest--; |
| 90 } | 90 } |
| 91 | 91 |
| 92 core.int buildCounterDownloadLineItemsResponse = 0; | 92 core.int buildCounterDownloadLineItemsResponse = 0; |
| 93 buildDownloadLineItemsResponse() { | 93 buildDownloadLineItemsResponse() { |
| 94 var o = new api.DownloadLineItemsResponse(); | 94 var o = new api.DownloadLineItemsResponse(); |
| 95 buildCounterDownloadLineItemsResponse++; | 95 buildCounterDownloadLineItemsResponse++; |
| 96 if (buildCounterDownloadLineItemsResponse < 3) { | 96 if (buildCounterDownloadLineItemsResponse < 3) { |
| 97 o.lineItems = "foo"; | 97 o.lineItems = "foo"; |
| 98 } | 98 } |
| 99 buildCounterDownloadLineItemsResponse--; | 99 buildCounterDownloadLineItemsResponse--; |
| 100 return o; | 100 return o; |
| 101 } | 101 } |
| 102 | 102 |
| 103 checkDownloadLineItemsResponse(api.DownloadLineItemsResponse o) { | 103 checkDownloadLineItemsResponse(api.DownloadLineItemsResponse o) { |
| 104 buildCounterDownloadLineItemsResponse++; | 104 buildCounterDownloadLineItemsResponse++; |
| 105 if (buildCounterDownloadLineItemsResponse < 3) { | 105 if (buildCounterDownloadLineItemsResponse < 3) { |
| 106 unittest.expect(o.lineItems, unittest.equals('foo')); | 106 unittest.expect(o.lineItems, unittest.equals('foo')); |
| 107 } | 107 } |
| 108 buildCounterDownloadLineItemsResponse--; | 108 buildCounterDownloadLineItemsResponse--; |
| 109 } | 109 } |
| 110 | 110 |
| 111 buildUnnamed1104() { | 111 buildUnnamed1113() { |
| 112 var o = new core.List<core.String>(); | 112 var o = new core.List<core.String>(); |
| 113 o.add("foo"); | 113 o.add("foo"); |
| 114 o.add("foo"); | 114 o.add("foo"); |
| 115 return o; | 115 return o; |
| 116 } | 116 } |
| 117 | 117 |
| 118 checkUnnamed1104(core.List<core.String> o) { | 118 checkUnnamed1113(core.List<core.String> o) { |
| 119 unittest.expect(o, unittest.hasLength(2)); | 119 unittest.expect(o, unittest.hasLength(2)); |
| 120 unittest.expect(o[0], unittest.equals('foo')); | 120 unittest.expect(o[0], unittest.equals('foo')); |
| 121 unittest.expect(o[1], unittest.equals('foo')); | 121 unittest.expect(o[1], unittest.equals('foo')); |
| 122 } | 122 } |
| 123 | 123 |
| 124 buildUnnamed1105() { | 124 buildUnnamed1114() { |
| 125 var o = new core.List<core.String>(); | 125 var o = new core.List<core.String>(); |
| 126 o.add("foo"); | 126 o.add("foo"); |
| 127 o.add("foo"); | 127 o.add("foo"); |
| 128 return o; | 128 return o; |
| 129 } | 129 } |
| 130 | 130 |
| 131 checkUnnamed1105(core.List<core.String> o) { | 131 checkUnnamed1114(core.List<core.String> o) { |
| 132 unittest.expect(o, unittest.hasLength(2)); | 132 unittest.expect(o, unittest.hasLength(2)); |
| 133 unittest.expect(o[0], unittest.equals('foo')); | 133 unittest.expect(o[0], unittest.equals('foo')); |
| 134 unittest.expect(o[1], unittest.equals('foo')); | 134 unittest.expect(o[1], unittest.equals('foo')); |
| 135 } | 135 } |
| 136 | 136 |
| 137 core.int buildCounterDownloadRequest = 0; | 137 core.int buildCounterDownloadRequest = 0; |
| 138 buildDownloadRequest() { | 138 buildDownloadRequest() { |
| 139 var o = new api.DownloadRequest(); | 139 var o = new api.DownloadRequest(); |
| 140 buildCounterDownloadRequest++; | 140 buildCounterDownloadRequest++; |
| 141 if (buildCounterDownloadRequest < 3) { | 141 if (buildCounterDownloadRequest < 3) { |
| 142 o.fileTypes = buildUnnamed1104(); | 142 o.fileTypes = buildUnnamed1113(); |
| 143 o.filterIds = buildUnnamed1105(); | 143 o.filterIds = buildUnnamed1114(); |
| 144 o.filterType = "foo"; | 144 o.filterType = "foo"; |
| 145 o.version = "foo"; | 145 o.version = "foo"; |
| 146 } | 146 } |
| 147 buildCounterDownloadRequest--; | 147 buildCounterDownloadRequest--; |
| 148 return o; | 148 return o; |
| 149 } | 149 } |
| 150 | 150 |
| 151 checkDownloadRequest(api.DownloadRequest o) { | 151 checkDownloadRequest(api.DownloadRequest o) { |
| 152 buildCounterDownloadRequest++; | 152 buildCounterDownloadRequest++; |
| 153 if (buildCounterDownloadRequest < 3) { | 153 if (buildCounterDownloadRequest < 3) { |
| 154 checkUnnamed1104(o.fileTypes); | 154 checkUnnamed1113(o.fileTypes); |
| 155 checkUnnamed1105(o.filterIds); | 155 checkUnnamed1114(o.filterIds); |
| 156 unittest.expect(o.filterType, unittest.equals('foo')); | 156 unittest.expect(o.filterType, unittest.equals('foo')); |
| 157 unittest.expect(o.version, unittest.equals('foo')); | 157 unittest.expect(o.version, unittest.equals('foo')); |
| 158 } | 158 } |
| 159 buildCounterDownloadRequest--; | 159 buildCounterDownloadRequest--; |
| 160 } | 160 } |
| 161 | 161 |
| 162 core.int buildCounterDownloadResponse = 0; | 162 core.int buildCounterDownloadResponse = 0; |
| 163 buildDownloadResponse() { | 163 buildDownloadResponse() { |
| 164 var o = new api.DownloadResponse(); | 164 var o = new api.DownloadResponse(); |
| 165 buildCounterDownloadResponse++; | 165 buildCounterDownloadResponse++; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 checkFilterPair(api.FilterPair o) { | 199 checkFilterPair(api.FilterPair o) { |
| 200 buildCounterFilterPair++; | 200 buildCounterFilterPair++; |
| 201 if (buildCounterFilterPair < 3) { | 201 if (buildCounterFilterPair < 3) { |
| 202 unittest.expect(o.type, unittest.equals('foo')); | 202 unittest.expect(o.type, unittest.equals('foo')); |
| 203 unittest.expect(o.value, unittest.equals('foo')); | 203 unittest.expect(o.value, unittest.equals('foo')); |
| 204 } | 204 } |
| 205 buildCounterFilterPair--; | 205 buildCounterFilterPair--; |
| 206 } | 206 } |
| 207 | 207 |
| 208 buildUnnamed1106() { | 208 buildUnnamed1115() { |
| 209 var o = new core.List<api.Query>(); | 209 var o = new core.List<api.Query>(); |
| 210 o.add(buildQuery()); | 210 o.add(buildQuery()); |
| 211 o.add(buildQuery()); | 211 o.add(buildQuery()); |
| 212 return o; | 212 return o; |
| 213 } | 213 } |
| 214 | 214 |
| 215 checkUnnamed1106(core.List<api.Query> o) { | 215 checkUnnamed1115(core.List<api.Query> o) { |
| 216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
| 217 checkQuery(o[0]); | 217 checkQuery(o[0]); |
| 218 checkQuery(o[1]); | 218 checkQuery(o[1]); |
| 219 } | 219 } |
| 220 | 220 |
| 221 core.int buildCounterListQueriesResponse = 0; | 221 core.int buildCounterListQueriesResponse = 0; |
| 222 buildListQueriesResponse() { | 222 buildListQueriesResponse() { |
| 223 var o = new api.ListQueriesResponse(); | 223 var o = new api.ListQueriesResponse(); |
| 224 buildCounterListQueriesResponse++; | 224 buildCounterListQueriesResponse++; |
| 225 if (buildCounterListQueriesResponse < 3) { | 225 if (buildCounterListQueriesResponse < 3) { |
| 226 o.kind = "foo"; | 226 o.kind = "foo"; |
| 227 o.queries = buildUnnamed1106(); | 227 o.queries = buildUnnamed1115(); |
| 228 } | 228 } |
| 229 buildCounterListQueriesResponse--; | 229 buildCounterListQueriesResponse--; |
| 230 return o; | 230 return o; |
| 231 } | 231 } |
| 232 | 232 |
| 233 checkListQueriesResponse(api.ListQueriesResponse o) { | 233 checkListQueriesResponse(api.ListQueriesResponse o) { |
| 234 buildCounterListQueriesResponse++; | 234 buildCounterListQueriesResponse++; |
| 235 if (buildCounterListQueriesResponse < 3) { | 235 if (buildCounterListQueriesResponse < 3) { |
| 236 unittest.expect(o.kind, unittest.equals('foo')); | 236 unittest.expect(o.kind, unittest.equals('foo')); |
| 237 checkUnnamed1106(o.queries); | 237 checkUnnamed1115(o.queries); |
| 238 } | 238 } |
| 239 buildCounterListQueriesResponse--; | 239 buildCounterListQueriesResponse--; |
| 240 } | 240 } |
| 241 | 241 |
| 242 buildUnnamed1107() { | 242 buildUnnamed1116() { |
| 243 var o = new core.List<api.Report>(); | 243 var o = new core.List<api.Report>(); |
| 244 o.add(buildReport()); | 244 o.add(buildReport()); |
| 245 o.add(buildReport()); | 245 o.add(buildReport()); |
| 246 return o; | 246 return o; |
| 247 } | 247 } |
| 248 | 248 |
| 249 checkUnnamed1107(core.List<api.Report> o) { | 249 checkUnnamed1116(core.List<api.Report> o) { |
| 250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
| 251 checkReport(o[0]); | 251 checkReport(o[0]); |
| 252 checkReport(o[1]); | 252 checkReport(o[1]); |
| 253 } | 253 } |
| 254 | 254 |
| 255 core.int buildCounterListReportsResponse = 0; | 255 core.int buildCounterListReportsResponse = 0; |
| 256 buildListReportsResponse() { | 256 buildListReportsResponse() { |
| 257 var o = new api.ListReportsResponse(); | 257 var o = new api.ListReportsResponse(); |
| 258 buildCounterListReportsResponse++; | 258 buildCounterListReportsResponse++; |
| 259 if (buildCounterListReportsResponse < 3) { | 259 if (buildCounterListReportsResponse < 3) { |
| 260 o.kind = "foo"; | 260 o.kind = "foo"; |
| 261 o.reports = buildUnnamed1107(); | 261 o.reports = buildUnnamed1116(); |
| 262 } | 262 } |
| 263 buildCounterListReportsResponse--; | 263 buildCounterListReportsResponse--; |
| 264 return o; | 264 return o; |
| 265 } | 265 } |
| 266 | 266 |
| 267 checkListReportsResponse(api.ListReportsResponse o) { | 267 checkListReportsResponse(api.ListReportsResponse o) { |
| 268 buildCounterListReportsResponse++; | 268 buildCounterListReportsResponse++; |
| 269 if (buildCounterListReportsResponse < 3) { | 269 if (buildCounterListReportsResponse < 3) { |
| 270 unittest.expect(o.kind, unittest.equals('foo')); | 270 unittest.expect(o.kind, unittest.equals('foo')); |
| 271 checkUnnamed1107(o.reports); | 271 checkUnnamed1116(o.reports); |
| 272 } | 272 } |
| 273 buildCounterListReportsResponse--; | 273 buildCounterListReportsResponse--; |
| 274 } | 274 } |
| 275 | 275 |
| 276 buildUnnamed1108() { | 276 buildUnnamed1117() { |
| 277 var o = new core.List<api.FilterPair>(); | 277 var o = new core.List<api.FilterPair>(); |
| 278 o.add(buildFilterPair()); | 278 o.add(buildFilterPair()); |
| 279 o.add(buildFilterPair()); | 279 o.add(buildFilterPair()); |
| 280 return o; | 280 return o; |
| 281 } | 281 } |
| 282 | 282 |
| 283 checkUnnamed1108(core.List<api.FilterPair> o) { | 283 checkUnnamed1117(core.List<api.FilterPair> o) { |
| 284 unittest.expect(o, unittest.hasLength(2)); | 284 unittest.expect(o, unittest.hasLength(2)); |
| 285 checkFilterPair(o[0]); | 285 checkFilterPair(o[0]); |
| 286 checkFilterPair(o[1]); | 286 checkFilterPair(o[1]); |
| 287 } | 287 } |
| 288 | 288 |
| 289 buildUnnamed1109() { | 289 buildUnnamed1118() { |
| 290 var o = new core.List<core.String>(); | 290 var o = new core.List<core.String>(); |
| 291 o.add("foo"); | 291 o.add("foo"); |
| 292 o.add("foo"); | 292 o.add("foo"); |
| 293 return o; | 293 return o; |
| 294 } | 294 } |
| 295 | 295 |
| 296 checkUnnamed1109(core.List<core.String> o) { | 296 checkUnnamed1118(core.List<core.String> o) { |
| 297 unittest.expect(o, unittest.hasLength(2)); | 297 unittest.expect(o, unittest.hasLength(2)); |
| 298 unittest.expect(o[0], unittest.equals('foo')); | 298 unittest.expect(o[0], unittest.equals('foo')); |
| 299 unittest.expect(o[1], unittest.equals('foo')); | 299 unittest.expect(o[1], unittest.equals('foo')); |
| 300 } | 300 } |
| 301 | 301 |
| 302 buildUnnamed1110() { | 302 buildUnnamed1119() { |
| 303 var o = new core.List<core.String>(); | 303 var o = new core.List<core.String>(); |
| 304 o.add("foo"); | 304 o.add("foo"); |
| 305 o.add("foo"); | 305 o.add("foo"); |
| 306 return o; | 306 return o; |
| 307 } | 307 } |
| 308 | 308 |
| 309 checkUnnamed1110(core.List<core.String> o) { | 309 checkUnnamed1119(core.List<core.String> o) { |
| 310 unittest.expect(o, unittest.hasLength(2)); | 310 unittest.expect(o, unittest.hasLength(2)); |
| 311 unittest.expect(o[0], unittest.equals('foo')); | 311 unittest.expect(o[0], unittest.equals('foo')); |
| 312 unittest.expect(o[1], unittest.equals('foo')); | 312 unittest.expect(o[1], unittest.equals('foo')); |
| 313 } | 313 } |
| 314 | 314 |
| 315 core.int buildCounterParameters = 0; | 315 core.int buildCounterParameters = 0; |
| 316 buildParameters() { | 316 buildParameters() { |
| 317 var o = new api.Parameters(); | 317 var o = new api.Parameters(); |
| 318 buildCounterParameters++; | 318 buildCounterParameters++; |
| 319 if (buildCounterParameters < 3) { | 319 if (buildCounterParameters < 3) { |
| 320 o.filters = buildUnnamed1108(); | 320 o.filters = buildUnnamed1117(); |
| 321 o.groupBys = buildUnnamed1109(); | 321 o.groupBys = buildUnnamed1118(); |
| 322 o.includeInviteData = true; | 322 o.includeInviteData = true; |
| 323 o.metrics = buildUnnamed1110(); | 323 o.metrics = buildUnnamed1119(); |
| 324 o.type = "foo"; | 324 o.type = "foo"; |
| 325 } | 325 } |
| 326 buildCounterParameters--; | 326 buildCounterParameters--; |
| 327 return o; | 327 return o; |
| 328 } | 328 } |
| 329 | 329 |
| 330 checkParameters(api.Parameters o) { | 330 checkParameters(api.Parameters o) { |
| 331 buildCounterParameters++; | 331 buildCounterParameters++; |
| 332 if (buildCounterParameters < 3) { | 332 if (buildCounterParameters < 3) { |
| 333 checkUnnamed1108(o.filters); | 333 checkUnnamed1117(o.filters); |
| 334 checkUnnamed1109(o.groupBys); | 334 checkUnnamed1118(o.groupBys); |
| 335 unittest.expect(o.includeInviteData, unittest.isTrue); | 335 unittest.expect(o.includeInviteData, unittest.isTrue); |
| 336 checkUnnamed1110(o.metrics); | 336 checkUnnamed1119(o.metrics); |
| 337 unittest.expect(o.type, unittest.equals('foo')); | 337 unittest.expect(o.type, unittest.equals('foo')); |
| 338 } | 338 } |
| 339 buildCounterParameters--; | 339 buildCounterParameters--; |
| 340 } | 340 } |
| 341 | 341 |
| 342 core.int buildCounterQuery = 0; | 342 core.int buildCounterQuery = 0; |
| 343 buildQuery() { | 343 buildQuery() { |
| 344 var o = new api.Query(); | 344 var o = new api.Query(); |
| 345 buildCounterQuery++; | 345 buildCounterQuery++; |
| 346 if (buildCounterQuery < 3) { | 346 if (buildCounterQuery < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 365 checkParameters(o.params); | 365 checkParameters(o.params); |
| 366 unittest.expect(o.queryId, unittest.equals('foo')); | 366 unittest.expect(o.queryId, unittest.equals('foo')); |
| 367 unittest.expect(o.reportDataEndTimeMs, unittest.equals('foo')); | 367 unittest.expect(o.reportDataEndTimeMs, unittest.equals('foo')); |
| 368 unittest.expect(o.reportDataStartTimeMs, unittest.equals('foo')); | 368 unittest.expect(o.reportDataStartTimeMs, unittest.equals('foo')); |
| 369 checkQuerySchedule(o.schedule); | 369 checkQuerySchedule(o.schedule); |
| 370 unittest.expect(o.timezoneCode, unittest.equals('foo')); | 370 unittest.expect(o.timezoneCode, unittest.equals('foo')); |
| 371 } | 371 } |
| 372 buildCounterQuery--; | 372 buildCounterQuery--; |
| 373 } | 373 } |
| 374 | 374 |
| 375 buildUnnamed1111() { | 375 buildUnnamed1120() { |
| 376 var o = new core.List<core.String>(); | 376 var o = new core.List<core.String>(); |
| 377 o.add("foo"); | 377 o.add("foo"); |
| 378 o.add("foo"); | 378 o.add("foo"); |
| 379 return o; | 379 return o; |
| 380 } | 380 } |
| 381 | 381 |
| 382 checkUnnamed1111(core.List<core.String> o) { | 382 checkUnnamed1120(core.List<core.String> o) { |
| 383 unittest.expect(o, unittest.hasLength(2)); | 383 unittest.expect(o, unittest.hasLength(2)); |
| 384 unittest.expect(o[0], unittest.equals('foo')); | 384 unittest.expect(o[0], unittest.equals('foo')); |
| 385 unittest.expect(o[1], unittest.equals('foo')); | 385 unittest.expect(o[1], unittest.equals('foo')); |
| 386 } | 386 } |
| 387 | 387 |
| 388 core.int buildCounterQueryMetadata = 0; | 388 core.int buildCounterQueryMetadata = 0; |
| 389 buildQueryMetadata() { | 389 buildQueryMetadata() { |
| 390 var o = new api.QueryMetadata(); | 390 var o = new api.QueryMetadata(); |
| 391 buildCounterQueryMetadata++; | 391 buildCounterQueryMetadata++; |
| 392 if (buildCounterQueryMetadata < 3) { | 392 if (buildCounterQueryMetadata < 3) { |
| 393 o.dataRange = "foo"; | 393 o.dataRange = "foo"; |
| 394 o.format = "foo"; | 394 o.format = "foo"; |
| 395 o.googleCloudStoragePathForLatestReport = "foo"; | 395 o.googleCloudStoragePathForLatestReport = "foo"; |
| 396 o.googleDrivePathForLatestReport = "foo"; | 396 o.googleDrivePathForLatestReport = "foo"; |
| 397 o.latestReportRunTimeMs = "foo"; | 397 o.latestReportRunTimeMs = "foo"; |
| 398 o.locale = "foo"; | 398 o.locale = "foo"; |
| 399 o.reportCount = 42; | 399 o.reportCount = 42; |
| 400 o.running = true; | 400 o.running = true; |
| 401 o.sendNotification = true; | 401 o.sendNotification = true; |
| 402 o.shareEmailAddress = buildUnnamed1111(); | 402 o.shareEmailAddress = buildUnnamed1120(); |
| 403 o.title = "foo"; | 403 o.title = "foo"; |
| 404 } | 404 } |
| 405 buildCounterQueryMetadata--; | 405 buildCounterQueryMetadata--; |
| 406 return o; | 406 return o; |
| 407 } | 407 } |
| 408 | 408 |
| 409 checkQueryMetadata(api.QueryMetadata o) { | 409 checkQueryMetadata(api.QueryMetadata o) { |
| 410 buildCounterQueryMetadata++; | 410 buildCounterQueryMetadata++; |
| 411 if (buildCounterQueryMetadata < 3) { | 411 if (buildCounterQueryMetadata < 3) { |
| 412 unittest.expect(o.dataRange, unittest.equals('foo')); | 412 unittest.expect(o.dataRange, unittest.equals('foo')); |
| 413 unittest.expect(o.format, unittest.equals('foo')); | 413 unittest.expect(o.format, unittest.equals('foo')); |
| 414 unittest.expect(o.googleCloudStoragePathForLatestReport, unittest.equals('fo
o')); | 414 unittest.expect(o.googleCloudStoragePathForLatestReport, unittest.equals('fo
o')); |
| 415 unittest.expect(o.googleDrivePathForLatestReport, unittest.equals('foo')); | 415 unittest.expect(o.googleDrivePathForLatestReport, unittest.equals('foo')); |
| 416 unittest.expect(o.latestReportRunTimeMs, unittest.equals('foo')); | 416 unittest.expect(o.latestReportRunTimeMs, unittest.equals('foo')); |
| 417 unittest.expect(o.locale, unittest.equals('foo')); | 417 unittest.expect(o.locale, unittest.equals('foo')); |
| 418 unittest.expect(o.reportCount, unittest.equals(42)); | 418 unittest.expect(o.reportCount, unittest.equals(42)); |
| 419 unittest.expect(o.running, unittest.isTrue); | 419 unittest.expect(o.running, unittest.isTrue); |
| 420 unittest.expect(o.sendNotification, unittest.isTrue); | 420 unittest.expect(o.sendNotification, unittest.isTrue); |
| 421 checkUnnamed1111(o.shareEmailAddress); | 421 checkUnnamed1120(o.shareEmailAddress); |
| 422 unittest.expect(o.title, unittest.equals('foo')); | 422 unittest.expect(o.title, unittest.equals('foo')); |
| 423 } | 423 } |
| 424 buildCounterQueryMetadata--; | 424 buildCounterQueryMetadata--; |
| 425 } | 425 } |
| 426 | 426 |
| 427 core.int buildCounterQuerySchedule = 0; | 427 core.int buildCounterQuerySchedule = 0; |
| 428 buildQuerySchedule() { | 428 buildQuerySchedule() { |
| 429 var o = new api.QuerySchedule(); | 429 var o = new api.QuerySchedule(); |
| 430 buildCounterQuerySchedule++; | 430 buildCounterQuerySchedule++; |
| 431 if (buildCounterQuerySchedule < 3) { | 431 if (buildCounterQuerySchedule < 3) { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 buildCounterReportStatus++; | 555 buildCounterReportStatus++; |
| 556 if (buildCounterReportStatus < 3) { | 556 if (buildCounterReportStatus < 3) { |
| 557 checkReportFailure(o.failure); | 557 checkReportFailure(o.failure); |
| 558 unittest.expect(o.finishTimeMs, unittest.equals('foo')); | 558 unittest.expect(o.finishTimeMs, unittest.equals('foo')); |
| 559 unittest.expect(o.format, unittest.equals('foo')); | 559 unittest.expect(o.format, unittest.equals('foo')); |
| 560 unittest.expect(o.state, unittest.equals('foo')); | 560 unittest.expect(o.state, unittest.equals('foo')); |
| 561 } | 561 } |
| 562 buildCounterReportStatus--; | 562 buildCounterReportStatus--; |
| 563 } | 563 } |
| 564 | 564 |
| 565 buildUnnamed1112() { | 565 buildUnnamed1121() { |
| 566 var o = new core.List<core.String>(); | 566 var o = new core.List<core.String>(); |
| 567 o.add("foo"); | 567 o.add("foo"); |
| 568 o.add("foo"); | 568 o.add("foo"); |
| 569 return o; | 569 return o; |
| 570 } | 570 } |
| 571 | 571 |
| 572 checkUnnamed1112(core.List<core.String> o) { | 572 checkUnnamed1121(core.List<core.String> o) { |
| 573 unittest.expect(o, unittest.hasLength(2)); | 573 unittest.expect(o, unittest.hasLength(2)); |
| 574 unittest.expect(o[0], unittest.equals('foo')); | 574 unittest.expect(o[0], unittest.equals('foo')); |
| 575 unittest.expect(o[1], unittest.equals('foo')); | 575 unittest.expect(o[1], unittest.equals('foo')); |
| 576 } | 576 } |
| 577 | 577 |
| 578 core.int buildCounterRowStatus = 0; | 578 core.int buildCounterRowStatus = 0; |
| 579 buildRowStatus() { | 579 buildRowStatus() { |
| 580 var o = new api.RowStatus(); | 580 var o = new api.RowStatus(); |
| 581 buildCounterRowStatus++; | 581 buildCounterRowStatus++; |
| 582 if (buildCounterRowStatus < 3) { | 582 if (buildCounterRowStatus < 3) { |
| 583 o.changed = true; | 583 o.changed = true; |
| 584 o.entityId = "foo"; | 584 o.entityId = "foo"; |
| 585 o.entityName = "foo"; | 585 o.entityName = "foo"; |
| 586 o.errors = buildUnnamed1112(); | 586 o.errors = buildUnnamed1121(); |
| 587 o.persisted = true; | 587 o.persisted = true; |
| 588 o.rowNumber = 42; | 588 o.rowNumber = 42; |
| 589 } | 589 } |
| 590 buildCounterRowStatus--; | 590 buildCounterRowStatus--; |
| 591 return o; | 591 return o; |
| 592 } | 592 } |
| 593 | 593 |
| 594 checkRowStatus(api.RowStatus o) { | 594 checkRowStatus(api.RowStatus o) { |
| 595 buildCounterRowStatus++; | 595 buildCounterRowStatus++; |
| 596 if (buildCounterRowStatus < 3) { | 596 if (buildCounterRowStatus < 3) { |
| 597 unittest.expect(o.changed, unittest.isTrue); | 597 unittest.expect(o.changed, unittest.isTrue); |
| 598 unittest.expect(o.entityId, unittest.equals('foo')); | 598 unittest.expect(o.entityId, unittest.equals('foo')); |
| 599 unittest.expect(o.entityName, unittest.equals('foo')); | 599 unittest.expect(o.entityName, unittest.equals('foo')); |
| 600 checkUnnamed1112(o.errors); | 600 checkUnnamed1121(o.errors); |
| 601 unittest.expect(o.persisted, unittest.isTrue); | 601 unittest.expect(o.persisted, unittest.isTrue); |
| 602 unittest.expect(o.rowNumber, unittest.equals(42)); | 602 unittest.expect(o.rowNumber, unittest.equals(42)); |
| 603 } | 603 } |
| 604 buildCounterRowStatus--; | 604 buildCounterRowStatus--; |
| 605 } | 605 } |
| 606 | 606 |
| 607 core.int buildCounterRunQueryRequest = 0; | 607 core.int buildCounterRunQueryRequest = 0; |
| 608 buildRunQueryRequest() { | 608 buildRunQueryRequest() { |
| 609 var o = new api.RunQueryRequest(); | 609 var o = new api.RunQueryRequest(); |
| 610 buildCounterRunQueryRequest++; | 610 buildCounterRunQueryRequest++; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 } | 664 } |
| 665 | 665 |
| 666 checkUploadLineItemsResponse(api.UploadLineItemsResponse o) { | 666 checkUploadLineItemsResponse(api.UploadLineItemsResponse o) { |
| 667 buildCounterUploadLineItemsResponse++; | 667 buildCounterUploadLineItemsResponse++; |
| 668 if (buildCounterUploadLineItemsResponse < 3) { | 668 if (buildCounterUploadLineItemsResponse < 3) { |
| 669 checkUploadStatus(o.uploadStatus); | 669 checkUploadStatus(o.uploadStatus); |
| 670 } | 670 } |
| 671 buildCounterUploadLineItemsResponse--; | 671 buildCounterUploadLineItemsResponse--; |
| 672 } | 672 } |
| 673 | 673 |
| 674 buildUnnamed1113() { | 674 buildUnnamed1122() { |
| 675 var o = new core.List<core.String>(); | 675 var o = new core.List<core.String>(); |
| 676 o.add("foo"); | 676 o.add("foo"); |
| 677 o.add("foo"); | 677 o.add("foo"); |
| 678 return o; | 678 return o; |
| 679 } | 679 } |
| 680 | 680 |
| 681 checkUnnamed1113(core.List<core.String> o) { | 681 checkUnnamed1122(core.List<core.String> o) { |
| 682 unittest.expect(o, unittest.hasLength(2)); | 682 unittest.expect(o, unittest.hasLength(2)); |
| 683 unittest.expect(o[0], unittest.equals('foo')); | 683 unittest.expect(o[0], unittest.equals('foo')); |
| 684 unittest.expect(o[1], unittest.equals('foo')); | 684 unittest.expect(o[1], unittest.equals('foo')); |
| 685 } | 685 } |
| 686 | 686 |
| 687 buildUnnamed1114() { | 687 buildUnnamed1123() { |
| 688 var o = new core.List<api.RowStatus>(); | 688 var o = new core.List<api.RowStatus>(); |
| 689 o.add(buildRowStatus()); | 689 o.add(buildRowStatus()); |
| 690 o.add(buildRowStatus()); | 690 o.add(buildRowStatus()); |
| 691 return o; | 691 return o; |
| 692 } | 692 } |
| 693 | 693 |
| 694 checkUnnamed1114(core.List<api.RowStatus> o) { | 694 checkUnnamed1123(core.List<api.RowStatus> o) { |
| 695 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
| 696 checkRowStatus(o[0]); | 696 checkRowStatus(o[0]); |
| 697 checkRowStatus(o[1]); | 697 checkRowStatus(o[1]); |
| 698 } | 698 } |
| 699 | 699 |
| 700 core.int buildCounterUploadStatus = 0; | 700 core.int buildCounterUploadStatus = 0; |
| 701 buildUploadStatus() { | 701 buildUploadStatus() { |
| 702 var o = new api.UploadStatus(); | 702 var o = new api.UploadStatus(); |
| 703 buildCounterUploadStatus++; | 703 buildCounterUploadStatus++; |
| 704 if (buildCounterUploadStatus < 3) { | 704 if (buildCounterUploadStatus < 3) { |
| 705 o.errors = buildUnnamed1113(); | 705 o.errors = buildUnnamed1122(); |
| 706 o.rowStatus = buildUnnamed1114(); | 706 o.rowStatus = buildUnnamed1123(); |
| 707 } | 707 } |
| 708 buildCounterUploadStatus--; | 708 buildCounterUploadStatus--; |
| 709 return o; | 709 return o; |
| 710 } | 710 } |
| 711 | 711 |
| 712 checkUploadStatus(api.UploadStatus o) { | 712 checkUploadStatus(api.UploadStatus o) { |
| 713 buildCounterUploadStatus++; | 713 buildCounterUploadStatus++; |
| 714 if (buildCounterUploadStatus < 3) { | 714 if (buildCounterUploadStatus < 3) { |
| 715 checkUnnamed1113(o.errors); | 715 checkUnnamed1122(o.errors); |
| 716 checkUnnamed1114(o.rowStatus); | 716 checkUnnamed1123(o.rowStatus); |
| 717 } | 717 } |
| 718 buildCounterUploadStatus--; | 718 buildCounterUploadStatus--; |
| 719 } | 719 } |
| 720 | 720 |
| 721 | 721 |
| 722 main() { | 722 main() { |
| 723 unittest.group("obj-schema-DownloadLineItemsRequest", () { | 723 unittest.group("obj-schema-DownloadLineItemsRequest", () { |
| 724 unittest.test("to-json--from-json", () { | 724 unittest.test("to-json--from-json", () { |
| 725 var o = buildDownloadLineItemsRequest(); | 725 var o = buildDownloadLineItemsRequest(); |
| 726 var od = new api.DownloadLineItemsRequest.fromJson(o.toJson()); | 726 var od = new api.DownloadLineItemsRequest.fromJson(o.toJson()); |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1361 res.download(arg_request).then(unittest.expectAsync(((api.DownloadResponse
response) { | 1361 res.download(arg_request).then(unittest.expectAsync(((api.DownloadResponse
response) { |
| 1362 checkDownloadResponse(response); | 1362 checkDownloadResponse(response); |
| 1363 }))); | 1363 }))); |
| 1364 }); | 1364 }); |
| 1365 | 1365 |
| 1366 }); | 1366 }); |
| 1367 | 1367 |
| 1368 | 1368 |
| 1369 } | 1369 } |
| 1370 | 1370 |
| OLD | NEW |