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

Side by Side Diff: generated/googleapis/test/storage/v1_test.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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.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
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 buildUnnamed956() { 54 buildUnnamed981() {
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 checkUnnamed956(core.List<api.BucketAccessControl> o) { 61 checkUnnamed981(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 buildUnnamed957() { 67 buildUnnamed982() {
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 checkUnnamed957(core.List<core.String> o) { 74 checkUnnamed982(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 buildUnnamed958() { 80 buildUnnamed983() {
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 checkUnnamed958(core.List<core.String> o) { 87 checkUnnamed983(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 buildUnnamed959() { 93 buildUnnamed984() {
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 checkUnnamed959(core.List<core.String> o) { 100 checkUnnamed984(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 = buildUnnamed957(); 112 o.method = buildUnnamed982();
113 o.origin = buildUnnamed958(); 113 o.origin = buildUnnamed983();
114 o.responseHeader = buildUnnamed959(); 114 o.responseHeader = buildUnnamed984();
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 checkUnnamed957(o.method); 124 checkUnnamed982(o.method);
125 checkUnnamed958(o.origin); 125 checkUnnamed983(o.origin);
126 checkUnnamed959(o.responseHeader); 126 checkUnnamed984(o.responseHeader);
127 } 127 }
128 buildCounterBucketCors--; 128 buildCounterBucketCors--;
129 } 129 }
130 130
131 buildUnnamed960() { 131 buildUnnamed985() {
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 checkUnnamed960(core.List<api.BucketCors> o) { 138 checkUnnamed985(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 buildUnnamed961() { 144 buildUnnamed986() {
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 checkUnnamed961(core.List<api.ObjectAccessControl> o) { 151 checkUnnamed986(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 buildCounterBucketEncryption = 0;
158 buildBucketEncryption() {
159 var o = new api.BucketEncryption();
160 buildCounterBucketEncryption++;
161 if (buildCounterBucketEncryption < 3) {
162 o.defaultKmsKeyName = "foo";
163 }
164 buildCounterBucketEncryption--;
165 return o;
166 }
167
168 checkBucketEncryption(api.BucketEncryption o) {
169 buildCounterBucketEncryption++;
170 if (buildCounterBucketEncryption < 3) {
171 unittest.expect(o.defaultKmsKeyName, unittest.equals('foo'));
172 }
173 buildCounterBucketEncryption--;
174 }
175
176 core.int buildCounterBucketLifecycleRuleAction = 0; 157 core.int buildCounterBucketLifecycleRuleAction = 0;
177 buildBucketLifecycleRuleAction() { 158 buildBucketLifecycleRuleAction() {
178 var o = new api.BucketLifecycleRuleAction(); 159 var o = new api.BucketLifecycleRuleAction();
179 buildCounterBucketLifecycleRuleAction++; 160 buildCounterBucketLifecycleRuleAction++;
180 if (buildCounterBucketLifecycleRuleAction < 3) { 161 if (buildCounterBucketLifecycleRuleAction < 3) {
162 o.storageClass = "foo";
181 o.type = "foo"; 163 o.type = "foo";
182 } 164 }
183 buildCounterBucketLifecycleRuleAction--; 165 buildCounterBucketLifecycleRuleAction--;
184 return o; 166 return o;
185 } 167 }
186 168
187 checkBucketLifecycleRuleAction(api.BucketLifecycleRuleAction o) { 169 checkBucketLifecycleRuleAction(api.BucketLifecycleRuleAction o) {
188 buildCounterBucketLifecycleRuleAction++; 170 buildCounterBucketLifecycleRuleAction++;
189 if (buildCounterBucketLifecycleRuleAction < 3) { 171 if (buildCounterBucketLifecycleRuleAction < 3) {
172 unittest.expect(o.storageClass, unittest.equals('foo'));
190 unittest.expect(o.type, unittest.equals('foo')); 173 unittest.expect(o.type, unittest.equals('foo'));
191 } 174 }
192 buildCounterBucketLifecycleRuleAction--; 175 buildCounterBucketLifecycleRuleAction--;
193 } 176 }
194 177
178 buildUnnamed987() {
179 var o = new core.List<core.String>();
180 o.add("foo");
181 o.add("foo");
182 return o;
183 }
184
185 checkUnnamed987(core.List<core.String> o) {
186 unittest.expect(o, unittest.hasLength(2));
187 unittest.expect(o[0], unittest.equals('foo'));
188 unittest.expect(o[1], unittest.equals('foo'));
189 }
190
195 core.int buildCounterBucketLifecycleRuleCondition = 0; 191 core.int buildCounterBucketLifecycleRuleCondition = 0;
196 buildBucketLifecycleRuleCondition() { 192 buildBucketLifecycleRuleCondition() {
197 var o = new api.BucketLifecycleRuleCondition(); 193 var o = new api.BucketLifecycleRuleCondition();
198 buildCounterBucketLifecycleRuleCondition++; 194 buildCounterBucketLifecycleRuleCondition++;
199 if (buildCounterBucketLifecycleRuleCondition < 3) { 195 if (buildCounterBucketLifecycleRuleCondition < 3) {
200 o.age = 42; 196 o.age = 42;
201 o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); 197 o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z");
202 o.isLive = true; 198 o.isLive = true;
199 o.matchesStorageClass = buildUnnamed987();
203 o.numNewerVersions = 42; 200 o.numNewerVersions = 42;
204 } 201 }
205 buildCounterBucketLifecycleRuleCondition--; 202 buildCounterBucketLifecycleRuleCondition--;
206 return o; 203 return o;
207 } 204 }
208 205
209 checkBucketLifecycleRuleCondition(api.BucketLifecycleRuleCondition o) { 206 checkBucketLifecycleRuleCondition(api.BucketLifecycleRuleCondition o) {
210 buildCounterBucketLifecycleRuleCondition++; 207 buildCounterBucketLifecycleRuleCondition++;
211 if (buildCounterBucketLifecycleRuleCondition < 3) { 208 if (buildCounterBucketLifecycleRuleCondition < 3) {
212 unittest.expect(o.age, unittest.equals(42)); 209 unittest.expect(o.age, unittest.equals(42));
213 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")));
214 unittest.expect(o.isLive, unittest.isTrue); 211 unittest.expect(o.isLive, unittest.isTrue);
212 checkUnnamed987(o.matchesStorageClass);
215 unittest.expect(o.numNewerVersions, unittest.equals(42)); 213 unittest.expect(o.numNewerVersions, unittest.equals(42));
216 } 214 }
217 buildCounterBucketLifecycleRuleCondition--; 215 buildCounterBucketLifecycleRuleCondition--;
218 } 216 }
219 217
220 core.int buildCounterBucketLifecycleRule = 0; 218 core.int buildCounterBucketLifecycleRule = 0;
221 buildBucketLifecycleRule() { 219 buildBucketLifecycleRule() {
222 var o = new api.BucketLifecycleRule(); 220 var o = new api.BucketLifecycleRule();
223 buildCounterBucketLifecycleRule++; 221 buildCounterBucketLifecycleRule++;
224 if (buildCounterBucketLifecycleRule < 3) { 222 if (buildCounterBucketLifecycleRule < 3) {
225 o.action = buildBucketLifecycleRuleAction(); 223 o.action = buildBucketLifecycleRuleAction();
226 o.condition = buildBucketLifecycleRuleCondition(); 224 o.condition = buildBucketLifecycleRuleCondition();
227 } 225 }
228 buildCounterBucketLifecycleRule--; 226 buildCounterBucketLifecycleRule--;
229 return o; 227 return o;
230 } 228 }
231 229
232 checkBucketLifecycleRule(api.BucketLifecycleRule o) { 230 checkBucketLifecycleRule(api.BucketLifecycleRule o) {
233 buildCounterBucketLifecycleRule++; 231 buildCounterBucketLifecycleRule++;
234 if (buildCounterBucketLifecycleRule < 3) { 232 if (buildCounterBucketLifecycleRule < 3) {
235 checkBucketLifecycleRuleAction(o.action); 233 checkBucketLifecycleRuleAction(o.action);
236 checkBucketLifecycleRuleCondition(o.condition); 234 checkBucketLifecycleRuleCondition(o.condition);
237 } 235 }
238 buildCounterBucketLifecycleRule--; 236 buildCounterBucketLifecycleRule--;
239 } 237 }
240 238
241 buildUnnamed962() { 239 buildUnnamed988() {
242 var o = new core.List<api.BucketLifecycleRule>(); 240 var o = new core.List<api.BucketLifecycleRule>();
243 o.add(buildBucketLifecycleRule()); 241 o.add(buildBucketLifecycleRule());
244 o.add(buildBucketLifecycleRule()); 242 o.add(buildBucketLifecycleRule());
245 return o; 243 return o;
246 } 244 }
247 245
248 checkUnnamed962(core.List<api.BucketLifecycleRule> o) { 246 checkUnnamed988(core.List<api.BucketLifecycleRule> o) {
249 unittest.expect(o, unittest.hasLength(2)); 247 unittest.expect(o, unittest.hasLength(2));
250 checkBucketLifecycleRule(o[0]); 248 checkBucketLifecycleRule(o[0]);
251 checkBucketLifecycleRule(o[1]); 249 checkBucketLifecycleRule(o[1]);
252 } 250 }
253 251
254 core.int buildCounterBucketLifecycle = 0; 252 core.int buildCounterBucketLifecycle = 0;
255 buildBucketLifecycle() { 253 buildBucketLifecycle() {
256 var o = new api.BucketLifecycle(); 254 var o = new api.BucketLifecycle();
257 buildCounterBucketLifecycle++; 255 buildCounterBucketLifecycle++;
258 if (buildCounterBucketLifecycle < 3) { 256 if (buildCounterBucketLifecycle < 3) {
259 o.rule = buildUnnamed962(); 257 o.rule = buildUnnamed988();
260 } 258 }
261 buildCounterBucketLifecycle--; 259 buildCounterBucketLifecycle--;
262 return o; 260 return o;
263 } 261 }
264 262
265 checkBucketLifecycle(api.BucketLifecycle o) { 263 checkBucketLifecycle(api.BucketLifecycle o) {
266 buildCounterBucketLifecycle++; 264 buildCounterBucketLifecycle++;
267 if (buildCounterBucketLifecycle < 3) { 265 if (buildCounterBucketLifecycle < 3) {
268 checkUnnamed962(o.rule); 266 checkUnnamed988(o.rule);
269 } 267 }
270 buildCounterBucketLifecycle--; 268 buildCounterBucketLifecycle--;
271 } 269 }
272 270
273 core.int buildCounterBucketLogging = 0; 271 core.int buildCounterBucketLogging = 0;
274 buildBucketLogging() { 272 buildBucketLogging() {
275 var o = new api.BucketLogging(); 273 var o = new api.BucketLogging();
276 buildCounterBucketLogging++; 274 buildCounterBucketLogging++;
277 if (buildCounterBucketLogging < 3) { 275 if (buildCounterBucketLogging < 3) {
278 o.logBucket = "foo"; 276 o.logBucket = "foo";
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 unittest.expect(o.notFoundPage, unittest.equals('foo')); 348 unittest.expect(o.notFoundPage, unittest.equals('foo'));
351 } 349 }
352 buildCounterBucketWebsite--; 350 buildCounterBucketWebsite--;
353 } 351 }
354 352
355 core.int buildCounterBucket = 0; 353 core.int buildCounterBucket = 0;
356 buildBucket() { 354 buildBucket() {
357 var o = new api.Bucket(); 355 var o = new api.Bucket();
358 buildCounterBucket++; 356 buildCounterBucket++;
359 if (buildCounterBucket < 3) { 357 if (buildCounterBucket < 3) {
360 o.acl = buildUnnamed956(); 358 o.acl = buildUnnamed981();
361 o.cors = buildUnnamed960(); 359 o.cors = buildUnnamed985();
362 o.defaultObjectAcl = buildUnnamed961(); 360 o.defaultObjectAcl = buildUnnamed986();
363 o.encryption = buildBucketEncryption();
364 o.etag = "foo"; 361 o.etag = "foo";
365 o.id = "foo"; 362 o.id = "foo";
366 o.kind = "foo"; 363 o.kind = "foo";
367 o.lifecycle = buildBucketLifecycle(); 364 o.lifecycle = buildBucketLifecycle();
368 o.location = "foo"; 365 o.location = "foo";
369 o.logging = buildBucketLogging(); 366 o.logging = buildBucketLogging();
370 o.metageneration = "foo"; 367 o.metageneration = "foo";
371 o.name = "foo"; 368 o.name = "foo";
372 o.owner = buildBucketOwner(); 369 o.owner = buildBucketOwner();
373 o.projectNumber = "foo"; 370 o.projectNumber = "foo";
374 o.selfLink = "foo"; 371 o.selfLink = "foo";
375 o.storageClass = "foo"; 372 o.storageClass = "foo";
376 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); 373 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02");
377 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 374 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
378 o.versioning = buildBucketVersioning(); 375 o.versioning = buildBucketVersioning();
379 o.website = buildBucketWebsite(); 376 o.website = buildBucketWebsite();
380 } 377 }
381 buildCounterBucket--; 378 buildCounterBucket--;
382 return o; 379 return o;
383 } 380 }
384 381
385 checkBucket(api.Bucket o) { 382 checkBucket(api.Bucket o) {
386 buildCounterBucket++; 383 buildCounterBucket++;
387 if (buildCounterBucket < 3) { 384 if (buildCounterBucket < 3) {
388 checkUnnamed956(o.acl); 385 checkUnnamed981(o.acl);
389 checkUnnamed960(o.cors); 386 checkUnnamed985(o.cors);
390 checkUnnamed961(o.defaultObjectAcl); 387 checkUnnamed986(o.defaultObjectAcl);
391 checkBucketEncryption(o.encryption);
392 unittest.expect(o.etag, unittest.equals('foo')); 388 unittest.expect(o.etag, unittest.equals('foo'));
393 unittest.expect(o.id, unittest.equals('foo')); 389 unittest.expect(o.id, unittest.equals('foo'));
394 unittest.expect(o.kind, unittest.equals('foo')); 390 unittest.expect(o.kind, unittest.equals('foo'));
395 checkBucketLifecycle(o.lifecycle); 391 checkBucketLifecycle(o.lifecycle);
396 unittest.expect(o.location, unittest.equals('foo')); 392 unittest.expect(o.location, unittest.equals('foo'));
397 checkBucketLogging(o.logging); 393 checkBucketLogging(o.logging);
398 unittest.expect(o.metageneration, unittest.equals('foo')); 394 unittest.expect(o.metageneration, unittest.equals('foo'));
399 unittest.expect(o.name, unittest.equals('foo')); 395 unittest.expect(o.name, unittest.equals('foo'));
400 checkBucketOwner(o.owner); 396 checkBucketOwner(o.owner);
401 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
462 unittest.expect(o.etag, unittest.equals('foo')); 458 unittest.expect(o.etag, unittest.equals('foo'));
463 unittest.expect(o.id, unittest.equals('foo')); 459 unittest.expect(o.id, unittest.equals('foo'));
464 unittest.expect(o.kind, unittest.equals('foo')); 460 unittest.expect(o.kind, unittest.equals('foo'));
465 checkBucketAccessControlProjectTeam(o.projectTeam); 461 checkBucketAccessControlProjectTeam(o.projectTeam);
466 unittest.expect(o.role, unittest.equals('foo')); 462 unittest.expect(o.role, unittest.equals('foo'));
467 unittest.expect(o.selfLink, unittest.equals('foo')); 463 unittest.expect(o.selfLink, unittest.equals('foo'));
468 } 464 }
469 buildCounterBucketAccessControl--; 465 buildCounterBucketAccessControl--;
470 } 466 }
471 467
472 buildUnnamed963() { 468 buildUnnamed989() {
473 var o = new core.List<api.BucketAccessControl>(); 469 var o = new core.List<api.BucketAccessControl>();
474 o.add(buildBucketAccessControl()); 470 o.add(buildBucketAccessControl());
475 o.add(buildBucketAccessControl()); 471 o.add(buildBucketAccessControl());
476 return o; 472 return o;
477 } 473 }
478 474
479 checkUnnamed963(core.List<api.BucketAccessControl> o) { 475 checkUnnamed989(core.List<api.BucketAccessControl> o) {
480 unittest.expect(o, unittest.hasLength(2)); 476 unittest.expect(o, unittest.hasLength(2));
481 checkBucketAccessControl(o[0]); 477 checkBucketAccessControl(o[0]);
482 checkBucketAccessControl(o[1]); 478 checkBucketAccessControl(o[1]);
483 } 479 }
484 480
485 core.int buildCounterBucketAccessControls = 0; 481 core.int buildCounterBucketAccessControls = 0;
486 buildBucketAccessControls() { 482 buildBucketAccessControls() {
487 var o = new api.BucketAccessControls(); 483 var o = new api.BucketAccessControls();
488 buildCounterBucketAccessControls++; 484 buildCounterBucketAccessControls++;
489 if (buildCounterBucketAccessControls < 3) { 485 if (buildCounterBucketAccessControls < 3) {
490 o.items = buildUnnamed963(); 486 o.items = buildUnnamed989();
491 o.kind = "foo"; 487 o.kind = "foo";
492 } 488 }
493 buildCounterBucketAccessControls--; 489 buildCounterBucketAccessControls--;
494 return o; 490 return o;
495 } 491 }
496 492
497 checkBucketAccessControls(api.BucketAccessControls o) { 493 checkBucketAccessControls(api.BucketAccessControls o) {
498 buildCounterBucketAccessControls++; 494 buildCounterBucketAccessControls++;
499 if (buildCounterBucketAccessControls < 3) { 495 if (buildCounterBucketAccessControls < 3) {
500 checkUnnamed963(o.items); 496 checkUnnamed989(o.items);
501 unittest.expect(o.kind, unittest.equals('foo')); 497 unittest.expect(o.kind, unittest.equals('foo'));
502 } 498 }
503 buildCounterBucketAccessControls--; 499 buildCounterBucketAccessControls--;
504 } 500 }
505 501
506 buildUnnamed964() { 502 buildUnnamed990() {
507 var o = new core.List<api.Bucket>(); 503 var o = new core.List<api.Bucket>();
508 o.add(buildBucket()); 504 o.add(buildBucket());
509 o.add(buildBucket()); 505 o.add(buildBucket());
510 return o; 506 return o;
511 } 507 }
512 508
513 checkUnnamed964(core.List<api.Bucket> o) { 509 checkUnnamed990(core.List<api.Bucket> o) {
514 unittest.expect(o, unittest.hasLength(2)); 510 unittest.expect(o, unittest.hasLength(2));
515 checkBucket(o[0]); 511 checkBucket(o[0]);
516 checkBucket(o[1]); 512 checkBucket(o[1]);
517 } 513 }
518 514
519 core.int buildCounterBuckets = 0; 515 core.int buildCounterBuckets = 0;
520 buildBuckets() { 516 buildBuckets() {
521 var o = new api.Buckets(); 517 var o = new api.Buckets();
522 buildCounterBuckets++; 518 buildCounterBuckets++;
523 if (buildCounterBuckets < 3) { 519 if (buildCounterBuckets < 3) {
524 o.items = buildUnnamed964(); 520 o.items = buildUnnamed990();
525 o.kind = "foo"; 521 o.kind = "foo";
526 o.nextPageToken = "foo"; 522 o.nextPageToken = "foo";
527 } 523 }
528 buildCounterBuckets--; 524 buildCounterBuckets--;
529 return o; 525 return o;
530 } 526 }
531 527
532 checkBuckets(api.Buckets o) { 528 checkBuckets(api.Buckets o) {
533 buildCounterBuckets++; 529 buildCounterBuckets++;
534 if (buildCounterBuckets < 3) { 530 if (buildCounterBuckets < 3) {
535 checkUnnamed964(o.items); 531 checkUnnamed990(o.items);
536 unittest.expect(o.kind, unittest.equals('foo')); 532 unittest.expect(o.kind, unittest.equals('foo'));
537 unittest.expect(o.nextPageToken, unittest.equals('foo')); 533 unittest.expect(o.nextPageToken, unittest.equals('foo'));
538 } 534 }
539 buildCounterBuckets--; 535 buildCounterBuckets--;
540 } 536 }
541 537
542 buildUnnamed965() { 538 buildUnnamed991() {
543 var o = new core.Map<core.String, core.String>(); 539 var o = new core.Map<core.String, core.String>();
544 o["x"] = "foo"; 540 o["x"] = "foo";
545 o["y"] = "foo"; 541 o["y"] = "foo";
546 return o; 542 return o;
547 } 543 }
548 544
549 checkUnnamed965(core.Map<core.String, core.String> o) { 545 checkUnnamed991(core.Map<core.String, core.String> o) {
550 unittest.expect(o, unittest.hasLength(2)); 546 unittest.expect(o, unittest.hasLength(2));
551 unittest.expect(o["x"], unittest.equals('foo')); 547 unittest.expect(o["x"], unittest.equals('foo'));
552 unittest.expect(o["y"], unittest.equals('foo')); 548 unittest.expect(o["y"], unittest.equals('foo'));
553 } 549 }
554 550
555 core.int buildCounterChannel = 0; 551 core.int buildCounterChannel = 0;
556 buildChannel() { 552 buildChannel() {
557 var o = new api.Channel(); 553 var o = new api.Channel();
558 buildCounterChannel++; 554 buildCounterChannel++;
559 if (buildCounterChannel < 3) { 555 if (buildCounterChannel < 3) {
560 o.address = "foo"; 556 o.address = "foo";
561 o.expiration = "foo"; 557 o.expiration = "foo";
562 o.id = "foo"; 558 o.id = "foo";
563 o.kind = "foo"; 559 o.kind = "foo";
564 o.params = buildUnnamed965(); 560 o.params = buildUnnamed991();
565 o.payload = true; 561 o.payload = true;
566 o.resourceId = "foo"; 562 o.resourceId = "foo";
567 o.resourceUri = "foo"; 563 o.resourceUri = "foo";
568 o.token = "foo"; 564 o.token = "foo";
569 o.type = "foo"; 565 o.type = "foo";
570 } 566 }
571 buildCounterChannel--; 567 buildCounterChannel--;
572 return o; 568 return o;
573 } 569 }
574 570
575 checkChannel(api.Channel o) { 571 checkChannel(api.Channel o) {
576 buildCounterChannel++; 572 buildCounterChannel++;
577 if (buildCounterChannel < 3) { 573 if (buildCounterChannel < 3) {
578 unittest.expect(o.address, unittest.equals('foo')); 574 unittest.expect(o.address, unittest.equals('foo'));
579 unittest.expect(o.expiration, unittest.equals('foo')); 575 unittest.expect(o.expiration, unittest.equals('foo'));
580 unittest.expect(o.id, unittest.equals('foo')); 576 unittest.expect(o.id, unittest.equals('foo'));
581 unittest.expect(o.kind, unittest.equals('foo')); 577 unittest.expect(o.kind, unittest.equals('foo'));
582 checkUnnamed965(o.params); 578 checkUnnamed991(o.params);
583 unittest.expect(o.payload, unittest.isTrue); 579 unittest.expect(o.payload, unittest.isTrue);
584 unittest.expect(o.resourceId, unittest.equals('foo')); 580 unittest.expect(o.resourceId, unittest.equals('foo'));
585 unittest.expect(o.resourceUri, unittest.equals('foo')); 581 unittest.expect(o.resourceUri, unittest.equals('foo'));
586 unittest.expect(o.token, unittest.equals('foo')); 582 unittest.expect(o.token, unittest.equals('foo'));
587 unittest.expect(o.type, unittest.equals('foo')); 583 unittest.expect(o.type, unittest.equals('foo'));
588 } 584 }
589 buildCounterChannel--; 585 buildCounterChannel--;
590 } 586 }
591 587
592 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0; 588 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) { 620 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) {
625 buildCounterComposeRequestSourceObjects++; 621 buildCounterComposeRequestSourceObjects++;
626 if (buildCounterComposeRequestSourceObjects < 3) { 622 if (buildCounterComposeRequestSourceObjects < 3) {
627 unittest.expect(o.generation, unittest.equals('foo')); 623 unittest.expect(o.generation, unittest.equals('foo'));
628 unittest.expect(o.name, unittest.equals('foo')); 624 unittest.expect(o.name, unittest.equals('foo'));
629 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions); 625 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions);
630 } 626 }
631 buildCounterComposeRequestSourceObjects--; 627 buildCounterComposeRequestSourceObjects--;
632 } 628 }
633 629
634 buildUnnamed966() { 630 buildUnnamed992() {
635 var o = new core.List<api.ComposeRequestSourceObjects>(); 631 var o = new core.List<api.ComposeRequestSourceObjects>();
636 o.add(buildComposeRequestSourceObjects()); 632 o.add(buildComposeRequestSourceObjects());
637 o.add(buildComposeRequestSourceObjects()); 633 o.add(buildComposeRequestSourceObjects());
638 return o; 634 return o;
639 } 635 }
640 636
641 checkUnnamed966(core.List<api.ComposeRequestSourceObjects> o) { 637 checkUnnamed992(core.List<api.ComposeRequestSourceObjects> o) {
642 unittest.expect(o, unittest.hasLength(2)); 638 unittest.expect(o, unittest.hasLength(2));
643 checkComposeRequestSourceObjects(o[0]); 639 checkComposeRequestSourceObjects(o[0]);
644 checkComposeRequestSourceObjects(o[1]); 640 checkComposeRequestSourceObjects(o[1]);
645 } 641 }
646 642
647 core.int buildCounterComposeRequest = 0; 643 core.int buildCounterComposeRequest = 0;
648 buildComposeRequest() { 644 buildComposeRequest() {
649 var o = new api.ComposeRequest(); 645 var o = new api.ComposeRequest();
650 buildCounterComposeRequest++; 646 buildCounterComposeRequest++;
651 if (buildCounterComposeRequest < 3) { 647 if (buildCounterComposeRequest < 3) {
652 o.destination = buildObject(); 648 o.destination = buildObject();
653 o.kind = "foo"; 649 o.kind = "foo";
654 o.sourceObjects = buildUnnamed966(); 650 o.sourceObjects = buildUnnamed992();
655 } 651 }
656 buildCounterComposeRequest--; 652 buildCounterComposeRequest--;
657 return o; 653 return o;
658 } 654 }
659 655
660 checkComposeRequest(api.ComposeRequest o) { 656 checkComposeRequest(api.ComposeRequest o) {
661 buildCounterComposeRequest++; 657 buildCounterComposeRequest++;
662 if (buildCounterComposeRequest < 3) { 658 if (buildCounterComposeRequest < 3) {
663 checkObject(o.destination); 659 checkObject(o.destination);
664 unittest.expect(o.kind, unittest.equals('foo')); 660 unittest.expect(o.kind, unittest.equals('foo'));
665 checkUnnamed966(o.sourceObjects); 661 checkUnnamed992(o.sourceObjects);
666 } 662 }
667 buildCounterComposeRequest--; 663 buildCounterComposeRequest--;
668 } 664 }
669 665
670 buildUnnamed967() { 666 buildUnnamed993() {
671 var o = new core.List<api.ObjectAccessControl>(); 667 var o = new core.List<api.ObjectAccessControl>();
672 o.add(buildObjectAccessControl()); 668 o.add(buildObjectAccessControl());
673 o.add(buildObjectAccessControl()); 669 o.add(buildObjectAccessControl());
674 return o; 670 return o;
675 } 671 }
676 672
677 checkUnnamed967(core.List<api.ObjectAccessControl> o) { 673 checkUnnamed993(core.List<api.ObjectAccessControl> o) {
678 unittest.expect(o, unittest.hasLength(2)); 674 unittest.expect(o, unittest.hasLength(2));
679 checkObjectAccessControl(o[0]); 675 checkObjectAccessControl(o[0]);
680 checkObjectAccessControl(o[1]); 676 checkObjectAccessControl(o[1]);
681 } 677 }
682 678
683 core.int buildCounterObjectCustomerEncryption = 0; 679 core.int buildCounterObjectCustomerEncryption = 0;
684 buildObjectCustomerEncryption() { 680 buildObjectCustomerEncryption() {
685 var o = new api.ObjectCustomerEncryption(); 681 var o = new api.ObjectCustomerEncryption();
686 buildCounterObjectCustomerEncryption++; 682 buildCounterObjectCustomerEncryption++;
687 if (buildCounterObjectCustomerEncryption < 3) { 683 if (buildCounterObjectCustomerEncryption < 3) {
688 o.encryptionAlgorithm = "foo"; 684 o.encryptionAlgorithm = "foo";
689 o.keySha256 = "foo"; 685 o.keySha256 = "foo";
690 } 686 }
691 buildCounterObjectCustomerEncryption--; 687 buildCounterObjectCustomerEncryption--;
692 return o; 688 return o;
693 } 689 }
694 690
695 checkObjectCustomerEncryption(api.ObjectCustomerEncryption o) { 691 checkObjectCustomerEncryption(api.ObjectCustomerEncryption o) {
696 buildCounterObjectCustomerEncryption++; 692 buildCounterObjectCustomerEncryption++;
697 if (buildCounterObjectCustomerEncryption < 3) { 693 if (buildCounterObjectCustomerEncryption < 3) {
698 unittest.expect(o.encryptionAlgorithm, unittest.equals('foo')); 694 unittest.expect(o.encryptionAlgorithm, unittest.equals('foo'));
699 unittest.expect(o.keySha256, unittest.equals('foo')); 695 unittest.expect(o.keySha256, unittest.equals('foo'));
700 } 696 }
701 buildCounterObjectCustomerEncryption--; 697 buildCounterObjectCustomerEncryption--;
702 } 698 }
703 699
704 buildUnnamed968() { 700 buildUnnamed994() {
705 var o = new core.Map<core.String, core.String>(); 701 var o = new core.Map<core.String, core.String>();
706 o["x"] = "foo"; 702 o["x"] = "foo";
707 o["y"] = "foo"; 703 o["y"] = "foo";
708 return o; 704 return o;
709 } 705 }
710 706
711 checkUnnamed968(core.Map<core.String, core.String> o) { 707 checkUnnamed994(core.Map<core.String, core.String> o) {
712 unittest.expect(o, unittest.hasLength(2)); 708 unittest.expect(o, unittest.hasLength(2));
713 unittest.expect(o["x"], unittest.equals('foo')); 709 unittest.expect(o["x"], unittest.equals('foo'));
714 unittest.expect(o["y"], unittest.equals('foo')); 710 unittest.expect(o["y"], unittest.equals('foo'));
715 } 711 }
716 712
717 core.int buildCounterObjectOwner = 0; 713 core.int buildCounterObjectOwner = 0;
718 buildObjectOwner() { 714 buildObjectOwner() {
719 var o = new api.ObjectOwner(); 715 var o = new api.ObjectOwner();
720 buildCounterObjectOwner++; 716 buildCounterObjectOwner++;
721 if (buildCounterObjectOwner < 3) { 717 if (buildCounterObjectOwner < 3) {
(...skipping 11 matching lines...) Expand all
733 unittest.expect(o.entityId, unittest.equals('foo')); 729 unittest.expect(o.entityId, unittest.equals('foo'));
734 } 730 }
735 buildCounterObjectOwner--; 731 buildCounterObjectOwner--;
736 } 732 }
737 733
738 core.int buildCounterObject = 0; 734 core.int buildCounterObject = 0;
739 buildObject() { 735 buildObject() {
740 var o = new api.Object(); 736 var o = new api.Object();
741 buildCounterObject++; 737 buildCounterObject++;
742 if (buildCounterObject < 3) { 738 if (buildCounterObject < 3) {
743 o.acl = buildUnnamed967(); 739 o.acl = buildUnnamed993();
744 o.bucket = "foo"; 740 o.bucket = "foo";
745 o.cacheControl = "foo"; 741 o.cacheControl = "foo";
746 o.componentCount = 42; 742 o.componentCount = 42;
747 o.contentDisposition = "foo"; 743 o.contentDisposition = "foo";
748 o.contentEncoding = "foo"; 744 o.contentEncoding = "foo";
749 o.contentLanguage = "foo"; 745 o.contentLanguage = "foo";
750 o.contentType = "foo"; 746 o.contentType = "foo";
751 o.crc32c = "foo"; 747 o.crc32c = "foo";
752 o.customerEncryption = buildObjectCustomerEncryption(); 748 o.customerEncryption = buildObjectCustomerEncryption();
753 o.etag = "foo"; 749 o.etag = "foo";
754 o.generation = "foo"; 750 o.generation = "foo";
755 o.id = "foo"; 751 o.id = "foo";
756 o.kind = "foo"; 752 o.kind = "foo";
757 o.kmsKeyName = "foo";
758 o.md5Hash = "foo"; 753 o.md5Hash = "foo";
759 o.mediaLink = "foo"; 754 o.mediaLink = "foo";
760 o.metadata = buildUnnamed968(); 755 o.metadata = buildUnnamed994();
761 o.metageneration = "foo"; 756 o.metageneration = "foo";
762 o.name = "foo"; 757 o.name = "foo";
763 o.owner = buildObjectOwner(); 758 o.owner = buildObjectOwner();
764 o.selfLink = "foo"; 759 o.selfLink = "foo";
765 o.size = "foo"; 760 o.size = "foo";
766 o.storageClass = "foo"; 761 o.storageClass = "foo";
767 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); 762 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02");
768 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); 763 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02");
769 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 764 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
770 } 765 }
771 buildCounterObject--; 766 buildCounterObject--;
772 return o; 767 return o;
773 } 768 }
774 769
775 checkObject(api.Object o) { 770 checkObject(api.Object o) {
776 buildCounterObject++; 771 buildCounterObject++;
777 if (buildCounterObject < 3) { 772 if (buildCounterObject < 3) {
778 checkUnnamed967(o.acl); 773 checkUnnamed993(o.acl);
779 unittest.expect(o.bucket, unittest.equals('foo')); 774 unittest.expect(o.bucket, unittest.equals('foo'));
780 unittest.expect(o.cacheControl, unittest.equals('foo')); 775 unittest.expect(o.cacheControl, unittest.equals('foo'));
781 unittest.expect(o.componentCount, unittest.equals(42)); 776 unittest.expect(o.componentCount, unittest.equals(42));
782 unittest.expect(o.contentDisposition, unittest.equals('foo')); 777 unittest.expect(o.contentDisposition, unittest.equals('foo'));
783 unittest.expect(o.contentEncoding, unittest.equals('foo')); 778 unittest.expect(o.contentEncoding, unittest.equals('foo'));
784 unittest.expect(o.contentLanguage, unittest.equals('foo')); 779 unittest.expect(o.contentLanguage, unittest.equals('foo'));
785 unittest.expect(o.contentType, unittest.equals('foo')); 780 unittest.expect(o.contentType, unittest.equals('foo'));
786 unittest.expect(o.crc32c, unittest.equals('foo')); 781 unittest.expect(o.crc32c, unittest.equals('foo'));
787 checkObjectCustomerEncryption(o.customerEncryption); 782 checkObjectCustomerEncryption(o.customerEncryption);
788 unittest.expect(o.etag, unittest.equals('foo')); 783 unittest.expect(o.etag, unittest.equals('foo'));
789 unittest.expect(o.generation, unittest.equals('foo')); 784 unittest.expect(o.generation, unittest.equals('foo'));
790 unittest.expect(o.id, unittest.equals('foo')); 785 unittest.expect(o.id, unittest.equals('foo'));
791 unittest.expect(o.kind, unittest.equals('foo')); 786 unittest.expect(o.kind, unittest.equals('foo'));
792 unittest.expect(o.kmsKeyName, unittest.equals('foo'));
793 unittest.expect(o.md5Hash, unittest.equals('foo')); 787 unittest.expect(o.md5Hash, unittest.equals('foo'));
794 unittest.expect(o.mediaLink, unittest.equals('foo')); 788 unittest.expect(o.mediaLink, unittest.equals('foo'));
795 checkUnnamed968(o.metadata); 789 checkUnnamed994(o.metadata);
796 unittest.expect(o.metageneration, unittest.equals('foo')); 790 unittest.expect(o.metageneration, unittest.equals('foo'));
797 unittest.expect(o.name, unittest.equals('foo')); 791 unittest.expect(o.name, unittest.equals('foo'));
798 checkObjectOwner(o.owner); 792 checkObjectOwner(o.owner);
799 unittest.expect(o.selfLink, unittest.equals('foo')); 793 unittest.expect(o.selfLink, unittest.equals('foo'));
800 unittest.expect(o.size, unittest.equals('foo')); 794 unittest.expect(o.size, unittest.equals('foo'));
801 unittest.expect(o.storageClass, unittest.equals('foo')); 795 unittest.expect(o.storageClass, unittest.equals('foo'));
802 unittest.expect(o.timeCreated, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 796 unittest.expect(o.timeCreated, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
803 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 797 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
804 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 798 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
805 } 799 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 unittest.expect(o.id, unittest.equals('foo')); 857 unittest.expect(o.id, unittest.equals('foo'));
864 unittest.expect(o.kind, unittest.equals('foo')); 858 unittest.expect(o.kind, unittest.equals('foo'));
865 unittest.expect(o.object, unittest.equals('foo')); 859 unittest.expect(o.object, unittest.equals('foo'));
866 checkObjectAccessControlProjectTeam(o.projectTeam); 860 checkObjectAccessControlProjectTeam(o.projectTeam);
867 unittest.expect(o.role, unittest.equals('foo')); 861 unittest.expect(o.role, unittest.equals('foo'));
868 unittest.expect(o.selfLink, unittest.equals('foo')); 862 unittest.expect(o.selfLink, unittest.equals('foo'));
869 } 863 }
870 buildCounterObjectAccessControl--; 864 buildCounterObjectAccessControl--;
871 } 865 }
872 866
873 buildUnnamed969() { 867 buildUnnamed995() {
874 var o = new core.List<core.Object>(); 868 var o = new core.List<api.ObjectAccessControl>();
875 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 869 o.add(buildObjectAccessControl());
876 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 870 o.add(buildObjectAccessControl());
877 return o; 871 return o;
878 } 872 }
879 873
880 checkUnnamed969(core.List<core.Object> o) { 874 checkUnnamed995(core.List<api.ObjectAccessControl> o) {
881 unittest.expect(o, unittest.hasLength(2)); 875 unittest.expect(o, unittest.hasLength(2));
882 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo')); 876 checkObjectAccessControl(o[0]);
883 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo')); 877 checkObjectAccessControl(o[1]);
884 } 878 }
885 879
886 core.int buildCounterObjectAccessControls = 0; 880 core.int buildCounterObjectAccessControls = 0;
887 buildObjectAccessControls() { 881 buildObjectAccessControls() {
888 var o = new api.ObjectAccessControls(); 882 var o = new api.ObjectAccessControls();
889 buildCounterObjectAccessControls++; 883 buildCounterObjectAccessControls++;
890 if (buildCounterObjectAccessControls < 3) { 884 if (buildCounterObjectAccessControls < 3) {
891 o.items = buildUnnamed969(); 885 o.items = buildUnnamed995();
892 o.kind = "foo"; 886 o.kind = "foo";
893 } 887 }
894 buildCounterObjectAccessControls--; 888 buildCounterObjectAccessControls--;
895 return o; 889 return o;
896 } 890 }
897 891
898 checkObjectAccessControls(api.ObjectAccessControls o) { 892 checkObjectAccessControls(api.ObjectAccessControls o) {
899 buildCounterObjectAccessControls++; 893 buildCounterObjectAccessControls++;
900 if (buildCounterObjectAccessControls < 3) { 894 if (buildCounterObjectAccessControls < 3) {
901 checkUnnamed969(o.items); 895 checkUnnamed995(o.items);
902 unittest.expect(o.kind, unittest.equals('foo')); 896 unittest.expect(o.kind, unittest.equals('foo'));
903 } 897 }
904 buildCounterObjectAccessControls--; 898 buildCounterObjectAccessControls--;
905 } 899 }
906 900
907 buildUnnamed970() { 901 buildUnnamed996() {
908 var o = new core.List<api.Object>(); 902 var o = new core.List<api.Object>();
909 o.add(buildObject()); 903 o.add(buildObject());
910 o.add(buildObject()); 904 o.add(buildObject());
911 return o; 905 return o;
912 } 906 }
913 907
914 checkUnnamed970(core.List<api.Object> o) { 908 checkUnnamed996(core.List<api.Object> o) {
915 unittest.expect(o, unittest.hasLength(2)); 909 unittest.expect(o, unittest.hasLength(2));
916 checkObject(o[0]); 910 checkObject(o[0]);
917 checkObject(o[1]); 911 checkObject(o[1]);
918 } 912 }
919 913
920 buildUnnamed971() { 914 buildUnnamed997() {
921 var o = new core.List<core.String>(); 915 var o = new core.List<core.String>();
922 o.add("foo"); 916 o.add("foo");
923 o.add("foo"); 917 o.add("foo");
924 return o; 918 return o;
925 } 919 }
926 920
927 checkUnnamed971(core.List<core.String> o) { 921 checkUnnamed997(core.List<core.String> o) {
928 unittest.expect(o, unittest.hasLength(2)); 922 unittest.expect(o, unittest.hasLength(2));
929 unittest.expect(o[0], unittest.equals('foo')); 923 unittest.expect(o[0], unittest.equals('foo'));
930 unittest.expect(o[1], unittest.equals('foo')); 924 unittest.expect(o[1], unittest.equals('foo'));
931 } 925 }
932 926
933 core.int buildCounterObjects = 0; 927 core.int buildCounterObjects = 0;
934 buildObjects() { 928 buildObjects() {
935 var o = new api.Objects(); 929 var o = new api.Objects();
936 buildCounterObjects++; 930 buildCounterObjects++;
937 if (buildCounterObjects < 3) { 931 if (buildCounterObjects < 3) {
938 o.items = buildUnnamed970(); 932 o.items = buildUnnamed996();
939 o.kind = "foo"; 933 o.kind = "foo";
940 o.nextPageToken = "foo"; 934 o.nextPageToken = "foo";
941 o.prefixes = buildUnnamed971(); 935 o.prefixes = buildUnnamed997();
942 } 936 }
943 buildCounterObjects--; 937 buildCounterObjects--;
944 return o; 938 return o;
945 } 939 }
946 940
947 checkObjects(api.Objects o) { 941 checkObjects(api.Objects o) {
948 buildCounterObjects++; 942 buildCounterObjects++;
949 if (buildCounterObjects < 3) { 943 if (buildCounterObjects < 3) {
950 checkUnnamed970(o.items); 944 checkUnnamed996(o.items);
951 unittest.expect(o.kind, unittest.equals('foo')); 945 unittest.expect(o.kind, unittest.equals('foo'));
952 unittest.expect(o.nextPageToken, unittest.equals('foo')); 946 unittest.expect(o.nextPageToken, unittest.equals('foo'));
953 checkUnnamed971(o.prefixes); 947 checkUnnamed997(o.prefixes);
954 } 948 }
955 buildCounterObjects--; 949 buildCounterObjects--;
956 } 950 }
957 951
958 core.int buildCounterRewriteResponse = 0; 952 core.int buildCounterRewriteResponse = 0;
959 buildRewriteResponse() { 953 buildRewriteResponse() {
960 var o = new api.RewriteResponse(); 954 var o = new api.RewriteResponse();
961 buildCounterRewriteResponse++; 955 buildCounterRewriteResponse++;
962 if (buildCounterRewriteResponse < 3) { 956 if (buildCounterRewriteResponse < 3) {
963 o.done = true; 957 o.done = true;
(...skipping 24 matching lines...) Expand all
988 main() { 982 main() {
989 unittest.group("obj-schema-BucketCors", () { 983 unittest.group("obj-schema-BucketCors", () {
990 unittest.test("to-json--from-json", () { 984 unittest.test("to-json--from-json", () {
991 var o = buildBucketCors(); 985 var o = buildBucketCors();
992 var od = new api.BucketCors.fromJson(o.toJson()); 986 var od = new api.BucketCors.fromJson(o.toJson());
993 checkBucketCors(od); 987 checkBucketCors(od);
994 }); 988 });
995 }); 989 });
996 990
997 991
998 unittest.group("obj-schema-BucketEncryption", () {
999 unittest.test("to-json--from-json", () {
1000 var o = buildBucketEncryption();
1001 var od = new api.BucketEncryption.fromJson(o.toJson());
1002 checkBucketEncryption(od);
1003 });
1004 });
1005
1006
1007 unittest.group("obj-schema-BucketLifecycleRuleAction", () { 992 unittest.group("obj-schema-BucketLifecycleRuleAction", () {
1008 unittest.test("to-json--from-json", () { 993 unittest.test("to-json--from-json", () {
1009 var o = buildBucketLifecycleRuleAction(); 994 var o = buildBucketLifecycleRuleAction();
1010 var od = new api.BucketLifecycleRuleAction.fromJson(o.toJson()); 995 var od = new api.BucketLifecycleRuleAction.fromJson(o.toJson());
1011 checkBucketLifecycleRuleAction(od); 996 checkBucketLifecycleRuleAction(od);
1012 }); 997 });
1013 }); 998 });
1014 999
1015 1000
1016 unittest.group("obj-schema-BucketLifecycleRuleCondition", () { 1001 unittest.group("obj-schema-BucketLifecycleRuleCondition", () {
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
2742 // TODO: Implement tests for media download; 2727 // TODO: Implement tests for media download;
2743 2728
2744 var mock = new HttpServerMock(); 2729 var mock = new HttpServerMock();
2745 api.ObjectsResourceApi res = new api.StorageApi(mock).objects; 2730 api.ObjectsResourceApi res = new api.StorageApi(mock).objects;
2746 var arg_request = buildComposeRequest(); 2731 var arg_request = buildComposeRequest();
2747 var arg_destinationBucket = "foo"; 2732 var arg_destinationBucket = "foo";
2748 var arg_destinationObject = "foo"; 2733 var arg_destinationObject = "foo";
2749 var arg_destinationPredefinedAcl = "foo"; 2734 var arg_destinationPredefinedAcl = "foo";
2750 var arg_ifGenerationMatch = "foo"; 2735 var arg_ifGenerationMatch = "foo";
2751 var arg_ifMetagenerationMatch = "foo"; 2736 var arg_ifMetagenerationMatch = "foo";
2752 var arg_kmsKeyName = "foo";
2753 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2737 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2754 var obj = new api.ComposeRequest.fromJson(json); 2738 var obj = new api.ComposeRequest.fromJson(json);
2755 checkComposeRequest(obj); 2739 checkComposeRequest(obj);
2756 2740
2757 var path = (req.url).path; 2741 var path = (req.url).path;
2758 var pathOffset = 0; 2742 var pathOffset = 0;
2759 var index; 2743 var index;
2760 var subPart; 2744 var subPart;
2761 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2745 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2762 pathOffset += 1; 2746 pathOffset += 1;
(...skipping 28 matching lines...) Expand all
2791 } 2775 }
2792 if (query.length > 0) { 2776 if (query.length > 0) {
2793 for (var part in query.split("&")) { 2777 for (var part in query.split("&")) {
2794 var keyvalue = part.split("="); 2778 var keyvalue = part.split("=");
2795 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2779 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2796 } 2780 }
2797 } 2781 }
2798 unittest.expect(queryMap["destinationPredefinedAcl"].first, unittest.equ als(arg_destinationPredefinedAcl)); 2782 unittest.expect(queryMap["destinationPredefinedAcl"].first, unittest.equ als(arg_destinationPredefinedAcl));
2799 unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg _ifGenerationMatch)); 2783 unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg _ifGenerationMatch));
2800 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals (arg_ifMetagenerationMatch)); 2784 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals (arg_ifMetagenerationMatch));
2801 unittest.expect(queryMap["kmsKeyName"].first, unittest.equals(arg_kmsKey Name));
2802 2785
2803 2786
2804 var h = { 2787 var h = {
2805 "content-type" : "application/json; charset=utf-8", 2788 "content-type" : "application/json; charset=utf-8",
2806 }; 2789 };
2807 var resp = convert.JSON.encode(buildObject()); 2790 var resp = convert.JSON.encode(buildObject());
2808 return new async.Future.value(stringResponse(200, h, resp)); 2791 return new async.Future.value(stringResponse(200, h, resp));
2809 }), true); 2792 }), true);
2810 res.compose(arg_request, arg_destinationBucket, arg_destinationObject, des tinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGe nerationMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, kmsKeyName: arg _kmsKeyName).then(unittest.expectAsync(((api.Object response) { 2793 res.compose(arg_request, arg_destinationBucket, arg_destinationObject, des tinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGe nerationMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch).then(unittest.e xpectAsync(((api.Object response) {
2811 checkObject(response); 2794 checkObject(response);
2812 }))); 2795 })));
2813 }); 2796 });
2814 2797
2815 unittest.test("method--copy", () { 2798 unittest.test("method--copy", () {
2816 // TODO: Implement tests for media upload; 2799 // TODO: Implement tests for media upload;
2817 // TODO: Implement tests for media download; 2800 // TODO: Implement tests for media download;
2818 2801
2819 var mock = new HttpServerMock(); 2802 var mock = new HttpServerMock();
2820 api.ObjectsResourceApi res = new api.StorageApi(mock).objects; 2803 api.ObjectsResourceApi res = new api.StorageApi(mock).objects;
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
3055 3038
3056 var mock = new HttpServerMock(); 3039 var mock = new HttpServerMock();
3057 api.ObjectsResourceApi res = new api.StorageApi(mock).objects; 3040 api.ObjectsResourceApi res = new api.StorageApi(mock).objects;
3058 var arg_request = buildObject(); 3041 var arg_request = buildObject();
3059 var arg_bucket = "foo"; 3042 var arg_bucket = "foo";
3060 var arg_contentEncoding = "foo"; 3043 var arg_contentEncoding = "foo";
3061 var arg_ifGenerationMatch = "foo"; 3044 var arg_ifGenerationMatch = "foo";
3062 var arg_ifGenerationNotMatch = "foo"; 3045 var arg_ifGenerationNotMatch = "foo";
3063 var arg_ifMetagenerationMatch = "foo"; 3046 var arg_ifMetagenerationMatch = "foo";
3064 var arg_ifMetagenerationNotMatch = "foo"; 3047 var arg_ifMetagenerationNotMatch = "foo";
3065 var arg_kmsKeyName = "foo";
3066 var arg_name = "foo"; 3048 var arg_name = "foo";
3067 var arg_predefinedAcl = "foo"; 3049 var arg_predefinedAcl = "foo";
3068 var arg_projection = "foo"; 3050 var arg_projection = "foo";
3069 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3051 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3070 var obj = new api.Object.fromJson(json); 3052 var obj = new api.Object.fromJson(json);
3071 checkObject(obj); 3053 checkObject(obj);
3072 3054
3073 var path = (req.url).path; 3055 var path = (req.url).path;
3074 var pathOffset = 0; 3056 var pathOffset = 0;
3075 var index; 3057 var index;
(...skipping 26 matching lines...) Expand all
3102 for (var part in query.split("&")) { 3084 for (var part in query.split("&")) {
3103 var keyvalue = part.split("="); 3085 var keyvalue = part.split("=");
3104 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3086 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3105 } 3087 }
3106 } 3088 }
3107 unittest.expect(queryMap["contentEncoding"].first, unittest.equals(arg_c ontentEncoding)); 3089 unittest.expect(queryMap["contentEncoding"].first, unittest.equals(arg_c ontentEncoding));
3108 unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg _ifGenerationMatch)); 3090 unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg _ifGenerationMatch));
3109 unittest.expect(queryMap["ifGenerationNotMatch"].first, unittest.equals( arg_ifGenerationNotMatch)); 3091 unittest.expect(queryMap["ifGenerationNotMatch"].first, unittest.equals( arg_ifGenerationNotMatch));
3110 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals (arg_ifMetagenerationMatch)); 3092 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals (arg_ifMetagenerationMatch));
3111 unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equ als(arg_ifMetagenerationNotMatch)); 3093 unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equ als(arg_ifMetagenerationNotMatch));
3112 unittest.expect(queryMap["kmsKeyName"].first, unittest.equals(arg_kmsKey Name));
3113 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); 3094 unittest.expect(queryMap["name"].first, unittest.equals(arg_name));
3114 unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_pre definedAcl)); 3095 unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_pre definedAcl));
3115 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec tion)); 3096 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec tion));
3116 3097
3117 3098
3118 var h = { 3099 var h = {
3119 "content-type" : "application/json; charset=utf-8", 3100 "content-type" : "application/json; charset=utf-8",
3120 }; 3101 };
3121 var resp = convert.JSON.encode(buildObject()); 3102 var resp = convert.JSON.encode(buildObject());
3122 return new async.Future.value(stringResponse(200, h, resp)); 3103 return new async.Future.value(stringResponse(200, h, resp));
3123 }), true); 3104 }), true);
3124 res.insert(arg_request, arg_bucket, contentEncoding: arg_contentEncoding, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGeneration NotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotM atch: arg_ifMetagenerationNotMatch, kmsKeyName: arg_kmsKeyName, name: arg_name, predefinedAcl: arg_predefinedAcl, projection: arg_projection).then(unittest.expe ctAsync(((api.Object response) { 3105 res.insert(arg_request, arg_bucket, contentEncoding: arg_contentEncoding, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGeneration NotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotM atch: arg_ifMetagenerationNotMatch, name: arg_name, predefinedAcl: arg_predefine dAcl, projection: arg_projection).then(unittest.expectAsync(((api.Object respons e) {
3125 checkObject(response); 3106 checkObject(response);
3126 }))); 3107 })));
3127 }); 3108 });
3128 3109
3129 unittest.test("method--list", () { 3110 unittest.test("method--list", () {
3130 3111
3131 var mock = new HttpServerMock(); 3112 var mock = new HttpServerMock();
3132 api.ObjectsResourceApi res = new api.StorageApi(mock).objects; 3113 api.ObjectsResourceApi res = new api.StorageApi(mock).objects;
3133 var arg_bucket = "foo"; 3114 var arg_bucket = "foo";
3134 var arg_delimiter = "foo"; 3115 var arg_delimiter = "foo";
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
3268 3249
3269 unittest.test("method--rewrite", () { 3250 unittest.test("method--rewrite", () {
3270 3251
3271 var mock = new HttpServerMock(); 3252 var mock = new HttpServerMock();
3272 api.ObjectsResourceApi res = new api.StorageApi(mock).objects; 3253 api.ObjectsResourceApi res = new api.StorageApi(mock).objects;
3273 var arg_request = buildObject(); 3254 var arg_request = buildObject();
3274 var arg_sourceBucket = "foo"; 3255 var arg_sourceBucket = "foo";
3275 var arg_sourceObject = "foo"; 3256 var arg_sourceObject = "foo";
3276 var arg_destinationBucket = "foo"; 3257 var arg_destinationBucket = "foo";
3277 var arg_destinationObject = "foo"; 3258 var arg_destinationObject = "foo";
3278 var arg_destinationKmsKeyName = "foo";
3279 var arg_destinationPredefinedAcl = "foo"; 3259 var arg_destinationPredefinedAcl = "foo";
3280 var arg_ifGenerationMatch = "foo"; 3260 var arg_ifGenerationMatch = "foo";
3281 var arg_ifGenerationNotMatch = "foo"; 3261 var arg_ifGenerationNotMatch = "foo";
3282 var arg_ifMetagenerationMatch = "foo"; 3262 var arg_ifMetagenerationMatch = "foo";
3283 var arg_ifMetagenerationNotMatch = "foo"; 3263 var arg_ifMetagenerationNotMatch = "foo";
3284 var arg_ifSourceGenerationMatch = "foo"; 3264 var arg_ifSourceGenerationMatch = "foo";
3285 var arg_ifSourceGenerationNotMatch = "foo"; 3265 var arg_ifSourceGenerationNotMatch = "foo";
3286 var arg_ifSourceMetagenerationMatch = "foo"; 3266 var arg_ifSourceMetagenerationMatch = "foo";
3287 var arg_ifSourceMetagenerationNotMatch = "foo"; 3267 var arg_ifSourceMetagenerationNotMatch = "foo";
3288 var arg_maxBytesRewrittenPerCall = "foo"; 3268 var arg_maxBytesRewrittenPerCall = "foo";
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
3337 if (n == "false") return false; 3317 if (n == "false") return false;
3338 if (n == null) return null; 3318 if (n == null) return null;
3339 throw new core.ArgumentError("Invalid boolean: $n"); 3319 throw new core.ArgumentError("Invalid boolean: $n");
3340 } 3320 }
3341 if (query.length > 0) { 3321 if (query.length > 0) {
3342 for (var part in query.split("&")) { 3322 for (var part in query.split("&")) {
3343 var keyvalue = part.split("="); 3323 var keyvalue = part.split("=");
3344 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3324 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3345 } 3325 }
3346 } 3326 }
3347 unittest.expect(queryMap["destinationKmsKeyName"].first, unittest.equals (arg_destinationKmsKeyName));
3348 unittest.expect(queryMap["destinationPredefinedAcl"].first, unittest.equ als(arg_destinationPredefinedAcl)); 3327 unittest.expect(queryMap["destinationPredefinedAcl"].first, unittest.equ als(arg_destinationPredefinedAcl));
3349 unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg _ifGenerationMatch)); 3328 unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg _ifGenerationMatch));
3350 unittest.expect(queryMap["ifGenerationNotMatch"].first, unittest.equals( arg_ifGenerationNotMatch)); 3329 unittest.expect(queryMap["ifGenerationNotMatch"].first, unittest.equals( arg_ifGenerationNotMatch));
3351 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals (arg_ifMetagenerationMatch)); 3330 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals (arg_ifMetagenerationMatch));
3352 unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equ als(arg_ifMetagenerationNotMatch)); 3331 unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equ als(arg_ifMetagenerationNotMatch));
3353 unittest.expect(queryMap["ifSourceGenerationMatch"].first, unittest.equa ls(arg_ifSourceGenerationMatch)); 3332 unittest.expect(queryMap["ifSourceGenerationMatch"].first, unittest.equa ls(arg_ifSourceGenerationMatch));
3354 unittest.expect(queryMap["ifSourceGenerationNotMatch"].first, unittest.e quals(arg_ifSourceGenerationNotMatch)); 3333 unittest.expect(queryMap["ifSourceGenerationNotMatch"].first, unittest.e quals(arg_ifSourceGenerationNotMatch));
3355 unittest.expect(queryMap["ifSourceMetagenerationMatch"].first, unittest. equals(arg_ifSourceMetagenerationMatch)); 3334 unittest.expect(queryMap["ifSourceMetagenerationMatch"].first, unittest. equals(arg_ifSourceMetagenerationMatch));
3356 unittest.expect(queryMap["ifSourceMetagenerationNotMatch"].first, unitte st.equals(arg_ifSourceMetagenerationNotMatch)); 3335 unittest.expect(queryMap["ifSourceMetagenerationNotMatch"].first, unitte st.equals(arg_ifSourceMetagenerationNotMatch));
3357 unittest.expect(queryMap["maxBytesRewrittenPerCall"].first, unittest.equ als(arg_maxBytesRewrittenPerCall)); 3336 unittest.expect(queryMap["maxBytesRewrittenPerCall"].first, unittest.equ als(arg_maxBytesRewrittenPerCall));
3358 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec tion)); 3337 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec tion));
3359 unittest.expect(queryMap["rewriteToken"].first, unittest.equals(arg_rewr iteToken)); 3338 unittest.expect(queryMap["rewriteToken"].first, unittest.equals(arg_rewr iteToken));
3360 unittest.expect(queryMap["sourceGeneration"].first, unittest.equals(arg_ sourceGeneration)); 3339 unittest.expect(queryMap["sourceGeneration"].first, unittest.equals(arg_ sourceGeneration));
3361 3340
3362 3341
3363 var h = { 3342 var h = {
3364 "content-type" : "application/json; charset=utf-8", 3343 "content-type" : "application/json; charset=utf-8",
3365 }; 3344 };
3366 var resp = convert.JSON.encode(buildRewriteResponse()); 3345 var resp = convert.JSON.encode(buildRewriteResponse());
3367 return new async.Future.value(stringResponse(200, h, resp)); 3346 return new async.Future.value(stringResponse(200, h, resp));
3368 }), true); 3347 }), true);
3369 res.rewrite(arg_request, arg_sourceBucket, arg_sourceObject, arg_destinati onBucket, arg_destinationObject, destinationKmsKeyName: arg_destinationKmsKeyNam e, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: ar g_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagener ationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagener ationNotMatch, ifSourceGenerationMatch: arg_ifSourceGenerationMatch, ifSourceGen erationNotMatch: arg_ifSourceGenerationNotMatch, ifSourceMetagenerationMatch: ar g_ifSourceMetagenerationMatch, ifSourceMetagenerationNotMatch: arg_ifSourceMetag enerationNotMatch, maxBytesRewrittenPerCall: arg_maxBytesRewrittenPerCall, proje ction: arg_projection, rewriteToken: arg_rewriteToken, sourceGeneration: arg_sou rceGeneration).then(unittest.expectAsync(((api.RewriteResponse response) { 3348 res.rewrite(arg_request, arg_sourceBucket, arg_sourceObject, arg_destinati onBucket, arg_destinationObject, destinationPredefinedAcl: arg_destinationPredef inedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifG enerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagener ationNotMatch: arg_ifMetagenerationNotMatch, ifSourceGenerationMatch: arg_ifSour ceGenerationMatch, ifSourceGenerationNotMatch: arg_ifSourceGenerationNotMatch, i fSourceMetagenerationMatch: arg_ifSourceMetagenerationMatch, ifSourceMetagenerat ionNotMatch: arg_ifSourceMetagenerationNotMatch, maxBytesRewrittenPerCall: arg_m axBytesRewrittenPerCall, projection: arg_projection, rewriteToken: arg_rewriteTo ken, sourceGeneration: arg_sourceGeneration).then(unittest.expectAsync(((api.Rew riteResponse response) {
3370 checkRewriteResponse(response); 3349 checkRewriteResponse(response);
3371 }))); 3350 })));
3372 }); 3351 });
3373 3352
3374 unittest.test("method--update", () { 3353 unittest.test("method--update", () {
3375 // TODO: Implement tests for media upload; 3354 // TODO: Implement tests for media upload;
3376 // TODO: Implement tests for media download; 3355 // TODO: Implement tests for media download;
3377 3356
3378 var mock = new HttpServerMock(); 3357 var mock = new HttpServerMock();
3379 api.ObjectsResourceApi res = new api.StorageApi(mock).objects; 3358 api.ObjectsResourceApi res = new api.StorageApi(mock).objects;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
3515 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) { 3494 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) {
3516 checkChannel(response); 3495 checkChannel(response);
3517 }))); 3496 })));
3518 }); 3497 });
3519 3498
3520 }); 3499 });
3521 3500
3522 3501
3523 } 3502 }
3524 3503
OLDNEW
« no previous file with comments | « generated/googleapis/test/sheets/v4_test.dart ('k') | generated/googleapis/test/storagetransfer/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698