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

Side by Side Diff: generated/googleapis_beta/test/replicapoolupdater/v1beta1_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_beta.replicapoolupdater.v1beta1.test; 1 library googleapis_beta.replicapoolupdater.v1beta1.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 checkInstanceUpdate(api.InstanceUpdate o) { 50 checkInstanceUpdate(api.InstanceUpdate o) {
51 buildCounterInstanceUpdate++; 51 buildCounterInstanceUpdate++;
52 if (buildCounterInstanceUpdate < 3) { 52 if (buildCounterInstanceUpdate < 3) {
53 unittest.expect(o.instanceName, unittest.equals('foo')); 53 unittest.expect(o.instanceName, unittest.equals('foo'));
54 unittest.expect(o.state, unittest.equals('foo')); 54 unittest.expect(o.state, unittest.equals('foo'));
55 } 55 }
56 buildCounterInstanceUpdate--; 56 buildCounterInstanceUpdate--;
57 } 57 }
58 58
59 buildUnnamed1278() { 59 buildUnnamed1402() {
60 var o = new core.List<api.InstanceUpdate>(); 60 var o = new core.List<api.InstanceUpdate>();
61 o.add(buildInstanceUpdate()); 61 o.add(buildInstanceUpdate());
62 o.add(buildInstanceUpdate()); 62 o.add(buildInstanceUpdate());
63 return o; 63 return o;
64 } 64 }
65 65
66 checkUnnamed1278(core.List<api.InstanceUpdate> o) { 66 checkUnnamed1402(core.List<api.InstanceUpdate> o) {
67 unittest.expect(o, unittest.hasLength(2)); 67 unittest.expect(o, unittest.hasLength(2));
68 checkInstanceUpdate(o[0]); 68 checkInstanceUpdate(o[0]);
69 checkInstanceUpdate(o[1]); 69 checkInstanceUpdate(o[1]);
70 } 70 }
71 71
72 core.int buildCounterUpdate = 0; 72 core.int buildCounterUpdate = 0;
73 buildUpdate() { 73 buildUpdate() {
74 var o = new api.Update(); 74 var o = new api.Update();
75 buildCounterUpdate++; 75 buildCounterUpdate++;
76 if (buildCounterUpdate < 3) { 76 if (buildCounterUpdate < 3) {
77 o.creationTimestamp = "foo";
77 o.details = "foo"; 78 o.details = "foo";
78 o.handle = "foo"; 79 o.handle = "foo";
79 o.instanceTemplate = "foo"; 80 o.instanceTemplate = "foo";
80 o.instanceUpdates = buildUnnamed1278(); 81 o.instanceUpdates = buildUnnamed1402();
81 o.kind = "foo"; 82 o.kind = "foo";
82 o.policy = buildUpdatePolicy(); 83 o.policy = buildUpdatePolicy();
83 o.selfLink = "foo"; 84 o.selfLink = "foo";
84 o.state = "foo"; 85 o.state = "foo";
85 o.targetState = "foo"; 86 o.targetState = "foo";
87 o.user = "foo";
86 } 88 }
87 buildCounterUpdate--; 89 buildCounterUpdate--;
88 return o; 90 return o;
89 } 91 }
90 92
91 checkUpdate(api.Update o) { 93 checkUpdate(api.Update o) {
92 buildCounterUpdate++; 94 buildCounterUpdate++;
93 if (buildCounterUpdate < 3) { 95 if (buildCounterUpdate < 3) {
96 unittest.expect(o.creationTimestamp, unittest.equals('foo'));
94 unittest.expect(o.details, unittest.equals('foo')); 97 unittest.expect(o.details, unittest.equals('foo'));
95 unittest.expect(o.handle, unittest.equals('foo')); 98 unittest.expect(o.handle, unittest.equals('foo'));
96 unittest.expect(o.instanceTemplate, unittest.equals('foo')); 99 unittest.expect(o.instanceTemplate, unittest.equals('foo'));
97 checkUnnamed1278(o.instanceUpdates); 100 checkUnnamed1402(o.instanceUpdates);
98 unittest.expect(o.kind, unittest.equals('foo')); 101 unittest.expect(o.kind, unittest.equals('foo'));
99 checkUpdatePolicy(o.policy); 102 checkUpdatePolicy(o.policy);
100 unittest.expect(o.selfLink, unittest.equals('foo')); 103 unittest.expect(o.selfLink, unittest.equals('foo'));
101 unittest.expect(o.state, unittest.equals('foo')); 104 unittest.expect(o.state, unittest.equals('foo'));
102 unittest.expect(o.targetState, unittest.equals('foo')); 105 unittest.expect(o.targetState, unittest.equals('foo'));
106 unittest.expect(o.user, unittest.equals('foo'));
103 } 107 }
104 buildCounterUpdate--; 108 buildCounterUpdate--;
105 } 109 }
106 110
107 buildUnnamed1279() { 111 buildUnnamed1403() {
108 var o = new core.List<api.Update>(); 112 var o = new core.List<api.Update>();
109 o.add(buildUpdate()); 113 o.add(buildUpdate());
110 o.add(buildUpdate()); 114 o.add(buildUpdate());
111 return o; 115 return o;
112 } 116 }
113 117
114 checkUnnamed1279(core.List<api.Update> o) { 118 checkUnnamed1403(core.List<api.Update> o) {
115 unittest.expect(o, unittest.hasLength(2)); 119 unittest.expect(o, unittest.hasLength(2));
116 checkUpdate(o[0]); 120 checkUpdate(o[0]);
117 checkUpdate(o[1]); 121 checkUpdate(o[1]);
118 } 122 }
119 123
120 core.int buildCounterUpdateList = 0; 124 core.int buildCounterUpdateList = 0;
121 buildUpdateList() { 125 buildUpdateList() {
122 var o = new api.UpdateList(); 126 var o = new api.UpdateList();
123 buildCounterUpdateList++; 127 buildCounterUpdateList++;
124 if (buildCounterUpdateList < 3) { 128 if (buildCounterUpdateList < 3) {
125 o.items = buildUnnamed1279(); 129 o.items = buildUnnamed1403();
126 o.nextPageToken = "foo"; 130 o.nextPageToken = "foo";
127 } 131 }
128 buildCounterUpdateList--; 132 buildCounterUpdateList--;
129 return o; 133 return o;
130 } 134 }
131 135
132 checkUpdateList(api.UpdateList o) { 136 checkUpdateList(api.UpdateList o) {
133 buildCounterUpdateList++; 137 buildCounterUpdateList++;
134 if (buildCounterUpdateList < 3) { 138 if (buildCounterUpdateList < 3) {
135 checkUnnamed1279(o.items); 139 checkUnnamed1403(o.items);
136 unittest.expect(o.nextPageToken, unittest.equals('foo')); 140 unittest.expect(o.nextPageToken, unittest.equals('foo'));
137 } 141 }
138 buildCounterUpdateList--; 142 buildCounterUpdateList--;
139 } 143 }
140 144
141 core.int buildCounterUpdatePolicy = 0; 145 core.int buildCounterUpdatePolicy = 0;
142 buildUpdatePolicy() { 146 buildUpdatePolicy() {
143 var o = new api.UpdatePolicy(); 147 var o = new api.UpdatePolicy();
144 buildCounterUpdatePolicy++; 148 buildCounterUpdatePolicy++;
145 if (buildCounterUpdatePolicy < 3) { 149 if (buildCounterUpdatePolicy < 3) {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 return new async.Future.value(common_test.stringResponse(200, h, resp)); 552 return new async.Future.value(common_test.stringResponse(200, h, resp));
549 }), true); 553 }), true);
550 res.rollforward(arg_project, arg_zone, arg_instanceGroupManager, arg_updat e).then(unittest.expectAsync((_) {})); 554 res.rollforward(arg_project, arg_zone, arg_instanceGroupManager, arg_updat e).then(unittest.expectAsync((_) {}));
551 }); 555 });
552 556
553 }); 557 });
554 558
555 559
556 } 560 }
557 561
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698