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; |
(...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 buildUnnamed654() { | 54 buildUnnamed2177() { |
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 checkUnnamed654(core.List<core.String> o) { | 61 checkUnnamed2177(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 buildCounterApiDataRow = 0; | 67 core.int buildCounterApiDataRow = 0; |
68 buildApiDataRow() { | 68 buildApiDataRow() { |
69 var o = new api.ApiDataRow(); | 69 var o = new api.ApiDataRow(); |
70 buildCounterApiDataRow++; | 70 buildCounterApiDataRow++; |
71 if (buildCounterApiDataRow < 3) { | 71 if (buildCounterApiDataRow < 3) { |
72 o.clicks = 42.0; | 72 o.clicks = 42.0; |
73 o.ctr = 42.0; | 73 o.ctr = 42.0; |
74 o.impressions = 42.0; | 74 o.impressions = 42.0; |
75 o.keys = buildUnnamed654(); | 75 o.keys = buildUnnamed2177(); |
76 o.position = 42.0; | 76 o.position = 42.0; |
77 } | 77 } |
78 buildCounterApiDataRow--; | 78 buildCounterApiDataRow--; |
79 return o; | 79 return o; |
80 } | 80 } |
81 | 81 |
82 checkApiDataRow(api.ApiDataRow o) { | 82 checkApiDataRow(api.ApiDataRow o) { |
83 buildCounterApiDataRow++; | 83 buildCounterApiDataRow++; |
84 if (buildCounterApiDataRow < 3) { | 84 if (buildCounterApiDataRow < 3) { |
85 unittest.expect(o.clicks, unittest.equals(42.0)); | 85 unittest.expect(o.clicks, unittest.equals(42.0)); |
86 unittest.expect(o.ctr, unittest.equals(42.0)); | 86 unittest.expect(o.ctr, unittest.equals(42.0)); |
87 unittest.expect(o.impressions, unittest.equals(42.0)); | 87 unittest.expect(o.impressions, unittest.equals(42.0)); |
88 checkUnnamed654(o.keys); | 88 checkUnnamed2177(o.keys); |
89 unittest.expect(o.position, unittest.equals(42.0)); | 89 unittest.expect(o.position, unittest.equals(42.0)); |
90 } | 90 } |
91 buildCounterApiDataRow--; | 91 buildCounterApiDataRow--; |
92 } | 92 } |
93 | 93 |
94 core.int buildCounterApiDimensionFilter = 0; | 94 core.int buildCounterApiDimensionFilter = 0; |
95 buildApiDimensionFilter() { | 95 buildApiDimensionFilter() { |
96 var o = new api.ApiDimensionFilter(); | 96 var o = new api.ApiDimensionFilter(); |
97 buildCounterApiDimensionFilter++; | 97 buildCounterApiDimensionFilter++; |
98 if (buildCounterApiDimensionFilter < 3) { | 98 if (buildCounterApiDimensionFilter < 3) { |
99 o.dimension = "foo"; | 99 o.dimension = "foo"; |
100 o.expression = "foo"; | 100 o.expression = "foo"; |
101 o.operator = "foo"; | 101 o.operator = "foo"; |
102 } | 102 } |
103 buildCounterApiDimensionFilter--; | 103 buildCounterApiDimensionFilter--; |
104 return o; | 104 return o; |
105 } | 105 } |
106 | 106 |
107 checkApiDimensionFilter(api.ApiDimensionFilter o) { | 107 checkApiDimensionFilter(api.ApiDimensionFilter o) { |
108 buildCounterApiDimensionFilter++; | 108 buildCounterApiDimensionFilter++; |
109 if (buildCounterApiDimensionFilter < 3) { | 109 if (buildCounterApiDimensionFilter < 3) { |
110 unittest.expect(o.dimension, unittest.equals('foo')); | 110 unittest.expect(o.dimension, unittest.equals('foo')); |
111 unittest.expect(o.expression, unittest.equals('foo')); | 111 unittest.expect(o.expression, unittest.equals('foo')); |
112 unittest.expect(o.operator, unittest.equals('foo')); | 112 unittest.expect(o.operator, unittest.equals('foo')); |
113 } | 113 } |
114 buildCounterApiDimensionFilter--; | 114 buildCounterApiDimensionFilter--; |
115 } | 115 } |
116 | 116 |
117 buildUnnamed655() { | 117 buildUnnamed2178() { |
118 var o = new core.List<api.ApiDimensionFilter>(); | 118 var o = new core.List<api.ApiDimensionFilter>(); |
119 o.add(buildApiDimensionFilter()); | 119 o.add(buildApiDimensionFilter()); |
120 o.add(buildApiDimensionFilter()); | 120 o.add(buildApiDimensionFilter()); |
121 return o; | 121 return o; |
122 } | 122 } |
123 | 123 |
124 checkUnnamed655(core.List<api.ApiDimensionFilter> o) { | 124 checkUnnamed2178(core.List<api.ApiDimensionFilter> o) { |
125 unittest.expect(o, unittest.hasLength(2)); | 125 unittest.expect(o, unittest.hasLength(2)); |
126 checkApiDimensionFilter(o[0]); | 126 checkApiDimensionFilter(o[0]); |
127 checkApiDimensionFilter(o[1]); | 127 checkApiDimensionFilter(o[1]); |
128 } | 128 } |
129 | 129 |
130 core.int buildCounterApiDimensionFilterGroup = 0; | 130 core.int buildCounterApiDimensionFilterGroup = 0; |
131 buildApiDimensionFilterGroup() { | 131 buildApiDimensionFilterGroup() { |
132 var o = new api.ApiDimensionFilterGroup(); | 132 var o = new api.ApiDimensionFilterGroup(); |
133 buildCounterApiDimensionFilterGroup++; | 133 buildCounterApiDimensionFilterGroup++; |
134 if (buildCounterApiDimensionFilterGroup < 3) { | 134 if (buildCounterApiDimensionFilterGroup < 3) { |
135 o.filters = buildUnnamed655(); | 135 o.filters = buildUnnamed2178(); |
136 o.groupType = "foo"; | 136 o.groupType = "foo"; |
137 } | 137 } |
138 buildCounterApiDimensionFilterGroup--; | 138 buildCounterApiDimensionFilterGroup--; |
139 return o; | 139 return o; |
140 } | 140 } |
141 | 141 |
142 checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { | 142 checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { |
143 buildCounterApiDimensionFilterGroup++; | 143 buildCounterApiDimensionFilterGroup++; |
144 if (buildCounterApiDimensionFilterGroup < 3) { | 144 if (buildCounterApiDimensionFilterGroup < 3) { |
145 checkUnnamed655(o.filters); | 145 checkUnnamed2178(o.filters); |
146 unittest.expect(o.groupType, unittest.equals('foo')); | 146 unittest.expect(o.groupType, unittest.equals('foo')); |
147 } | 147 } |
148 buildCounterApiDimensionFilterGroup--; | 148 buildCounterApiDimensionFilterGroup--; |
149 } | 149 } |
150 | 150 |
151 buildUnnamed656() { | 151 buildUnnamed2179() { |
152 var o = new core.List<api.ApiDimensionFilterGroup>(); | 152 var o = new core.List<api.ApiDimensionFilterGroup>(); |
153 o.add(buildApiDimensionFilterGroup()); | 153 o.add(buildApiDimensionFilterGroup()); |
154 o.add(buildApiDimensionFilterGroup()); | 154 o.add(buildApiDimensionFilterGroup()); |
155 return o; | 155 return o; |
156 } | 156 } |
157 | 157 |
158 checkUnnamed656(core.List<api.ApiDimensionFilterGroup> o) { | 158 checkUnnamed2179(core.List<api.ApiDimensionFilterGroup> o) { |
159 unittest.expect(o, unittest.hasLength(2)); | 159 unittest.expect(o, unittest.hasLength(2)); |
160 checkApiDimensionFilterGroup(o[0]); | 160 checkApiDimensionFilterGroup(o[0]); |
161 checkApiDimensionFilterGroup(o[1]); | 161 checkApiDimensionFilterGroup(o[1]); |
162 } | 162 } |
163 | 163 |
164 buildUnnamed657() { | 164 buildUnnamed2180() { |
165 var o = new core.List<core.String>(); | 165 var o = new core.List<core.String>(); |
166 o.add("foo"); | 166 o.add("foo"); |
167 o.add("foo"); | 167 o.add("foo"); |
168 return o; | 168 return o; |
169 } | 169 } |
170 | 170 |
171 checkUnnamed657(core.List<core.String> o) { | 171 checkUnnamed2180(core.List<core.String> o) { |
172 unittest.expect(o, unittest.hasLength(2)); | 172 unittest.expect(o, unittest.hasLength(2)); |
173 unittest.expect(o[0], unittest.equals('foo')); | 173 unittest.expect(o[0], unittest.equals('foo')); |
174 unittest.expect(o[1], unittest.equals('foo')); | 174 unittest.expect(o[1], unittest.equals('foo')); |
175 } | 175 } |
176 | 176 |
177 core.int buildCounterSearchAnalyticsQueryRequest = 0; | 177 core.int buildCounterSearchAnalyticsQueryRequest = 0; |
178 buildSearchAnalyticsQueryRequest() { | 178 buildSearchAnalyticsQueryRequest() { |
179 var o = new api.SearchAnalyticsQueryRequest(); | 179 var o = new api.SearchAnalyticsQueryRequest(); |
180 buildCounterSearchAnalyticsQueryRequest++; | 180 buildCounterSearchAnalyticsQueryRequest++; |
181 if (buildCounterSearchAnalyticsQueryRequest < 3) { | 181 if (buildCounterSearchAnalyticsQueryRequest < 3) { |
182 o.aggregationType = "foo"; | 182 o.aggregationType = "foo"; |
183 o.dimensionFilterGroups = buildUnnamed656(); | 183 o.dimensionFilterGroups = buildUnnamed2179(); |
184 o.dimensions = buildUnnamed657(); | 184 o.dimensions = buildUnnamed2180(); |
185 o.endDate = "foo"; | 185 o.endDate = "foo"; |
186 o.rowLimit = 42; | 186 o.rowLimit = 42; |
187 o.searchType = "foo"; | 187 o.searchType = "foo"; |
188 o.startDate = "foo"; | 188 o.startDate = "foo"; |
189 } | 189 } |
190 buildCounterSearchAnalyticsQueryRequest--; | 190 buildCounterSearchAnalyticsQueryRequest--; |
191 return o; | 191 return o; |
192 } | 192 } |
193 | 193 |
194 checkSearchAnalyticsQueryRequest(api.SearchAnalyticsQueryRequest o) { | 194 checkSearchAnalyticsQueryRequest(api.SearchAnalyticsQueryRequest o) { |
195 buildCounterSearchAnalyticsQueryRequest++; | 195 buildCounterSearchAnalyticsQueryRequest++; |
196 if (buildCounterSearchAnalyticsQueryRequest < 3) { | 196 if (buildCounterSearchAnalyticsQueryRequest < 3) { |
197 unittest.expect(o.aggregationType, unittest.equals('foo')); | 197 unittest.expect(o.aggregationType, unittest.equals('foo')); |
198 checkUnnamed656(o.dimensionFilterGroups); | 198 checkUnnamed2179(o.dimensionFilterGroups); |
199 checkUnnamed657(o.dimensions); | 199 checkUnnamed2180(o.dimensions); |
200 unittest.expect(o.endDate, unittest.equals('foo')); | 200 unittest.expect(o.endDate, unittest.equals('foo')); |
201 unittest.expect(o.rowLimit, unittest.equals(42)); | 201 unittest.expect(o.rowLimit, unittest.equals(42)); |
202 unittest.expect(o.searchType, unittest.equals('foo')); | 202 unittest.expect(o.searchType, unittest.equals('foo')); |
203 unittest.expect(o.startDate, unittest.equals('foo')); | 203 unittest.expect(o.startDate, unittest.equals('foo')); |
204 } | 204 } |
205 buildCounterSearchAnalyticsQueryRequest--; | 205 buildCounterSearchAnalyticsQueryRequest--; |
206 } | 206 } |
207 | 207 |
208 buildUnnamed658() { | 208 buildUnnamed2181() { |
209 var o = new core.List<api.ApiDataRow>(); | 209 var o = new core.List<api.ApiDataRow>(); |
210 o.add(buildApiDataRow()); | 210 o.add(buildApiDataRow()); |
211 o.add(buildApiDataRow()); | 211 o.add(buildApiDataRow()); |
212 return o; | 212 return o; |
213 } | 213 } |
214 | 214 |
215 checkUnnamed658(core.List<api.ApiDataRow> o) { | 215 checkUnnamed2181(core.List<api.ApiDataRow> o) { |
216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
217 checkApiDataRow(o[0]); | 217 checkApiDataRow(o[0]); |
218 checkApiDataRow(o[1]); | 218 checkApiDataRow(o[1]); |
219 } | 219 } |
220 | 220 |
221 core.int buildCounterSearchAnalyticsQueryResponse = 0; | 221 core.int buildCounterSearchAnalyticsQueryResponse = 0; |
222 buildSearchAnalyticsQueryResponse() { | 222 buildSearchAnalyticsQueryResponse() { |
223 var o = new api.SearchAnalyticsQueryResponse(); | 223 var o = new api.SearchAnalyticsQueryResponse(); |
224 buildCounterSearchAnalyticsQueryResponse++; | 224 buildCounterSearchAnalyticsQueryResponse++; |
225 if (buildCounterSearchAnalyticsQueryResponse < 3) { | 225 if (buildCounterSearchAnalyticsQueryResponse < 3) { |
226 o.responseAggregationType = "foo"; | 226 o.responseAggregationType = "foo"; |
227 o.rows = buildUnnamed658(); | 227 o.rows = buildUnnamed2181(); |
228 } | 228 } |
229 buildCounterSearchAnalyticsQueryResponse--; | 229 buildCounterSearchAnalyticsQueryResponse--; |
230 return o; | 230 return o; |
231 } | 231 } |
232 | 232 |
233 checkSearchAnalyticsQueryResponse(api.SearchAnalyticsQueryResponse o) { | 233 checkSearchAnalyticsQueryResponse(api.SearchAnalyticsQueryResponse o) { |
234 buildCounterSearchAnalyticsQueryResponse++; | 234 buildCounterSearchAnalyticsQueryResponse++; |
235 if (buildCounterSearchAnalyticsQueryResponse < 3) { | 235 if (buildCounterSearchAnalyticsQueryResponse < 3) { |
236 unittest.expect(o.responseAggregationType, unittest.equals('foo')); | 236 unittest.expect(o.responseAggregationType, unittest.equals('foo')); |
237 checkUnnamed658(o.rows); | 237 checkUnnamed2181(o.rows); |
238 } | 238 } |
239 buildCounterSearchAnalyticsQueryResponse--; | 239 buildCounterSearchAnalyticsQueryResponse--; |
240 } | 240 } |
241 | 241 |
242 buildUnnamed659() { | 242 buildUnnamed2182() { |
243 var o = new core.List<api.WmxSitemap>(); | 243 var o = new core.List<api.WmxSitemap>(); |
244 o.add(buildWmxSitemap()); | 244 o.add(buildWmxSitemap()); |
245 o.add(buildWmxSitemap()); | 245 o.add(buildWmxSitemap()); |
246 return o; | 246 return o; |
247 } | 247 } |
248 | 248 |
249 checkUnnamed659(core.List<api.WmxSitemap> o) { | 249 checkUnnamed2182(core.List<api.WmxSitemap> o) { |
250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
251 checkWmxSitemap(o[0]); | 251 checkWmxSitemap(o[0]); |
252 checkWmxSitemap(o[1]); | 252 checkWmxSitemap(o[1]); |
253 } | 253 } |
254 | 254 |
255 core.int buildCounterSitemapsListResponse = 0; | 255 core.int buildCounterSitemapsListResponse = 0; |
256 buildSitemapsListResponse() { | 256 buildSitemapsListResponse() { |
257 var o = new api.SitemapsListResponse(); | 257 var o = new api.SitemapsListResponse(); |
258 buildCounterSitemapsListResponse++; | 258 buildCounterSitemapsListResponse++; |
259 if (buildCounterSitemapsListResponse < 3) { | 259 if (buildCounterSitemapsListResponse < 3) { |
260 o.sitemap = buildUnnamed659(); | 260 o.sitemap = buildUnnamed2182(); |
261 } | 261 } |
262 buildCounterSitemapsListResponse--; | 262 buildCounterSitemapsListResponse--; |
263 return o; | 263 return o; |
264 } | 264 } |
265 | 265 |
266 checkSitemapsListResponse(api.SitemapsListResponse o) { | 266 checkSitemapsListResponse(api.SitemapsListResponse o) { |
267 buildCounterSitemapsListResponse++; | 267 buildCounterSitemapsListResponse++; |
268 if (buildCounterSitemapsListResponse < 3) { | 268 if (buildCounterSitemapsListResponse < 3) { |
269 checkUnnamed659(o.sitemap); | 269 checkUnnamed2182(o.sitemap); |
270 } | 270 } |
271 buildCounterSitemapsListResponse--; | 271 buildCounterSitemapsListResponse--; |
272 } | 272 } |
273 | 273 |
274 buildUnnamed660() { | 274 buildUnnamed2183() { |
275 var o = new core.List<api.WmxSite>(); | 275 var o = new core.List<api.WmxSite>(); |
276 o.add(buildWmxSite()); | 276 o.add(buildWmxSite()); |
277 o.add(buildWmxSite()); | 277 o.add(buildWmxSite()); |
278 return o; | 278 return o; |
279 } | 279 } |
280 | 280 |
281 checkUnnamed660(core.List<api.WmxSite> o) { | 281 checkUnnamed2183(core.List<api.WmxSite> o) { |
282 unittest.expect(o, unittest.hasLength(2)); | 282 unittest.expect(o, unittest.hasLength(2)); |
283 checkWmxSite(o[0]); | 283 checkWmxSite(o[0]); |
284 checkWmxSite(o[1]); | 284 checkWmxSite(o[1]); |
285 } | 285 } |
286 | 286 |
287 core.int buildCounterSitesListResponse = 0; | 287 core.int buildCounterSitesListResponse = 0; |
288 buildSitesListResponse() { | 288 buildSitesListResponse() { |
289 var o = new api.SitesListResponse(); | 289 var o = new api.SitesListResponse(); |
290 buildCounterSitesListResponse++; | 290 buildCounterSitesListResponse++; |
291 if (buildCounterSitesListResponse < 3) { | 291 if (buildCounterSitesListResponse < 3) { |
292 o.siteEntry = buildUnnamed660(); | 292 o.siteEntry = buildUnnamed2183(); |
293 } | 293 } |
294 buildCounterSitesListResponse--; | 294 buildCounterSitesListResponse--; |
295 return o; | 295 return o; |
296 } | 296 } |
297 | 297 |
298 checkSitesListResponse(api.SitesListResponse o) { | 298 checkSitesListResponse(api.SitesListResponse o) { |
299 buildCounterSitesListResponse++; | 299 buildCounterSitesListResponse++; |
300 if (buildCounterSitesListResponse < 3) { | 300 if (buildCounterSitesListResponse < 3) { |
301 checkUnnamed660(o.siteEntry); | 301 checkUnnamed2183(o.siteEntry); |
302 } | 302 } |
303 buildCounterSitesListResponse--; | 303 buildCounterSitesListResponse--; |
304 } | 304 } |
305 | 305 |
306 core.int buildCounterUrlCrawlErrorCount = 0; | 306 core.int buildCounterUrlCrawlErrorCount = 0; |
307 buildUrlCrawlErrorCount() { | 307 buildUrlCrawlErrorCount() { |
308 var o = new api.UrlCrawlErrorCount(); | 308 var o = new api.UrlCrawlErrorCount(); |
309 buildCounterUrlCrawlErrorCount++; | 309 buildCounterUrlCrawlErrorCount++; |
310 if (buildCounterUrlCrawlErrorCount < 3) { | 310 if (buildCounterUrlCrawlErrorCount < 3) { |
311 o.count = "foo"; | 311 o.count = "foo"; |
312 o.timestamp = core.DateTime.parse("2002-02-27T14:01:02"); | 312 o.timestamp = core.DateTime.parse("2002-02-27T14:01:02"); |
313 } | 313 } |
314 buildCounterUrlCrawlErrorCount--; | 314 buildCounterUrlCrawlErrorCount--; |
315 return o; | 315 return o; |
316 } | 316 } |
317 | 317 |
318 checkUrlCrawlErrorCount(api.UrlCrawlErrorCount o) { | 318 checkUrlCrawlErrorCount(api.UrlCrawlErrorCount o) { |
319 buildCounterUrlCrawlErrorCount++; | 319 buildCounterUrlCrawlErrorCount++; |
320 if (buildCounterUrlCrawlErrorCount < 3) { | 320 if (buildCounterUrlCrawlErrorCount < 3) { |
321 unittest.expect(o.count, unittest.equals('foo')); | 321 unittest.expect(o.count, unittest.equals('foo')); |
322 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 322 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
323 } | 323 } |
324 buildCounterUrlCrawlErrorCount--; | 324 buildCounterUrlCrawlErrorCount--; |
325 } | 325 } |
326 | 326 |
327 buildUnnamed661() { | 327 buildUnnamed2184() { |
328 var o = new core.List<api.UrlCrawlErrorCount>(); | 328 var o = new core.List<api.UrlCrawlErrorCount>(); |
329 o.add(buildUrlCrawlErrorCount()); | 329 o.add(buildUrlCrawlErrorCount()); |
330 o.add(buildUrlCrawlErrorCount()); | 330 o.add(buildUrlCrawlErrorCount()); |
331 return o; | 331 return o; |
332 } | 332 } |
333 | 333 |
334 checkUnnamed661(core.List<api.UrlCrawlErrorCount> o) { | 334 checkUnnamed2184(core.List<api.UrlCrawlErrorCount> o) { |
335 unittest.expect(o, unittest.hasLength(2)); | 335 unittest.expect(o, unittest.hasLength(2)); |
336 checkUrlCrawlErrorCount(o[0]); | 336 checkUrlCrawlErrorCount(o[0]); |
337 checkUrlCrawlErrorCount(o[1]); | 337 checkUrlCrawlErrorCount(o[1]); |
338 } | 338 } |
339 | 339 |
340 core.int buildCounterUrlCrawlErrorCountsPerType = 0; | 340 core.int buildCounterUrlCrawlErrorCountsPerType = 0; |
341 buildUrlCrawlErrorCountsPerType() { | 341 buildUrlCrawlErrorCountsPerType() { |
342 var o = new api.UrlCrawlErrorCountsPerType(); | 342 var o = new api.UrlCrawlErrorCountsPerType(); |
343 buildCounterUrlCrawlErrorCountsPerType++; | 343 buildCounterUrlCrawlErrorCountsPerType++; |
344 if (buildCounterUrlCrawlErrorCountsPerType < 3) { | 344 if (buildCounterUrlCrawlErrorCountsPerType < 3) { |
345 o.category = "foo"; | 345 o.category = "foo"; |
346 o.entries = buildUnnamed661(); | 346 o.entries = buildUnnamed2184(); |
347 o.platform = "foo"; | 347 o.platform = "foo"; |
348 } | 348 } |
349 buildCounterUrlCrawlErrorCountsPerType--; | 349 buildCounterUrlCrawlErrorCountsPerType--; |
350 return o; | 350 return o; |
351 } | 351 } |
352 | 352 |
353 checkUrlCrawlErrorCountsPerType(api.UrlCrawlErrorCountsPerType o) { | 353 checkUrlCrawlErrorCountsPerType(api.UrlCrawlErrorCountsPerType o) { |
354 buildCounterUrlCrawlErrorCountsPerType++; | 354 buildCounterUrlCrawlErrorCountsPerType++; |
355 if (buildCounterUrlCrawlErrorCountsPerType < 3) { | 355 if (buildCounterUrlCrawlErrorCountsPerType < 3) { |
356 unittest.expect(o.category, unittest.equals('foo')); | 356 unittest.expect(o.category, unittest.equals('foo')); |
357 checkUnnamed661(o.entries); | 357 checkUnnamed2184(o.entries); |
358 unittest.expect(o.platform, unittest.equals('foo')); | 358 unittest.expect(o.platform, unittest.equals('foo')); |
359 } | 359 } |
360 buildCounterUrlCrawlErrorCountsPerType--; | 360 buildCounterUrlCrawlErrorCountsPerType--; |
361 } | 361 } |
362 | 362 |
363 buildUnnamed662() { | 363 buildUnnamed2185() { |
364 var o = new core.List<api.UrlCrawlErrorCountsPerType>(); | 364 var o = new core.List<api.UrlCrawlErrorCountsPerType>(); |
365 o.add(buildUrlCrawlErrorCountsPerType()); | 365 o.add(buildUrlCrawlErrorCountsPerType()); |
366 o.add(buildUrlCrawlErrorCountsPerType()); | 366 o.add(buildUrlCrawlErrorCountsPerType()); |
367 return o; | 367 return o; |
368 } | 368 } |
369 | 369 |
370 checkUnnamed662(core.List<api.UrlCrawlErrorCountsPerType> o) { | 370 checkUnnamed2185(core.List<api.UrlCrawlErrorCountsPerType> o) { |
371 unittest.expect(o, unittest.hasLength(2)); | 371 unittest.expect(o, unittest.hasLength(2)); |
372 checkUrlCrawlErrorCountsPerType(o[0]); | 372 checkUrlCrawlErrorCountsPerType(o[0]); |
373 checkUrlCrawlErrorCountsPerType(o[1]); | 373 checkUrlCrawlErrorCountsPerType(o[1]); |
374 } | 374 } |
375 | 375 |
376 core.int buildCounterUrlCrawlErrorsCountsQueryResponse = 0; | 376 core.int buildCounterUrlCrawlErrorsCountsQueryResponse = 0; |
377 buildUrlCrawlErrorsCountsQueryResponse() { | 377 buildUrlCrawlErrorsCountsQueryResponse() { |
378 var o = new api.UrlCrawlErrorsCountsQueryResponse(); | 378 var o = new api.UrlCrawlErrorsCountsQueryResponse(); |
379 buildCounterUrlCrawlErrorsCountsQueryResponse++; | 379 buildCounterUrlCrawlErrorsCountsQueryResponse++; |
380 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { | 380 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { |
381 o.countPerTypes = buildUnnamed662(); | 381 o.countPerTypes = buildUnnamed2185(); |
382 } | 382 } |
383 buildCounterUrlCrawlErrorsCountsQueryResponse--; | 383 buildCounterUrlCrawlErrorsCountsQueryResponse--; |
384 return o; | 384 return o; |
385 } | 385 } |
386 | 386 |
387 checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o)
{ | 387 checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o)
{ |
388 buildCounterUrlCrawlErrorsCountsQueryResponse++; | 388 buildCounterUrlCrawlErrorsCountsQueryResponse++; |
389 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { | 389 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { |
390 checkUnnamed662(o.countPerTypes); | 390 checkUnnamed2185(o.countPerTypes); |
391 } | 391 } |
392 buildCounterUrlCrawlErrorsCountsQueryResponse--; | 392 buildCounterUrlCrawlErrorsCountsQueryResponse--; |
393 } | 393 } |
394 | 394 |
395 core.int buildCounterUrlCrawlErrorsSample = 0; | 395 core.int buildCounterUrlCrawlErrorsSample = 0; |
396 buildUrlCrawlErrorsSample() { | 396 buildUrlCrawlErrorsSample() { |
397 var o = new api.UrlCrawlErrorsSample(); | 397 var o = new api.UrlCrawlErrorsSample(); |
398 buildCounterUrlCrawlErrorsSample++; | 398 buildCounterUrlCrawlErrorsSample++; |
399 if (buildCounterUrlCrawlErrorsSample < 3) { | 399 if (buildCounterUrlCrawlErrorsSample < 3) { |
400 o.firstDetected = core.DateTime.parse("2002-02-27T14:01:02"); | 400 o.firstDetected = core.DateTime.parse("2002-02-27T14:01:02"); |
(...skipping 11 matching lines...) Expand all Loading... |
412 if (buildCounterUrlCrawlErrorsSample < 3) { | 412 if (buildCounterUrlCrawlErrorsSample < 3) { |
413 unittest.expect(o.firstDetected, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 413 unittest.expect(o.firstDetected, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
414 unittest.expect(o.lastCrawled, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 414 unittest.expect(o.lastCrawled, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
415 unittest.expect(o.pageUrl, unittest.equals('foo')); | 415 unittest.expect(o.pageUrl, unittest.equals('foo')); |
416 unittest.expect(o.responseCode, unittest.equals(42)); | 416 unittest.expect(o.responseCode, unittest.equals(42)); |
417 checkUrlSampleDetails(o.urlDetails); | 417 checkUrlSampleDetails(o.urlDetails); |
418 } | 418 } |
419 buildCounterUrlCrawlErrorsSample--; | 419 buildCounterUrlCrawlErrorsSample--; |
420 } | 420 } |
421 | 421 |
422 buildUnnamed663() { | 422 buildUnnamed2186() { |
423 var o = new core.List<api.UrlCrawlErrorsSample>(); | 423 var o = new core.List<api.UrlCrawlErrorsSample>(); |
424 o.add(buildUrlCrawlErrorsSample()); | 424 o.add(buildUrlCrawlErrorsSample()); |
425 o.add(buildUrlCrawlErrorsSample()); | 425 o.add(buildUrlCrawlErrorsSample()); |
426 return o; | 426 return o; |
427 } | 427 } |
428 | 428 |
429 checkUnnamed663(core.List<api.UrlCrawlErrorsSample> o) { | 429 checkUnnamed2186(core.List<api.UrlCrawlErrorsSample> o) { |
430 unittest.expect(o, unittest.hasLength(2)); | 430 unittest.expect(o, unittest.hasLength(2)); |
431 checkUrlCrawlErrorsSample(o[0]); | 431 checkUrlCrawlErrorsSample(o[0]); |
432 checkUrlCrawlErrorsSample(o[1]); | 432 checkUrlCrawlErrorsSample(o[1]); |
433 } | 433 } |
434 | 434 |
435 core.int buildCounterUrlCrawlErrorsSamplesListResponse = 0; | 435 core.int buildCounterUrlCrawlErrorsSamplesListResponse = 0; |
436 buildUrlCrawlErrorsSamplesListResponse() { | 436 buildUrlCrawlErrorsSamplesListResponse() { |
437 var o = new api.UrlCrawlErrorsSamplesListResponse(); | 437 var o = new api.UrlCrawlErrorsSamplesListResponse(); |
438 buildCounterUrlCrawlErrorsSamplesListResponse++; | 438 buildCounterUrlCrawlErrorsSamplesListResponse++; |
439 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { | 439 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { |
440 o.urlCrawlErrorSample = buildUnnamed663(); | 440 o.urlCrawlErrorSample = buildUnnamed2186(); |
441 } | 441 } |
442 buildCounterUrlCrawlErrorsSamplesListResponse--; | 442 buildCounterUrlCrawlErrorsSamplesListResponse--; |
443 return o; | 443 return o; |
444 } | 444 } |
445 | 445 |
446 checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o)
{ | 446 checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o)
{ |
447 buildCounterUrlCrawlErrorsSamplesListResponse++; | 447 buildCounterUrlCrawlErrorsSamplesListResponse++; |
448 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { | 448 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { |
449 checkUnnamed663(o.urlCrawlErrorSample); | 449 checkUnnamed2186(o.urlCrawlErrorSample); |
450 } | 450 } |
451 buildCounterUrlCrawlErrorsSamplesListResponse--; | 451 buildCounterUrlCrawlErrorsSamplesListResponse--; |
452 } | 452 } |
453 | 453 |
454 buildUnnamed664() { | 454 buildUnnamed2187() { |
455 var o = new core.List<core.String>(); | 455 var o = new core.List<core.String>(); |
456 o.add("foo"); | 456 o.add("foo"); |
457 o.add("foo"); | 457 o.add("foo"); |
458 return o; | 458 return o; |
459 } | 459 } |
460 | 460 |
461 checkUnnamed664(core.List<core.String> o) { | 461 checkUnnamed2187(core.List<core.String> o) { |
462 unittest.expect(o, unittest.hasLength(2)); | 462 unittest.expect(o, unittest.hasLength(2)); |
463 unittest.expect(o[0], unittest.equals('foo')); | 463 unittest.expect(o[0], unittest.equals('foo')); |
464 unittest.expect(o[1], unittest.equals('foo')); | 464 unittest.expect(o[1], unittest.equals('foo')); |
465 } | 465 } |
466 | 466 |
467 buildUnnamed665() { | 467 buildUnnamed2188() { |
468 var o = new core.List<core.String>(); | 468 var o = new core.List<core.String>(); |
469 o.add("foo"); | 469 o.add("foo"); |
470 o.add("foo"); | 470 o.add("foo"); |
471 return o; | 471 return o; |
472 } | 472 } |
473 | 473 |
474 checkUnnamed665(core.List<core.String> o) { | 474 checkUnnamed2188(core.List<core.String> o) { |
475 unittest.expect(o, unittest.hasLength(2)); | 475 unittest.expect(o, unittest.hasLength(2)); |
476 unittest.expect(o[0], unittest.equals('foo')); | 476 unittest.expect(o[0], unittest.equals('foo')); |
477 unittest.expect(o[1], unittest.equals('foo')); | 477 unittest.expect(o[1], unittest.equals('foo')); |
478 } | 478 } |
479 | 479 |
480 core.int buildCounterUrlSampleDetails = 0; | 480 core.int buildCounterUrlSampleDetails = 0; |
481 buildUrlSampleDetails() { | 481 buildUrlSampleDetails() { |
482 var o = new api.UrlSampleDetails(); | 482 var o = new api.UrlSampleDetails(); |
483 buildCounterUrlSampleDetails++; | 483 buildCounterUrlSampleDetails++; |
484 if (buildCounterUrlSampleDetails < 3) { | 484 if (buildCounterUrlSampleDetails < 3) { |
485 o.containingSitemaps = buildUnnamed664(); | 485 o.containingSitemaps = buildUnnamed2187(); |
486 o.linkedFromUrls = buildUnnamed665(); | 486 o.linkedFromUrls = buildUnnamed2188(); |
487 } | 487 } |
488 buildCounterUrlSampleDetails--; | 488 buildCounterUrlSampleDetails--; |
489 return o; | 489 return o; |
490 } | 490 } |
491 | 491 |
492 checkUrlSampleDetails(api.UrlSampleDetails o) { | 492 checkUrlSampleDetails(api.UrlSampleDetails o) { |
493 buildCounterUrlSampleDetails++; | 493 buildCounterUrlSampleDetails++; |
494 if (buildCounterUrlSampleDetails < 3) { | 494 if (buildCounterUrlSampleDetails < 3) { |
495 checkUnnamed664(o.containingSitemaps); | 495 checkUnnamed2187(o.containingSitemaps); |
496 checkUnnamed665(o.linkedFromUrls); | 496 checkUnnamed2188(o.linkedFromUrls); |
497 } | 497 } |
498 buildCounterUrlSampleDetails--; | 498 buildCounterUrlSampleDetails--; |
499 } | 499 } |
500 | 500 |
501 core.int buildCounterWmxSite = 0; | 501 core.int buildCounterWmxSite = 0; |
502 buildWmxSite() { | 502 buildWmxSite() { |
503 var o = new api.WmxSite(); | 503 var o = new api.WmxSite(); |
504 buildCounterWmxSite++; | 504 buildCounterWmxSite++; |
505 if (buildCounterWmxSite < 3) { | 505 if (buildCounterWmxSite < 3) { |
506 o.permissionLevel = "foo"; | 506 o.permissionLevel = "foo"; |
507 o.siteUrl = "foo"; | 507 o.siteUrl = "foo"; |
508 } | 508 } |
509 buildCounterWmxSite--; | 509 buildCounterWmxSite--; |
510 return o; | 510 return o; |
511 } | 511 } |
512 | 512 |
513 checkWmxSite(api.WmxSite o) { | 513 checkWmxSite(api.WmxSite o) { |
514 buildCounterWmxSite++; | 514 buildCounterWmxSite++; |
515 if (buildCounterWmxSite < 3) { | 515 if (buildCounterWmxSite < 3) { |
516 unittest.expect(o.permissionLevel, unittest.equals('foo')); | 516 unittest.expect(o.permissionLevel, unittest.equals('foo')); |
517 unittest.expect(o.siteUrl, unittest.equals('foo')); | 517 unittest.expect(o.siteUrl, unittest.equals('foo')); |
518 } | 518 } |
519 buildCounterWmxSite--; | 519 buildCounterWmxSite--; |
520 } | 520 } |
521 | 521 |
522 buildUnnamed666() { | 522 buildUnnamed2189() { |
523 var o = new core.List<api.WmxSitemapContent>(); | 523 var o = new core.List<api.WmxSitemapContent>(); |
524 o.add(buildWmxSitemapContent()); | 524 o.add(buildWmxSitemapContent()); |
525 o.add(buildWmxSitemapContent()); | 525 o.add(buildWmxSitemapContent()); |
526 return o; | 526 return o; |
527 } | 527 } |
528 | 528 |
529 checkUnnamed666(core.List<api.WmxSitemapContent> o) { | 529 checkUnnamed2189(core.List<api.WmxSitemapContent> o) { |
530 unittest.expect(o, unittest.hasLength(2)); | 530 unittest.expect(o, unittest.hasLength(2)); |
531 checkWmxSitemapContent(o[0]); | 531 checkWmxSitemapContent(o[0]); |
532 checkWmxSitemapContent(o[1]); | 532 checkWmxSitemapContent(o[1]); |
533 } | 533 } |
534 | 534 |
535 core.int buildCounterWmxSitemap = 0; | 535 core.int buildCounterWmxSitemap = 0; |
536 buildWmxSitemap() { | 536 buildWmxSitemap() { |
537 var o = new api.WmxSitemap(); | 537 var o = new api.WmxSitemap(); |
538 buildCounterWmxSitemap++; | 538 buildCounterWmxSitemap++; |
539 if (buildCounterWmxSitemap < 3) { | 539 if (buildCounterWmxSitemap < 3) { |
540 o.contents = buildUnnamed666(); | 540 o.contents = buildUnnamed2189(); |
541 o.errors = "foo"; | 541 o.errors = "foo"; |
542 o.isPending = true; | 542 o.isPending = true; |
543 o.isSitemapsIndex = true; | 543 o.isSitemapsIndex = true; |
544 o.lastDownloaded = core.DateTime.parse("2002-02-27T14:01:02"); | 544 o.lastDownloaded = core.DateTime.parse("2002-02-27T14:01:02"); |
545 o.lastSubmitted = core.DateTime.parse("2002-02-27T14:01:02"); | 545 o.lastSubmitted = core.DateTime.parse("2002-02-27T14:01:02"); |
546 o.path = "foo"; | 546 o.path = "foo"; |
547 o.type = "foo"; | 547 o.type = "foo"; |
548 o.warnings = "foo"; | 548 o.warnings = "foo"; |
549 } | 549 } |
550 buildCounterWmxSitemap--; | 550 buildCounterWmxSitemap--; |
551 return o; | 551 return o; |
552 } | 552 } |
553 | 553 |
554 checkWmxSitemap(api.WmxSitemap o) { | 554 checkWmxSitemap(api.WmxSitemap o) { |
555 buildCounterWmxSitemap++; | 555 buildCounterWmxSitemap++; |
556 if (buildCounterWmxSitemap < 3) { | 556 if (buildCounterWmxSitemap < 3) { |
557 checkUnnamed666(o.contents); | 557 checkUnnamed2189(o.contents); |
558 unittest.expect(o.errors, unittest.equals('foo')); | 558 unittest.expect(o.errors, unittest.equals('foo')); |
559 unittest.expect(o.isPending, unittest.isTrue); | 559 unittest.expect(o.isPending, unittest.isTrue); |
560 unittest.expect(o.isSitemapsIndex, unittest.isTrue); | 560 unittest.expect(o.isSitemapsIndex, unittest.isTrue); |
561 unittest.expect(o.lastDownloaded, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 561 unittest.expect(o.lastDownloaded, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
562 unittest.expect(o.lastSubmitted, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 562 unittest.expect(o.lastSubmitted, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
563 unittest.expect(o.path, unittest.equals('foo')); | 563 unittest.expect(o.path, unittest.equals('foo')); |
564 unittest.expect(o.type, unittest.equals('foo')); | 564 unittest.expect(o.type, unittest.equals('foo')); |
565 unittest.expect(o.warnings, unittest.equals('foo')); | 565 unittest.expect(o.warnings, unittest.equals('foo')); |
566 } | 566 } |
567 buildCounterWmxSitemap--; | 567 buildCounterWmxSitemap--; |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 return new async.Future.value(stringResponse(200, h, resp)); | 1454 return new async.Future.value(stringResponse(200, h, resp)); |
1455 }), true); | 1455 }), true); |
1456 res.markAsFixed(arg_siteUrl, arg_url, arg_category, arg_platform).then(uni
ttest.expectAsync((_) {})); | 1456 res.markAsFixed(arg_siteUrl, arg_url, arg_category, arg_platform).then(uni
ttest.expectAsync((_) {})); |
1457 }); | 1457 }); |
1458 | 1458 |
1459 }); | 1459 }); |
1460 | 1460 |
1461 | 1461 |
1462 } | 1462 } |
1463 | 1463 |
OLD | NEW |