| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 buildCounterJob++; | 86 buildCounterJob++; |
| 87 if (buildCounterJob < 3) { | 87 if (buildCounterJob < 3) { |
| 88 unittest.expect(o.createTime, unittest.equals('foo')); | 88 unittest.expect(o.createTime, unittest.equals('foo')); |
| 89 unittest.expect(o.id, unittest.equals('foo')); | 89 unittest.expect(o.id, unittest.equals('foo')); |
| 90 unittest.expect(o.name, unittest.equals('foo')); | 90 unittest.expect(o.name, unittest.equals('foo')); |
| 91 unittest.expect(o.reportTypeId, unittest.equals('foo')); | 91 unittest.expect(o.reportTypeId, unittest.equals('foo')); |
| 92 } | 92 } |
| 93 buildCounterJob--; | 93 buildCounterJob--; |
| 94 } | 94 } |
| 95 | 95 |
| 96 buildUnnamed1308() { | 96 buildUnnamed1565() { |
| 97 var o = new core.List<api.Job>(); | 97 var o = new core.List<api.Job>(); |
| 98 o.add(buildJob()); | 98 o.add(buildJob()); |
| 99 o.add(buildJob()); | 99 o.add(buildJob()); |
| 100 return o; | 100 return o; |
| 101 } | 101 } |
| 102 | 102 |
| 103 checkUnnamed1308(core.List<api.Job> o) { | 103 checkUnnamed1565(core.List<api.Job> o) { |
| 104 unittest.expect(o, unittest.hasLength(2)); | 104 unittest.expect(o, unittest.hasLength(2)); |
| 105 checkJob(o[0]); | 105 checkJob(o[0]); |
| 106 checkJob(o[1]); | 106 checkJob(o[1]); |
| 107 } | 107 } |
| 108 | 108 |
| 109 core.int buildCounterListJobsResponse = 0; | 109 core.int buildCounterListJobsResponse = 0; |
| 110 buildListJobsResponse() { | 110 buildListJobsResponse() { |
| 111 var o = new api.ListJobsResponse(); | 111 var o = new api.ListJobsResponse(); |
| 112 buildCounterListJobsResponse++; | 112 buildCounterListJobsResponse++; |
| 113 if (buildCounterListJobsResponse < 3) { | 113 if (buildCounterListJobsResponse < 3) { |
| 114 o.jobs = buildUnnamed1308(); | 114 o.jobs = buildUnnamed1565(); |
| 115 o.nextPageToken = "foo"; | 115 o.nextPageToken = "foo"; |
| 116 } | 116 } |
| 117 buildCounterListJobsResponse--; | 117 buildCounterListJobsResponse--; |
| 118 return o; | 118 return o; |
| 119 } | 119 } |
| 120 | 120 |
| 121 checkListJobsResponse(api.ListJobsResponse o) { | 121 checkListJobsResponse(api.ListJobsResponse o) { |
| 122 buildCounterListJobsResponse++; | 122 buildCounterListJobsResponse++; |
| 123 if (buildCounterListJobsResponse < 3) { | 123 if (buildCounterListJobsResponse < 3) { |
| 124 checkUnnamed1308(o.jobs); | 124 checkUnnamed1565(o.jobs); |
| 125 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 125 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 126 } | 126 } |
| 127 buildCounterListJobsResponse--; | 127 buildCounterListJobsResponse--; |
| 128 } | 128 } |
| 129 | 129 |
| 130 buildUnnamed1309() { | 130 buildUnnamed1566() { |
| 131 var o = new core.List<api.ReportType>(); | 131 var o = new core.List<api.ReportType>(); |
| 132 o.add(buildReportType()); | 132 o.add(buildReportType()); |
| 133 o.add(buildReportType()); | 133 o.add(buildReportType()); |
| 134 return o; | 134 return o; |
| 135 } | 135 } |
| 136 | 136 |
| 137 checkUnnamed1309(core.List<api.ReportType> o) { | 137 checkUnnamed1566(core.List<api.ReportType> o) { |
| 138 unittest.expect(o, unittest.hasLength(2)); | 138 unittest.expect(o, unittest.hasLength(2)); |
| 139 checkReportType(o[0]); | 139 checkReportType(o[0]); |
| 140 checkReportType(o[1]); | 140 checkReportType(o[1]); |
| 141 } | 141 } |
| 142 | 142 |
| 143 core.int buildCounterListReportTypesResponse = 0; | 143 core.int buildCounterListReportTypesResponse = 0; |
| 144 buildListReportTypesResponse() { | 144 buildListReportTypesResponse() { |
| 145 var o = new api.ListReportTypesResponse(); | 145 var o = new api.ListReportTypesResponse(); |
| 146 buildCounterListReportTypesResponse++; | 146 buildCounterListReportTypesResponse++; |
| 147 if (buildCounterListReportTypesResponse < 3) { | 147 if (buildCounterListReportTypesResponse < 3) { |
| 148 o.nextPageToken = "foo"; | 148 o.nextPageToken = "foo"; |
| 149 o.reportTypes = buildUnnamed1309(); | 149 o.reportTypes = buildUnnamed1566(); |
| 150 } | 150 } |
| 151 buildCounterListReportTypesResponse--; | 151 buildCounterListReportTypesResponse--; |
| 152 return o; | 152 return o; |
| 153 } | 153 } |
| 154 | 154 |
| 155 checkListReportTypesResponse(api.ListReportTypesResponse o) { | 155 checkListReportTypesResponse(api.ListReportTypesResponse o) { |
| 156 buildCounterListReportTypesResponse++; | 156 buildCounterListReportTypesResponse++; |
| 157 if (buildCounterListReportTypesResponse < 3) { | 157 if (buildCounterListReportTypesResponse < 3) { |
| 158 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 158 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 159 checkUnnamed1309(o.reportTypes); | 159 checkUnnamed1566(o.reportTypes); |
| 160 } | 160 } |
| 161 buildCounterListReportTypesResponse--; | 161 buildCounterListReportTypesResponse--; |
| 162 } | 162 } |
| 163 | 163 |
| 164 buildUnnamed1310() { | 164 buildUnnamed1567() { |
| 165 var o = new core.List<api.Report>(); | 165 var o = new core.List<api.Report>(); |
| 166 o.add(buildReport()); | 166 o.add(buildReport()); |
| 167 o.add(buildReport()); | 167 o.add(buildReport()); |
| 168 return o; | 168 return o; |
| 169 } | 169 } |
| 170 | 170 |
| 171 checkUnnamed1310(core.List<api.Report> o) { | 171 checkUnnamed1567(core.List<api.Report> o) { |
| 172 unittest.expect(o, unittest.hasLength(2)); | 172 unittest.expect(o, unittest.hasLength(2)); |
| 173 checkReport(o[0]); | 173 checkReport(o[0]); |
| 174 checkReport(o[1]); | 174 checkReport(o[1]); |
| 175 } | 175 } |
| 176 | 176 |
| 177 core.int buildCounterListReportsResponse = 0; | 177 core.int buildCounterListReportsResponse = 0; |
| 178 buildListReportsResponse() { | 178 buildListReportsResponse() { |
| 179 var o = new api.ListReportsResponse(); | 179 var o = new api.ListReportsResponse(); |
| 180 buildCounterListReportsResponse++; | 180 buildCounterListReportsResponse++; |
| 181 if (buildCounterListReportsResponse < 3) { | 181 if (buildCounterListReportsResponse < 3) { |
| 182 o.nextPageToken = "foo"; | 182 o.nextPageToken = "foo"; |
| 183 o.reports = buildUnnamed1310(); | 183 o.reports = buildUnnamed1567(); |
| 184 } | 184 } |
| 185 buildCounterListReportsResponse--; | 185 buildCounterListReportsResponse--; |
| 186 return o; | 186 return o; |
| 187 } | 187 } |
| 188 | 188 |
| 189 checkListReportsResponse(api.ListReportsResponse o) { | 189 checkListReportsResponse(api.ListReportsResponse o) { |
| 190 buildCounterListReportsResponse++; | 190 buildCounterListReportsResponse++; |
| 191 if (buildCounterListReportsResponse < 3) { | 191 if (buildCounterListReportsResponse < 3) { |
| 192 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 192 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 193 checkUnnamed1310(o.reports); | 193 checkUnnamed1567(o.reports); |
| 194 } | 194 } |
| 195 buildCounterListReportsResponse--; | 195 buildCounterListReportsResponse--; |
| 196 } | 196 } |
| 197 | 197 |
| 198 core.int buildCounterMedia = 0; | 198 core.int buildCounterMedia = 0; |
| 199 buildMedia() { | 199 buildMedia() { |
| 200 var o = new api.Media(); | 200 var o = new api.Media(); |
| 201 buildCounterMedia++; | 201 buildCounterMedia++; |
| 202 if (buildCounterMedia < 3) { | 202 if (buildCounterMedia < 3) { |
| 203 o.resourceName = "foo"; | 203 o.resourceName = "foo"; |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 res.list(onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageSize: arg
_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListReportT
ypesResponse response) { | 757 res.list(onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageSize: arg
_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListReportT
ypesResponse response) { |
| 758 checkListReportTypesResponse(response); | 758 checkListReportTypesResponse(response); |
| 759 }))); | 759 }))); |
| 760 }); | 760 }); |
| 761 | 761 |
| 762 }); | 762 }); |
| 763 | 763 |
| 764 | 764 |
| 765 } | 765 } |
| 766 | 766 |
| OLD | NEW |