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

Side by Side Diff: generated/googleapis/test/oauth2/v2_test.dart

Issue 904493003: API roll 11 v2: 2015-02-06 (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 10 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.oauth2.v2.test; 1 library googleapis.oauth2.v2.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 27 matching lines...) Expand all
38 unittest.expect(o.alg, unittest.equals('foo')); 38 unittest.expect(o.alg, unittest.equals('foo'));
39 unittest.expect(o.e, unittest.equals('foo')); 39 unittest.expect(o.e, unittest.equals('foo'));
40 unittest.expect(o.kid, unittest.equals('foo')); 40 unittest.expect(o.kid, unittest.equals('foo'));
41 unittest.expect(o.kty, unittest.equals('foo')); 41 unittest.expect(o.kty, unittest.equals('foo'));
42 unittest.expect(o.n, unittest.equals('foo')); 42 unittest.expect(o.n, unittest.equals('foo'));
43 unittest.expect(o.use, unittest.equals('foo')); 43 unittest.expect(o.use, unittest.equals('foo'));
44 } 44 }
45 buildCounterJwkKeys--; 45 buildCounterJwkKeys--;
46 } 46 }
47 47
48 buildUnnamed1231() { 48 buildUnnamed1234() {
49 var o = new core.List<api.JwkKeys>(); 49 var o = new core.List<api.JwkKeys>();
50 o.add(buildJwkKeys()); 50 o.add(buildJwkKeys());
51 o.add(buildJwkKeys()); 51 o.add(buildJwkKeys());
52 return o; 52 return o;
53 } 53 }
54 54
55 checkUnnamed1231(core.List<api.JwkKeys> o) { 55 checkUnnamed1234(core.List<api.JwkKeys> o) {
56 unittest.expect(o, unittest.hasLength(2)); 56 unittest.expect(o, unittest.hasLength(2));
57 checkJwkKeys(o[0]); 57 checkJwkKeys(o[0]);
58 checkJwkKeys(o[1]); 58 checkJwkKeys(o[1]);
59 } 59 }
60 60
61 core.int buildCounterJwk = 0; 61 core.int buildCounterJwk = 0;
62 buildJwk() { 62 buildJwk() {
63 var o = new api.Jwk(); 63 var o = new api.Jwk();
64 buildCounterJwk++; 64 buildCounterJwk++;
65 if (buildCounterJwk < 3) { 65 if (buildCounterJwk < 3) {
66 o.keys = buildUnnamed1231(); 66 o.keys = buildUnnamed1234();
67 } 67 }
68 buildCounterJwk--; 68 buildCounterJwk--;
69 return o; 69 return o;
70 } 70 }
71 71
72 checkJwk(api.Jwk o) { 72 checkJwk(api.Jwk o) {
73 buildCounterJwk++; 73 buildCounterJwk++;
74 if (buildCounterJwk < 3) { 74 if (buildCounterJwk < 3) {
75 checkUnnamed1231(o.keys); 75 checkUnnamed1234(o.keys);
76 } 76 }
77 buildCounterJwk--; 77 buildCounterJwk--;
78 } 78 }
79 79
80 core.int buildCounterTokeninfo = 0; 80 core.int buildCounterTokeninfo = 0;
81 buildTokeninfo() { 81 buildTokeninfo() {
82 var o = new api.Tokeninfo(); 82 var o = new api.Tokeninfo();
83 buildCounterTokeninfo++; 83 buildCounterTokeninfo++;
84 if (buildCounterTokeninfo < 3) { 84 if (buildCounterTokeninfo < 3) {
85 o.accessType = "foo"; 85 o.accessType = "foo";
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 res.get().then(unittest.expectAsync(((api.Userinfoplus response) { 370 res.get().then(unittest.expectAsync(((api.Userinfoplus response) {
371 checkUserinfoplus(response); 371 checkUserinfoplus(response);
372 }))); 372 })));
373 }); 373 });
374 374
375 }); 375 });
376 376
377 377
378 } 378 }
379 379
OLDNEW
« no previous file with comments | « generated/googleapis/test/mirror/v1_test.dart ('k') | generated/googleapis/test/pagespeedonline/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698