OLD | NEW |
1 library googleapis.webmasters.v3.test; | 1 library googleapis.webmasters.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:unittest/unittest.dart' as unittest; |
11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
14 | 14 |
15 import 'package:googleapis/webmasters/v3.dart' as api; | 15 import 'package:googleapis/webmasters/v3.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed383() { | 19 buildUnnamed1128() { |
20 var o = new core.List<api.WmxSitemap>(); | 20 var o = new core.List<api.WmxSitemap>(); |
21 o.add(buildWmxSitemap()); | 21 o.add(buildWmxSitemap()); |
22 o.add(buildWmxSitemap()); | 22 o.add(buildWmxSitemap()); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed383(core.List<api.WmxSitemap> o) { | 26 checkUnnamed1128(core.List<api.WmxSitemap> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 checkWmxSitemap(o[0]); | 28 checkWmxSitemap(o[0]); |
29 checkWmxSitemap(o[1]); | 29 checkWmxSitemap(o[1]); |
30 } | 30 } |
31 | 31 |
32 core.int buildCounterSitemapsListResponse = 0; | 32 core.int buildCounterSitemapsListResponse = 0; |
33 buildSitemapsListResponse() { | 33 buildSitemapsListResponse() { |
34 var o = new api.SitemapsListResponse(); | 34 var o = new api.SitemapsListResponse(); |
35 buildCounterSitemapsListResponse++; | 35 buildCounterSitemapsListResponse++; |
36 if (buildCounterSitemapsListResponse < 3) { | 36 if (buildCounterSitemapsListResponse < 3) { |
37 o.sitemap = buildUnnamed383(); | 37 o.sitemap = buildUnnamed1128(); |
38 } | 38 } |
39 buildCounterSitemapsListResponse--; | 39 buildCounterSitemapsListResponse--; |
40 return o; | 40 return o; |
41 } | 41 } |
42 | 42 |
43 checkSitemapsListResponse(api.SitemapsListResponse o) { | 43 checkSitemapsListResponse(api.SitemapsListResponse o) { |
44 buildCounterSitemapsListResponse++; | 44 buildCounterSitemapsListResponse++; |
45 if (buildCounterSitemapsListResponse < 3) { | 45 if (buildCounterSitemapsListResponse < 3) { |
46 checkUnnamed383(o.sitemap); | 46 checkUnnamed1128(o.sitemap); |
47 } | 47 } |
48 buildCounterSitemapsListResponse--; | 48 buildCounterSitemapsListResponse--; |
49 } | 49 } |
50 | 50 |
51 buildUnnamed384() { | 51 buildUnnamed1129() { |
52 var o = new core.List<api.WmxSite>(); | 52 var o = new core.List<api.WmxSite>(); |
53 o.add(buildWmxSite()); | 53 o.add(buildWmxSite()); |
54 o.add(buildWmxSite()); | 54 o.add(buildWmxSite()); |
55 return o; | 55 return o; |
56 } | 56 } |
57 | 57 |
58 checkUnnamed384(core.List<api.WmxSite> o) { | 58 checkUnnamed1129(core.List<api.WmxSite> o) { |
59 unittest.expect(o, unittest.hasLength(2)); | 59 unittest.expect(o, unittest.hasLength(2)); |
60 checkWmxSite(o[0]); | 60 checkWmxSite(o[0]); |
61 checkWmxSite(o[1]); | 61 checkWmxSite(o[1]); |
62 } | 62 } |
63 | 63 |
64 core.int buildCounterSitesListResponse = 0; | 64 core.int buildCounterSitesListResponse = 0; |
65 buildSitesListResponse() { | 65 buildSitesListResponse() { |
66 var o = new api.SitesListResponse(); | 66 var o = new api.SitesListResponse(); |
67 buildCounterSitesListResponse++; | 67 buildCounterSitesListResponse++; |
68 if (buildCounterSitesListResponse < 3) { | 68 if (buildCounterSitesListResponse < 3) { |
69 o.siteEntry = buildUnnamed384(); | 69 o.siteEntry = buildUnnamed1129(); |
70 } | 70 } |
71 buildCounterSitesListResponse--; | 71 buildCounterSitesListResponse--; |
72 return o; | 72 return o; |
73 } | 73 } |
74 | 74 |
75 checkSitesListResponse(api.SitesListResponse o) { | 75 checkSitesListResponse(api.SitesListResponse o) { |
76 buildCounterSitesListResponse++; | 76 buildCounterSitesListResponse++; |
77 if (buildCounterSitesListResponse < 3) { | 77 if (buildCounterSitesListResponse < 3) { |
78 checkUnnamed384(o.siteEntry); | 78 checkUnnamed1129(o.siteEntry); |
79 } | 79 } |
80 buildCounterSitesListResponse--; | 80 buildCounterSitesListResponse--; |
81 } | 81 } |
82 | 82 |
83 core.int buildCounterUrlCrawlErrorCount = 0; | 83 core.int buildCounterUrlCrawlErrorCount = 0; |
84 buildUrlCrawlErrorCount() { | 84 buildUrlCrawlErrorCount() { |
85 var o = new api.UrlCrawlErrorCount(); | 85 var o = new api.UrlCrawlErrorCount(); |
86 buildCounterUrlCrawlErrorCount++; | 86 buildCounterUrlCrawlErrorCount++; |
87 if (buildCounterUrlCrawlErrorCount < 3) { | 87 if (buildCounterUrlCrawlErrorCount < 3) { |
88 o.count = "foo"; | 88 o.count = "foo"; |
89 o.timestamp = core.DateTime.parse("2002-02-27T14:01:02"); | 89 o.timestamp = core.DateTime.parse("2002-02-27T14:01:02"); |
90 } | 90 } |
91 buildCounterUrlCrawlErrorCount--; | 91 buildCounterUrlCrawlErrorCount--; |
92 return o; | 92 return o; |
93 } | 93 } |
94 | 94 |
95 checkUrlCrawlErrorCount(api.UrlCrawlErrorCount o) { | 95 checkUrlCrawlErrorCount(api.UrlCrawlErrorCount o) { |
96 buildCounterUrlCrawlErrorCount++; | 96 buildCounterUrlCrawlErrorCount++; |
97 if (buildCounterUrlCrawlErrorCount < 3) { | 97 if (buildCounterUrlCrawlErrorCount < 3) { |
98 unittest.expect(o.count, unittest.equals('foo')); | 98 unittest.expect(o.count, unittest.equals('foo')); |
99 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 99 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
100 } | 100 } |
101 buildCounterUrlCrawlErrorCount--; | 101 buildCounterUrlCrawlErrorCount--; |
102 } | 102 } |
103 | 103 |
104 buildUnnamed385() { | 104 buildUnnamed1130() { |
105 var o = new core.List<api.UrlCrawlErrorCount>(); | 105 var o = new core.List<api.UrlCrawlErrorCount>(); |
106 o.add(buildUrlCrawlErrorCount()); | 106 o.add(buildUrlCrawlErrorCount()); |
107 o.add(buildUrlCrawlErrorCount()); | 107 o.add(buildUrlCrawlErrorCount()); |
108 return o; | 108 return o; |
109 } | 109 } |
110 | 110 |
111 checkUnnamed385(core.List<api.UrlCrawlErrorCount> o) { | 111 checkUnnamed1130(core.List<api.UrlCrawlErrorCount> o) { |
112 unittest.expect(o, unittest.hasLength(2)); | 112 unittest.expect(o, unittest.hasLength(2)); |
113 checkUrlCrawlErrorCount(o[0]); | 113 checkUrlCrawlErrorCount(o[0]); |
114 checkUrlCrawlErrorCount(o[1]); | 114 checkUrlCrawlErrorCount(o[1]); |
115 } | 115 } |
116 | 116 |
117 core.int buildCounterUrlCrawlErrorCountsPerType = 0; | 117 core.int buildCounterUrlCrawlErrorCountsPerType = 0; |
118 buildUrlCrawlErrorCountsPerType() { | 118 buildUrlCrawlErrorCountsPerType() { |
119 var o = new api.UrlCrawlErrorCountsPerType(); | 119 var o = new api.UrlCrawlErrorCountsPerType(); |
120 buildCounterUrlCrawlErrorCountsPerType++; | 120 buildCounterUrlCrawlErrorCountsPerType++; |
121 if (buildCounterUrlCrawlErrorCountsPerType < 3) { | 121 if (buildCounterUrlCrawlErrorCountsPerType < 3) { |
122 o.category = "foo"; | 122 o.category = "foo"; |
123 o.entries = buildUnnamed385(); | 123 o.entries = buildUnnamed1130(); |
124 o.platform = "foo"; | 124 o.platform = "foo"; |
125 } | 125 } |
126 buildCounterUrlCrawlErrorCountsPerType--; | 126 buildCounterUrlCrawlErrorCountsPerType--; |
127 return o; | 127 return o; |
128 } | 128 } |
129 | 129 |
130 checkUrlCrawlErrorCountsPerType(api.UrlCrawlErrorCountsPerType o) { | 130 checkUrlCrawlErrorCountsPerType(api.UrlCrawlErrorCountsPerType o) { |
131 buildCounterUrlCrawlErrorCountsPerType++; | 131 buildCounterUrlCrawlErrorCountsPerType++; |
132 if (buildCounterUrlCrawlErrorCountsPerType < 3) { | 132 if (buildCounterUrlCrawlErrorCountsPerType < 3) { |
133 unittest.expect(o.category, unittest.equals('foo')); | 133 unittest.expect(o.category, unittest.equals('foo')); |
134 checkUnnamed385(o.entries); | 134 checkUnnamed1130(o.entries); |
135 unittest.expect(o.platform, unittest.equals('foo')); | 135 unittest.expect(o.platform, unittest.equals('foo')); |
136 } | 136 } |
137 buildCounterUrlCrawlErrorCountsPerType--; | 137 buildCounterUrlCrawlErrorCountsPerType--; |
138 } | 138 } |
139 | 139 |
140 buildUnnamed386() { | 140 buildUnnamed1131() { |
141 var o = new core.List<api.UrlCrawlErrorCountsPerType>(); | 141 var o = new core.List<api.UrlCrawlErrorCountsPerType>(); |
142 o.add(buildUrlCrawlErrorCountsPerType()); | 142 o.add(buildUrlCrawlErrorCountsPerType()); |
143 o.add(buildUrlCrawlErrorCountsPerType()); | 143 o.add(buildUrlCrawlErrorCountsPerType()); |
144 return o; | 144 return o; |
145 } | 145 } |
146 | 146 |
147 checkUnnamed386(core.List<api.UrlCrawlErrorCountsPerType> o) { | 147 checkUnnamed1131(core.List<api.UrlCrawlErrorCountsPerType> o) { |
148 unittest.expect(o, unittest.hasLength(2)); | 148 unittest.expect(o, unittest.hasLength(2)); |
149 checkUrlCrawlErrorCountsPerType(o[0]); | 149 checkUrlCrawlErrorCountsPerType(o[0]); |
150 checkUrlCrawlErrorCountsPerType(o[1]); | 150 checkUrlCrawlErrorCountsPerType(o[1]); |
151 } | 151 } |
152 | 152 |
153 core.int buildCounterUrlCrawlErrorsCountsQueryResponse = 0; | 153 core.int buildCounterUrlCrawlErrorsCountsQueryResponse = 0; |
154 buildUrlCrawlErrorsCountsQueryResponse() { | 154 buildUrlCrawlErrorsCountsQueryResponse() { |
155 var o = new api.UrlCrawlErrorsCountsQueryResponse(); | 155 var o = new api.UrlCrawlErrorsCountsQueryResponse(); |
156 buildCounterUrlCrawlErrorsCountsQueryResponse++; | 156 buildCounterUrlCrawlErrorsCountsQueryResponse++; |
157 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { | 157 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { |
158 o.countPerTypes = buildUnnamed386(); | 158 o.countPerTypes = buildUnnamed1131(); |
159 } | 159 } |
160 buildCounterUrlCrawlErrorsCountsQueryResponse--; | 160 buildCounterUrlCrawlErrorsCountsQueryResponse--; |
161 return o; | 161 return o; |
162 } | 162 } |
163 | 163 |
164 checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o)
{ | 164 checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o)
{ |
165 buildCounterUrlCrawlErrorsCountsQueryResponse++; | 165 buildCounterUrlCrawlErrorsCountsQueryResponse++; |
166 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { | 166 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { |
167 checkUnnamed386(o.countPerTypes); | 167 checkUnnamed1131(o.countPerTypes); |
168 } | 168 } |
169 buildCounterUrlCrawlErrorsCountsQueryResponse--; | 169 buildCounterUrlCrawlErrorsCountsQueryResponse--; |
170 } | 170 } |
171 | 171 |
172 core.int buildCounterUrlCrawlErrorsSample = 0; | 172 core.int buildCounterUrlCrawlErrorsSample = 0; |
173 buildUrlCrawlErrorsSample() { | 173 buildUrlCrawlErrorsSample() { |
174 var o = new api.UrlCrawlErrorsSample(); | 174 var o = new api.UrlCrawlErrorsSample(); |
175 buildCounterUrlCrawlErrorsSample++; | 175 buildCounterUrlCrawlErrorsSample++; |
176 if (buildCounterUrlCrawlErrorsSample < 3) { | 176 if (buildCounterUrlCrawlErrorsSample < 3) { |
177 o.firstDetected = core.DateTime.parse("2002-02-27T14:01:02"); | 177 o.firstDetected = core.DateTime.parse("2002-02-27T14:01:02"); |
(...skipping 11 matching lines...) Expand all Loading... |
189 if (buildCounterUrlCrawlErrorsSample < 3) { | 189 if (buildCounterUrlCrawlErrorsSample < 3) { |
190 unittest.expect(o.firstDetected, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 190 unittest.expect(o.firstDetected, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
191 unittest.expect(o.lastCrawled, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 191 unittest.expect(o.lastCrawled, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
192 unittest.expect(o.pageUrl, unittest.equals('foo')); | 192 unittest.expect(o.pageUrl, unittest.equals('foo')); |
193 unittest.expect(o.responseCode, unittest.equals(42)); | 193 unittest.expect(o.responseCode, unittest.equals(42)); |
194 checkUrlSampleDetails(o.urlDetails); | 194 checkUrlSampleDetails(o.urlDetails); |
195 } | 195 } |
196 buildCounterUrlCrawlErrorsSample--; | 196 buildCounterUrlCrawlErrorsSample--; |
197 } | 197 } |
198 | 198 |
199 buildUnnamed387() { | 199 buildUnnamed1132() { |
200 var o = new core.List<api.UrlCrawlErrorsSample>(); | 200 var o = new core.List<api.UrlCrawlErrorsSample>(); |
201 o.add(buildUrlCrawlErrorsSample()); | 201 o.add(buildUrlCrawlErrorsSample()); |
202 o.add(buildUrlCrawlErrorsSample()); | 202 o.add(buildUrlCrawlErrorsSample()); |
203 return o; | 203 return o; |
204 } | 204 } |
205 | 205 |
206 checkUnnamed387(core.List<api.UrlCrawlErrorsSample> o) { | 206 checkUnnamed1132(core.List<api.UrlCrawlErrorsSample> o) { |
207 unittest.expect(o, unittest.hasLength(2)); | 207 unittest.expect(o, unittest.hasLength(2)); |
208 checkUrlCrawlErrorsSample(o[0]); | 208 checkUrlCrawlErrorsSample(o[0]); |
209 checkUrlCrawlErrorsSample(o[1]); | 209 checkUrlCrawlErrorsSample(o[1]); |
210 } | 210 } |
211 | 211 |
212 core.int buildCounterUrlCrawlErrorsSamplesListResponse = 0; | 212 core.int buildCounterUrlCrawlErrorsSamplesListResponse = 0; |
213 buildUrlCrawlErrorsSamplesListResponse() { | 213 buildUrlCrawlErrorsSamplesListResponse() { |
214 var o = new api.UrlCrawlErrorsSamplesListResponse(); | 214 var o = new api.UrlCrawlErrorsSamplesListResponse(); |
215 buildCounterUrlCrawlErrorsSamplesListResponse++; | 215 buildCounterUrlCrawlErrorsSamplesListResponse++; |
216 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { | 216 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { |
217 o.urlCrawlErrorSample = buildUnnamed387(); | 217 o.urlCrawlErrorSample = buildUnnamed1132(); |
218 } | 218 } |
219 buildCounterUrlCrawlErrorsSamplesListResponse--; | 219 buildCounterUrlCrawlErrorsSamplesListResponse--; |
220 return o; | 220 return o; |
221 } | 221 } |
222 | 222 |
223 checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o)
{ | 223 checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o)
{ |
224 buildCounterUrlCrawlErrorsSamplesListResponse++; | 224 buildCounterUrlCrawlErrorsSamplesListResponse++; |
225 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { | 225 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { |
226 checkUnnamed387(o.urlCrawlErrorSample); | 226 checkUnnamed1132(o.urlCrawlErrorSample); |
227 } | 227 } |
228 buildCounterUrlCrawlErrorsSamplesListResponse--; | 228 buildCounterUrlCrawlErrorsSamplesListResponse--; |
229 } | 229 } |
230 | 230 |
231 buildUnnamed388() { | 231 buildUnnamed1133() { |
232 var o = new core.List<core.String>(); | 232 var o = new core.List<core.String>(); |
233 o.add("foo"); | 233 o.add("foo"); |
234 o.add("foo"); | 234 o.add("foo"); |
235 return o; | 235 return o; |
236 } | 236 } |
237 | 237 |
238 checkUnnamed388(core.List<core.String> o) { | 238 checkUnnamed1133(core.List<core.String> o) { |
239 unittest.expect(o, unittest.hasLength(2)); | 239 unittest.expect(o, unittest.hasLength(2)); |
240 unittest.expect(o[0], unittest.equals('foo')); | 240 unittest.expect(o[0], unittest.equals('foo')); |
241 unittest.expect(o[1], unittest.equals('foo')); | 241 unittest.expect(o[1], unittest.equals('foo')); |
242 } | 242 } |
243 | 243 |
244 buildUnnamed389() { | 244 buildUnnamed1134() { |
245 var o = new core.List<core.String>(); | 245 var o = new core.List<core.String>(); |
246 o.add("foo"); | 246 o.add("foo"); |
247 o.add("foo"); | 247 o.add("foo"); |
248 return o; | 248 return o; |
249 } | 249 } |
250 | 250 |
251 checkUnnamed389(core.List<core.String> o) { | 251 checkUnnamed1134(core.List<core.String> o) { |
252 unittest.expect(o, unittest.hasLength(2)); | 252 unittest.expect(o, unittest.hasLength(2)); |
253 unittest.expect(o[0], unittest.equals('foo')); | 253 unittest.expect(o[0], unittest.equals('foo')); |
254 unittest.expect(o[1], unittest.equals('foo')); | 254 unittest.expect(o[1], unittest.equals('foo')); |
255 } | 255 } |
256 | 256 |
257 core.int buildCounterUrlSampleDetails = 0; | 257 core.int buildCounterUrlSampleDetails = 0; |
258 buildUrlSampleDetails() { | 258 buildUrlSampleDetails() { |
259 var o = new api.UrlSampleDetails(); | 259 var o = new api.UrlSampleDetails(); |
260 buildCounterUrlSampleDetails++; | 260 buildCounterUrlSampleDetails++; |
261 if (buildCounterUrlSampleDetails < 3) { | 261 if (buildCounterUrlSampleDetails < 3) { |
262 o.containingSitemaps = buildUnnamed388(); | 262 o.containingSitemaps = buildUnnamed1133(); |
263 o.linkedFromUrls = buildUnnamed389(); | 263 o.linkedFromUrls = buildUnnamed1134(); |
264 } | 264 } |
265 buildCounterUrlSampleDetails--; | 265 buildCounterUrlSampleDetails--; |
266 return o; | 266 return o; |
267 } | 267 } |
268 | 268 |
269 checkUrlSampleDetails(api.UrlSampleDetails o) { | 269 checkUrlSampleDetails(api.UrlSampleDetails o) { |
270 buildCounterUrlSampleDetails++; | 270 buildCounterUrlSampleDetails++; |
271 if (buildCounterUrlSampleDetails < 3) { | 271 if (buildCounterUrlSampleDetails < 3) { |
272 checkUnnamed388(o.containingSitemaps); | 272 checkUnnamed1133(o.containingSitemaps); |
273 checkUnnamed389(o.linkedFromUrls); | 273 checkUnnamed1134(o.linkedFromUrls); |
274 } | 274 } |
275 buildCounterUrlSampleDetails--; | 275 buildCounterUrlSampleDetails--; |
276 } | 276 } |
277 | 277 |
278 core.int buildCounterWmxSite = 0; | 278 core.int buildCounterWmxSite = 0; |
279 buildWmxSite() { | 279 buildWmxSite() { |
280 var o = new api.WmxSite(); | 280 var o = new api.WmxSite(); |
281 buildCounterWmxSite++; | 281 buildCounterWmxSite++; |
282 if (buildCounterWmxSite < 3) { | 282 if (buildCounterWmxSite < 3) { |
283 o.permissionLevel = "foo"; | 283 o.permissionLevel = "foo"; |
284 o.siteUrl = "foo"; | 284 o.siteUrl = "foo"; |
285 } | 285 } |
286 buildCounterWmxSite--; | 286 buildCounterWmxSite--; |
287 return o; | 287 return o; |
288 } | 288 } |
289 | 289 |
290 checkWmxSite(api.WmxSite o) { | 290 checkWmxSite(api.WmxSite o) { |
291 buildCounterWmxSite++; | 291 buildCounterWmxSite++; |
292 if (buildCounterWmxSite < 3) { | 292 if (buildCounterWmxSite < 3) { |
293 unittest.expect(o.permissionLevel, unittest.equals('foo')); | 293 unittest.expect(o.permissionLevel, unittest.equals('foo')); |
294 unittest.expect(o.siteUrl, unittest.equals('foo')); | 294 unittest.expect(o.siteUrl, unittest.equals('foo')); |
295 } | 295 } |
296 buildCounterWmxSite--; | 296 buildCounterWmxSite--; |
297 } | 297 } |
298 | 298 |
299 buildUnnamed390() { | 299 buildUnnamed1135() { |
300 var o = new core.List<api.WmxSitemapContent>(); | 300 var o = new core.List<api.WmxSitemapContent>(); |
301 o.add(buildWmxSitemapContent()); | 301 o.add(buildWmxSitemapContent()); |
302 o.add(buildWmxSitemapContent()); | 302 o.add(buildWmxSitemapContent()); |
303 return o; | 303 return o; |
304 } | 304 } |
305 | 305 |
306 checkUnnamed390(core.List<api.WmxSitemapContent> o) { | 306 checkUnnamed1135(core.List<api.WmxSitemapContent> o) { |
307 unittest.expect(o, unittest.hasLength(2)); | 307 unittest.expect(o, unittest.hasLength(2)); |
308 checkWmxSitemapContent(o[0]); | 308 checkWmxSitemapContent(o[0]); |
309 checkWmxSitemapContent(o[1]); | 309 checkWmxSitemapContent(o[1]); |
310 } | 310 } |
311 | 311 |
312 core.int buildCounterWmxSitemap = 0; | 312 core.int buildCounterWmxSitemap = 0; |
313 buildWmxSitemap() { | 313 buildWmxSitemap() { |
314 var o = new api.WmxSitemap(); | 314 var o = new api.WmxSitemap(); |
315 buildCounterWmxSitemap++; | 315 buildCounterWmxSitemap++; |
316 if (buildCounterWmxSitemap < 3) { | 316 if (buildCounterWmxSitemap < 3) { |
317 o.contents = buildUnnamed390(); | 317 o.contents = buildUnnamed1135(); |
318 o.errors = "foo"; | 318 o.errors = "foo"; |
319 o.isPending = true; | 319 o.isPending = true; |
320 o.isSitemapsIndex = true; | 320 o.isSitemapsIndex = true; |
321 o.lastDownloaded = core.DateTime.parse("2002-02-27T14:01:02"); | 321 o.lastDownloaded = core.DateTime.parse("2002-02-27T14:01:02"); |
322 o.lastSubmitted = core.DateTime.parse("2002-02-27T14:01:02"); | 322 o.lastSubmitted = core.DateTime.parse("2002-02-27T14:01:02"); |
323 o.path = "foo"; | 323 o.path = "foo"; |
324 o.type = "foo"; | 324 o.type = "foo"; |
325 o.warnings = "foo"; | 325 o.warnings = "foo"; |
326 } | 326 } |
327 buildCounterWmxSitemap--; | 327 buildCounterWmxSitemap--; |
328 return o; | 328 return o; |
329 } | 329 } |
330 | 330 |
331 checkWmxSitemap(api.WmxSitemap o) { | 331 checkWmxSitemap(api.WmxSitemap o) { |
332 buildCounterWmxSitemap++; | 332 buildCounterWmxSitemap++; |
333 if (buildCounterWmxSitemap < 3) { | 333 if (buildCounterWmxSitemap < 3) { |
334 checkUnnamed390(o.contents); | 334 checkUnnamed1135(o.contents); |
335 unittest.expect(o.errors, unittest.equals('foo')); | 335 unittest.expect(o.errors, unittest.equals('foo')); |
336 unittest.expect(o.isPending, unittest.isTrue); | 336 unittest.expect(o.isPending, unittest.isTrue); |
337 unittest.expect(o.isSitemapsIndex, unittest.isTrue); | 337 unittest.expect(o.isSitemapsIndex, unittest.isTrue); |
338 unittest.expect(o.lastDownloaded, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 338 unittest.expect(o.lastDownloaded, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
339 unittest.expect(o.lastSubmitted, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 339 unittest.expect(o.lastSubmitted, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
340 unittest.expect(o.path, unittest.equals('foo')); | 340 unittest.expect(o.path, unittest.equals('foo')); |
341 unittest.expect(o.type, unittest.equals('foo')); | 341 unittest.expect(o.type, unittest.equals('foo')); |
342 unittest.expect(o.warnings, unittest.equals('foo')); | 342 unittest.expect(o.warnings, unittest.equals('foo')); |
343 } | 343 } |
344 buildCounterWmxSitemap--; | 344 buildCounterWmxSitemap--; |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1125 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
1126 }), true); | 1126 }), true); |
1127 res.markAsFixed(arg_siteUrl, arg_url, arg_category, arg_platform).then(uni
ttest.expectAsync((_) {})); | 1127 res.markAsFixed(arg_siteUrl, arg_url, arg_category, arg_platform).then(uni
ttest.expectAsync((_) {})); |
1128 }); | 1128 }); |
1129 | 1129 |
1130 }); | 1130 }); |
1131 | 1131 |
1132 | 1132 |
1133 } | 1133 } |
1134 | 1134 |
OLD | NEW |