| OLD | NEW |
| 1 library googleapis.searchconsole.v1.test; | 1 library googleapis.searchconsole.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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 checkRunMobileFriendlyTestRequest(api.RunMobileFriendlyTestRequest o) { | 144 checkRunMobileFriendlyTestRequest(api.RunMobileFriendlyTestRequest o) { |
| 145 buildCounterRunMobileFriendlyTestRequest++; | 145 buildCounterRunMobileFriendlyTestRequest++; |
| 146 if (buildCounterRunMobileFriendlyTestRequest < 3) { | 146 if (buildCounterRunMobileFriendlyTestRequest < 3) { |
| 147 unittest.expect(o.requestScreenshot, unittest.isTrue); | 147 unittest.expect(o.requestScreenshot, unittest.isTrue); |
| 148 unittest.expect(o.url, unittest.equals('foo')); | 148 unittest.expect(o.url, unittest.equals('foo')); |
| 149 } | 149 } |
| 150 buildCounterRunMobileFriendlyTestRequest--; | 150 buildCounterRunMobileFriendlyTestRequest--; |
| 151 } | 151 } |
| 152 | 152 |
| 153 buildUnnamed1107() { | 153 buildUnnamed1138() { |
| 154 var o = new core.List<api.MobileFriendlyIssue>(); | 154 var o = new core.List<api.MobileFriendlyIssue>(); |
| 155 o.add(buildMobileFriendlyIssue()); | 155 o.add(buildMobileFriendlyIssue()); |
| 156 o.add(buildMobileFriendlyIssue()); | 156 o.add(buildMobileFriendlyIssue()); |
| 157 return o; | 157 return o; |
| 158 } | 158 } |
| 159 | 159 |
| 160 checkUnnamed1107(core.List<api.MobileFriendlyIssue> o) { | 160 checkUnnamed1138(core.List<api.MobileFriendlyIssue> o) { |
| 161 unittest.expect(o, unittest.hasLength(2)); | 161 unittest.expect(o, unittest.hasLength(2)); |
| 162 checkMobileFriendlyIssue(o[0]); | 162 checkMobileFriendlyIssue(o[0]); |
| 163 checkMobileFriendlyIssue(o[1]); | 163 checkMobileFriendlyIssue(o[1]); |
| 164 } | 164 } |
| 165 | 165 |
| 166 buildUnnamed1108() { | 166 buildUnnamed1139() { |
| 167 var o = new core.List<api.ResourceIssue>(); | 167 var o = new core.List<api.ResourceIssue>(); |
| 168 o.add(buildResourceIssue()); | 168 o.add(buildResourceIssue()); |
| 169 o.add(buildResourceIssue()); | 169 o.add(buildResourceIssue()); |
| 170 return o; | 170 return o; |
| 171 } | 171 } |
| 172 | 172 |
| 173 checkUnnamed1108(core.List<api.ResourceIssue> o) { | 173 checkUnnamed1139(core.List<api.ResourceIssue> o) { |
| 174 unittest.expect(o, unittest.hasLength(2)); | 174 unittest.expect(o, unittest.hasLength(2)); |
| 175 checkResourceIssue(o[0]); | 175 checkResourceIssue(o[0]); |
| 176 checkResourceIssue(o[1]); | 176 checkResourceIssue(o[1]); |
| 177 } | 177 } |
| 178 | 178 |
| 179 core.int buildCounterRunMobileFriendlyTestResponse = 0; | 179 core.int buildCounterRunMobileFriendlyTestResponse = 0; |
| 180 buildRunMobileFriendlyTestResponse() { | 180 buildRunMobileFriendlyTestResponse() { |
| 181 var o = new api.RunMobileFriendlyTestResponse(); | 181 var o = new api.RunMobileFriendlyTestResponse(); |
| 182 buildCounterRunMobileFriendlyTestResponse++; | 182 buildCounterRunMobileFriendlyTestResponse++; |
| 183 if (buildCounterRunMobileFriendlyTestResponse < 3) { | 183 if (buildCounterRunMobileFriendlyTestResponse < 3) { |
| 184 o.mobileFriendliness = "foo"; | 184 o.mobileFriendliness = "foo"; |
| 185 o.mobileFriendlyIssues = buildUnnamed1107(); | 185 o.mobileFriendlyIssues = buildUnnamed1138(); |
| 186 o.resourceIssues = buildUnnamed1108(); | 186 o.resourceIssues = buildUnnamed1139(); |
| 187 o.screenshot = buildImage(); | 187 o.screenshot = buildImage(); |
| 188 o.testStatus = buildTestStatus(); | 188 o.testStatus = buildTestStatus(); |
| 189 } | 189 } |
| 190 buildCounterRunMobileFriendlyTestResponse--; | 190 buildCounterRunMobileFriendlyTestResponse--; |
| 191 return o; | 191 return o; |
| 192 } | 192 } |
| 193 | 193 |
| 194 checkRunMobileFriendlyTestResponse(api.RunMobileFriendlyTestResponse o) { | 194 checkRunMobileFriendlyTestResponse(api.RunMobileFriendlyTestResponse o) { |
| 195 buildCounterRunMobileFriendlyTestResponse++; | 195 buildCounterRunMobileFriendlyTestResponse++; |
| 196 if (buildCounterRunMobileFriendlyTestResponse < 3) { | 196 if (buildCounterRunMobileFriendlyTestResponse < 3) { |
| 197 unittest.expect(o.mobileFriendliness, unittest.equals('foo')); | 197 unittest.expect(o.mobileFriendliness, unittest.equals('foo')); |
| 198 checkUnnamed1107(o.mobileFriendlyIssues); | 198 checkUnnamed1138(o.mobileFriendlyIssues); |
| 199 checkUnnamed1108(o.resourceIssues); | 199 checkUnnamed1139(o.resourceIssues); |
| 200 checkImage(o.screenshot); | 200 checkImage(o.screenshot); |
| 201 checkTestStatus(o.testStatus); | 201 checkTestStatus(o.testStatus); |
| 202 } | 202 } |
| 203 buildCounterRunMobileFriendlyTestResponse--; | 203 buildCounterRunMobileFriendlyTestResponse--; |
| 204 } | 204 } |
| 205 | 205 |
| 206 core.int buildCounterTestStatus = 0; | 206 core.int buildCounterTestStatus = 0; |
| 207 buildTestStatus() { | 207 buildTestStatus() { |
| 208 var o = new api.TestStatus(); | 208 var o = new api.TestStatus(); |
| 209 buildCounterTestStatus++; | 209 buildCounterTestStatus++; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 res.run(arg_request).then(unittest.expectAsync(((api.RunMobileFriendlyTest
Response response) { | 335 res.run(arg_request).then(unittest.expectAsync(((api.RunMobileFriendlyTest
Response response) { |
| 336 checkRunMobileFriendlyTestResponse(response); | 336 checkRunMobileFriendlyTestResponse(response); |
| 337 }))); | 337 }))); |
| 338 }); | 338 }); |
| 339 | 339 |
| 340 }); | 340 }); |
| 341 | 341 |
| 342 | 342 |
| 343 } | 343 } |
| 344 | 344 |
| OLD | NEW |