OLD | NEW |
1 library googleapis.storage.v1.test; | 1 library googleapis.storage.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 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 buildUnnamed721() { | 54 buildUnnamed728() { |
55 var o = new core.List<api.BucketAccessControl>(); | 55 var o = new core.List<api.BucketAccessControl>(); |
56 o.add(buildBucketAccessControl()); | 56 o.add(buildBucketAccessControl()); |
57 o.add(buildBucketAccessControl()); | 57 o.add(buildBucketAccessControl()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed721(core.List<api.BucketAccessControl> o) { | 61 checkUnnamed728(core.List<api.BucketAccessControl> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkBucketAccessControl(o[0]); | 63 checkBucketAccessControl(o[0]); |
64 checkBucketAccessControl(o[1]); | 64 checkBucketAccessControl(o[1]); |
65 } | 65 } |
66 | 66 |
67 buildUnnamed722() { | 67 buildUnnamed729() { |
68 var o = new core.List<core.String>(); | 68 var o = new core.List<core.String>(); |
69 o.add("foo"); | 69 o.add("foo"); |
70 o.add("foo"); | 70 o.add("foo"); |
71 return o; | 71 return o; |
72 } | 72 } |
73 | 73 |
74 checkUnnamed722(core.List<core.String> o) { | 74 checkUnnamed729(core.List<core.String> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
76 unittest.expect(o[0], unittest.equals('foo')); | 76 unittest.expect(o[0], unittest.equals('foo')); |
77 unittest.expect(o[1], unittest.equals('foo')); | 77 unittest.expect(o[1], unittest.equals('foo')); |
78 } | 78 } |
79 | 79 |
80 buildUnnamed723() { | 80 buildUnnamed730() { |
81 var o = new core.List<core.String>(); | 81 var o = new core.List<core.String>(); |
82 o.add("foo"); | 82 o.add("foo"); |
83 o.add("foo"); | 83 o.add("foo"); |
84 return o; | 84 return o; |
85 } | 85 } |
86 | 86 |
87 checkUnnamed723(core.List<core.String> o) { | 87 checkUnnamed730(core.List<core.String> o) { |
88 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
89 unittest.expect(o[0], unittest.equals('foo')); | 89 unittest.expect(o[0], unittest.equals('foo')); |
90 unittest.expect(o[1], unittest.equals('foo')); | 90 unittest.expect(o[1], unittest.equals('foo')); |
91 } | 91 } |
92 | 92 |
93 buildUnnamed724() { | 93 buildUnnamed731() { |
94 var o = new core.List<core.String>(); | 94 var o = new core.List<core.String>(); |
95 o.add("foo"); | 95 o.add("foo"); |
96 o.add("foo"); | 96 o.add("foo"); |
97 return o; | 97 return o; |
98 } | 98 } |
99 | 99 |
100 checkUnnamed724(core.List<core.String> o) { | 100 checkUnnamed731(core.List<core.String> o) { |
101 unittest.expect(o, unittest.hasLength(2)); | 101 unittest.expect(o, unittest.hasLength(2)); |
102 unittest.expect(o[0], unittest.equals('foo')); | 102 unittest.expect(o[0], unittest.equals('foo')); |
103 unittest.expect(o[1], unittest.equals('foo')); | 103 unittest.expect(o[1], unittest.equals('foo')); |
104 } | 104 } |
105 | 105 |
106 core.int buildCounterBucketCors = 0; | 106 core.int buildCounterBucketCors = 0; |
107 buildBucketCors() { | 107 buildBucketCors() { |
108 var o = new api.BucketCors(); | 108 var o = new api.BucketCors(); |
109 buildCounterBucketCors++; | 109 buildCounterBucketCors++; |
110 if (buildCounterBucketCors < 3) { | 110 if (buildCounterBucketCors < 3) { |
111 o.maxAgeSeconds = 42; | 111 o.maxAgeSeconds = 42; |
112 o.method = buildUnnamed722(); | 112 o.method = buildUnnamed729(); |
113 o.origin = buildUnnamed723(); | 113 o.origin = buildUnnamed730(); |
114 o.responseHeader = buildUnnamed724(); | 114 o.responseHeader = buildUnnamed731(); |
115 } | 115 } |
116 buildCounterBucketCors--; | 116 buildCounterBucketCors--; |
117 return o; | 117 return o; |
118 } | 118 } |
119 | 119 |
120 checkBucketCors(api.BucketCors o) { | 120 checkBucketCors(api.BucketCors o) { |
121 buildCounterBucketCors++; | 121 buildCounterBucketCors++; |
122 if (buildCounterBucketCors < 3) { | 122 if (buildCounterBucketCors < 3) { |
123 unittest.expect(o.maxAgeSeconds, unittest.equals(42)); | 123 unittest.expect(o.maxAgeSeconds, unittest.equals(42)); |
124 checkUnnamed722(o.method); | 124 checkUnnamed729(o.method); |
125 checkUnnamed723(o.origin); | 125 checkUnnamed730(o.origin); |
126 checkUnnamed724(o.responseHeader); | 126 checkUnnamed731(o.responseHeader); |
127 } | 127 } |
128 buildCounterBucketCors--; | 128 buildCounterBucketCors--; |
129 } | 129 } |
130 | 130 |
131 buildUnnamed725() { | 131 buildUnnamed732() { |
132 var o = new core.List<api.BucketCors>(); | 132 var o = new core.List<api.BucketCors>(); |
133 o.add(buildBucketCors()); | 133 o.add(buildBucketCors()); |
134 o.add(buildBucketCors()); | 134 o.add(buildBucketCors()); |
135 return o; | 135 return o; |
136 } | 136 } |
137 | 137 |
138 checkUnnamed725(core.List<api.BucketCors> o) { | 138 checkUnnamed732(core.List<api.BucketCors> o) { |
139 unittest.expect(o, unittest.hasLength(2)); | 139 unittest.expect(o, unittest.hasLength(2)); |
140 checkBucketCors(o[0]); | 140 checkBucketCors(o[0]); |
141 checkBucketCors(o[1]); | 141 checkBucketCors(o[1]); |
142 } | 142 } |
143 | 143 |
144 buildUnnamed726() { | 144 buildUnnamed733() { |
145 var o = new core.List<api.ObjectAccessControl>(); | 145 var o = new core.List<api.ObjectAccessControl>(); |
146 o.add(buildObjectAccessControl()); | 146 o.add(buildObjectAccessControl()); |
147 o.add(buildObjectAccessControl()); | 147 o.add(buildObjectAccessControl()); |
148 return o; | 148 return o; |
149 } | 149 } |
150 | 150 |
151 checkUnnamed726(core.List<api.ObjectAccessControl> o) { | 151 checkUnnamed733(core.List<api.ObjectAccessControl> o) { |
152 unittest.expect(o, unittest.hasLength(2)); | 152 unittest.expect(o, unittest.hasLength(2)); |
153 checkObjectAccessControl(o[0]); | 153 checkObjectAccessControl(o[0]); |
154 checkObjectAccessControl(o[1]); | 154 checkObjectAccessControl(o[1]); |
155 } | 155 } |
156 | 156 |
157 core.int buildCounterBucketLifecycleRuleAction = 0; | 157 core.int buildCounterBucketLifecycleRuleAction = 0; |
158 buildBucketLifecycleRuleAction() { | 158 buildBucketLifecycleRuleAction() { |
159 var o = new api.BucketLifecycleRuleAction(); | 159 var o = new api.BucketLifecycleRuleAction(); |
160 buildCounterBucketLifecycleRuleAction++; | 160 buildCounterBucketLifecycleRuleAction++; |
161 if (buildCounterBucketLifecycleRuleAction < 3) { | 161 if (buildCounterBucketLifecycleRuleAction < 3) { |
162 o.storageClass = "foo"; | 162 o.storageClass = "foo"; |
163 o.type = "foo"; | 163 o.type = "foo"; |
164 } | 164 } |
165 buildCounterBucketLifecycleRuleAction--; | 165 buildCounterBucketLifecycleRuleAction--; |
166 return o; | 166 return o; |
167 } | 167 } |
168 | 168 |
169 checkBucketLifecycleRuleAction(api.BucketLifecycleRuleAction o) { | 169 checkBucketLifecycleRuleAction(api.BucketLifecycleRuleAction o) { |
170 buildCounterBucketLifecycleRuleAction++; | 170 buildCounterBucketLifecycleRuleAction++; |
171 if (buildCounterBucketLifecycleRuleAction < 3) { | 171 if (buildCounterBucketLifecycleRuleAction < 3) { |
172 unittest.expect(o.storageClass, unittest.equals('foo')); | 172 unittest.expect(o.storageClass, unittest.equals('foo')); |
173 unittest.expect(o.type, unittest.equals('foo')); | 173 unittest.expect(o.type, unittest.equals('foo')); |
174 } | 174 } |
175 buildCounterBucketLifecycleRuleAction--; | 175 buildCounterBucketLifecycleRuleAction--; |
176 } | 176 } |
177 | 177 |
178 buildUnnamed727() { | 178 buildUnnamed734() { |
179 var o = new core.List<core.String>(); | 179 var o = new core.List<core.String>(); |
180 o.add("foo"); | 180 o.add("foo"); |
181 o.add("foo"); | 181 o.add("foo"); |
182 return o; | 182 return o; |
183 } | 183 } |
184 | 184 |
185 checkUnnamed727(core.List<core.String> o) { | 185 checkUnnamed734(core.List<core.String> o) { |
186 unittest.expect(o, unittest.hasLength(2)); | 186 unittest.expect(o, unittest.hasLength(2)); |
187 unittest.expect(o[0], unittest.equals('foo')); | 187 unittest.expect(o[0], unittest.equals('foo')); |
188 unittest.expect(o[1], unittest.equals('foo')); | 188 unittest.expect(o[1], unittest.equals('foo')); |
189 } | 189 } |
190 | 190 |
191 core.int buildCounterBucketLifecycleRuleCondition = 0; | 191 core.int buildCounterBucketLifecycleRuleCondition = 0; |
192 buildBucketLifecycleRuleCondition() { | 192 buildBucketLifecycleRuleCondition() { |
193 var o = new api.BucketLifecycleRuleCondition(); | 193 var o = new api.BucketLifecycleRuleCondition(); |
194 buildCounterBucketLifecycleRuleCondition++; | 194 buildCounterBucketLifecycleRuleCondition++; |
195 if (buildCounterBucketLifecycleRuleCondition < 3) { | 195 if (buildCounterBucketLifecycleRuleCondition < 3) { |
196 o.age = 42; | 196 o.age = 42; |
197 o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); | 197 o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); |
198 o.isLive = true; | 198 o.isLive = true; |
199 o.matchesStorageClass = buildUnnamed727(); | 199 o.matchesStorageClass = buildUnnamed734(); |
200 o.numNewerVersions = 42; | 200 o.numNewerVersions = 42; |
201 } | 201 } |
202 buildCounterBucketLifecycleRuleCondition--; | 202 buildCounterBucketLifecycleRuleCondition--; |
203 return o; | 203 return o; |
204 } | 204 } |
205 | 205 |
206 checkBucketLifecycleRuleCondition(api.BucketLifecycleRuleCondition o) { | 206 checkBucketLifecycleRuleCondition(api.BucketLifecycleRuleCondition o) { |
207 buildCounterBucketLifecycleRuleCondition++; | 207 buildCounterBucketLifecycleRuleCondition++; |
208 if (buildCounterBucketLifecycleRuleCondition < 3) { | 208 if (buildCounterBucketLifecycleRuleCondition < 3) { |
209 unittest.expect(o.age, unittest.equals(42)); | 209 unittest.expect(o.age, unittest.equals(42)); |
210 unittest.expect(o.createdBefore, unittest.equals(core.DateTime.parse("2002-0
2-27T00:00:00"))); | 210 unittest.expect(o.createdBefore, unittest.equals(core.DateTime.parse("2002-0
2-27T00:00:00"))); |
211 unittest.expect(o.isLive, unittest.isTrue); | 211 unittest.expect(o.isLive, unittest.isTrue); |
212 checkUnnamed727(o.matchesStorageClass); | 212 checkUnnamed734(o.matchesStorageClass); |
213 unittest.expect(o.numNewerVersions, unittest.equals(42)); | 213 unittest.expect(o.numNewerVersions, unittest.equals(42)); |
214 } | 214 } |
215 buildCounterBucketLifecycleRuleCondition--; | 215 buildCounterBucketLifecycleRuleCondition--; |
216 } | 216 } |
217 | 217 |
218 core.int buildCounterBucketLifecycleRule = 0; | 218 core.int buildCounterBucketLifecycleRule = 0; |
219 buildBucketLifecycleRule() { | 219 buildBucketLifecycleRule() { |
220 var o = new api.BucketLifecycleRule(); | 220 var o = new api.BucketLifecycleRule(); |
221 buildCounterBucketLifecycleRule++; | 221 buildCounterBucketLifecycleRule++; |
222 if (buildCounterBucketLifecycleRule < 3) { | 222 if (buildCounterBucketLifecycleRule < 3) { |
223 o.action = buildBucketLifecycleRuleAction(); | 223 o.action = buildBucketLifecycleRuleAction(); |
224 o.condition = buildBucketLifecycleRuleCondition(); | 224 o.condition = buildBucketLifecycleRuleCondition(); |
225 } | 225 } |
226 buildCounterBucketLifecycleRule--; | 226 buildCounterBucketLifecycleRule--; |
227 return o; | 227 return o; |
228 } | 228 } |
229 | 229 |
230 checkBucketLifecycleRule(api.BucketLifecycleRule o) { | 230 checkBucketLifecycleRule(api.BucketLifecycleRule o) { |
231 buildCounterBucketLifecycleRule++; | 231 buildCounterBucketLifecycleRule++; |
232 if (buildCounterBucketLifecycleRule < 3) { | 232 if (buildCounterBucketLifecycleRule < 3) { |
233 checkBucketLifecycleRuleAction(o.action); | 233 checkBucketLifecycleRuleAction(o.action); |
234 checkBucketLifecycleRuleCondition(o.condition); | 234 checkBucketLifecycleRuleCondition(o.condition); |
235 } | 235 } |
236 buildCounterBucketLifecycleRule--; | 236 buildCounterBucketLifecycleRule--; |
237 } | 237 } |
238 | 238 |
239 buildUnnamed728() { | 239 buildUnnamed735() { |
240 var o = new core.List<api.BucketLifecycleRule>(); | 240 var o = new core.List<api.BucketLifecycleRule>(); |
241 o.add(buildBucketLifecycleRule()); | 241 o.add(buildBucketLifecycleRule()); |
242 o.add(buildBucketLifecycleRule()); | 242 o.add(buildBucketLifecycleRule()); |
243 return o; | 243 return o; |
244 } | 244 } |
245 | 245 |
246 checkUnnamed728(core.List<api.BucketLifecycleRule> o) { | 246 checkUnnamed735(core.List<api.BucketLifecycleRule> o) { |
247 unittest.expect(o, unittest.hasLength(2)); | 247 unittest.expect(o, unittest.hasLength(2)); |
248 checkBucketLifecycleRule(o[0]); | 248 checkBucketLifecycleRule(o[0]); |
249 checkBucketLifecycleRule(o[1]); | 249 checkBucketLifecycleRule(o[1]); |
250 } | 250 } |
251 | 251 |
252 core.int buildCounterBucketLifecycle = 0; | 252 core.int buildCounterBucketLifecycle = 0; |
253 buildBucketLifecycle() { | 253 buildBucketLifecycle() { |
254 var o = new api.BucketLifecycle(); | 254 var o = new api.BucketLifecycle(); |
255 buildCounterBucketLifecycle++; | 255 buildCounterBucketLifecycle++; |
256 if (buildCounterBucketLifecycle < 3) { | 256 if (buildCounterBucketLifecycle < 3) { |
257 o.rule = buildUnnamed728(); | 257 o.rule = buildUnnamed735(); |
258 } | 258 } |
259 buildCounterBucketLifecycle--; | 259 buildCounterBucketLifecycle--; |
260 return o; | 260 return o; |
261 } | 261 } |
262 | 262 |
263 checkBucketLifecycle(api.BucketLifecycle o) { | 263 checkBucketLifecycle(api.BucketLifecycle o) { |
264 buildCounterBucketLifecycle++; | 264 buildCounterBucketLifecycle++; |
265 if (buildCounterBucketLifecycle < 3) { | 265 if (buildCounterBucketLifecycle < 3) { |
266 checkUnnamed728(o.rule); | 266 checkUnnamed735(o.rule); |
267 } | 267 } |
268 buildCounterBucketLifecycle--; | 268 buildCounterBucketLifecycle--; |
269 } | 269 } |
270 | 270 |
271 core.int buildCounterBucketLogging = 0; | 271 core.int buildCounterBucketLogging = 0; |
272 buildBucketLogging() { | 272 buildBucketLogging() { |
273 var o = new api.BucketLogging(); | 273 var o = new api.BucketLogging(); |
274 buildCounterBucketLogging++; | 274 buildCounterBucketLogging++; |
275 if (buildCounterBucketLogging < 3) { | 275 if (buildCounterBucketLogging < 3) { |
276 o.logBucket = "foo"; | 276 o.logBucket = "foo"; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 unittest.expect(o.notFoundPage, unittest.equals('foo')); | 348 unittest.expect(o.notFoundPage, unittest.equals('foo')); |
349 } | 349 } |
350 buildCounterBucketWebsite--; | 350 buildCounterBucketWebsite--; |
351 } | 351 } |
352 | 352 |
353 core.int buildCounterBucket = 0; | 353 core.int buildCounterBucket = 0; |
354 buildBucket() { | 354 buildBucket() { |
355 var o = new api.Bucket(); | 355 var o = new api.Bucket(); |
356 buildCounterBucket++; | 356 buildCounterBucket++; |
357 if (buildCounterBucket < 3) { | 357 if (buildCounterBucket < 3) { |
358 o.acl = buildUnnamed721(); | 358 o.acl = buildUnnamed728(); |
359 o.cors = buildUnnamed725(); | 359 o.cors = buildUnnamed732(); |
360 o.defaultObjectAcl = buildUnnamed726(); | 360 o.defaultObjectAcl = buildUnnamed733(); |
361 o.etag = "foo"; | 361 o.etag = "foo"; |
362 o.id = "foo"; | 362 o.id = "foo"; |
363 o.kind = "foo"; | 363 o.kind = "foo"; |
364 o.lifecycle = buildBucketLifecycle(); | 364 o.lifecycle = buildBucketLifecycle(); |
365 o.location = "foo"; | 365 o.location = "foo"; |
366 o.logging = buildBucketLogging(); | 366 o.logging = buildBucketLogging(); |
367 o.metageneration = "foo"; | 367 o.metageneration = "foo"; |
368 o.name = "foo"; | 368 o.name = "foo"; |
369 o.owner = buildBucketOwner(); | 369 o.owner = buildBucketOwner(); |
370 o.projectNumber = "foo"; | 370 o.projectNumber = "foo"; |
371 o.selfLink = "foo"; | 371 o.selfLink = "foo"; |
372 o.storageClass = "foo"; | 372 o.storageClass = "foo"; |
373 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); | 373 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); |
374 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 374 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
375 o.versioning = buildBucketVersioning(); | 375 o.versioning = buildBucketVersioning(); |
376 o.website = buildBucketWebsite(); | 376 o.website = buildBucketWebsite(); |
377 } | 377 } |
378 buildCounterBucket--; | 378 buildCounterBucket--; |
379 return o; | 379 return o; |
380 } | 380 } |
381 | 381 |
382 checkBucket(api.Bucket o) { | 382 checkBucket(api.Bucket o) { |
383 buildCounterBucket++; | 383 buildCounterBucket++; |
384 if (buildCounterBucket < 3) { | 384 if (buildCounterBucket < 3) { |
385 checkUnnamed721(o.acl); | 385 checkUnnamed728(o.acl); |
386 checkUnnamed725(o.cors); | 386 checkUnnamed732(o.cors); |
387 checkUnnamed726(o.defaultObjectAcl); | 387 checkUnnamed733(o.defaultObjectAcl); |
388 unittest.expect(o.etag, unittest.equals('foo')); | 388 unittest.expect(o.etag, unittest.equals('foo')); |
389 unittest.expect(o.id, unittest.equals('foo')); | 389 unittest.expect(o.id, unittest.equals('foo')); |
390 unittest.expect(o.kind, unittest.equals('foo')); | 390 unittest.expect(o.kind, unittest.equals('foo')); |
391 checkBucketLifecycle(o.lifecycle); | 391 checkBucketLifecycle(o.lifecycle); |
392 unittest.expect(o.location, unittest.equals('foo')); | 392 unittest.expect(o.location, unittest.equals('foo')); |
393 checkBucketLogging(o.logging); | 393 checkBucketLogging(o.logging); |
394 unittest.expect(o.metageneration, unittest.equals('foo')); | 394 unittest.expect(o.metageneration, unittest.equals('foo')); |
395 unittest.expect(o.name, unittest.equals('foo')); | 395 unittest.expect(o.name, unittest.equals('foo')); |
396 checkBucketOwner(o.owner); | 396 checkBucketOwner(o.owner); |
397 unittest.expect(o.projectNumber, unittest.equals('foo')); | 397 unittest.expect(o.projectNumber, unittest.equals('foo')); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 unittest.expect(o.etag, unittest.equals('foo')); | 458 unittest.expect(o.etag, unittest.equals('foo')); |
459 unittest.expect(o.id, unittest.equals('foo')); | 459 unittest.expect(o.id, unittest.equals('foo')); |
460 unittest.expect(o.kind, unittest.equals('foo')); | 460 unittest.expect(o.kind, unittest.equals('foo')); |
461 checkBucketAccessControlProjectTeam(o.projectTeam); | 461 checkBucketAccessControlProjectTeam(o.projectTeam); |
462 unittest.expect(o.role, unittest.equals('foo')); | 462 unittest.expect(o.role, unittest.equals('foo')); |
463 unittest.expect(o.selfLink, unittest.equals('foo')); | 463 unittest.expect(o.selfLink, unittest.equals('foo')); |
464 } | 464 } |
465 buildCounterBucketAccessControl--; | 465 buildCounterBucketAccessControl--; |
466 } | 466 } |
467 | 467 |
468 buildUnnamed729() { | 468 buildUnnamed736() { |
469 var o = new core.List<api.BucketAccessControl>(); | 469 var o = new core.List<api.BucketAccessControl>(); |
470 o.add(buildBucketAccessControl()); | 470 o.add(buildBucketAccessControl()); |
471 o.add(buildBucketAccessControl()); | 471 o.add(buildBucketAccessControl()); |
472 return o; | 472 return o; |
473 } | 473 } |
474 | 474 |
475 checkUnnamed729(core.List<api.BucketAccessControl> o) { | 475 checkUnnamed736(core.List<api.BucketAccessControl> o) { |
476 unittest.expect(o, unittest.hasLength(2)); | 476 unittest.expect(o, unittest.hasLength(2)); |
477 checkBucketAccessControl(o[0]); | 477 checkBucketAccessControl(o[0]); |
478 checkBucketAccessControl(o[1]); | 478 checkBucketAccessControl(o[1]); |
479 } | 479 } |
480 | 480 |
481 core.int buildCounterBucketAccessControls = 0; | 481 core.int buildCounterBucketAccessControls = 0; |
482 buildBucketAccessControls() { | 482 buildBucketAccessControls() { |
483 var o = new api.BucketAccessControls(); | 483 var o = new api.BucketAccessControls(); |
484 buildCounterBucketAccessControls++; | 484 buildCounterBucketAccessControls++; |
485 if (buildCounterBucketAccessControls < 3) { | 485 if (buildCounterBucketAccessControls < 3) { |
486 o.items = buildUnnamed729(); | 486 o.items = buildUnnamed736(); |
487 o.kind = "foo"; | 487 o.kind = "foo"; |
488 } | 488 } |
489 buildCounterBucketAccessControls--; | 489 buildCounterBucketAccessControls--; |
490 return o; | 490 return o; |
491 } | 491 } |
492 | 492 |
493 checkBucketAccessControls(api.BucketAccessControls o) { | 493 checkBucketAccessControls(api.BucketAccessControls o) { |
494 buildCounterBucketAccessControls++; | 494 buildCounterBucketAccessControls++; |
495 if (buildCounterBucketAccessControls < 3) { | 495 if (buildCounterBucketAccessControls < 3) { |
496 checkUnnamed729(o.items); | 496 checkUnnamed736(o.items); |
497 unittest.expect(o.kind, unittest.equals('foo')); | 497 unittest.expect(o.kind, unittest.equals('foo')); |
498 } | 498 } |
499 buildCounterBucketAccessControls--; | 499 buildCounterBucketAccessControls--; |
500 } | 500 } |
501 | 501 |
502 buildUnnamed730() { | 502 buildUnnamed737() { |
503 var o = new core.List<api.Bucket>(); | 503 var o = new core.List<api.Bucket>(); |
504 o.add(buildBucket()); | 504 o.add(buildBucket()); |
505 o.add(buildBucket()); | 505 o.add(buildBucket()); |
506 return o; | 506 return o; |
507 } | 507 } |
508 | 508 |
509 checkUnnamed730(core.List<api.Bucket> o) { | 509 checkUnnamed737(core.List<api.Bucket> o) { |
510 unittest.expect(o, unittest.hasLength(2)); | 510 unittest.expect(o, unittest.hasLength(2)); |
511 checkBucket(o[0]); | 511 checkBucket(o[0]); |
512 checkBucket(o[1]); | 512 checkBucket(o[1]); |
513 } | 513 } |
514 | 514 |
515 core.int buildCounterBuckets = 0; | 515 core.int buildCounterBuckets = 0; |
516 buildBuckets() { | 516 buildBuckets() { |
517 var o = new api.Buckets(); | 517 var o = new api.Buckets(); |
518 buildCounterBuckets++; | 518 buildCounterBuckets++; |
519 if (buildCounterBuckets < 3) { | 519 if (buildCounterBuckets < 3) { |
520 o.items = buildUnnamed730(); | 520 o.items = buildUnnamed737(); |
521 o.kind = "foo"; | 521 o.kind = "foo"; |
522 o.nextPageToken = "foo"; | 522 o.nextPageToken = "foo"; |
523 } | 523 } |
524 buildCounterBuckets--; | 524 buildCounterBuckets--; |
525 return o; | 525 return o; |
526 } | 526 } |
527 | 527 |
528 checkBuckets(api.Buckets o) { | 528 checkBuckets(api.Buckets o) { |
529 buildCounterBuckets++; | 529 buildCounterBuckets++; |
530 if (buildCounterBuckets < 3) { | 530 if (buildCounterBuckets < 3) { |
531 checkUnnamed730(o.items); | 531 checkUnnamed737(o.items); |
532 unittest.expect(o.kind, unittest.equals('foo')); | 532 unittest.expect(o.kind, unittest.equals('foo')); |
533 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 533 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
534 } | 534 } |
535 buildCounterBuckets--; | 535 buildCounterBuckets--; |
536 } | 536 } |
537 | 537 |
538 buildUnnamed731() { | 538 buildUnnamed738() { |
539 var o = new core.Map<core.String, core.String>(); | 539 var o = new core.Map<core.String, core.String>(); |
540 o["x"] = "foo"; | 540 o["x"] = "foo"; |
541 o["y"] = "foo"; | 541 o["y"] = "foo"; |
542 return o; | 542 return o; |
543 } | 543 } |
544 | 544 |
545 checkUnnamed731(core.Map<core.String, core.String> o) { | 545 checkUnnamed738(core.Map<core.String, core.String> o) { |
546 unittest.expect(o, unittest.hasLength(2)); | 546 unittest.expect(o, unittest.hasLength(2)); |
547 unittest.expect(o["x"], unittest.equals('foo')); | 547 unittest.expect(o["x"], unittest.equals('foo')); |
548 unittest.expect(o["y"], unittest.equals('foo')); | 548 unittest.expect(o["y"], unittest.equals('foo')); |
549 } | 549 } |
550 | 550 |
551 core.int buildCounterChannel = 0; | 551 core.int buildCounterChannel = 0; |
552 buildChannel() { | 552 buildChannel() { |
553 var o = new api.Channel(); | 553 var o = new api.Channel(); |
554 buildCounterChannel++; | 554 buildCounterChannel++; |
555 if (buildCounterChannel < 3) { | 555 if (buildCounterChannel < 3) { |
556 o.address = "foo"; | 556 o.address = "foo"; |
557 o.expiration = "foo"; | 557 o.expiration = "foo"; |
558 o.id = "foo"; | 558 o.id = "foo"; |
559 o.kind = "foo"; | 559 o.kind = "foo"; |
560 o.params = buildUnnamed731(); | 560 o.params = buildUnnamed738(); |
561 o.payload = true; | 561 o.payload = true; |
562 o.resourceId = "foo"; | 562 o.resourceId = "foo"; |
563 o.resourceUri = "foo"; | 563 o.resourceUri = "foo"; |
564 o.token = "foo"; | 564 o.token = "foo"; |
565 o.type = "foo"; | 565 o.type = "foo"; |
566 } | 566 } |
567 buildCounterChannel--; | 567 buildCounterChannel--; |
568 return o; | 568 return o; |
569 } | 569 } |
570 | 570 |
571 checkChannel(api.Channel o) { | 571 checkChannel(api.Channel o) { |
572 buildCounterChannel++; | 572 buildCounterChannel++; |
573 if (buildCounterChannel < 3) { | 573 if (buildCounterChannel < 3) { |
574 unittest.expect(o.address, unittest.equals('foo')); | 574 unittest.expect(o.address, unittest.equals('foo')); |
575 unittest.expect(o.expiration, unittest.equals('foo')); | 575 unittest.expect(o.expiration, unittest.equals('foo')); |
576 unittest.expect(o.id, unittest.equals('foo')); | 576 unittest.expect(o.id, unittest.equals('foo')); |
577 unittest.expect(o.kind, unittest.equals('foo')); | 577 unittest.expect(o.kind, unittest.equals('foo')); |
578 checkUnnamed731(o.params); | 578 checkUnnamed738(o.params); |
579 unittest.expect(o.payload, unittest.isTrue); | 579 unittest.expect(o.payload, unittest.isTrue); |
580 unittest.expect(o.resourceId, unittest.equals('foo')); | 580 unittest.expect(o.resourceId, unittest.equals('foo')); |
581 unittest.expect(o.resourceUri, unittest.equals('foo')); | 581 unittest.expect(o.resourceUri, unittest.equals('foo')); |
582 unittest.expect(o.token, unittest.equals('foo')); | 582 unittest.expect(o.token, unittest.equals('foo')); |
583 unittest.expect(o.type, unittest.equals('foo')); | 583 unittest.expect(o.type, unittest.equals('foo')); |
584 } | 584 } |
585 buildCounterChannel--; | 585 buildCounterChannel--; |
586 } | 586 } |
587 | 587 |
588 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0; | 588 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) { | 620 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) { |
621 buildCounterComposeRequestSourceObjects++; | 621 buildCounterComposeRequestSourceObjects++; |
622 if (buildCounterComposeRequestSourceObjects < 3) { | 622 if (buildCounterComposeRequestSourceObjects < 3) { |
623 unittest.expect(o.generation, unittest.equals('foo')); | 623 unittest.expect(o.generation, unittest.equals('foo')); |
624 unittest.expect(o.name, unittest.equals('foo')); | 624 unittest.expect(o.name, unittest.equals('foo')); |
625 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions); | 625 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions); |
626 } | 626 } |
627 buildCounterComposeRequestSourceObjects--; | 627 buildCounterComposeRequestSourceObjects--; |
628 } | 628 } |
629 | 629 |
630 buildUnnamed732() { | 630 buildUnnamed739() { |
631 var o = new core.List<api.ComposeRequestSourceObjects>(); | 631 var o = new core.List<api.ComposeRequestSourceObjects>(); |
632 o.add(buildComposeRequestSourceObjects()); | 632 o.add(buildComposeRequestSourceObjects()); |
633 o.add(buildComposeRequestSourceObjects()); | 633 o.add(buildComposeRequestSourceObjects()); |
634 return o; | 634 return o; |
635 } | 635 } |
636 | 636 |
637 checkUnnamed732(core.List<api.ComposeRequestSourceObjects> o) { | 637 checkUnnamed739(core.List<api.ComposeRequestSourceObjects> o) { |
638 unittest.expect(o, unittest.hasLength(2)); | 638 unittest.expect(o, unittest.hasLength(2)); |
639 checkComposeRequestSourceObjects(o[0]); | 639 checkComposeRequestSourceObjects(o[0]); |
640 checkComposeRequestSourceObjects(o[1]); | 640 checkComposeRequestSourceObjects(o[1]); |
641 } | 641 } |
642 | 642 |
643 core.int buildCounterComposeRequest = 0; | 643 core.int buildCounterComposeRequest = 0; |
644 buildComposeRequest() { | 644 buildComposeRequest() { |
645 var o = new api.ComposeRequest(); | 645 var o = new api.ComposeRequest(); |
646 buildCounterComposeRequest++; | 646 buildCounterComposeRequest++; |
647 if (buildCounterComposeRequest < 3) { | 647 if (buildCounterComposeRequest < 3) { |
648 o.destination = buildObject(); | 648 o.destination = buildObject(); |
649 o.kind = "foo"; | 649 o.kind = "foo"; |
650 o.sourceObjects = buildUnnamed732(); | 650 o.sourceObjects = buildUnnamed739(); |
651 } | 651 } |
652 buildCounterComposeRequest--; | 652 buildCounterComposeRequest--; |
653 return o; | 653 return o; |
654 } | 654 } |
655 | 655 |
656 checkComposeRequest(api.ComposeRequest o) { | 656 checkComposeRequest(api.ComposeRequest o) { |
657 buildCounterComposeRequest++; | 657 buildCounterComposeRequest++; |
658 if (buildCounterComposeRequest < 3) { | 658 if (buildCounterComposeRequest < 3) { |
659 checkObject(o.destination); | 659 checkObject(o.destination); |
660 unittest.expect(o.kind, unittest.equals('foo')); | 660 unittest.expect(o.kind, unittest.equals('foo')); |
661 checkUnnamed732(o.sourceObjects); | 661 checkUnnamed739(o.sourceObjects); |
662 } | 662 } |
663 buildCounterComposeRequest--; | 663 buildCounterComposeRequest--; |
664 } | 664 } |
665 | 665 |
666 buildUnnamed733() { | 666 buildUnnamed740() { |
667 var o = new core.List<api.ObjectAccessControl>(); | 667 var o = new core.List<api.ObjectAccessControl>(); |
668 o.add(buildObjectAccessControl()); | 668 o.add(buildObjectAccessControl()); |
669 o.add(buildObjectAccessControl()); | 669 o.add(buildObjectAccessControl()); |
670 return o; | 670 return o; |
671 } | 671 } |
672 | 672 |
673 checkUnnamed733(core.List<api.ObjectAccessControl> o) { | 673 checkUnnamed740(core.List<api.ObjectAccessControl> o) { |
674 unittest.expect(o, unittest.hasLength(2)); | 674 unittest.expect(o, unittest.hasLength(2)); |
675 checkObjectAccessControl(o[0]); | 675 checkObjectAccessControl(o[0]); |
676 checkObjectAccessControl(o[1]); | 676 checkObjectAccessControl(o[1]); |
677 } | 677 } |
678 | 678 |
679 core.int buildCounterObjectCustomerEncryption = 0; | 679 core.int buildCounterObjectCustomerEncryption = 0; |
680 buildObjectCustomerEncryption() { | 680 buildObjectCustomerEncryption() { |
681 var o = new api.ObjectCustomerEncryption(); | 681 var o = new api.ObjectCustomerEncryption(); |
682 buildCounterObjectCustomerEncryption++; | 682 buildCounterObjectCustomerEncryption++; |
683 if (buildCounterObjectCustomerEncryption < 3) { | 683 if (buildCounterObjectCustomerEncryption < 3) { |
684 o.encryptionAlgorithm = "foo"; | 684 o.encryptionAlgorithm = "foo"; |
685 o.keySha256 = "foo"; | 685 o.keySha256 = "foo"; |
686 } | 686 } |
687 buildCounterObjectCustomerEncryption--; | 687 buildCounterObjectCustomerEncryption--; |
688 return o; | 688 return o; |
689 } | 689 } |
690 | 690 |
691 checkObjectCustomerEncryption(api.ObjectCustomerEncryption o) { | 691 checkObjectCustomerEncryption(api.ObjectCustomerEncryption o) { |
692 buildCounterObjectCustomerEncryption++; | 692 buildCounterObjectCustomerEncryption++; |
693 if (buildCounterObjectCustomerEncryption < 3) { | 693 if (buildCounterObjectCustomerEncryption < 3) { |
694 unittest.expect(o.encryptionAlgorithm, unittest.equals('foo')); | 694 unittest.expect(o.encryptionAlgorithm, unittest.equals('foo')); |
695 unittest.expect(o.keySha256, unittest.equals('foo')); | 695 unittest.expect(o.keySha256, unittest.equals('foo')); |
696 } | 696 } |
697 buildCounterObjectCustomerEncryption--; | 697 buildCounterObjectCustomerEncryption--; |
698 } | 698 } |
699 | 699 |
700 buildUnnamed734() { | 700 buildUnnamed741() { |
701 var o = new core.Map<core.String, core.String>(); | 701 var o = new core.Map<core.String, core.String>(); |
702 o["x"] = "foo"; | 702 o["x"] = "foo"; |
703 o["y"] = "foo"; | 703 o["y"] = "foo"; |
704 return o; | 704 return o; |
705 } | 705 } |
706 | 706 |
707 checkUnnamed734(core.Map<core.String, core.String> o) { | 707 checkUnnamed741(core.Map<core.String, core.String> o) { |
708 unittest.expect(o, unittest.hasLength(2)); | 708 unittest.expect(o, unittest.hasLength(2)); |
709 unittest.expect(o["x"], unittest.equals('foo')); | 709 unittest.expect(o["x"], unittest.equals('foo')); |
710 unittest.expect(o["y"], unittest.equals('foo')); | 710 unittest.expect(o["y"], unittest.equals('foo')); |
711 } | 711 } |
712 | 712 |
713 core.int buildCounterObjectOwner = 0; | 713 core.int buildCounterObjectOwner = 0; |
714 buildObjectOwner() { | 714 buildObjectOwner() { |
715 var o = new api.ObjectOwner(); | 715 var o = new api.ObjectOwner(); |
716 buildCounterObjectOwner++; | 716 buildCounterObjectOwner++; |
717 if (buildCounterObjectOwner < 3) { | 717 if (buildCounterObjectOwner < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
729 unittest.expect(o.entityId, unittest.equals('foo')); | 729 unittest.expect(o.entityId, unittest.equals('foo')); |
730 } | 730 } |
731 buildCounterObjectOwner--; | 731 buildCounterObjectOwner--; |
732 } | 732 } |
733 | 733 |
734 core.int buildCounterObject = 0; | 734 core.int buildCounterObject = 0; |
735 buildObject() { | 735 buildObject() { |
736 var o = new api.Object(); | 736 var o = new api.Object(); |
737 buildCounterObject++; | 737 buildCounterObject++; |
738 if (buildCounterObject < 3) { | 738 if (buildCounterObject < 3) { |
739 o.acl = buildUnnamed733(); | 739 o.acl = buildUnnamed740(); |
740 o.bucket = "foo"; | 740 o.bucket = "foo"; |
741 o.cacheControl = "foo"; | 741 o.cacheControl = "foo"; |
742 o.componentCount = 42; | 742 o.componentCount = 42; |
743 o.contentDisposition = "foo"; | 743 o.contentDisposition = "foo"; |
744 o.contentEncoding = "foo"; | 744 o.contentEncoding = "foo"; |
745 o.contentLanguage = "foo"; | 745 o.contentLanguage = "foo"; |
746 o.contentType = "foo"; | 746 o.contentType = "foo"; |
747 o.crc32c = "foo"; | 747 o.crc32c = "foo"; |
748 o.customerEncryption = buildObjectCustomerEncryption(); | 748 o.customerEncryption = buildObjectCustomerEncryption(); |
749 o.etag = "foo"; | 749 o.etag = "foo"; |
750 o.generation = "foo"; | 750 o.generation = "foo"; |
751 o.id = "foo"; | 751 o.id = "foo"; |
752 o.kind = "foo"; | 752 o.kind = "foo"; |
753 o.md5Hash = "foo"; | 753 o.md5Hash = "foo"; |
754 o.mediaLink = "foo"; | 754 o.mediaLink = "foo"; |
755 o.metadata = buildUnnamed734(); | 755 o.metadata = buildUnnamed741(); |
756 o.metageneration = "foo"; | 756 o.metageneration = "foo"; |
757 o.name = "foo"; | 757 o.name = "foo"; |
758 o.owner = buildObjectOwner(); | 758 o.owner = buildObjectOwner(); |
759 o.selfLink = "foo"; | 759 o.selfLink = "foo"; |
760 o.size = "foo"; | 760 o.size = "foo"; |
761 o.storageClass = "foo"; | 761 o.storageClass = "foo"; |
762 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); | 762 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); |
763 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); | 763 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); |
764 o.timeStorageClassUpdated = core.DateTime.parse("2002-02-27T14:01:02"); | 764 o.timeStorageClassUpdated = core.DateTime.parse("2002-02-27T14:01:02"); |
765 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 765 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
766 } | 766 } |
767 buildCounterObject--; | 767 buildCounterObject--; |
768 return o; | 768 return o; |
769 } | 769 } |
770 | 770 |
771 checkObject(api.Object o) { | 771 checkObject(api.Object o) { |
772 buildCounterObject++; | 772 buildCounterObject++; |
773 if (buildCounterObject < 3) { | 773 if (buildCounterObject < 3) { |
774 checkUnnamed733(o.acl); | 774 checkUnnamed740(o.acl); |
775 unittest.expect(o.bucket, unittest.equals('foo')); | 775 unittest.expect(o.bucket, unittest.equals('foo')); |
776 unittest.expect(o.cacheControl, unittest.equals('foo')); | 776 unittest.expect(o.cacheControl, unittest.equals('foo')); |
777 unittest.expect(o.componentCount, unittest.equals(42)); | 777 unittest.expect(o.componentCount, unittest.equals(42)); |
778 unittest.expect(o.contentDisposition, unittest.equals('foo')); | 778 unittest.expect(o.contentDisposition, unittest.equals('foo')); |
779 unittest.expect(o.contentEncoding, unittest.equals('foo')); | 779 unittest.expect(o.contentEncoding, unittest.equals('foo')); |
780 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 780 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
781 unittest.expect(o.contentType, unittest.equals('foo')); | 781 unittest.expect(o.contentType, unittest.equals('foo')); |
782 unittest.expect(o.crc32c, unittest.equals('foo')); | 782 unittest.expect(o.crc32c, unittest.equals('foo')); |
783 checkObjectCustomerEncryption(o.customerEncryption); | 783 checkObjectCustomerEncryption(o.customerEncryption); |
784 unittest.expect(o.etag, unittest.equals('foo')); | 784 unittest.expect(o.etag, unittest.equals('foo')); |
785 unittest.expect(o.generation, unittest.equals('foo')); | 785 unittest.expect(o.generation, unittest.equals('foo')); |
786 unittest.expect(o.id, unittest.equals('foo')); | 786 unittest.expect(o.id, unittest.equals('foo')); |
787 unittest.expect(o.kind, unittest.equals('foo')); | 787 unittest.expect(o.kind, unittest.equals('foo')); |
788 unittest.expect(o.md5Hash, unittest.equals('foo')); | 788 unittest.expect(o.md5Hash, unittest.equals('foo')); |
789 unittest.expect(o.mediaLink, unittest.equals('foo')); | 789 unittest.expect(o.mediaLink, unittest.equals('foo')); |
790 checkUnnamed734(o.metadata); | 790 checkUnnamed741(o.metadata); |
791 unittest.expect(o.metageneration, unittest.equals('foo')); | 791 unittest.expect(o.metageneration, unittest.equals('foo')); |
792 unittest.expect(o.name, unittest.equals('foo')); | 792 unittest.expect(o.name, unittest.equals('foo')); |
793 checkObjectOwner(o.owner); | 793 checkObjectOwner(o.owner); |
794 unittest.expect(o.selfLink, unittest.equals('foo')); | 794 unittest.expect(o.selfLink, unittest.equals('foo')); |
795 unittest.expect(o.size, unittest.equals('foo')); | 795 unittest.expect(o.size, unittest.equals('foo')); |
796 unittest.expect(o.storageClass, unittest.equals('foo')); | 796 unittest.expect(o.storageClass, unittest.equals('foo')); |
797 unittest.expect(o.timeCreated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 797 unittest.expect(o.timeCreated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
798 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 798 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
799 unittest.expect(o.timeStorageClassUpdated, unittest.equals(core.DateTime.par
se("2002-02-27T14:01:02"))); | 799 unittest.expect(o.timeStorageClassUpdated, unittest.equals(core.DateTime.par
se("2002-02-27T14:01:02"))); |
800 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 800 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 unittest.expect(o.id, unittest.equals('foo')); | 859 unittest.expect(o.id, unittest.equals('foo')); |
860 unittest.expect(o.kind, unittest.equals('foo')); | 860 unittest.expect(o.kind, unittest.equals('foo')); |
861 unittest.expect(o.object, unittest.equals('foo')); | 861 unittest.expect(o.object, unittest.equals('foo')); |
862 checkObjectAccessControlProjectTeam(o.projectTeam); | 862 checkObjectAccessControlProjectTeam(o.projectTeam); |
863 unittest.expect(o.role, unittest.equals('foo')); | 863 unittest.expect(o.role, unittest.equals('foo')); |
864 unittest.expect(o.selfLink, unittest.equals('foo')); | 864 unittest.expect(o.selfLink, unittest.equals('foo')); |
865 } | 865 } |
866 buildCounterObjectAccessControl--; | 866 buildCounterObjectAccessControl--; |
867 } | 867 } |
868 | 868 |
869 buildUnnamed735() { | 869 buildUnnamed742() { |
870 var o = new core.List<api.ObjectAccessControl>(); | 870 var o = new core.List<api.ObjectAccessControl>(); |
871 o.add(buildObjectAccessControl()); | 871 o.add(buildObjectAccessControl()); |
872 o.add(buildObjectAccessControl()); | 872 o.add(buildObjectAccessControl()); |
873 return o; | 873 return o; |
874 } | 874 } |
875 | 875 |
876 checkUnnamed735(core.List<api.ObjectAccessControl> o) { | 876 checkUnnamed742(core.List<api.ObjectAccessControl> o) { |
877 unittest.expect(o, unittest.hasLength(2)); | 877 unittest.expect(o, unittest.hasLength(2)); |
878 checkObjectAccessControl(o[0]); | 878 checkObjectAccessControl(o[0]); |
879 checkObjectAccessControl(o[1]); | 879 checkObjectAccessControl(o[1]); |
880 } | 880 } |
881 | 881 |
882 core.int buildCounterObjectAccessControls = 0; | 882 core.int buildCounterObjectAccessControls = 0; |
883 buildObjectAccessControls() { | 883 buildObjectAccessControls() { |
884 var o = new api.ObjectAccessControls(); | 884 var o = new api.ObjectAccessControls(); |
885 buildCounterObjectAccessControls++; | 885 buildCounterObjectAccessControls++; |
886 if (buildCounterObjectAccessControls < 3) { | 886 if (buildCounterObjectAccessControls < 3) { |
887 o.items = buildUnnamed735(); | 887 o.items = buildUnnamed742(); |
888 o.kind = "foo"; | 888 o.kind = "foo"; |
889 } | 889 } |
890 buildCounterObjectAccessControls--; | 890 buildCounterObjectAccessControls--; |
891 return o; | 891 return o; |
892 } | 892 } |
893 | 893 |
894 checkObjectAccessControls(api.ObjectAccessControls o) { | 894 checkObjectAccessControls(api.ObjectAccessControls o) { |
895 buildCounterObjectAccessControls++; | 895 buildCounterObjectAccessControls++; |
896 if (buildCounterObjectAccessControls < 3) { | 896 if (buildCounterObjectAccessControls < 3) { |
897 checkUnnamed735(o.items); | 897 checkUnnamed742(o.items); |
898 unittest.expect(o.kind, unittest.equals('foo')); | 898 unittest.expect(o.kind, unittest.equals('foo')); |
899 } | 899 } |
900 buildCounterObjectAccessControls--; | 900 buildCounterObjectAccessControls--; |
901 } | 901 } |
902 | 902 |
903 buildUnnamed736() { | 903 buildUnnamed743() { |
904 var o = new core.List<api.Object>(); | 904 var o = new core.List<api.Object>(); |
905 o.add(buildObject()); | 905 o.add(buildObject()); |
906 o.add(buildObject()); | 906 o.add(buildObject()); |
907 return o; | 907 return o; |
908 } | 908 } |
909 | 909 |
910 checkUnnamed736(core.List<api.Object> o) { | 910 checkUnnamed743(core.List<api.Object> o) { |
911 unittest.expect(o, unittest.hasLength(2)); | 911 unittest.expect(o, unittest.hasLength(2)); |
912 checkObject(o[0]); | 912 checkObject(o[0]); |
913 checkObject(o[1]); | 913 checkObject(o[1]); |
914 } | 914 } |
915 | 915 |
916 buildUnnamed737() { | 916 buildUnnamed744() { |
917 var o = new core.List<core.String>(); | 917 var o = new core.List<core.String>(); |
918 o.add("foo"); | 918 o.add("foo"); |
919 o.add("foo"); | 919 o.add("foo"); |
920 return o; | 920 return o; |
921 } | 921 } |
922 | 922 |
923 checkUnnamed737(core.List<core.String> o) { | 923 checkUnnamed744(core.List<core.String> o) { |
924 unittest.expect(o, unittest.hasLength(2)); | 924 unittest.expect(o, unittest.hasLength(2)); |
925 unittest.expect(o[0], unittest.equals('foo')); | 925 unittest.expect(o[0], unittest.equals('foo')); |
926 unittest.expect(o[1], unittest.equals('foo')); | 926 unittest.expect(o[1], unittest.equals('foo')); |
927 } | 927 } |
928 | 928 |
929 core.int buildCounterObjects = 0; | 929 core.int buildCounterObjects = 0; |
930 buildObjects() { | 930 buildObjects() { |
931 var o = new api.Objects(); | 931 var o = new api.Objects(); |
932 buildCounterObjects++; | 932 buildCounterObjects++; |
933 if (buildCounterObjects < 3) { | 933 if (buildCounterObjects < 3) { |
934 o.items = buildUnnamed736(); | 934 o.items = buildUnnamed743(); |
935 o.kind = "foo"; | 935 o.kind = "foo"; |
936 o.nextPageToken = "foo"; | 936 o.nextPageToken = "foo"; |
937 o.prefixes = buildUnnamed737(); | 937 o.prefixes = buildUnnamed744(); |
938 } | 938 } |
939 buildCounterObjects--; | 939 buildCounterObjects--; |
940 return o; | 940 return o; |
941 } | 941 } |
942 | 942 |
943 checkObjects(api.Objects o) { | 943 checkObjects(api.Objects o) { |
944 buildCounterObjects++; | 944 buildCounterObjects++; |
945 if (buildCounterObjects < 3) { | 945 if (buildCounterObjects < 3) { |
946 checkUnnamed736(o.items); | 946 checkUnnamed743(o.items); |
947 unittest.expect(o.kind, unittest.equals('foo')); | 947 unittest.expect(o.kind, unittest.equals('foo')); |
948 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 948 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
949 checkUnnamed737(o.prefixes); | 949 checkUnnamed744(o.prefixes); |
950 } | 950 } |
951 buildCounterObjects--; | 951 buildCounterObjects--; |
952 } | 952 } |
953 | 953 |
954 core.int buildCounterRewriteResponse = 0; | 954 core.int buildCounterRewriteResponse = 0; |
955 buildRewriteResponse() { | 955 buildRewriteResponse() { |
956 var o = new api.RewriteResponse(); | 956 var o = new api.RewriteResponse(); |
957 buildCounterRewriteResponse++; | 957 buildCounterRewriteResponse++; |
958 if (buildCounterRewriteResponse < 3) { | 958 if (buildCounterRewriteResponse < 3) { |
959 o.done = true; | 959 o.done = true; |
(...skipping 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3496 res.watchAll(arg_request, arg_bucket, delimiter: arg_delimiter, maxResults
: arg_maxResults, pageToken: arg_pageToken, prefix: arg_prefix, projection: arg_
projection, versions: arg_versions).then(unittest.expectAsync(((api.Channel resp
onse) { | 3496 res.watchAll(arg_request, arg_bucket, delimiter: arg_delimiter, maxResults
: arg_maxResults, pageToken: arg_pageToken, prefix: arg_prefix, projection: arg_
projection, versions: arg_versions).then(unittest.expectAsync(((api.Channel resp
onse) { |
3497 checkChannel(response); | 3497 checkChannel(response); |
3498 }))); | 3498 }))); |
3499 }); | 3499 }); |
3500 | 3500 |
3501 }); | 3501 }); |
3502 | 3502 |
3503 | 3503 |
3504 } | 3504 } |
3505 | 3505 |
OLD | NEW |