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

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

Issue 733093002: Api roll 6: 2014-11-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 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.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 checkSeats(o.seats); 277 checkSeats(o.seats);
278 unittest.expect(o.skuId, unittest.equals('foo')); 278 unittest.expect(o.skuId, unittest.equals('foo'));
279 unittest.expect(o.status, unittest.equals('foo')); 279 unittest.expect(o.status, unittest.equals('foo'));
280 unittest.expect(o.subscriptionId, unittest.equals('foo')); 280 unittest.expect(o.subscriptionId, unittest.equals('foo'));
281 checkSubscriptionTransferInfo(o.transferInfo); 281 checkSubscriptionTransferInfo(o.transferInfo);
282 checkSubscriptionTrialSettings(o.trialSettings); 282 checkSubscriptionTrialSettings(o.trialSettings);
283 } 283 }
284 buildCounterSubscription--; 284 buildCounterSubscription--;
285 } 285 }
286 286
287 buildUnnamed1029() { 287 buildUnnamed1023() {
288 var o = new core.List<api.Subscription>(); 288 var o = new core.List<api.Subscription>();
289 o.add(buildSubscription()); 289 o.add(buildSubscription());
290 o.add(buildSubscription()); 290 o.add(buildSubscription());
291 return o; 291 return o;
292 } 292 }
293 293
294 checkUnnamed1029(core.List<api.Subscription> o) { 294 checkUnnamed1023(core.List<api.Subscription> o) {
295 unittest.expect(o, unittest.hasLength(2)); 295 unittest.expect(o, unittest.hasLength(2));
296 checkSubscription(o[0]); 296 checkSubscription(o[0]);
297 checkSubscription(o[1]); 297 checkSubscription(o[1]);
298 } 298 }
299 299
300 core.int buildCounterSubscriptions = 0; 300 core.int buildCounterSubscriptions = 0;
301 buildSubscriptions() { 301 buildSubscriptions() {
302 var o = new api.Subscriptions(); 302 var o = new api.Subscriptions();
303 buildCounterSubscriptions++; 303 buildCounterSubscriptions++;
304 if (buildCounterSubscriptions < 3) { 304 if (buildCounterSubscriptions < 3) {
305 o.kind = "foo"; 305 o.kind = "foo";
306 o.nextPageToken = "foo"; 306 o.nextPageToken = "foo";
307 o.subscriptions = buildUnnamed1029(); 307 o.subscriptions = buildUnnamed1023();
308 } 308 }
309 buildCounterSubscriptions--; 309 buildCounterSubscriptions--;
310 return o; 310 return o;
311 } 311 }
312 312
313 checkSubscriptions(api.Subscriptions o) { 313 checkSubscriptions(api.Subscriptions o) {
314 buildCounterSubscriptions++; 314 buildCounterSubscriptions++;
315 if (buildCounterSubscriptions < 3) { 315 if (buildCounterSubscriptions < 3) {
316 unittest.expect(o.kind, unittest.equals('foo')); 316 unittest.expect(o.kind, unittest.equals('foo'));
317 unittest.expect(o.nextPageToken, unittest.equals('foo')); 317 unittest.expect(o.nextPageToken, unittest.equals('foo'));
318 checkUnnamed1029(o.subscriptions); 318 checkUnnamed1023(o.subscriptions);
319 } 319 }
320 buildCounterSubscriptions--; 320 buildCounterSubscriptions--;
321 } 321 }
322 322
323 323
324 main() { 324 main() {
325 unittest.group("obj-schema-Address", () { 325 unittest.group("obj-schema-Address", () {
326 unittest.test("to-json--from-json", () { 326 unittest.test("to-json--from-json", () {
327 var o = buildAddress(); 327 var o = buildAddress();
328 var od = new api.Address.fromJson(o.toJson()); 328 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) { 1236 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync( ((api.Subscription response) {
1237 checkSubscription(response); 1237 checkSubscription(response);
1238 }))); 1238 })));
1239 }); 1239 });
1240 1240
1241 }); 1241 });
1242 1242
1243 1243
1244 } 1244 }
1245 1245
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