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

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

Issue 770773002: Api roll 7: 2014-12-01 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years 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.reseller.v1.test; 1 library googleapis.reseller.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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 unittest.expect(o.trialEndTime, unittest.equals('foo')); 239 unittest.expect(o.trialEndTime, unittest.equals('foo'));
240 } 240 }
241 buildCounterSubscriptionTrialSettings--; 241 buildCounterSubscriptionTrialSettings--;
242 } 242 }
243 243
244 core.int buildCounterSubscription = 0; 244 core.int buildCounterSubscription = 0;
245 buildSubscription() { 245 buildSubscription() {
246 var o = new api.Subscription(); 246 var o = new api.Subscription();
247 buildCounterSubscription++; 247 buildCounterSubscription++;
248 if (buildCounterSubscription < 3) { 248 if (buildCounterSubscription < 3) {
249 o.billingMethod = "foo";
249 o.creationTime = "foo"; 250 o.creationTime = "foo";
250 o.customerId = "foo"; 251 o.customerId = "foo";
251 o.kind = "foo"; 252 o.kind = "foo";
252 o.plan = buildSubscriptionPlan(); 253 o.plan = buildSubscriptionPlan();
253 o.purchaseOrderId = "foo"; 254 o.purchaseOrderId = "foo";
254 o.renewalSettings = buildRenewalSettings(); 255 o.renewalSettings = buildRenewalSettings();
255 o.resourceUiUrl = "foo"; 256 o.resourceUiUrl = "foo";
256 o.seats = buildSeats(); 257 o.seats = buildSeats();
257 o.skuId = "foo"; 258 o.skuId = "foo";
258 o.status = "foo"; 259 o.status = "foo";
259 o.subscriptionId = "foo"; 260 o.subscriptionId = "foo";
260 o.transferInfo = buildSubscriptionTransferInfo(); 261 o.transferInfo = buildSubscriptionTransferInfo();
261 o.trialSettings = buildSubscriptionTrialSettings(); 262 o.trialSettings = buildSubscriptionTrialSettings();
262 } 263 }
263 buildCounterSubscription--; 264 buildCounterSubscription--;
264 return o; 265 return o;
265 } 266 }
266 267
267 checkSubscription(api.Subscription o) { 268 checkSubscription(api.Subscription o) {
268 buildCounterSubscription++; 269 buildCounterSubscription++;
269 if (buildCounterSubscription < 3) { 270 if (buildCounterSubscription < 3) {
271 unittest.expect(o.billingMethod, unittest.equals('foo'));
270 unittest.expect(o.creationTime, unittest.equals('foo')); 272 unittest.expect(o.creationTime, unittest.equals('foo'));
271 unittest.expect(o.customerId, unittest.equals('foo')); 273 unittest.expect(o.customerId, unittest.equals('foo'));
272 unittest.expect(o.kind, unittest.equals('foo')); 274 unittest.expect(o.kind, unittest.equals('foo'));
273 checkSubscriptionPlan(o.plan); 275 checkSubscriptionPlan(o.plan);
274 unittest.expect(o.purchaseOrderId, unittest.equals('foo')); 276 unittest.expect(o.purchaseOrderId, unittest.equals('foo'));
275 checkRenewalSettings(o.renewalSettings); 277 checkRenewalSettings(o.renewalSettings);
276 unittest.expect(o.resourceUiUrl, unittest.equals('foo')); 278 unittest.expect(o.resourceUiUrl, unittest.equals('foo'));
277 checkSeats(o.seats); 279 checkSeats(o.seats);
278 unittest.expect(o.skuId, unittest.equals('foo')); 280 unittest.expect(o.skuId, unittest.equals('foo'));
279 unittest.expect(o.status, unittest.equals('foo')); 281 unittest.expect(o.status, unittest.equals('foo'));
280 unittest.expect(o.subscriptionId, unittest.equals('foo')); 282 unittest.expect(o.subscriptionId, unittest.equals('foo'));
281 checkSubscriptionTransferInfo(o.transferInfo); 283 checkSubscriptionTransferInfo(o.transferInfo);
282 checkSubscriptionTrialSettings(o.trialSettings); 284 checkSubscriptionTrialSettings(o.trialSettings);
283 } 285 }
284 buildCounterSubscription--; 286 buildCounterSubscription--;
285 } 287 }
286 288
287 buildUnnamed1023() { 289 buildUnnamed1052() {
288 var o = new core.List<api.Subscription>(); 290 var o = new core.List<api.Subscription>();
289 o.add(buildSubscription()); 291 o.add(buildSubscription());
290 o.add(buildSubscription()); 292 o.add(buildSubscription());
291 return o; 293 return o;
292 } 294 }
293 295
294 checkUnnamed1023(core.List<api.Subscription> o) { 296 checkUnnamed1052(core.List<api.Subscription> o) {
295 unittest.expect(o, unittest.hasLength(2)); 297 unittest.expect(o, unittest.hasLength(2));
296 checkSubscription(o[0]); 298 checkSubscription(o[0]);
297 checkSubscription(o[1]); 299 checkSubscription(o[1]);
298 } 300 }
299 301
300 core.int buildCounterSubscriptions = 0; 302 core.int buildCounterSubscriptions = 0;
301 buildSubscriptions() { 303 buildSubscriptions() {
302 var o = new api.Subscriptions(); 304 var o = new api.Subscriptions();
303 buildCounterSubscriptions++; 305 buildCounterSubscriptions++;
304 if (buildCounterSubscriptions < 3) { 306 if (buildCounterSubscriptions < 3) {
305 o.kind = "foo"; 307 o.kind = "foo";
306 o.nextPageToken = "foo"; 308 o.nextPageToken = "foo";
307 o.subscriptions = buildUnnamed1023(); 309 o.subscriptions = buildUnnamed1052();
308 } 310 }
309 buildCounterSubscriptions--; 311 buildCounterSubscriptions--;
310 return o; 312 return o;
311 } 313 }
312 314
313 checkSubscriptions(api.Subscriptions o) { 315 checkSubscriptions(api.Subscriptions o) {
314 buildCounterSubscriptions++; 316 buildCounterSubscriptions++;
315 if (buildCounterSubscriptions < 3) { 317 if (buildCounterSubscriptions < 3) {
316 unittest.expect(o.kind, unittest.equals('foo')); 318 unittest.expect(o.kind, unittest.equals('foo'));
317 unittest.expect(o.nextPageToken, unittest.equals('foo')); 319 unittest.expect(o.nextPageToken, unittest.equals('foo'));
318 checkUnnamed1023(o.subscriptions); 320 checkUnnamed1052(o.subscriptions);
319 } 321 }
320 buildCounterSubscriptions--; 322 buildCounterSubscriptions--;
321 } 323 }
322 324
323 325
324 main() { 326 main() {
325 unittest.group("obj-schema-Address", () { 327 unittest.group("obj-schema-Address", () {
326 unittest.test("to-json--from-json", () { 328 unittest.test("to-json--from-json", () {
327 var o = buildAddress(); 329 var o = buildAddress();
328 var od = new api.Address.fromJson(o.toJson()); 330 var od = new api.Address.fromJson(o.toJson());
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync( ((api.Subscription response) { 1238 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync( ((api.Subscription response) {
1237 checkSubscription(response); 1239 checkSubscription(response);
1238 }))); 1240 })));
1239 }); 1241 });
1240 1242
1241 }); 1243 });
1242 1244
1243 1245
1244 } 1246 }
1245 1247
OLDNEW
« no previous file with comments | « generated/googleapis/test/qpxexpress/v1_test.dart ('k') | generated/googleapis/test/siteverification/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698