| OLD | NEW |
| 1 library googleapis.youtubereporting.v1.test; | 1 library googleapis.youtubereporting.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 unittest.expect(o.createTime, unittest.equals('foo')); | 90 unittest.expect(o.createTime, unittest.equals('foo')); |
| 91 unittest.expect(o.expireTime, unittest.equals('foo')); | 91 unittest.expect(o.expireTime, unittest.equals('foo')); |
| 92 unittest.expect(o.id, unittest.equals('foo')); | 92 unittest.expect(o.id, unittest.equals('foo')); |
| 93 unittest.expect(o.name, unittest.equals('foo')); | 93 unittest.expect(o.name, unittest.equals('foo')); |
| 94 unittest.expect(o.reportTypeId, unittest.equals('foo')); | 94 unittest.expect(o.reportTypeId, unittest.equals('foo')); |
| 95 unittest.expect(o.systemManaged, unittest.isTrue); | 95 unittest.expect(o.systemManaged, unittest.isTrue); |
| 96 } | 96 } |
| 97 buildCounterJob--; | 97 buildCounterJob--; |
| 98 } | 98 } |
| 99 | 99 |
| 100 buildUnnamed1166() { | 100 buildUnnamed1192() { |
| 101 var o = new core.List<api.Job>(); | 101 var o = new core.List<api.Job>(); |
| 102 o.add(buildJob()); | 102 o.add(buildJob()); |
| 103 o.add(buildJob()); | 103 o.add(buildJob()); |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkUnnamed1166(core.List<api.Job> o) { | 107 checkUnnamed1192(core.List<api.Job> o) { |
| 108 unittest.expect(o, unittest.hasLength(2)); | 108 unittest.expect(o, unittest.hasLength(2)); |
| 109 checkJob(o[0]); | 109 checkJob(o[0]); |
| 110 checkJob(o[1]); | 110 checkJob(o[1]); |
| 111 } | 111 } |
| 112 | 112 |
| 113 core.int buildCounterListJobsResponse = 0; | 113 core.int buildCounterListJobsResponse = 0; |
| 114 buildListJobsResponse() { | 114 buildListJobsResponse() { |
| 115 var o = new api.ListJobsResponse(); | 115 var o = new api.ListJobsResponse(); |
| 116 buildCounterListJobsResponse++; | 116 buildCounterListJobsResponse++; |
| 117 if (buildCounterListJobsResponse < 3) { | 117 if (buildCounterListJobsResponse < 3) { |
| 118 o.jobs = buildUnnamed1166(); | 118 o.jobs = buildUnnamed1192(); |
| 119 o.nextPageToken = "foo"; | 119 o.nextPageToken = "foo"; |
| 120 } | 120 } |
| 121 buildCounterListJobsResponse--; | 121 buildCounterListJobsResponse--; |
| 122 return o; | 122 return o; |
| 123 } | 123 } |
| 124 | 124 |
| 125 checkListJobsResponse(api.ListJobsResponse o) { | 125 checkListJobsResponse(api.ListJobsResponse o) { |
| 126 buildCounterListJobsResponse++; | 126 buildCounterListJobsResponse++; |
| 127 if (buildCounterListJobsResponse < 3) { | 127 if (buildCounterListJobsResponse < 3) { |
| 128 checkUnnamed1166(o.jobs); | 128 checkUnnamed1192(o.jobs); |
| 129 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 129 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 130 } | 130 } |
| 131 buildCounterListJobsResponse--; | 131 buildCounterListJobsResponse--; |
| 132 } | 132 } |
| 133 | 133 |
| 134 buildUnnamed1167() { | 134 buildUnnamed1193() { |
| 135 var o = new core.List<api.ReportType>(); | 135 var o = new core.List<api.ReportType>(); |
| 136 o.add(buildReportType()); | 136 o.add(buildReportType()); |
| 137 o.add(buildReportType()); | 137 o.add(buildReportType()); |
| 138 return o; | 138 return o; |
| 139 } | 139 } |
| 140 | 140 |
| 141 checkUnnamed1167(core.List<api.ReportType> o) { | 141 checkUnnamed1193(core.List<api.ReportType> o) { |
| 142 unittest.expect(o, unittest.hasLength(2)); | 142 unittest.expect(o, unittest.hasLength(2)); |
| 143 checkReportType(o[0]); | 143 checkReportType(o[0]); |
| 144 checkReportType(o[1]); | 144 checkReportType(o[1]); |
| 145 } | 145 } |
| 146 | 146 |
| 147 core.int buildCounterListReportTypesResponse = 0; | 147 core.int buildCounterListReportTypesResponse = 0; |
| 148 buildListReportTypesResponse() { | 148 buildListReportTypesResponse() { |
| 149 var o = new api.ListReportTypesResponse(); | 149 var o = new api.ListReportTypesResponse(); |
| 150 buildCounterListReportTypesResponse++; | 150 buildCounterListReportTypesResponse++; |
| 151 if (buildCounterListReportTypesResponse < 3) { | 151 if (buildCounterListReportTypesResponse < 3) { |
| 152 o.nextPageToken = "foo"; | 152 o.nextPageToken = "foo"; |
| 153 o.reportTypes = buildUnnamed1167(); | 153 o.reportTypes = buildUnnamed1193(); |
| 154 } | 154 } |
| 155 buildCounterListReportTypesResponse--; | 155 buildCounterListReportTypesResponse--; |
| 156 return o; | 156 return o; |
| 157 } | 157 } |
| 158 | 158 |
| 159 checkListReportTypesResponse(api.ListReportTypesResponse o) { | 159 checkListReportTypesResponse(api.ListReportTypesResponse o) { |
| 160 buildCounterListReportTypesResponse++; | 160 buildCounterListReportTypesResponse++; |
| 161 if (buildCounterListReportTypesResponse < 3) { | 161 if (buildCounterListReportTypesResponse < 3) { |
| 162 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 162 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 163 checkUnnamed1167(o.reportTypes); | 163 checkUnnamed1193(o.reportTypes); |
| 164 } | 164 } |
| 165 buildCounterListReportTypesResponse--; | 165 buildCounterListReportTypesResponse--; |
| 166 } | 166 } |
| 167 | 167 |
| 168 buildUnnamed1168() { | 168 buildUnnamed1194() { |
| 169 var o = new core.List<api.Report>(); | 169 var o = new core.List<api.Report>(); |
| 170 o.add(buildReport()); | 170 o.add(buildReport()); |
| 171 o.add(buildReport()); | 171 o.add(buildReport()); |
| 172 return o; | 172 return o; |
| 173 } | 173 } |
| 174 | 174 |
| 175 checkUnnamed1168(core.List<api.Report> o) { | 175 checkUnnamed1194(core.List<api.Report> o) { |
| 176 unittest.expect(o, unittest.hasLength(2)); | 176 unittest.expect(o, unittest.hasLength(2)); |
| 177 checkReport(o[0]); | 177 checkReport(o[0]); |
| 178 checkReport(o[1]); | 178 checkReport(o[1]); |
| 179 } | 179 } |
| 180 | 180 |
| 181 core.int buildCounterListReportsResponse = 0; | 181 core.int buildCounterListReportsResponse = 0; |
| 182 buildListReportsResponse() { | 182 buildListReportsResponse() { |
| 183 var o = new api.ListReportsResponse(); | 183 var o = new api.ListReportsResponse(); |
| 184 buildCounterListReportsResponse++; | 184 buildCounterListReportsResponse++; |
| 185 if (buildCounterListReportsResponse < 3) { | 185 if (buildCounterListReportsResponse < 3) { |
| 186 o.nextPageToken = "foo"; | 186 o.nextPageToken = "foo"; |
| 187 o.reports = buildUnnamed1168(); | 187 o.reports = buildUnnamed1194(); |
| 188 } | 188 } |
| 189 buildCounterListReportsResponse--; | 189 buildCounterListReportsResponse--; |
| 190 return o; | 190 return o; |
| 191 } | 191 } |
| 192 | 192 |
| 193 checkListReportsResponse(api.ListReportsResponse o) { | 193 checkListReportsResponse(api.ListReportsResponse o) { |
| 194 buildCounterListReportsResponse++; | 194 buildCounterListReportsResponse++; |
| 195 if (buildCounterListReportsResponse < 3) { | 195 if (buildCounterListReportsResponse < 3) { |
| 196 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 196 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 197 checkUnnamed1168(o.reports); | 197 checkUnnamed1194(o.reports); |
| 198 } | 198 } |
| 199 buildCounterListReportsResponse--; | 199 buildCounterListReportsResponse--; |
| 200 } | 200 } |
| 201 | 201 |
| 202 core.int buildCounterMedia = 0; | 202 core.int buildCounterMedia = 0; |
| 203 buildMedia() { | 203 buildMedia() { |
| 204 var o = new api.Media(); | 204 var o = new api.Media(); |
| 205 buildCounterMedia++; | 205 buildCounterMedia++; |
| 206 if (buildCounterMedia < 3) { | 206 if (buildCounterMedia < 3) { |
| 207 o.resourceName = "foo"; | 207 o.resourceName = "foo"; |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 res.list(onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageSize: arg
_pageSize, pageToken: arg_pageToken, includeSystemManaged: arg_includeSystemMana
ged).then(unittest.expectAsync(((api.ListReportTypesResponse response) { | 775 res.list(onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageSize: arg
_pageSize, pageToken: arg_pageToken, includeSystemManaged: arg_includeSystemMana
ged).then(unittest.expectAsync(((api.ListReportTypesResponse response) { |
| 776 checkListReportTypesResponse(response); | 776 checkListReportTypesResponse(response); |
| 777 }))); | 777 }))); |
| 778 }); | 778 }); |
| 779 | 779 |
| 780 }); | 780 }); |
| 781 | 781 |
| 782 | 782 |
| 783 } | 783 } |
| 784 | 784 |
| OLD | NEW |