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

Side by Side Diff: generated/googleapis_beta/test/logging/v2beta1_test.dart

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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_beta.logging.v2beta1.test; 1 library googleapis_beta.logging.v2beta1.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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 checkLabelDescriptor(api.LabelDescriptor o) { 129 checkLabelDescriptor(api.LabelDescriptor o) {
130 buildCounterLabelDescriptor++; 130 buildCounterLabelDescriptor++;
131 if (buildCounterLabelDescriptor < 3) { 131 if (buildCounterLabelDescriptor < 3) {
132 unittest.expect(o.description, unittest.equals('foo')); 132 unittest.expect(o.description, unittest.equals('foo'));
133 unittest.expect(o.key, unittest.equals('foo')); 133 unittest.expect(o.key, unittest.equals('foo'));
134 unittest.expect(o.valueType, unittest.equals('foo')); 134 unittest.expect(o.valueType, unittest.equals('foo'));
135 } 135 }
136 buildCounterLabelDescriptor--; 136 buildCounterLabelDescriptor--;
137 } 137 }
138 138
139 buildUnnamed3482() { 139 buildUnnamed3465() {
140 var o = new core.List<core.String>(); 140 var o = new core.List<core.String>();
141 o.add("foo"); 141 o.add("foo");
142 o.add("foo"); 142 o.add("foo");
143 return o; 143 return o;
144 } 144 }
145 145
146 checkUnnamed3482(core.List<core.String> o) { 146 checkUnnamed3465(core.List<core.String> o) {
147 unittest.expect(o, unittest.hasLength(2)); 147 unittest.expect(o, unittest.hasLength(2));
148 unittest.expect(o[0], unittest.equals('foo')); 148 unittest.expect(o[0], unittest.equals('foo'));
149 unittest.expect(o[1], unittest.equals('foo')); 149 unittest.expect(o[1], unittest.equals('foo'));
150 } 150 }
151 151
152 buildUnnamed3483() { 152 buildUnnamed3466() {
153 var o = new core.List<core.String>(); 153 var o = new core.List<core.String>();
154 o.add("foo"); 154 o.add("foo");
155 o.add("foo"); 155 o.add("foo");
156 return o; 156 return o;
157 } 157 }
158 158
159 checkUnnamed3483(core.List<core.String> o) { 159 checkUnnamed3466(core.List<core.String> o) {
160 unittest.expect(o, unittest.hasLength(2)); 160 unittest.expect(o, unittest.hasLength(2));
161 unittest.expect(o[0], unittest.equals('foo')); 161 unittest.expect(o[0], unittest.equals('foo'));
162 unittest.expect(o[1], unittest.equals('foo')); 162 unittest.expect(o[1], unittest.equals('foo'));
163 } 163 }
164 164
165 core.int buildCounterListLogEntriesRequest = 0; 165 core.int buildCounterListLogEntriesRequest = 0;
166 buildListLogEntriesRequest() { 166 buildListLogEntriesRequest() {
167 var o = new api.ListLogEntriesRequest(); 167 var o = new api.ListLogEntriesRequest();
168 buildCounterListLogEntriesRequest++; 168 buildCounterListLogEntriesRequest++;
169 if (buildCounterListLogEntriesRequest < 3) { 169 if (buildCounterListLogEntriesRequest < 3) {
170 o.filter = "foo"; 170 o.filter = "foo";
171 o.orderBy = "foo"; 171 o.orderBy = "foo";
172 o.pageSize = 42; 172 o.pageSize = 42;
173 o.pageToken = "foo"; 173 o.pageToken = "foo";
174 o.projectIds = buildUnnamed3482(); 174 o.projectIds = buildUnnamed3465();
175 o.resourceNames = buildUnnamed3483(); 175 o.resourceNames = buildUnnamed3466();
176 } 176 }
177 buildCounterListLogEntriesRequest--; 177 buildCounterListLogEntriesRequest--;
178 return o; 178 return o;
179 } 179 }
180 180
181 checkListLogEntriesRequest(api.ListLogEntriesRequest o) { 181 checkListLogEntriesRequest(api.ListLogEntriesRequest o) {
182 buildCounterListLogEntriesRequest++; 182 buildCounterListLogEntriesRequest++;
183 if (buildCounterListLogEntriesRequest < 3) { 183 if (buildCounterListLogEntriesRequest < 3) {
184 unittest.expect(o.filter, unittest.equals('foo')); 184 unittest.expect(o.filter, unittest.equals('foo'));
185 unittest.expect(o.orderBy, unittest.equals('foo')); 185 unittest.expect(o.orderBy, unittest.equals('foo'));
186 unittest.expect(o.pageSize, unittest.equals(42)); 186 unittest.expect(o.pageSize, unittest.equals(42));
187 unittest.expect(o.pageToken, unittest.equals('foo')); 187 unittest.expect(o.pageToken, unittest.equals('foo'));
188 checkUnnamed3482(o.projectIds); 188 checkUnnamed3465(o.projectIds);
189 checkUnnamed3483(o.resourceNames); 189 checkUnnamed3466(o.resourceNames);
190 } 190 }
191 buildCounterListLogEntriesRequest--; 191 buildCounterListLogEntriesRequest--;
192 } 192 }
193 193
194 buildUnnamed3484() { 194 buildUnnamed3467() {
195 var o = new core.List<api.LogEntry>(); 195 var o = new core.List<api.LogEntry>();
196 o.add(buildLogEntry()); 196 o.add(buildLogEntry());
197 o.add(buildLogEntry()); 197 o.add(buildLogEntry());
198 return o; 198 return o;
199 } 199 }
200 200
201 checkUnnamed3484(core.List<api.LogEntry> o) { 201 checkUnnamed3467(core.List<api.LogEntry> o) {
202 unittest.expect(o, unittest.hasLength(2)); 202 unittest.expect(o, unittest.hasLength(2));
203 checkLogEntry(o[0]); 203 checkLogEntry(o[0]);
204 checkLogEntry(o[1]); 204 checkLogEntry(o[1]);
205 } 205 }
206 206
207 core.int buildCounterListLogEntriesResponse = 0; 207 core.int buildCounterListLogEntriesResponse = 0;
208 buildListLogEntriesResponse() { 208 buildListLogEntriesResponse() {
209 var o = new api.ListLogEntriesResponse(); 209 var o = new api.ListLogEntriesResponse();
210 buildCounterListLogEntriesResponse++; 210 buildCounterListLogEntriesResponse++;
211 if (buildCounterListLogEntriesResponse < 3) { 211 if (buildCounterListLogEntriesResponse < 3) {
212 o.entries = buildUnnamed3484(); 212 o.entries = buildUnnamed3467();
213 o.nextPageToken = "foo"; 213 o.nextPageToken = "foo";
214 } 214 }
215 buildCounterListLogEntriesResponse--; 215 buildCounterListLogEntriesResponse--;
216 return o; 216 return o;
217 } 217 }
218 218
219 checkListLogEntriesResponse(api.ListLogEntriesResponse o) { 219 checkListLogEntriesResponse(api.ListLogEntriesResponse o) {
220 buildCounterListLogEntriesResponse++; 220 buildCounterListLogEntriesResponse++;
221 if (buildCounterListLogEntriesResponse < 3) { 221 if (buildCounterListLogEntriesResponse < 3) {
222 checkUnnamed3484(o.entries); 222 checkUnnamed3467(o.entries);
223 unittest.expect(o.nextPageToken, unittest.equals('foo')); 223 unittest.expect(o.nextPageToken, unittest.equals('foo'));
224 } 224 }
225 buildCounterListLogEntriesResponse--; 225 buildCounterListLogEntriesResponse--;
226 } 226 }
227 227
228 buildUnnamed3485() { 228 buildUnnamed3468() {
229 var o = new core.List<api.LogMetric>(); 229 var o = new core.List<api.LogMetric>();
230 o.add(buildLogMetric()); 230 o.add(buildLogMetric());
231 o.add(buildLogMetric()); 231 o.add(buildLogMetric());
232 return o; 232 return o;
233 } 233 }
234 234
235 checkUnnamed3485(core.List<api.LogMetric> o) { 235 checkUnnamed3468(core.List<api.LogMetric> o) {
236 unittest.expect(o, unittest.hasLength(2)); 236 unittest.expect(o, unittest.hasLength(2));
237 checkLogMetric(o[0]); 237 checkLogMetric(o[0]);
238 checkLogMetric(o[1]); 238 checkLogMetric(o[1]);
239 } 239 }
240 240
241 core.int buildCounterListLogMetricsResponse = 0; 241 core.int buildCounterListLogMetricsResponse = 0;
242 buildListLogMetricsResponse() { 242 buildListLogMetricsResponse() {
243 var o = new api.ListLogMetricsResponse(); 243 var o = new api.ListLogMetricsResponse();
244 buildCounterListLogMetricsResponse++; 244 buildCounterListLogMetricsResponse++;
245 if (buildCounterListLogMetricsResponse < 3) { 245 if (buildCounterListLogMetricsResponse < 3) {
246 o.metrics = buildUnnamed3485(); 246 o.metrics = buildUnnamed3468();
247 o.nextPageToken = "foo"; 247 o.nextPageToken = "foo";
248 } 248 }
249 buildCounterListLogMetricsResponse--; 249 buildCounterListLogMetricsResponse--;
250 return o; 250 return o;
251 } 251 }
252 252
253 checkListLogMetricsResponse(api.ListLogMetricsResponse o) { 253 checkListLogMetricsResponse(api.ListLogMetricsResponse o) {
254 buildCounterListLogMetricsResponse++; 254 buildCounterListLogMetricsResponse++;
255 if (buildCounterListLogMetricsResponse < 3) { 255 if (buildCounterListLogMetricsResponse < 3) {
256 checkUnnamed3485(o.metrics); 256 checkUnnamed3468(o.metrics);
257 unittest.expect(o.nextPageToken, unittest.equals('foo')); 257 unittest.expect(o.nextPageToken, unittest.equals('foo'));
258 } 258 }
259 buildCounterListLogMetricsResponse--; 259 buildCounterListLogMetricsResponse--;
260 } 260 }
261 261
262 buildUnnamed3486() { 262 buildUnnamed3469() {
263 var o = new core.List<core.String>(); 263 var o = new core.List<core.String>();
264 o.add("foo"); 264 o.add("foo");
265 o.add("foo"); 265 o.add("foo");
266 return o; 266 return o;
267 } 267 }
268 268
269 checkUnnamed3486(core.List<core.String> o) { 269 checkUnnamed3469(core.List<core.String> o) {
270 unittest.expect(o, unittest.hasLength(2)); 270 unittest.expect(o, unittest.hasLength(2));
271 unittest.expect(o[0], unittest.equals('foo')); 271 unittest.expect(o[0], unittest.equals('foo'));
272 unittest.expect(o[1], unittest.equals('foo')); 272 unittest.expect(o[1], unittest.equals('foo'));
273 } 273 }
274 274
275 core.int buildCounterListLogsResponse = 0; 275 core.int buildCounterListLogsResponse = 0;
276 buildListLogsResponse() { 276 buildListLogsResponse() {
277 var o = new api.ListLogsResponse(); 277 var o = new api.ListLogsResponse();
278 buildCounterListLogsResponse++; 278 buildCounterListLogsResponse++;
279 if (buildCounterListLogsResponse < 3) { 279 if (buildCounterListLogsResponse < 3) {
280 o.logNames = buildUnnamed3486(); 280 o.logNames = buildUnnamed3469();
281 o.nextPageToken = "foo"; 281 o.nextPageToken = "foo";
282 } 282 }
283 buildCounterListLogsResponse--; 283 buildCounterListLogsResponse--;
284 return o; 284 return o;
285 } 285 }
286 286
287 checkListLogsResponse(api.ListLogsResponse o) { 287 checkListLogsResponse(api.ListLogsResponse o) {
288 buildCounterListLogsResponse++; 288 buildCounterListLogsResponse++;
289 if (buildCounterListLogsResponse < 3) { 289 if (buildCounterListLogsResponse < 3) {
290 checkUnnamed3486(o.logNames); 290 checkUnnamed3469(o.logNames);
291 unittest.expect(o.nextPageToken, unittest.equals('foo')); 291 unittest.expect(o.nextPageToken, unittest.equals('foo'));
292 } 292 }
293 buildCounterListLogsResponse--; 293 buildCounterListLogsResponse--;
294 } 294 }
295 295
296 buildUnnamed3487() { 296 buildUnnamed3470() {
297 var o = new core.List<api.MonitoredResourceDescriptor>(); 297 var o = new core.List<api.MonitoredResourceDescriptor>();
298 o.add(buildMonitoredResourceDescriptor()); 298 o.add(buildMonitoredResourceDescriptor());
299 o.add(buildMonitoredResourceDescriptor()); 299 o.add(buildMonitoredResourceDescriptor());
300 return o; 300 return o;
301 } 301 }
302 302
303 checkUnnamed3487(core.List<api.MonitoredResourceDescriptor> o) { 303 checkUnnamed3470(core.List<api.MonitoredResourceDescriptor> o) {
304 unittest.expect(o, unittest.hasLength(2)); 304 unittest.expect(o, unittest.hasLength(2));
305 checkMonitoredResourceDescriptor(o[0]); 305 checkMonitoredResourceDescriptor(o[0]);
306 checkMonitoredResourceDescriptor(o[1]); 306 checkMonitoredResourceDescriptor(o[1]);
307 } 307 }
308 308
309 core.int buildCounterListMonitoredResourceDescriptorsResponse = 0; 309 core.int buildCounterListMonitoredResourceDescriptorsResponse = 0;
310 buildListMonitoredResourceDescriptorsResponse() { 310 buildListMonitoredResourceDescriptorsResponse() {
311 var o = new api.ListMonitoredResourceDescriptorsResponse(); 311 var o = new api.ListMonitoredResourceDescriptorsResponse();
312 buildCounterListMonitoredResourceDescriptorsResponse++; 312 buildCounterListMonitoredResourceDescriptorsResponse++;
313 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { 313 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) {
314 o.nextPageToken = "foo"; 314 o.nextPageToken = "foo";
315 o.resourceDescriptors = buildUnnamed3487(); 315 o.resourceDescriptors = buildUnnamed3470();
316 } 316 }
317 buildCounterListMonitoredResourceDescriptorsResponse--; 317 buildCounterListMonitoredResourceDescriptorsResponse--;
318 return o; 318 return o;
319 } 319 }
320 320
321 checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescripto rsResponse o) { 321 checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescripto rsResponse o) {
322 buildCounterListMonitoredResourceDescriptorsResponse++; 322 buildCounterListMonitoredResourceDescriptorsResponse++;
323 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { 323 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) {
324 unittest.expect(o.nextPageToken, unittest.equals('foo')); 324 unittest.expect(o.nextPageToken, unittest.equals('foo'));
325 checkUnnamed3487(o.resourceDescriptors); 325 checkUnnamed3470(o.resourceDescriptors);
326 } 326 }
327 buildCounterListMonitoredResourceDescriptorsResponse--; 327 buildCounterListMonitoredResourceDescriptorsResponse--;
328 } 328 }
329 329
330 buildUnnamed3488() { 330 buildUnnamed3471() {
331 var o = new core.List<api.LogSink>(); 331 var o = new core.List<api.LogSink>();
332 o.add(buildLogSink()); 332 o.add(buildLogSink());
333 o.add(buildLogSink()); 333 o.add(buildLogSink());
334 return o; 334 return o;
335 } 335 }
336 336
337 checkUnnamed3488(core.List<api.LogSink> o) { 337 checkUnnamed3471(core.List<api.LogSink> o) {
338 unittest.expect(o, unittest.hasLength(2)); 338 unittest.expect(o, unittest.hasLength(2));
339 checkLogSink(o[0]); 339 checkLogSink(o[0]);
340 checkLogSink(o[1]); 340 checkLogSink(o[1]);
341 } 341 }
342 342
343 core.int buildCounterListSinksResponse = 0; 343 core.int buildCounterListSinksResponse = 0;
344 buildListSinksResponse() { 344 buildListSinksResponse() {
345 var o = new api.ListSinksResponse(); 345 var o = new api.ListSinksResponse();
346 buildCounterListSinksResponse++; 346 buildCounterListSinksResponse++;
347 if (buildCounterListSinksResponse < 3) { 347 if (buildCounterListSinksResponse < 3) {
348 o.nextPageToken = "foo"; 348 o.nextPageToken = "foo";
349 o.sinks = buildUnnamed3488(); 349 o.sinks = buildUnnamed3471();
350 } 350 }
351 buildCounterListSinksResponse--; 351 buildCounterListSinksResponse--;
352 return o; 352 return o;
353 } 353 }
354 354
355 checkListSinksResponse(api.ListSinksResponse o) { 355 checkListSinksResponse(api.ListSinksResponse o) {
356 buildCounterListSinksResponse++; 356 buildCounterListSinksResponse++;
357 if (buildCounterListSinksResponse < 3) { 357 if (buildCounterListSinksResponse < 3) {
358 unittest.expect(o.nextPageToken, unittest.equals('foo')); 358 unittest.expect(o.nextPageToken, unittest.equals('foo'));
359 checkUnnamed3488(o.sinks); 359 checkUnnamed3471(o.sinks);
360 } 360 }
361 buildCounterListSinksResponse--; 361 buildCounterListSinksResponse--;
362 } 362 }
363 363
364 buildUnnamed3489() { 364 buildUnnamed3472() {
365 var o = new core.Map<core.String, core.Object>(); 365 var o = new core.Map<core.String, core.Object>();
366 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 366 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
367 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 367 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
368 return o; 368 return o;
369 } 369 }
370 370
371 checkUnnamed3489(core.Map<core.String, core.Object> o) { 371 checkUnnamed3472(core.Map<core.String, core.Object> o) {
372 unittest.expect(o, unittest.hasLength(2)); 372 unittest.expect(o, unittest.hasLength(2));
373 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 373 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
374 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 374 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
375 } 375 }
376 376
377 buildUnnamed3490() { 377 buildUnnamed3473() {
378 var o = new core.Map<core.String, core.String>(); 378 var o = new core.Map<core.String, core.String>();
379 o["x"] = "foo"; 379 o["x"] = "foo";
380 o["y"] = "foo"; 380 o["y"] = "foo";
381 return o; 381 return o;
382 } 382 }
383 383
384 checkUnnamed3490(core.Map<core.String, core.String> o) { 384 checkUnnamed3473(core.Map<core.String, core.String> o) {
385 unittest.expect(o, unittest.hasLength(2)); 385 unittest.expect(o, unittest.hasLength(2));
386 unittest.expect(o["x"], unittest.equals('foo')); 386 unittest.expect(o["x"], unittest.equals('foo'));
387 unittest.expect(o["y"], unittest.equals('foo')); 387 unittest.expect(o["y"], unittest.equals('foo'));
388 } 388 }
389 389
390 buildUnnamed3491() { 390 buildUnnamed3474() {
391 var o = new core.Map<core.String, core.Object>(); 391 var o = new core.Map<core.String, core.Object>();
392 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 392 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
393 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 393 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
394 return o; 394 return o;
395 } 395 }
396 396
397 checkUnnamed3491(core.Map<core.String, core.Object> o) { 397 checkUnnamed3474(core.Map<core.String, core.Object> o) {
398 unittest.expect(o, unittest.hasLength(2)); 398 unittest.expect(o, unittest.hasLength(2));
399 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); 399 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
400 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); 400 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
401 } 401 }
402 402
403 core.int buildCounterLogEntry = 0; 403 core.int buildCounterLogEntry = 0;
404 buildLogEntry() { 404 buildLogEntry() {
405 var o = new api.LogEntry(); 405 var o = new api.LogEntry();
406 buildCounterLogEntry++; 406 buildCounterLogEntry++;
407 if (buildCounterLogEntry < 3) { 407 if (buildCounterLogEntry < 3) {
408 o.httpRequest = buildHttpRequest(); 408 o.httpRequest = buildHttpRequest();
409 o.insertId = "foo"; 409 o.insertId = "foo";
410 o.jsonPayload = buildUnnamed3489(); 410 o.jsonPayload = buildUnnamed3472();
411 o.labels = buildUnnamed3490(); 411 o.labels = buildUnnamed3473();
412 o.logName = "foo"; 412 o.logName = "foo";
413 o.operation = buildLogEntryOperation(); 413 o.operation = buildLogEntryOperation();
414 o.protoPayload = buildUnnamed3491(); 414 o.protoPayload = buildUnnamed3474();
415 o.resource = buildMonitoredResource(); 415 o.resource = buildMonitoredResource();
416 o.severity = "foo"; 416 o.severity = "foo";
417 o.sourceLocation = buildLogEntrySourceLocation(); 417 o.sourceLocation = buildLogEntrySourceLocation();
418 o.textPayload = "foo"; 418 o.textPayload = "foo";
419 o.timestamp = "foo"; 419 o.timestamp = "foo";
420 o.trace = "foo"; 420 o.trace = "foo";
421 } 421 }
422 buildCounterLogEntry--; 422 buildCounterLogEntry--;
423 return o; 423 return o;
424 } 424 }
425 425
426 checkLogEntry(api.LogEntry o) { 426 checkLogEntry(api.LogEntry o) {
427 buildCounterLogEntry++; 427 buildCounterLogEntry++;
428 if (buildCounterLogEntry < 3) { 428 if (buildCounterLogEntry < 3) {
429 checkHttpRequest(o.httpRequest); 429 checkHttpRequest(o.httpRequest);
430 unittest.expect(o.insertId, unittest.equals('foo')); 430 unittest.expect(o.insertId, unittest.equals('foo'));
431 checkUnnamed3489(o.jsonPayload); 431 checkUnnamed3472(o.jsonPayload);
432 checkUnnamed3490(o.labels); 432 checkUnnamed3473(o.labels);
433 unittest.expect(o.logName, unittest.equals('foo')); 433 unittest.expect(o.logName, unittest.equals('foo'));
434 checkLogEntryOperation(o.operation); 434 checkLogEntryOperation(o.operation);
435 checkUnnamed3491(o.protoPayload); 435 checkUnnamed3474(o.protoPayload);
436 checkMonitoredResource(o.resource); 436 checkMonitoredResource(o.resource);
437 unittest.expect(o.severity, unittest.equals('foo')); 437 unittest.expect(o.severity, unittest.equals('foo'));
438 checkLogEntrySourceLocation(o.sourceLocation); 438 checkLogEntrySourceLocation(o.sourceLocation);
439 unittest.expect(o.textPayload, unittest.equals('foo')); 439 unittest.expect(o.textPayload, unittest.equals('foo'));
440 unittest.expect(o.timestamp, unittest.equals('foo')); 440 unittest.expect(o.timestamp, unittest.equals('foo'));
441 unittest.expect(o.trace, unittest.equals('foo')); 441 unittest.expect(o.trace, unittest.equals('foo'));
442 } 442 }
443 buildCounterLogEntry--; 443 buildCounterLogEntry--;
444 } 444 }
445 445
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 } 542 }
543 543
544 core.int buildCounterLogSink = 0; 544 core.int buildCounterLogSink = 0;
545 buildLogSink() { 545 buildLogSink() {
546 var o = new api.LogSink(); 546 var o = new api.LogSink();
547 buildCounterLogSink++; 547 buildCounterLogSink++;
548 if (buildCounterLogSink < 3) { 548 if (buildCounterLogSink < 3) {
549 o.destination = "foo"; 549 o.destination = "foo";
550 o.endTime = "foo"; 550 o.endTime = "foo";
551 o.filter = "foo"; 551 o.filter = "foo";
552 o.includeChildren = true;
552 o.name = "foo"; 553 o.name = "foo";
553 o.outputVersionFormat = "foo"; 554 o.outputVersionFormat = "foo";
554 o.startTime = "foo"; 555 o.startTime = "foo";
555 o.writerIdentity = "foo"; 556 o.writerIdentity = "foo";
556 } 557 }
557 buildCounterLogSink--; 558 buildCounterLogSink--;
558 return o; 559 return o;
559 } 560 }
560 561
561 checkLogSink(api.LogSink o) { 562 checkLogSink(api.LogSink o) {
562 buildCounterLogSink++; 563 buildCounterLogSink++;
563 if (buildCounterLogSink < 3) { 564 if (buildCounterLogSink < 3) {
564 unittest.expect(o.destination, unittest.equals('foo')); 565 unittest.expect(o.destination, unittest.equals('foo'));
565 unittest.expect(o.endTime, unittest.equals('foo')); 566 unittest.expect(o.endTime, unittest.equals('foo'));
566 unittest.expect(o.filter, unittest.equals('foo')); 567 unittest.expect(o.filter, unittest.equals('foo'));
568 unittest.expect(o.includeChildren, unittest.isTrue);
567 unittest.expect(o.name, unittest.equals('foo')); 569 unittest.expect(o.name, unittest.equals('foo'));
568 unittest.expect(o.outputVersionFormat, unittest.equals('foo')); 570 unittest.expect(o.outputVersionFormat, unittest.equals('foo'));
569 unittest.expect(o.startTime, unittest.equals('foo')); 571 unittest.expect(o.startTime, unittest.equals('foo'));
570 unittest.expect(o.writerIdentity, unittest.equals('foo')); 572 unittest.expect(o.writerIdentity, unittest.equals('foo'));
571 } 573 }
572 buildCounterLogSink--; 574 buildCounterLogSink--;
573 } 575 }
574 576
575 buildUnnamed3492() { 577 buildUnnamed3475() {
576 var o = new core.Map<core.String, core.String>(); 578 var o = new core.Map<core.String, core.String>();
577 o["x"] = "foo"; 579 o["x"] = "foo";
578 o["y"] = "foo"; 580 o["y"] = "foo";
579 return o; 581 return o;
580 } 582 }
581 583
582 checkUnnamed3492(core.Map<core.String, core.String> o) { 584 checkUnnamed3475(core.Map<core.String, core.String> o) {
583 unittest.expect(o, unittest.hasLength(2)); 585 unittest.expect(o, unittest.hasLength(2));
584 unittest.expect(o["x"], unittest.equals('foo')); 586 unittest.expect(o["x"], unittest.equals('foo'));
585 unittest.expect(o["y"], unittest.equals('foo')); 587 unittest.expect(o["y"], unittest.equals('foo'));
586 } 588 }
587 589
588 core.int buildCounterMonitoredResource = 0; 590 core.int buildCounterMonitoredResource = 0;
589 buildMonitoredResource() { 591 buildMonitoredResource() {
590 var o = new api.MonitoredResource(); 592 var o = new api.MonitoredResource();
591 buildCounterMonitoredResource++; 593 buildCounterMonitoredResource++;
592 if (buildCounterMonitoredResource < 3) { 594 if (buildCounterMonitoredResource < 3) {
593 o.labels = buildUnnamed3492(); 595 o.labels = buildUnnamed3475();
594 o.type = "foo"; 596 o.type = "foo";
595 } 597 }
596 buildCounterMonitoredResource--; 598 buildCounterMonitoredResource--;
597 return o; 599 return o;
598 } 600 }
599 601
600 checkMonitoredResource(api.MonitoredResource o) { 602 checkMonitoredResource(api.MonitoredResource o) {
601 buildCounterMonitoredResource++; 603 buildCounterMonitoredResource++;
602 if (buildCounterMonitoredResource < 3) { 604 if (buildCounterMonitoredResource < 3) {
603 checkUnnamed3492(o.labels); 605 checkUnnamed3475(o.labels);
604 unittest.expect(o.type, unittest.equals('foo')); 606 unittest.expect(o.type, unittest.equals('foo'));
605 } 607 }
606 buildCounterMonitoredResource--; 608 buildCounterMonitoredResource--;
607 } 609 }
608 610
609 buildUnnamed3493() { 611 buildUnnamed3476() {
610 var o = new core.List<api.LabelDescriptor>(); 612 var o = new core.List<api.LabelDescriptor>();
611 o.add(buildLabelDescriptor()); 613 o.add(buildLabelDescriptor());
612 o.add(buildLabelDescriptor()); 614 o.add(buildLabelDescriptor());
613 return o; 615 return o;
614 } 616 }
615 617
616 checkUnnamed3493(core.List<api.LabelDescriptor> o) { 618 checkUnnamed3476(core.List<api.LabelDescriptor> o) {
617 unittest.expect(o, unittest.hasLength(2)); 619 unittest.expect(o, unittest.hasLength(2));
618 checkLabelDescriptor(o[0]); 620 checkLabelDescriptor(o[0]);
619 checkLabelDescriptor(o[1]); 621 checkLabelDescriptor(o[1]);
620 } 622 }
621 623
622 core.int buildCounterMonitoredResourceDescriptor = 0; 624 core.int buildCounterMonitoredResourceDescriptor = 0;
623 buildMonitoredResourceDescriptor() { 625 buildMonitoredResourceDescriptor() {
624 var o = new api.MonitoredResourceDescriptor(); 626 var o = new api.MonitoredResourceDescriptor();
625 buildCounterMonitoredResourceDescriptor++; 627 buildCounterMonitoredResourceDescriptor++;
626 if (buildCounterMonitoredResourceDescriptor < 3) { 628 if (buildCounterMonitoredResourceDescriptor < 3) {
627 o.description = "foo"; 629 o.description = "foo";
628 o.displayName = "foo"; 630 o.displayName = "foo";
629 o.labels = buildUnnamed3493(); 631 o.labels = buildUnnamed3476();
630 o.name = "foo"; 632 o.name = "foo";
631 o.type = "foo"; 633 o.type = "foo";
632 } 634 }
633 buildCounterMonitoredResourceDescriptor--; 635 buildCounterMonitoredResourceDescriptor--;
634 return o; 636 return o;
635 } 637 }
636 638
637 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { 639 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) {
638 buildCounterMonitoredResourceDescriptor++; 640 buildCounterMonitoredResourceDescriptor++;
639 if (buildCounterMonitoredResourceDescriptor < 3) { 641 if (buildCounterMonitoredResourceDescriptor < 3) {
640 unittest.expect(o.description, unittest.equals('foo')); 642 unittest.expect(o.description, unittest.equals('foo'));
641 unittest.expect(o.displayName, unittest.equals('foo')); 643 unittest.expect(o.displayName, unittest.equals('foo'));
642 checkUnnamed3493(o.labels); 644 checkUnnamed3476(o.labels);
643 unittest.expect(o.name, unittest.equals('foo')); 645 unittest.expect(o.name, unittest.equals('foo'));
644 unittest.expect(o.type, unittest.equals('foo')); 646 unittest.expect(o.type, unittest.equals('foo'));
645 } 647 }
646 buildCounterMonitoredResourceDescriptor--; 648 buildCounterMonitoredResourceDescriptor--;
647 } 649 }
648 650
649 buildUnnamed3494() { 651 buildUnnamed3477() {
650 var o = new core.List<api.LogLine>(); 652 var o = new core.List<api.LogLine>();
651 o.add(buildLogLine()); 653 o.add(buildLogLine());
652 o.add(buildLogLine()); 654 o.add(buildLogLine());
653 return o; 655 return o;
654 } 656 }
655 657
656 checkUnnamed3494(core.List<api.LogLine> o) { 658 checkUnnamed3477(core.List<api.LogLine> o) {
657 unittest.expect(o, unittest.hasLength(2)); 659 unittest.expect(o, unittest.hasLength(2));
658 checkLogLine(o[0]); 660 checkLogLine(o[0]);
659 checkLogLine(o[1]); 661 checkLogLine(o[1]);
660 } 662 }
661 663
662 buildUnnamed3495() { 664 buildUnnamed3478() {
663 var o = new core.List<api.SourceReference>(); 665 var o = new core.List<api.SourceReference>();
664 o.add(buildSourceReference()); 666 o.add(buildSourceReference());
665 o.add(buildSourceReference()); 667 o.add(buildSourceReference());
666 return o; 668 return o;
667 } 669 }
668 670
669 checkUnnamed3495(core.List<api.SourceReference> o) { 671 checkUnnamed3478(core.List<api.SourceReference> o) {
670 unittest.expect(o, unittest.hasLength(2)); 672 unittest.expect(o, unittest.hasLength(2));
671 checkSourceReference(o[0]); 673 checkSourceReference(o[0]);
672 checkSourceReference(o[1]); 674 checkSourceReference(o[1]);
673 } 675 }
674 676
675 core.int buildCounterRequestLog = 0; 677 core.int buildCounterRequestLog = 0;
676 buildRequestLog() { 678 buildRequestLog() {
677 var o = new api.RequestLog(); 679 var o = new api.RequestLog();
678 buildCounterRequestLog++; 680 buildCounterRequestLog++;
679 if (buildCounterRequestLog < 3) { 681 if (buildCounterRequestLog < 3) {
680 o.appEngineRelease = "foo"; 682 o.appEngineRelease = "foo";
681 o.appId = "foo"; 683 o.appId = "foo";
682 o.cost = 42.0; 684 o.cost = 42.0;
683 o.endTime = "foo"; 685 o.endTime = "foo";
684 o.finished = true; 686 o.finished = true;
685 o.first = true; 687 o.first = true;
686 o.host = "foo"; 688 o.host = "foo";
687 o.httpVersion = "foo"; 689 o.httpVersion = "foo";
688 o.instanceId = "foo"; 690 o.instanceId = "foo";
689 o.instanceIndex = 42; 691 o.instanceIndex = 42;
690 o.ip = "foo"; 692 o.ip = "foo";
691 o.latency = "foo"; 693 o.latency = "foo";
692 o.line = buildUnnamed3494(); 694 o.line = buildUnnamed3477();
693 o.megaCycles = "foo"; 695 o.megaCycles = "foo";
694 o.method = "foo"; 696 o.method = "foo";
695 o.moduleId = "foo"; 697 o.moduleId = "foo";
696 o.nickname = "foo"; 698 o.nickname = "foo";
697 o.pendingTime = "foo"; 699 o.pendingTime = "foo";
698 o.referrer = "foo"; 700 o.referrer = "foo";
699 o.requestId = "foo"; 701 o.requestId = "foo";
700 o.resource = "foo"; 702 o.resource = "foo";
701 o.responseSize = "foo"; 703 o.responseSize = "foo";
702 o.sourceReference = buildUnnamed3495(); 704 o.sourceReference = buildUnnamed3478();
703 o.startTime = "foo"; 705 o.startTime = "foo";
704 o.status = 42; 706 o.status = 42;
705 o.taskName = "foo"; 707 o.taskName = "foo";
706 o.taskQueueName = "foo"; 708 o.taskQueueName = "foo";
707 o.traceId = "foo"; 709 o.traceId = "foo";
708 o.urlMapEntry = "foo"; 710 o.urlMapEntry = "foo";
709 o.userAgent = "foo"; 711 o.userAgent = "foo";
710 o.versionId = "foo"; 712 o.versionId = "foo";
711 o.wasLoadingRequest = true; 713 o.wasLoadingRequest = true;
712 } 714 }
713 buildCounterRequestLog--; 715 buildCounterRequestLog--;
714 return o; 716 return o;
715 } 717 }
716 718
717 checkRequestLog(api.RequestLog o) { 719 checkRequestLog(api.RequestLog o) {
718 buildCounterRequestLog++; 720 buildCounterRequestLog++;
719 if (buildCounterRequestLog < 3) { 721 if (buildCounterRequestLog < 3) {
720 unittest.expect(o.appEngineRelease, unittest.equals('foo')); 722 unittest.expect(o.appEngineRelease, unittest.equals('foo'));
721 unittest.expect(o.appId, unittest.equals('foo')); 723 unittest.expect(o.appId, unittest.equals('foo'));
722 unittest.expect(o.cost, unittest.equals(42.0)); 724 unittest.expect(o.cost, unittest.equals(42.0));
723 unittest.expect(o.endTime, unittest.equals('foo')); 725 unittest.expect(o.endTime, unittest.equals('foo'));
724 unittest.expect(o.finished, unittest.isTrue); 726 unittest.expect(o.finished, unittest.isTrue);
725 unittest.expect(o.first, unittest.isTrue); 727 unittest.expect(o.first, unittest.isTrue);
726 unittest.expect(o.host, unittest.equals('foo')); 728 unittest.expect(o.host, unittest.equals('foo'));
727 unittest.expect(o.httpVersion, unittest.equals('foo')); 729 unittest.expect(o.httpVersion, unittest.equals('foo'));
728 unittest.expect(o.instanceId, unittest.equals('foo')); 730 unittest.expect(o.instanceId, unittest.equals('foo'));
729 unittest.expect(o.instanceIndex, unittest.equals(42)); 731 unittest.expect(o.instanceIndex, unittest.equals(42));
730 unittest.expect(o.ip, unittest.equals('foo')); 732 unittest.expect(o.ip, unittest.equals('foo'));
731 unittest.expect(o.latency, unittest.equals('foo')); 733 unittest.expect(o.latency, unittest.equals('foo'));
732 checkUnnamed3494(o.line); 734 checkUnnamed3477(o.line);
733 unittest.expect(o.megaCycles, unittest.equals('foo')); 735 unittest.expect(o.megaCycles, unittest.equals('foo'));
734 unittest.expect(o.method, unittest.equals('foo')); 736 unittest.expect(o.method, unittest.equals('foo'));
735 unittest.expect(o.moduleId, unittest.equals('foo')); 737 unittest.expect(o.moduleId, unittest.equals('foo'));
736 unittest.expect(o.nickname, unittest.equals('foo')); 738 unittest.expect(o.nickname, unittest.equals('foo'));
737 unittest.expect(o.pendingTime, unittest.equals('foo')); 739 unittest.expect(o.pendingTime, unittest.equals('foo'));
738 unittest.expect(o.referrer, unittest.equals('foo')); 740 unittest.expect(o.referrer, unittest.equals('foo'));
739 unittest.expect(o.requestId, unittest.equals('foo')); 741 unittest.expect(o.requestId, unittest.equals('foo'));
740 unittest.expect(o.resource, unittest.equals('foo')); 742 unittest.expect(o.resource, unittest.equals('foo'));
741 unittest.expect(o.responseSize, unittest.equals('foo')); 743 unittest.expect(o.responseSize, unittest.equals('foo'));
742 checkUnnamed3495(o.sourceReference); 744 checkUnnamed3478(o.sourceReference);
743 unittest.expect(o.startTime, unittest.equals('foo')); 745 unittest.expect(o.startTime, unittest.equals('foo'));
744 unittest.expect(o.status, unittest.equals(42)); 746 unittest.expect(o.status, unittest.equals(42));
745 unittest.expect(o.taskName, unittest.equals('foo')); 747 unittest.expect(o.taskName, unittest.equals('foo'));
746 unittest.expect(o.taskQueueName, unittest.equals('foo')); 748 unittest.expect(o.taskQueueName, unittest.equals('foo'));
747 unittest.expect(o.traceId, unittest.equals('foo')); 749 unittest.expect(o.traceId, unittest.equals('foo'));
748 unittest.expect(o.urlMapEntry, unittest.equals('foo')); 750 unittest.expect(o.urlMapEntry, unittest.equals('foo'));
749 unittest.expect(o.userAgent, unittest.equals('foo')); 751 unittest.expect(o.userAgent, unittest.equals('foo'));
750 unittest.expect(o.versionId, unittest.equals('foo')); 752 unittest.expect(o.versionId, unittest.equals('foo'));
751 unittest.expect(o.wasLoadingRequest, unittest.isTrue); 753 unittest.expect(o.wasLoadingRequest, unittest.isTrue);
752 } 754 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 792
791 checkSourceReference(api.SourceReference o) { 793 checkSourceReference(api.SourceReference o) {
792 buildCounterSourceReference++; 794 buildCounterSourceReference++;
793 if (buildCounterSourceReference < 3) { 795 if (buildCounterSourceReference < 3) {
794 unittest.expect(o.repository, unittest.equals('foo')); 796 unittest.expect(o.repository, unittest.equals('foo'));
795 unittest.expect(o.revisionId, unittest.equals('foo')); 797 unittest.expect(o.revisionId, unittest.equals('foo'));
796 } 798 }
797 buildCounterSourceReference--; 799 buildCounterSourceReference--;
798 } 800 }
799 801
800 buildUnnamed3496() { 802 buildUnnamed3479() {
801 var o = new core.List<api.LogEntry>(); 803 var o = new core.List<api.LogEntry>();
802 o.add(buildLogEntry()); 804 o.add(buildLogEntry());
803 o.add(buildLogEntry()); 805 o.add(buildLogEntry());
804 return o; 806 return o;
805 } 807 }
806 808
807 checkUnnamed3496(core.List<api.LogEntry> o) { 809 checkUnnamed3479(core.List<api.LogEntry> o) {
808 unittest.expect(o, unittest.hasLength(2)); 810 unittest.expect(o, unittest.hasLength(2));
809 checkLogEntry(o[0]); 811 checkLogEntry(o[0]);
810 checkLogEntry(o[1]); 812 checkLogEntry(o[1]);
811 } 813 }
812 814
813 buildUnnamed3497() { 815 buildUnnamed3480() {
814 var o = new core.Map<core.String, core.String>(); 816 var o = new core.Map<core.String, core.String>();
815 o["x"] = "foo"; 817 o["x"] = "foo";
816 o["y"] = "foo"; 818 o["y"] = "foo";
817 return o; 819 return o;
818 } 820 }
819 821
820 checkUnnamed3497(core.Map<core.String, core.String> o) { 822 checkUnnamed3480(core.Map<core.String, core.String> o) {
821 unittest.expect(o, unittest.hasLength(2)); 823 unittest.expect(o, unittest.hasLength(2));
822 unittest.expect(o["x"], unittest.equals('foo')); 824 unittest.expect(o["x"], unittest.equals('foo'));
823 unittest.expect(o["y"], unittest.equals('foo')); 825 unittest.expect(o["y"], unittest.equals('foo'));
824 } 826 }
825 827
826 core.int buildCounterWriteLogEntriesRequest = 0; 828 core.int buildCounterWriteLogEntriesRequest = 0;
827 buildWriteLogEntriesRequest() { 829 buildWriteLogEntriesRequest() {
828 var o = new api.WriteLogEntriesRequest(); 830 var o = new api.WriteLogEntriesRequest();
829 buildCounterWriteLogEntriesRequest++; 831 buildCounterWriteLogEntriesRequest++;
830 if (buildCounterWriteLogEntriesRequest < 3) { 832 if (buildCounterWriteLogEntriesRequest < 3) {
831 o.entries = buildUnnamed3496(); 833 o.entries = buildUnnamed3479();
832 o.labels = buildUnnamed3497(); 834 o.labels = buildUnnamed3480();
833 o.logName = "foo"; 835 o.logName = "foo";
834 o.partialSuccess = true; 836 o.partialSuccess = true;
835 o.resource = buildMonitoredResource(); 837 o.resource = buildMonitoredResource();
836 } 838 }
837 buildCounterWriteLogEntriesRequest--; 839 buildCounterWriteLogEntriesRequest--;
838 return o; 840 return o;
839 } 841 }
840 842
841 checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { 843 checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) {
842 buildCounterWriteLogEntriesRequest++; 844 buildCounterWriteLogEntriesRequest++;
843 if (buildCounterWriteLogEntriesRequest < 3) { 845 if (buildCounterWriteLogEntriesRequest < 3) {
844 checkUnnamed3496(o.entries); 846 checkUnnamed3479(o.entries);
845 checkUnnamed3497(o.labels); 847 checkUnnamed3480(o.labels);
846 unittest.expect(o.logName, unittest.equals('foo')); 848 unittest.expect(o.logName, unittest.equals('foo'));
847 unittest.expect(o.partialSuccess, unittest.isTrue); 849 unittest.expect(o.partialSuccess, unittest.isTrue);
848 checkMonitoredResource(o.resource); 850 checkMonitoredResource(o.resource);
849 } 851 }
850 buildCounterWriteLogEntriesRequest--; 852 buildCounterWriteLogEntriesRequest--;
851 } 853 }
852 854
853 core.int buildCounterWriteLogEntriesResponse = 0; 855 core.int buildCounterWriteLogEntriesResponse = 0;
854 buildWriteLogEntriesResponse() { 856 buildWriteLogEntriesResponse() {
855 var o = new api.WriteLogEntriesResponse(); 857 var o = new api.WriteLogEntriesResponse();
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { 1113 res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) {
1112 checkEmpty(response); 1114 checkEmpty(response);
1113 }))); 1115 })));
1114 }); 1116 });
1115 1117
1116 unittest.test("method--list", () { 1118 unittest.test("method--list", () {
1117 1119
1118 var mock = new HttpServerMock(); 1120 var mock = new HttpServerMock();
1119 api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingA ccounts.logs; 1121 api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingA ccounts.logs;
1120 var arg_parent = "foo"; 1122 var arg_parent = "foo";
1123 var arg_pageToken = "foo";
1121 var arg_pageSize = 42; 1124 var arg_pageSize = 42;
1122 var arg_pageToken = "foo";
1123 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1125 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1124 var path = (req.url).path; 1126 var path = (req.url).path;
1125 var pathOffset = 0; 1127 var pathOffset = 0;
1126 var index; 1128 var index;
1127 var subPart; 1129 var subPart;
1128 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1130 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1129 pathOffset += 1; 1131 pathOffset += 1;
1130 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/")); 1132 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/"));
1131 pathOffset += 8; 1133 pathOffset += 8;
1132 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1134 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1133 1135
1134 var query = (req.url).query; 1136 var query = (req.url).query;
1135 var queryOffset = 0; 1137 var queryOffset = 0;
1136 var queryMap = {}; 1138 var queryMap = {};
1137 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1139 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1138 parseBool(n) { 1140 parseBool(n) {
1139 if (n == "true") return true; 1141 if (n == "true") return true;
1140 if (n == "false") return false; 1142 if (n == "false") return false;
1141 if (n == null) return null; 1143 if (n == null) return null;
1142 throw new core.ArgumentError("Invalid boolean: $n"); 1144 throw new core.ArgumentError("Invalid boolean: $n");
1143 } 1145 }
1144 if (query.length > 0) { 1146 if (query.length > 0) {
1145 for (var part in query.split("&")) { 1147 for (var part in query.split("&")) {
1146 var keyvalue = part.split("="); 1148 var keyvalue = part.split("=");
1147 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1149 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1148 } 1150 }
1149 } 1151 }
1152 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1150 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 1153 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1151 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1152 1154
1153 1155
1154 var h = { 1156 var h = {
1155 "content-type" : "application/json; charset=utf-8", 1157 "content-type" : "application/json; charset=utf-8",
1156 }; 1158 };
1157 var resp = convert.JSON.encode(buildListLogsResponse()); 1159 var resp = convert.JSON.encode(buildListLogsResponse());
1158 return new async.Future.value(stringResponse(200, h, resp)); 1160 return new async.Future.value(stringResponse(200, h, resp));
1159 }), true); 1161 }), true);
1160 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListLogsResponse response) { 1162 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListLogsResponse response) {
1161 checkListLogsResponse(response); 1163 checkListLogsResponse(response);
1162 }))); 1164 })));
1163 }); 1165 });
1164 1166
1165 }); 1167 });
1166 1168
1167 1169
1168 unittest.group("resource-EntriesResourceApi", () { 1170 unittest.group("resource-EntriesResourceApi", () {
1169 unittest.test("method--list", () { 1171 unittest.test("method--list", () {
1170 1172
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1648 res.get(arg_metricName).then(unittest.expectAsync(((api.LogMetric response ) { 1650 res.get(arg_metricName).then(unittest.expectAsync(((api.LogMetric response ) {
1649 checkLogMetric(response); 1651 checkLogMetric(response);
1650 }))); 1652 })));
1651 }); 1653 });
1652 1654
1653 unittest.test("method--list", () { 1655 unittest.test("method--list", () {
1654 1656
1655 var mock = new HttpServerMock(); 1657 var mock = new HttpServerMock();
1656 api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.met rics; 1658 api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.met rics;
1657 var arg_parent = "foo"; 1659 var arg_parent = "foo";
1660 var arg_pageToken = "foo";
1658 var arg_pageSize = 42; 1661 var arg_pageSize = 42;
1659 var arg_pageToken = "foo";
1660 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1662 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1661 var path = (req.url).path; 1663 var path = (req.url).path;
1662 var pathOffset = 0; 1664 var pathOffset = 0;
1663 var index; 1665 var index;
1664 var subPart; 1666 var subPart;
1665 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1667 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1666 pathOffset += 1; 1668 pathOffset += 1;
1667 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/")); 1669 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/"));
1668 pathOffset += 8; 1670 pathOffset += 8;
1669 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1671 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1670 1672
1671 var query = (req.url).query; 1673 var query = (req.url).query;
1672 var queryOffset = 0; 1674 var queryOffset = 0;
1673 var queryMap = {}; 1675 var queryMap = {};
1674 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1676 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1675 parseBool(n) { 1677 parseBool(n) {
1676 if (n == "true") return true; 1678 if (n == "true") return true;
1677 if (n == "false") return false; 1679 if (n == "false") return false;
1678 if (n == null) return null; 1680 if (n == null) return null;
1679 throw new core.ArgumentError("Invalid boolean: $n"); 1681 throw new core.ArgumentError("Invalid boolean: $n");
1680 } 1682 }
1681 if (query.length > 0) { 1683 if (query.length > 0) {
1682 for (var part in query.split("&")) { 1684 for (var part in query.split("&")) {
1683 var keyvalue = part.split("="); 1685 var keyvalue = part.split("=");
1684 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1686 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1685 } 1687 }
1686 } 1688 }
1689 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1687 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 1690 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1688 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1689 1691
1690 1692
1691 var h = { 1693 var h = {
1692 "content-type" : "application/json; charset=utf-8", 1694 "content-type" : "application/json; charset=utf-8",
1693 }; 1695 };
1694 var resp = convert.JSON.encode(buildListLogMetricsResponse()); 1696 var resp = convert.JSON.encode(buildListLogMetricsResponse());
1695 return new async.Future.value(stringResponse(200, h, resp)); 1697 return new async.Future.value(stringResponse(200, h, resp));
1696 }), true); 1698 }), true);
1697 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListLogMetricsResponse response) { 1699 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListLogMetricsResponse response) {
1698 checkListLogMetricsResponse(response); 1700 checkListLogMetricsResponse(response);
1699 }))); 1701 })));
1700 }); 1702 });
1701 1703
1702 unittest.test("method--update", () { 1704 unittest.test("method--update", () {
1703 1705
1704 var mock = new HttpServerMock(); 1706 var mock = new HttpServerMock();
1705 api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.met rics; 1707 api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.met rics;
1706 var arg_request = buildLogMetric(); 1708 var arg_request = buildLogMetric();
1707 var arg_metricName = "foo"; 1709 var arg_metricName = "foo";
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWrit erIdentity).then(unittest.expectAsync(((api.LogSink response) { 1993 res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWrit erIdentity).then(unittest.expectAsync(((api.LogSink response) {
1992 checkLogSink(response); 1994 checkLogSink(response);
1993 }))); 1995 })));
1994 }); 1996 });
1995 1997
1996 }); 1998 });
1997 1999
1998 2000
1999 } 2001 }
2000 2002
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698