Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: generated/googleapis/test/safebrowsing/v4_test.dart

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.safebrowsing.v4.test; 1 library googleapis.safebrowsing.v4.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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 checkClientInfo(api.ClientInfo o) { 85 checkClientInfo(api.ClientInfo o) {
86 buildCounterClientInfo++; 86 buildCounterClientInfo++;
87 if (buildCounterClientInfo < 3) { 87 if (buildCounterClientInfo < 3) {
88 unittest.expect(o.clientId, unittest.equals('foo')); 88 unittest.expect(o.clientId, unittest.equals('foo'));
89 unittest.expect(o.clientVersion, unittest.equals('foo')); 89 unittest.expect(o.clientVersion, unittest.equals('foo'));
90 } 90 }
91 buildCounterClientInfo--; 91 buildCounterClientInfo--;
92 } 92 }
93 93
94 buildUnnamed2704() { 94 buildUnnamed1131() {
95 var o = new core.List<core.String>(); 95 var o = new core.List<core.String>();
96 o.add("foo"); 96 o.add("foo");
97 o.add("foo"); 97 o.add("foo");
98 return o; 98 return o;
99 } 99 }
100 100
101 checkUnnamed2704(core.List<core.String> o) { 101 checkUnnamed1131(core.List<core.String> o) {
102 unittest.expect(o, unittest.hasLength(2)); 102 unittest.expect(o, unittest.hasLength(2));
103 unittest.expect(o[0], unittest.equals('foo')); 103 unittest.expect(o[0], unittest.equals('foo'));
104 unittest.expect(o[1], unittest.equals('foo')); 104 unittest.expect(o[1], unittest.equals('foo'));
105 } 105 }
106 106
107 core.int buildCounterConstraints = 0; 107 core.int buildCounterConstraints = 0;
108 buildConstraints() { 108 buildConstraints() {
109 var o = new api.Constraints(); 109 var o = new api.Constraints();
110 buildCounterConstraints++; 110 buildCounterConstraints++;
111 if (buildCounterConstraints < 3) { 111 if (buildCounterConstraints < 3) {
112 o.maxDatabaseEntries = 42; 112 o.maxDatabaseEntries = 42;
113 o.maxUpdateEntries = 42; 113 o.maxUpdateEntries = 42;
114 o.region = "foo"; 114 o.region = "foo";
115 o.supportedCompressions = buildUnnamed2704(); 115 o.supportedCompressions = buildUnnamed1131();
116 } 116 }
117 buildCounterConstraints--; 117 buildCounterConstraints--;
118 return o; 118 return o;
119 } 119 }
120 120
121 checkConstraints(api.Constraints o) { 121 checkConstraints(api.Constraints o) {
122 buildCounterConstraints++; 122 buildCounterConstraints++;
123 if (buildCounterConstraints < 3) { 123 if (buildCounterConstraints < 3) {
124 unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); 124 unittest.expect(o.maxDatabaseEntries, unittest.equals(42));
125 unittest.expect(o.maxUpdateEntries, unittest.equals(42)); 125 unittest.expect(o.maxUpdateEntries, unittest.equals(42));
126 unittest.expect(o.region, unittest.equals('foo')); 126 unittest.expect(o.region, unittest.equals('foo'));
127 checkUnnamed2704(o.supportedCompressions); 127 checkUnnamed1131(o.supportedCompressions);
128 } 128 }
129 buildCounterConstraints--; 129 buildCounterConstraints--;
130 } 130 }
131 131
132 buildUnnamed2705() { 132 buildUnnamed1132() {
133 var o = new core.List<api.ListUpdateRequest>(); 133 var o = new core.List<api.ListUpdateRequest>();
134 o.add(buildListUpdateRequest()); 134 o.add(buildListUpdateRequest());
135 o.add(buildListUpdateRequest()); 135 o.add(buildListUpdateRequest());
136 return o; 136 return o;
137 } 137 }
138 138
139 checkUnnamed2705(core.List<api.ListUpdateRequest> o) { 139 checkUnnamed1132(core.List<api.ListUpdateRequest> o) {
140 unittest.expect(o, unittest.hasLength(2)); 140 unittest.expect(o, unittest.hasLength(2));
141 checkListUpdateRequest(o[0]); 141 checkListUpdateRequest(o[0]);
142 checkListUpdateRequest(o[1]); 142 checkListUpdateRequest(o[1]);
143 } 143 }
144 144
145 core.int buildCounterFetchThreatListUpdatesRequest = 0; 145 core.int buildCounterFetchThreatListUpdatesRequest = 0;
146 buildFetchThreatListUpdatesRequest() { 146 buildFetchThreatListUpdatesRequest() {
147 var o = new api.FetchThreatListUpdatesRequest(); 147 var o = new api.FetchThreatListUpdatesRequest();
148 buildCounterFetchThreatListUpdatesRequest++; 148 buildCounterFetchThreatListUpdatesRequest++;
149 if (buildCounterFetchThreatListUpdatesRequest < 3) { 149 if (buildCounterFetchThreatListUpdatesRequest < 3) {
150 o.client = buildClientInfo(); 150 o.client = buildClientInfo();
151 o.listUpdateRequests = buildUnnamed2705(); 151 o.listUpdateRequests = buildUnnamed1132();
152 } 152 }
153 buildCounterFetchThreatListUpdatesRequest--; 153 buildCounterFetchThreatListUpdatesRequest--;
154 return o; 154 return o;
155 } 155 }
156 156
157 checkFetchThreatListUpdatesRequest(api.FetchThreatListUpdatesRequest o) { 157 checkFetchThreatListUpdatesRequest(api.FetchThreatListUpdatesRequest o) {
158 buildCounterFetchThreatListUpdatesRequest++; 158 buildCounterFetchThreatListUpdatesRequest++;
159 if (buildCounterFetchThreatListUpdatesRequest < 3) { 159 if (buildCounterFetchThreatListUpdatesRequest < 3) {
160 checkClientInfo(o.client); 160 checkClientInfo(o.client);
161 checkUnnamed2705(o.listUpdateRequests); 161 checkUnnamed1132(o.listUpdateRequests);
162 } 162 }
163 buildCounterFetchThreatListUpdatesRequest--; 163 buildCounterFetchThreatListUpdatesRequest--;
164 } 164 }
165 165
166 buildUnnamed2706() { 166 buildUnnamed1133() {
167 var o = new core.List<api.ListUpdateResponse>(); 167 var o = new core.List<api.ListUpdateResponse>();
168 o.add(buildListUpdateResponse()); 168 o.add(buildListUpdateResponse());
169 o.add(buildListUpdateResponse()); 169 o.add(buildListUpdateResponse());
170 return o; 170 return o;
171 } 171 }
172 172
173 checkUnnamed2706(core.List<api.ListUpdateResponse> o) { 173 checkUnnamed1133(core.List<api.ListUpdateResponse> o) {
174 unittest.expect(o, unittest.hasLength(2)); 174 unittest.expect(o, unittest.hasLength(2));
175 checkListUpdateResponse(o[0]); 175 checkListUpdateResponse(o[0]);
176 checkListUpdateResponse(o[1]); 176 checkListUpdateResponse(o[1]);
177 } 177 }
178 178
179 core.int buildCounterFetchThreatListUpdatesResponse = 0; 179 core.int buildCounterFetchThreatListUpdatesResponse = 0;
180 buildFetchThreatListUpdatesResponse() { 180 buildFetchThreatListUpdatesResponse() {
181 var o = new api.FetchThreatListUpdatesResponse(); 181 var o = new api.FetchThreatListUpdatesResponse();
182 buildCounterFetchThreatListUpdatesResponse++; 182 buildCounterFetchThreatListUpdatesResponse++;
183 if (buildCounterFetchThreatListUpdatesResponse < 3) { 183 if (buildCounterFetchThreatListUpdatesResponse < 3) {
184 o.listUpdateResponses = buildUnnamed2706(); 184 o.listUpdateResponses = buildUnnamed1133();
185 o.minimumWaitDuration = "foo"; 185 o.minimumWaitDuration = "foo";
186 } 186 }
187 buildCounterFetchThreatListUpdatesResponse--; 187 buildCounterFetchThreatListUpdatesResponse--;
188 return o; 188 return o;
189 } 189 }
190 190
191 checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { 191 checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) {
192 buildCounterFetchThreatListUpdatesResponse++; 192 buildCounterFetchThreatListUpdatesResponse++;
193 if (buildCounterFetchThreatListUpdatesResponse < 3) { 193 if (buildCounterFetchThreatListUpdatesResponse < 3) {
194 checkUnnamed2706(o.listUpdateResponses); 194 checkUnnamed1133(o.listUpdateResponses);
195 unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); 195 unittest.expect(o.minimumWaitDuration, unittest.equals('foo'));
196 } 196 }
197 buildCounterFetchThreatListUpdatesResponse--; 197 buildCounterFetchThreatListUpdatesResponse--;
198 } 198 }
199 199
200 buildUnnamed2707() { 200 buildUnnamed1134() {
201 var o = new core.List<core.String>(); 201 var o = new core.List<core.String>();
202 o.add("foo"); 202 o.add("foo");
203 o.add("foo"); 203 o.add("foo");
204 return o; 204 return o;
205 } 205 }
206 206
207 checkUnnamed2707(core.List<core.String> o) { 207 checkUnnamed1134(core.List<core.String> o) {
208 unittest.expect(o, unittest.hasLength(2)); 208 unittest.expect(o, unittest.hasLength(2));
209 unittest.expect(o[0], unittest.equals('foo')); 209 unittest.expect(o[0], unittest.equals('foo'));
210 unittest.expect(o[1], unittest.equals('foo')); 210 unittest.expect(o[1], unittest.equals('foo'));
211 } 211 }
212 212
213 core.int buildCounterFindFullHashesRequest = 0; 213 core.int buildCounterFindFullHashesRequest = 0;
214 buildFindFullHashesRequest() { 214 buildFindFullHashesRequest() {
215 var o = new api.FindFullHashesRequest(); 215 var o = new api.FindFullHashesRequest();
216 buildCounterFindFullHashesRequest++; 216 buildCounterFindFullHashesRequest++;
217 if (buildCounterFindFullHashesRequest < 3) { 217 if (buildCounterFindFullHashesRequest < 3) {
218 o.client = buildClientInfo(); 218 o.client = buildClientInfo();
219 o.clientStates = buildUnnamed2707(); 219 o.clientStates = buildUnnamed1134();
220 o.threatInfo = buildThreatInfo(); 220 o.threatInfo = buildThreatInfo();
221 } 221 }
222 buildCounterFindFullHashesRequest--; 222 buildCounterFindFullHashesRequest--;
223 return o; 223 return o;
224 } 224 }
225 225
226 checkFindFullHashesRequest(api.FindFullHashesRequest o) { 226 checkFindFullHashesRequest(api.FindFullHashesRequest o) {
227 buildCounterFindFullHashesRequest++; 227 buildCounterFindFullHashesRequest++;
228 if (buildCounterFindFullHashesRequest < 3) { 228 if (buildCounterFindFullHashesRequest < 3) {
229 checkClientInfo(o.client); 229 checkClientInfo(o.client);
230 checkUnnamed2707(o.clientStates); 230 checkUnnamed1134(o.clientStates);
231 checkThreatInfo(o.threatInfo); 231 checkThreatInfo(o.threatInfo);
232 } 232 }
233 buildCounterFindFullHashesRequest--; 233 buildCounterFindFullHashesRequest--;
234 } 234 }
235 235
236 buildUnnamed2708() { 236 buildUnnamed1135() {
237 var o = new core.List<api.ThreatMatch>(); 237 var o = new core.List<api.ThreatMatch>();
238 o.add(buildThreatMatch()); 238 o.add(buildThreatMatch());
239 o.add(buildThreatMatch()); 239 o.add(buildThreatMatch());
240 return o; 240 return o;
241 } 241 }
242 242
243 checkUnnamed2708(core.List<api.ThreatMatch> o) { 243 checkUnnamed1135(core.List<api.ThreatMatch> o) {
244 unittest.expect(o, unittest.hasLength(2)); 244 unittest.expect(o, unittest.hasLength(2));
245 checkThreatMatch(o[0]); 245 checkThreatMatch(o[0]);
246 checkThreatMatch(o[1]); 246 checkThreatMatch(o[1]);
247 } 247 }
248 248
249 core.int buildCounterFindFullHashesResponse = 0; 249 core.int buildCounterFindFullHashesResponse = 0;
250 buildFindFullHashesResponse() { 250 buildFindFullHashesResponse() {
251 var o = new api.FindFullHashesResponse(); 251 var o = new api.FindFullHashesResponse();
252 buildCounterFindFullHashesResponse++; 252 buildCounterFindFullHashesResponse++;
253 if (buildCounterFindFullHashesResponse < 3) { 253 if (buildCounterFindFullHashesResponse < 3) {
254 o.matches = buildUnnamed2708(); 254 o.matches = buildUnnamed1135();
255 o.minimumWaitDuration = "foo"; 255 o.minimumWaitDuration = "foo";
256 o.negativeCacheDuration = "foo"; 256 o.negativeCacheDuration = "foo";
257 } 257 }
258 buildCounterFindFullHashesResponse--; 258 buildCounterFindFullHashesResponse--;
259 return o; 259 return o;
260 } 260 }
261 261
262 checkFindFullHashesResponse(api.FindFullHashesResponse o) { 262 checkFindFullHashesResponse(api.FindFullHashesResponse o) {
263 buildCounterFindFullHashesResponse++; 263 buildCounterFindFullHashesResponse++;
264 if (buildCounterFindFullHashesResponse < 3) { 264 if (buildCounterFindFullHashesResponse < 3) {
265 checkUnnamed2708(o.matches); 265 checkUnnamed1135(o.matches);
266 unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); 266 unittest.expect(o.minimumWaitDuration, unittest.equals('foo'));
267 unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); 267 unittest.expect(o.negativeCacheDuration, unittest.equals('foo'));
268 } 268 }
269 buildCounterFindFullHashesResponse--; 269 buildCounterFindFullHashesResponse--;
270 } 270 }
271 271
272 core.int buildCounterFindThreatMatchesRequest = 0; 272 core.int buildCounterFindThreatMatchesRequest = 0;
273 buildFindThreatMatchesRequest() { 273 buildFindThreatMatchesRequest() {
274 var o = new api.FindThreatMatchesRequest(); 274 var o = new api.FindThreatMatchesRequest();
275 buildCounterFindThreatMatchesRequest++; 275 buildCounterFindThreatMatchesRequest++;
276 if (buildCounterFindThreatMatchesRequest < 3) { 276 if (buildCounterFindThreatMatchesRequest < 3) {
277 o.client = buildClientInfo(); 277 o.client = buildClientInfo();
278 o.threatInfo = buildThreatInfo(); 278 o.threatInfo = buildThreatInfo();
279 } 279 }
280 buildCounterFindThreatMatchesRequest--; 280 buildCounterFindThreatMatchesRequest--;
281 return o; 281 return o;
282 } 282 }
283 283
284 checkFindThreatMatchesRequest(api.FindThreatMatchesRequest o) { 284 checkFindThreatMatchesRequest(api.FindThreatMatchesRequest o) {
285 buildCounterFindThreatMatchesRequest++; 285 buildCounterFindThreatMatchesRequest++;
286 if (buildCounterFindThreatMatchesRequest < 3) { 286 if (buildCounterFindThreatMatchesRequest < 3) {
287 checkClientInfo(o.client); 287 checkClientInfo(o.client);
288 checkThreatInfo(o.threatInfo); 288 checkThreatInfo(o.threatInfo);
289 } 289 }
290 buildCounterFindThreatMatchesRequest--; 290 buildCounterFindThreatMatchesRequest--;
291 } 291 }
292 292
293 buildUnnamed2709() { 293 buildUnnamed1136() {
294 var o = new core.List<api.ThreatMatch>(); 294 var o = new core.List<api.ThreatMatch>();
295 o.add(buildThreatMatch()); 295 o.add(buildThreatMatch());
296 o.add(buildThreatMatch()); 296 o.add(buildThreatMatch());
297 return o; 297 return o;
298 } 298 }
299 299
300 checkUnnamed2709(core.List<api.ThreatMatch> o) { 300 checkUnnamed1136(core.List<api.ThreatMatch> o) {
301 unittest.expect(o, unittest.hasLength(2)); 301 unittest.expect(o, unittest.hasLength(2));
302 checkThreatMatch(o[0]); 302 checkThreatMatch(o[0]);
303 checkThreatMatch(o[1]); 303 checkThreatMatch(o[1]);
304 } 304 }
305 305
306 core.int buildCounterFindThreatMatchesResponse = 0; 306 core.int buildCounterFindThreatMatchesResponse = 0;
307 buildFindThreatMatchesResponse() { 307 buildFindThreatMatchesResponse() {
308 var o = new api.FindThreatMatchesResponse(); 308 var o = new api.FindThreatMatchesResponse();
309 buildCounterFindThreatMatchesResponse++; 309 buildCounterFindThreatMatchesResponse++;
310 if (buildCounterFindThreatMatchesResponse < 3) { 310 if (buildCounterFindThreatMatchesResponse < 3) {
311 o.matches = buildUnnamed2709(); 311 o.matches = buildUnnamed1136();
312 } 312 }
313 buildCounterFindThreatMatchesResponse--; 313 buildCounterFindThreatMatchesResponse--;
314 return o; 314 return o;
315 } 315 }
316 316
317 checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { 317 checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) {
318 buildCounterFindThreatMatchesResponse++; 318 buildCounterFindThreatMatchesResponse++;
319 if (buildCounterFindThreatMatchesResponse < 3) { 319 if (buildCounterFindThreatMatchesResponse < 3) {
320 checkUnnamed2709(o.matches); 320 checkUnnamed1136(o.matches);
321 } 321 }
322 buildCounterFindThreatMatchesResponse--; 322 buildCounterFindThreatMatchesResponse--;
323 } 323 }
324 324
325 buildUnnamed2710() { 325 buildUnnamed1137() {
326 var o = new core.List<api.ThreatListDescriptor>(); 326 var o = new core.List<api.ThreatListDescriptor>();
327 o.add(buildThreatListDescriptor()); 327 o.add(buildThreatListDescriptor());
328 o.add(buildThreatListDescriptor()); 328 o.add(buildThreatListDescriptor());
329 return o; 329 return o;
330 } 330 }
331 331
332 checkUnnamed2710(core.List<api.ThreatListDescriptor> o) { 332 checkUnnamed1137(core.List<api.ThreatListDescriptor> o) {
333 unittest.expect(o, unittest.hasLength(2)); 333 unittest.expect(o, unittest.hasLength(2));
334 checkThreatListDescriptor(o[0]); 334 checkThreatListDescriptor(o[0]);
335 checkThreatListDescriptor(o[1]); 335 checkThreatListDescriptor(o[1]);
336 } 336 }
337 337
338 core.int buildCounterListThreatListsResponse = 0; 338 core.int buildCounterListThreatListsResponse = 0;
339 buildListThreatListsResponse() { 339 buildListThreatListsResponse() {
340 var o = new api.ListThreatListsResponse(); 340 var o = new api.ListThreatListsResponse();
341 buildCounterListThreatListsResponse++; 341 buildCounterListThreatListsResponse++;
342 if (buildCounterListThreatListsResponse < 3) { 342 if (buildCounterListThreatListsResponse < 3) {
343 o.threatLists = buildUnnamed2710(); 343 o.threatLists = buildUnnamed1137();
344 } 344 }
345 buildCounterListThreatListsResponse--; 345 buildCounterListThreatListsResponse--;
346 return o; 346 return o;
347 } 347 }
348 348
349 checkListThreatListsResponse(api.ListThreatListsResponse o) { 349 checkListThreatListsResponse(api.ListThreatListsResponse o) {
350 buildCounterListThreatListsResponse++; 350 buildCounterListThreatListsResponse++;
351 if (buildCounterListThreatListsResponse < 3) { 351 if (buildCounterListThreatListsResponse < 3) {
352 checkUnnamed2710(o.threatLists); 352 checkUnnamed1137(o.threatLists);
353 } 353 }
354 buildCounterListThreatListsResponse--; 354 buildCounterListThreatListsResponse--;
355 } 355 }
356 356
357 core.int buildCounterListUpdateRequest = 0; 357 core.int buildCounterListUpdateRequest = 0;
358 buildListUpdateRequest() { 358 buildListUpdateRequest() {
359 var o = new api.ListUpdateRequest(); 359 var o = new api.ListUpdateRequest();
360 buildCounterListUpdateRequest++; 360 buildCounterListUpdateRequest++;
361 if (buildCounterListUpdateRequest < 3) { 361 if (buildCounterListUpdateRequest < 3) {
362 o.constraints = buildConstraints(); 362 o.constraints = buildConstraints();
(...skipping 11 matching lines...) Expand all
374 if (buildCounterListUpdateRequest < 3) { 374 if (buildCounterListUpdateRequest < 3) {
375 checkConstraints(o.constraints); 375 checkConstraints(o.constraints);
376 unittest.expect(o.platformType, unittest.equals('foo')); 376 unittest.expect(o.platformType, unittest.equals('foo'));
377 unittest.expect(o.state, unittest.equals('foo')); 377 unittest.expect(o.state, unittest.equals('foo'));
378 unittest.expect(o.threatEntryType, unittest.equals('foo')); 378 unittest.expect(o.threatEntryType, unittest.equals('foo'));
379 unittest.expect(o.threatType, unittest.equals('foo')); 379 unittest.expect(o.threatType, unittest.equals('foo'));
380 } 380 }
381 buildCounterListUpdateRequest--; 381 buildCounterListUpdateRequest--;
382 } 382 }
383 383
384 buildUnnamed2711() { 384 buildUnnamed1138() {
385 var o = new core.List<api.ThreatEntrySet>(); 385 var o = new core.List<api.ThreatEntrySet>();
386 o.add(buildThreatEntrySet()); 386 o.add(buildThreatEntrySet());
387 o.add(buildThreatEntrySet()); 387 o.add(buildThreatEntrySet());
388 return o; 388 return o;
389 } 389 }
390 390
391 checkUnnamed2711(core.List<api.ThreatEntrySet> o) { 391 checkUnnamed1138(core.List<api.ThreatEntrySet> o) {
392 unittest.expect(o, unittest.hasLength(2)); 392 unittest.expect(o, unittest.hasLength(2));
393 checkThreatEntrySet(o[0]); 393 checkThreatEntrySet(o[0]);
394 checkThreatEntrySet(o[1]); 394 checkThreatEntrySet(o[1]);
395 } 395 }
396 396
397 buildUnnamed2712() { 397 buildUnnamed1139() {
398 var o = new core.List<api.ThreatEntrySet>(); 398 var o = new core.List<api.ThreatEntrySet>();
399 o.add(buildThreatEntrySet()); 399 o.add(buildThreatEntrySet());
400 o.add(buildThreatEntrySet()); 400 o.add(buildThreatEntrySet());
401 return o; 401 return o;
402 } 402 }
403 403
404 checkUnnamed2712(core.List<api.ThreatEntrySet> o) { 404 checkUnnamed1139(core.List<api.ThreatEntrySet> o) {
405 unittest.expect(o, unittest.hasLength(2)); 405 unittest.expect(o, unittest.hasLength(2));
406 checkThreatEntrySet(o[0]); 406 checkThreatEntrySet(o[0]);
407 checkThreatEntrySet(o[1]); 407 checkThreatEntrySet(o[1]);
408 } 408 }
409 409
410 core.int buildCounterListUpdateResponse = 0; 410 core.int buildCounterListUpdateResponse = 0;
411 buildListUpdateResponse() { 411 buildListUpdateResponse() {
412 var o = new api.ListUpdateResponse(); 412 var o = new api.ListUpdateResponse();
413 buildCounterListUpdateResponse++; 413 buildCounterListUpdateResponse++;
414 if (buildCounterListUpdateResponse < 3) { 414 if (buildCounterListUpdateResponse < 3) {
415 o.additions = buildUnnamed2711(); 415 o.additions = buildUnnamed1138();
416 o.checksum = buildChecksum(); 416 o.checksum = buildChecksum();
417 o.newClientState = "foo"; 417 o.newClientState = "foo";
418 o.platformType = "foo"; 418 o.platformType = "foo";
419 o.removals = buildUnnamed2712(); 419 o.removals = buildUnnamed1139();
420 o.responseType = "foo"; 420 o.responseType = "foo";
421 o.threatEntryType = "foo"; 421 o.threatEntryType = "foo";
422 o.threatType = "foo"; 422 o.threatType = "foo";
423 } 423 }
424 buildCounterListUpdateResponse--; 424 buildCounterListUpdateResponse--;
425 return o; 425 return o;
426 } 426 }
427 427
428 checkListUpdateResponse(api.ListUpdateResponse o) { 428 checkListUpdateResponse(api.ListUpdateResponse o) {
429 buildCounterListUpdateResponse++; 429 buildCounterListUpdateResponse++;
430 if (buildCounterListUpdateResponse < 3) { 430 if (buildCounterListUpdateResponse < 3) {
431 checkUnnamed2711(o.additions); 431 checkUnnamed1138(o.additions);
432 checkChecksum(o.checksum); 432 checkChecksum(o.checksum);
433 unittest.expect(o.newClientState, unittest.equals('foo')); 433 unittest.expect(o.newClientState, unittest.equals('foo'));
434 unittest.expect(o.platformType, unittest.equals('foo')); 434 unittest.expect(o.platformType, unittest.equals('foo'));
435 checkUnnamed2712(o.removals); 435 checkUnnamed1139(o.removals);
436 unittest.expect(o.responseType, unittest.equals('foo')); 436 unittest.expect(o.responseType, unittest.equals('foo'));
437 unittest.expect(o.threatEntryType, unittest.equals('foo')); 437 unittest.expect(o.threatEntryType, unittest.equals('foo'));
438 unittest.expect(o.threatType, unittest.equals('foo')); 438 unittest.expect(o.threatType, unittest.equals('foo'));
439 } 439 }
440 buildCounterListUpdateResponse--; 440 buildCounterListUpdateResponse--;
441 } 441 }
442 442
443 core.int buildCounterMetadataEntry = 0; 443 core.int buildCounterMetadataEntry = 0;
444 buildMetadataEntry() { 444 buildMetadataEntry() {
445 var o = new api.MetadataEntry(); 445 var o = new api.MetadataEntry();
(...skipping 29 matching lines...) Expand all
475 475
476 checkRawHashes(api.RawHashes o) { 476 checkRawHashes(api.RawHashes o) {
477 buildCounterRawHashes++; 477 buildCounterRawHashes++;
478 if (buildCounterRawHashes < 3) { 478 if (buildCounterRawHashes < 3) {
479 unittest.expect(o.prefixSize, unittest.equals(42)); 479 unittest.expect(o.prefixSize, unittest.equals(42));
480 unittest.expect(o.rawHashes, unittest.equals('foo')); 480 unittest.expect(o.rawHashes, unittest.equals('foo'));
481 } 481 }
482 buildCounterRawHashes--; 482 buildCounterRawHashes--;
483 } 483 }
484 484
485 buildUnnamed2713() { 485 buildUnnamed1140() {
486 var o = new core.List<core.int>(); 486 var o = new core.List<core.int>();
487 o.add(42); 487 o.add(42);
488 o.add(42); 488 o.add(42);
489 return o; 489 return o;
490 } 490 }
491 491
492 checkUnnamed2713(core.List<core.int> o) { 492 checkUnnamed1140(core.List<core.int> o) {
493 unittest.expect(o, unittest.hasLength(2)); 493 unittest.expect(o, unittest.hasLength(2));
494 unittest.expect(o[0], unittest.equals(42)); 494 unittest.expect(o[0], unittest.equals(42));
495 unittest.expect(o[1], unittest.equals(42)); 495 unittest.expect(o[1], unittest.equals(42));
496 } 496 }
497 497
498 core.int buildCounterRawIndices = 0; 498 core.int buildCounterRawIndices = 0;
499 buildRawIndices() { 499 buildRawIndices() {
500 var o = new api.RawIndices(); 500 var o = new api.RawIndices();
501 buildCounterRawIndices++; 501 buildCounterRawIndices++;
502 if (buildCounterRawIndices < 3) { 502 if (buildCounterRawIndices < 3) {
503 o.indices = buildUnnamed2713(); 503 o.indices = buildUnnamed1140();
504 } 504 }
505 buildCounterRawIndices--; 505 buildCounterRawIndices--;
506 return o; 506 return o;
507 } 507 }
508 508
509 checkRawIndices(api.RawIndices o) { 509 checkRawIndices(api.RawIndices o) {
510 buildCounterRawIndices++; 510 buildCounterRawIndices++;
511 if (buildCounterRawIndices < 3) { 511 if (buildCounterRawIndices < 3) {
512 checkUnnamed2713(o.indices); 512 checkUnnamed1140(o.indices);
513 } 513 }
514 buildCounterRawIndices--; 514 buildCounterRawIndices--;
515 } 515 }
516 516
517 core.int buildCounterRiceDeltaEncoding = 0; 517 core.int buildCounterRiceDeltaEncoding = 0;
518 buildRiceDeltaEncoding() { 518 buildRiceDeltaEncoding() {
519 var o = new api.RiceDeltaEncoding(); 519 var o = new api.RiceDeltaEncoding();
520 buildCounterRiceDeltaEncoding++; 520 buildCounterRiceDeltaEncoding++;
521 if (buildCounterRiceDeltaEncoding < 3) { 521 if (buildCounterRiceDeltaEncoding < 3) {
522 o.encodedData = "foo"; 522 o.encodedData = "foo";
(...skipping 14 matching lines...) Expand all
537 unittest.expect(o.riceParameter, unittest.equals(42)); 537 unittest.expect(o.riceParameter, unittest.equals(42));
538 } 538 }
539 buildCounterRiceDeltaEncoding--; 539 buildCounterRiceDeltaEncoding--;
540 } 540 }
541 541
542 core.int buildCounterThreatEntry = 0; 542 core.int buildCounterThreatEntry = 0;
543 buildThreatEntry() { 543 buildThreatEntry() {
544 var o = new api.ThreatEntry(); 544 var o = new api.ThreatEntry();
545 buildCounterThreatEntry++; 545 buildCounterThreatEntry++;
546 if (buildCounterThreatEntry < 3) { 546 if (buildCounterThreatEntry < 3) {
547 o.digest = "foo";
547 o.hash = "foo"; 548 o.hash = "foo";
548 o.url = "foo"; 549 o.url = "foo";
549 } 550 }
550 buildCounterThreatEntry--; 551 buildCounterThreatEntry--;
551 return o; 552 return o;
552 } 553 }
553 554
554 checkThreatEntry(api.ThreatEntry o) { 555 checkThreatEntry(api.ThreatEntry o) {
555 buildCounterThreatEntry++; 556 buildCounterThreatEntry++;
556 if (buildCounterThreatEntry < 3) { 557 if (buildCounterThreatEntry < 3) {
558 unittest.expect(o.digest, unittest.equals('foo'));
557 unittest.expect(o.hash, unittest.equals('foo')); 559 unittest.expect(o.hash, unittest.equals('foo'));
558 unittest.expect(o.url, unittest.equals('foo')); 560 unittest.expect(o.url, unittest.equals('foo'));
559 } 561 }
560 buildCounterThreatEntry--; 562 buildCounterThreatEntry--;
561 } 563 }
562 564
563 buildUnnamed2714() { 565 buildUnnamed1141() {
564 var o = new core.List<api.MetadataEntry>(); 566 var o = new core.List<api.MetadataEntry>();
565 o.add(buildMetadataEntry()); 567 o.add(buildMetadataEntry());
566 o.add(buildMetadataEntry()); 568 o.add(buildMetadataEntry());
567 return o; 569 return o;
568 } 570 }
569 571
570 checkUnnamed2714(core.List<api.MetadataEntry> o) { 572 checkUnnamed1141(core.List<api.MetadataEntry> o) {
571 unittest.expect(o, unittest.hasLength(2)); 573 unittest.expect(o, unittest.hasLength(2));
572 checkMetadataEntry(o[0]); 574 checkMetadataEntry(o[0]);
573 checkMetadataEntry(o[1]); 575 checkMetadataEntry(o[1]);
574 } 576 }
575 577
576 core.int buildCounterThreatEntryMetadata = 0; 578 core.int buildCounterThreatEntryMetadata = 0;
577 buildThreatEntryMetadata() { 579 buildThreatEntryMetadata() {
578 var o = new api.ThreatEntryMetadata(); 580 var o = new api.ThreatEntryMetadata();
579 buildCounterThreatEntryMetadata++; 581 buildCounterThreatEntryMetadata++;
580 if (buildCounterThreatEntryMetadata < 3) { 582 if (buildCounterThreatEntryMetadata < 3) {
581 o.entries = buildUnnamed2714(); 583 o.entries = buildUnnamed1141();
582 } 584 }
583 buildCounterThreatEntryMetadata--; 585 buildCounterThreatEntryMetadata--;
584 return o; 586 return o;
585 } 587 }
586 588
587 checkThreatEntryMetadata(api.ThreatEntryMetadata o) { 589 checkThreatEntryMetadata(api.ThreatEntryMetadata o) {
588 buildCounterThreatEntryMetadata++; 590 buildCounterThreatEntryMetadata++;
589 if (buildCounterThreatEntryMetadata < 3) { 591 if (buildCounterThreatEntryMetadata < 3) {
590 checkUnnamed2714(o.entries); 592 checkUnnamed1141(o.entries);
591 } 593 }
592 buildCounterThreatEntryMetadata--; 594 buildCounterThreatEntryMetadata--;
593 } 595 }
594 596
595 core.int buildCounterThreatEntrySet = 0; 597 core.int buildCounterThreatEntrySet = 0;
596 buildThreatEntrySet() { 598 buildThreatEntrySet() {
597 var o = new api.ThreatEntrySet(); 599 var o = new api.ThreatEntrySet();
598 buildCounterThreatEntrySet++; 600 buildCounterThreatEntrySet++;
599 if (buildCounterThreatEntrySet < 3) { 601 if (buildCounterThreatEntrySet < 3) {
600 o.compressionType = "foo"; 602 o.compressionType = "foo";
(...skipping 11 matching lines...) Expand all
612 if (buildCounterThreatEntrySet < 3) { 614 if (buildCounterThreatEntrySet < 3) {
613 unittest.expect(o.compressionType, unittest.equals('foo')); 615 unittest.expect(o.compressionType, unittest.equals('foo'));
614 checkRawHashes(o.rawHashes); 616 checkRawHashes(o.rawHashes);
615 checkRawIndices(o.rawIndices); 617 checkRawIndices(o.rawIndices);
616 checkRiceDeltaEncoding(o.riceHashes); 618 checkRiceDeltaEncoding(o.riceHashes);
617 checkRiceDeltaEncoding(o.riceIndices); 619 checkRiceDeltaEncoding(o.riceIndices);
618 } 620 }
619 buildCounterThreatEntrySet--; 621 buildCounterThreatEntrySet--;
620 } 622 }
621 623
622 buildUnnamed2715() { 624 buildUnnamed1142() {
623 var o = new core.List<core.String>(); 625 var o = new core.List<core.String>();
624 o.add("foo"); 626 o.add("foo");
625 o.add("foo"); 627 o.add("foo");
626 return o; 628 return o;
627 } 629 }
628 630
629 checkUnnamed2715(core.List<core.String> o) { 631 checkUnnamed1142(core.List<core.String> o) {
630 unittest.expect(o, unittest.hasLength(2)); 632 unittest.expect(o, unittest.hasLength(2));
631 unittest.expect(o[0], unittest.equals('foo')); 633 unittest.expect(o[0], unittest.equals('foo'));
632 unittest.expect(o[1], unittest.equals('foo')); 634 unittest.expect(o[1], unittest.equals('foo'));
633 } 635 }
634 636
635 buildUnnamed2716() { 637 buildUnnamed1143() {
636 var o = new core.List<api.ThreatEntry>(); 638 var o = new core.List<api.ThreatEntry>();
637 o.add(buildThreatEntry()); 639 o.add(buildThreatEntry());
638 o.add(buildThreatEntry()); 640 o.add(buildThreatEntry());
639 return o; 641 return o;
640 } 642 }
641 643
642 checkUnnamed2716(core.List<api.ThreatEntry> o) { 644 checkUnnamed1143(core.List<api.ThreatEntry> o) {
643 unittest.expect(o, unittest.hasLength(2)); 645 unittest.expect(o, unittest.hasLength(2));
644 checkThreatEntry(o[0]); 646 checkThreatEntry(o[0]);
645 checkThreatEntry(o[1]); 647 checkThreatEntry(o[1]);
646 } 648 }
647 649
648 buildUnnamed2717() { 650 buildUnnamed1144() {
649 var o = new core.List<core.String>(); 651 var o = new core.List<core.String>();
650 o.add("foo"); 652 o.add("foo");
651 o.add("foo"); 653 o.add("foo");
652 return o; 654 return o;
653 } 655 }
654 656
655 checkUnnamed2717(core.List<core.String> o) { 657 checkUnnamed1144(core.List<core.String> o) {
656 unittest.expect(o, unittest.hasLength(2)); 658 unittest.expect(o, unittest.hasLength(2));
657 unittest.expect(o[0], unittest.equals('foo')); 659 unittest.expect(o[0], unittest.equals('foo'));
658 unittest.expect(o[1], unittest.equals('foo')); 660 unittest.expect(o[1], unittest.equals('foo'));
659 } 661 }
660 662
661 buildUnnamed2718() { 663 buildUnnamed1145() {
662 var o = new core.List<core.String>(); 664 var o = new core.List<core.String>();
663 o.add("foo"); 665 o.add("foo");
664 o.add("foo"); 666 o.add("foo");
665 return o; 667 return o;
666 } 668 }
667 669
668 checkUnnamed2718(core.List<core.String> o) { 670 checkUnnamed1145(core.List<core.String> o) {
669 unittest.expect(o, unittest.hasLength(2)); 671 unittest.expect(o, unittest.hasLength(2));
670 unittest.expect(o[0], unittest.equals('foo')); 672 unittest.expect(o[0], unittest.equals('foo'));
671 unittest.expect(o[1], unittest.equals('foo')); 673 unittest.expect(o[1], unittest.equals('foo'));
672 } 674 }
673 675
674 core.int buildCounterThreatInfo = 0; 676 core.int buildCounterThreatInfo = 0;
675 buildThreatInfo() { 677 buildThreatInfo() {
676 var o = new api.ThreatInfo(); 678 var o = new api.ThreatInfo();
677 buildCounterThreatInfo++; 679 buildCounterThreatInfo++;
678 if (buildCounterThreatInfo < 3) { 680 if (buildCounterThreatInfo < 3) {
679 o.platformTypes = buildUnnamed2715(); 681 o.platformTypes = buildUnnamed1142();
680 o.threatEntries = buildUnnamed2716(); 682 o.threatEntries = buildUnnamed1143();
681 o.threatEntryTypes = buildUnnamed2717(); 683 o.threatEntryTypes = buildUnnamed1144();
682 o.threatTypes = buildUnnamed2718(); 684 o.threatTypes = buildUnnamed1145();
683 } 685 }
684 buildCounterThreatInfo--; 686 buildCounterThreatInfo--;
685 return o; 687 return o;
686 } 688 }
687 689
688 checkThreatInfo(api.ThreatInfo o) { 690 checkThreatInfo(api.ThreatInfo o) {
689 buildCounterThreatInfo++; 691 buildCounterThreatInfo++;
690 if (buildCounterThreatInfo < 3) { 692 if (buildCounterThreatInfo < 3) {
691 checkUnnamed2715(o.platformTypes); 693 checkUnnamed1142(o.platformTypes);
692 checkUnnamed2716(o.threatEntries); 694 checkUnnamed1143(o.threatEntries);
693 checkUnnamed2717(o.threatEntryTypes); 695 checkUnnamed1144(o.threatEntryTypes);
694 checkUnnamed2718(o.threatTypes); 696 checkUnnamed1145(o.threatTypes);
695 } 697 }
696 buildCounterThreatInfo--; 698 buildCounterThreatInfo--;
697 } 699 }
698 700
699 core.int buildCounterThreatListDescriptor = 0; 701 core.int buildCounterThreatListDescriptor = 0;
700 buildThreatListDescriptor() { 702 buildThreatListDescriptor() {
701 var o = new api.ThreatListDescriptor(); 703 var o = new api.ThreatListDescriptor();
702 buildCounterThreatListDescriptor++; 704 buildCounterThreatListDescriptor++;
703 if (buildCounterThreatListDescriptor < 3) { 705 if (buildCounterThreatListDescriptor < 3) {
704 o.platformType = "foo"; 706 o.platformType = "foo";
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 res.find(arg_request).then(unittest.expectAsync(((api.FindThreatMatchesRes ponse response) { 1145 res.find(arg_request).then(unittest.expectAsync(((api.FindThreatMatchesRes ponse response) {
1144 checkFindThreatMatchesResponse(response); 1146 checkFindThreatMatchesResponse(response);
1145 }))); 1147 })));
1146 }); 1148 });
1147 1149
1148 }); 1150 });
1149 1151
1150 1152
1151 } 1153 }
1152 1154
OLDNEW
« no previous file with comments | « generated/googleapis/test/reseller/v1_test.dart ('k') | generated/googleapis/test/script/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698