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

Side by Side Diff: generated/googleapis_beta/test/taskqueue/v1beta2_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
« no previous file with comments | « generated/googleapis_beta/test/sqladmin/v1beta3_test.dart ('k') | pubspec.lock » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library googleapis_beta.taskqueue.v1beta2.test; 1 library googleapis_beta.taskqueue.v1beta2.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 unittest.expect(o.kind, unittest.equals('foo')); 42 unittest.expect(o.kind, unittest.equals('foo'));
43 unittest.expect(o.leaseTimestamp, unittest.equals('foo')); 43 unittest.expect(o.leaseTimestamp, unittest.equals('foo'));
44 unittest.expect(o.payloadBase64, unittest.equals('foo')); 44 unittest.expect(o.payloadBase64, unittest.equals('foo'));
45 unittest.expect(o.queueName, unittest.equals('foo')); 45 unittest.expect(o.queueName, unittest.equals('foo'));
46 unittest.expect(o.retryCount, unittest.equals(42)); 46 unittest.expect(o.retryCount, unittest.equals(42));
47 unittest.expect(o.tag, unittest.equals('foo')); 47 unittest.expect(o.tag, unittest.equals('foo'));
48 } 48 }
49 buildCounterTask--; 49 buildCounterTask--;
50 } 50 }
51 51
52 buildUnnamed1280() { 52 buildUnnamed1448() {
53 var o = new core.List<core.String>(); 53 var o = new core.List<core.String>();
54 o.add("foo"); 54 o.add("foo");
55 o.add("foo"); 55 o.add("foo");
56 return o; 56 return o;
57 } 57 }
58 58
59 checkUnnamed1280(core.List<core.String> o) { 59 checkUnnamed1448(core.List<core.String> o) {
60 unittest.expect(o, unittest.hasLength(2)); 60 unittest.expect(o, unittest.hasLength(2));
61 unittest.expect(o[0], unittest.equals('foo')); 61 unittest.expect(o[0], unittest.equals('foo'));
62 unittest.expect(o[1], unittest.equals('foo')); 62 unittest.expect(o[1], unittest.equals('foo'));
63 } 63 }
64 64
65 buildUnnamed1281() { 65 buildUnnamed1449() {
66 var o = new core.List<core.String>(); 66 var o = new core.List<core.String>();
67 o.add("foo"); 67 o.add("foo");
68 o.add("foo"); 68 o.add("foo");
69 return o; 69 return o;
70 } 70 }
71 71
72 checkUnnamed1281(core.List<core.String> o) { 72 checkUnnamed1449(core.List<core.String> o) {
73 unittest.expect(o, unittest.hasLength(2)); 73 unittest.expect(o, unittest.hasLength(2));
74 unittest.expect(o[0], unittest.equals('foo')); 74 unittest.expect(o[0], unittest.equals('foo'));
75 unittest.expect(o[1], unittest.equals('foo')); 75 unittest.expect(o[1], unittest.equals('foo'));
76 } 76 }
77 77
78 buildUnnamed1282() { 78 buildUnnamed1450() {
79 var o = new core.List<core.String>(); 79 var o = new core.List<core.String>();
80 o.add("foo"); 80 o.add("foo");
81 o.add("foo"); 81 o.add("foo");
82 return o; 82 return o;
83 } 83 }
84 84
85 checkUnnamed1282(core.List<core.String> o) { 85 checkUnnamed1450(core.List<core.String> o) {
86 unittest.expect(o, unittest.hasLength(2)); 86 unittest.expect(o, unittest.hasLength(2));
87 unittest.expect(o[0], unittest.equals('foo')); 87 unittest.expect(o[0], unittest.equals('foo'));
88 unittest.expect(o[1], unittest.equals('foo')); 88 unittest.expect(o[1], unittest.equals('foo'));
89 } 89 }
90 90
91 core.int buildCounterTaskQueueAcl = 0; 91 core.int buildCounterTaskQueueAcl = 0;
92 buildTaskQueueAcl() { 92 buildTaskQueueAcl() {
93 var o = new api.TaskQueueAcl(); 93 var o = new api.TaskQueueAcl();
94 buildCounterTaskQueueAcl++; 94 buildCounterTaskQueueAcl++;
95 if (buildCounterTaskQueueAcl < 3) { 95 if (buildCounterTaskQueueAcl < 3) {
96 o.adminEmails = buildUnnamed1280(); 96 o.adminEmails = buildUnnamed1448();
97 o.consumerEmails = buildUnnamed1281(); 97 o.consumerEmails = buildUnnamed1449();
98 o.producerEmails = buildUnnamed1282(); 98 o.producerEmails = buildUnnamed1450();
99 } 99 }
100 buildCounterTaskQueueAcl--; 100 buildCounterTaskQueueAcl--;
101 return o; 101 return o;
102 } 102 }
103 103
104 checkTaskQueueAcl(api.TaskQueueAcl o) { 104 checkTaskQueueAcl(api.TaskQueueAcl o) {
105 buildCounterTaskQueueAcl++; 105 buildCounterTaskQueueAcl++;
106 if (buildCounterTaskQueueAcl < 3) { 106 if (buildCounterTaskQueueAcl < 3) {
107 checkUnnamed1280(o.adminEmails); 107 checkUnnamed1448(o.adminEmails);
108 checkUnnamed1281(o.consumerEmails); 108 checkUnnamed1449(o.consumerEmails);
109 checkUnnamed1282(o.producerEmails); 109 checkUnnamed1450(o.producerEmails);
110 } 110 }
111 buildCounterTaskQueueAcl--; 111 buildCounterTaskQueueAcl--;
112 } 112 }
113 113
114 core.int buildCounterTaskQueueStats = 0; 114 core.int buildCounterTaskQueueStats = 0;
115 buildTaskQueueStats() { 115 buildTaskQueueStats() {
116 var o = new api.TaskQueueStats(); 116 var o = new api.TaskQueueStats();
117 buildCounterTaskQueueStats++; 117 buildCounterTaskQueueStats++;
118 if (buildCounterTaskQueueStats < 3) { 118 if (buildCounterTaskQueueStats < 3) {
119 o.leasedLastHour = "foo"; 119 o.leasedLastHour = "foo";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 if (buildCounterTaskQueue < 3) { 156 if (buildCounterTaskQueue < 3) {
157 checkTaskQueueAcl(o.acl); 157 checkTaskQueueAcl(o.acl);
158 unittest.expect(o.id, unittest.equals('foo')); 158 unittest.expect(o.id, unittest.equals('foo'));
159 unittest.expect(o.kind, unittest.equals('foo')); 159 unittest.expect(o.kind, unittest.equals('foo'));
160 unittest.expect(o.maxLeases, unittest.equals(42)); 160 unittest.expect(o.maxLeases, unittest.equals(42));
161 checkTaskQueueStats(o.stats); 161 checkTaskQueueStats(o.stats);
162 } 162 }
163 buildCounterTaskQueue--; 163 buildCounterTaskQueue--;
164 } 164 }
165 165
166 buildUnnamed1283() { 166 buildUnnamed1451() {
167 var o = new core.List<api.Task>(); 167 var o = new core.List<api.Task>();
168 o.add(buildTask()); 168 o.add(buildTask());
169 o.add(buildTask()); 169 o.add(buildTask());
170 return o; 170 return o;
171 } 171 }
172 172
173 checkUnnamed1283(core.List<api.Task> o) { 173 checkUnnamed1451(core.List<api.Task> o) {
174 unittest.expect(o, unittest.hasLength(2)); 174 unittest.expect(o, unittest.hasLength(2));
175 checkTask(o[0]); 175 checkTask(o[0]);
176 checkTask(o[1]); 176 checkTask(o[1]);
177 } 177 }
178 178
179 core.int buildCounterTasks = 0; 179 core.int buildCounterTasks = 0;
180 buildTasks() { 180 buildTasks() {
181 var o = new api.Tasks(); 181 var o = new api.Tasks();
182 buildCounterTasks++; 182 buildCounterTasks++;
183 if (buildCounterTasks < 3) { 183 if (buildCounterTasks < 3) {
184 o.items = buildUnnamed1283(); 184 o.items = buildUnnamed1451();
185 o.kind = "foo"; 185 o.kind = "foo";
186 } 186 }
187 buildCounterTasks--; 187 buildCounterTasks--;
188 return o; 188 return o;
189 } 189 }
190 190
191 checkTasks(api.Tasks o) { 191 checkTasks(api.Tasks o) {
192 buildCounterTasks++; 192 buildCounterTasks++;
193 if (buildCounterTasks < 3) { 193 if (buildCounterTasks < 3) {
194 checkUnnamed1283(o.items); 194 checkUnnamed1451(o.items);
195 unittest.expect(o.kind, unittest.equals('foo')); 195 unittest.expect(o.kind, unittest.equals('foo'));
196 } 196 }
197 buildCounterTasks--; 197 buildCounterTasks--;
198 } 198 }
199 199
200 buildUnnamed1284() { 200 buildUnnamed1452() {
201 var o = new core.List<api.Task>(); 201 var o = new core.List<api.Task>();
202 o.add(buildTask()); 202 o.add(buildTask());
203 o.add(buildTask()); 203 o.add(buildTask());
204 return o; 204 return o;
205 } 205 }
206 206
207 checkUnnamed1284(core.List<api.Task> o) { 207 checkUnnamed1452(core.List<api.Task> o) {
208 unittest.expect(o, unittest.hasLength(2)); 208 unittest.expect(o, unittest.hasLength(2));
209 checkTask(o[0]); 209 checkTask(o[0]);
210 checkTask(o[1]); 210 checkTask(o[1]);
211 } 211 }
212 212
213 core.int buildCounterTasks2 = 0; 213 core.int buildCounterTasks2 = 0;
214 buildTasks2() { 214 buildTasks2() {
215 var o = new api.Tasks2(); 215 var o = new api.Tasks2();
216 buildCounterTasks2++; 216 buildCounterTasks2++;
217 if (buildCounterTasks2 < 3) { 217 if (buildCounterTasks2 < 3) {
218 o.items = buildUnnamed1284(); 218 o.items = buildUnnamed1452();
219 o.kind = "foo"; 219 o.kind = "foo";
220 } 220 }
221 buildCounterTasks2--; 221 buildCounterTasks2--;
222 return o; 222 return o;
223 } 223 }
224 224
225 checkTasks2(api.Tasks2 o) { 225 checkTasks2(api.Tasks2 o) {
226 buildCounterTasks2++; 226 buildCounterTasks2++;
227 if (buildCounterTasks2 < 3) { 227 if (buildCounterTasks2 < 3) {
228 checkUnnamed1284(o.items); 228 checkUnnamed1452(o.items);
229 unittest.expect(o.kind, unittest.equals('foo')); 229 unittest.expect(o.kind, unittest.equals('foo'));
230 } 230 }
231 buildCounterTasks2--; 231 buildCounterTasks2--;
232 } 232 }
233 233
234 234
235 main() { 235 main() {
236 unittest.group("obj-schema-Task", () { 236 unittest.group("obj-schema-Task", () {
237 unittest.test("to-json--from-json", () { 237 unittest.test("to-json--from-json", () {
238 var o = buildTask(); 238 var o = buildTask();
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 res.update(arg_request, arg_project, arg_taskqueue, arg_task, arg_newLease Seconds).then(unittest.expectAsync(((api.Task response) { 662 res.update(arg_request, arg_project, arg_taskqueue, arg_task, arg_newLease Seconds).then(unittest.expectAsync(((api.Task response) {
663 checkTask(response); 663 checkTask(response);
664 }))); 664 })));
665 }); 665 });
666 666
667 }); 667 });
668 668
669 669
670 } 670 }
671 671
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/sqladmin/v1beta3_test.dart ('k') | pubspec.lock » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698