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_beta/test/dns/v1beta1_test.dart

Issue 798373003: Api roll 8: 2014-12-15 (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.dns.v1beta1.test; 1 library googleapis_beta.dns.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;
11 import 'package:googleapis_beta/common/common.dart' as common; 11 import 'package:googleapis_beta/common/common.dart' as common;
12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; 12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test; 13 import '../common/common_internal_test.dart' as common_test;
14 14
15 import 'package:googleapis_beta/dns/v1beta1.dart' as api; 15 import 'package:googleapis_beta/dns/v1beta1.dart' as api;
16 16
17 17
18 18
19 buildUnnamed1231() { 19 buildUnnamed1283() {
20 var o = new core.List<api.ResourceRecordSet>(); 20 var o = new core.List<api.ResourceRecordSet>();
21 o.add(buildResourceRecordSet()); 21 o.add(buildResourceRecordSet());
22 o.add(buildResourceRecordSet()); 22 o.add(buildResourceRecordSet());
23 return o; 23 return o;
24 } 24 }
25 25
26 checkUnnamed1231(core.List<api.ResourceRecordSet> o) { 26 checkUnnamed1283(core.List<api.ResourceRecordSet> o) {
27 unittest.expect(o, unittest.hasLength(2)); 27 unittest.expect(o, unittest.hasLength(2));
28 checkResourceRecordSet(o[0]); 28 checkResourceRecordSet(o[0]);
29 checkResourceRecordSet(o[1]); 29 checkResourceRecordSet(o[1]);
30 } 30 }
31 31
32 buildUnnamed1232() { 32 buildUnnamed1284() {
33 var o = new core.List<api.ResourceRecordSet>(); 33 var o = new core.List<api.ResourceRecordSet>();
34 o.add(buildResourceRecordSet()); 34 o.add(buildResourceRecordSet());
35 o.add(buildResourceRecordSet()); 35 o.add(buildResourceRecordSet());
36 return o; 36 return o;
37 } 37 }
38 38
39 checkUnnamed1232(core.List<api.ResourceRecordSet> o) { 39 checkUnnamed1284(core.List<api.ResourceRecordSet> o) {
40 unittest.expect(o, unittest.hasLength(2)); 40 unittest.expect(o, unittest.hasLength(2));
41 checkResourceRecordSet(o[0]); 41 checkResourceRecordSet(o[0]);
42 checkResourceRecordSet(o[1]); 42 checkResourceRecordSet(o[1]);
43 } 43 }
44 44
45 core.int buildCounterChange = 0; 45 core.int buildCounterChange = 0;
46 buildChange() { 46 buildChange() {
47 var o = new api.Change(); 47 var o = new api.Change();
48 buildCounterChange++; 48 buildCounterChange++;
49 if (buildCounterChange < 3) { 49 if (buildCounterChange < 3) {
50 o.additions = buildUnnamed1231(); 50 o.additions = buildUnnamed1283();
51 o.deletions = buildUnnamed1232(); 51 o.deletions = buildUnnamed1284();
52 o.id = "foo"; 52 o.id = "foo";
53 o.kind = "foo"; 53 o.kind = "foo";
54 o.startTime = "foo"; 54 o.startTime = "foo";
55 o.status = "foo"; 55 o.status = "foo";
56 } 56 }
57 buildCounterChange--; 57 buildCounterChange--;
58 return o; 58 return o;
59 } 59 }
60 60
61 checkChange(api.Change o) { 61 checkChange(api.Change o) {
62 buildCounterChange++; 62 buildCounterChange++;
63 if (buildCounterChange < 3) { 63 if (buildCounterChange < 3) {
64 checkUnnamed1231(o.additions); 64 checkUnnamed1283(o.additions);
65 checkUnnamed1232(o.deletions); 65 checkUnnamed1284(o.deletions);
66 unittest.expect(o.id, unittest.equals('foo')); 66 unittest.expect(o.id, unittest.equals('foo'));
67 unittest.expect(o.kind, unittest.equals('foo')); 67 unittest.expect(o.kind, unittest.equals('foo'));
68 unittest.expect(o.startTime, unittest.equals('foo')); 68 unittest.expect(o.startTime, unittest.equals('foo'));
69 unittest.expect(o.status, unittest.equals('foo')); 69 unittest.expect(o.status, unittest.equals('foo'));
70 } 70 }
71 buildCounterChange--; 71 buildCounterChange--;
72 } 72 }
73 73
74 buildUnnamed1233() { 74 buildUnnamed1285() {
75 var o = new core.List<api.Change>(); 75 var o = new core.List<api.Change>();
76 o.add(buildChange()); 76 o.add(buildChange());
77 o.add(buildChange()); 77 o.add(buildChange());
78 return o; 78 return o;
79 } 79 }
80 80
81 checkUnnamed1233(core.List<api.Change> o) { 81 checkUnnamed1285(core.List<api.Change> o) {
82 unittest.expect(o, unittest.hasLength(2)); 82 unittest.expect(o, unittest.hasLength(2));
83 checkChange(o[0]); 83 checkChange(o[0]);
84 checkChange(o[1]); 84 checkChange(o[1]);
85 } 85 }
86 86
87 core.int buildCounterChangesListResponse = 0; 87 core.int buildCounterChangesListResponse = 0;
88 buildChangesListResponse() { 88 buildChangesListResponse() {
89 var o = new api.ChangesListResponse(); 89 var o = new api.ChangesListResponse();
90 buildCounterChangesListResponse++; 90 buildCounterChangesListResponse++;
91 if (buildCounterChangesListResponse < 3) { 91 if (buildCounterChangesListResponse < 3) {
92 o.changes = buildUnnamed1233(); 92 o.changes = buildUnnamed1285();
93 o.kind = "foo"; 93 o.kind = "foo";
94 o.nextPageToken = "foo"; 94 o.nextPageToken = "foo";
95 } 95 }
96 buildCounterChangesListResponse--; 96 buildCounterChangesListResponse--;
97 return o; 97 return o;
98 } 98 }
99 99
100 checkChangesListResponse(api.ChangesListResponse o) { 100 checkChangesListResponse(api.ChangesListResponse o) {
101 buildCounterChangesListResponse++; 101 buildCounterChangesListResponse++;
102 if (buildCounterChangesListResponse < 3) { 102 if (buildCounterChangesListResponse < 3) {
103 checkUnnamed1233(o.changes); 103 checkUnnamed1285(o.changes);
104 unittest.expect(o.kind, unittest.equals('foo')); 104 unittest.expect(o.kind, unittest.equals('foo'));
105 unittest.expect(o.nextPageToken, unittest.equals('foo')); 105 unittest.expect(o.nextPageToken, unittest.equals('foo'));
106 } 106 }
107 buildCounterChangesListResponse--; 107 buildCounterChangesListResponse--;
108 } 108 }
109 109
110 buildUnnamed1234() { 110 buildUnnamed1286() {
111 var o = new core.List<core.String>(); 111 var o = new core.List<core.String>();
112 o.add("foo"); 112 o.add("foo");
113 o.add("foo"); 113 o.add("foo");
114 return o; 114 return o;
115 } 115 }
116 116
117 checkUnnamed1234(core.List<core.String> o) { 117 checkUnnamed1286(core.List<core.String> o) {
118 unittest.expect(o, unittest.hasLength(2)); 118 unittest.expect(o, unittest.hasLength(2));
119 unittest.expect(o[0], unittest.equals('foo')); 119 unittest.expect(o[0], unittest.equals('foo'));
120 unittest.expect(o[1], unittest.equals('foo')); 120 unittest.expect(o[1], unittest.equals('foo'));
121 } 121 }
122 122
123 core.int buildCounterManagedZone = 0; 123 core.int buildCounterManagedZone = 0;
124 buildManagedZone() { 124 buildManagedZone() {
125 var o = new api.ManagedZone(); 125 var o = new api.ManagedZone();
126 buildCounterManagedZone++; 126 buildCounterManagedZone++;
127 if (buildCounterManagedZone < 3) { 127 if (buildCounterManagedZone < 3) {
128 o.creationTime = "foo"; 128 o.creationTime = "foo";
129 o.description = "foo"; 129 o.description = "foo";
130 o.dnsName = "foo"; 130 o.dnsName = "foo";
131 o.id = "foo"; 131 o.id = "foo";
132 o.kind = "foo"; 132 o.kind = "foo";
133 o.name = "foo"; 133 o.name = "foo";
134 o.nameServers = buildUnnamed1234(); 134 o.nameServerSet = "foo";
135 o.nameServers = buildUnnamed1286();
135 } 136 }
136 buildCounterManagedZone--; 137 buildCounterManagedZone--;
137 return o; 138 return o;
138 } 139 }
139 140
140 checkManagedZone(api.ManagedZone o) { 141 checkManagedZone(api.ManagedZone o) {
141 buildCounterManagedZone++; 142 buildCounterManagedZone++;
142 if (buildCounterManagedZone < 3) { 143 if (buildCounterManagedZone < 3) {
143 unittest.expect(o.creationTime, unittest.equals('foo')); 144 unittest.expect(o.creationTime, unittest.equals('foo'));
144 unittest.expect(o.description, unittest.equals('foo')); 145 unittest.expect(o.description, unittest.equals('foo'));
145 unittest.expect(o.dnsName, unittest.equals('foo')); 146 unittest.expect(o.dnsName, unittest.equals('foo'));
146 unittest.expect(o.id, unittest.equals('foo')); 147 unittest.expect(o.id, unittest.equals('foo'));
147 unittest.expect(o.kind, unittest.equals('foo')); 148 unittest.expect(o.kind, unittest.equals('foo'));
148 unittest.expect(o.name, unittest.equals('foo')); 149 unittest.expect(o.name, unittest.equals('foo'));
149 checkUnnamed1234(o.nameServers); 150 unittest.expect(o.nameServerSet, unittest.equals('foo'));
151 checkUnnamed1286(o.nameServers);
150 } 152 }
151 buildCounterManagedZone--; 153 buildCounterManagedZone--;
152 } 154 }
153 155
154 buildUnnamed1235() { 156 buildUnnamed1287() {
155 var o = new core.List<api.ManagedZone>(); 157 var o = new core.List<api.ManagedZone>();
156 o.add(buildManagedZone()); 158 o.add(buildManagedZone());
157 o.add(buildManagedZone()); 159 o.add(buildManagedZone());
158 return o; 160 return o;
159 } 161 }
160 162
161 checkUnnamed1235(core.List<api.ManagedZone> o) { 163 checkUnnamed1287(core.List<api.ManagedZone> o) {
162 unittest.expect(o, unittest.hasLength(2)); 164 unittest.expect(o, unittest.hasLength(2));
163 checkManagedZone(o[0]); 165 checkManagedZone(o[0]);
164 checkManagedZone(o[1]); 166 checkManagedZone(o[1]);
165 } 167 }
166 168
167 core.int buildCounterManagedZonesListResponse = 0; 169 core.int buildCounterManagedZonesListResponse = 0;
168 buildManagedZonesListResponse() { 170 buildManagedZonesListResponse() {
169 var o = new api.ManagedZonesListResponse(); 171 var o = new api.ManagedZonesListResponse();
170 buildCounterManagedZonesListResponse++; 172 buildCounterManagedZonesListResponse++;
171 if (buildCounterManagedZonesListResponse < 3) { 173 if (buildCounterManagedZonesListResponse < 3) {
172 o.kind = "foo"; 174 o.kind = "foo";
173 o.managedZones = buildUnnamed1235(); 175 o.managedZones = buildUnnamed1287();
174 o.nextPageToken = "foo"; 176 o.nextPageToken = "foo";
175 } 177 }
176 buildCounterManagedZonesListResponse--; 178 buildCounterManagedZonesListResponse--;
177 return o; 179 return o;
178 } 180 }
179 181
180 checkManagedZonesListResponse(api.ManagedZonesListResponse o) { 182 checkManagedZonesListResponse(api.ManagedZonesListResponse o) {
181 buildCounterManagedZonesListResponse++; 183 buildCounterManagedZonesListResponse++;
182 if (buildCounterManagedZonesListResponse < 3) { 184 if (buildCounterManagedZonesListResponse < 3) {
183 unittest.expect(o.kind, unittest.equals('foo')); 185 unittest.expect(o.kind, unittest.equals('foo'));
184 checkUnnamed1235(o.managedZones); 186 checkUnnamed1287(o.managedZones);
185 unittest.expect(o.nextPageToken, unittest.equals('foo')); 187 unittest.expect(o.nextPageToken, unittest.equals('foo'));
186 } 188 }
187 buildCounterManagedZonesListResponse--; 189 buildCounterManagedZonesListResponse--;
188 } 190 }
189 191
190 core.int buildCounterProject = 0; 192 core.int buildCounterProject = 0;
191 buildProject() { 193 buildProject() {
192 var o = new api.Project(); 194 var o = new api.Project();
193 buildCounterProject++; 195 buildCounterProject++;
194 if (buildCounterProject < 3) { 196 if (buildCounterProject < 3) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 unittest.expect(o.managedZones, unittest.equals(42)); 238 unittest.expect(o.managedZones, unittest.equals(42));
237 unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42)); 239 unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42));
238 unittest.expect(o.rrsetAdditionsPerChange, unittest.equals(42)); 240 unittest.expect(o.rrsetAdditionsPerChange, unittest.equals(42));
239 unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); 241 unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42));
240 unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); 242 unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42));
241 unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); 243 unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42));
242 } 244 }
243 buildCounterQuota--; 245 buildCounterQuota--;
244 } 246 }
245 247
246 buildUnnamed1236() { 248 buildUnnamed1288() {
247 var o = new core.List<core.String>(); 249 var o = new core.List<core.String>();
248 o.add("foo"); 250 o.add("foo");
249 o.add("foo"); 251 o.add("foo");
250 return o; 252 return o;
251 } 253 }
252 254
253 checkUnnamed1236(core.List<core.String> o) { 255 checkUnnamed1288(core.List<core.String> o) {
254 unittest.expect(o, unittest.hasLength(2)); 256 unittest.expect(o, unittest.hasLength(2));
255 unittest.expect(o[0], unittest.equals('foo')); 257 unittest.expect(o[0], unittest.equals('foo'));
256 unittest.expect(o[1], unittest.equals('foo')); 258 unittest.expect(o[1], unittest.equals('foo'));
257 } 259 }
258 260
259 core.int buildCounterResourceRecordSet = 0; 261 core.int buildCounterResourceRecordSet = 0;
260 buildResourceRecordSet() { 262 buildResourceRecordSet() {
261 var o = new api.ResourceRecordSet(); 263 var o = new api.ResourceRecordSet();
262 buildCounterResourceRecordSet++; 264 buildCounterResourceRecordSet++;
263 if (buildCounterResourceRecordSet < 3) { 265 if (buildCounterResourceRecordSet < 3) {
264 o.kind = "foo"; 266 o.kind = "foo";
265 o.name = "foo"; 267 o.name = "foo";
266 o.rrdatas = buildUnnamed1236(); 268 o.rrdatas = buildUnnamed1288();
267 o.ttl = 42; 269 o.ttl = 42;
268 o.type = "foo"; 270 o.type = "foo";
269 } 271 }
270 buildCounterResourceRecordSet--; 272 buildCounterResourceRecordSet--;
271 return o; 273 return o;
272 } 274 }
273 275
274 checkResourceRecordSet(api.ResourceRecordSet o) { 276 checkResourceRecordSet(api.ResourceRecordSet o) {
275 buildCounterResourceRecordSet++; 277 buildCounterResourceRecordSet++;
276 if (buildCounterResourceRecordSet < 3) { 278 if (buildCounterResourceRecordSet < 3) {
277 unittest.expect(o.kind, unittest.equals('foo')); 279 unittest.expect(o.kind, unittest.equals('foo'));
278 unittest.expect(o.name, unittest.equals('foo')); 280 unittest.expect(o.name, unittest.equals('foo'));
279 checkUnnamed1236(o.rrdatas); 281 checkUnnamed1288(o.rrdatas);
280 unittest.expect(o.ttl, unittest.equals(42)); 282 unittest.expect(o.ttl, unittest.equals(42));
281 unittest.expect(o.type, unittest.equals('foo')); 283 unittest.expect(o.type, unittest.equals('foo'));
282 } 284 }
283 buildCounterResourceRecordSet--; 285 buildCounterResourceRecordSet--;
284 } 286 }
285 287
286 buildUnnamed1237() { 288 buildUnnamed1289() {
287 var o = new core.List<api.ResourceRecordSet>(); 289 var o = new core.List<api.ResourceRecordSet>();
288 o.add(buildResourceRecordSet()); 290 o.add(buildResourceRecordSet());
289 o.add(buildResourceRecordSet()); 291 o.add(buildResourceRecordSet());
290 return o; 292 return o;
291 } 293 }
292 294
293 checkUnnamed1237(core.List<api.ResourceRecordSet> o) { 295 checkUnnamed1289(core.List<api.ResourceRecordSet> o) {
294 unittest.expect(o, unittest.hasLength(2)); 296 unittest.expect(o, unittest.hasLength(2));
295 checkResourceRecordSet(o[0]); 297 checkResourceRecordSet(o[0]);
296 checkResourceRecordSet(o[1]); 298 checkResourceRecordSet(o[1]);
297 } 299 }
298 300
299 core.int buildCounterResourceRecordSetsListResponse = 0; 301 core.int buildCounterResourceRecordSetsListResponse = 0;
300 buildResourceRecordSetsListResponse() { 302 buildResourceRecordSetsListResponse() {
301 var o = new api.ResourceRecordSetsListResponse(); 303 var o = new api.ResourceRecordSetsListResponse();
302 buildCounterResourceRecordSetsListResponse++; 304 buildCounterResourceRecordSetsListResponse++;
303 if (buildCounterResourceRecordSetsListResponse < 3) { 305 if (buildCounterResourceRecordSetsListResponse < 3) {
304 o.kind = "foo"; 306 o.kind = "foo";
305 o.nextPageToken = "foo"; 307 o.nextPageToken = "foo";
306 o.rrsets = buildUnnamed1237(); 308 o.rrsets = buildUnnamed1289();
307 } 309 }
308 buildCounterResourceRecordSetsListResponse--; 310 buildCounterResourceRecordSetsListResponse--;
309 return o; 311 return o;
310 } 312 }
311 313
312 checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) { 314 checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) {
313 buildCounterResourceRecordSetsListResponse++; 315 buildCounterResourceRecordSetsListResponse++;
314 if (buildCounterResourceRecordSetsListResponse < 3) { 316 if (buildCounterResourceRecordSetsListResponse < 3) {
315 unittest.expect(o.kind, unittest.equals('foo')); 317 unittest.expect(o.kind, unittest.equals('foo'));
316 unittest.expect(o.nextPageToken, unittest.equals('foo')); 318 unittest.expect(o.nextPageToken, unittest.equals('foo'));
317 checkUnnamed1237(o.rrsets); 319 checkUnnamed1289(o.rrsets);
318 } 320 }
319 buildCounterResourceRecordSetsListResponse--; 321 buildCounterResourceRecordSetsListResponse--;
320 } 322 }
321 323
322 324
323 main() { 325 main() {
324 unittest.group("obj-schema-Change", () { 326 unittest.group("obj-schema-Change", () {
325 unittest.test("to-json--from-json", () { 327 unittest.test("to-json--from-json", () {
326 var o = buildChange(); 328 var o = buildChange();
327 var od = new api.Change.fromJson(o.toJson()); 329 var od = new api.Change.fromJson(o.toJson());
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: a rg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync(((a pi.ResourceRecordSetsListResponse response) { 817 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: a rg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync(((a pi.ResourceRecordSetsListResponse response) {
816 checkResourceRecordSetsListResponse(response); 818 checkResourceRecordSetsListResponse(response);
817 }))); 819 })));
818 }); 820 });
819 821
820 }); 822 });
821 823
822 824
823 } 825 }
824 826
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/datastore/v1beta2_test.dart ('k') | generated/googleapis_beta/test/genomics/v1beta2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698