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

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

Issue 635343003: Api roll 3: 2014-10-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Updated CHANGELOG.md for the googleapis package Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 checkSeats(o.seats); 275 checkSeats(o.seats);
276 unittest.expect(o.skuId, unittest.equals('foo')); 276 unittest.expect(o.skuId, unittest.equals('foo'));
277 unittest.expect(o.status, unittest.equals('foo')); 277 unittest.expect(o.status, unittest.equals('foo'));
278 unittest.expect(o.subscriptionId, unittest.equals('foo')); 278 unittest.expect(o.subscriptionId, unittest.equals('foo'));
279 checkSubscriptionTransferInfo(o.transferInfo); 279 checkSubscriptionTransferInfo(o.transferInfo);
280 checkSubscriptionTrialSettings(o.trialSettings); 280 checkSubscriptionTrialSettings(o.trialSettings);
281 } 281 }
282 buildCounterSubscription--; 282 buildCounterSubscription--;
283 } 283 }
284 284
285 buildUnnamed655() { 285 buildUnnamed629() {
286 var o = new core.List<api.Subscription>(); 286 var o = new core.List<api.Subscription>();
287 o.add(buildSubscription()); 287 o.add(buildSubscription());
288 o.add(buildSubscription()); 288 o.add(buildSubscription());
289 return o; 289 return o;
290 } 290 }
291 291
292 checkUnnamed655(core.List<api.Subscription> o) { 292 checkUnnamed629(core.List<api.Subscription> o) {
293 unittest.expect(o, unittest.hasLength(2)); 293 unittest.expect(o, unittest.hasLength(2));
294 checkSubscription(o[0]); 294 checkSubscription(o[0]);
295 checkSubscription(o[1]); 295 checkSubscription(o[1]);
296 } 296 }
297 297
298 core.int buildCounterSubscriptions = 0; 298 core.int buildCounterSubscriptions = 0;
299 buildSubscriptions() { 299 buildSubscriptions() {
300 var o = new api.Subscriptions(); 300 var o = new api.Subscriptions();
301 buildCounterSubscriptions++; 301 buildCounterSubscriptions++;
302 if (buildCounterSubscriptions < 3) { 302 if (buildCounterSubscriptions < 3) {
303 o.kind = "foo"; 303 o.kind = "foo";
304 o.nextPageToken = "foo"; 304 o.nextPageToken = "foo";
305 o.subscriptions = buildUnnamed655(); 305 o.subscriptions = buildUnnamed629();
306 } 306 }
307 buildCounterSubscriptions--; 307 buildCounterSubscriptions--;
308 return o; 308 return o;
309 } 309 }
310 310
311 checkSubscriptions(api.Subscriptions o) { 311 checkSubscriptions(api.Subscriptions o) {
312 buildCounterSubscriptions++; 312 buildCounterSubscriptions++;
313 if (buildCounterSubscriptions < 3) { 313 if (buildCounterSubscriptions < 3) {
314 unittest.expect(o.kind, unittest.equals('foo')); 314 unittest.expect(o.kind, unittest.equals('foo'));
315 unittest.expect(o.nextPageToken, unittest.equals('foo')); 315 unittest.expect(o.nextPageToken, unittest.equals('foo'));
316 checkUnnamed655(o.subscriptions); 316 checkUnnamed629(o.subscriptions);
317 } 317 }
318 buildCounterSubscriptions--; 318 buildCounterSubscriptions--;
319 } 319 }
320 320
321 321
322 main() { 322 main() {
323 unittest.group("obj-schema-Address", () { 323 unittest.group("obj-schema-Address", () {
324 unittest.test("to-json--from-json", () { 324 unittest.test("to-json--from-json", () {
325 var o = buildAddress(); 325 var o = buildAddress();
326 var od = new api.Address.fromJson(o.toJson()); 326 var od = new api.Address.fromJson(o.toJson());
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 res.startPaidService(arg_customerId, arg_subscriptionId).then(unittest.exp ectAsync(((api.Subscription response) { 1112 res.startPaidService(arg_customerId, arg_subscriptionId).then(unittest.exp ectAsync(((api.Subscription response) {
1113 checkSubscription(response); 1113 checkSubscription(response);
1114 }))); 1114 })));
1115 }); 1115 });
1116 1116
1117 }); 1117 });
1118 1118
1119 1119
1120 } 1120 }
1121 1121
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