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

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

Issue 663113002: Api roll 4: 2014-10-20 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: 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.appstate.v1.test; 1 library googleapis.appstate.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 23 matching lines...) Expand all
34 buildCounterGetResponse++; 34 buildCounterGetResponse++;
35 if (buildCounterGetResponse < 3) { 35 if (buildCounterGetResponse < 3) {
36 unittest.expect(o.currentStateVersion, unittest.equals('foo')); 36 unittest.expect(o.currentStateVersion, unittest.equals('foo'));
37 unittest.expect(o.data, unittest.equals('foo')); 37 unittest.expect(o.data, unittest.equals('foo'));
38 unittest.expect(o.kind, unittest.equals('foo')); 38 unittest.expect(o.kind, unittest.equals('foo'));
39 unittest.expect(o.stateKey, unittest.equals(42)); 39 unittest.expect(o.stateKey, unittest.equals(42));
40 } 40 }
41 buildCounterGetResponse--; 41 buildCounterGetResponse--;
42 } 42 }
43 43
44 buildUnnamed736() { 44 buildUnnamed1019() {
45 var o = new core.List<api.GetResponse>(); 45 var o = new core.List<api.GetResponse>();
46 o.add(buildGetResponse()); 46 o.add(buildGetResponse());
47 o.add(buildGetResponse()); 47 o.add(buildGetResponse());
48 return o; 48 return o;
49 } 49 }
50 50
51 checkUnnamed736(core.List<api.GetResponse> o) { 51 checkUnnamed1019(core.List<api.GetResponse> o) {
52 unittest.expect(o, unittest.hasLength(2)); 52 unittest.expect(o, unittest.hasLength(2));
53 checkGetResponse(o[0]); 53 checkGetResponse(o[0]);
54 checkGetResponse(o[1]); 54 checkGetResponse(o[1]);
55 } 55 }
56 56
57 core.int buildCounterListResponse = 0; 57 core.int buildCounterListResponse = 0;
58 buildListResponse() { 58 buildListResponse() {
59 var o = new api.ListResponse(); 59 var o = new api.ListResponse();
60 buildCounterListResponse++; 60 buildCounterListResponse++;
61 if (buildCounterListResponse < 3) { 61 if (buildCounterListResponse < 3) {
62 o.items = buildUnnamed736(); 62 o.items = buildUnnamed1019();
63 o.kind = "foo"; 63 o.kind = "foo";
64 o.maximumKeyCount = 42; 64 o.maximumKeyCount = 42;
65 } 65 }
66 buildCounterListResponse--; 66 buildCounterListResponse--;
67 return o; 67 return o;
68 } 68 }
69 69
70 checkListResponse(api.ListResponse o) { 70 checkListResponse(api.ListResponse o) {
71 buildCounterListResponse++; 71 buildCounterListResponse++;
72 if (buildCounterListResponse < 3) { 72 if (buildCounterListResponse < 3) {
73 checkUnnamed736(o.items); 73 checkUnnamed1019(o.items);
74 unittest.expect(o.kind, unittest.equals('foo')); 74 unittest.expect(o.kind, unittest.equals('foo'));
75 unittest.expect(o.maximumKeyCount, unittest.equals(42)); 75 unittest.expect(o.maximumKeyCount, unittest.equals(42));
76 } 76 }
77 buildCounterListResponse--; 77 buildCounterListResponse--;
78 } 78 }
79 79
80 core.int buildCounterUpdateRequest = 0; 80 core.int buildCounterUpdateRequest = 0;
81 buildUpdateRequest() { 81 buildUpdateRequest() {
82 var o = new api.UpdateRequest(); 82 var o = new api.UpdateRequest();
83 buildCounterUpdateRequest++; 83 buildCounterUpdateRequest++;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 res.update(arg_request, arg_stateKey, currentStateVersion: arg_currentStat eVersion).then(unittest.expectAsync(((api.WriteResult response) { 411 res.update(arg_request, arg_stateKey, currentStateVersion: arg_currentStat eVersion).then(unittest.expectAsync(((api.WriteResult response) {
412 checkWriteResult(response); 412 checkWriteResult(response);
413 }))); 413 })));
414 }); 414 });
415 415
416 }); 416 });
417 417
418 418
419 } 419 }
420 420
OLDNEW
« no previous file with comments | « generated/googleapis/test/appsactivity/v1_test.dart ('k') | generated/googleapis/test/bigquery/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698