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 buildUnnamed561() { | 54 buildUnnamed568() { |
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 checkUnnamed561(core.List<core.String> o) { | 61 checkUnnamed568(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 = buildUnnamed561(); | 75 o.keys = buildUnnamed568(); |
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 checkUnnamed561(o.keys); | 88 checkUnnamed568(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 buildUnnamed562() { | 117 buildUnnamed569() { |
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 checkUnnamed562(core.List<api.ApiDimensionFilter> o) { | 124 checkUnnamed569(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 = buildUnnamed562(); | 135 o.filters = buildUnnamed569(); |
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 checkUnnamed562(o.filters); | 145 checkUnnamed569(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 buildUnnamed563() { | 151 buildUnnamed570() { |
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 checkUnnamed563(core.List<api.ApiDimensionFilterGroup> o) { | 158 checkUnnamed570(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 buildUnnamed564() { | 164 buildUnnamed571() { |
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 checkUnnamed564(core.List<core.String> o) { | 171 checkUnnamed571(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 = buildUnnamed563(); | 183 o.dimensionFilterGroups = buildUnnamed570(); |
184 o.dimensions = buildUnnamed564(); | 184 o.dimensions = buildUnnamed571(); |
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 o.startRow = 42; | 189 o.startRow = 42; |
190 } | 190 } |
191 buildCounterSearchAnalyticsQueryRequest--; | 191 buildCounterSearchAnalyticsQueryRequest--; |
192 return o; | 192 return o; |
193 } | 193 } |
194 | 194 |
195 checkSearchAnalyticsQueryRequest(api.SearchAnalyticsQueryRequest o) { | 195 checkSearchAnalyticsQueryRequest(api.SearchAnalyticsQueryRequest o) { |
196 buildCounterSearchAnalyticsQueryRequest++; | 196 buildCounterSearchAnalyticsQueryRequest++; |
197 if (buildCounterSearchAnalyticsQueryRequest < 3) { | 197 if (buildCounterSearchAnalyticsQueryRequest < 3) { |
198 unittest.expect(o.aggregationType, unittest.equals('foo')); | 198 unittest.expect(o.aggregationType, unittest.equals('foo')); |
199 checkUnnamed563(o.dimensionFilterGroups); | 199 checkUnnamed570(o.dimensionFilterGroups); |
200 checkUnnamed564(o.dimensions); | 200 checkUnnamed571(o.dimensions); |
201 unittest.expect(o.endDate, unittest.equals('foo')); | 201 unittest.expect(o.endDate, unittest.equals('foo')); |
202 unittest.expect(o.rowLimit, unittest.equals(42)); | 202 unittest.expect(o.rowLimit, unittest.equals(42)); |
203 unittest.expect(o.searchType, unittest.equals('foo')); | 203 unittest.expect(o.searchType, unittest.equals('foo')); |
204 unittest.expect(o.startDate, unittest.equals('foo')); | 204 unittest.expect(o.startDate, unittest.equals('foo')); |
205 unittest.expect(o.startRow, unittest.equals(42)); | 205 unittest.expect(o.startRow, unittest.equals(42)); |
206 } | 206 } |
207 buildCounterSearchAnalyticsQueryRequest--; | 207 buildCounterSearchAnalyticsQueryRequest--; |
208 } | 208 } |
209 | 209 |
210 buildUnnamed565() { | 210 buildUnnamed572() { |
211 var o = new core.List<api.ApiDataRow>(); | 211 var o = new core.List<api.ApiDataRow>(); |
212 o.add(buildApiDataRow()); | 212 o.add(buildApiDataRow()); |
213 o.add(buildApiDataRow()); | 213 o.add(buildApiDataRow()); |
214 return o; | 214 return o; |
215 } | 215 } |
216 | 216 |
217 checkUnnamed565(core.List<api.ApiDataRow> o) { | 217 checkUnnamed572(core.List<api.ApiDataRow> o) { |
218 unittest.expect(o, unittest.hasLength(2)); | 218 unittest.expect(o, unittest.hasLength(2)); |
219 checkApiDataRow(o[0]); | 219 checkApiDataRow(o[0]); |
220 checkApiDataRow(o[1]); | 220 checkApiDataRow(o[1]); |
221 } | 221 } |
222 | 222 |
223 core.int buildCounterSearchAnalyticsQueryResponse = 0; | 223 core.int buildCounterSearchAnalyticsQueryResponse = 0; |
224 buildSearchAnalyticsQueryResponse() { | 224 buildSearchAnalyticsQueryResponse() { |
225 var o = new api.SearchAnalyticsQueryResponse(); | 225 var o = new api.SearchAnalyticsQueryResponse(); |
226 buildCounterSearchAnalyticsQueryResponse++; | 226 buildCounterSearchAnalyticsQueryResponse++; |
227 if (buildCounterSearchAnalyticsQueryResponse < 3) { | 227 if (buildCounterSearchAnalyticsQueryResponse < 3) { |
228 o.responseAggregationType = "foo"; | 228 o.responseAggregationType = "foo"; |
229 o.rows = buildUnnamed565(); | 229 o.rows = buildUnnamed572(); |
230 } | 230 } |
231 buildCounterSearchAnalyticsQueryResponse--; | 231 buildCounterSearchAnalyticsQueryResponse--; |
232 return o; | 232 return o; |
233 } | 233 } |
234 | 234 |
235 checkSearchAnalyticsQueryResponse(api.SearchAnalyticsQueryResponse o) { | 235 checkSearchAnalyticsQueryResponse(api.SearchAnalyticsQueryResponse o) { |
236 buildCounterSearchAnalyticsQueryResponse++; | 236 buildCounterSearchAnalyticsQueryResponse++; |
237 if (buildCounterSearchAnalyticsQueryResponse < 3) { | 237 if (buildCounterSearchAnalyticsQueryResponse < 3) { |
238 unittest.expect(o.responseAggregationType, unittest.equals('foo')); | 238 unittest.expect(o.responseAggregationType, unittest.equals('foo')); |
239 checkUnnamed565(o.rows); | 239 checkUnnamed572(o.rows); |
240 } | 240 } |
241 buildCounterSearchAnalyticsQueryResponse--; | 241 buildCounterSearchAnalyticsQueryResponse--; |
242 } | 242 } |
243 | 243 |
244 buildUnnamed566() { | 244 buildUnnamed573() { |
245 var o = new core.List<api.WmxSitemap>(); | 245 var o = new core.List<api.WmxSitemap>(); |
246 o.add(buildWmxSitemap()); | 246 o.add(buildWmxSitemap()); |
247 o.add(buildWmxSitemap()); | 247 o.add(buildWmxSitemap()); |
248 return o; | 248 return o; |
249 } | 249 } |
250 | 250 |
251 checkUnnamed566(core.List<api.WmxSitemap> o) { | 251 checkUnnamed573(core.List<api.WmxSitemap> o) { |
252 unittest.expect(o, unittest.hasLength(2)); | 252 unittest.expect(o, unittest.hasLength(2)); |
253 checkWmxSitemap(o[0]); | 253 checkWmxSitemap(o[0]); |
254 checkWmxSitemap(o[1]); | 254 checkWmxSitemap(o[1]); |
255 } | 255 } |
256 | 256 |
257 core.int buildCounterSitemapsListResponse = 0; | 257 core.int buildCounterSitemapsListResponse = 0; |
258 buildSitemapsListResponse() { | 258 buildSitemapsListResponse() { |
259 var o = new api.SitemapsListResponse(); | 259 var o = new api.SitemapsListResponse(); |
260 buildCounterSitemapsListResponse++; | 260 buildCounterSitemapsListResponse++; |
261 if (buildCounterSitemapsListResponse < 3) { | 261 if (buildCounterSitemapsListResponse < 3) { |
262 o.sitemap = buildUnnamed566(); | 262 o.sitemap = buildUnnamed573(); |
263 } | 263 } |
264 buildCounterSitemapsListResponse--; | 264 buildCounterSitemapsListResponse--; |
265 return o; | 265 return o; |
266 } | 266 } |
267 | 267 |
268 checkSitemapsListResponse(api.SitemapsListResponse o) { | 268 checkSitemapsListResponse(api.SitemapsListResponse o) { |
269 buildCounterSitemapsListResponse++; | 269 buildCounterSitemapsListResponse++; |
270 if (buildCounterSitemapsListResponse < 3) { | 270 if (buildCounterSitemapsListResponse < 3) { |
271 checkUnnamed566(o.sitemap); | 271 checkUnnamed573(o.sitemap); |
272 } | 272 } |
273 buildCounterSitemapsListResponse--; | 273 buildCounterSitemapsListResponse--; |
274 } | 274 } |
275 | 275 |
276 buildUnnamed567() { | 276 buildUnnamed574() { |
277 var o = new core.List<api.WmxSite>(); | 277 var o = new core.List<api.WmxSite>(); |
278 o.add(buildWmxSite()); | 278 o.add(buildWmxSite()); |
279 o.add(buildWmxSite()); | 279 o.add(buildWmxSite()); |
280 return o; | 280 return o; |
281 } | 281 } |
282 | 282 |
283 checkUnnamed567(core.List<api.WmxSite> o) { | 283 checkUnnamed574(core.List<api.WmxSite> o) { |
284 unittest.expect(o, unittest.hasLength(2)); | 284 unittest.expect(o, unittest.hasLength(2)); |
285 checkWmxSite(o[0]); | 285 checkWmxSite(o[0]); |
286 checkWmxSite(o[1]); | 286 checkWmxSite(o[1]); |
287 } | 287 } |
288 | 288 |
289 core.int buildCounterSitesListResponse = 0; | 289 core.int buildCounterSitesListResponse = 0; |
290 buildSitesListResponse() { | 290 buildSitesListResponse() { |
291 var o = new api.SitesListResponse(); | 291 var o = new api.SitesListResponse(); |
292 buildCounterSitesListResponse++; | 292 buildCounterSitesListResponse++; |
293 if (buildCounterSitesListResponse < 3) { | 293 if (buildCounterSitesListResponse < 3) { |
294 o.siteEntry = buildUnnamed567(); | 294 o.siteEntry = buildUnnamed574(); |
295 } | 295 } |
296 buildCounterSitesListResponse--; | 296 buildCounterSitesListResponse--; |
297 return o; | 297 return o; |
298 } | 298 } |
299 | 299 |
300 checkSitesListResponse(api.SitesListResponse o) { | 300 checkSitesListResponse(api.SitesListResponse o) { |
301 buildCounterSitesListResponse++; | 301 buildCounterSitesListResponse++; |
302 if (buildCounterSitesListResponse < 3) { | 302 if (buildCounterSitesListResponse < 3) { |
303 checkUnnamed567(o.siteEntry); | 303 checkUnnamed574(o.siteEntry); |
304 } | 304 } |
305 buildCounterSitesListResponse--; | 305 buildCounterSitesListResponse--; |
306 } | 306 } |
307 | 307 |
308 core.int buildCounterUrlCrawlErrorCount = 0; | 308 core.int buildCounterUrlCrawlErrorCount = 0; |
309 buildUrlCrawlErrorCount() { | 309 buildUrlCrawlErrorCount() { |
310 var o = new api.UrlCrawlErrorCount(); | 310 var o = new api.UrlCrawlErrorCount(); |
311 buildCounterUrlCrawlErrorCount++; | 311 buildCounterUrlCrawlErrorCount++; |
312 if (buildCounterUrlCrawlErrorCount < 3) { | 312 if (buildCounterUrlCrawlErrorCount < 3) { |
313 o.count = "foo"; | 313 o.count = "foo"; |
314 o.timestamp = core.DateTime.parse("2002-02-27T14:01:02"); | 314 o.timestamp = core.DateTime.parse("2002-02-27T14:01:02"); |
315 } | 315 } |
316 buildCounterUrlCrawlErrorCount--; | 316 buildCounterUrlCrawlErrorCount--; |
317 return o; | 317 return o; |
318 } | 318 } |
319 | 319 |
320 checkUrlCrawlErrorCount(api.UrlCrawlErrorCount o) { | 320 checkUrlCrawlErrorCount(api.UrlCrawlErrorCount o) { |
321 buildCounterUrlCrawlErrorCount++; | 321 buildCounterUrlCrawlErrorCount++; |
322 if (buildCounterUrlCrawlErrorCount < 3) { | 322 if (buildCounterUrlCrawlErrorCount < 3) { |
323 unittest.expect(o.count, unittest.equals('foo')); | 323 unittest.expect(o.count, unittest.equals('foo')); |
324 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 324 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
325 } | 325 } |
326 buildCounterUrlCrawlErrorCount--; | 326 buildCounterUrlCrawlErrorCount--; |
327 } | 327 } |
328 | 328 |
329 buildUnnamed568() { | 329 buildUnnamed575() { |
330 var o = new core.List<api.UrlCrawlErrorCount>(); | 330 var o = new core.List<api.UrlCrawlErrorCount>(); |
331 o.add(buildUrlCrawlErrorCount()); | 331 o.add(buildUrlCrawlErrorCount()); |
332 o.add(buildUrlCrawlErrorCount()); | 332 o.add(buildUrlCrawlErrorCount()); |
333 return o; | 333 return o; |
334 } | 334 } |
335 | 335 |
336 checkUnnamed568(core.List<api.UrlCrawlErrorCount> o) { | 336 checkUnnamed575(core.List<api.UrlCrawlErrorCount> o) { |
337 unittest.expect(o, unittest.hasLength(2)); | 337 unittest.expect(o, unittest.hasLength(2)); |
338 checkUrlCrawlErrorCount(o[0]); | 338 checkUrlCrawlErrorCount(o[0]); |
339 checkUrlCrawlErrorCount(o[1]); | 339 checkUrlCrawlErrorCount(o[1]); |
340 } | 340 } |
341 | 341 |
342 core.int buildCounterUrlCrawlErrorCountsPerType = 0; | 342 core.int buildCounterUrlCrawlErrorCountsPerType = 0; |
343 buildUrlCrawlErrorCountsPerType() { | 343 buildUrlCrawlErrorCountsPerType() { |
344 var o = new api.UrlCrawlErrorCountsPerType(); | 344 var o = new api.UrlCrawlErrorCountsPerType(); |
345 buildCounterUrlCrawlErrorCountsPerType++; | 345 buildCounterUrlCrawlErrorCountsPerType++; |
346 if (buildCounterUrlCrawlErrorCountsPerType < 3) { | 346 if (buildCounterUrlCrawlErrorCountsPerType < 3) { |
347 o.category = "foo"; | 347 o.category = "foo"; |
348 o.entries = buildUnnamed568(); | 348 o.entries = buildUnnamed575(); |
349 o.platform = "foo"; | 349 o.platform = "foo"; |
350 } | 350 } |
351 buildCounterUrlCrawlErrorCountsPerType--; | 351 buildCounterUrlCrawlErrorCountsPerType--; |
352 return o; | 352 return o; |
353 } | 353 } |
354 | 354 |
355 checkUrlCrawlErrorCountsPerType(api.UrlCrawlErrorCountsPerType o) { | 355 checkUrlCrawlErrorCountsPerType(api.UrlCrawlErrorCountsPerType o) { |
356 buildCounterUrlCrawlErrorCountsPerType++; | 356 buildCounterUrlCrawlErrorCountsPerType++; |
357 if (buildCounterUrlCrawlErrorCountsPerType < 3) { | 357 if (buildCounterUrlCrawlErrorCountsPerType < 3) { |
358 unittest.expect(o.category, unittest.equals('foo')); | 358 unittest.expect(o.category, unittest.equals('foo')); |
359 checkUnnamed568(o.entries); | 359 checkUnnamed575(o.entries); |
360 unittest.expect(o.platform, unittest.equals('foo')); | 360 unittest.expect(o.platform, unittest.equals('foo')); |
361 } | 361 } |
362 buildCounterUrlCrawlErrorCountsPerType--; | 362 buildCounterUrlCrawlErrorCountsPerType--; |
363 } | 363 } |
364 | 364 |
365 buildUnnamed569() { | 365 buildUnnamed576() { |
366 var o = new core.List<api.UrlCrawlErrorCountsPerType>(); | 366 var o = new core.List<api.UrlCrawlErrorCountsPerType>(); |
367 o.add(buildUrlCrawlErrorCountsPerType()); | 367 o.add(buildUrlCrawlErrorCountsPerType()); |
368 o.add(buildUrlCrawlErrorCountsPerType()); | 368 o.add(buildUrlCrawlErrorCountsPerType()); |
369 return o; | 369 return o; |
370 } | 370 } |
371 | 371 |
372 checkUnnamed569(core.List<api.UrlCrawlErrorCountsPerType> o) { | 372 checkUnnamed576(core.List<api.UrlCrawlErrorCountsPerType> o) { |
373 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
374 checkUrlCrawlErrorCountsPerType(o[0]); | 374 checkUrlCrawlErrorCountsPerType(o[0]); |
375 checkUrlCrawlErrorCountsPerType(o[1]); | 375 checkUrlCrawlErrorCountsPerType(o[1]); |
376 } | 376 } |
377 | 377 |
378 core.int buildCounterUrlCrawlErrorsCountsQueryResponse = 0; | 378 core.int buildCounterUrlCrawlErrorsCountsQueryResponse = 0; |
379 buildUrlCrawlErrorsCountsQueryResponse() { | 379 buildUrlCrawlErrorsCountsQueryResponse() { |
380 var o = new api.UrlCrawlErrorsCountsQueryResponse(); | 380 var o = new api.UrlCrawlErrorsCountsQueryResponse(); |
381 buildCounterUrlCrawlErrorsCountsQueryResponse++; | 381 buildCounterUrlCrawlErrorsCountsQueryResponse++; |
382 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { | 382 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { |
383 o.countPerTypes = buildUnnamed569(); | 383 o.countPerTypes = buildUnnamed576(); |
384 } | 384 } |
385 buildCounterUrlCrawlErrorsCountsQueryResponse--; | 385 buildCounterUrlCrawlErrorsCountsQueryResponse--; |
386 return o; | 386 return o; |
387 } | 387 } |
388 | 388 |
389 checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o)
{ | 389 checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o)
{ |
390 buildCounterUrlCrawlErrorsCountsQueryResponse++; | 390 buildCounterUrlCrawlErrorsCountsQueryResponse++; |
391 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { | 391 if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { |
392 checkUnnamed569(o.countPerTypes); | 392 checkUnnamed576(o.countPerTypes); |
393 } | 393 } |
394 buildCounterUrlCrawlErrorsCountsQueryResponse--; | 394 buildCounterUrlCrawlErrorsCountsQueryResponse--; |
395 } | 395 } |
396 | 396 |
397 core.int buildCounterUrlCrawlErrorsSample = 0; | 397 core.int buildCounterUrlCrawlErrorsSample = 0; |
398 buildUrlCrawlErrorsSample() { | 398 buildUrlCrawlErrorsSample() { |
399 var o = new api.UrlCrawlErrorsSample(); | 399 var o = new api.UrlCrawlErrorsSample(); |
400 buildCounterUrlCrawlErrorsSample++; | 400 buildCounterUrlCrawlErrorsSample++; |
401 if (buildCounterUrlCrawlErrorsSample < 3) { | 401 if (buildCounterUrlCrawlErrorsSample < 3) { |
402 o.firstDetected = core.DateTime.parse("2002-02-27T14:01:02"); | 402 o.firstDetected = core.DateTime.parse("2002-02-27T14:01:02"); |
(...skipping 11 matching lines...) Expand all Loading... |
414 if (buildCounterUrlCrawlErrorsSample < 3) { | 414 if (buildCounterUrlCrawlErrorsSample < 3) { |
415 unittest.expect(o.firstDetected, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 415 unittest.expect(o.firstDetected, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
416 unittest.expect(o.lastCrawled, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 416 unittest.expect(o.lastCrawled, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
417 unittest.expect(o.pageUrl, unittest.equals('foo')); | 417 unittest.expect(o.pageUrl, unittest.equals('foo')); |
418 unittest.expect(o.responseCode, unittest.equals(42)); | 418 unittest.expect(o.responseCode, unittest.equals(42)); |
419 checkUrlSampleDetails(o.urlDetails); | 419 checkUrlSampleDetails(o.urlDetails); |
420 } | 420 } |
421 buildCounterUrlCrawlErrorsSample--; | 421 buildCounterUrlCrawlErrorsSample--; |
422 } | 422 } |
423 | 423 |
424 buildUnnamed570() { | 424 buildUnnamed577() { |
425 var o = new core.List<api.UrlCrawlErrorsSample>(); | 425 var o = new core.List<api.UrlCrawlErrorsSample>(); |
426 o.add(buildUrlCrawlErrorsSample()); | 426 o.add(buildUrlCrawlErrorsSample()); |
427 o.add(buildUrlCrawlErrorsSample()); | 427 o.add(buildUrlCrawlErrorsSample()); |
428 return o; | 428 return o; |
429 } | 429 } |
430 | 430 |
431 checkUnnamed570(core.List<api.UrlCrawlErrorsSample> o) { | 431 checkUnnamed577(core.List<api.UrlCrawlErrorsSample> o) { |
432 unittest.expect(o, unittest.hasLength(2)); | 432 unittest.expect(o, unittest.hasLength(2)); |
433 checkUrlCrawlErrorsSample(o[0]); | 433 checkUrlCrawlErrorsSample(o[0]); |
434 checkUrlCrawlErrorsSample(o[1]); | 434 checkUrlCrawlErrorsSample(o[1]); |
435 } | 435 } |
436 | 436 |
437 core.int buildCounterUrlCrawlErrorsSamplesListResponse = 0; | 437 core.int buildCounterUrlCrawlErrorsSamplesListResponse = 0; |
438 buildUrlCrawlErrorsSamplesListResponse() { | 438 buildUrlCrawlErrorsSamplesListResponse() { |
439 var o = new api.UrlCrawlErrorsSamplesListResponse(); | 439 var o = new api.UrlCrawlErrorsSamplesListResponse(); |
440 buildCounterUrlCrawlErrorsSamplesListResponse++; | 440 buildCounterUrlCrawlErrorsSamplesListResponse++; |
441 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { | 441 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { |
442 o.urlCrawlErrorSample = buildUnnamed570(); | 442 o.urlCrawlErrorSample = buildUnnamed577(); |
443 } | 443 } |
444 buildCounterUrlCrawlErrorsSamplesListResponse--; | 444 buildCounterUrlCrawlErrorsSamplesListResponse--; |
445 return o; | 445 return o; |
446 } | 446 } |
447 | 447 |
448 checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o)
{ | 448 checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o)
{ |
449 buildCounterUrlCrawlErrorsSamplesListResponse++; | 449 buildCounterUrlCrawlErrorsSamplesListResponse++; |
450 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { | 450 if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { |
451 checkUnnamed570(o.urlCrawlErrorSample); | 451 checkUnnamed577(o.urlCrawlErrorSample); |
452 } | 452 } |
453 buildCounterUrlCrawlErrorsSamplesListResponse--; | 453 buildCounterUrlCrawlErrorsSamplesListResponse--; |
454 } | 454 } |
455 | 455 |
456 buildUnnamed571() { | 456 buildUnnamed578() { |
457 var o = new core.List<core.String>(); | 457 var o = new core.List<core.String>(); |
458 o.add("foo"); | 458 o.add("foo"); |
459 o.add("foo"); | 459 o.add("foo"); |
460 return o; | 460 return o; |
461 } | 461 } |
462 | 462 |
463 checkUnnamed571(core.List<core.String> o) { | 463 checkUnnamed578(core.List<core.String> o) { |
464 unittest.expect(o, unittest.hasLength(2)); | 464 unittest.expect(o, unittest.hasLength(2)); |
465 unittest.expect(o[0], unittest.equals('foo')); | 465 unittest.expect(o[0], unittest.equals('foo')); |
466 unittest.expect(o[1], unittest.equals('foo')); | 466 unittest.expect(o[1], unittest.equals('foo')); |
467 } | 467 } |
468 | 468 |
469 buildUnnamed572() { | 469 buildUnnamed579() { |
470 var o = new core.List<core.String>(); | 470 var o = new core.List<core.String>(); |
471 o.add("foo"); | 471 o.add("foo"); |
472 o.add("foo"); | 472 o.add("foo"); |
473 return o; | 473 return o; |
474 } | 474 } |
475 | 475 |
476 checkUnnamed572(core.List<core.String> o) { | 476 checkUnnamed579(core.List<core.String> o) { |
477 unittest.expect(o, unittest.hasLength(2)); | 477 unittest.expect(o, unittest.hasLength(2)); |
478 unittest.expect(o[0], unittest.equals('foo')); | 478 unittest.expect(o[0], unittest.equals('foo')); |
479 unittest.expect(o[1], unittest.equals('foo')); | 479 unittest.expect(o[1], unittest.equals('foo')); |
480 } | 480 } |
481 | 481 |
482 core.int buildCounterUrlSampleDetails = 0; | 482 core.int buildCounterUrlSampleDetails = 0; |
483 buildUrlSampleDetails() { | 483 buildUrlSampleDetails() { |
484 var o = new api.UrlSampleDetails(); | 484 var o = new api.UrlSampleDetails(); |
485 buildCounterUrlSampleDetails++; | 485 buildCounterUrlSampleDetails++; |
486 if (buildCounterUrlSampleDetails < 3) { | 486 if (buildCounterUrlSampleDetails < 3) { |
487 o.containingSitemaps = buildUnnamed571(); | 487 o.containingSitemaps = buildUnnamed578(); |
488 o.linkedFromUrls = buildUnnamed572(); | 488 o.linkedFromUrls = buildUnnamed579(); |
489 } | 489 } |
490 buildCounterUrlSampleDetails--; | 490 buildCounterUrlSampleDetails--; |
491 return o; | 491 return o; |
492 } | 492 } |
493 | 493 |
494 checkUrlSampleDetails(api.UrlSampleDetails o) { | 494 checkUrlSampleDetails(api.UrlSampleDetails o) { |
495 buildCounterUrlSampleDetails++; | 495 buildCounterUrlSampleDetails++; |
496 if (buildCounterUrlSampleDetails < 3) { | 496 if (buildCounterUrlSampleDetails < 3) { |
497 checkUnnamed571(o.containingSitemaps); | 497 checkUnnamed578(o.containingSitemaps); |
498 checkUnnamed572(o.linkedFromUrls); | 498 checkUnnamed579(o.linkedFromUrls); |
499 } | 499 } |
500 buildCounterUrlSampleDetails--; | 500 buildCounterUrlSampleDetails--; |
501 } | 501 } |
502 | 502 |
503 core.int buildCounterWmxSite = 0; | 503 core.int buildCounterWmxSite = 0; |
504 buildWmxSite() { | 504 buildWmxSite() { |
505 var o = new api.WmxSite(); | 505 var o = new api.WmxSite(); |
506 buildCounterWmxSite++; | 506 buildCounterWmxSite++; |
507 if (buildCounterWmxSite < 3) { | 507 if (buildCounterWmxSite < 3) { |
508 o.permissionLevel = "foo"; | 508 o.permissionLevel = "foo"; |
509 o.siteUrl = "foo"; | 509 o.siteUrl = "foo"; |
510 } | 510 } |
511 buildCounterWmxSite--; | 511 buildCounterWmxSite--; |
512 return o; | 512 return o; |
513 } | 513 } |
514 | 514 |
515 checkWmxSite(api.WmxSite o) { | 515 checkWmxSite(api.WmxSite o) { |
516 buildCounterWmxSite++; | 516 buildCounterWmxSite++; |
517 if (buildCounterWmxSite < 3) { | 517 if (buildCounterWmxSite < 3) { |
518 unittest.expect(o.permissionLevel, unittest.equals('foo')); | 518 unittest.expect(o.permissionLevel, unittest.equals('foo')); |
519 unittest.expect(o.siteUrl, unittest.equals('foo')); | 519 unittest.expect(o.siteUrl, unittest.equals('foo')); |
520 } | 520 } |
521 buildCounterWmxSite--; | 521 buildCounterWmxSite--; |
522 } | 522 } |
523 | 523 |
524 buildUnnamed573() { | 524 buildUnnamed580() { |
525 var o = new core.List<api.WmxSitemapContent>(); | 525 var o = new core.List<api.WmxSitemapContent>(); |
526 o.add(buildWmxSitemapContent()); | 526 o.add(buildWmxSitemapContent()); |
527 o.add(buildWmxSitemapContent()); | 527 o.add(buildWmxSitemapContent()); |
528 return o; | 528 return o; |
529 } | 529 } |
530 | 530 |
531 checkUnnamed573(core.List<api.WmxSitemapContent> o) { | 531 checkUnnamed580(core.List<api.WmxSitemapContent> o) { |
532 unittest.expect(o, unittest.hasLength(2)); | 532 unittest.expect(o, unittest.hasLength(2)); |
533 checkWmxSitemapContent(o[0]); | 533 checkWmxSitemapContent(o[0]); |
534 checkWmxSitemapContent(o[1]); | 534 checkWmxSitemapContent(o[1]); |
535 } | 535 } |
536 | 536 |
537 core.int buildCounterWmxSitemap = 0; | 537 core.int buildCounterWmxSitemap = 0; |
538 buildWmxSitemap() { | 538 buildWmxSitemap() { |
539 var o = new api.WmxSitemap(); | 539 var o = new api.WmxSitemap(); |
540 buildCounterWmxSitemap++; | 540 buildCounterWmxSitemap++; |
541 if (buildCounterWmxSitemap < 3) { | 541 if (buildCounterWmxSitemap < 3) { |
542 o.contents = buildUnnamed573(); | 542 o.contents = buildUnnamed580(); |
543 o.errors = "foo"; | 543 o.errors = "foo"; |
544 o.isPending = true; | 544 o.isPending = true; |
545 o.isSitemapsIndex = true; | 545 o.isSitemapsIndex = true; |
546 o.lastDownloaded = core.DateTime.parse("2002-02-27T14:01:02"); | 546 o.lastDownloaded = core.DateTime.parse("2002-02-27T14:01:02"); |
547 o.lastSubmitted = core.DateTime.parse("2002-02-27T14:01:02"); | 547 o.lastSubmitted = core.DateTime.parse("2002-02-27T14:01:02"); |
548 o.path = "foo"; | 548 o.path = "foo"; |
549 o.type = "foo"; | 549 o.type = "foo"; |
550 o.warnings = "foo"; | 550 o.warnings = "foo"; |
551 } | 551 } |
552 buildCounterWmxSitemap--; | 552 buildCounterWmxSitemap--; |
553 return o; | 553 return o; |
554 } | 554 } |
555 | 555 |
556 checkWmxSitemap(api.WmxSitemap o) { | 556 checkWmxSitemap(api.WmxSitemap o) { |
557 buildCounterWmxSitemap++; | 557 buildCounterWmxSitemap++; |
558 if (buildCounterWmxSitemap < 3) { | 558 if (buildCounterWmxSitemap < 3) { |
559 checkUnnamed573(o.contents); | 559 checkUnnamed580(o.contents); |
560 unittest.expect(o.errors, unittest.equals('foo')); | 560 unittest.expect(o.errors, unittest.equals('foo')); |
561 unittest.expect(o.isPending, unittest.isTrue); | 561 unittest.expect(o.isPending, unittest.isTrue); |
562 unittest.expect(o.isSitemapsIndex, unittest.isTrue); | 562 unittest.expect(o.isSitemapsIndex, unittest.isTrue); |
563 unittest.expect(o.lastDownloaded, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 563 unittest.expect(o.lastDownloaded, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
564 unittest.expect(o.lastSubmitted, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 564 unittest.expect(o.lastSubmitted, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
565 unittest.expect(o.path, unittest.equals('foo')); | 565 unittest.expect(o.path, unittest.equals('foo')); |
566 unittest.expect(o.type, unittest.equals('foo')); | 566 unittest.expect(o.type, unittest.equals('foo')); |
567 unittest.expect(o.warnings, unittest.equals('foo')); | 567 unittest.expect(o.warnings, unittest.equals('foo')); |
568 } | 568 } |
569 buildCounterWmxSitemap--; | 569 buildCounterWmxSitemap--; |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 return new async.Future.value(stringResponse(200, h, resp)); | 1456 return new async.Future.value(stringResponse(200, h, resp)); |
1457 }), true); | 1457 }), true); |
1458 res.markAsFixed(arg_siteUrl, arg_url, arg_category, arg_platform).then(uni
ttest.expectAsync((_) {})); | 1458 res.markAsFixed(arg_siteUrl, arg_url, arg_category, arg_platform).then(uni
ttest.expectAsync((_) {})); |
1459 }); | 1459 }); |
1460 | 1460 |
1461 }); | 1461 }); |
1462 | 1462 |
1463 | 1463 |
1464 } | 1464 } |
1465 | 1465 |
OLD | NEW |